From 555cac8abd5448d0f98ed7ee95bf2f24721d1039 Mon Sep 17 00:00:00 2001 From: Talon-One SDK Generator Date: Mon, 30 Jun 2025 08:17:03 +0000 Subject: [PATCH] update to 0.0.0 --- README.md | 46 +- api/openapi.yaml | 3388 ++++++++------ build.gradle | 4 +- build.sbt | 2 +- docs/AccessLogEntry.md | 2 +- docs/Account.md | 18 +- docs/AccountAdditionalCost.md | 6 +- docs/AccountAnalytics.md | 38 +- docs/AccountDashboardStatisticCampaigns.md | 6 +- docs/AccountEntity.md | 2 +- docs/AccountLimits.md | 22 +- docs/Achievement.md | 9 +- docs/AchievementAdditionalProperties.md | 4 +- docs/AchievementBase.md | 3 +- docs/AchievementProgressWithDefinition.md | 7 +- docs/AchievementStatusEntry.md | 7 +- docs/AddFreeItemEffectProps.md | 2 +- docs/AddLoyaltyPoints.md | 2 +- docs/AddLoyaltyPointsEffectProps.md | 4 +- docs/AddPriceAdjustmentCatalogAction.md | 14 + docs/AddToAudienceEffectProps.md | 4 +- ...eductedPointsBalancesNotificationPolicy.md | 24 + docs/AdditionalCampaignProperties.md | 28 +- docs/AnalyticsProduct.md | 4 +- docs/AnalyticsSKU.md | 2 +- docs/Application.md | 8 +- docs/ApplicationAPIKey.md | 10 +- docs/ApplicationCIF.md | 10 +- docs/ApplicationCIFExpression.md | 8 +- docs/ApplicationCIFReferences.md | 2 +- docs/ApplicationCampaignAnalytics.md | 2 +- docs/ApplicationCampaignStats.md | 12 +- docs/ApplicationCustomer.md | 6 +- docs/ApplicationCustomerEntity.md | 2 +- docs/ApplicationEntity.md | 2 +- docs/ApplicationEvent.md | 10 +- docs/ApplicationReferee.md | 2 +- docs/ApplicationSession.md | 6 +- docs/ApplicationSessionEntity.md | 2 +- docs/ApplicationStoreEntity.md | 2 +- docs/AsyncCouponDeletionJobResponse.md | 2 +- docs/Attribute.md | 10 +- docs/Audience.md | 4 +- docs/AudienceAnalytics.md | 4 +- docs/AudienceCustomer.md | 10 +- docs/AudienceMembership.md | 2 +- docs/AwardGiveawayEffectProps.md | 4 +- docs/BaseCampaign.md | 6 +- docs/BaseLoyaltyProgram.md | 4 +- docs/BaseNotification.md | 4 +- docs/BaseNotificationWebhook.md | 2 +- docs/BaseSamlConnection.md | 2 +- docs/Binding.md | 3 + docs/BulkApplicationNotification.md | 2 +- docs/BulkCampaignNotification.md | 2 +- docs/BulkOperationOnCampaigns.md | 2 +- docs/Campaign.md | 50 +- docs/CampaignActivationRequest.md | 2 +- docs/CampaignAnalytics.md | 24 +- docs/CampaignCollection.md | 12 +- docs/CampaignCollectionWithoutPayload.md | 12 +- docs/CampaignCopy.md | 4 +- docs/CampaignDeactivationRequest.md | 12 + docs/CampaignDetail.md | 2 +- docs/CampaignEntity.md | 2 +- docs/CampaignEvaluationGroup.md | 6 +- docs/CampaignEvaluationPosition.md | 4 +- ...mpaignEvaluationTreeChangedNotification.md | 2 +- docs/CampaignGroup.md | 8 +- docs/CampaignGroupEntity.md | 2 +- docs/CampaignNotificationPolicy.md | 2 +- docs/CampaignSet.md | 6 +- docs/CampaignSetBranchNode.md | 2 +- docs/CampaignSetLeafNode.md | 2 +- docs/CampaignStoreBudget.md | 6 +- docs/CampaignTemplate.md | 14 +- ...mpaignTemplateCouponReservationSettings.md | 2 +- docs/CampaignTemplateParams.md | 2 +- docs/CampaignVersions.md | 10 +- ...eductedPointsBalancesNotificationPolicy.md | 24 + docs/CardExpiringPointsNotificationPolicy.md | 2 +- docs/CardExpiringPointsNotificationTrigger.md | 2 +- docs/CardLedgerPointsEntryIntegrationAPI.md | 4 +- docs/CardLedgerTransactionLogEntry.md | 8 +- ...LedgerTransactionLogEntryIntegrationAPI.md | 6 +- docs/CartItem.md | 13 +- docs/Catalog.md | 10 +- docs/CatalogAction.md | 1 + docs/CatalogItem.md | 6 +- docs/CatalogSyncRequest.md | 2 +- ...CatalogsStrikethroughNotificationPolicy.md | 2 +- docs/Change.md | 8 +- docs/ChangeLoyaltyTierLevelEffectProps.md | 2 +- docs/Collection.md | 14 +- docs/CollectionWithoutPayload.md | 14 +- docs/Coupon.md | 16 +- docs/CouponConstraints.md | 4 +- docs/CouponCreationJob.md | 24 +- docs/CouponDeletionFilters.md | 2 +- docs/CouponDeletionJob.md | 14 +- docs/CouponEntity.md | 13 + docs/CouponRejectionReason.md | 4 +- docs/CouponsNotificationPolicy.md | 2 +- docs/CreateAchievement.md | 3 +- docs/CreateApplicationAPIKey.md | 2 +- docs/CreateManagementKey.md | 2 +- docs/CreateTemplateCampaign.md | 8 +- docs/CustomEffect.md | 10 +- docs/CustomEffectProps.md | 4 +- docs/CustomerActivityReport.md | 12 +- docs/CustomerAnalytics.md | 10 +- docs/CustomerProfile.md | 6 +- docs/CustomerProfileAudienceRequestItem.md | 2 +- docs/CustomerProfileEntity.md | 13 + docs/CustomerProfileIntegrationRequestV2.md | 2 +- docs/CustomerProfileSearchQuery.md | 2 +- docs/CustomerSession.md | 2 +- docs/CustomerSessionV2.md | 6 +- docs/DeductLoyaltyPoints.md | 2 +- docs/DeductLoyaltyPointsEffectProps.md | 2 +- docs/Effect.md | 21 +- docs/EffectEntity.md | 21 +- docs/Entity.md | 2 +- docs/EntityWithTalangVisibleID.md | 2 +- docs/Environment.md | 5 +- docs/ErrorResponseWithStatus.md | 2 +- docs/EvaluableCampaignIds.md | 2 +- docs/Event.md | 4 +- docs/EventType.md | 2 +- docs/EventV2.md | 2 +- docs/ExpiringCouponsNotificationPolicy.md | 2 +- docs/ExpiringCouponsNotificationTrigger.md | 2 +- docs/ExpiringPointsNotificationPolicy.md | 2 +- docs/ExpiringPointsNotificationTrigger.md | 2 +- docs/Export.md | 6 +- ...xtendLoyaltyPointsExpiryDateEffectProps.md | 17 + docs/GenerateCampaignDescription.md | 2 +- docs/GenerateCampaignTags.md | 2 +- docs/GetIntegrationCouponRequest.md | 4 +- docs/Giveaway.md | 8 +- docs/GiveawaysPool.md | 10 +- docs/HiddenConditionsEffects.md | 4 +- docs/IdentifiableEntity.md | 2 +- docs/ImportEntity.md | 2 +- .../IncreaseAchievementProgressEffectProps.md | 4 +- docs/InlineResponse200.md | 2 +- docs/InlineResponse2001.md | 2 +- docs/InlineResponse20010.md | 2 +- docs/InlineResponse20013.md | 2 +- docs/InlineResponse20015.md | 2 +- docs/InlineResponse20016.md | 2 +- docs/InlineResponse2002.md | 2 +- docs/InlineResponse20020.md | 2 +- docs/InlineResponse20023.md | 2 +- docs/InlineResponse20024.md | 2 +- docs/InlineResponse20025.md | 2 +- docs/InlineResponse20026.md | 2 +- docs/InlineResponse20031.md | 2 +- docs/InlineResponse20032.md | 2 +- docs/InlineResponse20035.md | 2 +- docs/InlineResponse20036.md | 2 +- docs/InlineResponse20037.md | 2 +- docs/InlineResponse20038.md | 2 +- docs/InlineResponse20039.md | 2 +- docs/InlineResponse20040.md | 2 +- docs/InlineResponse20041.md | 2 +- docs/InlineResponse20042.md | 2 +- docs/InlineResponse20043.md | 2 +- docs/InlineResponse20044.md | 2 +- docs/InlineResponse20045.md | 2 +- docs/InlineResponse20046.md | 2 +- docs/InlineResponse20047.md | 2 +- docs/InlineResponse20048.md | 3 +- docs/InlineResponse20049.md | 3 +- docs/InlineResponse20050.md | 13 + docs/InlineResponse20051.md | 13 + docs/InlineResponse2007.md | 2 +- docs/InlineResponse2008.md | 2 +- docs/InlineResponse2009.md | 2 +- docs/InlineResponse201.md | 2 +- docs/IntegrationApi.md | 110 +- docs/IntegrationCoupon.md | 18 +- ...tegrationCustomerProfileAudienceRequest.md | 12 + ...ationCustomerProfileAudienceRequestItem.md | 23 + docs/IntegrationEventV2Request.md | 3 +- docs/InventoryCoupon.md | 18 +- docs/InventoryReferral.md | 10 +- docs/ItemAttribute.md | 2 +- docs/LedgerEntry.md | 12 +- docs/LedgerInfo.md | 4 +- docs/LedgerPointsEntryIntegrationAPI.md | 4 +- ...LedgerTransactionLogEntryIntegrationAPI.md | 6 +- docs/LimitCounter.md | 14 +- docs/ListCampaignStoreBudgets.md | 2 +- docs/ListCampaignStoreBudgetsStore.md | 2 +- docs/LoyaltyCard.md | 6 +- docs/LoyaltyCardBatch.md | 2 +- docs/LoyaltyCardBatchResponse.md | 2 +- docs/LoyaltyLedgerEntry.md | 8 +- docs/LoyaltyMembership.md | 2 +- docs/LoyaltyProgram.md | 8 +- docs/LoyaltyProgramBalance.md | 4 +- docs/LoyaltyProgramEntity.md | 2 +- docs/LoyaltyProgramLedgers.md | 2 +- docs/LoyaltyProgramTransaction.md | 12 +- docs/LoyaltyTier.md | 4 +- docs/ManagementApi.md | 2286 +++++++--- docs/ManagementKey.md | 8 +- docs/ManagerConfig.md | 2 +- docs/MessageLogEntry.md | 10 +- docs/MessageLogResponse.md | 2 +- docs/MessageTest.md | 2 +- docs/ModelImport.md | 8 +- docs/ModelReturn.md | 14 +- docs/MultiApplicationEntity.md | 2 +- docs/MultipleAudiences.md | 2 +- docs/MultipleAudiencesItem.md | 2 +- docs/NewAdditionalCost.md | 2 +- docs/NewAppWideCouponDeletionJob.md | 2 +- docs/NewApplicationAPIKey.md | 10 +- docs/NewApplicationCIF.md | 6 +- docs/NewApplicationCIFExpression.md | 4 +- docs/NewAttribute.md | 4 +- docs/NewCampaign.md | 8 +- docs/NewCampaignEvaluationGroup.md | 2 +- docs/NewCampaignGroup.md | 4 +- docs/NewCampaignSet.md | 4 +- docs/NewCampaignStoreBudgetStoreLimit.md | 2 +- docs/NewCampaignTemplate.md | 2 +- docs/NewCatalog.md | 2 +- docs/NewCollection.md | 2 +- docs/NewCouponCreationJob.md | 6 +- docs/NewCoupons.md | 6 +- docs/NewCouponsForMultipleRecipients.md | 4 +- docs/NewCustomEffect.md | 2 +- docs/NewCustomerSessionV2.md | 2 +- docs/NewGiveawaysPool.md | 2 +- docs/NewInvitation.md | 2 +- docs/NewLoyaltyProgram.md | 4 +- docs/NewManagementKey.md | 8 +- docs/NewMessageTest.md | 2 + docs/NewOutgoingIntegrationWebhook.md | 2 +- docs/NewPriceAdjustment.md | 17 + docs/NewPriceType.md | 15 + docs/NewReferral.md | 4 +- docs/NewReferralsForMultipleAdvocates.md | 4 +- docs/NewRevisionVersion.md | 2 +- docs/NewRole.md | 2 +- docs/NewRoleV2.md | 2 +- docs/NewSamlConnection.md | 2 +- docs/NewWebhook.md | 3 +- docs/Notification.md | 2 +- docs/NotificationListItem.md | 4 +- docs/OneTimeCode.md | 4 +- docs/OutgoingIntegrationConfiguration.md | 6 +- docs/OutgoingIntegrationTemplate.md | 4 +- ...grationTemplateWithConfigurationDetails.md | 4 +- docs/OutgoingIntegrationType.md | 2 +- docs/PendingPointsNotificationPolicy.md | 2 +- docs/Picklist.md | 8 +- docs/PriceDetail.md | 15 + docs/PriceType.md | 20 + docs/ProductSearchMatch.md | 4 +- docs/ProductUnitAnalyticsDataPoint.md | 2 +- docs/ProfileAudiencesChanges.md | 4 +- docs/RedeemReferralEffectProps.md | 2 +- docs/Referral.md | 10 +- docs/ReferralConstraints.md | 2 +- docs/ReferralRejectionReason.md | 4 +- docs/RejectCouponEffectProps.md | 4 +- docs/RejectReferralEffectProps.md | 4 +- docs/RemoveFromAudienceEffectProps.md | 4 +- docs/ReturnedCartItem.md | 4 +- docs/Revision.md | 12 +- docs/RevisionActivationRequest.md | 2 +- docs/RevisionVersion.md | 16 +- docs/Role.md | 8 +- docs/RoleAssign.md | 4 +- docs/RoleMembership.md | 4 +- docs/RoleV2.md | 6 +- docs/RoleV2Base.md | 2 +- docs/RollbackAddedLoyaltyPointsEffectProps.md | 2 +- ...ollbackDeductedLoyaltyPointsEffectProps.md | 2 +- docs/RollbackDiscountEffectProps.md | 2 +- ...IncreasedAchievementProgressEffectProps.md | 4 +- docs/RuleFailureReason.md | 16 +- docs/Ruleset.md | 8 +- docs/SamlConnection.md | 4 +- docs/SamlLoginEndpoint.md | 2 +- docs/ScimBaseGroup.md | 14 + docs/ScimGroup.md | 15 + docs/ScimGroupMember.md | 14 + docs/ScimGroupsListResponse.md | 15 + docs/ScimSchemasListResponse.md | 2 +- docs/ScimServiceProviderConfigResponseBulk.md | 4 +- ...ScimServiceProviderConfigResponseFilter.md | 2 +- docs/ScimUsersListResponse.md | 2 +- docs/Session.md | 2 +- ...SetDiscountPerAdditionalCostEffectProps.md | 2 +- ...ountPerAdditionalCostPerItemEffectProps.md | 2 +- docs/SetDiscountPerItemEffectProps.md | 2 +- docs/Store.md | 6 +- docs/StrikethroughChangedItem.md | 6 +- docs/StrikethroughCustomEffectPerItemProps.md | 2 +- docs/StrikethroughDebugResponse.md | 2 +- docs/StrikethroughEffect.md | 6 +- docs/StrikethroughLabelingNotification.md | 6 +- docs/StrikethroughTrigger.md | 2 +- docs/SummaryCampaignStoreBudget.md | 2 +- docs/TalangAttribute.md | 2 +- docs/TemplateArgDef.md | 2 +- docs/TemplateDef.md | 4 +- docs/Tier.md | 2 +- docs/TierDowngradeNotificationPolicy.md | 2 +- docs/TierUpgradeNotificationPolicy.md | 2 +- docs/TierWillDowngradeNotificationPolicy.md | 2 +- docs/TierWillDowngradeNotificationTrigger.md | 2 +- docs/TimePoint.md | 12 +- docs/UpdateAchievement.md | 3 +- docs/UpdateApplication.md | 4 +- docs/UpdateApplicationAPIKey.md | 2 +- docs/UpdateApplicationCIF.md | 4 +- docs/UpdateCampaign.md | 8 +- docs/UpdateCampaignEvaluationGroup.md | 2 +- docs/UpdateCampaignGroup.md | 4 +- docs/UpdateCampaignTemplate.md | 6 +- docs/UpdateCatalog.md | 2 +- docs/UpdateCollection.md | 2 +- docs/UpdateCoupon.md | 4 +- docs/UpdateCouponBatch.md | 4 +- docs/UpdateLoyaltyProgram.md | 4 +- docs/UpdateLoyaltyProgramTier.md | 2 +- docs/UpdateReferral.md | 2 +- docs/UpdateReferralBatch.md | 2 +- docs/UpdateRole.md | 2 +- docs/UpdateUser.md | 2 +- docs/User.md | 6 +- docs/UserEntity.md | 2 +- docs/ValueMap.md | 6 +- docs/Webhook.md | 5 +- docs/WebhookActivationLogEntry.md | 6 +- docs/WebhookAuthentication.md | 29 + docs/WebhookAuthenticationBase.md | 23 + docs/WebhookAuthenticationDataBasic.md | 13 + docs/WebhookAuthenticationDataCustom.md | 12 + docs/WebhookAuthenticationWebhookRef.md | 14 + docs/WebhookLogEntry.md | 6 +- docs/WebhookWithOutgoingIntegrationDetails.md | 9 +- docs/WillAwardGiveawayEffectProps.md | 2 +- pom.xml | 2 +- src/main/java/one/talon/ApiClient.java | 2 +- .../java/one/talon/api/IntegrationApi.java | 216 +- .../java/one/talon/api/ManagementApi.java | 3898 ++++++++++++----- .../java/one/talon/model/AccessLogEntry.java | 8 +- src/main/java/one/talon/model/Account.java | 76 +- .../talon/model/AccountAdditionalCost.java | 32 +- .../one/talon/model/AccountAnalytics.java | 152 +- .../AccountDashboardStatisticCampaigns.java | 24 +- .../java/one/talon/model/AccountEntity.java | 8 +- .../java/one/talon/model/AccountLimits.java | 88 +- .../java/one/talon/model/Achievement.java | 38 +- .../AchievementAdditionalProperties.java | 16 +- .../java/one/talon/model/AchievementBase.java | 10 +- .../AchievementProgressWithDefinition.java | 26 +- .../talon/model/AchievementStatusEntry.java | 30 +- .../talon/model/AddFreeItemEffectProps.java | 8 +- .../one/talon/model/AddLoyaltyPoints.java | 8 +- .../model/AddLoyaltyPointsEffectProps.java | 16 +- .../AddPriceAdjustmentCatalogAction.java | 135 + .../talon/model/AddToAudienceEffectProps.java | 16 +- ...uctedPointsBalancesNotificationPolicy.java | 184 + .../model/AdditionalCampaignProperties.java | 116 +- .../one/talon/model/AnalyticsProduct.java | 16 +- .../java/one/talon/model/AnalyticsSKU.java | 8 +- .../java/one/talon/model/Application.java | 36 +- .../one/talon/model/ApplicationAPIKey.java | 40 +- .../java/one/talon/model/ApplicationCIF.java | 44 +- .../talon/model/ApplicationCIFExpression.java | 36 +- .../talon/model/ApplicationCIFReferences.java | 8 +- .../model/ApplicationCampaignAnalytics.java | 8 +- .../talon/model/ApplicationCampaignStats.java | 48 +- .../one/talon/model/ApplicationCustomer.java | 32 +- .../model/ApplicationCustomerEntity.java | 8 +- .../one/talon/model/ApplicationEntity.java | 8 +- .../one/talon/model/ApplicationEvent.java | 44 +- .../one/talon/model/ApplicationReferee.java | 8 +- .../one/talon/model/ApplicationSession.java | 28 +- .../talon/model/ApplicationSessionEntity.java | 8 +- .../talon/model/ApplicationStoreEntity.java | 8 +- .../model/AsyncCouponDeletionJobResponse.java | 8 +- src/main/java/one/talon/model/Attribute.java | 52 +- src/main/java/one/talon/model/Audience.java | 20 +- .../one/talon/model/AudienceAnalytics.java | 16 +- .../one/talon/model/AudienceCustomer.java | 56 +- .../one/talon/model/AudienceMembership.java | 8 +- .../talon/model/AwardGiveawayEffectProps.java | 16 +- .../java/one/talon/model/BaseCampaign.java | 32 +- .../one/talon/model/BaseLoyaltyProgram.java | 20 +- .../one/talon/model/BaseNotification.java | 12 +- .../talon/model/BaseNotificationWebhook.java | 12 +- .../one/talon/model/BaseSamlConnection.java | 8 +- src/main/java/one/talon/model/Binding.java | 92 +- .../model/BulkApplicationNotification.java | 8 +- .../talon/model/BulkCampaignNotification.java | 8 +- .../talon/model/BulkOperationOnCampaigns.java | 10 +- src/main/java/one/talon/model/Campaign.java | 212 +- .../model/CampaignActivationRequest.java | 10 +- .../one/talon/model/CampaignAnalytics.java | 96 +- .../one/talon/model/CampaignCollection.java | 52 +- .../CampaignCollectionWithoutPayload.java | 52 +- .../java/one/talon/model/CampaignCopy.java | 18 +- .../model/CampaignDeactivationRequest.java | 105 + .../java/one/talon/model/CampaignDetail.java | 8 +- .../java/one/talon/model/CampaignEntity.java | 8 +- .../talon/model/CampaignEvaluationGroup.java | 24 +- .../model/CampaignEvaluationPosition.java | 16 +- ...aignEvaluationTreeChangedNotification.java | 8 +- .../java/one/talon/model/CampaignGroup.java | 44 +- .../one/talon/model/CampaignGroupEntity.java | 12 +- .../model/CampaignNotificationPolicy.java | 8 +- .../java/one/talon/model/CampaignSet.java | 28 +- .../talon/model/CampaignSetBranchNode.java | 8 +- .../one/talon/model/CampaignSetLeafNode.java | 8 +- .../one/talon/model/CampaignStoreBudget.java | 28 +- .../one/talon/model/CampaignTemplate.java | 64 +- ...aignTemplateCouponReservationSettings.java | 8 +- .../talon/model/CampaignTemplateParams.java | 8 +- .../one/talon/model/CampaignVersions.java | 40 +- ...uctedPointsBalancesNotificationPolicy.java | 184 + .../CardExpiringPointsNotificationPolicy.java | 8 +- ...CardExpiringPointsNotificationTrigger.java | 8 +- .../CardLedgerPointsEntryIntegrationAPI.java | 16 +- .../model/CardLedgerTransactionLogEntry.java | 32 +- ...dgerTransactionLogEntryIntegrationAPI.java | 24 +- src/main/java/one/talon/model/Catalog.java | 48 +- .../java/one/talon/model/CatalogAction.java | 4 +- .../java/one/talon/model/CatalogItem.java | 28 +- .../one/talon/model/CatalogSyncRequest.java | 8 +- ...talogsStrikethroughNotificationPolicy.java | 8 +- src/main/java/one/talon/model/Change.java | 36 +- .../ChangeLoyaltyTierLevelEffectProps.java | 8 +- src/main/java/one/talon/model/Collection.java | 64 +- .../talon/model/CollectionWithoutPayload.java | 64 +- src/main/java/one/talon/model/Coupon.java | 66 +- .../one/talon/model/CouponConstraints.java | 18 +- .../one/talon/model/CouponCreationJob.java | 102 +- .../talon/model/CouponDeletionFilters.java | 8 +- .../one/talon/model/CouponDeletionJob.java | 64 +- .../java/one/talon/model/CouponEntity.java | 127 + .../talon/model/CouponRejectionReason.java | 16 +- .../model/CouponsNotificationPolicy.java | 8 +- .../one/talon/model/CreateAchievement.java | 10 +- .../talon/model/CreateApplicationAPIKey.java | 8 +- .../one/talon/model/CreateManagementKey.java | 12 +- .../talon/model/CreateTemplateCampaign.java | 40 +- .../java/one/talon/model/CustomEffect.java | 46 +- .../one/talon/model/CustomEffectProps.java | 16 +- .../talon/model/CustomerActivityReport.java | 48 +- .../one/talon/model/CustomerAnalytics.java | 40 +- .../java/one/talon/model/CustomerProfile.java | 32 +- .../CustomerProfileAudienceRequestItem.java | 8 +- .../talon/model/CustomerProfileEntity.java | 127 + .../model/CustomerProfileSearchQuery.java | 12 +- .../java/one/talon/model/CustomerSession.java | 8 +- .../one/talon/model/CustomerSessionV2.java | 32 +- .../one/talon/model/DeductLoyaltyPoints.java | 8 +- .../model/DeductLoyaltyPointsEffectProps.java | 8 +- src/main/java/one/talon/model/Effect.java | 163 +- .../java/one/talon/model/EffectEntity.java | 165 +- src/main/java/one/talon/model/Entity.java | 12 +- .../model/EntityWithTalangVisibleID.java | 8 +- .../java/one/talon/model/Environment.java | 62 +- .../talon/model/ErrorResponseWithStatus.java | 8 +- .../one/talon/model/EvaluableCampaignIds.java | 12 +- src/main/java/one/talon/model/Event.java | 20 +- src/main/java/one/talon/model/EventType.java | 12 +- src/main/java/one/talon/model/EventV2.java | 12 +- .../ExpiringCouponsNotificationPolicy.java | 8 +- .../ExpiringCouponsNotificationTrigger.java | 8 +- .../ExpiringPointsNotificationPolicy.java | 8 +- .../ExpiringPointsNotificationTrigger.java | 8 +- src/main/java/one/talon/model/Export.java | 28 +- ...endLoyaltyPointsExpiryDateEffectProps.java | 223 + .../model/GenerateCampaignDescription.java | 8 +- .../one/talon/model/GenerateCampaignTags.java | 8 +- .../model/GetIntegrationCouponRequest.java | 18 +- src/main/java/one/talon/model/Giveaway.java | 36 +- .../java/one/talon/model/GiveawaysPool.java | 48 +- .../talon/model/HiddenConditionsEffects.java | 24 +- .../one/talon/model/IdentifiableEntity.java | 8 +- .../java/one/talon/model/ImportEntity.java | 8 +- ...ncreaseAchievementProgressEffectProps.java | 16 +- .../one/talon/model/InlineResponse200.java | 8 +- .../one/talon/model/InlineResponse2001.java | 8 +- .../one/talon/model/InlineResponse20010.java | 8 +- .../one/talon/model/InlineResponse20013.java | 8 +- .../one/talon/model/InlineResponse20015.java | 8 +- .../one/talon/model/InlineResponse20016.java | 8 +- .../one/talon/model/InlineResponse2002.java | 8 +- .../one/talon/model/InlineResponse20020.java | 8 +- .../one/talon/model/InlineResponse20023.java | 8 +- .../one/talon/model/InlineResponse20024.java | 8 +- .../one/talon/model/InlineResponse20025.java | 8 +- .../one/talon/model/InlineResponse20026.java | 8 +- .../one/talon/model/InlineResponse20031.java | 8 +- .../one/talon/model/InlineResponse20032.java | 8 +- .../one/talon/model/InlineResponse20035.java | 8 +- .../one/talon/model/InlineResponse20036.java | 8 +- .../one/talon/model/InlineResponse20037.java | 8 +- .../one/talon/model/InlineResponse20038.java | 8 +- .../one/talon/model/InlineResponse20039.java | 8 +- .../one/talon/model/InlineResponse20040.java | 8 +- .../one/talon/model/InlineResponse20041.java | 8 +- .../one/talon/model/InlineResponse20042.java | 8 +- .../one/talon/model/InlineResponse20043.java | 8 +- .../one/talon/model/InlineResponse20044.java | 8 +- .../one/talon/model/InlineResponse20045.java | 8 +- .../one/talon/model/InlineResponse20046.java | 8 +- .../one/talon/model/InlineResponse20047.java | 8 +- .../one/talon/model/InlineResponse20048.java | 51 +- .../one/talon/model/InlineResponse20049.java | 50 +- .../one/talon/model/InlineResponse20050.java | 135 + .../one/talon/model/InlineResponse20051.java | 134 + .../one/talon/model/InlineResponse2007.java | 8 +- .../one/talon/model/InlineResponse2008.java | 8 +- .../one/talon/model/InlineResponse2009.java | 8 +- .../one/talon/model/InlineResponse201.java | 8 +- .../one/talon/model/IntegrationCoupon.java | 74 +- ...grationCustomerProfileAudienceRequest.java | 110 + ...ionCustomerProfileAudienceRequestItem.java | 201 + .../java/one/talon/model/InventoryCoupon.java | 74 +- .../one/talon/model/InventoryReferral.java | 44 +- .../java/one/talon/model/ItemAttribute.java | 8 +- .../java/one/talon/model/LedgerEntry.java | 52 +- src/main/java/one/talon/model/LedgerInfo.java | 6 +- .../LedgerPointsEntryIntegrationAPI.java | 16 +- ...dgerTransactionLogEntryIntegrationAPI.java | 24 +- .../java/one/talon/model/LimitCounter.java | 56 +- .../talon/model/ListCampaignStoreBudgets.java | 8 +- .../model/ListCampaignStoreBudgetsStore.java | 8 +- .../java/one/talon/model/LoyaltyCard.java | 28 +- .../one/talon/model/LoyaltyCardBatch.java | 8 +- .../talon/model/LoyaltyCardBatchResponse.java | 8 +- .../one/talon/model/LoyaltyLedgerEntry.java | 32 +- .../one/talon/model/LoyaltyMembership.java | 8 +- .../java/one/talon/model/LoyaltyProgram.java | 34 +- .../talon/model/LoyaltyProgramBalance.java | 6 +- .../one/talon/model/LoyaltyProgramEntity.java | 8 +- .../talon/model/LoyaltyProgramLedgers.java | 8 +- .../model/LoyaltyProgramTransaction.java | 48 +- .../java/one/talon/model/LoyaltyTier.java | 20 +- .../java/one/talon/model/ManagementKey.java | 36 +- .../java/one/talon/model/ManagerConfig.java | 8 +- .../java/one/talon/model/MessageLogEntry.java | 40 +- .../one/talon/model/MessageLogResponse.java | 8 +- .../java/one/talon/model/MessageTest.java | 8 +- .../java/one/talon/model/ModelImport.java | 36 +- .../java/one/talon/model/ModelReturn.java | 60 +- .../talon/model/MultiApplicationEntity.java | 10 +- .../one/talon/model/MultipleAudiences.java | 8 +- .../talon/model/MultipleAudiencesItem.java | 12 +- .../one/talon/model/NewAdditionalCost.java | 12 +- .../model/NewAppWideCouponDeletionJob.java | 10 +- .../one/talon/model/NewApplicationAPIKey.java | 40 +- .../one/talon/model/NewApplicationCIF.java | 24 +- .../model/NewApplicationCIFExpression.java | 16 +- .../java/one/talon/model/NewAttribute.java | 24 +- .../java/one/talon/model/NewCampaign.java | 40 +- .../model/NewCampaignEvaluationGroup.java | 8 +- .../one/talon/model/NewCampaignGroup.java | 24 +- .../java/one/talon/model/NewCampaignSet.java | 16 +- .../NewCampaignStoreBudgetStoreLimit.java | 8 +- .../one/talon/model/NewCampaignTemplate.java | 8 +- src/main/java/one/talon/model/NewCatalog.java | 12 +- .../java/one/talon/model/NewCollection.java | 12 +- .../one/talon/model/NewCouponCreationJob.java | 26 +- src/main/java/one/talon/model/NewCoupons.java | 26 +- .../NewCouponsForMultipleRecipients.java | 18 +- .../java/one/talon/model/NewCustomEffect.java | 10 +- .../one/talon/model/NewGiveawaysPool.java | 12 +- .../java/one/talon/model/NewInvitation.java | 12 +- .../one/talon/model/NewLoyaltyProgram.java | 20 +- .../one/talon/model/NewManagementKey.java | 36 +- .../java/one/talon/model/NewMessageTest.java | 4 + .../model/NewOutgoingIntegrationWebhook.java | 10 +- .../one/talon/model/NewPriceAdjustment.java | 244 ++ .../java/one/talon/model/NewPriceType.java | 194 + .../java/one/talon/model/NewReferral.java | 16 +- .../one/talon/model/NewRevisionVersion.java | 8 +- src/main/java/one/talon/model/NewRole.java | 10 +- src/main/java/one/talon/model/NewRoleV2.java | 12 +- .../one/talon/model/NewSamlConnection.java | 8 +- src/main/java/one/talon/model/NewWebhook.java | 40 +- .../java/one/talon/model/Notification.java | 8 +- .../one/talon/model/NotificationListItem.java | 16 +- .../java/one/talon/model/OneTimeCode.java | 16 +- .../OutgoingIntegrationConfiguration.java | 24 +- .../model/OutgoingIntegrationTemplate.java | 16 +- ...ationTemplateWithConfigurationDetails.java | 16 +- .../talon/model/OutgoingIntegrationType.java | 8 +- .../PendingPointsNotificationPolicy.java | 8 +- src/main/java/one/talon/model/Picklist.java | 36 +- .../java/one/talon/model/PriceDetail.java | 188 + src/main/java/one/talon/model/PriceType.java | 337 ++ .../one/talon/model/ProductSearchMatch.java | 16 +- .../model/ProductUnitAnalyticsDataPoint.java | 8 +- .../talon/model/ProfileAudiencesChanges.java | 20 +- .../model/RedeemReferralEffectProps.java | 8 +- src/main/java/one/talon/model/Referral.java | 44 +- .../one/talon/model/ReferralConstraints.java | 8 +- .../talon/model/ReferralRejectionReason.java | 16 +- .../talon/model/RejectCouponEffectProps.java | 16 +- .../model/RejectReferralEffectProps.java | 16 +- .../model/RemoveFromAudienceEffectProps.java | 16 +- .../one/talon/model/ReturnedCartItem.java | 16 +- src/main/java/one/talon/model/Revision.java | 48 +- .../model/RevisionActivationRequest.java | 10 +- .../java/one/talon/model/RevisionVersion.java | 64 +- src/main/java/one/talon/model/Role.java | 40 +- src/main/java/one/talon/model/RoleAssign.java | 20 +- .../java/one/talon/model/RoleMembership.java | 16 +- src/main/java/one/talon/model/RoleV2.java | 32 +- src/main/java/one/talon/model/RoleV2Base.java | 12 +- ...RollbackAddedLoyaltyPointsEffectProps.java | 8 +- ...lbackDeductedLoyaltyPointsEffectProps.java | 8 +- .../model/RollbackDiscountEffectProps.java | 8 +- ...creasedAchievementProgressEffectProps.java | 16 +- .../one/talon/model/RuleFailureReason.java | 64 +- src/main/java/one/talon/model/Ruleset.java | 36 +- .../java/one/talon/model/SamlConnection.java | 20 +- .../one/talon/model/SamlLoginEndpoint.java | 8 +- .../java/one/talon/model/ScimBaseGroup.java | 140 + src/main/java/one/talon/model/ScimGroup.java | 168 + .../java/one/talon/model/ScimGroupMember.java | 129 + .../talon/model/ScimGroupsListResponse.java | 173 + .../talon/model/ScimSchemasListResponse.java | 8 +- ...ScimServiceProviderConfigResponseBulk.java | 16 +- ...imServiceProviderConfigResponseFilter.java | 8 +- .../talon/model/ScimUsersListResponse.java | 8 +- src/main/java/one/talon/model/Session.java | 8 +- ...tDiscountPerAdditionalCostEffectProps.java | 8 +- ...ntPerAdditionalCostPerItemEffectProps.java | 8 +- .../model/SetDiscountPerItemEffectProps.java | 8 +- src/main/java/one/talon/model/Store.java | 32 +- .../talon/model/StrikethroughChangedItem.java | 24 +- ...StrikethroughCustomEffectPerItemProps.java | 8 +- .../model/StrikethroughDebugResponse.java | 12 +- .../one/talon/model/StrikethroughEffect.java | 24 +- .../StrikethroughLabelingNotification.java | 24 +- .../one/talon/model/StrikethroughTrigger.java | 8 +- .../model/SummaryCampaignStoreBudget.java | 8 +- .../java/one/talon/model/TalangAttribute.java | 8 +- .../java/one/talon/model/TemplateArgDef.java | 8 +- .../java/one/talon/model/TemplateDef.java | 20 +- src/main/java/one/talon/model/Tier.java | 8 +- .../TierDowngradeNotificationPolicy.java | 8 +- .../model/TierUpgradeNotificationPolicy.java | 8 +- .../TierWillDowngradeNotificationPolicy.java | 8 +- .../TierWillDowngradeNotificationTrigger.java | 8 +- src/main/java/one/talon/model/TimePoint.java | 48 +- .../one/talon/model/UpdateAchievement.java | 10 +- .../one/talon/model/UpdateApplication.java | 16 +- .../talon/model/UpdateApplicationAPIKey.java | 8 +- .../one/talon/model/UpdateApplicationCIF.java | 16 +- .../java/one/talon/model/UpdateCampaign.java | 40 +- .../model/UpdateCampaignEvaluationGroup.java | 8 +- .../one/talon/model/UpdateCampaignGroup.java | 24 +- .../talon/model/UpdateCampaignTemplate.java | 26 +- .../java/one/talon/model/UpdateCatalog.java | 12 +- .../one/talon/model/UpdateCollection.java | 12 +- .../java/one/talon/model/UpdateCoupon.java | 18 +- .../one/talon/model/UpdateCouponBatch.java | 18 +- .../one/talon/model/UpdateLoyaltyProgram.java | 20 +- .../talon/model/UpdateLoyaltyProgramTier.java | 8 +- .../java/one/talon/model/UpdateReferral.java | 8 +- .../one/talon/model/UpdateReferralBatch.java | 8 +- src/main/java/one/talon/model/UpdateRole.java | 12 +- src/main/java/one/talon/model/UpdateUser.java | 12 +- src/main/java/one/talon/model/User.java | 32 +- src/main/java/one/talon/model/UserEntity.java | 8 +- src/main/java/one/talon/model/ValueMap.java | 24 +- src/main/java/one/talon/model/Webhook.java | 52 +- .../model/WebhookActivationLogEntry.java | 24 +- .../talon/model/WebhookAuthentication.java | 378 ++ .../model/WebhookAuthenticationBase.java | 201 + .../model/WebhookAuthenticationDataBasic.java | 126 + .../WebhookAuthenticationDataCustom.java | 106 + .../WebhookAuthenticationWebhookRef.java | 155 + .../java/one/talon/model/WebhookLogEntry.java | 24 +- ...WebhookWithOutgoingIntegrationDetails.java | 68 +- .../model/WillAwardGiveawayEffectProps.java | 8 +- .../one/talon/api/IntegrationApiTest.java | 58 +- .../java/one/talon/api/ManagementApiTest.java | 772 ++-- .../AddPriceAdjustmentCatalogActionTest.java | 62 + ...dPointsBalancesNotificationPolicyTest.java | 61 + .../java/one/talon/model/BindingTest.java | 25 + .../CampaignDeactivationRequestTest.java | 53 + ...dPointsBalancesNotificationPolicyTest.java | 61 + .../java/one/talon/model/CartItemTest.java | 43 + .../one/talon/model/CouponEntityTest.java | 60 + .../model/CustomerProfileEntityTest.java | 60 + .../one/talon/model/EffectEntityTest.java | 26 + src/test/java/one/talon/model/EffectTest.java | 26 + .../java/one/talon/model/EnvironmentTest.java | 9 + ...oyaltyPointsExpiryDateEffectPropsTest.java | 86 + .../talon/model/InlineResponse20048Test.java | 10 +- .../talon/model/InlineResponse20049Test.java | 10 +- .../talon/model/InlineResponse20050Test.java | 62 + .../talon/model/InlineResponse20051Test.java | 62 + ...ustomerProfileAudienceRequestItemTest.java | 67 + ...ionCustomerProfileAudienceRequestTest.java | 54 + .../model/IntegrationEventV2RequestTest.java | 8 + .../talon/model/NewPriceAdjustmentTest.java | 93 + .../one/talon/model/NewPriceTypeTest.java | 77 + .../java/one/talon/model/NewWebhookTest.java | 8 + .../java/one/talon/model/PriceDetailTest.java | 77 + .../java/one/talon/model/PriceTypeTest.java | 118 + .../one/talon/model/ScimBaseGroupTest.java | 62 + .../one/talon/model/ScimGroupMemberTest.java | 59 + .../java/one/talon/model/ScimGroupTest.java | 70 + .../model/ScimGroupsListResponseTest.java | 70 + .../model/WebhookAuthenticationBaseTest.java | 67 + .../WebhookAuthenticationDataBasicTest.java | 59 + .../WebhookAuthenticationDataCustomTest.java | 54 + .../model/WebhookAuthenticationTest.java | 119 + .../WebhookAuthenticationWebhookRefTest.java | 67 + .../java/one/talon/model/WebhookTest.java | 8 + ...ookWithOutgoingIntegrationDetailsTest.java | 8 + 728 files changed, 18070 insertions(+), 7892 deletions(-) create mode 100644 docs/AddPriceAdjustmentCatalogAction.md create mode 100644 docs/AddedDeductedPointsBalancesNotificationPolicy.md create mode 100644 docs/CampaignDeactivationRequest.md create mode 100644 docs/CardAddedDeductedPointsBalancesNotificationPolicy.md create mode 100644 docs/CouponEntity.md create mode 100644 docs/CustomerProfileEntity.md create mode 100644 docs/ExtendLoyaltyPointsExpiryDateEffectProps.md create mode 100644 docs/InlineResponse20050.md create mode 100644 docs/InlineResponse20051.md create mode 100644 docs/IntegrationCustomerProfileAudienceRequest.md create mode 100644 docs/IntegrationCustomerProfileAudienceRequestItem.md create mode 100644 docs/NewPriceAdjustment.md create mode 100644 docs/NewPriceType.md create mode 100644 docs/PriceDetail.md create mode 100644 docs/PriceType.md create mode 100644 docs/ScimBaseGroup.md create mode 100644 docs/ScimGroup.md create mode 100644 docs/ScimGroupMember.md create mode 100644 docs/ScimGroupsListResponse.md create mode 100644 docs/WebhookAuthentication.md create mode 100644 docs/WebhookAuthenticationBase.md create mode 100644 docs/WebhookAuthenticationDataBasic.md create mode 100644 docs/WebhookAuthenticationDataCustom.md create mode 100644 docs/WebhookAuthenticationWebhookRef.md create mode 100644 src/main/java/one/talon/model/AddPriceAdjustmentCatalogAction.java create mode 100644 src/main/java/one/talon/model/AddedDeductedPointsBalancesNotificationPolicy.java create mode 100644 src/main/java/one/talon/model/CampaignDeactivationRequest.java create mode 100644 src/main/java/one/talon/model/CardAddedDeductedPointsBalancesNotificationPolicy.java create mode 100644 src/main/java/one/talon/model/CouponEntity.java create mode 100644 src/main/java/one/talon/model/CustomerProfileEntity.java create mode 100644 src/main/java/one/talon/model/ExtendLoyaltyPointsExpiryDateEffectProps.java create mode 100644 src/main/java/one/talon/model/InlineResponse20050.java create mode 100644 src/main/java/one/talon/model/InlineResponse20051.java create mode 100644 src/main/java/one/talon/model/IntegrationCustomerProfileAudienceRequest.java create mode 100644 src/main/java/one/talon/model/IntegrationCustomerProfileAudienceRequestItem.java create mode 100644 src/main/java/one/talon/model/NewPriceAdjustment.java create mode 100644 src/main/java/one/talon/model/NewPriceType.java create mode 100644 src/main/java/one/talon/model/PriceDetail.java create mode 100644 src/main/java/one/talon/model/PriceType.java create mode 100644 src/main/java/one/talon/model/ScimBaseGroup.java create mode 100644 src/main/java/one/talon/model/ScimGroup.java create mode 100644 src/main/java/one/talon/model/ScimGroupMember.java create mode 100644 src/main/java/one/talon/model/ScimGroupsListResponse.java create mode 100644 src/main/java/one/talon/model/WebhookAuthentication.java create mode 100644 src/main/java/one/talon/model/WebhookAuthenticationBase.java create mode 100644 src/main/java/one/talon/model/WebhookAuthenticationDataBasic.java create mode 100644 src/main/java/one/talon/model/WebhookAuthenticationDataCustom.java create mode 100644 src/main/java/one/talon/model/WebhookAuthenticationWebhookRef.java create mode 100644 src/test/java/one/talon/model/AddPriceAdjustmentCatalogActionTest.java create mode 100644 src/test/java/one/talon/model/AddedDeductedPointsBalancesNotificationPolicyTest.java create mode 100644 src/test/java/one/talon/model/CampaignDeactivationRequestTest.java create mode 100644 src/test/java/one/talon/model/CardAddedDeductedPointsBalancesNotificationPolicyTest.java create mode 100644 src/test/java/one/talon/model/CouponEntityTest.java create mode 100644 src/test/java/one/talon/model/CustomerProfileEntityTest.java create mode 100644 src/test/java/one/talon/model/ExtendLoyaltyPointsExpiryDateEffectPropsTest.java create mode 100644 src/test/java/one/talon/model/InlineResponse20050Test.java create mode 100644 src/test/java/one/talon/model/InlineResponse20051Test.java create mode 100644 src/test/java/one/talon/model/IntegrationCustomerProfileAudienceRequestItemTest.java create mode 100644 src/test/java/one/talon/model/IntegrationCustomerProfileAudienceRequestTest.java create mode 100644 src/test/java/one/talon/model/NewPriceAdjustmentTest.java create mode 100644 src/test/java/one/talon/model/NewPriceTypeTest.java create mode 100644 src/test/java/one/talon/model/PriceDetailTest.java create mode 100644 src/test/java/one/talon/model/PriceTypeTest.java create mode 100644 src/test/java/one/talon/model/ScimBaseGroupTest.java create mode 100644 src/test/java/one/talon/model/ScimGroupMemberTest.java create mode 100644 src/test/java/one/talon/model/ScimGroupTest.java create mode 100644 src/test/java/one/talon/model/ScimGroupsListResponseTest.java create mode 100644 src/test/java/one/talon/model/WebhookAuthenticationBaseTest.java create mode 100644 src/test/java/one/talon/model/WebhookAuthenticationDataBasicTest.java create mode 100644 src/test/java/one/talon/model/WebhookAuthenticationDataCustomTest.java create mode 100644 src/test/java/one/talon/model/WebhookAuthenticationTest.java create mode 100644 src/test/java/one/talon/model/WebhookAuthenticationWebhookRefTest.java diff --git a/README.md b/README.md index fcad1c4e..a4ed2a52 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ If you use Maven, we also host [Maven Artifacts](https://github.com/talon-one/ma Building the API client library requires: -1. Java 21+ +1. Java 1.7+ 2. Maven/Gradle ## Installation @@ -35,7 +35,7 @@ Add this dependency to your project's POM: one.talon talon-one-client - 12.0.0 + 0.0.0 compile ``` @@ -45,7 +45,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "one.talon:talon-one-client:12.0.0" +compile "one.talon:talon-one-client:0.0.0" ``` ### Others @@ -96,7 +96,7 @@ public class TalonApiTest { CartItem cartItem = new CartItem(); cartItem.setName("Hawaiian Pizza"); cartItem.setSku("pizza-x"); - cartItem.setQuantity(1L); + cartItem.setQuantity(1); cartItem.setPrice(new java.math.BigDecimal("5.5")); // Creating a customer session of V2 @@ -176,7 +176,7 @@ public class TalonApiTest { try { // Calling `getApplication` function with the desired id (7) - Application application = mApi.getApplication(7L); + Application application = mApi.getApplication(7); System.out.println(application.toString()); } catch (Exception e) { System.out.println(e); @@ -232,6 +232,7 @@ Class | Method | HTTP request | Description *ManagementApi* | [**createAttribute**](docs/ManagementApi.md#createAttribute) | **POST** /v1/attributes | Create custom attribute *ManagementApi* | [**createBatchLoyaltyCards**](docs/ManagementApi.md#createBatchLoyaltyCards) | **POST** /v1/loyalty_programs/{loyaltyProgramId}/cards/batch | Create loyalty cards *ManagementApi* | [**createCampaignFromTemplate**](docs/ManagementApi.md#createCampaignFromTemplate) | **POST** /v1/applications/{applicationId}/create_campaign_from_template | Create campaign from campaign template +*ManagementApi* | [**createCampaignStoreBudget**](docs/ManagementApi.md#createCampaignStoreBudget) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/stores/budgets | Create campaign store budget *ManagementApi* | [**createCollection**](docs/ManagementApi.md#createCollection) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/collections | Create campaign-level collection *ManagementApi* | [**createCoupons**](docs/ManagementApi.md#createCoupons) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons | Create coupons *ManagementApi* | [**createCouponsAsync**](docs/ManagementApi.md#createCouponsAsync) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons_async | Create coupons asynchronously @@ -247,6 +248,7 @@ Class | Method | HTTP request | Description *ManagementApi* | [**deleteAccountCollection**](docs/ManagementApi.md#deleteAccountCollection) | **DELETE** /v1/collections/{collectionId} | Delete account-level collection *ManagementApi* | [**deleteAchievement**](docs/ManagementApi.md#deleteAchievement) | **DELETE** /v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId} | Delete achievement *ManagementApi* | [**deleteCampaign**](docs/ManagementApi.md#deleteCampaign) | **DELETE** /v1/applications/{applicationId}/campaigns/{campaignId} | Delete campaign +*ManagementApi* | [**deleteCampaignStoreBudgets**](docs/ManagementApi.md#deleteCampaignStoreBudgets) | **DELETE** /v1/applications/{applicationId}/campaigns/{campaignId}/stores/budgets | Delete campaign store budgets *ManagementApi* | [**deleteCollection**](docs/ManagementApi.md#deleteCollection) | **DELETE** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId} | Delete campaign-level collection *ManagementApi* | [**deleteCoupon**](docs/ManagementApi.md#deleteCoupon) | **DELETE** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons/{couponId} | Delete coupon *ManagementApi* | [**deleteCoupons**](docs/ManagementApi.md#deleteCoupons) | **DELETE** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons | Delete coupons @@ -260,6 +262,7 @@ Class | Method | HTTP request | Description *ManagementApi* | [**exportAccountCollectionItems**](docs/ManagementApi.md#exportAccountCollectionItems) | **GET** /v1/collections/{collectionId}/export | Export account-level collection's items *ManagementApi* | [**exportAchievements**](docs/ManagementApi.md#exportAchievements) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId}/export | Export achievement customer data *ManagementApi* | [**exportAudiencesMemberships**](docs/ManagementApi.md#exportAudiencesMemberships) | **GET** /v1/audiences/{audienceId}/memberships/export | Export audience members +*ManagementApi* | [**exportCampaignStoreBudgets**](docs/ManagementApi.md#exportCampaignStoreBudgets) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/stores/budgets/export | Export campaign store budgets *ManagementApi* | [**exportCampaignStores**](docs/ManagementApi.md#exportCampaignStores) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/stores/export | Export stores *ManagementApi* | [**exportCollectionItems**](docs/ManagementApi.md#exportCollectionItems) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/export | Export campaign-level collection's items *ManagementApi* | [**exportCoupons**](docs/ManagementApi.md#exportCoupons) | **GET** /v1/applications/{applicationId}/export_coupons | Export coupons @@ -341,6 +344,7 @@ Class | Method | HTTP request | Description *ManagementApi* | [**importAccountCollection**](docs/ManagementApi.md#importAccountCollection) | **POST** /v1/collections/{collectionId}/import | Import data into existing account-level collection *ManagementApi* | [**importAllowedList**](docs/ManagementApi.md#importAllowedList) | **POST** /v1/attributes/{attributeId}/allowed_list/import | Import allowed values for attribute *ManagementApi* | [**importAudiencesMemberships**](docs/ManagementApi.md#importAudiencesMemberships) | **POST** /v1/audiences/{audienceId}/memberships/import | Import audience members +*ManagementApi* | [**importCampaignStoreBudget**](docs/ManagementApi.md#importCampaignStoreBudget) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/stores/budgets/import | Import campaign store budgets *ManagementApi* | [**importCampaignStores**](docs/ManagementApi.md#importCampaignStores) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/stores/import | Import stores *ManagementApi* | [**importCollection**](docs/ManagementApi.md#importCollection) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/import | Import data into existing campaign-level collection *ManagementApi* | [**importCoupons**](docs/ManagementApi.md#importCoupons) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/import_coupons | Import coupons @@ -353,6 +357,7 @@ Class | Method | HTTP request | Description *ManagementApi* | [**listAccountCollections**](docs/ManagementApi.md#listAccountCollections) | **GET** /v1/collections | List collections in account *ManagementApi* | [**listAchievements**](docs/ManagementApi.md#listAchievements) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/achievements | List achievements *ManagementApi* | [**listAllRolesV2**](docs/ManagementApi.md#listAllRolesV2) | **GET** /v2/roles | List roles +*ManagementApi* | [**listCampaignStoreBudgetLimits**](docs/ManagementApi.md#listCampaignStoreBudgetLimits) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/stores/budgets | List campaign store budget limits *ManagementApi* | [**listCatalogItems**](docs/ManagementApi.md#listCatalogItems) | **GET** /v1/catalogs/{catalogId}/items | List items in a catalog *ManagementApi* | [**listCollections**](docs/ManagementApi.md#listCollections) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/collections | List collections in campaign *ManagementApi* | [**listCollectionsInApplication**](docs/ManagementApi.md#listCollectionsInApplication) | **GET** /v1/applications/{applicationId}/collections | List collections in Application @@ -360,17 +365,24 @@ Class | Method | HTTP request | Description *ManagementApi* | [**oktaEventHandlerChallenge**](docs/ManagementApi.md#oktaEventHandlerChallenge) | **GET** /v1/provisioning/okta | Validate Okta API ownership *ManagementApi* | [**removeLoyaltyPoints**](docs/ManagementApi.md#removeLoyaltyPoints) | **PUT** /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/deduct_points | Deduct points from customer profile *ManagementApi* | [**resetPassword**](docs/ManagementApi.md#resetPassword) | **POST** /v1/reset_password | Reset password +*ManagementApi* | [**scimCreateGroup**](docs/ManagementApi.md#scimCreateGroup) | **POST** /v1/provisioning/scim/Groups | Create SCIM group *ManagementApi* | [**scimCreateUser**](docs/ManagementApi.md#scimCreateUser) | **POST** /v1/provisioning/scim/Users | Create SCIM user +*ManagementApi* | [**scimDeleteGroup**](docs/ManagementApi.md#scimDeleteGroup) | **DELETE** /v1/provisioning/scim/Groups/{groupId} | Delete SCIM group *ManagementApi* | [**scimDeleteUser**](docs/ManagementApi.md#scimDeleteUser) | **DELETE** /v1/provisioning/scim/Users/{userId} | Delete SCIM user +*ManagementApi* | [**scimGetGroup**](docs/ManagementApi.md#scimGetGroup) | **GET** /v1/provisioning/scim/Groups/{groupId} | Get SCIM group +*ManagementApi* | [**scimGetGroups**](docs/ManagementApi.md#scimGetGroups) | **GET** /v1/provisioning/scim/Groups | List SCIM groups *ManagementApi* | [**scimGetResourceTypes**](docs/ManagementApi.md#scimGetResourceTypes) | **GET** /v1/provisioning/scim/ResourceTypes | List supported SCIM resource types *ManagementApi* | [**scimGetSchemas**](docs/ManagementApi.md#scimGetSchemas) | **GET** /v1/provisioning/scim/Schemas | List supported SCIM schemas *ManagementApi* | [**scimGetServiceProviderConfig**](docs/ManagementApi.md#scimGetServiceProviderConfig) | **GET** /v1/provisioning/scim/ServiceProviderConfig | Get SCIM service provider configuration *ManagementApi* | [**scimGetUser**](docs/ManagementApi.md#scimGetUser) | **GET** /v1/provisioning/scim/Users/{userId} | Get SCIM user *ManagementApi* | [**scimGetUsers**](docs/ManagementApi.md#scimGetUsers) | **GET** /v1/provisioning/scim/Users | List SCIM users +*ManagementApi* | [**scimPatchGroup**](docs/ManagementApi.md#scimPatchGroup) | **PATCH** /v1/provisioning/scim/Groups/{groupId} | Update SCIM group attributes *ManagementApi* | [**scimPatchUser**](docs/ManagementApi.md#scimPatchUser) | **PATCH** /v1/provisioning/scim/Users/{userId} | Update SCIM user attributes +*ManagementApi* | [**scimReplaceGroupAttributes**](docs/ManagementApi.md#scimReplaceGroupAttributes) | **PUT** /v1/provisioning/scim/Groups/{groupId} | Update SCIM group *ManagementApi* | [**scimReplaceUserAttributes**](docs/ManagementApi.md#scimReplaceUserAttributes) | **PUT** /v1/provisioning/scim/Users/{userId} | Update SCIM user *ManagementApi* | [**searchCouponsAdvancedApplicationWideWithoutTotalCount**](docs/ManagementApi.md#searchCouponsAdvancedApplicationWideWithoutTotalCount) | **POST** /v1/applications/{applicationId}/coupons_search_advanced/no_total | List coupons that match the given attributes (without total count) *ManagementApi* | [**searchCouponsAdvancedWithoutTotalCount**](docs/ManagementApi.md#searchCouponsAdvancedWithoutTotalCount) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons_search_advanced/no_total | List coupons that match the given attributes in campaign (without total count) +*ManagementApi* | [**summarizeCampaignStoreBudget**](docs/ManagementApi.md#summarizeCampaignStoreBudget) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/stores/budgets/summary | Get summary of campaign store budgets *ManagementApi* | [**transferLoyaltyCard**](docs/ManagementApi.md#transferLoyaltyCard) | **PUT** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/transfer | Transfer card data *ManagementApi* | [**updateAccountCollection**](docs/ManagementApi.md#updateAccountCollection) | **PUT** /v1/collections/{collectionId} | Update account-level collection *ManagementApi* | [**updateAchievement**](docs/ManagementApi.md#updateAchievement) | **PUT** /v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId} | Update achievement @@ -413,7 +425,9 @@ Class | Method | HTTP request | Description - [AddItemCatalogAction](docs/AddItemCatalogAction.md) - [AddLoyaltyPoints](docs/AddLoyaltyPoints.md) - [AddLoyaltyPointsEffectProps](docs/AddLoyaltyPointsEffectProps.md) +- [AddPriceAdjustmentCatalogAction](docs/AddPriceAdjustmentCatalogAction.md) - [AddToAudienceEffectProps](docs/AddToAudienceEffectProps.md) +- [AddedDeductedPointsBalancesNotificationPolicy](docs/AddedDeductedPointsBalancesNotificationPolicy.md) - [AddedDeductedPointsNotificationPolicy](docs/AddedDeductedPointsNotificationPolicy.md) - [AdditionalCampaignProperties](docs/AdditionalCampaignProperties.md) - [AdditionalCost](docs/AdditionalCost.md) @@ -472,6 +486,7 @@ Class | Method | HTTP request | Description - [CampaignCollectionWithoutPayload](docs/CampaignCollectionWithoutPayload.md) - [CampaignCopy](docs/CampaignCopy.md) - [CampaignCreatedNotification](docs/CampaignCreatedNotification.md) +- [CampaignDeactivationRequest](docs/CampaignDeactivationRequest.md) - [CampaignDeletedNotification](docs/CampaignDeletedNotification.md) - [CampaignDetail](docs/CampaignDetail.md) - [CampaignEditedNotification](docs/CampaignEditedNotification.md) @@ -497,6 +512,7 @@ Class | Method | HTTP request | Description - [CampaignTemplateCouponReservationSettings](docs/CampaignTemplateCouponReservationSettings.md) - [CampaignTemplateParams](docs/CampaignTemplateParams.md) - [CampaignVersions](docs/CampaignVersions.md) +- [CardAddedDeductedPointsBalancesNotificationPolicy](docs/CardAddedDeductedPointsBalancesNotificationPolicy.md) - [CardAddedDeductedPointsNotificationPolicy](docs/CardAddedDeductedPointsNotificationPolicy.md) - [CardExpiringPointsNotificationPolicy](docs/CardExpiringPointsNotificationPolicy.md) - [CardExpiringPointsNotificationTrigger](docs/CardExpiringPointsNotificationTrigger.md) @@ -523,6 +539,7 @@ Class | Method | HTTP request | Description - [CouponCreationJob](docs/CouponCreationJob.md) - [CouponDeletionFilters](docs/CouponDeletionFilters.md) - [CouponDeletionJob](docs/CouponDeletionJob.md) +- [CouponEntity](docs/CouponEntity.md) - [CouponLimitConfigs](docs/CouponLimitConfigs.md) - [CouponRejectionReason](docs/CouponRejectionReason.md) - [CouponReservations](docs/CouponReservations.md) @@ -542,6 +559,7 @@ Class | Method | HTTP request | Description - [CustomerProfile](docs/CustomerProfile.md) - [CustomerProfileAudienceRequest](docs/CustomerProfileAudienceRequest.md) - [CustomerProfileAudienceRequestItem](docs/CustomerProfileAudienceRequestItem.md) +- [CustomerProfileEntity](docs/CustomerProfileEntity.md) - [CustomerProfileIntegrationRequestV2](docs/CustomerProfileIntegrationRequestV2.md) - [CustomerProfileIntegrationResponseV2](docs/CustomerProfileIntegrationResponseV2.md) - [CustomerProfileSearchQuery](docs/CustomerProfileSearchQuery.md) @@ -571,6 +589,7 @@ Class | Method | HTTP request | Description - [ExpiringPointsNotificationPolicy](docs/ExpiringPointsNotificationPolicy.md) - [ExpiringPointsNotificationTrigger](docs/ExpiringPointsNotificationTrigger.md) - [Export](docs/Export.md) +- [ExtendLoyaltyPointsExpiryDateEffectProps](docs/ExtendLoyaltyPointsExpiryDateEffectProps.md) - [FeatureFlag](docs/FeatureFlag.md) - [FeaturesFeed](docs/FeaturesFeed.md) - [FuncArgDef](docs/FuncArgDef.md) @@ -634,12 +653,16 @@ Class | Method | HTTP request | Description - [InlineResponse20048](docs/InlineResponse20048.md) - [InlineResponse20049](docs/InlineResponse20049.md) - [InlineResponse2005](docs/InlineResponse2005.md) +- [InlineResponse20050](docs/InlineResponse20050.md) +- [InlineResponse20051](docs/InlineResponse20051.md) - [InlineResponse2006](docs/InlineResponse2006.md) - [InlineResponse2007](docs/InlineResponse2007.md) - [InlineResponse2008](docs/InlineResponse2008.md) - [InlineResponse2009](docs/InlineResponse2009.md) - [InlineResponse201](docs/InlineResponse201.md) - [IntegrationCoupon](docs/IntegrationCoupon.md) +- [IntegrationCustomerProfileAudienceRequest](docs/IntegrationCustomerProfileAudienceRequest.md) +- [IntegrationCustomerProfileAudienceRequestItem](docs/IntegrationCustomerProfileAudienceRequestItem.md) - [IntegrationCustomerSessionResponse](docs/IntegrationCustomerSessionResponse.md) - [IntegrationEntity](docs/IntegrationEntity.md) - [IntegrationEvent](docs/IntegrationEvent.md) @@ -753,6 +776,8 @@ Class | Method | HTTP request | Description - [NewPassword](docs/NewPassword.md) - [NewPasswordEmail](docs/NewPasswordEmail.md) - [NewPicklist](docs/NewPicklist.md) +- [NewPriceAdjustment](docs/NewPriceAdjustment.md) +- [NewPriceType](docs/NewPriceType.md) - [NewReferral](docs/NewReferral.md) - [NewReferralsForMultipleAdvocates](docs/NewReferralsForMultipleAdvocates.md) - [NewReturn](docs/NewReturn.md) @@ -787,6 +812,8 @@ Class | Method | HTTP request | Description - [PatchManyItemsCatalogAction](docs/PatchManyItemsCatalogAction.md) - [PendingPointsNotificationPolicy](docs/PendingPointsNotificationPolicy.md) - [Picklist](docs/Picklist.md) +- [PriceDetail](docs/PriceDetail.md) +- [PriceType](docs/PriceType.md) - [Product](docs/Product.md) - [ProductSearchMatch](docs/ProductSearchMatch.md) - [ProductUnitAnalytics](docs/ProductUnitAnalytics.md) @@ -835,8 +862,12 @@ Class | Method | HTTP request | Description - [SamlConnectionInternal](docs/SamlConnectionInternal.md) - [SamlConnectionMetadata](docs/SamlConnectionMetadata.md) - [SamlLoginEndpoint](docs/SamlLoginEndpoint.md) +- [ScimBaseGroup](docs/ScimBaseGroup.md) - [ScimBaseUser](docs/ScimBaseUser.md) - [ScimBaseUserName](docs/ScimBaseUserName.md) +- [ScimGroup](docs/ScimGroup.md) +- [ScimGroupMember](docs/ScimGroupMember.md) +- [ScimGroupsListResponse](docs/ScimGroupsListResponse.md) - [ScimNewUser](docs/ScimNewUser.md) - [ScimPatchOperation](docs/ScimPatchOperation.md) - [ScimPatchRequest](docs/ScimPatchRequest.md) @@ -916,6 +947,11 @@ Class | Method | HTTP request | Description - [ValueMap](docs/ValueMap.md) - [Webhook](docs/Webhook.md) - [WebhookActivationLogEntry](docs/WebhookActivationLogEntry.md) +- [WebhookAuthentication](docs/WebhookAuthentication.md) +- [WebhookAuthenticationBase](docs/WebhookAuthenticationBase.md) +- [WebhookAuthenticationDataBasic](docs/WebhookAuthenticationDataBasic.md) +- [WebhookAuthenticationDataCustom](docs/WebhookAuthenticationDataCustom.md) +- [WebhookAuthenticationWebhookRef](docs/WebhookAuthenticationWebhookRef.md) - [WebhookLogEntry](docs/WebhookLogEntry.md) - [WebhookWithOutgoingIntegrationDetails](docs/WebhookWithOutgoingIntegrationDetails.md) - [WillAwardGiveawayEffectProps](docs/WillAwardGiveawayEffectProps.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 2129491e..a1734aeb 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -153,6 +153,9 @@ tags: Represents a session used for authentication purposes. Create one with the [Create session](#operation/createSession) endpoint. name: Sessions +- description: Represents store budgets. You can set a store budget to limit the total + amount an individual store can spend in a campaign. + name: Store budgets - description: | Represents physical or digital stores, branches, and franchises. name: Stores @@ -209,41 +212,33 @@ paths: - integration x-accepts: application/json put: - description: | - Update or create a [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). - The endpoint responds with the potential promotion rule [effects](https://docs.talon.one/docs/dev/integration-api/api-effects) that match the current cart. - For example, use this endpoint to share the contents of a customer's cart with Talon.One. - - **Note:** The currency for the session and the cart items in the session is the currency set for the - Application that owns this session. - - ### Session management - - To use this endpoint, start by learning about [customer sessions](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions) - and their states and refer to the `state` parameter documentation the request body schema docs below. - - ### Sessions and customer profiles - - - To link a session to a customer profile, set the `profileId` parameter in the request body to a customer profile's `integrationId`. - - While you can create an anonymous session with `profileId=""`, we recommend you use a guest ID instead. - - A profile can be linked to simultaneous sessions in different Applications. Either: - - Use unique session integration IDs or, - - Use the same session integration ID across all of the Applications. - - **Note:** If the specified profile does not exist, an empty profile is **created automatically**. - You can update it with [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2). - -
-

Performance tips

- - - Updating a customer session returns a response with the new integration state. Use the `responseContent` property to save yourself extra API calls. - For example, you can get the customer profile details directly without extra requests. - - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). -
- - For more information, see: - - The introductory video in [Getting started](https://docs.talon.one/docs/dev/getting-started/overview). - - The [integration tutorial](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one). + description: "Update or create a [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions).\n\ + The endpoint responds with the potential promotion rule [effects](https://docs.talon.one/docs/dev/integration-api/api-effects)\ + \ that match the current cart.\nFor example, use this endpoint to share the\ + \ contents of a customer's cart with Talon.One.\n\n**Note:** \n- The currency\ + \ for the session and the cart items in it is the currency set for the Application\ + \ linked to this session. - [Archived campaigns](https://docs.talon.one/docs/product/campaigns/managing-campaigns#archiving-a-campaign)\ + \ are not considered for rule evaluation.\n\n### Session management\n\nTo\ + \ use this endpoint, start by learning about [customer sessions](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions)\n\ + and their states and refer to the `state` parameter documentation the request\ + \ body schema docs below.\n\n### Sessions and customer profiles\n\n- To link\ + \ a session to a customer profile, set the `profileId` parameter in the request\ + \ body to a customer profile's `integrationId`.\n- While you can create an\ + \ anonymous session with `profileId=\"\"`, we recommend you use a guest ID\ + \ instead.\n- A profile can be linked to simultaneous sessions in different\ + \ Applications. Either:\n - Use unique session integration IDs or,\n - Use\ + \ the same session integration ID across all of the Applications.\n\n**Note:**\ + \ If the specified profile does not exist, an empty profile is **created automatically**.\n\ + \ You can update it with [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2).\n\ + \n
\n

Performance tips

\n\ + \n - Updating a customer session returns a response with the new integration\ + \ state. Use the `responseContent` property to save yourself extra API calls.\n\ + \ For example, you can get the customer profile details directly without\ + \ extra requests.\n - We recommend sending requests sequentially. See [Managing\ + \ parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests).\n\ +
\n\nFor more information, see:\n- The introductory video in [Getting\ + \ started](https://docs.talon.one/docs/dev/getting-started/overview).\n- The\ + \ [integration tutorial](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one).\n" operationId: updateCustomerSessionV2 parameters: - description: | @@ -465,7 +460,7 @@ paths: You can use this endpoint to: - Set attributes on the given customer profile. Ensure you create the attributes in the Campaign Manager, first. - Modify the audience the customer profile is a member of. - + **Note:** [Archived campaigns](https://docs.talon.one/docs/product/campaigns/managing-campaigns#archiving-a-campaign) are not considered in rule evaluation when `runRuleEngine` is `true`.

Performance tips

@@ -687,7 +682,6 @@ paths: name: audienceId required: true schema: - format: int64 type: integer responses: "204": @@ -729,7 +723,6 @@ paths: name: audienceId required: true schema: - format: int64 type: integer requestBody: content: @@ -776,7 +769,6 @@ paths: name: audienceId required: true schema: - format: int64 type: integer responses: "204": @@ -857,7 +849,6 @@ paths: name: audienceId required: true schema: - format: int64 type: integer requestBody: content: @@ -910,7 +901,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer - description: | Identifier of the loyalty card. You can get the identifier with @@ -981,9 +971,10 @@ paths:

Important

- 1. `profileId` is required even though the schema does not say it. + 1. `profileId` is required even though the schema does not specify it. 1. If the customer profile ID is new, a new profile is automatically created but the `customer_profile_created` [built-in event ](https://docs.talon.one/docs/dev/concepts/entities/events) is **not** triggered. 1. We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). + 1. [Archived campaigns](https://docs.talon.one/docs/product/campaigns/managing-campaigns#archiving-a-campaign) are not considered in rule evaluation.
operationId: trackEventV2 @@ -1501,7 +1492,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -1510,7 +1500,6 @@ paths: in: query name: skip schema: - format: int64 type: integer responses: "200": @@ -1566,7 +1555,6 @@ paths: name: achievementId required: true schema: - format: int64 type: integer - description: | Filter by customer progress status in the achievement. @@ -1601,7 +1589,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -1610,7 +1597,6 @@ paths: in: query name: skip schema: - format: int64 type: integer responses: "200": @@ -1657,7 +1643,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer - description: | Identifier of the loyalty card. You can get the identifier with @@ -1742,7 +1727,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer - description: | The integration identifier for this customer profile. Must be: @@ -1837,7 +1821,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer - description: | Identifier of the loyalty card. You can get the identifier with @@ -1899,7 +1882,6 @@ paths: name: pageSize schema: default: 50 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -1908,7 +1890,6 @@ paths: in: query name: skip schema: - format: int64 type: integer responses: "200": @@ -1959,7 +1940,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer - description: | The integration identifier for this customer profile. Must be: @@ -2019,7 +1999,6 @@ paths: name: pageSize schema: default: 50 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -2028,7 +2007,6 @@ paths: in: query name: skip schema: - format: int64 type: integer responses: "200": @@ -2079,7 +2057,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer - description: | Identifier of the loyalty card. You can get the identifier with @@ -2114,7 +2091,6 @@ paths: name: pageSize schema: default: 50 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -2123,7 +2099,6 @@ paths: in: query name: skip schema: - format: int64 type: integer responses: "200": @@ -2174,7 +2149,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer - description: | The integration identifier for this customer profile. Must be: @@ -2207,7 +2181,6 @@ paths: name: pageSize schema: default: 50 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -2216,7 +2189,6 @@ paths: in: query name: skip schema: - format: int64 type: integer responses: "200": @@ -2259,7 +2231,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -2268,7 +2239,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -2300,7 +2270,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer responses: "200": @@ -2324,7 +2293,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -2333,7 +2301,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -2349,7 +2316,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: | Filter results by the state of the campaign. @@ -2404,19 +2370,16 @@ paths: in: query name: campaignGroupId schema: - format: int64 type: integer - description: The ID of the campaign template this campaign was created from. in: query name: templateId schema: - format: int64 type: integer - description: Filter results to campaigns linked to the specified store ID. in: query name: storeId schema: - format: int64 type: integer responses: "200": @@ -2446,7 +2409,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -2454,7 +2416,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer responses: "204": @@ -2474,7 +2435,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -2482,7 +2442,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer responses: "200": @@ -2508,7 +2467,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -2516,7 +2474,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer requestBody: content: @@ -2549,7 +2506,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -2557,7 +2513,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer requestBody: content: @@ -2590,7 +2545,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -2599,7 +2553,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -2615,7 +2568,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: | Filter results by the state of the campaign. @@ -2670,7 +2622,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -2679,7 +2630,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -2695,7 +2645,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -2703,7 +2652,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer responses: "200": @@ -2727,7 +2675,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -2735,14 +2682,12 @@ paths: name: campaignId required: true schema: - format: int64 type: integer - description: The ID of the ruleset. in: path name: rulesetId required: true schema: - format: int64 type: integer responses: "200": @@ -2766,7 +2711,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -2774,7 +2718,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer - description: Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric @@ -2863,7 +2806,6 @@ paths: in: query name: referralId schema: - format: int64 type: integer - description: | Filter results by match with a profile ID specified in the coupon's `RecipientIntegrationId` field. @@ -2907,7 +2849,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -2915,7 +2856,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer requestBody: content: @@ -2966,7 +2906,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -2974,7 +2913,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer requestBody: content: @@ -3013,7 +2951,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -3021,7 +2958,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer requestBody: content: @@ -3060,7 +2996,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -3068,7 +3003,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer requestBody: content: @@ -3102,7 +3036,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -3110,7 +3043,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer requestBody: content: @@ -3144,7 +3076,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -3153,7 +3084,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -3169,7 +3099,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -3177,7 +3106,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer - description: Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric @@ -3237,7 +3165,6 @@ paths: in: query name: referralId schema: - format: int64 type: integer - description: Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. @@ -3318,7 +3245,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -3326,7 +3252,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer - description: | The internal ID of the coupon code. You can find this value in the `id` property from the @@ -3362,7 +3287,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -3370,7 +3294,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer - description: | The internal ID of the coupon code. You can find this value in the `id` property from the @@ -3417,7 +3340,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -3426,7 +3348,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -3442,7 +3363,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -3450,7 +3370,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer - description: Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric @@ -3499,7 +3418,6 @@ paths: in: query name: referralId schema: - format: int64 type: integer - description: Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. @@ -3556,7 +3474,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -3565,7 +3482,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -3581,7 +3497,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric @@ -3630,7 +3545,6 @@ paths: in: query name: referralId schema: - format: int64 type: integer - description: Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. @@ -3701,7 +3615,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -3709,7 +3622,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer - description: The ID of the referral code. in: path @@ -3735,7 +3647,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -3743,7 +3654,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer - description: The ID of the referral code. in: path @@ -3781,7 +3691,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -3790,7 +3699,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -3806,7 +3714,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -3814,7 +3721,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer - description: Filter results performing case-insensitive matching against the referral code. Both the code and the query are folded to remove all non-alpha-numeric @@ -3885,7 +3791,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -3894,7 +3799,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -3925,7 +3829,6 @@ paths: name: campaignGroupId required: true schema: - format: int64 type: integer responses: "200": @@ -3948,7 +3851,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -3957,7 +3859,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -3992,7 +3893,6 @@ paths: in: query name: userId schema: - format: int64 type: integer responses: "200": @@ -4021,7 +3921,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer requestBody: content: @@ -4075,7 +3974,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer responses: "200": @@ -4105,7 +4003,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer - description: The ID of the subledger by which we filter the data. in: query @@ -4202,8 +4099,15 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer + - description: | + Indicates whether the points import triggers notifications about its effects. For example, a notification is sent if the import upgrades a customer's tier or offsets their negative points balance. + + This parameter is optional and defaults to `true`. + in: query + name: notificationsEnabled + schema: + type: boolean requestBody: content: multipart/form-data: @@ -4266,7 +4170,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer requestBody: content: @@ -4637,7 +4540,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer responses: "200": @@ -4782,7 +4684,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer - description: | Filter results by loyalty transaction type: @@ -4831,7 +4732,6 @@ paths: name: pageSize schema: default: 50 - format: int64 maximum: 50 minimum: 1 type: integer @@ -4840,7 +4740,6 @@ paths: in: query name: skip schema: - format: int64 type: integer responses: "200": @@ -4900,7 +4799,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer requestBody: content: @@ -4955,7 +4853,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer requestBody: content: @@ -5020,7 +4917,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer - description: | Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. @@ -5069,7 +4965,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -5078,7 +4973,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -5095,7 +4989,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer - description: The card code by which to filter loyalty cards in the response. in: query @@ -5107,7 +5000,6 @@ paths: in: query name: profileId schema: - format: int64 minimum: 1 type: integer - description: Filter results by loyalty card batch ID. @@ -5156,7 +5048,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer requestBody: content: @@ -5217,7 +5108,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer - description: Filter results by loyalty card batch ID. in: query @@ -5268,7 +5158,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer - description: | Identifier of the loyalty card. You can get the identifier with @@ -5310,7 +5199,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer - description: | Identifier of the loyalty card. You can get the identifier with @@ -5362,7 +5250,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer - description: | Identifier of the loyalty card. You can get the identifier with @@ -5424,7 +5311,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer - description: | Identifier of the loyalty card. You can get the identifier with @@ -5483,7 +5369,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer - description: | Identifier of the loyalty card. You can get the identifier with @@ -5544,7 +5429,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer - description: | Identifier of the loyalty card. You can get the identifier with @@ -5626,7 +5510,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer - description: | Identifier of the loyalty card. You can get the identifier with @@ -5666,7 +5549,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -5675,7 +5557,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: The ID of the subledger by which we filter the data. in: query @@ -5723,7 +5604,6 @@ paths: name: loyaltyProgramId required: true schema: - format: int64 type: integer - description: | Identifier of the loyalty card. You can get the identifier with @@ -5807,7 +5687,6 @@ paths: name: poolId required: true schema: - format: int64 type: integer requestBody: content: @@ -5858,7 +5737,6 @@ paths: name: poolId required: true schema: - format: int64 type: integer - description: Timestamp that filters the results to only contain giveaways created before this date. Must be an RFC3339 timestamp string. @@ -5902,7 +5780,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -5911,7 +5788,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -6016,7 +5892,6 @@ paths: name: collectionId required: true schema: - format: int64 type: integer responses: "204": @@ -6042,7 +5917,6 @@ paths: name: collectionId required: true schema: - format: int64 type: integer responses: "200": @@ -6072,7 +5946,6 @@ paths: name: collectionId required: true schema: - format: int64 type: integer requestBody: content: @@ -6125,7 +5998,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -6134,7 +6006,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. @@ -6142,7 +6013,6 @@ paths: name: collectionId required: true schema: - format: int64 type: integer responses: "200": @@ -6172,14 +6042,12 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The number of items in the response. in: query name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -6188,7 +6056,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -6240,7 +6107,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -6248,14 +6114,12 @@ paths: name: campaignId required: true schema: - format: int64 type: integer - description: The number of items in the response. in: query name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -6264,7 +6128,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -6315,7 +6178,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -6323,7 +6185,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer requestBody: content: @@ -6356,7 +6217,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -6364,7 +6224,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer - description: The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. @@ -6372,7 +6231,6 @@ paths: name: collectionId required: true schema: - format: int64 type: integer responses: "204": @@ -6398,7 +6256,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -6406,7 +6263,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer - description: The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. @@ -6414,7 +6270,6 @@ paths: name: collectionId required: true schema: - format: int64 type: integer responses: "200": @@ -6443,7 +6298,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -6451,7 +6305,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer - description: The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. @@ -6459,7 +6312,6 @@ paths: name: collectionId required: true schema: - format: int64 type: integer requestBody: content: @@ -6519,7 +6371,6 @@ paths: name: collectionId required: true schema: - format: int64 type: integer requestBody: content: @@ -6586,7 +6437,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -6594,7 +6444,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer - description: The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. @@ -6602,7 +6451,6 @@ paths: name: collectionId required: true schema: - format: int64 type: integer requestBody: content: @@ -6645,7 +6493,6 @@ paths: name: collectionId required: true schema: - format: int64 type: integer responses: "200": @@ -6685,7 +6532,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -6693,7 +6539,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer - description: The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. @@ -6701,7 +6546,6 @@ paths: name: collectionId required: true schema: - format: int64 type: integer responses: "200": @@ -6743,7 +6587,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer responses: "200": @@ -6768,7 +6611,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: Only return results where the request path matches the given regular expression. @@ -6825,7 +6667,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -6834,7 +6675,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -6866,7 +6706,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -6874,7 +6713,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer - description: | Only return results from after this timestamp. @@ -6933,7 +6771,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: Filter results performing an exact matching against the profile integration identifier. @@ -6946,7 +6783,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -6955,7 +6791,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. @@ -6991,14 +6826,12 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The number of items in the response. in: query name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -7007,7 +6840,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. @@ -7051,7 +6883,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -7060,7 +6891,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: Indicates whether you are pointing to a sandbox or live customer. in: query @@ -7111,7 +6941,6 @@ paths: name: customerId required: true schema: - format: int64 type: integer responses: "200": @@ -7134,7 +6963,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -7143,7 +6971,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: Indicates whether you are pointing to a sandbox or live customer. in: query @@ -7174,7 +7001,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: | The value of the `id` property of a customer profile. Get it with the @@ -7183,7 +7009,6 @@ paths: name: customerId required: true schema: - format: int64 type: integer responses: "200": @@ -7208,7 +7033,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -7217,7 +7041,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -7257,7 +7080,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: Only return reports matching the customer name. in: query @@ -7302,7 +7124,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -7311,7 +7132,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | Only return results from after this timestamp. @@ -7343,7 +7163,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: | The value of the `id` property of a customer profile. Get it with the @@ -7352,7 +7171,6 @@ paths: name: customerId required: true schema: - format: int64 type: integer responses: "200": @@ -7375,7 +7193,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -7384,7 +7201,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -7400,7 +7216,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: | The value of the `id` property of a customer profile. Get it with the @@ -7409,7 +7224,6 @@ paths: name: customerId required: true schema: - format: int64 type: integer responses: "200": @@ -7433,7 +7247,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -7442,7 +7255,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -7508,7 +7320,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer responses: "200": @@ -7534,7 +7345,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: | The **internal** ID of the session. You can get the ID with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. @@ -7542,7 +7352,6 @@ paths: name: sessionId required: true schema: - format: int64 type: integer responses: "200": @@ -7566,7 +7375,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -7575,7 +7383,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -7654,7 +7461,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer responses: "200": @@ -7680,7 +7486,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -7689,7 +7494,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -7705,7 +7509,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer responses: "200": @@ -7729,7 +7532,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -7738,7 +7540,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -7813,14 +7614,12 @@ paths: name: audienceId required: true schema: - format: int64 type: integer - description: The number of items in the response. in: query name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -7829,7 +7628,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -7887,7 +7685,6 @@ paths: name: audienceId required: true schema: - format: int64 type: integer requestBody: content: @@ -7944,7 +7741,6 @@ paths: name: audienceId required: true schema: - format: int64 type: integer responses: "200": @@ -7987,7 +7783,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -7996,7 +7791,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -8012,7 +7806,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. @@ -8051,7 +7844,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -8060,7 +7852,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -8134,7 +7925,6 @@ paths: name: attributeId required: true schema: - format: int64 type: integer responses: "200": @@ -8163,7 +7953,6 @@ paths: name: attributeId required: true schema: - format: int64 type: integer requestBody: content: @@ -8216,7 +8005,6 @@ paths: name: attributeId required: true schema: - format: int64 type: integer requestBody: content: @@ -8269,14 +8057,12 @@ paths: name: catalogId required: true schema: - format: int64 type: integer - description: The number of items in the response. in: query name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -8285,7 +8071,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. @@ -8297,7 +8082,7 @@ paths: schema: type: boolean - description: Filter results by one or more SKUs. Must be exact match. - explode: false + explode: true in: query name: sku schema: @@ -8306,7 +8091,7 @@ paths: type: array style: form - description: Filter results by one or more product names. Must be exact match. - explode: false + explode: true in: query name: productNames schema: @@ -8582,7 +8367,6 @@ paths: name: catalogId required: true schema: - format: int64 type: integer requestBody: content: @@ -8635,7 +8419,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -8644,7 +8427,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -8703,7 +8485,6 @@ paths: name: additionalCostId required: true schema: - format: int64 type: integer responses: "200": @@ -8727,7 +8508,6 @@ paths: name: additionalCostId required: true schema: - format: int64 type: integer requestBody: content: @@ -8775,7 +8555,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -8784,7 +8563,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: Filter results by creation type. in: query @@ -8806,7 +8584,6 @@ paths: in: query name: outgoingIntegrationsTypeId schema: - format: int64 type: integer - description: Filter results performing case-insensitive matching against the webhook title. @@ -8836,7 +8613,6 @@ paths: name: webhookId required: true schema: - format: int64 type: integer responses: "200": @@ -8861,7 +8637,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -8870,7 +8645,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -8935,7 +8709,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -8944,7 +8717,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -9038,6 +8810,8 @@ paths: - LoyaltyPointsDeducted - LoyaltyPointsExpiring - LoyaltyPointsPendingToActive + - LoyaltyAddedDeductedPointsBalances + - LoyaltyCardAddedDeductedPointsBalances - TierWillDowngrade - TierUpgrade - TierDowngrade @@ -9118,13 +8892,11 @@ paths: in: query name: loyaltyProgramId schema: - format: int64 type: integer - description: Filter results by response status code. in: query name: responseCode schema: - format: int64 type: integer - description: Filter results by webhook ID (include up to 30 values, separated by a comma). @@ -9166,7 +8938,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -9175,7 +8946,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -9236,7 +9006,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -9244,7 +9013,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer - description: | An indicator of whether to skip duplicate coupon values instead of causing an error. @@ -9316,7 +9084,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: Filter results by campaign ID. in: query @@ -9378,7 +9145,6 @@ paths: in: query name: referralId schema: - format: int64 type: integer - description: Filter results by match with a profile id specified in the coupon's RecipientIntegrationId field. @@ -9468,7 +9234,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: Filter results by campaign ID. in: query @@ -9571,7 +9336,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: Filter results by campaign ID. in: query @@ -9619,7 +9383,7 @@ paths: description: | Download a CSV file containing the customer sessions that match the request. - **Important:** Archived sessions cannot be exported. See the [retention policy](https://docs.talon.one/docs/product/server-infrastructure-and-data-retention#data-retention-policy). + **Important:** Archived sessions cannot be exported. See the [retention policy](https://docs.talon.one/docs/dev/server-infrastructure-and-data-retention). **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). @@ -9651,7 +9415,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. @@ -9745,7 +9508,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -9753,7 +9515,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer requestBody: content: @@ -9787,7 +9548,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -9796,7 +9556,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -9827,7 +9586,6 @@ paths: name: userId required: true schema: - format: int64 type: integer responses: "204": @@ -9847,7 +9605,6 @@ paths: name: userId required: true schema: - format: int64 type: integer responses: "200": @@ -9869,7 +9626,6 @@ paths: name: userId required: true schema: - format: int64 type: integer requestBody: content: @@ -9907,6 +9663,156 @@ paths: tags: - management x-accepts: application/json + /v1/provisioning/scim/Groups: + get: + description: |- + Retrieve a paginated list of groups created using the SCIM protocol with an identity provider, for example, Microsoft Entra ID. + In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + operationId: scimGetGroups + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ScimGroupsListResponse' + description: List of SCIM groups + summary: List SCIM groups + tags: + - management + x-accepts: application/json + post: + description: |- + Create a new Talon.One group using the SCIM Group provisioning protocol with an identity provider, for example, Microsoft Entra ID, and assign members from the payload to the new group. + In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + operationId: scimCreateGroup + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ScimBaseGroup' + description: body + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ScimGroup' + description: Created + summary: Create SCIM group + tags: + - management + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /v1/provisioning/scim/Groups/{groupId}: + delete: + description: |- + Delete a specific group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + operationId: scimDeleteGroup + parameters: + - description: The ID of the group. + in: path + name: groupId + required: true + schema: + type: integer + responses: + "204": + content: {} + description: No Content + summary: Delete SCIM group + tags: + - management + x-accepts: application/json + get: + description: |- + Retrieve data for a specific group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + operationId: scimGetGroup + parameters: + - description: The ID of the group. + in: path + name: groupId + required: true + schema: + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ScimGroup' + description: Group details + summary: Get SCIM group + tags: + - management + x-accepts: application/json + patch: + description: | + Update certain attributes of a group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint allows for selective adding, removing, or replacing of specific group attributes while other attributes remain unchanged. + In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + operationId: scimPatchGroup + parameters: + - description: The ID of the group. + in: path + name: groupId + required: true + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ScimPatchRequest' + description: body + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ScimGroup' + description: Group details + summary: Update SCIM group attributes + tags: + - management + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + put: + description: | + Update the details of a specific group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint replaces all attributes of the given group with the attributes provided in the request payload. + In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + operationId: scimReplaceGroupAttributes + parameters: + - description: The ID of the group. + in: path + name: groupId + required: true + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ScimBaseGroup' + description: body + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ScimGroup' + description: Group details + summary: Update SCIM group + tags: + - management + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json /v1/provisioning/scim/Users: get: description: Retrieve a paginated list of users that have been provisioned using @@ -9959,7 +9865,6 @@ paths: name: userId required: true schema: - format: int64 type: integer responses: "204": @@ -9980,7 +9885,6 @@ paths: name: userId required: true schema: - format: int64 type: integer responses: "200": @@ -10005,7 +9909,6 @@ paths: name: userId required: true schema: - format: int64 type: integer requestBody: content: @@ -10039,7 +9942,6 @@ paths: name: userId required: true schema: - format: int64 type: integer requestBody: content: @@ -10212,7 +10114,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -10221,7 +10122,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -10246,7 +10146,6 @@ paths: in: query name: userId schema: - format: int64 type: integer - description: Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp. You can use @@ -10277,7 +10176,6 @@ paths: in: query name: managementKeyId schema: - format: int64 type: integer - description: When this flag is set to false, the state without the change will not be returned. The default value is true. @@ -10417,7 +10315,6 @@ paths: name: accountId required: true schema: - format: int64 type: integer responses: "200": @@ -10444,7 +10341,6 @@ paths: name: accountId required: true schema: - format: int64 type: integer responses: "200": @@ -10516,7 +10412,6 @@ paths: name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -10525,7 +10420,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: Filter results by Application ID. in: query @@ -10536,7 +10430,6 @@ paths: in: query name: campaignId schema: - format: int64 type: integer - description: The name of the entity type that was exported. in: query @@ -10592,7 +10485,6 @@ paths: name: roleId required: true schema: - format: int64 type: integer responses: "200": @@ -10617,7 +10509,6 @@ paths: name: roleId required: true schema: - format: int64 type: integer requestBody: content: @@ -10650,14 +10541,12 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The number of items in the response. in: query name: pageSize schema: default: 1000 - format: int64 maximum: 1000 minimum: 1 type: integer @@ -10666,7 +10555,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. @@ -10726,7 +10614,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer requestBody: content: @@ -10772,7 +10659,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: | The ID of the store. @@ -10806,7 +10692,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: | The ID of the store. @@ -10843,7 +10728,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: | The ID of the store. @@ -10903,7 +10787,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -10911,7 +10794,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer responses: "200": @@ -10954,7 +10836,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -10962,7 +10843,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer responses: "204": @@ -11009,7 +10889,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -11017,7 +10896,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer requestBody: content: @@ -11058,6 +10936,377 @@ paths: - management x-contentType: multipart/form-data x-accepts: application/json + /v1/applications/{applicationId}/campaigns/{campaignId}/stores/budgets: + delete: + description: Delete the store budgets for a given campaign. + operationId: deleteCampaignStoreBudgets + parameters: + - description: The ID of the Application. It is displayed in your Talon.One + deployment URL. + in: path + name: applicationId + required: true + schema: + type: integer + - description: The ID of the campaign. It is displayed in your Talon.One deployment + URL. + in: path + name: campaignId + required: true + schema: + type: integer + - description: The action that this budget is limiting. + in: query + name: action + schema: + enum: + - setDiscount + type: string + - description: | + The period to which the limit applies. + + **Note**: For budgets with no period, set this to `overall`. + in: query + name: period + schema: + enum: + - overall + - daily + - weekly + - monthly + - yearly + type: string + responses: + "204": + content: {} + description: Deleted + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + summary: Delete campaign store budgets + tags: + - management + x-accepts: application/json + get: + description: Return the store budget limits for a given campaign. + operationId: listCampaignStoreBudgetLimits + parameters: + - description: The ID of the Application. It is displayed in your Talon.One + deployment URL. + in: path + name: applicationId + required: true + schema: + type: integer + - description: The ID of the campaign. It is displayed in your Talon.One deployment + URL. + in: path + name: campaignId + required: true + schema: + type: integer + - description: The action that this budget is limiting. + in: query + name: action + schema: + enum: + - setDiscount + type: string + - description: | + The period to which the limit applies. + + **Note**: For budgets with no period, set this to `overall`. + in: query + name: period + schema: + enum: + - overall + - daily + - weekly + - monthly + - yearly + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_48' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized - Invalid API key + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Not found + summary: List campaign store budget limits + tags: + - management + x-accepts: application/json + post: + description: Create a new store budget for a given campaign. + operationId: createCampaignStoreBudget + parameters: + - description: The ID of the Application. It is displayed in your Talon.One + deployment URL. + in: path + name: applicationId + required: true + schema: + type: integer + - description: The ID of the campaign. It is displayed in your Talon.One deployment + URL. + in: path + name: campaignId + required: true + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NewCampaignStoreBudget' + description: body + required: true + responses: + "201": + content: {} + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Conflict + summary: Create campaign store budget + tags: + - management + x-codegen-request-body-name: body + x-contentType: application/json + x-accepts: application/json + /v1/applications/{applicationId}/campaigns/{campaignId}/stores/budgets/summary: + get: + description: Fetch a summary of all store budget information for a given campaign. + operationId: summarizeCampaignStoreBudget + parameters: + - description: The ID of the Application. It is displayed in your Talon.One + deployment URL. + in: path + name: applicationId + required: true + schema: + type: integer + - description: The ID of the campaign. It is displayed in your Talon.One deployment + URL. + in: path + name: campaignId + required: true + schema: + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/inline_response_200_49' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized - Invalid API key + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Not found + summary: Get summary of campaign store budgets + tags: + - management + x-accepts: application/json + /v1/applications/{applicationId}/campaigns/{campaignId}/stores/budgets/import: + post: + description: | + Upload a CSV file containing store budgets for a given campaign. + + Send the file as multipart data. + + The CSV file **must** only contain the following columns: + - `store_integration_id`: The identifier of the store. + - `limit`: The budget limit for the store. + + The import **replaces** the previous list of store budgets. + operationId: importCampaignStoreBudget + parameters: + - description: The ID of the Application. It is displayed in your Talon.One + deployment URL. + in: path + name: applicationId + required: true + schema: + type: integer + - description: The ID of the campaign. It is displayed in your Talon.One deployment + URL. + in: path + name: campaignId + required: true + schema: + type: integer + - description: The action that this budget is limiting. + in: query + name: action + schema: + enum: + - setDiscount + type: string + - description: | + The period to which the limit applies. + + **Note**: For budgets with no period, set this to `overall`. + in: query + name: period + schema: + enum: + - overall + - daily + - weekly + - monthly + - yearly + type: string + requestBody: + content: + multipart/form-data: + schema: + properties: + upFile: + description: The file containing the data that is being imported. + format: csv + type: string + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/Import' + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + summary: Import campaign store budgets + tags: + - management + x-contentType: multipart/form-data + x-accepts: application/json + /v1/applications/{applicationId}/campaigns/{campaignId}/stores/budgets/export: + get: + description: | + Download a CSV file containing the store budgets for a given campaign. + + **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). + + The CSV file contains the following columns: + + - `store_integration_id`: The identifier of the store. + - `limit`: The budget limit for the store. + operationId: exportCampaignStoreBudgets + parameters: + - description: The ID of the Application. It is displayed in your Talon.One + deployment URL. + in: path + name: applicationId + required: true + schema: + type: integer + - description: The ID of the campaign. It is displayed in your Talon.One deployment + URL. + in: path + name: campaignId + required: true + schema: + type: integer + - description: The action that this budget is limiting. + in: query + name: action + schema: + enum: + - setDiscount + type: string + - description: | + The period to which the limit applies. + + **Note**: For budgets with no period, set this to `overall`. + in: query + name: period + schema: + enum: + - overall + - daily + - weekly + - monthly + - yearly + type: string + responses: + "200": + content: + application/csv: + schema: + format: csv + type: string + description: OK + "400": + content: + application/csv: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + "401": + content: + application/csv: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized - Invalid API key + "404": + content: + application/csv: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Not found + summary: Export campaign store budgets + tags: + - management + x-accepts: application/csv /v1/applications/{applicationId}/campaigns/{campaignId}/achievements: get: description: List all the achievements for a specific campaign. @@ -11069,7 +11318,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -11077,14 +11325,12 @@ paths: name: campaignId required: true schema: - format: int64 type: integer - description: The number of items in the response. in: query name: pageSize schema: default: 50 - format: int64 maximum: 50 minimum: 1 type: integer @@ -11093,7 +11339,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: | Filter by the display name for the achievement in the campaign manager. @@ -11108,7 +11353,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_48' + $ref: '#/components/schemas/inline_response_200_50' description: OK summary: List achievements tags: @@ -11124,7 +11369,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -11132,7 +11376,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer requestBody: content: @@ -11180,7 +11423,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -11188,7 +11430,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer - description: The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) @@ -11197,7 +11438,6 @@ paths: name: achievementId required: true schema: - format: int64 type: integer responses: "204": @@ -11229,7 +11469,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -11237,7 +11476,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer - description: The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) @@ -11246,7 +11484,6 @@ paths: name: achievementId required: true schema: - format: int64 type: integer responses: "200": @@ -11281,7 +11518,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -11289,7 +11525,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer - description: The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) @@ -11298,7 +11533,6 @@ paths: name: achievementId required: true schema: - format: int64 type: integer requestBody: content: @@ -11360,7 +11594,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: The ID of the campaign. It is displayed in your Talon.One deployment URL. @@ -11368,7 +11601,6 @@ paths: name: campaignId required: true schema: - format: int64 type: integer - description: The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) @@ -11377,7 +11609,6 @@ paths: name: achievementId required: true schema: - format: int64 type: integer responses: "200": @@ -11421,7 +11652,6 @@ paths: name: applicationId required: true schema: - format: int64 type: integer - description: | The integration identifier for this customer profile. Must be: @@ -11439,7 +11669,6 @@ paths: name: pageSize schema: default: 50 - format: int64 maximum: 50 minimum: 1 type: integer @@ -11448,7 +11677,6 @@ paths: in: query name: skip schema: - format: int64 type: integer - description: The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) @@ -11456,7 +11684,6 @@ paths: in: query name: achievementId schema: - format: int64 type: integer - description: Filter results by the `title` of an achievement. in: query @@ -11468,7 +11695,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200_49' + $ref: '#/components/schemas/inline_response_200_51' description: OK "400": content: @@ -11503,7 +11730,6 @@ components: description: The globally unique Talon.One ID of the session where this entity was created. example: 2 - format: int64 type: integer required: - sessionId @@ -11512,7 +11738,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -11526,7 +11751,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -11539,9 +11763,8 @@ components: CampaignCollection: properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -11551,7 +11774,6 @@ components: accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer modified: description: The time this entity was last modified. @@ -11571,22 +11793,18 @@ components: modifiedBy: description: ID of the user who last updated this effect if available. example: 48 - format: int64 type: integer createdBy: description: ID of the user who created this effect. example: 134 - format: int64 type: integer applicationId: description: The ID of the Application that owns this entity. example: 1 - format: int64 type: integer campaignId: description: The ID of the campaign that owns this entity. example: 7 - format: int64 type: integer payload: description: The content of the collection. @@ -11608,9 +11826,8 @@ components: CampaignCollectionWithoutPayload: properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -11620,7 +11837,6 @@ components: accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer modified: description: The time this entity was last modified. @@ -11640,22 +11856,18 @@ components: modifiedBy: description: ID of the user who last updated this effect if available. example: 48 - format: int64 type: integer createdBy: description: ID of the user who created this effect. example: 134 - format: int64 type: integer applicationId: description: The ID of the Application that owns this entity. example: 1 - format: int64 type: integer campaignId: description: The ID of the campaign that owns this entity. example: 7 - format: int64 type: integer required: - accountId @@ -11670,16 +11882,14 @@ components: campaignGroups: description: The IDs of the campaign groups that own this entity. items: - format: int64 type: integer type: array type: object CampaignStoreBudget: properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -11689,11 +11899,9 @@ components: campaignId: description: The ID of the campaign that owns this entity. example: 322 - format: int64 type: integer storeId: description: The ID of the store. - format: int64 type: integer limits: description: The set of budget limits for stores linked to the campaign. @@ -11759,9 +11967,8 @@ components: CouponCreationJob: properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -11771,24 +11978,20 @@ components: campaignId: description: The ID of the campaign that owns this entity. example: 211 - format: int64 title: Campaign ID type: integer applicationId: description: The ID of the Application that owns this entity. example: 322 - format: int64 type: integer accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer usageLimit: description: | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. example: 100 - format: int64 maximum: 999999 minimum: 0 type: integer @@ -11796,14 +11999,13 @@ components: description: | The total discount value that the code can give. Typically used to represent a gift card value. example: 30.0 - maximum: 999999 + maximum: 1E+15 minimum: 0 type: number reservationLimit: description: | The number of reservations that can be made with this coupon code. example: 45 - format: int64 maximum: 999999 minimum: 0 type: integer @@ -11821,7 +12023,6 @@ components: numberOfCoupons: description: The number of new coupon codes to generate for the campaign. example: 200000 - format: int64 maximum: 5E+6 minimum: 1 type: integer @@ -11851,13 +12052,11 @@ components: description: The number of coupon codes that were already created for this request. example: 1000000 - format: int64 title: Created Amount type: integer failCount: description: The number of times this job failed. example: 10 - format: int64 title: Fail Count type: integer errors: @@ -11873,7 +12072,6 @@ components: createdBy: description: ID of the user who created this effect. example: 1 - format: int64 title: Created By type: integer communicated: @@ -11885,14 +12083,12 @@ components: description: The number of times an attempt to create a chunk of coupons was made during the processing of the job. example: 0 - format: int64 title: Iterations type: integer chunkSize: description: The number of coupons that will be created in a single transactions. Coupons will be created in chunks until arriving at the requested amount. example: 20000 - format: int64 title: Chunk size type: integer required: @@ -11916,9 +12112,8 @@ components: CouponDeletionJob: properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -11928,12 +12123,10 @@ components: applicationId: description: The ID of the Application that owns this entity. example: 322 - format: int64 type: integer accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer filters: $ref: '#/components/schemas/CouponDeletionFilters' @@ -11951,13 +12144,11 @@ components: description: The number of coupon codes that were already deleted for this request. example: 1000000 - format: int64 title: Deleted Amount type: integer failCount: description: The number of times this job failed. example: 10 - format: int64 title: Fail Count type: integer errors: @@ -11972,7 +12163,6 @@ components: createdBy: description: ID of the user who created this effect. example: 1 - format: int64 title: Created By type: integer communicated: @@ -11982,7 +12172,6 @@ components: type: boolean campaignIDs: items: - format: int64 title: Campaign ID type: integer type: array @@ -12053,11 +12242,9 @@ components: properties: RoleID: description: ID of role. - format: int64 type: integer UserID: description: ID of User. - format: int64 type: integer required: - RoleID @@ -12081,18 +12268,15 @@ components: description: The ID of the Application to which the catalog items labels belongs. example: 322 - format: int64 type: integer currentBatch: description: The batch number of the notification. Notifications might be sent in different batches. example: 1 - format: int64 type: integer totalBatches: description: The total number of batches for the notification. example: 10 - format: int64 type: integer trigger: $ref: '#/components/schemas/StrikethroughTrigger' @@ -12125,7 +12309,6 @@ components: - 2 - 3 items: - format: int64 type: integer type: array type: object @@ -12134,9 +12317,8 @@ components: Entity: properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -12169,7 +12351,6 @@ components: applicationId: description: The ID of the Application that owns this entity. example: 322 - format: int64 type: integer required: - applicationId @@ -12205,7 +12386,6 @@ components: - 10 - 12 items: - format: int64 type: integer title: Campaigns to evaluate type: array @@ -12232,6 +12412,30 @@ components: required: - price type: object + PriceDetail: + properties: + price: + description: The value of this price type. + example: 90.0 + format: float + type: number + adjustmentReferenceId: + description: The reference identifier of the selected price adjustment for + this SKU. + example: 68851723-e6fa-488f-ace9-112581e6c19b + format: uuid + type: string + adjustmentEffectiveFrom: + description: The date and time from which the price adjustment is effective. + example: 2025-05-25T00:00:00Z + format: date-time + type: string + adjustmentEffectiveUntil: + description: The date and time until which the price adjustment is effective. + example: 2025-05-30T00:00:00Z + format: date-time + type: string + type: object CartItem: example: remainingQuantity: 1 @@ -12241,19 +12445,31 @@ components: returnedQuantity: 1 length: 1.4658129805029452 weight: 1130.0 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + adjustmentEffectiveFrom: 2021-09-12T10:12:42Z catalogItemID: 5 additionalCosts: shipping: price: 9 price: 99.99 + selectedPriceType: member name: Air Glide width: 6.027456183070403 attributes: image: 11.jpeg material: leather + adjustmentEffectiveUntil: 2021-09-12T10:12:42Z position: 5.962133916683182 sku: SKU1241028 category: shoes + prices: + member: + price: 90 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + effectiveFrom: 2025-05-25T00:00:00Z + effectiveUntil: 2025-05-30T00:00:00Z + base: + price: 100 height: 0.8008281904610115 properties: name: @@ -12273,7 +12489,6 @@ components: if you provide a quantity greater than 1, the item will be split in as many items as the provided quantity. This will impact the number of **per-item** effects triggered from your campaigns. example: 1 - format: int64 minimum: 1 title: Quantity of item type: integer @@ -12281,14 +12496,12 @@ components: description: Number of returned items, calculated internally based on returns of this item. example: 1 - format: int64 title: Returned quantity of item type: integer remainingQuantity: description: Remaining quantity of the item, calculated internally based on returns of this item. example: 1 - format: int64 title: Remaining quantity of item type: integer price: @@ -12349,10 +12562,54 @@ components: price: 9 type: object catalogItemID: - description: The [catalog item ID](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs/#synchronizing-a-cart-item-catalog). - format: int64 + description: The catalog item ID. title: The catalog item ID type: integer + selectedPriceType: + description: The selected price type for this cart item (e.g. the price + for members only). + example: member + title: The selected price type + type: string + adjustmentReferenceId: + description: The reference identifier of the selected price adjustment for + this cart item. This is only returned if the `selectedPrice` resulted + from a price adjustment. + example: 68851723-e6fa-488f-ace9-112581e6c19b + format: uuid + title: The reference identifier of the selected price adjustment + type: string + adjustmentEffectiveFrom: + description: The date and time from which the price adjustment is effective. + This is only returned if the `selectedPrice` resulted from a price adjustment + that contains this field. + example: 2021-09-12T10:12:42Z + format: date-time + title: The date and time from which the price adjustment is effective + type: string + adjustmentEffectiveUntil: + description: The date and time until which the price adjustment is effective. + This is only returned if the `selectedPrice` resulted from a price adjustment + that contains this field. + example: 2021-09-12T10:12:42Z + format: date-time + title: The date and time until which the price adjustment is effective + type: string + prices: + additionalProperties: + $ref: '#/components/schemas/PriceDetail' + description: | + A map of keys and values representing the price types and related price adjustment details for this cart item. + The keys correspond to the `priceType` names. + example: + member: + price: 90 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + effectiveFrom: 2025-05-25T00:00:00Z + effectiveUntil: 2025-05-30T00:00:00Z + base: + price: 100 + type: object required: - quantity - sku @@ -12386,19 +12643,31 @@ components: returnedQuantity: 1 length: 1.4658129805029452 weight: 1130.0 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + adjustmentEffectiveFrom: 2021-09-12T10:12:42Z catalogItemID: 5 additionalCosts: shipping: price: 9 price: 99.99 + selectedPriceType: member name: Air Glide width: 6.027456183070403 attributes: image: 11.jpeg material: leather + adjustmentEffectiveUntil: 2021-09-12T10:12:42Z position: 5.962133916683182 sku: SKU1241028 category: shoes + prices: + member: + price: 90 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + effectiveFrom: 2025-05-25T00:00:00Z + effectiveUntil: 2025-05-30T00:00:00Z + base: + price: 100 height: 0.8008281904610115 - remainingQuantity: 1 product: @@ -12407,19 +12676,31 @@ components: returnedQuantity: 1 length: 1.4658129805029452 weight: 1130.0 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + adjustmentEffectiveFrom: 2021-09-12T10:12:42Z catalogItemID: 5 additionalCosts: shipping: price: 9 price: 99.99 + selectedPriceType: member name: Air Glide width: 6.027456183070403 attributes: image: 11.jpeg material: leather + adjustmentEffectiveUntil: 2021-09-12T10:12:42Z position: 5.962133916683182 sku: SKU1241028 category: shoes + prices: + member: + price: 90 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + effectiveFrom: 2025-05-25T00:00:00Z + effectiveUntil: 2025-05-30T00:00:00Z + base: + price: 100 height: 0.8008281904610115 properties: profileId: @@ -12445,7 +12726,6 @@ components: - 10 - 12 items: - format: int64 type: integer title: Campaigns to evaluate type: array @@ -12591,19 +12871,31 @@ components: returnedQuantity: 1 length: 1.4658129805029452 weight: 1130.0 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + adjustmentEffectiveFrom: 2021-09-12T10:12:42Z catalogItemID: 5 additionalCosts: shipping: price: 9 price: 99.99 + selectedPriceType: member name: Air Glide width: 6.027456183070403 attributes: image: 11.jpeg material: leather + adjustmentEffectiveUntil: 2021-09-12T10:12:42Z position: 5.962133916683182 sku: SKU1241028 category: shoes + prices: + member: + price: 90 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + effectiveFrom: 2025-05-25T00:00:00Z + effectiveUntil: 2025-05-30T00:00:00Z + base: + price: 100 height: 0.8008281904610115 - remainingQuantity: 1 product: @@ -12612,28 +12904,39 @@ components: returnedQuantity: 1 length: 1.4658129805029452 weight: 1130.0 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + adjustmentEffectiveFrom: 2021-09-12T10:12:42Z catalogItemID: 5 additionalCosts: shipping: price: 9 price: 99.99 + selectedPriceType: member name: Air Glide width: 6.027456183070403 attributes: image: 11.jpeg material: leather + adjustmentEffectiveUntil: 2021-09-12T10:12:42Z position: 5.962133916683182 sku: SKU1241028 category: shoes + prices: + member: + price: 90 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + effectiveFrom: 2025-05-25T00:00:00Z + effectiveUntil: 2025-05-30T00:00:00Z + base: + price: 100 height: 0.8008281904610115 updated: 2020-02-08T14:15:22Z firstSession: true cartItemTotal: 99.99 properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -12649,7 +12952,6 @@ components: applicationId: description: The ID of the Application that owns this entity. example: 322 - format: int64 type: integer profileId: description: | @@ -12674,7 +12976,6 @@ components: - 10 - 12 items: - format: int64 type: integer title: Campaigns to evaluate type: array @@ -12835,19 +13136,16 @@ components: campaignId: description: The ID of the campaign that triggered this effect. example: 244 - format: int64 type: integer rulesetId: description: The ID of the ruleset that was active in the campaign when this effect was triggered. example: 73 - format: int64 type: integer ruleIndex: description: The position of the rule that triggered this effect within the ruleset. example: 2 - format: int64 type: integer ruleName: description: The name of the rule that triggered this effect. @@ -12861,24 +13159,20 @@ components: description: The ID of the coupon that was being evaluated when this effect was triggered. example: 4928 - format: int64 type: integer triggeredForCatalogItem: description: The ID of the catalog item that was being evaluated when this effect was triggered. example: 786 - format: int64 type: integer conditionIndex: description: The index of the condition that was triggered. example: 786 - format: int64 type: integer evaluationGroupID: description: The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). example: 3 - format: int64 type: integer evaluationGroupMode: description: The evaluation mode of the evaluation group. For more information, @@ -12889,14 +13183,28 @@ components: description: The revision ID of the campaign that was used when triggering the effect. example: 1 - format: int64 type: integer campaignRevisionVersionId: description: The revision version ID of the campaign that was used when triggering the effect. example: 5 - format: int64 type: integer + selectedPriceType: + description: The selected price type for the SKU targeted by this effect. + example: member + type: string + selectedPrice: + description: The value of the selected price type to apply to the SKU targeted + by this effect, before any discounts are applied. + example: 100.0 + type: number + adjustmentReferenceId: + description: The reference identifier of the selected price adjustment for + this SKU. This is only returned if the `selectedPrice` resulted from a + price adjustment. + example: 68851723-e6fa-488f-ace9-112581e6c19b + format: uuid + type: string required: - campaignId - effectType @@ -12933,7 +13241,6 @@ components: properties: id: description: The id of the referral code that was redeemed. - format: int64 type: integer value: description: The referral code that was redeemed. @@ -12956,11 +13263,9 @@ components: conditionIndex: description: The index of the condition that caused the rejection of the coupon. - format: int64 type: integer effectIndex: description: The index of the effect that caused the rejection of the coupon. - format: int64 type: integer details: description: More details about the failure. @@ -12987,11 +13292,9 @@ components: conditionIndex: description: The index of the condition that caused the rejection of the referral. - format: int64 type: integer effectIndex: description: The index of the effect that caused the rejection of the referral. - format: int64 type: integer details: description: More details about the failure. @@ -13099,7 +13402,6 @@ components: bundleIndex: description: The position of the bundle in a list of item bundles created from the same bundle definition. - format: int64 type: integer bundleName: description: The name of the bundle definition. @@ -13128,7 +13430,6 @@ components: type: string additionalCostId: description: The ID of the additional cost. - format: int64 type: integer additionalCost: description: The name of the additional cost. @@ -13177,7 +13478,6 @@ components: type: string programId: description: The ID of the loyalty program where these points were added. - format: int64 type: integer subLedgerId: description: The ID of the subledger within the loyalty program where these @@ -13223,7 +13523,6 @@ components: bundleIndex: description: The position of the bundle in a list of item bundles created from the same bundle definition. - format: int64 type: integer bundleName: description: The name of the bundle definition. @@ -13248,7 +13547,6 @@ components: type: string programId: description: The ID of the loyalty program where these points were added. - format: int64 type: integer subLedgerId: description: The ID of the subledger within the loyalty program where these @@ -13289,7 +13587,6 @@ components: type: string programId: description: The ID of the loyalty program where these points were added. - format: int64 type: integer subLedgerId: description: The ID of the subledger within the loyalty program where these @@ -13324,7 +13621,6 @@ components: type: string desiredQuantity: description: The original quantity in case a partial reward was applied. - format: int64 type: integer required: - name @@ -13413,7 +13709,6 @@ components: type: number additionalCostId: description: The ID of the additional cost that was rolled back. - format: int64 type: integer additionalCost: description: The name of the additional cost that was rolled back. @@ -13436,7 +13731,6 @@ components: programId: description: The ID of the loyalty program where the points were originally added. - format: int64 type: integer subLedgerId: description: The ID of the subledger within the loyalty program where these @@ -13483,7 +13777,6 @@ components: properties: programId: description: The ID of the loyalty program where these points were reimbursed. - format: int64 type: integer subLedgerId: description: The ID of the subledger within the loyalty program where these @@ -13555,7 +13848,6 @@ components: poolId: description: The ID of the giveaways pool the code was taken from. example: 2 - format: int64 type: integer poolName: description: The name of the giveaways pool the code was taken from. @@ -13569,7 +13861,6 @@ components: giveawayId: description: The internal ID for the giveaway that was awarded. example: 5 - format: int64 type: integer code: description: The giveaway code that was awarded. @@ -13591,7 +13882,6 @@ components: poolId: description: The ID of the giveaways pool the code will be taken from. example: 2 - format: int64 type: integer poolName: description: The name of the giveaways pool the code will be taken from. @@ -13624,7 +13914,6 @@ components: effectId: description: The ID of the custom effect that was triggered. example: 1 - format: int64 type: integer name: description: The type of the custom effect. @@ -13644,7 +13933,6 @@ components: description: The position of the bundle in a list of item bundles created from the same bundle definition. example: 1 - format: int64 type: integer bundleName: description: The name of the bundle definition. @@ -13671,7 +13959,6 @@ components: type: string additionalCostId: description: The ID of the additional cost. - format: int64 type: integer value: description: The total monetary value of the discount. @@ -13725,7 +14012,6 @@ components: audienceId: description: The internal ID of the audience. example: 10 - format: int64 type: integer audienceName: description: The name of the audience. @@ -13739,7 +14025,6 @@ components: profileId: description: The internal ID of the customer profile. example: 150 - format: int64 type: integer type: object RemoveFromAudienceEffectProps: @@ -13749,7 +14034,6 @@ components: audienceId: description: The internal ID of the audience. example: 10 - format: int64 type: integer audienceName: description: The name of the audience. @@ -13763,7 +14047,6 @@ components: profileId: description: The internal ID of the customer profile. example: 150 - format: int64 type: integer type: object IncreaseAchievementProgressEffectProps: @@ -13774,7 +14057,6 @@ components: achievementId: description: The internal ID of the achievement. example: 10 - format: int64 type: integer achievementName: description: The name of the achievement. @@ -13782,7 +14064,6 @@ components: type: string progressTrackerId: description: The internal ID of the achievement progress tracker. - format: int64 type: integer delta: description: The value by which the customer's current progress in the achievement @@ -13815,7 +14096,6 @@ components: achievementId: description: The internal ID of the achievement. example: 10 - format: int64 type: integer achievementName: description: The name of the achievement. @@ -13823,7 +14103,6 @@ components: type: string progressTrackerId: description: The internal ID of the achievement progress tracker. - format: int64 type: integer decreaseProgressBy: description: The value by which the customer's current progress in the achievement @@ -13843,6 +14122,58 @@ components: - progressTrackerId - target type: object + ExtendLoyaltyPointsExpiryDateEffectProps: + description: | + The properties specific to the "extendLoyaltyPointsExpiryDate" effect. This gets triggered when a validated rule contains the "extend expiry date" effect. The current expiry date gets extended by the time frame given in the effect. + properties: + programId: + description: ID of the loyalty program that contains these points. + type: integer + subLedgerId: + description: API name of the loyalty program subledger that contains these + points. added. + type: string + extensionDuration: + description: | + Time frame by which the expiry date extends. + + The time format is either: + - immediate, or + - an **integer** followed by a letter indicating the time unit. + + Examples: `immediate`, `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. + + Available units: + + - `s`: seconds + - `m`: minutes + - `h`: hours + - `D`: days + - `W`: weeks + - `M`: months + - `Y`: years + + You can round certain units up or down: + - `_D` for rounding down days only. Signifies the start of the day. + - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. + example: 12h + type: string + transactionUUIDs: + description: The list of identifiers of transactions affected affected by + the extension. + items: + type: string + type: array + previousExpirationDate: + description: Expiry date before applying the extension. + format: date-time + type: string + required: + - extensionDuration + - previousExpirationDate + - programId + - subLedgerId + type: object EffectProps: description: The properties of the effect. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). type: object @@ -13857,9 +14188,12 @@ components: conditionIndex: 786 evaluationGroupMode: stackable effectType: rejectCoupon + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b props: '{}' + selectedPrice: 100.0 evaluationGroupID: 3 triggeredForCatalogItem: 786 + selectedPriceType: member campaignRevisionId: 1 ruleName: Give 20% discount triggeredByCoupon: 4928 @@ -13867,19 +14201,16 @@ components: campaignId: description: The ID of the campaign that triggered this effect. example: 244 - format: int64 type: integer rulesetId: description: The ID of the ruleset that was active in the campaign when this effect was triggered. example: 73 - format: int64 type: integer ruleIndex: description: The position of the rule that triggered this effect within the ruleset. example: 2 - format: int64 type: integer ruleName: description: The name of the rule that triggered this effect. @@ -13893,24 +14224,20 @@ components: description: The ID of the coupon that was being evaluated when this effect was triggered. example: 4928 - format: int64 type: integer triggeredForCatalogItem: description: The ID of the catalog item that was being evaluated when this effect was triggered. example: 786 - format: int64 type: integer conditionIndex: description: The index of the condition that was triggered. example: 786 - format: int64 type: integer evaluationGroupID: description: The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). example: 3 - format: int64 type: integer evaluationGroupMode: description: The evaluation mode of the evaluation group. For more information, @@ -13921,14 +14248,28 @@ components: description: The revision ID of the campaign that was used when triggering the effect. example: 1 - format: int64 type: integer campaignRevisionVersionId: description: The revision version ID of the campaign that was used when triggering the effect. example: 5 - format: int64 type: integer + selectedPriceType: + description: The selected price type for the SKU targeted by this effect. + example: member + type: string + selectedPrice: + description: The value of the selected price type to apply to the SKU targeted + by this effect, before any discounts are applied. + example: 100.0 + type: number + adjustmentReferenceId: + description: The reference identifier of the selected price adjustment for + this SKU. This is only returned if the `selectedPrice` resulted from a + price adjustment. + example: 68851723-e6fa-488f-ace9-112581e6c19b + format: uuid + type: string props: description: The properties of the effect. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). type: object @@ -13950,9 +14291,12 @@ components: conditionIndex: 786 evaluationGroupMode: stackable effectType: rejectCoupon + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b props: '{}' + selectedPrice: 100.0 evaluationGroupID: 3 triggeredForCatalogItem: 786 + selectedPriceType: member campaignRevisionId: 1 ruleName: Give 20% discount triggeredByCoupon: 4928 @@ -13963,9 +14307,12 @@ components: conditionIndex: 786 evaluationGroupMode: stackable effectType: rejectCoupon + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b props: '{}' + selectedPrice: 100.0 evaluationGroupID: 3 triggeredForCatalogItem: 786 + selectedPriceType: member campaignRevisionId: 1 ruleName: Give 20% discount triggeredByCoupon: 4928 @@ -14002,19 +14349,31 @@ components: returnedQuantity: 1 length: 1.4658129805029452 weight: 1130.0 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + adjustmentEffectiveFrom: 2021-09-12T10:12:42Z catalogItemID: 5 additionalCosts: shipping: price: 9 price: 99.99 + selectedPriceType: member name: Air Glide width: 6.027456183070403 attributes: image: 11.jpeg material: leather + adjustmentEffectiveUntil: 2021-09-12T10:12:42Z position: 5.962133916683182 sku: SKU1241028 category: shoes + prices: + member: + price: 90 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + effectiveFrom: 2025-05-25T00:00:00Z + effectiveUntil: 2025-05-30T00:00:00Z + base: + price: 100 height: 0.8008281904610115 - remainingQuantity: 1 product: @@ -14023,19 +14382,31 @@ components: returnedQuantity: 1 length: 1.4658129805029452 weight: 1130.0 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + adjustmentEffectiveFrom: 2021-09-12T10:12:42Z catalogItemID: 5 additionalCosts: shipping: price: 9 price: 99.99 + selectedPriceType: member name: Air Glide width: 6.027456183070403 attributes: image: 11.jpeg material: leather + adjustmentEffectiveUntil: 2021-09-12T10:12:42Z position: 5.962133916683182 sku: SKU1241028 category: shoes + prices: + member: + price: 90 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + effectiveFrom: 2025-05-25T00:00:00Z + effectiveUntil: 2025-05-30T00:00:00Z + base: + price: 100 height: 0.8008281904610115 updated: 2020-02-08T14:15:22Z firstSession: true @@ -14108,7 +14479,6 @@ components: type: array StatusCode: description: The error code - format: int64 type: integer type: object IntegrationRequest: @@ -14143,19 +14513,31 @@ components: returnedQuantity: 1 length: 1.4658129805029452 weight: 1130.0 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + adjustmentEffectiveFrom: 2021-09-12T10:12:42Z catalogItemID: 5 additionalCosts: shipping: price: 9 price: 99.99 + selectedPriceType: member name: Air Glide width: 6.027456183070403 attributes: image: 11.jpeg material: leather + adjustmentEffectiveUntil: 2021-09-12T10:12:42Z position: 5.962133916683182 sku: SKU1241028 category: shoes + prices: + member: + price: 90 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + effectiveFrom: 2025-05-25T00:00:00Z + effectiveUntil: 2025-05-30T00:00:00Z + base: + price: 100 height: 0.8008281904610115 - remainingQuantity: 1 product: @@ -14164,19 +14546,31 @@ components: returnedQuantity: 1 length: 1.4658129805029452 weight: 1130.0 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + adjustmentEffectiveFrom: 2021-09-12T10:12:42Z catalogItemID: 5 additionalCosts: shipping: price: 9 price: 99.99 + selectedPriceType: member name: Air Glide width: 6.027456183070403 attributes: image: 11.jpeg material: leather + adjustmentEffectiveUntil: 2021-09-12T10:12:42Z position: 5.962133916683182 sku: SKU1241028 category: shoes + prices: + member: + price: 90 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + effectiveFrom: 2025-05-25T00:00:00Z + effectiveUntil: 2025-05-30T00:00:00Z + base: + price: 100 height: 0.8008281904610115 responseContent: - customerSession @@ -14210,6 +14604,21 @@ components: required: - customerSession type: object + CustomerProfileEntity: + properties: + id: + description: The internal ID of the customer profile. + example: 6 + type: integer + created: + description: The time the customer profile was created. + example: 2020-06-10T09:05:27.993483Z + format: date-time + type: string + required: + - created + - id + type: object NewCustomerProfile: properties: attributes: @@ -14234,7 +14643,6 @@ components: loyaltyProgramId: description: The ID of the loyalty program belonging to this entity. example: 323414846 - format: int64 title: Loyalty program ID type: integer required: @@ -14248,7 +14656,6 @@ components: id: description: The ID of the audience belonging to this entity. example: 2 - format: int64 title: Audience ID type: integer name: @@ -14285,9 +14692,8 @@ components: id: 2 properties: id: - description: Internal ID of this entity. + description: The internal ID of the customer profile. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -14310,14 +14716,12 @@ components: accountId: description: The ID of the Talon.One account that owns this profile. example: 31 - format: int64 title: Profile belongs to Account type: integer closedSessions: - description: The total amount of closed sessions by a customer. A closed - session is a successful purchase. + description: The total number of closed sessions. Does not include closed + sessions that have been cancelled or reopened. See the [docs](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states). example: 3 - format: int64 title: Closed sessions type: integer totalSales: @@ -14419,9 +14823,8 @@ components: referenceId: 6 properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -14437,22 +14840,18 @@ components: type: string accountId: description: The ID of the Talon.One account that owns this profile. - format: int64 type: integer loyaltyProgramId: description: ID of the ledger. example: 323414846 - format: int64 type: integer eventId: description: ID of the related event. example: 3 - format: int64 type: integer amount: description: Amount of loyalty points. example: 100 - format: int64 type: integer reason: description: reason for awarding/deducting points. @@ -14465,7 +14864,6 @@ components: type: string referenceId: description: The ID of the balancing ledgerEntry. - format: int64 type: integer required: - accountId @@ -14489,11 +14887,9 @@ components: properties: campaignId: example: 244 - format: int64 type: integer couponId: example: 4928 - format: int64 type: integer reason: enum: @@ -14526,10 +14922,8 @@ components: referralId: 5 properties: campaignId: - format: int64 type: integer referralId: - format: int64 type: integer reason: enum: @@ -14633,9 +15027,8 @@ components: type: pageViewed properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -14645,7 +15038,6 @@ components: applicationId: description: The ID of the Application that owns this entity. example: 322 - format: int64 type: integer profileId: description: | @@ -14708,7 +15100,6 @@ components: programID: description: The ID of the loyalty program that owns this entity. example: 125 - format: int64 type: integer programName: description: The integration name of the loyalty program that owns this @@ -14818,11 +15209,9 @@ components: required: - currentBalance - expiredBalance - - negativeBalance - pendingBalance - spentBalance - tentativeCurrentBalance - - tentativeNegativeBalance type: object Tier: example: @@ -14835,7 +15224,6 @@ components: id: description: The internal ID of the tier. example: 11 - format: int64 type: integer name: description: The name of the tier. @@ -14944,11 +15332,9 @@ components: required: - currentBalance - expiredBalance - - negativeBalance - pendingBalance - spentBalance - tentativeCurrentBalance - - tentativeNegativeBalance type: object LoyaltyCard: example: @@ -15005,9 +15391,8 @@ components: status: active properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -15017,7 +15402,6 @@ components: programID: description: The ID of the loyalty program that owns this entity. example: 125 - format: int64 type: integer programName: description: The integration name of the loyalty program that owns this @@ -15050,7 +15434,6 @@ components: description: | The max amount of customer profiles that can be linked to the card. 0 means unlimited. example: 111 - format: int64 minimum: 0 type: integer profiles: @@ -15141,7 +15524,6 @@ components: id: description: The internal ID of loyalty program. example: 5 - format: int64 type: integer title: description: Visible name of loyalty program. @@ -15352,7 +15734,6 @@ components: description: | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. example: 1 - format: int64 maximum: 999999 minimum: 0 title: Referral code Usage Limit @@ -15386,7 +15767,6 @@ components: description: | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. example: 1 - format: int64 maximum: 999999 minimum: 0 title: Referral code Usage Limit @@ -15395,7 +15775,6 @@ components: description: ID of the campaign from which the referral received the referral code. example: 78 - format: int64 title: Referral's Campaign ID type: integer advocateProfileIntegrationId: @@ -15424,7 +15803,6 @@ components: importId: description: The ID of the Import which created this referral. example: 4 - format: int64 type: integer type: object Referral: @@ -15445,9 +15823,8 @@ components: startDate: 2020-11-10T23:00:00Z properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -15471,7 +15848,6 @@ components: description: | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. example: 1 - format: int64 maximum: 999999 minimum: 0 title: Referral code Usage Limit @@ -15480,7 +15856,6 @@ components: description: ID of the campaign from which the referral received the referral code. example: 78 - format: int64 title: Referral's Campaign ID type: integer advocateProfileIntegrationId: @@ -15503,7 +15878,6 @@ components: importId: description: The ID of the Import which created this referral. example: 4 - format: int64 type: integer code: description: The referral code. @@ -15515,7 +15889,6 @@ components: description: The number of times this referral code has been successfully used. example: 1 - format: int64 title: Referral code Usages type: integer batchId: @@ -15553,9 +15926,8 @@ components: startDate: 2020-11-10T23:00:00Z properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -15579,7 +15951,6 @@ components: description: | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. example: 1 - format: int64 maximum: 999999 minimum: 0 title: Referral code Usage Limit @@ -15588,7 +15959,6 @@ components: description: ID of the campaign from which the referral received the referral code. example: 78 - format: int64 title: Referral's Campaign ID type: integer advocateProfileIntegrationId: @@ -15611,7 +15981,6 @@ components: importId: description: The ID of the Import which created this referral. example: 4 - format: int64 type: integer code: description: The referral code. @@ -15623,7 +15992,6 @@ components: description: The number of times this referral code has been successfully used. example: 1 - format: int64 title: Referral code Usages type: integer batchId: @@ -15646,12 +16014,26 @@ components: - usageCounter - usageLimit type: object + CouponEntity: + properties: + id: + description: The internal ID of the coupon. + example: 6 + type: integer + created: + description: The time the coupon was created. + example: 2020-06-10T09:05:27.993483Z + format: date-time + type: string + required: + - created + - id + type: object CampaignEntity: properties: campaignId: description: The ID of the campaign that owns this entity. example: 211 - format: int64 title: Campaign ID type: integer required: @@ -15672,7 +16054,6 @@ components: description: | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. example: 100 - format: int64 maximum: 999999 minimum: 0 type: integer @@ -15680,14 +16061,13 @@ components: description: | The total discount value that the code can give. Typically used to represent a gift card value. example: 30.0 - maximum: 999999 + maximum: 1E+15 minimum: 0 type: number reservationLimit: description: | The number of reservations that can be made with this coupon code. example: 45 - format: int64 maximum: 999999 minimum: 0 type: integer @@ -15802,19 +16182,17 @@ components: isReservationMandatory: false properties: id: - description: Internal ID of this entity. + description: The internal ID of the coupon. example: 6 - format: int64 type: integer created: - description: The time this entity was created. + description: The time the coupon was created. example: 2020-06-10T09:05:27.993483Z format: date-time type: string campaignId: description: The ID of the campaign that owns this entity. example: 211 - format: int64 title: Campaign ID type: integer value: @@ -15827,7 +16205,6 @@ components: description: | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. example: 100 - format: int64 maximum: 999999 minimum: 0 type: integer @@ -15835,14 +16212,13 @@ components: description: | The total discount value that the code can give. Typically used to represent a gift card value. example: 30.0 - maximum: 999999 + maximum: 1E+15 minimum: 0 type: number reservationLimit: description: | The number of reservations that can be made with this coupon code. example: 45 - format: int64 maximum: 999999 minimum: 0 type: integer @@ -15870,7 +16246,6 @@ components: usageCounter: description: The number of times the coupon has been successfully redeemed. example: 10 - format: int64 title: Total coupon redemptions type: integer discountCounter: @@ -15898,7 +16273,6 @@ components: description: The integration ID of the referring customer (if any) for whom this coupon was created as an effect. example: 326632952 - format: int64 title: Advocate ID type: integer recipientIntegrationId: @@ -15911,7 +16285,6 @@ components: importId: description: The ID of the Import which created this coupon. example: 4 - format: int64 title: Import ID type: integer reservation: @@ -15986,19 +16359,17 @@ components: isReservationMandatory: false properties: id: - description: Internal ID of this entity. + description: The internal ID of the coupon. example: 6 - format: int64 type: integer created: - description: The time this entity was created. + description: The time the coupon was created. example: 2020-06-10T09:05:27.993483Z format: date-time type: string campaignId: description: The ID of the campaign that owns this entity. example: 211 - format: int64 title: Campaign ID type: integer value: @@ -16011,7 +16382,6 @@ components: description: | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. example: 100 - format: int64 maximum: 999999 minimum: 0 type: integer @@ -16019,14 +16389,13 @@ components: description: | The total discount value that the code can give. Typically used to represent a gift card value. example: 30.0 - maximum: 999999 + maximum: 1E+15 minimum: 0 type: number reservationLimit: description: | The number of reservations that can be made with this coupon code. example: 45 - format: int64 maximum: 999999 minimum: 0 type: integer @@ -16054,7 +16423,6 @@ components: usageCounter: description: The number of times the coupon has been successfully redeemed. example: 10 - format: int64 title: Total coupon redemptions type: integer discountCounter: @@ -16082,7 +16450,6 @@ components: description: The integration ID of the referring customer (if any) for whom this coupon was created as an effect. example: 326632952 - format: int64 title: Advocate ID type: integer recipientIntegrationId: @@ -16095,7 +16462,6 @@ components: importId: description: The ID of the Import which created this coupon. example: 4 - format: int64 title: Import ID type: integer reservation: @@ -16128,7 +16494,6 @@ components: profileRedemptionCount: description: The number of times the coupon was redeemed by the profile. example: 5 - format: int64 title: Coupon redemptions for the profile type: integer required: @@ -16145,7 +16510,6 @@ components: id: description: Unique ID for this entity. example: 4 - format: int64 type: integer created: description: The exact moment this entity was created. @@ -16161,7 +16525,6 @@ components: userId: description: The ID of the user associated with this entity. example: 388 - format: int64 type: integer required: - userId @@ -16304,7 +16667,6 @@ components: [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. example: 6 - format: int64 type: integer tags: description: A list of tags for the campaign. @@ -16348,7 +16710,6 @@ components: - 1 - 3 items: - format: int64 type: integer type: array type: @@ -16375,7 +16736,6 @@ components: - 2 - 3 items: - format: int64 type: integer type: array required: @@ -16432,14 +16792,12 @@ components: This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. example: 163 - format: int64 type: integer referralRedemptionCount: description: | This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. example: 3 - format: int64 type: integer discountCount: description: | @@ -16452,42 +16810,36 @@ components: This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. example: 343 - format: int64 type: integer couponCreationCount: description: | This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. example: 16 - format: int64 type: integer customEffectCount: description: | This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. example: 0 - format: int64 type: integer referralCreationCount: description: | This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. example: 8 - format: int64 type: integer addFreeItemEffectCount: description: | This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. example: 0 - format: int64 type: integer awardedGiveawaysCount: description: | This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. example: 9 - format: int64 type: integer createdLoyaltyPointsCount: description: | @@ -16500,7 +16852,6 @@ components: This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. example: 2 - format: int64 type: integer redeemedLoyaltyPointsCount: description: | @@ -16513,21 +16864,18 @@ components: This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. example: 9 - format: int64 type: integer callApiEffectCount: description: | This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. example: 0 - format: int64 type: integer reservecouponEffectCount: description: | This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. example: 9 - format: int64 type: integer lastActivity: description: Timestamp of the most recent event received by this campaign. @@ -16551,7 +16899,6 @@ components: templateId: description: The ID of the Campaign Template this Campaign was created from. example: 3 - format: int64 type: integer frontendState: description: The campaign state displayed in the Campaign Manager. @@ -16575,7 +16922,6 @@ components: - 100 - 215 items: - format: int64 type: integer type: array required: @@ -16595,31 +16941,26 @@ components: description: | ID of the revision that was last activated on this campaign. example: 6 - format: int64 type: integer activeRevisionVersionId: description: | ID of the revision version that is active on the campaign. example: 6 - format: int64 type: integer version: description: | Incrementing number representing how many revisions have been activated on this campaign, starts from 0 for a new campaign. example: 6 - format: int64 type: integer currentRevisionId: description: | ID of the revision currently being modified for the campaign. example: 6 - format: int64 type: integer currentRevisionVersionId: description: | ID of the latest version applied on the current revision. example: 6 - format: int64 type: integer stageRevision: default: false @@ -16786,7 +17127,6 @@ components: id: description: Unique ID for this entity. example: 4 - format: int64 type: integer created: description: The exact moment this entity was created. @@ -16796,12 +17136,10 @@ components: applicationId: description: The ID of the Application that owns this entity. example: 322 - format: int64 type: integer userId: description: The ID of the user associated with this entity. example: 388 - format: int64 type: integer name: description: A user-facing name for this campaign. @@ -16843,7 +17181,6 @@ components: [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. example: 6 - format: int64 type: integer tags: description: A list of tags for the campaign. @@ -16887,7 +17224,6 @@ components: - 1 - 3 items: - format: int64 type: integer type: array type: @@ -16914,7 +17250,6 @@ components: - 2 - 3 items: - format: int64 type: integer type: array budgets: @@ -16931,14 +17266,12 @@ components: This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. example: 163 - format: int64 type: integer referralRedemptionCount: description: | This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. example: 3 - format: int64 type: integer discountCount: description: | @@ -16951,42 +17284,36 @@ components: This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. example: 343 - format: int64 type: integer couponCreationCount: description: | This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. example: 16 - format: int64 type: integer customEffectCount: description: | This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. example: 0 - format: int64 type: integer referralCreationCount: description: | This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. example: 8 - format: int64 type: integer addFreeItemEffectCount: description: | This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. example: 0 - format: int64 type: integer awardedGiveawaysCount: description: | This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. example: 9 - format: int64 type: integer createdLoyaltyPointsCount: description: | @@ -16999,7 +17326,6 @@ components: This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. example: 2 - format: int64 type: integer redeemedLoyaltyPointsCount: description: | @@ -17012,21 +17338,18 @@ components: This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. example: 9 - format: int64 type: integer callApiEffectCount: description: | This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. example: 0 - format: int64 type: integer reservecouponEffectCount: description: | This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. example: 9 - format: int64 type: integer lastActivity: description: Timestamp of the most recent event received by this campaign. @@ -17050,7 +17373,6 @@ components: templateId: description: The ID of the Campaign Template this Campaign was created from. example: 3 - format: int64 type: integer frontendState: description: The campaign state displayed in the Campaign Manager. @@ -17074,7 +17396,6 @@ components: - 100 - 215 items: - format: int64 type: integer type: array revisionFrontendState: @@ -17088,31 +17409,26 @@ components: description: | ID of the revision that was last activated on this campaign. example: 6 - format: int64 type: integer activeRevisionVersionId: description: | ID of the revision version that is active on the campaign. example: 6 - format: int64 type: integer version: description: | Incrementing number representing how many revisions have been activated on this campaign, starts from 0 for a new campaign. example: 6 - format: int64 type: integer currentRevisionId: description: | ID of the revision currently being modified for the campaign. example: 6 - format: int64 type: integer currentRevisionVersionId: description: | ID of the latest version applied on the current revision. example: 6 - format: int64 type: integer stageRevision: default: false @@ -17155,20 +17471,17 @@ components: properties: campaignID: description: The ID of the campaign that contains the rule that failed. - format: int64 type: integer campaignName: description: The name of the campaign that contains the rule that failed. type: string rulesetID: description: The ID of the ruleset that contains the rule that failed. - format: int64 type: integer couponID: description: The ID of the coupon that was being evaluated at the time of the rule failure. example: 4928 - format: int64 type: integer couponValue: description: The code of the coupon that was being evaluated at the time @@ -17177,7 +17490,6 @@ components: referralID: description: The ID of the referral that was being evaluated at the time of the rule failure. - format: int64 type: integer referralValue: description: The code of the referral that was being evaluated at the time @@ -17185,18 +17497,15 @@ components: type: string ruleIndex: description: The index of the rule that failed within the ruleset. - format: int64 type: integer ruleName: description: The name of the rule that failed within the ruleset. type: string conditionIndex: description: The index of the condition that failed. - format: int64 type: integer effectIndex: description: The index of the effect that failed. - format: int64 type: integer details: description: More details about the failure. @@ -17205,7 +17514,6 @@ components: description: The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). example: 3 - format: int64 type: integer evaluationGroupMode: description: The evaluation mode of the evaluation group. For more information, @@ -17234,9 +17542,8 @@ components: startDate: 2000-01-23T04:56:07.000+00:00 properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -17250,7 +17557,6 @@ components: poolId: description: The ID of the pool to return giveaway codes from. example: 1 - format: int64 type: integer startDate: description: Timestamp at which point the giveaway becomes valid. @@ -17271,7 +17577,6 @@ components: importId: description: The ID of the Import which created this giveaway. example: 4 - format: int64 type: integer profileIntegrationId: description: The third-party integration ID of the customer profile that @@ -17282,7 +17587,6 @@ components: description: The internal ID of the customer profile that was awarded the giveaway, if the giveaway was awarded and an internal ID exists. example: 1 - format: int64 type: integer required: - code @@ -17295,7 +17599,6 @@ components: accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer required: - accountId @@ -17309,13 +17612,11 @@ components: description: The index of the cart item in the provided customer session's `cartItems` property. example: 2 - format: int64 type: integer quantity: description: | Number of cart items to return. example: 1 - format: int64 type: integer required: - position @@ -17355,9 +17656,8 @@ components: applicationId: 322 properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -17367,12 +17667,10 @@ components: applicationId: description: The ID of the Application that owns this entity. example: 322 - format: int64 type: integer accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer returnedCartItems: description: List of cart items to be returned. @@ -17382,13 +17680,11 @@ components: eventId: description: The event ID of that was generated for this return. example: 123 - format: int64 title: Event ID type: integer sessionId: description: The internal ID of the session this return was requested on. example: 123 - format: int64 title: Session ID type: integer sessionIntegrationId: @@ -17401,7 +17697,6 @@ components: profileId: description: The internal ID of the profile this return was requested on. example: 123 - format: int64 title: Profile ID type: integer profileIntegrationId: @@ -17414,7 +17709,6 @@ components: createdBy: description: ID of the user who requested this return. example: 123 - format: int64 title: Created By type: integer required: @@ -17721,9 +18015,12 @@ components: conditionIndex: 786 evaluationGroupMode: stackable effectType: rejectCoupon + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b props: '{}' + selectedPrice: 100.0 evaluationGroupID: 3 triggeredForCatalogItem: 786 + selectedPriceType: member campaignRevisionId: 1 ruleName: Give 20% discount triggeredByCoupon: 4928 @@ -17734,9 +18031,12 @@ components: conditionIndex: 786 evaluationGroupMode: stackable effectType: rejectCoupon + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b props: '{}' + selectedPrice: 100.0 evaluationGroupID: 3 triggeredForCatalogItem: 786 + selectedPriceType: member campaignRevisionId: 1 ruleName: Give 20% discount triggeredByCoupon: 4928 @@ -18163,19 +18463,31 @@ components: returnedQuantity: 1 length: 1.4658129805029452 weight: 1130.0 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + adjustmentEffectiveFrom: 2021-09-12T10:12:42Z catalogItemID: 5 additionalCosts: shipping: price: 9 price: 99.99 + selectedPriceType: member name: Air Glide width: 6.027456183070403 attributes: image: 11.jpeg material: leather + adjustmentEffectiveUntil: 2021-09-12T10:12:42Z position: 5.962133916683182 sku: SKU1241028 category: shoes + prices: + member: + price: 90 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + effectiveFrom: 2025-05-25T00:00:00Z + effectiveUntil: 2025-05-30T00:00:00Z + base: + price: 100 height: 0.8008281904610115 - remainingQuantity: 1 product: @@ -18184,19 +18496,31 @@ components: returnedQuantity: 1 length: 1.4658129805029452 weight: 1130.0 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + adjustmentEffectiveFrom: 2021-09-12T10:12:42Z catalogItemID: 5 additionalCosts: shipping: price: 9 price: 99.99 + selectedPriceType: member name: Air Glide width: 6.027456183070403 attributes: image: 11.jpeg material: leather + adjustmentEffectiveUntil: 2021-09-12T10:12:42Z position: 5.962133916683182 sku: SKU1241028 category: shoes + prices: + member: + price: 90 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + effectiveFrom: 2025-05-25T00:00:00Z + effectiveUntil: 2025-05-30T00:00:00Z + base: + price: 100 height: 0.8008281904610115 updated: 2020-02-08T14:15:22Z firstSession: true @@ -18426,9 +18750,12 @@ components: conditionIndex: 786 evaluationGroupMode: stackable effectType: rejectCoupon + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b props: '{}' + selectedPrice: 100.0 evaluationGroupID: 3 triggeredForCatalogItem: 786 + selectedPriceType: member campaignRevisionId: 1 ruleName: Give 20% discount triggeredByCoupon: 4928 @@ -18439,9 +18766,12 @@ components: conditionIndex: 786 evaluationGroupMode: stackable effectType: rejectCoupon + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b props: '{}' + selectedPrice: 100.0 evaluationGroupID: 3 triggeredForCatalogItem: 786 + selectedPriceType: member campaignRevisionId: 1 ruleName: Give 20% discount triggeredByCoupon: 4928 @@ -18469,7 +18799,6 @@ components: - 2 - 4 items: - format: int64 type: integer title: Audiences to join type: array @@ -18478,7 +18807,6 @@ components: example: - 7 items: - format: int64 type: integer title: Audiences to leave type: array @@ -18523,7 +18851,6 @@ components: - 10 - 12 items: - format: int64 type: integer title: Campaigns to evaluate type: array @@ -18559,9 +18886,12 @@ components: conditionIndex: 786 evaluationGroupMode: stackable effectType: rejectCoupon + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b props: '{}' + selectedPrice: 100.0 evaluationGroupID: 3 triggeredForCatalogItem: 786 + selectedPriceType: member campaignRevisionId: 1 ruleName: Give 20% discount triggeredByCoupon: 4928 @@ -18572,9 +18902,12 @@ components: conditionIndex: 786 evaluationGroupMode: stackable effectType: rejectCoupon + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b props: '{}' + selectedPrice: 100.0 evaluationGroupID: 3 triggeredForCatalogItem: 786 + selectedPriceType: member campaignRevisionId: 1 ruleName: Give 20% discount triggeredByCoupon: 4928 @@ -19496,12 +19829,10 @@ components: accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -19594,7 +19925,6 @@ components: description: The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). example: 748 - format: int64 type: integer required: - action @@ -19636,6 +19966,42 @@ components: required: - integrationId type: object + IntegrationCustomerProfileAudienceRequestItem: + properties: + action: + description: | + Defines the action to perform: + - `add`: Adds the customer profile to the audience. + + **Note**: If the customer profile does not exist, it will be created. The profile will not be visible in any Application + until a session or profile update is received for that profile. + - `delete`: Removes the customer profile from the audience. + enum: + - add + - delete + example: add + type: string + profileIntegrationId: + description: The ID of this customer profile in the third-party integration. + example: R195412 + maxLength: 1000 + type: string + integrationId: + description: The ID of this audience in the third-party integration. + example: 382370BKDB946 + type: string + required: + - action + - integrationId + - profileIntegrationId + type: object + IntegrationCustomerProfileAudienceRequest: + properties: + data: + items: + $ref: '#/components/schemas/IntegrationCustomerProfileAudienceRequestItem' + type: array + type: object NewAttribute: example: editable: true @@ -19751,7 +20117,6 @@ components: - 4 - 9 items: - format: int64 type: integer type: array subscribedCatalogsIds: @@ -19760,7 +20125,6 @@ components: - 2 - 5 items: - format: int64 type: integer type: array allowedSubscriptions: @@ -19820,9 +20184,8 @@ components: entity: Event properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -19832,7 +20195,6 @@ components: accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer entity: description: The name of the entity that can have this attribute. When creating @@ -19921,7 +20283,6 @@ components: - 4 - 9 items: - format: int64 type: integer type: array subscribedCatalogsIds: @@ -19930,7 +20291,6 @@ components: - 2 - 5 items: - format: int64 type: integer type: array allowedSubscriptions: @@ -19950,7 +20310,6 @@ components: type: array eventTypeId: example: 22 - format: int64 type: integer required: - accountId @@ -19964,128 +20323,6 @@ components: - title - type type: object - EventV2: - properties: - profileId: - description: | - ID of the customer profile set by your integration layer. - - **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. - example: URNGV8294NV - type: string - storeIntegrationId: - description: The integration ID of the store. You choose this ID when you - create a store. - example: STORE-001 - maxLength: 1000 - minLength: 1 - type: string - evaluableCampaignIds: - description: | - When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. - - These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. - example: - - 10 - - 12 - items: - format: int64 - type: integer - title: Campaigns to evaluate - type: array - type: - description: | - A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager. - example: pageViewed - minLength: 1 - title: Event Type - type: string - attributes: - description: Arbitrary additional JSON properties associated with the event. - They must be created in the Campaign Manager before setting them with - this property. See [creating custom attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute). - example: - myAttribute: myValue - properties: {} - type: object - required: - - type - type: object - IntegrationEventV2Request: - example: - storeIntegrationId: STORE-001 - profileId: URNGV8294NV - evaluableCampaignIds: - - 10 - - 12 - attributes: - myAttribute: myValue - type: pageViewed - responseContent: - - triggeredCampaigns - - customerProfile - properties: - profileId: - description: | - ID of the customer profile set by your integration layer. - - **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. - example: URNGV8294NV - type: string - storeIntegrationId: - description: The integration ID of the store. You choose this ID when you - create a store. - example: STORE-001 - maxLength: 1000 - minLength: 1 - type: string - evaluableCampaignIds: - description: | - When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. - - These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. - example: - - 10 - - 12 - items: - format: int64 - type: integer - title: Campaigns to evaluate - type: array - type: - description: | - A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager. - example: pageViewed - minLength: 1 - title: Event Type - type: string - attributes: - description: Arbitrary additional JSON properties associated with the event. - They must be created in the Campaign Manager before setting them with - this property. See [creating custom attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute). - example: - myAttribute: myValue - properties: {} - type: object - responseContent: - description: | - Optional list of requested information to be present on the response related to the tracking custom event. - example: - - triggeredCampaigns - - customerProfile - items: - enum: - - customerProfile - - triggeredCampaigns - - loyalty - - event - - awardedGiveaways - - ruleFailureReasons - type: string - type: array - required: - - type - type: object GetIntegrationCouponRequest: properties: campaignIds: @@ -20095,13 +20332,10 @@ components: - 2 - 3 items: - format: int64 type: integer type: array limit: - default: 10 description: The maximum number of coupons included in the response. - format: int64 maximum: 1E+3 minimum: 1 type: integer @@ -20147,19 +20381,17 @@ components: isReservationMandatory: false properties: id: - description: Internal ID of this entity. + description: The internal ID of the coupon. example: 6 - format: int64 type: integer created: - description: The time this entity was created. + description: The time the coupon was created. example: 2020-06-10T09:05:27.993483Z format: date-time type: string campaignId: description: The ID of the campaign that owns this entity. example: 211 - format: int64 title: Campaign ID type: integer value: @@ -20172,7 +20404,6 @@ components: description: | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. example: 100 - format: int64 maximum: 999999 minimum: 0 type: integer @@ -20180,14 +20411,13 @@ components: description: | The total discount value that the code can give. Typically used to represent a gift card value. example: 30.0 - maximum: 999999 + maximum: 1E+15 minimum: 0 type: number reservationLimit: description: | The number of reservations that can be made with this coupon code. example: 45 - format: int64 maximum: 999999 minimum: 0 type: integer @@ -20215,7 +20445,6 @@ components: usageCounter: description: The number of times the coupon has been successfully redeemed. example: 10 - format: int64 title: Total coupon redemptions type: integer discountCounter: @@ -20243,7 +20472,6 @@ components: description: The integration ID of the referring customer (if any) for whom this coupon was created as an effect. example: 326632952 - format: int64 title: Advocate ID type: integer recipientIntegrationId: @@ -20256,7 +20484,6 @@ components: importId: description: The ID of the Import which created this coupon. example: 4 - format: int64 title: Import ID type: integer reservation: @@ -20289,7 +20516,6 @@ components: profileRedemptionCount: description: The number of times the coupon was redeemed by the profile. example: 5 - format: int64 title: Number of coupon usages per profile type: integer state: @@ -20315,6 +20541,136 @@ components: - usageLimit - value type: object + EventV2: + properties: + profileId: + description: | + ID of the customer profile set by your integration layer. + + **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. + example: URNGV8294NV + type: string + storeIntegrationId: + description: The integration ID of the store. You choose this ID when you + create a store. + example: STORE-001 + maxLength: 1000 + minLength: 1 + type: string + evaluableCampaignIds: + description: | + When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. + + These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. + example: + - 10 + - 12 + items: + type: integer + title: Campaigns to evaluate + type: array + type: + description: | + A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager. + example: pageViewed + minLength: 1 + title: Event Type + type: string + attributes: + description: Arbitrary additional JSON properties associated with the event. + They must be created in the Campaign Manager before setting them with + this property. See [creating custom attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute). + example: + myAttribute: myValue + properties: {} + type: object + required: + - type + type: object + IntegrationEventV2Request: + example: + loyaltyCards: + - loyalty-card-1 + storeIntegrationId: STORE-001 + profileId: URNGV8294NV + evaluableCampaignIds: + - 10 + - 12 + attributes: + myAttribute: myValue + type: pageViewed + responseContent: + - triggeredCampaigns + - customerProfile + properties: + profileId: + description: | + ID of the customer profile set by your integration layer. + + **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. + example: URNGV8294NV + type: string + storeIntegrationId: + description: The integration ID of the store. You choose this ID when you + create a store. + example: STORE-001 + maxLength: 1000 + minLength: 1 + type: string + evaluableCampaignIds: + description: | + When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. + + These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. + example: + - 10 + - 12 + items: + type: integer + title: Campaigns to evaluate + type: array + type: + description: | + A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager. + example: pageViewed + minLength: 1 + title: Event Type + type: string + attributes: + description: Arbitrary additional JSON properties associated with the event. + They must be created in the Campaign Manager before setting them with + this property. See [creating custom attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute). + example: + myAttribute: myValue + properties: {} + type: object + loyaltyCards: + description: Identifier of the loyalty card used during this event. + example: + - loyalty-card-1 + items: + type: string + maxItems: 1 + type: array + responseContent: + description: | + Optional list of requested information to be present on the response related to the tracking custom event. + example: + - triggeredCampaigns + - customerProfile + items: + enum: + - customerProfile + - triggeredCampaigns + - loyalty + - event + - awardedGiveaways + - ruleFailureReasons + type: string + type: array + required: + - type + type: object AddLoyaltyPoints: description: Points to add. example: @@ -20412,7 +20768,6 @@ components: description: ID of the Application that is connected to the loyalty program. It is displayed in your Talon.One deployment URL. example: 322 - format: int64 type: integer required: - points @@ -20543,12 +20898,10 @@ components: campaigns will be added unless a different group is selected when creating the campaign. example: 3 - format: int64 type: integer defaultCartItemFilterId: description: The ID of the default Cart-Item-Filter for this application. example: 3 - format: int64 type: integer enableCampaignStateManagement: description: | @@ -20579,7 +20932,6 @@ components: - 132 - 97 items: - format: int64 type: integer type: array defaultValidity: @@ -20607,7 +20959,6 @@ components: The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. example: 111 - format: int64 minimum: 0 type: integer sandbox: @@ -20716,9 +21067,8 @@ components: description: A tier in a loyalty program. properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -20728,7 +21078,6 @@ components: programID: description: The ID of the loyalty program that owns this entity. example: 125 - format: int64 type: integer programName: description: The integration name of the loyalty program that owns this @@ -20846,7 +21195,6 @@ components: id: description: The ID of loyalty program. example: 139 - format: int64 type: integer created: description: The time this entity was created. @@ -20868,7 +21216,6 @@ components: - 132 - 97 items: - format: int64 type: integer type: array defaultValidity: @@ -20896,7 +21243,6 @@ components: The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. example: 111 - format: int64 minimum: 0 type: integer sandbox: @@ -20986,7 +21332,6 @@ components: accountID: description: The ID of the Talon.One account that owns this program. example: 1 - format: int64 type: integer name: description: The internal name for the Loyalty Program. This is an immutable @@ -21277,9 +21622,8 @@ components: enablePartialDiscounts: false properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -21294,7 +21638,6 @@ components: accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer name: description: The name of this application. @@ -21375,12 +21718,10 @@ components: campaigns will be added unless a different group is selected when creating the campaign. example: 3 - format: int64 type: integer defaultCartItemFilterId: description: The ID of the default Cart-Item-Filter for this application. example: 3 - format: int64 type: integer enableCampaignStateManagement: description: | @@ -21456,9 +21797,8 @@ components: MultipleAudiencesItem: properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -21497,7 +21837,6 @@ components: accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer audiences: items: @@ -21592,7 +21931,6 @@ components: applicationId: description: The ID of the Application that owns this entity. example: 322 - format: int64 type: integer profileId: description: | @@ -21764,9 +22102,12 @@ components: conditionIndex: 786 evaluationGroupMode: stackable effectType: rejectCoupon + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b props: '{}' + selectedPrice: 100.0 evaluationGroupID: 3 triggeredForCatalogItem: 786 + selectedPriceType: member campaignRevisionId: 1 ruleName: Give 20% discount triggeredByCoupon: 4928 @@ -21777,9 +22118,12 @@ components: conditionIndex: 786 evaluationGroupMode: stackable effectType: rejectCoupon + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b props: '{}' + selectedPrice: 100.0 evaluationGroupID: 3 triggeredForCatalogItem: 786 + selectedPriceType: member campaignRevisionId: 1 ruleName: Give 20% discount triggeredByCoupon: 4928 @@ -22540,7 +22884,6 @@ components: description: | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. example: 1 - format: int64 maximum: 999999 minimum: 0 title: Referral code Usage Limit @@ -22549,7 +22892,6 @@ components: description: The ID of the campaign from which the referral received the referral code. example: 45 - format: int64 title: Referral's Campaign ID type: integer advocateProfileIntegrationIds: @@ -22720,7 +23062,6 @@ components: achievementId: description: The internal ID of the achievement. example: 3 - format: int64 type: integer name: description: | @@ -22742,7 +23083,6 @@ components: campaignId: description: The ID of the campaign the achievement belongs to. example: 3 - format: int64 type: integer target: description: The required number of actions or the transactional milestone @@ -22754,9 +23094,11 @@ components: The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. enum: - no_recurrence - on_expiration + - on_completion example: no_recurrence type: string achievementActivationPolicy: @@ -23161,7 +23503,6 @@ components: **Note**: Only applicable if the period is set to `Y`. example: 11 - format: int64 maximum: 12 minimum: 1 type: integer @@ -23171,7 +23512,6 @@ components: **Note**: Only applicable if the period is set to `Y` or `M`. example: 23 - format: int64 maximum: 31 minimum: 1 type: integer @@ -23180,24 +23520,20 @@ components: The achievement ends and resets on this day of the week. `1` represents `Monday` and `7` represents `Sunday`. **Note**: Only applicable if the period is set to `W`. - format: int64 maximum: 7 minimum: 1 type: integer hour: description: The achievement ends and resets at this hour. example: 23 - format: int64 type: integer minute: description: The achievement ends and resets at this minute. example: 59 - format: int64 type: integer second: description: The achievement ends and resets at this second. example: 59 - format: int64 type: integer required: - hour @@ -23266,9 +23602,11 @@ components: The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. enum: - no_recurrence - on_expiration + - on_completion example: no_recurrence type: string activationPolicy: @@ -23374,9 +23712,11 @@ components: The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. enum: - no_recurrence - on_expiration + - on_completion example: no_recurrence type: string activationPolicy: @@ -23438,9 +23778,8 @@ components: status: active properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -23507,9 +23846,11 @@ components: The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. enum: - no_recurrence - on_expiration + - on_completion example: no_recurrence type: string activationPolicy: @@ -23539,7 +23880,6 @@ components: campaignId: description: The ID of the campaign the achievement belongs to. example: 1 - format: int64 type: integer status: description: The status of the achievement. @@ -23813,7 +24153,6 @@ components: programId: description: ID of the loyalty program. example: 324 - format: int64 type: integer cardIdentifier: description: | @@ -23870,13 +24209,11 @@ components: id: description: ID of the loyalty ledger transaction. example: 123 - format: int64 type: integer rulesetId: description: The ID of the ruleset containing the rule that triggered this effect. example: 11 - format: int64 type: integer ruleName: description: The name of the rule that triggered this effect. @@ -23928,7 +24265,6 @@ components: programId: description: ID of the loyalty program. example: 324 - format: int64 type: integer customerSessionId: description: ID of the customer session where the transaction occurred. @@ -23978,13 +24314,11 @@ components: id: description: ID of the loyalty ledger transaction. example: 123 - format: int64 type: integer rulesetId: description: The ID of the ruleset containing the rule that triggered this effect. example: 11 - format: int64 type: integer ruleName: description: The name of the rule that triggered this effect. @@ -24020,7 +24354,6 @@ components: id: description: ID of the transaction that adds loyalty points. example: 123 - format: int64 type: integer created: description: Date and time the loyalty card points were added. @@ -24029,7 +24362,6 @@ components: programId: description: ID of the loyalty program. example: 324 - format: int64 type: integer customerProfileID: description: Integration ID of the customer profile linked to the card. @@ -24095,7 +24427,6 @@ components: id: description: ID of the transaction that adds loyalty points. example: 123 - format: int64 type: integer created: description: Date and time the loyalty points were added. @@ -24104,7 +24435,6 @@ components: programId: description: ID of the loyalty program. example: 324 - format: int64 type: integer customerSessionId: description: ID of the customer session where points were added. @@ -24280,7 +24610,6 @@ components: [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. example: 6 - format: int64 type: integer tags: description: A list of tags for the campaign. @@ -24324,7 +24653,6 @@ components: - 1 - 3 items: - format: int64 type: integer type: array type: @@ -24351,14 +24679,12 @@ components: - 2 - 3 items: - format: int64 type: integer type: array evaluationGroupId: description: The ID of the campaign evaluation group the campaign belongs to. example: 2 - format: int64 title: Evaluation Group ID type: integer required: @@ -24374,7 +24700,6 @@ components: description: Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. example: 6 - format: int64 type: integer required: - id @@ -24418,7 +24743,6 @@ components: activeRulesetId: description: The ID of the ruleset this campaign template will use. example: 5 - format: int64 nullable: true type: integer tags: @@ -24457,28 +24781,21 @@ components: description: Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. example: 6 - format: int64 type: integer accountId: - format: int64 type: integer applicationId: - format: int64 type: integer campaignId: - format: int64 type: integer created: format: date-time type: string createdBy: - format: int64 type: integer revisionId: - format: int64 type: integer version: - format: int64 type: integer name: description: A user-facing name for this campaign. @@ -24511,7 +24828,6 @@ components: activeRulesetId: description: The ID of the ruleset this campaign template will use. example: 5 - format: int64 nullable: true type: integer tags: @@ -24559,31 +24875,25 @@ components: description: Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. example: 6 - format: int64 type: integer activateAt: format: date-time type: string accountId: - format: int64 type: integer applicationId: - format: int64 type: integer campaignId: - format: int64 type: integer created: format: date-time type: string createdBy: - format: int64 type: integer activatedAt: format: date-time type: string activatedBy: - format: int64 type: integer currentVersion: $ref: '#/components/schemas/RevisionVersion' @@ -24605,7 +24915,6 @@ components: - 2 - 3 items: - format: int64 type: integer maxItems: 5 type: array @@ -24629,7 +24938,6 @@ components: description: The ID of the parent group that contains the campaign evaluation group. example: 2 - format: int64 minimum: 1 type: integer description: @@ -24669,7 +24977,6 @@ components: applicationId: description: The ID of the Application that owns this entity. example: 322 - format: int64 type: integer name: description: The name of the campaign evaluation group. @@ -24679,7 +24986,6 @@ components: description: The ID of the parent group that contains the campaign evaluation group. example: 2 - format: int64 minimum: 1 type: integer description: @@ -24711,7 +25017,6 @@ components: description: Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. example: 6 - format: int64 type: integer required: - applicationId @@ -24732,7 +25037,6 @@ components: description: The ID of the parent group that contains the campaign evaluation group. example: 2 - format: int64 minimum: 1 type: integer description: @@ -24793,7 +25097,6 @@ components: type: array groupId: description: The ID of the campaign set. - format: int64 type: integer locked: description: An indicator of whether the campaign set is locked for modification. @@ -24835,7 +25138,6 @@ components: type: string campaignId: description: ID of the campaign - format: int64 type: integer required: - campaignId @@ -24854,17 +25156,14 @@ components: applicationId: description: The ID of the Application that owns this entity. example: 322 - format: int64 type: integer id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer version: description: Version of the campaign set. example: 3 - format: int64 minimum: 1 type: integer set: @@ -24884,12 +25183,10 @@ components: applicationId: description: The ID of the Application that owns this entity. example: 322 - format: int64 type: integer version: description: Version of the campaign set. example: 2 - format: int64 minimum: 1 type: integer set: @@ -25056,7 +25353,6 @@ components: [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. example: 2 - format: int64 type: integer tags: description: A list of tags for the campaign. @@ -25100,14 +25396,12 @@ components: - 1 - 3 items: - format: int64 type: integer type: array evaluationGroupId: description: The ID of the campaign evaluation group the campaign belongs to. example: 2 - format: int64 type: integer type: default: advanced @@ -25133,7 +25427,6 @@ components: - 2 - 3 items: - format: int64 type: integer type: array required: @@ -25170,7 +25463,6 @@ components: - 2 - 3 items: - format: int64 type: integer type: array description: @@ -25203,7 +25495,6 @@ components: description: The ID of the campaign evaluation group the campaign belongs to. example: 2 - format: int64 type: integer required: - applicationIds @@ -25218,7 +25509,22 @@ components: - 2 - 3 items: - format: int64 + type: integer + maxItems: 5 + type: array + required: + - userIds + type: object + CampaignDeactivationRequest: + properties: + userIds: + description: The list of IDs of the users receiving the deactivation request + emails. + example: + - 1 + - 2 + - 3 + items: type: integer maxItems: 5 type: array @@ -25242,7 +25548,6 @@ components: - 2 - 3 items: - format: int64 type: integer maxItems: 50 type: array @@ -25262,7 +25567,6 @@ components: id: description: Unique ID for this entity. example: 6 - format: int64 type: integer name: description: Name of the outgoing integration. @@ -25383,17 +25687,14 @@ components: id: description: Unique ID for this entity. example: 6 - format: int64 type: integer accountId: description: The ID of the account to which this configuration belongs. example: 3886 - format: int64 type: integer typeId: description: The outgoing integration type ID. example: 12 - format: int64 type: integer policy: description: The outgoing integration policy specific to each integration @@ -25410,12 +25711,10 @@ components: id: description: Unique ID for this entity. example: 6 - format: int64 type: integer integrationType: description: Unique ID of outgoing integration type. example: 2 - format: int64 type: integer title: description: The title of the integration template. @@ -25480,12 +25779,10 @@ components: id: description: Unique ID for this entity. example: 6 - format: int64 type: integer integrationType: description: Unique ID of outgoing integration type. example: 2 - format: int64 type: integer title: description: The title of the integration template. @@ -25559,7 +25856,6 @@ components: - 2 - 3 items: - format: int64 type: integer type: array required: @@ -25616,7 +25912,6 @@ components: type: string picklistID: description: ID of the picklist linked to a template. - format: int64 type: integer restrictedByPicklist: description: Whether or not this attribute's value is restricted by picklist @@ -25634,7 +25929,6 @@ components: The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. items: - format: int64 type: integer type: array title: @@ -25646,6 +25940,10 @@ components: description: A description of the webhook. example: A webhook to send a coupon to the user. type: string + draft: + description: Indicates if the webhook is a draft. + example: false + type: boolean verb: description: API method for this webhook. enum: @@ -25686,6 +25984,7 @@ components: type: boolean required: - applicationIds + - draft - enabled - headers - params @@ -25698,12 +25997,9 @@ components: headers: - '{"Authorization": "Basic bmF2ZWVua3VtYXIU="}' - '{"Content-Type": "application/json"}' - payload: "{\n\t\"message\": \"${message}\"\n}" created: 2020-06-10T09:05:27.993483Z verb: POST - modified: 2021-09-12T10:12:42Z description: A webhook to send a coupon to the user. - id: 6 title: Send message params: [] url: www.my-company.com/my-endpoint-name @@ -25711,11 +26007,14 @@ components: applicationIds: - 0 - 0 + payload: "{\n\t\"message\": \"${message}\"\n}" + draft: false + modified: 2021-09-12T10:12:42Z + id: 6 properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -25732,7 +26031,6 @@ components: The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. items: - format: int64 type: integer type: array title: @@ -25744,6 +26042,10 @@ components: description: A description of the webhook. example: A webhook to send a coupon to the user. type: string + draft: + description: Indicates if the webhook is a draft. + example: false + type: boolean verb: description: API method for this webhook. enum: @@ -25785,6 +26087,7 @@ components: required: - applicationIds - created + - draft - enabled - headers - id @@ -25798,7 +26101,6 @@ components: properties: amount: description: The amount of period. - format: int64 minimum: 0 type: integer period: @@ -25831,11 +26133,9 @@ components: example: true type: boolean batchSize: - default: 1000 description: The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. example: 1000 - format: int64 type: integer required: - name @@ -25845,7 +26145,6 @@ components: properties: amount: description: The amount of period. - format: int64 minimum: 1 type: integer period: @@ -25878,11 +26177,9 @@ components: example: true type: boolean batchSize: - default: 1000 description: The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. example: 1000 - format: int64 type: integer required: - name @@ -25892,7 +26189,6 @@ components: properties: amount: description: The amount of period. - format: int64 minimum: 1 type: integer period: @@ -25925,11 +26221,9 @@ components: example: true type: boolean batchSize: - default: 1000 description: The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. example: 1000 - format: int64 type: integer required: - name @@ -25979,6 +26273,50 @@ components: - name - scopes type: object + AddedDeductedPointsBalancesNotificationPolicy: + properties: + name: + description: Notification name. + example: Christmas Sale + minLength: 1 + type: string + scopes: + items: + enum: + - all + - campaign_manager + - management_api + - rule_engine + type: string + maxItems: 4 + minItems: 1 + type: array + required: + - name + - scopes + type: object + CardAddedDeductedPointsBalancesNotificationPolicy: + properties: + name: + description: Notification name. + example: Christmas Sale + minLength: 1 + type: string + scopes: + items: + enum: + - all + - campaign_manager + - management_api + - rule_engine + type: string + maxItems: 4 + minItems: 1 + type: array + required: + - name + - scopes + type: object CouponsNotificationPolicy: properties: name: @@ -26008,11 +26346,9 @@ components: example: true type: boolean batchSize: - default: 1000 description: The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. example: 1000 - format: int64 type: integer required: - name @@ -26028,7 +26364,6 @@ components: aheadOfDaysTrigger: description: The number of days in advance that strikethrough pricing updates should be sent. - format: int64 maximum: 3E+1 minimum: 1 type: integer @@ -26048,11 +26383,9 @@ components: example: false type: boolean batchSize: - default: 1000 description: The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. example: 1000 - format: int64 type: integer required: - name @@ -26070,11 +26403,9 @@ components: example: false type: boolean batchSize: - default: 5 description: The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. example: 5 - format: int64 type: integer required: - name @@ -26092,11 +26423,9 @@ components: example: false type: boolean batchSize: - default: 1000 description: The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. example: 1000 - format: int64 type: integer required: - name @@ -26114,11 +26443,9 @@ components: example: false type: boolean batchSize: - default: 1000 description: The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. example: 1000 - format: int64 type: integer required: - name @@ -26127,7 +26454,6 @@ components: properties: amount: description: The amount of period. - format: int64 type: integer period: description: Notification period indicated by a letter; "w" means week, @@ -26153,11 +26479,9 @@ components: example: false type: boolean batchSize: - default: 1000 description: The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. example: 1000 - format: int64 type: integer triggers: items: @@ -26209,9 +26533,8 @@ components: BaseNotificationWebhook: properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -26260,7 +26583,6 @@ components: id: description: Unique ID for this entity. example: 6 - format: int64 minimum: 1 type: integer type: @@ -26269,6 +26591,8 @@ components: - campaign - loyalty_added_deducted_points - card_added_deducted_points + - loyalty_added_deducted_points_balances + - loyalty_card_added_deducted_points_balances - coupon - expiring_coupons - expiring_points @@ -26338,7 +26662,6 @@ components: effectId: description: ID of the effect. example: 1 - format: int64 type: integer name: description: The type of the custom effect. @@ -26362,19 +26685,16 @@ components: campaignId: description: The ID of the campaign that effect belongs to. example: 3 - format: int64 type: integer rulesetId: description: The ID of the ruleset containing the rule that triggered this effect. example: 11 - format: int64 type: integer ruleIndex: description: The position of the rule that triggered this effect within the ruleset. example: 2 - format: int64 type: integer ruleName: description: The name of the rule that triggered this effect. @@ -26409,7 +26729,6 @@ components: campaignsIDs: description: The campaign IDs that got fetched for the evaluation process. items: - format: int64 type: integer type: array effects: @@ -26419,6 +26738,97 @@ components: $ref: '#/components/schemas/StrikethroughEffect' type: array type: object + PriceType: + properties: + id: + description: The internal ID of this entity. + example: 6 + type: integer + created: + description: The time this entity was created. + example: 2020-06-10T09:05:27.993483Z + format: date-time + type: string + accountId: + description: The ID of the account that owns this price type. + example: 1 + type: integer + name: + description: The API name of the price type. This is an immutable value. + example: member + pattern: ^[A-Za-z]\w*$ + type: string + title: + description: The title of the price type. + example: Member Price + type: string + description: + description: The description of the price type. + example: Price available exclusively to members. + type: string + modified: + description: The date and time when the price type was last modified. + example: 2021-09-12T10:12:42Z + format: date-time + type: string + subscribedCatalogsIds: + description: A list of the IDs of the catalogs that are subscribed to this + price type. + example: + - 1 + - 2 + - 3 + items: + type: integer + type: array + targetedAudiencesIds: + description: A list of the IDs of the audiences that are targeted by this + price type. + example: + - 1 + - 2 + - 3 + items: + type: integer + type: array + required: + - created + - id + - modified + - name + - subscribedCatalogsIds + - targetedAudiencesIds + - title + type: object + NewPriceType: + properties: + name: + description: The API name of the price type. This is an immutable value. + example: member + pattern: ^[A-Za-z]\w*$ + type: string + title: + description: The title of the price type. + example: Member Price + type: string + description: + description: The description of the price type. + example: Price available exclusively to members. + type: string + targetedAudiencesIds: + description: A list of the IDs of the audiences that are targeted by this + price type. + example: + - 1 + - 2 + - 3 + items: + type: integer + type: array + required: + - name + - title + type: object NewMessageTest: properties: type: @@ -26427,6 +26837,8 @@ components: - campaign - loyalty_added_deducted_points - card_added_deducted_points + - loyalty_added_deducted_points_balances + - loyalty_card_added_deducted_points_balances - coupon - expiring_coupons - expiring_points @@ -26494,7 +26906,6 @@ components: httpStatus: description: The returned http status code. example: 200 - format: int64 type: integer required: - httpResponse @@ -26514,9 +26925,12 @@ components: type: object Binding: example: + attributeId: 100 + minValue: 0.0 expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter @@ -26551,6 +26965,19 @@ components: - `boolean` example: string type: string + minValue: + description: The minimum value allowed for this placeholder. + example: 0.0 + type: number + maxValue: + description: The maximum value allowed for this placeholder. + example: 19.9 + type: number + attributeId: + description: Id of the attribute attached to the placeholder. + example: 100 + title: Attribute ID + type: integer required: - expression - name @@ -26573,15 +27000,21 @@ components: - 10 - 100 bindings: - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter @@ -26709,15 +27142,21 @@ components: - 10 - 100 bindings: - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter @@ -26741,15 +27180,21 @@ components: - 10 - 100 bindings: - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter @@ -26775,15 +27220,21 @@ components: - 10 - 100 bindings: - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter @@ -26807,15 +27258,21 @@ components: - 10 - 100 bindings: - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter @@ -26827,9 +27284,8 @@ components: userId: 388 properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -26839,7 +27295,6 @@ components: userId: description: The ID of the user associated with this entity. example: 388 - format: int64 type: integer rules: description: Set of rules to apply. @@ -26872,13 +27327,11 @@ components: campaignId: description: The ID of the campaign that owns this entity. example: 320 - format: int64 title: Campaign ID type: integer templateId: description: The ID of the campaign template that owns this entity. example: 3 - format: int64 title: Campaign Template ID type: integer activatedAt: @@ -26906,7 +27359,6 @@ components: description: | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. example: 100 - format: int64 maximum: 999999 minimum: 0 type: integer @@ -26914,14 +27366,13 @@ components: description: | The total discount value that the code can give. Typically used to represent a gift card value. example: 30.0 - maximum: 999999 + maximum: 1E+15 minimum: 0 type: number reservationLimit: description: | The number of reservations that can be made with this coupon code. example: 45 - format: int64 maximum: 999999 minimum: 0 type: integer @@ -26986,7 +27437,6 @@ components: description: | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. example: 100 - format: int64 maximum: 999999 minimum: 0 type: integer @@ -26994,14 +27444,13 @@ components: description: | The total discount value that the code can give. Typically used to represent a gift card value. example: 30.0 - maximum: 999999 + maximum: 1E+15 minimum: 0 type: number reservationLimit: description: | The number of reservations that can be made with this coupon code. example: 45 - format: int64 maximum: 999999 minimum: 0 type: integer @@ -27030,7 +27479,6 @@ components: description: The number of new coupon codes to generate for the campaign. Must be at least 1. example: 1 - format: int64 type: integer uniquePrefix: description: | @@ -27132,7 +27580,6 @@ components: description: | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. example: 100 - format: int64 maximum: 999999 minimum: 0 type: integer @@ -27140,14 +27587,13 @@ components: description: | The total discount value that the code can give. Typically used to represent a gift card value. example: 30.0 - maximum: 999999 + maximum: 1E+15 minimum: 0 type: number reservationLimit: description: | The number of reservations that can be made with this coupon code. example: 45 - format: int64 maximum: 999999 minimum: 0 type: integer @@ -27277,7 +27723,6 @@ components: description: | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. example: 100 - format: int64 maximum: 999999 minimum: 0 type: integer @@ -27285,14 +27730,13 @@ components: description: | The total discount value that the code can give. Typically used to represent a gift card value. example: 30.0 - maximum: 999999 + maximum: 1E+15 minimum: 0 type: number reservationLimit: description: | The number of reservations that can be made with this coupon code. example: 45 - format: int64 maximum: 999999 minimum: 0 type: integer @@ -27310,7 +27754,6 @@ components: numberOfCoupons: description: The number of new coupon codes to generate for the campaign. example: 200000 - format: int64 maximum: 5E+6 minimum: 1 type: integer @@ -27418,7 +27861,6 @@ components: referralId: description: Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. - format: int64 type: integer expiresAfter: description: Filter results comparing the parameter value, expected to be @@ -27464,7 +27906,6 @@ components: description: Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. example: 6 - format: int64 type: integer required: - id @@ -27475,7 +27916,6 @@ components: $ref: '#/components/schemas/CouponDeletionFilters' campaignids: items: - format: int64 type: integer type: array required: @@ -27509,7 +27949,6 @@ components: description: | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. example: 100 - format: int64 maximum: 999999 minimum: 0 type: integer @@ -27517,14 +27956,13 @@ components: description: | The total discount value that the code can give. Typically used to represent a gift card value. example: 30.0 - maximum: 999999 + maximum: 1E+15 minimum: 0 type: number reservationLimit: description: | The number of reservations that can be made with this coupon code. example: 45 - format: int64 maximum: 999999 minimum: 0 type: integer @@ -27611,7 +28049,6 @@ components: description: | The number of times a referral code can be used. This can be set to 0 for no limit, but any campaign usage limits will still apply. example: 1 - format: int64 maximum: 999999 minimum: 0 title: Referral code Usage Limit @@ -27650,7 +28087,6 @@ components: description: | The number of times a referral code can be used. This can be set to 0 for no limit, but any campaign usage limits will still apply. example: 1 - format: int64 maximum: 999999 minimum: 0 title: Referral code Usage Limit @@ -27679,7 +28115,6 @@ components: - 2 - 3 items: - format: int64 type: integer type: array campaignIds: @@ -27690,7 +28125,6 @@ components: - 6 - 8 items: - format: int64 type: integer type: array required: @@ -27715,9 +28149,8 @@ components: - 8 properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -27732,7 +28165,6 @@ components: accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer name: description: The name of the campaign access group. @@ -27751,7 +28183,6 @@ components: - 2 - 3 items: - format: int64 type: integer type: array campaignIds: @@ -27762,7 +28193,6 @@ components: - 6 - 8 items: - format: int64 type: integer type: array required: @@ -27791,7 +28221,6 @@ components: - 2 - 3 items: - format: int64 type: integer type: array campaignIds: @@ -27802,7 +28231,6 @@ components: - 6 - 8 items: - format: int64 type: integer type: array required: @@ -27811,9 +28239,8 @@ components: Role: properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -27828,14 +28255,12 @@ components: accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer campaignGroupID: description: | The ID of the [Campaign Group](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) this role was created for. example: 3 - format: int64 type: integer name: description: Name of the role. @@ -27853,7 +28278,6 @@ components: - 475 - 18 items: - format: int64 type: integer type: array acl: @@ -27880,7 +28304,6 @@ components: description: | The number of reservations that can be made with this coupon code. example: 45 - format: int64 maximum: 999999 minimum: 0 type: integer @@ -27973,7 +28396,6 @@ components: attributeId: description: ID of the corresponding attribute. example: 42 - format: int64 type: integer required: - description @@ -28038,7 +28460,6 @@ components: activeRulesetId: description: The ID of the ruleset this campaign template will use. example: 5 - format: int64 type: integer tags: description: A list of tags for the campaign template. @@ -28086,7 +28507,6 @@ components: - 2 - 3 items: - format: int64 type: integer type: array campaignCollections: @@ -28098,7 +28518,6 @@ components: defaultCampaignGroupId: description: The default campaign group ID. example: 42 - format: int64 type: integer campaignType: default: advanced @@ -28261,9 +28680,8 @@ components: updated: 2022-08-24T14:15:22Z properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -28273,12 +28691,10 @@ components: accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer userId: description: The ID of the user associated with this entity. example: 388 - format: int64 type: integer name: description: The campaign template name. @@ -28318,7 +28734,6 @@ components: activeRulesetId: description: The ID of the ruleset this campaign template will use. example: 5 - format: int64 type: integer tags: description: A list of tags for the campaign template. @@ -28369,7 +28784,6 @@ components: - 2 - 3 items: - format: int64 type: integer type: array campaignCollections: @@ -28381,7 +28795,6 @@ components: defaultCampaignGroupId: description: The default campaign group ID. example: 42 - format: int64 type: integer campaignType: default: advanced @@ -28412,7 +28825,6 @@ components: - 2 - 3 items: - format: int64 type: integer type: array isUserFavorite: @@ -28512,7 +28924,6 @@ components: defaultCampaignGroupId: description: The default campaign group ID. example: 42 - format: int64 type: integer campaignType: default: advanced @@ -28554,15 +28965,21 @@ components: limit: 1000.0 action: createCoupon templateParamValues: - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter @@ -28588,7 +29005,6 @@ components: description: The ID of the Campaign Template which will be used in order to create the Campaign. example: 4 - format: int64 type: integer campaignAttributesOverrides: description: Custom Campaign Attributes. If the Campaign Template defines @@ -28614,7 +29030,6 @@ components: - 1 - 3 items: - format: int64 type: integer type: array tags: @@ -28632,7 +29047,6 @@ components: description: The ID of the campaign evaluation group the campaign belongs to. example: 2 - format: int64 type: integer linkedStoreIds: description: | @@ -28646,7 +29060,6 @@ components: - 2 - 3 items: - format: int64 type: integer type: array required: @@ -28673,7 +29086,6 @@ components: - 2 - 3 items: - format: int64 type: integer type: array type: object @@ -28698,7 +29110,6 @@ components: - 2 - 3 items: - format: int64 type: integer type: array name: @@ -28728,9 +29139,8 @@ components: applicationId: 1 properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -28740,7 +29150,6 @@ components: accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer modified: description: The time this entity was last modified. @@ -28759,7 +29168,6 @@ components: - 2 - 3 items: - format: int64 type: integer type: array name: @@ -28771,22 +29179,18 @@ components: modifiedBy: description: ID of the user who last updated this effect if available. example: 48 - format: int64 type: integer createdBy: description: ID of the user who created this effect. example: 134 - format: int64 type: integer applicationId: description: The ID of the Application that owns this entity. example: 1 - format: int64 type: integer campaignId: description: The ID of the campaign that owns this entity. example: 7 - format: int64 type: integer required: - accountId @@ -28817,9 +29221,8 @@ components: applicationId: 1 properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -28829,7 +29232,6 @@ components: accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer modified: description: The time this entity was last modified. @@ -28848,7 +29250,6 @@ components: - 2 - 3 items: - format: int64 type: integer type: array name: @@ -28860,22 +29261,18 @@ components: modifiedBy: description: ID of the user who last updated this effect if available. example: 48 - format: int64 type: integer createdBy: description: ID of the user who created this effect. example: 134 - format: int64 type: integer applicationId: description: The ID of the Application that owns this entity. example: 1 - format: int64 type: integer campaignId: description: The ID of the campaign that owns this entity. example: 7 - format: int64 type: integer payload: description: The content of the collection. @@ -28955,15 +29352,21 @@ components: - 10 - 100 bindings: - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter @@ -28987,15 +29390,21 @@ components: - 10 - 100 bindings: - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter @@ -29021,15 +29430,21 @@ components: - 10 - 100 bindings: - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter @@ -29053,15 +29468,21 @@ components: - 10 - 100 bindings: - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter @@ -29255,7 +29676,6 @@ components: - 132 - 97 items: - format: int64 type: integer type: array defaultValidity: @@ -29283,7 +29703,6 @@ components: The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. example: 111 - format: int64 minimum: 0 type: integer sandbox: @@ -29420,7 +29839,6 @@ components: - 132 - 97 items: - format: int64 type: integer type: array defaultValidity: @@ -29448,7 +29866,6 @@ components: The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. example: 111 - format: int64 minimum: 0 type: integer sandbox: @@ -29547,7 +29964,6 @@ components: id: description: The internal ID of the tier. example: 6 - format: int64 type: integer name: description: The name of the tier. @@ -29657,9 +30073,8 @@ components: entity: AttributeAllowedList properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -29669,12 +30084,10 @@ components: accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer userId: description: The ID of the user associated with this entity. example: 388 - format: int64 type: integer entity: description: | @@ -29684,7 +30097,6 @@ components: amount: description: The number of values that were imported. example: 10 - format: int64 minimum: 0 type: integer required: @@ -29721,21 +30133,18 @@ components: type: string programID: example: 5 - format: int64 type: integer customerProfileID: example: URNGV8294NV type: string cardID: example: 241 - format: int64 type: integer customerSessionID: example: t2gy5s-47274 type: string eventID: example: 5 - format: int64 type: integer type: description: | @@ -29771,7 +30180,6 @@ components: description: This is the ID of the user who created this entry, if the addition or subtraction was done manually. example: 499 - format: int64 type: integer archived: description: Indicates if the entry belongs to the archived session. @@ -30267,7 +30675,6 @@ components: applicationId: description: ID of the Application that is connected to the loyalty program. example: 322 - format: int64 type: integer required: - points @@ -30298,17 +30705,14 @@ components: id: description: ID of the loyalty ledger transaction. example: 123 - format: int64 type: integer programId: description: ID of the loyalty program. example: 324 - format: int64 type: integer campaignId: description: ID of the campaign. example: 324 - format: int64 type: integer created: description: Date and time the loyalty transaction occurred. @@ -30374,13 +30778,11 @@ components: importId: description: ID of the import where the transaction occurred. example: 4 - format: int64 type: integer userId: description: ID of the user who manually added or deducted points. Applies only to manual transactions. example: 5 - format: int64 type: integer userEmail: description: The email of the Campaign Manager account that manually added @@ -30391,7 +30793,6 @@ components: description: ID of the ruleset containing the rule that triggered the effect. Applies only for transactions that resulted from a customer session. example: 11 - format: int64 type: integer ruleName: description: Name of the rule that triggered the effect. Applies only for @@ -30459,7 +30860,6 @@ components: numberOfCards: description: Number of loyalty cards in the batch. example: 5000 - format: int64 type: integer batchId: description: ID of the loyalty card batch. @@ -30489,7 +30889,6 @@ components: numberOfCardsGenerated: description: Number of loyalty cards in the batch. example: 5000 - format: int64 type: integer batchId: description: ID of the loyalty card batch. @@ -30556,7 +30955,6 @@ components: programId: description: ID of the loyalty program. example: 324 - format: int64 type: integer cardIdentifier: description: | @@ -30568,13 +30966,11 @@ components: applicationId: description: The ID of the Application that owns this entity. example: 322 - format: int64 type: integer sessionId: description: | The **internal** ID of the session. example: 233 - format: int64 type: integer customerSessionId: description: ID of the customer session where the transaction occurred. @@ -30624,7 +31020,6 @@ components: id: description: ID of the loyalty ledger entry. example: 123 - format: int64 type: integer required: - amount @@ -30675,7 +31070,6 @@ components: - 2 - 4 items: - format: int64 type: integer type: array sandbox: @@ -30692,9 +31086,8 @@ components: description: Giveaways pools is an entity for managing multiple similar giveaways. properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -30704,7 +31097,6 @@ components: accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer name: description: The name of this giveaways pool. @@ -30721,7 +31113,6 @@ components: - 2 - 4 items: - format: int64 type: integer type: array sandbox: @@ -30736,11 +31127,9 @@ components: type: string createdBy: description: ID of the user who created this giveaways pool. - format: int64 type: integer modifiedBy: description: ID of the user who last updated this giveaways pool if available. - format: int64 type: integer required: - accountId @@ -30755,23 +31144,19 @@ components: campaignId: description: The ID of the campaign that owns this entity. example: 211 - format: int64 title: Campaign ID type: integer applicationId: description: The ID of the Application that owns this entity. example: 322 - format: int64 type: integer accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer id: description: Unique ID for this entity. example: 6 - format: int64 type: integer action: description: The limitable action of the limit counter. @@ -30780,7 +31165,6 @@ components: profileId: description: The profile ID for which this limit counter is used. example: 335 - format: int64 type: integer profileIntegrationId: description: The profile integration ID for which this limit counter is @@ -30791,7 +31175,6 @@ components: couponId: description: The internal coupon ID for which this limit counter is used. example: 34 - format: int64 type: integer couponValue: description: The coupon value for which this limit counter is used. @@ -30800,7 +31183,6 @@ components: referralId: description: The referral ID for which this limit counter is used. example: 4 - format: int64 type: integer referralValue: description: The referral value for which this limit counter is used. @@ -30836,7 +31218,6 @@ components: applicationIds: description: The IDs of the Applications that are related to this entity. items: - format: int64 type: integer minItems: 1 type: array @@ -30848,7 +31229,6 @@ components: applicationIds: description: The IDs of the Applications that are related to this entity. items: - format: int64 type: integer minItems: 1 type: array @@ -30888,9 +31268,8 @@ components: CustomEffect: properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -30900,7 +31279,6 @@ components: accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer modified: description: The time this entity was last modified. @@ -30910,7 +31288,6 @@ components: applicationIds: description: The IDs of the Applications that are related to this entity. items: - format: int64 type: integer minItems: 1 type: array @@ -30943,12 +31320,10 @@ components: modifiedBy: description: ID of the user who last updated this effect if available. example: 334 - format: int64 type: integer createdBy: description: ID of the user who created this effect. example: 216 - format: int64 type: integer required: - accountId @@ -30993,9 +31368,8 @@ components: Picklist: properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -31025,17 +31399,14 @@ components: modifiedBy: description: ID of the user who last updated this effect if available. example: 124 - format: int64 type: integer createdBy: description: ID of the user who created this effect. example: 134 - format: int64 type: integer accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer imported: description: Imported flag shows that a picklist is imported by a CSV file @@ -31177,15 +31548,12 @@ components: properties: live: description: Number of campaigns that are active and live (across all Applications). - format: int64 type: integer endingSoon: description: Campaigns scheduled to expire sometime in the next 7 days. - format: int64 type: integer lowOnBudget: description: Campaigns with less than 10% of budget left. - format: int64 type: integer required: - endingSoon @@ -31224,7 +31592,6 @@ components: id: description: ID of the SAML login endpoint. example: 2 - format: int64 type: integer name: description: ID of the SAML service. @@ -31244,7 +31611,6 @@ components: accountId: description: The ID of the account that owns this entity. example: 3885 - format: int64 type: integer name: description: ID of the SAML service. @@ -31288,7 +31654,6 @@ components: accountId: description: The ID of the account that owns this entity. example: 3885 - format: int64 type: integer name: description: ID of the SAML service. @@ -31317,9 +31682,8 @@ components: This is most often the SP Entity ID of your application. When not specified, the ACS URL will be used. type: string id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -31347,7 +31711,6 @@ components: accountId: description: The ID of the account that owns this entity. example: 3885 - format: int64 type: integer name: description: ID of the SAML service. @@ -31440,12 +31803,10 @@ components: userId: description: The ID of the user. example: 109 - format: int64 type: integer accountId: description: The ID of the account. example: 31 - format: int64 type: integer token: description: The two-factor authentication token created during sign-in. @@ -31471,7 +31832,6 @@ components: userId: description: The ID of the user of this session. example: 109 - format: int64 type: integer token: description: The token to use as a bearer token to query Management API @@ -31558,7 +31918,6 @@ components: status: description: HTTP status code of response. example: 200 - format: int64 type: integer method: description: HTTP method of request. @@ -31622,7 +31981,6 @@ components: - 1 - 2 items: - format: int64 type: integer type: array webhooks: @@ -31631,7 +31989,6 @@ components: - 3 - 4 items: - format: int64 type: integer type: array type: object @@ -31701,56 +32058,44 @@ components: type: number campaignFreeItems: description: Amount of free items given in the campaign. - format: int64 type: integer totalCampaignFreeItems: description: Amount of free items given in the campaign since it began. example: 86 - format: int64 type: integer couponRedemptions: description: Number of coupon redemptions in the campaign. - format: int64 type: integer totalCouponRedemptions: description: Number of coupon redemptions in the campaign since it began. - format: int64 type: integer couponRolledbackRedemptions: description: Number of coupon redemptions that have been rolled back (due to canceling closed session) in the campaign. - format: int64 type: integer totalCouponRolledbackRedemptions: description: Number of coupon redemptions that have been rolled back (due to canceling closed session) in the campaign since it began. - format: int64 type: integer referralRedemptions: description: Number of referral redemptions in the campaign. - format: int64 type: integer totalReferralRedemptions: description: Number of referral redemptions in the campaign since it began. - format: int64 type: integer couponsCreated: description: Number of coupons created in the campaign by the rule engine. - format: int64 type: integer totalCouponsCreated: description: Number of coupons created in the campaign by the rule engine since it began. - format: int64 type: integer referralsCreated: description: Number of referrals created in the campaign by the rule engine. - format: int64 type: integer totalReferralsCreated: description: Number of referrals created in the campaign by the rule engine since it began. - format: int64 type: integer addedLoyaltyPoints: description: Number of added loyalty points in the campaign in a specific @@ -31824,9 +32169,8 @@ components: id: 2 properties: id: - description: Internal ID of this entity. + description: The internal ID of the customer profile. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -31849,14 +32193,12 @@ components: accountId: description: The ID of the Talon.One account that owns this profile. example: 31 - format: int64 title: Profile belongs to Account type: integer closedSessions: - description: The total amount of closed sessions by a customer. A closed - session is a successful purchase. + description: The total number of closed sessions. Does not include closed + sessions that have been cancelled or reopened. See the [docs](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states). example: 3 - format: int64 title: Closed sessions type: integer totalSales: @@ -31936,7 +32278,6 @@ components: type: array profileIDs: items: - format: int64 type: integer type: array type: object @@ -31973,7 +32314,6 @@ components: type: string customerId: description: The internal Talon.One ID of the customer. - format: int64 type: integer lastActivity: description: The last activity of the customer. @@ -31981,15 +32321,12 @@ components: type: string couponRedemptions: description: Number of coupon redemptions in all customer campaigns. - format: int64 type: integer couponUseAttempts: description: Number of coupon use attempts in all customer campaigns. - format: int64 type: integer couponFailedAttempts: description: Number of failed coupon use attempts in all customer campaigns. - format: int64 type: integer accruedDiscounts: description: Number of accrued discounts in all customer campaigns. @@ -31999,11 +32336,9 @@ components: type: number totalOrders: description: Number of orders in all customer campaigns. - format: int64 type: integer totalOrdersNoCoupon: description: Number of orders without coupon used in all customer campaigns. - format: int64 type: integer campaignName: description: The name of the campaign this customer belongs to. @@ -32035,23 +32370,18 @@ components: properties: acceptedCoupons: description: Total accepted coupons for this customer. - format: int64 type: integer createdCoupons: description: Total created coupons for this customer. - format: int64 type: integer freeItems: description: Total free items given to this customer. - format: int64 type: integer totalOrders: description: Total orders made by this customer. - format: int64 type: integer totalDiscountedOrders: description: Total orders made by this customer that had a discount. - format: int64 type: integer totalRevenue: description: Total Revenue across all closed sessions. @@ -32074,7 +32404,6 @@ components: description: The globally unique Talon.One ID of the customer that created this entity. example: 138 - format: int64 type: integer type: object ApplicationSession: @@ -32102,19 +32431,31 @@ components: returnedQuantity: 1 length: 1.4658129805029452 weight: 1130.0 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + adjustmentEffectiveFrom: 2021-09-12T10:12:42Z catalogItemID: 5 additionalCosts: shipping: price: 9 price: 99.99 + selectedPriceType: member name: Air Glide width: 6.027456183070403 attributes: image: 11.jpeg material: leather + adjustmentEffectiveUntil: 2021-09-12T10:12:42Z position: 5.962133916683182 sku: SKU1241028 category: shoes + prices: + member: + price: 90 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + effectiveFrom: 2025-05-25T00:00:00Z + effectiveUntil: 2025-05-30T00:00:00Z + base: + price: 100 height: 0.8008281904610115 - remainingQuantity: 1 product: @@ -32123,25 +32464,36 @@ components: returnedQuantity: 1 length: 1.4658129805029452 weight: 1130.0 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + adjustmentEffectiveFrom: 2021-09-12T10:12:42Z catalogItemID: 5 additionalCosts: shipping: price: 9 price: 99.99 + selectedPriceType: member name: Air Glide width: 6.027456183070403 attributes: image: 11.jpeg material: leather + adjustmentEffectiveUntil: 2021-09-12T10:12:42Z position: 5.962133916683182 sku: SKU1241028 category: shoes + prices: + member: + price: 90 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + effectiveFrom: 2025-05-25T00:00:00Z + effectiveUntil: 2025-05-30T00:00:00Z + base: + price: 100 height: 0.8008281904610115 properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -32164,13 +32516,11 @@ components: applicationId: description: The ID of the Application that owns this entity. example: 322 - format: int64 type: integer profileId: description: The globally unique Talon.One ID of the customer that created this entity. example: 138 - format: int64 type: integer profileintegrationid: description: Integration ID of the customer for the session. @@ -32247,7 +32597,6 @@ components: properties: storeId: description: The ID of the store. - format: int64 type: integer type: object ApplicationEvent: @@ -32260,9 +32609,12 @@ components: conditionIndex: 786 evaluationGroupMode: stackable effectType: rejectCoupon + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b props: '{}' + selectedPrice: 100.0 evaluationGroupID: 3 triggeredForCatalogItem: 786 + selectedPriceType: member campaignRevisionId: 1 ruleName: Give 20% discount triggeredByCoupon: 4928 @@ -32273,9 +32625,12 @@ components: conditionIndex: 786 evaluationGroupMode: stackable effectType: rejectCoupon + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b props: '{}' + selectedPrice: 100.0 evaluationGroupID: 3 triggeredForCatalogItem: 786 + selectedPriceType: member campaignRevisionId: 1 ruleName: Give 20% discount triggeredByCoupon: 4928 @@ -32319,9 +32674,8 @@ components: campaignName: campaignName properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -32331,17 +32685,14 @@ components: applicationId: description: The ID of the Application that owns this entity. example: 322 - format: int64 type: integer profileId: description: The globally unique Talon.One ID of the customer that created this entity. example: 138 - format: int64 type: integer storeId: description: The ID of the store. - format: int64 type: integer storeIntegrationId: description: The integration ID of the store. You choose this ID when you @@ -32353,7 +32704,6 @@ components: sessionId: description: The globally unique Talon.One ID of the session that contains this event. - format: int64 type: integer type: description: A string representing the event. Must not be a reserved event @@ -32392,20 +32742,17 @@ components: audienceId: description: The ID of the audience. example: 1 - format: int64 type: integer membersCount: description: The member count of the audience. example: 1234 - format: int64 type: integer type: object AudienceCustomer: properties: id: - description: Internal ID of this entity. + description: The internal ID of the customer profile. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -32428,14 +32775,12 @@ components: accountId: description: The ID of the Talon.One account that owns this profile. example: 31 - format: int64 title: Profile belongs to Account type: integer closedSessions: - description: The total amount of closed sessions by a customer. A closed - session is a successful purchase. + description: The total number of closed sessions. Does not include closed + sessions that have been cancelled or reopened. See the [docs](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states). example: 3 - format: int64 title: Closed sessions type: integer totalSales: @@ -32487,7 +32832,6 @@ components: - 2 - 3 items: - format: int64 type: integer type: array connectedAudiences: @@ -32498,7 +32842,6 @@ components: - 2 - 3 items: - format: int64 type: integer type: array required: @@ -32523,7 +32866,6 @@ components: applicationId: description: The ID of the Application that owns this entity. example: 322 - format: int64 type: integer sessionId: description: Integration ID of the session in which the customer redeemed @@ -32647,9 +32989,8 @@ components: TemplateDef: properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -32659,7 +33000,6 @@ components: applicationId: description: The ID of the Application that owns this entity. example: 322 - format: int64 type: integer title: description: Campaigner-friendly name for the template that will be shown @@ -32713,12 +33053,10 @@ components: campaignId: description: The ID of the campaign the achievement belongs to. example: 1 - format: int64 type: integer userId: description: ID of the user that created this achievement. example: 1234 - format: int64 type: integer createdBy: description: | @@ -32769,9 +33107,8 @@ components: status: inprogress properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -32838,9 +33175,11 @@ components: The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. enum: - no_recurrence - on_expiration + - on_completion example: no_recurrence type: string activationPolicy: @@ -32870,12 +33209,10 @@ components: campaignId: description: The ID of the campaign the achievement belongs to. example: 1 - format: int64 type: integer userId: description: ID of the user that created this achievement. example: 1234 - format: int64 type: integer createdBy: description: | @@ -32939,7 +33276,6 @@ components: - 3 - 13 items: - format: int64 type: integer type: array type: @@ -32974,9 +33310,8 @@ components: type: session properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -32986,7 +33321,6 @@ components: accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer name: description: The internal name used in API requests. @@ -33011,7 +33345,6 @@ components: - 3 - 13 items: - format: int64 type: integer type: array type: @@ -33049,18 +33382,15 @@ components: description: The ID of the expression that the Application cart item filter uses. example: 1 - format: int64 type: integer modifiedBy: description: The ID of the user who last updated the Application cart item filter. example: 334 - format: int64 type: integer createdBy: description: The ID of the user who created the Application cart item filter. example: 216 - format: int64 type: integer modified: description: Timestamp of the most recent update to the Application cart @@ -33073,9 +33403,8 @@ components: ApplicationCIF: properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -33094,18 +33423,15 @@ components: description: The ID of the expression that the Application cart item filter uses. example: 1 - format: int64 type: integer modifiedBy: description: The ID of the user who last updated the Application cart item filter. example: 334 - format: int64 type: integer createdBy: description: The ID of the user who created the Application cart item filter. example: 216 - format: int64 type: integer modified: description: Timestamp of the most recent update to the Application cart @@ -33115,7 +33441,6 @@ components: applicationId: description: The ID of the Application that owns this entity. example: 322 - format: int64 type: integer required: - applicationId @@ -33126,9 +33451,8 @@ components: Environment: properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -33138,7 +33462,6 @@ components: applicationId: description: The ID of the Application that owns this entity. example: 322 - format: int64 type: integer slots: description: The slots defined for this application. @@ -33202,6 +33525,11 @@ components: items: $ref: '#/components/schemas/ApplicationCIF' type: array + priceTypes: + description: The price types that this Application can use. + items: + $ref: '#/components/schemas/PriceType' + type: array required: - applicationId - created @@ -33320,7 +33648,6 @@ components: type: string campaignsCount: description: The number of campaigns that refer to the attribute. - format: int64 type: integer exampleValue: description: Examples of values that can be assigned to the attribute. @@ -33365,7 +33692,6 @@ components: - 2 - 3 items: - format: int64 type: integer type: array required: @@ -33388,9 +33714,8 @@ components: version: 6 properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -33400,7 +33725,6 @@ components: accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer modified: description: The time this entity was last modified. @@ -33423,18 +33747,15 @@ components: - 2 - 3 items: - format: int64 type: integer type: array version: description: The current version of this catalog. example: 6 - format: int64 type: integer createdBy: description: The ID of user who created this catalog. example: 6 - format: int64 type: integer required: - accountId @@ -33455,7 +33776,6 @@ components: attributeid: description: The ID of the attribute of the item. example: 6 - format: int64 type: integer name: description: The name of the attribute. @@ -33487,9 +33807,8 @@ components: version: 5 properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -33508,12 +33827,10 @@ components: catalogid: description: The ID of the catalog the item belongs to. example: 6 - format: int64 type: integer version: description: The version of the catalog item. example: 5 - format: int64 minimum: 1 type: integer attributes: @@ -33657,6 +33974,61 @@ components: $ref: '#/components/schemas/CatalogActionFilter' type: array type: object + NewPriceAdjustment: + properties: + priceType: + description: The price type (e.g. the price for members only) to apply to + a given SKU. + example: member + type: string + price: + description: The value of the price type applied to the SKU. When set to + `null`, the defined price type no longer applies to the SKU. + example: 100.0 + nullable: true + type: number + referenceId: + description: A unique reference identifier, e.g. a UUID. + example: 68851723-e6fa-488f-ace9-112581e6c19b + type: string + calculatedAt: + description: The time at which this price was calculated. If provided, this + is used to determine the most recent price adjustment to choose if price + adjustments overlap. Defaults to internal creation time if not provided. + example: 2021-09-12T10:12:42Z + format: date-time + type: string + effectiveFrom: + description: The date and time from which the price adjustment is effective. + example: 2021-09-12T10:12:42Z + format: date-time + type: string + effectiveUntil: + description: The date and time until which the price adjustment is effective. + example: 2021-09-12T10:12:42Z + format: date-time + type: string + required: + - priceType + - referenceId + type: object + AddPriceAdjustmentCatalogAction: + description: | + The specific properties of the "ADD_PRICE_ADJUSTMENT" catalog sync action. + properties: + sku: + description: The SKU of the item for which the price is being adjusted. + example: SKU1241028 + type: string + adjustments: + description: A list of adjustments to apply to a given item. + items: + $ref: '#/components/schemas/NewPriceAdjustment' + type: array + required: + - adjustments + - sku + type: object CatalogActionPayload: type: object CatalogAction: @@ -33674,6 +34046,7 @@ components: - PATCH_MANY - REMOVE - REMOVE_MANY + - ADD_PRICE_ADJUSTMENT example: ADD type: string payload: @@ -33706,7 +34079,6 @@ components: version: description: The version number of the catalog to apply the actions on. example: 244 - format: int64 minimum: 1 type: integer required: @@ -33731,13 +34103,13 @@ components: outgoingIntegrationTypeId: 1 outgoingIntegrationTypeName: Braze payload: "{\n\t\"message\": \"${message}\"\n}" + draft: false modified: 2021-09-12T10:12:42Z id: 6 properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -33754,7 +34126,6 @@ components: The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. items: - format: int64 type: integer type: array title: @@ -33766,6 +34137,10 @@ components: description: A description of the webhook. example: A webhook to send a coupon to the user. type: string + draft: + description: Indicates if the webhook is a draft. + example: false + type: boolean verb: description: API method for this webhook. enum: @@ -33807,12 +34182,10 @@ components: outgoingIntegrationTemplateId: description: Identifier of the outgoing integration template. example: 1 - format: int64 type: integer outgoingIntegrationTypeId: description: Identifier of the outgoing integration type. example: 1 - format: int64 type: integer outgoingIntegrationTypeName: description: Name of the outgoing integration. @@ -33821,6 +34194,7 @@ components: required: - applicationIds - created + - draft - enabled - headers - id @@ -33830,6 +34204,112 @@ components: - url - verb type: object + WebhookAuthenticationWebhookRef: + properties: + id: + description: The internal ID of this entity. + example: 6 + type: integer + title: + description: The title of the webhook authentication. + example: Send message + pattern: ^[A-Za-z][A-Za-z0-9_.!~*'() -]*$ + type: string + description: + description: A description of the webhook authentication. + example: A webhook to send a coupon to the user. + type: string + required: + - id + - title + type: object + WebhookAuthenticationDataBasic: + properties: + username: + description: The Basic HTTP username. + type: string + password: + description: The Basic HTTP password. + type: string + required: + - password + - username + type: object + WebhookAuthenticationDataCustom: + properties: + headers: + additionalProperties: + type: string + type: object + required: + - headers + type: object + WebhookAuthenticationBase: + properties: + name: + description: The name of the webhook authentication. + example: My basic auth + type: string + type: + enum: + - basic + - custom + type: string + data: + type: object + required: + - data + - name + - type + type: object + WebhookAuthentication: + properties: + createdBy: + description: The name of the user who created the webhook authentication. + type: string + modifiedBy: + description: The name of the user who last modified the webhook authentication. + type: string + webhooks: + items: + $ref: '#/components/schemas/WebhookAuthenticationWebhookRef' + type: array + name: + description: The name of the webhook authentication. + example: My basic auth + type: string + type: + enum: + - basic + - custom + type: string + data: + type: object + id: + description: The internal ID of this entity. + example: 6 + type: integer + created: + description: The time this entity was created. + example: 2020-06-10T09:05:27.993483Z + format: date-time + type: string + modified: + description: The time this entity was last modified. + example: 2021-09-12T10:12:42Z + format: date-time + type: string + required: + - created + - createdBy + - data + - id + - modified + - modifiedBy + - name + - type + - webhooks + type: object WebhookActivationLogEntry: description: Log of activated webhooks. example: @@ -33847,17 +34327,14 @@ components: webhookId: description: ID of the webhook that triggered the request. example: 1 - format: int64 type: integer applicationId: description: ID of the application that triggered the webhook. example: 13 - format: int64 type: integer campaignId: description: ID of the campaign that triggered the webhook. example: 86 - format: int64 type: integer created: description: Timestamp of request @@ -33900,12 +34377,10 @@ components: webhookId: description: ID of the webhook that triggered the request. example: 5 - format: int64 type: integer applicationId: description: ID of the application that triggered the webhook. example: 12 - format: int64 type: integer url: description: The target URL of the request. @@ -33925,7 +34400,6 @@ components: status: description: HTTP status code of response. example: 204 - format: int64 type: integer requestTime: description: Timestamp of request @@ -33987,7 +34461,6 @@ components: status: description: HTTP status code of the response. example: 200 - format: int64 type: integer type: object MessageLogEntry: @@ -34029,7 +34502,6 @@ components: notificationId: description: ID of the notification. example: 101 - format: int64 type: integer notificationName: description: The name of the notification. @@ -34038,7 +34510,6 @@ components: webhookId: description: ID of the webhook. example: 101 - format: int64 type: integer webhookName: description: The name of the webhook. @@ -34069,19 +34540,16 @@ components: applicationId: description: Identifier of the Application. example: 5 - format: int64 minimum: 1 type: integer loyaltyProgramId: description: Identifier of the loyalty program. example: 2 - format: int64 minimum: 1 type: integer campaignId: description: Identifier of the campaign. example: 2 - format: int64 minimum: 1 type: integer required: @@ -34183,9 +34651,8 @@ components: title: Survey Completed properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -34247,9 +34714,8 @@ components: additionalAttributes: {} properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -34269,7 +34735,6 @@ components: accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer name: description: Name of the user. @@ -34305,7 +34770,6 @@ components: example: - 71 items: - format: int64 type: integer type: array authMethod: @@ -34393,7 +34857,6 @@ components: - 1 - 3 items: - format: int64 type: integer type: array applicationNotificationSubscriptions: @@ -34454,6 +34917,158 @@ components: required: - data type: object + ScimGroupMember: + description: Member of the SCIM group. In Talon.One, the member is a [user](https://docs.talon.one/docs/product/account/account-settings/managing-users) + assigned to a specific role. + example: + display: john.doe@example.com + value: "258" + properties: + value: + description: Unique identifier of the member. + example: "258" + type: string + display: + description: Identifier of the user. This is usually an email address. + example: john.doe@example.com + type: string + type: object + ScimBaseGroup: + description: Define the schema for base fields in a group using the SCIM provisioning + protocol. Talon.One uses this schema to create roles. + example: + displayName: Manager + members: + - display: john.doe@example.com + value: "258" + - display: john.doe@example.com + value: "258" + properties: + displayName: + description: Display name of the group (Talon.One role). + example: Manager + type: string + members: + description: List of members to assign to the new Talon.One role. + items: + $ref: '#/components/schemas/ScimGroupMember' + type: array + type: object + ScimGroup: + description: |- + Define the schema for groups created using the SCIM provisioning protocol. + In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + example: + displayName: Manager + members: + - display: john.doe@example.com + value: "258" + - display: john.doe@example.com + value: "258" + id: "359" + properties: + displayName: + description: Display name of the group (Talon.One role). + example: Manager + type: string + members: + description: List of members to assign to the new Talon.One role. + items: + $ref: '#/components/schemas/ScimGroupMember' + type: array + id: + description: ID of the group. + example: "359" + type: string + required: + - id + type: object + ScimGroupsListResponse: + description: |- + List of groups created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + example: + Resources: + - displayName: Manager Role + id: "283" + meta: + resourceType: Group + created: 2024-06-25T17:43:46+02:00 + members: + - value: "15" + display: john.doe@example.com + schemas: + - urn:ietf:params:scim:schemas:core:2.0:Group + schemas: + - urn:ietf:params:scim:api:messages:2.0:ListResponse + totalResults: 1 + properties: + Resources: + items: + $ref: '#/components/schemas/ScimGroup' + type: array + schemas: + description: SCIM schema for the given resource. + items: + example: urn:ietf:params:scim:api:messages:2.0:ListResponse + type: string + type: array + totalResults: + description: Number of results in the response. + type: integer + required: + - Resources + type: object + ScimPatchOperation: + description: Patch operation that is used to update the information. + example: + op: add + path: nickName + value: John + properties: + op: + description: The method that should be used in the operation. + enum: + - add + - remove + - replace + type: string + path: + description: The path specifying the attribute that should be updated. + type: string + value: + description: The value that should be updated. Required if `op` is `add` + or `replace`. + type: string + required: + - op + type: object + ScimPatchRequest: + description: SCIM Patch request + example: + Operations: + - op: replace + path: active + value: test + - op: add + path: nickName + value: johndoe + schemas: + - urn:ietf:params:scim:api:messages:2.0:PatchOp + properties: + schemas: + description: SCIM schema for the given resource. + items: + example: urn:ietf:params:scim:api:messages:2.0:PatchOp + type: string + type: array + Operations: + items: + $ref: '#/components/schemas/ScimPatchOperation' + type: array + required: + - Operations + type: object ScimBaseUser: description: Schema definition for base user fields, provisioned using the SCIM protocol and used by Talon.One. @@ -34564,61 +35179,10 @@ components: type: array totalResults: description: Number of total results in the response. - format: int64 type: integer required: - Resources type: object - ScimPatchOperation: - description: Patch operation that is used to update the information. - example: - op: add - path: nickName - value: John - properties: - op: - description: The method that should be used in the operation. - enum: - - add - - remove - - replace - type: string - path: - description: The path specifying the attribute that should be updated. - type: string - value: - description: The value that should be updated. Required if `op` is `add` - or `replace`. - type: string - required: - - op - type: object - ScimPatchRequest: - description: SCIM Patch request - example: - Operations: - - op: replace - path: active - value: test - - op: add - path: nickName - value: johndoe - schemas: - - urn:ietf:params:scim:api:messages:2.0:PatchOp - properties: - schemas: - description: SCIM schema for the given resource. - items: - example: urn:ietf:params:scim:api:messages:2.0:PatchOp - type: string - type: array - Operations: - items: - $ref: '#/components/schemas/ScimPatchOperation' - type: array - required: - - Operations - type: object ScimResource: description: Resource definition for the SCIM provisioning protocol. example: @@ -34766,7 +35330,6 @@ components: type: array totalResults: description: Number of total results in the response. - format: int64 type: integer required: - Resources @@ -34879,9 +35442,8 @@ components: managementKeyId: 3 properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -34891,12 +35453,10 @@ components: userId: description: The ID of the user associated with this entity. example: 388 - format: int64 type: integer applicationId: description: ID of application associated with change. example: 359 - format: int64 type: integer entity: description: API endpoint on which the change was initiated. @@ -34924,7 +35484,6 @@ components: managementKeyId: description: ID of management key used to perform changes. example: 3 - format: int64 type: integer required: - created @@ -34960,7 +35519,6 @@ components: description: A list of the IDs of the roles assigned to the user. items: example: 13 - format: int64 type: integer type: array acl: @@ -35114,9 +35672,8 @@ components: userLimit: 6 properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -35153,37 +35710,29 @@ components: type: string applicationLimit: description: The maximum number of Applications covered by your plan. - format: int64 type: integer userLimit: description: The maximum number of Campaign Manager Users covered by your plan. - format: int64 type: integer campaignLimit: description: The maximum number of Campaigns covered by your plan. - format: int64 type: integer apiLimit: description: The maximum number of Integration API calls covered by your plan per billing period. - format: int64 type: integer applicationCount: description: The current number of Applications in your account. - format: int64 type: integer userCount: description: The current number of Campaign Manager Users in your account. - format: int64 type: integer campaignsActiveCount: description: The current number of active Campaigns in your account. - format: int64 type: integer campaignsInactiveCount: description: The current number of inactive Campaigns in your account. - format: int64 type: integer attributes: description: Arbitrary properties associated with this campaign. @@ -35228,97 +35777,78 @@ components: applications: description: Total number of applications in the account. example: 11 - format: int64 type: integer liveApplications: description: Total number of live applications in the account. example: 6 - format: int64 type: integer sandboxApplications: description: Total number of sandbox applications in the account. example: 2 - format: int64 type: integer campaigns: description: Total number of campaigns in the account. example: 35 - format: int64 type: integer activeCampaigns: description: Total number of active campaigns in the account. example: 15 - format: int64 type: integer liveActiveCampaigns: description: Total number of active campaigns in live applications in the account. example: 10 - format: int64 type: integer coupons: description: Total number of coupons in the account. example: 850 - format: int64 type: integer activeCoupons: description: Total number of active coupons in the account. example: 650 - format: int64 type: integer expiredCoupons: description: Total number of expired coupons in the account. example: 200 - format: int64 type: integer referralCodes: description: Total number of referral codes in the account. example: 500 - format: int64 type: integer activeReferralCodes: description: Total number of active referral codes in the account. example: 100 - format: int64 type: integer expiredReferralCodes: description: Total number of expired referral codes in the account. example: 400 - format: int64 type: integer activeRules: description: Total number of active rules in the account. example: 35 - format: int64 type: integer users: description: Total number of users in the account. - format: int64 type: integer roles: description: Total number of roles in the account. example: 10 - format: int64 type: integer customAttributes: description: Total number of custom attributes in the account. example: 18 - format: int64 type: integer webhooks: description: Total number of webhooks in the account. example: 2 - format: int64 type: integer loyaltyPrograms: description: Total number of all loyalty programs in the account. example: 5 - format: int64 type: integer liveLoyaltyPrograms: description: Total number of live loyalty programs in the account. example: 5 - format: int64 type: integer lastUpdatedAt: description: The point in time when the analytics numbers were updated last. @@ -35351,48 +35881,37 @@ components: properties: liveApplications: description: Total number of allowed live applications in the account. - format: int64 type: integer sandboxApplications: description: Total number of allowed sandbox applications in the account. - format: int64 type: integer activeCampaigns: description: Total number of allowed active campaigns in live applications in the account. - format: int64 type: integer coupons: description: Total number of allowed coupons in the account. - format: int64 type: integer referralCodes: description: Total number of allowed referral codes in the account. - format: int64 type: integer activeRules: description: Total number of allowed active rulesets in the account. - format: int64 type: integer liveLoyaltyPrograms: description: Total number of allowed live loyalty programs in the account. - format: int64 type: integer sandboxLoyaltyPrograms: description: Total number of allowed sandbox loyalty programs in the account. - format: int64 type: integer webhooks: description: Total number of allowed webhooks in the account. - format: int64 type: integer users: description: Total number of allowed users in the account. - format: int64 type: integer apiVolume: description: Allowed volume of API requests to the account. - format: int64 type: integer promotionTypes: description: Array of promotion types that are employed in the account. @@ -35423,9 +35942,8 @@ components: entity: Coupon properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -35435,12 +35953,10 @@ components: accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer userId: description: The ID of the user associated with this entity. example: 388 - format: int64 type: integer entity: description: The name of the entity that was exported. @@ -35469,7 +35985,6 @@ components: ManagerConfig: properties: schemaVersion: - format: int64 type: integer required: - schemaVersion @@ -35479,27 +35994,21 @@ components: properties: disabled: description: Number of disabled campaigns. - format: int64 type: integer staged: description: Number of staged campaigns. - format: int64 type: integer scheduled: description: Number of scheduled campaigns. - format: int64 type: integer running: description: Number of running campaigns. - format: int64 type: integer expired: description: Number of expired campaigns. - format: int64 type: integer archived: description: Number of archived campaigns. - format: int64 type: integer required: - archived @@ -35536,7 +36045,6 @@ components: - 475 - 18 items: - format: int64 type: integer type: array type: object @@ -35563,7 +36071,6 @@ components: - 475 - 18 items: - format: int64 type: integer type: array required: @@ -35581,7 +36088,6 @@ components: - 475 - 18 items: - format: int64 type: integer type: array roles: @@ -35590,7 +36096,6 @@ components: - 128 - 147 items: - format: int64 type: integer type: array required: @@ -35851,7 +36356,6 @@ components: - 10 - 12 items: - format: int64 type: integer type: array type: object @@ -35905,9 +36409,8 @@ components: id: 6 properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -35922,7 +36425,6 @@ components: accountId: description: The ID of the account that owns this entity. example: 3886 - format: int64 type: integer name: description: Name of the role. @@ -35941,7 +36443,6 @@ components: - 10 - 12 items: - format: int64 type: integer type: array required: @@ -35969,7 +36470,6 @@ components: - 10 - 12 items: - format: int64 type: integer type: array required: @@ -36019,7 +36519,6 @@ components: description: | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. example: 100000 - format: int64 type: integer required: - expires @@ -36068,27 +36567,22 @@ components: description: | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. example: 100000 - format: int64 type: integer id: description: ID of the API Key. example: 34 - format: int64 type: integer createdBy: description: ID of user who created. example: 280 - format: int64 type: integer accountID: description: ID of account the key is used for. example: 13 - format: int64 type: integer applicationID: description: ID of application the key is used for. example: 54 - format: int64 type: integer created: description: The date the API key was created. @@ -36147,27 +36641,22 @@ components: description: | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. example: 100000 - format: int64 type: integer id: description: ID of the API Key. example: 34 - format: int64 type: integer createdBy: description: ID of user who created. example: 280 - format: int64 type: integer accountID: description: ID of account the key is used for. example: 13 - format: int64 type: integer applicationID: description: ID of application the key is used for. example: 54 - format: int64 type: integer created: description: The date the API key was created. @@ -36194,7 +36683,6 @@ components: description: | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. example: 100000 - format: int64 type: integer required: - timeOffset @@ -36203,7 +36691,6 @@ components: properties: id: description: id of the notification. - format: int64 type: integer name: description: name of the notification. @@ -36225,7 +36712,6 @@ components: notificationId: description: The ID of the notification. example: 1 - format: int64 type: integer notificationName: description: The name of the notification. @@ -36236,7 +36722,6 @@ components: The ID of the entity to which this notification belongs. For example, in case of a loyalty notification, this value is the ID of the loyalty program. example: 1 - format: int64 type: integer enabled: description: Indicates whether the notification is activated. @@ -36286,7 +36771,6 @@ components: - 2 - 3 items: - format: int64 type: integer type: array required: @@ -36319,23 +36803,19 @@ components: - 2 - 3 items: - format: int64 type: integer type: array id: description: ID of the management key. example: 34 - format: int64 type: integer createdBy: description: ID of the user who created it. example: 280 - format: int64 type: integer accountID: description: ID of account the key is used for. example: 13 - format: int64 type: integer created: description: The date the management key was created. @@ -36381,23 +36861,19 @@ components: - 2 - 3 items: - format: int64 type: integer type: array id: description: ID of the management key. example: 34 - format: int64 type: integer createdBy: description: ID of the user who created it. example: 280 - format: int64 type: integer accountID: description: ID of account the key is used for. example: 13 - format: int64 type: integer created: description: The date the management key was created. @@ -36431,7 +36907,6 @@ components: description: Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. example: 6 - format: int64 type: integer created: example: 2021-07-20T22:00:00Z @@ -36440,11 +36915,9 @@ components: createdBy: description: The ID of the user who created the value map. example: 216 - format: int64 type: integer campaignId: example: 244 - format: int64 type: integer required: - campaignId @@ -36532,9 +37005,8 @@ components: updated: 2021-09-23T10:12:42Z properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -36571,7 +37043,6 @@ components: applicationId: description: The ID of the Application that owns this entity. example: 322 - format: int64 type: integer updated: description: Timestamp of the most recent update on this entity. @@ -36586,7 +37057,6 @@ components: - 6 - 8 items: - format: int64 type: integer type: array required: @@ -36604,7 +37074,6 @@ components: description: The ID of the campaign that references the application cart item filter. example: 1 - format: int64 type: integer campaignName: description: A user-facing name for this campaign. @@ -36619,7 +37088,6 @@ components: description: The ID of the Application Cart Item Filter that is referenced by a campaign. example: 322 - format: int64 type: integer campaigns: description: Campaigns that reference a speciifc Application Cart Item Filter. @@ -36637,13 +37105,11 @@ components: description: The ID of the expression that the Application cart item filter uses. example: 1 - format: int64 type: integer modifiedBy: description: The ID of the user who last updated the Application cart item filter. example: 334 - format: int64 type: integer modified: description: Timestamp of the most recent update to the Application cart @@ -36656,12 +37122,10 @@ components: cartItemFilterId: description: The ID of the Application cart item filter. example: 216 - format: int64 type: integer createdBy: description: The ID of the user who created the Application cart item filter. example: 216 - format: int64 type: integer expression: description: Arbitrary additional JSON data associated with the Application @@ -36687,9 +37151,8 @@ components: ApplicationCIFExpression: properties: id: - description: Internal ID of this entity. + description: The internal ID of this entity. example: 6 - format: int64 type: integer created: description: The time this entity was created. @@ -36699,12 +37162,10 @@ components: cartItemFilterId: description: The ID of the Application cart item filter. example: 216 - format: int64 type: integer createdBy: description: The ID of the user who created the Application cart item filter. example: 216 - format: int64 type: integer expression: description: Arbitrary additional JSON data associated with the Application @@ -36729,7 +37190,6 @@ components: applicationId: description: The ID of the Application that owns this entity. example: 322 - format: int64 type: integer required: - applicationId @@ -36737,9 +37197,12 @@ components: - id type: object ListCampaignStoreBudgetsStore: + example: + name: name + integrationId: integrationId + id: 0 properties: id: - format: int64 type: integer integrationId: type: string @@ -36751,11 +37214,18 @@ components: - name type: object ListCampaignStoreBudgets: + example: + period: period + limit: 6 + action: action + store: + name: name + integrationId: integrationId + id: 0 properties: store: $ref: '#/components/schemas/ListCampaignStoreBudgetsStore' limit: - format: int64 type: integer action: type: string @@ -36767,13 +37237,15 @@ components: - store type: object NewCampaignStoreBudgetStoreLimit: + example: + limit: 1000.0 + storeId: 17 properties: storeId: description: | The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. example: 17 - format: int64 type: integer limit: description: The value to set for the limit. @@ -36784,6 +37256,14 @@ components: - storeId type: object NewCampaignStoreBudget: + example: + period: daily + action: setDiscount + storeLimits: + - limit: 1000.0 + storeId: 17 + - limit: 1000.0 + storeId: 17 properties: action: enum: @@ -36806,6 +37286,11 @@ components: - storeLimits type: object SummaryCampaignStoreBudget: + example: + period: overall + imported: true + storeCount: 0 + action: redeemCoupon properties: action: enum: @@ -36834,7 +37319,6 @@ components: - yearly type: string storeCount: - format: int64 type: integer imported: type: boolean @@ -36921,9 +37405,11 @@ components: The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. enum: - no_recurrence - on_expiration + - on_completion example: no_recurrence type: string activationPolicy: @@ -37054,7 +37540,6 @@ components: campaignId: description: The ID of the campaign. example: 1 - format: int64 type: integer campaignName: description: The name of the campaign. @@ -37109,7 +37594,6 @@ components: productId: description: The ID of the product. example: 1 - format: int64 type: integer value: description: The string matching the given value. Either a product name @@ -37120,7 +37604,6 @@ components: description: The ID of the SKU linked to a product. If empty, this is an product. example: 1 - format: int64 type: integer required: - value @@ -37130,7 +37613,6 @@ components: id: description: The ID of the product. example: 1 - format: int64 type: integer name: description: The name of the product. @@ -37140,7 +37622,6 @@ components: description: | The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. example: 1 - format: int64 type: integer unitsSold: $ref: '#/components/schemas/AnalyticsDataPointWithTrend' @@ -37165,7 +37646,6 @@ components: productId: description: The ID of the product. example: 1 - format: int64 type: integer productName: description: The name of the product. @@ -37195,7 +37675,6 @@ components: id: description: The ID of the SKU linked to the application. example: 1 - format: int64 type: integer sku: description: The SKU linked to the application. @@ -37252,7 +37731,6 @@ components: properties: rulesetID: description: ID of a ruleset. - format: int64 type: integer currency: description: Currency for the campaign. @@ -37265,7 +37743,6 @@ components: properties: rulesetID: description: ID of a ruleset. - format: int64 type: integer required: - rulesetID @@ -37303,7 +37780,6 @@ components: applicationId: description: The ID of the Application whose campaign evaluation tree changed. example: 78 - format: int64 type: integer oldEvaluationTree: $ref: '#/components/schemas/CampaignSet' @@ -37367,7 +37843,6 @@ components: description: The ID of the campaign evaluation group the campaign belongs to. example: 2 - format: int64 type: integer groupName: description: The name of the campaign evaluation group the campaign belongs @@ -37377,7 +37852,6 @@ components: position: description: The position of the campaign node in its parent group. example: 2 - format: int64 type: integer required: - groupId @@ -37440,7 +37914,6 @@ components: id: description: The ID of the event that triggered the strikethrough labeling. example: 1 - format: int64 type: integer type: description: The type of event that triggered the strikethrough labeling. @@ -37478,12 +37951,10 @@ components: id: description: The ID of the event that triggered the strikethrough labeling. example: 1 - format: int64 type: integer catalogId: description: The ID of the catalog that the changed item belongs to. example: 10 - format: int64 type: integer sku: description: The unique SKU of the changed item. @@ -37492,7 +37963,6 @@ components: version: description: The version of the changed item. example: 6 - format: int64 minimum: 1 type: integer price: @@ -37551,7 +38021,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -37609,7 +38078,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -37675,7 +38143,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -37701,7 +38168,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -38275,7 +38741,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -38595,7 +39060,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -38630,15 +39094,21 @@ components: - 10 - 100 bindings: - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter @@ -38662,15 +39132,21 @@ components: - 10 - 100 bindings: - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter @@ -38696,15 +39172,21 @@ components: - 10 - 100 bindings: - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter @@ -38728,15 +39210,21 @@ components: - 10 - 100 bindings: - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter @@ -38769,15 +39257,21 @@ components: - 10 - 100 bindings: - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter @@ -38801,15 +39295,21 @@ components: - 10 - 100 bindings: - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter @@ -38835,15 +39335,21 @@ components: - 10 - 100 bindings: - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter @@ -38867,15 +39373,21 @@ components: - 10 - 100 bindings: - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter - - expression: + - attributeId: 100 + minValue: 0.0 + expression: - string1 - string2 + maxValue: 19.9 valueType: string name: my property type: templateParameter @@ -38889,7 +39401,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -38969,7 +39480,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -39137,7 +39647,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -39612,7 +40121,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -39654,7 +40162,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -39916,7 +40423,6 @@ components: type: boolean totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -40037,7 +40543,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -40098,7 +40603,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer hasMore: type: boolean @@ -40161,7 +40665,6 @@ components: hasMore: type: boolean totalResultSize: - format: int64 type: integer data: items: @@ -40220,7 +40723,6 @@ components: hasMore: type: boolean totalResultSize: - format: int64 type: integer data: items: @@ -40350,19 +40852,31 @@ components: returnedQuantity: 1 length: 1.4658129805029452 weight: 1130.0 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + adjustmentEffectiveFrom: 2021-09-12T10:12:42Z catalogItemID: 5 additionalCosts: shipping: price: 9 price: 99.99 + selectedPriceType: member name: Air Glide width: 6.027456183070403 attributes: image: 11.jpeg material: leather + adjustmentEffectiveUntil: 2021-09-12T10:12:42Z position: 5.962133916683182 sku: SKU1241028 category: shoes + prices: + member: + price: 90 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + effectiveFrom: 2025-05-25T00:00:00Z + effectiveUntil: 2025-05-30T00:00:00Z + base: + price: 100 height: 0.8008281904610115 - remainingQuantity: 1 product: @@ -40371,19 +40885,31 @@ components: returnedQuantity: 1 length: 1.4658129805029452 weight: 1130.0 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + adjustmentEffectiveFrom: 2021-09-12T10:12:42Z catalogItemID: 5 additionalCosts: shipping: price: 9 price: 99.99 + selectedPriceType: member name: Air Glide width: 6.027456183070403 attributes: image: 11.jpeg material: leather + adjustmentEffectiveUntil: 2021-09-12T10:12:42Z position: 5.962133916683182 sku: SKU1241028 category: shoes + prices: + member: + price: 90 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + effectiveFrom: 2025-05-25T00:00:00Z + effectiveUntil: 2025-05-30T00:00:00Z + base: + price: 100 height: 0.8008281904610115 - coupon: BKDB946 created: 2020-02-07T08:15:22Z @@ -40408,19 +40934,31 @@ components: returnedQuantity: 1 length: 1.4658129805029452 weight: 1130.0 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + adjustmentEffectiveFrom: 2021-09-12T10:12:42Z catalogItemID: 5 additionalCosts: shipping: price: 9 price: 99.99 + selectedPriceType: member name: Air Glide width: 6.027456183070403 attributes: image: 11.jpeg material: leather + adjustmentEffectiveUntil: 2021-09-12T10:12:42Z position: 5.962133916683182 sku: SKU1241028 category: shoes + prices: + member: + price: 90 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + effectiveFrom: 2025-05-25T00:00:00Z + effectiveUntil: 2025-05-30T00:00:00Z + base: + price: 100 height: 0.8008281904610115 - remainingQuantity: 1 product: @@ -40429,19 +40967,31 @@ components: returnedQuantity: 1 length: 1.4658129805029452 weight: 1130.0 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + adjustmentEffectiveFrom: 2021-09-12T10:12:42Z catalogItemID: 5 additionalCosts: shipping: price: 9 price: 99.99 + selectedPriceType: member name: Air Glide width: 6.027456183070403 attributes: image: 11.jpeg material: leather + adjustmentEffectiveUntil: 2021-09-12T10:12:42Z position: 5.962133916683182 sku: SKU1241028 category: shoes + prices: + member: + price: 90 + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b + effectiveFrom: 2025-05-25T00:00:00Z + effectiveUntil: 2025-05-30T00:00:00Z + base: + price: 100 height: 0.8008281904610115 hasMore: true properties: @@ -40464,9 +41014,12 @@ components: conditionIndex: 786 evaluationGroupMode: stackable effectType: rejectCoupon + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b props: '{}' + selectedPrice: 100.0 evaluationGroupID: 3 triggeredForCatalogItem: 786 + selectedPriceType: member campaignRevisionId: 1 ruleName: Give 20% discount triggeredByCoupon: 4928 @@ -40477,9 +41030,12 @@ components: conditionIndex: 786 evaluationGroupMode: stackable effectType: rejectCoupon + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b props: '{}' + selectedPrice: 100.0 evaluationGroupID: 3 triggeredForCatalogItem: 786 + selectedPriceType: member campaignRevisionId: 1 ruleName: Give 20% discount triggeredByCoupon: 4928 @@ -40529,9 +41085,12 @@ components: conditionIndex: 786 evaluationGroupMode: stackable effectType: rejectCoupon + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b props: '{}' + selectedPrice: 100.0 evaluationGroupID: 3 triggeredForCatalogItem: 786 + selectedPriceType: member campaignRevisionId: 1 ruleName: Give 20% discount triggeredByCoupon: 4928 @@ -40542,9 +41101,12 @@ components: conditionIndex: 786 evaluationGroupMode: stackable effectType: rejectCoupon + adjustmentReferenceId: 68851723-e6fa-488f-ace9-112581e6c19b props: '{}' + selectedPrice: 100.0 evaluationGroupID: 3 triggeredForCatalogItem: 786 + selectedPriceType: member campaignRevisionId: 1 ruleName: Give 20% discount triggeredByCoupon: 4928 @@ -40606,7 +41168,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -40645,7 +41206,6 @@ components: type: boolean totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -40747,7 +41307,6 @@ components: type: boolean totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -40820,7 +41379,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -40869,7 +41427,6 @@ components: type: boolean totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -40904,7 +41461,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -40933,6 +41489,7 @@ components: outgoingIntegrationTypeId: 1 outgoingIntegrationTypeName: Braze payload: "{\n\t\"message\": \"${message}\"\n}" + draft: false modified: 2021-09-12T10:12:42Z id: 6 - headers: @@ -40952,13 +41509,13 @@ components: outgoingIntegrationTypeId: 1 outgoingIntegrationTypeName: Braze payload: "{\n\t\"message\": \"${message}\"\n}" + draft: false modified: 2021-09-12T10:12:42Z id: 6 totalResultSize: 1 properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -40984,7 +41541,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -41026,7 +41582,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -41052,7 +41607,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -41106,7 +41660,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -41157,7 +41710,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer hasMore: type: boolean @@ -41186,7 +41738,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -41294,7 +41845,6 @@ components: properties: totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -41341,7 +41891,6 @@ components: type: boolean totalResultSize: example: 1 - format: int64 type: integer data: items: @@ -41350,6 +41899,44 @@ components: required: - data inline_response_200_48: + example: + data: + - period: period + limit: 6 + action: action + store: + name: name + integrationId: integrationId + id: 0 + - period: period + limit: 6 + action: action + store: + name: name + integrationId: integrationId + id: 0 + properties: + data: + items: + $ref: '#/components/schemas/ListCampaignStoreBudgets' + type: array + inline_response_200_49: + example: + data: + - period: overall + imported: true + storeCount: 0 + action: redeemCoupon + - period: overall + imported: true + storeCount: 0 + action: redeemCoupon + properties: + data: + items: + $ref: '#/components/schemas/SummaryCampaignStoreBudget' + type: array + inline_response_200_50: example: data: - period: 1Y @@ -41406,7 +41993,7 @@ components: type: array required: - data - inline_response_200_49: + inline_response_200_51: example: data: - endDate: 2000-01-23T04:56:07.000+00:00 @@ -41499,12 +42086,10 @@ components: maxOperations: description: The maximum number of individual operations that can be included in a single bulk request. - format: int64 type: integer maxPayloadSize: description: The maximum size, in bytes, of the entire payload for a bulk operation request. - format: int64 type: integer supported: description: Indicates whether the SCIM service provider supports bulk operations. @@ -41523,7 +42108,6 @@ components: maxResults: description: The maximum number of resources that can be returned in a single filtered query response. - format: int64 type: integer supported: description: Indicates whether the SCIM service provider supports filtering diff --git a/build.gradle b/build.gradle index 6aaaca43..ab112bb3 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'eclipse' apply plugin: 'java' group = 'one.talon' -version = '12.0.0' +version = '0.0.0' buildscript { repositories { @@ -102,7 +102,7 @@ dependencies { compile "com.google.code.findbugs:jsr305:3.0.2" compile 'com.squareup.okhttp3:okhttp:3.14.7' compile 'com.squareup.okhttp3:logging-interceptor:3.14.7' - compile 'com.google.code.gson:gson:2.13.0' + compile 'com.google.code.gson:gson:2.8.6' compile 'io.gsonfire:gson-fire:1.8.4' compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.10' compile 'org.threeten:threetenbp:1.4.3' diff --git a/build.sbt b/build.sbt index 0f1d76e2..ff48a2a9 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "one.talon", name := "talon-one-client", - version := "12.0.0", + version := "0.0.0", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), diff --git a/docs/AccessLogEntry.md b/docs/AccessLogEntry.md index 18bd6335..ace849e4 100644 --- a/docs/AccessLogEntry.md +++ b/docs/AccessLogEntry.md @@ -8,7 +8,7 @@ Log of application accesses. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **uuid** | **String** | UUID reference of request. | -**status** | **Long** | HTTP status code of response. | +**status** | **Integer** | HTTP status code of response. | **method** | **String** | HTTP method of request. | **requestUri** | **String** | target URI of request | **time** | [**OffsetDateTime**](OffsetDateTime.md) | timestamp of request | diff --git a/docs/Account.md b/docs/Account.md index a7225212..f7fe8398 100644 --- a/docs/Account.md +++ b/docs/Account.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | **companyName** | **String** | | @@ -15,14 +15,14 @@ Name | Type | Description | Notes **billingEmail** | **String** | The billing email address associated with your company account. | **planName** | **String** | The name of your booked plan. | [optional] **planExpires** | [**OffsetDateTime**](OffsetDateTime.md) | The point in time at which your current plan expires. | [optional] -**applicationLimit** | **Long** | The maximum number of Applications covered by your plan. | [optional] -**userLimit** | **Long** | The maximum number of Campaign Manager Users covered by your plan. | [optional] -**campaignLimit** | **Long** | The maximum number of Campaigns covered by your plan. | [optional] -**apiLimit** | **Long** | The maximum number of Integration API calls covered by your plan per billing period. | [optional] -**applicationCount** | **Long** | The current number of Applications in your account. | -**userCount** | **Long** | The current number of Campaign Manager Users in your account. | -**campaignsActiveCount** | **Long** | The current number of active Campaigns in your account. | -**campaignsInactiveCount** | **Long** | The current number of inactive Campaigns in your account. | +**applicationLimit** | **Integer** | The maximum number of Applications covered by your plan. | [optional] +**userLimit** | **Integer** | The maximum number of Campaign Manager Users covered by your plan. | [optional] +**campaignLimit** | **Integer** | The maximum number of Campaigns covered by your plan. | [optional] +**apiLimit** | **Integer** | The maximum number of Integration API calls covered by your plan per billing period. | [optional] +**applicationCount** | **Integer** | The current number of Applications in your account. | +**userCount** | **Integer** | The current number of Campaign Manager Users in your account. | +**campaignsActiveCount** | **Integer** | The current number of active Campaigns in your account. | +**campaignsInactiveCount** | **Integer** | The current number of inactive Campaigns in your account. | **attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign. | [optional] diff --git a/docs/AccountAdditionalCost.md b/docs/AccountAdditionalCost.md index b33ce618..6859bbd6 100644 --- a/docs/AccountAdditionalCost.md +++ b/docs/AccountAdditionalCost.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Long** | The ID of the account that owns this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | **name** | **String** | The internal name used in API requests. | **title** | **String** | The human-readable name for the additional cost that will be shown in the Campaign Manager. Like `name`, the combination of entity and title must also be unique. | **description** | **String** | A description of this additional cost. | -**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the applications that are subscribed to this additional cost. | [optional] +**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the applications that are subscribed to this additional cost. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The type of additional cost. Possible value: - `session`: Additional cost will be added per session. - `item`: Additional cost will be added per item. - `both`: Additional cost will be added per item and session. | [optional] diff --git a/docs/AccountAnalytics.md b/docs/AccountAnalytics.md index 4021c107..7ed9e219 100644 --- a/docs/AccountAnalytics.md +++ b/docs/AccountAnalytics.md @@ -6,25 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applications** | **Long** | Total number of applications in the account. | -**liveApplications** | **Long** | Total number of live applications in the account. | -**sandboxApplications** | **Long** | Total number of sandbox applications in the account. | -**campaigns** | **Long** | Total number of campaigns in the account. | -**activeCampaigns** | **Long** | Total number of active campaigns in the account. | -**liveActiveCampaigns** | **Long** | Total number of active campaigns in live applications in the account. | -**coupons** | **Long** | Total number of coupons in the account. | -**activeCoupons** | **Long** | Total number of active coupons in the account. | -**expiredCoupons** | **Long** | Total number of expired coupons in the account. | -**referralCodes** | **Long** | Total number of referral codes in the account. | -**activeReferralCodes** | **Long** | Total number of active referral codes in the account. | -**expiredReferralCodes** | **Long** | Total number of expired referral codes in the account. | -**activeRules** | **Long** | Total number of active rules in the account. | -**users** | **Long** | Total number of users in the account. | -**roles** | **Long** | Total number of roles in the account. | -**customAttributes** | **Long** | Total number of custom attributes in the account. | -**webhooks** | **Long** | Total number of webhooks in the account. | -**loyaltyPrograms** | **Long** | Total number of all loyalty programs in the account. | -**liveLoyaltyPrograms** | **Long** | Total number of live loyalty programs in the account. | +**applications** | **Integer** | Total number of applications in the account. | +**liveApplications** | **Integer** | Total number of live applications in the account. | +**sandboxApplications** | **Integer** | Total number of sandbox applications in the account. | +**campaigns** | **Integer** | Total number of campaigns in the account. | +**activeCampaigns** | **Integer** | Total number of active campaigns in the account. | +**liveActiveCampaigns** | **Integer** | Total number of active campaigns in live applications in the account. | +**coupons** | **Integer** | Total number of coupons in the account. | +**activeCoupons** | **Integer** | Total number of active coupons in the account. | +**expiredCoupons** | **Integer** | Total number of expired coupons in the account. | +**referralCodes** | **Integer** | Total number of referral codes in the account. | +**activeReferralCodes** | **Integer** | Total number of active referral codes in the account. | +**expiredReferralCodes** | **Integer** | Total number of expired referral codes in the account. | +**activeRules** | **Integer** | Total number of active rules in the account. | +**users** | **Integer** | Total number of users in the account. | +**roles** | **Integer** | Total number of roles in the account. | +**customAttributes** | **Integer** | Total number of custom attributes in the account. | +**webhooks** | **Integer** | Total number of webhooks in the account. | +**loyaltyPrograms** | **Integer** | Total number of all loyalty programs in the account. | +**liveLoyaltyPrograms** | **Integer** | Total number of live loyalty programs in the account. | **lastUpdatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The point in time when the analytics numbers were updated last. | diff --git a/docs/AccountDashboardStatisticCampaigns.md b/docs/AccountDashboardStatisticCampaigns.md index 19c0b8fc..a727d02a 100644 --- a/docs/AccountDashboardStatisticCampaigns.md +++ b/docs/AccountDashboardStatisticCampaigns.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**live** | **Long** | Number of campaigns that are active and live (across all Applications). | -**endingSoon** | **Long** | Campaigns scheduled to expire sometime in the next 7 days. | -**lowOnBudget** | **Long** | Campaigns with less than 10% of budget left. | +**live** | **Integer** | Number of campaigns that are active and live (across all Applications). | +**endingSoon** | **Integer** | Campaigns scheduled to expire sometime in the next 7 days. | +**lowOnBudget** | **Integer** | Campaigns with less than 10% of budget left. | diff --git a/docs/AccountEntity.md b/docs/AccountEntity.md index 6b677e46..51f7598c 100644 --- a/docs/AccountEntity.md +++ b/docs/AccountEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**accountId** | **Long** | The ID of the account that owns this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | diff --git a/docs/AccountLimits.md b/docs/AccountLimits.md index 3b1f4c78..945c85d7 100644 --- a/docs/AccountLimits.md +++ b/docs/AccountLimits.md @@ -6,17 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**liveApplications** | **Long** | Total number of allowed live applications in the account. | -**sandboxApplications** | **Long** | Total number of allowed sandbox applications in the account. | -**activeCampaigns** | **Long** | Total number of allowed active campaigns in live applications in the account. | -**coupons** | **Long** | Total number of allowed coupons in the account. | -**referralCodes** | **Long** | Total number of allowed referral codes in the account. | -**activeRules** | **Long** | Total number of allowed active rulesets in the account. | -**liveLoyaltyPrograms** | **Long** | Total number of allowed live loyalty programs in the account. | -**sandboxLoyaltyPrograms** | **Long** | Total number of allowed sandbox loyalty programs in the account. | -**webhooks** | **Long** | Total number of allowed webhooks in the account. | -**users** | **Long** | Total number of allowed users in the account. | -**apiVolume** | **Long** | Allowed volume of API requests to the account. | +**liveApplications** | **Integer** | Total number of allowed live applications in the account. | +**sandboxApplications** | **Integer** | Total number of allowed sandbox applications in the account. | +**activeCampaigns** | **Integer** | Total number of allowed active campaigns in live applications in the account. | +**coupons** | **Integer** | Total number of allowed coupons in the account. | +**referralCodes** | **Integer** | Total number of allowed referral codes in the account. | +**activeRules** | **Integer** | Total number of allowed active rulesets in the account. | +**liveLoyaltyPrograms** | **Integer** | Total number of allowed live loyalty programs in the account. | +**sandboxLoyaltyPrograms** | **Integer** | Total number of allowed sandbox loyalty programs in the account. | +**webhooks** | **Integer** | Total number of allowed webhooks in the account. | +**users** | **Integer** | Total number of allowed users in the account. | +**apiVolume** | **Integer** | Allowed volume of API requests to the account. | **promotionTypes** | **List<String>** | Array of promotion types that are employed in the account. | diff --git a/docs/Achievement.md b/docs/Achievement.md index 31fac2fc..7adeb2e2 100644 --- a/docs/Achievement.md +++ b/docs/Achievement.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **name** | **String** | The internal name of the achievement used in API requests. **Note**: The name should start with a letter. This cannot be changed after the achievement has been created. | **title** | **String** | The display name for the achievement in the Campaign Manager. | @@ -14,12 +14,12 @@ Name | Type | Description | Notes **target** | [**BigDecimal**](BigDecimal.md) | The required number of actions or the transactional milestone to complete the achievement. | **period** | **String** | The relative duration after which the achievement ends and resets for a particular customer profile. **Note**: The `period` does not start when the achievement is created. The period is a **positive real number** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can also round certain units down to the beginning of period and up to the end of period.: - `_D` for rounding down days only. Signifies the start of the day. Example: `30D_D` - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. Example: `23W_U` **Note**: You can either use the round down and round up option or set an absolute period. | [optional] **periodEndOverride** | [**TimePoint**](TimePoint.md) | | [optional] -**recurrencePolicy** | [**RecurrencePolicyEnum**](#RecurrencePolicyEnum) | The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. | [optional] +**recurrencePolicy** | [**RecurrencePolicyEnum**](#RecurrencePolicyEnum) | The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. | [optional] **activationPolicy** | [**ActivationPolicyEnum**](#ActivationPolicyEnum) | The policy that determines how the achievement starts, ends, or resets. - `user_action`: The achievement ends or resets relative to when the customer started the achievement. - `fixed_schedule`: The achievement starts, ends, or resets for all customers following a fixed schedule. | [optional] **fixedStartDate** | [**OffsetDateTime**](OffsetDateTime.md) | The achievement's start date when `activationPolicy` is set to `fixed_schedule`. **Note:** It must be an RFC3339 timestamp string. | [optional] **endDate** | [**OffsetDateTime**](OffsetDateTime.md) | The achievement's end date. If defined, customers cannot participate in the achievement after this date. **Note:** It must be an RFC3339 timestamp string. | [optional] -**campaignId** | **Long** | The ID of the campaign the achievement belongs to. | -**userId** | **Long** | ID of the user that created this achievement. | +**campaignId** | **Integer** | The ID of the campaign the achievement belongs to. | +**userId** | **Integer** | ID of the user that created this achievement. | **createdBy** | **String** | Name of the user that created the achievement. **Note**: This is not available if the user has been deleted. | [optional] **hasProgress** | **Boolean** | Indicates if a customer has made progress in the achievement. | [optional] **status** | [**StatusEnum**](#StatusEnum) | The status of the achievement. | [optional] @@ -32,6 +32,7 @@ Name | Value ---- | ----- NO_RECURRENCE | "no_recurrence" ON_EXPIRATION | "on_expiration" +ON_COMPLETION | "on_completion" diff --git a/docs/AchievementAdditionalProperties.md b/docs/AchievementAdditionalProperties.md index c0e74bd4..ee0d3e2c 100644 --- a/docs/AchievementAdditionalProperties.md +++ b/docs/AchievementAdditionalProperties.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignId** | **Long** | The ID of the campaign the achievement belongs to. | -**userId** | **Long** | ID of the user that created this achievement. | +**campaignId** | **Integer** | The ID of the campaign the achievement belongs to. | +**userId** | **Integer** | ID of the user that created this achievement. | **createdBy** | **String** | Name of the user that created the achievement. **Note**: This is not available if the user has been deleted. | [optional] **hasProgress** | **Boolean** | Indicates if a customer has made progress in the achievement. | [optional] **status** | [**StatusEnum**](#StatusEnum) | The status of the achievement. | [optional] diff --git a/docs/AchievementBase.md b/docs/AchievementBase.md index 049729a0..20c9d4ce 100644 --- a/docs/AchievementBase.md +++ b/docs/AchievementBase.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **target** | [**BigDecimal**](BigDecimal.md) | The required number of actions or the transactional milestone to complete the achievement. | [optional] **period** | **String** | The relative duration after which the achievement ends and resets for a particular customer profile. **Note**: The `period` does not start when the achievement is created. The period is a **positive real number** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can also round certain units down to the beginning of period and up to the end of period.: - `_D` for rounding down days only. Signifies the start of the day. Example: `30D_D` - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. Example: `23W_U` **Note**: You can either use the round down and round up option or set an absolute period. | [optional] **periodEndOverride** | [**TimePoint**](TimePoint.md) | | [optional] -**recurrencePolicy** | [**RecurrencePolicyEnum**](#RecurrencePolicyEnum) | The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. | [optional] +**recurrencePolicy** | [**RecurrencePolicyEnum**](#RecurrencePolicyEnum) | The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. | [optional] **activationPolicy** | [**ActivationPolicyEnum**](#ActivationPolicyEnum) | The policy that determines how the achievement starts, ends, or resets. - `user_action`: The achievement ends or resets relative to when the customer started the achievement. - `fixed_schedule`: The achievement starts, ends, or resets for all customers following a fixed schedule. | [optional] **fixedStartDate** | [**OffsetDateTime**](OffsetDateTime.md) | The achievement's start date when `activationPolicy` is set to `fixed_schedule`. **Note:** It must be an RFC3339 timestamp string. | [optional] **endDate** | [**OffsetDateTime**](OffsetDateTime.md) | The achievement's end date. If defined, customers cannot participate in the achievement after this date. **Note:** It must be an RFC3339 timestamp string. | [optional] @@ -25,6 +25,7 @@ Name | Value ---- | ----- NO_RECURRENCE | "no_recurrence" ON_EXPIRATION | "on_expiration" +ON_COMPLETION | "on_completion" diff --git a/docs/AchievementProgressWithDefinition.md b/docs/AchievementProgressWithDefinition.md index adc274ab..93d47acc 100644 --- a/docs/AchievementProgressWithDefinition.md +++ b/docs/AchievementProgressWithDefinition.md @@ -12,13 +12,13 @@ Name | Type | Description | Notes **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which the customer started the achievement. | [optional] **completionDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the customer completed the achievement. | [optional] **endDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the achievement ends and resets for the customer. | [optional] -**achievementId** | **Long** | The internal ID of the achievement. | +**achievementId** | **Integer** | The internal ID of the achievement. | **name** | **String** | The internal name of the achievement used in API requests. | **title** | **String** | The display name of the achievement in the Campaign Manager. | **description** | **String** | The description of the achievement in the Campaign Manager. | -**campaignId** | **Long** | The ID of the campaign the achievement belongs to. | +**campaignId** | **Integer** | The ID of the campaign the achievement belongs to. | **target** | [**BigDecimal**](BigDecimal.md) | The required number of actions or the transactional milestone to complete the achievement. | [optional] -**achievementRecurrencePolicy** | [**AchievementRecurrencePolicyEnum**](#AchievementRecurrencePolicyEnum) | The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. | +**achievementRecurrencePolicy** | [**AchievementRecurrencePolicyEnum**](#AchievementRecurrencePolicyEnum) | The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. | **achievementActivationPolicy** | [**AchievementActivationPolicyEnum**](#AchievementActivationPolicyEnum) | The policy that determines how the achievement starts, ends, or resets. - `user_action`: The achievement ends or resets relative to when the customer started the achievement. - `fixed_schedule`: The achievement starts, ends, or resets for all customers following a fixed schedule. | **achievementFixedStartDate** | [**OffsetDateTime**](OffsetDateTime.md) | The achievement's start date when `achievementActivationPolicy` is equal to `fixed_schedule`. **Note:** It is an RFC3339 timestamp string. | [optional] **achievementEndDate** | [**OffsetDateTime**](OffsetDateTime.md) | The achievement's end date. If defined, customers cannot participate in the achievement after this date. **Note:** It is an RFC3339 timestamp string. | [optional] @@ -42,6 +42,7 @@ Name | Value ---- | ----- NO_RECURRENCE | "no_recurrence" ON_EXPIRATION | "on_expiration" +ON_COMPLETION | "on_completion" diff --git a/docs/AchievementStatusEntry.md b/docs/AchievementStatusEntry.md index fa44fd9f..7c87feba 100644 --- a/docs/AchievementStatusEntry.md +++ b/docs/AchievementStatusEntry.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **name** | **String** | The internal name of the achievement used in API requests. **Note**: The name should start with a letter. This cannot be changed after the achievement has been created. | **title** | **String** | The display name for the achievement in the Campaign Manager. | @@ -14,11 +14,11 @@ Name | Type | Description | Notes **target** | [**BigDecimal**](BigDecimal.md) | The required number of actions or the transactional milestone to complete the achievement. | **period** | **String** | The relative duration after which the achievement ends and resets for a particular customer profile. **Note**: The `period` does not start when the achievement is created. The period is a **positive real number** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can also round certain units down to the beginning of period and up to the end of period.: - `_D` for rounding down days only. Signifies the start of the day. Example: `30D_D` - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. Example: `23W_U` **Note**: You can either use the round down and round up option or set an absolute period. | [optional] **periodEndOverride** | [**TimePoint**](TimePoint.md) | | [optional] -**recurrencePolicy** | [**RecurrencePolicyEnum**](#RecurrencePolicyEnum) | The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. | [optional] +**recurrencePolicy** | [**RecurrencePolicyEnum**](#RecurrencePolicyEnum) | The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. | [optional] **activationPolicy** | [**ActivationPolicyEnum**](#ActivationPolicyEnum) | The policy that determines how the achievement starts, ends, or resets. - `user_action`: The achievement ends or resets relative to when the customer started the achievement. - `fixed_schedule`: The achievement starts, ends, or resets for all customers following a fixed schedule. | [optional] **fixedStartDate** | [**OffsetDateTime**](OffsetDateTime.md) | The achievement's start date when `activationPolicy` is set to `fixed_schedule`. **Note:** It must be an RFC3339 timestamp string. | [optional] **endDate** | [**OffsetDateTime**](OffsetDateTime.md) | The achievement's end date. If defined, customers cannot participate in the achievement after this date. **Note:** It must be an RFC3339 timestamp string. | [optional] -**campaignId** | **Long** | The ID of the campaign the achievement belongs to. | [optional] +**campaignId** | **Integer** | The ID of the campaign the achievement belongs to. | [optional] **status** | [**StatusEnum**](#StatusEnum) | The status of the achievement. | [optional] **currentProgress** | [**AchievementProgress**](AchievementProgress.md) | | [optional] @@ -30,6 +30,7 @@ Name | Value ---- | ----- NO_RECURRENCE | "no_recurrence" ON_EXPIRATION | "on_expiration" +ON_COMPLETION | "on_completion" diff --git a/docs/AddFreeItemEffectProps.md b/docs/AddFreeItemEffectProps.md index 602629d9..21b04439 100644 --- a/docs/AddFreeItemEffectProps.md +++ b/docs/AddFreeItemEffectProps.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **sku** | **String** | SKU of the item that needs to be added. | **name** | **String** | The name / description of the effect | -**desiredQuantity** | **Long** | The original quantity in case a partial reward was applied. | [optional] +**desiredQuantity** | **Integer** | The original quantity in case a partial reward was applied. | [optional] diff --git a/docs/AddLoyaltyPoints.md b/docs/AddLoyaltyPoints.md index c7b8a9bb..bf2da991 100644 --- a/docs/AddLoyaltyPoints.md +++ b/docs/AddLoyaltyPoints.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **pendingDuration** | **String** | The amount of time before the points are considered valid. The time format is either: - `immediate` or, - an **integer** followed by one letter indicating the time unit. Examples: `immediate`, `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. | [optional] **pendingUntil** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time after the points are considered valid. The value should be provided in RFC 3339 format. If passed, `pendingDuration` should be omitted. | [optional] **subledgerId** | **String** | ID of the subledger the points are added to. If there is no existing subledger with this ID, the subledger is created automatically. | [optional] -**applicationId** | **Long** | ID of the Application that is connected to the loyalty program. It is displayed in your Talon.One deployment URL. | [optional] +**applicationId** | **Integer** | ID of the Application that is connected to the loyalty program. It is displayed in your Talon.One deployment URL. | [optional] diff --git a/docs/AddLoyaltyPointsEffectProps.md b/docs/AddLoyaltyPointsEffectProps.md index ada3b99d..2757cd22 100644 --- a/docs/AddLoyaltyPointsEffectProps.md +++ b/docs/AddLoyaltyPointsEffectProps.md @@ -8,7 +8,7 @@ The properties specific to the \"addLoyaltyPoints\" effect. This gets triggered Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name / description of this loyalty point addition. | -**programId** | **Long** | The ID of the loyalty program where these points were added. | +**programId** | **Integer** | The ID of the loyalty program where these points were added. | **subLedgerId** | **String** | The ID of the subledger within the loyalty program where these points were added. | **value** | [**BigDecimal**](BigDecimal.md) | The amount of points that were added. | **desiredValue** | [**BigDecimal**](BigDecimal.md) | The original amount of loyalty points to be awarded. | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes **cartItemPosition** | [**BigDecimal**](BigDecimal.md) | The index of the item in the cart items list on which the loyal points addition should be applied. | [optional] **cartItemSubPosition** | [**BigDecimal**](BigDecimal.md) | For cart items with `quantity` > 1, the sub position indicates to which item the loyalty points addition is applied. | [optional] **cardIdentifier** | **String** | The alphanumeric identifier of the loyalty card. | [optional] -**bundleIndex** | **Long** | The position of the bundle in a list of item bundles created from the same bundle definition. | [optional] +**bundleIndex** | **Integer** | The position of the bundle in a list of item bundles created from the same bundle definition. | [optional] **bundleName** | **String** | The name of the bundle definition. | [optional] diff --git a/docs/AddPriceAdjustmentCatalogAction.md b/docs/AddPriceAdjustmentCatalogAction.md new file mode 100644 index 00000000..329d41a2 --- /dev/null +++ b/docs/AddPriceAdjustmentCatalogAction.md @@ -0,0 +1,14 @@ + + +# AddPriceAdjustmentCatalogAction + +The specific properties of the \"ADD_PRICE_ADJUSTMENT\" catalog sync action. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sku** | **String** | The SKU of the item for which the price is being adjusted. | +**adjustments** | [**List<NewPriceAdjustment>**](NewPriceAdjustment.md) | A list of adjustments to apply to a given item. | + + + diff --git a/docs/AddToAudienceEffectProps.md b/docs/AddToAudienceEffectProps.md index e75e7fbc..47a83438 100644 --- a/docs/AddToAudienceEffectProps.md +++ b/docs/AddToAudienceEffectProps.md @@ -7,10 +7,10 @@ The properties specific to the \"addToAudience\" effect. This gets triggered whe Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**audienceId** | **Long** | The internal ID of the audience. | [optional] +**audienceId** | **Integer** | The internal ID of the audience. | [optional] **audienceName** | **String** | The name of the audience. | [optional] **profileIntegrationId** | **String** | The ID of the customer profile in the third-party integration platform. | [optional] -**profileId** | **Long** | The internal ID of the customer profile. | [optional] +**profileId** | **Integer** | The internal ID of the customer profile. | [optional] diff --git a/docs/AddedDeductedPointsBalancesNotificationPolicy.md b/docs/AddedDeductedPointsBalancesNotificationPolicy.md new file mode 100644 index 00000000..6d029fbf --- /dev/null +++ b/docs/AddedDeductedPointsBalancesNotificationPolicy.md @@ -0,0 +1,24 @@ + + +# AddedDeductedPointsBalancesNotificationPolicy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | Notification name. | +**scopes** | [**List<ScopesEnum>**](#List<ScopesEnum>) | | + + + +## Enum: List<ScopesEnum> + +Name | Value +---- | ----- +ALL | "all" +CAMPAIGN_MANAGER | "campaign_manager" +MANAGEMENT_API | "management_api" +RULE_ENGINE | "rule_engine" + + + diff --git a/docs/AdditionalCampaignProperties.md b/docs/AdditionalCampaignProperties.md index 341deb1a..639d47cc 100644 --- a/docs/AdditionalCampaignProperties.md +++ b/docs/AdditionalCampaignProperties.md @@ -7,29 +7,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **budgets** | [**List<CampaignBudget>**](CampaignBudget.md) | A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined. | [optional] -**couponRedemptionCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. | [optional] -**referralRedemptionCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. | [optional] +**couponRedemptionCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. | [optional] +**referralRedemptionCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. | [optional] **discountCount** | [**BigDecimal**](BigDecimal.md) | This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign. | [optional] -**discountEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. | [optional] -**couponCreationCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. | [optional] -**customEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. | [optional] -**referralCreationCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. | [optional] -**addFreeItemEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. | [optional] -**awardedGiveawaysCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. | [optional] +**discountEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. | [optional] +**couponCreationCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. | [optional] +**customEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. | [optional] +**referralCreationCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. | [optional] +**addFreeItemEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. | [optional] +**awardedGiveawaysCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. | [optional] **createdLoyaltyPointsCount** | [**BigDecimal**](BigDecimal.md) | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign. | [optional] -**createdLoyaltyPointsEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. | [optional] +**createdLoyaltyPointsEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. | [optional] **redeemedLoyaltyPointsCount** | [**BigDecimal**](BigDecimal.md) | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign. | [optional] -**redeemedLoyaltyPointsEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. | [optional] -**callApiEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. | [optional] -**reservecouponEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. | [optional] +**redeemedLoyaltyPointsEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. | [optional] +**callApiEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. | [optional] +**reservecouponEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. | [optional] **lastActivity** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent event received by this campaign. | [optional] **updated** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates. | [optional] **createdBy** | **String** | Name of the user who created this campaign if available. | [optional] **updatedBy** | **String** | Name of the user who last updated this campaign if available. | [optional] -**templateId** | **Long** | The ID of the Campaign Template this Campaign was created from. | [optional] +**templateId** | **Integer** | The ID of the Campaign Template this Campaign was created from. | [optional] **frontendState** | [**FrontendStateEnum**](#FrontendStateEnum) | The campaign state displayed in the Campaign Manager. | **storesImported** | **Boolean** | Indicates whether the linked stores were imported via a CSV file. | -**valueMapsIds** | **List<Long>** | A list of value map IDs for the campaign. | [optional] +**valueMapsIds** | **List<Integer>** | A list of value map IDs for the campaign. | [optional] diff --git a/docs/AnalyticsProduct.md b/docs/AnalyticsProduct.md index fc08da1b..b42d1478 100644 --- a/docs/AnalyticsProduct.md +++ b/docs/AnalyticsProduct.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | The ID of the product. | +**id** | **Integer** | The ID of the product. | **name** | **String** | The name of the product. | -**catalogId** | **Long** | The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. | +**catalogId** | **Integer** | The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. | **unitsSold** | [**AnalyticsDataPointWithTrend**](AnalyticsDataPointWithTrend.md) | | [optional] diff --git a/docs/AnalyticsSKU.md b/docs/AnalyticsSKU.md index c0590672..8b1bf70f 100644 --- a/docs/AnalyticsSKU.md +++ b/docs/AnalyticsSKU.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | The ID of the SKU linked to the application. | +**id** | **Integer** | The ID of the SKU linked to the application. | **sku** | **String** | The SKU linked to the application. | **lastUpdated** | [**OffsetDateTime**](OffsetDateTime.md) | Values in UTC for the date the SKU linked to the product was last updated. | [optional] **unitsSold** | [**AnalyticsDataPointWithTrend**](AnalyticsDataPointWithTrend.md) | | [optional] diff --git a/docs/Application.md b/docs/Application.md index 8a48a665..f3e5787f 100644 --- a/docs/Application.md +++ b/docs/Application.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | -**accountId** | **Long** | The ID of the account that owns this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | **name** | **String** | The name of this application. | **description** | **String** | A longer description of the application. | [optional] **timezone** | **String** | A string containing an IANA timezone descriptor. | @@ -24,8 +24,8 @@ Name | Type | Description | Notes **sandbox** | **Boolean** | Indicates if this is a live or sandbox Application. | [optional] **enablePartialDiscounts** | **Boolean** | Indicates if this Application supports partial discounts. | [optional] **defaultDiscountAdditionalCostPerItemScope** | [**DefaultDiscountAdditionalCostPerItemScopeEnum**](#DefaultDiscountAdditionalCostPerItemScopeEnum) | The default scope to apply `setDiscountPerItem` effects on if no scope was provided with the effect. | [optional] -**defaultEvaluationGroupId** | **Long** | The ID of the default campaign evaluation group to which new campaigns will be added unless a different group is selected when creating the campaign. | [optional] -**defaultCartItemFilterId** | **Long** | The ID of the default Cart-Item-Filter for this application. | [optional] +**defaultEvaluationGroupId** | **Integer** | The ID of the default campaign evaluation group to which new campaigns will be added unless a different group is selected when creating the campaign. | [optional] +**defaultCartItemFilterId** | **Integer** | The ID of the default Cart-Item-Filter for this application. | [optional] **enableCampaignStateManagement** | **Boolean** | Indicates whether the campaign staging and revisions feature is enabled for the Application. **Important:** After this feature is enabled, it cannot be disabled. | [optional] **loyaltyPrograms** | [**List<LoyaltyProgram>**](LoyaltyProgram.md) | An array containing all the loyalty programs to which this application is subscribed. | diff --git a/docs/ApplicationAPIKey.md b/docs/ApplicationAPIKey.md index bf35028a..8a7622e3 100644 --- a/docs/ApplicationAPIKey.md +++ b/docs/ApplicationAPIKey.md @@ -10,11 +10,11 @@ Name | Type | Description | Notes **expires** | [**OffsetDateTime**](OffsetDateTime.md) | The date the API key expires. | **platform** | [**PlatformEnum**](#PlatformEnum) | The third-party platform the API key is valid for. Use `none` for a generic API key to be used from your own integration layer. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. | [optional] -**timeOffset** | **Long** | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. | [optional] -**id** | **Long** | ID of the API Key. | -**createdBy** | **Long** | ID of user who created. | -**accountID** | **Long** | ID of account the key is used for. | -**applicationID** | **Long** | ID of application the key is used for. | +**timeOffset** | **Integer** | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. | [optional] +**id** | **Integer** | ID of the API Key. | +**createdBy** | **Integer** | ID of user who created. | +**accountID** | **Integer** | ID of account the key is used for. | +**applicationID** | **Integer** | ID of application the key is used for. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The date the API key was created. | diff --git a/docs/ApplicationCIF.md b/docs/ApplicationCIF.md index 0ca112c6..c57d6ba3 100644 --- a/docs/ApplicationCIF.md +++ b/docs/ApplicationCIF.md @@ -6,15 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **name** | **String** | The name of the Application cart item filter used in API requests. | **description** | **String** | A short description of the Application cart item filter. | [optional] -**activeExpressionId** | **Long** | The ID of the expression that the Application cart item filter uses. | [optional] -**modifiedBy** | **Long** | The ID of the user who last updated the Application cart item filter. | [optional] -**createdBy** | **Long** | The ID of the user who created the Application cart item filter. | [optional] +**activeExpressionId** | **Integer** | The ID of the expression that the Application cart item filter uses. | [optional] +**modifiedBy** | **Integer** | The ID of the user who last updated the Application cart item filter. | [optional] +**createdBy** | **Integer** | The ID of the user who created the Application cart item filter. | [optional] **modified** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent update to the Application cart item filter. | [optional] -**applicationId** | **Long** | The ID of the Application that owns this entity. | +**applicationId** | **Integer** | The ID of the Application that owns this entity. | diff --git a/docs/ApplicationCIFExpression.md b/docs/ApplicationCIFExpression.md index 47591c76..cc645ee7 100644 --- a/docs/ApplicationCIFExpression.md +++ b/docs/ApplicationCIFExpression.md @@ -6,12 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**cartItemFilterId** | **Long** | The ID of the Application cart item filter. | [optional] -**createdBy** | **Long** | The ID of the user who created the Application cart item filter. | [optional] +**cartItemFilterId** | **Integer** | The ID of the Application cart item filter. | [optional] +**createdBy** | **Integer** | The ID of the user who created the Application cart item filter. | [optional] **expression** | **List<Object>** | Arbitrary additional JSON data associated with the Application cart item filter. | [optional] -**applicationId** | **Long** | The ID of the Application that owns this entity. | +**applicationId** | **Integer** | The ID of the Application that owns this entity. | diff --git a/docs/ApplicationCIFReferences.md b/docs/ApplicationCIFReferences.md index 1e847b33..6b32b1c8 100644 --- a/docs/ApplicationCIFReferences.md +++ b/docs/ApplicationCIFReferences.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applicationCartItemFilterId** | **Long** | The ID of the Application Cart Item Filter that is referenced by a campaign. | [optional] +**applicationCartItemFilterId** | **Integer** | The ID of the Application Cart Item Filter that is referenced by a campaign. | [optional] **campaigns** | [**List<CampaignDetail>**](CampaignDetail.md) | Campaigns that reference a speciifc Application Cart Item Filter. | [optional] diff --git a/docs/ApplicationCampaignAnalytics.md b/docs/ApplicationCampaignAnalytics.md index 94aa70c3..b7cdda8d 100644 --- a/docs/ApplicationCampaignAnalytics.md +++ b/docs/ApplicationCampaignAnalytics.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **startTime** | [**OffsetDateTime**](OffsetDateTime.md) | The start of the aggregation time frame in UTC. | **endTime** | [**OffsetDateTime**](OffsetDateTime.md) | The end of the aggregation time frame in UTC. | -**campaignId** | **Long** | The ID of the campaign. | +**campaignId** | **Integer** | The ID of the campaign. | **campaignName** | **String** | The name of the campaign. | **campaignTags** | **List<String>** | A list of tags for the campaign. | **campaignState** | [**CampaignStateEnum**](#CampaignStateEnum) | The state of the campaign. **Note:** A disabled or archived campaign is not evaluated for rules or coupons. | diff --git a/docs/ApplicationCampaignStats.md b/docs/ApplicationCampaignStats.md index a1125f33..6427b729 100644 --- a/docs/ApplicationCampaignStats.md +++ b/docs/ApplicationCampaignStats.md @@ -7,12 +7,12 @@ Provides statistics regarding an application's campaigns. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**disabled** | **Long** | Number of disabled campaigns. | -**staged** | **Long** | Number of staged campaigns. | -**scheduled** | **Long** | Number of scheduled campaigns. | -**running** | **Long** | Number of running campaigns. | -**expired** | **Long** | Number of expired campaigns. | -**archived** | **Long** | Number of archived campaigns. | +**disabled** | **Integer** | Number of disabled campaigns. | +**staged** | **Integer** | Number of staged campaigns. | +**scheduled** | **Integer** | Number of scheduled campaigns. | +**running** | **Integer** | Number of running campaigns. | +**expired** | **Integer** | Number of expired campaigns. | +**archived** | **Integer** | Number of archived campaigns. | diff --git a/docs/ApplicationCustomer.md b/docs/ApplicationCustomer.md index fe05c12d..d924d1f0 100644 --- a/docs/ApplicationCustomer.md +++ b/docs/ApplicationCustomer.md @@ -6,12 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of the customer profile. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **integrationId** | **String** | The integration ID set by your integration layer. | **attributes** | [**Object**](.md) | Arbitrary properties associated with this item. | -**accountId** | **Long** | The ID of the Talon.One account that owns this profile. | -**closedSessions** | **Long** | The total amount of closed sessions by a customer. A closed session is a successful purchase. | +**accountId** | **Integer** | The ID of the Talon.One account that owns this profile. | +**closedSessions** | **Integer** | The total number of closed sessions. Does not include closed sessions that have been cancelled or reopened. See the [docs](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states). | **totalSales** | [**BigDecimal**](BigDecimal.md) | The total amount of money spent by the customer **before** discounts are applied. The total sales amount excludes the following: - Cancelled or reopened sessions. - Returned items. | **loyaltyMemberships** | [**List<LoyaltyMembership>**](LoyaltyMembership.md) | **DEPRECATED** A list of loyalty programs joined by the customer. | [optional] **audienceMemberships** | [**List<AudienceMembership>**](AudienceMembership.md) | The audiences the customer belongs to. | [optional] diff --git a/docs/ApplicationCustomerEntity.md b/docs/ApplicationCustomerEntity.md index 65584939..1f4aa81a 100644 --- a/docs/ApplicationCustomerEntity.md +++ b/docs/ApplicationCustomerEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**profileId** | **Long** | The globally unique Talon.One ID of the customer that created this entity. | [optional] +**profileId** | **Integer** | The globally unique Talon.One ID of the customer that created this entity. | [optional] diff --git a/docs/ApplicationEntity.md b/docs/ApplicationEntity.md index be4d1e7e..36ea30be 100644 --- a/docs/ApplicationEntity.md +++ b/docs/ApplicationEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applicationId** | **Long** | The ID of the Application that owns this entity. | +**applicationId** | **Integer** | The ID of the Application that owns this entity. | diff --git a/docs/ApplicationEvent.md b/docs/ApplicationEvent.md index a4012c5f..3497b31a 100644 --- a/docs/ApplicationEvent.md +++ b/docs/ApplicationEvent.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**applicationId** | **Long** | The ID of the Application that owns this entity. | -**profileId** | **Long** | The globally unique Talon.One ID of the customer that created this entity. | [optional] -**storeId** | **Long** | The ID of the store. | [optional] +**applicationId** | **Integer** | The ID of the Application that owns this entity. | +**profileId** | **Integer** | The globally unique Talon.One ID of the customer that created this entity. | [optional] +**storeId** | **Integer** | The ID of the store. | [optional] **storeIntegrationId** | **String** | The integration ID of the store. You choose this ID when you create a store. | [optional] -**sessionId** | **Long** | The globally unique Talon.One ID of the session that contains this event. | [optional] +**sessionId** | **Integer** | The globally unique Talon.One ID of the session that contains this event. | [optional] **type** | **String** | A string representing the event. Must not be a reserved event name. | **attributes** | [**Object**](.md) | Additional JSON serialized data associated with the event. | **effects** | [**List<Effect>**](Effect.md) | An array containing the effects that were applied as a result of this event. | diff --git a/docs/ApplicationReferee.md b/docs/ApplicationReferee.md index ff135584..46322b37 100644 --- a/docs/ApplicationReferee.md +++ b/docs/ApplicationReferee.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applicationId** | **Long** | The ID of the Application that owns this entity. | +**applicationId** | **Integer** | The ID of the Application that owns this entity. | **sessionId** | **String** | Integration ID of the session in which the customer redeemed the referral. | **advocateIntegrationId** | **String** | Integration ID of the Advocate's Profile. | **friendIntegrationId** | **String** | Integration ID of the Friend's Profile. | diff --git a/docs/ApplicationSession.md b/docs/ApplicationSession.md index 63cc076c..a9c19379 100644 --- a/docs/ApplicationSession.md +++ b/docs/ApplicationSession.md @@ -6,12 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **integrationId** | **String** | The integration ID set by your integration layer. | **storeIntegrationId** | **String** | The integration ID of the store. You choose this ID when you create a store. | [optional] -**applicationId** | **Long** | The ID of the Application that owns this entity. | -**profileId** | **Long** | The globally unique Talon.One ID of the customer that created this entity. | [optional] +**applicationId** | **Integer** | The ID of the Application that owns this entity. | +**profileId** | **Integer** | The globally unique Talon.One ID of the customer that created this entity. | [optional] **profileintegrationid** | **String** | Integration ID of the customer for the session. | [optional] **coupon** | **String** | Any coupon code entered. | **referral** | **String** | Any referral code entered. | diff --git a/docs/ApplicationSessionEntity.md b/docs/ApplicationSessionEntity.md index 09f6ebc8..e41ccf7e 100644 --- a/docs/ApplicationSessionEntity.md +++ b/docs/ApplicationSessionEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**sessionId** | **Long** | The globally unique Talon.One ID of the session where this entity was created. | +**sessionId** | **Integer** | The globally unique Talon.One ID of the session where this entity was created. | diff --git a/docs/ApplicationStoreEntity.md b/docs/ApplicationStoreEntity.md index e33fc69e..672fa75b 100644 --- a/docs/ApplicationStoreEntity.md +++ b/docs/ApplicationStoreEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**storeId** | **Long** | The ID of the store. | [optional] +**storeId** | **Integer** | The ID of the store. | [optional] diff --git a/docs/AsyncCouponDeletionJobResponse.md b/docs/AsyncCouponDeletionJobResponse.md index d0f114d7..440aad48 100644 --- a/docs/AsyncCouponDeletionJobResponse.md +++ b/docs/AsyncCouponDeletionJobResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | +**id** | **Integer** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | diff --git a/docs/Attribute.md b/docs/Attribute.md index 1ec79752..50e5e14e 100644 --- a/docs/Attribute.md +++ b/docs/Attribute.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Long** | The ID of the account that owns this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | **entity** | [**EntityEnum**](#EntityEnum) | The name of the entity that can have this attribute. When creating or updating the entities of a given type, you can include an `attributes` object with keys corresponding to the `name` of the custom attributes for that type. | **eventType** | **String** | | [optional] **name** | **String** | The attribute name that will be used in API requests and Talang. E.g. if `name == \"region\"` then you would set the region attribute by including an `attributes.region` property in your request payload. | @@ -19,10 +19,10 @@ Name | Type | Description | Notes **hasAllowedList** | **Boolean** | Whether or not this attribute has an allowed list of values associated with it. | [optional] **restrictedBySuggestions** | **Boolean** | Whether or not this attribute's value is restricted by suggestions (`suggestions` property) or by an allowed list of value (`hasAllowedList` property). | [optional] **editable** | **Boolean** | Whether or not this attribute can be edited. | -**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the applications where this attribute is available. | [optional] -**subscribedCatalogsIds** | **List<Long>** | A list of the IDs of the catalogs where this attribute is available. | [optional] +**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the applications where this attribute is available. | [optional] +**subscribedCatalogsIds** | **List<Integer>** | A list of the IDs of the catalogs where this attribute is available. | [optional] **allowedSubscriptions** | [**List<AllowedSubscriptionsEnum>**](#List<AllowedSubscriptionsEnum>) | A list of allowed subscription types for this attribute. **Note:** This only applies to attributes associated with the `CartItem` entity. | [optional] -**eventTypeId** | **Long** | | [optional] +**eventTypeId** | **Integer** | | [optional] diff --git a/docs/Audience.md b/docs/Audience.md index 082417a3..6fafba4a 100644 --- a/docs/Audience.md +++ b/docs/Audience.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**accountId** | **Long** | The ID of the account that owns this entity. | -**id** | **Long** | Internal ID of this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **name** | **String** | The human-friendly display name for this audience. | **sandbox** | **Boolean** | Indicates if this is a live or sandbox Application. | [optional] diff --git a/docs/AudienceAnalytics.md b/docs/AudienceAnalytics.md index 08b874c0..e2307465 100644 --- a/docs/AudienceAnalytics.md +++ b/docs/AudienceAnalytics.md @@ -7,8 +7,8 @@ The audiences and their member count. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**audienceId** | **Long** | The ID of the audience. | [optional] -**membersCount** | **Long** | The member count of the audience. | [optional] +**audienceId** | **Integer** | The ID of the audience. | [optional] +**membersCount** | **Integer** | The member count of the audience. | [optional] diff --git a/docs/AudienceCustomer.md b/docs/AudienceCustomer.md index 4f6a02d8..6ac026f3 100644 --- a/docs/AudienceCustomer.md +++ b/docs/AudienceCustomer.md @@ -6,19 +6,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of the customer profile. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **integrationId** | **String** | The integration ID set by your integration layer. | **attributes** | [**Object**](.md) | Arbitrary properties associated with this item. | -**accountId** | **Long** | The ID of the Talon.One account that owns this profile. | -**closedSessions** | **Long** | The total amount of closed sessions by a customer. A closed session is a successful purchase. | +**accountId** | **Integer** | The ID of the Talon.One account that owns this profile. | +**closedSessions** | **Integer** | The total number of closed sessions. Does not include closed sessions that have been cancelled or reopened. See the [docs](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states). | **totalSales** | [**BigDecimal**](BigDecimal.md) | The total amount of money spent by the customer **before** discounts are applied. The total sales amount excludes the following: - Cancelled or reopened sessions. - Returned items. | **loyaltyMemberships** | [**List<LoyaltyMembership>**](LoyaltyMembership.md) | **DEPRECATED** A list of loyalty programs joined by the customer. | [optional] **audienceMemberships** | [**List<AudienceMembership>**](AudienceMembership.md) | The audiences the customer belongs to. | [optional] **lastActivity** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent event received from this customer. This field is updated on calls that trigger the Rule Engine and that are not [dry requests](https://docs.talon.one/docs/dev/integration-api/dry-requests/#overlay). For example, [reserving a coupon](https://docs.talon.one/integration-api#operation/createCouponReservation) for a customer doesn't impact this field. | **sandbox** | **Boolean** | An indicator of whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). | [optional] -**connectedApplicationsIds** | **List<Long>** | A list of the IDs of the Applications that are connected to this customer profile. | [optional] -**connectedAudiences** | **List<Long>** | A list of the IDs of the audiences that are connected to this customer profile. | [optional] +**connectedApplicationsIds** | **List<Integer>** | A list of the IDs of the Applications that are connected to this customer profile. | [optional] +**connectedAudiences** | **List<Integer>** | A list of the IDs of the audiences that are connected to this customer profile. | [optional] diff --git a/docs/AudienceMembership.md b/docs/AudienceMembership.md index c4d1aa78..11333372 100644 --- a/docs/AudienceMembership.md +++ b/docs/AudienceMembership.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | The ID of the audience belonging to this entity. | +**id** | **Integer** | The ID of the audience belonging to this entity. | **name** | **String** | The Name of the audience belonging to this entity. | diff --git a/docs/AwardGiveawayEffectProps.md b/docs/AwardGiveawayEffectProps.md index 9b68d10c..75585efd 100644 --- a/docs/AwardGiveawayEffectProps.md +++ b/docs/AwardGiveawayEffectProps.md @@ -7,10 +7,10 @@ The properties specific to the \"awardGiveaway\" effect. This effect contains in Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**poolId** | **Long** | The ID of the giveaways pool the code was taken from. | +**poolId** | **Integer** | The ID of the giveaways pool the code was taken from. | **poolName** | **String** | The name of the giveaways pool the code was taken from. | **recipientIntegrationId** | **String** | The integration ID of the profile that was awarded the giveaway. | -**giveawayId** | **Long** | The internal ID for the giveaway that was awarded. | +**giveawayId** | **Integer** | The internal ID for the giveaway that was awarded. | **code** | **String** | The giveaway code that was awarded. | diff --git a/docs/BaseCampaign.md b/docs/BaseCampaign.md index cb1bf76c..bf4ec0da 100644 --- a/docs/BaseCampaign.md +++ b/docs/BaseCampaign.md @@ -12,15 +12,15 @@ Name | Type | Description | Notes **endTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become inactive. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign. | [optional] **state** | [**StateEnum**](#StateEnum) | A disabled or archived campaign is not evaluated for rules or coupons. | -**activeRulesetId** | **Long** | [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. | [optional] +**activeRulesetId** | **Integer** | [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. | [optional] **tags** | **List<String>** | A list of tags for the campaign. | **features** | [**List<FeaturesEnum>**](#List<FeaturesEnum>) | The features enabled in this campaign. | **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. | -**campaignGroups** | **List<Long>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. | [optional] +**campaignGroups** | **List<Integer>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | [optional] -**linkedStoreIds** | **List<Long>** | A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] +**linkedStoreIds** | **List<Integer>** | A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] diff --git a/docs/BaseLoyaltyProgram.md b/docs/BaseLoyaltyProgram.md index 3ad90ab1..117e9fc8 100644 --- a/docs/BaseLoyaltyProgram.md +++ b/docs/BaseLoyaltyProgram.md @@ -8,11 +8,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **title** | **String** | The display title for the Loyalty Program. | [optional] **description** | **String** | Description of our Loyalty Program. | [optional] -**subscribedApplications** | **List<Long>** | A list containing the IDs of all applications that are subscribed to this Loyalty Program. | [optional] +**subscribedApplications** | **List<Integer>** | A list containing the IDs of all applications that are subscribed to this Loyalty Program. | [optional] **defaultValidity** | **String** | The default duration after which new loyalty points should expire. Can be 'unlimited' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. | [optional] **defaultPending** | **String** | The default duration of the pending time after which points should be valid. Can be 'immediate' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. | [optional] **allowSubledger** | **Boolean** | Indicates if this program supports subledgers inside the program. | [optional] -**usersPerCardLimit** | **Long** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional] +**usersPerCardLimit** | **Integer** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional] **sandbox** | **Boolean** | Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type. | [optional] **programJoinPolicy** | [**ProgramJoinPolicyEnum**](#ProgramJoinPolicyEnum) | The policy that defines when the customer joins the loyalty program. - `not_join`: The customer does not join the loyalty program but can still earn and spend loyalty points. **Note**: The customer does not have a program join date. - `points_activated`: The customer joins the loyalty program only when their earned loyalty points become active for the first time. - `points_earned`: The customer joins the loyalty program when they earn loyalty points for the first time. | [optional] **tiersExpirationPolicy** | [**TiersExpirationPolicyEnum**](#TiersExpirationPolicyEnum) | The policy that defines how tier expiration, used to reevaluate the customer's current tier, is determined. - `tier_start_date`: The tier expiration is relative to when the customer joined the current tier. - `program_join_date`: The tier expiration is relative to when the customer joined the loyalty program. - `customer_attribute`: The tier expiration is determined by a custom customer attribute. - `absolute_expiration`: The tier is reevaluated at the start of each tier cycle. For this policy, it is required to provide a `tierCycleStartDate`. | [optional] diff --git a/docs/BaseNotification.md b/docs/BaseNotification.md index 47d86cd7..bae205ec 100644 --- a/docs/BaseNotification.md +++ b/docs/BaseNotification.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **policy** | [**Object**](.md) | Indicates which notification properties to apply. | **enabled** | **Boolean** | Indicates whether the notification is activated. | [optional] **webhook** | [**BaseNotificationWebhook**](BaseNotificationWebhook.md) | | -**id** | **Long** | Unique ID for this entity. | +**id** | **Integer** | Unique ID for this entity. | **type** | [**TypeEnum**](#TypeEnum) | The notification type. | @@ -21,6 +21,8 @@ Name | Value CAMPAIGN | "campaign" LOYALTY_ADDED_DEDUCTED_POINTS | "loyalty_added_deducted_points" CARD_ADDED_DEDUCTED_POINTS | "card_added_deducted_points" +LOYALTY_ADDED_DEDUCTED_POINTS_BALANCES | "loyalty_added_deducted_points_balances" +LOYALTY_CARD_ADDED_DEDUCTED_POINTS_BALANCES | "loyalty_card_added_deducted_points_balances" COUPON | "coupon" EXPIRING_COUPONS | "expiring_coupons" EXPIRING_POINTS | "expiring_points" diff --git a/docs/BaseNotificationWebhook.md b/docs/BaseNotificationWebhook.md index 2328c9fe..ad4943bd 100644 --- a/docs/BaseNotificationWebhook.md +++ b/docs/BaseNotificationWebhook.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | **url** | **String** | API URL for the given webhook-based notification. | diff --git a/docs/BaseSamlConnection.md b/docs/BaseSamlConnection.md index 292970d1..6f133dda 100644 --- a/docs/BaseSamlConnection.md +++ b/docs/BaseSamlConnection.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**accountId** | **Long** | The ID of the account that owns this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | **name** | **String** | ID of the SAML service. | **enabled** | **Boolean** | Determines if this SAML connection active. | **issuer** | **String** | Identity Provider Entity ID. | diff --git a/docs/Binding.md b/docs/Binding.md index 013c57ca..688dfea6 100644 --- a/docs/Binding.md +++ b/docs/Binding.md @@ -10,6 +10,9 @@ Name | Type | Description | Notes **type** | **String** | The kind of binding. Possible values are: - `bundle` - `cartItemFilter` - `subledgerBalance` - `templateParameter` | [optional] **expression** | **List<Object>** | A Talang expression that will be evaluated and its result attached to the name of the binding. | **valueType** | **String** | Can be one of the following: - `string` - `number` - `boolean` | [optional] +**minValue** | [**BigDecimal**](BigDecimal.md) | The minimum value allowed for this placeholder. | [optional] +**maxValue** | [**BigDecimal**](BigDecimal.md) | The maximum value allowed for this placeholder. | [optional] +**attributeId** | **Integer** | Id of the attribute attached to the placeholder. | [optional] diff --git a/docs/BulkApplicationNotification.md b/docs/BulkApplicationNotification.md index 79e14da5..b016460d 100644 --- a/docs/BulkApplicationNotification.md +++ b/docs/BulkApplicationNotification.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | [**List<ApplicationNotification>**](ApplicationNotification.md) | | diff --git a/docs/BulkCampaignNotification.md b/docs/BulkCampaignNotification.md index b87c67ff..41e12e06 100644 --- a/docs/BulkCampaignNotification.md +++ b/docs/BulkCampaignNotification.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | [**List<CampaignNotification>**](CampaignNotification.md) | | diff --git a/docs/BulkOperationOnCampaigns.md b/docs/BulkOperationOnCampaigns.md index fa94453b..7eb0ecb7 100644 --- a/docs/BulkOperationOnCampaigns.md +++ b/docs/BulkOperationOnCampaigns.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **operation** | [**OperationEnum**](#OperationEnum) | The operation to perform on the specified campaign IDs. | -**campaignIds** | **List<Long>** | The list of campaign IDs on which the operation will be performed. | +**campaignIds** | **List<Integer>** | The list of campaign IDs on which the operation will be performed. | **activateAt** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the revisions are finalized after the `activate_revision` operation. The current time is used when left blank. **Note:** It must be an RFC3339 timestamp string. | [optional] diff --git a/docs/Campaign.md b/docs/Campaign.md index b4db452e..992e00ba 100644 --- a/docs/Campaign.md +++ b/docs/Campaign.md @@ -6,55 +6,55 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Unique ID for this entity. | +**id** | **Integer** | Unique ID for this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The exact moment this entity was created. | -**applicationId** | **Long** | The ID of the Application that owns this entity. | -**userId** | **Long** | The ID of the user associated with this entity. | +**applicationId** | **Integer** | The ID of the Application that owns this entity. | +**userId** | **Integer** | The ID of the user associated with this entity. | **name** | **String** | A user-facing name for this campaign. | **description** | **String** | A detailed description of the campaign. | **startTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become active. | [optional] **endTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become inactive. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign. | [optional] **state** | [**StateEnum**](#StateEnum) | A disabled or archived campaign is not evaluated for rules or coupons. | -**activeRulesetId** | **Long** | [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. | [optional] +**activeRulesetId** | **Integer** | [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. | [optional] **tags** | **List<String>** | A list of tags for the campaign. | **features** | [**List<FeaturesEnum>**](#List<FeaturesEnum>) | The features enabled in this campaign. | **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. | -**campaignGroups** | **List<Long>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. | [optional] +**campaignGroups** | **List<Integer>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | -**linkedStoreIds** | **List<Long>** | A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] +**linkedStoreIds** | **List<Integer>** | A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] **budgets** | [**List<CampaignBudget>**](CampaignBudget.md) | A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined. | [optional] -**couponRedemptionCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. | [optional] -**referralRedemptionCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. | [optional] +**couponRedemptionCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. | [optional] +**referralRedemptionCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. | [optional] **discountCount** | [**BigDecimal**](BigDecimal.md) | This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign. | [optional] -**discountEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. | [optional] -**couponCreationCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. | [optional] -**customEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. | [optional] -**referralCreationCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. | [optional] -**addFreeItemEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. | [optional] -**awardedGiveawaysCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. | [optional] +**discountEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. | [optional] +**couponCreationCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. | [optional] +**customEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. | [optional] +**referralCreationCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. | [optional] +**addFreeItemEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. | [optional] +**awardedGiveawaysCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. | [optional] **createdLoyaltyPointsCount** | [**BigDecimal**](BigDecimal.md) | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign. | [optional] -**createdLoyaltyPointsEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. | [optional] +**createdLoyaltyPointsEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. | [optional] **redeemedLoyaltyPointsCount** | [**BigDecimal**](BigDecimal.md) | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign. | [optional] -**redeemedLoyaltyPointsEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. | [optional] -**callApiEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. | [optional] -**reservecouponEffectCount** | **Long** | This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. | [optional] +**redeemedLoyaltyPointsEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. | [optional] +**callApiEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. | [optional] +**reservecouponEffectCount** | **Integer** | This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. | [optional] **lastActivity** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent event received by this campaign. | [optional] **updated** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates. | [optional] **createdBy** | **String** | Name of the user who created this campaign if available. | [optional] **updatedBy** | **String** | Name of the user who last updated this campaign if available. | [optional] -**templateId** | **Long** | The ID of the Campaign Template this Campaign was created from. | [optional] +**templateId** | **Integer** | The ID of the Campaign Template this Campaign was created from. | [optional] **frontendState** | [**FrontendStateEnum**](#FrontendStateEnum) | The campaign state displayed in the Campaign Manager. | **storesImported** | **Boolean** | Indicates whether the linked stores were imported via a CSV file. | -**valueMapsIds** | **List<Long>** | A list of value map IDs for the campaign. | [optional] +**valueMapsIds** | **List<Integer>** | A list of value map IDs for the campaign. | [optional] **revisionFrontendState** | [**RevisionFrontendStateEnum**](#RevisionFrontendStateEnum) | The campaign revision state displayed in the Campaign Manager. | [optional] -**activeRevisionId** | **Long** | ID of the revision that was last activated on this campaign. | [optional] -**activeRevisionVersionId** | **Long** | ID of the revision version that is active on the campaign. | [optional] -**version** | **Long** | Incrementing number representing how many revisions have been activated on this campaign, starts from 0 for a new campaign. | [optional] -**currentRevisionId** | **Long** | ID of the revision currently being modified for the campaign. | [optional] -**currentRevisionVersionId** | **Long** | ID of the latest version applied on the current revision. | [optional] +**activeRevisionId** | **Integer** | ID of the revision that was last activated on this campaign. | [optional] +**activeRevisionVersionId** | **Integer** | ID of the revision version that is active on the campaign. | [optional] +**version** | **Integer** | Incrementing number representing how many revisions have been activated on this campaign, starts from 0 for a new campaign. | [optional] +**currentRevisionId** | **Integer** | ID of the revision currently being modified for the campaign. | [optional] +**currentRevisionVersionId** | **Integer** | ID of the latest version applied on the current revision. | [optional] **stageRevision** | **Boolean** | Flag for determining whether we use current revision when sending requests with staging API key. | [optional] diff --git a/docs/CampaignActivationRequest.md b/docs/CampaignActivationRequest.md index 48874ee8..0eac1a96 100644 --- a/docs/CampaignActivationRequest.md +++ b/docs/CampaignActivationRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**userIds** | **List<Long>** | The list of IDs of the users who will receive the activation request. | +**userIds** | **List<Integer>** | The list of IDs of the users who will receive the activation request. | diff --git a/docs/CampaignAnalytics.md b/docs/CampaignAnalytics.md index a411fe50..6db38b31 100644 --- a/docs/CampaignAnalytics.md +++ b/docs/CampaignAnalytics.md @@ -15,18 +15,18 @@ Name | Type | Description | Notes **totalCampaignDiscountCosts** | [**BigDecimal**](BigDecimal.md) | Amount of cost caused by discounts given in the campaign since it began. | **campaignRefundedDiscounts** | [**BigDecimal**](BigDecimal.md) | Amount of discounts rolledback due to refund in the campaign. | **totalCampaignRefundedDiscounts** | [**BigDecimal**](BigDecimal.md) | Amount of discounts rolledback due to refund in the campaign since it began. | -**campaignFreeItems** | **Long** | Amount of free items given in the campaign. | -**totalCampaignFreeItems** | **Long** | Amount of free items given in the campaign since it began. | -**couponRedemptions** | **Long** | Number of coupon redemptions in the campaign. | -**totalCouponRedemptions** | **Long** | Number of coupon redemptions in the campaign since it began. | -**couponRolledbackRedemptions** | **Long** | Number of coupon redemptions that have been rolled back (due to canceling closed session) in the campaign. | -**totalCouponRolledbackRedemptions** | **Long** | Number of coupon redemptions that have been rolled back (due to canceling closed session) in the campaign since it began. | -**referralRedemptions** | **Long** | Number of referral redemptions in the campaign. | -**totalReferralRedemptions** | **Long** | Number of referral redemptions in the campaign since it began. | -**couponsCreated** | **Long** | Number of coupons created in the campaign by the rule engine. | -**totalCouponsCreated** | **Long** | Number of coupons created in the campaign by the rule engine since it began. | -**referralsCreated** | **Long** | Number of referrals created in the campaign by the rule engine. | -**totalReferralsCreated** | **Long** | Number of referrals created in the campaign by the rule engine since it began. | +**campaignFreeItems** | **Integer** | Amount of free items given in the campaign. | +**totalCampaignFreeItems** | **Integer** | Amount of free items given in the campaign since it began. | +**couponRedemptions** | **Integer** | Number of coupon redemptions in the campaign. | +**totalCouponRedemptions** | **Integer** | Number of coupon redemptions in the campaign since it began. | +**couponRolledbackRedemptions** | **Integer** | Number of coupon redemptions that have been rolled back (due to canceling closed session) in the campaign. | +**totalCouponRolledbackRedemptions** | **Integer** | Number of coupon redemptions that have been rolled back (due to canceling closed session) in the campaign since it began. | +**referralRedemptions** | **Integer** | Number of referral redemptions in the campaign. | +**totalReferralRedemptions** | **Integer** | Number of referral redemptions in the campaign since it began. | +**couponsCreated** | **Integer** | Number of coupons created in the campaign by the rule engine. | +**totalCouponsCreated** | **Integer** | Number of coupons created in the campaign by the rule engine since it began. | +**referralsCreated** | **Integer** | Number of referrals created in the campaign by the rule engine. | +**totalReferralsCreated** | **Integer** | Number of referrals created in the campaign by the rule engine since it began. | **addedLoyaltyPoints** | [**BigDecimal**](BigDecimal.md) | Number of added loyalty points in the campaign in a specific interval. | **totalAddedLoyaltyPoints** | [**BigDecimal**](BigDecimal.md) | Number of added loyalty points in the campaign since it began. | **deductedLoyaltyPoints** | [**BigDecimal**](BigDecimal.md) | Number of deducted loyalty points in the campaign in a specific interval. | diff --git a/docs/CampaignCollection.md b/docs/CampaignCollection.md index 3ba437f1..9c817f6a 100644 --- a/docs/CampaignCollection.md +++ b/docs/CampaignCollection.md @@ -6,16 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Long** | The ID of the account that owns this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | **description** | **String** | A short description of the purpose of this collection. | [optional] **name** | **String** | The name of this collection. | -**modifiedBy** | **Long** | ID of the user who last updated this effect if available. | [optional] -**createdBy** | **Long** | ID of the user who created this effect. | -**applicationId** | **Long** | The ID of the Application that owns this entity. | [optional] -**campaignId** | **Long** | The ID of the campaign that owns this entity. | [optional] +**modifiedBy** | **Integer** | ID of the user who last updated this effect if available. | [optional] +**createdBy** | **Integer** | ID of the user who created this effect. | +**applicationId** | **Integer** | The ID of the Application that owns this entity. | [optional] +**campaignId** | **Integer** | The ID of the campaign that owns this entity. | [optional] **payload** | **List<String>** | The content of the collection. | [optional] diff --git a/docs/CampaignCollectionWithoutPayload.md b/docs/CampaignCollectionWithoutPayload.md index eb6aa0a8..91e0318e 100644 --- a/docs/CampaignCollectionWithoutPayload.md +++ b/docs/CampaignCollectionWithoutPayload.md @@ -6,16 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Long** | The ID of the account that owns this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | **description** | **String** | A short description of the purpose of this collection. | [optional] **name** | **String** | The name of this collection. | -**modifiedBy** | **Long** | ID of the user who last updated this effect if available. | [optional] -**createdBy** | **Long** | ID of the user who created this effect. | -**applicationId** | **Long** | The ID of the Application that owns this entity. | [optional] -**campaignId** | **Long** | The ID of the campaign that owns this entity. | [optional] +**modifiedBy** | **Integer** | ID of the user who last updated this effect if available. | [optional] +**createdBy** | **Integer** | ID of the user who created this effect. | +**applicationId** | **Integer** | The ID of the Application that owns this entity. | [optional] +**campaignId** | **Integer** | The ID of the campaign that owns this entity. | [optional] diff --git a/docs/CampaignCopy.md b/docs/CampaignCopy.md index 49e0267a..9970c410 100644 --- a/docs/CampaignCopy.md +++ b/docs/CampaignCopy.md @@ -7,12 +7,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Name of the copied campaign (Defaults to \"Copy of original campaign name\"). | [optional] -**applicationIds** | **List<Long>** | Application IDs of the applications to which a campaign should be copied to. | +**applicationIds** | **List<Integer>** | Application IDs of the applications to which a campaign should be copied to. | **description** | **String** | A detailed description of the campaign. | [optional] **startTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become active. | [optional] **endTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become inactive. | [optional] **tags** | **List<String>** | A list of tags for the campaign. | [optional] -**evaluationGroupId** | **Long** | The ID of the campaign evaluation group the campaign belongs to. | [optional] +**evaluationGroupId** | **Integer** | The ID of the campaign evaluation group the campaign belongs to. | [optional] diff --git a/docs/CampaignDeactivationRequest.md b/docs/CampaignDeactivationRequest.md new file mode 100644 index 00000000..8b466b22 --- /dev/null +++ b/docs/CampaignDeactivationRequest.md @@ -0,0 +1,12 @@ + + +# CampaignDeactivationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**userIds** | **List<Integer>** | The list of IDs of the users receiving the deactivation request emails. | + + + diff --git a/docs/CampaignDetail.md b/docs/CampaignDetail.md index 9dc7c68b..4364170a 100644 --- a/docs/CampaignDetail.md +++ b/docs/CampaignDetail.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignId** | **Long** | The ID of the campaign that references the application cart item filter. | [optional] +**campaignId** | **Integer** | The ID of the campaign that references the application cart item filter. | [optional] **campaignName** | **String** | A user-facing name for this campaign. | [optional] diff --git a/docs/CampaignEntity.md b/docs/CampaignEntity.md index 5d848d21..877cfe4e 100644 --- a/docs/CampaignEntity.md +++ b/docs/CampaignEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignId** | **Long** | The ID of the campaign that owns this entity. | +**campaignId** | **Integer** | The ID of the campaign that owns this entity. | diff --git a/docs/CampaignEvaluationGroup.md b/docs/CampaignEvaluationGroup.md index a7dad089..0a04730e 100644 --- a/docs/CampaignEvaluationGroup.md +++ b/docs/CampaignEvaluationGroup.md @@ -6,14 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applicationId** | **Long** | The ID of the Application that owns this entity. | +**applicationId** | **Integer** | The ID of the Application that owns this entity. | **name** | **String** | The name of the campaign evaluation group. | -**parentId** | **Long** | The ID of the parent group that contains the campaign evaluation group. | +**parentId** | **Integer** | The ID of the parent group that contains the campaign evaluation group. | **description** | **String** | A description of the campaign evaluation group. | [optional] **evaluationMode** | [**EvaluationModeEnum**](#EvaluationModeEnum) | The mode by which campaigns in the campaign evaluation group are evaluated. | **evaluationScope** | [**EvaluationScopeEnum**](#EvaluationScopeEnum) | The evaluation scope of the campaign evaluation group. | **locked** | **Boolean** | An indicator of whether the campaign evaluation group is locked for modification. | -**id** | **Long** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | +**id** | **Integer** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | diff --git a/docs/CampaignEvaluationPosition.md b/docs/CampaignEvaluationPosition.md index 5f2fb0be..961997e1 100644 --- a/docs/CampaignEvaluationPosition.md +++ b/docs/CampaignEvaluationPosition.md @@ -7,9 +7,9 @@ The campaign position within the evaluation tree. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**groupId** | **Long** | The ID of the campaign evaluation group the campaign belongs to. | +**groupId** | **Integer** | The ID of the campaign evaluation group the campaign belongs to. | **groupName** | **String** | The name of the campaign evaluation group the campaign belongs to. | -**position** | **Long** | The position of the campaign node in its parent group. | +**position** | **Integer** | The position of the campaign node in its parent group. | diff --git a/docs/CampaignEvaluationTreeChangedNotification.md b/docs/CampaignEvaluationTreeChangedNotification.md index 5713d5d1..3821ce17 100644 --- a/docs/CampaignEvaluationTreeChangedNotification.md +++ b/docs/CampaignEvaluationTreeChangedNotification.md @@ -7,7 +7,7 @@ Notification about an Application whose campaign evaluation tree changed. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applicationId** | **Long** | The ID of the Application whose campaign evaluation tree changed. | +**applicationId** | **Integer** | The ID of the Application whose campaign evaluation tree changed. | **oldEvaluationTree** | [**CampaignSet**](CampaignSet.md) | | [optional] **evaluationTree** | [**CampaignSet**](CampaignSet.md) | | diff --git a/docs/CampaignGroup.md b/docs/CampaignGroup.md index 49f7bae8..f5fff0f6 100644 --- a/docs/CampaignGroup.md +++ b/docs/CampaignGroup.md @@ -6,14 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | -**accountId** | **Long** | The ID of the account that owns this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | **name** | **String** | The name of the campaign access group. | **description** | **String** | A longer description of the campaign access group. | [optional] -**subscribedApplicationsIds** | **List<Long>** | A list of IDs of the Applications that this campaign access group is enabled for. | [optional] -**campaignIds** | **List<Long>** | A list of IDs of the campaigns that are part of the campaign access group. | [optional] +**subscribedApplicationsIds** | **List<Integer>** | A list of IDs of the Applications that this campaign access group is enabled for. | [optional] +**campaignIds** | **List<Integer>** | A list of IDs of the campaigns that are part of the campaign access group. | [optional] diff --git a/docs/CampaignGroupEntity.md b/docs/CampaignGroupEntity.md index 9ea91d60..4187641b 100644 --- a/docs/CampaignGroupEntity.md +++ b/docs/CampaignGroupEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignGroups** | **List<Long>** | The IDs of the campaign groups that own this entity. | [optional] +**campaignGroups** | **List<Integer>** | The IDs of the campaign groups that own this entity. | [optional] diff --git a/docs/CampaignNotificationPolicy.md b/docs/CampaignNotificationPolicy.md index 6b8c0fad..111c2979 100644 --- a/docs/CampaignNotificationPolicy.md +++ b/docs/CampaignNotificationPolicy.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Notification name. | **batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] -**batchSize** | **Long** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] +**batchSize** | **Integer** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] diff --git a/docs/CampaignSet.md b/docs/CampaignSet.md index 24275c4d..ff6ccdaf 100644 --- a/docs/CampaignSet.md +++ b/docs/CampaignSet.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applicationId** | **Long** | The ID of the Application that owns this entity. | -**id** | **Long** | Internal ID of this entity. | -**version** | **Long** | Version of the campaign set. | +**applicationId** | **Integer** | The ID of the Application that owns this entity. | +**id** | **Integer** | The internal ID of this entity. | +**version** | **Integer** | Version of the campaign set. | **set** | [**CampaignSetBranchNode**](CampaignSetBranchNode.md) | | **updatedBy** | **String** | Name of the user who last updated this campaign set, if available. | [optional] diff --git a/docs/CampaignSetBranchNode.md b/docs/CampaignSetBranchNode.md index 00aad37e..5773bc22 100644 --- a/docs/CampaignSetBranchNode.md +++ b/docs/CampaignSetBranchNode.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **name** | **String** | Name of the set. | **operator** | [**OperatorEnum**](#OperatorEnum) | An indicator of how the set operates on its elements. | **elements** | [**List<CampaignSetNode>**](CampaignSetNode.md) | Child elements of this set. | -**groupId** | **Long** | The ID of the campaign set. | +**groupId** | **Integer** | The ID of the campaign set. | **locked** | **Boolean** | An indicator of whether the campaign set is locked for modification. | **description** | **String** | A description of the campaign set. | [optional] **evaluationMode** | [**EvaluationModeEnum**](#EvaluationModeEnum) | The mode by which campaigns in the campaign evaluation group are evaluated. | diff --git a/docs/CampaignSetLeafNode.md b/docs/CampaignSetLeafNode.md index 27bef4ae..4676b637 100644 --- a/docs/CampaignSetLeafNode.md +++ b/docs/CampaignSetLeafNode.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | [**TypeEnum**](#TypeEnum) | Indicates the node type. | -**campaignId** | **Long** | ID of the campaign | +**campaignId** | **Integer** | ID of the campaign | diff --git a/docs/CampaignStoreBudget.md b/docs/CampaignStoreBudget.md index a7f3bd54..283266bd 100644 --- a/docs/CampaignStoreBudget.md +++ b/docs/CampaignStoreBudget.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**campaignId** | **Long** | The ID of the campaign that owns this entity. | -**storeId** | **Long** | The ID of the store. | +**campaignId** | **Integer** | The ID of the campaign that owns this entity. | +**storeId** | **Integer** | The ID of the store. | **limits** | [**List<CampaignStoreBudgetLimitConfig>**](CampaignStoreBudgetLimitConfig.md) | The set of budget limits for stores linked to the campaign. | diff --git a/docs/CampaignTemplate.md b/docs/CampaignTemplate.md index 6d3b0b7f..cba5c9ba 100644 --- a/docs/CampaignTemplate.md +++ b/docs/CampaignTemplate.md @@ -6,17 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Long** | The ID of the account that owns this entity. | -**userId** | **Long** | The ID of the user associated with this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | +**userId** | **Integer** | The ID of the user associated with this entity. | **name** | **String** | The campaign template name. | **description** | **String** | Customer-facing text that explains the objective of the template. | **instructions** | **String** | Customer-facing text that explains how to use the template. For example, you can use this property to explain the available attributes of this template, and how they can be modified when a user uses this template to create a new campaign. | **campaignAttributes** | [**Object**](.md) | The campaign attributes that campaigns created from this template will have by default. | [optional] **couponAttributes** | [**Object**](.md) | The campaign attributes that coupons created from this template will have by default. | [optional] **state** | [**StateEnum**](#StateEnum) | Only campaign templates in 'available' state may be used to create campaigns. | -**activeRulesetId** | **Long** | The ID of the ruleset this campaign template will use. | [optional] +**activeRulesetId** | **Integer** | The ID of the ruleset this campaign template will use. | [optional] **tags** | **List<String>** | A list of tags for the campaign template. | [optional] **features** | [**List<FeaturesEnum>**](#List<FeaturesEnum>) | A list of features for the campaign template. | [optional] **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] @@ -24,13 +24,13 @@ Name | Type | Description | Notes **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**List<TemplateLimitConfig>**](TemplateLimitConfig.md) | The set of limits that operate for this campaign template. | [optional] **templateParams** | [**List<CampaignTemplateParams>**](CampaignTemplateParams.md) | Fields which can be used to replace values in a rule. | [optional] -**applicationsIds** | **List<Long>** | A list of IDs of the Applications that are subscribed to this campaign template. | +**applicationsIds** | **List<Integer>** | A list of IDs of the Applications that are subscribed to this campaign template. | **campaignCollections** | [**List<CampaignTemplateCollection>**](CampaignTemplateCollection.md) | The campaign collections from the blueprint campaign for the template. | [optional] -**defaultCampaignGroupId** | **Long** | The default campaign group ID. | [optional] +**defaultCampaignGroupId** | **Integer** | The default campaign group ID. | [optional] **campaignType** | [**CampaignTypeEnum**](#CampaignTypeEnum) | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | **updated** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent update to the campaign template or any of its elements. | [optional] **updatedBy** | **String** | Name of the user who last updated this campaign template, if available. | [optional] -**validApplicationIds** | **List<Long>** | The IDs of the Applications that are related to this entity. | +**validApplicationIds** | **List<Integer>** | The IDs of the Applications that are related to this entity. | **isUserFavorite** | **Boolean** | A flag indicating whether the user marked the template as a favorite. | [optional] diff --git a/docs/CampaignTemplateCouponReservationSettings.md b/docs/CampaignTemplateCouponReservationSettings.md index ff0d40f4..d04b8952 100644 --- a/docs/CampaignTemplateCouponReservationSettings.md +++ b/docs/CampaignTemplateCouponReservationSettings.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**reservationLimit** | **Long** | The number of reservations that can be made with this coupon code. | [optional] +**reservationLimit** | **Integer** | The number of reservations that can be made with this coupon code. | [optional] **isReservationMandatory** | **Boolean** | An indication of whether the code can be redeemed only if it has been reserved first. | [optional] diff --git a/docs/CampaignTemplateParams.md b/docs/CampaignTemplateParams.md index 76dfb911..d78a9cb2 100644 --- a/docs/CampaignTemplateParams.md +++ b/docs/CampaignTemplateParams.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **name** | **String** | Name of the campaign template parameter. | **type** | [**TypeEnum**](#TypeEnum) | Defines the type of parameter value. | **description** | **String** | Explains the meaning of this template parameter and the placeholder value that will define it. It is used on campaign creation from this template. | -**attributeId** | **Long** | ID of the corresponding attribute. | [optional] +**attributeId** | **Integer** | ID of the corresponding attribute. | [optional] diff --git a/docs/CampaignVersions.md b/docs/CampaignVersions.md index ebbf96c5..cb06e69a 100644 --- a/docs/CampaignVersions.md +++ b/docs/CampaignVersions.md @@ -7,11 +7,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **revisionFrontendState** | [**RevisionFrontendStateEnum**](#RevisionFrontendStateEnum) | The campaign revision state displayed in the Campaign Manager. | [optional] -**activeRevisionId** | **Long** | ID of the revision that was last activated on this campaign. | [optional] -**activeRevisionVersionId** | **Long** | ID of the revision version that is active on the campaign. | [optional] -**version** | **Long** | Incrementing number representing how many revisions have been activated on this campaign, starts from 0 for a new campaign. | [optional] -**currentRevisionId** | **Long** | ID of the revision currently being modified for the campaign. | [optional] -**currentRevisionVersionId** | **Long** | ID of the latest version applied on the current revision. | [optional] +**activeRevisionId** | **Integer** | ID of the revision that was last activated on this campaign. | [optional] +**activeRevisionVersionId** | **Integer** | ID of the revision version that is active on the campaign. | [optional] +**version** | **Integer** | Incrementing number representing how many revisions have been activated on this campaign, starts from 0 for a new campaign. | [optional] +**currentRevisionId** | **Integer** | ID of the revision currently being modified for the campaign. | [optional] +**currentRevisionVersionId** | **Integer** | ID of the latest version applied on the current revision. | [optional] **stageRevision** | **Boolean** | Flag for determining whether we use current revision when sending requests with staging API key. | [optional] diff --git a/docs/CardAddedDeductedPointsBalancesNotificationPolicy.md b/docs/CardAddedDeductedPointsBalancesNotificationPolicy.md new file mode 100644 index 00000000..26c3c7f5 --- /dev/null +++ b/docs/CardAddedDeductedPointsBalancesNotificationPolicy.md @@ -0,0 +1,24 @@ + + +# CardAddedDeductedPointsBalancesNotificationPolicy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | Notification name. | +**scopes** | [**List<ScopesEnum>**](#List<ScopesEnum>) | | + + + +## Enum: List<ScopesEnum> + +Name | Value +---- | ----- +ALL | "all" +CAMPAIGN_MANAGER | "campaign_manager" +MANAGEMENT_API | "management_api" +RULE_ENGINE | "rule_engine" + + + diff --git a/docs/CardExpiringPointsNotificationPolicy.md b/docs/CardExpiringPointsNotificationPolicy.md index 4cf701b7..c3fb6db4 100644 --- a/docs/CardExpiringPointsNotificationPolicy.md +++ b/docs/CardExpiringPointsNotificationPolicy.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **name** | **String** | Notification name. | **triggers** | [**List<CardExpiringPointsNotificationTrigger>**](CardExpiringPointsNotificationTrigger.md) | | **batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] -**batchSize** | **Long** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] +**batchSize** | **Integer** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] diff --git a/docs/CardExpiringPointsNotificationTrigger.md b/docs/CardExpiringPointsNotificationTrigger.md index 0e73922c..27e5bcf3 100644 --- a/docs/CardExpiringPointsNotificationTrigger.md +++ b/docs/CardExpiringPointsNotificationTrigger.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**amount** | **Long** | The amount of period. | +**amount** | **Integer** | The amount of period. | **period** | [**PeriodEnum**](#PeriodEnum) | Notification period indicated by a letter; \"w\" means week, \"d\" means day. | diff --git a/docs/CardLedgerPointsEntryIntegrationAPI.md b/docs/CardLedgerPointsEntryIntegrationAPI.md index 1afef1ff..a91e1fe5 100644 --- a/docs/CardLedgerPointsEntryIntegrationAPI.md +++ b/docs/CardLedgerPointsEntryIntegrationAPI.md @@ -7,9 +7,9 @@ Loyalty card points with start and expiry dates. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | ID of the transaction that adds loyalty points. | +**id** | **Integer** | ID of the transaction that adds loyalty points. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time the loyalty card points were added. | -**programId** | **Long** | ID of the loyalty program. | +**programId** | **Integer** | ID of the loyalty program. | **customerProfileID** | **String** | Integration ID of the customer profile linked to the card. | [optional] **customerSessionId** | **String** | ID of the customer session where points were added. | [optional] **name** | **String** | Name or reason of the transaction that adds loyalty points. | diff --git a/docs/CardLedgerTransactionLogEntry.md b/docs/CardLedgerTransactionLogEntry.md index 464d557a..0d4dc900 100644 --- a/docs/CardLedgerTransactionLogEntry.md +++ b/docs/CardLedgerTransactionLogEntry.md @@ -8,10 +8,10 @@ Log entry for a given loyalty card transaction. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time the loyalty card transaction occurred. | -**programId** | **Long** | ID of the loyalty program. | +**programId** | **Integer** | ID of the loyalty program. | **cardIdentifier** | **String** | The alphanumeric identifier of the loyalty card. | -**applicationId** | **Long** | The ID of the Application that owns this entity. | [optional] -**sessionId** | **Long** | The **internal** ID of the session. | [optional] +**applicationId** | **Integer** | The ID of the Application that owns this entity. | [optional] +**sessionId** | **Integer** | The **internal** ID of the session. | [optional] **customerSessionId** | **String** | ID of the customer session where the transaction occurred. | [optional] **type** | [**TypeEnum**](#TypeEnum) | Type of transaction. Possible values: - `addition`: Signifies added points. - `subtraction`: Signifies deducted points. | **name** | **String** | Name or reason of the loyalty ledger transaction. | @@ -19,7 +19,7 @@ Name | Type | Description | Notes **expiryDate** | **String** | Date when points expire. Possible values are: - `unlimited`: Points have no expiration date. - `timestamp value`: Points become active from the given date. | **subledgerId** | **String** | ID of the subledger. | **amount** | [**BigDecimal**](BigDecimal.md) | Amount of loyalty points added or deducted in the transaction. | -**id** | **Long** | ID of the loyalty ledger entry. | +**id** | **Integer** | ID of the loyalty ledger entry. | diff --git a/docs/CardLedgerTransactionLogEntryIntegrationAPI.md b/docs/CardLedgerTransactionLogEntryIntegrationAPI.md index 5314c9d9..b707d2c7 100644 --- a/docs/CardLedgerTransactionLogEntryIntegrationAPI.md +++ b/docs/CardLedgerTransactionLogEntryIntegrationAPI.md @@ -8,7 +8,7 @@ Log entry for a given loyalty card transaction. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time the loyalty card transaction occurred. | -**programId** | **Long** | ID of the loyalty program. | +**programId** | **Integer** | ID of the loyalty program. | **cardIdentifier** | **String** | The alphanumeric identifier of the loyalty card. | **customerSessionId** | **String** | ID of the customer session where the transaction occurred. | [optional] **type** | [**TypeEnum**](#TypeEnum) | Type of transaction. Possible values: - `addition`: Signifies added points. - `subtraction`: Signifies deducted points. | @@ -17,8 +17,8 @@ Name | Type | Description | Notes **expiryDate** | **String** | Date when points expire. Possible values are: - `unlimited`: Points have no expiration date. - `timestamp value`: Points expire on the given date. | **subledgerId** | **String** | ID of the subledger. | **amount** | [**BigDecimal**](BigDecimal.md) | Amount of loyalty points added or deducted in the transaction. | -**id** | **Long** | ID of the loyalty ledger transaction. | -**rulesetId** | **Long** | The ID of the ruleset containing the rule that triggered this effect. | [optional] +**id** | **Integer** | ID of the loyalty ledger transaction. | +**rulesetId** | **Integer** | The ID of the ruleset containing the rule that triggered this effect. | [optional] **ruleName** | **String** | The name of the rule that triggered this effect. | [optional] diff --git a/docs/CartItem.md b/docs/CartItem.md index fff32208..9c9cdf3f 100644 --- a/docs/CartItem.md +++ b/docs/CartItem.md @@ -8,9 +8,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Name of item. | [optional] **sku** | **String** | Stock keeping unit of item. | -**quantity** | **Long** | Number of units of this item. Due to [cart item flattening](https://docs.talon.one/docs/product/rules/understanding-cart-item-flattening), if you provide a quantity greater than 1, the item will be split in as many items as the provided quantity. This will impact the number of **per-item** effects triggered from your campaigns. | -**returnedQuantity** | **Long** | Number of returned items, calculated internally based on returns of this item. | [optional] -**remainingQuantity** | **Long** | Remaining quantity of the item, calculated internally based on returns of this item. | [optional] +**quantity** | **Integer** | Number of units of this item. Due to [cart item flattening](https://docs.talon.one/docs/product/rules/understanding-cart-item-flattening), if you provide a quantity greater than 1, the item will be split in as many items as the provided quantity. This will impact the number of **per-item** effects triggered from your campaigns. | +**returnedQuantity** | **Integer** | Number of returned items, calculated internally based on returns of this item. | [optional] +**remainingQuantity** | **Integer** | Remaining quantity of the item, calculated internally based on returns of this item. | [optional] **price** | [**BigDecimal**](BigDecimal.md) | Price of the item in the currency defined by your Application. This field is required if this item is not part of a [catalog](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). If it is part of a catalog, setting a price here overrides the price from the catalog. | [optional] **category** | **String** | Type, group or model of the item. | [optional] **product** | [**Product**](Product.md) | | [optional] @@ -21,7 +21,12 @@ Name | Type | Description | Notes **position** | [**BigDecimal**](BigDecimal.md) | Position of the Cart Item in the Cart (calculated internally). | [optional] **attributes** | [**Object**](.md) | Use this property to set a value for the attributes of your choice. [Attributes](https://docs.talon.one/docs/dev/concepts/attributes) represent any information to attach to this cart item. Custom _cart item_ attributes must be created in the Campaign Manager before you set them with this property. **Note:** Any previously defined attributes that you do not include in the array will be removed. | [optional] **additionalCosts** | [**Map<String, AdditionalCost>**](AdditionalCost.md) | Use this property to set a value for the additional costs of this item, such as a shipping cost. They must be created in the Campaign Manager before you set them with this property. See [Managing additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). | [optional] -**catalogItemID** | **Long** | The [catalog item ID](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs/#synchronizing-a-cart-item-catalog). | [optional] +**catalogItemID** | **Integer** | The catalog item ID. | [optional] +**selectedPriceType** | **String** | The selected price type for this cart item (e.g. the price for members only). | [optional] +**adjustmentReferenceId** | [**UUID**](UUID.md) | The reference identifier of the selected price adjustment for this cart item. This is only returned if the `selectedPrice` resulted from a price adjustment. | [optional] +**adjustmentEffectiveFrom** | [**OffsetDateTime**](OffsetDateTime.md) | The date and time from which the price adjustment is effective. This is only returned if the `selectedPrice` resulted from a price adjustment that contains this field. | [optional] +**adjustmentEffectiveUntil** | [**OffsetDateTime**](OffsetDateTime.md) | The date and time until which the price adjustment is effective. This is only returned if the `selectedPrice` resulted from a price adjustment that contains this field. | [optional] +**prices** | [**Map<String, PriceDetail>**](PriceDetail.md) | A map of keys and values representing the price types and related price adjustment details for this cart item. The keys correspond to the `priceType` names. | [optional] diff --git a/docs/Catalog.md b/docs/Catalog.md index cb2cf8cc..a539de3e 100644 --- a/docs/Catalog.md +++ b/docs/Catalog.md @@ -6,15 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Long** | The ID of the account that owns this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | **name** | **String** | The cart item catalog name. | **description** | **String** | A description of this cart item catalog. | -**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the applications that are subscribed to this catalog. | [optional] -**version** | **Long** | The current version of this catalog. | -**createdBy** | **Long** | The ID of user who created this catalog. | +**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the applications that are subscribed to this catalog. | [optional] +**version** | **Integer** | The current version of this catalog. | +**createdBy** | **Integer** | The ID of user who created this catalog. | diff --git a/docs/CatalogAction.md b/docs/CatalogAction.md index 9ed94318..d6c78874 100644 --- a/docs/CatalogAction.md +++ b/docs/CatalogAction.md @@ -21,6 +21,7 @@ PATCH | "PATCH" PATCH_MANY | "PATCH_MANY" REMOVE | "REMOVE" REMOVE_MANY | "REMOVE_MANY" +ADD_PRICE_ADJUSTMENT | "ADD_PRICE_ADJUSTMENT" diff --git a/docs/CatalogItem.md b/docs/CatalogItem.md index 1a4f3020..8af62b4c 100644 --- a/docs/CatalogItem.md +++ b/docs/CatalogItem.md @@ -6,12 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **sku** | **String** | The stock keeping unit of the item. | **price** | [**BigDecimal**](BigDecimal.md) | Price of the item. | [optional] -**catalogid** | **Long** | The ID of the catalog the item belongs to. | -**version** | **Long** | The version of the catalog item. | +**catalogid** | **Integer** | The ID of the catalog the item belongs to. | +**version** | **Integer** | The version of the catalog item. | **attributes** | [**List<ItemAttribute>**](ItemAttribute.md) | | [optional] **product** | [**Product**](Product.md) | | [optional] diff --git a/docs/CatalogSyncRequest.md b/docs/CatalogSyncRequest.md index 94bafcc3..575f85b9 100644 --- a/docs/CatalogSyncRequest.md +++ b/docs/CatalogSyncRequest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **actions** | [**List<CatalogAction>**](CatalogAction.md) | | -**version** | **Long** | The version number of the catalog to apply the actions on. | [optional] +**version** | **Integer** | The version number of the catalog to apply the actions on. | [optional] diff --git a/docs/CatalogsStrikethroughNotificationPolicy.md b/docs/CatalogsStrikethroughNotificationPolicy.md index e73851ab..1cac89d4 100644 --- a/docs/CatalogsStrikethroughNotificationPolicy.md +++ b/docs/CatalogsStrikethroughNotificationPolicy.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Notification name. | -**aheadOfDaysTrigger** | **Long** | The number of days in advance that strikethrough pricing updates should be sent. | [optional] +**aheadOfDaysTrigger** | **Integer** | The number of days in advance that strikethrough pricing updates should be sent. | [optional] diff --git a/docs/Change.md b/docs/Change.md index 40a62011..33108895 100644 --- a/docs/Change.md +++ b/docs/Change.md @@ -6,14 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**userId** | **Long** | The ID of the user associated with this entity. | -**applicationId** | **Long** | ID of application associated with change. | [optional] +**userId** | **Integer** | The ID of the user associated with this entity. | +**applicationId** | **Integer** | ID of application associated with change. | [optional] **entity** | **String** | API endpoint on which the change was initiated. | **old** | [**Object**](.md) | Resource before the change occurred. | [optional] **_new** | [**Object**](.md) | Resource after the change occurred. | [optional] -**managementKeyId** | **Long** | ID of management key used to perform changes. | [optional] +**managementKeyId** | **Integer** | ID of management key used to perform changes. | [optional] diff --git a/docs/ChangeLoyaltyTierLevelEffectProps.md b/docs/ChangeLoyaltyTierLevelEffectProps.md index f9356324..d1047ef5 100644 --- a/docs/ChangeLoyaltyTierLevelEffectProps.md +++ b/docs/ChangeLoyaltyTierLevelEffectProps.md @@ -8,7 +8,7 @@ The properties specific to the \"changeLoyaltyTierLevel\" effect. This is trigge Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ruleTitle** | **String** | The title of the rule that triggered the tier upgrade. | -**programId** | **Long** | The ID of the loyalty program where these points were added. | +**programId** | **Integer** | The ID of the loyalty program where these points were added. | **subLedgerId** | **String** | The ID of the subledger within the loyalty program where these points were added. | **previousTierName** | **String** | The name of the tier from which the user was upgraded. | [optional] **newTierName** | **String** | The name of the tier to which the user has been upgraded. | diff --git a/docs/Collection.md b/docs/Collection.md index 87327e1a..df905e80 100644 --- a/docs/Collection.md +++ b/docs/Collection.md @@ -6,17 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Long** | The ID of the account that owns this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | **description** | **String** | A short description of the purpose of this collection. | [optional] -**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the Applications where this collection is enabled. | [optional] +**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the Applications where this collection is enabled. | [optional] **name** | **String** | The name of this collection. | -**modifiedBy** | **Long** | ID of the user who last updated this effect if available. | [optional] -**createdBy** | **Long** | ID of the user who created this effect. | -**applicationId** | **Long** | The ID of the Application that owns this entity. | [optional] -**campaignId** | **Long** | The ID of the campaign that owns this entity. | [optional] +**modifiedBy** | **Integer** | ID of the user who last updated this effect if available. | [optional] +**createdBy** | **Integer** | ID of the user who created this effect. | +**applicationId** | **Integer** | The ID of the Application that owns this entity. | [optional] +**campaignId** | **Integer** | The ID of the campaign that owns this entity. | [optional] **payload** | **List<String>** | The content of the collection. | [optional] diff --git a/docs/CollectionWithoutPayload.md b/docs/CollectionWithoutPayload.md index 76426dc8..e93d029e 100644 --- a/docs/CollectionWithoutPayload.md +++ b/docs/CollectionWithoutPayload.md @@ -6,17 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Long** | The ID of the account that owns this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | **description** | **String** | A short description of the purpose of this collection. | [optional] -**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the Applications where this collection is enabled. | [optional] +**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the Applications where this collection is enabled. | [optional] **name** | **String** | The name of this collection. | -**modifiedBy** | **Long** | ID of the user who last updated this effect if available. | [optional] -**createdBy** | **Long** | ID of the user who created this effect. | -**applicationId** | **Long** | The ID of the Application that owns this entity. | [optional] -**campaignId** | **Long** | The ID of the campaign that owns this entity. | [optional] +**modifiedBy** | **Integer** | ID of the user who last updated this effect if available. | [optional] +**createdBy** | **Integer** | ID of the user who created this effect. | +**applicationId** | **Integer** | The ID of the Application that owns this entity. | [optional] +**campaignId** | **Integer** | The ID of the campaign that owns this entity. | [optional] diff --git a/docs/Coupon.md b/docs/Coupon.md index 913e2a3c..e7ff4d98 100644 --- a/docs/Coupon.md +++ b/docs/Coupon.md @@ -6,24 +6,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | -**created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**campaignId** | **Long** | The ID of the campaign that owns this entity. | +**id** | **Integer** | The internal ID of the coupon. | +**created** | [**OffsetDateTime**](OffsetDateTime.md) | The time the coupon was created. | +**campaignId** | **Integer** | The ID of the campaign that owns this entity. | **value** | **String** | The coupon code. | -**usageLimit** | **Long** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | +**usageLimit** | **Integer** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | **discountLimit** | [**BigDecimal**](BigDecimal.md) | The total discount value that the code can give. Typically used to represent a gift card value. | [optional] -**reservationLimit** | **Long** | The number of reservations that can be made with this coupon code. | [optional] +**reservationLimit** | **Integer** | The number of reservations that can be made with this coupon code. | [optional] **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the coupon becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the coupon. Coupon never expires if this is omitted. | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | Limits configuration for a coupon. These limits will override the limits set from the campaign. **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. | [optional] -**usageCounter** | **Long** | The number of times the coupon has been successfully redeemed. | +**usageCounter** | **Integer** | The number of times the coupon has been successfully redeemed. | **discountCounter** | [**BigDecimal**](BigDecimal.md) | The amount of discounts given on rules redeeming this coupon. Only usable if a coupon discount budget was set for this coupon. | [optional] **discountRemainder** | [**BigDecimal**](BigDecimal.md) | The remaining discount this coupon can give. | [optional] **reservationCounter** | [**BigDecimal**](BigDecimal.md) | The number of times this coupon has been reserved. | [optional] **attributes** | [**Object**](.md) | Custom attributes associated with this coupon. | [optional] -**referralId** | **Long** | The integration ID of the referring customer (if any) for whom this coupon was created as an effect. | [optional] +**referralId** | **Integer** | The integration ID of the referring customer (if any) for whom this coupon was created as an effect. | [optional] **recipientIntegrationId** | **String** | The Integration ID of the customer that is allowed to redeem this coupon. | [optional] -**importId** | **Long** | The ID of the Import which created this coupon. | [optional] +**importId** | **Integer** | The ID of the Import which created this coupon. | [optional] **reservation** | **Boolean** | Defines the reservation type: - `true`: The coupon can be reserved for multiple customers. - `false`: The coupon can be reserved only for one customer. It is a personal code. | [optional] **batchId** | **String** | The id of the batch the coupon belongs to. | [optional] **isReservationMandatory** | **Boolean** | An indication of whether the code can be redeemed only if it has been reserved first. | [optional] diff --git a/docs/CouponConstraints.md b/docs/CouponConstraints.md index d5c7d44a..199de7ac 100644 --- a/docs/CouponConstraints.md +++ b/docs/CouponConstraints.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**usageLimit** | **Long** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | [optional] +**usageLimit** | **Integer** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | [optional] **discountLimit** | [**BigDecimal**](BigDecimal.md) | The total discount value that the code can give. Typically used to represent a gift card value. | [optional] -**reservationLimit** | **Long** | The number of reservations that can be made with this coupon code. | [optional] +**reservationLimit** | **Integer** | The number of reservations that can be made with this coupon code. | [optional] **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the coupon becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the coupon. Coupon never expires if this is omitted. | [optional] diff --git a/docs/CouponCreationJob.md b/docs/CouponCreationJob.md index ef1e7721..e8c828aa 100644 --- a/docs/CouponCreationJob.md +++ b/docs/CouponCreationJob.md @@ -6,28 +6,28 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**campaignId** | **Long** | The ID of the campaign that owns this entity. | -**applicationId** | **Long** | The ID of the Application that owns this entity. | -**accountId** | **Long** | The ID of the account that owns this entity. | -**usageLimit** | **Long** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | +**campaignId** | **Integer** | The ID of the campaign that owns this entity. | +**applicationId** | **Integer** | The ID of the Application that owns this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | +**usageLimit** | **Integer** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | **discountLimit** | [**BigDecimal**](BigDecimal.md) | The total discount value that the code can give. Typically used to represent a gift card value. | [optional] -**reservationLimit** | **Long** | The number of reservations that can be made with this coupon code. | [optional] +**reservationLimit** | **Integer** | The number of reservations that can be made with this coupon code. | [optional] **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the coupon becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the coupon. Coupon never expires if this is omitted. | [optional] -**numberOfCoupons** | **Long** | The number of new coupon codes to generate for the campaign. | +**numberOfCoupons** | **Integer** | The number of new coupon codes to generate for the campaign. | **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with coupons. | **batchId** | **String** | The batch ID coupons created by this job will bear. | **status** | **String** | The current status of this request. Possible values: - `pending verification` - `pending` - `completed` - `failed` - `coupon pattern full` | -**createdAmount** | **Long** | The number of coupon codes that were already created for this request. | -**failCount** | **Long** | The number of times this job failed. | +**createdAmount** | **Integer** | The number of coupon codes that were already created for this request. | +**failCount** | **Integer** | The number of times this job failed. | **errors** | **List<String>** | An array of individual problems encountered during the request. | -**createdBy** | **Long** | ID of the user who created this effect. | +**createdBy** | **Integer** | ID of the user who created this effect. | **communicated** | **Boolean** | Whether or not the user that created this job was notified of its final state. | -**chunkExecutionCount** | **Long** | The number of times an attempt to create a chunk of coupons was made during the processing of the job. | -**chunkSize** | **Long** | The number of coupons that will be created in a single transactions. Coupons will be created in chunks until arriving at the requested amount. | [optional] +**chunkExecutionCount** | **Integer** | The number of times an attempt to create a chunk of coupons was made during the processing of the job. | +**chunkSize** | **Integer** | The number of coupons that will be created in a single transactions. Coupons will be created in chunks until arriving at the requested amount. | [optional] diff --git a/docs/CouponDeletionFilters.md b/docs/CouponDeletionFilters.md index a3fc139b..ca21fae6 100644 --- a/docs/CouponDeletionFilters.md +++ b/docs/CouponDeletionFilters.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **exactMatch** | **Boolean** | Filter results to an exact case-insensitive matching against the coupon code | [optional] **value** | **String** | Filter results by the coupon code | [optional] **batchId** | **String** | Filter results by batches of coupons | [optional] -**referralId** | **Long** | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] +**referralId** | **Integer** | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] **expiresAfter** | [**OffsetDateTime**](OffsetDateTime.md) | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **expiresBefore** | [**OffsetDateTime**](OffsetDateTime.md) | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] diff --git a/docs/CouponDeletionJob.md b/docs/CouponDeletionJob.md index 96dafc44..949b4d98 100644 --- a/docs/CouponDeletionJob.md +++ b/docs/CouponDeletionJob.md @@ -6,18 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**applicationId** | **Long** | The ID of the Application that owns this entity. | -**accountId** | **Long** | The ID of the account that owns this entity. | +**applicationId** | **Integer** | The ID of the Application that owns this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | **filters** | [**CouponDeletionFilters**](CouponDeletionFilters.md) | | **status** | **String** | The current status of this request. Possible values: - `not_ready` - `pending` - `completed` - `failed` | -**deletedAmount** | **Long** | The number of coupon codes that were already deleted for this request. | [optional] -**failCount** | **Long** | The number of times this job failed. | +**deletedAmount** | **Integer** | The number of coupon codes that were already deleted for this request. | [optional] +**failCount** | **Integer** | The number of times this job failed. | **errors** | **List<String>** | An array of individual problems encountered during the request. | -**createdBy** | **Long** | ID of the user who created this effect. | +**createdBy** | **Integer** | ID of the user who created this effect. | **communicated** | **Boolean** | Indicates whether the user that created this job was notified of its final state. | -**campaignIDs** | **List<Long>** | | [optional] +**campaignIDs** | **List<Integer>** | | [optional] diff --git a/docs/CouponEntity.md b/docs/CouponEntity.md new file mode 100644 index 00000000..525f0f33 --- /dev/null +++ b/docs/CouponEntity.md @@ -0,0 +1,13 @@ + + +# CouponEntity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Integer** | The internal ID of the coupon. | +**created** | [**OffsetDateTime**](OffsetDateTime.md) | The time the coupon was created. | + + + diff --git a/docs/CouponRejectionReason.md b/docs/CouponRejectionReason.md index 97d21790..f5d5698c 100644 --- a/docs/CouponRejectionReason.md +++ b/docs/CouponRejectionReason.md @@ -7,8 +7,8 @@ Holds a reference to the campaign, the coupon and the reason for which that coup Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignId** | **Long** | | -**couponId** | **Long** | | +**campaignId** | **Integer** | | +**couponId** | **Integer** | | **reason** | [**ReasonEnum**](#ReasonEnum) | | diff --git a/docs/CouponsNotificationPolicy.md b/docs/CouponsNotificationPolicy.md index d8334096..0b0175c0 100644 --- a/docs/CouponsNotificationPolicy.md +++ b/docs/CouponsNotificationPolicy.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **scopes** | [**List<ScopesEnum>**](#List<ScopesEnum>) | | **batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] **includeData** | **Boolean** | Indicates whether to include all generated coupons. If `false`, only the `batchId` of the generated coupons is included. | [optional] -**batchSize** | **Long** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] +**batchSize** | **Integer** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] diff --git a/docs/CreateAchievement.md b/docs/CreateAchievement.md index 89b8f9c0..1fbfb220 100644 --- a/docs/CreateAchievement.md +++ b/docs/CreateAchievement.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **target** | [**BigDecimal**](BigDecimal.md) | The required number of actions or the transactional milestone to complete the achievement. | **period** | **String** | The relative duration after which the achievement ends and resets for a particular customer profile. **Note**: The `period` does not start when the achievement is created. The period is a **positive real number** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can also round certain units down to the beginning of period and up to the end of period.: - `_D` for rounding down days only. Signifies the start of the day. Example: `30D_D` - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. Example: `23W_U` **Note**: You can either use the round down and round up option or set an absolute period. | [optional] **periodEndOverride** | [**TimePoint**](TimePoint.md) | | [optional] -**recurrencePolicy** | [**RecurrencePolicyEnum**](#RecurrencePolicyEnum) | The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. | [optional] +**recurrencePolicy** | [**RecurrencePolicyEnum**](#RecurrencePolicyEnum) | The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. | [optional] **activationPolicy** | [**ActivationPolicyEnum**](#ActivationPolicyEnum) | The policy that determines how the achievement starts, ends, or resets. - `user_action`: The achievement ends or resets relative to when the customer started the achievement. - `fixed_schedule`: The achievement starts, ends, or resets for all customers following a fixed schedule. | [optional] **fixedStartDate** | [**OffsetDateTime**](OffsetDateTime.md) | The achievement's start date when `activationPolicy` is set to `fixed_schedule`. **Note:** It must be an RFC3339 timestamp string. | [optional] **endDate** | [**OffsetDateTime**](OffsetDateTime.md) | The achievement's end date. If defined, customers cannot participate in the achievement after this date. **Note:** It must be an RFC3339 timestamp string. | [optional] @@ -25,6 +25,7 @@ Name | Value ---- | ----- NO_RECURRENCE | "no_recurrence" ON_EXPIRATION | "on_expiration" +ON_COMPLETION | "on_completion" diff --git a/docs/CreateApplicationAPIKey.md b/docs/CreateApplicationAPIKey.md index d34444c6..0d8ced5d 100644 --- a/docs/CreateApplicationAPIKey.md +++ b/docs/CreateApplicationAPIKey.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **expires** | [**OffsetDateTime**](OffsetDateTime.md) | The date the API key expires. | **platform** | [**PlatformEnum**](#PlatformEnum) | The third-party platform the API key is valid for. Use `none` for a generic API key to be used from your own integration layer. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. | [optional] -**timeOffset** | **Long** | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. | [optional] +**timeOffset** | **Integer** | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. | [optional] diff --git a/docs/CreateManagementKey.md b/docs/CreateManagementKey.md index c1978a7e..d513ee45 100644 --- a/docs/CreateManagementKey.md +++ b/docs/CreateManagementKey.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **name** | **String** | Name for management key. | **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | The date the management key expires. | **endpoints** | [**List<Endpoint>**](Endpoint.md) | The list of endpoints that can be accessed with the key | -**allowedApplicationIds** | **List<Long>** | A list of Application IDs that you can access with the management key. An empty or missing list means the management key can be used for all Applications in the account. | [optional] +**allowedApplicationIds** | **List<Integer>** | A list of Application IDs that you can access with the management key. An empty or missing list means the management key can be used for all Applications in the account. | [optional] diff --git a/docs/CreateTemplateCampaign.md b/docs/CreateTemplateCampaign.md index 2d9afa5b..6a446708 100644 --- a/docs/CreateTemplateCampaign.md +++ b/docs/CreateTemplateCampaign.md @@ -8,14 +8,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | A user-facing name for this campaign. | **description** | **String** | A detailed description of the campaign. | [optional] -**templateId** | **Long** | The ID of the Campaign Template which will be used in order to create the Campaign. | +**templateId** | **Integer** | The ID of the Campaign Template which will be used in order to create the Campaign. | **campaignAttributesOverrides** | [**Object**](.md) | Custom Campaign Attributes. If the Campaign Template defines the same values, they will be overridden. | [optional] **templateParamValues** | [**List<Binding>**](Binding.md) | Actual values to replace the template placeholder values in the Ruleset bindings. Values for all Template Parameters must be provided. | [optional] **limitOverrides** | [**List<LimitConfig>**](LimitConfig.md) | Limits for this Campaign. If the Campaign Template or Application define default values for the same limits, they will be overridden. | [optional] -**campaignGroups** | **List<Long>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) this campaign belongs to. | [optional] +**campaignGroups** | **List<Integer>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) this campaign belongs to. | [optional] **tags** | **List<String>** | A list of tags for the campaign. If the campaign template has tags, they will be overridden by this list. | [optional] -**evaluationGroupId** | **Long** | The ID of the campaign evaluation group the campaign belongs to. | [optional] -**linkedStoreIds** | **List<Long>** | A list of store IDs that are linked to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] +**evaluationGroupId** | **Integer** | The ID of the campaign evaluation group the campaign belongs to. | [optional] +**linkedStoreIds** | **List<Integer>** | A list of store IDs that are linked to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] diff --git a/docs/CustomEffect.md b/docs/CustomEffect.md index 51032138..091933dc 100644 --- a/docs/CustomEffect.md +++ b/docs/CustomEffect.md @@ -6,11 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Long** | The ID of the account that owns this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | -**applicationIds** | **List<Long>** | The IDs of the Applications that are related to this entity. | +**applicationIds** | **List<Integer>** | The IDs of the Applications that are related to this entity. | **isPerItem** | **Boolean** | Indicates if this effect is per item or not. | [optional] **name** | **String** | The name of this effect. | **title** | **String** | The title of this effect. | @@ -18,8 +18,8 @@ Name | Type | Description | Notes **description** | **String** | The description of this effect. | [optional] **enabled** | **Boolean** | Determines if this effect is active. | **params** | [**List<TemplateArgDef>**](TemplateArgDef.md) | Array of template argument definitions. | [optional] -**modifiedBy** | **Long** | ID of the user who last updated this effect if available. | [optional] -**createdBy** | **Long** | ID of the user who created this effect. | +**modifiedBy** | **Integer** | ID of the user who last updated this effect if available. | [optional] +**createdBy** | **Integer** | ID of the user who created this effect. | diff --git a/docs/CustomEffectProps.md b/docs/CustomEffectProps.md index 2209dfc1..aa4a5a5f 100644 --- a/docs/CustomEffectProps.md +++ b/docs/CustomEffectProps.md @@ -7,11 +7,11 @@ Effect containing custom payload. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**effectId** | **Long** | The ID of the custom effect that was triggered. | +**effectId** | **Integer** | The ID of the custom effect that was triggered. | **name** | **String** | The type of the custom effect. | **cartItemPosition** | [**BigDecimal**](BigDecimal.md) | The index of the item in the cart item list to which the custom effect is applied. | [optional] **cartItemSubPosition** | [**BigDecimal**](BigDecimal.md) | For cart items with quantity > 1, the sub position indicates to which item unit the custom effect is applied. | [optional] -**bundleIndex** | **Long** | The position of the bundle in a list of item bundles created from the same bundle definition. | [optional] +**bundleIndex** | **Integer** | The position of the bundle in a list of item bundles created from the same bundle definition. | [optional] **bundleName** | **String** | The name of the bundle definition. | [optional] **payload** | [**Object**](.md) | The JSON payload of the custom effect. | diff --git a/docs/CustomerActivityReport.md b/docs/CustomerActivityReport.md index 80bb8134..c84488ce 100644 --- a/docs/CustomerActivityReport.md +++ b/docs/CustomerActivityReport.md @@ -10,15 +10,15 @@ Name | Type | Description | Notes **integrationId** | **String** | The integration ID set by your integration layer. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **name** | **String** | The name for this customer profile. | -**customerId** | **Long** | The internal Talon.One ID of the customer. | +**customerId** | **Integer** | The internal Talon.One ID of the customer. | **lastActivity** | [**OffsetDateTime**](OffsetDateTime.md) | The last activity of the customer. | [optional] -**couponRedemptions** | **Long** | Number of coupon redemptions in all customer campaigns. | -**couponUseAttempts** | **Long** | Number of coupon use attempts in all customer campaigns. | -**couponFailedAttempts** | **Long** | Number of failed coupon use attempts in all customer campaigns. | +**couponRedemptions** | **Integer** | Number of coupon redemptions in all customer campaigns. | +**couponUseAttempts** | **Integer** | Number of coupon use attempts in all customer campaigns. | +**couponFailedAttempts** | **Integer** | Number of failed coupon use attempts in all customer campaigns. | **accruedDiscounts** | [**BigDecimal**](BigDecimal.md) | Number of accrued discounts in all customer campaigns. | **accruedRevenue** | [**BigDecimal**](BigDecimal.md) | Amount of accrued revenue in all customer campaigns. | -**totalOrders** | **Long** | Number of orders in all customer campaigns. | -**totalOrdersNoCoupon** | **Long** | Number of orders without coupon used in all customer campaigns. | +**totalOrders** | **Integer** | Number of orders in all customer campaigns. | +**totalOrdersNoCoupon** | **Integer** | Number of orders without coupon used in all customer campaigns. | **campaignName** | **String** | The name of the campaign this customer belongs to. | diff --git a/docs/CustomerAnalytics.md b/docs/CustomerAnalytics.md index bd4e1e06..1bf509a2 100644 --- a/docs/CustomerAnalytics.md +++ b/docs/CustomerAnalytics.md @@ -7,11 +7,11 @@ A summary report of customer activity for a given time range. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**acceptedCoupons** | **Long** | Total accepted coupons for this customer. | -**createdCoupons** | **Long** | Total created coupons for this customer. | -**freeItems** | **Long** | Total free items given to this customer. | -**totalOrders** | **Long** | Total orders made by this customer. | -**totalDiscountedOrders** | **Long** | Total orders made by this customer that had a discount. | +**acceptedCoupons** | **Integer** | Total accepted coupons for this customer. | +**createdCoupons** | **Integer** | Total created coupons for this customer. | +**freeItems** | **Integer** | Total free items given to this customer. | +**totalOrders** | **Integer** | Total orders made by this customer. | +**totalDiscountedOrders** | **Integer** | Total orders made by this customer that had a discount. | **totalRevenue** | [**BigDecimal**](BigDecimal.md) | Total Revenue across all closed sessions. | **totalDiscounts** | [**BigDecimal**](BigDecimal.md) | The sum of discounts that were given across all closed sessions. | diff --git a/docs/CustomerProfile.md b/docs/CustomerProfile.md index 06fafffa..d6574584 100644 --- a/docs/CustomerProfile.md +++ b/docs/CustomerProfile.md @@ -6,12 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of the customer profile. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **integrationId** | **String** | The integration ID set by your integration layer. | **attributes** | [**Object**](.md) | Arbitrary properties associated with this item. | -**accountId** | **Long** | The ID of the Talon.One account that owns this profile. | -**closedSessions** | **Long** | The total amount of closed sessions by a customer. A closed session is a successful purchase. | +**accountId** | **Integer** | The ID of the Talon.One account that owns this profile. | +**closedSessions** | **Integer** | The total number of closed sessions. Does not include closed sessions that have been cancelled or reopened. See the [docs](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states). | **totalSales** | [**BigDecimal**](BigDecimal.md) | The total amount of money spent by the customer **before** discounts are applied. The total sales amount excludes the following: - Cancelled or reopened sessions. - Returned items. | **loyaltyMemberships** | [**List<LoyaltyMembership>**](LoyaltyMembership.md) | **DEPRECATED** A list of loyalty programs joined by the customer. | [optional] **audienceMemberships** | [**List<AudienceMembership>**](AudienceMembership.md) | The audiences the customer belongs to. | [optional] diff --git a/docs/CustomerProfileAudienceRequestItem.md b/docs/CustomerProfileAudienceRequestItem.md index 6cad277b..35b4a2ec 100644 --- a/docs/CustomerProfileAudienceRequestItem.md +++ b/docs/CustomerProfileAudienceRequestItem.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | [**ActionEnum**](#ActionEnum) | Defines the action to perform: - `add`: Adds the customer profile to the audience. **Note**: If the customer profile does not exist, it will be created. The profile will not be visible in any Application until a session or profile update is received for that profile. - `delete`: Removes the customer profile from the audience. | **profileIntegrationId** | **String** | The ID of this customer profile in the third-party integration. | -**audienceId** | **Long** | The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). | +**audienceId** | **Integer** | The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). | diff --git a/docs/CustomerProfileEntity.md b/docs/CustomerProfileEntity.md new file mode 100644 index 00000000..b16fb76f --- /dev/null +++ b/docs/CustomerProfileEntity.md @@ -0,0 +1,13 @@ + + +# CustomerProfileEntity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Integer** | The internal ID of the customer profile. | +**created** | [**OffsetDateTime**](OffsetDateTime.md) | The time the customer profile was created. | + + + diff --git a/docs/CustomerProfileIntegrationRequestV2.md b/docs/CustomerProfileIntegrationRequestV2.md index 67166c88..8ce26dcd 100644 --- a/docs/CustomerProfileIntegrationRequestV2.md +++ b/docs/CustomerProfileIntegrationRequestV2.md @@ -8,7 +8,7 @@ The body of a V2 integration API request (customer profile update). Next to the Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **attributes** | [**Object**](.md) | Arbitrary properties associated with this item. | [optional] -**evaluableCampaignIds** | **List<Long>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] +**evaluableCampaignIds** | **List<Integer>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] **audiencesChanges** | [**ProfileAudiencesChanges**](ProfileAudiencesChanges.md) | | [optional] **responseContent** | [**List<ResponseContentEnum>**](#List<ResponseContentEnum>) | Extends the response with the chosen data entities. Use this property to get as much data as you need in one _Update customer profile_ request instead of sending extra requests to other endpoints. | [optional] diff --git a/docs/CustomerProfileSearchQuery.md b/docs/CustomerProfileSearchQuery.md index 7a45d762..12512698 100644 --- a/docs/CustomerProfileSearchQuery.md +++ b/docs/CustomerProfileSearchQuery.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **attributes** | [**Object**](.md) | Properties to match against a customer profile. All provided attributes will be exactly matched against profile attributes. | [optional] **integrationIDs** | **List<String>** | | [optional] -**profileIDs** | **List<Long>** | | [optional] +**profileIDs** | **List<Integer>** | | [optional] diff --git a/docs/CustomerSession.md b/docs/CustomerSession.md index 00870960..2cbb2691 100644 --- a/docs/CustomerSession.md +++ b/docs/CustomerSession.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **integrationId** | **String** | The integration ID set by your integration layer. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**applicationId** | **Long** | The ID of the Application that owns this entity. | +**applicationId** | **Integer** | The ID of the Application that owns this entity. | **profileId** | **String** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | **coupon** | **String** | Any coupon code entered. | **referral** | **String** | Any referral code entered. | diff --git a/docs/CustomerSessionV2.md b/docs/CustomerSessionV2.md index c8657440..44970cec 100644 --- a/docs/CustomerSessionV2.md +++ b/docs/CustomerSessionV2.md @@ -7,13 +7,13 @@ The representation of the customer session. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **integrationId** | **String** | The integration ID set by your integration layer. | -**applicationId** | **Long** | The ID of the Application that owns this entity. | +**applicationId** | **Integer** | The ID of the Application that owns this entity. | **profileId** | **String** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | **storeIntegrationId** | **String** | The integration ID of the store. You choose this ID when you create a store. | [optional] -**evaluableCampaignIds** | **List<Long>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] +**evaluableCampaignIds** | **List<Integer>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] **couponCodes** | **List<String>** | Any coupon codes entered. **Important - for requests only**: - If you [create a coupon budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a coupon code by the time you close it. - In requests where `dry=false`, providing an empty array discards any previous coupons. To avoid this, omit the parameter entirely. | [optional] **referralCode** | **String** | Any referral code entered. **Important - for requests only**: - If you [create a referral budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a referral code by the time you close it. - In requests where `dry=false`, providing an empty value discards the previous referral code. To avoid this, omit the parameter entirely. | [optional] **loyaltyCards** | **List<String>** | Identifier of a loyalty card. | [optional] diff --git a/docs/DeductLoyaltyPoints.md b/docs/DeductLoyaltyPoints.md index 06b9129b..e1508003 100644 --- a/docs/DeductLoyaltyPoints.md +++ b/docs/DeductLoyaltyPoints.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **points** | [**BigDecimal**](BigDecimal.md) | Amount of loyalty points. | **name** | **String** | Name / reason for the point deduction. | [optional] **subledgerId** | **String** | ID of the subledger the points are deducted from. | [optional] -**applicationId** | **Long** | ID of the Application that is connected to the loyalty program. | [optional] +**applicationId** | **Integer** | ID of the Application that is connected to the loyalty program. | [optional] diff --git a/docs/DeductLoyaltyPointsEffectProps.md b/docs/DeductLoyaltyPointsEffectProps.md index 0fd8df94..cd34b15f 100644 --- a/docs/DeductLoyaltyPointsEffectProps.md +++ b/docs/DeductLoyaltyPointsEffectProps.md @@ -8,7 +8,7 @@ The properties specific to the \"deductLoyaltyPoints\" effect. This gets trigger Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ruleTitle** | **String** | The title of the rule that contained triggered this points deduction. | -**programId** | **Long** | The ID of the loyalty program where these points were added. | +**programId** | **Integer** | The ID of the loyalty program where these points were added. | **subLedgerId** | **String** | The ID of the subledger within the loyalty program where these points were added. | **value** | [**BigDecimal**](BigDecimal.md) | The amount of points that were deducted. | **transactionUUID** | **String** | The identifier of this deduction in the loyalty ledger. | diff --git a/docs/Effect.md b/docs/Effect.md index 5ba627e5..b30fa2b6 100644 --- a/docs/Effect.md +++ b/docs/Effect.md @@ -7,18 +7,21 @@ A generic effect that is fired by a triggered campaign. The props property will Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignId** | **Long** | The ID of the campaign that triggered this effect. | -**rulesetId** | **Long** | The ID of the ruleset that was active in the campaign when this effect was triggered. | -**ruleIndex** | **Long** | The position of the rule that triggered this effect within the ruleset. | +**campaignId** | **Integer** | The ID of the campaign that triggered this effect. | +**rulesetId** | **Integer** | The ID of the ruleset that was active in the campaign when this effect was triggered. | +**ruleIndex** | **Integer** | The position of the rule that triggered this effect within the ruleset. | **ruleName** | **String** | The name of the rule that triggered this effect. | **effectType** | **String** | The type of effect that was triggered. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). | -**triggeredByCoupon** | **Long** | The ID of the coupon that was being evaluated when this effect was triggered. | [optional] -**triggeredForCatalogItem** | **Long** | The ID of the catalog item that was being evaluated when this effect was triggered. | [optional] -**conditionIndex** | **Long** | The index of the condition that was triggered. | [optional] -**evaluationGroupID** | **Long** | The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). | [optional] +**triggeredByCoupon** | **Integer** | The ID of the coupon that was being evaluated when this effect was triggered. | [optional] +**triggeredForCatalogItem** | **Integer** | The ID of the catalog item that was being evaluated when this effect was triggered. | [optional] +**conditionIndex** | **Integer** | The index of the condition that was triggered. | [optional] +**evaluationGroupID** | **Integer** | The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). | [optional] **evaluationGroupMode** | **String** | The evaluation mode of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). | [optional] -**campaignRevisionId** | **Long** | The revision ID of the campaign that was used when triggering the effect. | [optional] -**campaignRevisionVersionId** | **Long** | The revision version ID of the campaign that was used when triggering the effect. | [optional] +**campaignRevisionId** | **Integer** | The revision ID of the campaign that was used when triggering the effect. | [optional] +**campaignRevisionVersionId** | **Integer** | The revision version ID of the campaign that was used when triggering the effect. | [optional] +**selectedPriceType** | **String** | The selected price type for the SKU targeted by this effect. | [optional] +**selectedPrice** | [**BigDecimal**](BigDecimal.md) | The value of the selected price type to apply to the SKU targeted by this effect, before any discounts are applied. | [optional] +**adjustmentReferenceId** | [**UUID**](UUID.md) | The reference identifier of the selected price adjustment for this SKU. This is only returned if the `selectedPrice` resulted from a price adjustment. | [optional] **props** | [**Object**](.md) | The properties of the effect. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). | diff --git a/docs/EffectEntity.md b/docs/EffectEntity.md index 28953626..11617e78 100644 --- a/docs/EffectEntity.md +++ b/docs/EffectEntity.md @@ -7,18 +7,21 @@ Definition of all properties that are present on all effects, independent of the Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignId** | **Long** | The ID of the campaign that triggered this effect. | -**rulesetId** | **Long** | The ID of the ruleset that was active in the campaign when this effect was triggered. | -**ruleIndex** | **Long** | The position of the rule that triggered this effect within the ruleset. | +**campaignId** | **Integer** | The ID of the campaign that triggered this effect. | +**rulesetId** | **Integer** | The ID of the ruleset that was active in the campaign when this effect was triggered. | +**ruleIndex** | **Integer** | The position of the rule that triggered this effect within the ruleset. | **ruleName** | **String** | The name of the rule that triggered this effect. | **effectType** | **String** | The type of effect that was triggered. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). | -**triggeredByCoupon** | **Long** | The ID of the coupon that was being evaluated when this effect was triggered. | [optional] -**triggeredForCatalogItem** | **Long** | The ID of the catalog item that was being evaluated when this effect was triggered. | [optional] -**conditionIndex** | **Long** | The index of the condition that was triggered. | [optional] -**evaluationGroupID** | **Long** | The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). | [optional] +**triggeredByCoupon** | **Integer** | The ID of the coupon that was being evaluated when this effect was triggered. | [optional] +**triggeredForCatalogItem** | **Integer** | The ID of the catalog item that was being evaluated when this effect was triggered. | [optional] +**conditionIndex** | **Integer** | The index of the condition that was triggered. | [optional] +**evaluationGroupID** | **Integer** | The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). | [optional] **evaluationGroupMode** | **String** | The evaluation mode of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). | [optional] -**campaignRevisionId** | **Long** | The revision ID of the campaign that was used when triggering the effect. | [optional] -**campaignRevisionVersionId** | **Long** | The revision version ID of the campaign that was used when triggering the effect. | [optional] +**campaignRevisionId** | **Integer** | The revision ID of the campaign that was used when triggering the effect. | [optional] +**campaignRevisionVersionId** | **Integer** | The revision version ID of the campaign that was used when triggering the effect. | [optional] +**selectedPriceType** | **String** | The selected price type for the SKU targeted by this effect. | [optional] +**selectedPrice** | [**BigDecimal**](BigDecimal.md) | The value of the selected price type to apply to the SKU targeted by this effect, before any discounts are applied. | [optional] +**adjustmentReferenceId** | [**UUID**](UUID.md) | The reference identifier of the selected price adjustment for this SKU. This is only returned if the `selectedPrice` resulted from a price adjustment. | [optional] diff --git a/docs/Entity.md b/docs/Entity.md index 707445ec..24aba8df 100644 --- a/docs/Entity.md +++ b/docs/Entity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | diff --git a/docs/EntityWithTalangVisibleID.md b/docs/EntityWithTalangVisibleID.md index 1d74f55f..be250ce5 100644 --- a/docs/EntityWithTalangVisibleID.md +++ b/docs/EntityWithTalangVisibleID.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Unique ID for this entity. | +**id** | **Integer** | Unique ID for this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The exact moment this entity was created. | diff --git a/docs/Environment.md b/docs/Environment.md index a617508a..68ef9c55 100644 --- a/docs/Environment.md +++ b/docs/Environment.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**applicationId** | **Long** | The ID of the Application that owns this entity. | +**applicationId** | **Integer** | The ID of the Application that owns this entity. | **slots** | [**List<SlotDef>**](SlotDef.md) | The slots defined for this application. | **functions** | [**List<FunctionDef>**](FunctionDef.md) | The functions defined for this application. | **templates** | [**List<TemplateDef>**](TemplateDef.md) | The templates defined for this application. | @@ -21,6 +21,7 @@ Name | Type | Description | Notes **audiences** | [**List<Audience>**](Audience.md) | The audiences contained in the account which the application belongs to. | [optional] **collections** | [**List<Collection>**](Collection.md) | The account-level collections that the application is subscribed to. | [optional] **applicationCartItemFilters** | [**List<ApplicationCIF>**](ApplicationCIF.md) | The cart item filters belonging to the Application. | [optional] +**priceTypes** | [**List<PriceType>**](PriceType.md) | The price types that this Application can use. | [optional] diff --git a/docs/ErrorResponseWithStatus.md b/docs/ErrorResponseWithStatus.md index f8ba17a6..4508f3e8 100644 --- a/docs/ErrorResponseWithStatus.md +++ b/docs/ErrorResponseWithStatus.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **String** | | [optional] **errors** | [**List<APIError>**](APIError.md) | An array of individual problems encountered during the request. | [optional] -**statusCode** | **Long** | The error code | [optional] +**statusCode** | **Integer** | The error code | [optional] diff --git a/docs/EvaluableCampaignIds.md b/docs/EvaluableCampaignIds.md index 006899ec..dfc4ee15 100644 --- a/docs/EvaluableCampaignIds.md +++ b/docs/EvaluableCampaignIds.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**evaluableCampaignIds** | **List<Long>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] +**evaluableCampaignIds** | **List<Integer>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] diff --git a/docs/Event.md b/docs/Event.md index 20a703c3..fe6aab0e 100644 --- a/docs/Event.md +++ b/docs/Event.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**applicationId** | **Long** | The ID of the Application that owns this entity. | +**applicationId** | **Integer** | The ID of the Application that owns this entity. | **profileId** | **String** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | [optional] **storeIntegrationId** | **String** | The integration ID of the store. You choose this ID when you create a store. | [optional] **type** | **String** | A string representing the event. Must not be a reserved event name. | diff --git a/docs/EventType.md b/docs/EventType.md index e0a406be..deaadaa0 100644 --- a/docs/EventType.md +++ b/docs/EventType.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **title** | **String** | The human-friendly name for this event type. | **name** | **String** | The integration name for this event type. This will be used in URLs and cannot be changed after an event type has been created. | diff --git a/docs/EventV2.md b/docs/EventV2.md index 190c1e92..2a692493 100644 --- a/docs/EventV2.md +++ b/docs/EventV2.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **profileId** | **String** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | [optional] **storeIntegrationId** | **String** | The integration ID of the store. You choose this ID when you create a store. | [optional] -**evaluableCampaignIds** | **List<Long>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] +**evaluableCampaignIds** | **List<Integer>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] **type** | **String** | A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager. | **attributes** | [**Object**](.md) | Arbitrary additional JSON properties associated with the event. They must be created in the Campaign Manager before setting them with this property. See [creating custom attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute). | [optional] diff --git a/docs/ExpiringCouponsNotificationPolicy.md b/docs/ExpiringCouponsNotificationPolicy.md index cd500043..94c154e0 100644 --- a/docs/ExpiringCouponsNotificationPolicy.md +++ b/docs/ExpiringCouponsNotificationPolicy.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **name** | **String** | Notification name. | **triggers** | [**List<ExpiringCouponsNotificationTrigger>**](ExpiringCouponsNotificationTrigger.md) | | **batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] -**batchSize** | **Long** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] +**batchSize** | **Integer** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] diff --git a/docs/ExpiringCouponsNotificationTrigger.md b/docs/ExpiringCouponsNotificationTrigger.md index 041eb082..92660fa2 100644 --- a/docs/ExpiringCouponsNotificationTrigger.md +++ b/docs/ExpiringCouponsNotificationTrigger.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**amount** | **Long** | The amount of period. | +**amount** | **Integer** | The amount of period. | **period** | [**PeriodEnum**](#PeriodEnum) | Notification period indicated by a letter; \"w\" means week, \"d\" means day. | diff --git a/docs/ExpiringPointsNotificationPolicy.md b/docs/ExpiringPointsNotificationPolicy.md index bb70889a..d32e5cc9 100644 --- a/docs/ExpiringPointsNotificationPolicy.md +++ b/docs/ExpiringPointsNotificationPolicy.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **name** | **String** | Notification name. | **triggers** | [**List<ExpiringPointsNotificationTrigger>**](ExpiringPointsNotificationTrigger.md) | | **batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] -**batchSize** | **Long** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] +**batchSize** | **Integer** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] diff --git a/docs/ExpiringPointsNotificationTrigger.md b/docs/ExpiringPointsNotificationTrigger.md index b998f680..2dbe548e 100644 --- a/docs/ExpiringPointsNotificationTrigger.md +++ b/docs/ExpiringPointsNotificationTrigger.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**amount** | **Long** | The amount of period. | +**amount** | **Integer** | The amount of period. | **period** | [**PeriodEnum**](#PeriodEnum) | Notification period indicated by a letter; \"w\" means week, \"d\" means day. | diff --git a/docs/Export.md b/docs/Export.md index 669afcbd..37b23cc9 100644 --- a/docs/Export.md +++ b/docs/Export.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Long** | The ID of the account that owns this entity. | -**userId** | **Long** | The ID of the user associated with this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | +**userId** | **Integer** | The ID of the user associated with this entity. | **entity** | [**EntityEnum**](#EntityEnum) | The name of the entity that was exported. | **filter** | [**Object**](.md) | Map of keys and values that were used to filter the exported rows. | diff --git a/docs/ExtendLoyaltyPointsExpiryDateEffectProps.md b/docs/ExtendLoyaltyPointsExpiryDateEffectProps.md new file mode 100644 index 00000000..3ccce28a --- /dev/null +++ b/docs/ExtendLoyaltyPointsExpiryDateEffectProps.md @@ -0,0 +1,17 @@ + + +# ExtendLoyaltyPointsExpiryDateEffectProps + +The properties specific to the \"extendLoyaltyPointsExpiryDate\" effect. This gets triggered when a validated rule contains the \"extend expiry date\" effect. The current expiry date gets extended by the time frame given in the effect. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**programId** | **Integer** | ID of the loyalty program that contains these points. | +**subLedgerId** | **String** | API name of the loyalty program subledger that contains these points. added. | +**extensionDuration** | **String** | Time frame by which the expiry date extends. The time format is either: - immediate, or - an **integer** followed by a letter indicating the time unit. Examples: `immediate`, `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. | +**transactionUUIDs** | **List<String>** | The list of identifiers of transactions affected affected by the extension. | [optional] +**previousExpirationDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiry date before applying the extension. | + + + diff --git a/docs/GenerateCampaignDescription.md b/docs/GenerateCampaignDescription.md index dfbc8adc..09e950ee 100644 --- a/docs/GenerateCampaignDescription.md +++ b/docs/GenerateCampaignDescription.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rulesetID** | **Long** | ID of a ruleset. | +**rulesetID** | **Integer** | ID of a ruleset. | **currency** | **String** | Currency for the campaign. | diff --git a/docs/GenerateCampaignTags.md b/docs/GenerateCampaignTags.md index 729ac14f..29620daa 100644 --- a/docs/GenerateCampaignTags.md +++ b/docs/GenerateCampaignTags.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rulesetID** | **Long** | ID of a ruleset. | +**rulesetID** | **Integer** | ID of a ruleset. | diff --git a/docs/GetIntegrationCouponRequest.md b/docs/GetIntegrationCouponRequest.md index 78a2f60b..c52da1eb 100644 --- a/docs/GetIntegrationCouponRequest.md +++ b/docs/GetIntegrationCouponRequest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignIds** | **List<Long>** | A list of IDs of the campaigns to get coupons from. | -**limit** | **Long** | The maximum number of coupons included in the response. | +**campaignIds** | **List<Integer>** | A list of IDs of the campaigns to get coupons from. | +**limit** | **Integer** | The maximum number of coupons included in the response. | diff --git a/docs/Giveaway.md b/docs/Giveaway.md index 8ff6f2c6..bbe41739 100644 --- a/docs/Giveaway.md +++ b/docs/Giveaway.md @@ -6,17 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **code** | **String** | The code value of this giveaway. | -**poolId** | **Long** | The ID of the pool to return giveaway codes from. | +**poolId** | **Integer** | The ID of the pool to return giveaway codes from. | **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the giveaway becomes valid. | [optional] **endDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the giveaway becomes invalid. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this giveaway. | [optional] **used** | **Boolean** | Indicates whether this giveaway code was given before. | [optional] -**importId** | **Long** | The ID of the Import which created this giveaway. | [optional] +**importId** | **Integer** | The ID of the Import which created this giveaway. | [optional] **profileIntegrationId** | **String** | The third-party integration ID of the customer profile that was awarded the giveaway, if the giveaway was awarded. | [optional] -**profileId** | **Long** | The internal ID of the customer profile that was awarded the giveaway, if the giveaway was awarded and an internal ID exists. | [optional] +**profileId** | **Integer** | The internal ID of the customer profile that was awarded the giveaway, if the giveaway was awarded and an internal ID exists. | [optional] diff --git a/docs/GiveawaysPool.md b/docs/GiveawaysPool.md index 426f6637..d60f3556 100644 --- a/docs/GiveawaysPool.md +++ b/docs/GiveawaysPool.md @@ -7,16 +7,16 @@ Giveaways pools is an entity for managing multiple similar giveaways. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Long** | The ID of the account that owns this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | **name** | **String** | The name of this giveaways pool. | **description** | **String** | The description of this giveaways pool. | [optional] -**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the applications that this giveaways pool is enabled for. | [optional] +**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the applications that this giveaways pool is enabled for. | [optional] **sandbox** | **Boolean** | Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent update to the giveaways pool. | [optional] -**createdBy** | **Long** | ID of the user who created this giveaways pool. | -**modifiedBy** | **Long** | ID of the user who last updated this giveaways pool if available. | [optional] +**createdBy** | **Integer** | ID of the user who created this giveaways pool. | +**modifiedBy** | **Integer** | ID of the user who last updated this giveaways pool if available. | [optional] diff --git a/docs/HiddenConditionsEffects.md b/docs/HiddenConditionsEffects.md index 837e2f97..c5807e96 100644 --- a/docs/HiddenConditionsEffects.md +++ b/docs/HiddenConditionsEffects.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **builtInEffects** | **List<String>** | List of hidden built-in effects. | [optional] **conditions** | **List<String>** | List of hidden conditions. | [optional] -**customEffects** | **List<Long>** | List of the IDs of hidden custom effects. | [optional] -**webhooks** | **List<Long>** | List of the IDs of hidden webhooks. | [optional] +**customEffects** | **List<Integer>** | List of the IDs of hidden custom effects. | [optional] +**webhooks** | **List<Integer>** | List of the IDs of hidden webhooks. | [optional] diff --git a/docs/IdentifiableEntity.md b/docs/IdentifiableEntity.md index 1b7f7ee3..a4f78340 100644 --- a/docs/IdentifiableEntity.md +++ b/docs/IdentifiableEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | +**id** | **Integer** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | diff --git a/docs/ImportEntity.md b/docs/ImportEntity.md index e3c2a4b3..418b1708 100644 --- a/docs/ImportEntity.md +++ b/docs/ImportEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**importId** | **Long** | The ID of the Import which created this referral. | [optional] +**importId** | **Integer** | The ID of the Import which created this referral. | [optional] diff --git a/docs/IncreaseAchievementProgressEffectProps.md b/docs/IncreaseAchievementProgressEffectProps.md index 93c88f38..b0e7992e 100644 --- a/docs/IncreaseAchievementProgressEffectProps.md +++ b/docs/IncreaseAchievementProgressEffectProps.md @@ -7,9 +7,9 @@ The properties specific to the \"increaseAchievementProgress\" effect. This gets Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**achievementId** | **Long** | The internal ID of the achievement. | +**achievementId** | **Integer** | The internal ID of the achievement. | **achievementName** | **String** | The name of the achievement. | -**progressTrackerId** | **Long** | The internal ID of the achievement progress tracker. | [optional] +**progressTrackerId** | **Integer** | The internal ID of the achievement progress tracker. | [optional] **delta** | [**BigDecimal**](BigDecimal.md) | The value by which the customer's current progress in the achievement is increased. | **value** | [**BigDecimal**](BigDecimal.md) | The current progress of the customer in the achievement. | **target** | [**BigDecimal**](BigDecimal.md) | The target value to complete the achievement. | diff --git a/docs/InlineResponse200.md b/docs/InlineResponse200.md index b91a6717..2f5a9a3d 100644 --- a/docs/InlineResponse200.md +++ b/docs/InlineResponse200.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | [**List<CustomerProfile>**](CustomerProfile.md) | | diff --git a/docs/InlineResponse2001.md b/docs/InlineResponse2001.md index 63fd5662..6b209555 100644 --- a/docs/InlineResponse2001.md +++ b/docs/InlineResponse2001.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | [**List<AchievementStatusEntry>**](AchievementStatusEntry.md) | | diff --git a/docs/InlineResponse20010.md b/docs/InlineResponse20010.md index e3f25d69..fbe81327 100644 --- a/docs/InlineResponse20010.md +++ b/docs/InlineResponse20010.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | [**List<Coupon>**](Coupon.md) | | diff --git a/docs/InlineResponse20013.md b/docs/InlineResponse20013.md index 69a43ac4..28c9e417 100644 --- a/docs/InlineResponse20013.md +++ b/docs/InlineResponse20013.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | [**List<CampaignGroup>**](CampaignGroup.md) | | diff --git a/docs/InlineResponse20015.md b/docs/InlineResponse20015.md index 80e9704d..7c533913 100644 --- a/docs/InlineResponse20015.md +++ b/docs/InlineResponse20015.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | [**List<LoyaltyProgram>**](LoyaltyProgram.md) | | diff --git a/docs/InlineResponse20016.md b/docs/InlineResponse20016.md index 83a15fbb..0f1a3f5b 100644 --- a/docs/InlineResponse20016.md +++ b/docs/InlineResponse20016.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | [**List<LoyaltyDashboardData>**](LoyaltyDashboardData.md) | | diff --git a/docs/InlineResponse2002.md b/docs/InlineResponse2002.md index e6049688..fbeb9c67 100644 --- a/docs/InlineResponse2002.md +++ b/docs/InlineResponse2002.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | [**List<AchievementProgress>**](AchievementProgress.md) | | diff --git a/docs/InlineResponse20020.md b/docs/InlineResponse20020.md index f6179802..73cf2e6f 100644 --- a/docs/InlineResponse20020.md +++ b/docs/InlineResponse20020.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasMore** | **Boolean** | | [optional] -**totalResultSize** | **Long** | | [optional] +**totalResultSize** | **Integer** | | [optional] **data** | [**List<CollectionWithoutPayload>**](CollectionWithoutPayload.md) | | diff --git a/docs/InlineResponse20023.md b/docs/InlineResponse20023.md index 5dd633aa..cf263cd4 100644 --- a/docs/InlineResponse20023.md +++ b/docs/InlineResponse20023.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | [**List<CampaignAnalytics>**](CampaignAnalytics.md) | | diff --git a/docs/InlineResponse20024.md b/docs/InlineResponse20024.md index 53aee5a1..3069eab1 100644 --- a/docs/InlineResponse20024.md +++ b/docs/InlineResponse20024.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | [optional] +**totalResultSize** | **Integer** | | [optional] **hasMore** | **Boolean** | | [optional] **data** | [**List<ApplicationCustomer>**](ApplicationCustomer.md) | | diff --git a/docs/InlineResponse20025.md b/docs/InlineResponse20025.md index 5ef800ec..40220f63 100644 --- a/docs/InlineResponse20025.md +++ b/docs/InlineResponse20025.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasMore** | **Boolean** | | [optional] -**totalResultSize** | **Long** | | [optional] +**totalResultSize** | **Integer** | | [optional] **data** | [**List<ApplicationCustomer>**](ApplicationCustomer.md) | | diff --git a/docs/InlineResponse20026.md b/docs/InlineResponse20026.md index d783ea33..a598d4f5 100644 --- a/docs/InlineResponse20026.md +++ b/docs/InlineResponse20026.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasMore** | **Boolean** | | [optional] -**totalResultSize** | **Long** | | [optional] +**totalResultSize** | **Integer** | | [optional] **data** | [**List<CustomerProfile>**](CustomerProfile.md) | | diff --git a/docs/InlineResponse20031.md b/docs/InlineResponse20031.md index 7312e701..8c8fad3b 100644 --- a/docs/InlineResponse20031.md +++ b/docs/InlineResponse20031.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | **List<String>** | | diff --git a/docs/InlineResponse20032.md b/docs/InlineResponse20032.md index a727b244..b04d3548 100644 --- a/docs/InlineResponse20032.md +++ b/docs/InlineResponse20032.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasMore** | **Boolean** | | [optional] -**totalResultSize** | **Long** | | [optional] +**totalResultSize** | **Integer** | | [optional] **data** | [**List<Audience>**](Audience.md) | | diff --git a/docs/InlineResponse20035.md b/docs/InlineResponse20035.md index 4f0dfdf4..aa4c8bd3 100644 --- a/docs/InlineResponse20035.md +++ b/docs/InlineResponse20035.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasMore** | **Boolean** | | [optional] -**totalResultSize** | **Long** | | [optional] +**totalResultSize** | **Integer** | | [optional] **data** | [**List<ApplicationReferee>**](ApplicationReferee.md) | | diff --git a/docs/InlineResponse20036.md b/docs/InlineResponse20036.md index 4fbbf04d..c35fa228 100644 --- a/docs/InlineResponse20036.md +++ b/docs/InlineResponse20036.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | [**List<Attribute>**](Attribute.md) | | diff --git a/docs/InlineResponse20037.md b/docs/InlineResponse20037.md index f7e3566a..ff316f17 100644 --- a/docs/InlineResponse20037.md +++ b/docs/InlineResponse20037.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasMore** | **Boolean** | | [optional] -**totalResultSize** | **Long** | | [optional] +**totalResultSize** | **Integer** | | [optional] **data** | [**List<CatalogItem>**](CatalogItem.md) | | diff --git a/docs/InlineResponse20038.md b/docs/InlineResponse20038.md index 807b6eb1..2c337da8 100644 --- a/docs/InlineResponse20038.md +++ b/docs/InlineResponse20038.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | [**List<AccountAdditionalCost>**](AccountAdditionalCost.md) | | diff --git a/docs/InlineResponse20039.md b/docs/InlineResponse20039.md index df470b34..88c8ef31 100644 --- a/docs/InlineResponse20039.md +++ b/docs/InlineResponse20039.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | [**List<WebhookWithOutgoingIntegrationDetails>**](WebhookWithOutgoingIntegrationDetails.md) | | diff --git a/docs/InlineResponse20040.md b/docs/InlineResponse20040.md index b3860e5b..2c3f8170 100644 --- a/docs/InlineResponse20040.md +++ b/docs/InlineResponse20040.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | [**List<WebhookActivationLogEntry>**](WebhookActivationLogEntry.md) | | diff --git a/docs/InlineResponse20041.md b/docs/InlineResponse20041.md index 396d94c9..0b439bc3 100644 --- a/docs/InlineResponse20041.md +++ b/docs/InlineResponse20041.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | [**List<WebhookLogEntry>**](WebhookLogEntry.md) | | diff --git a/docs/InlineResponse20042.md b/docs/InlineResponse20042.md index 56ff961a..288c66e5 100644 --- a/docs/InlineResponse20042.md +++ b/docs/InlineResponse20042.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | [**List<EventType>**](EventType.md) | | diff --git a/docs/InlineResponse20043.md b/docs/InlineResponse20043.md index 4d69f414..2fa864b7 100644 --- a/docs/InlineResponse20043.md +++ b/docs/InlineResponse20043.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | [**List<User>**](User.md) | | diff --git a/docs/InlineResponse20044.md b/docs/InlineResponse20044.md index 5af1b6d0..5cb71ae6 100644 --- a/docs/InlineResponse20044.md +++ b/docs/InlineResponse20044.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | [optional] +**totalResultSize** | **Integer** | | [optional] **hasMore** | **Boolean** | | [optional] **data** | [**List<Change>**](Change.md) | | diff --git a/docs/InlineResponse20045.md b/docs/InlineResponse20045.md index 3712756c..c909fc95 100644 --- a/docs/InlineResponse20045.md +++ b/docs/InlineResponse20045.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | [**List<Export>**](Export.md) | | diff --git a/docs/InlineResponse20046.md b/docs/InlineResponse20046.md index 20110f99..4571d938 100644 --- a/docs/InlineResponse20046.md +++ b/docs/InlineResponse20046.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | [**List<RoleV2>**](RoleV2.md) | | diff --git a/docs/InlineResponse20047.md b/docs/InlineResponse20047.md index c994c7d7..d151232d 100644 --- a/docs/InlineResponse20047.md +++ b/docs/InlineResponse20047.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasMore** | **Boolean** | | [optional] -**totalResultSize** | **Long** | | [optional] +**totalResultSize** | **Integer** | | [optional] **data** | [**List<Store>**](Store.md) | | diff --git a/docs/InlineResponse20048.md b/docs/InlineResponse20048.md index c7e4b31e..e614c01b 100644 --- a/docs/InlineResponse20048.md +++ b/docs/InlineResponse20048.md @@ -6,8 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hasMore** | **Boolean** | | [optional] -**data** | [**List<Achievement>**](Achievement.md) | | +**data** | [**List<ListCampaignStoreBudgets>**](ListCampaignStoreBudgets.md) | | [optional] diff --git a/docs/InlineResponse20049.md b/docs/InlineResponse20049.md index 6e71e2ee..11e9d0a2 100644 --- a/docs/InlineResponse20049.md +++ b/docs/InlineResponse20049.md @@ -6,8 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hasMore** | **Boolean** | | -**data** | [**List<AchievementProgressWithDefinition>**](AchievementProgressWithDefinition.md) | | +**data** | [**List<SummaryCampaignStoreBudget>**](SummaryCampaignStoreBudget.md) | | [optional] diff --git a/docs/InlineResponse20050.md b/docs/InlineResponse20050.md new file mode 100644 index 00000000..eca147aa --- /dev/null +++ b/docs/InlineResponse20050.md @@ -0,0 +1,13 @@ + + +# InlineResponse20050 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hasMore** | **Boolean** | | [optional] +**data** | [**List<Achievement>**](Achievement.md) | | + + + diff --git a/docs/InlineResponse20051.md b/docs/InlineResponse20051.md new file mode 100644 index 00000000..836b7a79 --- /dev/null +++ b/docs/InlineResponse20051.md @@ -0,0 +1,13 @@ + + +# InlineResponse20051 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hasMore** | **Boolean** | | +**data** | [**List<AchievementProgressWithDefinition>**](AchievementProgressWithDefinition.md) | | + + + diff --git a/docs/InlineResponse2007.md b/docs/InlineResponse2007.md index 9eb0b785..bc41ed7b 100644 --- a/docs/InlineResponse2007.md +++ b/docs/InlineResponse2007.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | [**List<Application>**](Application.md) | | diff --git a/docs/InlineResponse2008.md b/docs/InlineResponse2008.md index ad294e9b..30e0574d 100644 --- a/docs/InlineResponse2008.md +++ b/docs/InlineResponse2008.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | [**List<Campaign>**](Campaign.md) | | diff --git a/docs/InlineResponse2009.md b/docs/InlineResponse2009.md index 9f44a248..51f8fdf8 100644 --- a/docs/InlineResponse2009.md +++ b/docs/InlineResponse2009.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | [**List<Ruleset>**](Ruleset.md) | | diff --git a/docs/InlineResponse201.md b/docs/InlineResponse201.md index 13137f39..814dcb6c 100644 --- a/docs/InlineResponse201.md +++ b/docs/InlineResponse201.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **Long** | | +**totalResultSize** | **Integer** | | **data** | [**List<Referral>**](Referral.md) | | diff --git a/docs/IntegrationApi.md b/docs/IntegrationApi.md index 0cbf44e3..7e2800c9 100644 --- a/docs/IntegrationApi.md +++ b/docs/IntegrationApi.md @@ -372,7 +372,7 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Long audienceId = 56L; // Long | The ID of the audience. + Integer audienceId = 56; // Integer | The ID of the audience. try { apiInstance.deleteAudienceMembershipsV2(audienceId); } catch (ApiException e) { @@ -391,7 +391,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audienceId** | **Long**| The ID of the audience. | + **audienceId** | **Integer**| The ID of the audience. | ### Return type cool @@ -445,7 +445,7 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Long audienceId = 56L; // Long | The ID of the audience. + Integer audienceId = 56; // Integer | The ID of the audience. try { apiInstance.deleteAudienceV2(audienceId); } catch (ApiException e) { @@ -464,7 +464,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audienceId** | **Long**| The ID of the audience. | + **audienceId** | **Integer**| The ID of the audience. | ### Return type cool @@ -668,7 +668,7 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. GenerateLoyaltyCard body = new GenerateLoyaltyCard(); // GenerateLoyaltyCard | body try { LoyaltyCard result = apiInstance.generateLoyaltyCard(loyaltyProgramId, body); @@ -689,7 +689,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **body** | [**GenerateLoyaltyCard**](GenerateLoyaltyCard.md)| body | ### Return type cool @@ -745,12 +745,12 @@ public class Example { IntegrationApi apiInstance = new IntegrationApi(defaultClient); String integrationId = "integrationId_example"; // String | The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. - Long achievementId = 56L; // Long | The achievement identifier. + Integer achievementId = 56; // Integer | The achievement identifier. List progressStatus = Arrays.asList(); // List | Filter by customer progress status in the achievement. OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Timestamp that filters the results to only contain achievements created on or after the start date. OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Timestamp that filters the results to only contain achievements created before or on the end date. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. try { InlineResponse2002 result = apiInstance.getCustomerAchievementHistory(integrationId, achievementId, progressStatus, startDate, endDate, pageSize, skip); System.out.println(result); @@ -771,12 +771,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **integrationId** | **String**| The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. | - **achievementId** | **Long**| The achievement identifier. | + **achievementId** | **Integer**| The achievement identifier. | **progressStatus** | [**List<String>**](String.md)| Filter by customer progress status in the achievement. | [optional] [enum: inprogress, completed, expired] **startDate** | **OffsetDateTime**| Timestamp that filters the results to only contain achievements created on or after the start date. | [optional] **endDate** | **OffsetDateTime**| Timestamp that filters the results to only contain achievements created before or on the end date. | [optional] - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] ### Return type cool @@ -836,8 +836,8 @@ public class Example { List achievementIds = Arrays.asList(); // List | Filter by one or more Achievement IDs, separated by a comma. **Note:** If no achievements are specified, data for all the achievements in the Application is returned. List achievementStatus = Arrays.asList(); // List | Filter by status of the achievement. **Note:** If the achievement status is not specified, only data for all active achievements in the Application is returned. List currentProgressStatus = Arrays.asList(); // List | Filter by customer progress status in the achievement. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. try { InlineResponse2001 result = apiInstance.getCustomerAchievements(integrationId, campaignIds, achievementIds, achievementStatus, currentProgressStatus, pageSize, skip); System.out.println(result); @@ -862,8 +862,8 @@ Name | Type | Description | Notes **achievementIds** | [**List<String>**](String.md)| Filter by one or more Achievement IDs, separated by a comma. **Note:** If no achievements are specified, data for all the achievements in the Application is returned. | [optional] **achievementStatus** | [**List<String>**](String.md)| Filter by status of the achievement. **Note:** If the achievement status is not specified, only data for all active achievements in the Application is returned. | [optional] [enum: active, scheduled] **currentProgressStatus** | [**List<String>**](String.md)| Filter by customer progress status in the achievement. | [optional] [enum: inprogress, completed, not_started] - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] ### Return type cool @@ -1078,7 +1078,7 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String integrationId = "integrationId_example"; // String | The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data. @@ -1103,7 +1103,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **integrationId** | **String**| The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. | **endDate** | **OffsetDateTime**| Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] **subledgerId** | **String**| The ID of the subledger by which we filter the data. | [optional] @@ -1163,7 +1163,7 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. List subledgerId = Arrays.asList(); // List | Filter results by one or more subledger IDs. Must be exact match. @@ -1186,7 +1186,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | **endDate** | **OffsetDateTime**| Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] **subledgerId** | [**List<String>**](String.md)| Filter results by one or more subledger IDs. Must be exact match. | [optional] @@ -1244,12 +1244,12 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. String status = "active"; // String | Filter points based on their status. List subledgerId = Arrays.asList(); // List | Filter results by one or more subledger IDs. Must be exact match. - Long pageSize = 50lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 50; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. try { InlineResponse2005 result = apiInstance.getLoyaltyCardPoints(loyaltyProgramId, loyaltyCardId, status, subledgerId, pageSize, skip); System.out.println(result); @@ -1269,12 +1269,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | **status** | **String**| Filter points based on their status. | [optional] [default to active] [enum: active, pending, expired] **subledgerId** | [**List<String>**](String.md)| Filter results by one or more subledger IDs. Must be exact match. | [optional] - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 50l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] ### Return type cool @@ -1329,14 +1329,14 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. List subledgerId = Arrays.asList(); // List | Filter results by one or more subledger IDs. Must be exact match. String loyaltyTransactionType = "loyaltyTransactionType_example"; // String | Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - Long pageSize = 50lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 50; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. try { InlineResponse2003 result = apiInstance.getLoyaltyCardTransactions(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip); System.out.println(result); @@ -1356,14 +1356,14 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | **subledgerId** | [**List<String>**](String.md)| Filter results by one or more subledger IDs. Must be exact match. | [optional] **loyaltyTransactionType** | **String**| Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. | [optional] [enum: manual, session, import] **startDate** | **OffsetDateTime**| Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] **endDate** | **OffsetDateTime**| Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 50l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] ### Return type cool @@ -1418,12 +1418,12 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String integrationId = "integrationId_example"; // String | The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. String status = "active"; // String | Filter points based on their status. String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data. - Long pageSize = 50lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 50; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. try { InlineResponse2006 result = apiInstance.getLoyaltyProgramProfilePoints(loyaltyProgramId, integrationId, status, subledgerId, pageSize, skip); System.out.println(result); @@ -1443,12 +1443,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **integrationId** | **String**| The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. | **status** | **String**| Filter points based on their status. | [optional] [default to active] [enum: active, pending, expired] **subledgerId** | **String**| The ID of the subledger by which we filter the data. | [optional] - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 50l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] ### Return type cool @@ -1503,14 +1503,14 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String integrationId = "integrationId_example"; // String | The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data. String loyaltyTransactionType = "loyaltyTransactionType_example"; // String | Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - Long pageSize = 50lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 50; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. try { InlineResponse2004 result = apiInstance.getLoyaltyProgramProfileTransactions(loyaltyProgramId, integrationId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip); System.out.println(result); @@ -1530,14 +1530,14 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **integrationId** | **String**| The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. | **subledgerId** | **String**| The ID of the subledger by which we filter the data. | [optional] **loyaltyTransactionType** | **String**| Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. | [optional] [enum: manual, session, import] **startDate** | **OffsetDateTime**| Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] **endDate** | **OffsetDateTime**| Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 50l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] ### Return type cool @@ -1667,7 +1667,7 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. LoyaltyCardRegistration body = new LoyaltyCardRegistration(); // LoyaltyCardRegistration | body try { @@ -1689,7 +1689,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | **body** | [**LoyaltyCardRegistration**](LoyaltyCardRegistration.md)| body | @@ -1898,7 +1898,7 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Long catalogId = 56L; // Long | The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. + Integer catalogId = 56; // Integer | The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. CatalogSyncRequest body = new CatalogSyncRequest(); // CatalogSyncRequest | body try { Catalog result = apiInstance.syncCatalog(catalogId, body); @@ -1919,7 +1919,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **catalogId** | **Long**| The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. | + **catalogId** | **Integer**| The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. | **body** | [**CatalogSyncRequest**](CatalogSyncRequest.md)| body | ### Return type cool @@ -1950,7 +1950,7 @@ Name | Type | Description | Notes Track event -Triggers a custom event. To use this endpoint: 1. Define a [custom event](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) in the Campaign Manager. 1. Update or create a rule to check for this event. 1. Trigger the event with this endpoint. After you have successfully sent an event to Talon.One, you can list the received events in the **Events** view in the Campaign Manager. Talon.One also offers a set of [built-in events](https://docs.talon.one/docs/dev/concepts/entities/events). Ensure you do not create a custom event when you can use a built-in event. For example, use this endpoint to trigger an event when a customer shares a link to a product. See the [tutorial](https://docs.talon.one/docs/product/tutorials/referrals/incentivizing-product-link-sharing). <div class=\"redoc-section\"> <p class=\"title\">Important</p> 1. `profileId` is required even though the schema does not say it. 1. If the customer profile ID is new, a new profile is automatically created but the `customer_profile_created` [built-in event ](https://docs.talon.one/docs/dev/concepts/entities/events) is **not** triggered. 1. We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> +Triggers a custom event. To use this endpoint: 1. Define a [custom event](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) in the Campaign Manager. 1. Update or create a rule to check for this event. 1. Trigger the event with this endpoint. After you have successfully sent an event to Talon.One, you can list the received events in the **Events** view in the Campaign Manager. Talon.One also offers a set of [built-in events](https://docs.talon.one/docs/dev/concepts/entities/events). Ensure you do not create a custom event when you can use a built-in event. For example, use this endpoint to trigger an event when a customer shares a link to a product. See the [tutorial](https://docs.talon.one/docs/product/tutorials/referrals/incentivizing-product-link-sharing). <div class=\"redoc-section\"> <p class=\"title\">Important</p> 1. `profileId` is required even though the schema does not specify it. 1. If the customer profile ID is new, a new profile is automatically created but the `customer_profile_created` [built-in event ](https://docs.talon.one/docs/dev/concepts/entities/events) is **not** triggered. 1. We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). 1. [Archived campaigns](https://docs.talon.one/docs/product/campaigns/managing-campaigns#archiving-a-campaign) are not considered in rule evaluation. </div> ### Example @@ -2056,7 +2056,7 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Long audienceId = 56L; // Long | The ID of the audience. + Integer audienceId = 56; // Integer | The ID of the audience. Object body = null; // Object | body try { apiInstance.updateAudienceCustomersAttributes(audienceId, body); @@ -2076,7 +2076,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audienceId** | **Long**| The ID of the audience. | + **audienceId** | **Integer**| The ID of the audience. | **body** | **Object**| body | ### Return type cool @@ -2131,7 +2131,7 @@ public class Example { //api_key_v1.setApiKeyPrefix("Token"); IntegrationApi apiInstance = new IntegrationApi(defaultClient); - Long audienceId = 56L; // Long | The ID of the audience. + Integer audienceId = 56; // Integer | The ID of the audience. UpdateAudience body = new UpdateAudience(); // UpdateAudience | body try { Audience result = apiInstance.updateAudienceV2(audienceId, body); @@ -2152,7 +2152,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audienceId** | **Long**| The ID of the audience. | + **audienceId** | **Integer**| The ID of the audience. | **body** | [**UpdateAudience**](UpdateAudience.md)| body | ### Return type cool @@ -2256,7 +2256,7 @@ null (empty response body) Update customer profile -Update or create a [Customer Profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles). This endpoint triggers the Rule Builder. You can use this endpoint to: - Set attributes on the given customer profile. Ensure you create the attributes in the Campaign Manager, first. - Modify the audience the customer profile is a member of. <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer profile returns a response with the requested integration state. - You can use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> +Update or create a [Customer Profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles). This endpoint triggers the Rule Builder. You can use this endpoint to: - Set attributes on the given customer profile. Ensure you create the attributes in the Campaign Manager, first. - Modify the audience the customer profile is a member of. **Note:** [Archived campaigns](https://docs.talon.one/docs/product/campaigns/managing-campaigns#archiving-a-campaign) are not considered in rule evaluation when `runRuleEngine` is `true`. <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer profile returns a response with the requested integration state. - You can use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> ### Example @@ -2413,7 +2413,7 @@ Name | Type | Description | Notes Update customer session -Update or create a [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). The endpoint responds with the potential promotion rule [effects](https://docs.talon.one/docs/dev/integration-api/api-effects) that match the current cart. For example, use this endpoint to share the contents of a customer's cart with Talon.One. **Note:** The currency for the session and the cart items in the session is the currency set for the Application that owns this session. ### Session management To use this endpoint, start by learning about [customer sessions](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions) and their states and refer to the `state` parameter documentation the request body schema docs below. ### Sessions and customer profiles - To link a session to a customer profile, set the `profileId` parameter in the request body to a customer profile's `integrationId`. - While you can create an anonymous session with `profileId=\"\"`, we recommend you use a guest ID instead. - A profile can be linked to simultaneous sessions in different Applications. Either: - Use unique session integration IDs or, - Use the same session integration ID across all of the Applications. **Note:** If the specified profile does not exist, an empty profile is **created automatically**. You can update it with [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2). <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer session returns a response with the new integration state. Use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> For more information, see: - The introductory video in [Getting started](https://docs.talon.one/docs/dev/getting-started/overview). - The [integration tutorial](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one). +Update or create a [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). The endpoint responds with the potential promotion rule [effects](https://docs.talon.one/docs/dev/integration-api/api-effects) that match the current cart. For example, use this endpoint to share the contents of a customer's cart with Talon.One. **Note:** - The currency for the session and the cart items in it is the currency set for the Application linked to this session. - [Archived campaigns](https://docs.talon.one/docs/product/campaigns/managing-campaigns#archiving-a-campaign) are not considered for rule evaluation. ### Session management To use this endpoint, start by learning about [customer sessions](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions) and their states and refer to the `state` parameter documentation the request body schema docs below. ### Sessions and customer profiles - To link a session to a customer profile, set the `profileId` parameter in the request body to a customer profile's `integrationId`. - While you can create an anonymous session with `profileId=\"\"`, we recommend you use a guest ID instead. - A profile can be linked to simultaneous sessions in different Applications. Either: - Use unique session integration IDs or, - Use the same session integration ID across all of the Applications. **Note:** If the specified profile does not exist, an empty profile is **created automatically**. You can update it with [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2). <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer session returns a response with the new integration state. Use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> For more information, see: - The introductory video in [Getting started](https://docs.talon.one/docs/dev/getting-started/overview). - The [integration tutorial](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one). ### Example diff --git a/docs/IntegrationCoupon.md b/docs/IntegrationCoupon.md index 1aa94805..c0fe85be 100644 --- a/docs/IntegrationCoupon.md +++ b/docs/IntegrationCoupon.md @@ -6,29 +6,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | -**created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**campaignId** | **Long** | The ID of the campaign that owns this entity. | +**id** | **Integer** | The internal ID of the coupon. | +**created** | [**OffsetDateTime**](OffsetDateTime.md) | The time the coupon was created. | +**campaignId** | **Integer** | The ID of the campaign that owns this entity. | **value** | **String** | The coupon code. | -**usageLimit** | **Long** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | +**usageLimit** | **Integer** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | **discountLimit** | [**BigDecimal**](BigDecimal.md) | The total discount value that the code can give. Typically used to represent a gift card value. | [optional] -**reservationLimit** | **Long** | The number of reservations that can be made with this coupon code. | [optional] +**reservationLimit** | **Integer** | The number of reservations that can be made with this coupon code. | [optional] **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the coupon becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the coupon. Coupon never expires if this is omitted. | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | Limits configuration for a coupon. These limits will override the limits set from the campaign. **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. | [optional] -**usageCounter** | **Long** | The number of times the coupon has been successfully redeemed. | +**usageCounter** | **Integer** | The number of times the coupon has been successfully redeemed. | **discountCounter** | [**BigDecimal**](BigDecimal.md) | The amount of discounts given on rules redeeming this coupon. Only usable if a coupon discount budget was set for this coupon. | [optional] **discountRemainder** | [**BigDecimal**](BigDecimal.md) | The remaining discount this coupon can give. | [optional] **reservationCounter** | [**BigDecimal**](BigDecimal.md) | The number of times this coupon has been reserved. | [optional] **attributes** | [**Object**](.md) | Custom attributes associated with this coupon. | [optional] -**referralId** | **Long** | The integration ID of the referring customer (if any) for whom this coupon was created as an effect. | [optional] +**referralId** | **Integer** | The integration ID of the referring customer (if any) for whom this coupon was created as an effect. | [optional] **recipientIntegrationId** | **String** | The Integration ID of the customer that is allowed to redeem this coupon. | [optional] -**importId** | **Long** | The ID of the Import which created this coupon. | [optional] +**importId** | **Integer** | The ID of the Import which created this coupon. | [optional] **reservation** | **Boolean** | Defines the reservation type: - `true`: The coupon can be reserved for multiple customers. - `false`: The coupon can be reserved only for one customer. It is a personal code. | [optional] **batchId** | **String** | The id of the batch the coupon belongs to. | [optional] **isReservationMandatory** | **Boolean** | An indication of whether the code can be redeemed only if it has been reserved first. | [optional] **implicitlyReserved** | **Boolean** | An indication of whether the coupon is implicitly reserved for all customers. | [optional] -**profileRedemptionCount** | **Long** | The number of times the coupon was redeemed by the profile. | +**profileRedemptionCount** | **Integer** | The number of times the coupon was redeemed by the profile. | diff --git a/docs/IntegrationCustomerProfileAudienceRequest.md b/docs/IntegrationCustomerProfileAudienceRequest.md new file mode 100644 index 00000000..1db44b7e --- /dev/null +++ b/docs/IntegrationCustomerProfileAudienceRequest.md @@ -0,0 +1,12 @@ + + +# IntegrationCustomerProfileAudienceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**List<IntegrationCustomerProfileAudienceRequestItem>**](IntegrationCustomerProfileAudienceRequestItem.md) | | [optional] + + + diff --git a/docs/IntegrationCustomerProfileAudienceRequestItem.md b/docs/IntegrationCustomerProfileAudienceRequestItem.md new file mode 100644 index 00000000..86a64460 --- /dev/null +++ b/docs/IntegrationCustomerProfileAudienceRequestItem.md @@ -0,0 +1,23 @@ + + +# IntegrationCustomerProfileAudienceRequestItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | [**ActionEnum**](#ActionEnum) | Defines the action to perform: - `add`: Adds the customer profile to the audience. **Note**: If the customer profile does not exist, it will be created. The profile will not be visible in any Application until a session or profile update is received for that profile. - `delete`: Removes the customer profile from the audience. | +**profileIntegrationId** | **String** | The ID of this customer profile in the third-party integration. | +**integrationId** | **String** | The ID of this audience in the third-party integration. | + + + +## Enum: ActionEnum + +Name | Value +---- | ----- +ADD | "add" +DELETE | "delete" + + + diff --git a/docs/IntegrationEventV2Request.md b/docs/IntegrationEventV2Request.md index e9799354..ad4d3730 100644 --- a/docs/IntegrationEventV2Request.md +++ b/docs/IntegrationEventV2Request.md @@ -8,9 +8,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **profileId** | **String** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | [optional] **storeIntegrationId** | **String** | The integration ID of the store. You choose this ID when you create a store. | [optional] -**evaluableCampaignIds** | **List<Long>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] +**evaluableCampaignIds** | **List<Integer>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] **type** | **String** | A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager. | **attributes** | [**Object**](.md) | Arbitrary additional JSON properties associated with the event. They must be created in the Campaign Manager before setting them with this property. See [creating custom attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute). | [optional] +**loyaltyCards** | **List<String>** | Identifier of the loyalty card used during this event. | [optional] **responseContent** | [**List<ResponseContentEnum>**](#List<ResponseContentEnum>) | Optional list of requested information to be present on the response related to the tracking custom event. | [optional] diff --git a/docs/InventoryCoupon.md b/docs/InventoryCoupon.md index e8ab92e2..69ec79b0 100644 --- a/docs/InventoryCoupon.md +++ b/docs/InventoryCoupon.md @@ -6,29 +6,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | -**created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**campaignId** | **Long** | The ID of the campaign that owns this entity. | +**id** | **Integer** | The internal ID of the coupon. | +**created** | [**OffsetDateTime**](OffsetDateTime.md) | The time the coupon was created. | +**campaignId** | **Integer** | The ID of the campaign that owns this entity. | **value** | **String** | The coupon code. | -**usageLimit** | **Long** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | +**usageLimit** | **Integer** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | **discountLimit** | [**BigDecimal**](BigDecimal.md) | The total discount value that the code can give. Typically used to represent a gift card value. | [optional] -**reservationLimit** | **Long** | The number of reservations that can be made with this coupon code. | [optional] +**reservationLimit** | **Integer** | The number of reservations that can be made with this coupon code. | [optional] **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the coupon becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the coupon. Coupon never expires if this is omitted. | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | Limits configuration for a coupon. These limits will override the limits set from the campaign. **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. | [optional] -**usageCounter** | **Long** | The number of times the coupon has been successfully redeemed. | +**usageCounter** | **Integer** | The number of times the coupon has been successfully redeemed. | **discountCounter** | [**BigDecimal**](BigDecimal.md) | The amount of discounts given on rules redeeming this coupon. Only usable if a coupon discount budget was set for this coupon. | [optional] **discountRemainder** | [**BigDecimal**](BigDecimal.md) | The remaining discount this coupon can give. | [optional] **reservationCounter** | [**BigDecimal**](BigDecimal.md) | The number of times this coupon has been reserved. | [optional] **attributes** | [**Object**](.md) | Custom attributes associated with this coupon. | [optional] -**referralId** | **Long** | The integration ID of the referring customer (if any) for whom this coupon was created as an effect. | [optional] +**referralId** | **Integer** | The integration ID of the referring customer (if any) for whom this coupon was created as an effect. | [optional] **recipientIntegrationId** | **String** | The Integration ID of the customer that is allowed to redeem this coupon. | [optional] -**importId** | **Long** | The ID of the Import which created this coupon. | [optional] +**importId** | **Integer** | The ID of the Import which created this coupon. | [optional] **reservation** | **Boolean** | Defines the reservation type: - `true`: The coupon can be reserved for multiple customers. - `false`: The coupon can be reserved only for one customer. It is a personal code. | [optional] **batchId** | **String** | The id of the batch the coupon belongs to. | [optional] **isReservationMandatory** | **Boolean** | An indication of whether the code can be redeemed only if it has been reserved first. | [optional] **implicitlyReserved** | **Boolean** | An indication of whether the coupon is implicitly reserved for all customers. | [optional] -**profileRedemptionCount** | **Long** | The number of times the coupon was redeemed by the profile. | +**profileRedemptionCount** | **Integer** | The number of times the coupon was redeemed by the profile. | **state** | **String** | Can be: - `active`: The coupon can be used. It is a reserved coupon that is not pending, used, or expired, and it has a non-exhausted limit counter. **Note:** This coupon state is returned for [scheduled campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule), but the coupon cannot be used until the campaign is **running**. - `used`: The coupon has been redeemed and cannot be used again. It is not pending and has reached its redemption limit or was redeemed by the profile before expiration. - `expired`: The coupon was never redeemed, and it is now expired. It is non-pending, non-active, and non-used by the profile. - `pending`: The coupon will be usable in the future. - `disabled`: The coupon is part of a non-active campaign. | diff --git a/docs/InventoryReferral.md b/docs/InventoryReferral.md index 7cdd72bd..8aef733d 100644 --- a/docs/InventoryReferral.md +++ b/docs/InventoryReferral.md @@ -6,18 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the referral code becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the referral code. Referral never expires if this is omitted. | [optional] -**usageLimit** | **Long** | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. | -**campaignId** | **Long** | ID of the campaign from which the referral received the referral code. | +**usageLimit** | **Integer** | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. | +**campaignId** | **Integer** | ID of the campaign from which the referral received the referral code. | **advocateProfileIntegrationId** | **String** | The Integration ID of the Advocate's Profile. | **friendProfileIntegrationId** | **String** | An optional Integration ID of the Friend's Profile. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this item. | [optional] -**importId** | **Long** | The ID of the Import which created this referral. | [optional] +**importId** | **Integer** | The ID of the Import which created this referral. | [optional] **code** | **String** | The referral code. | -**usageCounter** | **Long** | The number of times this referral code has been successfully used. | +**usageCounter** | **Integer** | The number of times this referral code has been successfully used. | **batchId** | **String** | The ID of the batch the referrals belong to. | [optional] **referredCustomers** | **List<String>** | An array of referred customers. | diff --git a/docs/ItemAttribute.md b/docs/ItemAttribute.md index c23d1919..c9f4b3c6 100644 --- a/docs/ItemAttribute.md +++ b/docs/ItemAttribute.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attributeid** | **Long** | The ID of the attribute of the item. | +**attributeid** | **Integer** | The ID of the attribute of the item. | **name** | **String** | The name of the attribute. | **value** | [**Object**](.md) | The value of the attribute. | diff --git a/docs/LedgerEntry.md b/docs/LedgerEntry.md index bd18bd5e..2e12a338 100644 --- a/docs/LedgerEntry.md +++ b/docs/LedgerEntry.md @@ -7,16 +7,16 @@ Entry in the point ledger. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **profileId** | **String** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | -**accountId** | **Long** | The ID of the Talon.One account that owns this profile. | -**loyaltyProgramId** | **Long** | ID of the ledger. | -**eventId** | **Long** | ID of the related event. | -**amount** | **Long** | Amount of loyalty points. | +**accountId** | **Integer** | The ID of the Talon.One account that owns this profile. | +**loyaltyProgramId** | **Integer** | ID of the ledger. | +**eventId** | **Integer** | ID of the related event. | +**amount** | **Integer** | Amount of loyalty points. | **reason** | **String** | reason for awarding/deducting points. | **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the points. | -**referenceId** | **Long** | The ID of the balancing ledgerEntry. | [optional] +**referenceId** | **Integer** | The ID of the balancing ledgerEntry. | [optional] diff --git a/docs/LedgerInfo.md b/docs/LedgerInfo.md index 7e82e266..95edb3d5 100644 --- a/docs/LedgerInfo.md +++ b/docs/LedgerInfo.md @@ -9,12 +9,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **currentBalance** | [**BigDecimal**](BigDecimal.md) | Sum of currently active points. | **pendingBalance** | [**BigDecimal**](BigDecimal.md) | Sum of pending points. | -**negativeBalance** | [**BigDecimal**](BigDecimal.md) | Sum of negative points. This implies that `currentBalance` is `0`. | +**negativeBalance** | [**BigDecimal**](BigDecimal.md) | Sum of negative points. This implies that `currentBalance` is `0`. | [optional] **expiredBalance** | [**BigDecimal**](BigDecimal.md) | **DEPRECATED** Value is shown as 0. | **spentBalance** | [**BigDecimal**](BigDecimal.md) | **DEPRECATED** Value is shown as 0. | **tentativeCurrentBalance** | [**BigDecimal**](BigDecimal.md) | The tentative points balance, reflecting the `currentBalance` and all point additions and deductions within the current open customer session. When the session is closed, the effects are applied and the `currentBalance` is updated to this value. **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. | **tentativePendingBalance** | [**BigDecimal**](BigDecimal.md) | The tentative points balance, reflecting the `pendingBalance` and all point additions with a future activation date within the current open customer session. When the session is closed, the effects are applied and the `pendingBalance` is updated to this value. **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. | [optional] -**tentativeNegativeBalance** | [**BigDecimal**](BigDecimal.md) | The tentative negative balance after all additions and deductions from the current customer session are applied to `negativeBalance`. When the session is closed, the tentative effects are applied and `negativeBalance` is updated to this value. **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. | +**tentativeNegativeBalance** | [**BigDecimal**](BigDecimal.md) | The tentative negative balance after all additions and deductions from the current customer session are applied to `negativeBalance`. When the session is closed, the tentative effects are applied and `negativeBalance` is updated to this value. **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. | [optional] **currentTier** | [**Tier**](Tier.md) | | [optional] **pointsToNextTier** | [**BigDecimal**](BigDecimal.md) | Points required to move up a tier. | [optional] diff --git a/docs/LedgerPointsEntryIntegrationAPI.md b/docs/LedgerPointsEntryIntegrationAPI.md index df187124..67ac5854 100644 --- a/docs/LedgerPointsEntryIntegrationAPI.md +++ b/docs/LedgerPointsEntryIntegrationAPI.md @@ -7,9 +7,9 @@ Loyalty profile points with start and expiry dates. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | ID of the transaction that adds loyalty points. | +**id** | **Integer** | ID of the transaction that adds loyalty points. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time the loyalty points were added. | -**programId** | **Long** | ID of the loyalty program. | +**programId** | **Integer** | ID of the loyalty program. | **customerSessionId** | **String** | ID of the customer session where points were added. | [optional] **name** | **String** | Name or reason of the transaction that adds loyalty points. | **startDate** | **String** | When points become active. Possible values: - `immediate`: Points are active immediately. - `timestamp value`: Points become active at a given date and time. | diff --git a/docs/LedgerTransactionLogEntryIntegrationAPI.md b/docs/LedgerTransactionLogEntryIntegrationAPI.md index 66a0239e..93a6fa2c 100644 --- a/docs/LedgerTransactionLogEntryIntegrationAPI.md +++ b/docs/LedgerTransactionLogEntryIntegrationAPI.md @@ -8,7 +8,7 @@ Log entry for a given loyalty card transaction. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time the loyalty transaction occurred. | -**programId** | **Long** | ID of the loyalty program. | +**programId** | **Integer** | ID of the loyalty program. | **customerSessionId** | **String** | ID of the customer session where the transaction occurred. | [optional] **type** | [**TypeEnum**](#TypeEnum) | Type of transaction. Possible values: - `addition`: Signifies added points. - `subtraction`: Signifies deducted points. | **name** | **String** | Name or reason of the loyalty ledger transaction. | @@ -16,8 +16,8 @@ Name | Type | Description | Notes **expiryDate** | **String** | Date when points expire. Possible values are: - `unlimited`: Points have no expiration date. - `timestamp value`: Points expire on the given date. | **subledgerId** | **String** | ID of the subledger. | **amount** | [**BigDecimal**](BigDecimal.md) | Amount of loyalty points added or deducted in the transaction. | -**id** | **Long** | ID of the loyalty ledger transaction. | -**rulesetId** | **Long** | The ID of the ruleset containing the rule that triggered this effect. | [optional] +**id** | **Integer** | ID of the loyalty ledger transaction. | +**rulesetId** | **Integer** | The ID of the ruleset containing the rule that triggered this effect. | [optional] **ruleName** | **String** | The name of the rule that triggered this effect. | [optional] **flags** | [**LoyaltyLedgerEntryFlags**](LoyaltyLedgerEntryFlags.md) | | [optional] diff --git a/docs/LimitCounter.md b/docs/LimitCounter.md index 3f6d5b2f..2aa6cf60 100644 --- a/docs/LimitCounter.md +++ b/docs/LimitCounter.md @@ -6,16 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignId** | **Long** | The ID of the campaign that owns this entity. | -**applicationId** | **Long** | The ID of the Application that owns this entity. | -**accountId** | **Long** | The ID of the account that owns this entity. | -**id** | **Long** | Unique ID for this entity. | +**campaignId** | **Integer** | The ID of the campaign that owns this entity. | +**applicationId** | **Integer** | The ID of the Application that owns this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | +**id** | **Integer** | Unique ID for this entity. | **action** | **String** | The limitable action of the limit counter. | -**profileId** | **Long** | The profile ID for which this limit counter is used. | [optional] +**profileId** | **Integer** | The profile ID for which this limit counter is used. | [optional] **profileIntegrationId** | **String** | The profile integration ID for which this limit counter is used. | [optional] -**couponId** | **Long** | The internal coupon ID for which this limit counter is used. | [optional] +**couponId** | **Integer** | The internal coupon ID for which this limit counter is used. | [optional] **couponValue** | **String** | The coupon value for which this limit counter is used. | [optional] -**referralId** | **Long** | The referral ID for which this limit counter is used. | [optional] +**referralId** | **Integer** | The referral ID for which this limit counter is used. | [optional] **referralValue** | **String** | The referral value for which this limit counter is used. | [optional] **identifier** | **String** | The arbitrary identifier for which this limit counter is used. | [optional] **period** | **String** | The time period for which this limit counter is used. | [optional] diff --git a/docs/ListCampaignStoreBudgets.md b/docs/ListCampaignStoreBudgets.md index 31294362..810396ca 100644 --- a/docs/ListCampaignStoreBudgets.md +++ b/docs/ListCampaignStoreBudgets.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **store** | [**ListCampaignStoreBudgetsStore**](ListCampaignStoreBudgetsStore.md) | | -**limit** | **Long** | | +**limit** | **Integer** | | **action** | **String** | | **period** | **String** | | [optional] diff --git a/docs/ListCampaignStoreBudgetsStore.md b/docs/ListCampaignStoreBudgetsStore.md index 562a90a5..2c9718e6 100644 --- a/docs/ListCampaignStoreBudgetsStore.md +++ b/docs/ListCampaignStoreBudgetsStore.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | | +**id** | **Integer** | | **integrationId** | **String** | | **name** | **String** | | diff --git a/docs/LoyaltyCard.md b/docs/LoyaltyCard.md index 29aad0a1..42b3c66e 100644 --- a/docs/LoyaltyCard.md +++ b/docs/LoyaltyCard.md @@ -6,15 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**programID** | **Long** | The ID of the loyalty program that owns this entity. | +**programID** | **Integer** | The ID of the loyalty program that owns this entity. | **programName** | **String** | The integration name of the loyalty program that owns this entity. | [optional] **programTitle** | **String** | The Campaign Manager-displayed name of the loyalty program that owns this entity. | [optional] **status** | **String** | Status of the loyalty card. Can be `active` or `inactive`. | **blockReason** | **String** | Reason for transferring and blocking the loyalty card. | [optional] **identifier** | **String** | The alphanumeric identifier of the loyalty card. | -**usersPerCardLimit** | **Long** | The max amount of customer profiles that can be linked to the card. 0 means unlimited. | +**usersPerCardLimit** | **Integer** | The max amount of customer profiles that can be linked to the card. 0 means unlimited. | **profiles** | [**List<LoyaltyCardProfileRegistration>**](LoyaltyCardProfileRegistration.md) | Integration IDs of the customers profiles linked to the card. | [optional] **ledger** | [**LedgerInfo**](LedgerInfo.md) | | [optional] **subledgers** | [**Map<String, LedgerInfo>**](LedgerInfo.md) | Displays point balances of the card in the subledgers of the loyalty program. | [optional] diff --git a/docs/LoyaltyCardBatch.md b/docs/LoyaltyCardBatch.md index 893f4a2a..832edd26 100644 --- a/docs/LoyaltyCardBatch.md +++ b/docs/LoyaltyCardBatch.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**numberOfCards** | **Long** | Number of loyalty cards in the batch. | +**numberOfCards** | **Integer** | Number of loyalty cards in the batch. | **batchId** | **String** | ID of the loyalty card batch. | [optional] **status** | [**StatusEnum**](#StatusEnum) | Status of the loyalty cards in the batch. | [optional] **cardCodeSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] diff --git a/docs/LoyaltyCardBatchResponse.md b/docs/LoyaltyCardBatchResponse.md index 44af636b..f4df85e8 100644 --- a/docs/LoyaltyCardBatchResponse.md +++ b/docs/LoyaltyCardBatchResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**numberOfCardsGenerated** | **Long** | Number of loyalty cards in the batch. | +**numberOfCardsGenerated** | **Integer** | Number of loyalty cards in the batch. | **batchId** | **String** | ID of the loyalty card batch. | diff --git a/docs/LoyaltyLedgerEntry.md b/docs/LoyaltyLedgerEntry.md index 802bf7c0..e178a70a 100644 --- a/docs/LoyaltyLedgerEntry.md +++ b/docs/LoyaltyLedgerEntry.md @@ -8,18 +8,18 @@ A single row of the ledger, describing one addition or deduction. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created** | [**OffsetDateTime**](OffsetDateTime.md) | | -**programID** | **Long** | | +**programID** | **Integer** | | **customerProfileID** | **String** | | [optional] -**cardID** | **Long** | | [optional] +**cardID** | **Integer** | | [optional] **customerSessionID** | **String** | | [optional] -**eventID** | **Long** | | [optional] +**eventID** | **Integer** | | [optional] **type** | **String** | The type of the ledger transaction. Possible values are: - `addition` - `subtraction` - `expire` - `expiring` (for expiring points ledgers) | **amount** | [**BigDecimal**](BigDecimal.md) | | **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] **name** | **String** | A name referencing the condition or effect that added this entry, or the specific name provided in an API call. | **subLedgerID** | **String** | This specifies if we are adding loyalty points to the main ledger or a subledger. | -**userID** | **Long** | This is the ID of the user who created this entry, if the addition or subtraction was done manually. | [optional] +**userID** | **Integer** | This is the ID of the user who created this entry, if the addition or subtraction was done manually. | [optional] **archived** | **Boolean** | Indicates if the entry belongs to the archived session. | [optional] **flags** | [**LoyaltyLedgerEntryFlags**](LoyaltyLedgerEntryFlags.md) | | [optional] diff --git a/docs/LoyaltyMembership.md b/docs/LoyaltyMembership.md index add677ab..434299dd 100644 --- a/docs/LoyaltyMembership.md +++ b/docs/LoyaltyMembership.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **joined** | [**OffsetDateTime**](OffsetDateTime.md) | The moment in which the loyalty program was joined. | [optional] -**loyaltyProgramId** | **Long** | The ID of the loyalty program belonging to this entity. | +**loyaltyProgramId** | **Integer** | The ID of the loyalty program belonging to this entity. | diff --git a/docs/LoyaltyProgram.md b/docs/LoyaltyProgram.md index 0ffb7abf..1f329587 100644 --- a/docs/LoyaltyProgram.md +++ b/docs/LoyaltyProgram.md @@ -7,15 +7,15 @@ A Loyalty Program Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | The ID of loyalty program. | +**id** | **Integer** | The ID of loyalty program. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **title** | **String** | The display title for the Loyalty Program. | **description** | **String** | Description of our Loyalty Program. | -**subscribedApplications** | **List<Long>** | A list containing the IDs of all applications that are subscribed to this Loyalty Program. | +**subscribedApplications** | **List<Integer>** | A list containing the IDs of all applications that are subscribed to this Loyalty Program. | **defaultValidity** | **String** | The default duration after which new loyalty points should expire. Can be 'unlimited' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. | **defaultPending** | **String** | The default duration of the pending time after which points should be valid. Can be 'immediate' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. | **allowSubledger** | **Boolean** | Indicates if this program supports subledgers inside the program. | -**usersPerCardLimit** | **Long** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional] +**usersPerCardLimit** | **Integer** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional] **sandbox** | **Boolean** | Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type. | **programJoinPolicy** | [**ProgramJoinPolicyEnum**](#ProgramJoinPolicyEnum) | The policy that defines when the customer joins the loyalty program. - `not_join`: The customer does not join the loyalty program but can still earn and spend loyalty points. **Note**: The customer does not have a program join date. - `points_activated`: The customer joins the loyalty program only when their earned loyalty points become active for the first time. - `points_earned`: The customer joins the loyalty program when they earn loyalty points for the first time. | [optional] **tiersExpirationPolicy** | [**TiersExpirationPolicyEnum**](#TiersExpirationPolicyEnum) | The policy that defines how tier expiration, used to reevaluate the customer's current tier, is determined. - `tier_start_date`: The tier expiration is relative to when the customer joined the current tier. - `program_join_date`: The tier expiration is relative to when the customer joined the loyalty program. - `customer_attribute`: The tier expiration is determined by a custom customer attribute. - `absolute_expiration`: The tier is reevaluated at the start of each tier cycle. For this policy, it is required to provide a `tierCycleStartDate`. | [optional] @@ -24,7 +24,7 @@ Name | Type | Description | Notes **tiersDowngradePolicy** | [**TiersDowngradePolicyEnum**](#TiersDowngradePolicyEnum) | The policy that defines how customer tiers are downgraded in the loyalty program after tier reevaluation. - `one_down`: If the customer doesn't have enough points to stay in the current tier, they are downgraded by one tier. - `balance_based`: The customer's tier is reevaluated based on the amount of active points they have at the moment. | [optional] **cardCodeSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **returnPolicy** | [**ReturnPolicyEnum**](#ReturnPolicyEnum) | The policy that defines the rollback of points in case of a partially returned, cancelled, or reopened [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). - `only_pending`: Only pending points can be rolled back. - `within_balance`: Available active points can be rolled back if there aren't enough pending points. The active balance of the customer cannot be negative. - `unlimited`: Allows negative balance without any limit. | [optional] -**accountID** | **Long** | The ID of the Talon.One account that owns this program. | +**accountID** | **Integer** | The ID of the Talon.One account that owns this program. | **name** | **String** | The internal name for the Loyalty Program. This is an immutable value. | **tiers** | [**List<LoyaltyTier>**](LoyaltyTier.md) | The tiers in this loyalty program. | [optional] **timezone** | **String** | A string containing an IANA timezone descriptor. | diff --git a/docs/LoyaltyProgramBalance.md b/docs/LoyaltyProgramBalance.md index ab0dc1d5..0412d30f 100644 --- a/docs/LoyaltyProgramBalance.md +++ b/docs/LoyaltyProgramBalance.md @@ -9,12 +9,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **currentBalance** | [**BigDecimal**](BigDecimal.md) | Sum of currently active points. | **pendingBalance** | [**BigDecimal**](BigDecimal.md) | Sum of pending points. | -**negativeBalance** | [**BigDecimal**](BigDecimal.md) | Sum of negative points. This implies that `currentBalance` is `0`. | +**negativeBalance** | [**BigDecimal**](BigDecimal.md) | Sum of negative points. This implies that `currentBalance` is `0`. | [optional] **expiredBalance** | [**BigDecimal**](BigDecimal.md) | **DEPRECATED** Value is shown as 0. | **spentBalance** | [**BigDecimal**](BigDecimal.md) | **DEPRECATED** Value is shown as 0. | **tentativeCurrentBalance** | [**BigDecimal**](BigDecimal.md) | The tentative points balance, reflecting the `currentBalance` and all point additions and deductions within the current open customer session. When the session is closed, the effects are applied and the `currentBalance` is updated to this value. **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. | **tentativePendingBalance** | [**BigDecimal**](BigDecimal.md) | The tentative points balance, reflecting the `pendingBalance` and all point additions with a future activation date within the current open customer session. When the session is closed, the effects are applied and the `pendingBalance` is updated to this value. **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. | [optional] -**tentativeNegativeBalance** | [**BigDecimal**](BigDecimal.md) | The tentative negative balance after all additions and deductions from the current customer session are applied to `negativeBalance`. When the session is closed, the tentative effects are applied and `negativeBalance` is updated to this value. **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. | +**tentativeNegativeBalance** | [**BigDecimal**](BigDecimal.md) | The tentative negative balance after all additions and deductions from the current customer session are applied to `negativeBalance`. When the session is closed, the tentative effects are applied and `negativeBalance` is updated to this value. **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. | [optional] diff --git a/docs/LoyaltyProgramEntity.md b/docs/LoyaltyProgramEntity.md index 7cea3d65..ccbfb0f9 100644 --- a/docs/LoyaltyProgramEntity.md +++ b/docs/LoyaltyProgramEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**programID** | **Long** | The ID of the loyalty program that owns this entity. | +**programID** | **Integer** | The ID of the loyalty program that owns this entity. | **programName** | **String** | The integration name of the loyalty program that owns this entity. | [optional] **programTitle** | **String** | The Campaign Manager-displayed name of the loyalty program that owns this entity. | [optional] diff --git a/docs/LoyaltyProgramLedgers.md b/docs/LoyaltyProgramLedgers.md index b05bd41d..b2bba196 100644 --- a/docs/LoyaltyProgramLedgers.md +++ b/docs/LoyaltyProgramLedgers.md @@ -7,7 +7,7 @@ Customer-specific information about loyalty points. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | The internal ID of loyalty program. | +**id** | **Integer** | The internal ID of loyalty program. | **title** | **String** | Visible name of loyalty program. | **name** | **String** | Internal name of loyalty program. | **joinDate** | [**OffsetDateTime**](OffsetDateTime.md) | The date on which the customer joined the loyalty program in RFC3339. **Note**: This is in the loyalty program's time zone. | [optional] diff --git a/docs/LoyaltyProgramTransaction.md b/docs/LoyaltyProgramTransaction.md index 7f0efc1e..adcaad66 100644 --- a/docs/LoyaltyProgramTransaction.md +++ b/docs/LoyaltyProgramTransaction.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | ID of the loyalty ledger transaction. | -**programId** | **Long** | ID of the loyalty program. | -**campaignId** | **Long** | ID of the campaign. | [optional] +**id** | **Integer** | ID of the loyalty ledger transaction. | +**programId** | **Integer** | ID of the loyalty program. | +**campaignId** | **Integer** | ID of the campaign. | [optional] **created** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time the loyalty transaction occurred. | **type** | [**TypeEnum**](#TypeEnum) | Type of transaction. Possible values: - `addition`: Signifies added points. - `subtraction`: Signifies deducted points. | **amount** | [**BigDecimal**](BigDecimal.md) | Amount of loyalty points added or deducted in the transaction. | @@ -19,10 +19,10 @@ Name | Type | Description | Notes **cardIdentifier** | **String** | The alphanumeric identifier of the loyalty card. | [optional] **subledgerId** | **String** | ID of the subledger. | **customerSessionId** | **String** | ID of the customer session where the transaction occurred. | [optional] -**importId** | **Long** | ID of the import where the transaction occurred. | [optional] -**userId** | **Long** | ID of the user who manually added or deducted points. Applies only to manual transactions. | [optional] +**importId** | **Integer** | ID of the import where the transaction occurred. | [optional] +**userId** | **Integer** | ID of the user who manually added or deducted points. Applies only to manual transactions. | [optional] **userEmail** | **String** | The email of the Campaign Manager account that manually added or deducted points. Applies only to manual transactions. | [optional] -**rulesetId** | **Long** | ID of the ruleset containing the rule that triggered the effect. Applies only for transactions that resulted from a customer session. | [optional] +**rulesetId** | **Integer** | ID of the ruleset containing the rule that triggered the effect. Applies only for transactions that resulted from a customer session. | [optional] **ruleName** | **String** | Name of the rule that triggered the effect. Applies only for transactions that resulted from a customer session. | [optional] **flags** | [**LoyaltyLedgerEntryFlags**](LoyaltyLedgerEntryFlags.md) | | [optional] diff --git a/docs/LoyaltyTier.md b/docs/LoyaltyTier.md index 641a4c1f..9300e148 100644 --- a/docs/LoyaltyTier.md +++ b/docs/LoyaltyTier.md @@ -7,9 +7,9 @@ A tier in a loyalty program. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**programID** | **Long** | The ID of the loyalty program that owns this entity. | +**programID** | **Integer** | The ID of the loyalty program that owns this entity. | **programName** | **String** | The integration name of the loyalty program that owns this entity. | [optional] **programTitle** | **String** | The Campaign Manager-displayed name of the loyalty program that owns this entity. | [optional] **name** | **String** | The name of the tier. | diff --git a/docs/ManagementApi.md b/docs/ManagementApi.md index 1ae04732..d077955e 100644 --- a/docs/ManagementApi.md +++ b/docs/ManagementApi.md @@ -14,6 +14,7 @@ Method | HTTP request | Description [**createAttribute**](ManagementApi.md#createAttribute) | **POST** /v1/attributes | Create custom attribute [**createBatchLoyaltyCards**](ManagementApi.md#createBatchLoyaltyCards) | **POST** /v1/loyalty_programs/{loyaltyProgramId}/cards/batch | Create loyalty cards [**createCampaignFromTemplate**](ManagementApi.md#createCampaignFromTemplate) | **POST** /v1/applications/{applicationId}/create_campaign_from_template | Create campaign from campaign template +[**createCampaignStoreBudget**](ManagementApi.md#createCampaignStoreBudget) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/stores/budgets | Create campaign store budget [**createCollection**](ManagementApi.md#createCollection) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/collections | Create campaign-level collection [**createCoupons**](ManagementApi.md#createCoupons) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons | Create coupons [**createCouponsAsync**](ManagementApi.md#createCouponsAsync) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons_async | Create coupons asynchronously @@ -29,6 +30,7 @@ Method | HTTP request | Description [**deleteAccountCollection**](ManagementApi.md#deleteAccountCollection) | **DELETE** /v1/collections/{collectionId} | Delete account-level collection [**deleteAchievement**](ManagementApi.md#deleteAchievement) | **DELETE** /v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId} | Delete achievement [**deleteCampaign**](ManagementApi.md#deleteCampaign) | **DELETE** /v1/applications/{applicationId}/campaigns/{campaignId} | Delete campaign +[**deleteCampaignStoreBudgets**](ManagementApi.md#deleteCampaignStoreBudgets) | **DELETE** /v1/applications/{applicationId}/campaigns/{campaignId}/stores/budgets | Delete campaign store budgets [**deleteCollection**](ManagementApi.md#deleteCollection) | **DELETE** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId} | Delete campaign-level collection [**deleteCoupon**](ManagementApi.md#deleteCoupon) | **DELETE** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons/{couponId} | Delete coupon [**deleteCoupons**](ManagementApi.md#deleteCoupons) | **DELETE** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons | Delete coupons @@ -42,6 +44,7 @@ Method | HTTP request | Description [**exportAccountCollectionItems**](ManagementApi.md#exportAccountCollectionItems) | **GET** /v1/collections/{collectionId}/export | Export account-level collection's items [**exportAchievements**](ManagementApi.md#exportAchievements) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId}/export | Export achievement customer data [**exportAudiencesMemberships**](ManagementApi.md#exportAudiencesMemberships) | **GET** /v1/audiences/{audienceId}/memberships/export | Export audience members +[**exportCampaignStoreBudgets**](ManagementApi.md#exportCampaignStoreBudgets) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/stores/budgets/export | Export campaign store budgets [**exportCampaignStores**](ManagementApi.md#exportCampaignStores) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/stores/export | Export stores [**exportCollectionItems**](ManagementApi.md#exportCollectionItems) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/export | Export campaign-level collection's items [**exportCoupons**](ManagementApi.md#exportCoupons) | **GET** /v1/applications/{applicationId}/export_coupons | Export coupons @@ -123,6 +126,7 @@ Method | HTTP request | Description [**importAccountCollection**](ManagementApi.md#importAccountCollection) | **POST** /v1/collections/{collectionId}/import | Import data into existing account-level collection [**importAllowedList**](ManagementApi.md#importAllowedList) | **POST** /v1/attributes/{attributeId}/allowed_list/import | Import allowed values for attribute [**importAudiencesMemberships**](ManagementApi.md#importAudiencesMemberships) | **POST** /v1/audiences/{audienceId}/memberships/import | Import audience members +[**importCampaignStoreBudget**](ManagementApi.md#importCampaignStoreBudget) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/stores/budgets/import | Import campaign store budgets [**importCampaignStores**](ManagementApi.md#importCampaignStores) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/stores/import | Import stores [**importCollection**](ManagementApi.md#importCollection) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/import | Import data into existing campaign-level collection [**importCoupons**](ManagementApi.md#importCoupons) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/import_coupons | Import coupons @@ -135,6 +139,7 @@ Method | HTTP request | Description [**listAccountCollections**](ManagementApi.md#listAccountCollections) | **GET** /v1/collections | List collections in account [**listAchievements**](ManagementApi.md#listAchievements) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/achievements | List achievements [**listAllRolesV2**](ManagementApi.md#listAllRolesV2) | **GET** /v2/roles | List roles +[**listCampaignStoreBudgetLimits**](ManagementApi.md#listCampaignStoreBudgetLimits) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/stores/budgets | List campaign store budget limits [**listCatalogItems**](ManagementApi.md#listCatalogItems) | **GET** /v1/catalogs/{catalogId}/items | List items in a catalog [**listCollections**](ManagementApi.md#listCollections) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/collections | List collections in campaign [**listCollectionsInApplication**](ManagementApi.md#listCollectionsInApplication) | **GET** /v1/applications/{applicationId}/collections | List collections in Application @@ -142,17 +147,24 @@ Method | HTTP request | Description [**oktaEventHandlerChallenge**](ManagementApi.md#oktaEventHandlerChallenge) | **GET** /v1/provisioning/okta | Validate Okta API ownership [**removeLoyaltyPoints**](ManagementApi.md#removeLoyaltyPoints) | **PUT** /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/deduct_points | Deduct points from customer profile [**resetPassword**](ManagementApi.md#resetPassword) | **POST** /v1/reset_password | Reset password +[**scimCreateGroup**](ManagementApi.md#scimCreateGroup) | **POST** /v1/provisioning/scim/Groups | Create SCIM group [**scimCreateUser**](ManagementApi.md#scimCreateUser) | **POST** /v1/provisioning/scim/Users | Create SCIM user +[**scimDeleteGroup**](ManagementApi.md#scimDeleteGroup) | **DELETE** /v1/provisioning/scim/Groups/{groupId} | Delete SCIM group [**scimDeleteUser**](ManagementApi.md#scimDeleteUser) | **DELETE** /v1/provisioning/scim/Users/{userId} | Delete SCIM user +[**scimGetGroup**](ManagementApi.md#scimGetGroup) | **GET** /v1/provisioning/scim/Groups/{groupId} | Get SCIM group +[**scimGetGroups**](ManagementApi.md#scimGetGroups) | **GET** /v1/provisioning/scim/Groups | List SCIM groups [**scimGetResourceTypes**](ManagementApi.md#scimGetResourceTypes) | **GET** /v1/provisioning/scim/ResourceTypes | List supported SCIM resource types [**scimGetSchemas**](ManagementApi.md#scimGetSchemas) | **GET** /v1/provisioning/scim/Schemas | List supported SCIM schemas [**scimGetServiceProviderConfig**](ManagementApi.md#scimGetServiceProviderConfig) | **GET** /v1/provisioning/scim/ServiceProviderConfig | Get SCIM service provider configuration [**scimGetUser**](ManagementApi.md#scimGetUser) | **GET** /v1/provisioning/scim/Users/{userId} | Get SCIM user [**scimGetUsers**](ManagementApi.md#scimGetUsers) | **GET** /v1/provisioning/scim/Users | List SCIM users +[**scimPatchGroup**](ManagementApi.md#scimPatchGroup) | **PATCH** /v1/provisioning/scim/Groups/{groupId} | Update SCIM group attributes [**scimPatchUser**](ManagementApi.md#scimPatchUser) | **PATCH** /v1/provisioning/scim/Users/{userId} | Update SCIM user attributes +[**scimReplaceGroupAttributes**](ManagementApi.md#scimReplaceGroupAttributes) | **PUT** /v1/provisioning/scim/Groups/{groupId} | Update SCIM group [**scimReplaceUserAttributes**](ManagementApi.md#scimReplaceUserAttributes) | **PUT** /v1/provisioning/scim/Users/{userId} | Update SCIM user [**searchCouponsAdvancedApplicationWideWithoutTotalCount**](ManagementApi.md#searchCouponsAdvancedApplicationWideWithoutTotalCount) | **POST** /v1/applications/{applicationId}/coupons_search_advanced/no_total | List coupons that match the given attributes (without total count) [**searchCouponsAdvancedWithoutTotalCount**](ManagementApi.md#searchCouponsAdvancedWithoutTotalCount) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons_search_advanced/no_total | List coupons that match the given attributes in campaign (without total count) +[**summarizeCampaignStoreBudget**](ManagementApi.md#summarizeCampaignStoreBudget) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/stores/budgets/summary | Get summary of campaign store budgets [**transferLoyaltyCard**](ManagementApi.md#transferLoyaltyCard) | **PUT** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/transfer | Transfer card data [**updateAccountCollection**](ManagementApi.md#updateAccountCollection) | **PUT** /v1/collections/{collectionId} | Update account-level collection [**updateAchievement**](ManagementApi.md#updateAchievement) | **PUT** /v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId} | Update achievement @@ -284,7 +296,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. AddLoyaltyPoints body = new AddLoyaltyPoints(); // AddLoyaltyPoints | body try { @@ -305,7 +317,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | **body** | [**AddLoyaltyPoints**](AddLoyaltyPoints.md)| body | @@ -452,8 +464,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. CampaignCopy body = new CampaignCopy(); // CampaignCopy | body try { InlineResponse2008 result = apiInstance.copyCampaignToApplications(applicationId, campaignId, body); @@ -474,8 +486,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **body** | [**CampaignCopy**](CampaignCopy.md)| body | ### Return type cool @@ -615,8 +627,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. CreateAchievement body = new CreateAchievement(); // CreateAchievement | body try { Achievement result = apiInstance.createAchievement(applicationId, campaignId, body); @@ -637,8 +649,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **body** | [**CreateAchievement**](CreateAchievement.md)| body | ### Return type cool @@ -856,7 +868,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. LoyaltyCardBatch body = new LoyaltyCardBatch(); // LoyaltyCardBatch | body try { LoyaltyCardBatchResponse result = apiInstance.createBatchLoyaltyCards(loyaltyProgramId, body); @@ -877,7 +889,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **body** | [**LoyaltyCardBatch**](LoyaltyCardBatch.md)| body | ### Return type cool @@ -939,7 +951,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. CreateTemplateCampaign body = new CreateTemplateCampaign(); // CreateTemplateCampaign | body try { CreateTemplateCampaignResponse result = apiInstance.createCampaignFromTemplate(applicationId, body); @@ -960,7 +972,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **body** | [**CreateTemplateCampaign**](CreateTemplateCampaign.md)| body | ### Return type cool @@ -982,6 +994,89 @@ Name | Type | Description | Notes | **201** | Created | - | +## createCampaignStoreBudget + +> createCampaignStoreBudget(applicationId, campaignId, body) + +Create campaign store budget + +Create a new store budget for a given campaign. + +### Example + +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + NewCampaignStoreBudget body = new NewCampaignStoreBudget(); // NewCampaignStoreBudget | body + try { + apiInstance.createCampaignStoreBudget(applicationId, campaignId, body); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#createCampaignStoreBudget"); + 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 +------------- | ------------- | ------------- | ------------- + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **body** | [**NewCampaignStoreBudget**](NewCampaignStoreBudget.md)| body | + +### Return type cool + +null (empty response body) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created | - | +| **400** | Bad request | - | +| **409** | Conflict | - | + + ## createCollection > Collection createCollection(applicationId, campaignId, body) @@ -1019,8 +1114,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. NewCampaignCollection body = new NewCampaignCollection(); // NewCampaignCollection | body try { Collection result = apiInstance.createCollection(applicationId, campaignId, body); @@ -1041,8 +1136,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **body** | [**NewCampaignCollection**](NewCampaignCollection.md)| body | ### Return type cool @@ -1101,8 +1196,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. NewCoupons body = new NewCoupons(); // NewCoupons | body String silent = "\"yes\""; // String | Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. try { @@ -1124,8 +1219,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **body** | [**NewCoupons**](NewCoupons.md)| body | **silent** | **String**| Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. | [optional] [default to "yes"] @@ -1186,8 +1281,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. NewCouponCreationJob body = new NewCouponCreationJob(); // NewCouponCreationJob | body try { AsyncCouponCreationResponse result = apiInstance.createCouponsAsync(applicationId, campaignId, body); @@ -1208,8 +1303,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **body** | [**NewCouponCreationJob**](NewCouponCreationJob.md)| body | ### Return type cool @@ -1268,8 +1363,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. NewCouponDeletionJob body = new NewCouponDeletionJob(); // NewCouponDeletionJob | body try { AsyncCouponDeletionJobResponse result = apiInstance.createCouponsDeletionJob(applicationId, campaignId, body); @@ -1290,8 +1385,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **body** | [**NewCouponDeletionJob**](NewCouponDeletionJob.md)| body | ### Return type cool @@ -1350,8 +1445,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. NewCouponsForMultipleRecipients body = new NewCouponsForMultipleRecipients(); // NewCouponsForMultipleRecipients | body String silent = "\"yes\""; // String | Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. try { @@ -1373,8 +1468,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **body** | [**NewCouponsForMultipleRecipients**](NewCouponsForMultipleRecipients.md)| body | **silent** | **String**| Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. | [optional] [default to "yes"] @@ -1747,7 +1842,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. NewStore body = new NewStore(); // NewStore | body try { Store result = apiInstance.createStore(applicationId, body); @@ -1768,7 +1863,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **body** | [**NewStore**](NewStore.md)| body | ### Return type cool @@ -1906,7 +2001,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. DeductLoyaltyPoints body = new DeductLoyaltyPoints(); // DeductLoyaltyPoints | body try { @@ -1927,7 +2022,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | **body** | [**DeductLoyaltyPoints**](DeductLoyaltyPoints.md)| body | @@ -1990,7 +2085,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long collectionId = 56L; // Long | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. + Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. try { apiInstance.deleteAccountCollection(collectionId); } catch (ApiException e) { @@ -2009,7 +2104,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **collectionId** | **Long**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | + **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | ### Return type cool @@ -2068,9 +2163,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Long achievementId = 56L; // Long | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. try { apiInstance.deleteAchievement(applicationId, campaignId, achievementId); } catch (ApiException e) { @@ -2089,9 +2184,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **achievementId** | **Long**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **achievementId** | **Integer**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | ### Return type cool @@ -2151,8 +2246,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. try { apiInstance.deleteCampaign(applicationId, campaignId); } catch (ApiException e) { @@ -2171,8 +2266,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | ### Return type cool @@ -2193,6 +2288,90 @@ null (empty response body) | **204** | No Content | - | +## deleteCampaignStoreBudgets + +> deleteCampaignStoreBudgets(applicationId, campaignId, action, period) + +Delete campaign store budgets + +Delete the store budgets for a given campaign. + +### Example + +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + String action = "action_example"; // String | The action that this budget is limiting. + String period = "period_example"; // String | The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. + try { + apiInstance.deleteCampaignStoreBudgets(applicationId, campaignId, action, period); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#deleteCampaignStoreBudgets"); + 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 +------------- | ------------- | ------------- | ------------- + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **action** | **String**| The action that this budget is limiting. | [optional] [enum: setDiscount] + **period** | **String**| The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. | [optional] [enum: overall, daily, weekly, monthly, yearly] + +### Return type cool + +null (empty response body) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | Deleted | - | +| **400** | Bad request | - | + + ## deleteCollection > deleteCollection(applicationId, campaignId, collectionId) @@ -2230,9 +2409,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Long collectionId = 56L; // Long | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. try { apiInstance.deleteCollection(applicationId, campaignId, collectionId); } catch (ApiException e) { @@ -2251,9 +2430,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **collectionId** | **Long**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | ### Return type cool @@ -2312,8 +2491,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. String couponId = "couponId_example"; // String | The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. try { apiInstance.deleteCoupon(applicationId, campaignId, couponId); @@ -2333,8 +2512,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **couponId** | **String**| The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. | ### Return type cool @@ -2393,8 +2572,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. @@ -2405,7 +2584,7 @@ public class Example { String valid = "valid_example"; // String | - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches coupons in which start date is set and in the future. String batchId = "batchId_example"; // String | Filter results by batches of coupons String usable = "usable_example"; // String | - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned. - Long referralId = 56L; // Long | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. + Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile ID specified in the coupon's `RecipientIntegrationId` field. Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code try { @@ -2426,8 +2605,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **value** | **String**| Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. | [optional] **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] @@ -2438,7 +2617,7 @@ Name | Type | Description | Notes **valid** | **String**| - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches coupons in which start date is set and in the future. | [optional] [enum: expired, validNow, validFuture] **batchId** | **String**| Filter results by batches of coupons | [optional] **usable** | **String**| - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned. | [optional] [enum: true, false] - **referralId** | **Long**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] + **referralId** | **Integer**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] **recipientIntegrationId** | **String**| Filter results by match with a profile ID specified in the coupon's `RecipientIntegrationId` field. | [optional] **exactMatch** | **Boolean**| Filter results to an exact case-insensitive matching against the coupon code | [optional] [default to false] @@ -2498,7 +2677,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. try { apiInstance.deleteLoyaltyCard(loyaltyProgramId, loyaltyCardId); @@ -2518,7 +2697,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | ### Return type cool @@ -2579,8 +2758,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. String referralId = "referralId_example"; // String | The ID of the referral code. try { apiInstance.deleteReferral(applicationId, campaignId, referralId); @@ -2600,8 +2779,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **referralId** | **String**| The ID of the referral code. | ### Return type cool @@ -2660,7 +2839,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. String storeId = "storeId_example"; // String | The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. try { apiInstance.deleteStore(applicationId, storeId); @@ -2680,7 +2859,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **storeId** | **String**| The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. | ### Return type cool @@ -2740,7 +2919,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long userId = 56L; // Long | The ID of the user. + Integer userId = 56; // Integer | The ID of the user. try { apiInstance.deleteUser(userId); } catch (ApiException e) { @@ -2759,7 +2938,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **userId** | **Long**| The ID of the user. | + **userId** | **Integer**| The ID of the user. | ### Return type cool @@ -2967,8 +3146,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. try { apiInstance.disconnectCampaignStores(applicationId, campaignId); } catch (ApiException e) { @@ -2987,8 +3166,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | ### Return type cool @@ -3049,7 +3228,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long collectionId = 56L; // Long | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. + Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. try { String result = apiInstance.exportAccountCollectionItems(collectionId); System.out.println(result); @@ -3069,7 +3248,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **collectionId** | **Long**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | + **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | ### Return type cool @@ -3129,9 +3308,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Long achievementId = 56L; // Long | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. try { String result = apiInstance.exportAchievements(applicationId, campaignId, achievementId); System.out.println(result); @@ -3151,9 +3330,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **achievementId** | **Long**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **achievementId** | **Integer**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | ### Return type cool @@ -3214,7 +3393,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long audienceId = 56L; // Long | The ID of the audience. + Integer audienceId = 56; // Integer | The ID of the audience. try { String result = apiInstance.exportAudiencesMemberships(audienceId); System.out.println(result); @@ -3234,7 +3413,94 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audienceId** | **Long**| The ID of the audience. | + **audienceId** | **Integer**| The ID of the audience. | + +### Return type cool + +**String** + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/csv + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad request | - | +| **401** | Unauthorized - Invalid API key | - | +| **404** | Not found | - | + + +## exportCampaignStoreBudgets + +> String exportCampaignStoreBudgets(applicationId, campaignId, action, period) + +Export campaign store budgets + +Download a CSV file containing the store budgets for a given campaign. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `store_integration_id`: The identifier of the store. - `limit`: The budget limit for the store. + +### Example + +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + String action = "action_example"; // String | The action that this budget is limiting. + String period = "period_example"; // String | The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. + try { + String result = apiInstance.exportCampaignStoreBudgets(applicationId, campaignId, action, period); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#exportCampaignStoreBudgets"); + 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 +------------- | ------------- | ------------- | ------------- + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **action** | **String**| The action that this budget is limiting. | [optional] [enum: setDiscount] + **period** | **String**| The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. | [optional] [enum: overall, daily, weekly, monthly, yearly] ### Return type cool @@ -3295,8 +3561,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. try { String result = apiInstance.exportCampaignStores(applicationId, campaignId); System.out.println(result); @@ -3316,8 +3582,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | ### Return type cool @@ -3378,9 +3644,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Long collectionId = 56L; // Long | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. try { String result = apiInstance.exportCollectionItems(applicationId, campaignId, collectionId); System.out.println(result); @@ -3400,9 +3666,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **collectionId** | **Long**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | ### Return type cool @@ -3462,7 +3728,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign ID. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. @@ -3470,7 +3736,7 @@ public class Example { OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. String valid = "valid_example"; // String | Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. String usable = "usable_example"; // String | Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. - Long referralId = 56L; // Long | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. + Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile id specified in the coupon's RecipientIntegrationId field. String batchId = "batchId_example"; // String | Filter results by batches of coupons Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code. @@ -3496,7 +3762,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **campaignId** | **BigDecimal**| Filter results by campaign ID. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **value** | **String**| Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. | [optional] @@ -3504,7 +3770,7 @@ Name | Type | Description | Notes **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **valid** | **String**| Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. | [optional] [enum: expired, validNow, validFuture] **usable** | **String**| Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. | [optional] [enum: true, false] - **referralId** | **Long**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] + **referralId** | **Integer**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] **recipientIntegrationId** | **String**| Filter results by match with a profile id specified in the coupon's RecipientIntegrationId field. | [optional] **batchId** | **String**| Filter results by batches of coupons | [optional] **exactMatch** | **Boolean**| Filter results to an exact case-insensitive matching against the coupon code. | [optional] [default to false] @@ -3537,7 +3803,7 @@ Name | Type | Description | Notes Export customer sessions -Download a CSV file containing the customer sessions that match the request. **Important:** Archived sessions cannot be exported. See the [retention policy](https://docs.talon.one/docs/product/server-infrastructure-and-data-retention#data-retention-policy). **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - `id`: The internal ID of the session. - `firstsession`: Whether this is a first session. - `integrationid`: The integration ID of the session. - `applicationid`: The ID of the Application. - `profileid`: The internal ID of the customer profile. - `profileintegrationid`: The integration ID of the customer profile. - `created`: The timestamp when the session was created. - `state`: The [state](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) of the session. - `cartitems`: The cart items in the session. - `discounts`: The discounts in the session. - `total`: The total value of cart items and additional costs in the session, before any discounts are applied. - `attributes`: The attributes set in the session. - `closedat`: Timestamp when the session was closed. - `cancelledat`: Timestamp when the session was cancelled. - `referral`: The referral code in the session. - `identifiers`: The identifiers in the session. - `additional_costs`: The [additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs) in the session. - `updated`: Timestamp of the last session update. - `store_integration_id`: The integration ID of the store. - `coupons`: Coupon codes in the session. +Download a CSV file containing the customer sessions that match the request. **Important:** Archived sessions cannot be exported. See the [retention policy](https://docs.talon.one/docs/dev/server-infrastructure-and-data-retention). **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - `id`: The internal ID of the session. - `firstsession`: Whether this is a first session. - `integrationid`: The integration ID of the session. - `applicationid`: The ID of the Application. - `profileid`: The internal ID of the customer profile. - `profileintegrationid`: The integration ID of the customer profile. - `created`: The timestamp when the session was created. - `state`: The [state](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) of the session. - `cartitems`: The cart items in the session. - `discounts`: The discounts in the session. - `total`: The total value of cart items and additional costs in the session, before any discounts are applied. - `attributes`: The attributes set in the session. - `closedat`: Timestamp when the session was closed. - `cancelledat`: Timestamp when the session was cancelled. - `referral`: The referral code in the session. - `identifiers`: The identifiers in the session. - `additional_costs`: The [additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs) in the session. - `updated`: Timestamp of the last session update. - `store_integration_id`: The integration ID of the store. - `coupons`: Coupon codes in the session. ### Example @@ -3568,7 +3834,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. String profileIntegrationId = "profileIntegrationId_example"; // String | Only return sessions for the customer that matches this customer integration ID. @@ -3593,7 +3859,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. | [optional] **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. | [optional] **profileIntegrationId** | **String**| Only return sessions for the customer that matches this customer integration ID. | [optional] @@ -3738,7 +4004,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign ID. OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. @@ -3762,7 +4028,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **campaignId** | **BigDecimal**| Filter results by campaign ID. | [optional] **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] @@ -3988,7 +4254,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. try { String result = apiInstance.exportLoyaltyCardBalances(loyaltyProgramId, endDate); @@ -4009,7 +4275,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **endDate** | **OffsetDateTime**| Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] ### Return type cool @@ -4070,7 +4336,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. @@ -4094,7 +4360,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | @@ -4158,7 +4424,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String batchId = "batchId_example"; // String | Filter results by loyalty card batch ID. String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document. try { @@ -4180,7 +4446,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **batchId** | **String**| Filter results by loyalty card batch ID. | [optional] **dateFormat** | **String**| Determines the format of dates in the export document. | [optional] [enum: excel, ISO8601] @@ -4328,7 +4594,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long poolId = 56L; // Long | The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. + Integer poolId = 56; // Integer | The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Timestamp that filters the results to only contain giveaways created before this date. Must be an RFC3339 timestamp string. OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Timestamp that filters the results to only contain giveaways created after this date. Must be an RFC3339 timestamp string. try { @@ -4350,7 +4616,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **poolId** | **Long**| The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. | + **poolId** | **Integer**| The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. | **createdBefore** | **OffsetDateTime**| Timestamp that filters the results to only contain giveaways created before this date. Must be an RFC3339 timestamp string. | [optional] **createdAfter** | **OffsetDateTime**| Timestamp that filters the results to only contain giveaways created after this date. Must be an RFC3339 timestamp string. | [optional] @@ -4411,7 +4677,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign ID. OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. @@ -4438,7 +4704,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **campaignId** | **BigDecimal**| Filter results by campaign ID. | [optional] **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] @@ -4503,14 +4769,14 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. String path = "path_example"; // String | Only return results where the request path matches the given regular expression. String method = "method_example"; // String | Only return results where the request method matches the given regular expression. String status = "status_example"; // String | Filter results by HTTP status codes. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. try { InlineResponse20022 result = apiInstance.getAccessLogsWithoutTotalCount(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort); @@ -4531,14 +4797,14 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | **path** | **String**| Only return results where the request path matches the given regular expression. | [optional] **method** | **String**| Only return results where the request method matches the given regular expression. | [optional] [enum: get, put, post, delete, patch] **status** | **String**| Filter results by HTTP status codes. | [optional] [enum: success, error] - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] ### Return type cool @@ -4597,7 +4863,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long accountId = 56L; // Long | The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. + Integer accountId = 56; // Integer | The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. try { Account result = apiInstance.getAccount(accountId); System.out.println(result); @@ -4617,7 +4883,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accountId** | **Long**| The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. | + **accountId** | **Integer**| The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. | ### Return type cool @@ -4675,7 +4941,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long accountId = 56L; // Long | The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. + Integer accountId = 56; // Integer | The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. try { AccountAnalytics result = apiInstance.getAccountAnalytics(accountId); System.out.println(result); @@ -4695,7 +4961,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accountId** | **Long**| The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. | + **accountId** | **Integer**| The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. | ### Return type cool @@ -4753,7 +5019,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long collectionId = 56L; // Long | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. + Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. try { Collection result = apiInstance.getAccountCollection(collectionId); System.out.println(result); @@ -4773,7 +5039,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **collectionId** | **Long**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | + **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | ### Return type cool @@ -4832,9 +5098,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Long achievementId = 56L; // Long | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. try { Achievement result = apiInstance.getAchievement(applicationId, campaignId, achievementId); System.out.println(result); @@ -4854,9 +5120,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **achievementId** | **Long**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **achievementId** | **Integer**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | ### Return type cool @@ -4916,7 +5182,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long additionalCostId = 56L; // Long | The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. + Integer additionalCostId = 56; // Integer | The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. try { AccountAdditionalCost result = apiInstance.getAdditionalCost(additionalCostId); System.out.println(result); @@ -4936,7 +5202,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **additionalCostId** | **Long**| The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. | + **additionalCostId** | **Integer**| The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. | ### Return type cool @@ -4994,8 +5260,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. try { InlineResponse20038 result = apiInstance.getAdditionalCosts(pageSize, skip, sort); @@ -5016,8 +5282,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] ### Return type cool @@ -5076,7 +5342,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. try { Application result = apiInstance.getApplication(applicationId); System.out.println(result); @@ -5096,7 +5362,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | ### Return type cool @@ -5154,7 +5420,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. try { ApplicationApiHealth result = apiInstance.getApplicationApiHealth(applicationId); System.out.println(result); @@ -5174,7 +5440,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | ### Return type cool @@ -5232,8 +5498,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long customerId = 56L; // Long | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer customerId = 56; // Integer | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. try { ApplicationCustomer result = apiInstance.getApplicationCustomer(applicationId, customerId); System.out.println(result); @@ -5253,8 +5519,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **customerId** | **Long**| The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **customerId** | **Integer**| The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. | ### Return type cool @@ -5312,10 +5578,10 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. String integrationId = "integrationId_example"; // String | The Integration ID of the Advocate's Profile. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. try { @@ -5337,10 +5603,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **integrationId** | **String**| The Integration ID of the Advocate's Profile. | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] @@ -5400,10 +5666,10 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. String integrationId = "integrationId_example"; // String | Filter results performing an exact matching against the profile integration identifier. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. try { InlineResponse20024 result = apiInstance.getApplicationCustomers(applicationId, integrationId, pageSize, skip, withTotalResultSize); @@ -5424,10 +5690,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **integrationId** | **String**| Filter results performing an exact matching against the profile integration identifier. | [optional] - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] ### Return type cool @@ -5486,10 +5752,10 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. CustomerProfileSearchQuery body = new CustomerProfileSearchQuery(); // CustomerProfileSearchQuery | body - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. try { InlineResponse20025 result = apiInstance.getApplicationCustomersByAttributes(applicationId, body, pageSize, skip, withTotalResultSize); @@ -5510,10 +5776,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **body** | [**CustomerProfileSearchQuery**](CustomerProfileSearchQuery.md)| body | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] ### Return type cool @@ -5572,9 +5838,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. try { InlineResponse20031 result = apiInstance.getApplicationEventTypes(applicationId, pageSize, skip, sort); @@ -5595,9 +5861,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] ### Return type cool @@ -5656,9 +5922,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String type = "type_example"; // String | Comma-separated list of types by which to filter events. Must be exact match(es). OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. @@ -5690,9 +5956,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **type** | **String**| Comma-separated list of types by which to filter events. Must be exact match(es). | [optional] **createdBefore** | **OffsetDateTime**| Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] @@ -5762,8 +6028,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long sessionId = 56L; // Long | The **internal** ID of the session. You can get the ID with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer sessionId = 56; // Integer | The **internal** ID of the session. You can get the ID with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. try { ApplicationSession result = apiInstance.getApplicationSession(applicationId, sessionId); System.out.println(result); @@ -5783,8 +6049,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **sessionId** | **Long**| The **internal** ID of the session. You can get the ID with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **sessionId** | **Integer**| The **internal** ID of the session. You can get the ID with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. | ### Return type cool @@ -5842,9 +6108,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String profile = "profile_example"; // String | Profile integration ID filter for sessions. Must be exact match. String state = "state_example"; // String | Filter by sessions with this state. Must be exact match. @@ -5873,9 +6139,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **profile** | **String**| Profile integration ID filter for sessions. Must be exact match. | [optional] **state** | **String**| Filter by sessions with this state. Must be exact match. | [optional] [enum: open, closed, partially_returned, cancelled] @@ -5942,8 +6208,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. try { InlineResponse2007 result = apiInstance.getApplications(pageSize, skip, sort); @@ -5964,8 +6230,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] ### Return type cool @@ -6024,7 +6290,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long attributeId = 56L; // Long | The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. + Integer attributeId = 56; // Integer | The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. try { Attribute result = apiInstance.getAttribute(attributeId); System.out.println(result); @@ -6044,7 +6310,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attributeId** | **Long**| The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. | + **attributeId** | **Integer**| The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. | ### Return type cool @@ -6102,8 +6368,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String entity = "entity_example"; // String | Returned attributes will be filtered by supplied entity. try { @@ -6125,8 +6391,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **entity** | **String**| Returned attributes will be filtered by supplied entity. | [optional] @@ -6186,9 +6452,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long audienceId = 56L; // Long | The ID of the audience. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer audienceId = 56; // Integer | The ID of the audience. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String profileQuery = "profileQuery_example"; // String | The filter to select a profile. try { @@ -6210,9 +6476,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audienceId** | **Long**| The ID of the audience. | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **audienceId** | **Integer**| The ID of the audience. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **profileQuery** | **String**| The filter to select a profile. | [optional] @@ -6273,8 +6539,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. try { @@ -6296,8 +6562,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] @@ -6437,8 +6703,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. try { Campaign result = apiInstance.getCampaign(applicationId, campaignId); System.out.println(result); @@ -6458,8 +6724,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | ### Return type cool @@ -6517,8 +6783,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. String granularity = "granularity_example"; // String | The time interval between the results in the returned time-series. @@ -6541,8 +6807,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | **granularity** | **String**| The time interval between the results in the returned time-series. | [optional] [enum: 1 hour, 1 day, 1 week, 1 month, 1 year] @@ -6603,10 +6869,10 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. CampaignSearch body = new CampaignSearch(); // CampaignSearch | body - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String campaignState = "campaignState_example"; // String | Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. try { @@ -6628,10 +6894,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **body** | [**CampaignSearch**](CampaignSearch.md)| body | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **campaignState** | **String**| Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. | [optional] [enum: enabled, disabled, archived, scheduled, running, expired, staged] @@ -6691,7 +6957,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long campaignGroupId = 56L; // Long | The ID of the campaign access group. + Integer campaignGroupId = 56; // Integer | The ID of the campaign access group. try { CampaignGroup result = apiInstance.getCampaignGroup(campaignGroupId); System.out.println(result); @@ -6711,7 +6977,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaignGroupId** | **Long**| The ID of the campaign access group. | + **campaignGroupId** | **Integer**| The ID of the campaign access group. | ### Return type cool @@ -6769,8 +7035,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. try { InlineResponse20013 result = apiInstance.getCampaignGroups(pageSize, skip, sort); @@ -6791,8 +7057,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] ### Return type cool @@ -6851,13 +7117,13 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String state = "state_example"; // String | Filter results by the state of the campaign template. String name = "name_example"; // String | Filter results performing case-insensitive matching against the name of the campaign template. String tags = "tags_example"; // String | Filter results performing case-insensitive matching against the tags of the campaign template. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values. - Long userId = 56L; // Long | Filter results by user ID. + Integer userId = 56; // Integer | Filter results by user ID. try { InlineResponse20014 result = apiInstance.getCampaignTemplates(pageSize, skip, sort, state, name, tags, userId); System.out.println(result); @@ -6877,13 +7143,13 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **state** | **String**| Filter results by the state of the campaign template. | [optional] [enum: draft, enabled, disabled] **name** | **String**| Filter results performing case-insensitive matching against the name of the campaign template. | [optional] **tags** | **String**| Filter results performing case-insensitive matching against the tags of the campaign template. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values. | [optional] - **userId** | **Long**| Filter results by user ID. | [optional] + **userId** | **Integer**| Filter results by user ID. | [optional] ### Return type cool @@ -6941,18 +7207,18 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String campaignState = "campaignState_example"; // String | Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. String name = "name_example"; // String | Filter results performing case-insensitive matching against the name of the campaign. String tags = "tags_example"; // String | Filter results performing case-insensitive matching against the tags of the campaign. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. - Long campaignGroupId = 56L; // Long | Filter results to campaigns owned by the specified campaign access group ID. - Long templateId = 56L; // Long | The ID of the campaign template this campaign was created from. - Long storeId = 56L; // Long | Filter results to campaigns linked to the specified store ID. + Integer campaignGroupId = 56; // Integer | Filter results to campaigns owned by the specified campaign access group ID. + Integer templateId = 56; // Integer | The ID of the campaign template this campaign was created from. + Integer storeId = 56; // Integer | Filter results to campaigns linked to the specified store ID. try { InlineResponse2008 result = apiInstance.getCampaigns(applicationId, pageSize, skip, sort, campaignState, name, tags, createdBefore, createdAfter, campaignGroupId, templateId, storeId); System.out.println(result); @@ -6972,18 +7238,18 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **campaignState** | **String**| Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. | [optional] [enum: enabled, disabled, archived, scheduled, running, expired, staged] **name** | **String**| Filter results performing case-insensitive matching against the name of the campaign. | [optional] **tags** | **String**| Filter results performing case-insensitive matching against the tags of the campaign. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values | [optional] **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] - **campaignGroupId** | **Long**| Filter results to campaigns owned by the specified campaign access group ID. | [optional] - **templateId** | **Long**| The ID of the campaign template this campaign was created from. | [optional] - **storeId** | **Long**| Filter results to campaigns linked to the specified store ID. | [optional] + **campaignGroupId** | **Integer**| Filter results to campaigns owned by the specified campaign access group ID. | [optional] + **templateId** | **Integer**| The ID of the campaign template this campaign was created from. | [optional] + **storeId** | **Integer**| Filter results to campaigns linked to the specified store ID. | [optional] ### Return type cool @@ -7042,16 +7308,16 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. BigDecimal applicationId = new BigDecimal(); // BigDecimal | Filter results by Application ID. String entityPath = "entityPath_example"; // String | Filter results on a case insensitive matching of the url path of the entity - Long userId = 56L; // Long | Filter results by user ID. + Integer userId = 56; // Integer | Filter results by user ID. OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. - Long managementKeyId = 56L; // Long | Filter results that match the given management key ID. + Integer managementKeyId = 56; // Integer | Filter results that match the given management key ID. Boolean includeOld = true; // Boolean | When this flag is set to false, the state without the change will not be returned. The default value is true. try { InlineResponse20044 result = apiInstance.getChanges(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld); @@ -7072,16 +7338,16 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **applicationId** | **BigDecimal**| Filter results by Application ID. | [optional] **entityPath** | **String**| Filter results on a case insensitive matching of the url path of the entity | [optional] - **userId** | **Long**| Filter results by user ID. | [optional] + **userId** | **Integer**| Filter results by user ID. | [optional] **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] - **managementKeyId** | **Long**| Filter results that match the given management key ID. | [optional] + **managementKeyId** | **Integer**| Filter results that match the given management key ID. | [optional] **includeOld** | **Boolean**| When this flag is set to false, the state without the change will not be returned. The default value is true. | [optional] ### Return type cool @@ -7140,9 +7406,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Long collectionId = 56L; // Long | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. try { Collection result = apiInstance.getCollection(applicationId, campaignId, collectionId); System.out.println(result); @@ -7162,9 +7428,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **collectionId** | **Long**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | ### Return type cool @@ -7223,9 +7489,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long collectionId = 56L; // Long | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. try { InlineResponse20021 result = apiInstance.getCollectionItems(collectionId, pageSize, skip); System.out.println(result); @@ -7245,9 +7511,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **collectionId** | **Long**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] ### Return type cool @@ -7306,10 +7572,10 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. @@ -7317,7 +7583,7 @@ public class Example { String valid = "valid_example"; // String | Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. String usable = "usable_example"; // String | Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. String redeemed = "redeemed_example"; // String | - `true`: only coupons where `usageCounter > 0` will be returned. - `false`: only coupons where `usageCounter = 0` will be returned. - This field cannot be used in conjunction with the `usable` query parameter. - Long referralId = 56L; // Long | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. + Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. String batchId = "batchId_example"; // String | Filter results by batches of coupons Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code. @@ -7345,10 +7611,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **value** | **String**| Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. | [optional] **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] @@ -7356,7 +7622,7 @@ Name | Type | Description | Notes **valid** | **String**| Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. | [optional] [enum: expired, validNow, validFuture] **usable** | **String**| Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. | [optional] [enum: true, false] **redeemed** | **String**| - `true`: only coupons where `usageCounter > 0` will be returned. - `false`: only coupons where `usageCounter = 0` will be returned. - This field cannot be used in conjunction with the `usable` query parameter. | [optional] [enum: true, false] - **referralId** | **Long**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] + **referralId** | **Integer**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] **recipientIntegrationId** | **String**| Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. | [optional] **batchId** | **String**| Filter results by batches of coupons | [optional] **exactMatch** | **Boolean**| Filter results to an exact case-insensitive matching against the coupon code. | [optional] [default to false] @@ -7424,10 +7690,10 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long customerId = 56L; // Long | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer customerId = 56; // Integer | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. try { CustomerActivityReport result = apiInstance.getCustomerActivityReport(rangeStart, rangeEnd, applicationId, customerId, pageSize, skip); System.out.println(result); @@ -7449,10 +7715,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **customerId** | **Long**| The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **customerId** | **Integer**| The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] ### Return type cool @@ -7512,9 +7778,9 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String name = "name_example"; // String | Only return reports matching the customer name. String integrationId = "integrationId_example"; // String | Filter results performing an exact matching against the profile integration identifier. @@ -7541,9 +7807,9 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **name** | **String**| Only return reports matching the customer name. | [optional] **integrationId** | **String**| Filter results performing an exact matching against the profile integration identifier. | [optional] @@ -7606,10 +7872,10 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long customerId = 56L; // Long | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer customerId = 56; // Integer | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. try { CustomerAnalytics result = apiInstance.getCustomerAnalytics(applicationId, customerId, pageSize, skip, sort); @@ -7630,10 +7896,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **customerId** | **Long**| The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **customerId** | **Integer**| The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] ### Return type cool @@ -7692,7 +7958,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long customerId = 56L; // Long | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. + Integer customerId = 56; // Integer | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. try { CustomerProfile result = apiInstance.getCustomerProfile(customerId); System.out.println(result); @@ -7712,7 +7978,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **customerId** | **Long**| The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. | + **customerId** | **Integer**| The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. | ### Return type cool @@ -7735,7 +8001,7 @@ Name | Type | Description | Notes ## getCustomerProfileAchievementProgress -> InlineResponse20049 getCustomerProfileAchievementProgress(applicationId, integrationId, pageSize, skip, achievementId, title) +> InlineResponse20051 getCustomerProfileAchievementProgress(applicationId, integrationId, pageSize, skip, achievementId, title) List customer achievements @@ -7770,14 +8036,14 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. String integrationId = "integrationId_example"; // String | The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. - Long pageSize = 50lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. - Long achievementId = 56L; // Long | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. + Integer pageSize = 50; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. + Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. String title = "title_example"; // String | Filter results by the `title` of an achievement. try { - InlineResponse20049 result = apiInstance.getCustomerProfileAchievementProgress(applicationId, integrationId, pageSize, skip, achievementId, title); + InlineResponse20051 result = apiInstance.getCustomerProfileAchievementProgress(applicationId, integrationId, pageSize, skip, achievementId, title); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#getCustomerProfileAchievementProgress"); @@ -7795,16 +8061,16 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **integrationId** | **String**| The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 50l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] - **achievementId** | **Long**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] + **achievementId** | **Integer**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | [optional] **title** | **String**| Filter results by the `title` of an achievement. | [optional] ### Return type cool -[**InlineResponse20049**](InlineResponse20049.md) +[**InlineResponse20051**](InlineResponse20051.md) ### Authorization @@ -7860,8 +8126,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. Boolean sandbox = false; // Boolean | Indicates whether you are pointing to a sandbox or live customer. try { InlineResponse20027 result = apiInstance.getCustomerProfiles(pageSize, skip, sandbox); @@ -7882,8 +8148,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sandbox** | **Boolean**| Indicates whether you are pointing to a sandbox or live customer. | [optional] [default to false] ### Return type cool @@ -7943,8 +8209,8 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); CustomerProfileSearchQuery body = new CustomerProfileSearchQuery(); // CustomerProfileSearchQuery | body - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. Boolean sandbox = false; // Boolean | Indicates whether you are pointing to a sandbox or live customer. try { InlineResponse20026 result = apiInstance.getCustomersByAttributes(body, pageSize, skip, sandbox); @@ -7966,8 +8232,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**CustomerProfileSearchQuery**](CustomerProfileSearchQuery.md)| body | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sandbox** | **Boolean**| Indicates whether you are pointing to a sandbox or live customer. | [optional] [default to false] ### Return type cool @@ -8026,7 +8292,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data. @@ -8049,7 +8315,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | **subledgerId** | **String**| The ID of the subledger by which we filter the data. | [optional] @@ -8112,8 +8378,8 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); String name = "name_example"; // String | Filter results to event types with the given name. This parameter implies `includeOldVersions`. Boolean includeOldVersions = false; // Boolean | Include all versions of every event type. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. try { InlineResponse20042 result = apiInstance.getEventTypes(name, includeOldVersions, pageSize, skip, sort); @@ -8136,8 +8402,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| Filter results to event types with the given name. This parameter implies `includeOldVersions`. | [optional] **includeOldVersions** | **Boolean**| Include all versions of every event type. | [optional] [default to false] - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] ### Return type cool @@ -8196,10 +8462,10 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. BigDecimal applicationId = new BigDecimal(); // BigDecimal | Filter results by Application ID. - Long campaignId = 56L; // Long | Filter by the campaign ID on which the limit counters are used. + Integer campaignId = 56; // Integer | Filter by the campaign ID on which the limit counters are used. String entity = "entity_example"; // String | The name of the entity type that was exported. try { InlineResponse20045 result = apiInstance.getExports(pageSize, skip, applicationId, campaignId, entity); @@ -8220,10 +8486,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **applicationId** | **BigDecimal**| Filter results by Application ID. | [optional] - **campaignId** | **Long**| Filter by the campaign ID on which the limit counters are used. | [optional] + **campaignId** | **Integer**| Filter by the campaign ID on which the limit counters are used. | [optional] **entity** | **String**| The name of the entity type that was exported. | [optional] [enum: Coupon, Referral, Effect, CustomerSession, LoyaltyLedger, LoyaltyLedgerLog, Collection, AudienceMembership] ### Return type cool @@ -8282,7 +8548,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. try { LoyaltyCard result = apiInstance.getLoyaltyCard(loyaltyProgramId, loyaltyCardId); @@ -8303,7 +8569,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | ### Return type cool @@ -8365,12 +8631,12 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data. try { InlineResponse20019 result = apiInstance.getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId); @@ -8391,12 +8657,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | **startDate** | **OffsetDateTime**| Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] **endDate** | **OffsetDateTime**| Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **subledgerId** | **String**| The ID of the subledger by which we filter the data. | [optional] ### Return type cool @@ -8457,12 +8723,12 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String identifier = "identifier_example"; // String | The card code by which to filter loyalty cards in the response. - Long profileId = 56L; // Long | Filter results by customer profile ID. + Integer profileId = 56; // Integer | Filter results by customer profile ID. String batchId = "batchId_example"; // String | Filter results by loyalty card batch ID. try { InlineResponse20018 result = apiInstance.getLoyaltyCards(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId); @@ -8483,12 +8749,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **identifier** | **String**| The card code by which to filter loyalty cards in the response. | [optional] - **profileId** | **Long**| Filter results by customer profile ID. | [optional] + **profileId** | **Integer**| Filter results by customer profile ID. | [optional] **batchId** | **String**| Filter results by loyalty card batch ID. | [optional] ### Return type cool @@ -8629,7 +8895,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. try { LoyaltyProgram result = apiInstance.getLoyaltyProgram(loyaltyProgramId); System.out.println(result); @@ -8649,7 +8915,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | ### Return type cool @@ -8707,13 +8973,13 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyTransactionType = "loyaltyTransactionType_example"; // String | Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data. OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. - Long pageSize = 50lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 50; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. try { InlineResponse20017 result = apiInstance.getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip); System.out.println(result); @@ -8733,13 +8999,13 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyTransactionType** | **String**| Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. | [optional] [enum: manual, session, import] **subledgerId** | **String**| The ID of the subledger by which we filter the data. | [optional] **startDate** | **OffsetDateTime**| Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] **endDate** | **OffsetDateTime**| Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional] - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 50l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] ### Return type cool @@ -8874,7 +9140,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. try { LoyaltyDashboardData result = apiInstance.getLoyaltyStatistics(loyaltyProgramId); System.out.println(result); @@ -8894,7 +9160,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | ### Return type cool @@ -8963,8 +9229,8 @@ public class Example { Boolean isSuccessful = true; // Boolean | Indicates whether to return log entries with either successful or unsuccessful HTTP response codes. When set to`true`, only log entries with `2xx` response codes are returned. When set to `false`, only log entries with `4xx` and `5xx` response codes are returned. BigDecimal applicationId = new BigDecimal(); // BigDecimal | Filter results by Application ID. BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign ID. - Long loyaltyProgramId = 56L; // Long | Identifier of the loyalty program. - Long responseCode = 56L; // Long | Filter results by response status code. + Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. + Integer responseCode = 56; // Integer | Filter results by response status code. String webhookIDs = "webhookIDs_example"; // String | Filter results by webhook ID (include up to 30 values, separated by a comma). try { MessageLogEntries result = apiInstance.getMessageLogs(entityType, messageID, changeType, notificationIDs, createdBefore, createdAfter, cursor, period, isSuccessful, applicationId, campaignId, loyaltyProgramId, responseCode, webhookIDs); @@ -8987,7 +9253,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **entityType** | **String**| The entity type the log is related to. | [enum: application, loyalty_program, webhook] **messageID** | **String**| Filter results by message ID. | [optional] - **changeType** | **String**| Filter results by change type. | [optional] [enum: CampaignEvaluationTreeChanged, CampaignNotification, CouponCreated, CouponUpdated, CouponDeleted, AsyncCouponsCreated, CouponsDeleted, CouponsUpdated, CouponCodeExpiring, StrikethroughPrice, LoyaltyPointsAdded, LoyaltyPointsDeducted, LoyaltyPointsExpiring, LoyaltyPointsPendingToActive, TierWillDowngrade, TierUpgrade, TierDowngrade, LoyaltyCardPointsAdded, LoyaltyCardPointsDeducted, LoyaltyCardPointsExpiring] + **changeType** | **String**| Filter results by change type. | [optional] [enum: CampaignEvaluationTreeChanged, CampaignNotification, CouponCreated, CouponUpdated, CouponDeleted, AsyncCouponsCreated, CouponsDeleted, CouponsUpdated, CouponCodeExpiring, StrikethroughPrice, LoyaltyPointsAdded, LoyaltyPointsDeducted, LoyaltyPointsExpiring, LoyaltyPointsPendingToActive, LoyaltyAddedDeductedPointsBalances, LoyaltyCardAddedDeductedPointsBalances, TierWillDowngrade, TierUpgrade, TierDowngrade, LoyaltyCardPointsAdded, LoyaltyCardPointsDeducted, LoyaltyCardPointsExpiring] **notificationIDs** | **String**| Filter results by notification ID (include up to 30 values, separated by a comma). | [optional] **createdBefore** | **OffsetDateTime**| Filter results where request and response times to return entries before parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **createdAfter** | **OffsetDateTime**| Filter results where request and response times to return entries after parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] @@ -8996,8 +9262,8 @@ Name | Type | Description | Notes **isSuccessful** | **Boolean**| Indicates whether to return log entries with either successful or unsuccessful HTTP response codes. When set to`true`, only log entries with `2xx` response codes are returned. When set to `false`, only log entries with `4xx` and `5xx` response codes are returned. | [optional] **applicationId** | **BigDecimal**| Filter results by Application ID. | [optional] **campaignId** | **BigDecimal**| Filter results by campaign ID. | [optional] - **loyaltyProgramId** | **Long**| Identifier of the loyalty program. | [optional] - **responseCode** | **Long**| Filter results by response status code. | [optional] + **loyaltyProgramId** | **Integer**| Identifier of the loyalty program. | [optional] + **responseCode** | **Integer**| Filter results by response status code. | [optional] **webhookIDs** | **String**| Filter results by webhook ID (include up to 30 values, separated by a comma). | [optional] ### Return type cool @@ -9056,10 +9322,10 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String code = "code_example"; // String | Filter results performing case-insensitive matching against the referral code. Both the code and the query are folded to remove all non-alpha-numeric characters. OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. @@ -9086,10 +9352,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **code** | **String**| Filter results performing case-insensitive matching against the referral code. Both the code and the query are folded to remove all non-alpha-numeric characters. | [optional] **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] @@ -9154,7 +9420,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long roleId = 56L; // Long | The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. + Integer roleId = 56; // Integer | The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. try { RoleV2 result = apiInstance.getRoleV2(roleId); System.out.println(result); @@ -9174,7 +9440,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **roleId** | **Long**| The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. | + **roleId** | **Integer**| The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. | ### Return type cool @@ -9232,9 +9498,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Long rulesetId = 56L; // Long | The ID of the ruleset. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer rulesetId = 56; // Integer | The ID of the ruleset. try { Ruleset result = apiInstance.getRuleset(applicationId, campaignId, rulesetId); System.out.println(result); @@ -9254,9 +9520,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **rulesetId** | **Long**| The ID of the ruleset. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **rulesetId** | **Integer**| The ID of the ruleset. | ### Return type cool @@ -9314,10 +9580,10 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. try { InlineResponse2009 result = apiInstance.getRulesets(applicationId, campaignId, pageSize, skip, sort); @@ -9338,10 +9604,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] ### Return type cool @@ -9400,7 +9666,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. String storeId = "storeId_example"; // String | The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. try { Store result = apiInstance.getStore(applicationId, storeId); @@ -9421,7 +9687,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **storeId** | **String**| The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. | ### Return type cool @@ -9481,7 +9747,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long userId = 56L; // Long | The ID of the user. + Integer userId = 56; // Integer | The ID of the user. try { User result = apiInstance.getUser(userId); System.out.println(result); @@ -9501,7 +9767,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **userId** | **Long**| The ID of the user. | + **userId** | **Integer**| The ID of the user. | ### Return type cool @@ -9559,8 +9825,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. try { InlineResponse20043 result = apiInstance.getUsers(pageSize, skip, sort); @@ -9581,8 +9847,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] ### Return type cool @@ -9641,7 +9907,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long webhookId = 56L; // Long | The ID of the webhook. You can find the ID in the Campaign Manager's URL when you display the details of the webhook in **Account** > **Webhooks**. + Integer webhookId = 56; // Integer | The ID of the webhook. You can find the ID in the Campaign Manager's URL when you display the details of the webhook in **Account** > **Webhooks**. try { Webhook result = apiInstance.getWebhook(webhookId); System.out.println(result); @@ -9661,7 +9927,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **webhookId** | **Long**| The ID of the webhook. You can find the ID in the Campaign Manager's URL when you display the details of the webhook in **Account** > **Webhooks**. | + **webhookId** | **Integer**| The ID of the webhook. You can find the ID in the Campaign Manager's URL when you display the details of the webhook in **Account** > **Webhooks**. | ### Return type cool @@ -9719,8 +9985,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String integrationRequestUuid = "integrationRequestUuid_example"; // String | Filter results by integration request UUID. BigDecimal webhookId = new BigDecimal(); // BigDecimal | Filter results by webhook id. @@ -9747,8 +10013,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **integrationRequestUuid** | **String**| Filter results by integration request UUID. | [optional] **webhookId** | **BigDecimal**| Filter results by webhook id. | [optional] @@ -9813,8 +10079,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String status = "status_example"; // String | Filter results by HTTP status codes. BigDecimal webhookId = new BigDecimal(); // BigDecimal | Filter results by webhook id. @@ -9842,8 +10108,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **status** | **String**| Filter results by HTTP status codes. | [optional] [enum: success, error] **webhookId** | **BigDecimal**| Filter results by webhook id. | [optional] @@ -9911,11 +10177,11 @@ public class Example { ManagementApi apiInstance = new ManagementApi(defaultClient); String applicationIds = "applicationIds_example"; // String | Checks if the given catalog or its attributes are referenced in the specified Application ID. **Note**: If no Application ID is provided, we check for all connected Applications. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String creationType = "creationType_example"; // String | Filter results by creation type. String visibility = "visibility_example"; // String | Filter results by visibility. - Long outgoingIntegrationsTypeId = 56L; // Long | Filter results by outgoing integration type ID. + Integer outgoingIntegrationsTypeId = 56; // Integer | Filter results by outgoing integration type ID. String title = "title_example"; // String | Filter results performing case-insensitive matching against the webhook title. try { InlineResponse20039 result = apiInstance.getWebhooks(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title); @@ -9938,11 +10204,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationIds** | **String**| Checks if the given catalog or its attributes are referenced in the specified Application ID. **Note**: If no Application ID is provided, we check for all connected Applications. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **creationType** | **String**| Filter results by creation type. | [optional] [enum: templateWebhooks, webhooks] **visibility** | **String**| Filter results by visibility. | [optional] [enum: visible, hidden] - **outgoingIntegrationsTypeId** | **Long**| Filter results by outgoing integration type ID. | [optional] + **outgoingIntegrationsTypeId** | **Integer**| Filter results by outgoing integration type ID. | [optional] **title** | **String**| Filter results performing case-insensitive matching against the webhook title. | [optional] ### Return type cool @@ -10001,7 +10267,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long collectionId = 56L; // Long | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. + Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importAccountCollection(collectionId, upFile); @@ -10022,7 +10288,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **collectionId** | **Long**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | + **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type cool @@ -10083,7 +10349,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long attributeId = 56L; // Long | The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. + Integer attributeId = 56; // Integer | The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importAllowedList(attributeId, upFile); @@ -10104,7 +10370,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attributeId** | **Long**| The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. | + **attributeId** | **Integer**| The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. | **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type cool @@ -10166,7 +10432,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long audienceId = 56L; // Long | The ID of the audience. + Integer audienceId = 56; // Integer | The ID of the audience. String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importAudiencesMemberships(audienceId, upFile); @@ -10187,7 +10453,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audienceId** | **Long**| The ID of the audience. | + **audienceId** | **Integer**| The ID of the audience. | **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type cool @@ -10212,13 +10478,13 @@ Name | Type | Description | Notes | **404** | Not found | - | -## importCampaignStores +## importCampaignStoreBudget -> ModelImport importCampaignStores(applicationId, campaignId, upFile) +> ModelImport importCampaignStoreBudget(applicationId, campaignId, action, period, upFile) -Import stores +Import campaign store budgets -Upload a CSV file containing the stores you want to link to a specific campaign. Send the file as multipart data. The CSV file **must** only contain the following column: - `store_integration_id`: The identifier of the store. The import **replaces** the previous list of stores linked to the campaign. +Upload a CSV file containing store budgets for a given campaign. Send the file as multipart data. The CSV file **must** only contain the following columns: - `store_integration_id`: The identifier of the store. - `limit`: The budget limit for the store. The import **replaces** the previous list of store budgets. ### Example @@ -10249,14 +10515,16 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + String action = "action_example"; // String | The action that this budget is limiting. + String period = "period_example"; // String | The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { - ModelImport result = apiInstance.importCampaignStores(applicationId, campaignId, upFile); + ModelImport result = apiInstance.importCampaignStoreBudget(applicationId, campaignId, action, period, upFile); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#importCampaignStores"); + System.err.println("Exception when calling ManagementApi#importCampaignStoreBudget"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -10271,8 +10539,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **action** | **String**| The action that this budget is limiting. | [optional] [enum: setDiscount] + **period** | **String**| The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. | [optional] [enum: overall, daily, weekly, monthly, yearly] **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type cool @@ -10291,19 +10561,17 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | OK | - | +| **201** | Created | - | | **400** | Bad request | - | -| **401** | Unauthorized - Invalid API key | - | -| **404** | Not found | - | -## importCollection +## importCampaignStores -> ModelImport importCollection(applicationId, campaignId, collectionId, upFile) +> ModelImport importCampaignStores(applicationId, campaignId, upFile) -Import data into existing campaign-level collection +Import stores -Upload a CSV file containing the collection of string values that should be attached as payload for collection. The file should be sent as multipart data. The import **replaces** the initial content of the collection. The CSV file **must** only contain the following column: - `item`: the values in your collection. A collection is limited to 500,000 items. Example: ``` item Addidas Nike Asics ``` **Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection. +Upload a CSV file containing the stores you want to link to a specific campaign. Send the file as multipart data. The CSV file **must** only contain the following column: - `store_integration_id`: The identifier of the store. The import **replaces** the previous list of stores linked to the campaign. ### Example @@ -10334,15 +10602,14 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Long collectionId = 56L; // Long | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { - ModelImport result = apiInstance.importCollection(applicationId, campaignId, collectionId, upFile); + ModelImport result = apiInstance.importCampaignStores(applicationId, campaignId, upFile); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#importCollection"); + System.err.println("Exception when calling ManagementApi#importCampaignStores"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -10357,9 +10624,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **collectionId** | **Long**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type cool @@ -10379,16 +10645,18 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | -| **401** | Unauthorized | - | +| **400** | Bad request | - | +| **401** | Unauthorized - Invalid API key | - | +| **404** | Not found | - | -## importCoupons +## importCollection -> ModelImport importCoupons(applicationId, campaignId, skipDuplicates, upFile) +> ModelImport importCollection(applicationId, campaignId, collectionId, upFile) -Import coupons +Import data into existing campaign-level collection -Upload a CSV file containing the coupons that should be created. The file should be sent as multipart data. The CSV file contains the following columns: - `value` (required): The coupon code. - `expirydate`: The end date in RFC3339 of the code redemption period. - `startdate`: The start date in RFC3339 of the code redemption period. - `recipientintegrationid`: The integration ID of the recipient of the coupon. Only the customer with this integration ID can redeem this code. Available only for personal codes. - `limitval`: The maximum number of redemptions of this code. For unlimited redemptions, use `0`. Defaults to `1` when not provided. - `discountlimit`: The total discount value that the code can give. This is typically used to represent a gift card value. - `attributes`: A JSON object describing _custom_ coupon attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `category` associated with the coupon entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"category\": \"10_off\"}\"`. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```text \"value\",\"expirydate\",\"startdate\",\"recipientintegrationid\",\"limitval\",\"attributes\",\"discountlimit\" COUP1,2018-07-01T04:00:00Z,2018-05-01T04:00:00Z,cust123,1,\"{\"\"Category\"\": \"\"10_off\"\"}\",2.4 ``` Once imported, you can find the `batchId` in the Campaign Manager or by using [List coupons](#tag/Coupons/operation/getCouponsWithoutTotalCount). +Upload a CSV file containing the collection of string values that should be attached as payload for collection. The file should be sent as multipart data. The import **replaces** the initial content of the collection. The CSV file **must** only contain the following column: - `item`: the values in your collection. A collection is limited to 500,000 items. Example: ``` item Addidas Nike Asics ``` **Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection. ### Example @@ -10419,15 +10687,15 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Boolean skipDuplicates = true; // Boolean | An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { - ModelImport result = apiInstance.importCoupons(applicationId, campaignId, skipDuplicates, upFile); + ModelImport result = apiInstance.importCollection(applicationId, campaignId, collectionId, upFile); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#importCoupons"); + System.err.println("Exception when calling ManagementApi#importCollection"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -10442,9 +10710,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **skipDuplicates** | **Boolean**| An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`. | [optional] + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type cool @@ -10464,9 +10732,94 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | +| **401** | Unauthorized | - | -## importLoyaltyCards +## importCoupons + +> ModelImport importCoupons(applicationId, campaignId, skipDuplicates, upFile) + +Import coupons + +Upload a CSV file containing the coupons that should be created. The file should be sent as multipart data. The CSV file contains the following columns: - `value` (required): The coupon code. - `expirydate`: The end date in RFC3339 of the code redemption period. - `startdate`: The start date in RFC3339 of the code redemption period. - `recipientintegrationid`: The integration ID of the recipient of the coupon. Only the customer with this integration ID can redeem this code. Available only for personal codes. - `limitval`: The maximum number of redemptions of this code. For unlimited redemptions, use `0`. Defaults to `1` when not provided. - `discountlimit`: The total discount value that the code can give. This is typically used to represent a gift card value. - `attributes`: A JSON object describing _custom_ coupon attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `category` associated with the coupon entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"category\": \"10_off\"}\"`. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```text \"value\",\"expirydate\",\"startdate\",\"recipientintegrationid\",\"limitval\",\"attributes\",\"discountlimit\" COUP1,2018-07-01T04:00:00Z,2018-05-01T04:00:00Z,cust123,1,\"{\"\"Category\"\": \"\"10_off\"\"}\",2.4 ``` Once imported, you can find the `batchId` in the Campaign Manager or by using [List coupons](#tag/Coupons/operation/getCouponsWithoutTotalCount). + +### Example + +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Boolean skipDuplicates = true; // Boolean | An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`. + String upFile = "upFile_example"; // String | The file containing the data that is being imported. + try { + ModelImport result = apiInstance.importCoupons(applicationId, campaignId, skipDuplicates, upFile); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#importCoupons"); + 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 +------------- | ------------- | ------------- | ------------- + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **skipDuplicates** | **Boolean**| An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`. | [optional] + **upFile** | **String**| The file containing the data that is being imported. | [optional] + +### Return type cool + +[**ModelImport**](ModelImport.md) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | + + +## importLoyaltyCards > ModelImport importLoyaltyCards(loyaltyProgramId, upFile) @@ -10503,7 +10856,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importLoyaltyCards(loyaltyProgramId, upFile); @@ -10524,7 +10877,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type cool @@ -10585,7 +10938,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importLoyaltyCustomersTiers(loyaltyProgramId, upFile); @@ -10606,7 +10959,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type cool @@ -10633,7 +10986,7 @@ Name | Type | Description | Notes ## importLoyaltyPoints -> ModelImport importLoyaltyPoints(loyaltyProgramId, upFile) +> ModelImport importLoyaltyPoints(loyaltyProgramId, notificationsEnabled, upFile) Import loyalty points @@ -10668,10 +11021,11 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Boolean notificationsEnabled = true; // Boolean | Indicates whether the points import triggers notifications about its effects. For example, a notification is sent if the import upgrades a customer's tier or offsets their negative points balance. This parameter is optional and defaults to `true`. String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { - ModelImport result = apiInstance.importLoyaltyPoints(loyaltyProgramId, upFile); + ModelImport result = apiInstance.importLoyaltyPoints(loyaltyProgramId, notificationsEnabled, upFile); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#importLoyaltyPoints"); @@ -10689,7 +11043,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **notificationsEnabled** | **Boolean**| Indicates whether the points import triggers notifications about its effects. For example, a notification is sent if the import upgrades a customer's tier or offsets their negative points balance. This parameter is optional and defaults to `true`. | [optional] **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type cool @@ -10748,7 +11103,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long poolId = 56L; // Long | The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. + Integer poolId = 56; // Integer | The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importPoolGiveaways(poolId, upFile); @@ -10769,7 +11124,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **poolId** | **Long**| The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. | + **poolId** | **Integer**| The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. | **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type cool @@ -10828,8 +11183,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. String upFile = "upFile_example"; // String | The file containing the data that is being imported. try { ModelImport result = apiInstance.importReferrals(applicationId, campaignId, upFile); @@ -10850,8 +11205,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **upFile** | **String**| The file containing the data that is being imported. | [optional] ### Return type cool @@ -10987,8 +11342,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. String name = "name_example"; // String | Filter by collection name. @@ -11011,8 +11366,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] **name** | **String**| Filter by collection name. | [optional] @@ -11041,7 +11396,7 @@ Name | Type | Description | Notes ## listAchievements -> InlineResponse20048 listAchievements(applicationId, campaignId, pageSize, skip, title) +> InlineResponse20050 listAchievements(applicationId, campaignId, pageSize, skip, title) List achievements @@ -11076,13 +11431,13 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Long pageSize = 50lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer pageSize = 50; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String title = "title_example"; // String | Filter by the display name for the achievement in the campaign manager. **Note**: If no `title` is provided, all the achievements from the campaign are returned. try { - InlineResponse20048 result = apiInstance.listAchievements(applicationId, campaignId, pageSize, skip, title); + InlineResponse20050 result = apiInstance.listAchievements(applicationId, campaignId, pageSize, skip, title); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagementApi#listAchievements"); @@ -11100,15 +11455,15 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 50l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **title** | **String**| Filter by the display name for the achievement in the campaign manager. **Note**: If no `title` is provided, all the achievements from the campaign are returned. | [optional] ### Return type cool -[**InlineResponse20048**](InlineResponse20048.md) +[**InlineResponse20050**](InlineResponse20050.md) ### Authorization @@ -11199,6 +11554,93 @@ This endpoint does not need any parameter. | **200** | OK | - | +## listCampaignStoreBudgetLimits + +> InlineResponse20048 listCampaignStoreBudgetLimits(applicationId, campaignId, action, period) + +List campaign store budget limits + +Return the store budget limits for a given campaign. + +### Example + +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + String action = "action_example"; // String | The action that this budget is limiting. + String period = "period_example"; // String | The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. + try { + InlineResponse20048 result = apiInstance.listCampaignStoreBudgetLimits(applicationId, campaignId, action, period); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#listCampaignStoreBudgetLimits"); + 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 +------------- | ------------- | ------------- | ------------- + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **action** | **String**| The action that this budget is limiting. | [optional] [enum: setDiscount] + **period** | **String**| The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. | [optional] [enum: overall, daily, weekly, monthly, yearly] + +### Return type cool + +[**InlineResponse20048**](InlineResponse20048.md) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad request | - | +| **401** | Unauthorized - Invalid API key | - | +| **404** | Not found | - | + + ## listCatalogItems > InlineResponse20037 listCatalogItems(catalogId, pageSize, skip, withTotalResultSize, sku, productNames) @@ -11236,9 +11678,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long catalogId = 56L; // Long | The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer catalogId = 56; // Integer | The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. List sku = Arrays.asList(); // List | Filter results by one or more SKUs. Must be exact match. List productNames = Arrays.asList(); // List | Filter results by one or more product names. Must be exact match. @@ -11261,9 +11703,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **catalogId** | **Long**| The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **catalogId** | **Integer**| The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] **sku** | [**List<String>**](String.md)| Filter results by one or more SKUs. Must be exact match. | [optional] **productNames** | [**List<String>**](String.md)| Filter results by one or more product names. Must be exact match. | [optional] @@ -11324,10 +11766,10 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. String name = "name_example"; // String | Filter by collection name. @@ -11350,10 +11792,10 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] **name** | **String**| Filter by collection name. | [optional] @@ -11415,9 +11857,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. String name = "name_example"; // String | Filter by collection name. @@ -11440,9 +11882,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] **name** | **String**| Filter by collection name. | [optional] @@ -11504,9 +11946,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign ID. @@ -11532,9 +11974,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional] **campaignId** | **BigDecimal**| Filter results by campaign ID. | [optional] @@ -11796,13 +12238,13 @@ Name | Type | Description | Notes | **204** | Created | - | -## scimCreateUser +## scimCreateGroup -> ScimUser scimCreateUser(body) +> ScimGroup scimCreateGroup(body) -Create SCIM user +Create SCIM group -Create a new Talon.One user using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. +Create a new Talon.One group using the SCIM Group provisioning protocol with an identity provider, for example, Microsoft Entra ID, and assign members from the payload to the new group. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. ### Example @@ -11833,12 +12275,12 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - ScimNewUser body = new ScimNewUser(); // ScimNewUser | body + ScimBaseGroup body = new ScimBaseGroup(); // ScimBaseGroup | body try { - ScimUser result = apiInstance.scimCreateUser(body); + ScimGroup result = apiInstance.scimCreateGroup(body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#scimCreateUser"); + System.err.println("Exception when calling ManagementApi#scimCreateGroup"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -11853,11 +12295,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**ScimNewUser**](ScimNewUser.md)| body | + **body** | [**ScimBaseGroup**](ScimBaseGroup.md)| body | ### Return type cool -[**ScimUser**](ScimUser.md) +[**ScimGroup**](ScimGroup.md) ### Authorization @@ -11874,13 +12316,13 @@ Name | Type | Description | Notes | **201** | Created | - | -## scimDeleteUser +## scimCreateUser -> scimDeleteUser(userId) +> ScimUser scimCreateUser(body) -Delete SCIM user +Create SCIM user -Delete a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. +Create a new Talon.One user using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. ### Example @@ -11911,11 +12353,12 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long userId = 56L; // Long | The ID of the user. + ScimNewUser body = new ScimNewUser(); // ScimNewUser | body try { - apiInstance.scimDeleteUser(userId); + ScimUser result = apiInstance.scimCreateUser(body); + System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#scimDeleteUser"); + System.err.println("Exception when calling ManagementApi#scimCreateUser"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -11930,11 +12373,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **userId** | **Long**| The ID of the user. | + **body** | [**ScimNewUser**](ScimNewUser.md)| body | ### Return type cool -null (empty response body) +[**ScimUser**](ScimUser.md) ### Authorization @@ -11942,22 +12385,22 @@ null (empty response body) ### HTTP request headers -- **Content-Type**: Not defined -- **Accept**: Not defined +- **Content-Type**: application/json +- **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | No Content | - | +| **201** | Created | - | -## scimGetResourceTypes +## scimDeleteGroup -> ScimResourceTypesListResponse scimGetResourceTypes() +> scimDeleteGroup(groupId) -List supported SCIM resource types +Delete SCIM group -Retrieve a list of resource types supported by the SCIM provisioning protocol. Resource types define the various kinds of resources that can be managed via the SCIM API, such as users, groups, or custom-defined resources. +Delete a specific group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. ### Example @@ -11988,11 +12431,11 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer groupId = 56; // Integer | The ID of the group. try { - ScimResourceTypesListResponse result = apiInstance.scimGetResourceTypes(); - System.out.println(result); + apiInstance.scimDeleteGroup(groupId); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#scimGetResourceTypes"); + System.err.println("Exception when calling ManagementApi#scimDeleteGroup"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -12004,11 +12447,14 @@ public class Example { ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **groupId** | **Integer**| The ID of the group. | ### Return type cool -[**ScimResourceTypesListResponse**](ScimResourceTypesListResponse.md) +null (empty response body) ### Authorization @@ -12017,21 +12463,21 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: Not defined ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | List of resource types | - | +| **204** | No Content | - | -## scimGetSchemas +## scimDeleteUser -> ScimSchemasListResponse scimGetSchemas() +> scimDeleteUser(userId) -List supported SCIM schemas +Delete SCIM user -Retrieve a list of schemas supported by the SCIM provisioning protocol. Schemas define the structure and attributes of the different resources that can be managed via the SCIM API, such as users, groups, and any custom-defined resources. +Delete a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. ### Example @@ -12062,11 +12508,11 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer userId = 56; // Integer | The ID of the user. try { - ScimSchemasListResponse result = apiInstance.scimGetSchemas(); - System.out.println(result); + apiInstance.scimDeleteUser(userId); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#scimGetSchemas"); + System.err.println("Exception when calling ManagementApi#scimDeleteUser"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -12078,11 +12524,14 @@ public class Example { ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **Integer**| The ID of the user. | ### Return type cool -[**ScimSchemasListResponse**](ScimSchemasListResponse.md) +null (empty response body) ### Authorization @@ -12091,21 +12540,21 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: Not defined ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | List of schemas supported by the SCIM provisioning protocol | - | +| **204** | No Content | - | -## scimGetServiceProviderConfig +## scimGetGroup -> ScimServiceProviderConfigResponse scimGetServiceProviderConfig() +> ScimGroup scimGetGroup(groupId) -Get SCIM service provider configuration +Get SCIM group -Retrieve the configuration settings of the SCIM service provider. It provides details about the features and capabilities supported by the SCIM API, such as the different operation settings. +Retrieve data for a specific group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. ### Example @@ -12136,11 +12585,12 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer groupId = 56; // Integer | The ID of the group. try { - ScimServiceProviderConfigResponse result = apiInstance.scimGetServiceProviderConfig(); + ScimGroup result = apiInstance.scimGetGroup(groupId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#scimGetServiceProviderConfig"); + System.err.println("Exception when calling ManagementApi#scimGetGroup"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -12152,11 +12602,14 @@ public class Example { ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **groupId** | **Integer**| The ID of the group. | ### Return type cool -[**ScimServiceProviderConfigResponse**](ScimServiceProviderConfigResponse.md) +[**ScimGroup**](ScimGroup.md) ### Authorization @@ -12170,16 +12623,16 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Service configuration | - | +| **200** | Group details | - | -## scimGetUser +## scimGetGroups -> ScimUser scimGetUser(userId) +> ScimGroupsListResponse scimGetGroups() -Get SCIM user +List SCIM groups -Retrieve data for a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. +Retrieve a paginated list of groups created using the SCIM protocol with an identity provider, for example, Microsoft Entra ID. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. ### Example @@ -12210,12 +12663,11 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long userId = 56L; // Long | The ID of the user. try { - ScimUser result = apiInstance.scimGetUser(userId); + ScimGroupsListResponse result = apiInstance.scimGetGroups(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ManagementApi#scimGetUser"); + System.err.println("Exception when calling ManagementApi#scimGetGroups"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -12227,14 +12679,11 @@ public class Example { ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **userId** | **Long**| The ID of the user. | +This endpoint does not need any parameter. ### Return type cool -[**ScimUser**](ScimUser.md) +[**ScimGroupsListResponse**](ScimGroupsListResponse.md) ### Authorization @@ -12248,14 +12697,314 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | User details | - | +| **200** | List of SCIM groups | - | -## scimGetUsers +## scimGetResourceTypes -> ScimUsersListResponse scimGetUsers() +> ScimResourceTypesListResponse scimGetResourceTypes() -List SCIM users +List supported SCIM resource types + +Retrieve a list of resource types supported by the SCIM provisioning protocol. Resource types define the various kinds of resources that can be managed via the SCIM API, such as users, groups, or custom-defined resources. + +### Example + +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + try { + ScimResourceTypesListResponse result = apiInstance.scimGetResourceTypes(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#scimGetResourceTypes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type cool + +[**ScimResourceTypesListResponse**](ScimResourceTypesListResponse.md) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | List of resource types | - | + + +## scimGetSchemas + +> ScimSchemasListResponse scimGetSchemas() + +List supported SCIM schemas + +Retrieve a list of schemas supported by the SCIM provisioning protocol. Schemas define the structure and attributes of the different resources that can be managed via the SCIM API, such as users, groups, and any custom-defined resources. + +### Example + +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + try { + ScimSchemasListResponse result = apiInstance.scimGetSchemas(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#scimGetSchemas"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type cool + +[**ScimSchemasListResponse**](ScimSchemasListResponse.md) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | List of schemas supported by the SCIM provisioning protocol | - | + + +## scimGetServiceProviderConfig + +> ScimServiceProviderConfigResponse scimGetServiceProviderConfig() + +Get SCIM service provider configuration + +Retrieve the configuration settings of the SCIM service provider. It provides details about the features and capabilities supported by the SCIM API, such as the different operation settings. + +### Example + +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + try { + ScimServiceProviderConfigResponse result = apiInstance.scimGetServiceProviderConfig(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#scimGetServiceProviderConfig"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type cool + +[**ScimServiceProviderConfigResponse**](ScimServiceProviderConfigResponse.md) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Service configuration | - | + + +## scimGetUser + +> ScimUser scimGetUser(userId) + +Get SCIM user + +Retrieve data for a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + +### Example + +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer userId = 56; // Integer | The ID of the user. + try { + ScimUser result = apiInstance.scimGetUser(userId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#scimGetUser"); + 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 +------------- | ------------- | ------------- | ------------- + **userId** | **Integer**| The ID of the user. | + +### Return type cool + +[**ScimUser**](ScimUser.md) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | User details | - | + + +## scimGetUsers + +> ScimUsersListResponse scimGetUsers() + +List SCIM users Retrieve a paginated list of users that have been provisioned using the SCIM protocol with an identity provider, for example, Microsoft Entra ID. @@ -12325,6 +13074,86 @@ This endpoint does not need any parameter. | **200** | List of SCIM users | - | +## scimPatchGroup + +> ScimGroup scimPatchGroup(groupId, body) + +Update SCIM group attributes + +Update certain attributes of a group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint allows for selective adding, removing, or replacing of specific group attributes while other attributes remain unchanged. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + +### Example + +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer groupId = 56; // Integer | The ID of the group. + ScimPatchRequest body = new ScimPatchRequest(); // ScimPatchRequest | body + try { + ScimGroup result = apiInstance.scimPatchGroup(groupId, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#scimPatchGroup"); + 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 +------------- | ------------- | ------------- | ------------- + **groupId** | **Integer**| The ID of the group. | + **body** | [**ScimPatchRequest**](ScimPatchRequest.md)| body | + +### Return type cool + +[**ScimGroup**](ScimGroup.md) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Group details | - | + + ## scimPatchUser > ScimUser scimPatchUser(userId, body) @@ -12362,7 +13191,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long userId = 56L; // Long | The ID of the user. + Integer userId = 56; // Integer | The ID of the user. ScimPatchRequest body = new ScimPatchRequest(); // ScimPatchRequest | body try { ScimUser result = apiInstance.scimPatchUser(userId, body); @@ -12383,7 +13212,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **userId** | **Long**| The ID of the user. | + **userId** | **Integer**| The ID of the user. | **body** | [**ScimPatchRequest**](ScimPatchRequest.md)| body | ### Return type cool @@ -12405,6 +13234,86 @@ Name | Type | Description | Notes | **200** | User details | - | +## scimReplaceGroupAttributes + +> ScimGroup scimReplaceGroupAttributes(groupId, body) + +Update SCIM group + +Update the details of a specific group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint replaces all attributes of the given group with the attributes provided in the request payload. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + +### Example + +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer groupId = 56; // Integer | The ID of the group. + ScimBaseGroup body = new ScimBaseGroup(); // ScimBaseGroup | body + try { + ScimGroup result = apiInstance.scimReplaceGroupAttributes(groupId, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#scimReplaceGroupAttributes"); + 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 +------------- | ------------- | ------------- | ------------- + **groupId** | **Integer**| The ID of the group. | + **body** | [**ScimBaseGroup**](ScimBaseGroup.md)| body | + +### Return type cool + +[**ScimGroup**](ScimGroup.md) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Group details | - | + + ## scimReplaceUserAttributes > ScimUser scimReplaceUserAttributes(userId, body) @@ -12442,7 +13351,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long userId = 56L; // Long | The ID of the user. + Integer userId = 56; // Integer | The ID of the user. ScimNewUser body = new ScimNewUser(); // ScimNewUser | body try { ScimUser result = apiInstance.scimReplaceUserAttributes(userId, body); @@ -12463,7 +13372,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **userId** | **Long**| The ID of the user. | + **userId** | **Integer**| The ID of the user. | **body** | [**ScimNewUser**](ScimNewUser.md)| body | ### Return type cool @@ -12522,17 +13431,17 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. Object body = null; // Object | body - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. String valid = "valid_example"; // String | Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. String usable = "usable_example"; // String | Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. - Long referralId = 56L; // Long | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. + Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. String batchId = "batchId_example"; // String | Filter results by batches of coupons Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code. @@ -12556,17 +13465,17 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **body** | **Object**| body | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **value** | **String**| Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. | [optional] **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **valid** | **String**| Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. | [optional] [enum: expired, validNow, validFuture] **usable** | **String**| Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. | [optional] [enum: true, false] - **referralId** | **Long**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] + **referralId** | **Integer**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] **recipientIntegrationId** | **String**| Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. | [optional] **batchId** | **String**| Filter results by batches of coupons | [optional] **exactMatch** | **Boolean**| Filter results to an exact case-insensitive matching against the coupon code. | [optional] [default to false] @@ -12628,18 +13537,18 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. Object body = null; // Object | body - Long pageSize = 1000lL; // Long | The number of items in the response. - Long skip = 56L; // Long | The number of items to skip when paging through large result sets. + Integer pageSize = 1000; // Integer | The number of items in the response. + Integer skip = 56; // Integer | The number of items to skip when paging through large result sets. String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. String valid = "valid_example"; // String | Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. String usable = "usable_example"; // String | Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. - Long referralId = 56L; // Long | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. + Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code. String batchId = "batchId_example"; // String | Filter results by batches of coupons @@ -12662,18 +13571,18 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **body** | **Object**| body | - **pageSize** | **Long**| The number of items in the response. | [optional] [default to 1000l] - **skip** | **Long**| The number of items to skip when paging through large result sets. | [optional] + **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000] + **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional] **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. | [optional] **value** | **String**| Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. | [optional] **createdBefore** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional] **valid** | **String**| Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future. | [optional] [enum: expired, validNow, validFuture] **usable** | **String**| Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`. | [optional] [enum: true, false] - **referralId** | **Long**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] + **referralId** | **Integer**| Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code. | [optional] **recipientIntegrationId** | **String**| Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field. | [optional] **exactMatch** | **Boolean**| Filter results to an exact case-insensitive matching against the coupon code. | [optional] [default to false] **batchId** | **String**| Filter results by batches of coupons | [optional] @@ -12697,6 +13606,89 @@ Name | Type | Description | Notes | **200** | OK | - | +## summarizeCampaignStoreBudget + +> InlineResponse20049 summarizeCampaignStoreBudget(applicationId, campaignId) + +Get summary of campaign store budgets + +Fetch a summary of all store budget information for a given campaign. + +### Example + +```java +// Import classes: +import one.talon.ApiClient; +import one.talon.ApiException; +import one.talon.Configuration; +import one.talon.auth.*; +import one.talon.models.*; +import one.talon.api.ManagementApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://yourbaseurl.talon.one"); + + // Configure API key authorization: management_key + ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key"); + management_key.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //management_key.setApiKeyPrefix("Token"); + + // Configure API key authorization: manager_auth + ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth"); + manager_auth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //manager_auth.setApiKeyPrefix("Token"); + + ManagementApi apiInstance = new ManagementApi(defaultClient); + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + try { + InlineResponse20049 result = apiInstance.summarizeCampaignStoreBudget(applicationId, campaignId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ManagementApi#summarizeCampaignStoreBudget"); + 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 +------------- | ------------- | ------------- | ------------- + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + +### Return type cool + +[**InlineResponse20049**](InlineResponse20049.md) + +### Authorization + +[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad request | - | +| **401** | Unauthorized - Invalid API key | - | +| **404** | Not found | - | + + ## transferLoyaltyCard > transferLoyaltyCard(loyaltyProgramId, loyaltyCardId, body) @@ -12734,7 +13726,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. TransferLoyaltyCard body = new TransferLoyaltyCard(); // TransferLoyaltyCard | body try { @@ -12755,7 +13747,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | **body** | [**TransferLoyaltyCard**](TransferLoyaltyCard.md)| body | @@ -12818,7 +13810,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long collectionId = 56L; // Long | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. + Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. UpdateCollection body = new UpdateCollection(); // UpdateCollection | body try { Collection result = apiInstance.updateAccountCollection(collectionId, body); @@ -12839,7 +13831,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **collectionId** | **Long**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | + **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. | **body** | [**UpdateCollection**](UpdateCollection.md)| body | ### Return type cool @@ -12901,9 +13893,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Long achievementId = 56L; // Long | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. UpdateAchievement body = new UpdateAchievement(); // UpdateAchievement | body try { Achievement result = apiInstance.updateAchievement(applicationId, campaignId, achievementId, body); @@ -12924,9 +13916,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **achievementId** | **Long**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **achievementId** | **Integer**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | **body** | [**UpdateAchievement**](UpdateAchievement.md)| body | ### Return type cool @@ -12988,7 +13980,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long additionalCostId = 56L; // Long | The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. + Integer additionalCostId = 56; // Integer | The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. NewAdditionalCost body = new NewAdditionalCost(); // NewAdditionalCost | body try { AccountAdditionalCost result = apiInstance.updateAdditionalCost(additionalCostId, body); @@ -13009,7 +14001,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **additionalCostId** | **Long**| The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. | + **additionalCostId** | **Integer**| The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. | **body** | [**NewAdditionalCost**](NewAdditionalCost.md)| body | ### Return type cool @@ -13068,7 +14060,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long attributeId = 56L; // Long | The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. + Integer attributeId = 56; // Integer | The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. NewAttribute body = new NewAttribute(); // NewAttribute | body try { Attribute result = apiInstance.updateAttribute(attributeId, body); @@ -13089,7 +14081,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attributeId** | **Long**| The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. | + **attributeId** | **Integer**| The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. | **body** | [**NewAttribute**](NewAttribute.md)| body | ### Return type cool @@ -13148,8 +14140,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. UpdateCampaign body = new UpdateCampaign(); // UpdateCampaign | body try { Campaign result = apiInstance.updateCampaign(applicationId, campaignId, body); @@ -13170,8 +14162,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **body** | [**UpdateCampaign**](UpdateCampaign.md)| body | ### Return type cool @@ -13230,9 +14222,9 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. - Long collectionId = 56L; // Long | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. UpdateCampaignCollection body = new UpdateCampaignCollection(); // UpdateCampaignCollection | body try { Collection result = apiInstance.updateCollection(applicationId, campaignId, collectionId, body); @@ -13253,9 +14245,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | - **collectionId** | **Long**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. | **body** | [**UpdateCampaignCollection**](UpdateCampaignCollection.md)| body | ### Return type cool @@ -13315,8 +14307,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. String couponId = "couponId_example"; // String | The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. UpdateCoupon body = new UpdateCoupon(); // UpdateCoupon | body try { @@ -13338,8 +14330,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **couponId** | **String**| The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. | **body** | [**UpdateCoupon**](UpdateCoupon.md)| body | @@ -13399,8 +14391,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. UpdateCouponBatch body = new UpdateCouponBatch(); // UpdateCouponBatch | body try { apiInstance.updateCouponBatch(applicationId, campaignId, body); @@ -13420,8 +14412,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **body** | [**UpdateCouponBatch**](UpdateCouponBatch.md)| body | ### Return type cool @@ -13480,7 +14472,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long loyaltyProgramId = 56L; // Long | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. + Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. UpdateLoyaltyCard body = new UpdateLoyaltyCard(); // UpdateLoyaltyCard | body try { @@ -13502,7 +14494,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loyaltyProgramId** | **Long**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | + **loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. | **loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. | **body** | [**UpdateLoyaltyCard**](UpdateLoyaltyCard.md)| body | @@ -13565,8 +14557,8 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. - Long campaignId = 56L; // Long | The ID of the campaign. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL. String referralId = "referralId_example"; // String | The ID of the referral code. UpdateReferral body = new UpdateReferral(); // UpdateReferral | body try { @@ -13588,8 +14580,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | - **campaignId** | **Long**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. | **referralId** | **String**| The ID of the referral code. | **body** | [**UpdateReferral**](UpdateReferral.md)| body | @@ -13649,7 +14641,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long roleId = 56L; // Long | The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. + Integer roleId = 56; // Integer | The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. RoleV2Base body = new RoleV2Base(); // RoleV2Base | body try { RoleV2 result = apiInstance.updateRoleV2(roleId, body); @@ -13670,7 +14662,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **roleId** | **Long**| The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. | + **roleId** | **Integer**| The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. | **body** | [**RoleV2Base**](RoleV2Base.md)| body | ### Return type cool @@ -13729,7 +14721,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long applicationId = 56L; // Long | The ID of the Application. It is displayed in your Talon.One deployment URL. + Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL. String storeId = "storeId_example"; // String | The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. NewStore body = new NewStore(); // NewStore | body try { @@ -13751,7 +14743,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationId** | **Long**| The ID of the Application. It is displayed in your Talon.One deployment URL. | + **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. | **storeId** | **String**| The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. | **body** | [**NewStore**](NewStore.md)| body | @@ -13813,7 +14805,7 @@ public class Example { //manager_auth.setApiKeyPrefix("Token"); ManagementApi apiInstance = new ManagementApi(defaultClient); - Long userId = 56L; // Long | The ID of the user. + Integer userId = 56; // Integer | The ID of the user. UpdateUser body = new UpdateUser(); // UpdateUser | body try { User result = apiInstance.updateUser(userId, body); @@ -13834,7 +14826,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **userId** | **Long**| The ID of the user. | + **userId** | **Integer**| The ID of the user. | **body** | [**UpdateUser**](UpdateUser.md)| body | ### Return type cool diff --git a/docs/ManagementKey.md b/docs/ManagementKey.md index ad412ce1..72a6f395 100644 --- a/docs/ManagementKey.md +++ b/docs/ManagementKey.md @@ -9,10 +9,10 @@ Name | Type | Description | Notes **name** | **String** | Name for management key. | **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | The date the management key expires. | **endpoints** | [**List<Endpoint>**](Endpoint.md) | The list of endpoints that can be accessed with the key | -**allowedApplicationIds** | **List<Long>** | A list of Application IDs that you can access with the management key. An empty or missing list means the management key can be used for all Applications in the account. | [optional] -**id** | **Long** | ID of the management key. | -**createdBy** | **Long** | ID of the user who created it. | -**accountID** | **Long** | ID of account the key is used for. | +**allowedApplicationIds** | **List<Integer>** | A list of Application IDs that you can access with the management key. An empty or missing list means the management key can be used for all Applications in the account. | [optional] +**id** | **Integer** | ID of the management key. | +**createdBy** | **Integer** | ID of the user who created it. | +**accountID** | **Integer** | ID of account the key is used for. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The date the management key was created. | **disabled** | **Boolean** | The management key is disabled (this property is set to `true`) when the user who created the key is disabled or deleted. | [optional] diff --git a/docs/ManagerConfig.md b/docs/ManagerConfig.md index d1f96bc9..649bfd3b 100644 --- a/docs/ManagerConfig.md +++ b/docs/ManagerConfig.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**schemaVersion** | **Long** | | +**schemaVersion** | **Integer** | | diff --git a/docs/MessageLogEntry.md b/docs/MessageLogEntry.md index 95535651..d237317e 100644 --- a/docs/MessageLogEntry.md +++ b/docs/MessageLogEntry.md @@ -10,18 +10,18 @@ Name | Type | Description | Notes **id** | **String** | Unique identifier of the message. | **service** | **String** | Name of the service that generated the log entry. | **changeType** | **String** | Type of change that triggered the notification. | [optional] -**notificationId** | **Long** | ID of the notification. | [optional] +**notificationId** | **Integer** | ID of the notification. | [optional] **notificationName** | **String** | The name of the notification. | [optional] -**webhookId** | **Long** | ID of the webhook. | [optional] +**webhookId** | **Integer** | ID of the webhook. | [optional] **webhookName** | **String** | The name of the webhook. | [optional] **request** | [**MessageLogRequest**](MessageLogRequest.md) | | [optional] **response** | [**MessageLogResponse**](MessageLogResponse.md) | | [optional] **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the log entry was created. | **entityType** | [**EntityTypeEnum**](#EntityTypeEnum) | The entity type the log is related to. | **url** | **String** | The target URL of the request. | [optional] -**applicationId** | **Long** | Identifier of the Application. | [optional] -**loyaltyProgramId** | **Long** | Identifier of the loyalty program. | [optional] -**campaignId** | **Long** | Identifier of the campaign. | [optional] +**applicationId** | **Integer** | Identifier of the Application. | [optional] +**loyaltyProgramId** | **Integer** | Identifier of the loyalty program. | [optional] +**campaignId** | **Integer** | Identifier of the campaign. | [optional] diff --git a/docs/MessageLogResponse.md b/docs/MessageLogResponse.md index 3f957a45..7f9e54db 100644 --- a/docs/MessageLogResponse.md +++ b/docs/MessageLogResponse.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the response was received. | [optional] **response** | **byte[]** | Raw response data. | [optional] -**status** | **Long** | HTTP status code of the response. | [optional] +**status** | **Integer** | HTTP status code of the response. | [optional] diff --git a/docs/MessageTest.md b/docs/MessageTest.md index f72114b7..1c0a7668 100644 --- a/docs/MessageTest.md +++ b/docs/MessageTest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **httpResponse** | **String** | The returned http response. | -**httpStatus** | **Long** | The returned http status code. | +**httpStatus** | **Integer** | The returned http status code. | diff --git a/docs/ModelImport.md b/docs/ModelImport.md index 058e54cb..72e88028 100644 --- a/docs/ModelImport.md +++ b/docs/ModelImport.md @@ -6,12 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**accountId** | **Long** | The ID of the account that owns this entity. | -**userId** | **Long** | The ID of the user associated with this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | +**userId** | **Integer** | The ID of the user associated with this entity. | **entity** | **String** | The name of the entity that was imported. | -**amount** | **Long** | The number of values that were imported. | +**amount** | **Integer** | The number of values that were imported. | diff --git a/docs/ModelReturn.md b/docs/ModelReturn.md index 859360cb..a58d6fd2 100644 --- a/docs/ModelReturn.md +++ b/docs/ModelReturn.md @@ -6,17 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**applicationId** | **Long** | The ID of the Application that owns this entity. | -**accountId** | **Long** | The ID of the account that owns this entity. | +**applicationId** | **Integer** | The ID of the Application that owns this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | **returnedCartItems** | [**List<ReturnedCartItem>**](ReturnedCartItem.md) | List of cart items to be returned. | -**eventId** | **Long** | The event ID of that was generated for this return. | -**sessionId** | **Long** | The internal ID of the session this return was requested on. | +**eventId** | **Integer** | The event ID of that was generated for this return. | +**sessionId** | **Integer** | The internal ID of the session this return was requested on. | **sessionIntegrationId** | **String** | The integration ID of the session this return was requested on. | -**profileId** | **Long** | The internal ID of the profile this return was requested on. | [optional] +**profileId** | **Integer** | The internal ID of the profile this return was requested on. | [optional] **profileIntegrationId** | **String** | The integration ID of the profile this return was requested on. | [optional] -**createdBy** | **Long** | ID of the user who requested this return. | [optional] +**createdBy** | **Integer** | ID of the user who requested this return. | [optional] diff --git a/docs/MultiApplicationEntity.md b/docs/MultiApplicationEntity.md index a6d5ddfc..9f8d6787 100644 --- a/docs/MultiApplicationEntity.md +++ b/docs/MultiApplicationEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applicationIds** | **List<Long>** | The IDs of the Applications that are related to this entity. | +**applicationIds** | **List<Integer>** | The IDs of the Applications that are related to this entity. | diff --git a/docs/MultipleAudiences.md b/docs/MultipleAudiences.md index f315b1f1..31c457e3 100644 --- a/docs/MultipleAudiences.md +++ b/docs/MultipleAudiences.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**accountId** | **Long** | The ID of the account that owns this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | **audiences** | [**List<MultipleAudiencesItem>**](MultipleAudiencesItem.md) | | diff --git a/docs/MultipleAudiencesItem.md b/docs/MultipleAudiencesItem.md index 49078163..9a6c2726 100644 --- a/docs/MultipleAudiencesItem.md +++ b/docs/MultipleAudiencesItem.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **name** | **String** | The human-friendly display name for this audience. | **integrationId** | **String** | The ID of this audience in the third-party integration. | diff --git a/docs/NewAdditionalCost.md b/docs/NewAdditionalCost.md index c96a47d6..c0d41330 100644 --- a/docs/NewAdditionalCost.md +++ b/docs/NewAdditionalCost.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **name** | **String** | The internal name used in API requests. | **title** | **String** | The human-readable name for the additional cost that will be shown in the Campaign Manager. Like `name`, the combination of entity and title must also be unique. | **description** | **String** | A description of this additional cost. | -**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the applications that are subscribed to this additional cost. | [optional] +**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the applications that are subscribed to this additional cost. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The type of additional cost. Possible value: - `session`: Additional cost will be added per session. - `item`: Additional cost will be added per item. - `both`: Additional cost will be added per item and session. | [optional] diff --git a/docs/NewAppWideCouponDeletionJob.md b/docs/NewAppWideCouponDeletionJob.md index 2783f6c6..8e23c0b0 100644 --- a/docs/NewAppWideCouponDeletionJob.md +++ b/docs/NewAppWideCouponDeletionJob.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **filters** | [**CouponDeletionFilters**](CouponDeletionFilters.md) | | -**campaignids** | **List<Long>** | | +**campaignids** | **List<Integer>** | | diff --git a/docs/NewApplicationAPIKey.md b/docs/NewApplicationAPIKey.md index 4f435724..969ed30a 100644 --- a/docs/NewApplicationAPIKey.md +++ b/docs/NewApplicationAPIKey.md @@ -10,11 +10,11 @@ Name | Type | Description | Notes **expires** | [**OffsetDateTime**](OffsetDateTime.md) | The date the API key expires. | **platform** | [**PlatformEnum**](#PlatformEnum) | The third-party platform the API key is valid for. Use `none` for a generic API key to be used from your own integration layer. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. | [optional] -**timeOffset** | **Long** | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. | [optional] -**id** | **Long** | ID of the API Key. | -**createdBy** | **Long** | ID of user who created. | -**accountID** | **Long** | ID of account the key is used for. | -**applicationID** | **Long** | ID of application the key is used for. | +**timeOffset** | **Integer** | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. | [optional] +**id** | **Integer** | ID of the API Key. | +**createdBy** | **Integer** | ID of user who created. | +**accountID** | **Integer** | ID of account the key is used for. | +**applicationID** | **Integer** | ID of application the key is used for. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The date the API key was created. | **key** | **String** | The API key. | diff --git a/docs/NewApplicationCIF.md b/docs/NewApplicationCIF.md index 75e2d88e..c24c9766 100644 --- a/docs/NewApplicationCIF.md +++ b/docs/NewApplicationCIF.md @@ -8,9 +8,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of the Application cart item filter used in API requests. | **description** | **String** | A short description of the Application cart item filter. | [optional] -**activeExpressionId** | **Long** | The ID of the expression that the Application cart item filter uses. | [optional] -**modifiedBy** | **Long** | The ID of the user who last updated the Application cart item filter. | [optional] -**createdBy** | **Long** | The ID of the user who created the Application cart item filter. | [optional] +**activeExpressionId** | **Integer** | The ID of the expression that the Application cart item filter uses. | [optional] +**modifiedBy** | **Integer** | The ID of the user who last updated the Application cart item filter. | [optional] +**createdBy** | **Integer** | The ID of the user who created the Application cart item filter. | [optional] **modified** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent update to the Application cart item filter. | [optional] diff --git a/docs/NewApplicationCIFExpression.md b/docs/NewApplicationCIFExpression.md index caa782cf..d3a4fb2c 100644 --- a/docs/NewApplicationCIFExpression.md +++ b/docs/NewApplicationCIFExpression.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cartItemFilterId** | **Long** | The ID of the Application cart item filter. | [optional] -**createdBy** | **Long** | The ID of the user who created the Application cart item filter. | [optional] +**cartItemFilterId** | **Integer** | The ID of the Application cart item filter. | [optional] +**createdBy** | **Integer** | The ID of the user who created the Application cart item filter. | [optional] **expression** | **List<Object>** | Arbitrary additional JSON data associated with the Application cart item filter. | [optional] diff --git a/docs/NewAttribute.md b/docs/NewAttribute.md index 6273b232..62dfb616 100644 --- a/docs/NewAttribute.md +++ b/docs/NewAttribute.md @@ -16,8 +16,8 @@ Name | Type | Description | Notes **hasAllowedList** | **Boolean** | Whether or not this attribute has an allowed list of values associated with it. | [optional] **restrictedBySuggestions** | **Boolean** | Whether or not this attribute's value is restricted by suggestions (`suggestions` property) or by an allowed list of value (`hasAllowedList` property). | [optional] **editable** | **Boolean** | Whether or not this attribute can be edited. | -**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the applications where this attribute is available. | [optional] -**subscribedCatalogsIds** | **List<Long>** | A list of the IDs of the catalogs where this attribute is available. | [optional] +**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the applications where this attribute is available. | [optional] +**subscribedCatalogsIds** | **List<Integer>** | A list of the IDs of the catalogs where this attribute is available. | [optional] **allowedSubscriptions** | [**List<AllowedSubscriptionsEnum>**](#List<AllowedSubscriptionsEnum>) | A list of allowed subscription types for this attribute. **Note:** This only applies to attributes associated with the `CartItem` entity. | [optional] diff --git a/docs/NewCampaign.md b/docs/NewCampaign.md index b165eaee..5b727c5d 100644 --- a/docs/NewCampaign.md +++ b/docs/NewCampaign.md @@ -12,16 +12,16 @@ Name | Type | Description | Notes **endTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become inactive. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign. | [optional] **state** | [**StateEnum**](#StateEnum) | A disabled or archived campaign is not evaluated for rules or coupons. | -**activeRulesetId** | **Long** | [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. | [optional] +**activeRulesetId** | **Integer** | [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. | [optional] **tags** | **List<String>** | A list of tags for the campaign. | **features** | [**List<FeaturesEnum>**](#List<FeaturesEnum>) | The features enabled in this campaign. | **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | The set of [budget limits](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets) for this campaign. | -**campaignGroups** | **List<Long>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. | [optional] +**campaignGroups** | **List<Integer>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | [optional] -**linkedStoreIds** | **List<Long>** | A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] -**evaluationGroupId** | **Long** | The ID of the campaign evaluation group the campaign belongs to. | [optional] +**linkedStoreIds** | **List<Integer>** | A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional] +**evaluationGroupId** | **Integer** | The ID of the campaign evaluation group the campaign belongs to. | [optional] diff --git a/docs/NewCampaignEvaluationGroup.md b/docs/NewCampaignEvaluationGroup.md index 0fba1544..7de3f7c1 100644 --- a/docs/NewCampaignEvaluationGroup.md +++ b/docs/NewCampaignEvaluationGroup.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of the campaign evaluation group. | -**parentId** | **Long** | The ID of the parent group that contains the campaign evaluation group. | +**parentId** | **Integer** | The ID of the parent group that contains the campaign evaluation group. | **description** | **String** | A description of the campaign evaluation group. | [optional] **evaluationMode** | [**EvaluationModeEnum**](#EvaluationModeEnum) | The mode by which campaigns in the campaign evaluation group are evaluated. | **evaluationScope** | [**EvaluationScopeEnum**](#EvaluationScopeEnum) | The evaluation scope of the campaign evaluation group. | diff --git a/docs/NewCampaignGroup.md b/docs/NewCampaignGroup.md index 0cb6c2c3..73199ce1 100644 --- a/docs/NewCampaignGroup.md +++ b/docs/NewCampaignGroup.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of the campaign access group. | **description** | **String** | A longer description of the campaign access group. | [optional] -**subscribedApplicationsIds** | **List<Long>** | A list of IDs of the Applications that this campaign access group is enabled for. | [optional] -**campaignIds** | **List<Long>** | A list of IDs of the campaigns that are part of the campaign access group. | [optional] +**subscribedApplicationsIds** | **List<Integer>** | A list of IDs of the Applications that this campaign access group is enabled for. | [optional] +**campaignIds** | **List<Integer>** | A list of IDs of the campaigns that are part of the campaign access group. | [optional] diff --git a/docs/NewCampaignSet.md b/docs/NewCampaignSet.md index d28be787..9da24d74 100644 --- a/docs/NewCampaignSet.md +++ b/docs/NewCampaignSet.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applicationId** | **Long** | The ID of the Application that owns this entity. | -**version** | **Long** | Version of the campaign set. | +**applicationId** | **Integer** | The ID of the Application that owns this entity. | +**version** | **Integer** | Version of the campaign set. | **set** | [**CampaignSetBranchNode**](CampaignSetBranchNode.md) | | diff --git a/docs/NewCampaignStoreBudgetStoreLimit.md b/docs/NewCampaignStoreBudgetStoreLimit.md index 738dce65..a0730b27 100644 --- a/docs/NewCampaignStoreBudgetStoreLimit.md +++ b/docs/NewCampaignStoreBudgetStoreLimit.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**storeId** | **Long** | The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. | +**storeId** | **Integer** | The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. | **limit** | [**BigDecimal**](BigDecimal.md) | The value to set for the limit. | diff --git a/docs/NewCampaignTemplate.md b/docs/NewCampaignTemplate.md index 138feb50..6df18fae 100644 --- a/docs/NewCampaignTemplate.md +++ b/docs/NewCampaignTemplate.md @@ -20,7 +20,7 @@ Name | Type | Description | Notes **limits** | [**List<TemplateLimitConfig>**](TemplateLimitConfig.md) | The set of limits that will operate for this campaign template. | [optional] **templateParams** | [**List<CampaignTemplateParams>**](CampaignTemplateParams.md) | Fields which can be used to replace values in a rule. | [optional] **campaignCollections** | [**List<CampaignTemplateCollection>**](CampaignTemplateCollection.md) | The campaign collections from the blueprint campaign for the template. | [optional] -**defaultCampaignGroupId** | **Long** | The default campaign group ID. | [optional] +**defaultCampaignGroupId** | **Integer** | The default campaign group ID. | [optional] **campaignType** | [**CampaignTypeEnum**](#CampaignTypeEnum) | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | diff --git a/docs/NewCatalog.md b/docs/NewCatalog.md index 9b920d1a..7eca3499 100644 --- a/docs/NewCatalog.md +++ b/docs/NewCatalog.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The cart item catalog name. | **description** | **String** | A description of this cart item catalog. | -**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the applications that are subscribed to this catalog. | [optional] +**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the applications that are subscribed to this catalog. | [optional] diff --git a/docs/NewCollection.md b/docs/NewCollection.md index 1d74dec4..5b503b99 100644 --- a/docs/NewCollection.md +++ b/docs/NewCollection.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **String** | A short description of the purpose of this collection. | [optional] -**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the Applications where this collection is enabled. | [optional] +**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the Applications where this collection is enabled. | [optional] **name** | **String** | The name of this collection. | diff --git a/docs/NewCouponCreationJob.md b/docs/NewCouponCreationJob.md index aca9ab0d..b9802385 100644 --- a/docs/NewCouponCreationJob.md +++ b/docs/NewCouponCreationJob.md @@ -6,12 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**usageLimit** | **Long** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | +**usageLimit** | **Integer** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | **discountLimit** | [**BigDecimal**](BigDecimal.md) | The total discount value that the code can give. Typically used to represent a gift card value. | [optional] -**reservationLimit** | **Long** | The number of reservations that can be made with this coupon code. | [optional] +**reservationLimit** | **Integer** | The number of reservations that can be made with this coupon code. | [optional] **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the coupon becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the coupon. Coupon never expires if this is omitted. | [optional] -**numberOfCoupons** | **Long** | The number of new coupon codes to generate for the campaign. | +**numberOfCoupons** | **Integer** | The number of new coupon codes to generate for the campaign. | **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with coupons. | diff --git a/docs/NewCoupons.md b/docs/NewCoupons.md index 9178c9a1..d6a69d2d 100644 --- a/docs/NewCoupons.md +++ b/docs/NewCoupons.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**usageLimit** | **Long** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | +**usageLimit** | **Integer** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | **discountLimit** | [**BigDecimal**](BigDecimal.md) | The total discount value that the code can give. Typically used to represent a gift card value. | [optional] -**reservationLimit** | **Long** | The number of reservations that can be made with this coupon code. | [optional] +**reservationLimit** | **Integer** | The number of reservations that can be made with this coupon code. | [optional] **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the coupon becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the coupon. Coupon never expires if this is omitted. | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | Limits configuration for a coupon. These limits will override the limits set from the campaign. **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. | [optional] -**numberOfCoupons** | **Long** | The number of new coupon codes to generate for the campaign. Must be at least 1. | +**numberOfCoupons** | **Integer** | The number of new coupon codes to generate for the campaign. Must be at least 1. | **uniquePrefix** | **String** | **DEPRECATED** To create more than 20,000 coupons in one request, use [Create coupons asynchronously](https://docs.talon.one/management-api#operation/createCouponsAsync) endpoint. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this item. | [optional] **recipientIntegrationId** | **String** | The integration ID for this coupon's beneficiary's profile. | [optional] diff --git a/docs/NewCouponsForMultipleRecipients.md b/docs/NewCouponsForMultipleRecipients.md index f3bbb939..3434ce93 100644 --- a/docs/NewCouponsForMultipleRecipients.md +++ b/docs/NewCouponsForMultipleRecipients.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**usageLimit** | **Long** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | +**usageLimit** | **Integer** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | **discountLimit** | [**BigDecimal**](BigDecimal.md) | The total discount value that the code can give. Typically used to represent a gift card value. | [optional] -**reservationLimit** | **Long** | The number of reservations that can be made with this coupon code. | [optional] +**reservationLimit** | **Integer** | The number of reservations that can be made with this coupon code. | [optional] **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the coupon becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the coupon. Coupon never expires if this is omitted. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this item. | [optional] diff --git a/docs/NewCustomEffect.md b/docs/NewCustomEffect.md index ae9775af..649cb13d 100644 --- a/docs/NewCustomEffect.md +++ b/docs/NewCustomEffect.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applicationIds** | **List<Long>** | The IDs of the Applications that are related to this entity. | +**applicationIds** | **List<Integer>** | The IDs of the Applications that are related to this entity. | **isPerItem** | **Boolean** | Indicates if this effect is per item or not. | [optional] **name** | **String** | The name of this effect. | **title** | **String** | The title of this effect. | diff --git a/docs/NewCustomerSessionV2.md b/docs/NewCustomerSessionV2.md index dacef5fe..6650355c 100644 --- a/docs/NewCustomerSessionV2.md +++ b/docs/NewCustomerSessionV2.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **profileId** | **String** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | [optional] **storeIntegrationId** | **String** | The integration ID of the store. You choose this ID when you create a store. | [optional] -**evaluableCampaignIds** | **List<Long>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] +**evaluableCampaignIds** | **List<Integer>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional] **couponCodes** | **List<String>** | Any coupon codes entered. **Important - for requests only**: - If you [create a coupon budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a coupon code by the time you close it. - In requests where `dry=false`, providing an empty array discards any previous coupons. To avoid this, omit the parameter entirely. | [optional] **referralCode** | **String** | Any referral code entered. **Important - for requests only**: - If you [create a referral budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a referral code by the time you close it. - In requests where `dry=false`, providing an empty value discards the previous referral code. To avoid this, omit the parameter entirely. | [optional] **loyaltyCards** | **List<String>** | Identifier of a loyalty card. | [optional] diff --git a/docs/NewGiveawaysPool.md b/docs/NewGiveawaysPool.md index e8a4a8cf..574d74b0 100644 --- a/docs/NewGiveawaysPool.md +++ b/docs/NewGiveawaysPool.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of this giveaways pool. | **description** | **String** | The description of this giveaways pool. | [optional] -**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the applications that this giveaways pool is enabled for. | [optional] +**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the applications that this giveaways pool is enabled for. | [optional] **sandbox** | **Boolean** | Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type. | diff --git a/docs/NewInvitation.md b/docs/NewInvitation.md index 4367c68d..9c8f4203 100644 --- a/docs/NewInvitation.md +++ b/docs/NewInvitation.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **name** | **String** | Name of the user. | [optional] **email** | **String** | Email address of the user. | **isAdmin** | **Boolean** | Indicates whether the user is an `admin`. | [optional] -**roles** | **List<Long>** | A list of the IDs of the roles assigned to the user. | [optional] +**roles** | **List<Integer>** | A list of the IDs of the roles assigned to the user. | [optional] **acl** | **String** | Indicates the access level of the user. | [optional] diff --git a/docs/NewLoyaltyProgram.md b/docs/NewLoyaltyProgram.md index 8aa2e1e9..2f399616 100644 --- a/docs/NewLoyaltyProgram.md +++ b/docs/NewLoyaltyProgram.md @@ -9,11 +9,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **title** | **String** | The display title for the Loyalty Program. | **description** | **String** | Description of our Loyalty Program. | [optional] -**subscribedApplications** | **List<Long>** | A list containing the IDs of all applications that are subscribed to this Loyalty Program. | [optional] +**subscribedApplications** | **List<Integer>** | A list containing the IDs of all applications that are subscribed to this Loyalty Program. | [optional] **defaultValidity** | **String** | The default duration after which new loyalty points should expire. Can be 'unlimited' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. | **defaultPending** | **String** | The default duration of the pending time after which points should be valid. Can be 'immediate' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. | **allowSubledger** | **Boolean** | Indicates if this program supports subledgers inside the program. | -**usersPerCardLimit** | **Long** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional] +**usersPerCardLimit** | **Integer** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional] **sandbox** | **Boolean** | Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type. | **programJoinPolicy** | [**ProgramJoinPolicyEnum**](#ProgramJoinPolicyEnum) | The policy that defines when the customer joins the loyalty program. - `not_join`: The customer does not join the loyalty program but can still earn and spend loyalty points. **Note**: The customer does not have a program join date. - `points_activated`: The customer joins the loyalty program only when their earned loyalty points become active for the first time. - `points_earned`: The customer joins the loyalty program when they earn loyalty points for the first time. | [optional] **tiersExpirationPolicy** | [**TiersExpirationPolicyEnum**](#TiersExpirationPolicyEnum) | The policy that defines how tier expiration, used to reevaluate the customer's current tier, is determined. - `tier_start_date`: The tier expiration is relative to when the customer joined the current tier. - `program_join_date`: The tier expiration is relative to when the customer joined the loyalty program. - `customer_attribute`: The tier expiration is determined by a custom customer attribute. - `absolute_expiration`: The tier is reevaluated at the start of each tier cycle. For this policy, it is required to provide a `tierCycleStartDate`. | [optional] diff --git a/docs/NewManagementKey.md b/docs/NewManagementKey.md index 32b741bf..91c7b7ad 100644 --- a/docs/NewManagementKey.md +++ b/docs/NewManagementKey.md @@ -9,10 +9,10 @@ Name | Type | Description | Notes **name** | **String** | Name for management key. | **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | The date the management key expires. | **endpoints** | [**List<Endpoint>**](Endpoint.md) | The list of endpoints that can be accessed with the key | -**allowedApplicationIds** | **List<Long>** | A list of Application IDs that you can access with the management key. An empty or missing list means the management key can be used for all Applications in the account. | [optional] -**id** | **Long** | ID of the management key. | -**createdBy** | **Long** | ID of the user who created it. | -**accountID** | **Long** | ID of account the key is used for. | +**allowedApplicationIds** | **List<Integer>** | A list of Application IDs that you can access with the management key. An empty or missing list means the management key can be used for all Applications in the account. | [optional] +**id** | **Integer** | ID of the management key. | +**createdBy** | **Integer** | ID of the user who created it. | +**accountID** | **Integer** | ID of account the key is used for. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The date the management key was created. | **disabled** | **Boolean** | The management key is disabled (this property is set to `true`) when the user who created the key is disabled or deleted. | [optional] **key** | **String** | The management key. | diff --git a/docs/NewMessageTest.md b/docs/NewMessageTest.md index 8e7343c7..27920566 100644 --- a/docs/NewMessageTest.md +++ b/docs/NewMessageTest.md @@ -22,6 +22,8 @@ Name | Value CAMPAIGN | "campaign" LOYALTY_ADDED_DEDUCTED_POINTS | "loyalty_added_deducted_points" CARD_ADDED_DEDUCTED_POINTS | "card_added_deducted_points" +LOYALTY_ADDED_DEDUCTED_POINTS_BALANCES | "loyalty_added_deducted_points_balances" +LOYALTY_CARD_ADDED_DEDUCTED_POINTS_BALANCES | "loyalty_card_added_deducted_points_balances" COUPON | "coupon" EXPIRING_COUPONS | "expiring_coupons" EXPIRING_POINTS | "expiring_points" diff --git a/docs/NewOutgoingIntegrationWebhook.md b/docs/NewOutgoingIntegrationWebhook.md index 6ed702d4..ab5c3d85 100644 --- a/docs/NewOutgoingIntegrationWebhook.md +++ b/docs/NewOutgoingIntegrationWebhook.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **title** | **String** | Webhook title. | **description** | **String** | A description of the webhook. | [optional] -**applicationIds** | **List<Long>** | IDs of the Applications to which a webhook must be linked. | +**applicationIds** | **List<Integer>** | IDs of the Applications to which a webhook must be linked. | diff --git a/docs/NewPriceAdjustment.md b/docs/NewPriceAdjustment.md new file mode 100644 index 00000000..6a58713d --- /dev/null +++ b/docs/NewPriceAdjustment.md @@ -0,0 +1,17 @@ + + +# NewPriceAdjustment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**priceType** | **String** | The price type (e.g. the price for members only) to apply to a given SKU. | +**price** | [**BigDecimal**](BigDecimal.md) | The value of the price type applied to the SKU. When set to `null`, the defined price type no longer applies to the SKU. | [optional] +**referenceId** | **String** | A unique reference identifier, e.g. a UUID. | +**calculatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The time at which this price was calculated. If provided, this is used to determine the most recent price adjustment to choose if price adjustments overlap. Defaults to internal creation time if not provided. | [optional] +**effectiveFrom** | [**OffsetDateTime**](OffsetDateTime.md) | The date and time from which the price adjustment is effective. | [optional] +**effectiveUntil** | [**OffsetDateTime**](OffsetDateTime.md) | The date and time until which the price adjustment is effective. | [optional] + + + diff --git a/docs/NewPriceType.md b/docs/NewPriceType.md new file mode 100644 index 00000000..d6fcf89e --- /dev/null +++ b/docs/NewPriceType.md @@ -0,0 +1,15 @@ + + +# NewPriceType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | The API name of the price type. This is an immutable value. | +**title** | **String** | The title of the price type. | +**description** | **String** | The description of the price type. | [optional] +**targetedAudiencesIds** | **List<Integer>** | A list of the IDs of the audiences that are targeted by this price type. | [optional] + + + diff --git a/docs/NewReferral.md b/docs/NewReferral.md index 33c71f97..89539a34 100644 --- a/docs/NewReferral.md +++ b/docs/NewReferral.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the referral code becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the referral code. Referral never expires if this is omitted. | [optional] -**usageLimit** | **Long** | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. | [optional] -**campaignId** | **Long** | ID of the campaign from which the referral received the referral code. | +**usageLimit** | **Integer** | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. | [optional] +**campaignId** | **Integer** | ID of the campaign from which the referral received the referral code. | **advocateProfileIntegrationId** | **String** | The Integration ID of the Advocate's Profile. | **friendProfileIntegrationId** | **String** | An optional Integration ID of the Friend's Profile. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this item. | [optional] diff --git a/docs/NewReferralsForMultipleAdvocates.md b/docs/NewReferralsForMultipleAdvocates.md index d44ed694..f81457bf 100644 --- a/docs/NewReferralsForMultipleAdvocates.md +++ b/docs/NewReferralsForMultipleAdvocates.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the referral code becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the referral code. Referral never expires if this is omitted. | [optional] -**usageLimit** | **Long** | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. | -**campaignId** | **Long** | The ID of the campaign from which the referral received the referral code. | +**usageLimit** | **Integer** | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. | +**campaignId** | **Integer** | The ID of the campaign from which the referral received the referral code. | **advocateProfileIntegrationIds** | **List<String>** | An array containing all the respective advocate profiles. | **attributes** | [**Object**](.md) | Arbitrary properties associated with this referral code. | [optional] **validCharacters** | **List<String>** | List of characters used to generate the random parts of a code. By default, the list of characters is equivalent to the `[A-Z, 0-9]` regular expression. | [optional] diff --git a/docs/NewRevisionVersion.md b/docs/NewRevisionVersion.md index cc7bc981..c1e8104d 100644 --- a/docs/NewRevisionVersion.md +++ b/docs/NewRevisionVersion.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **endTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become inactive. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign. | [optional] **description** | **String** | A detailed description of the campaign. | [optional] -**activeRulesetId** | **Long** | The ID of the ruleset this campaign template will use. | [optional] +**activeRulesetId** | **Integer** | The ID of the ruleset this campaign template will use. | [optional] **tags** | **List<String>** | A list of tags for the campaign template. | [optional] **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] diff --git a/docs/NewRole.md b/docs/NewRole.md index 8f5a69b3..18efda13 100644 --- a/docs/NewRole.md +++ b/docs/NewRole.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **name** | **String** | Name of the role. | **description** | **String** | Description of the role. | [optional] **acl** | **String** | The `Access Control List` json defining the role of the user. This represents the access control on the user level. | -**members** | **List<Long>** | An array of user identifiers. | +**members** | **List<Integer>** | An array of user identifiers. | diff --git a/docs/NewRoleV2.md b/docs/NewRoleV2.md index 8b602195..0b14d352 100644 --- a/docs/NewRoleV2.md +++ b/docs/NewRoleV2.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **name** | **String** | Name of the role. | **description** | **String** | Description of the role. | **permissions** | [**RoleV2Permissions**](RoleV2Permissions.md) | | [optional] -**members** | **List<Long>** | A list of user IDs the role is assigned to. | [optional] +**members** | **List<Integer>** | A list of user IDs the role is assigned to. | [optional] diff --git a/docs/NewSamlConnection.md b/docs/NewSamlConnection.md index 19b8e34c..fc26b121 100644 --- a/docs/NewSamlConnection.md +++ b/docs/NewSamlConnection.md @@ -8,7 +8,7 @@ A new SAML 2.0 connection. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **x509certificate** | **String** | X.509 Certificate. | -**accountId** | **Long** | The ID of the account that owns this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | **name** | **String** | ID of the SAML service. | **enabled** | **Boolean** | Determines if this SAML connection active. | **issuer** | **String** | Identity Provider Entity ID. | diff --git a/docs/NewWebhook.md b/docs/NewWebhook.md index 770b40bd..d7afc8ac 100644 --- a/docs/NewWebhook.md +++ b/docs/NewWebhook.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applicationIds** | **List<Long>** | The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. | +**applicationIds** | **List<Integer>** | The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. | **title** | **String** | Name or title for this webhook. | **description** | **String** | A description of the webhook. | [optional] +**draft** | **Boolean** | Indicates if the webhook is a draft. | **verb** | [**VerbEnum**](#VerbEnum) | API method for this webhook. | **url** | **String** | API URL (supports templating using parameters) for this webhook. | **headers** | **List<String>** | List of API HTTP headers for this webhook. | diff --git a/docs/Notification.md b/docs/Notification.md index 531d20a2..c53c17f7 100644 --- a/docs/Notification.md +++ b/docs/Notification.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | id of the notification. | +**id** | **Integer** | id of the notification. | **name** | **String** | name of the notification. | **description** | **String** | description of the notification. | diff --git a/docs/NotificationListItem.md b/docs/NotificationListItem.md index 96056400..0e021bd9 100644 --- a/docs/NotificationListItem.md +++ b/docs/NotificationListItem.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**notificationId** | **Long** | The ID of the notification. | +**notificationId** | **Integer** | The ID of the notification. | **notificationName** | **String** | The name of the notification. | -**entityId** | **Long** | The ID of the entity to which this notification belongs. For example, in case of a loyalty notification, this value is the ID of the loyalty program. | +**entityId** | **Integer** | The ID of the entity to which this notification belongs. For example, in case of a loyalty notification, this value is the ID of the loyalty program. | **enabled** | **Boolean** | Indicates whether the notification is activated. | diff --git a/docs/OneTimeCode.md b/docs/OneTimeCode.md index 4fced140..b6ad8079 100644 --- a/docs/OneTimeCode.md +++ b/docs/OneTimeCode.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**userId** | **Long** | The ID of the user. | -**accountId** | **Long** | The ID of the account. | +**userId** | **Integer** | The ID of the user. | +**accountId** | **Integer** | The ID of the account. | **token** | **String** | The two-factor authentication token created during sign-in. This token is used to ensure that the correct user is trying to sign in with a given one-time security code. | **code** | **String** | The one-time security code used for signing in. | [optional] diff --git a/docs/OutgoingIntegrationConfiguration.md b/docs/OutgoingIntegrationConfiguration.md index 92e89621..1b93b0e3 100644 --- a/docs/OutgoingIntegrationConfiguration.md +++ b/docs/OutgoingIntegrationConfiguration.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Unique ID for this entity. | -**accountId** | **Long** | The ID of the account to which this configuration belongs. | -**typeId** | **Long** | The outgoing integration type ID. | +**id** | **Integer** | Unique ID for this entity. | +**accountId** | **Integer** | The ID of the account to which this configuration belongs. | +**typeId** | **Integer** | The outgoing integration type ID. | **policy** | [**Object**](.md) | The outgoing integration policy specific to each integration type. | diff --git a/docs/OutgoingIntegrationTemplate.md b/docs/OutgoingIntegrationTemplate.md index b598cec6..66982094 100644 --- a/docs/OutgoingIntegrationTemplate.md +++ b/docs/OutgoingIntegrationTemplate.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Unique ID for this entity. | -**integrationType** | **Long** | Unique ID of outgoing integration type. | +**id** | **Integer** | Unique ID for this entity. | +**integrationType** | **Integer** | Unique ID of outgoing integration type. | **title** | **String** | The title of the integration template. | **description** | **String** | The description of the specific outgoing integration template. | **payload** | **String** | The API payload (supports templating using parameters) for this integration template. | diff --git a/docs/OutgoingIntegrationTemplateWithConfigurationDetails.md b/docs/OutgoingIntegrationTemplateWithConfigurationDetails.md index c63a957f..e938523d 100644 --- a/docs/OutgoingIntegrationTemplateWithConfigurationDetails.md +++ b/docs/OutgoingIntegrationTemplateWithConfigurationDetails.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Unique ID for this entity. | -**integrationType** | **Long** | Unique ID of outgoing integration type. | +**id** | **Integer** | Unique ID for this entity. | +**integrationType** | **Integer** | Unique ID of outgoing integration type. | **title** | **String** | The title of the integration template. | **description** | **String** | The description of the specific outgoing integration template. | **payload** | **String** | The API payload (supports templating using parameters) for this integration template. | diff --git a/docs/OutgoingIntegrationType.md b/docs/OutgoingIntegrationType.md index 32d1cb2a..65d59b52 100644 --- a/docs/OutgoingIntegrationType.md +++ b/docs/OutgoingIntegrationType.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Unique ID for this entity. | +**id** | **Integer** | Unique ID for this entity. | **name** | **String** | Name of the outgoing integration. | **description** | **String** | Description of the outgoing integration. | [optional] **category** | **String** | Category of the outgoing integration. | [optional] diff --git a/docs/PendingPointsNotificationPolicy.md b/docs/PendingPointsNotificationPolicy.md index a0f97e41..a37a3c6c 100644 --- a/docs/PendingPointsNotificationPolicy.md +++ b/docs/PendingPointsNotificationPolicy.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Notification name. | **batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] -**batchSize** | **Long** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] +**batchSize** | **Integer** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] diff --git a/docs/Picklist.md b/docs/Picklist.md index bc923812..453525ff 100644 --- a/docs/Picklist.md +++ b/docs/Picklist.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **type** | [**TypeEnum**](#TypeEnum) | The type of allowed values in the picklist. If the type `time` is chosen, it must be an RFC3339 timestamp string. | **values** | **List<String>** | The list of allowed values provided by this picklist. | -**modifiedBy** | **Long** | ID of the user who last updated this effect if available. | [optional] -**createdBy** | **Long** | ID of the user who created this effect. | -**accountId** | **Long** | The ID of the account that owns this entity. | [optional] +**modifiedBy** | **Integer** | ID of the user who last updated this effect if available. | [optional] +**createdBy** | **Integer** | ID of the user who created this effect. | +**accountId** | **Integer** | The ID of the account that owns this entity. | [optional] **imported** | **Boolean** | Imported flag shows that a picklist is imported by a CSV file or not | [optional] diff --git a/docs/PriceDetail.md b/docs/PriceDetail.md new file mode 100644 index 00000000..8edbcac9 --- /dev/null +++ b/docs/PriceDetail.md @@ -0,0 +1,15 @@ + + +# PriceDetail + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**price** | **Float** | The value of this price type. | [optional] +**adjustmentReferenceId** | [**UUID**](UUID.md) | The reference identifier of the selected price adjustment for this SKU. | [optional] +**adjustmentEffectiveFrom** | [**OffsetDateTime**](OffsetDateTime.md) | The date and time from which the price adjustment is effective. | [optional] +**adjustmentEffectiveUntil** | [**OffsetDateTime**](OffsetDateTime.md) | The date and time until which the price adjustment is effective. | [optional] + + + diff --git a/docs/PriceType.md b/docs/PriceType.md new file mode 100644 index 00000000..9a478a9f --- /dev/null +++ b/docs/PriceType.md @@ -0,0 +1,20 @@ + + +# PriceType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Integer** | The internal ID of this entity. | +**created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | +**accountId** | **Integer** | The ID of the account that owns this price type. | [optional] +**name** | **String** | The API name of the price type. This is an immutable value. | +**title** | **String** | The title of the price type. | +**description** | **String** | The description of the price type. | [optional] +**modified** | [**OffsetDateTime**](OffsetDateTime.md) | The date and time when the price type was last modified. | +**subscribedCatalogsIds** | **List<Integer>** | A list of the IDs of the catalogs that are subscribed to this price type. | +**targetedAudiencesIds** | **List<Integer>** | A list of the IDs of the audiences that are targeted by this price type. | + + + diff --git a/docs/ProductSearchMatch.md b/docs/ProductSearchMatch.md index 04e05906..38532320 100644 --- a/docs/ProductSearchMatch.md +++ b/docs/ProductSearchMatch.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**productId** | **Long** | The ID of the product. | [optional] +**productId** | **Integer** | The ID of the product. | [optional] **value** | **String** | The string matching the given value. Either a product name or SKU. | -**productSkuId** | **Long** | The ID of the SKU linked to a product. If empty, this is an product. | [optional] +**productSkuId** | **Integer** | The ID of the SKU linked to a product. If empty, this is an product. | [optional] diff --git a/docs/ProductUnitAnalyticsDataPoint.md b/docs/ProductUnitAnalyticsDataPoint.md index 78594190..4ebeaa2c 100644 --- a/docs/ProductUnitAnalyticsDataPoint.md +++ b/docs/ProductUnitAnalyticsDataPoint.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **startTime** | [**OffsetDateTime**](OffsetDateTime.md) | The start of the aggregation time frame in UTC. | **endTime** | [**OffsetDateTime**](OffsetDateTime.md) | The end of the aggregation time frame in UTC. | **unitsSold** | [**AnalyticsDataPointWithTrend**](AnalyticsDataPointWithTrend.md) | | -**productId** | **Long** | The ID of the product. | +**productId** | **Integer** | The ID of the product. | **productName** | **String** | The name of the product. | diff --git a/docs/ProfileAudiencesChanges.md b/docs/ProfileAudiencesChanges.md index afbd48aa..f57da462 100644 --- a/docs/ProfileAudiencesChanges.md +++ b/docs/ProfileAudiencesChanges.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**adds** | **List<Long>** | The IDs of the audiences for the customer to join. | -**deletes** | **List<Long>** | The IDs of the audiences for the customer to leave. | +**adds** | **List<Integer>** | The IDs of the audiences for the customer to join. | +**deletes** | **List<Integer>** | The IDs of the audiences for the customer to leave. | diff --git a/docs/RedeemReferralEffectProps.md b/docs/RedeemReferralEffectProps.md index 150d11b9..1bf20890 100644 --- a/docs/RedeemReferralEffectProps.md +++ b/docs/RedeemReferralEffectProps.md @@ -7,7 +7,7 @@ This effect is **deprecated**. The properties specific to the \"redeemReferral\" Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | The id of the referral code that was redeemed. | +**id** | **Integer** | The id of the referral code that was redeemed. | **value** | **String** | The referral code that was redeemed. | diff --git a/docs/Referral.md b/docs/Referral.md index 1c94d1f6..a2c95074 100644 --- a/docs/Referral.md +++ b/docs/Referral.md @@ -6,18 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the referral code becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the referral code. Referral never expires if this is omitted. | [optional] -**usageLimit** | **Long** | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. | -**campaignId** | **Long** | ID of the campaign from which the referral received the referral code. | +**usageLimit** | **Integer** | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. | +**campaignId** | **Integer** | ID of the campaign from which the referral received the referral code. | **advocateProfileIntegrationId** | **String** | The Integration ID of the Advocate's Profile. | **friendProfileIntegrationId** | **String** | An optional Integration ID of the Friend's Profile. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this item. | [optional] -**importId** | **Long** | The ID of the Import which created this referral. | [optional] +**importId** | **Integer** | The ID of the Import which created this referral. | [optional] **code** | **String** | The referral code. | -**usageCounter** | **Long** | The number of times this referral code has been successfully used. | +**usageCounter** | **Integer** | The number of times this referral code has been successfully used. | **batchId** | **String** | The ID of the batch the referrals belong to. | [optional] diff --git a/docs/ReferralConstraints.md b/docs/ReferralConstraints.md index 6922a5ab..cf6624f1 100644 --- a/docs/ReferralConstraints.md +++ b/docs/ReferralConstraints.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the referral code becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the referral code. Referral never expires if this is omitted. | [optional] -**usageLimit** | **Long** | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. | [optional] +**usageLimit** | **Integer** | The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. | [optional] diff --git a/docs/ReferralRejectionReason.md b/docs/ReferralRejectionReason.md index 0d938403..26e8584f 100644 --- a/docs/ReferralRejectionReason.md +++ b/docs/ReferralRejectionReason.md @@ -7,8 +7,8 @@ Holds a reference to the campaign, the referral and the reason for which that re Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignId** | **Long** | | -**referralId** | **Long** | | +**campaignId** | **Integer** | | +**referralId** | **Integer** | | **reason** | [**ReasonEnum**](#ReasonEnum) | | diff --git a/docs/RejectCouponEffectProps.md b/docs/RejectCouponEffectProps.md index 21e16c7b..7dad99ea 100644 --- a/docs/RejectCouponEffectProps.md +++ b/docs/RejectCouponEffectProps.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **value** | **String** | The coupon code that was rejected. | **rejectionReason** | **String** | The reason why this coupon was rejected. | -**conditionIndex** | **Long** | The index of the condition that caused the rejection of the coupon. | [optional] -**effectIndex** | **Long** | The index of the effect that caused the rejection of the coupon. | [optional] +**conditionIndex** | **Integer** | The index of the condition that caused the rejection of the coupon. | [optional] +**effectIndex** | **Integer** | The index of the effect that caused the rejection of the coupon. | [optional] **details** | **String** | More details about the failure. | [optional] **campaignExclusionReason** | **String** | The reason why the campaign was not applied. | [optional] diff --git a/docs/RejectReferralEffectProps.md b/docs/RejectReferralEffectProps.md index ec3e5eff..c44ee07a 100644 --- a/docs/RejectReferralEffectProps.md +++ b/docs/RejectReferralEffectProps.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **value** | **String** | The referral code that was rejected. | **rejectionReason** | **String** | The reason why this referral code was rejected. | -**conditionIndex** | **Long** | The index of the condition that caused the rejection of the referral. | [optional] -**effectIndex** | **Long** | The index of the effect that caused the rejection of the referral. | [optional] +**conditionIndex** | **Integer** | The index of the condition that caused the rejection of the referral. | [optional] +**effectIndex** | **Integer** | The index of the effect that caused the rejection of the referral. | [optional] **details** | **String** | More details about the failure. | [optional] **campaignExclusionReason** | **String** | The reason why the campaign was not applied. | [optional] diff --git a/docs/RemoveFromAudienceEffectProps.md b/docs/RemoveFromAudienceEffectProps.md index 5c4b229e..64112908 100644 --- a/docs/RemoveFromAudienceEffectProps.md +++ b/docs/RemoveFromAudienceEffectProps.md @@ -7,10 +7,10 @@ The properties specific to the \"removeFromAudience\" effect. This gets triggere Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**audienceId** | **Long** | The internal ID of the audience. | [optional] +**audienceId** | **Integer** | The internal ID of the audience. | [optional] **audienceName** | **String** | The name of the audience. | [optional] **profileIntegrationId** | **String** | The ID of the customer profile in the third-party integration platform. | [optional] -**profileId** | **Long** | The internal ID of the customer profile. | [optional] +**profileId** | **Integer** | The internal ID of the customer profile. | [optional] diff --git a/docs/ReturnedCartItem.md b/docs/ReturnedCartItem.md index 095d36f3..89e52370 100644 --- a/docs/ReturnedCartItem.md +++ b/docs/ReturnedCartItem.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**position** | **Long** | The index of the cart item in the provided customer session's `cartItems` property. | -**quantity** | **Long** | Number of cart items to return. | [optional] +**position** | **Integer** | The index of the cart item in the provided customer session's `cartItems` property. | +**quantity** | **Integer** | Number of cart items to return. | [optional] diff --git a/docs/Revision.md b/docs/Revision.md index 861b4ad2..c0c9b496 100644 --- a/docs/Revision.md +++ b/docs/Revision.md @@ -6,15 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | +**id** | **Integer** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | **activateAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] -**accountId** | **Long** | | -**applicationId** | **Long** | | -**campaignId** | **Long** | | +**accountId** | **Integer** | | +**applicationId** | **Integer** | | +**campaignId** | **Integer** | | **created** | [**OffsetDateTime**](OffsetDateTime.md) | | -**createdBy** | **Long** | | +**createdBy** | **Integer** | | **activatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] -**activatedBy** | **Long** | | [optional] +**activatedBy** | **Integer** | | [optional] **currentVersion** | [**RevisionVersion**](RevisionVersion.md) | | [optional] diff --git a/docs/RevisionActivationRequest.md b/docs/RevisionActivationRequest.md index 6ba3ae5a..1b518dc0 100644 --- a/docs/RevisionActivationRequest.md +++ b/docs/RevisionActivationRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**userIds** | **List<Long>** | The list of IDs of the users who will receive the activation request. | +**userIds** | **List<Integer>** | The list of IDs of the users who will receive the activation request. | **activateAt** | [**OffsetDateTime**](OffsetDateTime.md) | Time when the revisions are finalized after the `activate_revision` operation. The current time is used when left blank. **Note:** It must be an RFC3339 timestamp string. | [optional] diff --git a/docs/RevisionVersion.md b/docs/RevisionVersion.md index 123c6168..d4f0d085 100644 --- a/docs/RevisionVersion.md +++ b/docs/RevisionVersion.md @@ -6,20 +6,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | -**accountId** | **Long** | | -**applicationId** | **Long** | | -**campaignId** | **Long** | | +**id** | **Integer** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | +**accountId** | **Integer** | | +**applicationId** | **Integer** | | +**campaignId** | **Integer** | | **created** | [**OffsetDateTime**](OffsetDateTime.md) | | -**createdBy** | **Long** | | -**revisionId** | **Long** | | -**version** | **Long** | | +**createdBy** | **Integer** | | +**revisionId** | **Integer** | | +**version** | **Integer** | | **name** | **String** | A user-facing name for this campaign. | [optional] **startTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become active. | [optional] **endTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become inactive. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign. | [optional] **description** | **String** | A detailed description of the campaign. | [optional] -**activeRulesetId** | **Long** | The ID of the ruleset this campaign template will use. | [optional] +**activeRulesetId** | **Integer** | The ID of the ruleset this campaign template will use. | [optional] **tags** | **List<String>** | A list of tags for the campaign template. | [optional] **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] diff --git a/docs/Role.md b/docs/Role.md index de52c50f..68b70227 100644 --- a/docs/Role.md +++ b/docs/Role.md @@ -6,14 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | -**accountId** | **Long** | The ID of the account that owns this entity. | -**campaignGroupID** | **Long** | The ID of the [Campaign Group](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) this role was created for. | [optional] +**accountId** | **Integer** | The ID of the account that owns this entity. | +**campaignGroupID** | **Integer** | The ID of the [Campaign Group](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) this role was created for. | [optional] **name** | **String** | Name of the role. | **description** | **String** | Description of the role. | [optional] -**members** | **List<Long>** | A list of user identifiers assigned to this role. | [optional] +**members** | **List<Integer>** | A list of user identifiers assigned to this role. | [optional] **acl** | [**Object**](.md) | The `Access Control List` json defining the role of the user. This represents the access control on the user level. | diff --git a/docs/RoleAssign.md b/docs/RoleAssign.md index 3f5e5588..a91a102a 100644 --- a/docs/RoleAssign.md +++ b/docs/RoleAssign.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**users** | **List<Long>** | An array of user IDs. | -**roles** | **List<Long>** | An array of role IDs. | +**users** | **List<Integer>** | An array of user IDs. | +**roles** | **List<Integer>** | An array of role IDs. | diff --git a/docs/RoleMembership.md b/docs/RoleMembership.md index 044b456f..d64d274f 100644 --- a/docs/RoleMembership.md +++ b/docs/RoleMembership.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**roleID** | **Long** | ID of role. | -**userID** | **Long** | ID of User. | +**roleID** | **Integer** | ID of role. | +**userID** | **Integer** | ID of User. | diff --git a/docs/RoleV2.md b/docs/RoleV2.md index 2829c25d..b6c60ebc 100644 --- a/docs/RoleV2.md +++ b/docs/RoleV2.md @@ -6,14 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | -**accountId** | **Long** | The ID of the account that owns this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | **name** | **String** | Name of the role. | [optional] **description** | **String** | Description of the role. | [optional] **permissions** | [**RoleV2Permissions**](RoleV2Permissions.md) | | [optional] -**members** | **List<Long>** | A list of user IDs the role is assigned to. | [optional] +**members** | **List<Integer>** | A list of user IDs the role is assigned to. | [optional] diff --git a/docs/RoleV2Base.md b/docs/RoleV2Base.md index 0197a861..2557f618 100644 --- a/docs/RoleV2Base.md +++ b/docs/RoleV2Base.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **name** | **String** | Name of the role. | [optional] **description** | **String** | Description of the role. | [optional] **permissions** | [**RoleV2Permissions**](RoleV2Permissions.md) | | [optional] -**members** | **List<Long>** | A list of user IDs the role is assigned to. | [optional] +**members** | **List<Integer>** | A list of user IDs the role is assigned to. | [optional] diff --git a/docs/RollbackAddedLoyaltyPointsEffectProps.md b/docs/RollbackAddedLoyaltyPointsEffectProps.md index ecc7667b..3054d608 100644 --- a/docs/RollbackAddedLoyaltyPointsEffectProps.md +++ b/docs/RollbackAddedLoyaltyPointsEffectProps.md @@ -7,7 +7,7 @@ The properties specific to the \"rollbackAddedLoyaltyPoints\" effect. This gets Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**programId** | **Long** | The ID of the loyalty program where the points were originally added. | +**programId** | **Integer** | The ID of the loyalty program where the points were originally added. | **subLedgerId** | **String** | The ID of the subledger within the loyalty program where these points were originally added. | **value** | [**BigDecimal**](BigDecimal.md) | The amount of points that were rolled back. | **recipientIntegrationId** | **String** | The user for whom these points were originally added. | diff --git a/docs/RollbackDeductedLoyaltyPointsEffectProps.md b/docs/RollbackDeductedLoyaltyPointsEffectProps.md index 6f63f376..c4b03f74 100644 --- a/docs/RollbackDeductedLoyaltyPointsEffectProps.md +++ b/docs/RollbackDeductedLoyaltyPointsEffectProps.md @@ -7,7 +7,7 @@ The properties specific to the \"rollbackDeductedLoyaltyPoints\" effect. This ef Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**programId** | **Long** | The ID of the loyalty program where these points were reimbursed. | +**programId** | **Integer** | The ID of the loyalty program where these points were reimbursed. | **subLedgerId** | **String** | The ID of the subledger within the loyalty program where these points were reimbursed. | **value** | [**BigDecimal**](BigDecimal.md) | The amount of reimbursed points that were added. | **recipientIntegrationId** | **String** | The user for whom these points were reimbursed. | diff --git a/docs/RollbackDiscountEffectProps.md b/docs/RollbackDiscountEffectProps.md index 604c0457..41388635 100644 --- a/docs/RollbackDiscountEffectProps.md +++ b/docs/RollbackDiscountEffectProps.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **value** | [**BigDecimal**](BigDecimal.md) | The value of the discount that was rolled back. | **cartItemPosition** | [**BigDecimal**](BigDecimal.md) | The index of the item in the cart items for which the discount was rolled back. | [optional] **cartItemSubPosition** | [**BigDecimal**](BigDecimal.md) | For cart items with `quantity` > 1, the subposition returns the index of the item unit in its line item. | [optional] -**additionalCostId** | **Long** | The ID of the additional cost that was rolled back. | [optional] +**additionalCostId** | **Integer** | The ID of the additional cost that was rolled back. | [optional] **additionalCost** | **String** | The name of the additional cost that was rolled back. | [optional] **scope** | **String** | The scope of the rolled back discount - For a discount per session, it can be one of `cartItems`, `additionalCosts` or `sessionTotal` - For a discount per item, it can be one of `price`, `additionalCosts` or `itemTotal` | [optional] diff --git a/docs/RollbackIncreasedAchievementProgressEffectProps.md b/docs/RollbackIncreasedAchievementProgressEffectProps.md index 6d95ddf9..80e6519b 100644 --- a/docs/RollbackIncreasedAchievementProgressEffectProps.md +++ b/docs/RollbackIncreasedAchievementProgressEffectProps.md @@ -7,9 +7,9 @@ The properties specific to the \"rollbackIncreasedAchievementProgress\" effect. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**achievementId** | **Long** | The internal ID of the achievement. | +**achievementId** | **Integer** | The internal ID of the achievement. | **achievementName** | **String** | The name of the achievement. | -**progressTrackerId** | **Long** | The internal ID of the achievement progress tracker. | +**progressTrackerId** | **Integer** | The internal ID of the achievement progress tracker. | **decreaseProgressBy** | [**BigDecimal**](BigDecimal.md) | The value by which the customer's current progress in the achievement is decreased. | **currentProgress** | [**BigDecimal**](BigDecimal.md) | The current progress of the customer in the achievement. | **target** | [**BigDecimal**](BigDecimal.md) | The target value to complete the achievement. | diff --git a/docs/RuleFailureReason.md b/docs/RuleFailureReason.md index 04830bd8..8d65a4d7 100644 --- a/docs/RuleFailureReason.md +++ b/docs/RuleFailureReason.md @@ -7,19 +7,19 @@ Details about why a rule failed. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignID** | **Long** | The ID of the campaign that contains the rule that failed. | +**campaignID** | **Integer** | The ID of the campaign that contains the rule that failed. | **campaignName** | **String** | The name of the campaign that contains the rule that failed. | -**rulesetID** | **Long** | The ID of the ruleset that contains the rule that failed. | -**couponID** | **Long** | The ID of the coupon that was being evaluated at the time of the rule failure. | [optional] +**rulesetID** | **Integer** | The ID of the ruleset that contains the rule that failed. | +**couponID** | **Integer** | The ID of the coupon that was being evaluated at the time of the rule failure. | [optional] **couponValue** | **String** | The code of the coupon that was being evaluated at the time of the rule failure. | [optional] -**referralID** | **Long** | The ID of the referral that was being evaluated at the time of the rule failure. | [optional] +**referralID** | **Integer** | The ID of the referral that was being evaluated at the time of the rule failure. | [optional] **referralValue** | **String** | The code of the referral that was being evaluated at the time of the rule failure. | [optional] -**ruleIndex** | **Long** | The index of the rule that failed within the ruleset. | +**ruleIndex** | **Integer** | The index of the rule that failed within the ruleset. | **ruleName** | **String** | The name of the rule that failed within the ruleset. | -**conditionIndex** | **Long** | The index of the condition that failed. | [optional] -**effectIndex** | **Long** | The index of the effect that failed. | [optional] +**conditionIndex** | **Integer** | The index of the condition that failed. | [optional] +**effectIndex** | **Integer** | The index of the effect that failed. | [optional] **details** | **String** | More details about the failure. | [optional] -**evaluationGroupID** | **Long** | The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). | [optional] +**evaluationGroupID** | **Integer** | The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation). | [optional] **evaluationGroupMode** | **String** | The evaluation mode of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign- | [optional] diff --git a/docs/Ruleset.md b/docs/Ruleset.md index 63ecf3cc..f1410343 100644 --- a/docs/Ruleset.md +++ b/docs/Ruleset.md @@ -6,16 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**userId** | **Long** | The ID of the user associated with this entity. | +**userId** | **Integer** | The ID of the user associated with this entity. | **rules** | [**List<Rule>**](Rule.md) | Set of rules to apply. | **strikethroughRules** | [**List<Rule>**](Rule.md) | Set of rules to apply for strikethrough. | [optional] **bindings** | [**List<Binding>**](Binding.md) | An array that provides objects with variable names (name) and talang expressions to whose result they are bound (expression) during rule evaluation. The order of the evaluation is decided by the position in the array. | **rbVersion** | **String** | The version of the rulebuilder used to create this ruleset. | [optional] **activate** | **Boolean** | Indicates whether this created ruleset should be activated for the campaign that owns it. | [optional] -**campaignId** | **Long** | The ID of the campaign that owns this entity. | [optional] -**templateId** | **Long** | The ID of the campaign template that owns this entity. | [optional] +**campaignId** | **Integer** | The ID of the campaign that owns this entity. | [optional] +**templateId** | **Integer** | The ID of the campaign template that owns this entity. | [optional] **activatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp indicating when this Ruleset was activated. | [optional] diff --git a/docs/SamlConnection.md b/docs/SamlConnection.md index 971a6f74..72fcd0ea 100644 --- a/docs/SamlConnection.md +++ b/docs/SamlConnection.md @@ -8,7 +8,7 @@ A SAML 2.0 connection. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **assertionConsumerServiceURL** | **String** | The location where the SAML assertion is sent with a HTTP POST. | -**accountId** | **Long** | The ID of the account that owns this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | **name** | **String** | ID of the SAML service. | **enabled** | **Boolean** | Determines if this SAML connection active. | **issuer** | **String** | Identity Provider Entity ID. | @@ -16,7 +16,7 @@ Name | Type | Description | Notes **signOutURL** | **String** | Single Sign-Out URL. | [optional] **metadataURL** | **String** | Metadata URL. | [optional] **audienceURI** | **String** | The application-defined unique identifier that is the intended audience of the SAML assertion. This is most often the SP Entity ID of your application. When not specified, the ACS URL will be used. | -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | diff --git a/docs/SamlLoginEndpoint.md b/docs/SamlLoginEndpoint.md index d8f16a20..11e32a8b 100644 --- a/docs/SamlLoginEndpoint.md +++ b/docs/SamlLoginEndpoint.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | ID of the SAML login endpoint. | +**id** | **Integer** | ID of the SAML login endpoint. | **name** | **String** | ID of the SAML service. | **loginURL** | **String** | The single sign-on URL. | diff --git a/docs/ScimBaseGroup.md b/docs/ScimBaseGroup.md new file mode 100644 index 00000000..e2c9b4aa --- /dev/null +++ b/docs/ScimBaseGroup.md @@ -0,0 +1,14 @@ + + +# ScimBaseGroup + +Define the schema for base fields in a group using the SCIM provisioning protocol. Talon.One uses this schema to create roles. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**displayName** | **String** | Display name of the group (Talon.One role). | [optional] +**members** | [**List<ScimGroupMember>**](ScimGroupMember.md) | List of members to assign to the new Talon.One role. | [optional] + + + diff --git a/docs/ScimGroup.md b/docs/ScimGroup.md new file mode 100644 index 00000000..210b37f0 --- /dev/null +++ b/docs/ScimGroup.md @@ -0,0 +1,15 @@ + + +# ScimGroup + +Define the schema for groups created using the SCIM provisioning protocol. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**displayName** | **String** | Display name of the group (Talon.One role). | [optional] +**members** | [**List<ScimGroupMember>**](ScimGroupMember.md) | List of members to assign to the new Talon.One role. | [optional] +**id** | **String** | ID of the group. | + + + diff --git a/docs/ScimGroupMember.md b/docs/ScimGroupMember.md new file mode 100644 index 00000000..45ca5bba --- /dev/null +++ b/docs/ScimGroupMember.md @@ -0,0 +1,14 @@ + + +# ScimGroupMember + +Member of the SCIM group. In Talon.One, the member is a [user](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to a specific role. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **String** | Unique identifier of the member. | [optional] +**display** | **String** | Identifier of the user. This is usually an email address. | [optional] + + + diff --git a/docs/ScimGroupsListResponse.md b/docs/ScimGroupsListResponse.md new file mode 100644 index 00000000..0b07306c --- /dev/null +++ b/docs/ScimGroupsListResponse.md @@ -0,0 +1,15 @@ + + +# ScimGroupsListResponse + +List of groups created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resources** | [**List<ScimGroup>**](ScimGroup.md) | | +**schemas** | **List<String>** | SCIM schema for the given resource. | [optional] +**totalResults** | **Integer** | Number of results in the response. | [optional] + + + diff --git a/docs/ScimSchemasListResponse.md b/docs/ScimSchemasListResponse.md index 57d88d2e..bec0115f 100644 --- a/docs/ScimSchemasListResponse.md +++ b/docs/ScimSchemasListResponse.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **resources** | [**List<ScimSchemaResource>**](ScimSchemaResource.md) | | **schemas** | **List<String>** | SCIM schema for the given resource. | [optional] -**totalResults** | **Long** | Number of total results in the response. | [optional] +**totalResults** | **Integer** | Number of total results in the response. | [optional] diff --git a/docs/ScimServiceProviderConfigResponseBulk.md b/docs/ScimServiceProviderConfigResponseBulk.md index 3d5767a1..d5ac9118 100644 --- a/docs/ScimServiceProviderConfigResponseBulk.md +++ b/docs/ScimServiceProviderConfigResponseBulk.md @@ -7,8 +7,8 @@ Configuration related to bulk operations, which allow multiple SCIM requests to Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**maxOperations** | **Long** | The maximum number of individual operations that can be included in a single bulk request. | [optional] -**maxPayloadSize** | **Long** | The maximum size, in bytes, of the entire payload for a bulk operation request. | [optional] +**maxOperations** | **Integer** | The maximum number of individual operations that can be included in a single bulk request. | [optional] +**maxPayloadSize** | **Integer** | The maximum size, in bytes, of the entire payload for a bulk operation request. | [optional] **supported** | **Boolean** | Indicates whether the SCIM service provider supports bulk operations. | [optional] diff --git a/docs/ScimServiceProviderConfigResponseFilter.md b/docs/ScimServiceProviderConfigResponseFilter.md index c3a9d2a5..a9276b0f 100644 --- a/docs/ScimServiceProviderConfigResponseFilter.md +++ b/docs/ScimServiceProviderConfigResponseFilter.md @@ -7,7 +7,7 @@ Configuration settings related to filtering SCIM resources based on specific cri Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**maxResults** | **Long** | The maximum number of resources that can be returned in a single filtered query response. | [optional] +**maxResults** | **Integer** | The maximum number of resources that can be returned in a single filtered query response. | [optional] **supported** | **Boolean** | Indicates whether the SCIM service provider supports filtering operations. | [optional] diff --git a/docs/ScimUsersListResponse.md b/docs/ScimUsersListResponse.md index 91c2f7ac..4c93df21 100644 --- a/docs/ScimUsersListResponse.md +++ b/docs/ScimUsersListResponse.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **resources** | [**List<ScimUser>**](ScimUser.md) | | **schemas** | **List<String>** | SCIM schema for the given resource. | [optional] -**totalResults** | **Long** | Number of total results in the response. | [optional] +**totalResults** | **Integer** | Number of total results in the response. | [optional] diff --git a/docs/Session.md b/docs/Session.md index 3d2cf8d3..98524ded 100644 --- a/docs/Session.md +++ b/docs/Session.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**userId** | **Long** | The ID of the user of this session. | +**userId** | **Integer** | The ID of the user of this session. | **token** | **String** | The token to use as a bearer token to query Management API endpoints. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | Unix timestamp indicating when the session was first created. | diff --git a/docs/SetDiscountPerAdditionalCostEffectProps.md b/docs/SetDiscountPerAdditionalCostEffectProps.md index d94246cf..2e7fd55f 100644 --- a/docs/SetDiscountPerAdditionalCostEffectProps.md +++ b/docs/SetDiscountPerAdditionalCostEffectProps.md @@ -8,7 +8,7 @@ The properties specific to the \"setDiscountPerAdditionalCost\" effect. This get Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name / description of this discount | -**additionalCostId** | **Long** | The ID of the additional cost. | +**additionalCostId** | **Integer** | The ID of the additional cost. | **additionalCost** | **String** | The name of the additional cost. | **value** | [**BigDecimal**](BigDecimal.md) | The total monetary value of the discount. | **desiredValue** | [**BigDecimal**](BigDecimal.md) | The original value of the discount. | [optional] diff --git a/docs/SetDiscountPerAdditionalCostPerItemEffectProps.md b/docs/SetDiscountPerAdditionalCostPerItemEffectProps.md index c67eb5dd..589a67fe 100644 --- a/docs/SetDiscountPerAdditionalCostPerItemEffectProps.md +++ b/docs/SetDiscountPerAdditionalCostPerItemEffectProps.md @@ -8,7 +8,7 @@ The properties specific to the \"setDiscountPerAdditionalCostPerItem\" effect. T Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name / description of this discount | -**additionalCostId** | **Long** | The ID of the additional cost. | +**additionalCostId** | **Integer** | The ID of the additional cost. | **value** | [**BigDecimal**](BigDecimal.md) | The total monetary value of the discount. | **position** | [**BigDecimal**](BigDecimal.md) | The index of the item in the cart item list containing the additional cost to be discounted. | **subPosition** | [**BigDecimal**](BigDecimal.md) | For cart items with `quantity` > 1, the sub position indicates which item the discount applies to. | [optional] diff --git a/docs/SetDiscountPerItemEffectProps.md b/docs/SetDiscountPerItemEffectProps.md index df1fb4fa..18fffe2e 100644 --- a/docs/SetDiscountPerItemEffectProps.md +++ b/docs/SetDiscountPerItemEffectProps.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **scope** | **String** | The scope of the discount: - `additionalCosts`: The discount applies to all the additional costs of the item. - `itemTotal`: The discount applies to the price of the item + the additional costs of the item. - `price`: The discount applies to the price of the item. | [optional] **totalDiscount** | [**BigDecimal**](BigDecimal.md) | The total discount given if this effect is a result of a prorated discount. | [optional] **desiredTotalDiscount** | [**BigDecimal**](BigDecimal.md) | The original total discount to give if this effect is a result of a prorated discount. | [optional] -**bundleIndex** | **Long** | The position of the bundle in a list of item bundles created from the same bundle definition. | [optional] +**bundleIndex** | **Integer** | The position of the bundle in a list of item bundles created from the same bundle definition. | [optional] **bundleName** | **String** | The name of the bundle definition. | [optional] **targetedItemPosition** | [**BigDecimal**](BigDecimal.md) | The index of the targeted bundle item on which the applied discount is based. | [optional] **targetedItemSubPosition** | [**BigDecimal**](BigDecimal.md) | The sub-position of the targeted bundle item on which the applied discount is based. | [optional] diff --git a/docs/Store.md b/docs/Store.md index 487fa591..dde14b62 100644 --- a/docs/Store.md +++ b/docs/Store.md @@ -6,15 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **name** | **String** | The name of the store. | **description** | **String** | The description of the store. | **attributes** | [**Object**](.md) | The attributes of the store. | [optional] **integrationId** | **String** | The integration ID of the store. You choose this ID when you create a store. **Note**: You cannot edit the `integrationId` after the store has been created. | -**applicationId** | **Long** | The ID of the Application that owns this entity. | +**applicationId** | **Integer** | The ID of the Application that owns this entity. | **updated** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent update on this entity. | -**linkedCampaignIds** | **List<Long>** | A list of IDs of the campaigns that are linked with current store. | [optional] +**linkedCampaignIds** | **List<Integer>** | A list of IDs of the campaigns that are linked with current store. | [optional] diff --git a/docs/StrikethroughChangedItem.md b/docs/StrikethroughChangedItem.md index 0bc2c67c..0985a414 100644 --- a/docs/StrikethroughChangedItem.md +++ b/docs/StrikethroughChangedItem.md @@ -7,10 +7,10 @@ The information of affected items. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | The ID of the event that triggered the strikethrough labeling. | -**catalogId** | **Long** | The ID of the catalog that the changed item belongs to. | +**id** | **Integer** | The ID of the event that triggered the strikethrough labeling. | +**catalogId** | **Integer** | The ID of the catalog that the changed item belongs to. | **sku** | **String** | The unique SKU of the changed item. | -**version** | **Long** | The version of the changed item. | +**version** | **Integer** | The version of the changed item. | **price** | [**BigDecimal**](BigDecimal.md) | The price of the changed item. | **evaluatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | The evaluation time of the changed item. | **effects** | [**List<StrikethroughEffect>**](StrikethroughEffect.md) | | [optional] diff --git a/docs/StrikethroughCustomEffectPerItemProps.md b/docs/StrikethroughCustomEffectPerItemProps.md index cbf914a3..c2d97790 100644 --- a/docs/StrikethroughCustomEffectPerItemProps.md +++ b/docs/StrikethroughCustomEffectPerItemProps.md @@ -7,7 +7,7 @@ customEffectPerItem effect in strikethrough pricing payload. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**effectId** | **Long** | ID of the effect. | +**effectId** | **Integer** | ID of the effect. | **name** | **String** | The type of the custom effect. | **payload** | [**Object**](.md) | The JSON payload of the custom effect. | diff --git a/docs/StrikethroughDebugResponse.md b/docs/StrikethroughDebugResponse.md index b58f785a..c2a229b0 100644 --- a/docs/StrikethroughDebugResponse.md +++ b/docs/StrikethroughDebugResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignsIDs** | **List<Long>** | The campaign IDs that got fetched for the evaluation process. | [optional] +**campaignsIDs** | **List<Integer>** | The campaign IDs that got fetched for the evaluation process. | [optional] **effects** | [**List<StrikethroughEffect>**](StrikethroughEffect.md) | The strikethrough effects that are returned from the evaluation process. | [optional] diff --git a/docs/StrikethroughEffect.md b/docs/StrikethroughEffect.md index 8fb4b48c..1ce465f1 100644 --- a/docs/StrikethroughEffect.md +++ b/docs/StrikethroughEffect.md @@ -7,9 +7,9 @@ The effect produced for the catalog item. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignId** | **Long** | The ID of the campaign that effect belongs to. | -**rulesetId** | **Long** | The ID of the ruleset containing the rule that triggered this effect. | -**ruleIndex** | **Long** | The position of the rule that triggered this effect within the ruleset. | +**campaignId** | **Integer** | The ID of the campaign that effect belongs to. | +**rulesetId** | **Integer** | The ID of the ruleset containing the rule that triggered this effect. | +**ruleIndex** | **Integer** | The position of the rule that triggered this effect within the ruleset. | **ruleName** | **String** | The name of the rule that triggered this effect. | **type** | **String** | The type of this effect. | **props** | [**Object**](.md) | | diff --git a/docs/StrikethroughLabelingNotification.md b/docs/StrikethroughLabelingNotification.md index 9e0652b8..f5fd6948 100644 --- a/docs/StrikethroughLabelingNotification.md +++ b/docs/StrikethroughLabelingNotification.md @@ -9,9 +9,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **version** | [**VersionEnum**](#VersionEnum) | The version of the strikethrough pricing notification. | [optional] **validFrom** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which the strikethrough pricing update becomes valid. Set for **scheduled** strikethrough pricing updates (version: v2) only. | [optional] -**applicationId** | **Long** | The ID of the Application to which the catalog items labels belongs. | -**currentBatch** | **Long** | The batch number of the notification. Notifications might be sent in different batches. | -**totalBatches** | **Long** | The total number of batches for the notification. | +**applicationId** | **Integer** | The ID of the Application to which the catalog items labels belongs. | +**currentBatch** | **Integer** | The batch number of the notification. Notifications might be sent in different batches. | +**totalBatches** | **Integer** | The total number of batches for the notification. | **trigger** | [**StrikethroughTrigger**](StrikethroughTrigger.md) | | **changedItems** | [**List<StrikethroughChangedItem>**](StrikethroughChangedItem.md) | | diff --git a/docs/StrikethroughTrigger.md b/docs/StrikethroughTrigger.md index a0f6efc3..7db0f9f5 100644 --- a/docs/StrikethroughTrigger.md +++ b/docs/StrikethroughTrigger.md @@ -7,7 +7,7 @@ Information about the event that triggered the strikethrough labeling. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | The ID of the event that triggered the strikethrough labeling. | +**id** | **Integer** | The ID of the event that triggered the strikethrough labeling. | **type** | **String** | The type of event that triggered the strikethrough labeling. | **triggeredAt** | [**OffsetDateTime**](OffsetDateTime.md) | The creation time of the event that triggered the strikethrough labeling. | **totalAffectedItems** | **Integer** | The total number of items affected by the event that triggered the strikethrough labeling. | diff --git a/docs/SummaryCampaignStoreBudget.md b/docs/SummaryCampaignStoreBudget.md index 847a89d8..4f973d76 100644 --- a/docs/SummaryCampaignStoreBudget.md +++ b/docs/SummaryCampaignStoreBudget.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | [**ActionEnum**](#ActionEnum) | | **period** | [**PeriodEnum**](#PeriodEnum) | | [optional] -**storeCount** | **Long** | | +**storeCount** | **Integer** | | **imported** | **Boolean** | | diff --git a/docs/TalangAttribute.md b/docs/TalangAttribute.md index 34fafdc6..f39315e0 100644 --- a/docs/TalangAttribute.md +++ b/docs/TalangAttribute.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **description** | **String** | A description of the attribute. | [optional] **visible** | **Boolean** | Indicates whether the attribute is visible in the UI or not. | **kind** | [**KindEnum**](#KindEnum) | Indicate the kind of the attribute. | -**campaignsCount** | **Long** | The number of campaigns that refer to the attribute. | +**campaignsCount** | **Integer** | The number of campaigns that refer to the attribute. | **exampleValue** | **List<String>** | Examples of values that can be assigned to the attribute. | [optional] diff --git a/docs/TemplateArgDef.md b/docs/TemplateArgDef.md index c6317b6e..523ffdbd 100644 --- a/docs/TemplateArgDef.md +++ b/docs/TemplateArgDef.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **title** | **String** | A campaigner friendly name for the argument, this will be shown in the rule editor. | **ui** | [**Object**](.md) | Arbitrary metadata that may be used to render an input for this argument. | **key** | **String** | The identifier for the associated value within the JSON object. | [optional] -**picklistID** | **Long** | ID of the picklist linked to a template. | [optional] +**picklistID** | **Integer** | ID of the picklist linked to a template. | [optional] **restrictedByPicklist** | **Boolean** | Whether or not this attribute's value is restricted by picklist (`picklist` property) | [optional] diff --git a/docs/TemplateDef.md b/docs/TemplateDef.md index 043d3c5e..6e48a8fb 100644 --- a/docs/TemplateDef.md +++ b/docs/TemplateDef.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | -**applicationId** | **Long** | The ID of the Application that owns this entity. | +**applicationId** | **Integer** | The ID of the Application that owns this entity. | **title** | **String** | Campaigner-friendly name for the template that will be shown in the rule editor. | **description** | **String** | A short description of the template that will be shown in the rule editor. | **help** | **String** | Extended help text for the template. | diff --git a/docs/Tier.md b/docs/Tier.md index a83a8aa0..fc02f3fa 100644 --- a/docs/Tier.md +++ b/docs/Tier.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | The internal ID of the tier. | +**id** | **Integer** | The internal ID of the tier. | **name** | **String** | The name of the tier. | **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Date and time when the customer moved to this tier. This value uses the loyalty program's time zone setting. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Date when tier level expires in the RFC3339 format (in the Loyalty Program's timezone). | [optional] diff --git a/docs/TierDowngradeNotificationPolicy.md b/docs/TierDowngradeNotificationPolicy.md index e4238122..b97811ba 100644 --- a/docs/TierDowngradeNotificationPolicy.md +++ b/docs/TierDowngradeNotificationPolicy.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of the notification. | **batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] -**batchSize** | **Long** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] +**batchSize** | **Integer** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] diff --git a/docs/TierUpgradeNotificationPolicy.md b/docs/TierUpgradeNotificationPolicy.md index 3eddda1d..42c95fb8 100644 --- a/docs/TierUpgradeNotificationPolicy.md +++ b/docs/TierUpgradeNotificationPolicy.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Notification name. | **batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] -**batchSize** | **Long** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] +**batchSize** | **Integer** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] diff --git a/docs/TierWillDowngradeNotificationPolicy.md b/docs/TierWillDowngradeNotificationPolicy.md index e5a365d8..3a410eff 100644 --- a/docs/TierWillDowngradeNotificationPolicy.md +++ b/docs/TierWillDowngradeNotificationPolicy.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of the notification. | **batchingEnabled** | **Boolean** | Indicates whether batching is activated. | [optional] -**batchSize** | **Long** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] +**batchSize** | **Integer** | The required size of each batch of data. This value applies only when `batchingEnabled` is `true`. | [optional] **triggers** | [**List<TierWillDowngradeNotificationTrigger>**](TierWillDowngradeNotificationTrigger.md) | | diff --git a/docs/TierWillDowngradeNotificationTrigger.md b/docs/TierWillDowngradeNotificationTrigger.md index 5bf51b74..308371d1 100644 --- a/docs/TierWillDowngradeNotificationTrigger.md +++ b/docs/TierWillDowngradeNotificationTrigger.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**amount** | **Long** | The amount of period. | +**amount** | **Integer** | The amount of period. | **period** | [**PeriodEnum**](#PeriodEnum) | Notification period indicated by a letter; \"w\" means week, \"d\" means day. | diff --git a/docs/TimePoint.md b/docs/TimePoint.md index 75704e43..3e69e308 100644 --- a/docs/TimePoint.md +++ b/docs/TimePoint.md @@ -7,12 +7,12 @@ The absolute duration after which the achievement ends and resets for a particul Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**month** | **Long** | The achievement ends and resets in this month. **Note**: Only applicable if the period is set to `Y`. | [optional] -**dayOfMonth** | **Long** | The achievement ends and resets on this day of the month. **Note**: Only applicable if the period is set to `Y` or `M`. | [optional] -**dayOfWeek** | **Long** | The achievement ends and resets on this day of the week. `1` represents `Monday` and `7` represents `Sunday`. **Note**: Only applicable if the period is set to `W`. | [optional] -**hour** | **Long** | The achievement ends and resets at this hour. | -**minute** | **Long** | The achievement ends and resets at this minute. | -**second** | **Long** | The achievement ends and resets at this second. | +**month** | **Integer** | The achievement ends and resets in this month. **Note**: Only applicable if the period is set to `Y`. | [optional] +**dayOfMonth** | **Integer** | The achievement ends and resets on this day of the month. **Note**: Only applicable if the period is set to `Y` or `M`. | [optional] +**dayOfWeek** | **Integer** | The achievement ends and resets on this day of the week. `1` represents `Monday` and `7` represents `Sunday`. **Note**: Only applicable if the period is set to `W`. | [optional] +**hour** | **Integer** | The achievement ends and resets at this hour. | +**minute** | **Integer** | The achievement ends and resets at this minute. | +**second** | **Integer** | The achievement ends and resets at this second. | diff --git a/docs/UpdateAchievement.md b/docs/UpdateAchievement.md index 36a4a266..5be21467 100644 --- a/docs/UpdateAchievement.md +++ b/docs/UpdateAchievement.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **target** | [**BigDecimal**](BigDecimal.md) | The required number of actions or the transactional milestone to complete the achievement. | [optional] **period** | **String** | The relative duration after which the achievement ends and resets for a particular customer profile. **Note**: The `period` does not start when the achievement is created. The period is a **positive real number** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can also round certain units down to the beginning of period and up to the end of period.: - `_D` for rounding down days only. Signifies the start of the day. Example: `30D_D` - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. Example: `23W_U` **Note**: You can either use the round down and round up option or set an absolute period. | [optional] **periodEndOverride** | [**TimePoint**](TimePoint.md) | | [optional] -**recurrencePolicy** | [**RecurrencePolicyEnum**](#RecurrencePolicyEnum) | The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. | [optional] +**recurrencePolicy** | [**RecurrencePolicyEnum**](#RecurrencePolicyEnum) | The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. | [optional] **activationPolicy** | [**ActivationPolicyEnum**](#ActivationPolicyEnum) | The policy that determines how the achievement starts, ends, or resets. - `user_action`: The achievement ends or resets relative to when the customer started the achievement. - `fixed_schedule`: The achievement starts, ends, or resets for all customers following a fixed schedule. | [optional] **fixedStartDate** | [**OffsetDateTime**](OffsetDateTime.md) | The achievement's start date when `activationPolicy` is set to `fixed_schedule`. **Note:** It must be an RFC3339 timestamp string. | [optional] **endDate** | [**OffsetDateTime**](OffsetDateTime.md) | The achievement's end date. If defined, customers cannot participate in the achievement after this date. **Note:** It must be an RFC3339 timestamp string. | [optional] @@ -25,6 +25,7 @@ Name | Value ---- | ----- NO_RECURRENCE | "no_recurrence" ON_EXPIRATION | "on_expiration" +ON_COMPLETION | "on_completion" diff --git a/docs/UpdateApplication.md b/docs/UpdateApplication.md index 41a96bdc..3cd2b2e4 100644 --- a/docs/UpdateApplication.md +++ b/docs/UpdateApplication.md @@ -20,8 +20,8 @@ Name | Type | Description | Notes **sandbox** | **Boolean** | Indicates if this is a live or sandbox Application. | [optional] **enablePartialDiscounts** | **Boolean** | Indicates if this Application supports partial discounts. | [optional] **defaultDiscountAdditionalCostPerItemScope** | [**DefaultDiscountAdditionalCostPerItemScopeEnum**](#DefaultDiscountAdditionalCostPerItemScopeEnum) | The default scope to apply `setDiscountPerItem` effects on if no scope was provided with the effect. | [optional] -**defaultEvaluationGroupId** | **Long** | The ID of the default campaign evaluation group to which new campaigns will be added unless a different group is selected when creating the campaign. | [optional] -**defaultCartItemFilterId** | **Long** | The ID of the default Cart-Item-Filter for this application. | [optional] +**defaultEvaluationGroupId** | **Integer** | The ID of the default campaign evaluation group to which new campaigns will be added unless a different group is selected when creating the campaign. | [optional] +**defaultCartItemFilterId** | **Integer** | The ID of the default Cart-Item-Filter for this application. | [optional] **enableCampaignStateManagement** | **Boolean** | Indicates whether the campaign staging and revisions feature is enabled for the Application. **Important:** After this feature is enabled, it cannot be disabled. | [optional] diff --git a/docs/UpdateApplicationAPIKey.md b/docs/UpdateApplicationAPIKey.md index 67fe23cc..b98defda 100644 --- a/docs/UpdateApplicationAPIKey.md +++ b/docs/UpdateApplicationAPIKey.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**timeOffset** | **Long** | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. | +**timeOffset** | **Integer** | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. | diff --git a/docs/UpdateApplicationCIF.md b/docs/UpdateApplicationCIF.md index 4df9090f..4f91411e 100644 --- a/docs/UpdateApplicationCIF.md +++ b/docs/UpdateApplicationCIF.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **String** | A short description of the Application cart item filter. | [optional] -**activeExpressionId** | **Long** | The ID of the expression that the Application cart item filter uses. | [optional] -**modifiedBy** | **Long** | The ID of the user who last updated the Application cart item filter. | [optional] +**activeExpressionId** | **Integer** | The ID of the expression that the Application cart item filter uses. | [optional] +**modifiedBy** | **Integer** | The ID of the user who last updated the Application cart item filter. | [optional] **modified** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent update to the Application cart item filter. | [optional] diff --git a/docs/UpdateCampaign.md b/docs/UpdateCampaign.md index 5a9a231c..c3c6a42f 100644 --- a/docs/UpdateCampaign.md +++ b/docs/UpdateCampaign.md @@ -12,16 +12,16 @@ Name | Type | Description | Notes **endTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the campaign will become inactive. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign. | [optional] **state** | [**StateEnum**](#StateEnum) | A disabled or archived campaign is not evaluated for rules or coupons. | [optional] -**activeRulesetId** | **Long** | [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. | [optional] +**activeRulesetId** | **Integer** | [ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. | [optional] **tags** | **List<String>** | A list of tags for the campaign. | **features** | [**List<FeaturesEnum>**](#List<FeaturesEnum>) | A list of features for the campaign. | **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | The set of limits that will operate for this campaign. | -**campaignGroups** | **List<Long>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) this campaign belongs to. | [optional] -**evaluationGroupId** | **Long** | The ID of the campaign evaluation group the campaign belongs to. | [optional] +**campaignGroups** | **List<Integer>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) this campaign belongs to. | [optional] +**evaluationGroupId** | **Integer** | The ID of the campaign evaluation group the campaign belongs to. | [optional] **type** | [**TypeEnum**](#TypeEnum) | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | [optional] -**linkedStoreIds** | **List<Long>** | A list of store IDs that you want to link to the campaign. **Note:** - Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. - If you linked stores to the campaign by uploading a CSV file, you cannot use this property and it should be empty. - Use of this property is limited to 50 stores. To link more than 50 stores, upload them via a CSV file. | [optional] +**linkedStoreIds** | **List<Integer>** | A list of store IDs that you want to link to the campaign. **Note:** - Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. - If you linked stores to the campaign by uploading a CSV file, you cannot use this property and it should be empty. - Use of this property is limited to 50 stores. To link more than 50 stores, upload them via a CSV file. | [optional] diff --git a/docs/UpdateCampaignEvaluationGroup.md b/docs/UpdateCampaignEvaluationGroup.md index 3ede3a67..0408d666 100644 --- a/docs/UpdateCampaignEvaluationGroup.md +++ b/docs/UpdateCampaignEvaluationGroup.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of the campaign evaluation group. | -**parentId** | **Long** | The ID of the parent group that contains the campaign evaluation group. | +**parentId** | **Integer** | The ID of the parent group that contains the campaign evaluation group. | **description** | **String** | A description of the campaign evaluation group. | [optional] **evaluationMode** | [**EvaluationModeEnum**](#EvaluationModeEnum) | The mode by which campaigns in the campaign evaluation group are evaluated. | **evaluationScope** | [**EvaluationScopeEnum**](#EvaluationScopeEnum) | The evaluation scope of the campaign evaluation group. | diff --git a/docs/UpdateCampaignGroup.md b/docs/UpdateCampaignGroup.md index 86972ccd..f1d2b0ad 100644 --- a/docs/UpdateCampaignGroup.md +++ b/docs/UpdateCampaignGroup.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of the campaign access group. | **description** | **String** | A longer description of the campaign access group. | [optional] -**subscribedApplicationsIds** | **List<Long>** | A list of IDs of the Applications that this campaign access group is enabled for. | [optional] -**campaignIds** | **List<Long>** | A list of IDs of the campaigns that are part of the campaign access group. | [optional] +**subscribedApplicationsIds** | **List<Integer>** | A list of IDs of the Applications that this campaign access group is enabled for. | [optional] +**campaignIds** | **List<Integer>** | A list of IDs of the campaigns that are part of the campaign access group. | [optional] diff --git a/docs/UpdateCampaignTemplate.md b/docs/UpdateCampaignTemplate.md index 2036e4a4..08dcd55f 100644 --- a/docs/UpdateCampaignTemplate.md +++ b/docs/UpdateCampaignTemplate.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **campaignAttributes** | [**Object**](.md) | The campaign attributes that campaigns created from this template will have by default. | [optional] **couponAttributes** | [**Object**](.md) | The campaign attributes that coupons created from this template will have by default. | [optional] **state** | [**StateEnum**](#StateEnum) | Only campaign templates in 'available' state may be used to create campaigns. | -**activeRulesetId** | **Long** | The ID of the ruleset this campaign template will use. | [optional] +**activeRulesetId** | **Integer** | The ID of the ruleset this campaign template will use. | [optional] **tags** | **List<String>** | A list of tags for the campaign template. | [optional] **features** | [**List<FeaturesEnum>**](#List<FeaturesEnum>) | A list of features for the campaign template. | [optional] **couponSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] @@ -20,9 +20,9 @@ Name | Type | Description | Notes **referralSettings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**List<TemplateLimitConfig>**](TemplateLimitConfig.md) | The set of limits that operate for this campaign template. | [optional] **templateParams** | [**List<CampaignTemplateParams>**](CampaignTemplateParams.md) | Fields which can be used to replace values in a rule. | [optional] -**applicationsIds** | **List<Long>** | A list of IDs of the Applications that are subscribed to this campaign template. | +**applicationsIds** | **List<Integer>** | A list of IDs of the Applications that are subscribed to this campaign template. | **campaignCollections** | [**List<CampaignTemplateCollection>**](CampaignTemplateCollection.md) | The campaign collections from the blueprint campaign for the template. | [optional] -**defaultCampaignGroupId** | **Long** | The default campaign group ID. | [optional] +**defaultCampaignGroupId** | **Integer** | The default campaign group ID. | [optional] **campaignType** | [**CampaignTypeEnum**](#CampaignTypeEnum) | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | [optional] diff --git a/docs/UpdateCatalog.md b/docs/UpdateCatalog.md index 4fb2f30a..265dd822 100644 --- a/docs/UpdateCatalog.md +++ b/docs/UpdateCatalog.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **String** | A description of this cart item catalog. | [optional] **name** | **String** | Name of this cart item catalog. | [optional] -**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the applications that are subscribed to this catalog. | [optional] +**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the applications that are subscribed to this catalog. | [optional] diff --git a/docs/UpdateCollection.md b/docs/UpdateCollection.md index ccbc9465..635623ad 100644 --- a/docs/UpdateCollection.md +++ b/docs/UpdateCollection.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **String** | A short description of the purpose of this collection. | [optional] -**subscribedApplicationsIds** | **List<Long>** | A list of the IDs of the Applications where this collection is enabled. | [optional] +**subscribedApplicationsIds** | **List<Integer>** | A list of the IDs of the Applications where this collection is enabled. | [optional] diff --git a/docs/UpdateCoupon.md b/docs/UpdateCoupon.md index 5ac442da..301154ae 100644 --- a/docs/UpdateCoupon.md +++ b/docs/UpdateCoupon.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**usageLimit** | **Long** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | [optional] +**usageLimit** | **Integer** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | [optional] **discountLimit** | [**BigDecimal**](BigDecimal.md) | The total discount value that the code can give. Typically used to represent a gift card value. | [optional] -**reservationLimit** | **Long** | The number of reservations that can be made with this coupon code. | [optional] +**reservationLimit** | **Integer** | The number of reservations that can be made with this coupon code. | [optional] **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the coupon becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the coupon. Coupon never expires if this is omitted. | [optional] **limits** | [**List<LimitConfig>**](LimitConfig.md) | Limits configuration for a coupon. These limits will override the limits set from the campaign. **Note:** Only usable when creating a single coupon which is not tied to a specific recipient. Only per-profile limits are allowed to be configured. | [optional] diff --git a/docs/UpdateCouponBatch.md b/docs/UpdateCouponBatch.md index 5aa99a21..5a8078ae 100644 --- a/docs/UpdateCouponBatch.md +++ b/docs/UpdateCouponBatch.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**usageLimit** | **Long** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | [optional] +**usageLimit** | **Integer** | The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. | [optional] **discountLimit** | [**BigDecimal**](BigDecimal.md) | The total discount value that the code can give. Typically used to represent a gift card value. | [optional] -**reservationLimit** | **Long** | The number of reservations that can be made with this coupon code. | [optional] +**reservationLimit** | **Integer** | The number of reservations that can be made with this coupon code. | [optional] **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the coupon becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the coupon. Coupon never expires if this is omitted. | [optional] **attributes** | [**Object**](.md) | Optional property to set the value of custom coupon attributes. They are defined in the Campaign Manager, see [Managing attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes). Coupon attributes can also be set to _mandatory_ in your Application [settings](https://docs.talon.one/docs/product/applications/using-attributes#making-attributes-mandatory). If your Application uses mandatory attributes, you must use this property to set their value. | [optional] diff --git a/docs/UpdateLoyaltyProgram.md b/docs/UpdateLoyaltyProgram.md index 9ac2c035..19475bf5 100644 --- a/docs/UpdateLoyaltyProgram.md +++ b/docs/UpdateLoyaltyProgram.md @@ -9,11 +9,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **title** | **String** | The display title for the Loyalty Program. | [optional] **description** | **String** | Description of our Loyalty Program. | [optional] -**subscribedApplications** | **List<Long>** | A list containing the IDs of all applications that are subscribed to this Loyalty Program. | [optional] +**subscribedApplications** | **List<Integer>** | A list containing the IDs of all applications that are subscribed to this Loyalty Program. | [optional] **defaultValidity** | **String** | The default duration after which new loyalty points should expire. Can be 'unlimited' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. | [optional] **defaultPending** | **String** | The default duration of the pending time after which points should be valid. Can be 'immediate' or a specific time. The time format is a number followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. | [optional] **allowSubledger** | **Boolean** | Indicates if this program supports subledgers inside the program. | [optional] -**usersPerCardLimit** | **Long** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional] +**usersPerCardLimit** | **Integer** | The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. | [optional] **sandbox** | **Boolean** | Indicates if this program is a live or sandbox program. Programs of a given type can only be connected to Applications of the same type. | [optional] **programJoinPolicy** | [**ProgramJoinPolicyEnum**](#ProgramJoinPolicyEnum) | The policy that defines when the customer joins the loyalty program. - `not_join`: The customer does not join the loyalty program but can still earn and spend loyalty points. **Note**: The customer does not have a program join date. - `points_activated`: The customer joins the loyalty program only when their earned loyalty points become active for the first time. - `points_earned`: The customer joins the loyalty program when they earn loyalty points for the first time. | [optional] **tiersExpirationPolicy** | [**TiersExpirationPolicyEnum**](#TiersExpirationPolicyEnum) | The policy that defines how tier expiration, used to reevaluate the customer's current tier, is determined. - `tier_start_date`: The tier expiration is relative to when the customer joined the current tier. - `program_join_date`: The tier expiration is relative to when the customer joined the loyalty program. - `customer_attribute`: The tier expiration is determined by a custom customer attribute. - `absolute_expiration`: The tier is reevaluated at the start of each tier cycle. For this policy, it is required to provide a `tierCycleStartDate`. | [optional] diff --git a/docs/UpdateLoyaltyProgramTier.md b/docs/UpdateLoyaltyProgramTier.md index 6aa6c538..2e1bb290 100644 --- a/docs/UpdateLoyaltyProgramTier.md +++ b/docs/UpdateLoyaltyProgramTier.md @@ -7,7 +7,7 @@ Update a tier in a specified loyalty program. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | The internal ID of the tier. | +**id** | **Integer** | The internal ID of the tier. | **name** | **String** | The name of the tier. | [optional] **minPoints** | [**BigDecimal**](BigDecimal.md) | The minimum amount of points required to enter the tier. | [optional] diff --git a/docs/UpdateReferral.md b/docs/UpdateReferral.md index 53383707..8a2a5e89 100644 --- a/docs/UpdateReferral.md +++ b/docs/UpdateReferral.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **friendProfileIntegrationId** | **String** | An optional Integration ID of the Friend's Profile. | [optional] **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the referral code becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the referral code. Referral never expires if this is omitted. | [optional] -**usageLimit** | **Long** | The number of times a referral code can be used. This can be set to 0 for no limit, but any campaign usage limits will still apply. | [optional] +**usageLimit** | **Integer** | The number of times a referral code can be used. This can be set to 0 for no limit, but any campaign usage limits will still apply. | [optional] **attributes** | [**Object**](.md) | Arbitrary properties associated with this item. | [optional] diff --git a/docs/UpdateReferralBatch.md b/docs/UpdateReferralBatch.md index b256e8f3..78a97d38 100644 --- a/docs/UpdateReferralBatch.md +++ b/docs/UpdateReferralBatch.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **batchID** | **String** | The id of the batch the referral belongs to. | **startDate** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp at which point the referral code becomes valid. | [optional] **expiryDate** | [**OffsetDateTime**](OffsetDateTime.md) | Expiration date of the referral code. Referral never expires if this is omitted. | [optional] -**usageLimit** | **Long** | The number of times a referral code can be used. This can be set to 0 for no limit, but any campaign usage limits will still apply. | [optional] +**usageLimit** | **Integer** | The number of times a referral code can be used. This can be set to 0 for no limit, but any campaign usage limits will still apply. | [optional] diff --git a/docs/UpdateRole.md b/docs/UpdateRole.md index 0aa604c5..59852518 100644 --- a/docs/UpdateRole.md +++ b/docs/UpdateRole.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **name** | **String** | Name of the role. | [optional] **description** | **String** | Description of the role. | [optional] **acl** | **String** | The `Access Control List` json defining the role of the user. This represents the access control on the user level. | [optional] -**members** | **List<Long>** | An array of user identifiers. | [optional] +**members** | **List<Integer>** | An array of user identifiers. | [optional] diff --git a/docs/UpdateUser.md b/docs/UpdateUser.md index 1b08a258..62735909 100644 --- a/docs/UpdateUser.md +++ b/docs/UpdateUser.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **state** | [**StateEnum**](#StateEnum) | The state of the user. - `deactivated`: The user has been deactivated. - `active`: The user is active. **Note**: Only `admin` users can update the state of another user. | [optional] **isAdmin** | **Boolean** | Indicates whether the user is an `admin`. | [optional] **policy** | **String** | Indicates the access level of the user. | [optional] -**roles** | **List<Long>** | A list of the IDs of the roles assigned to the user. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. | [optional] +**roles** | **List<Integer>** | A list of the IDs of the roles assigned to the user. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. | [optional] **applicationNotificationSubscriptions** | [**Object**](.md) | Application notifications that the user is subscribed to. | [optional] diff --git a/docs/User.md b/docs/User.md index fec8aac6..06529072 100644 --- a/docs/User.md +++ b/docs/User.md @@ -6,17 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | **email** | **String** | The email address associated with the user profile. | -**accountId** | **Long** | The ID of the account that owns this entity. | +**accountId** | **Integer** | The ID of the account that owns this entity. | **name** | **String** | Name of the user. | **state** | [**StateEnum**](#StateEnum) | State of the user. | **inviteToken** | **String** | Invitation token of the user. **Note**: If the user has already accepted their invitation, this is `null`. | **isAdmin** | **Boolean** | Indicates whether the user is an `admin`. | [optional] **policy** | [**Object**](.md) | Access level of the user. | -**roles** | **List<Long>** | A list of the IDs of the roles assigned to the user. | [optional] +**roles** | **List<Integer>** | A list of the IDs of the roles assigned to the user. | [optional] **authMethod** | **String** | Authentication method for this user. | [optional] **applicationNotificationSubscriptions** | [**Object**](.md) | Application notifications that the user is subscribed to. | [optional] **lastSignedIn** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp when the user last signed in to Talon.One. | [optional] diff --git a/docs/UserEntity.md b/docs/UserEntity.md index ed951e56..279e4bb1 100644 --- a/docs/UserEntity.md +++ b/docs/UserEntity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**userId** | **Long** | The ID of the user associated with this entity. | +**userId** | **Integer** | The ID of the user associated with this entity. | diff --git a/docs/ValueMap.md b/docs/ValueMap.md index 84df5442..c0befac4 100644 --- a/docs/ValueMap.md +++ b/docs/ValueMap.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | +**id** | **Integer** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] -**createdBy** | **Long** | The ID of the user who created the value map. | [optional] -**campaignId** | **Long** | | +**createdBy** | **Integer** | The ID of the user who created the value map. | [optional] +**campaignId** | **Integer** | | diff --git a/docs/Webhook.md b/docs/Webhook.md index 71010d5c..5e226201 100644 --- a/docs/Webhook.md +++ b/docs/Webhook.md @@ -6,12 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | -**applicationIds** | **List<Long>** | The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. | +**applicationIds** | **List<Integer>** | The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. | **title** | **String** | Name or title for this webhook. | **description** | **String** | A description of the webhook. | [optional] +**draft** | **Boolean** | Indicates if the webhook is a draft. | **verb** | [**VerbEnum**](#VerbEnum) | API method for this webhook. | **url** | **String** | API URL (supports templating using parameters) for this webhook. | **headers** | **List<String>** | List of API HTTP headers for this webhook. | diff --git a/docs/WebhookActivationLogEntry.md b/docs/WebhookActivationLogEntry.md index 6d662252..eba02e14 100644 --- a/docs/WebhookActivationLogEntry.md +++ b/docs/WebhookActivationLogEntry.md @@ -8,9 +8,9 @@ Log of activated webhooks. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **integrationRequestUuid** | **String** | UUID reference of the integration request that triggered the effect with the webhook. | -**webhookId** | **Long** | ID of the webhook that triggered the request. | -**applicationId** | **Long** | ID of the application that triggered the webhook. | -**campaignId** | **Long** | ID of the campaign that triggered the webhook. | +**webhookId** | **Integer** | ID of the webhook that triggered the request. | +**applicationId** | **Integer** | ID of the application that triggered the webhook. | +**campaignId** | **Integer** | ID of the campaign that triggered the webhook. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of request | diff --git a/docs/WebhookAuthentication.md b/docs/WebhookAuthentication.md new file mode 100644 index 00000000..3cee30b8 --- /dev/null +++ b/docs/WebhookAuthentication.md @@ -0,0 +1,29 @@ + + +# WebhookAuthentication + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**createdBy** | **String** | The name of the user who created the webhook authentication. | +**modifiedBy** | **String** | The name of the user who last modified the webhook authentication. | +**webhooks** | [**List<WebhookAuthenticationWebhookRef>**](WebhookAuthenticationWebhookRef.md) | | +**name** | **String** | The name of the webhook authentication. | +**type** | [**TypeEnum**](#TypeEnum) | | +**data** | [**Object**](.md) | | +**id** | **Integer** | The internal ID of this entity. | +**created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | +**modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | + + + +## Enum: TypeEnum + +Name | Value +---- | ----- +BASIC | "basic" +CUSTOM | "custom" + + + diff --git a/docs/WebhookAuthenticationBase.md b/docs/WebhookAuthenticationBase.md new file mode 100644 index 00000000..9790aff1 --- /dev/null +++ b/docs/WebhookAuthenticationBase.md @@ -0,0 +1,23 @@ + + +# WebhookAuthenticationBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | The name of the webhook authentication. | +**type** | [**TypeEnum**](#TypeEnum) | | +**data** | [**Object**](.md) | | + + + +## Enum: TypeEnum + +Name | Value +---- | ----- +BASIC | "basic" +CUSTOM | "custom" + + + diff --git a/docs/WebhookAuthenticationDataBasic.md b/docs/WebhookAuthenticationDataBasic.md new file mode 100644 index 00000000..ecf27e2c --- /dev/null +++ b/docs/WebhookAuthenticationDataBasic.md @@ -0,0 +1,13 @@ + + +# WebhookAuthenticationDataBasic + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**username** | **String** | The Basic HTTP username. | +**password** | **String** | The Basic HTTP password. | + + + diff --git a/docs/WebhookAuthenticationDataCustom.md b/docs/WebhookAuthenticationDataCustom.md new file mode 100644 index 00000000..4df0c370 --- /dev/null +++ b/docs/WebhookAuthenticationDataCustom.md @@ -0,0 +1,12 @@ + + +# WebhookAuthenticationDataCustom + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**headers** | **Map<String, String>** | | + + + diff --git a/docs/WebhookAuthenticationWebhookRef.md b/docs/WebhookAuthenticationWebhookRef.md new file mode 100644 index 00000000..148e70fc --- /dev/null +++ b/docs/WebhookAuthenticationWebhookRef.md @@ -0,0 +1,14 @@ + + +# WebhookAuthenticationWebhookRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Integer** | The internal ID of this entity. | +**title** | **String** | The title of the webhook authentication. | +**description** | **String** | A description of the webhook authentication. | [optional] + + + diff --git a/docs/WebhookLogEntry.md b/docs/WebhookLogEntry.md index c192f194..bac9be49 100644 --- a/docs/WebhookLogEntry.md +++ b/docs/WebhookLogEntry.md @@ -9,12 +9,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **String** | UUID reference of the webhook request. | **integrationRequestUuid** | **String** | UUID reference of the integration request linked to this webhook request. | -**webhookId** | **Long** | ID of the webhook that triggered the request. | -**applicationId** | **Long** | ID of the application that triggered the webhook. | [optional] +**webhookId** | **Integer** | ID of the webhook that triggered the request. | +**applicationId** | **Integer** | ID of the application that triggered the webhook. | [optional] **url** | **String** | The target URL of the request. | **request** | **String** | Request message | **response** | **String** | Response message | [optional] -**status** | **Long** | HTTP status code of response. | [optional] +**status** | **Integer** | HTTP status code of response. | [optional] **requestTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of request | **responseTime** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of response | [optional] diff --git a/docs/WebhookWithOutgoingIntegrationDetails.md b/docs/WebhookWithOutgoingIntegrationDetails.md index 079324a7..867240a1 100644 --- a/docs/WebhookWithOutgoingIntegrationDetails.md +++ b/docs/WebhookWithOutgoingIntegrationDetails.md @@ -6,20 +6,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **Long** | Internal ID of this entity. | +**id** | **Integer** | The internal ID of this entity. | **created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. | **modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. | -**applicationIds** | **List<Long>** | The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. | +**applicationIds** | **List<Integer>** | The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. | **title** | **String** | Name or title for this webhook. | **description** | **String** | A description of the webhook. | [optional] +**draft** | **Boolean** | Indicates if the webhook is a draft. | **verb** | [**VerbEnum**](#VerbEnum) | API method for this webhook. | **url** | **String** | API URL (supports templating using parameters) for this webhook. | **headers** | **List<String>** | List of API HTTP headers for this webhook. | **payload** | **String** | API payload (supports templating using parameters) for this webhook. | [optional] **params** | [**List<TemplateArgDef>**](TemplateArgDef.md) | Array of template argument definitions. | **enabled** | **Boolean** | Enables or disables webhook from showing in the Rule Builder. | -**outgoingIntegrationTemplateId** | **Long** | Identifier of the outgoing integration template. | [optional] -**outgoingIntegrationTypeId** | **Long** | Identifier of the outgoing integration type. | [optional] +**outgoingIntegrationTemplateId** | **Integer** | Identifier of the outgoing integration template. | [optional] +**outgoingIntegrationTypeId** | **Integer** | Identifier of the outgoing integration type. | [optional] **outgoingIntegrationTypeName** | **String** | Name of the outgoing integration. | [optional] diff --git a/docs/WillAwardGiveawayEffectProps.md b/docs/WillAwardGiveawayEffectProps.md index fc643303..64d4bd99 100644 --- a/docs/WillAwardGiveawayEffectProps.md +++ b/docs/WillAwardGiveawayEffectProps.md @@ -7,7 +7,7 @@ The properties specific to the \"awardGiveaway\" effect when the session is not Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**poolId** | **Long** | The ID of the giveaways pool the code will be taken from. | +**poolId** | **Integer** | The ID of the giveaways pool the code will be taken from. | **poolName** | **String** | The name of the giveaways pool the code will be taken from. | **recipientIntegrationId** | **String** | The integration ID of the profile that will be awarded the giveaway. | diff --git a/pom.xml b/pom.xml index 48d73594..0c71a279 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ talon-one-client jar talon-one-client - 12.0.0 + 0.0.0 https://github.com/talon-one/maven-artefacts Talon.One unified JAVA SDK. It allows for programmatic access to the integration and management API with their respective authentication strategies diff --git a/src/main/java/one/talon/ApiClient.java b/src/main/java/one/talon/ApiClient.java index 5f39512b..255e0d49 100644 --- a/src/main/java/one/talon/ApiClient.java +++ b/src/main/java/one/talon/ApiClient.java @@ -132,7 +132,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/12.0.0/java"); + setUserAgent("OpenAPI-Generator/0.0.0/java"); authentications = new HashMap(); } diff --git a/src/main/java/one/talon/api/IntegrationApi.java b/src/main/java/one/talon/api/IntegrationApi.java index cf736c4e..7177b1c3 100644 --- a/src/main/java/one/talon/api/IntegrationApi.java +++ b/src/main/java/one/talon/api/IntegrationApi.java @@ -608,7 +608,7 @@ public okhttp3.Call createReferralsForMultipleAdvocatesAsync(NewReferralsForMult 404 Not found - */ - public okhttp3.Call deleteAudienceMembershipsV2Call(Long audienceId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAudienceMembershipsV2Call(Integer audienceId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -639,7 +639,7 @@ public okhttp3.Call deleteAudienceMembershipsV2Call(Long audienceId, final ApiCa } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteAudienceMembershipsV2ValidateBeforeCall(Long audienceId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteAudienceMembershipsV2ValidateBeforeCall(Integer audienceId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'audienceId' is set if (audienceId == null) { @@ -665,7 +665,7 @@ private okhttp3.Call deleteAudienceMembershipsV2ValidateBeforeCall(Long audience 404 Not found - */ - public void deleteAudienceMembershipsV2(Long audienceId) throws ApiException { + public void deleteAudienceMembershipsV2(Integer audienceId) throws ApiException { deleteAudienceMembershipsV2WithHttpInfo(audienceId); } @@ -683,7 +683,7 @@ public void deleteAudienceMembershipsV2(Long audienceId) throws ApiException { 404 Not found - */ - public ApiResponse deleteAudienceMembershipsV2WithHttpInfo(Long audienceId) throws ApiException { + public ApiResponse deleteAudienceMembershipsV2WithHttpInfo(Integer audienceId) throws ApiException { okhttp3.Call localVarCall = deleteAudienceMembershipsV2ValidateBeforeCall(audienceId, null); return localVarApiClient.execute(localVarCall); } @@ -703,7 +703,7 @@ public ApiResponse deleteAudienceMembershipsV2WithHttpInfo(Long audienceId 404 Not found - */ - public okhttp3.Call deleteAudienceMembershipsV2Async(Long audienceId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAudienceMembershipsV2Async(Integer audienceId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteAudienceMembershipsV2ValidateBeforeCall(audienceId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -724,7 +724,7 @@ public okhttp3.Call deleteAudienceMembershipsV2Async(Long audienceId, final ApiC 404 Not found - */ - public okhttp3.Call deleteAudienceV2Call(Long audienceId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAudienceV2Call(Integer audienceId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -755,7 +755,7 @@ public okhttp3.Call deleteAudienceV2Call(Long audienceId, final ApiCallback _cal } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteAudienceV2ValidateBeforeCall(Long audienceId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteAudienceV2ValidateBeforeCall(Integer audienceId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'audienceId' is set if (audienceId == null) { @@ -782,7 +782,7 @@ private okhttp3.Call deleteAudienceV2ValidateBeforeCall(Long audienceId, final A 404 Not found - */ - public void deleteAudienceV2(Long audienceId) throws ApiException { + public void deleteAudienceV2(Integer audienceId) throws ApiException { deleteAudienceV2WithHttpInfo(audienceId); } @@ -801,7 +801,7 @@ public void deleteAudienceV2(Long audienceId) throws ApiException { 404 Not found - */ - public ApiResponse deleteAudienceV2WithHttpInfo(Long audienceId) throws ApiException { + public ApiResponse deleteAudienceV2WithHttpInfo(Integer audienceId) throws ApiException { okhttp3.Call localVarCall = deleteAudienceV2ValidateBeforeCall(audienceId, null); return localVarApiClient.execute(localVarCall); } @@ -822,7 +822,7 @@ public ApiResponse deleteAudienceV2WithHttpInfo(Long audienceId) throws Ap 404 Not found - */ - public okhttp3.Call deleteAudienceV2Async(Long audienceId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAudienceV2Async(Integer audienceId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteAudienceV2ValidateBeforeCall(audienceId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -1086,7 +1086,7 @@ public okhttp3.Call deleteCustomerDataAsync(String integrationId, final ApiCallb 401 Unauthorized - */ - public okhttp3.Call generateLoyaltyCardCall(Long loyaltyProgramId, GenerateLoyaltyCard body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call generateLoyaltyCardCall(Integer loyaltyProgramId, GenerateLoyaltyCard body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -1117,7 +1117,7 @@ public okhttp3.Call generateLoyaltyCardCall(Long loyaltyProgramId, GenerateLoyal } @SuppressWarnings("rawtypes") - private okhttp3.Call generateLoyaltyCardValidateBeforeCall(Long loyaltyProgramId, GenerateLoyaltyCard body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call generateLoyaltyCardValidateBeforeCall(Integer loyaltyProgramId, GenerateLoyaltyCard body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -1150,7 +1150,7 @@ private okhttp3.Call generateLoyaltyCardValidateBeforeCall(Long loyaltyProgramId 401 Unauthorized - */ - public LoyaltyCard generateLoyaltyCard(Long loyaltyProgramId, GenerateLoyaltyCard body) throws ApiException { + public LoyaltyCard generateLoyaltyCard(Integer loyaltyProgramId, GenerateLoyaltyCard body) throws ApiException { ApiResponse localVarResp = generateLoyaltyCardWithHttpInfo(loyaltyProgramId, body); return localVarResp.getData(); } @@ -1170,7 +1170,7 @@ public LoyaltyCard generateLoyaltyCard(Long loyaltyProgramId, GenerateLoyaltyCar 401 Unauthorized - */ - public ApiResponse generateLoyaltyCardWithHttpInfo(Long loyaltyProgramId, GenerateLoyaltyCard body) throws ApiException { + public ApiResponse generateLoyaltyCardWithHttpInfo(Integer loyaltyProgramId, GenerateLoyaltyCard body) throws ApiException { okhttp3.Call localVarCall = generateLoyaltyCardValidateBeforeCall(loyaltyProgramId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1192,7 +1192,7 @@ public ApiResponse generateLoyaltyCardWithHttpInfo(Long loyaltyProg 401 Unauthorized - */ - public okhttp3.Call generateLoyaltyCardAsync(Long loyaltyProgramId, GenerateLoyaltyCard body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call generateLoyaltyCardAsync(Integer loyaltyProgramId, GenerateLoyaltyCard body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = generateLoyaltyCardValidateBeforeCall(loyaltyProgramId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1206,7 +1206,7 @@ public okhttp3.Call generateLoyaltyCardAsync(Long loyaltyProgramId, GenerateLoya * @param progressStatus Filter by customer progress status in the achievement. (optional) * @param startDate Timestamp that filters the results to only contain achievements created on or after the start date. (optional) * @param endDate Timestamp that filters the results to only contain achievements created before or on the end date. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1220,7 +1220,7 @@ public okhttp3.Call generateLoyaltyCardAsync(Long loyaltyProgramId, GenerateLoya 404 Not found - */ - public okhttp3.Call getCustomerAchievementHistoryCall(String integrationId, Long achievementId, List progressStatus, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerAchievementHistoryCall(String integrationId, Integer achievementId, List progressStatus, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -1272,7 +1272,7 @@ public okhttp3.Call getCustomerAchievementHistoryCall(String integrationId, Long } @SuppressWarnings("rawtypes") - private okhttp3.Call getCustomerAchievementHistoryValidateBeforeCall(String integrationId, Long achievementId, List progressStatus, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCustomerAchievementHistoryValidateBeforeCall(String integrationId, Integer achievementId, List progressStatus, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { // verify the required parameter 'integrationId' is set if (integrationId == null) { @@ -1298,7 +1298,7 @@ private okhttp3.Call getCustomerAchievementHistoryValidateBeforeCall(String inte * @param progressStatus Filter by customer progress status in the achievement. (optional) * @param startDate Timestamp that filters the results to only contain achievements created on or after the start date. (optional) * @param endDate Timestamp that filters the results to only contain achievements created before or on the end date. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @return InlineResponse2002 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1311,7 +1311,7 @@ private okhttp3.Call getCustomerAchievementHistoryValidateBeforeCall(String inte 404 Not found - */ - public InlineResponse2002 getCustomerAchievementHistory(String integrationId, Long achievementId, List progressStatus, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip) throws ApiException { + public InlineResponse2002 getCustomerAchievementHistory(String integrationId, Integer achievementId, List progressStatus, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip) throws ApiException { ApiResponse localVarResp = getCustomerAchievementHistoryWithHttpInfo(integrationId, achievementId, progressStatus, startDate, endDate, pageSize, skip); return localVarResp.getData(); } @@ -1324,7 +1324,7 @@ public InlineResponse2002 getCustomerAchievementHistory(String integrationId, Lo * @param progressStatus Filter by customer progress status in the achievement. (optional) * @param startDate Timestamp that filters the results to only contain achievements created on or after the start date. (optional) * @param endDate Timestamp that filters the results to only contain achievements created before or on the end date. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @return ApiResponse<InlineResponse2002> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1337,7 +1337,7 @@ public InlineResponse2002 getCustomerAchievementHistory(String integrationId, Lo 404 Not found - */ - public ApiResponse getCustomerAchievementHistoryWithHttpInfo(String integrationId, Long achievementId, List progressStatus, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip) throws ApiException { + public ApiResponse getCustomerAchievementHistoryWithHttpInfo(String integrationId, Integer achievementId, List progressStatus, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip) throws ApiException { okhttp3.Call localVarCall = getCustomerAchievementHistoryValidateBeforeCall(integrationId, achievementId, progressStatus, startDate, endDate, pageSize, skip, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1351,7 +1351,7 @@ public ApiResponse getCustomerAchievementHistoryWithHttpInfo * @param progressStatus Filter by customer progress status in the achievement. (optional) * @param startDate Timestamp that filters the results to only contain achievements created on or after the start date. (optional) * @param endDate Timestamp that filters the results to only contain achievements created before or on the end date. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1365,7 +1365,7 @@ public ApiResponse getCustomerAchievementHistoryWithHttpInfo 404 Not found - */ - public okhttp3.Call getCustomerAchievementHistoryAsync(String integrationId, Long achievementId, List progressStatus, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerAchievementHistoryAsync(String integrationId, Integer achievementId, List progressStatus, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCustomerAchievementHistoryValidateBeforeCall(integrationId, achievementId, progressStatus, startDate, endDate, pageSize, skip, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1379,7 +1379,7 @@ public okhttp3.Call getCustomerAchievementHistoryAsync(String integrationId, Lon * @param achievementIds Filter by one or more Achievement IDs, separated by a comma. **Note:** If no achievements are specified, data for all the achievements in the Application is returned. (optional) * @param achievementStatus Filter by status of the achievement. **Note:** If the achievement status is not specified, only data for all active achievements in the Application is returned. (optional) * @param currentProgressStatus Filter by customer progress status in the achievement. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1393,7 +1393,7 @@ public okhttp3.Call getCustomerAchievementHistoryAsync(String integrationId, Lon 404 Not found - */ - public okhttp3.Call getCustomerAchievementsCall(String integrationId, List campaignIds, List achievementIds, List achievementStatus, List currentProgressStatus, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerAchievementsCall(String integrationId, List campaignIds, List achievementIds, List achievementStatus, List currentProgressStatus, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -1448,7 +1448,7 @@ public okhttp3.Call getCustomerAchievementsCall(String integrationId, List campaignIds, List achievementIds, List achievementStatus, List currentProgressStatus, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCustomerAchievementsValidateBeforeCall(String integrationId, List campaignIds, List achievementIds, List achievementStatus, List currentProgressStatus, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { // verify the required parameter 'integrationId' is set if (integrationId == null) { @@ -1469,7 +1469,7 @@ private okhttp3.Call getCustomerAchievementsValidateBeforeCall(String integratio * @param achievementIds Filter by one or more Achievement IDs, separated by a comma. **Note:** If no achievements are specified, data for all the achievements in the Application is returned. (optional) * @param achievementStatus Filter by status of the achievement. **Note:** If the achievement status is not specified, only data for all active achievements in the Application is returned. (optional) * @param currentProgressStatus Filter by customer progress status in the achievement. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @return InlineResponse2001 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1482,7 +1482,7 @@ private okhttp3.Call getCustomerAchievementsValidateBeforeCall(String integratio 404 Not found - */ - public InlineResponse2001 getCustomerAchievements(String integrationId, List campaignIds, List achievementIds, List achievementStatus, List currentProgressStatus, Long pageSize, Long skip) throws ApiException { + public InlineResponse2001 getCustomerAchievements(String integrationId, List campaignIds, List achievementIds, List achievementStatus, List currentProgressStatus, Integer pageSize, Integer skip) throws ApiException { ApiResponse localVarResp = getCustomerAchievementsWithHttpInfo(integrationId, campaignIds, achievementIds, achievementStatus, currentProgressStatus, pageSize, skip); return localVarResp.getData(); } @@ -1495,7 +1495,7 @@ public InlineResponse2001 getCustomerAchievements(String integrationId, List 404 Not found - */ - public ApiResponse getCustomerAchievementsWithHttpInfo(String integrationId, List campaignIds, List achievementIds, List achievementStatus, List currentProgressStatus, Long pageSize, Long skip) throws ApiException { + public ApiResponse getCustomerAchievementsWithHttpInfo(String integrationId, List campaignIds, List achievementIds, List achievementStatus, List currentProgressStatus, Integer pageSize, Integer skip) throws ApiException { okhttp3.Call localVarCall = getCustomerAchievementsValidateBeforeCall(integrationId, campaignIds, achievementIds, achievementStatus, currentProgressStatus, pageSize, skip, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1522,7 +1522,7 @@ public ApiResponse getCustomerAchievementsWithHttpInfo(Strin * @param achievementIds Filter by one or more Achievement IDs, separated by a comma. **Note:** If no achievements are specified, data for all the achievements in the Application is returned. (optional) * @param achievementStatus Filter by status of the achievement. **Note:** If the achievement status is not specified, only data for all active achievements in the Application is returned. (optional) * @param currentProgressStatus Filter by customer progress status in the achievement. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1536,7 +1536,7 @@ public ApiResponse getCustomerAchievementsWithHttpInfo(Strin 404 Not found - */ - public okhttp3.Call getCustomerAchievementsAsync(String integrationId, List campaignIds, List achievementIds, List achievementStatus, List currentProgressStatus, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerAchievementsAsync(String integrationId, List campaignIds, List achievementIds, List achievementStatus, List currentProgressStatus, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCustomerAchievementsValidateBeforeCall(integrationId, campaignIds, achievementIds, achievementStatus, currentProgressStatus, pageSize, skip, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1849,7 +1849,7 @@ public okhttp3.Call getCustomerSessionAsync(String customerSessionId, final ApiC 404 Not found - */ - public okhttp3.Call getLoyaltyBalancesCall(Long loyaltyProgramId, String integrationId, OffsetDateTime endDate, String subledgerId, Boolean includeTiers, Boolean includeProjectedTier, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyBalancesCall(Integer loyaltyProgramId, String integrationId, OffsetDateTime endDate, String subledgerId, Boolean includeTiers, Boolean includeProjectedTier, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -1897,7 +1897,7 @@ public okhttp3.Call getLoyaltyBalancesCall(Long loyaltyProgramId, String integra } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyBalancesValidateBeforeCall(Long loyaltyProgramId, String integrationId, OffsetDateTime endDate, String subledgerId, Boolean includeTiers, Boolean includeProjectedTier, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLoyaltyBalancesValidateBeforeCall(Integer loyaltyProgramId, String integrationId, OffsetDateTime endDate, String subledgerId, Boolean includeTiers, Boolean includeProjectedTier, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -1935,7 +1935,7 @@ private okhttp3.Call getLoyaltyBalancesValidateBeforeCall(Long loyaltyProgramId, 404 Not found - */ - public LoyaltyBalancesWithTiers getLoyaltyBalances(Long loyaltyProgramId, String integrationId, OffsetDateTime endDate, String subledgerId, Boolean includeTiers, Boolean includeProjectedTier) throws ApiException { + public LoyaltyBalancesWithTiers getLoyaltyBalances(Integer loyaltyProgramId, String integrationId, OffsetDateTime endDate, String subledgerId, Boolean includeTiers, Boolean includeProjectedTier) throws ApiException { ApiResponse localVarResp = getLoyaltyBalancesWithHttpInfo(loyaltyProgramId, integrationId, endDate, subledgerId, includeTiers, includeProjectedTier); return localVarResp.getData(); } @@ -1960,7 +1960,7 @@ public LoyaltyBalancesWithTiers getLoyaltyBalances(Long loyaltyProgramId, String 404 Not found - */ - public ApiResponse getLoyaltyBalancesWithHttpInfo(Long loyaltyProgramId, String integrationId, OffsetDateTime endDate, String subledgerId, Boolean includeTiers, Boolean includeProjectedTier) throws ApiException { + public ApiResponse getLoyaltyBalancesWithHttpInfo(Integer loyaltyProgramId, String integrationId, OffsetDateTime endDate, String subledgerId, Boolean includeTiers, Boolean includeProjectedTier) throws ApiException { okhttp3.Call localVarCall = getLoyaltyBalancesValidateBeforeCall(loyaltyProgramId, integrationId, endDate, subledgerId, includeTiers, includeProjectedTier, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1987,7 +1987,7 @@ public ApiResponse getLoyaltyBalancesWithHttpInfo(Long 404 Not found - */ - public okhttp3.Call getLoyaltyBalancesAsync(Long loyaltyProgramId, String integrationId, OffsetDateTime endDate, String subledgerId, Boolean includeTiers, Boolean includeProjectedTier, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyBalancesAsync(Integer loyaltyProgramId, String integrationId, OffsetDateTime endDate, String subledgerId, Boolean includeTiers, Boolean includeProjectedTier, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoyaltyBalancesValidateBeforeCall(loyaltyProgramId, integrationId, endDate, subledgerId, includeTiers, includeProjectedTier, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2012,7 +2012,7 @@ public okhttp3.Call getLoyaltyBalancesAsync(Long loyaltyProgramId, String integr 404 Not found - */ - public okhttp3.Call getLoyaltyCardBalancesCall(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime endDate, List subledgerId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyCardBalancesCall(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime endDate, List subledgerId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -2052,7 +2052,7 @@ public okhttp3.Call getLoyaltyCardBalancesCall(Long loyaltyProgramId, String loy } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyCardBalancesValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime endDate, List subledgerId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLoyaltyCardBalancesValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime endDate, List subledgerId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -2088,7 +2088,7 @@ private okhttp3.Call getLoyaltyCardBalancesValidateBeforeCall(Long loyaltyProgra 404 Not found - */ - public LoyaltyCardBalances getLoyaltyCardBalances(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime endDate, List subledgerId) throws ApiException { + public LoyaltyCardBalances getLoyaltyCardBalances(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime endDate, List subledgerId) throws ApiException { ApiResponse localVarResp = getLoyaltyCardBalancesWithHttpInfo(loyaltyProgramId, loyaltyCardId, endDate, subledgerId); return localVarResp.getData(); } @@ -2111,7 +2111,7 @@ public LoyaltyCardBalances getLoyaltyCardBalances(Long loyaltyProgramId, String 404 Not found - */ - public ApiResponse getLoyaltyCardBalancesWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime endDate, List subledgerId) throws ApiException { + public ApiResponse getLoyaltyCardBalancesWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime endDate, List subledgerId) throws ApiException { okhttp3.Call localVarCall = getLoyaltyCardBalancesValidateBeforeCall(loyaltyProgramId, loyaltyCardId, endDate, subledgerId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -2136,7 +2136,7 @@ public ApiResponse getLoyaltyCardBalancesWithHttpInfo(Long 404 Not found - */ - public okhttp3.Call getLoyaltyCardBalancesAsync(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime endDate, List subledgerId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyCardBalancesAsync(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime endDate, List subledgerId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoyaltyCardBalancesValidateBeforeCall(loyaltyProgramId, loyaltyCardId, endDate, subledgerId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2149,7 +2149,7 @@ public okhttp3.Call getLoyaltyCardBalancesAsync(Long loyaltyProgramId, String lo * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) * @param status Filter points based on their status. (optional, default to active) * @param subledgerId Filter results by one or more subledger IDs. Must be exact match. (optional) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -2163,7 +2163,7 @@ public okhttp3.Call getLoyaltyCardBalancesAsync(Long loyaltyProgramId, String lo 404 Not found - */ - public okhttp3.Call getLoyaltyCardPointsCall(Long loyaltyProgramId, String loyaltyCardId, String status, List subledgerId, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyCardPointsCall(Integer loyaltyProgramId, String loyaltyCardId, String status, List subledgerId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -2211,7 +2211,7 @@ public okhttp3.Call getLoyaltyCardPointsCall(Long loyaltyProgramId, String loyal } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyCardPointsValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, String status, List subledgerId, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLoyaltyCardPointsValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, String status, List subledgerId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -2236,7 +2236,7 @@ private okhttp3.Call getLoyaltyCardPointsValidateBeforeCall(Long loyaltyProgramI * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) * @param status Filter points based on their status. (optional, default to active) * @param subledgerId Filter results by one or more subledger IDs. Must be exact match. (optional) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @return InlineResponse2005 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2249,7 +2249,7 @@ private okhttp3.Call getLoyaltyCardPointsValidateBeforeCall(Long loyaltyProgramI 404 Not found - */ - public InlineResponse2005 getLoyaltyCardPoints(Long loyaltyProgramId, String loyaltyCardId, String status, List subledgerId, Long pageSize, Long skip) throws ApiException { + public InlineResponse2005 getLoyaltyCardPoints(Integer loyaltyProgramId, String loyaltyCardId, String status, List subledgerId, Integer pageSize, Integer skip) throws ApiException { ApiResponse localVarResp = getLoyaltyCardPointsWithHttpInfo(loyaltyProgramId, loyaltyCardId, status, subledgerId, pageSize, skip); return localVarResp.getData(); } @@ -2261,7 +2261,7 @@ public InlineResponse2005 getLoyaltyCardPoints(Long loyaltyProgramId, String loy * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) * @param status Filter points based on their status. (optional, default to active) * @param subledgerId Filter results by one or more subledger IDs. Must be exact match. (optional) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @return ApiResponse<InlineResponse2005> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2274,7 +2274,7 @@ public InlineResponse2005 getLoyaltyCardPoints(Long loyaltyProgramId, String loy 404 Not found - */ - public ApiResponse getLoyaltyCardPointsWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, String status, List subledgerId, Long pageSize, Long skip) throws ApiException { + public ApiResponse getLoyaltyCardPointsWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, String status, List subledgerId, Integer pageSize, Integer skip) throws ApiException { okhttp3.Call localVarCall = getLoyaltyCardPointsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, status, subledgerId, pageSize, skip, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -2287,7 +2287,7 @@ public ApiResponse getLoyaltyCardPointsWithHttpInfo(Long loy * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) * @param status Filter points based on their status. (optional, default to active) * @param subledgerId Filter results by one or more subledger IDs. Must be exact match. (optional) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -2301,7 +2301,7 @@ public ApiResponse getLoyaltyCardPointsWithHttpInfo(Long loy 404 Not found - */ - public okhttp3.Call getLoyaltyCardPointsAsync(Long loyaltyProgramId, String loyaltyCardId, String status, List subledgerId, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyCardPointsAsync(Integer loyaltyProgramId, String loyaltyCardId, String status, List subledgerId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoyaltyCardPointsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, status, subledgerId, pageSize, skip, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2316,7 +2316,7 @@ public okhttp3.Call getLoyaltyCardPointsAsync(Long loyaltyProgramId, String loya * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -2330,7 +2330,7 @@ public okhttp3.Call getLoyaltyCardPointsAsync(Long loyaltyProgramId, String loya 404 Not found - */ - public okhttp3.Call getLoyaltyCardTransactionsCall(Long loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyCardTransactionsCall(Integer loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -2386,7 +2386,7 @@ public okhttp3.Call getLoyaltyCardTransactionsCall(Long loyaltyProgramId, String } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyCardTransactionsValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLoyaltyCardTransactionsValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -2413,7 +2413,7 @@ private okhttp3.Call getLoyaltyCardTransactionsValidateBeforeCall(Long loyaltyPr * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @return InlineResponse2003 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2426,7 +2426,7 @@ private okhttp3.Call getLoyaltyCardTransactionsValidateBeforeCall(Long loyaltyPr 404 Not found - */ - public InlineResponse2003 getLoyaltyCardTransactions(Long loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip) throws ApiException { + public InlineResponse2003 getLoyaltyCardTransactions(Integer loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip) throws ApiException { ApiResponse localVarResp = getLoyaltyCardTransactionsWithHttpInfo(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip); return localVarResp.getData(); } @@ -2440,7 +2440,7 @@ public InlineResponse2003 getLoyaltyCardTransactions(Long loyaltyProgramId, Stri * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @return ApiResponse<InlineResponse2003> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2453,7 +2453,7 @@ public InlineResponse2003 getLoyaltyCardTransactions(Long loyaltyProgramId, Stri 404 Not found - */ - public ApiResponse getLoyaltyCardTransactionsWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip) throws ApiException { + public ApiResponse getLoyaltyCardTransactionsWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip) throws ApiException { okhttp3.Call localVarCall = getLoyaltyCardTransactionsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -2468,7 +2468,7 @@ public ApiResponse getLoyaltyCardTransactionsWithHttpInfo(Lo * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -2482,7 +2482,7 @@ public ApiResponse getLoyaltyCardTransactionsWithHttpInfo(Lo 404 Not found - */ - public okhttp3.Call getLoyaltyCardTransactionsAsync(Long loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyCardTransactionsAsync(Integer loyaltyProgramId, String loyaltyCardId, List subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoyaltyCardTransactionsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2495,7 +2495,7 @@ public okhttp3.Call getLoyaltyCardTransactionsAsync(Long loyaltyProgramId, Strin * @param integrationId The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. (required) * @param status Filter points based on their status. (optional, default to active) * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -2509,7 +2509,7 @@ public okhttp3.Call getLoyaltyCardTransactionsAsync(Long loyaltyProgramId, Strin 404 Not found - */ - public okhttp3.Call getLoyaltyProgramProfilePointsCall(Long loyaltyProgramId, String integrationId, String status, String subledgerId, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyProgramProfilePointsCall(Integer loyaltyProgramId, String integrationId, String status, String subledgerId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -2557,7 +2557,7 @@ public okhttp3.Call getLoyaltyProgramProfilePointsCall(Long loyaltyProgramId, St } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyProgramProfilePointsValidateBeforeCall(Long loyaltyProgramId, String integrationId, String status, String subledgerId, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLoyaltyProgramProfilePointsValidateBeforeCall(Integer loyaltyProgramId, String integrationId, String status, String subledgerId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -2582,7 +2582,7 @@ private okhttp3.Call getLoyaltyProgramProfilePointsValidateBeforeCall(Long loyal * @param integrationId The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. (required) * @param status Filter points based on their status. (optional, default to active) * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @return InlineResponse2006 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2595,7 +2595,7 @@ private okhttp3.Call getLoyaltyProgramProfilePointsValidateBeforeCall(Long loyal 404 Not found - */ - public InlineResponse2006 getLoyaltyProgramProfilePoints(Long loyaltyProgramId, String integrationId, String status, String subledgerId, Long pageSize, Long skip) throws ApiException { + public InlineResponse2006 getLoyaltyProgramProfilePoints(Integer loyaltyProgramId, String integrationId, String status, String subledgerId, Integer pageSize, Integer skip) throws ApiException { ApiResponse localVarResp = getLoyaltyProgramProfilePointsWithHttpInfo(loyaltyProgramId, integrationId, status, subledgerId, pageSize, skip); return localVarResp.getData(); } @@ -2607,7 +2607,7 @@ public InlineResponse2006 getLoyaltyProgramProfilePoints(Long loyaltyProgramId, * @param integrationId The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. (required) * @param status Filter points based on their status. (optional, default to active) * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @return ApiResponse<InlineResponse2006> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2620,7 +2620,7 @@ public InlineResponse2006 getLoyaltyProgramProfilePoints(Long loyaltyProgramId, 404 Not found - */ - public ApiResponse getLoyaltyProgramProfilePointsWithHttpInfo(Long loyaltyProgramId, String integrationId, String status, String subledgerId, Long pageSize, Long skip) throws ApiException { + public ApiResponse getLoyaltyProgramProfilePointsWithHttpInfo(Integer loyaltyProgramId, String integrationId, String status, String subledgerId, Integer pageSize, Integer skip) throws ApiException { okhttp3.Call localVarCall = getLoyaltyProgramProfilePointsValidateBeforeCall(loyaltyProgramId, integrationId, status, subledgerId, pageSize, skip, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -2633,7 +2633,7 @@ public ApiResponse getLoyaltyProgramProfilePointsWithHttpInf * @param integrationId The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. (required) * @param status Filter points based on their status. (optional, default to active) * @param subledgerId The ID of the subledger by which we filter the data. (optional) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -2647,7 +2647,7 @@ public ApiResponse getLoyaltyProgramProfilePointsWithHttpInf 404 Not found - */ - public okhttp3.Call getLoyaltyProgramProfilePointsAsync(Long loyaltyProgramId, String integrationId, String status, String subledgerId, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyProgramProfilePointsAsync(Integer loyaltyProgramId, String integrationId, String status, String subledgerId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoyaltyProgramProfilePointsValidateBeforeCall(loyaltyProgramId, integrationId, status, subledgerId, pageSize, skip, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2662,7 +2662,7 @@ public okhttp3.Call getLoyaltyProgramProfilePointsAsync(Long loyaltyProgramId, S * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -2676,7 +2676,7 @@ public okhttp3.Call getLoyaltyProgramProfilePointsAsync(Long loyaltyProgramId, S 404 Not found - */ - public okhttp3.Call getLoyaltyProgramProfileTransactionsCall(Long loyaltyProgramId, String integrationId, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyProgramProfileTransactionsCall(Integer loyaltyProgramId, String integrationId, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -2732,7 +2732,7 @@ public okhttp3.Call getLoyaltyProgramProfileTransactionsCall(Long loyaltyProgram } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyProgramProfileTransactionsValidateBeforeCall(Long loyaltyProgramId, String integrationId, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLoyaltyProgramProfileTransactionsValidateBeforeCall(Integer loyaltyProgramId, String integrationId, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -2759,7 +2759,7 @@ private okhttp3.Call getLoyaltyProgramProfileTransactionsValidateBeforeCall(Long * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @return InlineResponse2004 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2772,7 +2772,7 @@ private okhttp3.Call getLoyaltyProgramProfileTransactionsValidateBeforeCall(Long 404 Not found - */ - public InlineResponse2004 getLoyaltyProgramProfileTransactions(Long loyaltyProgramId, String integrationId, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip) throws ApiException { + public InlineResponse2004 getLoyaltyProgramProfileTransactions(Integer loyaltyProgramId, String integrationId, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip) throws ApiException { ApiResponse localVarResp = getLoyaltyProgramProfileTransactionsWithHttpInfo(loyaltyProgramId, integrationId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip); return localVarResp.getData(); } @@ -2786,7 +2786,7 @@ public InlineResponse2004 getLoyaltyProgramProfileTransactions(Long loyaltyProgr * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @return ApiResponse<InlineResponse2004> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -2799,7 +2799,7 @@ public InlineResponse2004 getLoyaltyProgramProfileTransactions(Long loyaltyProgr 404 Not found - */ - public ApiResponse getLoyaltyProgramProfileTransactionsWithHttpInfo(Long loyaltyProgramId, String integrationId, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip) throws ApiException { + public ApiResponse getLoyaltyProgramProfileTransactionsWithHttpInfo(Integer loyaltyProgramId, String integrationId, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip) throws ApiException { okhttp3.Call localVarCall = getLoyaltyProgramProfileTransactionsValidateBeforeCall(loyaltyProgramId, integrationId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -2814,7 +2814,7 @@ public ApiResponse getLoyaltyProgramProfileTransactionsWithH * @param loyaltyTransactionType Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -2828,7 +2828,7 @@ public ApiResponse getLoyaltyProgramProfileTransactionsWithH 404 Not found - */ - public okhttp3.Call getLoyaltyProgramProfileTransactionsAsync(Long loyaltyProgramId, String integrationId, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyProgramProfileTransactionsAsync(Integer loyaltyProgramId, String integrationId, String subledgerId, String loyaltyTransactionType, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoyaltyProgramProfileTransactionsValidateBeforeCall(loyaltyProgramId, integrationId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2975,7 +2975,7 @@ public okhttp3.Call getReservedCustomersAsync(String couponValue, final ApiCallb 404 Not found - */ - public okhttp3.Call linkLoyaltyCardToProfileCall(Long loyaltyProgramId, String loyaltyCardId, LoyaltyCardRegistration body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call linkLoyaltyCardToProfileCall(Integer loyaltyProgramId, String loyaltyCardId, LoyaltyCardRegistration body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -3007,7 +3007,7 @@ public okhttp3.Call linkLoyaltyCardToProfileCall(Long loyaltyProgramId, String l } @SuppressWarnings("rawtypes") - private okhttp3.Call linkLoyaltyCardToProfileValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, LoyaltyCardRegistration body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call linkLoyaltyCardToProfileValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, LoyaltyCardRegistration body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -3047,7 +3047,7 @@ private okhttp3.Call linkLoyaltyCardToProfileValidateBeforeCall(Long loyaltyProg 404 Not found - */ - public LoyaltyCard linkLoyaltyCardToProfile(Long loyaltyProgramId, String loyaltyCardId, LoyaltyCardRegistration body) throws ApiException { + public LoyaltyCard linkLoyaltyCardToProfile(Integer loyaltyProgramId, String loyaltyCardId, LoyaltyCardRegistration body) throws ApiException { ApiResponse localVarResp = linkLoyaltyCardToProfileWithHttpInfo(loyaltyProgramId, loyaltyCardId, body); return localVarResp.getData(); } @@ -3069,7 +3069,7 @@ public LoyaltyCard linkLoyaltyCardToProfile(Long loyaltyProgramId, String loyalt 404 Not found - */ - public ApiResponse linkLoyaltyCardToProfileWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, LoyaltyCardRegistration body) throws ApiException { + public ApiResponse linkLoyaltyCardToProfileWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, LoyaltyCardRegistration body) throws ApiException { okhttp3.Call localVarCall = linkLoyaltyCardToProfileValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -3093,7 +3093,7 @@ public ApiResponse linkLoyaltyCardToProfileWithHttpInfo(Long loyalt 404 Not found - */ - public okhttp3.Call linkLoyaltyCardToProfileAsync(Long loyaltyProgramId, String loyaltyCardId, LoyaltyCardRegistration body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call linkLoyaltyCardToProfileAsync(Integer loyaltyProgramId, String loyaltyCardId, LoyaltyCardRegistration body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = linkLoyaltyCardToProfileValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3371,7 +3371,7 @@ public okhttp3.Call returnCartItemsAsync(String customerSessionId, ReturnIntegra 404 Not found - */ - public okhttp3.Call syncCatalogCall(Long catalogId, CatalogSyncRequest body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call syncCatalogCall(Integer catalogId, CatalogSyncRequest body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -3402,7 +3402,7 @@ public okhttp3.Call syncCatalogCall(Long catalogId, CatalogSyncRequest body, fin } @SuppressWarnings("rawtypes") - private okhttp3.Call syncCatalogValidateBeforeCall(Long catalogId, CatalogSyncRequest body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call syncCatalogValidateBeforeCall(Integer catalogId, CatalogSyncRequest body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'catalogId' is set if (catalogId == null) { @@ -3436,7 +3436,7 @@ private okhttp3.Call syncCatalogValidateBeforeCall(Long catalogId, CatalogSyncRe 404 Not found - */ - public Catalog syncCatalog(Long catalogId, CatalogSyncRequest body) throws ApiException { + public Catalog syncCatalog(Integer catalogId, CatalogSyncRequest body) throws ApiException { ApiResponse localVarResp = syncCatalogWithHttpInfo(catalogId, body); return localVarResp.getData(); } @@ -3457,7 +3457,7 @@ public Catalog syncCatalog(Long catalogId, CatalogSyncRequest body) throws ApiEx 404 Not found - */ - public ApiResponse syncCatalogWithHttpInfo(Long catalogId, CatalogSyncRequest body) throws ApiException { + public ApiResponse syncCatalogWithHttpInfo(Integer catalogId, CatalogSyncRequest body) throws ApiException { okhttp3.Call localVarCall = syncCatalogValidateBeforeCall(catalogId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -3480,7 +3480,7 @@ public ApiResponse syncCatalogWithHttpInfo(Long catalogId, CatalogSyncR 404 Not found - */ - public okhttp3.Call syncCatalogAsync(Long catalogId, CatalogSyncRequest body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call syncCatalogAsync(Integer catalogId, CatalogSyncRequest body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = syncCatalogValidateBeforeCall(catalogId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -3562,7 +3562,7 @@ private okhttp3.Call trackEventV2ValidateBeforeCall(IntegrationEventV2Request bo /** * Track event - * Triggers a custom event. To use this endpoint: 1. Define a [custom event](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) in the Campaign Manager. 1. Update or create a rule to check for this event. 1. Trigger the event with this endpoint. After you have successfully sent an event to Talon.One, you can list the received events in the **Events** view in the Campaign Manager. Talon.One also offers a set of [built-in events](https://docs.talon.one/docs/dev/concepts/entities/events). Ensure you do not create a custom event when you can use a built-in event. For example, use this endpoint to trigger an event when a customer shares a link to a product. See the [tutorial](https://docs.talon.one/docs/product/tutorials/referrals/incentivizing-product-link-sharing). <div class=\"redoc-section\"> <p class=\"title\">Important</p> 1. `profileId` is required even though the schema does not say it. 1. If the customer profile ID is new, a new profile is automatically created but the `customer_profile_created` [built-in event ](https://docs.talon.one/docs/dev/concepts/entities/events) is **not** triggered. 1. We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> + * Triggers a custom event. To use this endpoint: 1. Define a [custom event](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) in the Campaign Manager. 1. Update or create a rule to check for this event. 1. Trigger the event with this endpoint. After you have successfully sent an event to Talon.One, you can list the received events in the **Events** view in the Campaign Manager. Talon.One also offers a set of [built-in events](https://docs.talon.one/docs/dev/concepts/entities/events). Ensure you do not create a custom event when you can use a built-in event. For example, use this endpoint to trigger an event when a customer shares a link to a product. See the [tutorial](https://docs.talon.one/docs/product/tutorials/referrals/incentivizing-product-link-sharing). <div class=\"redoc-section\"> <p class=\"title\">Important</p> 1. `profileId` is required even though the schema does not specify it. 1. If the customer profile ID is new, a new profile is automatically created but the `customer_profile_created` [built-in event ](https://docs.talon.one/docs/dev/concepts/entities/events) is **not** triggered. 1. We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). 1. [Archived campaigns](https://docs.talon.one/docs/product/campaigns/managing-campaigns#archiving-a-campaign) are not considered in rule evaluation. </div> * @param body body (required) * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. (optional) @@ -3585,7 +3585,7 @@ public TrackEventV2Response trackEventV2(IntegrationEventV2Request body, String /** * Track event - * Triggers a custom event. To use this endpoint: 1. Define a [custom event](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) in the Campaign Manager. 1. Update or create a rule to check for this event. 1. Trigger the event with this endpoint. After you have successfully sent an event to Talon.One, you can list the received events in the **Events** view in the Campaign Manager. Talon.One also offers a set of [built-in events](https://docs.talon.one/docs/dev/concepts/entities/events). Ensure you do not create a custom event when you can use a built-in event. For example, use this endpoint to trigger an event when a customer shares a link to a product. See the [tutorial](https://docs.talon.one/docs/product/tutorials/referrals/incentivizing-product-link-sharing). <div class=\"redoc-section\"> <p class=\"title\">Important</p> 1. `profileId` is required even though the schema does not say it. 1. If the customer profile ID is new, a new profile is automatically created but the `customer_profile_created` [built-in event ](https://docs.talon.one/docs/dev/concepts/entities/events) is **not** triggered. 1. We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> + * Triggers a custom event. To use this endpoint: 1. Define a [custom event](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) in the Campaign Manager. 1. Update or create a rule to check for this event. 1. Trigger the event with this endpoint. After you have successfully sent an event to Talon.One, you can list the received events in the **Events** view in the Campaign Manager. Talon.One also offers a set of [built-in events](https://docs.talon.one/docs/dev/concepts/entities/events). Ensure you do not create a custom event when you can use a built-in event. For example, use this endpoint to trigger an event when a customer shares a link to a product. See the [tutorial](https://docs.talon.one/docs/product/tutorials/referrals/incentivizing-product-link-sharing). <div class=\"redoc-section\"> <p class=\"title\">Important</p> 1. `profileId` is required even though the schema does not specify it. 1. If the customer profile ID is new, a new profile is automatically created but the `customer_profile_created` [built-in event ](https://docs.talon.one/docs/dev/concepts/entities/events) is **not** triggered. 1. We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). 1. [Archived campaigns](https://docs.talon.one/docs/product/campaigns/managing-campaigns#archiving-a-campaign) are not considered in rule evaluation. </div> * @param body body (required) * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. (optional) @@ -3609,7 +3609,7 @@ public ApiResponse trackEventV2WithHttpInfo(IntegrationEve /** * Track event (asynchronously) - * Triggers a custom event. To use this endpoint: 1. Define a [custom event](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) in the Campaign Manager. 1. Update or create a rule to check for this event. 1. Trigger the event with this endpoint. After you have successfully sent an event to Talon.One, you can list the received events in the **Events** view in the Campaign Manager. Talon.One also offers a set of [built-in events](https://docs.talon.one/docs/dev/concepts/entities/events). Ensure you do not create a custom event when you can use a built-in event. For example, use this endpoint to trigger an event when a customer shares a link to a product. See the [tutorial](https://docs.talon.one/docs/product/tutorials/referrals/incentivizing-product-link-sharing). <div class=\"redoc-section\"> <p class=\"title\">Important</p> 1. `profileId` is required even though the schema does not say it. 1. If the customer profile ID is new, a new profile is automatically created but the `customer_profile_created` [built-in event ](https://docs.talon.one/docs/dev/concepts/entities/events) is **not** triggered. 1. We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> + * Triggers a custom event. To use this endpoint: 1. Define a [custom event](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) in the Campaign Manager. 1. Update or create a rule to check for this event. 1. Trigger the event with this endpoint. After you have successfully sent an event to Talon.One, you can list the received events in the **Events** view in the Campaign Manager. Talon.One also offers a set of [built-in events](https://docs.talon.one/docs/dev/concepts/entities/events). Ensure you do not create a custom event when you can use a built-in event. For example, use this endpoint to trigger an event when a customer shares a link to a product. See the [tutorial](https://docs.talon.one/docs/product/tutorials/referrals/incentivizing-product-link-sharing). <div class=\"redoc-section\"> <p class=\"title\">Important</p> 1. `profileId` is required even though the schema does not specify it. 1. If the customer profile ID is new, a new profile is automatically created but the `customer_profile_created` [built-in event ](https://docs.talon.one/docs/dev/concepts/entities/events) is **not** triggered. 1. We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). 1. [Archived campaigns](https://docs.talon.one/docs/product/campaigns/managing-campaigns#archiving-a-campaign) are not considered in rule evaluation. </div> * @param body body (required) * @param silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. (optional, default to "yes") * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. (optional) @@ -3648,7 +3648,7 @@ public okhttp3.Call trackEventV2Async(IntegrationEventV2Request body, String sil 404 Not found - */ - public okhttp3.Call updateAudienceCustomersAttributesCall(Long audienceId, Object body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAudienceCustomersAttributesCall(Integer audienceId, Object body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -3679,7 +3679,7 @@ public okhttp3.Call updateAudienceCustomersAttributesCall(Long audienceId, Objec } @SuppressWarnings("rawtypes") - private okhttp3.Call updateAudienceCustomersAttributesValidateBeforeCall(Long audienceId, Object body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateAudienceCustomersAttributesValidateBeforeCall(Integer audienceId, Object body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'audienceId' is set if (audienceId == null) { @@ -3711,7 +3711,7 @@ private okhttp3.Call updateAudienceCustomersAttributesValidateBeforeCall(Long au 404 Not found - */ - public void updateAudienceCustomersAttributes(Long audienceId, Object body) throws ApiException { + public void updateAudienceCustomersAttributes(Integer audienceId, Object body) throws ApiException { updateAudienceCustomersAttributesWithHttpInfo(audienceId, body); } @@ -3730,7 +3730,7 @@ public void updateAudienceCustomersAttributes(Long audienceId, Object body) thro 404 Not found - */ - public ApiResponse updateAudienceCustomersAttributesWithHttpInfo(Long audienceId, Object body) throws ApiException { + public ApiResponse updateAudienceCustomersAttributesWithHttpInfo(Integer audienceId, Object body) throws ApiException { okhttp3.Call localVarCall = updateAudienceCustomersAttributesValidateBeforeCall(audienceId, body, null); return localVarApiClient.execute(localVarCall); } @@ -3751,7 +3751,7 @@ public ApiResponse updateAudienceCustomersAttributesWithHttpInfo(Long audi 404 Not found - */ - public okhttp3.Call updateAudienceCustomersAttributesAsync(Long audienceId, Object body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAudienceCustomersAttributesAsync(Integer audienceId, Object body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateAudienceCustomersAttributesValidateBeforeCall(audienceId, body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -3772,7 +3772,7 @@ public okhttp3.Call updateAudienceCustomersAttributesAsync(Long audienceId, Obje 404 Not found - */ - public okhttp3.Call updateAudienceV2Call(Long audienceId, UpdateAudience body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAudienceV2Call(Integer audienceId, UpdateAudience body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -3803,7 +3803,7 @@ public okhttp3.Call updateAudienceV2Call(Long audienceId, UpdateAudience body, f } @SuppressWarnings("rawtypes") - private okhttp3.Call updateAudienceV2ValidateBeforeCall(Long audienceId, UpdateAudience body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateAudienceV2ValidateBeforeCall(Integer audienceId, UpdateAudience body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'audienceId' is set if (audienceId == null) { @@ -3836,7 +3836,7 @@ private okhttp3.Call updateAudienceV2ValidateBeforeCall(Long audienceId, UpdateA 404 Not found - */ - public Audience updateAudienceV2(Long audienceId, UpdateAudience body) throws ApiException { + public Audience updateAudienceV2(Integer audienceId, UpdateAudience body) throws ApiException { ApiResponse localVarResp = updateAudienceV2WithHttpInfo(audienceId, body); return localVarResp.getData(); } @@ -3856,7 +3856,7 @@ public Audience updateAudienceV2(Long audienceId, UpdateAudience body) throws Ap 404 Not found - */ - public ApiResponse updateAudienceV2WithHttpInfo(Long audienceId, UpdateAudience body) throws ApiException { + public ApiResponse updateAudienceV2WithHttpInfo(Integer audienceId, UpdateAudience body) throws ApiException { okhttp3.Call localVarCall = updateAudienceV2ValidateBeforeCall(audienceId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -3878,7 +3878,7 @@ public ApiResponse updateAudienceV2WithHttpInfo(Long audienceId, Updat 404 Not found - */ - public okhttp3.Call updateAudienceV2Async(Long audienceId, UpdateAudience body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAudienceV2Async(Integer audienceId, UpdateAudience body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateAudienceV2ValidateBeforeCall(audienceId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4080,7 +4080,7 @@ private okhttp3.Call updateCustomerProfileV2ValidateBeforeCall(String integratio /** * Update customer profile - * Update or create a [Customer Profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles). This endpoint triggers the Rule Builder. You can use this endpoint to: - Set attributes on the given customer profile. Ensure you create the attributes in the Campaign Manager, first. - Modify the audience the customer profile is a member of. <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer profile returns a response with the requested integration state. - You can use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> + * Update or create a [Customer Profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles). This endpoint triggers the Rule Builder. You can use this endpoint to: - Set attributes on the given customer profile. Ensure you create the attributes in the Campaign Manager, first. - Modify the audience the customer profile is a member of. **Note:** [Archived campaigns](https://docs.talon.one/docs/product/campaigns/managing-campaigns#archiving-a-campaign) are not considered in rule evaluation when `runRuleEngine` is `true`. <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer profile returns a response with the requested integration state. - You can use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> * @param integrationId The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. (required) * @param body body (required) * @param runRuleEngine Indicates whether to run the Rule Engine. If `true`, the response includes: - The effects generated by the triggered campaigns are returned in the `effects` property. - The created coupons and referral objects. If `false`: - The rules are not executed and the `effects` property is always empty. - The response time improves. - You cannot use `responseContent` in the body. (optional, default to false) @@ -4103,7 +4103,7 @@ public CustomerProfileIntegrationResponseV2 updateCustomerProfileV2(String integ /** * Update customer profile - * Update or create a [Customer Profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles). This endpoint triggers the Rule Builder. You can use this endpoint to: - Set attributes on the given customer profile. Ensure you create the attributes in the Campaign Manager, first. - Modify the audience the customer profile is a member of. <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer profile returns a response with the requested integration state. - You can use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> + * Update or create a [Customer Profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles). This endpoint triggers the Rule Builder. You can use this endpoint to: - Set attributes on the given customer profile. Ensure you create the attributes in the Campaign Manager, first. - Modify the audience the customer profile is a member of. **Note:** [Archived campaigns](https://docs.talon.one/docs/product/campaigns/managing-campaigns#archiving-a-campaign) are not considered in rule evaluation when `runRuleEngine` is `true`. <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer profile returns a response with the requested integration state. - You can use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> * @param integrationId The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. (required) * @param body body (required) * @param runRuleEngine Indicates whether to run the Rule Engine. If `true`, the response includes: - The effects generated by the triggered campaigns are returned in the `effects` property. - The created coupons and referral objects. If `false`: - The rules are not executed and the `effects` property is always empty. - The response time improves. - You cannot use `responseContent` in the body. (optional, default to false) @@ -4127,7 +4127,7 @@ public ApiResponse updateCustomerProfileV2 /** * Update customer profile (asynchronously) - * Update or create a [Customer Profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles). This endpoint triggers the Rule Builder. You can use this endpoint to: - Set attributes on the given customer profile. Ensure you create the attributes in the Campaign Manager, first. - Modify the audience the customer profile is a member of. <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer profile returns a response with the requested integration state. - You can use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> + * Update or create a [Customer Profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles). This endpoint triggers the Rule Builder. You can use this endpoint to: - Set attributes on the given customer profile. Ensure you create the attributes in the Campaign Manager, first. - Modify the audience the customer profile is a member of. **Note:** [Archived campaigns](https://docs.talon.one/docs/product/campaigns/managing-campaigns#archiving-a-campaign) are not considered in rule evaluation when `runRuleEngine` is `true`. <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer profile returns a response with the requested integration state. - You can use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> * @param integrationId The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. (required) * @param body body (required) * @param runRuleEngine Indicates whether to run the Rule Engine. If `true`, the response includes: - The effects generated by the triggered campaigns are returned in the `effects` property. - The created coupons and referral objects. If `false`: - The rules are not executed and the `effects` property is always empty. - The response time improves. - You cannot use `responseContent` in the body. (optional, default to false) @@ -4354,7 +4354,7 @@ private okhttp3.Call updateCustomerSessionV2ValidateBeforeCall(String customerSe /** * Update customer session - * Update or create a [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). The endpoint responds with the potential promotion rule [effects](https://docs.talon.one/docs/dev/integration-api/api-effects) that match the current cart. For example, use this endpoint to share the contents of a customer's cart with Talon.One. **Note:** The currency for the session and the cart items in the session is the currency set for the Application that owns this session. ### Session management To use this endpoint, start by learning about [customer sessions](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions) and their states and refer to the `state` parameter documentation the request body schema docs below. ### Sessions and customer profiles - To link a session to a customer profile, set the `profileId` parameter in the request body to a customer profile's `integrationId`. - While you can create an anonymous session with `profileId=\"\"`, we recommend you use a guest ID instead. - A profile can be linked to simultaneous sessions in different Applications. Either: - Use unique session integration IDs or, - Use the same session integration ID across all of the Applications. **Note:** If the specified profile does not exist, an empty profile is **created automatically**. You can update it with [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2). <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer session returns a response with the new integration state. Use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> For more information, see: - The introductory video in [Getting started](https://docs.talon.one/docs/dev/getting-started/overview). - The [integration tutorial](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one). + * Update or create a [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). The endpoint responds with the potential promotion rule [effects](https://docs.talon.one/docs/dev/integration-api/api-effects) that match the current cart. For example, use this endpoint to share the contents of a customer's cart with Talon.One. **Note:** - The currency for the session and the cart items in it is the currency set for the Application linked to this session. - [Archived campaigns](https://docs.talon.one/docs/product/campaigns/managing-campaigns#archiving-a-campaign) are not considered for rule evaluation. ### Session management To use this endpoint, start by learning about [customer sessions](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions) and their states and refer to the `state` parameter documentation the request body schema docs below. ### Sessions and customer profiles - To link a session to a customer profile, set the `profileId` parameter in the request body to a customer profile's `integrationId`. - While you can create an anonymous session with `profileId=\"\"`, we recommend you use a guest ID instead. - A profile can be linked to simultaneous sessions in different Applications. Either: - Use unique session integration IDs or, - Use the same session integration ID across all of the Applications. **Note:** If the specified profile does not exist, an empty profile is **created automatically**. You can update it with [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2). <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer session returns a response with the new integration state. Use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> For more information, see: - The introductory video in [Getting started](https://docs.talon.one/docs/dev/getting-started/overview). - The [integration tutorial](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one). * @param customerSessionId The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. (required) * @param body body (required) * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`: - The endpoint considers **only** the payload that you pass when **closing** the session. When you do not use the `dry` parameter, the endpoint behaves as a typical PUT endpoint. Each update builds upon the previous ones. - You can use the `evaluableCampaignIds` body property to select specific campaigns to run. [See the docs](https://docs.talon.one/docs/dev/integration-api/dry-requests). (optional) @@ -4377,7 +4377,7 @@ public IntegrationStateV2 updateCustomerSessionV2(String customerSessionId, Inte /** * Update customer session - * Update or create a [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). The endpoint responds with the potential promotion rule [effects](https://docs.talon.one/docs/dev/integration-api/api-effects) that match the current cart. For example, use this endpoint to share the contents of a customer's cart with Talon.One. **Note:** The currency for the session and the cart items in the session is the currency set for the Application that owns this session. ### Session management To use this endpoint, start by learning about [customer sessions](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions) and their states and refer to the `state` parameter documentation the request body schema docs below. ### Sessions and customer profiles - To link a session to a customer profile, set the `profileId` parameter in the request body to a customer profile's `integrationId`. - While you can create an anonymous session with `profileId=\"\"`, we recommend you use a guest ID instead. - A profile can be linked to simultaneous sessions in different Applications. Either: - Use unique session integration IDs or, - Use the same session integration ID across all of the Applications. **Note:** If the specified profile does not exist, an empty profile is **created automatically**. You can update it with [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2). <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer session returns a response with the new integration state. Use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> For more information, see: - The introductory video in [Getting started](https://docs.talon.one/docs/dev/getting-started/overview). - The [integration tutorial](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one). + * Update or create a [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). The endpoint responds with the potential promotion rule [effects](https://docs.talon.one/docs/dev/integration-api/api-effects) that match the current cart. For example, use this endpoint to share the contents of a customer's cart with Talon.One. **Note:** - The currency for the session and the cart items in it is the currency set for the Application linked to this session. - [Archived campaigns](https://docs.talon.one/docs/product/campaigns/managing-campaigns#archiving-a-campaign) are not considered for rule evaluation. ### Session management To use this endpoint, start by learning about [customer sessions](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions) and their states and refer to the `state` parameter documentation the request body schema docs below. ### Sessions and customer profiles - To link a session to a customer profile, set the `profileId` parameter in the request body to a customer profile's `integrationId`. - While you can create an anonymous session with `profileId=\"\"`, we recommend you use a guest ID instead. - A profile can be linked to simultaneous sessions in different Applications. Either: - Use unique session integration IDs or, - Use the same session integration ID across all of the Applications. **Note:** If the specified profile does not exist, an empty profile is **created automatically**. You can update it with [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2). <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer session returns a response with the new integration state. Use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> For more information, see: - The introductory video in [Getting started](https://docs.talon.one/docs/dev/getting-started/overview). - The [integration tutorial](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one). * @param customerSessionId The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. (required) * @param body body (required) * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`: - The endpoint considers **only** the payload that you pass when **closing** the session. When you do not use the `dry` parameter, the endpoint behaves as a typical PUT endpoint. Each update builds upon the previous ones. - You can use the `evaluableCampaignIds` body property to select specific campaigns to run. [See the docs](https://docs.talon.one/docs/dev/integration-api/dry-requests). (optional) @@ -4401,7 +4401,7 @@ public ApiResponse updateCustomerSessionV2WithHttpInfo(Strin /** * Update customer session (asynchronously) - * Update or create a [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). The endpoint responds with the potential promotion rule [effects](https://docs.talon.one/docs/dev/integration-api/api-effects) that match the current cart. For example, use this endpoint to share the contents of a customer's cart with Talon.One. **Note:** The currency for the session and the cart items in the session is the currency set for the Application that owns this session. ### Session management To use this endpoint, start by learning about [customer sessions](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions) and their states and refer to the `state` parameter documentation the request body schema docs below. ### Sessions and customer profiles - To link a session to a customer profile, set the `profileId` parameter in the request body to a customer profile's `integrationId`. - While you can create an anonymous session with `profileId=\"\"`, we recommend you use a guest ID instead. - A profile can be linked to simultaneous sessions in different Applications. Either: - Use unique session integration IDs or, - Use the same session integration ID across all of the Applications. **Note:** If the specified profile does not exist, an empty profile is **created automatically**. You can update it with [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2). <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer session returns a response with the new integration state. Use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> For more information, see: - The introductory video in [Getting started](https://docs.talon.one/docs/dev/getting-started/overview). - The [integration tutorial](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one). + * Update or create a [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). The endpoint responds with the potential promotion rule [effects](https://docs.talon.one/docs/dev/integration-api/api-effects) that match the current cart. For example, use this endpoint to share the contents of a customer's cart with Talon.One. **Note:** - The currency for the session and the cart items in it is the currency set for the Application linked to this session. - [Archived campaigns](https://docs.talon.one/docs/product/campaigns/managing-campaigns#archiving-a-campaign) are not considered for rule evaluation. ### Session management To use this endpoint, start by learning about [customer sessions](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions) and their states and refer to the `state` parameter documentation the request body schema docs below. ### Sessions and customer profiles - To link a session to a customer profile, set the `profileId` parameter in the request body to a customer profile's `integrationId`. - While you can create an anonymous session with `profileId=\"\"`, we recommend you use a guest ID instead. - A profile can be linked to simultaneous sessions in different Applications. Either: - Use unique session integration IDs or, - Use the same session integration ID across all of the Applications. **Note:** If the specified profile does not exist, an empty profile is **created automatically**. You can update it with [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2). <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer session returns a response with the new integration state. Use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> For more information, see: - The introductory video in [Getting started](https://docs.talon.one/docs/dev/getting-started/overview). - The [integration tutorial](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one). * @param customerSessionId The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. (required) * @param body body (required) * @param dry Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`: - The endpoint considers **only** the payload that you pass when **closing** the session. When you do not use the `dry` parameter, the endpoint behaves as a typical PUT endpoint. Each update builds upon the previous ones. - You can use the `evaluableCampaignIds` body property to select specific campaigns to run. [See the docs](https://docs.talon.one/docs/dev/integration-api/dry-requests). (optional) diff --git a/src/main/java/one/talon/api/ManagementApi.java b/src/main/java/one/talon/api/ManagementApi.java index 2083a158..db5581e7 100644 --- a/src/main/java/one/talon/api/ManagementApi.java +++ b/src/main/java/one/talon/api/ManagementApi.java @@ -97,6 +97,8 @@ import one.talon.model.InlineResponse20047; import one.talon.model.InlineResponse20048; import one.talon.model.InlineResponse20049; +import one.talon.model.InlineResponse20050; +import one.talon.model.InlineResponse20051; import one.talon.model.InlineResponse2007; import one.talon.model.InlineResponse2008; import one.talon.model.InlineResponse2009; @@ -112,6 +114,7 @@ import one.talon.model.NewAdditionalCost; import one.talon.model.NewAttribute; import one.talon.model.NewCampaignCollection; +import one.talon.model.NewCampaignStoreBudget; import one.talon.model.NewCollection; import one.talon.model.NewCouponCreationJob; import one.talon.model.NewCouponDeletionJob; @@ -128,6 +131,9 @@ import one.talon.model.RoleV2; import one.talon.model.RoleV2Base; import one.talon.model.Ruleset; +import one.talon.model.ScimBaseGroup; +import one.talon.model.ScimGroup; +import one.talon.model.ScimGroupsListResponse; import one.talon.model.ScimNewUser; import one.talon.model.ScimPatchRequest; import one.talon.model.ScimResourceTypesListResponse; @@ -298,7 +304,7 @@ public okhttp3.Call activateUserByEmailAsync(DeleteUserRequest body, final ApiCa 404 Not found - */ - public okhttp3.Call addLoyaltyCardPointsCall(Long loyaltyProgramId, String loyaltyCardId, AddLoyaltyPoints body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addLoyaltyCardPointsCall(Integer loyaltyProgramId, String loyaltyCardId, AddLoyaltyPoints body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -330,7 +336,7 @@ public okhttp3.Call addLoyaltyCardPointsCall(Long loyaltyProgramId, String loyal } @SuppressWarnings("rawtypes") - private okhttp3.Call addLoyaltyCardPointsValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, AddLoyaltyPoints body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addLoyaltyCardPointsValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, AddLoyaltyPoints body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -369,7 +375,7 @@ private okhttp3.Call addLoyaltyCardPointsValidateBeforeCall(Long loyaltyProgramI 404 Not found - */ - public void addLoyaltyCardPoints(Long loyaltyProgramId, String loyaltyCardId, AddLoyaltyPoints body) throws ApiException { + public void addLoyaltyCardPoints(Integer loyaltyProgramId, String loyaltyCardId, AddLoyaltyPoints body) throws ApiException { addLoyaltyCardPointsWithHttpInfo(loyaltyProgramId, loyaltyCardId, body); } @@ -390,7 +396,7 @@ public void addLoyaltyCardPoints(Long loyaltyProgramId, String loyaltyCardId, Ad 404 Not found - */ - public ApiResponse addLoyaltyCardPointsWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, AddLoyaltyPoints body) throws ApiException { + public ApiResponse addLoyaltyCardPointsWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, AddLoyaltyPoints body) throws ApiException { okhttp3.Call localVarCall = addLoyaltyCardPointsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, null); return localVarApiClient.execute(localVarCall); } @@ -413,7 +419,7 @@ public ApiResponse addLoyaltyCardPointsWithHttpInfo(Long loyaltyProgramId, 404 Not found - */ - public okhttp3.Call addLoyaltyCardPointsAsync(Long loyaltyProgramId, String loyaltyCardId, AddLoyaltyPoints body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addLoyaltyCardPointsAsync(Integer loyaltyProgramId, String loyaltyCardId, AddLoyaltyPoints body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addLoyaltyCardPointsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -571,7 +577,7 @@ public okhttp3.Call addLoyaltyPointsAsync(String loyaltyProgramId, String integr 200 OK - */ - public okhttp3.Call copyCampaignToApplicationsCall(Long applicationId, Long campaignId, CampaignCopy body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call copyCampaignToApplicationsCall(Integer applicationId, Integer campaignId, CampaignCopy body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -603,7 +609,7 @@ public okhttp3.Call copyCampaignToApplicationsCall(Long applicationId, Long camp } @SuppressWarnings("rawtypes") - private okhttp3.Call copyCampaignToApplicationsValidateBeforeCall(Long applicationId, Long campaignId, CampaignCopy body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call copyCampaignToApplicationsValidateBeforeCall(Integer applicationId, Integer campaignId, CampaignCopy body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -640,7 +646,7 @@ private okhttp3.Call copyCampaignToApplicationsValidateBeforeCall(Long applicati 200 OK - */ - public InlineResponse2008 copyCampaignToApplications(Long applicationId, Long campaignId, CampaignCopy body) throws ApiException { + public InlineResponse2008 copyCampaignToApplications(Integer applicationId, Integer campaignId, CampaignCopy body) throws ApiException { ApiResponse localVarResp = copyCampaignToApplicationsWithHttpInfo(applicationId, campaignId, body); return localVarResp.getData(); } @@ -659,7 +665,7 @@ public InlineResponse2008 copyCampaignToApplications(Long applicationId, Long ca 200 OK - */ - public ApiResponse copyCampaignToApplicationsWithHttpInfo(Long applicationId, Long campaignId, CampaignCopy body) throws ApiException { + public ApiResponse copyCampaignToApplicationsWithHttpInfo(Integer applicationId, Integer campaignId, CampaignCopy body) throws ApiException { okhttp3.Call localVarCall = copyCampaignToApplicationsValidateBeforeCall(applicationId, campaignId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -680,7 +686,7 @@ public ApiResponse copyCampaignToApplicationsWithHttpInfo(Lo 200 OK - */ - public okhttp3.Call copyCampaignToApplicationsAsync(Long applicationId, Long campaignId, CampaignCopy body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call copyCampaignToApplicationsAsync(Integer applicationId, Integer campaignId, CampaignCopy body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = copyCampaignToApplicationsValidateBeforeCall(applicationId, campaignId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -826,7 +832,7 @@ public okhttp3.Call createAccountCollectionAsync(NewCollection body, final ApiCa 409 Conflict. An achievement with this name or title already exists. - */ - public okhttp3.Call createAchievementCall(Long applicationId, Long campaignId, CreateAchievement body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createAchievementCall(Integer applicationId, Integer campaignId, CreateAchievement body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -858,7 +864,7 @@ public okhttp3.Call createAchievementCall(Long applicationId, Long campaignId, C } @SuppressWarnings("rawtypes") - private okhttp3.Call createAchievementValidateBeforeCall(Long applicationId, Long campaignId, CreateAchievement body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createAchievementValidateBeforeCall(Integer applicationId, Integer campaignId, CreateAchievement body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -898,7 +904,7 @@ private okhttp3.Call createAchievementValidateBeforeCall(Long applicationId, Lon 409 Conflict. An achievement with this name or title already exists. - */ - public Achievement createAchievement(Long applicationId, Long campaignId, CreateAchievement body) throws ApiException { + public Achievement createAchievement(Integer applicationId, Integer campaignId, CreateAchievement body) throws ApiException { ApiResponse localVarResp = createAchievementWithHttpInfo(applicationId, campaignId, body); return localVarResp.getData(); } @@ -920,7 +926,7 @@ public Achievement createAchievement(Long applicationId, Long campaignId, Create 409 Conflict. An achievement with this name or title already exists. - */ - public ApiResponse createAchievementWithHttpInfo(Long applicationId, Long campaignId, CreateAchievement body) throws ApiException { + public ApiResponse createAchievementWithHttpInfo(Integer applicationId, Integer campaignId, CreateAchievement body) throws ApiException { okhttp3.Call localVarCall = createAchievementValidateBeforeCall(applicationId, campaignId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -944,7 +950,7 @@ public ApiResponse createAchievementWithHttpInfo(Long applicationId 409 Conflict. An achievement with this name or title already exists. - */ - public okhttp3.Call createAchievementAsync(Long applicationId, Long campaignId, CreateAchievement body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createAchievementAsync(Integer applicationId, Integer campaignId, CreateAchievement body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createAchievementValidateBeforeCall(applicationId, campaignId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1187,7 +1193,7 @@ public okhttp3.Call createAttributeAsync(NewAttribute body, final ApiCallback 404 Not found - */ - public okhttp3.Call createBatchLoyaltyCardsCall(Long loyaltyProgramId, LoyaltyCardBatch body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createBatchLoyaltyCardsCall(Integer loyaltyProgramId, LoyaltyCardBatch body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -1218,7 +1224,7 @@ public okhttp3.Call createBatchLoyaltyCardsCall(Long loyaltyProgramId, LoyaltyCa } @SuppressWarnings("rawtypes") - private okhttp3.Call createBatchLoyaltyCardsValidateBeforeCall(Long loyaltyProgramId, LoyaltyCardBatch body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createBatchLoyaltyCardsValidateBeforeCall(Integer loyaltyProgramId, LoyaltyCardBatch body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -1252,7 +1258,7 @@ private okhttp3.Call createBatchLoyaltyCardsValidateBeforeCall(Long loyaltyProgr 404 Not found - */ - public LoyaltyCardBatchResponse createBatchLoyaltyCards(Long loyaltyProgramId, LoyaltyCardBatch body) throws ApiException { + public LoyaltyCardBatchResponse createBatchLoyaltyCards(Integer loyaltyProgramId, LoyaltyCardBatch body) throws ApiException { ApiResponse localVarResp = createBatchLoyaltyCardsWithHttpInfo(loyaltyProgramId, body); return localVarResp.getData(); } @@ -1273,7 +1279,7 @@ public LoyaltyCardBatchResponse createBatchLoyaltyCards(Long loyaltyProgramId, L 404 Not found - */ - public ApiResponse createBatchLoyaltyCardsWithHttpInfo(Long loyaltyProgramId, LoyaltyCardBatch body) throws ApiException { + public ApiResponse createBatchLoyaltyCardsWithHttpInfo(Integer loyaltyProgramId, LoyaltyCardBatch body) throws ApiException { okhttp3.Call localVarCall = createBatchLoyaltyCardsValidateBeforeCall(loyaltyProgramId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1296,7 +1302,7 @@ public ApiResponse createBatchLoyaltyCardsWithHttpInfo 404 Not found - */ - public okhttp3.Call createBatchLoyaltyCardsAsync(Long loyaltyProgramId, LoyaltyCardBatch body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createBatchLoyaltyCardsAsync(Integer loyaltyProgramId, LoyaltyCardBatch body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createBatchLoyaltyCardsValidateBeforeCall(loyaltyProgramId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1316,7 +1322,7 @@ public okhttp3.Call createBatchLoyaltyCardsAsync(Long loyaltyProgramId, LoyaltyC 201 Created - */ - public okhttp3.Call createCampaignFromTemplateCall(Long applicationId, CreateTemplateCampaign body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createCampaignFromTemplateCall(Integer applicationId, CreateTemplateCampaign body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -1347,7 +1353,7 @@ public okhttp3.Call createCampaignFromTemplateCall(Long applicationId, CreateTem } @SuppressWarnings("rawtypes") - private okhttp3.Call createCampaignFromTemplateValidateBeforeCall(Long applicationId, CreateTemplateCampaign body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCampaignFromTemplateValidateBeforeCall(Integer applicationId, CreateTemplateCampaign body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -1378,7 +1384,7 @@ private okhttp3.Call createCampaignFromTemplateValidateBeforeCall(Long applicati 201 Created - */ - public CreateTemplateCampaignResponse createCampaignFromTemplate(Long applicationId, CreateTemplateCampaign body) throws ApiException { + public CreateTemplateCampaignResponse createCampaignFromTemplate(Integer applicationId, CreateTemplateCampaign body) throws ApiException { ApiResponse localVarResp = createCampaignFromTemplateWithHttpInfo(applicationId, body); return localVarResp.getData(); } @@ -1396,7 +1402,7 @@ public CreateTemplateCampaignResponse createCampaignFromTemplate(Long applicatio 201 Created - */ - public ApiResponse createCampaignFromTemplateWithHttpInfo(Long applicationId, CreateTemplateCampaign body) throws ApiException { + public ApiResponse createCampaignFromTemplateWithHttpInfo(Integer applicationId, CreateTemplateCampaign body) throws ApiException { okhttp3.Call localVarCall = createCampaignFromTemplateValidateBeforeCall(applicationId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1416,13 +1422,147 @@ public ApiResponse createCampaignFromTemplateWit 201 Created - */ - public okhttp3.Call createCampaignFromTemplateAsync(Long applicationId, CreateTemplateCampaign body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createCampaignFromTemplateAsync(Integer applicationId, CreateTemplateCampaign body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createCampaignFromTemplateValidateBeforeCall(applicationId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for createCampaignStoreBudget + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param body body (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 Created -
400 Bad request -
409 Conflict -
+ */ + public okhttp3.Call createCampaignStoreBudgetCall(Integer applicationId, Integer campaignId, NewCampaignStoreBudget body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/stores/budgets" + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "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" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createCampaignStoreBudgetValidateBeforeCall(Integer applicationId, Integer campaignId, NewCampaignStoreBudget body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'applicationId' is set + if (applicationId == null) { + throw new ApiException("Missing the required parameter 'applicationId' when calling createCampaignStoreBudget(Async)"); + } + + // verify the required parameter 'campaignId' is set + if (campaignId == null) { + throw new ApiException("Missing the required parameter 'campaignId' when calling createCampaignStoreBudget(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createCampaignStoreBudget(Async)"); + } + + + okhttp3.Call localVarCall = createCampaignStoreBudgetCall(applicationId, campaignId, body, _callback); + return localVarCall; + + } + + /** + * Create campaign store budget + * Create a new store budget for a given campaign. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param body body (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
201 Created -
400 Bad request -
409 Conflict -
+ */ + public void createCampaignStoreBudget(Integer applicationId, Integer campaignId, NewCampaignStoreBudget body) throws ApiException { + createCampaignStoreBudgetWithHttpInfo(applicationId, campaignId, body); + } + + /** + * Create campaign store budget + * Create a new store budget for a given campaign. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param body body (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
201 Created -
400 Bad request -
409 Conflict -
+ */ + public ApiResponse createCampaignStoreBudgetWithHttpInfo(Integer applicationId, Integer campaignId, NewCampaignStoreBudget body) throws ApiException { + okhttp3.Call localVarCall = createCampaignStoreBudgetValidateBeforeCall(applicationId, campaignId, body, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Create campaign store budget (asynchronously) + * Create a new store budget for a given campaign. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param body body (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 Created -
400 Bad request -
409 Conflict -
+ */ + public okhttp3.Call createCampaignStoreBudgetAsync(Integer applicationId, Integer campaignId, NewCampaignStoreBudget body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createCampaignStoreBudgetValidateBeforeCall(applicationId, campaignId, body, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } /** * Build call for createCollection * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) @@ -1437,7 +1577,7 @@ public okhttp3.Call createCampaignFromTemplateAsync(Long applicationId, CreateTe 201 Created - */ - public okhttp3.Call createCollectionCall(Long applicationId, Long campaignId, NewCampaignCollection body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createCollectionCall(Integer applicationId, Integer campaignId, NewCampaignCollection body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -1469,7 +1609,7 @@ public okhttp3.Call createCollectionCall(Long applicationId, Long campaignId, Ne } @SuppressWarnings("rawtypes") - private okhttp3.Call createCollectionValidateBeforeCall(Long applicationId, Long campaignId, NewCampaignCollection body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCollectionValidateBeforeCall(Integer applicationId, Integer campaignId, NewCampaignCollection body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -1506,7 +1646,7 @@ private okhttp3.Call createCollectionValidateBeforeCall(Long applicationId, Long 201 Created - */ - public Collection createCollection(Long applicationId, Long campaignId, NewCampaignCollection body) throws ApiException { + public Collection createCollection(Integer applicationId, Integer campaignId, NewCampaignCollection body) throws ApiException { ApiResponse localVarResp = createCollectionWithHttpInfo(applicationId, campaignId, body); return localVarResp.getData(); } @@ -1525,7 +1665,7 @@ public Collection createCollection(Long applicationId, Long campaignId, NewCampa 201 Created - */ - public ApiResponse createCollectionWithHttpInfo(Long applicationId, Long campaignId, NewCampaignCollection body) throws ApiException { + public ApiResponse createCollectionWithHttpInfo(Integer applicationId, Integer campaignId, NewCampaignCollection body) throws ApiException { okhttp3.Call localVarCall = createCollectionValidateBeforeCall(applicationId, campaignId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1546,7 +1686,7 @@ public ApiResponse createCollectionWithHttpInfo(Long applicationId, 201 Created - */ - public okhttp3.Call createCollectionAsync(Long applicationId, Long campaignId, NewCampaignCollection body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createCollectionAsync(Integer applicationId, Integer campaignId, NewCampaignCollection body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createCollectionValidateBeforeCall(applicationId, campaignId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1569,7 +1709,7 @@ public okhttp3.Call createCollectionAsync(Long applicationId, Long campaignId, N 204 No Content - */ - public okhttp3.Call createCouponsCall(Long applicationId, Long campaignId, NewCoupons body, String silent, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createCouponsCall(Integer applicationId, Integer campaignId, NewCoupons body, String silent, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -1605,7 +1745,7 @@ public okhttp3.Call createCouponsCall(Long applicationId, Long campaignId, NewCo } @SuppressWarnings("rawtypes") - private okhttp3.Call createCouponsValidateBeforeCall(Long applicationId, Long campaignId, NewCoupons body, String silent, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCouponsValidateBeforeCall(Integer applicationId, Integer campaignId, NewCoupons body, String silent, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -1644,7 +1784,7 @@ private okhttp3.Call createCouponsValidateBeforeCall(Long applicationId, Long ca 204 No Content - */ - public InlineResponse20010 createCoupons(Long applicationId, Long campaignId, NewCoupons body, String silent) throws ApiException { + public InlineResponse20010 createCoupons(Integer applicationId, Integer campaignId, NewCoupons body, String silent) throws ApiException { ApiResponse localVarResp = createCouponsWithHttpInfo(applicationId, campaignId, body, silent); return localVarResp.getData(); } @@ -1665,7 +1805,7 @@ public InlineResponse20010 createCoupons(Long applicationId, Long campaignId, Ne 204 No Content - */ - public ApiResponse createCouponsWithHttpInfo(Long applicationId, Long campaignId, NewCoupons body, String silent) throws ApiException { + public ApiResponse createCouponsWithHttpInfo(Integer applicationId, Integer campaignId, NewCoupons body, String silent) throws ApiException { okhttp3.Call localVarCall = createCouponsValidateBeforeCall(applicationId, campaignId, body, silent, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1688,7 +1828,7 @@ public ApiResponse createCouponsWithHttpInfo(Long applicati 204 No Content - */ - public okhttp3.Call createCouponsAsync(Long applicationId, Long campaignId, NewCoupons body, String silent, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createCouponsAsync(Integer applicationId, Integer campaignId, NewCoupons body, String silent, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createCouponsValidateBeforeCall(applicationId, campaignId, body, silent, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1709,7 +1849,7 @@ public okhttp3.Call createCouponsAsync(Long applicationId, Long campaignId, NewC 200 OK - */ - public okhttp3.Call createCouponsAsyncCall(Long applicationId, Long campaignId, NewCouponCreationJob body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createCouponsAsyncCall(Integer applicationId, Integer campaignId, NewCouponCreationJob body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -1741,7 +1881,7 @@ public okhttp3.Call createCouponsAsyncCall(Long applicationId, Long campaignId, } @SuppressWarnings("rawtypes") - private okhttp3.Call createCouponsAsyncValidateBeforeCall(Long applicationId, Long campaignId, NewCouponCreationJob body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCouponsAsyncValidateBeforeCall(Integer applicationId, Integer campaignId, NewCouponCreationJob body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -1778,7 +1918,7 @@ private okhttp3.Call createCouponsAsyncValidateBeforeCall(Long applicationId, Lo 200 OK - */ - public AsyncCouponCreationResponse createCouponsAsync(Long applicationId, Long campaignId, NewCouponCreationJob body) throws ApiException { + public AsyncCouponCreationResponse createCouponsAsync(Integer applicationId, Integer campaignId, NewCouponCreationJob body) throws ApiException { ApiResponse localVarResp = createCouponsAsyncWithHttpInfo(applicationId, campaignId, body); return localVarResp.getData(); } @@ -1797,7 +1937,7 @@ public AsyncCouponCreationResponse createCouponsAsync(Long applicationId, Long c 200 OK - */ - public ApiResponse createCouponsAsyncWithHttpInfo(Long applicationId, Long campaignId, NewCouponCreationJob body) throws ApiException { + public ApiResponse createCouponsAsyncWithHttpInfo(Integer applicationId, Integer campaignId, NewCouponCreationJob body) throws ApiException { okhttp3.Call localVarCall = createCouponsAsyncValidateBeforeCall(applicationId, campaignId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1818,7 +1958,7 @@ public ApiResponse createCouponsAsyncWithHttpInfo(L 200 OK - */ - public okhttp3.Call createCouponsAsyncAsync(Long applicationId, Long campaignId, NewCouponCreationJob body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createCouponsAsyncAsync(Integer applicationId, Integer campaignId, NewCouponCreationJob body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createCouponsAsyncValidateBeforeCall(applicationId, campaignId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1839,7 +1979,7 @@ public okhttp3.Call createCouponsAsyncAsync(Long applicationId, Long campaignId, 202 The deletion request has been accepted and will be processed asynchronously - */ - public okhttp3.Call createCouponsDeletionJobCall(Long applicationId, Long campaignId, NewCouponDeletionJob body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createCouponsDeletionJobCall(Integer applicationId, Integer campaignId, NewCouponDeletionJob body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -1871,7 +2011,7 @@ public okhttp3.Call createCouponsDeletionJobCall(Long applicationId, Long campai } @SuppressWarnings("rawtypes") - private okhttp3.Call createCouponsDeletionJobValidateBeforeCall(Long applicationId, Long campaignId, NewCouponDeletionJob body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCouponsDeletionJobValidateBeforeCall(Integer applicationId, Integer campaignId, NewCouponDeletionJob body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -1908,7 +2048,7 @@ private okhttp3.Call createCouponsDeletionJobValidateBeforeCall(Long application 202 The deletion request has been accepted and will be processed asynchronously - */ - public AsyncCouponDeletionJobResponse createCouponsDeletionJob(Long applicationId, Long campaignId, NewCouponDeletionJob body) throws ApiException { + public AsyncCouponDeletionJobResponse createCouponsDeletionJob(Integer applicationId, Integer campaignId, NewCouponDeletionJob body) throws ApiException { ApiResponse localVarResp = createCouponsDeletionJobWithHttpInfo(applicationId, campaignId, body); return localVarResp.getData(); } @@ -1927,7 +2067,7 @@ public AsyncCouponDeletionJobResponse createCouponsDeletionJob(Long applicationI 202 The deletion request has been accepted and will be processed asynchronously - */ - public ApiResponse createCouponsDeletionJobWithHttpInfo(Long applicationId, Long campaignId, NewCouponDeletionJob body) throws ApiException { + public ApiResponse createCouponsDeletionJobWithHttpInfo(Integer applicationId, Integer campaignId, NewCouponDeletionJob body) throws ApiException { okhttp3.Call localVarCall = createCouponsDeletionJobValidateBeforeCall(applicationId, campaignId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -1948,7 +2088,7 @@ public ApiResponse createCouponsDeletionJobWithH 202 The deletion request has been accepted and will be processed asynchronously - */ - public okhttp3.Call createCouponsDeletionJobAsync(Long applicationId, Long campaignId, NewCouponDeletionJob body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createCouponsDeletionJobAsync(Integer applicationId, Integer campaignId, NewCouponDeletionJob body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createCouponsDeletionJobValidateBeforeCall(applicationId, campaignId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1971,7 +2111,7 @@ public okhttp3.Call createCouponsDeletionJobAsync(Long applicationId, Long campa 204 No Content - */ - public okhttp3.Call createCouponsForMultipleRecipientsCall(Long applicationId, Long campaignId, NewCouponsForMultipleRecipients body, String silent, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createCouponsForMultipleRecipientsCall(Integer applicationId, Integer campaignId, NewCouponsForMultipleRecipients body, String silent, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -2007,7 +2147,7 @@ public okhttp3.Call createCouponsForMultipleRecipientsCall(Long applicationId, L } @SuppressWarnings("rawtypes") - private okhttp3.Call createCouponsForMultipleRecipientsValidateBeforeCall(Long applicationId, Long campaignId, NewCouponsForMultipleRecipients body, String silent, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCouponsForMultipleRecipientsValidateBeforeCall(Integer applicationId, Integer campaignId, NewCouponsForMultipleRecipients body, String silent, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -2046,7 +2186,7 @@ private okhttp3.Call createCouponsForMultipleRecipientsValidateBeforeCall(Long a 204 No Content - */ - public InlineResponse20010 createCouponsForMultipleRecipients(Long applicationId, Long campaignId, NewCouponsForMultipleRecipients body, String silent) throws ApiException { + public InlineResponse20010 createCouponsForMultipleRecipients(Integer applicationId, Integer campaignId, NewCouponsForMultipleRecipients body, String silent) throws ApiException { ApiResponse localVarResp = createCouponsForMultipleRecipientsWithHttpInfo(applicationId, campaignId, body, silent); return localVarResp.getData(); } @@ -2067,7 +2207,7 @@ public InlineResponse20010 createCouponsForMultipleRecipients(Long applicationId 204 No Content - */ - public ApiResponse createCouponsForMultipleRecipientsWithHttpInfo(Long applicationId, Long campaignId, NewCouponsForMultipleRecipients body, String silent) throws ApiException { + public ApiResponse createCouponsForMultipleRecipientsWithHttpInfo(Integer applicationId, Integer campaignId, NewCouponsForMultipleRecipients body, String silent) throws ApiException { okhttp3.Call localVarCall = createCouponsForMultipleRecipientsValidateBeforeCall(applicationId, campaignId, body, silent, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -2090,7 +2230,7 @@ public ApiResponse createCouponsForMultipleRecipientsWithHt 204 No Content - */ - public okhttp3.Call createCouponsForMultipleRecipientsAsync(Long applicationId, Long campaignId, NewCouponsForMultipleRecipients body, String silent, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createCouponsForMultipleRecipientsAsync(Integer applicationId, Integer campaignId, NewCouponsForMultipleRecipients body, String silent, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createCouponsForMultipleRecipientsValidateBeforeCall(applicationId, campaignId, body, silent, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2552,7 +2692,7 @@ public okhttp3.Call createSessionAsync(LoginParams body, final ApiCallback 409 Conflict. A store with this integration ID already exists for this application. - */ - public okhttp3.Call createStoreCall(Long applicationId, NewStore body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createStoreCall(Integer applicationId, NewStore body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -2583,7 +2723,7 @@ public okhttp3.Call createStoreCall(Long applicationId, NewStore body, final Api } @SuppressWarnings("rawtypes") - private okhttp3.Call createStoreValidateBeforeCall(Long applicationId, NewStore body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createStoreValidateBeforeCall(Integer applicationId, NewStore body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -2616,7 +2756,7 @@ private okhttp3.Call createStoreValidateBeforeCall(Long applicationId, NewStore 409 Conflict. A store with this integration ID already exists for this application. - */ - public Store createStore(Long applicationId, NewStore body) throws ApiException { + public Store createStore(Integer applicationId, NewStore body) throws ApiException { ApiResponse localVarResp = createStoreWithHttpInfo(applicationId, body); return localVarResp.getData(); } @@ -2636,7 +2776,7 @@ public Store createStore(Long applicationId, NewStore body) throws ApiException 409 Conflict. A store with this integration ID already exists for this application. - */ - public ApiResponse createStoreWithHttpInfo(Long applicationId, NewStore body) throws ApiException { + public ApiResponse createStoreWithHttpInfo(Integer applicationId, NewStore body) throws ApiException { okhttp3.Call localVarCall = createStoreValidateBeforeCall(applicationId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -2658,7 +2798,7 @@ public ApiResponse createStoreWithHttpInfo(Long applicationId, NewStore b 409 Conflict. A store with this integration ID already exists for this application. - */ - public okhttp3.Call createStoreAsync(Long applicationId, NewStore body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createStoreAsync(Integer applicationId, NewStore body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createStoreValidateBeforeCall(applicationId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2788,7 +2928,7 @@ public okhttp3.Call deactivateUserByEmailAsync(DeleteUserRequest body, final Api 404 Not found - */ - public okhttp3.Call deductLoyaltyCardPointsCall(Long loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deductLoyaltyCardPointsCall(Integer loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -2820,7 +2960,7 @@ public okhttp3.Call deductLoyaltyCardPointsCall(Long loyaltyProgramId, String lo } @SuppressWarnings("rawtypes") - private okhttp3.Call deductLoyaltyCardPointsValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deductLoyaltyCardPointsValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -2859,7 +2999,7 @@ private okhttp3.Call deductLoyaltyCardPointsValidateBeforeCall(Long loyaltyProgr 404 Not found - */ - public void deductLoyaltyCardPoints(Long loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body) throws ApiException { + public void deductLoyaltyCardPoints(Integer loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body) throws ApiException { deductLoyaltyCardPointsWithHttpInfo(loyaltyProgramId, loyaltyCardId, body); } @@ -2880,7 +3020,7 @@ public void deductLoyaltyCardPoints(Long loyaltyProgramId, String loyaltyCardId, 404 Not found - */ - public ApiResponse deductLoyaltyCardPointsWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body) throws ApiException { + public ApiResponse deductLoyaltyCardPointsWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body) throws ApiException { okhttp3.Call localVarCall = deductLoyaltyCardPointsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, null); return localVarApiClient.execute(localVarCall); } @@ -2903,7 +3043,7 @@ public ApiResponse deductLoyaltyCardPointsWithHttpInfo(Long loyaltyProgram 404 Not found - */ - public okhttp3.Call deductLoyaltyCardPointsAsync(Long loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deductLoyaltyCardPointsAsync(Integer loyaltyProgramId, String loyaltyCardId, DeductLoyaltyPoints body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deductLoyaltyCardPointsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -2922,7 +3062,7 @@ public okhttp3.Call deductLoyaltyCardPointsAsync(Long loyaltyProgramId, String l 404 Not found - */ - public okhttp3.Call deleteAccountCollectionCall(Long collectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAccountCollectionCall(Integer collectionId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -2953,7 +3093,7 @@ public okhttp3.Call deleteAccountCollectionCall(Long collectionId, final ApiCall } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteAccountCollectionValidateBeforeCall(Long collectionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteAccountCollectionValidateBeforeCall(Integer collectionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'collectionId' is set if (collectionId == null) { @@ -2978,7 +3118,7 @@ private okhttp3.Call deleteAccountCollectionValidateBeforeCall(Long collectionId 404 Not found - */ - public void deleteAccountCollection(Long collectionId) throws ApiException { + public void deleteAccountCollection(Integer collectionId) throws ApiException { deleteAccountCollectionWithHttpInfo(collectionId); } @@ -2995,7 +3135,7 @@ public void deleteAccountCollection(Long collectionId) throws ApiException { 404 Not found - */ - public ApiResponse deleteAccountCollectionWithHttpInfo(Long collectionId) throws ApiException { + public ApiResponse deleteAccountCollectionWithHttpInfo(Integer collectionId) throws ApiException { okhttp3.Call localVarCall = deleteAccountCollectionValidateBeforeCall(collectionId, null); return localVarApiClient.execute(localVarCall); } @@ -3014,7 +3154,7 @@ public ApiResponse deleteAccountCollectionWithHttpInfo(Long collectionId) 404 Not found - */ - public okhttp3.Call deleteAccountCollectionAsync(Long collectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAccountCollectionAsync(Integer collectionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteAccountCollectionValidateBeforeCall(collectionId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -3036,7 +3176,7 @@ public okhttp3.Call deleteAccountCollectionAsync(Long collectionId, final ApiCal 404 Not found - */ - public okhttp3.Call deleteAchievementCall(Long applicationId, Long campaignId, Long achievementId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAchievementCall(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -3069,7 +3209,7 @@ public okhttp3.Call deleteAchievementCall(Long applicationId, Long campaignId, L } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteAchievementValidateBeforeCall(Long applicationId, Long campaignId, Long achievementId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteAchievementValidateBeforeCall(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -3107,7 +3247,7 @@ private okhttp3.Call deleteAchievementValidateBeforeCall(Long applicationId, Lon 404 Not found - */ - public void deleteAchievement(Long applicationId, Long campaignId, Long achievementId) throws ApiException { + public void deleteAchievement(Integer applicationId, Integer campaignId, Integer achievementId) throws ApiException { deleteAchievementWithHttpInfo(applicationId, campaignId, achievementId); } @@ -3127,7 +3267,7 @@ public void deleteAchievement(Long applicationId, Long campaignId, Long achievem 404 Not found - */ - public ApiResponse deleteAchievementWithHttpInfo(Long applicationId, Long campaignId, Long achievementId) throws ApiException { + public ApiResponse deleteAchievementWithHttpInfo(Integer applicationId, Integer campaignId, Integer achievementId) throws ApiException { okhttp3.Call localVarCall = deleteAchievementValidateBeforeCall(applicationId, campaignId, achievementId, null); return localVarApiClient.execute(localVarCall); } @@ -3149,7 +3289,7 @@ public ApiResponse deleteAchievementWithHttpInfo(Long applicationId, Long 404 Not found - */ - public okhttp3.Call deleteAchievementAsync(Long applicationId, Long campaignId, Long achievementId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAchievementAsync(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteAchievementValidateBeforeCall(applicationId, campaignId, achievementId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -3168,7 +3308,7 @@ public okhttp3.Call deleteAchievementAsync(Long applicationId, Long campaignId, 204 No Content - */ - public okhttp3.Call deleteCampaignCall(Long applicationId, Long campaignId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCampaignCall(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -3200,7 +3340,7 @@ public okhttp3.Call deleteCampaignCall(Long applicationId, Long campaignId, fina } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCampaignValidateBeforeCall(Long applicationId, Long campaignId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCampaignValidateBeforeCall(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -3230,7 +3370,7 @@ private okhttp3.Call deleteCampaignValidateBeforeCall(Long applicationId, Long c 204 No Content - */ - public void deleteCampaign(Long applicationId, Long campaignId) throws ApiException { + public void deleteCampaign(Integer applicationId, Integer campaignId) throws ApiException { deleteCampaignWithHttpInfo(applicationId, campaignId); } @@ -3247,7 +3387,7 @@ public void deleteCampaign(Long applicationId, Long campaignId) throws ApiExcept 204 No Content - */ - public ApiResponse deleteCampaignWithHttpInfo(Long applicationId, Long campaignId) throws ApiException { + public ApiResponse deleteCampaignWithHttpInfo(Integer applicationId, Integer campaignId) throws ApiException { okhttp3.Call localVarCall = deleteCampaignValidateBeforeCall(applicationId, campaignId, null); return localVarApiClient.execute(localVarCall); } @@ -3266,12 +3406,149 @@ public ApiResponse deleteCampaignWithHttpInfo(Long applicationId, Long cam 204 No Content - */ - public okhttp3.Call deleteCampaignAsync(Long applicationId, Long campaignId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCampaignAsync(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCampaignValidateBeforeCall(applicationId, campaignId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** + * Build call for deleteCampaignStoreBudgets + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param action The action that this budget is limiting. (optional) + * @param period The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. (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 Deleted -
400 Bad request -
+ */ + public okhttp3.Call deleteCampaignStoreBudgetsCall(Integer applicationId, Integer campaignId, String action, String period, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/stores/budgets" + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (action != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("action", action)); + } + + if (period != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("period", period)); + } + + 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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCampaignStoreBudgetsValidateBeforeCall(Integer applicationId, Integer campaignId, String action, String period, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'applicationId' is set + if (applicationId == null) { + throw new ApiException("Missing the required parameter 'applicationId' when calling deleteCampaignStoreBudgets(Async)"); + } + + // verify the required parameter 'campaignId' is set + if (campaignId == null) { + throw new ApiException("Missing the required parameter 'campaignId' when calling deleteCampaignStoreBudgets(Async)"); + } + + + okhttp3.Call localVarCall = deleteCampaignStoreBudgetsCall(applicationId, campaignId, action, period, _callback); + return localVarCall; + + } + + /** + * Delete campaign store budgets + * Delete the store budgets for a given campaign. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param action The action that this budget is limiting. (optional) + * @param period The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. (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 Deleted -
400 Bad request -
+ */ + public void deleteCampaignStoreBudgets(Integer applicationId, Integer campaignId, String action, String period) throws ApiException { + deleteCampaignStoreBudgetsWithHttpInfo(applicationId, campaignId, action, period); + } + + /** + * Delete campaign store budgets + * Delete the store budgets for a given campaign. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param action The action that this budget is limiting. (optional) + * @param period The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. (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 Deleted -
400 Bad request -
+ */ + public ApiResponse deleteCampaignStoreBudgetsWithHttpInfo(Integer applicationId, Integer campaignId, String action, String period) throws ApiException { + okhttp3.Call localVarCall = deleteCampaignStoreBudgetsValidateBeforeCall(applicationId, campaignId, action, period, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete campaign store budgets (asynchronously) + * Delete the store budgets for a given campaign. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param action The action that this budget is limiting. (optional) + * @param period The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. (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 Deleted -
400 Bad request -
+ */ + public okhttp3.Call deleteCampaignStoreBudgetsAsync(Integer applicationId, Integer campaignId, String action, String period, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCampaignStoreBudgetsValidateBeforeCall(applicationId, campaignId, action, period, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } /** * Build call for deleteCollection * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) @@ -3287,7 +3564,7 @@ public okhttp3.Call deleteCampaignAsync(Long applicationId, Long campaignId, fin 401 Unauthorized - */ - public okhttp3.Call deleteCollectionCall(Long applicationId, Long campaignId, Long collectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionCall(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -3320,7 +3597,7 @@ public okhttp3.Call deleteCollectionCall(Long applicationId, Long campaignId, Lo } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionValidateBeforeCall(Long applicationId, Long campaignId, Long collectionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionValidateBeforeCall(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -3357,7 +3634,7 @@ private okhttp3.Call deleteCollectionValidateBeforeCall(Long applicationId, Long 401 Unauthorized - */ - public void deleteCollection(Long applicationId, Long campaignId, Long collectionId) throws ApiException { + public void deleteCollection(Integer applicationId, Integer campaignId, Integer collectionId) throws ApiException { deleteCollectionWithHttpInfo(applicationId, campaignId, collectionId); } @@ -3376,7 +3653,7 @@ public void deleteCollection(Long applicationId, Long campaignId, Long collectio 401 Unauthorized - */ - public ApiResponse deleteCollectionWithHttpInfo(Long applicationId, Long campaignId, Long collectionId) throws ApiException { + public ApiResponse deleteCollectionWithHttpInfo(Integer applicationId, Integer campaignId, Integer collectionId) throws ApiException { okhttp3.Call localVarCall = deleteCollectionValidateBeforeCall(applicationId, campaignId, collectionId, null); return localVarApiClient.execute(localVarCall); } @@ -3397,7 +3674,7 @@ public ApiResponse deleteCollectionWithHttpInfo(Long applicationId, Long c 401 Unauthorized - */ - public okhttp3.Call deleteCollectionAsync(Long applicationId, Long campaignId, Long collectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionAsync(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCollectionValidateBeforeCall(applicationId, campaignId, collectionId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -3417,7 +3694,7 @@ public okhttp3.Call deleteCollectionAsync(Long applicationId, Long campaignId, L 204 No Content - */ - public okhttp3.Call deleteCouponCall(Long applicationId, Long campaignId, String couponId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCouponCall(Integer applicationId, Integer campaignId, String couponId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -3450,7 +3727,7 @@ public okhttp3.Call deleteCouponCall(Long applicationId, Long campaignId, String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCouponValidateBeforeCall(Long applicationId, Long campaignId, String couponId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCouponValidateBeforeCall(Integer applicationId, Integer campaignId, String couponId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -3486,7 +3763,7 @@ private okhttp3.Call deleteCouponValidateBeforeCall(Long applicationId, Long cam 204 No Content - */ - public void deleteCoupon(Long applicationId, Long campaignId, String couponId) throws ApiException { + public void deleteCoupon(Integer applicationId, Integer campaignId, String couponId) throws ApiException { deleteCouponWithHttpInfo(applicationId, campaignId, couponId); } @@ -3504,7 +3781,7 @@ public void deleteCoupon(Long applicationId, Long campaignId, String couponId) t 204 No Content - */ - public ApiResponse deleteCouponWithHttpInfo(Long applicationId, Long campaignId, String couponId) throws ApiException { + public ApiResponse deleteCouponWithHttpInfo(Integer applicationId, Integer campaignId, String couponId) throws ApiException { okhttp3.Call localVarCall = deleteCouponValidateBeforeCall(applicationId, campaignId, couponId, null); return localVarApiClient.execute(localVarCall); } @@ -3524,7 +3801,7 @@ public ApiResponse deleteCouponWithHttpInfo(Long applicationId, Long campa 204 No Content - */ - public okhttp3.Call deleteCouponAsync(Long applicationId, Long campaignId, String couponId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCouponAsync(Integer applicationId, Integer campaignId, String couponId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCouponValidateBeforeCall(applicationId, campaignId, couponId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -3556,7 +3833,7 @@ public okhttp3.Call deleteCouponAsync(Long applicationId, Long campaignId, Strin 204 No Content - */ - public okhttp3.Call deleteCouponsCall(Long applicationId, Long campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Long referralId, String recipientIntegrationId, Boolean exactMatch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCouponsCall(Integer applicationId, Integer campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -3640,7 +3917,7 @@ public okhttp3.Call deleteCouponsCall(Long applicationId, Long campaignId, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCouponsValidateBeforeCall(Long applicationId, Long campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Long referralId, String recipientIntegrationId, Boolean exactMatch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCouponsValidateBeforeCall(Integer applicationId, Integer campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -3683,7 +3960,7 @@ private okhttp3.Call deleteCouponsValidateBeforeCall(Long applicationId, Long ca 204 No Content - */ - public void deleteCoupons(Long applicationId, Long campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Long referralId, String recipientIntegrationId, Boolean exactMatch) throws ApiException { + public void deleteCoupons(Integer applicationId, Integer campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch) throws ApiException { deleteCouponsWithHttpInfo(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch); } @@ -3713,7 +3990,7 @@ public void deleteCoupons(Long applicationId, Long campaignId, String value, Off 204 No Content - */ - public ApiResponse deleteCouponsWithHttpInfo(Long applicationId, Long campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Long referralId, String recipientIntegrationId, Boolean exactMatch) throws ApiException { + public ApiResponse deleteCouponsWithHttpInfo(Integer applicationId, Integer campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch) throws ApiException { okhttp3.Call localVarCall = deleteCouponsValidateBeforeCall(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch, null); return localVarApiClient.execute(localVarCall); } @@ -3745,7 +4022,7 @@ public ApiResponse deleteCouponsWithHttpInfo(Long applicationId, Long camp 204 No Content - */ - public okhttp3.Call deleteCouponsAsync(Long applicationId, Long campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Long referralId, String recipientIntegrationId, Boolean exactMatch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCouponsAsync(Integer applicationId, Integer campaignId, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, OffsetDateTime startsAfter, OffsetDateTime startsBefore, OffsetDateTime expiresAfter, OffsetDateTime expiresBefore, String valid, String batchId, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteCouponsValidateBeforeCall(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -3766,7 +4043,7 @@ public okhttp3.Call deleteCouponsAsync(Long applicationId, Long campaignId, Stri 404 Not found - */ - public okhttp3.Call deleteLoyaltyCardCall(Long loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteLoyaltyCardCall(Integer loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -3798,7 +4075,7 @@ public okhttp3.Call deleteLoyaltyCardCall(Long loyaltyProgramId, String loyaltyC } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteLoyaltyCardValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteLoyaltyCardValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -3830,7 +4107,7 @@ private okhttp3.Call deleteLoyaltyCardValidateBeforeCall(Long loyaltyProgramId, 404 Not found - */ - public void deleteLoyaltyCard(Long loyaltyProgramId, String loyaltyCardId) throws ApiException { + public void deleteLoyaltyCard(Integer loyaltyProgramId, String loyaltyCardId) throws ApiException { deleteLoyaltyCardWithHttpInfo(loyaltyProgramId, loyaltyCardId); } @@ -3849,7 +4126,7 @@ public void deleteLoyaltyCard(Long loyaltyProgramId, String loyaltyCardId) throw 404 Not found - */ - public ApiResponse deleteLoyaltyCardWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId) throws ApiException { + public ApiResponse deleteLoyaltyCardWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId) throws ApiException { okhttp3.Call localVarCall = deleteLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, null); return localVarApiClient.execute(localVarCall); } @@ -3870,7 +4147,7 @@ public ApiResponse deleteLoyaltyCardWithHttpInfo(Long loyaltyProgramId, St 404 Not found - */ - public okhttp3.Call deleteLoyaltyCardAsync(Long loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteLoyaltyCardAsync(Integer loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -3890,7 +4167,7 @@ public okhttp3.Call deleteLoyaltyCardAsync(Long loyaltyProgramId, String loyalty 204 No Content - */ - public okhttp3.Call deleteReferralCall(Long applicationId, Long campaignId, String referralId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteReferralCall(Integer applicationId, Integer campaignId, String referralId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -3923,7 +4200,7 @@ public okhttp3.Call deleteReferralCall(Long applicationId, Long campaignId, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteReferralValidateBeforeCall(Long applicationId, Long campaignId, String referralId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteReferralValidateBeforeCall(Integer applicationId, Integer campaignId, String referralId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -3959,7 +4236,7 @@ private okhttp3.Call deleteReferralValidateBeforeCall(Long applicationId, Long c 204 No Content - */ - public void deleteReferral(Long applicationId, Long campaignId, String referralId) throws ApiException { + public void deleteReferral(Integer applicationId, Integer campaignId, String referralId) throws ApiException { deleteReferralWithHttpInfo(applicationId, campaignId, referralId); } @@ -3977,7 +4254,7 @@ public void deleteReferral(Long applicationId, Long campaignId, String referralI 204 No Content - */ - public ApiResponse deleteReferralWithHttpInfo(Long applicationId, Long campaignId, String referralId) throws ApiException { + public ApiResponse deleteReferralWithHttpInfo(Integer applicationId, Integer campaignId, String referralId) throws ApiException { okhttp3.Call localVarCall = deleteReferralValidateBeforeCall(applicationId, campaignId, referralId, null); return localVarApiClient.execute(localVarCall); } @@ -3997,7 +4274,7 @@ public ApiResponse deleteReferralWithHttpInfo(Long applicationId, Long cam 204 No Content - */ - public okhttp3.Call deleteReferralAsync(Long applicationId, Long campaignId, String referralId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteReferralAsync(Integer applicationId, Integer campaignId, String referralId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteReferralValidateBeforeCall(applicationId, campaignId, referralId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -4017,7 +4294,7 @@ public okhttp3.Call deleteReferralAsync(Long applicationId, Long campaignId, Str 404 Not found - */ - public okhttp3.Call deleteStoreCall(Long applicationId, String storeId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteStoreCall(Integer applicationId, String storeId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -4049,7 +4326,7 @@ public okhttp3.Call deleteStoreCall(Long applicationId, String storeId, final Ap } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteStoreValidateBeforeCall(Long applicationId, String storeId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteStoreValidateBeforeCall(Integer applicationId, String storeId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -4080,7 +4357,7 @@ private okhttp3.Call deleteStoreValidateBeforeCall(Long applicationId, String st 404 Not found - */ - public void deleteStore(Long applicationId, String storeId) throws ApiException { + public void deleteStore(Integer applicationId, String storeId) throws ApiException { deleteStoreWithHttpInfo(applicationId, storeId); } @@ -4098,7 +4375,7 @@ public void deleteStore(Long applicationId, String storeId) throws ApiException 404 Not found - */ - public ApiResponse deleteStoreWithHttpInfo(Long applicationId, String storeId) throws ApiException { + public ApiResponse deleteStoreWithHttpInfo(Integer applicationId, String storeId) throws ApiException { okhttp3.Call localVarCall = deleteStoreValidateBeforeCall(applicationId, storeId, null); return localVarApiClient.execute(localVarCall); } @@ -4118,7 +4395,7 @@ public ApiResponse deleteStoreWithHttpInfo(Long applicationId, String stor 404 Not found - */ - public okhttp3.Call deleteStoreAsync(Long applicationId, String storeId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteStoreAsync(Integer applicationId, String storeId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteStoreValidateBeforeCall(applicationId, storeId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -4136,7 +4413,7 @@ public okhttp3.Call deleteStoreAsync(Long applicationId, String storeId, final A 204 No Content - */ - public okhttp3.Call deleteUserCall(Long userId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUserCall(Integer userId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -4167,7 +4444,7 @@ public okhttp3.Call deleteUserCall(Long userId, final ApiCallback _callback) thr } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteUserValidateBeforeCall(Long userId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteUserValidateBeforeCall(Integer userId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userId' is set if (userId == null) { @@ -4191,7 +4468,7 @@ private okhttp3.Call deleteUserValidateBeforeCall(Long userId, final ApiCallback 204 No Content - */ - public void deleteUser(Long userId) throws ApiException { + public void deleteUser(Integer userId) throws ApiException { deleteUserWithHttpInfo(userId); } @@ -4207,7 +4484,7 @@ public void deleteUser(Long userId) throws ApiException { 204 No Content - */ - public ApiResponse deleteUserWithHttpInfo(Long userId) throws ApiException { + public ApiResponse deleteUserWithHttpInfo(Integer userId) throws ApiException { okhttp3.Call localVarCall = deleteUserValidateBeforeCall(userId, null); return localVarApiClient.execute(localVarCall); } @@ -4225,7 +4502,7 @@ public ApiResponse deleteUserWithHttpInfo(Long userId) throws ApiException 204 No Content - */ - public okhttp3.Call deleteUserAsync(Long userId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteUserAsync(Integer userId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteUserValidateBeforeCall(userId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -4450,7 +4727,7 @@ public okhttp3.Call destroySessionAsync(final ApiCallback _callback) throw 404 Not found - */ - public okhttp3.Call disconnectCampaignStoresCall(Long applicationId, Long campaignId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call disconnectCampaignStoresCall(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -4482,7 +4759,7 @@ public okhttp3.Call disconnectCampaignStoresCall(Long applicationId, Long campai } @SuppressWarnings("rawtypes") - private okhttp3.Call disconnectCampaignStoresValidateBeforeCall(Long applicationId, Long campaignId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call disconnectCampaignStoresValidateBeforeCall(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -4515,7 +4792,7 @@ private okhttp3.Call disconnectCampaignStoresValidateBeforeCall(Long application 404 Not found - */ - public void disconnectCampaignStores(Long applicationId, Long campaignId) throws ApiException { + public void disconnectCampaignStores(Integer applicationId, Integer campaignId) throws ApiException { disconnectCampaignStoresWithHttpInfo(applicationId, campaignId); } @@ -4535,7 +4812,7 @@ public void disconnectCampaignStores(Long applicationId, Long campaignId) throws 404 Not found - */ - public ApiResponse disconnectCampaignStoresWithHttpInfo(Long applicationId, Long campaignId) throws ApiException { + public ApiResponse disconnectCampaignStoresWithHttpInfo(Integer applicationId, Integer campaignId) throws ApiException { okhttp3.Call localVarCall = disconnectCampaignStoresValidateBeforeCall(applicationId, campaignId, null); return localVarApiClient.execute(localVarCall); } @@ -4557,7 +4834,7 @@ public ApiResponse disconnectCampaignStoresWithHttpInfo(Long applicationId 404 Not found - */ - public okhttp3.Call disconnectCampaignStoresAsync(Long applicationId, Long campaignId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call disconnectCampaignStoresAsync(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = disconnectCampaignStoresValidateBeforeCall(applicationId, campaignId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -4577,7 +4854,7 @@ public okhttp3.Call disconnectCampaignStoresAsync(Long applicationId, Long campa 404 Not found - */ - public okhttp3.Call exportAccountCollectionItemsCall(Long collectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportAccountCollectionItemsCall(Integer collectionId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -4608,7 +4885,7 @@ public okhttp3.Call exportAccountCollectionItemsCall(Long collectionId, final Ap } @SuppressWarnings("rawtypes") - private okhttp3.Call exportAccountCollectionItemsValidateBeforeCall(Long collectionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call exportAccountCollectionItemsValidateBeforeCall(Integer collectionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'collectionId' is set if (collectionId == null) { @@ -4635,7 +4912,7 @@ private okhttp3.Call exportAccountCollectionItemsValidateBeforeCall(Long collect 404 Not found - */ - public String exportAccountCollectionItems(Long collectionId) throws ApiException { + public String exportAccountCollectionItems(Integer collectionId) throws ApiException { ApiResponse localVarResp = exportAccountCollectionItemsWithHttpInfo(collectionId); return localVarResp.getData(); } @@ -4654,7 +4931,7 @@ public String exportAccountCollectionItems(Long collectionId) throws ApiExceptio 404 Not found - */ - public ApiResponse exportAccountCollectionItemsWithHttpInfo(Long collectionId) throws ApiException { + public ApiResponse exportAccountCollectionItemsWithHttpInfo(Integer collectionId) throws ApiException { okhttp3.Call localVarCall = exportAccountCollectionItemsValidateBeforeCall(collectionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -4675,7 +4952,7 @@ public ApiResponse exportAccountCollectionItemsWithHttpInfo(Long collect 404 Not found - */ - public okhttp3.Call exportAccountCollectionItemsAsync(Long collectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportAccountCollectionItemsAsync(Integer collectionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = exportAccountCollectionItemsValidateBeforeCall(collectionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4699,7 +4976,7 @@ public okhttp3.Call exportAccountCollectionItemsAsync(Long collectionId, final A 404 Not found - */ - public okhttp3.Call exportAchievementsCall(Long applicationId, Long campaignId, Long achievementId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportAchievementsCall(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -4732,7 +5009,7 @@ public okhttp3.Call exportAchievementsCall(Long applicationId, Long campaignId, } @SuppressWarnings("rawtypes") - private okhttp3.Call exportAchievementsValidateBeforeCall(Long applicationId, Long campaignId, Long achievementId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call exportAchievementsValidateBeforeCall(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -4772,7 +5049,7 @@ private okhttp3.Call exportAchievementsValidateBeforeCall(Long applicationId, Lo 404 Not found - */ - public String exportAchievements(Long applicationId, Long campaignId, Long achievementId) throws ApiException { + public String exportAchievements(Integer applicationId, Integer campaignId, Integer achievementId) throws ApiException { ApiResponse localVarResp = exportAchievementsWithHttpInfo(applicationId, campaignId, achievementId); return localVarResp.getData(); } @@ -4794,7 +5071,7 @@ public String exportAchievements(Long applicationId, Long campaignId, Long achie 404 Not found - */ - public ApiResponse exportAchievementsWithHttpInfo(Long applicationId, Long campaignId, Long achievementId) throws ApiException { + public ApiResponse exportAchievementsWithHttpInfo(Integer applicationId, Integer campaignId, Integer achievementId) throws ApiException { okhttp3.Call localVarCall = exportAchievementsValidateBeforeCall(applicationId, campaignId, achievementId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -4818,7 +5095,7 @@ public ApiResponse exportAchievementsWithHttpInfo(Long applicationId, Lo 404 Not found - */ - public okhttp3.Call exportAchievementsAsync(Long applicationId, Long campaignId, Long achievementId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportAchievementsAsync(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = exportAchievementsValidateBeforeCall(applicationId, campaignId, achievementId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4840,7 +5117,7 @@ public okhttp3.Call exportAchievementsAsync(Long applicationId, Long campaignId, 404 Not found - */ - public okhttp3.Call exportAudiencesMembershipsCall(Long audienceId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportAudiencesMembershipsCall(Integer audienceId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -4871,7 +5148,7 @@ public okhttp3.Call exportAudiencesMembershipsCall(Long audienceId, final ApiCal } @SuppressWarnings("rawtypes") - private okhttp3.Call exportAudiencesMembershipsValidateBeforeCall(Long audienceId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call exportAudiencesMembershipsValidateBeforeCall(Integer audienceId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'audienceId' is set if (audienceId == null) { @@ -4899,7 +5176,7 @@ private okhttp3.Call exportAudiencesMembershipsValidateBeforeCall(Long audienceI 404 Not found - */ - public String exportAudiencesMemberships(Long audienceId) throws ApiException { + public String exportAudiencesMemberships(Integer audienceId) throws ApiException { ApiResponse localVarResp = exportAudiencesMembershipsWithHttpInfo(audienceId); return localVarResp.getData(); } @@ -4919,7 +5196,7 @@ public String exportAudiencesMemberships(Long audienceId) throws ApiException { 404 Not found - */ - public ApiResponse exportAudiencesMembershipsWithHttpInfo(Long audienceId) throws ApiException { + public ApiResponse exportAudiencesMembershipsWithHttpInfo(Integer audienceId) throws ApiException { okhttp3.Call localVarCall = exportAudiencesMembershipsValidateBeforeCall(audienceId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -4941,7 +5218,7 @@ public ApiResponse exportAudiencesMembershipsWithHttpInfo(Long audienceI 404 Not found - */ - public okhttp3.Call exportAudiencesMembershipsAsync(Long audienceId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportAudiencesMembershipsAsync(Integer audienceId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = exportAudiencesMembershipsValidateBeforeCall(audienceId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4949,9 +5226,11 @@ public okhttp3.Call exportAudiencesMembershipsAsync(Long audienceId, final ApiCa return localVarCall; } /** - * Build call for exportCampaignStores + * Build call for exportCampaignStoreBudgets * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param action The action that this budget is limiting. (optional) + * @param period The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4964,16 +5243,24 @@ public okhttp3.Call exportAudiencesMembershipsAsync(Long audienceId, final ApiCa 404 Not found - */ - public okhttp3.Call exportCampaignStoresCall(Long applicationId, Long campaignId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportCampaignStoreBudgetsCall(Integer applicationId, Integer campaignId, String action, String period, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/stores/export" + String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/stores/budgets/export" .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (action != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("action", action)); + } + + if (period != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("period", period)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -4996,29 +5283,31 @@ public okhttp3.Call exportCampaignStoresCall(Long applicationId, Long campaignId } @SuppressWarnings("rawtypes") - private okhttp3.Call exportCampaignStoresValidateBeforeCall(Long applicationId, Long campaignId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call exportCampaignStoreBudgetsValidateBeforeCall(Integer applicationId, Integer campaignId, String action, String period, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling exportCampaignStores(Async)"); + throw new ApiException("Missing the required parameter 'applicationId' when calling exportCampaignStoreBudgets(Async)"); } // verify the required parameter 'campaignId' is set if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling exportCampaignStores(Async)"); + throw new ApiException("Missing the required parameter 'campaignId' when calling exportCampaignStoreBudgets(Async)"); } - okhttp3.Call localVarCall = exportCampaignStoresCall(applicationId, campaignId, _callback); + okhttp3.Call localVarCall = exportCampaignStoreBudgetsCall(applicationId, campaignId, action, period, _callback); return localVarCall; } /** - * Export stores - * Download a CSV file containing the stores linked to a specific campaign. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following column: - `store_integration_id`: The identifier of the store. + * Export campaign store budgets + * Download a CSV file containing the store budgets for a given campaign. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `store_integration_id`: The identifier of the store. - `limit`: The budget limit for the store. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param action The action that this budget is limiting. (optional) + * @param period The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5030,16 +5319,18 @@ private okhttp3.Call exportCampaignStoresValidateBeforeCall(Long applicationId, 404 Not found - */ - public String exportCampaignStores(Long applicationId, Long campaignId) throws ApiException { - ApiResponse localVarResp = exportCampaignStoresWithHttpInfo(applicationId, campaignId); + public String exportCampaignStoreBudgets(Integer applicationId, Integer campaignId, String action, String period) throws ApiException { + ApiResponse localVarResp = exportCampaignStoreBudgetsWithHttpInfo(applicationId, campaignId, action, period); return localVarResp.getData(); } /** - * Export stores - * Download a CSV file containing the stores linked to a specific campaign. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following column: - `store_integration_id`: The identifier of the store. + * Export campaign store budgets + * Download a CSV file containing the store budgets for a given campaign. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `store_integration_id`: The identifier of the store. - `limit`: The budget limit for the store. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param action The action that this budget is limiting. (optional) + * @param period The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5051,17 +5342,19 @@ public String exportCampaignStores(Long applicationId, Long campaignId) throws A 404 Not found - */ - public ApiResponse exportCampaignStoresWithHttpInfo(Long applicationId, Long campaignId) throws ApiException { - okhttp3.Call localVarCall = exportCampaignStoresValidateBeforeCall(applicationId, campaignId, null); + public ApiResponse exportCampaignStoreBudgetsWithHttpInfo(Integer applicationId, Integer campaignId, String action, String period) throws ApiException { + okhttp3.Call localVarCall = exportCampaignStoreBudgetsValidateBeforeCall(applicationId, campaignId, action, period, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * Export stores (asynchronously) - * Download a CSV file containing the stores linked to a specific campaign. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following column: - `store_integration_id`: The identifier of the store. + * Export campaign store budgets (asynchronously) + * Download a CSV file containing the store budgets for a given campaign. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `store_integration_id`: The identifier of the store. - `limit`: The budget limit for the store. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param action The action that this budget is limiting. (optional) + * @param period The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. (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 @@ -5074,18 +5367,17 @@ public ApiResponse exportCampaignStoresWithHttpInfo(Long applicationId, 404 Not found - */ - public okhttp3.Call exportCampaignStoresAsync(Long applicationId, Long campaignId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportCampaignStoreBudgetsAsync(Integer applicationId, Integer campaignId, String action, String period, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = exportCampaignStoresValidateBeforeCall(applicationId, campaignId, _callback); + okhttp3.Call localVarCall = exportCampaignStoreBudgetsValidateBeforeCall(applicationId, campaignId, action, period, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for exportCollectionItems + * Build call for exportCampaignStores * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -5093,18 +5385,18 @@ public okhttp3.Call exportCampaignStoresAsync(Long applicationId, Long campaignI - + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
*/ - public okhttp3.Call exportCollectionItemsCall(Long applicationId, Long campaignId, Long collectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportCampaignStoresCall(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/export" + String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/stores/export" .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) - .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5130,25 +5422,159 @@ public okhttp3.Call exportCollectionItemsCall(Long applicationId, Long campaignI } @SuppressWarnings("rawtypes") - private okhttp3.Call exportCollectionItemsValidateBeforeCall(Long applicationId, Long campaignId, Long collectionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call exportCampaignStoresValidateBeforeCall(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling exportCollectionItems(Async)"); + throw new ApiException("Missing the required parameter 'applicationId' when calling exportCampaignStores(Async)"); } // verify the required parameter 'campaignId' is set if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling exportCollectionItems(Async)"); - } - - // verify the required parameter 'collectionId' is set - if (collectionId == null) { - throw new ApiException("Missing the required parameter 'collectionId' when calling exportCollectionItems(Async)"); + throw new ApiException("Missing the required parameter 'campaignId' when calling exportCampaignStores(Async)"); } - okhttp3.Call localVarCall = exportCollectionItemsCall(applicationId, campaignId, collectionId, _callback); + okhttp3.Call localVarCall = exportCampaignStoresCall(applicationId, campaignId, _callback); + return localVarCall; + + } + + /** + * Export stores + * Download a CSV file containing the stores linked to a specific campaign. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following column: - `store_integration_id`: The identifier of the store. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @return String + * @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 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ */ + public String exportCampaignStores(Integer applicationId, Integer campaignId) throws ApiException { + ApiResponse localVarResp = exportCampaignStoresWithHttpInfo(applicationId, campaignId); + return localVarResp.getData(); + } + + /** + * Export stores + * Download a CSV file containing the stores linked to a specific campaign. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following column: - `store_integration_id`: The identifier of the store. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @return ApiResponse<String> + * @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 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ */ + public ApiResponse exportCampaignStoresWithHttpInfo(Integer applicationId, Integer campaignId) throws ApiException { + okhttp3.Call localVarCall = exportCampaignStoresValidateBeforeCall(applicationId, campaignId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Export stores (asynchronously) + * Download a CSV file containing the stores linked to a specific campaign. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following column: - `store_integration_id`: The identifier of the store. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (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 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ */ + public okhttp3.Call exportCampaignStoresAsync(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = exportCampaignStoresValidateBeforeCall(applicationId, campaignId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for exportCollectionItems + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (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 OK -
401 Unauthorized -
404 Not found -
+ */ + public okhttp3.Call exportCollectionItemsCall(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/export" + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) + .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.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/csv" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call exportCollectionItemsValidateBeforeCall(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'applicationId' is set + if (applicationId == null) { + throw new ApiException("Missing the required parameter 'applicationId' when calling exportCollectionItems(Async)"); + } + + // verify the required parameter 'campaignId' is set + if (campaignId == null) { + throw new ApiException("Missing the required parameter 'campaignId' when calling exportCollectionItems(Async)"); + } + + // verify the required parameter 'collectionId' is set + if (collectionId == null) { + throw new ApiException("Missing the required parameter 'collectionId' when calling exportCollectionItems(Async)"); + } + + + okhttp3.Call localVarCall = exportCollectionItemsCall(applicationId, campaignId, collectionId, _callback); return localVarCall; } @@ -5169,7 +5595,7 @@ private okhttp3.Call exportCollectionItemsValidateBeforeCall(Long applicationId, 404 Not found - */ - public String exportCollectionItems(Long applicationId, Long campaignId, Long collectionId) throws ApiException { + public String exportCollectionItems(Integer applicationId, Integer campaignId, Integer collectionId) throws ApiException { ApiResponse localVarResp = exportCollectionItemsWithHttpInfo(applicationId, campaignId, collectionId); return localVarResp.getData(); } @@ -5190,7 +5616,7 @@ public String exportCollectionItems(Long applicationId, Long campaignId, Long co 404 Not found - */ - public ApiResponse exportCollectionItemsWithHttpInfo(Long applicationId, Long campaignId, Long collectionId) throws ApiException { + public ApiResponse exportCollectionItemsWithHttpInfo(Integer applicationId, Integer campaignId, Integer collectionId) throws ApiException { okhttp3.Call localVarCall = exportCollectionItemsValidateBeforeCall(applicationId, campaignId, collectionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -5213,7 +5639,7 @@ public ApiResponse exportCollectionItemsWithHttpInfo(Long applicationId, 404 Not found - */ - public okhttp3.Call exportCollectionItemsAsync(Long applicationId, Long campaignId, Long collectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportCollectionItemsAsync(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = exportCollectionItemsValidateBeforeCall(applicationId, campaignId, collectionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5246,7 +5672,7 @@ public okhttp3.Call exportCollectionItemsAsync(Long applicationId, Long campaign 200 OK - */ - public okhttp3.Call exportCouponsCall(Long applicationId, BigDecimal campaignId, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Long referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String dateFormat, String campaignState, Boolean valuesOnly, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportCouponsCall(Integer applicationId, BigDecimal campaignId, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String dateFormat, String campaignState, Boolean valuesOnly, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -5333,7 +5759,7 @@ public okhttp3.Call exportCouponsCall(Long applicationId, BigDecimal campaignId, } @SuppressWarnings("rawtypes") - private okhttp3.Call exportCouponsValidateBeforeCall(Long applicationId, BigDecimal campaignId, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Long referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String dateFormat, String campaignState, Boolean valuesOnly, final ApiCallback _callback) throws ApiException { + private okhttp3.Call exportCouponsValidateBeforeCall(Integer applicationId, BigDecimal campaignId, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String dateFormat, String campaignState, Boolean valuesOnly, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -5372,7 +5798,7 @@ private okhttp3.Call exportCouponsValidateBeforeCall(Long applicationId, BigDeci 200 OK - */ - public String exportCoupons(Long applicationId, BigDecimal campaignId, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Long referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String dateFormat, String campaignState, Boolean valuesOnly) throws ApiException { + public String exportCoupons(Integer applicationId, BigDecimal campaignId, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String dateFormat, String campaignState, Boolean valuesOnly) throws ApiException { ApiResponse localVarResp = exportCouponsWithHttpInfo(applicationId, campaignId, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, dateFormat, campaignState, valuesOnly); return localVarResp.getData(); } @@ -5403,7 +5829,7 @@ public String exportCoupons(Long applicationId, BigDecimal campaignId, String so 200 OK - */ - public ApiResponse exportCouponsWithHttpInfo(Long applicationId, BigDecimal campaignId, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Long referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String dateFormat, String campaignState, Boolean valuesOnly) throws ApiException { + public ApiResponse exportCouponsWithHttpInfo(Integer applicationId, BigDecimal campaignId, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String dateFormat, String campaignState, Boolean valuesOnly) throws ApiException { okhttp3.Call localVarCall = exportCouponsValidateBeforeCall(applicationId, campaignId, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, dateFormat, campaignState, valuesOnly, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -5436,7 +5862,7 @@ public ApiResponse exportCouponsWithHttpInfo(Long applicationId, BigDeci 200 OK - */ - public okhttp3.Call exportCouponsAsync(Long applicationId, BigDecimal campaignId, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Long referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String dateFormat, String campaignState, Boolean valuesOnly, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportCouponsAsync(Integer applicationId, BigDecimal campaignId, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String dateFormat, String campaignState, Boolean valuesOnly, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = exportCouponsValidateBeforeCall(applicationId, campaignId, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, dateFormat, campaignState, valuesOnly, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5460,7 +5886,7 @@ public okhttp3.Call exportCouponsAsync(Long applicationId, BigDecimal campaignId 200 OK - */ - public okhttp3.Call exportCustomerSessionsCall(Long applicationId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String profileIntegrationId, String dateFormat, String customerSessionState, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportCustomerSessionsCall(Integer applicationId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String profileIntegrationId, String dateFormat, String customerSessionState, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -5511,7 +5937,7 @@ public okhttp3.Call exportCustomerSessionsCall(Long applicationId, OffsetDateTim } @SuppressWarnings("rawtypes") - private okhttp3.Call exportCustomerSessionsValidateBeforeCall(Long applicationId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String profileIntegrationId, String dateFormat, String customerSessionState, final ApiCallback _callback) throws ApiException { + private okhttp3.Call exportCustomerSessionsValidateBeforeCall(Integer applicationId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String profileIntegrationId, String dateFormat, String customerSessionState, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -5526,7 +5952,7 @@ private okhttp3.Call exportCustomerSessionsValidateBeforeCall(Long applicationId /** * Export customer sessions - * Download a CSV file containing the customer sessions that match the request. **Important:** Archived sessions cannot be exported. See the [retention policy](https://docs.talon.one/docs/product/server-infrastructure-and-data-retention#data-retention-policy). **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - `id`: The internal ID of the session. - `firstsession`: Whether this is a first session. - `integrationid`: The integration ID of the session. - `applicationid`: The ID of the Application. - `profileid`: The internal ID of the customer profile. - `profileintegrationid`: The integration ID of the customer profile. - `created`: The timestamp when the session was created. - `state`: The [state](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) of the session. - `cartitems`: The cart items in the session. - `discounts`: The discounts in the session. - `total`: The total value of cart items and additional costs in the session, before any discounts are applied. - `attributes`: The attributes set in the session. - `closedat`: Timestamp when the session was closed. - `cancelledat`: Timestamp when the session was cancelled. - `referral`: The referral code in the session. - `identifiers`: The identifiers in the session. - `additional_costs`: The [additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs) in the session. - `updated`: Timestamp of the last session update. - `store_integration_id`: The integration ID of the store. - `coupons`: Coupon codes in the session. + * Download a CSV file containing the customer sessions that match the request. **Important:** Archived sessions cannot be exported. See the [retention policy](https://docs.talon.one/docs/dev/server-infrastructure-and-data-retention). **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - `id`: The internal ID of the session. - `firstsession`: Whether this is a first session. - `integrationid`: The integration ID of the session. - `applicationid`: The ID of the Application. - `profileid`: The internal ID of the customer profile. - `profileintegrationid`: The integration ID of the customer profile. - `created`: The timestamp when the session was created. - `state`: The [state](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) of the session. - `cartitems`: The cart items in the session. - `discounts`: The discounts in the session. - `total`: The total value of cart items and additional costs in the session, before any discounts are applied. - `attributes`: The attributes set in the session. - `closedat`: Timestamp when the session was closed. - `cancelledat`: Timestamp when the session was cancelled. - `referral`: The referral code in the session. - `identifiers`: The identifiers in the session. - `additional_costs`: The [additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs) in the session. - `updated`: Timestamp of the last session update. - `store_integration_id`: The integration ID of the store. - `coupons`: Coupon codes in the session. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. (optional) * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. (optional) @@ -5541,14 +5967,14 @@ private okhttp3.Call exportCustomerSessionsValidateBeforeCall(Long applicationId 200 OK - */ - public String exportCustomerSessions(Long applicationId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String profileIntegrationId, String dateFormat, String customerSessionState) throws ApiException { + public String exportCustomerSessions(Integer applicationId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String profileIntegrationId, String dateFormat, String customerSessionState) throws ApiException { ApiResponse localVarResp = exportCustomerSessionsWithHttpInfo(applicationId, createdBefore, createdAfter, profileIntegrationId, dateFormat, customerSessionState); return localVarResp.getData(); } /** * Export customer sessions - * Download a CSV file containing the customer sessions that match the request. **Important:** Archived sessions cannot be exported. See the [retention policy](https://docs.talon.one/docs/product/server-infrastructure-and-data-retention#data-retention-policy). **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - `id`: The internal ID of the session. - `firstsession`: Whether this is a first session. - `integrationid`: The integration ID of the session. - `applicationid`: The ID of the Application. - `profileid`: The internal ID of the customer profile. - `profileintegrationid`: The integration ID of the customer profile. - `created`: The timestamp when the session was created. - `state`: The [state](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) of the session. - `cartitems`: The cart items in the session. - `discounts`: The discounts in the session. - `total`: The total value of cart items and additional costs in the session, before any discounts are applied. - `attributes`: The attributes set in the session. - `closedat`: Timestamp when the session was closed. - `cancelledat`: Timestamp when the session was cancelled. - `referral`: The referral code in the session. - `identifiers`: The identifiers in the session. - `additional_costs`: The [additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs) in the session. - `updated`: Timestamp of the last session update. - `store_integration_id`: The integration ID of the store. - `coupons`: Coupon codes in the session. + * Download a CSV file containing the customer sessions that match the request. **Important:** Archived sessions cannot be exported. See the [retention policy](https://docs.talon.one/docs/dev/server-infrastructure-and-data-retention). **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - `id`: The internal ID of the session. - `firstsession`: Whether this is a first session. - `integrationid`: The integration ID of the session. - `applicationid`: The ID of the Application. - `profileid`: The internal ID of the customer profile. - `profileintegrationid`: The integration ID of the customer profile. - `created`: The timestamp when the session was created. - `state`: The [state](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) of the session. - `cartitems`: The cart items in the session. - `discounts`: The discounts in the session. - `total`: The total value of cart items and additional costs in the session, before any discounts are applied. - `attributes`: The attributes set in the session. - `closedat`: Timestamp when the session was closed. - `cancelledat`: Timestamp when the session was cancelled. - `referral`: The referral code in the session. - `identifiers`: The identifiers in the session. - `additional_costs`: The [additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs) in the session. - `updated`: Timestamp of the last session update. - `store_integration_id`: The integration ID of the store. - `coupons`: Coupon codes in the session. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. (optional) * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. (optional) @@ -5563,7 +5989,7 @@ public String exportCustomerSessions(Long applicationId, OffsetDateTime createdB 200 OK - */ - public ApiResponse exportCustomerSessionsWithHttpInfo(Long applicationId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String profileIntegrationId, String dateFormat, String customerSessionState) throws ApiException { + public ApiResponse exportCustomerSessionsWithHttpInfo(Integer applicationId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String profileIntegrationId, String dateFormat, String customerSessionState) throws ApiException { okhttp3.Call localVarCall = exportCustomerSessionsValidateBeforeCall(applicationId, createdBefore, createdAfter, profileIntegrationId, dateFormat, customerSessionState, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -5571,7 +5997,7 @@ public ApiResponse exportCustomerSessionsWithHttpInfo(Long applicationId /** * Export customer sessions (asynchronously) - * Download a CSV file containing the customer sessions that match the request. **Important:** Archived sessions cannot be exported. See the [retention policy](https://docs.talon.one/docs/product/server-infrastructure-and-data-retention#data-retention-policy). **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - `id`: The internal ID of the session. - `firstsession`: Whether this is a first session. - `integrationid`: The integration ID of the session. - `applicationid`: The ID of the Application. - `profileid`: The internal ID of the customer profile. - `profileintegrationid`: The integration ID of the customer profile. - `created`: The timestamp when the session was created. - `state`: The [state](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) of the session. - `cartitems`: The cart items in the session. - `discounts`: The discounts in the session. - `total`: The total value of cart items and additional costs in the session, before any discounts are applied. - `attributes`: The attributes set in the session. - `closedat`: Timestamp when the session was closed. - `cancelledat`: Timestamp when the session was cancelled. - `referral`: The referral code in the session. - `identifiers`: The identifiers in the session. - `additional_costs`: The [additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs) in the session. - `updated`: Timestamp of the last session update. - `store_integration_id`: The integration ID of the store. - `coupons`: Coupon codes in the session. + * Download a CSV file containing the customer sessions that match the request. **Important:** Archived sessions cannot be exported. See the [retention policy](https://docs.talon.one/docs/dev/server-infrastructure-and-data-retention). **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - `id`: The internal ID of the session. - `firstsession`: Whether this is a first session. - `integrationid`: The integration ID of the session. - `applicationid`: The ID of the Application. - `profileid`: The internal ID of the customer profile. - `profileintegrationid`: The integration ID of the customer profile. - `created`: The timestamp when the session was created. - `state`: The [state](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) of the session. - `cartitems`: The cart items in the session. - `discounts`: The discounts in the session. - `total`: The total value of cart items and additional costs in the session, before any discounts are applied. - `attributes`: The attributes set in the session. - `closedat`: Timestamp when the session was closed. - `cancelledat`: Timestamp when the session was cancelled. - `referral`: The referral code in the session. - `identifiers`: The identifiers in the session. - `additional_costs`: The [additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs) in the session. - `updated`: Timestamp of the last session update. - `store_integration_id`: The integration ID of the store. - `coupons`: Coupon codes in the session. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param createdBefore Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. (optional) * @param createdAfter Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. (optional) @@ -5587,7 +6013,7 @@ public ApiResponse exportCustomerSessionsWithHttpInfo(Long applicationId 200 OK - */ - public okhttp3.Call exportCustomerSessionsAsync(Long applicationId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String profileIntegrationId, String dateFormat, String customerSessionState, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportCustomerSessionsAsync(Integer applicationId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String profileIntegrationId, String dateFormat, String customerSessionState, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = exportCustomerSessionsValidateBeforeCall(applicationId, createdBefore, createdAfter, profileIntegrationId, dateFormat, customerSessionState, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5737,7 +6163,7 @@ public okhttp3.Call exportCustomersTiersAsync(String loyaltyProgramId, List 200 OK - */ - public okhttp3.Call exportEffectsCall(Long applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String dateFormat, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportEffectsCall(Integer applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String dateFormat, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -5784,7 +6210,7 @@ public okhttp3.Call exportEffectsCall(Long applicationId, BigDecimal campaignId, } @SuppressWarnings("rawtypes") - private okhttp3.Call exportEffectsValidateBeforeCall(Long applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String dateFormat, final ApiCallback _callback) throws ApiException { + private okhttp3.Call exportEffectsValidateBeforeCall(Integer applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String dateFormat, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -5813,7 +6239,7 @@ private okhttp3.Call exportEffectsValidateBeforeCall(Long applicationId, BigDeci 200 OK - */ - public String exportEffects(Long applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String dateFormat) throws ApiException { + public String exportEffects(Integer applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String dateFormat) throws ApiException { ApiResponse localVarResp = exportEffectsWithHttpInfo(applicationId, campaignId, createdBefore, createdAfter, dateFormat); return localVarResp.getData(); } @@ -5834,7 +6260,7 @@ public String exportEffects(Long applicationId, BigDecimal campaignId, OffsetDat 200 OK - */ - public ApiResponse exportEffectsWithHttpInfo(Long applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String dateFormat) throws ApiException { + public ApiResponse exportEffectsWithHttpInfo(Integer applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String dateFormat) throws ApiException { okhttp3.Call localVarCall = exportEffectsValidateBeforeCall(applicationId, campaignId, createdBefore, createdAfter, dateFormat, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -5857,7 +6283,7 @@ public ApiResponse exportEffectsWithHttpInfo(Long applicationId, BigDeci 200 OK - */ - public okhttp3.Call exportEffectsAsync(Long applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String dateFormat, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportEffectsAsync(Integer applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String dateFormat, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = exportEffectsValidateBeforeCall(applicationId, campaignId, createdBefore, createdAfter, dateFormat, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6142,7 +6568,7 @@ public okhttp3.Call exportLoyaltyBalancesAsync(String loyaltyProgramId, OffsetDa 401 Unauthorized - */ - public okhttp3.Call exportLoyaltyCardBalancesCall(Long loyaltyProgramId, OffsetDateTime endDate, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportLoyaltyCardBalancesCall(Integer loyaltyProgramId, OffsetDateTime endDate, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -6177,7 +6603,7 @@ public okhttp3.Call exportLoyaltyCardBalancesCall(Long loyaltyProgramId, OffsetD } @SuppressWarnings("rawtypes") - private okhttp3.Call exportLoyaltyCardBalancesValidateBeforeCall(Long loyaltyProgramId, OffsetDateTime endDate, final ApiCallback _callback) throws ApiException { + private okhttp3.Call exportLoyaltyCardBalancesValidateBeforeCall(Integer loyaltyProgramId, OffsetDateTime endDate, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -6205,7 +6631,7 @@ private okhttp3.Call exportLoyaltyCardBalancesValidateBeforeCall(Long loyaltyPro 401 Unauthorized - */ - public String exportLoyaltyCardBalances(Long loyaltyProgramId, OffsetDateTime endDate) throws ApiException { + public String exportLoyaltyCardBalances(Integer loyaltyProgramId, OffsetDateTime endDate) throws ApiException { ApiResponse localVarResp = exportLoyaltyCardBalancesWithHttpInfo(loyaltyProgramId, endDate); return localVarResp.getData(); } @@ -6225,7 +6651,7 @@ public String exportLoyaltyCardBalances(Long loyaltyProgramId, OffsetDateTime en 401 Unauthorized - */ - public ApiResponse exportLoyaltyCardBalancesWithHttpInfo(Long loyaltyProgramId, OffsetDateTime endDate) throws ApiException { + public ApiResponse exportLoyaltyCardBalancesWithHttpInfo(Integer loyaltyProgramId, OffsetDateTime endDate) throws ApiException { okhttp3.Call localVarCall = exportLoyaltyCardBalancesValidateBeforeCall(loyaltyProgramId, endDate, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -6247,7 +6673,7 @@ public ApiResponse exportLoyaltyCardBalancesWithHttpInfo(Long loyaltyPro 401 Unauthorized - */ - public okhttp3.Call exportLoyaltyCardBalancesAsync(Long loyaltyProgramId, OffsetDateTime endDate, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportLoyaltyCardBalancesAsync(Integer loyaltyProgramId, OffsetDateTime endDate, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = exportLoyaltyCardBalancesValidateBeforeCall(loyaltyProgramId, endDate, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6272,7 +6698,7 @@ public okhttp3.Call exportLoyaltyCardBalancesAsync(Long loyaltyProgramId, Offset 404 Not found - */ - public okhttp3.Call exportLoyaltyCardLedgerCall(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String dateFormat, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportLoyaltyCardLedgerCall(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String dateFormat, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -6316,7 +6742,7 @@ public okhttp3.Call exportLoyaltyCardLedgerCall(Long loyaltyProgramId, String lo } @SuppressWarnings("rawtypes") - private okhttp3.Call exportLoyaltyCardLedgerValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String dateFormat, final ApiCallback _callback) throws ApiException { + private okhttp3.Call exportLoyaltyCardLedgerValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String dateFormat, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -6362,7 +6788,7 @@ private okhttp3.Call exportLoyaltyCardLedgerValidateBeforeCall(Long loyaltyProgr 404 Not found - */ - public String exportLoyaltyCardLedger(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String dateFormat) throws ApiException { + public String exportLoyaltyCardLedger(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String dateFormat) throws ApiException { ApiResponse localVarResp = exportLoyaltyCardLedgerWithHttpInfo(loyaltyProgramId, loyaltyCardId, rangeStart, rangeEnd, dateFormat); return localVarResp.getData(); } @@ -6385,7 +6811,7 @@ public String exportLoyaltyCardLedger(Long loyaltyProgramId, String loyaltyCardI 404 Not found - */ - public ApiResponse exportLoyaltyCardLedgerWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String dateFormat) throws ApiException { + public ApiResponse exportLoyaltyCardLedgerWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String dateFormat) throws ApiException { okhttp3.Call localVarCall = exportLoyaltyCardLedgerValidateBeforeCall(loyaltyProgramId, loyaltyCardId, rangeStart, rangeEnd, dateFormat, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -6410,7 +6836,7 @@ public ApiResponse exportLoyaltyCardLedgerWithHttpInfo(Long loyaltyProgr 404 Not found - */ - public okhttp3.Call exportLoyaltyCardLedgerAsync(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String dateFormat, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportLoyaltyCardLedgerAsync(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String dateFormat, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = exportLoyaltyCardLedgerValidateBeforeCall(loyaltyProgramId, loyaltyCardId, rangeStart, rangeEnd, dateFormat, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6433,7 +6859,7 @@ public okhttp3.Call exportLoyaltyCardLedgerAsync(Long loyaltyProgramId, String l 401 Unauthorized - */ - public okhttp3.Call exportLoyaltyCardsCall(Long loyaltyProgramId, String batchId, String dateFormat, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportLoyaltyCardsCall(Integer loyaltyProgramId, String batchId, String dateFormat, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -6472,7 +6898,7 @@ public okhttp3.Call exportLoyaltyCardsCall(Long loyaltyProgramId, String batchId } @SuppressWarnings("rawtypes") - private okhttp3.Call exportLoyaltyCardsValidateBeforeCall(Long loyaltyProgramId, String batchId, String dateFormat, final ApiCallback _callback) throws ApiException { + private okhttp3.Call exportLoyaltyCardsValidateBeforeCall(Integer loyaltyProgramId, String batchId, String dateFormat, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -6501,7 +6927,7 @@ private okhttp3.Call exportLoyaltyCardsValidateBeforeCall(Long loyaltyProgramId, 401 Unauthorized - */ - public String exportLoyaltyCards(Long loyaltyProgramId, String batchId, String dateFormat) throws ApiException { + public String exportLoyaltyCards(Integer loyaltyProgramId, String batchId, String dateFormat) throws ApiException { ApiResponse localVarResp = exportLoyaltyCardsWithHttpInfo(loyaltyProgramId, batchId, dateFormat); return localVarResp.getData(); } @@ -6522,7 +6948,7 @@ public String exportLoyaltyCards(Long loyaltyProgramId, String batchId, String d 401 Unauthorized - */ - public ApiResponse exportLoyaltyCardsWithHttpInfo(Long loyaltyProgramId, String batchId, String dateFormat) throws ApiException { + public ApiResponse exportLoyaltyCardsWithHttpInfo(Integer loyaltyProgramId, String batchId, String dateFormat) throws ApiException { okhttp3.Call localVarCall = exportLoyaltyCardsValidateBeforeCall(loyaltyProgramId, batchId, dateFormat, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -6545,7 +6971,7 @@ public ApiResponse exportLoyaltyCardsWithHttpInfo(Long loyaltyProgramId, 401 Unauthorized - */ - public okhttp3.Call exportLoyaltyCardsAsync(Long loyaltyProgramId, String batchId, String dateFormat, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportLoyaltyCardsAsync(Integer loyaltyProgramId, String batchId, String dateFormat, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = exportLoyaltyCardsValidateBeforeCall(loyaltyProgramId, batchId, dateFormat, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6722,7 +7148,7 @@ public okhttp3.Call exportLoyaltyLedgerAsync(OffsetDateTime rangeStart, OffsetDa 400 Bad request - */ - public okhttp3.Call exportPoolGiveawaysCall(Long poolId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportPoolGiveawaysCall(Integer poolId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -6761,7 +7187,7 @@ public okhttp3.Call exportPoolGiveawaysCall(Long poolId, OffsetDateTime createdB } @SuppressWarnings("rawtypes") - private okhttp3.Call exportPoolGiveawaysValidateBeforeCall(Long poolId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { + private okhttp3.Call exportPoolGiveawaysValidateBeforeCall(Integer poolId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { // verify the required parameter 'poolId' is set if (poolId == null) { @@ -6789,7 +7215,7 @@ private okhttp3.Call exportPoolGiveawaysValidateBeforeCall(Long poolId, OffsetDa 400 Bad request - */ - public String exportPoolGiveaways(Long poolId, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { + public String exportPoolGiveaways(Integer poolId, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { ApiResponse localVarResp = exportPoolGiveawaysWithHttpInfo(poolId, createdBefore, createdAfter); return localVarResp.getData(); } @@ -6809,7 +7235,7 @@ public String exportPoolGiveaways(Long poolId, OffsetDateTime createdBefore, Off 400 Bad request - */ - public ApiResponse exportPoolGiveawaysWithHttpInfo(Long poolId, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { + public ApiResponse exportPoolGiveawaysWithHttpInfo(Integer poolId, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { okhttp3.Call localVarCall = exportPoolGiveawaysValidateBeforeCall(poolId, createdBefore, createdAfter, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -6831,7 +7257,7 @@ public ApiResponse exportPoolGiveawaysWithHttpInfo(Long poolId, OffsetDa 400 Bad request - */ - public okhttp3.Call exportPoolGiveawaysAsync(Long poolId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportPoolGiveawaysAsync(Integer poolId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = exportPoolGiveawaysValidateBeforeCall(poolId, createdBefore, createdAfter, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6857,7 +7283,7 @@ public okhttp3.Call exportPoolGiveawaysAsync(Long poolId, OffsetDateTime created 200 OK - */ - public okhttp3.Call exportReferralsCall(Long applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String batchId, String dateFormat, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportReferralsCall(Integer applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String batchId, String dateFormat, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -6916,7 +7342,7 @@ public okhttp3.Call exportReferralsCall(Long applicationId, BigDecimal campaignI } @SuppressWarnings("rawtypes") - private okhttp3.Call exportReferralsValidateBeforeCall(Long applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String batchId, String dateFormat, final ApiCallback _callback) throws ApiException { + private okhttp3.Call exportReferralsValidateBeforeCall(Integer applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String batchId, String dateFormat, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -6948,7 +7374,7 @@ private okhttp3.Call exportReferralsValidateBeforeCall(Long applicationId, BigDe 200 OK - */ - public String exportReferrals(Long applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String batchId, String dateFormat) throws ApiException { + public String exportReferrals(Integer applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String batchId, String dateFormat) throws ApiException { ApiResponse localVarResp = exportReferralsWithHttpInfo(applicationId, campaignId, createdBefore, createdAfter, valid, usable, batchId, dateFormat); return localVarResp.getData(); } @@ -6972,7 +7398,7 @@ public String exportReferrals(Long applicationId, BigDecimal campaignId, OffsetD 200 OK - */ - public ApiResponse exportReferralsWithHttpInfo(Long applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String batchId, String dateFormat) throws ApiException { + public ApiResponse exportReferralsWithHttpInfo(Integer applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String batchId, String dateFormat) throws ApiException { okhttp3.Call localVarCall = exportReferralsValidateBeforeCall(applicationId, campaignId, createdBefore, createdAfter, valid, usable, batchId, dateFormat, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -6998,7 +7424,7 @@ public ApiResponse exportReferralsWithHttpInfo(Long applicationId, BigDe 200 OK - */ - public okhttp3.Call exportReferralsAsync(Long applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String batchId, String dateFormat, final ApiCallback _callback) throws ApiException { + public okhttp3.Call exportReferralsAsync(Integer applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String batchId, String dateFormat, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = exportReferralsValidateBeforeCall(applicationId, campaignId, createdBefore, createdAfter, valid, usable, batchId, dateFormat, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7013,7 +7439,7 @@ public okhttp3.Call exportReferralsAsync(Long applicationId, BigDecimal campaign * @param path Only return results where the request path matches the given regular expression. (optional) * @param method Only return results where the request method matches the given regular expression. (optional) * @param status Filter results by HTTP status codes. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param _callback Callback for upload/download progress @@ -7025,7 +7451,7 @@ public okhttp3.Call exportReferralsAsync(Long applicationId, BigDecimal campaign 200 OK - */ - public okhttp3.Call getAccessLogsWithoutTotalCountCall(Long applicationId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAccessLogsWithoutTotalCountCall(Integer applicationId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -7088,7 +7514,7 @@ public okhttp3.Call getAccessLogsWithoutTotalCountCall(Long applicationId, Offse } @SuppressWarnings("rawtypes") - private okhttp3.Call getAccessLogsWithoutTotalCountValidateBeforeCall(Long applicationId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAccessLogsWithoutTotalCountValidateBeforeCall(Integer applicationId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -7120,7 +7546,7 @@ private okhttp3.Call getAccessLogsWithoutTotalCountValidateBeforeCall(Long appli * @param path Only return results where the request path matches the given regular expression. (optional) * @param method Only return results where the request method matches the given regular expression. (optional) * @param status Filter results by HTTP status codes. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @return InlineResponse20022 @@ -7131,7 +7557,7 @@ private okhttp3.Call getAccessLogsWithoutTotalCountValidateBeforeCall(Long appli 200 OK - */ - public InlineResponse20022 getAccessLogsWithoutTotalCount(Long applicationId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Long pageSize, Long skip, String sort) throws ApiException { + public InlineResponse20022 getAccessLogsWithoutTotalCount(Integer applicationId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Integer pageSize, Integer skip, String sort) throws ApiException { ApiResponse localVarResp = getAccessLogsWithoutTotalCountWithHttpInfo(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort); return localVarResp.getData(); } @@ -7145,7 +7571,7 @@ public InlineResponse20022 getAccessLogsWithoutTotalCount(Long applicationId, Of * @param path Only return results where the request path matches the given regular expression. (optional) * @param method Only return results where the request method matches the given regular expression. (optional) * @param status Filter results by HTTP status codes. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @return ApiResponse<InlineResponse20022> @@ -7156,7 +7582,7 @@ public InlineResponse20022 getAccessLogsWithoutTotalCount(Long applicationId, Of 200 OK - */ - public ApiResponse getAccessLogsWithoutTotalCountWithHttpInfo(Long applicationId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Long pageSize, Long skip, String sort) throws ApiException { + public ApiResponse getAccessLogsWithoutTotalCountWithHttpInfo(Integer applicationId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Integer pageSize, Integer skip, String sort) throws ApiException { okhttp3.Call localVarCall = getAccessLogsWithoutTotalCountValidateBeforeCall(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -7171,7 +7597,7 @@ public ApiResponse getAccessLogsWithoutTotalCountWithHttpIn * @param path Only return results where the request path matches the given regular expression. (optional) * @param method Only return results where the request method matches the given regular expression. (optional) * @param status Filter results by HTTP status codes. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param _callback The callback to be executed when the API call finishes @@ -7183,7 +7609,7 @@ public ApiResponse getAccessLogsWithoutTotalCountWithHttpIn 200 OK - */ - public okhttp3.Call getAccessLogsWithoutTotalCountAsync(Long applicationId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAccessLogsWithoutTotalCountAsync(Integer applicationId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAccessLogsWithoutTotalCountValidateBeforeCall(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7202,7 +7628,7 @@ public okhttp3.Call getAccessLogsWithoutTotalCountAsync(Long applicationId, Offs 200 OK - */ - public okhttp3.Call getAccountCall(Long accountId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAccountCall(Integer accountId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -7233,7 +7659,7 @@ public okhttp3.Call getAccountCall(Long accountId, final ApiCallback _callback) } @SuppressWarnings("rawtypes") - private okhttp3.Call getAccountValidateBeforeCall(Long accountId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAccountValidateBeforeCall(Integer accountId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'accountId' is set if (accountId == null) { @@ -7258,7 +7684,7 @@ private okhttp3.Call getAccountValidateBeforeCall(Long accountId, final ApiCallb 200 OK - */ - public Account getAccount(Long accountId) throws ApiException { + public Account getAccount(Integer accountId) throws ApiException { ApiResponse localVarResp = getAccountWithHttpInfo(accountId); return localVarResp.getData(); } @@ -7275,7 +7701,7 @@ public Account getAccount(Long accountId) throws ApiException { 200 OK - */ - public ApiResponse getAccountWithHttpInfo(Long accountId) throws ApiException { + public ApiResponse getAccountWithHttpInfo(Integer accountId) throws ApiException { okhttp3.Call localVarCall = getAccountValidateBeforeCall(accountId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -7294,7 +7720,7 @@ public ApiResponse getAccountWithHttpInfo(Long accountId) throws ApiExc 200 OK - */ - public okhttp3.Call getAccountAsync(Long accountId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAccountAsync(Integer accountId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAccountValidateBeforeCall(accountId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7313,7 +7739,7 @@ public okhttp3.Call getAccountAsync(Long accountId, final ApiCallback _ 200 OK - */ - public okhttp3.Call getAccountAnalyticsCall(Long accountId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAccountAnalyticsCall(Integer accountId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -7344,7 +7770,7 @@ public okhttp3.Call getAccountAnalyticsCall(Long accountId, final ApiCallback _c } @SuppressWarnings("rawtypes") - private okhttp3.Call getAccountAnalyticsValidateBeforeCall(Long accountId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAccountAnalyticsValidateBeforeCall(Integer accountId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'accountId' is set if (accountId == null) { @@ -7369,7 +7795,7 @@ private okhttp3.Call getAccountAnalyticsValidateBeforeCall(Long accountId, final 200 OK - */ - public AccountAnalytics getAccountAnalytics(Long accountId) throws ApiException { + public AccountAnalytics getAccountAnalytics(Integer accountId) throws ApiException { ApiResponse localVarResp = getAccountAnalyticsWithHttpInfo(accountId); return localVarResp.getData(); } @@ -7386,7 +7812,7 @@ public AccountAnalytics getAccountAnalytics(Long accountId) throws ApiException 200 OK - */ - public ApiResponse getAccountAnalyticsWithHttpInfo(Long accountId) throws ApiException { + public ApiResponse getAccountAnalyticsWithHttpInfo(Integer accountId) throws ApiException { okhttp3.Call localVarCall = getAccountAnalyticsValidateBeforeCall(accountId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -7405,7 +7831,7 @@ public ApiResponse getAccountAnalyticsWithHttpInfo(Long accoun 200 OK - */ - public okhttp3.Call getAccountAnalyticsAsync(Long accountId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAccountAnalyticsAsync(Integer accountId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAccountAnalyticsValidateBeforeCall(accountId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7425,7 +7851,7 @@ public okhttp3.Call getAccountAnalyticsAsync(Long accountId, final ApiCallback 404 Not found - */ - public okhttp3.Call getAccountCollectionCall(Long collectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAccountCollectionCall(Integer collectionId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -7456,7 +7882,7 @@ public okhttp3.Call getAccountCollectionCall(Long collectionId, final ApiCallbac } @SuppressWarnings("rawtypes") - private okhttp3.Call getAccountCollectionValidateBeforeCall(Long collectionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAccountCollectionValidateBeforeCall(Integer collectionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'collectionId' is set if (collectionId == null) { @@ -7482,7 +7908,7 @@ private okhttp3.Call getAccountCollectionValidateBeforeCall(Long collectionId, f 404 Not found - */ - public Collection getAccountCollection(Long collectionId) throws ApiException { + public Collection getAccountCollection(Integer collectionId) throws ApiException { ApiResponse localVarResp = getAccountCollectionWithHttpInfo(collectionId); return localVarResp.getData(); } @@ -7500,7 +7926,7 @@ public Collection getAccountCollection(Long collectionId) throws ApiException { 404 Not found - */ - public ApiResponse getAccountCollectionWithHttpInfo(Long collectionId) throws ApiException { + public ApiResponse getAccountCollectionWithHttpInfo(Integer collectionId) throws ApiException { okhttp3.Call localVarCall = getAccountCollectionValidateBeforeCall(collectionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -7520,7 +7946,7 @@ public ApiResponse getAccountCollectionWithHttpInfo(Long collectionI 404 Not found - */ - public okhttp3.Call getAccountCollectionAsync(Long collectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAccountCollectionAsync(Integer collectionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAccountCollectionValidateBeforeCall(collectionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7543,7 +7969,7 @@ public okhttp3.Call getAccountCollectionAsync(Long collectionId, final ApiCallba 404 Not found - */ - public okhttp3.Call getAchievementCall(Long applicationId, Long campaignId, Long achievementId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAchievementCall(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -7576,7 +8002,7 @@ public okhttp3.Call getAchievementCall(Long applicationId, Long campaignId, Long } @SuppressWarnings("rawtypes") - private okhttp3.Call getAchievementValidateBeforeCall(Long applicationId, Long campaignId, Long achievementId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAchievementValidateBeforeCall(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -7615,7 +8041,7 @@ private okhttp3.Call getAchievementValidateBeforeCall(Long applicationId, Long c 404 Not found - */ - public Achievement getAchievement(Long applicationId, Long campaignId, Long achievementId) throws ApiException { + public Achievement getAchievement(Integer applicationId, Integer campaignId, Integer achievementId) throws ApiException { ApiResponse localVarResp = getAchievementWithHttpInfo(applicationId, campaignId, achievementId); return localVarResp.getData(); } @@ -7636,7 +8062,7 @@ public Achievement getAchievement(Long applicationId, Long campaignId, Long achi 404 Not found - */ - public ApiResponse getAchievementWithHttpInfo(Long applicationId, Long campaignId, Long achievementId) throws ApiException { + public ApiResponse getAchievementWithHttpInfo(Integer applicationId, Integer campaignId, Integer achievementId) throws ApiException { okhttp3.Call localVarCall = getAchievementValidateBeforeCall(applicationId, campaignId, achievementId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -7659,7 +8085,7 @@ public ApiResponse getAchievementWithHttpInfo(Long applicationId, L 404 Not found - */ - public okhttp3.Call getAchievementAsync(Long applicationId, Long campaignId, Long achievementId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAchievementAsync(Integer applicationId, Integer campaignId, Integer achievementId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAchievementValidateBeforeCall(applicationId, campaignId, achievementId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7678,7 +8104,7 @@ public okhttp3.Call getAchievementAsync(Long applicationId, Long campaignId, Lon 200 OK - */ - public okhttp3.Call getAdditionalCostCall(Long additionalCostId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAdditionalCostCall(Integer additionalCostId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -7709,7 +8135,7 @@ public okhttp3.Call getAdditionalCostCall(Long additionalCostId, final ApiCallba } @SuppressWarnings("rawtypes") - private okhttp3.Call getAdditionalCostValidateBeforeCall(Long additionalCostId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAdditionalCostValidateBeforeCall(Integer additionalCostId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'additionalCostId' is set if (additionalCostId == null) { @@ -7734,7 +8160,7 @@ private okhttp3.Call getAdditionalCostValidateBeforeCall(Long additionalCostId, 200 OK - */ - public AccountAdditionalCost getAdditionalCost(Long additionalCostId) throws ApiException { + public AccountAdditionalCost getAdditionalCost(Integer additionalCostId) throws ApiException { ApiResponse localVarResp = getAdditionalCostWithHttpInfo(additionalCostId); return localVarResp.getData(); } @@ -7751,7 +8177,7 @@ public AccountAdditionalCost getAdditionalCost(Long additionalCostId) throws Api 200 OK - */ - public ApiResponse getAdditionalCostWithHttpInfo(Long additionalCostId) throws ApiException { + public ApiResponse getAdditionalCostWithHttpInfo(Integer additionalCostId) throws ApiException { okhttp3.Call localVarCall = getAdditionalCostValidateBeforeCall(additionalCostId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -7770,7 +8196,7 @@ public ApiResponse getAdditionalCostWithHttpInfo(Long add 200 OK - */ - public okhttp3.Call getAdditionalCostAsync(Long additionalCostId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAdditionalCostAsync(Integer additionalCostId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAdditionalCostValidateBeforeCall(additionalCostId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7779,7 +8205,7 @@ public okhttp3.Call getAdditionalCostAsync(Long additionalCostId, final ApiCallb } /** * Build call for getAdditionalCosts - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param _callback Callback for upload/download progress @@ -7791,7 +8217,7 @@ public okhttp3.Call getAdditionalCostAsync(Long additionalCostId, final ApiCallb 200 OK - */ - public okhttp3.Call getAdditionalCostsCall(Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAdditionalCostsCall(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -7833,7 +8259,7 @@ public okhttp3.Call getAdditionalCostsCall(Long pageSize, Long skip, String sort } @SuppressWarnings("rawtypes") - private okhttp3.Call getAdditionalCostsValidateBeforeCall(Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAdditionalCostsValidateBeforeCall(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAdditionalCostsCall(pageSize, skip, sort, _callback); @@ -7844,7 +8270,7 @@ private okhttp3.Call getAdditionalCostsValidateBeforeCall(Long pageSize, Long sk /** * List additional costs * Returns all the defined additional costs for the account. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @return InlineResponse20038 @@ -7855,7 +8281,7 @@ private okhttp3.Call getAdditionalCostsValidateBeforeCall(Long pageSize, Long sk 200 OK - */ - public InlineResponse20038 getAdditionalCosts(Long pageSize, Long skip, String sort) throws ApiException { + public InlineResponse20038 getAdditionalCosts(Integer pageSize, Integer skip, String sort) throws ApiException { ApiResponse localVarResp = getAdditionalCostsWithHttpInfo(pageSize, skip, sort); return localVarResp.getData(); } @@ -7863,7 +8289,7 @@ public InlineResponse20038 getAdditionalCosts(Long pageSize, Long skip, String s /** * List additional costs * Returns all the defined additional costs for the account. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @return ApiResponse<InlineResponse20038> @@ -7874,7 +8300,7 @@ public InlineResponse20038 getAdditionalCosts(Long pageSize, Long skip, String s 200 OK - */ - public ApiResponse getAdditionalCostsWithHttpInfo(Long pageSize, Long skip, String sort) throws ApiException { + public ApiResponse getAdditionalCostsWithHttpInfo(Integer pageSize, Integer skip, String sort) throws ApiException { okhttp3.Call localVarCall = getAdditionalCostsValidateBeforeCall(pageSize, skip, sort, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -7883,7 +8309,7 @@ public ApiResponse getAdditionalCostsWithHttpInfo(Long page /** * List additional costs (asynchronously) * Returns all the defined additional costs for the account. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param _callback The callback to be executed when the API call finishes @@ -7895,7 +8321,7 @@ public ApiResponse getAdditionalCostsWithHttpInfo(Long page 200 OK - */ - public okhttp3.Call getAdditionalCostsAsync(Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAdditionalCostsAsync(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAdditionalCostsValidateBeforeCall(pageSize, skip, sort, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7914,7 +8340,7 @@ public okhttp3.Call getAdditionalCostsAsync(Long pageSize, Long skip, String sor 200 OK - */ - public okhttp3.Call getApplicationCall(Long applicationId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationCall(Integer applicationId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -7945,7 +8371,7 @@ public okhttp3.Call getApplicationCall(Long applicationId, final ApiCallback _ca } @SuppressWarnings("rawtypes") - private okhttp3.Call getApplicationValidateBeforeCall(Long applicationId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApplicationValidateBeforeCall(Integer applicationId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -7970,7 +8396,7 @@ private okhttp3.Call getApplicationValidateBeforeCall(Long applicationId, final 200 OK - */ - public Application getApplication(Long applicationId) throws ApiException { + public Application getApplication(Integer applicationId) throws ApiException { ApiResponse localVarResp = getApplicationWithHttpInfo(applicationId); return localVarResp.getData(); } @@ -7987,7 +8413,7 @@ public Application getApplication(Long applicationId) throws ApiException { 200 OK - */ - public ApiResponse getApplicationWithHttpInfo(Long applicationId) throws ApiException { + public ApiResponse getApplicationWithHttpInfo(Integer applicationId) throws ApiException { okhttp3.Call localVarCall = getApplicationValidateBeforeCall(applicationId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -8006,7 +8432,7 @@ public ApiResponse getApplicationWithHttpInfo(Long applicationId) t 200 OK - */ - public okhttp3.Call getApplicationAsync(Long applicationId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationAsync(Integer applicationId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApplicationValidateBeforeCall(applicationId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8025,7 +8451,7 @@ public okhttp3.Call getApplicationAsync(Long applicationId, final ApiCallback 200 OK - */ - public okhttp3.Call getApplicationApiHealthCall(Long applicationId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationApiHealthCall(Integer applicationId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -8056,7 +8482,7 @@ public okhttp3.Call getApplicationApiHealthCall(Long applicationId, final ApiCal } @SuppressWarnings("rawtypes") - private okhttp3.Call getApplicationApiHealthValidateBeforeCall(Long applicationId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApplicationApiHealthValidateBeforeCall(Integer applicationId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -8081,7 +8507,7 @@ private okhttp3.Call getApplicationApiHealthValidateBeforeCall(Long applicationI 200 OK - */ - public ApplicationApiHealth getApplicationApiHealth(Long applicationId) throws ApiException { + public ApplicationApiHealth getApplicationApiHealth(Integer applicationId) throws ApiException { ApiResponse localVarResp = getApplicationApiHealthWithHttpInfo(applicationId); return localVarResp.getData(); } @@ -8098,7 +8524,7 @@ public ApplicationApiHealth getApplicationApiHealth(Long applicationId) throws A 200 OK - */ - public ApiResponse getApplicationApiHealthWithHttpInfo(Long applicationId) throws ApiException { + public ApiResponse getApplicationApiHealthWithHttpInfo(Integer applicationId) throws ApiException { okhttp3.Call localVarCall = getApplicationApiHealthValidateBeforeCall(applicationId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -8117,7 +8543,7 @@ public ApiResponse getApplicationApiHealthWithHttpInfo(Lon 200 OK - */ - public okhttp3.Call getApplicationApiHealthAsync(Long applicationId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationApiHealthAsync(Integer applicationId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApplicationApiHealthValidateBeforeCall(applicationId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8137,7 +8563,7 @@ public okhttp3.Call getApplicationApiHealthAsync(Long applicationId, final ApiCa 200 OK - */ - public okhttp3.Call getApplicationCustomerCall(Long applicationId, Long customerId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationCustomerCall(Integer applicationId, Integer customerId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -8169,7 +8595,7 @@ public okhttp3.Call getApplicationCustomerCall(Long applicationId, Long customer } @SuppressWarnings("rawtypes") - private okhttp3.Call getApplicationCustomerValidateBeforeCall(Long applicationId, Long customerId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApplicationCustomerValidateBeforeCall(Integer applicationId, Integer customerId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -8200,7 +8626,7 @@ private okhttp3.Call getApplicationCustomerValidateBeforeCall(Long applicationId 200 OK - */ - public ApplicationCustomer getApplicationCustomer(Long applicationId, Long customerId) throws ApiException { + public ApplicationCustomer getApplicationCustomer(Integer applicationId, Integer customerId) throws ApiException { ApiResponse localVarResp = getApplicationCustomerWithHttpInfo(applicationId, customerId); return localVarResp.getData(); } @@ -8218,7 +8644,7 @@ public ApplicationCustomer getApplicationCustomer(Long applicationId, Long custo 200 OK - */ - public ApiResponse getApplicationCustomerWithHttpInfo(Long applicationId, Long customerId) throws ApiException { + public ApiResponse getApplicationCustomerWithHttpInfo(Integer applicationId, Integer customerId) throws ApiException { okhttp3.Call localVarCall = getApplicationCustomerValidateBeforeCall(applicationId, customerId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -8238,7 +8664,7 @@ public ApiResponse getApplicationCustomerWithHttpInfo(Long 200 OK - */ - public okhttp3.Call getApplicationCustomerAsync(Long applicationId, Long customerId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationCustomerAsync(Integer applicationId, Integer customerId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApplicationCustomerValidateBeforeCall(applicationId, customerId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8249,7 +8675,7 @@ public okhttp3.Call getApplicationCustomerAsync(Long applicationId, Long custome * Build call for getApplicationCustomerFriends * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param integrationId The Integration ID of the Advocate's Profile. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -8262,7 +8688,7 @@ public okhttp3.Call getApplicationCustomerAsync(Long applicationId, Long custome 200 OK - */ - public okhttp3.Call getApplicationCustomerFriendsCall(Long applicationId, String integrationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationCustomerFriendsCall(Integer applicationId, String integrationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -8310,7 +8736,7 @@ public okhttp3.Call getApplicationCustomerFriendsCall(Long applicationId, String } @SuppressWarnings("rawtypes") - private okhttp3.Call getApplicationCustomerFriendsValidateBeforeCall(Long applicationId, String integrationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApplicationCustomerFriendsValidateBeforeCall(Integer applicationId, String integrationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -8333,7 +8759,7 @@ private okhttp3.Call getApplicationCustomerFriendsValidateBeforeCall(Long applic * List the friends referred by the specified customer profile in this Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param integrationId The Integration ID of the Advocate's Profile. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -8345,7 +8771,7 @@ private okhttp3.Call getApplicationCustomerFriendsValidateBeforeCall(Long applic 200 OK - */ - public InlineResponse20035 getApplicationCustomerFriends(Long applicationId, String integrationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize) throws ApiException { + public InlineResponse20035 getApplicationCustomerFriends(Integer applicationId, String integrationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException { ApiResponse localVarResp = getApplicationCustomerFriendsWithHttpInfo(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize); return localVarResp.getData(); } @@ -8355,7 +8781,7 @@ public InlineResponse20035 getApplicationCustomerFriends(Long applicationId, Str * List the friends referred by the specified customer profile in this Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param integrationId The Integration ID of the Advocate's Profile. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -8367,7 +8793,7 @@ public InlineResponse20035 getApplicationCustomerFriends(Long applicationId, Str 200 OK - */ - public ApiResponse getApplicationCustomerFriendsWithHttpInfo(Long applicationId, String integrationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize) throws ApiException { + public ApiResponse getApplicationCustomerFriendsWithHttpInfo(Integer applicationId, String integrationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException { okhttp3.Call localVarCall = getApplicationCustomerFriendsValidateBeforeCall(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -8378,7 +8804,7 @@ public ApiResponse getApplicationCustomerFriendsWithHttpInf * List the friends referred by the specified customer profile in this Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param integrationId The Integration ID of the Advocate's Profile. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -8391,7 +8817,7 @@ public ApiResponse getApplicationCustomerFriendsWithHttpInf 200 OK - */ - public okhttp3.Call getApplicationCustomerFriendsAsync(Long applicationId, String integrationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationCustomerFriendsAsync(Integer applicationId, String integrationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApplicationCustomerFriendsValidateBeforeCall(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8402,7 +8828,7 @@ public okhttp3.Call getApplicationCustomerFriendsAsync(Long applicationId, Strin * Build call for getApplicationCustomers * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param integrationId Filter results performing an exact matching against the profile integration identifier. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @param _callback Callback for upload/download progress @@ -8414,7 +8840,7 @@ public okhttp3.Call getApplicationCustomerFriendsAsync(Long applicationId, Strin 200 OK - */ - public okhttp3.Call getApplicationCustomersCall(Long applicationId, String integrationId, Long pageSize, Long skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationCustomersCall(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -8461,7 +8887,7 @@ public okhttp3.Call getApplicationCustomersCall(Long applicationId, String integ } @SuppressWarnings("rawtypes") - private okhttp3.Call getApplicationCustomersValidateBeforeCall(Long applicationId, String integrationId, Long pageSize, Long skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApplicationCustomersValidateBeforeCall(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -8479,7 +8905,7 @@ private okhttp3.Call getApplicationCustomersValidateBeforeCall(Long applicationI * List all the customers of the specified application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param integrationId Filter results performing an exact matching against the profile integration identifier. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @return InlineResponse20024 @@ -8490,7 +8916,7 @@ private okhttp3.Call getApplicationCustomersValidateBeforeCall(Long applicationI 200 OK - */ - public InlineResponse20024 getApplicationCustomers(Long applicationId, String integrationId, Long pageSize, Long skip, Boolean withTotalResultSize) throws ApiException { + public InlineResponse20024 getApplicationCustomers(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Boolean withTotalResultSize) throws ApiException { ApiResponse localVarResp = getApplicationCustomersWithHttpInfo(applicationId, integrationId, pageSize, skip, withTotalResultSize); return localVarResp.getData(); } @@ -8500,7 +8926,7 @@ public InlineResponse20024 getApplicationCustomers(Long applicationId, String in * List all the customers of the specified application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param integrationId Filter results performing an exact matching against the profile integration identifier. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @return ApiResponse<InlineResponse20024> @@ -8511,7 +8937,7 @@ public InlineResponse20024 getApplicationCustomers(Long applicationId, String in 200 OK - */ - public ApiResponse getApplicationCustomersWithHttpInfo(Long applicationId, String integrationId, Long pageSize, Long skip, Boolean withTotalResultSize) throws ApiException { + public ApiResponse getApplicationCustomersWithHttpInfo(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Boolean withTotalResultSize) throws ApiException { okhttp3.Call localVarCall = getApplicationCustomersValidateBeforeCall(applicationId, integrationId, pageSize, skip, withTotalResultSize, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -8522,7 +8948,7 @@ public ApiResponse getApplicationCustomersWithHttpInfo(Long * List all the customers of the specified application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param integrationId Filter results performing an exact matching against the profile integration identifier. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @param _callback The callback to be executed when the API call finishes @@ -8534,7 +8960,7 @@ public ApiResponse getApplicationCustomersWithHttpInfo(Long 200 OK - */ - public okhttp3.Call getApplicationCustomersAsync(Long applicationId, String integrationId, Long pageSize, Long skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationCustomersAsync(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApplicationCustomersValidateBeforeCall(applicationId, integrationId, pageSize, skip, withTotalResultSize, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8545,7 +8971,7 @@ public okhttp3.Call getApplicationCustomersAsync(Long applicationId, String inte * Build call for getApplicationCustomersByAttributes * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @param _callback Callback for upload/download progress @@ -8557,7 +8983,7 @@ public okhttp3.Call getApplicationCustomersAsync(Long applicationId, String inte 200 OK - */ - public okhttp3.Call getApplicationCustomersByAttributesCall(Long applicationId, CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationCustomersByAttributesCall(Integer applicationId, CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -8600,7 +9026,7 @@ public okhttp3.Call getApplicationCustomersByAttributesCall(Long applicationId, } @SuppressWarnings("rawtypes") - private okhttp3.Call getApplicationCustomersByAttributesValidateBeforeCall(Long applicationId, CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApplicationCustomersByAttributesValidateBeforeCall(Integer applicationId, CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -8623,7 +9049,7 @@ private okhttp3.Call getApplicationCustomersByAttributesValidateBeforeCall(Long * Get a list of the application customers matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @return InlineResponse20025 @@ -8634,7 +9060,7 @@ private okhttp3.Call getApplicationCustomersByAttributesValidateBeforeCall(Long 200 OK - */ - public InlineResponse20025 getApplicationCustomersByAttributes(Long applicationId, CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean withTotalResultSize) throws ApiException { + public InlineResponse20025 getApplicationCustomersByAttributes(Integer applicationId, CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean withTotalResultSize) throws ApiException { ApiResponse localVarResp = getApplicationCustomersByAttributesWithHttpInfo(applicationId, body, pageSize, skip, withTotalResultSize); return localVarResp.getData(); } @@ -8644,7 +9070,7 @@ public InlineResponse20025 getApplicationCustomersByAttributes(Long applicationI * Get a list of the application customers matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @return ApiResponse<InlineResponse20025> @@ -8655,7 +9081,7 @@ public InlineResponse20025 getApplicationCustomersByAttributes(Long applicationI 200 OK - */ - public ApiResponse getApplicationCustomersByAttributesWithHttpInfo(Long applicationId, CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean withTotalResultSize) throws ApiException { + public ApiResponse getApplicationCustomersByAttributesWithHttpInfo(Integer applicationId, CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean withTotalResultSize) throws ApiException { okhttp3.Call localVarCall = getApplicationCustomersByAttributesValidateBeforeCall(applicationId, body, pageSize, skip, withTotalResultSize, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -8666,7 +9092,7 @@ public ApiResponse getApplicationCustomersByAttributesWithH * Get a list of the application customers matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) * @param _callback The callback to be executed when the API call finishes @@ -8678,7 +9104,7 @@ public ApiResponse getApplicationCustomersByAttributesWithH 200 OK - */ - public okhttp3.Call getApplicationCustomersByAttributesAsync(Long applicationId, CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationCustomersByAttributesAsync(Integer applicationId, CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApplicationCustomersByAttributesValidateBeforeCall(applicationId, body, pageSize, skip, withTotalResultSize, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8688,7 +9114,7 @@ public okhttp3.Call getApplicationCustomersByAttributesAsync(Long applicationId, /** * Build call for getApplicationEventTypes * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param _callback Callback for upload/download progress @@ -8700,7 +9126,7 @@ public okhttp3.Call getApplicationCustomersByAttributesAsync(Long applicationId, 200 OK - */ - public okhttp3.Call getApplicationEventTypesCall(Long applicationId, Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationEventTypesCall(Integer applicationId, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -8743,7 +9169,7 @@ public okhttp3.Call getApplicationEventTypesCall(Long applicationId, Long pageSi } @SuppressWarnings("rawtypes") - private okhttp3.Call getApplicationEventTypesValidateBeforeCall(Long applicationId, Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApplicationEventTypesValidateBeforeCall(Integer applicationId, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -8760,7 +9186,7 @@ private okhttp3.Call getApplicationEventTypesValidateBeforeCall(Long application * List Applications event types * Get all of the distinct values of the Event `type` property for events recorded in the application. See also: [Track an event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @return InlineResponse20031 @@ -8771,7 +9197,7 @@ private okhttp3.Call getApplicationEventTypesValidateBeforeCall(Long application 200 OK - */ - public InlineResponse20031 getApplicationEventTypes(Long applicationId, Long pageSize, Long skip, String sort) throws ApiException { + public InlineResponse20031 getApplicationEventTypes(Integer applicationId, Integer pageSize, Integer skip, String sort) throws ApiException { ApiResponse localVarResp = getApplicationEventTypesWithHttpInfo(applicationId, pageSize, skip, sort); return localVarResp.getData(); } @@ -8780,7 +9206,7 @@ public InlineResponse20031 getApplicationEventTypes(Long applicationId, Long pag * List Applications event types * Get all of the distinct values of the Event `type` property for events recorded in the application. See also: [Track an event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @return ApiResponse<InlineResponse20031> @@ -8791,7 +9217,7 @@ public InlineResponse20031 getApplicationEventTypes(Long applicationId, Long pag 200 OK - */ - public ApiResponse getApplicationEventTypesWithHttpInfo(Long applicationId, Long pageSize, Long skip, String sort) throws ApiException { + public ApiResponse getApplicationEventTypesWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort) throws ApiException { okhttp3.Call localVarCall = getApplicationEventTypesValidateBeforeCall(applicationId, pageSize, skip, sort, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -8801,7 +9227,7 @@ public ApiResponse getApplicationEventTypesWithHttpInfo(Lon * List Applications event types (asynchronously) * Get all of the distinct values of the Event `type` property for events recorded in the application. See also: [Track an event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param _callback The callback to be executed when the API call finishes @@ -8813,7 +9239,7 @@ public ApiResponse getApplicationEventTypesWithHttpInfo(Lon 200 OK - */ - public okhttp3.Call getApplicationEventTypesAsync(Long applicationId, Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationEventTypesAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApplicationEventTypesValidateBeforeCall(applicationId, pageSize, skip, sort, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -8823,7 +9249,7 @@ public okhttp3.Call getApplicationEventTypesAsync(Long applicationId, Long pageS /** * Build call for getApplicationEventsWithoutTotalCount * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param type Comma-separated list of types by which to filter events. Must be exact match(es). (optional) @@ -8846,7 +9272,7 @@ public okhttp3.Call getApplicationEventTypesAsync(Long applicationId, Long pageS 200 OK - */ - public okhttp3.Call getApplicationEventsWithoutTotalCountCall(Long applicationId, Long pageSize, Long skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationEventsWithoutTotalCountCall(Integer applicationId, Integer pageSize, Integer skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -8933,7 +9359,7 @@ public okhttp3.Call getApplicationEventsWithoutTotalCountCall(Long applicationId } @SuppressWarnings("rawtypes") - private okhttp3.Call getApplicationEventsWithoutTotalCountValidateBeforeCall(Long applicationId, Long pageSize, Long skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApplicationEventsWithoutTotalCountValidateBeforeCall(Integer applicationId, Integer pageSize, Integer skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -8950,7 +9376,7 @@ private okhttp3.Call getApplicationEventsWithoutTotalCountValidateBeforeCall(Lon * List Applications events * Lists all events recorded for an application. Instead of having the total number of results in the response, this endpoint only mentions whether there are more results. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param type Comma-separated list of types by which to filter events. Must be exact match(es). (optional) @@ -8972,7 +9398,7 @@ private okhttp3.Call getApplicationEventsWithoutTotalCountValidateBeforeCall(Lon 200 OK - */ - public InlineResponse20030 getApplicationEventsWithoutTotalCount(Long applicationId, Long pageSize, Long skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery) throws ApiException { + public InlineResponse20030 getApplicationEventsWithoutTotalCount(Integer applicationId, Integer pageSize, Integer skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery) throws ApiException { ApiResponse localVarResp = getApplicationEventsWithoutTotalCountWithHttpInfo(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery); return localVarResp.getData(); } @@ -8981,7 +9407,7 @@ public InlineResponse20030 getApplicationEventsWithoutTotalCount(Long applicatio * List Applications events * Lists all events recorded for an application. Instead of having the total number of results in the response, this endpoint only mentions whether there are more results. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param type Comma-separated list of types by which to filter events. Must be exact match(es). (optional) @@ -9003,7 +9429,7 @@ public InlineResponse20030 getApplicationEventsWithoutTotalCount(Long applicatio 200 OK - */ - public ApiResponse getApplicationEventsWithoutTotalCountWithHttpInfo(Long applicationId, Long pageSize, Long skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery) throws ApiException { + public ApiResponse getApplicationEventsWithoutTotalCountWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery) throws ApiException { okhttp3.Call localVarCall = getApplicationEventsWithoutTotalCountValidateBeforeCall(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -9013,7 +9439,7 @@ public ApiResponse getApplicationEventsWithoutTotalCountWit * List Applications events (asynchronously) * Lists all events recorded for an application. Instead of having the total number of results in the response, this endpoint only mentions whether there are more results. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param type Comma-separated list of types by which to filter events. Must be exact match(es). (optional) @@ -9036,7 +9462,7 @@ public ApiResponse getApplicationEventsWithoutTotalCountWit 200 OK - */ - public okhttp3.Call getApplicationEventsWithoutTotalCountAsync(Long applicationId, Long pageSize, Long skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationEventsWithoutTotalCountAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApplicationEventsWithoutTotalCountValidateBeforeCall(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -9056,7 +9482,7 @@ public okhttp3.Call getApplicationEventsWithoutTotalCountAsync(Long applicationI 200 OK - */ - public okhttp3.Call getApplicationSessionCall(Long applicationId, Long sessionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationSessionCall(Integer applicationId, Integer sessionId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -9088,7 +9514,7 @@ public okhttp3.Call getApplicationSessionCall(Long applicationId, Long sessionId } @SuppressWarnings("rawtypes") - private okhttp3.Call getApplicationSessionValidateBeforeCall(Long applicationId, Long sessionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApplicationSessionValidateBeforeCall(Integer applicationId, Integer sessionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -9119,7 +9545,7 @@ private okhttp3.Call getApplicationSessionValidateBeforeCall(Long applicationId, 200 OK - */ - public ApplicationSession getApplicationSession(Long applicationId, Long sessionId) throws ApiException { + public ApplicationSession getApplicationSession(Integer applicationId, Integer sessionId) throws ApiException { ApiResponse localVarResp = getApplicationSessionWithHttpInfo(applicationId, sessionId); return localVarResp.getData(); } @@ -9137,7 +9563,7 @@ public ApplicationSession getApplicationSession(Long applicationId, Long session 200 OK - */ - public ApiResponse getApplicationSessionWithHttpInfo(Long applicationId, Long sessionId) throws ApiException { + public ApiResponse getApplicationSessionWithHttpInfo(Integer applicationId, Integer sessionId) throws ApiException { okhttp3.Call localVarCall = getApplicationSessionValidateBeforeCall(applicationId, sessionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -9157,7 +9583,7 @@ public ApiResponse getApplicationSessionWithHttpInfo(Long ap 200 OK - */ - public okhttp3.Call getApplicationSessionAsync(Long applicationId, Long sessionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationSessionAsync(Integer applicationId, Integer sessionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApplicationSessionValidateBeforeCall(applicationId, sessionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -9167,7 +9593,7 @@ public okhttp3.Call getApplicationSessionAsync(Long applicationId, Long sessionI /** * Build call for getApplicationSessions * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param profile Profile integration ID filter for sessions. Must be exact match. (optional) @@ -9187,7 +9613,7 @@ public okhttp3.Call getApplicationSessionAsync(Long applicationId, Long sessionI 200 OK - */ - public okhttp3.Call getApplicationSessionsCall(Long applicationId, Long pageSize, Long skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationSessionsCall(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -9262,7 +9688,7 @@ public okhttp3.Call getApplicationSessionsCall(Long applicationId, Long pageSize } @SuppressWarnings("rawtypes") - private okhttp3.Call getApplicationSessionsValidateBeforeCall(Long applicationId, Long pageSize, Long skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApplicationSessionsValidateBeforeCall(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -9279,7 +9705,7 @@ private okhttp3.Call getApplicationSessionsValidateBeforeCall(Long applicationId * List Application sessions * List all the sessions of the specified Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param profile Profile integration ID filter for sessions. Must be exact match. (optional) @@ -9298,7 +9724,7 @@ private okhttp3.Call getApplicationSessionsValidateBeforeCall(Long applicationId 200 OK - */ - public InlineResponse20029 getApplicationSessions(Long applicationId, Long pageSize, Long skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId) throws ApiException { + public InlineResponse20029 getApplicationSessions(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId) throws ApiException { ApiResponse localVarResp = getApplicationSessionsWithHttpInfo(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId); return localVarResp.getData(); } @@ -9307,7 +9733,7 @@ public InlineResponse20029 getApplicationSessions(Long applicationId, Long pageS * List Application sessions * List all the sessions of the specified Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param profile Profile integration ID filter for sessions. Must be exact match. (optional) @@ -9326,7 +9752,7 @@ public InlineResponse20029 getApplicationSessions(Long applicationId, Long pageS 200 OK - */ - public ApiResponse getApplicationSessionsWithHttpInfo(Long applicationId, Long pageSize, Long skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId) throws ApiException { + public ApiResponse getApplicationSessionsWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId) throws ApiException { okhttp3.Call localVarCall = getApplicationSessionsValidateBeforeCall(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -9336,7 +9762,7 @@ public ApiResponse getApplicationSessionsWithHttpInfo(Long * List Application sessions (asynchronously) * List all the sessions of the specified Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param profile Profile integration ID filter for sessions. Must be exact match. (optional) @@ -9356,7 +9782,7 @@ public ApiResponse getApplicationSessionsWithHttpInfo(Long 200 OK - */ - public okhttp3.Call getApplicationSessionsAsync(Long applicationId, Long pageSize, Long skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationSessionsAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApplicationSessionsValidateBeforeCall(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -9365,7 +9791,7 @@ public okhttp3.Call getApplicationSessionsAsync(Long applicationId, Long pageSiz } /** * Build call for getApplications - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param _callback Callback for upload/download progress @@ -9377,7 +9803,7 @@ public okhttp3.Call getApplicationSessionsAsync(Long applicationId, Long pageSiz 200 OK - */ - public okhttp3.Call getApplicationsCall(Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationsCall(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -9419,7 +9845,7 @@ public okhttp3.Call getApplicationsCall(Long pageSize, Long skip, String sort, f } @SuppressWarnings("rawtypes") - private okhttp3.Call getApplicationsValidateBeforeCall(Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getApplicationsValidateBeforeCall(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApplicationsCall(pageSize, skip, sort, _callback); @@ -9430,7 +9856,7 @@ private okhttp3.Call getApplicationsValidateBeforeCall(Long pageSize, Long skip, /** * List Applications * List all applications in the current account. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @return InlineResponse2007 @@ -9441,7 +9867,7 @@ private okhttp3.Call getApplicationsValidateBeforeCall(Long pageSize, Long skip, 200 OK - */ - public InlineResponse2007 getApplications(Long pageSize, Long skip, String sort) throws ApiException { + public InlineResponse2007 getApplications(Integer pageSize, Integer skip, String sort) throws ApiException { ApiResponse localVarResp = getApplicationsWithHttpInfo(pageSize, skip, sort); return localVarResp.getData(); } @@ -9449,7 +9875,7 @@ public InlineResponse2007 getApplications(Long pageSize, Long skip, String sort) /** * List Applications * List all applications in the current account. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @return ApiResponse<InlineResponse2007> @@ -9460,7 +9886,7 @@ public InlineResponse2007 getApplications(Long pageSize, Long skip, String sort) 200 OK - */ - public ApiResponse getApplicationsWithHttpInfo(Long pageSize, Long skip, String sort) throws ApiException { + public ApiResponse getApplicationsWithHttpInfo(Integer pageSize, Integer skip, String sort) throws ApiException { okhttp3.Call localVarCall = getApplicationsValidateBeforeCall(pageSize, skip, sort, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -9469,7 +9895,7 @@ public ApiResponse getApplicationsWithHttpInfo(Long pageSize /** * List Applications (asynchronously) * List all applications in the current account. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param _callback The callback to be executed when the API call finishes @@ -9481,7 +9907,7 @@ public ApiResponse getApplicationsWithHttpInfo(Long pageSize 200 OK - */ - public okhttp3.Call getApplicationsAsync(Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getApplicationsAsync(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getApplicationsValidateBeforeCall(pageSize, skip, sort, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -9500,7 +9926,7 @@ public okhttp3.Call getApplicationsAsync(Long pageSize, Long skip, String sort, 200 OK - */ - public okhttp3.Call getAttributeCall(Long attributeId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAttributeCall(Integer attributeId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -9531,7 +9957,7 @@ public okhttp3.Call getAttributeCall(Long attributeId, final ApiCallback _callba } @SuppressWarnings("rawtypes") - private okhttp3.Call getAttributeValidateBeforeCall(Long attributeId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAttributeValidateBeforeCall(Integer attributeId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'attributeId' is set if (attributeId == null) { @@ -9556,7 +9982,7 @@ private okhttp3.Call getAttributeValidateBeforeCall(Long attributeId, final ApiC 200 OK - */ - public Attribute getAttribute(Long attributeId) throws ApiException { + public Attribute getAttribute(Integer attributeId) throws ApiException { ApiResponse localVarResp = getAttributeWithHttpInfo(attributeId); return localVarResp.getData(); } @@ -9573,7 +9999,7 @@ public Attribute getAttribute(Long attributeId) throws ApiException { 200 OK - */ - public ApiResponse getAttributeWithHttpInfo(Long attributeId) throws ApiException { + public ApiResponse getAttributeWithHttpInfo(Integer attributeId) throws ApiException { okhttp3.Call localVarCall = getAttributeValidateBeforeCall(attributeId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -9592,7 +10018,7 @@ public ApiResponse getAttributeWithHttpInfo(Long attributeId) throws 200 OK - */ - public okhttp3.Call getAttributeAsync(Long attributeId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAttributeAsync(Integer attributeId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAttributeValidateBeforeCall(attributeId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -9601,7 +10027,7 @@ public okhttp3.Call getAttributeAsync(Long attributeId, final ApiCallback 200 OK - */ - public okhttp3.Call getAttributesCall(Long pageSize, Long skip, String sort, String entity, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAttributesCall(Integer pageSize, Integer skip, String sort, String entity, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -9660,7 +10086,7 @@ public okhttp3.Call getAttributesCall(Long pageSize, Long skip, String sort, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call getAttributesValidateBeforeCall(Long pageSize, Long skip, String sort, String entity, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAttributesValidateBeforeCall(Integer pageSize, Integer skip, String sort, String entity, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAttributesCall(pageSize, skip, sort, entity, _callback); @@ -9671,7 +10097,7 @@ private okhttp3.Call getAttributesValidateBeforeCall(Long pageSize, Long skip, S /** * List custom attributes * Return all the custom attributes for the account. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param entity Returned attributes will be filtered by supplied entity. (optional) @@ -9683,7 +10109,7 @@ private okhttp3.Call getAttributesValidateBeforeCall(Long pageSize, Long skip, S 200 OK - */ - public InlineResponse20036 getAttributes(Long pageSize, Long skip, String sort, String entity) throws ApiException { + public InlineResponse20036 getAttributes(Integer pageSize, Integer skip, String sort, String entity) throws ApiException { ApiResponse localVarResp = getAttributesWithHttpInfo(pageSize, skip, sort, entity); return localVarResp.getData(); } @@ -9691,7 +10117,7 @@ public InlineResponse20036 getAttributes(Long pageSize, Long skip, String sort, /** * List custom attributes * Return all the custom attributes for the account. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param entity Returned attributes will be filtered by supplied entity. (optional) @@ -9703,7 +10129,7 @@ public InlineResponse20036 getAttributes(Long pageSize, Long skip, String sort, 200 OK - */ - public ApiResponse getAttributesWithHttpInfo(Long pageSize, Long skip, String sort, String entity) throws ApiException { + public ApiResponse getAttributesWithHttpInfo(Integer pageSize, Integer skip, String sort, String entity) throws ApiException { okhttp3.Call localVarCall = getAttributesValidateBeforeCall(pageSize, skip, sort, entity, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -9712,7 +10138,7 @@ public ApiResponse getAttributesWithHttpInfo(Long pageSize, /** * List custom attributes (asynchronously) * Return all the custom attributes for the account. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param entity Returned attributes will be filtered by supplied entity. (optional) @@ -9725,7 +10151,7 @@ public ApiResponse getAttributesWithHttpInfo(Long pageSize, 200 OK - */ - public okhttp3.Call getAttributesAsync(Long pageSize, Long skip, String sort, String entity, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAttributesAsync(Integer pageSize, Integer skip, String sort, String entity, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAttributesValidateBeforeCall(pageSize, skip, sort, entity, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -9735,7 +10161,7 @@ public okhttp3.Call getAttributesAsync(Long pageSize, Long skip, String sort, St /** * Build call for getAudienceMemberships * @param audienceId The ID of the audience. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param profileQuery The filter to select a profile. (optional) @@ -9749,7 +10175,7 @@ public okhttp3.Call getAttributesAsync(Long pageSize, Long skip, String sort, St 404 Not found - */ - public okhttp3.Call getAudienceMembershipsCall(Long audienceId, Long pageSize, Long skip, String sort, String profileQuery, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAudienceMembershipsCall(Integer audienceId, Integer pageSize, Integer skip, String sort, String profileQuery, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -9796,7 +10222,7 @@ public okhttp3.Call getAudienceMembershipsCall(Long audienceId, Long pageSize, L } @SuppressWarnings("rawtypes") - private okhttp3.Call getAudienceMembershipsValidateBeforeCall(Long audienceId, Long pageSize, Long skip, String sort, String profileQuery, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAudienceMembershipsValidateBeforeCall(Integer audienceId, Integer pageSize, Integer skip, String sort, String profileQuery, final ApiCallback _callback) throws ApiException { // verify the required parameter 'audienceId' is set if (audienceId == null) { @@ -9813,7 +10239,7 @@ private okhttp3.Call getAudienceMembershipsValidateBeforeCall(Long audienceId, L * List audience members * Get a paginated list of the customer profiles in a given audience. A maximum of 1000 customer profiles per page is allowed. * @param audienceId The ID of the audience. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param profileQuery The filter to select a profile. (optional) @@ -9826,7 +10252,7 @@ private okhttp3.Call getAudienceMembershipsValidateBeforeCall(Long audienceId, L 404 Not found - */ - public InlineResponse20034 getAudienceMemberships(Long audienceId, Long pageSize, Long skip, String sort, String profileQuery) throws ApiException { + public InlineResponse20034 getAudienceMemberships(Integer audienceId, Integer pageSize, Integer skip, String sort, String profileQuery) throws ApiException { ApiResponse localVarResp = getAudienceMembershipsWithHttpInfo(audienceId, pageSize, skip, sort, profileQuery); return localVarResp.getData(); } @@ -9835,7 +10261,7 @@ public InlineResponse20034 getAudienceMemberships(Long audienceId, Long pageSize * List audience members * Get a paginated list of the customer profiles in a given audience. A maximum of 1000 customer profiles per page is allowed. * @param audienceId The ID of the audience. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param profileQuery The filter to select a profile. (optional) @@ -9848,7 +10274,7 @@ public InlineResponse20034 getAudienceMemberships(Long audienceId, Long pageSize 404 Not found - */ - public ApiResponse getAudienceMembershipsWithHttpInfo(Long audienceId, Long pageSize, Long skip, String sort, String profileQuery) throws ApiException { + public ApiResponse getAudienceMembershipsWithHttpInfo(Integer audienceId, Integer pageSize, Integer skip, String sort, String profileQuery) throws ApiException { okhttp3.Call localVarCall = getAudienceMembershipsValidateBeforeCall(audienceId, pageSize, skip, sort, profileQuery, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -9858,7 +10284,7 @@ public ApiResponse getAudienceMembershipsWithHttpInfo(Long * List audience members (asynchronously) * Get a paginated list of the customer profiles in a given audience. A maximum of 1000 customer profiles per page is allowed. * @param audienceId The ID of the audience. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param profileQuery The filter to select a profile. (optional) @@ -9872,7 +10298,7 @@ public ApiResponse getAudienceMembershipsWithHttpInfo(Long 404 Not found - */ - public okhttp3.Call getAudienceMembershipsAsync(Long audienceId, Long pageSize, Long skip, String sort, String profileQuery, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAudienceMembershipsAsync(Integer audienceId, Integer pageSize, Integer skip, String sort, String profileQuery, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAudienceMembershipsValidateBeforeCall(audienceId, pageSize, skip, sort, profileQuery, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -9881,7 +10307,7 @@ public okhttp3.Call getAudienceMembershipsAsync(Long audienceId, Long pageSize, } /** * Build call for getAudiences - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -9894,7 +10320,7 @@ public okhttp3.Call getAudienceMembershipsAsync(Long audienceId, Long pageSize, 200 OK - */ - public okhttp3.Call getAudiencesCall(Long pageSize, Long skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAudiencesCall(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -9940,7 +10366,7 @@ public okhttp3.Call getAudiencesCall(Long pageSize, Long skip, String sort, Bool } @SuppressWarnings("rawtypes") - private okhttp3.Call getAudiencesValidateBeforeCall(Long pageSize, Long skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAudiencesValidateBeforeCall(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAudiencesCall(pageSize, skip, sort, withTotalResultSize, _callback); @@ -9951,7 +10377,7 @@ private okhttp3.Call getAudiencesValidateBeforeCall(Long pageSize, Long skip, St /** * List audiences * Get all audiences created in the account. To create an audience, use [Create audience](https://docs.talon.one/integration-api#tag/Audiences/operation/createAudienceV2). - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -9963,7 +10389,7 @@ private okhttp3.Call getAudiencesValidateBeforeCall(Long pageSize, Long skip, St 200 OK - */ - public InlineResponse20032 getAudiences(Long pageSize, Long skip, String sort, Boolean withTotalResultSize) throws ApiException { + public InlineResponse20032 getAudiences(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException { ApiResponse localVarResp = getAudiencesWithHttpInfo(pageSize, skip, sort, withTotalResultSize); return localVarResp.getData(); } @@ -9971,7 +10397,7 @@ public InlineResponse20032 getAudiences(Long pageSize, Long skip, String sort, B /** * List audiences * Get all audiences created in the account. To create an audience, use [Create audience](https://docs.talon.one/integration-api#tag/Audiences/operation/createAudienceV2). - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -9983,7 +10409,7 @@ public InlineResponse20032 getAudiences(Long pageSize, Long skip, String sort, B 200 OK - */ - public ApiResponse getAudiencesWithHttpInfo(Long pageSize, Long skip, String sort, Boolean withTotalResultSize) throws ApiException { + public ApiResponse getAudiencesWithHttpInfo(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException { okhttp3.Call localVarCall = getAudiencesValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -9992,7 +10418,7 @@ public ApiResponse getAudiencesWithHttpInfo(Long pageSize, /** * List audiences (asynchronously) * Get all audiences created in the account. To create an audience, use [Create audience](https://docs.talon.one/integration-api#tag/Audiences/operation/createAudienceV2). - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -10005,7 +10431,7 @@ public ApiResponse getAudiencesWithHttpInfo(Long pageSize, 200 OK - */ - public okhttp3.Call getAudiencesAsync(Long pageSize, Long skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAudiencesAsync(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAudiencesValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -10147,7 +10573,7 @@ public okhttp3.Call getAudiencesAnalyticsAsync(String audienceIds, String sort, 200 OK - */ - public okhttp3.Call getCampaignCall(Long applicationId, Long campaignId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCampaignCall(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -10179,7 +10605,7 @@ public okhttp3.Call getCampaignCall(Long applicationId, Long campaignId, final A } @SuppressWarnings("rawtypes") - private okhttp3.Call getCampaignValidateBeforeCall(Long applicationId, Long campaignId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCampaignValidateBeforeCall(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -10210,7 +10636,7 @@ private okhttp3.Call getCampaignValidateBeforeCall(Long applicationId, Long camp 200 OK - */ - public Campaign getCampaign(Long applicationId, Long campaignId) throws ApiException { + public Campaign getCampaign(Integer applicationId, Integer campaignId) throws ApiException { ApiResponse localVarResp = getCampaignWithHttpInfo(applicationId, campaignId); return localVarResp.getData(); } @@ -10228,7 +10654,7 @@ public Campaign getCampaign(Long applicationId, Long campaignId) throws ApiExcep 200 OK - */ - public ApiResponse getCampaignWithHttpInfo(Long applicationId, Long campaignId) throws ApiException { + public ApiResponse getCampaignWithHttpInfo(Integer applicationId, Integer campaignId) throws ApiException { okhttp3.Call localVarCall = getCampaignValidateBeforeCall(applicationId, campaignId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -10248,7 +10674,7 @@ public ApiResponse getCampaignWithHttpInfo(Long applicationId, Long ca 200 OK - */ - public okhttp3.Call getCampaignAsync(Long applicationId, Long campaignId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCampaignAsync(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCampaignValidateBeforeCall(applicationId, campaignId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -10271,7 +10697,7 @@ public okhttp3.Call getCampaignAsync(Long applicationId, Long campaignId, final 200 OK - */ - public okhttp3.Call getCampaignAnalyticsCall(Long applicationId, Long campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCampaignAnalyticsCall(Integer applicationId, Integer campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -10315,7 +10741,7 @@ public okhttp3.Call getCampaignAnalyticsCall(Long applicationId, Long campaignId } @SuppressWarnings("rawtypes") - private okhttp3.Call getCampaignAnalyticsValidateBeforeCall(Long applicationId, Long campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCampaignAnalyticsValidateBeforeCall(Integer applicationId, Integer campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -10359,7 +10785,7 @@ private okhttp3.Call getCampaignAnalyticsValidateBeforeCall(Long applicationId, 200 OK - */ - public InlineResponse20023 getCampaignAnalytics(Long applicationId, Long campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity) throws ApiException { + public InlineResponse20023 getCampaignAnalytics(Integer applicationId, Integer campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity) throws ApiException { ApiResponse localVarResp = getCampaignAnalyticsWithHttpInfo(applicationId, campaignId, rangeStart, rangeEnd, granularity); return localVarResp.getData(); } @@ -10380,7 +10806,7 @@ public InlineResponse20023 getCampaignAnalytics(Long applicationId, Long campaig 200 OK - */ - public ApiResponse getCampaignAnalyticsWithHttpInfo(Long applicationId, Long campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity) throws ApiException { + public ApiResponse getCampaignAnalyticsWithHttpInfo(Integer applicationId, Integer campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity) throws ApiException { okhttp3.Call localVarCall = getCampaignAnalyticsValidateBeforeCall(applicationId, campaignId, rangeStart, rangeEnd, granularity, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -10403,7 +10829,7 @@ public ApiResponse getCampaignAnalyticsWithHttpInfo(Long ap 200 OK - */ - public okhttp3.Call getCampaignAnalyticsAsync(Long applicationId, Long campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCampaignAnalyticsAsync(Integer applicationId, Integer campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCampaignAnalyticsValidateBeforeCall(applicationId, campaignId, rangeStart, rangeEnd, granularity, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -10414,7 +10840,7 @@ public okhttp3.Call getCampaignAnalyticsAsync(Long applicationId, Long campaignI * Build call for getCampaignByAttributes * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) @@ -10427,7 +10853,7 @@ public okhttp3.Call getCampaignAnalyticsAsync(Long applicationId, Long campaignI 200 OK - */ - public okhttp3.Call getCampaignByAttributesCall(Long applicationId, CampaignSearch body, Long pageSize, Long skip, String sort, String campaignState, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCampaignByAttributesCall(Integer applicationId, CampaignSearch body, Integer pageSize, Integer skip, String sort, String campaignState, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -10474,7 +10900,7 @@ public okhttp3.Call getCampaignByAttributesCall(Long applicationId, CampaignSear } @SuppressWarnings("rawtypes") - private okhttp3.Call getCampaignByAttributesValidateBeforeCall(Long applicationId, CampaignSearch body, Long pageSize, Long skip, String sort, String campaignState, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCampaignByAttributesValidateBeforeCall(Integer applicationId, CampaignSearch body, Integer pageSize, Integer skip, String sort, String campaignState, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -10497,7 +10923,7 @@ private okhttp3.Call getCampaignByAttributesValidateBeforeCall(Long applicationI * Get a list of all the campaigns that match a set of attributes. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) @@ -10509,7 +10935,7 @@ private okhttp3.Call getCampaignByAttributesValidateBeforeCall(Long applicationI 200 OK - */ - public InlineResponse2008 getCampaignByAttributes(Long applicationId, CampaignSearch body, Long pageSize, Long skip, String sort, String campaignState) throws ApiException { + public InlineResponse2008 getCampaignByAttributes(Integer applicationId, CampaignSearch body, Integer pageSize, Integer skip, String sort, String campaignState) throws ApiException { ApiResponse localVarResp = getCampaignByAttributesWithHttpInfo(applicationId, body, pageSize, skip, sort, campaignState); return localVarResp.getData(); } @@ -10519,7 +10945,7 @@ public InlineResponse2008 getCampaignByAttributes(Long applicationId, CampaignSe * Get a list of all the campaigns that match a set of attributes. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) @@ -10531,7 +10957,7 @@ public InlineResponse2008 getCampaignByAttributes(Long applicationId, CampaignSe 200 OK - */ - public ApiResponse getCampaignByAttributesWithHttpInfo(Long applicationId, CampaignSearch body, Long pageSize, Long skip, String sort, String campaignState) throws ApiException { + public ApiResponse getCampaignByAttributesWithHttpInfo(Integer applicationId, CampaignSearch body, Integer pageSize, Integer skip, String sort, String campaignState) throws ApiException { okhttp3.Call localVarCall = getCampaignByAttributesValidateBeforeCall(applicationId, body, pageSize, skip, sort, campaignState, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -10542,7 +10968,7 @@ public ApiResponse getCampaignByAttributesWithHttpInfo(Long * Get a list of all the campaigns that match a set of attributes. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) @@ -10555,7 +10981,7 @@ public ApiResponse getCampaignByAttributesWithHttpInfo(Long 200 OK - */ - public okhttp3.Call getCampaignByAttributesAsync(Long applicationId, CampaignSearch body, Long pageSize, Long skip, String sort, String campaignState, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCampaignByAttributesAsync(Integer applicationId, CampaignSearch body, Integer pageSize, Integer skip, String sort, String campaignState, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCampaignByAttributesValidateBeforeCall(applicationId, body, pageSize, skip, sort, campaignState, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -10574,7 +11000,7 @@ public okhttp3.Call getCampaignByAttributesAsync(Long applicationId, CampaignSea 200 OK - */ - public okhttp3.Call getCampaignGroupCall(Long campaignGroupId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCampaignGroupCall(Integer campaignGroupId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -10605,7 +11031,7 @@ public okhttp3.Call getCampaignGroupCall(Long campaignGroupId, final ApiCallback } @SuppressWarnings("rawtypes") - private okhttp3.Call getCampaignGroupValidateBeforeCall(Long campaignGroupId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCampaignGroupValidateBeforeCall(Integer campaignGroupId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'campaignGroupId' is set if (campaignGroupId == null) { @@ -10630,7 +11056,7 @@ private okhttp3.Call getCampaignGroupValidateBeforeCall(Long campaignGroupId, fi 200 OK - */ - public CampaignGroup getCampaignGroup(Long campaignGroupId) throws ApiException { + public CampaignGroup getCampaignGroup(Integer campaignGroupId) throws ApiException { ApiResponse localVarResp = getCampaignGroupWithHttpInfo(campaignGroupId); return localVarResp.getData(); } @@ -10647,7 +11073,7 @@ public CampaignGroup getCampaignGroup(Long campaignGroupId) throws ApiException 200 OK - */ - public ApiResponse getCampaignGroupWithHttpInfo(Long campaignGroupId) throws ApiException { + public ApiResponse getCampaignGroupWithHttpInfo(Integer campaignGroupId) throws ApiException { okhttp3.Call localVarCall = getCampaignGroupValidateBeforeCall(campaignGroupId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -10666,7 +11092,7 @@ public ApiResponse getCampaignGroupWithHttpInfo(Long campaignGrou 200 OK - */ - public okhttp3.Call getCampaignGroupAsync(Long campaignGroupId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCampaignGroupAsync(Integer campaignGroupId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCampaignGroupValidateBeforeCall(campaignGroupId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -10675,7 +11101,7 @@ public okhttp3.Call getCampaignGroupAsync(Long campaignGroupId, final ApiCallbac } /** * Build call for getCampaignGroups - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param _callback Callback for upload/download progress @@ -10687,7 +11113,7 @@ public okhttp3.Call getCampaignGroupAsync(Long campaignGroupId, final ApiCallbac 200 OK - */ - public okhttp3.Call getCampaignGroupsCall(Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCampaignGroupsCall(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -10729,7 +11155,7 @@ public okhttp3.Call getCampaignGroupsCall(Long pageSize, Long skip, String sort, } @SuppressWarnings("rawtypes") - private okhttp3.Call getCampaignGroupsValidateBeforeCall(Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCampaignGroupsValidateBeforeCall(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCampaignGroupsCall(pageSize, skip, sort, _callback); @@ -10740,7 +11166,7 @@ private okhttp3.Call getCampaignGroupsValidateBeforeCall(Long pageSize, Long ski /** * List campaign access groups * List the campaign access groups in the current account. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @return InlineResponse20013 @@ -10751,7 +11177,7 @@ private okhttp3.Call getCampaignGroupsValidateBeforeCall(Long pageSize, Long ski 200 OK - */ - public InlineResponse20013 getCampaignGroups(Long pageSize, Long skip, String sort) throws ApiException { + public InlineResponse20013 getCampaignGroups(Integer pageSize, Integer skip, String sort) throws ApiException { ApiResponse localVarResp = getCampaignGroupsWithHttpInfo(pageSize, skip, sort); return localVarResp.getData(); } @@ -10759,7 +11185,7 @@ public InlineResponse20013 getCampaignGroups(Long pageSize, Long skip, String so /** * List campaign access groups * List the campaign access groups in the current account. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @return ApiResponse<InlineResponse20013> @@ -10770,7 +11196,7 @@ public InlineResponse20013 getCampaignGroups(Long pageSize, Long skip, String so 200 OK - */ - public ApiResponse getCampaignGroupsWithHttpInfo(Long pageSize, Long skip, String sort) throws ApiException { + public ApiResponse getCampaignGroupsWithHttpInfo(Integer pageSize, Integer skip, String sort) throws ApiException { okhttp3.Call localVarCall = getCampaignGroupsValidateBeforeCall(pageSize, skip, sort, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -10779,7 +11205,7 @@ public ApiResponse getCampaignGroupsWithHttpInfo(Long pageS /** * List campaign access groups (asynchronously) * List the campaign access groups in the current account. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param _callback The callback to be executed when the API call finishes @@ -10791,7 +11217,7 @@ public ApiResponse getCampaignGroupsWithHttpInfo(Long pageS 200 OK - */ - public okhttp3.Call getCampaignGroupsAsync(Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCampaignGroupsAsync(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCampaignGroupsValidateBeforeCall(pageSize, skip, sort, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -10800,7 +11226,7 @@ public okhttp3.Call getCampaignGroupsAsync(Long pageSize, Long skip, String sort } /** * Build call for getCampaignTemplates - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param state Filter results by the state of the campaign template. (optional) @@ -10816,7 +11242,7 @@ public okhttp3.Call getCampaignGroupsAsync(Long pageSize, Long skip, String sort 200 OK - */ - public okhttp3.Call getCampaignTemplatesCall(Long pageSize, Long skip, String sort, String state, String name, String tags, Long userId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCampaignTemplatesCall(Integer pageSize, Integer skip, String sort, String state, String name, String tags, Integer userId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -10874,7 +11300,7 @@ public okhttp3.Call getCampaignTemplatesCall(Long pageSize, Long skip, String so } @SuppressWarnings("rawtypes") - private okhttp3.Call getCampaignTemplatesValidateBeforeCall(Long pageSize, Long skip, String sort, String state, String name, String tags, Long userId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCampaignTemplatesValidateBeforeCall(Integer pageSize, Integer skip, String sort, String state, String name, String tags, Integer userId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCampaignTemplatesCall(pageSize, skip, sort, state, name, tags, userId, _callback); @@ -10885,7 +11311,7 @@ private okhttp3.Call getCampaignTemplatesValidateBeforeCall(Long pageSize, Long /** * List campaign templates * Retrieve a list of campaign templates. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param state Filter results by the state of the campaign template. (optional) @@ -10900,7 +11326,7 @@ private okhttp3.Call getCampaignTemplatesValidateBeforeCall(Long pageSize, Long 200 OK - */ - public InlineResponse20014 getCampaignTemplates(Long pageSize, Long skip, String sort, String state, String name, String tags, Long userId) throws ApiException { + public InlineResponse20014 getCampaignTemplates(Integer pageSize, Integer skip, String sort, String state, String name, String tags, Integer userId) throws ApiException { ApiResponse localVarResp = getCampaignTemplatesWithHttpInfo(pageSize, skip, sort, state, name, tags, userId); return localVarResp.getData(); } @@ -10908,7 +11334,7 @@ public InlineResponse20014 getCampaignTemplates(Long pageSize, Long skip, String /** * List campaign templates * Retrieve a list of campaign templates. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param state Filter results by the state of the campaign template. (optional) @@ -10923,7 +11349,7 @@ public InlineResponse20014 getCampaignTemplates(Long pageSize, Long skip, String 200 OK - */ - public ApiResponse getCampaignTemplatesWithHttpInfo(Long pageSize, Long skip, String sort, String state, String name, String tags, Long userId) throws ApiException { + public ApiResponse getCampaignTemplatesWithHttpInfo(Integer pageSize, Integer skip, String sort, String state, String name, String tags, Integer userId) throws ApiException { okhttp3.Call localVarCall = getCampaignTemplatesValidateBeforeCall(pageSize, skip, sort, state, name, tags, userId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -10932,7 +11358,7 @@ public ApiResponse getCampaignTemplatesWithHttpInfo(Long pa /** * List campaign templates (asynchronously) * Retrieve a list of campaign templates. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param state Filter results by the state of the campaign template. (optional) @@ -10948,7 +11374,7 @@ public ApiResponse getCampaignTemplatesWithHttpInfo(Long pa 200 OK - */ - public okhttp3.Call getCampaignTemplatesAsync(Long pageSize, Long skip, String sort, String state, String name, String tags, Long userId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCampaignTemplatesAsync(Integer pageSize, Integer skip, String sort, String state, String name, String tags, Integer userId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCampaignTemplatesValidateBeforeCall(pageSize, skip, sort, state, name, tags, userId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -10958,7 +11384,7 @@ public okhttp3.Call getCampaignTemplatesAsync(Long pageSize, Long skip, String s /** * Build call for getCampaigns * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) @@ -10979,7 +11405,7 @@ public okhttp3.Call getCampaignTemplatesAsync(Long pageSize, Long skip, String s 400 Bad request - */ - public okhttp3.Call getCampaignsCall(Long applicationId, Long pageSize, Long skip, String sort, String campaignState, String name, String tags, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Long campaignGroupId, Long templateId, Long storeId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCampaignsCall(Integer applicationId, Integer pageSize, Integer skip, String sort, String campaignState, String name, String tags, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Integer campaignGroupId, Integer templateId, Integer storeId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -11054,7 +11480,7 @@ public okhttp3.Call getCampaignsCall(Long applicationId, Long pageSize, Long ski } @SuppressWarnings("rawtypes") - private okhttp3.Call getCampaignsValidateBeforeCall(Long applicationId, Long pageSize, Long skip, String sort, String campaignState, String name, String tags, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Long campaignGroupId, Long templateId, Long storeId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCampaignsValidateBeforeCall(Integer applicationId, Integer pageSize, Integer skip, String sort, String campaignState, String name, String tags, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Integer campaignGroupId, Integer templateId, Integer storeId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -11071,7 +11497,7 @@ private okhttp3.Call getCampaignsValidateBeforeCall(Long applicationId, Long pag * List campaigns * List the campaigns of the specified application that match your filter criteria. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) @@ -11091,7 +11517,7 @@ private okhttp3.Call getCampaignsValidateBeforeCall(Long applicationId, Long pag 400 Bad request - */ - public InlineResponse2008 getCampaigns(Long applicationId, Long pageSize, Long skip, String sort, String campaignState, String name, String tags, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Long campaignGroupId, Long templateId, Long storeId) throws ApiException { + public InlineResponse2008 getCampaigns(Integer applicationId, Integer pageSize, Integer skip, String sort, String campaignState, String name, String tags, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Integer campaignGroupId, Integer templateId, Integer storeId) throws ApiException { ApiResponse localVarResp = getCampaignsWithHttpInfo(applicationId, pageSize, skip, sort, campaignState, name, tags, createdBefore, createdAfter, campaignGroupId, templateId, storeId); return localVarResp.getData(); } @@ -11100,7 +11526,7 @@ public InlineResponse2008 getCampaigns(Long applicationId, Long pageSize, Long s * List campaigns * List the campaigns of the specified application that match your filter criteria. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) @@ -11120,7 +11546,7 @@ public InlineResponse2008 getCampaigns(Long applicationId, Long pageSize, Long s 400 Bad request - */ - public ApiResponse getCampaignsWithHttpInfo(Long applicationId, Long pageSize, Long skip, String sort, String campaignState, String name, String tags, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Long campaignGroupId, Long templateId, Long storeId) throws ApiException { + public ApiResponse getCampaignsWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort, String campaignState, String name, String tags, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Integer campaignGroupId, Integer templateId, Integer storeId) throws ApiException { okhttp3.Call localVarCall = getCampaignsValidateBeforeCall(applicationId, pageSize, skip, sort, campaignState, name, tags, createdBefore, createdAfter, campaignGroupId, templateId, storeId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -11130,7 +11556,7 @@ public ApiResponse getCampaignsWithHttpInfo(Long application * List campaigns (asynchronously) * List the campaigns of the specified application that match your filter criteria. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param campaignState Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. (optional) @@ -11151,7 +11577,7 @@ public ApiResponse getCampaignsWithHttpInfo(Long application 400 Bad request - */ - public okhttp3.Call getCampaignsAsync(Long applicationId, Long pageSize, Long skip, String sort, String campaignState, String name, String tags, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Long campaignGroupId, Long templateId, Long storeId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCampaignsAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, String campaignState, String name, String tags, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Integer campaignGroupId, Integer templateId, Integer storeId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCampaignsValidateBeforeCall(applicationId, pageSize, skip, sort, campaignState, name, tags, createdBefore, createdAfter, campaignGroupId, templateId, storeId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -11160,7 +11586,7 @@ public okhttp3.Call getCampaignsAsync(Long applicationId, Long pageSize, Long sk } /** * Build call for getChanges - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param applicationId Filter results by Application ID. (optional) @@ -11180,7 +11606,7 @@ public okhttp3.Call getCampaignsAsync(Long applicationId, Long pageSize, Long sk 200 OK - */ - public okhttp3.Call getChangesCall(Long pageSize, Long skip, String sort, BigDecimal applicationId, String entityPath, Long userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Long managementKeyId, Boolean includeOld, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getChangesCall(Integer pageSize, Integer skip, String sort, BigDecimal applicationId, String entityPath, Integer userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Integer managementKeyId, Boolean includeOld, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -11254,7 +11680,7 @@ public okhttp3.Call getChangesCall(Long pageSize, Long skip, String sort, BigDec } @SuppressWarnings("rawtypes") - private okhttp3.Call getChangesValidateBeforeCall(Long pageSize, Long skip, String sort, BigDecimal applicationId, String entityPath, Long userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Long managementKeyId, Boolean includeOld, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getChangesValidateBeforeCall(Integer pageSize, Integer skip, String sort, BigDecimal applicationId, String entityPath, Integer userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Integer managementKeyId, Boolean includeOld, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getChangesCall(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld, _callback); @@ -11265,7 +11691,7 @@ private okhttp3.Call getChangesValidateBeforeCall(Long pageSize, Long skip, Stri /** * Get audit logs for an account * Retrieve the audit logs displayed in **Accounts > Audit logs**. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param applicationId Filter results by Application ID. (optional) @@ -11284,7 +11710,7 @@ private okhttp3.Call getChangesValidateBeforeCall(Long pageSize, Long skip, Stri 200 OK - */ - public InlineResponse20044 getChanges(Long pageSize, Long skip, String sort, BigDecimal applicationId, String entityPath, Long userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Long managementKeyId, Boolean includeOld) throws ApiException { + public InlineResponse20044 getChanges(Integer pageSize, Integer skip, String sort, BigDecimal applicationId, String entityPath, Integer userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Integer managementKeyId, Boolean includeOld) throws ApiException { ApiResponse localVarResp = getChangesWithHttpInfo(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld); return localVarResp.getData(); } @@ -11292,7 +11718,7 @@ public InlineResponse20044 getChanges(Long pageSize, Long skip, String sort, Big /** * Get audit logs for an account * Retrieve the audit logs displayed in **Accounts > Audit logs**. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param applicationId Filter results by Application ID. (optional) @@ -11311,7 +11737,7 @@ public InlineResponse20044 getChanges(Long pageSize, Long skip, String sort, Big 200 OK - */ - public ApiResponse getChangesWithHttpInfo(Long pageSize, Long skip, String sort, BigDecimal applicationId, String entityPath, Long userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Long managementKeyId, Boolean includeOld) throws ApiException { + public ApiResponse getChangesWithHttpInfo(Integer pageSize, Integer skip, String sort, BigDecimal applicationId, String entityPath, Integer userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Integer managementKeyId, Boolean includeOld) throws ApiException { okhttp3.Call localVarCall = getChangesValidateBeforeCall(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -11320,7 +11746,7 @@ public ApiResponse getChangesWithHttpInfo(Long pageSize, Lo /** * Get audit logs for an account (asynchronously) * Retrieve the audit logs displayed in **Accounts > Audit logs**. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param applicationId Filter results by Application ID. (optional) @@ -11340,7 +11766,7 @@ public ApiResponse getChangesWithHttpInfo(Long pageSize, Lo 200 OK - */ - public okhttp3.Call getChangesAsync(Long pageSize, Long skip, String sort, BigDecimal applicationId, String entityPath, Long userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Long managementKeyId, Boolean includeOld, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getChangesAsync(Integer pageSize, Integer skip, String sort, BigDecimal applicationId, String entityPath, Integer userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Integer managementKeyId, Boolean includeOld, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getChangesValidateBeforeCall(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -11362,7 +11788,7 @@ public okhttp3.Call getChangesAsync(Long pageSize, Long skip, String sort, BigDe 404 Not found - */ - public okhttp3.Call getCollectionCall(Long applicationId, Long campaignId, Long collectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCollectionCall(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -11395,7 +11821,7 @@ public okhttp3.Call getCollectionCall(Long applicationId, Long campaignId, Long } @SuppressWarnings("rawtypes") - private okhttp3.Call getCollectionValidateBeforeCall(Long applicationId, Long campaignId, Long collectionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCollectionValidateBeforeCall(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -11433,7 +11859,7 @@ private okhttp3.Call getCollectionValidateBeforeCall(Long applicationId, Long ca 404 Not found - */ - public Collection getCollection(Long applicationId, Long campaignId, Long collectionId) throws ApiException { + public Collection getCollection(Integer applicationId, Integer campaignId, Integer collectionId) throws ApiException { ApiResponse localVarResp = getCollectionWithHttpInfo(applicationId, campaignId, collectionId); return localVarResp.getData(); } @@ -11453,7 +11879,7 @@ public Collection getCollection(Long applicationId, Long campaignId, Long collec 404 Not found - */ - public ApiResponse getCollectionWithHttpInfo(Long applicationId, Long campaignId, Long collectionId) throws ApiException { + public ApiResponse getCollectionWithHttpInfo(Integer applicationId, Integer campaignId, Integer collectionId) throws ApiException { okhttp3.Call localVarCall = getCollectionValidateBeforeCall(applicationId, campaignId, collectionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -11475,7 +11901,7 @@ public ApiResponse getCollectionWithHttpInfo(Long applicationId, Lon 404 Not found - */ - public okhttp3.Call getCollectionAsync(Long applicationId, Long campaignId, Long collectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCollectionAsync(Integer applicationId, Integer campaignId, Integer collectionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCollectionValidateBeforeCall(applicationId, campaignId, collectionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -11485,7 +11911,7 @@ public okhttp3.Call getCollectionAsync(Long applicationId, Long campaignId, Long /** * Build call for getCollectionItems * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -11497,7 +11923,7 @@ public okhttp3.Call getCollectionAsync(Long applicationId, Long campaignId, Long 404 Not found - */ - public okhttp3.Call getCollectionItemsCall(Long collectionId, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCollectionItemsCall(Integer collectionId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -11536,7 +11962,7 @@ public okhttp3.Call getCollectionItemsCall(Long collectionId, Long pageSize, Lon } @SuppressWarnings("rawtypes") - private okhttp3.Call getCollectionItemsValidateBeforeCall(Long collectionId, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCollectionItemsValidateBeforeCall(Integer collectionId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { // verify the required parameter 'collectionId' is set if (collectionId == null) { @@ -11553,7 +11979,7 @@ private okhttp3.Call getCollectionItemsValidateBeforeCall(Long collectionId, Lon * Get collection items * Retrieve items from a given collection. You can retrieve items from both account-level collections and campaign-level collections using this endpoint. * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @return InlineResponse20021 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -11564,7 +11990,7 @@ private okhttp3.Call getCollectionItemsValidateBeforeCall(Long collectionId, Lon 404 Not found - */ - public InlineResponse20021 getCollectionItems(Long collectionId, Long pageSize, Long skip) throws ApiException { + public InlineResponse20021 getCollectionItems(Integer collectionId, Integer pageSize, Integer skip) throws ApiException { ApiResponse localVarResp = getCollectionItemsWithHttpInfo(collectionId, pageSize, skip); return localVarResp.getData(); } @@ -11573,7 +11999,7 @@ public InlineResponse20021 getCollectionItems(Long collectionId, Long pageSize, * Get collection items * Retrieve items from a given collection. You can retrieve items from both account-level collections and campaign-level collections using this endpoint. * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @return ApiResponse<InlineResponse20021> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -11584,7 +12010,7 @@ public InlineResponse20021 getCollectionItems(Long collectionId, Long pageSize, 404 Not found - */ - public ApiResponse getCollectionItemsWithHttpInfo(Long collectionId, Long pageSize, Long skip) throws ApiException { + public ApiResponse getCollectionItemsWithHttpInfo(Integer collectionId, Integer pageSize, Integer skip) throws ApiException { okhttp3.Call localVarCall = getCollectionItemsValidateBeforeCall(collectionId, pageSize, skip, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -11594,7 +12020,7 @@ public ApiResponse getCollectionItemsWithHttpInfo(Long coll * Get collection items (asynchronously) * Retrieve items from a given collection. You can retrieve items from both account-level collections and campaign-level collections using this endpoint. * @param collectionId The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -11606,7 +12032,7 @@ public ApiResponse getCollectionItemsWithHttpInfo(Long coll 404 Not found - */ - public okhttp3.Call getCollectionItemsAsync(Long collectionId, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCollectionItemsAsync(Integer collectionId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCollectionItemsValidateBeforeCall(collectionId, pageSize, skip, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -11617,7 +12043,7 @@ public okhttp3.Call getCollectionItemsAsync(Long collectionId, Long pageSize, Lo * Build call for getCouponsWithoutTotalCount * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -11644,7 +12070,7 @@ public okhttp3.Call getCollectionItemsAsync(Long collectionId, Long pageSize, Lo 200 OK - */ - public okhttp3.Call getCouponsWithoutTotalCountCall(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String redeemed, Long referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, OffsetDateTime expiresBefore, OffsetDateTime expiresAfter, OffsetDateTime startsBefore, OffsetDateTime startsAfter, Boolean valuesOnly, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCouponsWithoutTotalCountCall(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String redeemed, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, OffsetDateTime expiresBefore, OffsetDateTime expiresAfter, OffsetDateTime startsBefore, OffsetDateTime startsAfter, Boolean valuesOnly, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -11748,7 +12174,7 @@ public okhttp3.Call getCouponsWithoutTotalCountCall(Long applicationId, Long cam } @SuppressWarnings("rawtypes") - private okhttp3.Call getCouponsWithoutTotalCountValidateBeforeCall(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String redeemed, Long referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, OffsetDateTime expiresBefore, OffsetDateTime expiresAfter, OffsetDateTime startsBefore, OffsetDateTime startsAfter, Boolean valuesOnly, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCouponsWithoutTotalCountValidateBeforeCall(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String redeemed, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, OffsetDateTime expiresBefore, OffsetDateTime expiresAfter, OffsetDateTime startsBefore, OffsetDateTime startsAfter, Boolean valuesOnly, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -11771,7 +12197,7 @@ private okhttp3.Call getCouponsWithoutTotalCountValidateBeforeCall(Long applicat * List all the coupons matching the specified criteria. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -11797,7 +12223,7 @@ private okhttp3.Call getCouponsWithoutTotalCountValidateBeforeCall(Long applicat 200 OK - */ - public InlineResponse20011 getCouponsWithoutTotalCount(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String redeemed, Long referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, OffsetDateTime expiresBefore, OffsetDateTime expiresAfter, OffsetDateTime startsBefore, OffsetDateTime startsAfter, Boolean valuesOnly) throws ApiException { + public InlineResponse20011 getCouponsWithoutTotalCount(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String redeemed, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, OffsetDateTime expiresBefore, OffsetDateTime expiresAfter, OffsetDateTime startsBefore, OffsetDateTime startsAfter, Boolean valuesOnly) throws ApiException { ApiResponse localVarResp = getCouponsWithoutTotalCountWithHttpInfo(applicationId, campaignId, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, redeemed, referralId, recipientIntegrationId, batchId, exactMatch, expiresBefore, expiresAfter, startsBefore, startsAfter, valuesOnly); return localVarResp.getData(); } @@ -11807,7 +12233,7 @@ public InlineResponse20011 getCouponsWithoutTotalCount(Long applicationId, Long * List all the coupons matching the specified criteria. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -11833,7 +12259,7 @@ public InlineResponse20011 getCouponsWithoutTotalCount(Long applicationId, Long 200 OK - */ - public ApiResponse getCouponsWithoutTotalCountWithHttpInfo(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String redeemed, Long referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, OffsetDateTime expiresBefore, OffsetDateTime expiresAfter, OffsetDateTime startsBefore, OffsetDateTime startsAfter, Boolean valuesOnly) throws ApiException { + public ApiResponse getCouponsWithoutTotalCountWithHttpInfo(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String redeemed, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, OffsetDateTime expiresBefore, OffsetDateTime expiresAfter, OffsetDateTime startsBefore, OffsetDateTime startsAfter, Boolean valuesOnly) throws ApiException { okhttp3.Call localVarCall = getCouponsWithoutTotalCountValidateBeforeCall(applicationId, campaignId, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, redeemed, referralId, recipientIntegrationId, batchId, exactMatch, expiresBefore, expiresAfter, startsBefore, startsAfter, valuesOnly, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -11844,7 +12270,7 @@ public ApiResponse getCouponsWithoutTotalCountWithHttpInfo( * List all the coupons matching the specified criteria. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -11871,7 +12297,7 @@ public ApiResponse getCouponsWithoutTotalCountWithHttpInfo( 200 OK - */ - public okhttp3.Call getCouponsWithoutTotalCountAsync(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String redeemed, Long referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, OffsetDateTime expiresBefore, OffsetDateTime expiresAfter, OffsetDateTime startsBefore, OffsetDateTime startsAfter, Boolean valuesOnly, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCouponsWithoutTotalCountAsync(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String redeemed, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, OffsetDateTime expiresBefore, OffsetDateTime expiresAfter, OffsetDateTime startsBefore, OffsetDateTime startsAfter, Boolean valuesOnly, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCouponsWithoutTotalCountValidateBeforeCall(applicationId, campaignId, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, redeemed, referralId, recipientIntegrationId, batchId, exactMatch, expiresBefore, expiresAfter, startsBefore, startsAfter, valuesOnly, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -11884,7 +12310,7 @@ public okhttp3.Call getCouponsWithoutTotalCountAsync(Long applicationId, Long ca * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -11895,7 +12321,7 @@ public okhttp3.Call getCouponsWithoutTotalCountAsync(Long applicationId, Long ca 200 OK - */ - public okhttp3.Call getCustomerActivityReportCall(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Long applicationId, Long customerId, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerActivityReportCall(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer customerId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -11943,7 +12369,7 @@ public okhttp3.Call getCustomerActivityReportCall(OffsetDateTime rangeStart, Off } @SuppressWarnings("rawtypes") - private okhttp3.Call getCustomerActivityReportValidateBeforeCall(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Long applicationId, Long customerId, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCustomerActivityReportValidateBeforeCall(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer customerId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { // verify the required parameter 'rangeStart' is set if (rangeStart == null) { @@ -11978,7 +12404,7 @@ private okhttp3.Call getCustomerActivityReportValidateBeforeCall(OffsetDateTime * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @return CustomerActivityReport * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -11988,7 +12414,7 @@ private okhttp3.Call getCustomerActivityReportValidateBeforeCall(OffsetDateTime 200 OK - */ - public CustomerActivityReport getCustomerActivityReport(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Long applicationId, Long customerId, Long pageSize, Long skip) throws ApiException { + public CustomerActivityReport getCustomerActivityReport(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer customerId, Integer pageSize, Integer skip) throws ApiException { ApiResponse localVarResp = getCustomerActivityReportWithHttpInfo(rangeStart, rangeEnd, applicationId, customerId, pageSize, skip); return localVarResp.getData(); } @@ -12000,7 +12426,7 @@ public CustomerActivityReport getCustomerActivityReport(OffsetDateTime rangeStar * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @return ApiResponse<CustomerActivityReport> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -12010,7 +12436,7 @@ public CustomerActivityReport getCustomerActivityReport(OffsetDateTime rangeStar 200 OK - */ - public ApiResponse getCustomerActivityReportWithHttpInfo(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Long applicationId, Long customerId, Long pageSize, Long skip) throws ApiException { + public ApiResponse getCustomerActivityReportWithHttpInfo(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer customerId, Integer pageSize, Integer skip) throws ApiException { okhttp3.Call localVarCall = getCustomerActivityReportValidateBeforeCall(rangeStart, rangeEnd, applicationId, customerId, pageSize, skip, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -12023,7 +12449,7 @@ public ApiResponse getCustomerActivityReportWithHttpInfo * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -12034,7 +12460,7 @@ public ApiResponse getCustomerActivityReportWithHttpInfo 200 OK - */ - public okhttp3.Call getCustomerActivityReportAsync(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Long applicationId, Long customerId, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerActivityReportAsync(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer customerId, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCustomerActivityReportValidateBeforeCall(rangeStart, rangeEnd, applicationId, customerId, pageSize, skip, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -12046,7 +12472,7 @@ public okhttp3.Call getCustomerActivityReportAsync(OffsetDateTime rangeStart, Of * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param name Only return reports matching the customer name. (optional) @@ -12062,7 +12488,7 @@ public okhttp3.Call getCustomerActivityReportAsync(OffsetDateTime rangeStart, Of 200 OK - */ - public okhttp3.Call getCustomerActivityReportsWithoutTotalCountCall(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Long applicationId, Long pageSize, Long skip, String sort, String name, String integrationId, String campaignName, String advocateName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerActivityReportsWithoutTotalCountCall(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer pageSize, Integer skip, String sort, String name, String integrationId, String campaignName, String advocateName, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -12129,7 +12555,7 @@ public okhttp3.Call getCustomerActivityReportsWithoutTotalCountCall(OffsetDateTi } @SuppressWarnings("rawtypes") - private okhttp3.Call getCustomerActivityReportsWithoutTotalCountValidateBeforeCall(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Long applicationId, Long pageSize, Long skip, String sort, String name, String integrationId, String campaignName, String advocateName, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCustomerActivityReportsWithoutTotalCountValidateBeforeCall(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer pageSize, Integer skip, String sort, String name, String integrationId, String campaignName, String advocateName, final ApiCallback _callback) throws ApiException { // verify the required parameter 'rangeStart' is set if (rangeStart == null) { @@ -12158,7 +12584,7 @@ private okhttp3.Call getCustomerActivityReportsWithoutTotalCountValidateBeforeCa * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param name Only return reports matching the customer name. (optional) @@ -12173,7 +12599,7 @@ private okhttp3.Call getCustomerActivityReportsWithoutTotalCountValidateBeforeCa 200 OK - */ - public InlineResponse20028 getCustomerActivityReportsWithoutTotalCount(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Long applicationId, Long pageSize, Long skip, String sort, String name, String integrationId, String campaignName, String advocateName) throws ApiException { + public InlineResponse20028 getCustomerActivityReportsWithoutTotalCount(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer pageSize, Integer skip, String sort, String name, String integrationId, String campaignName, String advocateName) throws ApiException { ApiResponse localVarResp = getCustomerActivityReportsWithoutTotalCountWithHttpInfo(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName); return localVarResp.getData(); } @@ -12184,7 +12610,7 @@ public InlineResponse20028 getCustomerActivityReportsWithoutTotalCount(OffsetDat * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param name Only return reports matching the customer name. (optional) @@ -12199,7 +12625,7 @@ public InlineResponse20028 getCustomerActivityReportsWithoutTotalCount(OffsetDat 200 OK - */ - public ApiResponse getCustomerActivityReportsWithoutTotalCountWithHttpInfo(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Long applicationId, Long pageSize, Long skip, String sort, String name, String integrationId, String campaignName, String advocateName) throws ApiException { + public ApiResponse getCustomerActivityReportsWithoutTotalCountWithHttpInfo(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer pageSize, Integer skip, String sort, String name, String integrationId, String campaignName, String advocateName) throws ApiException { okhttp3.Call localVarCall = getCustomerActivityReportsWithoutTotalCountValidateBeforeCall(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -12211,7 +12637,7 @@ public ApiResponse getCustomerActivityReportsWithoutTotalCo * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required) * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param name Only return reports matching the customer name. (optional) @@ -12227,7 +12653,7 @@ public ApiResponse getCustomerActivityReportsWithoutTotalCo 200 OK - */ - public okhttp3.Call getCustomerActivityReportsWithoutTotalCountAsync(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Long applicationId, Long pageSize, Long skip, String sort, String name, String integrationId, String campaignName, String advocateName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerActivityReportsWithoutTotalCountAsync(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer pageSize, Integer skip, String sort, String name, String integrationId, String campaignName, String advocateName, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCustomerActivityReportsWithoutTotalCountValidateBeforeCall(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -12238,7 +12664,7 @@ public okhttp3.Call getCustomerActivityReportsWithoutTotalCountAsync(OffsetDateT * Build call for getCustomerAnalytics * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param _callback Callback for upload/download progress @@ -12250,7 +12676,7 @@ public okhttp3.Call getCustomerActivityReportsWithoutTotalCountAsync(OffsetDateT 200 OK - */ - public okhttp3.Call getCustomerAnalyticsCall(Long applicationId, Long customerId, Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerAnalyticsCall(Integer applicationId, Integer customerId, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -12294,7 +12720,7 @@ public okhttp3.Call getCustomerAnalyticsCall(Long applicationId, Long customerId } @SuppressWarnings("rawtypes") - private okhttp3.Call getCustomerAnalyticsValidateBeforeCall(Long applicationId, Long customerId, Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCustomerAnalyticsValidateBeforeCall(Integer applicationId, Integer customerId, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -12317,7 +12743,7 @@ private okhttp3.Call getCustomerAnalyticsValidateBeforeCall(Long applicationId, * Fetch analytics for a given customer in the given application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @return CustomerAnalytics @@ -12328,7 +12754,7 @@ private okhttp3.Call getCustomerAnalyticsValidateBeforeCall(Long applicationId, 200 OK - */ - public CustomerAnalytics getCustomerAnalytics(Long applicationId, Long customerId, Long pageSize, Long skip, String sort) throws ApiException { + public CustomerAnalytics getCustomerAnalytics(Integer applicationId, Integer customerId, Integer pageSize, Integer skip, String sort) throws ApiException { ApiResponse localVarResp = getCustomerAnalyticsWithHttpInfo(applicationId, customerId, pageSize, skip, sort); return localVarResp.getData(); } @@ -12338,7 +12764,7 @@ public CustomerAnalytics getCustomerAnalytics(Long applicationId, Long customerI * Fetch analytics for a given customer in the given application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @return ApiResponse<CustomerAnalytics> @@ -12349,7 +12775,7 @@ public CustomerAnalytics getCustomerAnalytics(Long applicationId, Long customerI 200 OK - */ - public ApiResponse getCustomerAnalyticsWithHttpInfo(Long applicationId, Long customerId, Long pageSize, Long skip, String sort) throws ApiException { + public ApiResponse getCustomerAnalyticsWithHttpInfo(Integer applicationId, Integer customerId, Integer pageSize, Integer skip, String sort) throws ApiException { okhttp3.Call localVarCall = getCustomerAnalyticsValidateBeforeCall(applicationId, customerId, pageSize, skip, sort, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -12360,7 +12786,7 @@ public ApiResponse getCustomerAnalyticsWithHttpInfo(Long appl * Fetch analytics for a given customer in the given application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param customerId The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param _callback The callback to be executed when the API call finishes @@ -12372,7 +12798,7 @@ public ApiResponse getCustomerAnalyticsWithHttpInfo(Long appl 200 OK - */ - public okhttp3.Call getCustomerAnalyticsAsync(Long applicationId, Long customerId, Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerAnalyticsAsync(Integer applicationId, Integer customerId, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCustomerAnalyticsValidateBeforeCall(applicationId, customerId, pageSize, skip, sort, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -12391,7 +12817,7 @@ public okhttp3.Call getCustomerAnalyticsAsync(Long applicationId, Long customerI 200 OK - */ - public okhttp3.Call getCustomerProfileCall(Long customerId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerProfileCall(Integer customerId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -12422,7 +12848,7 @@ public okhttp3.Call getCustomerProfileCall(Long customerId, final ApiCallback _c } @SuppressWarnings("rawtypes") - private okhttp3.Call getCustomerProfileValidateBeforeCall(Long customerId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCustomerProfileValidateBeforeCall(Integer customerId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'customerId' is set if (customerId == null) { @@ -12447,7 +12873,7 @@ private okhttp3.Call getCustomerProfileValidateBeforeCall(Long customerId, final 200 OK - */ - public CustomerProfile getCustomerProfile(Long customerId) throws ApiException { + public CustomerProfile getCustomerProfile(Integer customerId) throws ApiException { ApiResponse localVarResp = getCustomerProfileWithHttpInfo(customerId); return localVarResp.getData(); } @@ -12464,7 +12890,7 @@ public CustomerProfile getCustomerProfile(Long customerId) throws ApiException { 200 OK - */ - public ApiResponse getCustomerProfileWithHttpInfo(Long customerId) throws ApiException { + public ApiResponse getCustomerProfileWithHttpInfo(Integer customerId) throws ApiException { okhttp3.Call localVarCall = getCustomerProfileValidateBeforeCall(customerId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -12483,7 +12909,7 @@ public ApiResponse getCustomerProfileWithHttpInfo(Long customer 200 OK - */ - public okhttp3.Call getCustomerProfileAsync(Long customerId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerProfileAsync(Integer customerId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCustomerProfileValidateBeforeCall(customerId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -12494,7 +12920,7 @@ public okhttp3.Call getCustomerProfileAsync(Long customerId, final ApiCallback 401 Unauthorized - */ - public okhttp3.Call getCustomerProfileAchievementProgressCall(Long applicationId, String integrationId, Long pageSize, Long skip, Long achievementId, String title, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerProfileAchievementProgressCall(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Integer achievementId, String title, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -12557,7 +12983,7 @@ public okhttp3.Call getCustomerProfileAchievementProgressCall(Long applicationId } @SuppressWarnings("rawtypes") - private okhttp3.Call getCustomerProfileAchievementProgressValidateBeforeCall(Long applicationId, String integrationId, Long pageSize, Long skip, Long achievementId, String title, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCustomerProfileAchievementProgressValidateBeforeCall(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Integer achievementId, String title, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -12580,11 +13006,11 @@ private okhttp3.Call getCustomerProfileAchievementProgressValidateBeforeCall(Lon * For the given customer profile, list all the achievements that match your filter criteria. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param integrationId The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. (required) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (optional) * @param title Filter results by the `title` of an achievement. (optional) - * @return InlineResponse20049 + * @return InlineResponse20051 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -12594,8 +13020,8 @@ private okhttp3.Call getCustomerProfileAchievementProgressValidateBeforeCall(Lon
401 Unauthorized -
*/ - public InlineResponse20049 getCustomerProfileAchievementProgress(Long applicationId, String integrationId, Long pageSize, Long skip, Long achievementId, String title) throws ApiException { - ApiResponse localVarResp = getCustomerProfileAchievementProgressWithHttpInfo(applicationId, integrationId, pageSize, skip, achievementId, title); + public InlineResponse20051 getCustomerProfileAchievementProgress(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Integer achievementId, String title) throws ApiException { + ApiResponse localVarResp = getCustomerProfileAchievementProgressWithHttpInfo(applicationId, integrationId, pageSize, skip, achievementId, title); return localVarResp.getData(); } @@ -12604,11 +13030,11 @@ public InlineResponse20049 getCustomerProfileAchievementProgress(Long applicatio * For the given customer profile, list all the achievements that match your filter criteria. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param integrationId The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. (required) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (optional) * @param title Filter results by the `title` of an achievement. (optional) - * @return ApiResponse<InlineResponse20049> + * @return ApiResponse<InlineResponse20051> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -12618,9 +13044,9 @@ public InlineResponse20049 getCustomerProfileAchievementProgress(Long applicatio
401 Unauthorized -
*/ - public ApiResponse getCustomerProfileAchievementProgressWithHttpInfo(Long applicationId, String integrationId, Long pageSize, Long skip, Long achievementId, String title) throws ApiException { + public ApiResponse getCustomerProfileAchievementProgressWithHttpInfo(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Integer achievementId, String title) throws ApiException { okhttp3.Call localVarCall = getCustomerProfileAchievementProgressValidateBeforeCall(applicationId, integrationId, pageSize, skip, achievementId, title, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -12629,7 +13055,7 @@ public ApiResponse getCustomerProfileAchievementProgressWit * For the given customer profile, list all the achievements that match your filter criteria. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param integrationId The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. (required) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (optional) * @param title Filter results by the `title` of an achievement. (optional) @@ -12644,16 +13070,16 @@ public ApiResponse getCustomerProfileAchievementProgressWit 401 Unauthorized - */ - public okhttp3.Call getCustomerProfileAchievementProgressAsync(Long applicationId, String integrationId, Long pageSize, Long skip, Long achievementId, String title, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerProfileAchievementProgressAsync(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Integer achievementId, String title, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCustomerProfileAchievementProgressValidateBeforeCall(applicationId, integrationId, pageSize, skip, achievementId, title, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getCustomerProfiles - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sandbox Indicates whether you are pointing to a sandbox or live customer. (optional, default to false) * @param _callback Callback for upload/download progress @@ -12665,7 +13091,7 @@ public okhttp3.Call getCustomerProfileAchievementProgressAsync(Long applicationI 200 OK - */ - public okhttp3.Call getCustomerProfilesCall(Long pageSize, Long skip, Boolean sandbox, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerProfilesCall(Integer pageSize, Integer skip, Boolean sandbox, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -12707,7 +13133,7 @@ public okhttp3.Call getCustomerProfilesCall(Long pageSize, Long skip, Boolean sa } @SuppressWarnings("rawtypes") - private okhttp3.Call getCustomerProfilesValidateBeforeCall(Long pageSize, Long skip, Boolean sandbox, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCustomerProfilesValidateBeforeCall(Integer pageSize, Integer skip, Boolean sandbox, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCustomerProfilesCall(pageSize, skip, sandbox, _callback); @@ -12718,7 +13144,7 @@ private okhttp3.Call getCustomerProfilesValidateBeforeCall(Long pageSize, Long s /** * List customer profiles * List all customer profiles. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sandbox Indicates whether you are pointing to a sandbox or live customer. (optional, default to false) * @return InlineResponse20027 @@ -12729,7 +13155,7 @@ private okhttp3.Call getCustomerProfilesValidateBeforeCall(Long pageSize, Long s 200 OK - */ - public InlineResponse20027 getCustomerProfiles(Long pageSize, Long skip, Boolean sandbox) throws ApiException { + public InlineResponse20027 getCustomerProfiles(Integer pageSize, Integer skip, Boolean sandbox) throws ApiException { ApiResponse localVarResp = getCustomerProfilesWithHttpInfo(pageSize, skip, sandbox); return localVarResp.getData(); } @@ -12737,7 +13163,7 @@ public InlineResponse20027 getCustomerProfiles(Long pageSize, Long skip, Boolean /** * List customer profiles * List all customer profiles. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sandbox Indicates whether you are pointing to a sandbox or live customer. (optional, default to false) * @return ApiResponse<InlineResponse20027> @@ -12748,7 +13174,7 @@ public InlineResponse20027 getCustomerProfiles(Long pageSize, Long skip, Boolean 200 OK - */ - public ApiResponse getCustomerProfilesWithHttpInfo(Long pageSize, Long skip, Boolean sandbox) throws ApiException { + public ApiResponse getCustomerProfilesWithHttpInfo(Integer pageSize, Integer skip, Boolean sandbox) throws ApiException { okhttp3.Call localVarCall = getCustomerProfilesValidateBeforeCall(pageSize, skip, sandbox, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -12757,7 +13183,7 @@ public ApiResponse getCustomerProfilesWithHttpInfo(Long pag /** * List customer profiles (asynchronously) * List all customer profiles. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sandbox Indicates whether you are pointing to a sandbox or live customer. (optional, default to false) * @param _callback The callback to be executed when the API call finishes @@ -12769,7 +13195,7 @@ public ApiResponse getCustomerProfilesWithHttpInfo(Long pag 200 OK - */ - public okhttp3.Call getCustomerProfilesAsync(Long pageSize, Long skip, Boolean sandbox, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomerProfilesAsync(Integer pageSize, Integer skip, Boolean sandbox, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCustomerProfilesValidateBeforeCall(pageSize, skip, sandbox, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -12779,7 +13205,7 @@ public okhttp3.Call getCustomerProfilesAsync(Long pageSize, Long skip, Boolean s /** * Build call for getCustomersByAttributes * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sandbox Indicates whether you are pointing to a sandbox or live customer. (optional, default to false) * @param _callback Callback for upload/download progress @@ -12791,7 +13217,7 @@ public okhttp3.Call getCustomerProfilesAsync(Long pageSize, Long skip, Boolean s 200 OK - */ - public okhttp3.Call getCustomersByAttributesCall(CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean sandbox, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomersByAttributesCall(CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean sandbox, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -12833,7 +13259,7 @@ public okhttp3.Call getCustomersByAttributesCall(CustomerProfileSearchQuery body } @SuppressWarnings("rawtypes") - private okhttp3.Call getCustomersByAttributesValidateBeforeCall(CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean sandbox, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCustomersByAttributesValidateBeforeCall(CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean sandbox, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { @@ -12850,7 +13276,7 @@ private okhttp3.Call getCustomersByAttributesValidateBeforeCall(CustomerProfileS * List customer profiles matching the given attributes * Get a list of the customer profiles matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sandbox Indicates whether you are pointing to a sandbox or live customer. (optional, default to false) * @return InlineResponse20026 @@ -12861,7 +13287,7 @@ private okhttp3.Call getCustomersByAttributesValidateBeforeCall(CustomerProfileS 200 OK - */ - public InlineResponse20026 getCustomersByAttributes(CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean sandbox) throws ApiException { + public InlineResponse20026 getCustomersByAttributes(CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean sandbox) throws ApiException { ApiResponse localVarResp = getCustomersByAttributesWithHttpInfo(body, pageSize, skip, sandbox); return localVarResp.getData(); } @@ -12870,7 +13296,7 @@ public InlineResponse20026 getCustomersByAttributes(CustomerProfileSearchQuery b * List customer profiles matching the given attributes * Get a list of the customer profiles matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sandbox Indicates whether you are pointing to a sandbox or live customer. (optional, default to false) * @return ApiResponse<InlineResponse20026> @@ -12881,7 +13307,7 @@ public InlineResponse20026 getCustomersByAttributes(CustomerProfileSearchQuery b 200 OK - */ - public ApiResponse getCustomersByAttributesWithHttpInfo(CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean sandbox) throws ApiException { + public ApiResponse getCustomersByAttributesWithHttpInfo(CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean sandbox) throws ApiException { okhttp3.Call localVarCall = getCustomersByAttributesValidateBeforeCall(body, pageSize, skip, sandbox, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -12891,7 +13317,7 @@ public ApiResponse getCustomersByAttributesWithHttpInfo(Cus * List customer profiles matching the given attributes (asynchronously) * Get a list of the customer profiles matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sandbox Indicates whether you are pointing to a sandbox or live customer. (optional, default to false) * @param _callback The callback to be executed when the API call finishes @@ -12903,7 +13329,7 @@ public ApiResponse getCustomersByAttributesWithHttpInfo(Cus 200 OK - */ - public okhttp3.Call getCustomersByAttributesAsync(CustomerProfileSearchQuery body, Long pageSize, Long skip, Boolean sandbox, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCustomersByAttributesAsync(CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean sandbox, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getCustomersByAttributesValidateBeforeCall(body, pageSize, skip, sandbox, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -12925,7 +13351,7 @@ public okhttp3.Call getCustomersByAttributesAsync(CustomerProfileSearchQuery bod 200 OK - */ - public okhttp3.Call getDashboardStatisticsCall(Long loyaltyProgramId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String subledgerId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getDashboardStatisticsCall(Integer loyaltyProgramId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String subledgerId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -12968,7 +13394,7 @@ public okhttp3.Call getDashboardStatisticsCall(Long loyaltyProgramId, OffsetDate } @SuppressWarnings("rawtypes") - private okhttp3.Call getDashboardStatisticsValidateBeforeCall(Long loyaltyProgramId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String subledgerId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getDashboardStatisticsValidateBeforeCall(Integer loyaltyProgramId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String subledgerId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -13006,7 +13432,7 @@ private okhttp3.Call getDashboardStatisticsValidateBeforeCall(Long loyaltyProgra 200 OK - */ - public InlineResponse20016 getDashboardStatistics(Long loyaltyProgramId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String subledgerId) throws ApiException { + public InlineResponse20016 getDashboardStatistics(Integer loyaltyProgramId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String subledgerId) throws ApiException { ApiResponse localVarResp = getDashboardStatisticsWithHttpInfo(loyaltyProgramId, rangeStart, rangeEnd, subledgerId); return localVarResp.getData(); } @@ -13026,7 +13452,7 @@ public InlineResponse20016 getDashboardStatistics(Long loyaltyProgramId, OffsetD 200 OK - */ - public ApiResponse getDashboardStatisticsWithHttpInfo(Long loyaltyProgramId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String subledgerId) throws ApiException { + public ApiResponse getDashboardStatisticsWithHttpInfo(Integer loyaltyProgramId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String subledgerId) throws ApiException { okhttp3.Call localVarCall = getDashboardStatisticsValidateBeforeCall(loyaltyProgramId, rangeStart, rangeEnd, subledgerId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -13048,7 +13474,7 @@ public ApiResponse getDashboardStatisticsWithHttpInfo(Long 200 OK - */ - public okhttp3.Call getDashboardStatisticsAsync(Long loyaltyProgramId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String subledgerId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getDashboardStatisticsAsync(Integer loyaltyProgramId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String subledgerId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getDashboardStatisticsValidateBeforeCall(loyaltyProgramId, rangeStart, rangeEnd, subledgerId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -13059,7 +13485,7 @@ public okhttp3.Call getDashboardStatisticsAsync(Long loyaltyProgramId, OffsetDat * Build call for getEventTypes * @param name Filter results to event types with the given name. This parameter implies `includeOldVersions`. (optional) * @param includeOldVersions Include all versions of every event type. (optional, default to false) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param _callback Callback for upload/download progress @@ -13071,7 +13497,7 @@ public okhttp3.Call getDashboardStatisticsAsync(Long loyaltyProgramId, OffsetDat 200 OK - */ - public okhttp3.Call getEventTypesCall(String name, Boolean includeOldVersions, Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getEventTypesCall(String name, Boolean includeOldVersions, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -13121,7 +13547,7 @@ public okhttp3.Call getEventTypesCall(String name, Boolean includeOldVersions, L } @SuppressWarnings("rawtypes") - private okhttp3.Call getEventTypesValidateBeforeCall(String name, Boolean includeOldVersions, Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getEventTypesValidateBeforeCall(String name, Boolean includeOldVersions, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getEventTypesCall(name, includeOldVersions, pageSize, skip, sort, _callback); @@ -13134,7 +13560,7 @@ private okhttp3.Call getEventTypesValidateBeforeCall(String name, Boolean includ * Fetch all event type definitions for your account. * @param name Filter results to event types with the given name. This parameter implies `includeOldVersions`. (optional) * @param includeOldVersions Include all versions of every event type. (optional, default to false) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @return InlineResponse20042 @@ -13145,7 +13571,7 @@ private okhttp3.Call getEventTypesValidateBeforeCall(String name, Boolean includ 200 OK - */ - public InlineResponse20042 getEventTypes(String name, Boolean includeOldVersions, Long pageSize, Long skip, String sort) throws ApiException { + public InlineResponse20042 getEventTypes(String name, Boolean includeOldVersions, Integer pageSize, Integer skip, String sort) throws ApiException { ApiResponse localVarResp = getEventTypesWithHttpInfo(name, includeOldVersions, pageSize, skip, sort); return localVarResp.getData(); } @@ -13155,7 +13581,7 @@ public InlineResponse20042 getEventTypes(String name, Boolean includeOldVersions * Fetch all event type definitions for your account. * @param name Filter results to event types with the given name. This parameter implies `includeOldVersions`. (optional) * @param includeOldVersions Include all versions of every event type. (optional, default to false) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @return ApiResponse<InlineResponse20042> @@ -13166,7 +13592,7 @@ public InlineResponse20042 getEventTypes(String name, Boolean includeOldVersions 200 OK - */ - public ApiResponse getEventTypesWithHttpInfo(String name, Boolean includeOldVersions, Long pageSize, Long skip, String sort) throws ApiException { + public ApiResponse getEventTypesWithHttpInfo(String name, Boolean includeOldVersions, Integer pageSize, Integer skip, String sort) throws ApiException { okhttp3.Call localVarCall = getEventTypesValidateBeforeCall(name, includeOldVersions, pageSize, skip, sort, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -13177,7 +13603,7 @@ public ApiResponse getEventTypesWithHttpInfo(String name, B * Fetch all event type definitions for your account. * @param name Filter results to event types with the given name. This parameter implies `includeOldVersions`. (optional) * @param includeOldVersions Include all versions of every event type. (optional, default to false) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param _callback The callback to be executed when the API call finishes @@ -13189,7 +13615,7 @@ public ApiResponse getEventTypesWithHttpInfo(String name, B 200 OK - */ - public okhttp3.Call getEventTypesAsync(String name, Boolean includeOldVersions, Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getEventTypesAsync(String name, Boolean includeOldVersions, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getEventTypesValidateBeforeCall(name, includeOldVersions, pageSize, skip, sort, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -13198,7 +13624,7 @@ public okhttp3.Call getEventTypesAsync(String name, Boolean includeOldVersions, } /** * Build call for getExports - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param applicationId Filter results by Application ID. (optional) * @param campaignId Filter by the campaign ID on which the limit counters are used. (optional) @@ -13212,7 +13638,7 @@ public okhttp3.Call getEventTypesAsync(String name, Boolean includeOldVersions, 200 OK - */ - public okhttp3.Call getExportsCall(Long pageSize, Long skip, BigDecimal applicationId, Long campaignId, String entity, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getExportsCall(Integer pageSize, Integer skip, BigDecimal applicationId, Integer campaignId, String entity, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -13262,7 +13688,7 @@ public okhttp3.Call getExportsCall(Long pageSize, Long skip, BigDecimal applicat } @SuppressWarnings("rawtypes") - private okhttp3.Call getExportsValidateBeforeCall(Long pageSize, Long skip, BigDecimal applicationId, Long campaignId, String entity, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getExportsValidateBeforeCall(Integer pageSize, Integer skip, BigDecimal applicationId, Integer campaignId, String entity, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getExportsCall(pageSize, skip, applicationId, campaignId, entity, _callback); @@ -13273,7 +13699,7 @@ private okhttp3.Call getExportsValidateBeforeCall(Long pageSize, Long skip, BigD /** * Get exports * List all past exports - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param applicationId Filter results by Application ID. (optional) * @param campaignId Filter by the campaign ID on which the limit counters are used. (optional) @@ -13286,7 +13712,7 @@ private okhttp3.Call getExportsValidateBeforeCall(Long pageSize, Long skip, BigD 200 OK - */ - public InlineResponse20045 getExports(Long pageSize, Long skip, BigDecimal applicationId, Long campaignId, String entity) throws ApiException { + public InlineResponse20045 getExports(Integer pageSize, Integer skip, BigDecimal applicationId, Integer campaignId, String entity) throws ApiException { ApiResponse localVarResp = getExportsWithHttpInfo(pageSize, skip, applicationId, campaignId, entity); return localVarResp.getData(); } @@ -13294,7 +13720,7 @@ public InlineResponse20045 getExports(Long pageSize, Long skip, BigDecimal appli /** * Get exports * List all past exports - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param applicationId Filter results by Application ID. (optional) * @param campaignId Filter by the campaign ID on which the limit counters are used. (optional) @@ -13307,7 +13733,7 @@ public InlineResponse20045 getExports(Long pageSize, Long skip, BigDecimal appli 200 OK - */ - public ApiResponse getExportsWithHttpInfo(Long pageSize, Long skip, BigDecimal applicationId, Long campaignId, String entity) throws ApiException { + public ApiResponse getExportsWithHttpInfo(Integer pageSize, Integer skip, BigDecimal applicationId, Integer campaignId, String entity) throws ApiException { okhttp3.Call localVarCall = getExportsValidateBeforeCall(pageSize, skip, applicationId, campaignId, entity, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -13316,7 +13742,7 @@ public ApiResponse getExportsWithHttpInfo(Long pageSize, Lo /** * Get exports (asynchronously) * List all past exports - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param applicationId Filter results by Application ID. (optional) * @param campaignId Filter by the campaign ID on which the limit counters are used. (optional) @@ -13330,7 +13756,7 @@ public ApiResponse getExportsWithHttpInfo(Long pageSize, Lo 200 OK - */ - public okhttp3.Call getExportsAsync(Long pageSize, Long skip, BigDecimal applicationId, Long campaignId, String entity, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getExportsAsync(Integer pageSize, Integer skip, BigDecimal applicationId, Integer campaignId, String entity, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getExportsValidateBeforeCall(pageSize, skip, applicationId, campaignId, entity, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -13353,7 +13779,7 @@ public okhttp3.Call getExportsAsync(Long pageSize, Long skip, BigDecimal applica 404 Not found - */ - public okhttp3.Call getLoyaltyCardCall(Long loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyCardCall(Integer loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -13385,7 +13811,7 @@ public okhttp3.Call getLoyaltyCardCall(Long loyaltyProgramId, String loyaltyCard } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyCardValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLoyaltyCardValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -13419,7 +13845,7 @@ private okhttp3.Call getLoyaltyCardValidateBeforeCall(Long loyaltyProgramId, Str 404 Not found - */ - public LoyaltyCard getLoyaltyCard(Long loyaltyProgramId, String loyaltyCardId) throws ApiException { + public LoyaltyCard getLoyaltyCard(Integer loyaltyProgramId, String loyaltyCardId) throws ApiException { ApiResponse localVarResp = getLoyaltyCardWithHttpInfo(loyaltyProgramId, loyaltyCardId); return localVarResp.getData(); } @@ -13440,7 +13866,7 @@ public LoyaltyCard getLoyaltyCard(Long loyaltyProgramId, String loyaltyCardId) t 404 Not found - */ - public ApiResponse getLoyaltyCardWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId) throws ApiException { + public ApiResponse getLoyaltyCardWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId) throws ApiException { okhttp3.Call localVarCall = getLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -13463,7 +13889,7 @@ public ApiResponse getLoyaltyCardWithHttpInfo(Long loyaltyProgramId 404 Not found - */ - public okhttp3.Call getLoyaltyCardAsync(Long loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyCardAsync(Integer loyaltyProgramId, String loyaltyCardId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -13476,7 +13902,7 @@ public okhttp3.Call getLoyaltyCardAsync(Long loyaltyProgramId, String loyaltyCar * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @param _callback Callback for upload/download progress @@ -13490,7 +13916,7 @@ public okhttp3.Call getLoyaltyCardAsync(Long loyaltyProgramId, String loyaltyCar 404 Not found - */ - public okhttp3.Call getLoyaltyCardTransactionLogsCall(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, String subledgerId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyCardTransactionLogsCall(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, String subledgerId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -13542,7 +13968,7 @@ public okhttp3.Call getLoyaltyCardTransactionLogsCall(Long loyaltyProgramId, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyCardTransactionLogsValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, String subledgerId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLoyaltyCardTransactionLogsValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, String subledgerId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -13567,7 +13993,7 @@ private okhttp3.Call getLoyaltyCardTransactionLogsValidateBeforeCall(Long loyalt * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @return InlineResponse20019 @@ -13580,7 +14006,7 @@ private okhttp3.Call getLoyaltyCardTransactionLogsValidateBeforeCall(Long loyalt 404 Not found - */ - public InlineResponse20019 getLoyaltyCardTransactionLogs(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, String subledgerId) throws ApiException { + public InlineResponse20019 getLoyaltyCardTransactionLogs(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, String subledgerId) throws ApiException { ApiResponse localVarResp = getLoyaltyCardTransactionLogsWithHttpInfo(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId); return localVarResp.getData(); } @@ -13592,7 +14018,7 @@ public InlineResponse20019 getLoyaltyCardTransactionLogs(Long loyaltyProgramId, * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @return ApiResponse<InlineResponse20019> @@ -13605,7 +14031,7 @@ public InlineResponse20019 getLoyaltyCardTransactionLogs(Long loyaltyProgramId, 404 Not found - */ - public ApiResponse getLoyaltyCardTransactionLogsWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, String subledgerId) throws ApiException { + public ApiResponse getLoyaltyCardTransactionLogsWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, String subledgerId) throws ApiException { okhttp3.Call localVarCall = getLoyaltyCardTransactionLogsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -13618,7 +14044,7 @@ public ApiResponse getLoyaltyCardTransactionLogsWithHttpInf * @param loyaltyCardId Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. (required) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @param _callback The callback to be executed when the API call finishes @@ -13632,7 +14058,7 @@ public ApiResponse getLoyaltyCardTransactionLogsWithHttpInf 404 Not found - */ - public okhttp3.Call getLoyaltyCardTransactionLogsAsync(Long loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, String subledgerId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyCardTransactionLogsAsync(Integer loyaltyProgramId, String loyaltyCardId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, String subledgerId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoyaltyCardTransactionLogsValidateBeforeCall(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -13642,7 +14068,7 @@ public okhttp3.Call getLoyaltyCardTransactionLogsAsync(Long loyaltyProgramId, St /** * Build call for getLoyaltyCards * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param identifier The card code by which to filter loyalty cards in the response. (optional) @@ -13659,7 +14085,7 @@ public okhttp3.Call getLoyaltyCardTransactionLogsAsync(Long loyaltyProgramId, St 401 Unauthorized - */ - public okhttp3.Call getLoyaltyCardsCall(Long loyaltyProgramId, Long pageSize, Long skip, String sort, String identifier, Long profileId, String batchId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyCardsCall(Integer loyaltyProgramId, Integer pageSize, Integer skip, String sort, String identifier, Integer profileId, String batchId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -13714,7 +14140,7 @@ public okhttp3.Call getLoyaltyCardsCall(Long loyaltyProgramId, Long pageSize, Lo } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyCardsValidateBeforeCall(Long loyaltyProgramId, Long pageSize, Long skip, String sort, String identifier, Long profileId, String batchId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLoyaltyCardsValidateBeforeCall(Integer loyaltyProgramId, Integer pageSize, Integer skip, String sort, String identifier, Integer profileId, String batchId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -13731,7 +14157,7 @@ private okhttp3.Call getLoyaltyCardsValidateBeforeCall(Long loyaltyProgramId, Lo * List loyalty cards * For the given card-based loyalty program, list the loyalty cards that match your filter criteria. * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param identifier The card code by which to filter loyalty cards in the response. (optional) @@ -13747,7 +14173,7 @@ private okhttp3.Call getLoyaltyCardsValidateBeforeCall(Long loyaltyProgramId, Lo 401 Unauthorized - */ - public InlineResponse20018 getLoyaltyCards(Long loyaltyProgramId, Long pageSize, Long skip, String sort, String identifier, Long profileId, String batchId) throws ApiException { + public InlineResponse20018 getLoyaltyCards(Integer loyaltyProgramId, Integer pageSize, Integer skip, String sort, String identifier, Integer profileId, String batchId) throws ApiException { ApiResponse localVarResp = getLoyaltyCardsWithHttpInfo(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId); return localVarResp.getData(); } @@ -13756,7 +14182,7 @@ public InlineResponse20018 getLoyaltyCards(Long loyaltyProgramId, Long pageSize, * List loyalty cards * For the given card-based loyalty program, list the loyalty cards that match your filter criteria. * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param identifier The card code by which to filter loyalty cards in the response. (optional) @@ -13772,7 +14198,7 @@ public InlineResponse20018 getLoyaltyCards(Long loyaltyProgramId, Long pageSize, 401 Unauthorized - */ - public ApiResponse getLoyaltyCardsWithHttpInfo(Long loyaltyProgramId, Long pageSize, Long skip, String sort, String identifier, Long profileId, String batchId) throws ApiException { + public ApiResponse getLoyaltyCardsWithHttpInfo(Integer loyaltyProgramId, Integer pageSize, Integer skip, String sort, String identifier, Integer profileId, String batchId) throws ApiException { okhttp3.Call localVarCall = getLoyaltyCardsValidateBeforeCall(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -13782,7 +14208,7 @@ public ApiResponse getLoyaltyCardsWithHttpInfo(Long loyalty * List loyalty cards (asynchronously) * For the given card-based loyalty program, list the loyalty cards that match your filter criteria. * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param identifier The card code by which to filter loyalty cards in the response. (optional) @@ -13799,7 +14225,7 @@ public ApiResponse getLoyaltyCardsWithHttpInfo(Long loyalty 401 Unauthorized - */ - public okhttp3.Call getLoyaltyCardsAsync(Long loyaltyProgramId, Long pageSize, Long skip, String sort, String identifier, Long profileId, String batchId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyCardsAsync(Integer loyaltyProgramId, Integer pageSize, Integer skip, String sort, String identifier, Integer profileId, String batchId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoyaltyCardsValidateBeforeCall(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -13939,7 +14365,7 @@ public okhttp3.Call getLoyaltyPointsAsync(String loyaltyProgramId, String integr 200 OK - */ - public okhttp3.Call getLoyaltyProgramCall(Long loyaltyProgramId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyProgramCall(Integer loyaltyProgramId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -13970,7 +14396,7 @@ public okhttp3.Call getLoyaltyProgramCall(Long loyaltyProgramId, final ApiCallba } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyProgramValidateBeforeCall(Long loyaltyProgramId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLoyaltyProgramValidateBeforeCall(Integer loyaltyProgramId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -13995,7 +14421,7 @@ private okhttp3.Call getLoyaltyProgramValidateBeforeCall(Long loyaltyProgramId, 200 OK - */ - public LoyaltyProgram getLoyaltyProgram(Long loyaltyProgramId) throws ApiException { + public LoyaltyProgram getLoyaltyProgram(Integer loyaltyProgramId) throws ApiException { ApiResponse localVarResp = getLoyaltyProgramWithHttpInfo(loyaltyProgramId); return localVarResp.getData(); } @@ -14012,7 +14438,7 @@ public LoyaltyProgram getLoyaltyProgram(Long loyaltyProgramId) throws ApiExcepti 200 OK - */ - public ApiResponse getLoyaltyProgramWithHttpInfo(Long loyaltyProgramId) throws ApiException { + public ApiResponse getLoyaltyProgramWithHttpInfo(Integer loyaltyProgramId) throws ApiException { okhttp3.Call localVarCall = getLoyaltyProgramValidateBeforeCall(loyaltyProgramId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -14031,7 +14457,7 @@ public ApiResponse getLoyaltyProgramWithHttpInfo(Long loyaltyPro 200 OK - */ - public okhttp3.Call getLoyaltyProgramAsync(Long loyaltyProgramId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyProgramAsync(Integer loyaltyProgramId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoyaltyProgramValidateBeforeCall(loyaltyProgramId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -14045,7 +14471,7 @@ public okhttp3.Call getLoyaltyProgramAsync(Long loyaltyProgramId, final ApiCallb * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -14059,7 +14485,7 @@ public okhttp3.Call getLoyaltyProgramAsync(Long loyaltyProgramId, final ApiCallb 404 Not found - */ - public okhttp3.Call getLoyaltyProgramTransactionsCall(Long loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyProgramTransactionsCall(Integer loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -14114,7 +14540,7 @@ public okhttp3.Call getLoyaltyProgramTransactionsCall(Long loyaltyProgramId, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call getLoyaltyProgramTransactionsValidateBeforeCall(Long loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLoyaltyProgramTransactionsValidateBeforeCall(Integer loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -14135,7 +14561,7 @@ private okhttp3.Call getLoyaltyProgramTransactionsValidateBeforeCall(Long loyalt * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @return InlineResponse20017 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -14148,7 +14574,7 @@ private okhttp3.Call getLoyaltyProgramTransactionsValidateBeforeCall(Long loyalt 404 Not found - */ - public InlineResponse20017 getLoyaltyProgramTransactions(Long loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip) throws ApiException { + public InlineResponse20017 getLoyaltyProgramTransactions(Integer loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip) throws ApiException { ApiResponse localVarResp = getLoyaltyProgramTransactionsWithHttpInfo(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip); return localVarResp.getData(); } @@ -14161,7 +14587,7 @@ public InlineResponse20017 getLoyaltyProgramTransactions(Long loyaltyProgramId, * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @return ApiResponse<InlineResponse20017> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -14174,7 +14600,7 @@ public InlineResponse20017 getLoyaltyProgramTransactions(Long loyaltyProgramId, 404 Not found - */ - public ApiResponse getLoyaltyProgramTransactionsWithHttpInfo(Long loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip) throws ApiException { + public ApiResponse getLoyaltyProgramTransactionsWithHttpInfo(Integer loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip) throws ApiException { okhttp3.Call localVarCall = getLoyaltyProgramTransactionsValidateBeforeCall(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -14188,7 +14614,7 @@ public ApiResponse getLoyaltyProgramTransactionsWithHttpInf * @param subledgerId The ID of the subledger by which we filter the data. (optional) * @param startDate Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) * @param endDate Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -14202,7 +14628,7 @@ public ApiResponse getLoyaltyProgramTransactionsWithHttpInf 404 Not found - */ - public okhttp3.Call getLoyaltyProgramTransactionsAsync(Long loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Long pageSize, Long skip, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyProgramTransactionsAsync(Integer loyaltyProgramId, String loyaltyTransactionType, String subledgerId, OffsetDateTime startDate, OffsetDateTime endDate, Integer pageSize, Integer skip, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoyaltyProgramTransactionsValidateBeforeCall(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -14324,7 +14750,7 @@ public okhttp3.Call getLoyaltyProgramsAsync(final ApiCallback localVarResp = getLoyaltyStatisticsWithHttpInfo(loyaltyProgramId); return localVarResp.getData(); } @@ -14402,7 +14828,7 @@ public LoyaltyDashboardData getLoyaltyStatistics(Long loyaltyProgramId) throws A * @deprecated */ @Deprecated - public ApiResponse getLoyaltyStatisticsWithHttpInfo(Long loyaltyProgramId) throws ApiException { + public ApiResponse getLoyaltyStatisticsWithHttpInfo(Integer loyaltyProgramId) throws ApiException { okhttp3.Call localVarCall = getLoyaltyStatisticsValidateBeforeCall(loyaltyProgramId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -14423,7 +14849,7 @@ public ApiResponse getLoyaltyStatisticsWithHttpInfo(Long l * @deprecated */ @Deprecated - public okhttp3.Call getLoyaltyStatisticsAsync(Long loyaltyProgramId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLoyaltyStatisticsAsync(Integer loyaltyProgramId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getLoyaltyStatisticsValidateBeforeCall(loyaltyProgramId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -14455,7 +14881,7 @@ public okhttp3.Call getLoyaltyStatisticsAsync(Long loyaltyProgramId, final ApiCa 200 OK - */ - public okhttp3.Call getMessageLogsCall(String entityType, String messageID, String changeType, String notificationIDs, OffsetDateTime createdBefore, OffsetDateTime createdAfter, byte[] cursor, String period, Boolean isSuccessful, BigDecimal applicationId, BigDecimal campaignId, Long loyaltyProgramId, Long responseCode, String webhookIDs, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getMessageLogsCall(String entityType, String messageID, String changeType, String notificationIDs, OffsetDateTime createdBefore, OffsetDateTime createdAfter, byte[] cursor, String period, Boolean isSuccessful, BigDecimal applicationId, BigDecimal campaignId, Integer loyaltyProgramId, Integer responseCode, String webhookIDs, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -14541,7 +14967,7 @@ public okhttp3.Call getMessageLogsCall(String entityType, String messageID, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call getMessageLogsValidateBeforeCall(String entityType, String messageID, String changeType, String notificationIDs, OffsetDateTime createdBefore, OffsetDateTime createdAfter, byte[] cursor, String period, Boolean isSuccessful, BigDecimal applicationId, BigDecimal campaignId, Long loyaltyProgramId, Long responseCode, String webhookIDs, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getMessageLogsValidateBeforeCall(String entityType, String messageID, String changeType, String notificationIDs, OffsetDateTime createdBefore, OffsetDateTime createdAfter, byte[] cursor, String period, Boolean isSuccessful, BigDecimal applicationId, BigDecimal campaignId, Integer loyaltyProgramId, Integer responseCode, String webhookIDs, final ApiCallback _callback) throws ApiException { // verify the required parameter 'entityType' is set if (entityType == null) { @@ -14579,7 +15005,7 @@ private okhttp3.Call getMessageLogsValidateBeforeCall(String entityType, String 200 OK - */ - public MessageLogEntries getMessageLogs(String entityType, String messageID, String changeType, String notificationIDs, OffsetDateTime createdBefore, OffsetDateTime createdAfter, byte[] cursor, String period, Boolean isSuccessful, BigDecimal applicationId, BigDecimal campaignId, Long loyaltyProgramId, Long responseCode, String webhookIDs) throws ApiException { + public MessageLogEntries getMessageLogs(String entityType, String messageID, String changeType, String notificationIDs, OffsetDateTime createdBefore, OffsetDateTime createdAfter, byte[] cursor, String period, Boolean isSuccessful, BigDecimal applicationId, BigDecimal campaignId, Integer loyaltyProgramId, Integer responseCode, String webhookIDs) throws ApiException { ApiResponse localVarResp = getMessageLogsWithHttpInfo(entityType, messageID, changeType, notificationIDs, createdBefore, createdAfter, cursor, period, isSuccessful, applicationId, campaignId, loyaltyProgramId, responseCode, webhookIDs); return localVarResp.getData(); } @@ -14609,7 +15035,7 @@ public MessageLogEntries getMessageLogs(String entityType, String messageID, Str 200 OK - */ - public ApiResponse getMessageLogsWithHttpInfo(String entityType, String messageID, String changeType, String notificationIDs, OffsetDateTime createdBefore, OffsetDateTime createdAfter, byte[] cursor, String period, Boolean isSuccessful, BigDecimal applicationId, BigDecimal campaignId, Long loyaltyProgramId, Long responseCode, String webhookIDs) throws ApiException { + public ApiResponse getMessageLogsWithHttpInfo(String entityType, String messageID, String changeType, String notificationIDs, OffsetDateTime createdBefore, OffsetDateTime createdAfter, byte[] cursor, String period, Boolean isSuccessful, BigDecimal applicationId, BigDecimal campaignId, Integer loyaltyProgramId, Integer responseCode, String webhookIDs) throws ApiException { okhttp3.Call localVarCall = getMessageLogsValidateBeforeCall(entityType, messageID, changeType, notificationIDs, createdBefore, createdAfter, cursor, period, isSuccessful, applicationId, campaignId, loyaltyProgramId, responseCode, webhookIDs, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -14641,7 +15067,7 @@ public ApiResponse getMessageLogsWithHttpInfo(String entityTy 200 OK - */ - public okhttp3.Call getMessageLogsAsync(String entityType, String messageID, String changeType, String notificationIDs, OffsetDateTime createdBefore, OffsetDateTime createdAfter, byte[] cursor, String period, Boolean isSuccessful, BigDecimal applicationId, BigDecimal campaignId, Long loyaltyProgramId, Long responseCode, String webhookIDs, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getMessageLogsAsync(String entityType, String messageID, String changeType, String notificationIDs, OffsetDateTime createdBefore, OffsetDateTime createdAfter, byte[] cursor, String period, Boolean isSuccessful, BigDecimal applicationId, BigDecimal campaignId, Integer loyaltyProgramId, Integer responseCode, String webhookIDs, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getMessageLogsValidateBeforeCall(entityType, messageID, changeType, notificationIDs, createdBefore, createdAfter, cursor, period, isSuccessful, applicationId, campaignId, loyaltyProgramId, responseCode, webhookIDs, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -14652,7 +15078,7 @@ public okhttp3.Call getMessageLogsAsync(String entityType, String messageID, Str * Build call for getReferralsWithoutTotalCount * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param code Filter results performing case-insensitive matching against the referral code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -14670,7 +15096,7 @@ public okhttp3.Call getMessageLogsAsync(String entityType, String messageID, Str 200 OK - */ - public okhttp3.Call getReferralsWithoutTotalCountCall(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, String code, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String advocate, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getReferralsWithoutTotalCountCall(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, String code, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String advocate, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -14738,7 +15164,7 @@ public okhttp3.Call getReferralsWithoutTotalCountCall(Long applicationId, Long c } @SuppressWarnings("rawtypes") - private okhttp3.Call getReferralsWithoutTotalCountValidateBeforeCall(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, String code, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String advocate, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getReferralsWithoutTotalCountValidateBeforeCall(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, String code, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String advocate, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -14761,7 +15187,7 @@ private okhttp3.Call getReferralsWithoutTotalCountValidateBeforeCall(Long applic * List all referrals of the specified campaign. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param code Filter results performing case-insensitive matching against the referral code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -14778,7 +15204,7 @@ private okhttp3.Call getReferralsWithoutTotalCountValidateBeforeCall(Long applic 200 OK - */ - public InlineResponse20012 getReferralsWithoutTotalCount(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, String code, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String advocate) throws ApiException { + public InlineResponse20012 getReferralsWithoutTotalCount(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, String code, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String advocate) throws ApiException { ApiResponse localVarResp = getReferralsWithoutTotalCountWithHttpInfo(applicationId, campaignId, pageSize, skip, sort, code, createdBefore, createdAfter, valid, usable, advocate); return localVarResp.getData(); } @@ -14788,7 +15214,7 @@ public InlineResponse20012 getReferralsWithoutTotalCount(Long applicationId, Lon * List all referrals of the specified campaign. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param code Filter results performing case-insensitive matching against the referral code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -14805,7 +15231,7 @@ public InlineResponse20012 getReferralsWithoutTotalCount(Long applicationId, Lon 200 OK - */ - public ApiResponse getReferralsWithoutTotalCountWithHttpInfo(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, String code, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String advocate) throws ApiException { + public ApiResponse getReferralsWithoutTotalCountWithHttpInfo(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, String code, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String advocate) throws ApiException { okhttp3.Call localVarCall = getReferralsWithoutTotalCountValidateBeforeCall(applicationId, campaignId, pageSize, skip, sort, code, createdBefore, createdAfter, valid, usable, advocate, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -14816,7 +15242,7 @@ public ApiResponse getReferralsWithoutTotalCountWithHttpInf * List all referrals of the specified campaign. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param code Filter results performing case-insensitive matching against the referral code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -14834,7 +15260,7 @@ public ApiResponse getReferralsWithoutTotalCountWithHttpInf 200 OK - */ - public okhttp3.Call getReferralsWithoutTotalCountAsync(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, String code, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String advocate, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getReferralsWithoutTotalCountAsync(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, String code, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, String advocate, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getReferralsWithoutTotalCountValidateBeforeCall(applicationId, campaignId, pageSize, skip, sort, code, createdBefore, createdAfter, valid, usable, advocate, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -14853,7 +15279,7 @@ public okhttp3.Call getReferralsWithoutTotalCountAsync(Long applicationId, Long 200 OK - */ - public okhttp3.Call getRoleV2Call(Long roleId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRoleV2Call(Integer roleId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -14884,7 +15310,7 @@ public okhttp3.Call getRoleV2Call(Long roleId, final ApiCallback _callback) thro } @SuppressWarnings("rawtypes") - private okhttp3.Call getRoleV2ValidateBeforeCall(Long roleId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getRoleV2ValidateBeforeCall(Integer roleId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'roleId' is set if (roleId == null) { @@ -14909,7 +15335,7 @@ private okhttp3.Call getRoleV2ValidateBeforeCall(Long roleId, final ApiCallback 200 OK - */ - public RoleV2 getRoleV2(Long roleId) throws ApiException { + public RoleV2 getRoleV2(Integer roleId) throws ApiException { ApiResponse localVarResp = getRoleV2WithHttpInfo(roleId); return localVarResp.getData(); } @@ -14926,7 +15352,7 @@ public RoleV2 getRoleV2(Long roleId) throws ApiException { 200 OK - */ - public ApiResponse getRoleV2WithHttpInfo(Long roleId) throws ApiException { + public ApiResponse getRoleV2WithHttpInfo(Integer roleId) throws ApiException { okhttp3.Call localVarCall = getRoleV2ValidateBeforeCall(roleId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -14945,7 +15371,7 @@ public ApiResponse getRoleV2WithHttpInfo(Long roleId) throws ApiExceptio 200 OK - */ - public okhttp3.Call getRoleV2Async(Long roleId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRoleV2Async(Integer roleId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getRoleV2ValidateBeforeCall(roleId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -14966,7 +15392,7 @@ public okhttp3.Call getRoleV2Async(Long roleId, final ApiCallback _callb 200 OK - */ - public okhttp3.Call getRulesetCall(Long applicationId, Long campaignId, Long rulesetId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRulesetCall(Integer applicationId, Integer campaignId, Integer rulesetId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -14999,7 +15425,7 @@ public okhttp3.Call getRulesetCall(Long applicationId, Long campaignId, Long rul } @SuppressWarnings("rawtypes") - private okhttp3.Call getRulesetValidateBeforeCall(Long applicationId, Long campaignId, Long rulesetId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getRulesetValidateBeforeCall(Integer applicationId, Integer campaignId, Integer rulesetId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -15036,7 +15462,7 @@ private okhttp3.Call getRulesetValidateBeforeCall(Long applicationId, Long campa 200 OK - */ - public Ruleset getRuleset(Long applicationId, Long campaignId, Long rulesetId) throws ApiException { + public Ruleset getRuleset(Integer applicationId, Integer campaignId, Integer rulesetId) throws ApiException { ApiResponse localVarResp = getRulesetWithHttpInfo(applicationId, campaignId, rulesetId); return localVarResp.getData(); } @@ -15055,7 +15481,7 @@ public Ruleset getRuleset(Long applicationId, Long campaignId, Long rulesetId) t 200 OK - */ - public ApiResponse getRulesetWithHttpInfo(Long applicationId, Long campaignId, Long rulesetId) throws ApiException { + public ApiResponse getRulesetWithHttpInfo(Integer applicationId, Integer campaignId, Integer rulesetId) throws ApiException { okhttp3.Call localVarCall = getRulesetValidateBeforeCall(applicationId, campaignId, rulesetId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -15076,7 +15502,7 @@ public ApiResponse getRulesetWithHttpInfo(Long applicationId, Long camp 200 OK - */ - public okhttp3.Call getRulesetAsync(Long applicationId, Long campaignId, Long rulesetId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRulesetAsync(Integer applicationId, Integer campaignId, Integer rulesetId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getRulesetValidateBeforeCall(applicationId, campaignId, rulesetId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -15087,7 +15513,7 @@ public okhttp3.Call getRulesetAsync(Long applicationId, Long campaignId, Long ru * Build call for getRulesets * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param _callback Callback for upload/download progress @@ -15099,7 +15525,7 @@ public okhttp3.Call getRulesetAsync(Long applicationId, Long campaignId, Long ru 200 OK - */ - public okhttp3.Call getRulesetsCall(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRulesetsCall(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -15143,7 +15569,7 @@ public okhttp3.Call getRulesetsCall(Long applicationId, Long campaignId, Long pa } @SuppressWarnings("rawtypes") - private okhttp3.Call getRulesetsValidateBeforeCall(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getRulesetsValidateBeforeCall(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -15166,7 +15592,7 @@ private okhttp3.Call getRulesetsValidateBeforeCall(Long applicationId, Long camp * List all rulesets of this campaign. A ruleset is a revision of the rules of a campaign. **Important:** The response also includes deleted rules. You should only consider the latest revision of the returned rulesets. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @return InlineResponse2009 @@ -15177,7 +15603,7 @@ private okhttp3.Call getRulesetsValidateBeforeCall(Long applicationId, Long camp 200 OK - */ - public InlineResponse2009 getRulesets(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort) throws ApiException { + public InlineResponse2009 getRulesets(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort) throws ApiException { ApiResponse localVarResp = getRulesetsWithHttpInfo(applicationId, campaignId, pageSize, skip, sort); return localVarResp.getData(); } @@ -15187,7 +15613,7 @@ public InlineResponse2009 getRulesets(Long applicationId, Long campaignId, Long * List all rulesets of this campaign. A ruleset is a revision of the rules of a campaign. **Important:** The response also includes deleted rules. You should only consider the latest revision of the returned rulesets. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @return ApiResponse<InlineResponse2009> @@ -15198,7 +15624,7 @@ public InlineResponse2009 getRulesets(Long applicationId, Long campaignId, Long 200 OK - */ - public ApiResponse getRulesetsWithHttpInfo(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort) throws ApiException { + public ApiResponse getRulesetsWithHttpInfo(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort) throws ApiException { okhttp3.Call localVarCall = getRulesetsValidateBeforeCall(applicationId, campaignId, pageSize, skip, sort, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -15209,7 +15635,7 @@ public ApiResponse getRulesetsWithHttpInfo(Long applicationI * List all rulesets of this campaign. A ruleset is a revision of the rules of a campaign. **Important:** The response also includes deleted rules. You should only consider the latest revision of the returned rulesets. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param _callback The callback to be executed when the API call finishes @@ -15221,7 +15647,7 @@ public ApiResponse getRulesetsWithHttpInfo(Long applicationI 200 OK - */ - public okhttp3.Call getRulesetsAsync(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRulesetsAsync(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getRulesetsValidateBeforeCall(applicationId, campaignId, pageSize, skip, sort, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -15242,7 +15668,7 @@ public okhttp3.Call getRulesetsAsync(Long applicationId, Long campaignId, Long p 404 Not found - */ - public okhttp3.Call getStoreCall(Long applicationId, String storeId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getStoreCall(Integer applicationId, String storeId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -15274,7 +15700,7 @@ public okhttp3.Call getStoreCall(Long applicationId, String storeId, final ApiCa } @SuppressWarnings("rawtypes") - private okhttp3.Call getStoreValidateBeforeCall(Long applicationId, String storeId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getStoreValidateBeforeCall(Integer applicationId, String storeId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -15306,7 +15732,7 @@ private okhttp3.Call getStoreValidateBeforeCall(Long applicationId, String store 404 Not found - */ - public Store getStore(Long applicationId, String storeId) throws ApiException { + public Store getStore(Integer applicationId, String storeId) throws ApiException { ApiResponse localVarResp = getStoreWithHttpInfo(applicationId, storeId); return localVarResp.getData(); } @@ -15325,7 +15751,7 @@ public Store getStore(Long applicationId, String storeId) throws ApiException { 404 Not found - */ - public ApiResponse getStoreWithHttpInfo(Long applicationId, String storeId) throws ApiException { + public ApiResponse getStoreWithHttpInfo(Integer applicationId, String storeId) throws ApiException { okhttp3.Call localVarCall = getStoreValidateBeforeCall(applicationId, storeId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -15346,7 +15772,7 @@ public ApiResponse getStoreWithHttpInfo(Long applicationId, String storeI 404 Not found - */ - public okhttp3.Call getStoreAsync(Long applicationId, String storeId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getStoreAsync(Integer applicationId, String storeId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getStoreValidateBeforeCall(applicationId, storeId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -15365,7 +15791,7 @@ public okhttp3.Call getStoreAsync(Long applicationId, String storeId, final ApiC 200 OK - */ - public okhttp3.Call getUserCall(Long userId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserCall(Integer userId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -15396,7 +15822,7 @@ public okhttp3.Call getUserCall(Long userId, final ApiCallback _callback) throws } @SuppressWarnings("rawtypes") - private okhttp3.Call getUserValidateBeforeCall(Long userId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserValidateBeforeCall(Integer userId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userId' is set if (userId == null) { @@ -15421,7 +15847,7 @@ private okhttp3.Call getUserValidateBeforeCall(Long userId, final ApiCallback _c 200 OK - */ - public User getUser(Long userId) throws ApiException { + public User getUser(Integer userId) throws ApiException { ApiResponse localVarResp = getUserWithHttpInfo(userId); return localVarResp.getData(); } @@ -15438,7 +15864,7 @@ public User getUser(Long userId) throws ApiException { 200 OK - */ - public ApiResponse getUserWithHttpInfo(Long userId) throws ApiException { + public ApiResponse getUserWithHttpInfo(Integer userId) throws ApiException { okhttp3.Call localVarCall = getUserValidateBeforeCall(userId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -15457,7 +15883,7 @@ public ApiResponse getUserWithHttpInfo(Long userId) throws ApiException { 200 OK - */ - public okhttp3.Call getUserAsync(Long userId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserAsync(Integer userId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUserValidateBeforeCall(userId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -15466,7 +15892,7 @@ public okhttp3.Call getUserAsync(Long userId, final ApiCallback _callback) } /** * Build call for getUsers - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param _callback Callback for upload/download progress @@ -15478,7 +15904,7 @@ public okhttp3.Call getUserAsync(Long userId, final ApiCallback _callback) 200 OK - */ - public okhttp3.Call getUsersCall(Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUsersCall(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -15520,7 +15946,7 @@ public okhttp3.Call getUsersCall(Long pageSize, Long skip, String sort, final Ap } @SuppressWarnings("rawtypes") - private okhttp3.Call getUsersValidateBeforeCall(Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUsersValidateBeforeCall(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUsersCall(pageSize, skip, sort, _callback); @@ -15531,7 +15957,7 @@ private okhttp3.Call getUsersValidateBeforeCall(Long pageSize, Long skip, String /** * List users in account * Retrieve all users in your account. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @return InlineResponse20043 @@ -15542,7 +15968,7 @@ private okhttp3.Call getUsersValidateBeforeCall(Long pageSize, Long skip, String 200 OK - */ - public InlineResponse20043 getUsers(Long pageSize, Long skip, String sort) throws ApiException { + public InlineResponse20043 getUsers(Integer pageSize, Integer skip, String sort) throws ApiException { ApiResponse localVarResp = getUsersWithHttpInfo(pageSize, skip, sort); return localVarResp.getData(); } @@ -15550,7 +15976,7 @@ public InlineResponse20043 getUsers(Long pageSize, Long skip, String sort) throw /** * List users in account * Retrieve all users in your account. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @return ApiResponse<InlineResponse20043> @@ -15561,7 +15987,7 @@ public InlineResponse20043 getUsers(Long pageSize, Long skip, String sort) throw 200 OK - */ - public ApiResponse getUsersWithHttpInfo(Long pageSize, Long skip, String sort) throws ApiException { + public ApiResponse getUsersWithHttpInfo(Integer pageSize, Integer skip, String sort) throws ApiException { okhttp3.Call localVarCall = getUsersValidateBeforeCall(pageSize, skip, sort, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -15570,7 +15996,7 @@ public ApiResponse getUsersWithHttpInfo(Long pageSize, Long /** * List users in account (asynchronously) * Retrieve all users in your account. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param _callback The callback to be executed when the API call finishes @@ -15582,7 +16008,7 @@ public ApiResponse getUsersWithHttpInfo(Long pageSize, Long 200 OK - */ - public okhttp3.Call getUsersAsync(Long pageSize, Long skip, String sort, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUsersAsync(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUsersValidateBeforeCall(pageSize, skip, sort, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -15601,7 +16027,7 @@ public okhttp3.Call getUsersAsync(Long pageSize, Long skip, String sort, final A 200 OK - */ - public okhttp3.Call getWebhookCall(Long webhookId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getWebhookCall(Integer webhookId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -15632,7 +16058,7 @@ public okhttp3.Call getWebhookCall(Long webhookId, final ApiCallback _callback) } @SuppressWarnings("rawtypes") - private okhttp3.Call getWebhookValidateBeforeCall(Long webhookId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getWebhookValidateBeforeCall(Integer webhookId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'webhookId' is set if (webhookId == null) { @@ -15657,7 +16083,7 @@ private okhttp3.Call getWebhookValidateBeforeCall(Long webhookId, final ApiCallb 200 OK - */ - public Webhook getWebhook(Long webhookId) throws ApiException { + public Webhook getWebhook(Integer webhookId) throws ApiException { ApiResponse localVarResp = getWebhookWithHttpInfo(webhookId); return localVarResp.getData(); } @@ -15674,7 +16100,7 @@ public Webhook getWebhook(Long webhookId) throws ApiException { 200 OK - */ - public ApiResponse getWebhookWithHttpInfo(Long webhookId) throws ApiException { + public ApiResponse getWebhookWithHttpInfo(Integer webhookId) throws ApiException { okhttp3.Call localVarCall = getWebhookValidateBeforeCall(webhookId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -15693,7 +16119,7 @@ public ApiResponse getWebhookWithHttpInfo(Long webhookId) throws ApiExc 200 OK - */ - public okhttp3.Call getWebhookAsync(Long webhookId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getWebhookAsync(Integer webhookId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getWebhookValidateBeforeCall(webhookId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -15702,7 +16128,7 @@ public okhttp3.Call getWebhookAsync(Long webhookId, final ApiCallback _ } /** * Build call for getWebhookActivationLogs - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param integrationRequestUuid Filter results by integration request UUID. (optional) @@ -15720,7 +16146,7 @@ public okhttp3.Call getWebhookAsync(Long webhookId, final ApiCallback _ 200 OK - */ - public okhttp3.Call getWebhookActivationLogsCall(Long pageSize, Long skip, String sort, String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getWebhookActivationLogsCall(Integer pageSize, Integer skip, String sort, String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -15786,7 +16212,7 @@ public okhttp3.Call getWebhookActivationLogsCall(Long pageSize, Long skip, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call getWebhookActivationLogsValidateBeforeCall(Long pageSize, Long skip, String sort, String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getWebhookActivationLogsValidateBeforeCall(Integer pageSize, Integer skip, String sort, String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getWebhookActivationLogsCall(pageSize, skip, sort, integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter, _callback); @@ -15797,7 +16223,7 @@ private okhttp3.Call getWebhookActivationLogsValidateBeforeCall(Long pageSize, L /** * List webhook activation log entries * Webhook activation log entries are created as soon as an integration request triggers a webhook effect. See the [docs](https://docs.talon.one/docs/dev/getting-started/webhooks). - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param integrationRequestUuid Filter results by integration request UUID. (optional) @@ -15814,7 +16240,7 @@ private okhttp3.Call getWebhookActivationLogsValidateBeforeCall(Long pageSize, L 200 OK - */ - public InlineResponse20040 getWebhookActivationLogs(Long pageSize, Long skip, String sort, String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { + public InlineResponse20040 getWebhookActivationLogs(Integer pageSize, Integer skip, String sort, String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { ApiResponse localVarResp = getWebhookActivationLogsWithHttpInfo(pageSize, skip, sort, integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter); return localVarResp.getData(); } @@ -15822,7 +16248,7 @@ public InlineResponse20040 getWebhookActivationLogs(Long pageSize, Long skip, St /** * List webhook activation log entries * Webhook activation log entries are created as soon as an integration request triggers a webhook effect. See the [docs](https://docs.talon.one/docs/dev/getting-started/webhooks). - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param integrationRequestUuid Filter results by integration request UUID. (optional) @@ -15839,7 +16265,7 @@ public InlineResponse20040 getWebhookActivationLogs(Long pageSize, Long skip, St 200 OK - */ - public ApiResponse getWebhookActivationLogsWithHttpInfo(Long pageSize, Long skip, String sort, String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { + public ApiResponse getWebhookActivationLogsWithHttpInfo(Integer pageSize, Integer skip, String sort, String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { okhttp3.Call localVarCall = getWebhookActivationLogsValidateBeforeCall(pageSize, skip, sort, integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -15848,7 +16274,7 @@ public ApiResponse getWebhookActivationLogsWithHttpInfo(Lon /** * List webhook activation log entries (asynchronously) * Webhook activation log entries are created as soon as an integration request triggers a webhook effect. See the [docs](https://docs.talon.one/docs/dev/getting-started/webhooks). - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param integrationRequestUuid Filter results by integration request UUID. (optional) @@ -15866,7 +16292,7 @@ public ApiResponse getWebhookActivationLogsWithHttpInfo(Lon 200 OK - */ - public okhttp3.Call getWebhookActivationLogsAsync(Long pageSize, Long skip, String sort, String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getWebhookActivationLogsAsync(Integer pageSize, Integer skip, String sort, String integrationRequestUuid, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getWebhookActivationLogsValidateBeforeCall(pageSize, skip, sort, integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -15875,7 +16301,7 @@ public okhttp3.Call getWebhookActivationLogsAsync(Long pageSize, Long skip, Stri } /** * Build call for getWebhookLogs - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param status Filter results by HTTP status codes. (optional) @@ -15894,7 +16320,7 @@ public okhttp3.Call getWebhookActivationLogsAsync(Long pageSize, Long skip, Stri 200 OK - */ - public okhttp3.Call getWebhookLogsCall(Long pageSize, Long skip, String sort, String status, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getWebhookLogsCall(Integer pageSize, Integer skip, String sort, String status, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -15964,7 +16390,7 @@ public okhttp3.Call getWebhookLogsCall(Long pageSize, Long skip, String sort, St } @SuppressWarnings("rawtypes") - private okhttp3.Call getWebhookLogsValidateBeforeCall(Long pageSize, Long skip, String sort, String status, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getWebhookLogsValidateBeforeCall(Integer pageSize, Integer skip, String sort, String status, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getWebhookLogsCall(pageSize, skip, sort, status, webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter, _callback); @@ -15975,7 +16401,7 @@ private okhttp3.Call getWebhookLogsValidateBeforeCall(Long pageSize, Long skip, /** * List webhook log entries * Retrieve all webhook log entries. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param status Filter results by HTTP status codes. (optional) @@ -15993,7 +16419,7 @@ private okhttp3.Call getWebhookLogsValidateBeforeCall(Long pageSize, Long skip, 200 OK - */ - public InlineResponse20041 getWebhookLogs(Long pageSize, Long skip, String sort, String status, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { + public InlineResponse20041 getWebhookLogs(Integer pageSize, Integer skip, String sort, String status, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { ApiResponse localVarResp = getWebhookLogsWithHttpInfo(pageSize, skip, sort, status, webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter); return localVarResp.getData(); } @@ -16001,7 +16427,7 @@ public InlineResponse20041 getWebhookLogs(Long pageSize, Long skip, String sort, /** * List webhook log entries * Retrieve all webhook log entries. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param status Filter results by HTTP status codes. (optional) @@ -16019,7 +16445,7 @@ public InlineResponse20041 getWebhookLogs(Long pageSize, Long skip, String sort, 200 OK - */ - public ApiResponse getWebhookLogsWithHttpInfo(Long pageSize, Long skip, String sort, String status, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { + public ApiResponse getWebhookLogsWithHttpInfo(Integer pageSize, Integer skip, String sort, String status, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, OffsetDateTime createdBefore, OffsetDateTime createdAfter) throws ApiException { okhttp3.Call localVarCall = getWebhookLogsValidateBeforeCall(pageSize, skip, sort, status, webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -16028,7 +16454,7 @@ public ApiResponse getWebhookLogsWithHttpInfo(Long pageSize /** * List webhook log entries (asynchronously) * Retrieve all webhook log entries. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param status Filter results by HTTP status codes. (optional) @@ -16047,7 +16473,7 @@ public ApiResponse getWebhookLogsWithHttpInfo(Long pageSize 200 OK - */ - public okhttp3.Call getWebhookLogsAsync(Long pageSize, Long skip, String sort, String status, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getWebhookLogsAsync(Integer pageSize, Integer skip, String sort, String status, BigDecimal webhookId, BigDecimal applicationId, BigDecimal campaignId, String requestUuid, OffsetDateTime createdBefore, OffsetDateTime createdAfter, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getWebhookLogsValidateBeforeCall(pageSize, skip, sort, status, webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -16058,7 +16484,7 @@ public okhttp3.Call getWebhookLogsAsync(Long pageSize, Long skip, String sort, S * Build call for getWebhooks * @param applicationIds Checks if the given catalog or its attributes are referenced in the specified Application ID. **Note**: If no Application ID is provided, we check for all connected Applications. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param creationType Filter results by creation type. (optional) * @param visibility Filter results by visibility. (optional) @@ -16073,7 +16499,7 @@ public okhttp3.Call getWebhookLogsAsync(Long pageSize, Long skip, String sort, S 200 OK - */ - public okhttp3.Call getWebhooksCall(String applicationIds, String sort, Long pageSize, Long skip, String creationType, String visibility, Long outgoingIntegrationsTypeId, String title, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getWebhooksCall(String applicationIds, String sort, Integer pageSize, Integer skip, String creationType, String visibility, Integer outgoingIntegrationsTypeId, String title, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -16135,7 +16561,7 @@ public okhttp3.Call getWebhooksCall(String applicationIds, String sort, Long pag } @SuppressWarnings("rawtypes") - private okhttp3.Call getWebhooksValidateBeforeCall(String applicationIds, String sort, Long pageSize, Long skip, String creationType, String visibility, Long outgoingIntegrationsTypeId, String title, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getWebhooksValidateBeforeCall(String applicationIds, String sort, Integer pageSize, Integer skip, String creationType, String visibility, Integer outgoingIntegrationsTypeId, String title, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getWebhooksCall(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title, _callback); @@ -16148,7 +16574,7 @@ private okhttp3.Call getWebhooksValidateBeforeCall(String applicationIds, String * List all webhooks. * @param applicationIds Checks if the given catalog or its attributes are referenced in the specified Application ID. **Note**: If no Application ID is provided, we check for all connected Applications. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param creationType Filter results by creation type. (optional) * @param visibility Filter results by visibility. (optional) @@ -16162,7 +16588,7 @@ private okhttp3.Call getWebhooksValidateBeforeCall(String applicationIds, String 200 OK - */ - public InlineResponse20039 getWebhooks(String applicationIds, String sort, Long pageSize, Long skip, String creationType, String visibility, Long outgoingIntegrationsTypeId, String title) throws ApiException { + public InlineResponse20039 getWebhooks(String applicationIds, String sort, Integer pageSize, Integer skip, String creationType, String visibility, Integer outgoingIntegrationsTypeId, String title) throws ApiException { ApiResponse localVarResp = getWebhooksWithHttpInfo(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title); return localVarResp.getData(); } @@ -16172,7 +16598,7 @@ public InlineResponse20039 getWebhooks(String applicationIds, String sort, Long * List all webhooks. * @param applicationIds Checks if the given catalog or its attributes are referenced in the specified Application ID. **Note**: If no Application ID is provided, we check for all connected Applications. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param creationType Filter results by creation type. (optional) * @param visibility Filter results by visibility. (optional) @@ -16186,7 +16612,7 @@ public InlineResponse20039 getWebhooks(String applicationIds, String sort, Long 200 OK - */ - public ApiResponse getWebhooksWithHttpInfo(String applicationIds, String sort, Long pageSize, Long skip, String creationType, String visibility, Long outgoingIntegrationsTypeId, String title) throws ApiException { + public ApiResponse getWebhooksWithHttpInfo(String applicationIds, String sort, Integer pageSize, Integer skip, String creationType, String visibility, Integer outgoingIntegrationsTypeId, String title) throws ApiException { okhttp3.Call localVarCall = getWebhooksValidateBeforeCall(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -16197,7 +16623,7 @@ public ApiResponse getWebhooksWithHttpInfo(String applicati * List all webhooks. * @param applicationIds Checks if the given catalog or its attributes are referenced in the specified Application ID. **Note**: If no Application ID is provided, we check for all connected Applications. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param creationType Filter results by creation type. (optional) * @param visibility Filter results by visibility. (optional) @@ -16212,7 +16638,7 @@ public ApiResponse getWebhooksWithHttpInfo(String applicati 200 OK - */ - public okhttp3.Call getWebhooksAsync(String applicationIds, String sort, Long pageSize, Long skip, String creationType, String visibility, Long outgoingIntegrationsTypeId, String title, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getWebhooksAsync(String applicationIds, String sort, Integer pageSize, Integer skip, String creationType, String visibility, Integer outgoingIntegrationsTypeId, String title, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getWebhooksValidateBeforeCall(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -16234,7 +16660,7 @@ public okhttp3.Call getWebhooksAsync(String applicationIds, String sort, Long pa 401 Unauthorized - */ - public okhttp3.Call importAccountCollectionCall(Long collectionId, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importAccountCollectionCall(Integer collectionId, String upFile, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -16269,7 +16695,7 @@ public okhttp3.Call importAccountCollectionCall(Long collectionId, String upFile } @SuppressWarnings("rawtypes") - private okhttp3.Call importAccountCollectionValidateBeforeCall(Long collectionId, String upFile, final ApiCallback _callback) throws ApiException { + private okhttp3.Call importAccountCollectionValidateBeforeCall(Integer collectionId, String upFile, final ApiCallback _callback) throws ApiException { // verify the required parameter 'collectionId' is set if (collectionId == null) { @@ -16297,7 +16723,7 @@ private okhttp3.Call importAccountCollectionValidateBeforeCall(Long collectionId 401 Unauthorized - */ - public ModelImport importAccountCollection(Long collectionId, String upFile) throws ApiException { + public ModelImport importAccountCollection(Integer collectionId, String upFile) throws ApiException { ApiResponse localVarResp = importAccountCollectionWithHttpInfo(collectionId, upFile); return localVarResp.getData(); } @@ -16317,7 +16743,7 @@ public ModelImport importAccountCollection(Long collectionId, String upFile) thr 401 Unauthorized - */ - public ApiResponse importAccountCollectionWithHttpInfo(Long collectionId, String upFile) throws ApiException { + public ApiResponse importAccountCollectionWithHttpInfo(Integer collectionId, String upFile) throws ApiException { okhttp3.Call localVarCall = importAccountCollectionValidateBeforeCall(collectionId, upFile, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -16339,7 +16765,7 @@ public ApiResponse importAccountCollectionWithHttpInfo(Long collect 401 Unauthorized - */ - public okhttp3.Call importAccountCollectionAsync(Long collectionId, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importAccountCollectionAsync(Integer collectionId, String upFile, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = importAccountCollectionValidateBeforeCall(collectionId, upFile, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -16362,7 +16788,7 @@ public okhttp3.Call importAccountCollectionAsync(Long collectionId, String upFil 404 Not found - */ - public okhttp3.Call importAllowedListCall(Long attributeId, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importAllowedListCall(Integer attributeId, String upFile, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -16397,7 +16823,7 @@ public okhttp3.Call importAllowedListCall(Long attributeId, String upFile, final } @SuppressWarnings("rawtypes") - private okhttp3.Call importAllowedListValidateBeforeCall(Long attributeId, String upFile, final ApiCallback _callback) throws ApiException { + private okhttp3.Call importAllowedListValidateBeforeCall(Integer attributeId, String upFile, final ApiCallback _callback) throws ApiException { // verify the required parameter 'attributeId' is set if (attributeId == null) { @@ -16426,7 +16852,7 @@ private okhttp3.Call importAllowedListValidateBeforeCall(Long attributeId, Strin 404 Not found - */ - public ModelImport importAllowedList(Long attributeId, String upFile) throws ApiException { + public ModelImport importAllowedList(Integer attributeId, String upFile) throws ApiException { ApiResponse localVarResp = importAllowedListWithHttpInfo(attributeId, upFile); return localVarResp.getData(); } @@ -16447,7 +16873,7 @@ public ModelImport importAllowedList(Long attributeId, String upFile) throws Api 404 Not found - */ - public ApiResponse importAllowedListWithHttpInfo(Long attributeId, String upFile) throws ApiException { + public ApiResponse importAllowedListWithHttpInfo(Integer attributeId, String upFile) throws ApiException { okhttp3.Call localVarCall = importAllowedListValidateBeforeCall(attributeId, upFile, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -16470,7 +16896,7 @@ public ApiResponse importAllowedListWithHttpInfo(Long attributeId, 404 Not found - */ - public okhttp3.Call importAllowedListAsync(Long attributeId, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importAllowedListAsync(Integer attributeId, String upFile, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = importAllowedListValidateBeforeCall(attributeId, upFile, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -16493,7 +16919,7 @@ public okhttp3.Call importAllowedListAsync(Long attributeId, String upFile, fina 404 Not found - */ - public okhttp3.Call importAudiencesMembershipsCall(Long audienceId, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importAudiencesMembershipsCall(Integer audienceId, String upFile, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -16528,7 +16954,7 @@ public okhttp3.Call importAudiencesMembershipsCall(Long audienceId, String upFil } @SuppressWarnings("rawtypes") - private okhttp3.Call importAudiencesMembershipsValidateBeforeCall(Long audienceId, String upFile, final ApiCallback _callback) throws ApiException { + private okhttp3.Call importAudiencesMembershipsValidateBeforeCall(Integer audienceId, String upFile, final ApiCallback _callback) throws ApiException { // verify the required parameter 'audienceId' is set if (audienceId == null) { @@ -16557,7 +16983,7 @@ private okhttp3.Call importAudiencesMembershipsValidateBeforeCall(Long audienceI 404 Not found - */ - public ModelImport importAudiencesMemberships(Long audienceId, String upFile) throws ApiException { + public ModelImport importAudiencesMemberships(Integer audienceId, String upFile) throws ApiException { ApiResponse localVarResp = importAudiencesMembershipsWithHttpInfo(audienceId, upFile); return localVarResp.getData(); } @@ -16578,7 +17004,7 @@ public ModelImport importAudiencesMemberships(Long audienceId, String upFile) th 404 Not found - */ - public ApiResponse importAudiencesMembershipsWithHttpInfo(Long audienceId, String upFile) throws ApiException { + public ApiResponse importAudiencesMembershipsWithHttpInfo(Integer audienceId, String upFile) throws ApiException { okhttp3.Call localVarCall = importAudiencesMembershipsValidateBeforeCall(audienceId, upFile, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -16601,7 +17027,7 @@ public ApiResponse importAudiencesMembershipsWithHttpInfo(Long audi 404 Not found - */ - public okhttp3.Call importAudiencesMembershipsAsync(Long audienceId, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importAudiencesMembershipsAsync(Integer audienceId, String upFile, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = importAudiencesMembershipsValidateBeforeCall(audienceId, upFile, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -16609,9 +17035,11 @@ public okhttp3.Call importAudiencesMembershipsAsync(Long audienceId, String upFi return localVarCall; } /** - * Build call for importCampaignStores + * Build call for importCampaignStoreBudget * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param action The action that this budget is limiting. (optional) + * @param period The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. (optional) * @param upFile The file containing the data that is being imported. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -16619,22 +17047,28 @@ public okhttp3.Call importAudiencesMembershipsAsync(Long audienceId, String upFi * @http.response.details - + - -
Status Code Description Response Headers
200 OK -
201 Created -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
*/ - public okhttp3.Call importCampaignStoresCall(Long applicationId, Long campaignId, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importCampaignStoreBudgetCall(Integer applicationId, Integer campaignId, String action, String period, String upFile, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/stores/import" + String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/stores/budgets/import" .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (action != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("action", action)); + } + + if (period != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("period", period)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -16661,74 +17095,76 @@ public okhttp3.Call importCampaignStoresCall(Long applicationId, Long campaignId } @SuppressWarnings("rawtypes") - private okhttp3.Call importCampaignStoresValidateBeforeCall(Long applicationId, Long campaignId, String upFile, final ApiCallback _callback) throws ApiException { + private okhttp3.Call importCampaignStoreBudgetValidateBeforeCall(Integer applicationId, Integer campaignId, String action, String period, String upFile, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling importCampaignStores(Async)"); + throw new ApiException("Missing the required parameter 'applicationId' when calling importCampaignStoreBudget(Async)"); } // verify the required parameter 'campaignId' is set if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling importCampaignStores(Async)"); + throw new ApiException("Missing the required parameter 'campaignId' when calling importCampaignStoreBudget(Async)"); } - okhttp3.Call localVarCall = importCampaignStoresCall(applicationId, campaignId, upFile, _callback); + okhttp3.Call localVarCall = importCampaignStoreBudgetCall(applicationId, campaignId, action, period, upFile, _callback); return localVarCall; } /** - * Import stores - * Upload a CSV file containing the stores you want to link to a specific campaign. Send the file as multipart data. The CSV file **must** only contain the following column: - `store_integration_id`: The identifier of the store. The import **replaces** the previous list of stores linked to the campaign. + * Import campaign store budgets + * Upload a CSV file containing store budgets for a given campaign. Send the file as multipart data. The CSV file **must** only contain the following columns: - `store_integration_id`: The identifier of the store. - `limit`: The budget limit for the store. The import **replaces** the previous list of store budgets. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param action The action that this budget is limiting. (optional) + * @param period The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. (optional) * @param upFile The file containing the data that is being imported. (optional) * @return ModelImport * @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 OK -
201 Created -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
*/ - public ModelImport importCampaignStores(Long applicationId, Long campaignId, String upFile) throws ApiException { - ApiResponse localVarResp = importCampaignStoresWithHttpInfo(applicationId, campaignId, upFile); + public ModelImport importCampaignStoreBudget(Integer applicationId, Integer campaignId, String action, String period, String upFile) throws ApiException { + ApiResponse localVarResp = importCampaignStoreBudgetWithHttpInfo(applicationId, campaignId, action, period, upFile); return localVarResp.getData(); } /** - * Import stores - * Upload a CSV file containing the stores you want to link to a specific campaign. Send the file as multipart data. The CSV file **must** only contain the following column: - `store_integration_id`: The identifier of the store. The import **replaces** the previous list of stores linked to the campaign. + * Import campaign store budgets + * Upload a CSV file containing store budgets for a given campaign. Send the file as multipart data. The CSV file **must** only contain the following columns: - `store_integration_id`: The identifier of the store. - `limit`: The budget limit for the store. The import **replaces** the previous list of store budgets. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param action The action that this budget is limiting. (optional) + * @param period The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. (optional) * @param upFile The file containing the data that is being imported. (optional) * @return ApiResponse<ModelImport> * @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 OK -
201 Created -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
*/ - public ApiResponse importCampaignStoresWithHttpInfo(Long applicationId, Long campaignId, String upFile) throws ApiException { - okhttp3.Call localVarCall = importCampaignStoresValidateBeforeCall(applicationId, campaignId, upFile, null); + public ApiResponse importCampaignStoreBudgetWithHttpInfo(Integer applicationId, Integer campaignId, String action, String period, String upFile) throws ApiException { + okhttp3.Call localVarCall = importCampaignStoreBudgetValidateBeforeCall(applicationId, campaignId, action, period, upFile, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * Import stores (asynchronously) - * Upload a CSV file containing the stores you want to link to a specific campaign. Send the file as multipart data. The CSV file **must** only contain the following column: - `store_integration_id`: The identifier of the store. The import **replaces** the previous list of stores linked to the campaign. + * Import campaign store budgets (asynchronously) + * Upload a CSV file containing store budgets for a given campaign. Send the file as multipart data. The CSV file **must** only contain the following columns: - `store_integration_id`: The identifier of the store. - `limit`: The budget limit for the store. The import **replaces** the previous list of store budgets. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param action The action that this budget is limiting. (optional) + * @param period The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. (optional) * @param upFile The file containing the data that is being imported. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -16736,24 +17172,21 @@ public ApiResponse importCampaignStoresWithHttpInfo(Long applicatio * @http.response.details - + - -
Status Code Description Response Headers
200 OK -
201 Created -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
*/ - public okhttp3.Call importCampaignStoresAsync(Long applicationId, Long campaignId, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importCampaignStoreBudgetAsync(Integer applicationId, Integer campaignId, String action, String period, String upFile, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = importCampaignStoresValidateBeforeCall(applicationId, campaignId, upFile, _callback); + okhttp3.Call localVarCall = importCampaignStoreBudgetValidateBeforeCall(applicationId, campaignId, action, period, upFile, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for importCollection + * Build call for importCampaignStores * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) * @param upFile The file containing the data that is being imported. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -16762,17 +17195,18 @@ public okhttp3.Call importCampaignStoresAsync(Long applicationId, Long campaignI - + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
*/ - public okhttp3.Call importCollectionCall(Long applicationId, Long campaignId, Long collectionId, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importCampaignStoresCall(Integer applicationId, Integer campaignId, String upFile, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/import" + String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/stores/import" .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) - .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -16802,35 +17236,29 @@ public okhttp3.Call importCollectionCall(Long applicationId, Long campaignId, Lo } @SuppressWarnings("rawtypes") - private okhttp3.Call importCollectionValidateBeforeCall(Long applicationId, Long campaignId, Long collectionId, String upFile, final ApiCallback _callback) throws ApiException { + private okhttp3.Call importCampaignStoresValidateBeforeCall(Integer applicationId, Integer campaignId, String upFile, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling importCollection(Async)"); + throw new ApiException("Missing the required parameter 'applicationId' when calling importCampaignStores(Async)"); } // verify the required parameter 'campaignId' is set if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling importCollection(Async)"); - } - - // verify the required parameter 'collectionId' is set - if (collectionId == null) { - throw new ApiException("Missing the required parameter 'collectionId' when calling importCollection(Async)"); + throw new ApiException("Missing the required parameter 'campaignId' when calling importCampaignStores(Async)"); } - okhttp3.Call localVarCall = importCollectionCall(applicationId, campaignId, collectionId, upFile, _callback); + okhttp3.Call localVarCall = importCampaignStoresCall(applicationId, campaignId, upFile, _callback); return localVarCall; } /** - * Import data into existing campaign-level collection - * Upload a CSV file containing the collection of string values that should be attached as payload for collection. The file should be sent as multipart data. The import **replaces** the initial content of the collection. The CSV file **must** only contain the following column: - `item`: the values in your collection. A collection is limited to 500,000 items. Example: ``` item Addidas Nike Asics ``` **Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection. + * Import stores + * Upload a CSV file containing the stores you want to link to a specific campaign. Send the file as multipart data. The CSV file **must** only contain the following column: - `store_integration_id`: The identifier of the store. The import **replaces** the previous list of stores linked to the campaign. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) * @param upFile The file containing the data that is being imported. (optional) * @return ModelImport * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -16838,20 +17266,21 @@ private okhttp3.Call importCollectionValidateBeforeCall(Long applicationId, Long - + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
*/ - public ModelImport importCollection(Long applicationId, Long campaignId, Long collectionId, String upFile) throws ApiException { - ApiResponse localVarResp = importCollectionWithHttpInfo(applicationId, campaignId, collectionId, upFile); + public ModelImport importCampaignStores(Integer applicationId, Integer campaignId, String upFile) throws ApiException { + ApiResponse localVarResp = importCampaignStoresWithHttpInfo(applicationId, campaignId, upFile); return localVarResp.getData(); } /** - * Import data into existing campaign-level collection - * Upload a CSV file containing the collection of string values that should be attached as payload for collection. The file should be sent as multipart data. The import **replaces** the initial content of the collection. The CSV file **must** only contain the following column: - `item`: the values in your collection. A collection is limited to 500,000 items. Example: ``` item Addidas Nike Asics ``` **Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection. + * Import stores + * Upload a CSV file containing the stores you want to link to a specific campaign. Send the file as multipart data. The CSV file **must** only contain the following column: - `store_integration_id`: The identifier of the store. The import **replaces** the previous list of stores linked to the campaign. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) * @param upFile The file containing the data that is being imported. (optional) * @return ApiResponse<ModelImport> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -16859,21 +17288,22 @@ public ModelImport importCollection(Long applicationId, Long campaignId, Long co - + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
*/ - public ApiResponse importCollectionWithHttpInfo(Long applicationId, Long campaignId, Long collectionId, String upFile) throws ApiException { - okhttp3.Call localVarCall = importCollectionValidateBeforeCall(applicationId, campaignId, collectionId, upFile, null); + public ApiResponse importCampaignStoresWithHttpInfo(Integer applicationId, Integer campaignId, String upFile) throws ApiException { + okhttp3.Call localVarCall = importCampaignStoresValidateBeforeCall(applicationId, campaignId, upFile, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * Import data into existing campaign-level collection (asynchronously) - * Upload a CSV file containing the collection of string values that should be attached as payload for collection. The file should be sent as multipart data. The import **replaces** the initial content of the collection. The CSV file **must** only contain the following column: - `item`: the values in your collection. A collection is limited to 500,000 items. Example: ``` item Addidas Nike Asics ``` **Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection. + * Import stores (asynchronously) + * Upload a CSV file containing the stores you want to link to a specific campaign. Send the file as multipart data. The CSV file **must** only contain the following column: - `store_integration_id`: The identifier of the store. The import **replaces** the previous list of stores linked to the campaign. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) * @param upFile The file containing the data that is being imported. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -16882,21 +17312,23 @@ public ApiResponse importCollectionWithHttpInfo(Long applicationId, - + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
*/ - public okhttp3.Call importCollectionAsync(Long applicationId, Long campaignId, Long collectionId, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importCampaignStoresAsync(Integer applicationId, Integer campaignId, String upFile, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = importCollectionValidateBeforeCall(applicationId, campaignId, collectionId, upFile, _callback); + okhttp3.Call localVarCall = importCampaignStoresValidateBeforeCall(applicationId, campaignId, upFile, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for importCoupons + * Build call for importCollection * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param skipDuplicates An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`. (optional) + * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) * @param upFile The file containing the data that is being imported. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -16905,22 +17337,20 @@ public okhttp3.Call importCollectionAsync(Long applicationId, Long campaignId, L +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public okhttp3.Call importCouponsCall(Long applicationId, Long campaignId, Boolean skipDuplicates, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importCollectionCall(Integer applicationId, Integer campaignId, Integer collectionId, String upFile, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/import_coupons" + String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/import" .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())) + .replaceAll("\\{" + "collectionId" + "\\}", localVarApiClient.escapeString(collectionId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (skipDuplicates != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("skipDuplicates", skipDuplicates)); - } - Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -16947,26 +17377,171 @@ public okhttp3.Call importCouponsCall(Long applicationId, Long campaignId, Boole } @SuppressWarnings("rawtypes") - private okhttp3.Call importCouponsValidateBeforeCall(Long applicationId, Long campaignId, Boolean skipDuplicates, String upFile, final ApiCallback _callback) throws ApiException { + private okhttp3.Call importCollectionValidateBeforeCall(Integer applicationId, Integer campaignId, Integer collectionId, String upFile, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { - throw new ApiException("Missing the required parameter 'applicationId' when calling importCoupons(Async)"); + throw new ApiException("Missing the required parameter 'applicationId' when calling importCollection(Async)"); } // verify the required parameter 'campaignId' is set if (campaignId == null) { - throw new ApiException("Missing the required parameter 'campaignId' when calling importCoupons(Async)"); + throw new ApiException("Missing the required parameter 'campaignId' when calling importCollection(Async)"); + } + + // verify the required parameter 'collectionId' is set + if (collectionId == null) { + throw new ApiException("Missing the required parameter 'collectionId' when calling importCollection(Async)"); } - okhttp3.Call localVarCall = importCouponsCall(applicationId, campaignId, skipDuplicates, upFile, _callback); + okhttp3.Call localVarCall = importCollectionCall(applicationId, campaignId, collectionId, upFile, _callback); return localVarCall; } /** - * Import coupons + * Import data into existing campaign-level collection + * Upload a CSV file containing the collection of string values that should be attached as payload for collection. The file should be sent as multipart data. The import **replaces** the initial content of the collection. The CSV file **must** only contain the following column: - `item`: the values in your collection. A collection is limited to 500,000 items. Example: ``` item Addidas Nike Asics ``` **Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) + * @param upFile The file containing the data that is being imported. (optional) + * @return ModelImport + * @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 OK -
401 Unauthorized -
+ */ + public ModelImport importCollection(Integer applicationId, Integer campaignId, Integer collectionId, String upFile) throws ApiException { + ApiResponse localVarResp = importCollectionWithHttpInfo(applicationId, campaignId, collectionId, upFile); + return localVarResp.getData(); + } + + /** + * Import data into existing campaign-level collection + * Upload a CSV file containing the collection of string values that should be attached as payload for collection. The file should be sent as multipart data. The import **replaces** the initial content of the collection. The CSV file **must** only contain the following column: - `item`: the values in your collection. A collection is limited to 500,000 items. Example: ``` item Addidas Nike Asics ``` **Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) + * @param upFile The file containing the data that is being imported. (optional) + * @return ApiResponse<ModelImport> + * @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 OK -
401 Unauthorized -
+ */ + public ApiResponse importCollectionWithHttpInfo(Integer applicationId, Integer campaignId, Integer collectionId, String upFile) throws ApiException { + okhttp3.Call localVarCall = importCollectionValidateBeforeCall(applicationId, campaignId, collectionId, upFile, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Import data into existing campaign-level collection (asynchronously) + * Upload a CSV file containing the collection of string values that should be attached as payload for collection. The file should be sent as multipart data. The import **replaces** the initial content of the collection. The CSV file **must** only contain the following column: - `item`: the values in your collection. A collection is limited to 500,000 items. Example: ``` item Addidas Nike Asics ``` **Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param collectionId The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. (required) + * @param upFile The file containing the data that is being imported. (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 OK -
401 Unauthorized -
+ */ + public okhttp3.Call importCollectionAsync(Integer applicationId, Integer campaignId, Integer collectionId, String upFile, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = importCollectionValidateBeforeCall(applicationId, campaignId, collectionId, upFile, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for importCoupons + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param skipDuplicates An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`. (optional) + * @param upFile The file containing the data that is being imported. (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 OK -
+ */ + public okhttp3.Call importCouponsCall(Integer applicationId, Integer campaignId, Boolean skipDuplicates, String upFile, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/import_coupons" + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (skipDuplicates != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("skipDuplicates", skipDuplicates)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + if (upFile != null) { + localVarFormParams.put("upFile", upFile); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "multipart/form-data" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call importCouponsValidateBeforeCall(Integer applicationId, Integer campaignId, Boolean skipDuplicates, String upFile, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'applicationId' is set + if (applicationId == null) { + throw new ApiException("Missing the required parameter 'applicationId' when calling importCoupons(Async)"); + } + + // verify the required parameter 'campaignId' is set + if (campaignId == null) { + throw new ApiException("Missing the required parameter 'campaignId' when calling importCoupons(Async)"); + } + + + okhttp3.Call localVarCall = importCouponsCall(applicationId, campaignId, skipDuplicates, upFile, _callback); + return localVarCall; + + } + + /** + * Import coupons * Upload a CSV file containing the coupons that should be created. The file should be sent as multipart data. The CSV file contains the following columns: - `value` (required): The coupon code. - `expirydate`: The end date in RFC3339 of the code redemption period. - `startdate`: The start date in RFC3339 of the code redemption period. - `recipientintegrationid`: The integration ID of the recipient of the coupon. Only the customer with this integration ID can redeem this code. Available only for personal codes. - `limitval`: The maximum number of redemptions of this code. For unlimited redemptions, use `0`. Defaults to `1` when not provided. - `discountlimit`: The total discount value that the code can give. This is typically used to represent a gift card value. - `attributes`: A JSON object describing _custom_ coupon attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `category` associated with the coupon entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"category\": \"10_off\"}\"`. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```text \"value\",\"expirydate\",\"startdate\",\"recipientintegrationid\",\"limitval\",\"attributes\",\"discountlimit\" COUP1,2018-07-01T04:00:00Z,2018-05-01T04:00:00Z,cust123,1,\"{\"\"Category\"\": \"\"10_off\"\"}\",2.4 ``` Once imported, you can find the `batchId` in the Campaign Manager or by using [List coupons](#tag/Coupons/operation/getCouponsWithoutTotalCount). * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) @@ -16980,7 +17555,7 @@ private okhttp3.Call importCouponsValidateBeforeCall(Long applicationId, Long ca 200 OK - */ - public ModelImport importCoupons(Long applicationId, Long campaignId, Boolean skipDuplicates, String upFile) throws ApiException { + public ModelImport importCoupons(Integer applicationId, Integer campaignId, Boolean skipDuplicates, String upFile) throws ApiException { ApiResponse localVarResp = importCouponsWithHttpInfo(applicationId, campaignId, skipDuplicates, upFile); return localVarResp.getData(); } @@ -17000,7 +17575,7 @@ public ModelImport importCoupons(Long applicationId, Long campaignId, Boolean sk 200 OK - */ - public ApiResponse importCouponsWithHttpInfo(Long applicationId, Long campaignId, Boolean skipDuplicates, String upFile) throws ApiException { + public ApiResponse importCouponsWithHttpInfo(Integer applicationId, Integer campaignId, Boolean skipDuplicates, String upFile) throws ApiException { okhttp3.Call localVarCall = importCouponsValidateBeforeCall(applicationId, campaignId, skipDuplicates, upFile, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -17022,7 +17597,7 @@ public ApiResponse importCouponsWithHttpInfo(Long applicationId, Lo 200 OK - */ - public okhttp3.Call importCouponsAsync(Long applicationId, Long campaignId, Boolean skipDuplicates, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importCouponsAsync(Integer applicationId, Integer campaignId, Boolean skipDuplicates, String upFile, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = importCouponsValidateBeforeCall(applicationId, campaignId, skipDuplicates, upFile, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -17044,7 +17619,7 @@ public okhttp3.Call importCouponsAsync(Long applicationId, Long campaignId, Bool 404 Not found - */ - public okhttp3.Call importLoyaltyCardsCall(Long loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importLoyaltyCardsCall(Integer loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -17079,7 +17654,7 @@ public okhttp3.Call importLoyaltyCardsCall(Long loyaltyProgramId, String upFile, } @SuppressWarnings("rawtypes") - private okhttp3.Call importLoyaltyCardsValidateBeforeCall(Long loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { + private okhttp3.Call importLoyaltyCardsValidateBeforeCall(Integer loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -17107,7 +17682,7 @@ private okhttp3.Call importLoyaltyCardsValidateBeforeCall(Long loyaltyProgramId, 404 Not found - */ - public ModelImport importLoyaltyCards(Long loyaltyProgramId, String upFile) throws ApiException { + public ModelImport importLoyaltyCards(Integer loyaltyProgramId, String upFile) throws ApiException { ApiResponse localVarResp = importLoyaltyCardsWithHttpInfo(loyaltyProgramId, upFile); return localVarResp.getData(); } @@ -17127,7 +17702,7 @@ public ModelImport importLoyaltyCards(Long loyaltyProgramId, String upFile) thro 404 Not found - */ - public ApiResponse importLoyaltyCardsWithHttpInfo(Long loyaltyProgramId, String upFile) throws ApiException { + public ApiResponse importLoyaltyCardsWithHttpInfo(Integer loyaltyProgramId, String upFile) throws ApiException { okhttp3.Call localVarCall = importLoyaltyCardsValidateBeforeCall(loyaltyProgramId, upFile, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -17149,7 +17724,7 @@ public ApiResponse importLoyaltyCardsWithHttpInfo(Long loyaltyProgr 404 Not found - */ - public okhttp3.Call importLoyaltyCardsAsync(Long loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importLoyaltyCardsAsync(Integer loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = importLoyaltyCardsValidateBeforeCall(loyaltyProgramId, upFile, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -17172,7 +17747,7 @@ public okhttp3.Call importLoyaltyCardsAsync(Long loyaltyProgramId, String upFile 404 Not found - */ - public okhttp3.Call importLoyaltyCustomersTiersCall(Long loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importLoyaltyCustomersTiersCall(Integer loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -17207,7 +17782,7 @@ public okhttp3.Call importLoyaltyCustomersTiersCall(Long loyaltyProgramId, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call importLoyaltyCustomersTiersValidateBeforeCall(Long loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { + private okhttp3.Call importLoyaltyCustomersTiersValidateBeforeCall(Integer loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -17236,7 +17811,7 @@ private okhttp3.Call importLoyaltyCustomersTiersValidateBeforeCall(Long loyaltyP 404 Not found - */ - public ModelImport importLoyaltyCustomersTiers(Long loyaltyProgramId, String upFile) throws ApiException { + public ModelImport importLoyaltyCustomersTiers(Integer loyaltyProgramId, String upFile) throws ApiException { ApiResponse localVarResp = importLoyaltyCustomersTiersWithHttpInfo(loyaltyProgramId, upFile); return localVarResp.getData(); } @@ -17257,7 +17832,7 @@ public ModelImport importLoyaltyCustomersTiers(Long loyaltyProgramId, String upF 404 Not found - */ - public ApiResponse importLoyaltyCustomersTiersWithHttpInfo(Long loyaltyProgramId, String upFile) throws ApiException { + public ApiResponse importLoyaltyCustomersTiersWithHttpInfo(Integer loyaltyProgramId, String upFile) throws ApiException { okhttp3.Call localVarCall = importLoyaltyCustomersTiersValidateBeforeCall(loyaltyProgramId, upFile, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -17280,7 +17855,7 @@ public ApiResponse importLoyaltyCustomersTiersWithHttpInfo(Long loy 404 Not found - */ - public okhttp3.Call importLoyaltyCustomersTiersAsync(Long loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importLoyaltyCustomersTiersAsync(Integer loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = importLoyaltyCustomersTiersValidateBeforeCall(loyaltyProgramId, upFile, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -17290,6 +17865,7 @@ public okhttp3.Call importLoyaltyCustomersTiersAsync(Long loyaltyProgramId, Stri /** * Build call for importLoyaltyPoints * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param notificationsEnabled Indicates whether the points import triggers notifications about its effects. For example, a notification is sent if the import upgrades a customer's tier or offsets their negative points balance. This parameter is optional and defaults to `true`. (optional) * @param upFile The file containing the data that is being imported. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -17300,7 +17876,7 @@ public okhttp3.Call importLoyaltyCustomersTiersAsync(Long loyaltyProgramId, Stri 200 OK - */ - public okhttp3.Call importLoyaltyPointsCall(Long loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importLoyaltyPointsCall(Integer loyaltyProgramId, Boolean notificationsEnabled, String upFile, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -17309,6 +17885,10 @@ public okhttp3.Call importLoyaltyPointsCall(Long loyaltyProgramId, String upFile List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); + if (notificationsEnabled != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("notificationsEnabled", notificationsEnabled)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -17335,7 +17915,7 @@ public okhttp3.Call importLoyaltyPointsCall(Long loyaltyProgramId, String upFile } @SuppressWarnings("rawtypes") - private okhttp3.Call importLoyaltyPointsValidateBeforeCall(Long loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { + private okhttp3.Call importLoyaltyPointsValidateBeforeCall(Integer loyaltyProgramId, Boolean notificationsEnabled, String upFile, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -17343,7 +17923,7 @@ private okhttp3.Call importLoyaltyPointsValidateBeforeCall(Long loyaltyProgramId } - okhttp3.Call localVarCall = importLoyaltyPointsCall(loyaltyProgramId, upFile, _callback); + okhttp3.Call localVarCall = importLoyaltyPointsCall(loyaltyProgramId, notificationsEnabled, upFile, _callback); return localVarCall; } @@ -17352,6 +17932,7 @@ private okhttp3.Call importLoyaltyPointsValidateBeforeCall(Long loyaltyProgramId * Import loyalty points * Upload a CSV file containing the loyalty points you want to import into a given loyalty program. Send the file as multipart data. Depending on the type of loyalty program, you can import points into a given customer profile or loyalty card. The CSV file contains the following columns: - `customerprofileid` (optional): For profile-based loyalty programs, the integration ID of the customer profile where the loyalty points are imported. **Note**: If the customer profile does not exist, it will be created. The profile will not be visible in any Application until a session or profile update is received for that profile. - `identifier` (optional): For card-based loyalty programs, the identifier of the loyalty card where the loyalty points are imported. - `amount`: The amount of points to award to the customer profile. - `startdate` (optional): The earliest date when the points can be redeemed. The points are `active` from this date until the expiration date. **Note**: It must be an RFC3339 timestamp string or string `immediate`. Empty or missing values are considered `immediate`. - `expirydate` (optional): The latest date when the points can be redeemed. The points are `expired` after this date. **Note**: It must be an RFC3339 timestamp string or string `unlimited`. Empty or missing values are considered `unlimited`. - `subledgerid` (optional): The ID of the subledger that should received the points. - `reason` (optional): The reason why these points are awarded. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** For existing customer profiles and loyalty cards, the imported points are added to any previous active or pending points, depending on the value provided for `startdate`. If `startdate` matches the current date, the imported points are _active_. If it is later, the points are _pending_ until the date provided for `startdate` is reached. **Note:** We recommend limiting your file size to 500MB. **Example for profile-based programs:** ```text customerprofileid,amount,startdate,expirydate,subledgerid,reason URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` **Example for card-based programs:** ```text identifier,amount,startdate,expirydate,subledgerid,reason summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param notificationsEnabled Indicates whether the points import triggers notifications about its effects. For example, a notification is sent if the import upgrades a customer's tier or offsets their negative points balance. This parameter is optional and defaults to `true`. (optional) * @param upFile The file containing the data that is being imported. (optional) * @return ModelImport * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -17361,8 +17942,8 @@ private okhttp3.Call importLoyaltyPointsValidateBeforeCall(Long loyaltyProgramId 200 OK - */ - public ModelImport importLoyaltyPoints(Long loyaltyProgramId, String upFile) throws ApiException { - ApiResponse localVarResp = importLoyaltyPointsWithHttpInfo(loyaltyProgramId, upFile); + public ModelImport importLoyaltyPoints(Integer loyaltyProgramId, Boolean notificationsEnabled, String upFile) throws ApiException { + ApiResponse localVarResp = importLoyaltyPointsWithHttpInfo(loyaltyProgramId, notificationsEnabled, upFile); return localVarResp.getData(); } @@ -17370,6 +17951,7 @@ public ModelImport importLoyaltyPoints(Long loyaltyProgramId, String upFile) thr * Import loyalty points * Upload a CSV file containing the loyalty points you want to import into a given loyalty program. Send the file as multipart data. Depending on the type of loyalty program, you can import points into a given customer profile or loyalty card. The CSV file contains the following columns: - `customerprofileid` (optional): For profile-based loyalty programs, the integration ID of the customer profile where the loyalty points are imported. **Note**: If the customer profile does not exist, it will be created. The profile will not be visible in any Application until a session or profile update is received for that profile. - `identifier` (optional): For card-based loyalty programs, the identifier of the loyalty card where the loyalty points are imported. - `amount`: The amount of points to award to the customer profile. - `startdate` (optional): The earliest date when the points can be redeemed. The points are `active` from this date until the expiration date. **Note**: It must be an RFC3339 timestamp string or string `immediate`. Empty or missing values are considered `immediate`. - `expirydate` (optional): The latest date when the points can be redeemed. The points are `expired` after this date. **Note**: It must be an RFC3339 timestamp string or string `unlimited`. Empty or missing values are considered `unlimited`. - `subledgerid` (optional): The ID of the subledger that should received the points. - `reason` (optional): The reason why these points are awarded. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** For existing customer profiles and loyalty cards, the imported points are added to any previous active or pending points, depending on the value provided for `startdate`. If `startdate` matches the current date, the imported points are _active_. If it is later, the points are _pending_ until the date provided for `startdate` is reached. **Note:** We recommend limiting your file size to 500MB. **Example for profile-based programs:** ```text customerprofileid,amount,startdate,expirydate,subledgerid,reason URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` **Example for card-based programs:** ```text identifier,amount,startdate,expirydate,subledgerid,reason summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param notificationsEnabled Indicates whether the points import triggers notifications about its effects. For example, a notification is sent if the import upgrades a customer's tier or offsets their negative points balance. This parameter is optional and defaults to `true`. (optional) * @param upFile The file containing the data that is being imported. (optional) * @return ApiResponse<ModelImport> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -17379,8 +17961,8 @@ public ModelImport importLoyaltyPoints(Long loyaltyProgramId, String upFile) thr 200 OK - */ - public ApiResponse importLoyaltyPointsWithHttpInfo(Long loyaltyProgramId, String upFile) throws ApiException { - okhttp3.Call localVarCall = importLoyaltyPointsValidateBeforeCall(loyaltyProgramId, upFile, null); + public ApiResponse importLoyaltyPointsWithHttpInfo(Integer loyaltyProgramId, Boolean notificationsEnabled, String upFile) throws ApiException { + okhttp3.Call localVarCall = importLoyaltyPointsValidateBeforeCall(loyaltyProgramId, notificationsEnabled, upFile, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -17389,6 +17971,7 @@ public ApiResponse importLoyaltyPointsWithHttpInfo(Long loyaltyProg * Import loyalty points (asynchronously) * Upload a CSV file containing the loyalty points you want to import into a given loyalty program. Send the file as multipart data. Depending on the type of loyalty program, you can import points into a given customer profile or loyalty card. The CSV file contains the following columns: - `customerprofileid` (optional): For profile-based loyalty programs, the integration ID of the customer profile where the loyalty points are imported. **Note**: If the customer profile does not exist, it will be created. The profile will not be visible in any Application until a session or profile update is received for that profile. - `identifier` (optional): For card-based loyalty programs, the identifier of the loyalty card where the loyalty points are imported. - `amount`: The amount of points to award to the customer profile. - `startdate` (optional): The earliest date when the points can be redeemed. The points are `active` from this date until the expiration date. **Note**: It must be an RFC3339 timestamp string or string `immediate`. Empty or missing values are considered `immediate`. - `expirydate` (optional): The latest date when the points can be redeemed. The points are `expired` after this date. **Note**: It must be an RFC3339 timestamp string or string `unlimited`. Empty or missing values are considered `unlimited`. - `subledgerid` (optional): The ID of the subledger that should received the points. - `reason` (optional): The reason why these points are awarded. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** For existing customer profiles and loyalty cards, the imported points are added to any previous active or pending points, depending on the value provided for `startdate`. If `startdate` matches the current date, the imported points are _active_. If it is later, the points are _pending_ until the date provided for `startdate` is reached. **Note:** We recommend limiting your file size to 500MB. **Example for profile-based programs:** ```text customerprofileid,amount,startdate,expirydate,subledgerid,reason URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` **Example for card-based programs:** ```text identifier,amount,startdate,expirydate,subledgerid,reason summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` * @param loyaltyProgramId Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) + * @param notificationsEnabled Indicates whether the points import triggers notifications about its effects. For example, a notification is sent if the import upgrades a customer's tier or offsets their negative points balance. This parameter is optional and defaults to `true`. (optional) * @param upFile The file containing the data that is being imported. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -17399,9 +17982,9 @@ public ApiResponse importLoyaltyPointsWithHttpInfo(Long loyaltyProg 200 OK - */ - public okhttp3.Call importLoyaltyPointsAsync(Long loyaltyProgramId, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importLoyaltyPointsAsync(Integer loyaltyProgramId, Boolean notificationsEnabled, String upFile, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = importLoyaltyPointsValidateBeforeCall(loyaltyProgramId, upFile, _callback); + okhttp3.Call localVarCall = importLoyaltyPointsValidateBeforeCall(loyaltyProgramId, notificationsEnabled, upFile, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -17419,7 +18002,7 @@ public okhttp3.Call importLoyaltyPointsAsync(Long loyaltyProgramId, String upFil 200 OK - */ - public okhttp3.Call importPoolGiveawaysCall(Long poolId, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importPoolGiveawaysCall(Integer poolId, String upFile, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -17454,7 +18037,7 @@ public okhttp3.Call importPoolGiveawaysCall(Long poolId, String upFile, final Ap } @SuppressWarnings("rawtypes") - private okhttp3.Call importPoolGiveawaysValidateBeforeCall(Long poolId, String upFile, final ApiCallback _callback) throws ApiException { + private okhttp3.Call importPoolGiveawaysValidateBeforeCall(Integer poolId, String upFile, final ApiCallback _callback) throws ApiException { // verify the required parameter 'poolId' is set if (poolId == null) { @@ -17480,7 +18063,7 @@ private okhttp3.Call importPoolGiveawaysValidateBeforeCall(Long poolId, String u 200 OK - */ - public ModelImport importPoolGiveaways(Long poolId, String upFile) throws ApiException { + public ModelImport importPoolGiveaways(Integer poolId, String upFile) throws ApiException { ApiResponse localVarResp = importPoolGiveawaysWithHttpInfo(poolId, upFile); return localVarResp.getData(); } @@ -17498,7 +18081,7 @@ public ModelImport importPoolGiveaways(Long poolId, String upFile) throws ApiExc 200 OK - */ - public ApiResponse importPoolGiveawaysWithHttpInfo(Long poolId, String upFile) throws ApiException { + public ApiResponse importPoolGiveawaysWithHttpInfo(Integer poolId, String upFile) throws ApiException { okhttp3.Call localVarCall = importPoolGiveawaysValidateBeforeCall(poolId, upFile, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -17518,7 +18101,7 @@ public ApiResponse importPoolGiveawaysWithHttpInfo(Long poolId, Str 200 OK - */ - public okhttp3.Call importPoolGiveawaysAsync(Long poolId, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importPoolGiveawaysAsync(Integer poolId, String upFile, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = importPoolGiveawaysValidateBeforeCall(poolId, upFile, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -17539,7 +18122,7 @@ public okhttp3.Call importPoolGiveawaysAsync(Long poolId, String upFile, final A 200 OK - */ - public okhttp3.Call importReferralsCall(Long applicationId, Long campaignId, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importReferralsCall(Integer applicationId, Integer campaignId, String upFile, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -17575,7 +18158,7 @@ public okhttp3.Call importReferralsCall(Long applicationId, Long campaignId, Str } @SuppressWarnings("rawtypes") - private okhttp3.Call importReferralsValidateBeforeCall(Long applicationId, Long campaignId, String upFile, final ApiCallback _callback) throws ApiException { + private okhttp3.Call importReferralsValidateBeforeCall(Integer applicationId, Integer campaignId, String upFile, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -17607,7 +18190,7 @@ private okhttp3.Call importReferralsValidateBeforeCall(Long applicationId, Long 200 OK - */ - public ModelImport importReferrals(Long applicationId, Long campaignId, String upFile) throws ApiException { + public ModelImport importReferrals(Integer applicationId, Integer campaignId, String upFile) throws ApiException { ApiResponse localVarResp = importReferralsWithHttpInfo(applicationId, campaignId, upFile); return localVarResp.getData(); } @@ -17626,7 +18209,7 @@ public ModelImport importReferrals(Long applicationId, Long campaignId, String u 200 OK - */ - public ApiResponse importReferralsWithHttpInfo(Long applicationId, Long campaignId, String upFile) throws ApiException { + public ApiResponse importReferralsWithHttpInfo(Integer applicationId, Integer campaignId, String upFile) throws ApiException { okhttp3.Call localVarCall = importReferralsValidateBeforeCall(applicationId, campaignId, upFile, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -17647,7 +18230,7 @@ public ApiResponse importReferralsWithHttpInfo(Long applicationId, 200 OK - */ - public okhttp3.Call importReferralsAsync(Long applicationId, Long campaignId, String upFile, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importReferralsAsync(Integer applicationId, Integer campaignId, String upFile, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = importReferralsValidateBeforeCall(applicationId, campaignId, upFile, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -17762,7 +18345,7 @@ public okhttp3.Call inviteUserExternalAsync(NewExternalInvitation body, final Ap } /** * Build call for listAccountCollections - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -17779,7 +18362,7 @@ public okhttp3.Call inviteUserExternalAsync(NewExternalInvitation body, final Ap 404 Not found - */ - public okhttp3.Call listAccountCollectionsCall(Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAccountCollectionsCall(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -17829,7 +18412,7 @@ public okhttp3.Call listAccountCollectionsCall(Long pageSize, Long skip, String } @SuppressWarnings("rawtypes") - private okhttp3.Call listAccountCollectionsValidateBeforeCall(Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listAccountCollectionsValidateBeforeCall(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listAccountCollectionsCall(pageSize, skip, sort, withTotalResultSize, name, _callback); @@ -17840,7 +18423,7 @@ private okhttp3.Call listAccountCollectionsValidateBeforeCall(Long pageSize, Lon /** * List collections in account * List account-level collections in the account. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -17856,7 +18439,7 @@ private okhttp3.Call listAccountCollectionsValidateBeforeCall(Long pageSize, Lon 404 Not found - */ - public InlineResponse20020 listAccountCollections(Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { + public InlineResponse20020 listAccountCollections(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { ApiResponse localVarResp = listAccountCollectionsWithHttpInfo(pageSize, skip, sort, withTotalResultSize, name); return localVarResp.getData(); } @@ -17864,7 +18447,7 @@ public InlineResponse20020 listAccountCollections(Long pageSize, Long skip, Stri /** * List collections in account * List account-level collections in the account. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -17880,7 +18463,7 @@ public InlineResponse20020 listAccountCollections(Long pageSize, Long skip, Stri 404 Not found - */ - public ApiResponse listAccountCollectionsWithHttpInfo(Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { + public ApiResponse listAccountCollectionsWithHttpInfo(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { okhttp3.Call localVarCall = listAccountCollectionsValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -17889,7 +18472,7 @@ public ApiResponse listAccountCollectionsWithHttpInfo(Long /** * List collections in account (asynchronously) * List account-level collections in the account. - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -17906,7 +18489,7 @@ public ApiResponse listAccountCollectionsWithHttpInfo(Long 404 Not found - */ - public okhttp3.Call listAccountCollectionsAsync(Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAccountCollectionsAsync(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listAccountCollectionsValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -17917,7 +18500,7 @@ public okhttp3.Call listAccountCollectionsAsync(Long pageSize, Long skip, String * Build call for listAchievements * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param title Filter by the display name for the achievement in the campaign manager. **Note**: If no `title` is provided, all the achievements from the campaign are returned. (optional) * @param _callback Callback for upload/download progress @@ -17929,7 +18512,7 @@ public okhttp3.Call listAccountCollectionsAsync(Long pageSize, Long skip, String 200 OK - */ - public okhttp3.Call listAchievementsCall(Long applicationId, Long campaignId, Long pageSize, Long skip, String title, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAchievementsCall(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String title, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -17973,7 +18556,7 @@ public okhttp3.Call listAchievementsCall(Long applicationId, Long campaignId, Lo } @SuppressWarnings("rawtypes") - private okhttp3.Call listAchievementsValidateBeforeCall(Long applicationId, Long campaignId, Long pageSize, Long skip, String title, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listAchievementsValidateBeforeCall(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String title, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -17996,10 +18579,10 @@ private okhttp3.Call listAchievementsValidateBeforeCall(Long applicationId, Long * List all the achievements for a specific campaign. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param title Filter by the display name for the achievement in the campaign manager. **Note**: If no `title` is provided, all the achievements from the campaign are returned. (optional) - * @return InlineResponse20048 + * @return InlineResponse20050 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -18007,8 +18590,8 @@ private okhttp3.Call listAchievementsValidateBeforeCall(Long applicationId, Long
200 OK -
*/ - public InlineResponse20048 listAchievements(Long applicationId, Long campaignId, Long pageSize, Long skip, String title) throws ApiException { - ApiResponse localVarResp = listAchievementsWithHttpInfo(applicationId, campaignId, pageSize, skip, title); + public InlineResponse20050 listAchievements(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String title) throws ApiException { + ApiResponse localVarResp = listAchievementsWithHttpInfo(applicationId, campaignId, pageSize, skip, title); return localVarResp.getData(); } @@ -18017,10 +18600,10 @@ public InlineResponse20048 listAchievements(Long applicationId, Long campaignId, * List all the achievements for a specific campaign. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param title Filter by the display name for the achievement in the campaign manager. **Note**: If no `title` is provided, all the achievements from the campaign are returned. (optional) - * @return ApiResponse<InlineResponse20048> + * @return ApiResponse<InlineResponse20050> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -18028,9 +18611,9 @@ public InlineResponse20048 listAchievements(Long applicationId, Long campaignId,
200 OK -
*/ - public ApiResponse listAchievementsWithHttpInfo(Long applicationId, Long campaignId, Long pageSize, Long skip, String title) throws ApiException { + public ApiResponse listAchievementsWithHttpInfo(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String title) throws ApiException { okhttp3.Call localVarCall = listAchievementsValidateBeforeCall(applicationId, campaignId, pageSize, skip, title, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -18039,7 +18622,7 @@ public ApiResponse listAchievementsWithHttpInfo(Long applic * List all the achievements for a specific campaign. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 50l) + * @param pageSize The number of items in the response. (optional, default to 50) * @param skip The number of items to skip when paging through large result sets. (optional) * @param title Filter by the display name for the achievement in the campaign manager. **Note**: If no `title` is provided, all the achievements from the campaign are returned. (optional) * @param _callback The callback to be executed when the API call finishes @@ -18051,10 +18634,10 @@ public ApiResponse listAchievementsWithHttpInfo(Long applic 200 OK - */ - public okhttp3.Call listAchievementsAsync(Long applicationId, Long campaignId, Long pageSize, Long skip, String title, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAchievementsAsync(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String title, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listAchievementsValidateBeforeCall(applicationId, campaignId, pageSize, skip, title, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -18160,13 +18743,11 @@ public okhttp3.Call listAllRolesV2Async(final ApiCallback _ return localVarCall; } /** - * Build call for listCatalogItems - * @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param sku Filter results by one or more SKUs. Must be exact match. (optional) - * @param productNames Filter results by one or more product names. Must be exact match. (optional) + * Build call for listCampaignStoreBudgetLimits + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param action The action that this budget is limiting. (optional) + * @param period The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -18174,35 +18755,27 @@ public okhttp3.Call listAllRolesV2Async(final ApiCallback _ + + +
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
*/ - public okhttp3.Call listCatalogItemsCall(Long catalogId, Long pageSize, Long skip, Boolean withTotalResultSize, List sku, List productNames, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCampaignStoreBudgetLimitsCall(Integer applicationId, Integer campaignId, String action, String period, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v1/catalogs/{catalogId}/items" - .replaceAll("\\{" + "catalogId" + "\\}", localVarApiClient.escapeString(catalogId.toString())); + String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/stores/budgets" + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pageSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); - } - - if (skip != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("skip", skip)); - } - - if (withTotalResultSize != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("withTotalResultSize", withTotalResultSize)); - } - - if (sku != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "sku", sku)); + if (action != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("action", action)); } - if (productNames != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "productNames", productNames)); + if (period != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("period", period)); } Map localVarHeaderParams = new HashMap(); @@ -18227,73 +18800,78 @@ public okhttp3.Call listCatalogItemsCall(Long catalogId, Long pageSize, Long ski } @SuppressWarnings("rawtypes") - private okhttp3.Call listCatalogItemsValidateBeforeCall(Long catalogId, Long pageSize, Long skip, Boolean withTotalResultSize, List sku, List productNames, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCampaignStoreBudgetLimitsValidateBeforeCall(Integer applicationId, Integer campaignId, String action, String period, 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 listCatalogItems(Async)"); + // verify the required parameter 'applicationId' is set + if (applicationId == null) { + throw new ApiException("Missing the required parameter 'applicationId' when calling listCampaignStoreBudgetLimits(Async)"); + } + + // verify the required parameter 'campaignId' is set + if (campaignId == null) { + throw new ApiException("Missing the required parameter 'campaignId' when calling listCampaignStoreBudgetLimits(Async)"); } - okhttp3.Call localVarCall = listCatalogItemsCall(catalogId, pageSize, skip, withTotalResultSize, sku, productNames, _callback); + okhttp3.Call localVarCall = listCampaignStoreBudgetLimitsCall(applicationId, campaignId, action, period, _callback); return localVarCall; } /** - * List items in a catalog - * Return a paginated list of cart items in the given catalog. - * @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param sku Filter results by one or more SKUs. Must be exact match. (optional) - * @param productNames Filter results by one or more product names. Must be exact match. (optional) - * @return InlineResponse20037 + * List campaign store budget limits + * Return the store budget limits for a given campaign. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param action The action that this budget is limiting. (optional) + * @param period The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. (optional) + * @return InlineResponse20048 * @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 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
*/ - public InlineResponse20037 listCatalogItems(Long catalogId, Long pageSize, Long skip, Boolean withTotalResultSize, List sku, List productNames) throws ApiException { - ApiResponse localVarResp = listCatalogItemsWithHttpInfo(catalogId, pageSize, skip, withTotalResultSize, sku, productNames); + public InlineResponse20048 listCampaignStoreBudgetLimits(Integer applicationId, Integer campaignId, String action, String period) throws ApiException { + ApiResponse localVarResp = listCampaignStoreBudgetLimitsWithHttpInfo(applicationId, campaignId, action, period); return localVarResp.getData(); } /** - * List items in a catalog - * Return a paginated list of cart items in the given catalog. - * @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param sku Filter results by one or more SKUs. Must be exact match. (optional) - * @param productNames Filter results by one or more product names. Must be exact match. (optional) - * @return ApiResponse<InlineResponse20037> + * List campaign store budget limits + * Return the store budget limits for a given campaign. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param action The action that this budget is limiting. (optional) + * @param period The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. (optional) + * @return ApiResponse<InlineResponse20048> * @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 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
*/ - public ApiResponse listCatalogItemsWithHttpInfo(Long catalogId, Long pageSize, Long skip, Boolean withTotalResultSize, List sku, List productNames) throws ApiException { - okhttp3.Call localVarCall = listCatalogItemsValidateBeforeCall(catalogId, pageSize, skip, withTotalResultSize, sku, productNames, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse listCampaignStoreBudgetLimitsWithHttpInfo(Integer applicationId, Integer campaignId, String action, String period) throws ApiException { + okhttp3.Call localVarCall = listCampaignStoreBudgetLimitsValidateBeforeCall(applicationId, campaignId, action, period, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * List items in a catalog (asynchronously) - * Return a paginated list of cart items in the given catalog. - * @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) - * @param skip The number of items to skip when paging through large result sets. (optional) - * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param sku Filter results by one or more SKUs. Must be exact match. (optional) - * @param productNames Filter results by one or more product names. Must be exact match. (optional) + * List campaign store budget limits (asynchronously) + * Return the store budget limits for a given campaign. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param action The action that this budget is limiting. (optional) + * @param period The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`. (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 @@ -18301,24 +18879,26 @@ public ApiResponse listCatalogItemsWithHttpInfo(Long catalo + + +
Status Code Description Response Headers
200 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
*/ - public okhttp3.Call listCatalogItemsAsync(Long catalogId, Long pageSize, Long skip, Boolean withTotalResultSize, List sku, List productNames, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCampaignStoreBudgetLimitsAsync(Integer applicationId, Integer campaignId, String action, String period, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listCatalogItemsValidateBeforeCall(catalogId, pageSize, skip, withTotalResultSize, sku, productNames, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listCampaignStoreBudgetLimitsValidateBeforeCall(applicationId, campaignId, action, period, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for listCollections - * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * Build call for listCatalogItems + * @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. (required) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) - * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) - * @param name Filter by collection name. (optional) + * @param sku Filter results by one or more SKUs. Must be exact match. (optional) + * @param productNames Filter results by one or more product names. Must be exact match. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -18326,16 +18906,14 @@ public okhttp3.Call listCatalogItemsAsync(Long catalogId, Long pageSize, Long sk -
Status Code Description Response Headers
200 OK -
404 Not found -
*/ - public okhttp3.Call listCollectionsCall(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCatalogItemsCall(Integer catalogId, Integer pageSize, Integer skip, Boolean withTotalResultSize, List sku, List productNames, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/collections" - .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) - .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + String localVarPath = "/v1/catalogs/{catalogId}/items" + .replaceAll("\\{" + "catalogId" + "\\}", localVarApiClient.escapeString(catalogId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -18347,16 +18925,16 @@ public okhttp3.Call listCollectionsCall(Long applicationId, Long campaignId, Lon localVarQueryParams.addAll(localVarApiClient.parameterToPair("skip", skip)); } - if (sort != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); - } - if (withTotalResultSize != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("withTotalResultSize", withTotalResultSize)); } - if (name != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("name", name)); + if (sku != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "sku", sku)); + } + + if (productNames != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "productNames", productNames)); } Map localVarHeaderParams = new HashMap(); @@ -18381,9 +18959,163 @@ public okhttp3.Call listCollectionsCall(Long applicationId, Long campaignId, Lon } @SuppressWarnings("rawtypes") - private okhttp3.Call listCollectionsValidateBeforeCall(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCatalogItemsValidateBeforeCall(Integer catalogId, Integer pageSize, Integer skip, Boolean withTotalResultSize, List sku, List productNames, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'applicationId' is set + // verify the required parameter 'catalogId' is set + if (catalogId == null) { + throw new ApiException("Missing the required parameter 'catalogId' when calling listCatalogItems(Async)"); + } + + + okhttp3.Call localVarCall = listCatalogItemsCall(catalogId, pageSize, skip, withTotalResultSize, sku, productNames, _callback); + return localVarCall; + + } + + /** + * List items in a catalog + * Return a paginated list of cart items in the given catalog. + * @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. (required) + * @param pageSize The number of items in the response. (optional, default to 1000) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) + * @param sku Filter results by one or more SKUs. Must be exact match. (optional) + * @param productNames Filter results by one or more product names. Must be exact match. (optional) + * @return InlineResponse20037 + * @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 OK -
+ */ + public InlineResponse20037 listCatalogItems(Integer catalogId, Integer pageSize, Integer skip, Boolean withTotalResultSize, List sku, List productNames) throws ApiException { + ApiResponse localVarResp = listCatalogItemsWithHttpInfo(catalogId, pageSize, skip, withTotalResultSize, sku, productNames); + return localVarResp.getData(); + } + + /** + * List items in a catalog + * Return a paginated list of cart items in the given catalog. + * @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. (required) + * @param pageSize The number of items in the response. (optional, default to 1000) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) + * @param sku Filter results by one or more SKUs. Must be exact match. (optional) + * @param productNames Filter results by one or more product names. Must be exact match. (optional) + * @return ApiResponse<InlineResponse20037> + * @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 OK -
+ */ + public ApiResponse listCatalogItemsWithHttpInfo(Integer catalogId, Integer pageSize, Integer skip, Boolean withTotalResultSize, List sku, List productNames) throws ApiException { + okhttp3.Call localVarCall = listCatalogItemsValidateBeforeCall(catalogId, pageSize, skip, withTotalResultSize, sku, productNames, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List items in a catalog (asynchronously) + * Return a paginated list of cart items in the given catalog. + * @param catalogId The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. (required) + * @param pageSize The number of items in the response. (optional, default to 1000) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) + * @param sku Filter results by one or more SKUs. Must be exact match. (optional) + * @param productNames Filter results by one or more product names. Must be exact match. (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 OK -
+ */ + public okhttp3.Call listCatalogItemsAsync(Integer catalogId, Integer pageSize, Integer skip, Boolean withTotalResultSize, List sku, List productNames, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listCatalogItemsValidateBeforeCall(catalogId, pageSize, skip, withTotalResultSize, sku, productNames, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listCollections + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @param pageSize The number of items in the response. (optional, default to 1000) + * @param skip The number of items to skip when paging through large result sets. (optional) + * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) + * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) + * @param name Filter by collection name. (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 OK -
404 Not found -
+ */ + public okhttp3.Call listCollectionsCall(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/collections" + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "campaignId" + "\\}", localVarApiClient.escapeString(campaignId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pageSize != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); + } + + if (skip != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("skip", skip)); + } + + if (sort != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); + } + + if (withTotalResultSize != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("withTotalResultSize", withTotalResultSize)); + } + + if (name != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("name", name)); + } + + 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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listCollectionsValidateBeforeCall(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException("Missing the required parameter 'applicationId' when calling listCollections(Async)"); } @@ -18404,7 +19136,7 @@ private okhttp3.Call listCollectionsValidateBeforeCall(Long applicationId, Long * List collections in a given campaign. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -18418,7 +19150,7 @@ private okhttp3.Call listCollectionsValidateBeforeCall(Long applicationId, Long 404 Not found - */ - public InlineResponse20020 listCollections(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { + public InlineResponse20020 listCollections(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { ApiResponse localVarResp = listCollectionsWithHttpInfo(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name); return localVarResp.getData(); } @@ -18428,7 +19160,7 @@ public InlineResponse20020 listCollections(Long applicationId, Long campaignId, * List collections in a given campaign. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -18442,7 +19174,7 @@ public InlineResponse20020 listCollections(Long applicationId, Long campaignId, 404 Not found - */ - public ApiResponse listCollectionsWithHttpInfo(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { + public ApiResponse listCollectionsWithHttpInfo(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { okhttp3.Call localVarCall = listCollectionsValidateBeforeCall(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -18453,7 +19185,7 @@ public ApiResponse listCollectionsWithHttpInfo(Long applica * List collections in a given campaign. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -18468,7 +19200,7 @@ public ApiResponse listCollectionsWithHttpInfo(Long applica 404 Not found - */ - public okhttp3.Call listCollectionsAsync(Long applicationId, Long campaignId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCollectionsAsync(Integer applicationId, Integer campaignId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCollectionsValidateBeforeCall(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -18478,7 +19210,7 @@ public okhttp3.Call listCollectionsAsync(Long applicationId, Long campaignId, Lo /** * Build call for listCollectionsInApplication * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -18493,7 +19225,7 @@ public okhttp3.Call listCollectionsAsync(Long applicationId, Long campaignId, Lo 404 Not found - */ - public okhttp3.Call listCollectionsInApplicationCall(Long applicationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCollectionsInApplicationCall(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -18544,7 +19276,7 @@ public okhttp3.Call listCollectionsInApplicationCall(Long applicationId, Long pa } @SuppressWarnings("rawtypes") - private okhttp3.Call listCollectionsInApplicationValidateBeforeCall(Long applicationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCollectionsInApplicationValidateBeforeCall(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -18561,7 +19293,7 @@ private okhttp3.Call listCollectionsInApplicationValidateBeforeCall(Long applica * List collections in Application * List campaign-level collections from all campaigns in a given Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -18575,7 +19307,7 @@ private okhttp3.Call listCollectionsInApplicationValidateBeforeCall(Long applica 404 Not found - */ - public InlineResponse20020 listCollectionsInApplication(Long applicationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { + public InlineResponse20020 listCollectionsInApplication(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { ApiResponse localVarResp = listCollectionsInApplicationWithHttpInfo(applicationId, pageSize, skip, sort, withTotalResultSize, name); return localVarResp.getData(); } @@ -18584,7 +19316,7 @@ public InlineResponse20020 listCollectionsInApplication(Long applicationId, Long * List collections in Application * List campaign-level collections from all campaigns in a given Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -18598,7 +19330,7 @@ public InlineResponse20020 listCollectionsInApplication(Long applicationId, Long 404 Not found - */ - public ApiResponse listCollectionsInApplicationWithHttpInfo(Long applicationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { + public ApiResponse listCollectionsInApplicationWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name) throws ApiException { okhttp3.Call localVarCall = listCollectionsInApplicationValidateBeforeCall(applicationId, pageSize, skip, sort, withTotalResultSize, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -18608,7 +19340,7 @@ public ApiResponse listCollectionsInApplicationWithHttpInfo * List collections in Application (asynchronously) * List campaign-level collections from all campaigns in a given Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -18623,7 +19355,7 @@ public ApiResponse listCollectionsInApplicationWithHttpInfo 404 Not found - */ - public okhttp3.Call listCollectionsInApplicationAsync(Long applicationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCollectionsInApplicationAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, String name, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCollectionsInApplicationValidateBeforeCall(applicationId, pageSize, skip, sort, withTotalResultSize, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -18633,7 +19365,7 @@ public okhttp3.Call listCollectionsInApplicationAsync(Long applicationId, Long p /** * Build call for listStores * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -18650,7 +19382,7 @@ public okhttp3.Call listCollectionsInApplicationAsync(Long applicationId, Long p 200 OK - */ - public okhttp3.Call listStoresCall(Long applicationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listStoresCall(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -18713,7 +19445,7 @@ public okhttp3.Call listStoresCall(Long applicationId, Long pageSize, Long skip, } @SuppressWarnings("rawtypes") - private okhttp3.Call listStoresValidateBeforeCall(Long applicationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStoresValidateBeforeCall(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -18730,7 +19462,7 @@ private okhttp3.Call listStoresValidateBeforeCall(Long applicationId, Long pageS * List stores * List all stores for a specific Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -18746,7 +19478,7 @@ private okhttp3.Call listStoresValidateBeforeCall(Long applicationId, Long pageS 200 OK - */ - public InlineResponse20047 listStores(Long applicationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query) throws ApiException { + public InlineResponse20047 listStores(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query) throws ApiException { ApiResponse localVarResp = listStoresWithHttpInfo(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query); return localVarResp.getData(); } @@ -18755,7 +19487,7 @@ public InlineResponse20047 listStores(Long applicationId, Long pageSize, Long sk * List stores * List all stores for a specific Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -18771,7 +19503,7 @@ public InlineResponse20047 listStores(Long applicationId, Long pageSize, Long sk 200 OK - */ - public ApiResponse listStoresWithHttpInfo(Long applicationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query) throws ApiException { + public ApiResponse listStoresWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query) throws ApiException { okhttp3.Call localVarCall = listStoresValidateBeforeCall(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -18781,7 +19513,7 @@ public ApiResponse listStoresWithHttpInfo(Long applicationI * List stores (asynchronously) * List all stores for a specific Application. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional) @@ -18798,7 +19530,7 @@ public ApiResponse listStoresWithHttpInfo(Long applicationI 200 OK - */ - public okhttp3.Call listStoresAsync(Long applicationId, Long pageSize, Long skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listStoresAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, BigDecimal campaignId, String name, String integrationId, String query, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listStoresValidateBeforeCall(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -19151,7 +19883,7 @@ public okhttp3.Call resetPasswordAsync(NewPassword body, final ApiCallback 201 Created - */ - public okhttp3.Call scimCreateUserCall(ScimNewUser body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call scimCreateGroupCall(ScimBaseGroup body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/v1/provisioning/scim/Users"; + String localVarPath = "/v1/provisioning/scim/Groups"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -19192,24 +19924,24 @@ public okhttp3.Call scimCreateUserCall(ScimNewUser body, final ApiCallback _call } @SuppressWarnings("rawtypes") - private okhttp3.Call scimCreateUserValidateBeforeCall(ScimNewUser body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call scimCreateGroupValidateBeforeCall(ScimBaseGroup body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling scimCreateUser(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling scimCreateGroup(Async)"); } - okhttp3.Call localVarCall = scimCreateUserCall(body, _callback); + okhttp3.Call localVarCall = scimCreateGroupCall(body, _callback); return localVarCall; } /** - * Create SCIM user - * Create a new Talon.One user using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + * Create SCIM group + * Create a new Talon.One group using the SCIM Group provisioning protocol with an identity provider, for example, Microsoft Entra ID, and assign members from the payload to the new group. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. * @param body body (required) - * @return ScimUser + * @return ScimGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -19217,16 +19949,16 @@ private okhttp3.Call scimCreateUserValidateBeforeCall(ScimNewUser body, final Ap
201 Created -
*/ - public ScimUser scimCreateUser(ScimNewUser body) throws ApiException { - ApiResponse localVarResp = scimCreateUserWithHttpInfo(body); + public ScimGroup scimCreateGroup(ScimBaseGroup body) throws ApiException { + ApiResponse localVarResp = scimCreateGroupWithHttpInfo(body); return localVarResp.getData(); } /** - * Create SCIM user - * Create a new Talon.One user using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + * Create SCIM group + * Create a new Talon.One group using the SCIM Group provisioning protocol with an identity provider, for example, Microsoft Entra ID, and assign members from the payload to the new group. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. * @param body body (required) - * @return ApiResponse<ScimUser> + * @return ApiResponse<ScimGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -19234,15 +19966,15 @@ public ScimUser scimCreateUser(ScimNewUser body) throws ApiException {
201 Created -
*/ - public ApiResponse scimCreateUserWithHttpInfo(ScimNewUser body) throws ApiException { - okhttp3.Call localVarCall = scimCreateUserValidateBeforeCall(body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse scimCreateGroupWithHttpInfo(ScimBaseGroup body) throws ApiException { + okhttp3.Call localVarCall = scimCreateGroupValidateBeforeCall(body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * Create SCIM user (asynchronously) - * Create a new Talon.One user using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + * Create SCIM group (asynchronously) + * Create a new Talon.One group using the SCIM Group provisioning protocol with an identity provider, for example, Microsoft Entra ID, and assign members from the payload to the new group. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -19253,31 +19985,30 @@ public ApiResponse scimCreateUserWithHttpInfo(ScimNewUser body) throws 201 Created - */ - public okhttp3.Call scimCreateUserAsync(ScimNewUser body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call scimCreateGroupAsync(ScimBaseGroup body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = scimCreateUserValidateBeforeCall(body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = scimCreateGroupValidateBeforeCall(body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for scimDeleteUser - * @param userId The ID of the user. (required) + * Build call for scimCreateUser + * @param body body (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 No Content -
201 Created -
*/ - public okhttp3.Call scimDeleteUserCall(Long userId, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; + public okhttp3.Call scimCreateUserCall(ScimNewUser body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/v1/provisioning/scim/Users/{userId}" - .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString())); + String localVarPath = "/v1/provisioning/scim/Users"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -19285,7 +20016,7 @@ public okhttp3.Call scimDeleteUserCall(Long userId, final ApiCallback _callback) Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -19293,96 +20024,102 @@ public okhttp3.Call scimDeleteUserCall(Long userId, final ApiCallback _callback) } final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call scimDeleteUserValidateBeforeCall(Long userId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call scimCreateUserValidateBeforeCall(ScimNewUser body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'userId' is set - if (userId == null) { - throw new ApiException("Missing the required parameter 'userId' when calling scimDeleteUser(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling scimCreateUser(Async)"); } - okhttp3.Call localVarCall = scimDeleteUserCall(userId, _callback); + okhttp3.Call localVarCall = scimCreateUserCall(body, _callback); return localVarCall; } /** - * Delete SCIM user - * Delete a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. - * @param userId The ID of the user. (required) + * Create SCIM user + * Create a new Talon.One user using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + * @param body body (required) + * @return ScimUser * @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 No Content -
201 Created -
*/ - public void scimDeleteUser(Long userId) throws ApiException { - scimDeleteUserWithHttpInfo(userId); + public ScimUser scimCreateUser(ScimNewUser body) throws ApiException { + ApiResponse localVarResp = scimCreateUserWithHttpInfo(body); + return localVarResp.getData(); } /** - * Delete SCIM user - * Delete a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. - * @param userId The ID of the user. (required) - * @return ApiResponse<Void> + * Create SCIM user + * Create a new Talon.One user using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + * @param body body (required) + * @return ApiResponse<ScimUser> * @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 No Content -
201 Created -
*/ - public ApiResponse scimDeleteUserWithHttpInfo(Long userId) throws ApiException { - okhttp3.Call localVarCall = scimDeleteUserValidateBeforeCall(userId, null); - return localVarApiClient.execute(localVarCall); + public ApiResponse scimCreateUserWithHttpInfo(ScimNewUser body) throws ApiException { + okhttp3.Call localVarCall = scimCreateUserValidateBeforeCall(body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * Delete SCIM user (asynchronously) - * Delete a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. - * @param userId The ID of the user. (required) + * Create SCIM user (asynchronously) + * Create a new Talon.One user using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + * @param body body (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 No Content -
201 Created -
*/ - public okhttp3.Call scimDeleteUserAsync(Long userId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call scimCreateUserAsync(ScimNewUser body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = scimDeleteUserValidateBeforeCall(userId, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); + okhttp3.Call localVarCall = scimCreateUserValidateBeforeCall(body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for scimGetResourceTypes + * Build call for scimDeleteGroup + * @param groupId The ID of the group. (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 List of resource types -
204 No Content -
*/ - public okhttp3.Call scimGetResourceTypesCall(final ApiCallback _callback) throws ApiException { + public okhttp3.Call scimDeleteGroupCall(Integer groupId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v1/provisioning/scim/ResourceTypes"; + String localVarPath = "/v1/provisioning/scim/Groups/{groupId}" + .replaceAll("\\{" + "groupId" + "\\}", localVarApiClient.escapeString(groupId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -19390,7 +20127,7 @@ public okhttp3.Call scimGetResourceTypesCall(final ApiCallback _callback) throws Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -19404,27 +20141,451 @@ public okhttp3.Call scimGetResourceTypesCall(final ApiCallback _callback) throws localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call scimGetResourceTypesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + private okhttp3.Call scimDeleteGroupValidateBeforeCall(Integer groupId, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'groupId' is set + if (groupId == null) { + throw new ApiException("Missing the required parameter 'groupId' when calling scimDeleteGroup(Async)"); + } - okhttp3.Call localVarCall = scimGetResourceTypesCall(_callback); + okhttp3.Call localVarCall = scimDeleteGroupCall(groupId, _callback); return localVarCall; } /** - * List supported SCIM resource types - * Retrieve a list of resource types supported by the SCIM provisioning protocol. Resource types define the various kinds of resources that can be managed via the SCIM API, such as users, groups, or custom-defined resources. - * @return ScimResourceTypesListResponse + * Delete SCIM group + * Delete a specific group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + * @param groupId The ID of the group. (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
200 List of resource types -
204 No Content -
+ */ + public void scimDeleteGroup(Integer groupId) throws ApiException { + scimDeleteGroupWithHttpInfo(groupId); + } + + /** + * Delete SCIM group + * Delete a specific group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + * @param groupId The ID of the group. (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 No Content -
+ */ + public ApiResponse scimDeleteGroupWithHttpInfo(Integer groupId) throws ApiException { + okhttp3.Call localVarCall = scimDeleteGroupValidateBeforeCall(groupId, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete SCIM group (asynchronously) + * Delete a specific group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + * @param groupId The ID of the group. (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 No Content -
+ */ + public okhttp3.Call scimDeleteGroupAsync(Integer groupId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = scimDeleteGroupValidateBeforeCall(groupId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for scimDeleteUser + * @param userId The ID of the user. (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 No Content -
+ */ + public okhttp3.Call scimDeleteUserCall(Integer userId, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/provisioning/scim/Users/{userId}" + .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call scimDeleteUserValidateBeforeCall(Integer userId, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'userId' is set + if (userId == null) { + throw new ApiException("Missing the required parameter 'userId' when calling scimDeleteUser(Async)"); + } + + + okhttp3.Call localVarCall = scimDeleteUserCall(userId, _callback); + return localVarCall; + + } + + /** + * Delete SCIM user + * Delete a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + * @param userId The ID of the user. (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 No Content -
+ */ + public void scimDeleteUser(Integer userId) throws ApiException { + scimDeleteUserWithHttpInfo(userId); + } + + /** + * Delete SCIM user + * Delete a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + * @param userId The ID of the user. (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 No Content -
+ */ + public ApiResponse scimDeleteUserWithHttpInfo(Integer userId) throws ApiException { + okhttp3.Call localVarCall = scimDeleteUserValidateBeforeCall(userId, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete SCIM user (asynchronously) + * Delete a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + * @param userId The ID of the user. (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 No Content -
+ */ + public okhttp3.Call scimDeleteUserAsync(Integer userId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = scimDeleteUserValidateBeforeCall(userId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for scimGetGroup + * @param groupId The ID of the group. (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 Group details -
+ */ + public okhttp3.Call scimGetGroupCall(Integer groupId, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/provisioning/scim/Groups/{groupId}" + .replaceAll("\\{" + "groupId" + "\\}", localVarApiClient.escapeString(groupId.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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call scimGetGroupValidateBeforeCall(Integer groupId, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'groupId' is set + if (groupId == null) { + throw new ApiException("Missing the required parameter 'groupId' when calling scimGetGroup(Async)"); + } + + + okhttp3.Call localVarCall = scimGetGroupCall(groupId, _callback); + return localVarCall; + + } + + /** + * Get SCIM group + * Retrieve data for a specific group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + * @param groupId The ID of the group. (required) + * @return ScimGroup + * @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 Group details -
+ */ + public ScimGroup scimGetGroup(Integer groupId) throws ApiException { + ApiResponse localVarResp = scimGetGroupWithHttpInfo(groupId); + return localVarResp.getData(); + } + + /** + * Get SCIM group + * Retrieve data for a specific group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + * @param groupId The ID of the group. (required) + * @return ApiResponse<ScimGroup> + * @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 Group details -
+ */ + public ApiResponse scimGetGroupWithHttpInfo(Integer groupId) throws ApiException { + okhttp3.Call localVarCall = scimGetGroupValidateBeforeCall(groupId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get SCIM group (asynchronously) + * Retrieve data for a specific group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + * @param groupId The ID of the group. (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 Group details -
+ */ + public okhttp3.Call scimGetGroupAsync(Integer groupId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = scimGetGroupValidateBeforeCall(groupId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for scimGetGroups + * @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 List of SCIM groups -
+ */ + public okhttp3.Call scimGetGroupsCall(final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/provisioning/scim/Groups"; + + 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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call scimGetGroupsValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = scimGetGroupsCall(_callback); + return localVarCall; + + } + + /** + * List SCIM groups + * Retrieve a paginated list of groups created using the SCIM protocol with an identity provider, for example, Microsoft Entra ID. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + * @return ScimGroupsListResponse + * @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 List of SCIM groups -
+ */ + public ScimGroupsListResponse scimGetGroups() throws ApiException { + ApiResponse localVarResp = scimGetGroupsWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * List SCIM groups + * Retrieve a paginated list of groups created using the SCIM protocol with an identity provider, for example, Microsoft Entra ID. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + * @return ApiResponse<ScimGroupsListResponse> + * @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 List of SCIM groups -
+ */ + public ApiResponse scimGetGroupsWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = scimGetGroupsValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List SCIM groups (asynchronously) + * Retrieve a paginated list of groups created using the SCIM protocol with an identity provider, for example, Microsoft Entra ID. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + * @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 List of SCIM groups -
+ */ + public okhttp3.Call scimGetGroupsAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = scimGetGroupsValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for scimGetResourceTypes + * @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 List of resource types -
+ */ + public okhttp3.Call scimGetResourceTypesCall(final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/provisioning/scim/ResourceTypes"; + + 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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call scimGetResourceTypesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = scimGetResourceTypesCall(_callback); + return localVarCall; + + } + + /** + * List supported SCIM resource types + * Retrieve a list of resource types supported by the SCIM provisioning protocol. Resource types define the various kinds of resources that can be managed via the SCIM API, such as users, groups, or custom-defined resources. + * @return ScimResourceTypesListResponse + * @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 List of resource types -
*/ public ScimResourceTypesListResponse scimGetResourceTypes() throws ApiException { @@ -19679,15 +20840,228 @@ public okhttp3.Call scimGetServiceProviderConfigAsync(final ApiCallback Status Code Description Response Headers - 200 User details - + 200 User details - + + */ + public okhttp3.Call scimGetUserCall(Integer userId, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/provisioning/scim/Users/{userId}" + .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call scimGetUserValidateBeforeCall(Integer userId, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'userId' is set + if (userId == null) { + throw new ApiException("Missing the required parameter 'userId' when calling scimGetUser(Async)"); + } + + + okhttp3.Call localVarCall = scimGetUserCall(userId, _callback); + return localVarCall; + + } + + /** + * Get SCIM user + * Retrieve data for a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + * @param userId The ID of the user. (required) + * @return ScimUser + * @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 User details -
+ */ + public ScimUser scimGetUser(Integer userId) throws ApiException { + ApiResponse localVarResp = scimGetUserWithHttpInfo(userId); + return localVarResp.getData(); + } + + /** + * Get SCIM user + * Retrieve data for a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + * @param userId The ID of the user. (required) + * @return ApiResponse<ScimUser> + * @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 User details -
+ */ + public ApiResponse scimGetUserWithHttpInfo(Integer userId) throws ApiException { + okhttp3.Call localVarCall = scimGetUserValidateBeforeCall(userId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get SCIM user (asynchronously) + * Retrieve data for a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. + * @param userId The ID of the user. (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 User details -
+ */ + public okhttp3.Call scimGetUserAsync(Integer userId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = scimGetUserValidateBeforeCall(userId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for scimGetUsers + * @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 List of SCIM users -
+ */ + public okhttp3.Call scimGetUsersCall(final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/provisioning/scim/Users"; + + 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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call scimGetUsersValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = scimGetUsersCall(_callback); + return localVarCall; + + } + + /** + * List SCIM users + * Retrieve a paginated list of users that have been provisioned using the SCIM protocol with an identity provider, for example, Microsoft Entra ID. + * @return ScimUsersListResponse + * @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 List of SCIM users -
+ */ + public ScimUsersListResponse scimGetUsers() throws ApiException { + ApiResponse localVarResp = scimGetUsersWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * List SCIM users + * Retrieve a paginated list of users that have been provisioned using the SCIM protocol with an identity provider, for example, Microsoft Entra ID. + * @return ApiResponse<ScimUsersListResponse> + * @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 List of SCIM users -
+ */ + public ApiResponse scimGetUsersWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = scimGetUsersValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List SCIM users (asynchronously) + * Retrieve a paginated list of users that have been provisioned using the SCIM protocol with an identity provider, for example, Microsoft Entra ID. + * @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 List of SCIM users -
+ */ + public okhttp3.Call scimGetUsersAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = scimGetUsersValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for scimPatchGroup + * @param groupId The ID of the group. (required) + * @param body body (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 Group details -
*/ - public okhttp3.Call scimGetUserCall(Long userId, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; + public okhttp3.Call scimPatchGroupCall(Integer groupId, ScimPatchRequest body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/v1/provisioning/scim/Users/{userId}" - .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString())); + String localVarPath = "/v1/provisioning/scim/Groups/{groupId}" + .replaceAll("\\{" + "groupId" + "\\}", localVarApiClient.escapeString(groupId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -19703,100 +21077,111 @@ public okhttp3.Call scimGetUserCall(Long userId, final ApiCallback _callback) th } final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call scimGetUserValidateBeforeCall(Long userId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call scimPatchGroupValidateBeforeCall(Integer groupId, ScimPatchRequest body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'userId' is set - if (userId == null) { - throw new ApiException("Missing the required parameter 'userId' when calling scimGetUser(Async)"); + // verify the required parameter 'groupId' is set + if (groupId == null) { + throw new ApiException("Missing the required parameter 'groupId' when calling scimPatchGroup(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling scimPatchGroup(Async)"); } - okhttp3.Call localVarCall = scimGetUserCall(userId, _callback); + okhttp3.Call localVarCall = scimPatchGroupCall(groupId, body, _callback); return localVarCall; } /** - * Get SCIM user - * Retrieve data for a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. - * @param userId The ID of the user. (required) - * @return ScimUser + * Update SCIM group attributes + * Update certain attributes of a group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint allows for selective adding, removing, or replacing of specific group attributes while other attributes remain unchanged. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + * @param groupId The ID of the group. (required) + * @param body body (required) + * @return ScimGroup * @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 User details -
200 Group details -
*/ - public ScimUser scimGetUser(Long userId) throws ApiException { - ApiResponse localVarResp = scimGetUserWithHttpInfo(userId); + public ScimGroup scimPatchGroup(Integer groupId, ScimPatchRequest body) throws ApiException { + ApiResponse localVarResp = scimPatchGroupWithHttpInfo(groupId, body); return localVarResp.getData(); } /** - * Get SCIM user - * Retrieve data for a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. - * @param userId The ID of the user. (required) - * @return ApiResponse<ScimUser> + * Update SCIM group attributes + * Update certain attributes of a group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint allows for selective adding, removing, or replacing of specific group attributes while other attributes remain unchanged. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + * @param groupId The ID of the group. (required) + * @param body body (required) + * @return ApiResponse<ScimGroup> * @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 User details -
200 Group details -
*/ - public ApiResponse scimGetUserWithHttpInfo(Long userId) throws ApiException { - okhttp3.Call localVarCall = scimGetUserValidateBeforeCall(userId, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse scimPatchGroupWithHttpInfo(Integer groupId, ScimPatchRequest body) throws ApiException { + okhttp3.Call localVarCall = scimPatchGroupValidateBeforeCall(groupId, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * Get SCIM user (asynchronously) - * Retrieve data for a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. - * @param userId The ID of the user. (required) + * Update SCIM group attributes (asynchronously) + * Update certain attributes of a group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint allows for selective adding, removing, or replacing of specific group attributes while other attributes remain unchanged. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + * @param groupId The ID of the group. (required) + * @param body body (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 User details -
200 Group details -
*/ - public okhttp3.Call scimGetUserAsync(Long userId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call scimPatchGroupAsync(Integer groupId, ScimPatchRequest body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = scimGetUserValidateBeforeCall(userId, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = scimPatchGroupValidateBeforeCall(groupId, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for scimGetUsers + * Build call for scimPatchUser + * @param userId The ID of the user. (required) + * @param body body (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 List of SCIM users -
200 User details -
*/ - public okhttp3.Call scimGetUsersCall(final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; + public okhttp3.Call scimPatchUserCall(Integer userId, ScimPatchRequest body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/v1/provisioning/scim/Users"; + String localVarPath = "/v1/provisioning/scim/Users/{userId}" + .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -19812,79 +21197,95 @@ public okhttp3.Call scimGetUsersCall(final ApiCallback _callback) throws ApiExce } final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call scimGetUsersValidateBeforeCall(final ApiCallback _callback) throws ApiException { + private okhttp3.Call scimPatchUserValidateBeforeCall(Integer userId, ScimPatchRequest body, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'userId' is set + if (userId == null) { + throw new ApiException("Missing the required parameter 'userId' when calling scimPatchUser(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling scimPatchUser(Async)"); + } - okhttp3.Call localVarCall = scimGetUsersCall(_callback); + okhttp3.Call localVarCall = scimPatchUserCall(userId, body, _callback); return localVarCall; } /** - * List SCIM users - * Retrieve a paginated list of users that have been provisioned using the SCIM protocol with an identity provider, for example, Microsoft Entra ID. - * @return ScimUsersListResponse + * Update SCIM user attributes + * Update certain attributes of a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint allows for selective adding, removing, or replacing specific attributes while leaving other attributes unchanged. + * @param userId The ID of the user. (required) + * @param body body (required) + * @return ScimUser * @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 List of SCIM users -
200 User details -
*/ - public ScimUsersListResponse scimGetUsers() throws ApiException { - ApiResponse localVarResp = scimGetUsersWithHttpInfo(); + public ScimUser scimPatchUser(Integer userId, ScimPatchRequest body) throws ApiException { + ApiResponse localVarResp = scimPatchUserWithHttpInfo(userId, body); return localVarResp.getData(); } /** - * List SCIM users - * Retrieve a paginated list of users that have been provisioned using the SCIM protocol with an identity provider, for example, Microsoft Entra ID. - * @return ApiResponse<ScimUsersListResponse> + * Update SCIM user attributes + * Update certain attributes of a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint allows for selective adding, removing, or replacing specific attributes while leaving other attributes unchanged. + * @param userId The ID of the user. (required) + * @param body body (required) + * @return ApiResponse<ScimUser> * @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 List of SCIM users -
200 User details -
*/ - public ApiResponse scimGetUsersWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = scimGetUsersValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse scimPatchUserWithHttpInfo(Integer userId, ScimPatchRequest body) throws ApiException { + okhttp3.Call localVarCall = scimPatchUserValidateBeforeCall(userId, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * List SCIM users (asynchronously) - * Retrieve a paginated list of users that have been provisioned using the SCIM protocol with an identity provider, for example, Microsoft Entra ID. + * Update SCIM user attributes (asynchronously) + * Update certain attributes of a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint allows for selective adding, removing, or replacing specific attributes while leaving other attributes unchanged. + * @param userId The ID of the user. (required) + * @param body body (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 List of SCIM users -
200 User details -
*/ - public okhttp3.Call scimGetUsersAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call scimPatchUserAsync(Integer userId, ScimPatchRequest body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = scimGetUsersValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = scimPatchUserValidateBeforeCall(userId, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for scimPatchUser - * @param userId The ID of the user. (required) + * Build call for scimReplaceGroupAttributes + * @param groupId The ID of the group. (required) * @param body body (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -19892,15 +21293,15 @@ public okhttp3.Call scimGetUsersAsync(final ApiCallback _ * @http.response.details - +
Status Code Description Response Headers
200 User details -
200 Group details -
*/ - public okhttp3.Call scimPatchUserCall(Long userId, ScimPatchRequest body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call scimReplaceGroupAttributesCall(Integer groupId, ScimBaseGroup body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/v1/provisioning/scim/Users/{userId}" - .replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString())); + String localVarPath = "/v1/provisioning/scim/Groups/{groupId}" + .replaceAll("\\{" + "groupId" + "\\}", localVarApiClient.escapeString(groupId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -19922,69 +21323,69 @@ public okhttp3.Call scimPatchUserCall(Long userId, ScimPatchRequest body, final localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; - return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call scimPatchUserValidateBeforeCall(Long userId, ScimPatchRequest body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call scimReplaceGroupAttributesValidateBeforeCall(Integer groupId, ScimBaseGroup body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'userId' is set - if (userId == null) { - throw new ApiException("Missing the required parameter 'userId' when calling scimPatchUser(Async)"); + // verify the required parameter 'groupId' is set + if (groupId == null) { + throw new ApiException("Missing the required parameter 'groupId' when calling scimReplaceGroupAttributes(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling scimPatchUser(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling scimReplaceGroupAttributes(Async)"); } - okhttp3.Call localVarCall = scimPatchUserCall(userId, body, _callback); + okhttp3.Call localVarCall = scimReplaceGroupAttributesCall(groupId, body, _callback); return localVarCall; } /** - * Update SCIM user attributes - * Update certain attributes of a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint allows for selective adding, removing, or replacing specific attributes while leaving other attributes unchanged. - * @param userId The ID of the user. (required) + * Update SCIM group + * Update the details of a specific group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint replaces all attributes of the given group with the attributes provided in the request payload. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + * @param groupId The ID of the group. (required) * @param body body (required) - * @return ScimUser + * @return ScimGroup * @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 User details -
200 Group details -
*/ - public ScimUser scimPatchUser(Long userId, ScimPatchRequest body) throws ApiException { - ApiResponse localVarResp = scimPatchUserWithHttpInfo(userId, body); + public ScimGroup scimReplaceGroupAttributes(Integer groupId, ScimBaseGroup body) throws ApiException { + ApiResponse localVarResp = scimReplaceGroupAttributesWithHttpInfo(groupId, body); return localVarResp.getData(); } /** - * Update SCIM user attributes - * Update certain attributes of a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint allows for selective adding, removing, or replacing specific attributes while leaving other attributes unchanged. - * @param userId The ID of the user. (required) + * Update SCIM group + * Update the details of a specific group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint replaces all attributes of the given group with the attributes provided in the request payload. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + * @param groupId The ID of the group. (required) * @param body body (required) - * @return ApiResponse<ScimUser> + * @return ApiResponse<ScimGroup> * @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 User details -
200 Group details -
*/ - public ApiResponse scimPatchUserWithHttpInfo(Long userId, ScimPatchRequest body) throws ApiException { - okhttp3.Call localVarCall = scimPatchUserValidateBeforeCall(userId, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse scimReplaceGroupAttributesWithHttpInfo(Integer groupId, ScimBaseGroup body) throws ApiException { + okhttp3.Call localVarCall = scimReplaceGroupAttributesValidateBeforeCall(groupId, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * Update SCIM user attributes (asynchronously) - * Update certain attributes of a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint allows for selective adding, removing, or replacing specific attributes while leaving other attributes unchanged. - * @param userId The ID of the user. (required) + * Update SCIM group (asynchronously) + * Update the details of a specific group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint replaces all attributes of the given group with the attributes provided in the request payload. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + * @param groupId The ID of the group. (required) * @param body body (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -19992,13 +21393,13 @@ public ApiResponse scimPatchUserWithHttpInfo(Long userId, ScimPatchReq * @http.response.details - +
Status Code Description Response Headers
200 User details -
200 Group details -
*/ - public okhttp3.Call scimPatchUserAsync(Long userId, ScimPatchRequest body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call scimReplaceGroupAttributesAsync(Integer groupId, ScimBaseGroup body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = scimPatchUserValidateBeforeCall(userId, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = scimReplaceGroupAttributesValidateBeforeCall(groupId, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -20015,7 +21416,7 @@ public okhttp3.Call scimPatchUserAsync(Long userId, ScimPatchRequest body, final 200 User details - */ - public okhttp3.Call scimReplaceUserAttributesCall(Long userId, ScimNewUser body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call scimReplaceUserAttributesCall(Integer userId, ScimNewUser body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -20046,7 +21447,7 @@ public okhttp3.Call scimReplaceUserAttributesCall(Long userId, ScimNewUser body, } @SuppressWarnings("rawtypes") - private okhttp3.Call scimReplaceUserAttributesValidateBeforeCall(Long userId, ScimNewUser body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call scimReplaceUserAttributesValidateBeforeCall(Integer userId, ScimNewUser body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userId' is set if (userId == null) { @@ -20077,7 +21478,7 @@ private okhttp3.Call scimReplaceUserAttributesValidateBeforeCall(Long userId, Sc 200 User details - */ - public ScimUser scimReplaceUserAttributes(Long userId, ScimNewUser body) throws ApiException { + public ScimUser scimReplaceUserAttributes(Integer userId, ScimNewUser body) throws ApiException { ApiResponse localVarResp = scimReplaceUserAttributesWithHttpInfo(userId, body); return localVarResp.getData(); } @@ -20095,7 +21496,7 @@ public ScimUser scimReplaceUserAttributes(Long userId, ScimNewUser body) throws 200 User details - */ - public ApiResponse scimReplaceUserAttributesWithHttpInfo(Long userId, ScimNewUser body) throws ApiException { + public ApiResponse scimReplaceUserAttributesWithHttpInfo(Integer userId, ScimNewUser body) throws ApiException { okhttp3.Call localVarCall = scimReplaceUserAttributesValidateBeforeCall(userId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -20115,7 +21516,7 @@ public ApiResponse scimReplaceUserAttributesWithHttpInfo(Long userId, 200 User details - */ - public okhttp3.Call scimReplaceUserAttributesAsync(Long userId, ScimNewUser body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call scimReplaceUserAttributesAsync(Integer userId, ScimNewUser body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = scimReplaceUserAttributesValidateBeforeCall(userId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -20126,7 +21527,7 @@ public okhttp3.Call scimReplaceUserAttributesAsync(Long userId, ScimNewUser body * Build call for searchCouponsAdvancedApplicationWideWithoutTotalCount * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -20148,7 +21549,7 @@ public okhttp3.Call scimReplaceUserAttributesAsync(Long userId, ScimNewUser body 200 OK - */ - public okhttp3.Call searchCouponsAdvancedApplicationWideWithoutTotalCountCall(Long applicationId, Object body, Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Long referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String campaignState, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchCouponsAdvancedApplicationWideWithoutTotalCountCall(Integer applicationId, Object body, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String campaignState, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -20231,7 +21632,7 @@ public okhttp3.Call searchCouponsAdvancedApplicationWideWithoutTotalCountCall(Lo } @SuppressWarnings("rawtypes") - private okhttp3.Call searchCouponsAdvancedApplicationWideWithoutTotalCountValidateBeforeCall(Long applicationId, Object body, Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Long referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String campaignState, final ApiCallback _callback) throws ApiException { + private okhttp3.Call searchCouponsAdvancedApplicationWideWithoutTotalCountValidateBeforeCall(Integer applicationId, Object body, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String campaignState, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -20254,7 +21655,7 @@ private okhttp3.Call searchCouponsAdvancedApplicationWideWithoutTotalCountValida * List the coupons whose attributes match the query criteria in all the campaigns of the given Application. The match is successful if all the attributes of the request are found in a coupon, even if the coupon has more attributes that are not present on the request. **Note:** The total count is not included in the response. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -20275,7 +21676,7 @@ private okhttp3.Call searchCouponsAdvancedApplicationWideWithoutTotalCountValida 200 OK - */ - public InlineResponse20011 searchCouponsAdvancedApplicationWideWithoutTotalCount(Long applicationId, Object body, Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Long referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String campaignState) throws ApiException { + public InlineResponse20011 searchCouponsAdvancedApplicationWideWithoutTotalCount(Integer applicationId, Object body, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String campaignState) throws ApiException { ApiResponse localVarResp = searchCouponsAdvancedApplicationWideWithoutTotalCountWithHttpInfo(applicationId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, campaignState); return localVarResp.getData(); } @@ -20285,7 +21686,7 @@ public InlineResponse20011 searchCouponsAdvancedApplicationWideWithoutTotalCount * List the coupons whose attributes match the query criteria in all the campaigns of the given Application. The match is successful if all the attributes of the request are found in a coupon, even if the coupon has more attributes that are not present on the request. **Note:** The total count is not included in the response. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -20306,7 +21707,7 @@ public InlineResponse20011 searchCouponsAdvancedApplicationWideWithoutTotalCount 200 OK - */ - public ApiResponse searchCouponsAdvancedApplicationWideWithoutTotalCountWithHttpInfo(Long applicationId, Object body, Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Long referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String campaignState) throws ApiException { + public ApiResponse searchCouponsAdvancedApplicationWideWithoutTotalCountWithHttpInfo(Integer applicationId, Object body, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String campaignState) throws ApiException { okhttp3.Call localVarCall = searchCouponsAdvancedApplicationWideWithoutTotalCountValidateBeforeCall(applicationId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, campaignState, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -20317,7 +21718,7 @@ public ApiResponse searchCouponsAdvancedApplicationWideWith * List the coupons whose attributes match the query criteria in all the campaigns of the given Application. The match is successful if all the attributes of the request are found in a coupon, even if the coupon has more attributes that are not present on the request. **Note:** The total count is not included in the response. * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -20339,7 +21740,7 @@ public ApiResponse searchCouponsAdvancedApplicationWideWith 200 OK - */ - public okhttp3.Call searchCouponsAdvancedApplicationWideWithoutTotalCountAsync(Long applicationId, Object body, Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Long referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String campaignState, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchCouponsAdvancedApplicationWideWithoutTotalCountAsync(Integer applicationId, Object body, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, String batchId, Boolean exactMatch, String campaignState, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchCouponsAdvancedApplicationWideWithoutTotalCountValidateBeforeCall(applicationId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, campaignState, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -20351,7 +21752,7 @@ public okhttp3.Call searchCouponsAdvancedApplicationWideWithoutTotalCountAsync(L * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -20372,7 +21773,7 @@ public okhttp3.Call searchCouponsAdvancedApplicationWideWithoutTotalCountAsync(L 200 OK - */ - public okhttp3.Call searchCouponsAdvancedWithoutTotalCountCall(Long applicationId, Long campaignId, Object body, Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Long referralId, String recipientIntegrationId, Boolean exactMatch, String batchId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchCouponsAdvancedWithoutTotalCountCall(Integer applicationId, Integer campaignId, Object body, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch, String batchId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -20452,7 +21853,7 @@ public okhttp3.Call searchCouponsAdvancedWithoutTotalCountCall(Long applicationI } @SuppressWarnings("rawtypes") - private okhttp3.Call searchCouponsAdvancedWithoutTotalCountValidateBeforeCall(Long applicationId, Long campaignId, Object body, Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Long referralId, String recipientIntegrationId, Boolean exactMatch, String batchId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call searchCouponsAdvancedWithoutTotalCountValidateBeforeCall(Integer applicationId, Integer campaignId, Object body, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch, String batchId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -20481,7 +21882,7 @@ private okhttp3.Call searchCouponsAdvancedWithoutTotalCountValidateBeforeCall(Lo * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -20501,7 +21902,7 @@ private okhttp3.Call searchCouponsAdvancedWithoutTotalCountValidateBeforeCall(Lo 200 OK - */ - public InlineResponse20011 searchCouponsAdvancedWithoutTotalCount(Long applicationId, Long campaignId, Object body, Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Long referralId, String recipientIntegrationId, Boolean exactMatch, String batchId) throws ApiException { + public InlineResponse20011 searchCouponsAdvancedWithoutTotalCount(Integer applicationId, Integer campaignId, Object body, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch, String batchId) throws ApiException { ApiResponse localVarResp = searchCouponsAdvancedWithoutTotalCountWithHttpInfo(applicationId, campaignId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, exactMatch, batchId); return localVarResp.getData(); } @@ -20512,7 +21913,7 @@ public InlineResponse20011 searchCouponsAdvancedWithoutTotalCount(Long applicati * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -20532,7 +21933,7 @@ public InlineResponse20011 searchCouponsAdvancedWithoutTotalCount(Long applicati 200 OK - */ - public ApiResponse searchCouponsAdvancedWithoutTotalCountWithHttpInfo(Long applicationId, Long campaignId, Object body, Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Long referralId, String recipientIntegrationId, Boolean exactMatch, String batchId) throws ApiException { + public ApiResponse searchCouponsAdvancedWithoutTotalCountWithHttpInfo(Integer applicationId, Integer campaignId, Object body, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch, String batchId) throws ApiException { okhttp3.Call localVarCall = searchCouponsAdvancedWithoutTotalCountValidateBeforeCall(applicationId, campaignId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, exactMatch, batchId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -20544,7 +21945,7 @@ public ApiResponse searchCouponsAdvancedWithoutTotalCountWi * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) * @param body body (required) - * @param pageSize The number of items in the response. (optional, default to 1000l) + * @param pageSize The number of items in the response. (optional, default to 1000) * @param skip The number of items to skip when paging through large result sets. (optional) * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** You may not be able to use all fields for sorting. This is due to performance limitations. (optional) * @param value Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters. (optional) @@ -20565,13 +21966,146 @@ public ApiResponse searchCouponsAdvancedWithoutTotalCountWi 200 OK - */ - public okhttp3.Call searchCouponsAdvancedWithoutTotalCountAsync(Long applicationId, Long campaignId, Object body, Long pageSize, Long skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Long referralId, String recipientIntegrationId, Boolean exactMatch, String batchId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchCouponsAdvancedWithoutTotalCountAsync(Integer applicationId, Integer campaignId, Object body, Integer pageSize, Integer skip, String sort, String value, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String valid, String usable, Integer referralId, String recipientIntegrationId, Boolean exactMatch, String batchId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchCouponsAdvancedWithoutTotalCountValidateBeforeCall(applicationId, campaignId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, exactMatch, batchId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for summarizeCampaignStoreBudget + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (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 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ */ + public okhttp3.Call summarizeCampaignStoreBudgetCall(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/v1/applications/{applicationId}/campaigns/{campaignId}/stores/budgets/summary" + .replaceAll("\\{" + "applicationId" + "\\}", localVarApiClient.escapeString(applicationId.toString())) + .replaceAll("\\{" + "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); + localVarHeaderParams.put("Content-Type", localVarContentType); + + String[] localVarAuthNames = new String[] { "management_key", "manager_auth" }; + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call summarizeCampaignStoreBudgetValidateBeforeCall(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'applicationId' is set + if (applicationId == null) { + throw new ApiException("Missing the required parameter 'applicationId' when calling summarizeCampaignStoreBudget(Async)"); + } + + // verify the required parameter 'campaignId' is set + if (campaignId == null) { + throw new ApiException("Missing the required parameter 'campaignId' when calling summarizeCampaignStoreBudget(Async)"); + } + + + okhttp3.Call localVarCall = summarizeCampaignStoreBudgetCall(applicationId, campaignId, _callback); + return localVarCall; + + } + + /** + * Get summary of campaign store budgets + * Fetch a summary of all store budget information for a given campaign. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @return InlineResponse20049 + * @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 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ */ + public InlineResponse20049 summarizeCampaignStoreBudget(Integer applicationId, Integer campaignId) throws ApiException { + ApiResponse localVarResp = summarizeCampaignStoreBudgetWithHttpInfo(applicationId, campaignId); + return localVarResp.getData(); + } + + /** + * Get summary of campaign store budgets + * Fetch a summary of all store budget information for a given campaign. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (required) + * @return ApiResponse<InlineResponse20049> + * @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 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ */ + public ApiResponse summarizeCampaignStoreBudgetWithHttpInfo(Integer applicationId, Integer campaignId) throws ApiException { + okhttp3.Call localVarCall = summarizeCampaignStoreBudgetValidateBeforeCall(applicationId, campaignId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get summary of campaign store budgets (asynchronously) + * Fetch a summary of all store budget information for a given campaign. + * @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required) + * @param campaignId The ID of the campaign. It is displayed in your Talon.One deployment URL. (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 OK -
400 Bad request -
401 Unauthorized - Invalid API key -
404 Not found -
+ */ + public okhttp3.Call summarizeCampaignStoreBudgetAsync(Integer applicationId, Integer campaignId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = summarizeCampaignStoreBudgetValidateBeforeCall(applicationId, campaignId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for transferLoyaltyCard * @param loyaltyProgramId Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. (required) @@ -20589,7 +22123,7 @@ public okhttp3.Call searchCouponsAdvancedWithoutTotalCountAsync(Long application 404 Not found - */ - public okhttp3.Call transferLoyaltyCardCall(Long loyaltyProgramId, String loyaltyCardId, TransferLoyaltyCard body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call transferLoyaltyCardCall(Integer loyaltyProgramId, String loyaltyCardId, TransferLoyaltyCard body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -20621,7 +22155,7 @@ public okhttp3.Call transferLoyaltyCardCall(Long loyaltyProgramId, String loyalt } @SuppressWarnings("rawtypes") - private okhttp3.Call transferLoyaltyCardValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, TransferLoyaltyCard body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call transferLoyaltyCardValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, TransferLoyaltyCard body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -20660,7 +22194,7 @@ private okhttp3.Call transferLoyaltyCardValidateBeforeCall(Long loyaltyProgramId 404 Not found - */ - public void transferLoyaltyCard(Long loyaltyProgramId, String loyaltyCardId, TransferLoyaltyCard body) throws ApiException { + public void transferLoyaltyCard(Integer loyaltyProgramId, String loyaltyCardId, TransferLoyaltyCard body) throws ApiException { transferLoyaltyCardWithHttpInfo(loyaltyProgramId, loyaltyCardId, body); } @@ -20681,7 +22215,7 @@ public void transferLoyaltyCard(Long loyaltyProgramId, String loyaltyCardId, Tra 404 Not found - */ - public ApiResponse transferLoyaltyCardWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, TransferLoyaltyCard body) throws ApiException { + public ApiResponse transferLoyaltyCardWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, TransferLoyaltyCard body) throws ApiException { okhttp3.Call localVarCall = transferLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, null); return localVarApiClient.execute(localVarCall); } @@ -20704,7 +22238,7 @@ public ApiResponse transferLoyaltyCardWithHttpInfo(Long loyaltyProgramId, 404 Not found - */ - public okhttp3.Call transferLoyaltyCardAsync(Long loyaltyProgramId, String loyaltyCardId, TransferLoyaltyCard body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call transferLoyaltyCardAsync(Integer loyaltyProgramId, String loyaltyCardId, TransferLoyaltyCard body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = transferLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -20726,7 +22260,7 @@ public okhttp3.Call transferLoyaltyCardAsync(Long loyaltyProgramId, String loyal 409 Conflict. A collection with this name already exists. - */ - public okhttp3.Call updateAccountCollectionCall(Long collectionId, UpdateCollection body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAccountCollectionCall(Integer collectionId, UpdateCollection body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -20757,7 +22291,7 @@ public okhttp3.Call updateAccountCollectionCall(Long collectionId, UpdateCollect } @SuppressWarnings("rawtypes") - private okhttp3.Call updateAccountCollectionValidateBeforeCall(Long collectionId, UpdateCollection body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateAccountCollectionValidateBeforeCall(Integer collectionId, UpdateCollection body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'collectionId' is set if (collectionId == null) { @@ -20791,7 +22325,7 @@ private okhttp3.Call updateAccountCollectionValidateBeforeCall(Long collectionId 409 Conflict. A collection with this name already exists. - */ - public Collection updateAccountCollection(Long collectionId, UpdateCollection body) throws ApiException { + public Collection updateAccountCollection(Integer collectionId, UpdateCollection body) throws ApiException { ApiResponse localVarResp = updateAccountCollectionWithHttpInfo(collectionId, body); return localVarResp.getData(); } @@ -20812,7 +22346,7 @@ public Collection updateAccountCollection(Long collectionId, UpdateCollection bo 409 Conflict. A collection with this name already exists. - */ - public ApiResponse updateAccountCollectionWithHttpInfo(Long collectionId, UpdateCollection body) throws ApiException { + public ApiResponse updateAccountCollectionWithHttpInfo(Integer collectionId, UpdateCollection body) throws ApiException { okhttp3.Call localVarCall = updateAccountCollectionValidateBeforeCall(collectionId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -20835,7 +22369,7 @@ public ApiResponse updateAccountCollectionWithHttpInfo(Long collecti 409 Conflict. A collection with this name already exists. - */ - public okhttp3.Call updateAccountCollectionAsync(Long collectionId, UpdateCollection body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAccountCollectionAsync(Integer collectionId, UpdateCollection body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateAccountCollectionValidateBeforeCall(collectionId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -20860,7 +22394,7 @@ public okhttp3.Call updateAccountCollectionAsync(Long collectionId, UpdateCollec 404 Not found - */ - public okhttp3.Call updateAchievementCall(Long applicationId, Long campaignId, Long achievementId, UpdateAchievement body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAchievementCall(Integer applicationId, Integer campaignId, Integer achievementId, UpdateAchievement body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -20893,7 +22427,7 @@ public okhttp3.Call updateAchievementCall(Long applicationId, Long campaignId, L } @SuppressWarnings("rawtypes") - private okhttp3.Call updateAchievementValidateBeforeCall(Long applicationId, Long campaignId, Long achievementId, UpdateAchievement body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateAchievementValidateBeforeCall(Integer applicationId, Integer campaignId, Integer achievementId, UpdateAchievement body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -20939,7 +22473,7 @@ private okhttp3.Call updateAchievementValidateBeforeCall(Long applicationId, Lon 404 Not found - */ - public Achievement updateAchievement(Long applicationId, Long campaignId, Long achievementId, UpdateAchievement body) throws ApiException { + public Achievement updateAchievement(Integer applicationId, Integer campaignId, Integer achievementId, UpdateAchievement body) throws ApiException { ApiResponse localVarResp = updateAchievementWithHttpInfo(applicationId, campaignId, achievementId, body); return localVarResp.getData(); } @@ -20962,7 +22496,7 @@ public Achievement updateAchievement(Long applicationId, Long campaignId, Long a 404 Not found - */ - public ApiResponse updateAchievementWithHttpInfo(Long applicationId, Long campaignId, Long achievementId, UpdateAchievement body) throws ApiException { + public ApiResponse updateAchievementWithHttpInfo(Integer applicationId, Integer campaignId, Integer achievementId, UpdateAchievement body) throws ApiException { okhttp3.Call localVarCall = updateAchievementValidateBeforeCall(applicationId, campaignId, achievementId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -20987,7 +22521,7 @@ public ApiResponse updateAchievementWithHttpInfo(Long applicationId 404 Not found - */ - public okhttp3.Call updateAchievementAsync(Long applicationId, Long campaignId, Long achievementId, UpdateAchievement body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAchievementAsync(Integer applicationId, Integer campaignId, Integer achievementId, UpdateAchievement body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateAchievementValidateBeforeCall(applicationId, campaignId, achievementId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -21007,7 +22541,7 @@ public okhttp3.Call updateAchievementAsync(Long applicationId, Long campaignId, 200 OK - */ - public okhttp3.Call updateAdditionalCostCall(Long additionalCostId, NewAdditionalCost body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAdditionalCostCall(Integer additionalCostId, NewAdditionalCost body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -21038,7 +22572,7 @@ public okhttp3.Call updateAdditionalCostCall(Long additionalCostId, NewAdditiona } @SuppressWarnings("rawtypes") - private okhttp3.Call updateAdditionalCostValidateBeforeCall(Long additionalCostId, NewAdditionalCost body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateAdditionalCostValidateBeforeCall(Integer additionalCostId, NewAdditionalCost body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'additionalCostId' is set if (additionalCostId == null) { @@ -21069,7 +22603,7 @@ private okhttp3.Call updateAdditionalCostValidateBeforeCall(Long additionalCostI 200 OK - */ - public AccountAdditionalCost updateAdditionalCost(Long additionalCostId, NewAdditionalCost body) throws ApiException { + public AccountAdditionalCost updateAdditionalCost(Integer additionalCostId, NewAdditionalCost body) throws ApiException { ApiResponse localVarResp = updateAdditionalCostWithHttpInfo(additionalCostId, body); return localVarResp.getData(); } @@ -21087,7 +22621,7 @@ public AccountAdditionalCost updateAdditionalCost(Long additionalCostId, NewAddi 200 OK - */ - public ApiResponse updateAdditionalCostWithHttpInfo(Long additionalCostId, NewAdditionalCost body) throws ApiException { + public ApiResponse updateAdditionalCostWithHttpInfo(Integer additionalCostId, NewAdditionalCost body) throws ApiException { okhttp3.Call localVarCall = updateAdditionalCostValidateBeforeCall(additionalCostId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -21107,7 +22641,7 @@ public ApiResponse updateAdditionalCostWithHttpInfo(Long 200 OK - */ - public okhttp3.Call updateAdditionalCostAsync(Long additionalCostId, NewAdditionalCost body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAdditionalCostAsync(Integer additionalCostId, NewAdditionalCost body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateAdditionalCostValidateBeforeCall(additionalCostId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -21127,7 +22661,7 @@ public okhttp3.Call updateAdditionalCostAsync(Long additionalCostId, NewAddition 200 OK - */ - public okhttp3.Call updateAttributeCall(Long attributeId, NewAttribute body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAttributeCall(Integer attributeId, NewAttribute body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -21158,7 +22692,7 @@ public okhttp3.Call updateAttributeCall(Long attributeId, NewAttribute body, fin } @SuppressWarnings("rawtypes") - private okhttp3.Call updateAttributeValidateBeforeCall(Long attributeId, NewAttribute body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateAttributeValidateBeforeCall(Integer attributeId, NewAttribute body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'attributeId' is set if (attributeId == null) { @@ -21189,7 +22723,7 @@ private okhttp3.Call updateAttributeValidateBeforeCall(Long attributeId, NewAttr 200 OK - */ - public Attribute updateAttribute(Long attributeId, NewAttribute body) throws ApiException { + public Attribute updateAttribute(Integer attributeId, NewAttribute body) throws ApiException { ApiResponse localVarResp = updateAttributeWithHttpInfo(attributeId, body); return localVarResp.getData(); } @@ -21207,7 +22741,7 @@ public Attribute updateAttribute(Long attributeId, NewAttribute body) throws Api 200 OK - */ - public ApiResponse updateAttributeWithHttpInfo(Long attributeId, NewAttribute body) throws ApiException { + public ApiResponse updateAttributeWithHttpInfo(Integer attributeId, NewAttribute body) throws ApiException { okhttp3.Call localVarCall = updateAttributeValidateBeforeCall(attributeId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -21227,7 +22761,7 @@ public ApiResponse updateAttributeWithHttpInfo(Long attributeId, NewA 200 OK - */ - public okhttp3.Call updateAttributeAsync(Long attributeId, NewAttribute body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAttributeAsync(Integer attributeId, NewAttribute body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateAttributeValidateBeforeCall(attributeId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -21248,7 +22782,7 @@ public okhttp3.Call updateAttributeAsync(Long attributeId, NewAttribute body, fi 200 OK - */ - public okhttp3.Call updateCampaignCall(Long applicationId, Long campaignId, UpdateCampaign body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCampaignCall(Integer applicationId, Integer campaignId, UpdateCampaign body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -21280,7 +22814,7 @@ public okhttp3.Call updateCampaignCall(Long applicationId, Long campaignId, Upda } @SuppressWarnings("rawtypes") - private okhttp3.Call updateCampaignValidateBeforeCall(Long applicationId, Long campaignId, UpdateCampaign body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateCampaignValidateBeforeCall(Integer applicationId, Integer campaignId, UpdateCampaign body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -21317,7 +22851,7 @@ private okhttp3.Call updateCampaignValidateBeforeCall(Long applicationId, Long c 200 OK - */ - public Campaign updateCampaign(Long applicationId, Long campaignId, UpdateCampaign body) throws ApiException { + public Campaign updateCampaign(Integer applicationId, Integer campaignId, UpdateCampaign body) throws ApiException { ApiResponse localVarResp = updateCampaignWithHttpInfo(applicationId, campaignId, body); return localVarResp.getData(); } @@ -21336,7 +22870,7 @@ public Campaign updateCampaign(Long applicationId, Long campaignId, UpdateCampai 200 OK - */ - public ApiResponse updateCampaignWithHttpInfo(Long applicationId, Long campaignId, UpdateCampaign body) throws ApiException { + public ApiResponse updateCampaignWithHttpInfo(Integer applicationId, Integer campaignId, UpdateCampaign body) throws ApiException { okhttp3.Call localVarCall = updateCampaignValidateBeforeCall(applicationId, campaignId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -21357,7 +22891,7 @@ public ApiResponse updateCampaignWithHttpInfo(Long applicationId, Long 200 OK - */ - public okhttp3.Call updateCampaignAsync(Long applicationId, Long campaignId, UpdateCampaign body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCampaignAsync(Integer applicationId, Integer campaignId, UpdateCampaign body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateCampaignValidateBeforeCall(applicationId, campaignId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -21380,7 +22914,7 @@ public okhttp3.Call updateCampaignAsync(Long applicationId, Long campaignId, Upd 401 Unauthorized - */ - public okhttp3.Call updateCollectionCall(Long applicationId, Long campaignId, Long collectionId, UpdateCampaignCollection body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCollectionCall(Integer applicationId, Integer campaignId, Integer collectionId, UpdateCampaignCollection body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -21413,7 +22947,7 @@ public okhttp3.Call updateCollectionCall(Long applicationId, Long campaignId, Lo } @SuppressWarnings("rawtypes") - private okhttp3.Call updateCollectionValidateBeforeCall(Long applicationId, Long campaignId, Long collectionId, UpdateCampaignCollection body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateCollectionValidateBeforeCall(Integer applicationId, Integer campaignId, Integer collectionId, UpdateCampaignCollection body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -21457,7 +22991,7 @@ private okhttp3.Call updateCollectionValidateBeforeCall(Long applicationId, Long 401 Unauthorized - */ - public Collection updateCollection(Long applicationId, Long campaignId, Long collectionId, UpdateCampaignCollection body) throws ApiException { + public Collection updateCollection(Integer applicationId, Integer campaignId, Integer collectionId, UpdateCampaignCollection body) throws ApiException { ApiResponse localVarResp = updateCollectionWithHttpInfo(applicationId, campaignId, collectionId, body); return localVarResp.getData(); } @@ -21478,7 +23012,7 @@ public Collection updateCollection(Long applicationId, Long campaignId, Long col 401 Unauthorized - */ - public ApiResponse updateCollectionWithHttpInfo(Long applicationId, Long campaignId, Long collectionId, UpdateCampaignCollection body) throws ApiException { + public ApiResponse updateCollectionWithHttpInfo(Integer applicationId, Integer campaignId, Integer collectionId, UpdateCampaignCollection body) throws ApiException { okhttp3.Call localVarCall = updateCollectionValidateBeforeCall(applicationId, campaignId, collectionId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -21501,7 +23035,7 @@ public ApiResponse updateCollectionWithHttpInfo(Long applicationId, 401 Unauthorized - */ - public okhttp3.Call updateCollectionAsync(Long applicationId, Long campaignId, Long collectionId, UpdateCampaignCollection body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCollectionAsync(Integer applicationId, Integer campaignId, Integer collectionId, UpdateCampaignCollection body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateCollectionValidateBeforeCall(applicationId, campaignId, collectionId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -21523,7 +23057,7 @@ public okhttp3.Call updateCollectionAsync(Long applicationId, Long campaignId, L 200 OK - */ - public okhttp3.Call updateCouponCall(Long applicationId, Long campaignId, String couponId, UpdateCoupon body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCouponCall(Integer applicationId, Integer campaignId, String couponId, UpdateCoupon body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -21556,7 +23090,7 @@ public okhttp3.Call updateCouponCall(Long applicationId, Long campaignId, String } @SuppressWarnings("rawtypes") - private okhttp3.Call updateCouponValidateBeforeCall(Long applicationId, Long campaignId, String couponId, UpdateCoupon body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateCouponValidateBeforeCall(Integer applicationId, Integer campaignId, String couponId, UpdateCoupon body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -21599,7 +23133,7 @@ private okhttp3.Call updateCouponValidateBeforeCall(Long applicationId, Long cam 200 OK - */ - public Coupon updateCoupon(Long applicationId, Long campaignId, String couponId, UpdateCoupon body) throws ApiException { + public Coupon updateCoupon(Integer applicationId, Integer campaignId, String couponId, UpdateCoupon body) throws ApiException { ApiResponse localVarResp = updateCouponWithHttpInfo(applicationId, campaignId, couponId, body); return localVarResp.getData(); } @@ -21619,7 +23153,7 @@ public Coupon updateCoupon(Long applicationId, Long campaignId, String couponId, 200 OK - */ - public ApiResponse updateCouponWithHttpInfo(Long applicationId, Long campaignId, String couponId, UpdateCoupon body) throws ApiException { + public ApiResponse updateCouponWithHttpInfo(Integer applicationId, Integer campaignId, String couponId, UpdateCoupon body) throws ApiException { okhttp3.Call localVarCall = updateCouponValidateBeforeCall(applicationId, campaignId, couponId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -21641,7 +23175,7 @@ public ApiResponse updateCouponWithHttpInfo(Long applicationId, Long cam 200 OK - */ - public okhttp3.Call updateCouponAsync(Long applicationId, Long campaignId, String couponId, UpdateCoupon body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCouponAsync(Integer applicationId, Integer campaignId, String couponId, UpdateCoupon body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateCouponValidateBeforeCall(applicationId, campaignId, couponId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -21662,7 +23196,7 @@ public okhttp3.Call updateCouponAsync(Long applicationId, Long campaignId, Strin 204 No Content - */ - public okhttp3.Call updateCouponBatchCall(Long applicationId, Long campaignId, UpdateCouponBatch body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCouponBatchCall(Integer applicationId, Integer campaignId, UpdateCouponBatch body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -21694,7 +23228,7 @@ public okhttp3.Call updateCouponBatchCall(Long applicationId, Long campaignId, U } @SuppressWarnings("rawtypes") - private okhttp3.Call updateCouponBatchValidateBeforeCall(Long applicationId, Long campaignId, UpdateCouponBatch body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateCouponBatchValidateBeforeCall(Integer applicationId, Integer campaignId, UpdateCouponBatch body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -21730,7 +23264,7 @@ private okhttp3.Call updateCouponBatchValidateBeforeCall(Long applicationId, Lon 204 No Content - */ - public void updateCouponBatch(Long applicationId, Long campaignId, UpdateCouponBatch body) throws ApiException { + public void updateCouponBatch(Integer applicationId, Integer campaignId, UpdateCouponBatch body) throws ApiException { updateCouponBatchWithHttpInfo(applicationId, campaignId, body); } @@ -21748,7 +23282,7 @@ public void updateCouponBatch(Long applicationId, Long campaignId, UpdateCouponB 204 No Content - */ - public ApiResponse updateCouponBatchWithHttpInfo(Long applicationId, Long campaignId, UpdateCouponBatch body) throws ApiException { + public ApiResponse updateCouponBatchWithHttpInfo(Integer applicationId, Integer campaignId, UpdateCouponBatch body) throws ApiException { okhttp3.Call localVarCall = updateCouponBatchValidateBeforeCall(applicationId, campaignId, body, null); return localVarApiClient.execute(localVarCall); } @@ -21768,7 +23302,7 @@ public ApiResponse updateCouponBatchWithHttpInfo(Long applicationId, Long 204 No Content - */ - public okhttp3.Call updateCouponBatchAsync(Long applicationId, Long campaignId, UpdateCouponBatch body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCouponBatchAsync(Integer applicationId, Integer campaignId, UpdateCouponBatch body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateCouponBatchValidateBeforeCall(applicationId, campaignId, body, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -21791,7 +23325,7 @@ public okhttp3.Call updateCouponBatchAsync(Long applicationId, Long campaignId, 404 Not found - */ - public okhttp3.Call updateLoyaltyCardCall(Long loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCard body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateLoyaltyCardCall(Integer loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCard body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -21823,7 +23357,7 @@ public okhttp3.Call updateLoyaltyCardCall(Long loyaltyProgramId, String loyaltyC } @SuppressWarnings("rawtypes") - private okhttp3.Call updateLoyaltyCardValidateBeforeCall(Long loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCard body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateLoyaltyCardValidateBeforeCall(Integer loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCard body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'loyaltyProgramId' is set if (loyaltyProgramId == null) { @@ -21863,7 +23397,7 @@ private okhttp3.Call updateLoyaltyCardValidateBeforeCall(Long loyaltyProgramId, 404 Not found - */ - public LoyaltyCard updateLoyaltyCard(Long loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCard body) throws ApiException { + public LoyaltyCard updateLoyaltyCard(Integer loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCard body) throws ApiException { ApiResponse localVarResp = updateLoyaltyCardWithHttpInfo(loyaltyProgramId, loyaltyCardId, body); return localVarResp.getData(); } @@ -21885,7 +23419,7 @@ public LoyaltyCard updateLoyaltyCard(Long loyaltyProgramId, String loyaltyCardId 404 Not found - */ - public ApiResponse updateLoyaltyCardWithHttpInfo(Long loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCard body) throws ApiException { + public ApiResponse updateLoyaltyCardWithHttpInfo(Integer loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCard body) throws ApiException { okhttp3.Call localVarCall = updateLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -21909,7 +23443,7 @@ public ApiResponse updateLoyaltyCardWithHttpInfo(Long loyaltyProgra 404 Not found - */ - public okhttp3.Call updateLoyaltyCardAsync(Long loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCard body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateLoyaltyCardAsync(Integer loyaltyProgramId, String loyaltyCardId, UpdateLoyaltyCard body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateLoyaltyCardValidateBeforeCall(loyaltyProgramId, loyaltyCardId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -21931,7 +23465,7 @@ public okhttp3.Call updateLoyaltyCardAsync(Long loyaltyProgramId, String loyalty 200 OK - */ - public okhttp3.Call updateReferralCall(Long applicationId, Long campaignId, String referralId, UpdateReferral body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateReferralCall(Integer applicationId, Integer campaignId, String referralId, UpdateReferral body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -21964,7 +23498,7 @@ public okhttp3.Call updateReferralCall(Long applicationId, Long campaignId, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call updateReferralValidateBeforeCall(Long applicationId, Long campaignId, String referralId, UpdateReferral body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateReferralValidateBeforeCall(Integer applicationId, Integer campaignId, String referralId, UpdateReferral body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -22007,7 +23541,7 @@ private okhttp3.Call updateReferralValidateBeforeCall(Long applicationId, Long c 200 OK - */ - public Referral updateReferral(Long applicationId, Long campaignId, String referralId, UpdateReferral body) throws ApiException { + public Referral updateReferral(Integer applicationId, Integer campaignId, String referralId, UpdateReferral body) throws ApiException { ApiResponse localVarResp = updateReferralWithHttpInfo(applicationId, campaignId, referralId, body); return localVarResp.getData(); } @@ -22027,7 +23561,7 @@ public Referral updateReferral(Long applicationId, Long campaignId, String refer 200 OK - */ - public ApiResponse updateReferralWithHttpInfo(Long applicationId, Long campaignId, String referralId, UpdateReferral body) throws ApiException { + public ApiResponse updateReferralWithHttpInfo(Integer applicationId, Integer campaignId, String referralId, UpdateReferral body) throws ApiException { okhttp3.Call localVarCall = updateReferralValidateBeforeCall(applicationId, campaignId, referralId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -22049,7 +23583,7 @@ public ApiResponse updateReferralWithHttpInfo(Long applicationId, Long 200 OK - */ - public okhttp3.Call updateReferralAsync(Long applicationId, Long campaignId, String referralId, UpdateReferral body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateReferralAsync(Integer applicationId, Integer campaignId, String referralId, UpdateReferral body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateReferralValidateBeforeCall(applicationId, campaignId, referralId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -22069,7 +23603,7 @@ public okhttp3.Call updateReferralAsync(Long applicationId, Long campaignId, Str 200 OK - */ - public okhttp3.Call updateRoleV2Call(Long roleId, RoleV2Base body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateRoleV2Call(Integer roleId, RoleV2Base body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -22100,7 +23634,7 @@ public okhttp3.Call updateRoleV2Call(Long roleId, RoleV2Base body, final ApiCall } @SuppressWarnings("rawtypes") - private okhttp3.Call updateRoleV2ValidateBeforeCall(Long roleId, RoleV2Base body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateRoleV2ValidateBeforeCall(Integer roleId, RoleV2Base body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'roleId' is set if (roleId == null) { @@ -22131,7 +23665,7 @@ private okhttp3.Call updateRoleV2ValidateBeforeCall(Long roleId, RoleV2Base body 200 OK - */ - public RoleV2 updateRoleV2(Long roleId, RoleV2Base body) throws ApiException { + public RoleV2 updateRoleV2(Integer roleId, RoleV2Base body) throws ApiException { ApiResponse localVarResp = updateRoleV2WithHttpInfo(roleId, body); return localVarResp.getData(); } @@ -22149,7 +23683,7 @@ public RoleV2 updateRoleV2(Long roleId, RoleV2Base body) throws ApiException { 200 OK - */ - public ApiResponse updateRoleV2WithHttpInfo(Long roleId, RoleV2Base body) throws ApiException { + public ApiResponse updateRoleV2WithHttpInfo(Integer roleId, RoleV2Base body) throws ApiException { okhttp3.Call localVarCall = updateRoleV2ValidateBeforeCall(roleId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -22169,7 +23703,7 @@ public ApiResponse updateRoleV2WithHttpInfo(Long roleId, RoleV2Base body 200 OK - */ - public okhttp3.Call updateRoleV2Async(Long roleId, RoleV2Base body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateRoleV2Async(Integer roleId, RoleV2Base body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateRoleV2ValidateBeforeCall(roleId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -22192,7 +23726,7 @@ public okhttp3.Call updateRoleV2Async(Long roleId, RoleV2Base body, final ApiCal 404 Not found - */ - public okhttp3.Call updateStoreCall(Long applicationId, String storeId, NewStore body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateStoreCall(Integer applicationId, String storeId, NewStore body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -22224,7 +23758,7 @@ public okhttp3.Call updateStoreCall(Long applicationId, String storeId, NewStore } @SuppressWarnings("rawtypes") - private okhttp3.Call updateStoreValidateBeforeCall(Long applicationId, String storeId, NewStore body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateStoreValidateBeforeCall(Integer applicationId, String storeId, NewStore body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { @@ -22263,7 +23797,7 @@ private okhttp3.Call updateStoreValidateBeforeCall(Long applicationId, String st 404 Not found - */ - public Store updateStore(Long applicationId, String storeId, NewStore body) throws ApiException { + public Store updateStore(Integer applicationId, String storeId, NewStore body) throws ApiException { ApiResponse localVarResp = updateStoreWithHttpInfo(applicationId, storeId, body); return localVarResp.getData(); } @@ -22284,7 +23818,7 @@ public Store updateStore(Long applicationId, String storeId, NewStore body) thro 404 Not found - */ - public ApiResponse updateStoreWithHttpInfo(Long applicationId, String storeId, NewStore body) throws ApiException { + public ApiResponse updateStoreWithHttpInfo(Integer applicationId, String storeId, NewStore body) throws ApiException { okhttp3.Call localVarCall = updateStoreValidateBeforeCall(applicationId, storeId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -22307,7 +23841,7 @@ public ApiResponse updateStoreWithHttpInfo(Long applicationId, String sto 404 Not found - */ - public okhttp3.Call updateStoreAsync(Long applicationId, String storeId, NewStore body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateStoreAsync(Integer applicationId, String storeId, NewStore body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateStoreValidateBeforeCall(applicationId, storeId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -22327,7 +23861,7 @@ public okhttp3.Call updateStoreAsync(Long applicationId, String storeId, NewStor 200 OK - */ - public okhttp3.Call updateUserCall(Long userId, UpdateUser body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUserCall(Integer userId, UpdateUser body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -22358,7 +23892,7 @@ public okhttp3.Call updateUserCall(Long userId, UpdateUser body, final ApiCallba } @SuppressWarnings("rawtypes") - private okhttp3.Call updateUserValidateBeforeCall(Long userId, UpdateUser body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateUserValidateBeforeCall(Integer userId, UpdateUser body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userId' is set if (userId == null) { @@ -22389,7 +23923,7 @@ private okhttp3.Call updateUserValidateBeforeCall(Long userId, UpdateUser body, 200 OK - */ - public User updateUser(Long userId, UpdateUser body) throws ApiException { + public User updateUser(Integer userId, UpdateUser body) throws ApiException { ApiResponse localVarResp = updateUserWithHttpInfo(userId, body); return localVarResp.getData(); } @@ -22407,7 +23941,7 @@ public User updateUser(Long userId, UpdateUser body) throws ApiException { 200 OK - */ - public ApiResponse updateUserWithHttpInfo(Long userId, UpdateUser body) throws ApiException { + public ApiResponse updateUserWithHttpInfo(Integer userId, UpdateUser body) throws ApiException { okhttp3.Call localVarCall = updateUserValidateBeforeCall(userId, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -22427,7 +23961,7 @@ public ApiResponse updateUserWithHttpInfo(Long userId, UpdateUser body) th 200 OK - */ - public okhttp3.Call updateUserAsync(Long userId, UpdateUser body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateUserAsync(Integer userId, UpdateUser body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateUserValidateBeforeCall(userId, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/src/main/java/one/talon/model/AccessLogEntry.java b/src/main/java/one/talon/model/AccessLogEntry.java index dc8b0e0c..a7c94238 100644 --- a/src/main/java/one/talon/model/AccessLogEntry.java +++ b/src/main/java/one/talon/model/AccessLogEntry.java @@ -37,7 +37,7 @@ public class AccessLogEntry { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - private Long status; + private Integer status; public static final String SERIALIZED_NAME_METHOD = "method"; @SerializedName(SERIALIZED_NAME_METHOD) @@ -82,7 +82,7 @@ public void setUuid(String uuid) { } - public AccessLogEntry status(Long status) { + public AccessLogEntry status(Integer status) { this.status = status; return this; @@ -94,12 +94,12 @@ public AccessLogEntry status(Long status) { **/ @ApiModelProperty(example = "200", required = true, value = "HTTP status code of response.") - public Long getStatus() { + public Integer getStatus() { return status; } - public void setStatus(Long status) { + public void setStatus(Integer status) { this.status = status; } diff --git a/src/main/java/one/talon/model/Account.java b/src/main/java/one/talon/model/Account.java index 338dc33d..b151a2d6 100644 --- a/src/main/java/one/talon/model/Account.java +++ b/src/main/java/one/talon/model/Account.java @@ -32,7 +32,7 @@ public class Account { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -115,59 +115,59 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_APPLICATION_LIMIT = "applicationLimit"; @SerializedName(SERIALIZED_NAME_APPLICATION_LIMIT) - private Long applicationLimit; + private Integer applicationLimit; public static final String SERIALIZED_NAME_USER_LIMIT = "userLimit"; @SerializedName(SERIALIZED_NAME_USER_LIMIT) - private Long userLimit; + private Integer userLimit; public static final String SERIALIZED_NAME_CAMPAIGN_LIMIT = "campaignLimit"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_LIMIT) - private Long campaignLimit; + private Integer campaignLimit; public static final String SERIALIZED_NAME_API_LIMIT = "apiLimit"; @SerializedName(SERIALIZED_NAME_API_LIMIT) - private Long apiLimit; + private Integer apiLimit; public static final String SERIALIZED_NAME_APPLICATION_COUNT = "applicationCount"; @SerializedName(SERIALIZED_NAME_APPLICATION_COUNT) - private Long applicationCount; + private Integer applicationCount; public static final String SERIALIZED_NAME_USER_COUNT = "userCount"; @SerializedName(SERIALIZED_NAME_USER_COUNT) - private Long userCount; + private Integer userCount; public static final String SERIALIZED_NAME_CAMPAIGNS_ACTIVE_COUNT = "campaignsActiveCount"; @SerializedName(SERIALIZED_NAME_CAMPAIGNS_ACTIVE_COUNT) - private Long campaignsActiveCount; + private Integer campaignsActiveCount; public static final String SERIALIZED_NAME_CAMPAIGNS_INACTIVE_COUNT = "campaignsInactiveCount"; @SerializedName(SERIALIZED_NAME_CAMPAIGNS_INACTIVE_COUNT) - private Long campaignsInactiveCount; + private Integer campaignsInactiveCount; public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) private Object attributes; - public Account id(Long id) { + public Account id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -350,7 +350,7 @@ public void setPlanExpires(OffsetDateTime planExpires) { } - public Account applicationLimit(Long applicationLimit) { + public Account applicationLimit(Integer applicationLimit) { this.applicationLimit = applicationLimit; return this; @@ -363,17 +363,17 @@ public Account applicationLimit(Long applicationLimit) { @javax.annotation.Nullable @ApiModelProperty(value = "The maximum number of Applications covered by your plan.") - public Long getApplicationLimit() { + public Integer getApplicationLimit() { return applicationLimit; } - public void setApplicationLimit(Long applicationLimit) { + public void setApplicationLimit(Integer applicationLimit) { this.applicationLimit = applicationLimit; } - public Account userLimit(Long userLimit) { + public Account userLimit(Integer userLimit) { this.userLimit = userLimit; return this; @@ -386,17 +386,17 @@ public Account userLimit(Long userLimit) { @javax.annotation.Nullable @ApiModelProperty(value = "The maximum number of Campaign Manager Users covered by your plan.") - public Long getUserLimit() { + public Integer getUserLimit() { return userLimit; } - public void setUserLimit(Long userLimit) { + public void setUserLimit(Integer userLimit) { this.userLimit = userLimit; } - public Account campaignLimit(Long campaignLimit) { + public Account campaignLimit(Integer campaignLimit) { this.campaignLimit = campaignLimit; return this; @@ -409,17 +409,17 @@ public Account campaignLimit(Long campaignLimit) { @javax.annotation.Nullable @ApiModelProperty(value = "The maximum number of Campaigns covered by your plan.") - public Long getCampaignLimit() { + public Integer getCampaignLimit() { return campaignLimit; } - public void setCampaignLimit(Long campaignLimit) { + public void setCampaignLimit(Integer campaignLimit) { this.campaignLimit = campaignLimit; } - public Account apiLimit(Long apiLimit) { + public Account apiLimit(Integer apiLimit) { this.apiLimit = apiLimit; return this; @@ -432,17 +432,17 @@ public Account apiLimit(Long apiLimit) { @javax.annotation.Nullable @ApiModelProperty(value = "The maximum number of Integration API calls covered by your plan per billing period.") - public Long getApiLimit() { + public Integer getApiLimit() { return apiLimit; } - public void setApiLimit(Long apiLimit) { + public void setApiLimit(Integer apiLimit) { this.apiLimit = apiLimit; } - public Account applicationCount(Long applicationCount) { + public Account applicationCount(Integer applicationCount) { this.applicationCount = applicationCount; return this; @@ -454,17 +454,17 @@ public Account applicationCount(Long applicationCount) { **/ @ApiModelProperty(required = true, value = "The current number of Applications in your account.") - public Long getApplicationCount() { + public Integer getApplicationCount() { return applicationCount; } - public void setApplicationCount(Long applicationCount) { + public void setApplicationCount(Integer applicationCount) { this.applicationCount = applicationCount; } - public Account userCount(Long userCount) { + public Account userCount(Integer userCount) { this.userCount = userCount; return this; @@ -476,17 +476,17 @@ public Account userCount(Long userCount) { **/ @ApiModelProperty(required = true, value = "The current number of Campaign Manager Users in your account.") - public Long getUserCount() { + public Integer getUserCount() { return userCount; } - public void setUserCount(Long userCount) { + public void setUserCount(Integer userCount) { this.userCount = userCount; } - public Account campaignsActiveCount(Long campaignsActiveCount) { + public Account campaignsActiveCount(Integer campaignsActiveCount) { this.campaignsActiveCount = campaignsActiveCount; return this; @@ -498,17 +498,17 @@ public Account campaignsActiveCount(Long campaignsActiveCount) { **/ @ApiModelProperty(required = true, value = "The current number of active Campaigns in your account.") - public Long getCampaignsActiveCount() { + public Integer getCampaignsActiveCount() { return campaignsActiveCount; } - public void setCampaignsActiveCount(Long campaignsActiveCount) { + public void setCampaignsActiveCount(Integer campaignsActiveCount) { this.campaignsActiveCount = campaignsActiveCount; } - public Account campaignsInactiveCount(Long campaignsInactiveCount) { + public Account campaignsInactiveCount(Integer campaignsInactiveCount) { this.campaignsInactiveCount = campaignsInactiveCount; return this; @@ -520,12 +520,12 @@ public Account campaignsInactiveCount(Long campaignsInactiveCount) { **/ @ApiModelProperty(required = true, value = "The current number of inactive Campaigns in your account.") - public Long getCampaignsInactiveCount() { + public Integer getCampaignsInactiveCount() { return campaignsInactiveCount; } - public void setCampaignsInactiveCount(Long campaignsInactiveCount) { + public void setCampaignsInactiveCount(Integer campaignsInactiveCount) { this.campaignsInactiveCount = campaignsInactiveCount; } diff --git a/src/main/java/one/talon/model/AccountAdditionalCost.java b/src/main/java/one/talon/model/AccountAdditionalCost.java index 8a28bcaa..26705ac3 100644 --- a/src/main/java/one/talon/model/AccountAdditionalCost.java +++ b/src/main/java/one/talon/model/AccountAdditionalCost.java @@ -34,7 +34,7 @@ public class AccountAdditionalCost { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -42,7 +42,7 @@ public class AccountAdditionalCost { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -58,7 +58,7 @@ public class AccountAdditionalCost { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; /** * The type of additional cost. Possible value: - `session`: Additional cost will be added per session. - `item`: Additional cost will be added per item. - `both`: Additional cost will be added per item and session. @@ -114,24 +114,24 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { private TypeEnum type = TypeEnum.SESSION; - public AccountAdditionalCost id(Long id) { + public AccountAdditionalCost id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -158,7 +158,7 @@ public void setCreated(OffsetDateTime created) { } - public AccountAdditionalCost accountId(Long accountId) { + public AccountAdditionalCost accountId(Integer accountId) { this.accountId = accountId; return this; @@ -170,12 +170,12 @@ public AccountAdditionalCost accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } @@ -246,15 +246,15 @@ public void setDescription(String description) { } - public AccountAdditionalCost subscribedApplicationsIds(List subscribedApplicationsIds) { + public AccountAdditionalCost subscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public AccountAdditionalCost addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { + public AccountAdditionalCost addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; @@ -267,12 +267,12 @@ public AccountAdditionalCost addSubscribedApplicationsIdsItem(Long subscribedApp @javax.annotation.Nullable @ApiModelProperty(example = "[3, 13]", value = "A list of the IDs of the applications that are subscribed to this additional cost.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } diff --git a/src/main/java/one/talon/model/AccountAnalytics.java b/src/main/java/one/talon/model/AccountAnalytics.java index 111a5b0b..88c7ee6d 100644 --- a/src/main/java/one/talon/model/AccountAnalytics.java +++ b/src/main/java/one/talon/model/AccountAnalytics.java @@ -32,86 +32,86 @@ public class AccountAnalytics { public static final String SERIALIZED_NAME_APPLICATIONS = "applications"; @SerializedName(SERIALIZED_NAME_APPLICATIONS) - private Long applications; + private Integer applications; public static final String SERIALIZED_NAME_LIVE_APPLICATIONS = "liveApplications"; @SerializedName(SERIALIZED_NAME_LIVE_APPLICATIONS) - private Long liveApplications; + private Integer liveApplications; public static final String SERIALIZED_NAME_SANDBOX_APPLICATIONS = "sandboxApplications"; @SerializedName(SERIALIZED_NAME_SANDBOX_APPLICATIONS) - private Long sandboxApplications; + private Integer sandboxApplications; public static final String SERIALIZED_NAME_CAMPAIGNS = "campaigns"; @SerializedName(SERIALIZED_NAME_CAMPAIGNS) - private Long campaigns; + private Integer campaigns; public static final String SERIALIZED_NAME_ACTIVE_CAMPAIGNS = "activeCampaigns"; @SerializedName(SERIALIZED_NAME_ACTIVE_CAMPAIGNS) - private Long activeCampaigns; + private Integer activeCampaigns; public static final String SERIALIZED_NAME_LIVE_ACTIVE_CAMPAIGNS = "liveActiveCampaigns"; @SerializedName(SERIALIZED_NAME_LIVE_ACTIVE_CAMPAIGNS) - private Long liveActiveCampaigns; + private Integer liveActiveCampaigns; public static final String SERIALIZED_NAME_COUPONS = "coupons"; @SerializedName(SERIALIZED_NAME_COUPONS) - private Long coupons; + private Integer coupons; public static final String SERIALIZED_NAME_ACTIVE_COUPONS = "activeCoupons"; @SerializedName(SERIALIZED_NAME_ACTIVE_COUPONS) - private Long activeCoupons; + private Integer activeCoupons; public static final String SERIALIZED_NAME_EXPIRED_COUPONS = "expiredCoupons"; @SerializedName(SERIALIZED_NAME_EXPIRED_COUPONS) - private Long expiredCoupons; + private Integer expiredCoupons; public static final String SERIALIZED_NAME_REFERRAL_CODES = "referralCodes"; @SerializedName(SERIALIZED_NAME_REFERRAL_CODES) - private Long referralCodes; + private Integer referralCodes; public static final String SERIALIZED_NAME_ACTIVE_REFERRAL_CODES = "activeReferralCodes"; @SerializedName(SERIALIZED_NAME_ACTIVE_REFERRAL_CODES) - private Long activeReferralCodes; + private Integer activeReferralCodes; public static final String SERIALIZED_NAME_EXPIRED_REFERRAL_CODES = "expiredReferralCodes"; @SerializedName(SERIALIZED_NAME_EXPIRED_REFERRAL_CODES) - private Long expiredReferralCodes; + private Integer expiredReferralCodes; public static final String SERIALIZED_NAME_ACTIVE_RULES = "activeRules"; @SerializedName(SERIALIZED_NAME_ACTIVE_RULES) - private Long activeRules; + private Integer activeRules; public static final String SERIALIZED_NAME_USERS = "users"; @SerializedName(SERIALIZED_NAME_USERS) - private Long users; + private Integer users; public static final String SERIALIZED_NAME_ROLES = "roles"; @SerializedName(SERIALIZED_NAME_ROLES) - private Long roles; + private Integer roles; public static final String SERIALIZED_NAME_CUSTOM_ATTRIBUTES = "customAttributes"; @SerializedName(SERIALIZED_NAME_CUSTOM_ATTRIBUTES) - private Long customAttributes; + private Integer customAttributes; public static final String SERIALIZED_NAME_WEBHOOKS = "webhooks"; @SerializedName(SERIALIZED_NAME_WEBHOOKS) - private Long webhooks; + private Integer webhooks; public static final String SERIALIZED_NAME_LOYALTY_PROGRAMS = "loyaltyPrograms"; @SerializedName(SERIALIZED_NAME_LOYALTY_PROGRAMS) - private Long loyaltyPrograms; + private Integer loyaltyPrograms; public static final String SERIALIZED_NAME_LIVE_LOYALTY_PROGRAMS = "liveLoyaltyPrograms"; @SerializedName(SERIALIZED_NAME_LIVE_LOYALTY_PROGRAMS) - private Long liveLoyaltyPrograms; + private Integer liveLoyaltyPrograms; public static final String SERIALIZED_NAME_LAST_UPDATED_AT = "lastUpdatedAt"; @SerializedName(SERIALIZED_NAME_LAST_UPDATED_AT) private OffsetDateTime lastUpdatedAt; - public AccountAnalytics applications(Long applications) { + public AccountAnalytics applications(Integer applications) { this.applications = applications; return this; @@ -123,17 +123,17 @@ public AccountAnalytics applications(Long applications) { **/ @ApiModelProperty(example = "11", required = true, value = "Total number of applications in the account.") - public Long getApplications() { + public Integer getApplications() { return applications; } - public void setApplications(Long applications) { + public void setApplications(Integer applications) { this.applications = applications; } - public AccountAnalytics liveApplications(Long liveApplications) { + public AccountAnalytics liveApplications(Integer liveApplications) { this.liveApplications = liveApplications; return this; @@ -145,17 +145,17 @@ public AccountAnalytics liveApplications(Long liveApplications) { **/ @ApiModelProperty(example = "6", required = true, value = "Total number of live applications in the account.") - public Long getLiveApplications() { + public Integer getLiveApplications() { return liveApplications; } - public void setLiveApplications(Long liveApplications) { + public void setLiveApplications(Integer liveApplications) { this.liveApplications = liveApplications; } - public AccountAnalytics sandboxApplications(Long sandboxApplications) { + public AccountAnalytics sandboxApplications(Integer sandboxApplications) { this.sandboxApplications = sandboxApplications; return this; @@ -167,17 +167,17 @@ public AccountAnalytics sandboxApplications(Long sandboxApplications) { **/ @ApiModelProperty(example = "2", required = true, value = "Total number of sandbox applications in the account.") - public Long getSandboxApplications() { + public Integer getSandboxApplications() { return sandboxApplications; } - public void setSandboxApplications(Long sandboxApplications) { + public void setSandboxApplications(Integer sandboxApplications) { this.sandboxApplications = sandboxApplications; } - public AccountAnalytics campaigns(Long campaigns) { + public AccountAnalytics campaigns(Integer campaigns) { this.campaigns = campaigns; return this; @@ -189,17 +189,17 @@ public AccountAnalytics campaigns(Long campaigns) { **/ @ApiModelProperty(example = "35", required = true, value = "Total number of campaigns in the account.") - public Long getCampaigns() { + public Integer getCampaigns() { return campaigns; } - public void setCampaigns(Long campaigns) { + public void setCampaigns(Integer campaigns) { this.campaigns = campaigns; } - public AccountAnalytics activeCampaigns(Long activeCampaigns) { + public AccountAnalytics activeCampaigns(Integer activeCampaigns) { this.activeCampaigns = activeCampaigns; return this; @@ -211,17 +211,17 @@ public AccountAnalytics activeCampaigns(Long activeCampaigns) { **/ @ApiModelProperty(example = "15", required = true, value = "Total number of active campaigns in the account.") - public Long getActiveCampaigns() { + public Integer getActiveCampaigns() { return activeCampaigns; } - public void setActiveCampaigns(Long activeCampaigns) { + public void setActiveCampaigns(Integer activeCampaigns) { this.activeCampaigns = activeCampaigns; } - public AccountAnalytics liveActiveCampaigns(Long liveActiveCampaigns) { + public AccountAnalytics liveActiveCampaigns(Integer liveActiveCampaigns) { this.liveActiveCampaigns = liveActiveCampaigns; return this; @@ -233,17 +233,17 @@ public AccountAnalytics liveActiveCampaigns(Long liveActiveCampaigns) { **/ @ApiModelProperty(example = "10", required = true, value = "Total number of active campaigns in live applications in the account.") - public Long getLiveActiveCampaigns() { + public Integer getLiveActiveCampaigns() { return liveActiveCampaigns; } - public void setLiveActiveCampaigns(Long liveActiveCampaigns) { + public void setLiveActiveCampaigns(Integer liveActiveCampaigns) { this.liveActiveCampaigns = liveActiveCampaigns; } - public AccountAnalytics coupons(Long coupons) { + public AccountAnalytics coupons(Integer coupons) { this.coupons = coupons; return this; @@ -255,17 +255,17 @@ public AccountAnalytics coupons(Long coupons) { **/ @ApiModelProperty(example = "850", required = true, value = "Total number of coupons in the account.") - public Long getCoupons() { + public Integer getCoupons() { return coupons; } - public void setCoupons(Long coupons) { + public void setCoupons(Integer coupons) { this.coupons = coupons; } - public AccountAnalytics activeCoupons(Long activeCoupons) { + public AccountAnalytics activeCoupons(Integer activeCoupons) { this.activeCoupons = activeCoupons; return this; @@ -277,17 +277,17 @@ public AccountAnalytics activeCoupons(Long activeCoupons) { **/ @ApiModelProperty(example = "650", required = true, value = "Total number of active coupons in the account.") - public Long getActiveCoupons() { + public Integer getActiveCoupons() { return activeCoupons; } - public void setActiveCoupons(Long activeCoupons) { + public void setActiveCoupons(Integer activeCoupons) { this.activeCoupons = activeCoupons; } - public AccountAnalytics expiredCoupons(Long expiredCoupons) { + public AccountAnalytics expiredCoupons(Integer expiredCoupons) { this.expiredCoupons = expiredCoupons; return this; @@ -299,17 +299,17 @@ public AccountAnalytics expiredCoupons(Long expiredCoupons) { **/ @ApiModelProperty(example = "200", required = true, value = "Total number of expired coupons in the account.") - public Long getExpiredCoupons() { + public Integer getExpiredCoupons() { return expiredCoupons; } - public void setExpiredCoupons(Long expiredCoupons) { + public void setExpiredCoupons(Integer expiredCoupons) { this.expiredCoupons = expiredCoupons; } - public AccountAnalytics referralCodes(Long referralCodes) { + public AccountAnalytics referralCodes(Integer referralCodes) { this.referralCodes = referralCodes; return this; @@ -321,17 +321,17 @@ public AccountAnalytics referralCodes(Long referralCodes) { **/ @ApiModelProperty(example = "500", required = true, value = "Total number of referral codes in the account.") - public Long getReferralCodes() { + public Integer getReferralCodes() { return referralCodes; } - public void setReferralCodes(Long referralCodes) { + public void setReferralCodes(Integer referralCodes) { this.referralCodes = referralCodes; } - public AccountAnalytics activeReferralCodes(Long activeReferralCodes) { + public AccountAnalytics activeReferralCodes(Integer activeReferralCodes) { this.activeReferralCodes = activeReferralCodes; return this; @@ -343,17 +343,17 @@ public AccountAnalytics activeReferralCodes(Long activeReferralCodes) { **/ @ApiModelProperty(example = "100", required = true, value = "Total number of active referral codes in the account.") - public Long getActiveReferralCodes() { + public Integer getActiveReferralCodes() { return activeReferralCodes; } - public void setActiveReferralCodes(Long activeReferralCodes) { + public void setActiveReferralCodes(Integer activeReferralCodes) { this.activeReferralCodes = activeReferralCodes; } - public AccountAnalytics expiredReferralCodes(Long expiredReferralCodes) { + public AccountAnalytics expiredReferralCodes(Integer expiredReferralCodes) { this.expiredReferralCodes = expiredReferralCodes; return this; @@ -365,17 +365,17 @@ public AccountAnalytics expiredReferralCodes(Long expiredReferralCodes) { **/ @ApiModelProperty(example = "400", required = true, value = "Total number of expired referral codes in the account.") - public Long getExpiredReferralCodes() { + public Integer getExpiredReferralCodes() { return expiredReferralCodes; } - public void setExpiredReferralCodes(Long expiredReferralCodes) { + public void setExpiredReferralCodes(Integer expiredReferralCodes) { this.expiredReferralCodes = expiredReferralCodes; } - public AccountAnalytics activeRules(Long activeRules) { + public AccountAnalytics activeRules(Integer activeRules) { this.activeRules = activeRules; return this; @@ -387,17 +387,17 @@ public AccountAnalytics activeRules(Long activeRules) { **/ @ApiModelProperty(example = "35", required = true, value = "Total number of active rules in the account.") - public Long getActiveRules() { + public Integer getActiveRules() { return activeRules; } - public void setActiveRules(Long activeRules) { + public void setActiveRules(Integer activeRules) { this.activeRules = activeRules; } - public AccountAnalytics users(Long users) { + public AccountAnalytics users(Integer users) { this.users = users; return this; @@ -409,17 +409,17 @@ public AccountAnalytics users(Long users) { **/ @ApiModelProperty(required = true, value = "Total number of users in the account.") - public Long getUsers() { + public Integer getUsers() { return users; } - public void setUsers(Long users) { + public void setUsers(Integer users) { this.users = users; } - public AccountAnalytics roles(Long roles) { + public AccountAnalytics roles(Integer roles) { this.roles = roles; return this; @@ -431,17 +431,17 @@ public AccountAnalytics roles(Long roles) { **/ @ApiModelProperty(example = "10", required = true, value = "Total number of roles in the account.") - public Long getRoles() { + public Integer getRoles() { return roles; } - public void setRoles(Long roles) { + public void setRoles(Integer roles) { this.roles = roles; } - public AccountAnalytics customAttributes(Long customAttributes) { + public AccountAnalytics customAttributes(Integer customAttributes) { this.customAttributes = customAttributes; return this; @@ -453,17 +453,17 @@ public AccountAnalytics customAttributes(Long customAttributes) { **/ @ApiModelProperty(example = "18", required = true, value = "Total number of custom attributes in the account.") - public Long getCustomAttributes() { + public Integer getCustomAttributes() { return customAttributes; } - public void setCustomAttributes(Long customAttributes) { + public void setCustomAttributes(Integer customAttributes) { this.customAttributes = customAttributes; } - public AccountAnalytics webhooks(Long webhooks) { + public AccountAnalytics webhooks(Integer webhooks) { this.webhooks = webhooks; return this; @@ -475,17 +475,17 @@ public AccountAnalytics webhooks(Long webhooks) { **/ @ApiModelProperty(example = "2", required = true, value = "Total number of webhooks in the account.") - public Long getWebhooks() { + public Integer getWebhooks() { return webhooks; } - public void setWebhooks(Long webhooks) { + public void setWebhooks(Integer webhooks) { this.webhooks = webhooks; } - public AccountAnalytics loyaltyPrograms(Long loyaltyPrograms) { + public AccountAnalytics loyaltyPrograms(Integer loyaltyPrograms) { this.loyaltyPrograms = loyaltyPrograms; return this; @@ -497,17 +497,17 @@ public AccountAnalytics loyaltyPrograms(Long loyaltyPrograms) { **/ @ApiModelProperty(example = "5", required = true, value = "Total number of all loyalty programs in the account.") - public Long getLoyaltyPrograms() { + public Integer getLoyaltyPrograms() { return loyaltyPrograms; } - public void setLoyaltyPrograms(Long loyaltyPrograms) { + public void setLoyaltyPrograms(Integer loyaltyPrograms) { this.loyaltyPrograms = loyaltyPrograms; } - public AccountAnalytics liveLoyaltyPrograms(Long liveLoyaltyPrograms) { + public AccountAnalytics liveLoyaltyPrograms(Integer liveLoyaltyPrograms) { this.liveLoyaltyPrograms = liveLoyaltyPrograms; return this; @@ -519,12 +519,12 @@ public AccountAnalytics liveLoyaltyPrograms(Long liveLoyaltyPrograms) { **/ @ApiModelProperty(example = "5", required = true, value = "Total number of live loyalty programs in the account.") - public Long getLiveLoyaltyPrograms() { + public Integer getLiveLoyaltyPrograms() { return liveLoyaltyPrograms; } - public void setLiveLoyaltyPrograms(Long liveLoyaltyPrograms) { + public void setLiveLoyaltyPrograms(Integer liveLoyaltyPrograms) { this.liveLoyaltyPrograms = liveLoyaltyPrograms; } diff --git a/src/main/java/one/talon/model/AccountDashboardStatisticCampaigns.java b/src/main/java/one/talon/model/AccountDashboardStatisticCampaigns.java index b640c079..7e779046 100644 --- a/src/main/java/one/talon/model/AccountDashboardStatisticCampaigns.java +++ b/src/main/java/one/talon/model/AccountDashboardStatisticCampaigns.java @@ -31,18 +31,18 @@ public class AccountDashboardStatisticCampaigns { public static final String SERIALIZED_NAME_LIVE = "live"; @SerializedName(SERIALIZED_NAME_LIVE) - private Long live; + private Integer live; public static final String SERIALIZED_NAME_ENDING_SOON = "endingSoon"; @SerializedName(SERIALIZED_NAME_ENDING_SOON) - private Long endingSoon; + private Integer endingSoon; public static final String SERIALIZED_NAME_LOW_ON_BUDGET = "lowOnBudget"; @SerializedName(SERIALIZED_NAME_LOW_ON_BUDGET) - private Long lowOnBudget; + private Integer lowOnBudget; - public AccountDashboardStatisticCampaigns live(Long live) { + public AccountDashboardStatisticCampaigns live(Integer live) { this.live = live; return this; @@ -54,17 +54,17 @@ public AccountDashboardStatisticCampaigns live(Long live) { **/ @ApiModelProperty(required = true, value = "Number of campaigns that are active and live (across all Applications).") - public Long getLive() { + public Integer getLive() { return live; } - public void setLive(Long live) { + public void setLive(Integer live) { this.live = live; } - public AccountDashboardStatisticCampaigns endingSoon(Long endingSoon) { + public AccountDashboardStatisticCampaigns endingSoon(Integer endingSoon) { this.endingSoon = endingSoon; return this; @@ -76,17 +76,17 @@ public AccountDashboardStatisticCampaigns endingSoon(Long endingSoon) { **/ @ApiModelProperty(required = true, value = "Campaigns scheduled to expire sometime in the next 7 days.") - public Long getEndingSoon() { + public Integer getEndingSoon() { return endingSoon; } - public void setEndingSoon(Long endingSoon) { + public void setEndingSoon(Integer endingSoon) { this.endingSoon = endingSoon; } - public AccountDashboardStatisticCampaigns lowOnBudget(Long lowOnBudget) { + public AccountDashboardStatisticCampaigns lowOnBudget(Integer lowOnBudget) { this.lowOnBudget = lowOnBudget; return this; @@ -98,12 +98,12 @@ public AccountDashboardStatisticCampaigns lowOnBudget(Long lowOnBudget) { **/ @ApiModelProperty(required = true, value = "Campaigns with less than 10% of budget left.") - public Long getLowOnBudget() { + public Integer getLowOnBudget() { return lowOnBudget; } - public void setLowOnBudget(Long lowOnBudget) { + public void setLowOnBudget(Integer lowOnBudget) { this.lowOnBudget = lowOnBudget; } diff --git a/src/main/java/one/talon/model/AccountEntity.java b/src/main/java/one/talon/model/AccountEntity.java index 16875cb1..a4b8809d 100644 --- a/src/main/java/one/talon/model/AccountEntity.java +++ b/src/main/java/one/talon/model/AccountEntity.java @@ -31,10 +31,10 @@ public class AccountEntity { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; - public AccountEntity accountId(Long accountId) { + public AccountEntity accountId(Integer accountId) { this.accountId = accountId; return this; @@ -46,12 +46,12 @@ public AccountEntity accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } diff --git a/src/main/java/one/talon/model/AccountLimits.java b/src/main/java/one/talon/model/AccountLimits.java index d33ac94e..f9f93aef 100644 --- a/src/main/java/one/talon/model/AccountLimits.java +++ b/src/main/java/one/talon/model/AccountLimits.java @@ -33,54 +33,54 @@ public class AccountLimits { public static final String SERIALIZED_NAME_LIVE_APPLICATIONS = "liveApplications"; @SerializedName(SERIALIZED_NAME_LIVE_APPLICATIONS) - private Long liveApplications; + private Integer liveApplications; public static final String SERIALIZED_NAME_SANDBOX_APPLICATIONS = "sandboxApplications"; @SerializedName(SERIALIZED_NAME_SANDBOX_APPLICATIONS) - private Long sandboxApplications; + private Integer sandboxApplications; public static final String SERIALIZED_NAME_ACTIVE_CAMPAIGNS = "activeCampaigns"; @SerializedName(SERIALIZED_NAME_ACTIVE_CAMPAIGNS) - private Long activeCampaigns; + private Integer activeCampaigns; public static final String SERIALIZED_NAME_COUPONS = "coupons"; @SerializedName(SERIALIZED_NAME_COUPONS) - private Long coupons; + private Integer coupons; public static final String SERIALIZED_NAME_REFERRAL_CODES = "referralCodes"; @SerializedName(SERIALIZED_NAME_REFERRAL_CODES) - private Long referralCodes; + private Integer referralCodes; public static final String SERIALIZED_NAME_ACTIVE_RULES = "activeRules"; @SerializedName(SERIALIZED_NAME_ACTIVE_RULES) - private Long activeRules; + private Integer activeRules; public static final String SERIALIZED_NAME_LIVE_LOYALTY_PROGRAMS = "liveLoyaltyPrograms"; @SerializedName(SERIALIZED_NAME_LIVE_LOYALTY_PROGRAMS) - private Long liveLoyaltyPrograms; + private Integer liveLoyaltyPrograms; public static final String SERIALIZED_NAME_SANDBOX_LOYALTY_PROGRAMS = "sandboxLoyaltyPrograms"; @SerializedName(SERIALIZED_NAME_SANDBOX_LOYALTY_PROGRAMS) - private Long sandboxLoyaltyPrograms; + private Integer sandboxLoyaltyPrograms; public static final String SERIALIZED_NAME_WEBHOOKS = "webhooks"; @SerializedName(SERIALIZED_NAME_WEBHOOKS) - private Long webhooks; + private Integer webhooks; public static final String SERIALIZED_NAME_USERS = "users"; @SerializedName(SERIALIZED_NAME_USERS) - private Long users; + private Integer users; public static final String SERIALIZED_NAME_API_VOLUME = "apiVolume"; @SerializedName(SERIALIZED_NAME_API_VOLUME) - private Long apiVolume; + private Integer apiVolume; public static final String SERIALIZED_NAME_PROMOTION_TYPES = "promotionTypes"; @SerializedName(SERIALIZED_NAME_PROMOTION_TYPES) private List promotionTypes = new ArrayList(); - public AccountLimits liveApplications(Long liveApplications) { + public AccountLimits liveApplications(Integer liveApplications) { this.liveApplications = liveApplications; return this; @@ -92,17 +92,17 @@ public AccountLimits liveApplications(Long liveApplications) { **/ @ApiModelProperty(required = true, value = "Total number of allowed live applications in the account.") - public Long getLiveApplications() { + public Integer getLiveApplications() { return liveApplications; } - public void setLiveApplications(Long liveApplications) { + public void setLiveApplications(Integer liveApplications) { this.liveApplications = liveApplications; } - public AccountLimits sandboxApplications(Long sandboxApplications) { + public AccountLimits sandboxApplications(Integer sandboxApplications) { this.sandboxApplications = sandboxApplications; return this; @@ -114,17 +114,17 @@ public AccountLimits sandboxApplications(Long sandboxApplications) { **/ @ApiModelProperty(required = true, value = "Total number of allowed sandbox applications in the account.") - public Long getSandboxApplications() { + public Integer getSandboxApplications() { return sandboxApplications; } - public void setSandboxApplications(Long sandboxApplications) { + public void setSandboxApplications(Integer sandboxApplications) { this.sandboxApplications = sandboxApplications; } - public AccountLimits activeCampaigns(Long activeCampaigns) { + public AccountLimits activeCampaigns(Integer activeCampaigns) { this.activeCampaigns = activeCampaigns; return this; @@ -136,17 +136,17 @@ public AccountLimits activeCampaigns(Long activeCampaigns) { **/ @ApiModelProperty(required = true, value = "Total number of allowed active campaigns in live applications in the account.") - public Long getActiveCampaigns() { + public Integer getActiveCampaigns() { return activeCampaigns; } - public void setActiveCampaigns(Long activeCampaigns) { + public void setActiveCampaigns(Integer activeCampaigns) { this.activeCampaigns = activeCampaigns; } - public AccountLimits coupons(Long coupons) { + public AccountLimits coupons(Integer coupons) { this.coupons = coupons; return this; @@ -158,17 +158,17 @@ public AccountLimits coupons(Long coupons) { **/ @ApiModelProperty(required = true, value = "Total number of allowed coupons in the account.") - public Long getCoupons() { + public Integer getCoupons() { return coupons; } - public void setCoupons(Long coupons) { + public void setCoupons(Integer coupons) { this.coupons = coupons; } - public AccountLimits referralCodes(Long referralCodes) { + public AccountLimits referralCodes(Integer referralCodes) { this.referralCodes = referralCodes; return this; @@ -180,17 +180,17 @@ public AccountLimits referralCodes(Long referralCodes) { **/ @ApiModelProperty(required = true, value = "Total number of allowed referral codes in the account.") - public Long getReferralCodes() { + public Integer getReferralCodes() { return referralCodes; } - public void setReferralCodes(Long referralCodes) { + public void setReferralCodes(Integer referralCodes) { this.referralCodes = referralCodes; } - public AccountLimits activeRules(Long activeRules) { + public AccountLimits activeRules(Integer activeRules) { this.activeRules = activeRules; return this; @@ -202,17 +202,17 @@ public AccountLimits activeRules(Long activeRules) { **/ @ApiModelProperty(required = true, value = "Total number of allowed active rulesets in the account.") - public Long getActiveRules() { + public Integer getActiveRules() { return activeRules; } - public void setActiveRules(Long activeRules) { + public void setActiveRules(Integer activeRules) { this.activeRules = activeRules; } - public AccountLimits liveLoyaltyPrograms(Long liveLoyaltyPrograms) { + public AccountLimits liveLoyaltyPrograms(Integer liveLoyaltyPrograms) { this.liveLoyaltyPrograms = liveLoyaltyPrograms; return this; @@ -224,17 +224,17 @@ public AccountLimits liveLoyaltyPrograms(Long liveLoyaltyPrograms) { **/ @ApiModelProperty(required = true, value = "Total number of allowed live loyalty programs in the account.") - public Long getLiveLoyaltyPrograms() { + public Integer getLiveLoyaltyPrograms() { return liveLoyaltyPrograms; } - public void setLiveLoyaltyPrograms(Long liveLoyaltyPrograms) { + public void setLiveLoyaltyPrograms(Integer liveLoyaltyPrograms) { this.liveLoyaltyPrograms = liveLoyaltyPrograms; } - public AccountLimits sandboxLoyaltyPrograms(Long sandboxLoyaltyPrograms) { + public AccountLimits sandboxLoyaltyPrograms(Integer sandboxLoyaltyPrograms) { this.sandboxLoyaltyPrograms = sandboxLoyaltyPrograms; return this; @@ -246,17 +246,17 @@ public AccountLimits sandboxLoyaltyPrograms(Long sandboxLoyaltyPrograms) { **/ @ApiModelProperty(required = true, value = "Total number of allowed sandbox loyalty programs in the account.") - public Long getSandboxLoyaltyPrograms() { + public Integer getSandboxLoyaltyPrograms() { return sandboxLoyaltyPrograms; } - public void setSandboxLoyaltyPrograms(Long sandboxLoyaltyPrograms) { + public void setSandboxLoyaltyPrograms(Integer sandboxLoyaltyPrograms) { this.sandboxLoyaltyPrograms = sandboxLoyaltyPrograms; } - public AccountLimits webhooks(Long webhooks) { + public AccountLimits webhooks(Integer webhooks) { this.webhooks = webhooks; return this; @@ -268,17 +268,17 @@ public AccountLimits webhooks(Long webhooks) { **/ @ApiModelProperty(required = true, value = "Total number of allowed webhooks in the account.") - public Long getWebhooks() { + public Integer getWebhooks() { return webhooks; } - public void setWebhooks(Long webhooks) { + public void setWebhooks(Integer webhooks) { this.webhooks = webhooks; } - public AccountLimits users(Long users) { + public AccountLimits users(Integer users) { this.users = users; return this; @@ -290,17 +290,17 @@ public AccountLimits users(Long users) { **/ @ApiModelProperty(required = true, value = "Total number of allowed users in the account.") - public Long getUsers() { + public Integer getUsers() { return users; } - public void setUsers(Long users) { + public void setUsers(Integer users) { this.users = users; } - public AccountLimits apiVolume(Long apiVolume) { + public AccountLimits apiVolume(Integer apiVolume) { this.apiVolume = apiVolume; return this; @@ -312,12 +312,12 @@ public AccountLimits apiVolume(Long apiVolume) { **/ @ApiModelProperty(required = true, value = "Allowed volume of API requests to the account.") - public Long getApiVolume() { + public Integer getApiVolume() { return apiVolume; } - public void setApiVolume(Long apiVolume) { + public void setApiVolume(Integer apiVolume) { this.apiVolume = apiVolume; } diff --git a/src/main/java/one/talon/model/Achievement.java b/src/main/java/one/talon/model/Achievement.java index 3c153f85..03b81878 100644 --- a/src/main/java/one/talon/model/Achievement.java +++ b/src/main/java/one/talon/model/Achievement.java @@ -34,7 +34,7 @@ public class Achievement { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -65,13 +65,15 @@ public class Achievement { private TimePoint periodEndOverride; /** - * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. */ @JsonAdapter(RecurrencePolicyEnum.Adapter.class) public enum RecurrencePolicyEnum { NO_RECURRENCE("no_recurrence"), - ON_EXPIRATION("on_expiration"); + ON_EXPIRATION("on_expiration"), + + ON_COMPLETION("on_completion"); private String value; @@ -176,11 +178,11 @@ public ActivationPolicyEnum read(final JsonReader jsonReader) throws IOException public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Long userId; + private Integer userId; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) @@ -246,24 +248,24 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { private StatusEnum status; - public Achievement id(Long id) { + public Achievement id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -431,11 +433,11 @@ public Achievement recurrencePolicy(RecurrencePolicyEnum recurrencePolicy) { } /** - * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. * @return recurrencePolicy **/ @javax.annotation.Nullable - @ApiModelProperty(example = "no_recurrence", value = "The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. ") + @ApiModelProperty(example = "no_recurrence", value = "The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. ") public RecurrencePolicyEnum getRecurrencePolicy() { return recurrencePolicy; @@ -516,7 +518,7 @@ public void setEndDate(OffsetDateTime endDate) { } - public Achievement campaignId(Long campaignId) { + public Achievement campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -528,17 +530,17 @@ public Achievement campaignId(Long campaignId) { **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the campaign the achievement belongs to.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } - public Achievement userId(Long userId) { + public Achievement userId(Integer userId) { this.userId = userId; return this; @@ -550,12 +552,12 @@ public Achievement userId(Long userId) { **/ @ApiModelProperty(example = "1234", required = true, value = "ID of the user that created this achievement.") - public Long getUserId() { + public Integer getUserId() { return userId; } - public void setUserId(Long userId) { + public void setUserId(Integer userId) { this.userId = userId; } diff --git a/src/main/java/one/talon/model/AchievementAdditionalProperties.java b/src/main/java/one/talon/model/AchievementAdditionalProperties.java index d0ba2d1c..ba64d1d3 100644 --- a/src/main/java/one/talon/model/AchievementAdditionalProperties.java +++ b/src/main/java/one/talon/model/AchievementAdditionalProperties.java @@ -31,11 +31,11 @@ public class AchievementAdditionalProperties { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Long userId; + private Integer userId; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) @@ -101,7 +101,7 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { private StatusEnum status; - public AchievementAdditionalProperties campaignId(Long campaignId) { + public AchievementAdditionalProperties campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -113,17 +113,17 @@ public AchievementAdditionalProperties campaignId(Long campaignId) { **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the campaign the achievement belongs to.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } - public AchievementAdditionalProperties userId(Long userId) { + public AchievementAdditionalProperties userId(Integer userId) { this.userId = userId; return this; @@ -135,12 +135,12 @@ public AchievementAdditionalProperties userId(Long userId) { **/ @ApiModelProperty(example = "1234", required = true, value = "ID of the user that created this achievement.") - public Long getUserId() { + public Integer getUserId() { return userId; } - public void setUserId(Long userId) { + public void setUserId(Integer userId) { this.userId = userId; } diff --git a/src/main/java/one/talon/model/AchievementBase.java b/src/main/java/one/talon/model/AchievementBase.java index dcb4ee19..52d09c96 100644 --- a/src/main/java/one/talon/model/AchievementBase.java +++ b/src/main/java/one/talon/model/AchievementBase.java @@ -57,13 +57,15 @@ public class AchievementBase { private TimePoint periodEndOverride; /** - * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. */ @JsonAdapter(RecurrencePolicyEnum.Adapter.class) public enum RecurrencePolicyEnum { NO_RECURRENCE("no_recurrence"), - ON_EXPIRATION("on_expiration"); + ON_EXPIRATION("on_expiration"), + + ON_COMPLETION("on_completion"); private String value; @@ -312,11 +314,11 @@ public AchievementBase recurrencePolicy(RecurrencePolicyEnum recurrencePolicy) { } /** - * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. * @return recurrencePolicy **/ @javax.annotation.Nullable - @ApiModelProperty(example = "no_recurrence", value = "The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. ") + @ApiModelProperty(example = "no_recurrence", value = "The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. ") public RecurrencePolicyEnum getRecurrencePolicy() { return recurrencePolicy; diff --git a/src/main/java/one/talon/model/AchievementProgressWithDefinition.java b/src/main/java/one/talon/model/AchievementProgressWithDefinition.java index b3713098..3ff5734d 100644 --- a/src/main/java/one/talon/model/AchievementProgressWithDefinition.java +++ b/src/main/java/one/talon/model/AchievementProgressWithDefinition.java @@ -105,7 +105,7 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ACHIEVEMENT_ID = "achievementId"; @SerializedName(SERIALIZED_NAME_ACHIEVEMENT_ID) - private Long achievementId; + private Integer achievementId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -121,20 +121,22 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_TARGET = "target"; @SerializedName(SERIALIZED_NAME_TARGET) private BigDecimal target; /** - * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. */ @JsonAdapter(AchievementRecurrencePolicyEnum.Adapter.class) public enum AchievementRecurrencePolicyEnum { NO_RECURRENCE("no_recurrence"), - ON_EXPIRATION("on_expiration"); + ON_EXPIRATION("on_expiration"), + + ON_COMPLETION("on_completion"); private String value; @@ -351,7 +353,7 @@ public void setEndDate(OffsetDateTime endDate) { } - public AchievementProgressWithDefinition achievementId(Long achievementId) { + public AchievementProgressWithDefinition achievementId(Integer achievementId) { this.achievementId = achievementId; return this; @@ -363,12 +365,12 @@ public AchievementProgressWithDefinition achievementId(Long achievementId) { **/ @ApiModelProperty(example = "3", required = true, value = "The internal ID of the achievement.") - public Long getAchievementId() { + public Integer getAchievementId() { return achievementId; } - public void setAchievementId(Long achievementId) { + public void setAchievementId(Integer achievementId) { this.achievementId = achievementId; } @@ -439,7 +441,7 @@ public void setDescription(String description) { } - public AchievementProgressWithDefinition campaignId(Long campaignId) { + public AchievementProgressWithDefinition campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -451,12 +453,12 @@ public AchievementProgressWithDefinition campaignId(Long campaignId) { **/ @ApiModelProperty(example = "3", required = true, value = "The ID of the campaign the achievement belongs to.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } @@ -491,10 +493,10 @@ public AchievementProgressWithDefinition achievementRecurrencePolicy(Achievement } /** - * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. * @return achievementRecurrencePolicy **/ - @ApiModelProperty(example = "no_recurrence", required = true, value = "The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. ") + @ApiModelProperty(example = "no_recurrence", required = true, value = "The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. ") public AchievementRecurrencePolicyEnum getAchievementRecurrencePolicy() { return achievementRecurrencePolicy; diff --git a/src/main/java/one/talon/model/AchievementStatusEntry.java b/src/main/java/one/talon/model/AchievementStatusEntry.java index 98b5f25d..dbcc9b8b 100644 --- a/src/main/java/one/talon/model/AchievementStatusEntry.java +++ b/src/main/java/one/talon/model/AchievementStatusEntry.java @@ -35,7 +35,7 @@ public class AchievementStatusEntry { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -66,13 +66,15 @@ public class AchievementStatusEntry { private TimePoint periodEndOverride; /** - * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. */ @JsonAdapter(RecurrencePolicyEnum.Adapter.class) public enum RecurrencePolicyEnum { NO_RECURRENCE("no_recurrence"), - ON_EXPIRATION("on_expiration"); + ON_EXPIRATION("on_expiration"), + + ON_COMPLETION("on_completion"); private String value; @@ -177,7 +179,7 @@ public ActivationPolicyEnum read(final JsonReader jsonReader) throws IOException public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; /** * The status of the achievement. @@ -235,24 +237,24 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { private AchievementProgress currentProgress; - public AchievementStatusEntry id(Long id) { + public AchievementStatusEntry id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -420,11 +422,11 @@ public AchievementStatusEntry recurrencePolicy(RecurrencePolicyEnum recurrencePo } /** - * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. * @return recurrencePolicy **/ @javax.annotation.Nullable - @ApiModelProperty(example = "no_recurrence", value = "The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. ") + @ApiModelProperty(example = "no_recurrence", value = "The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. ") public RecurrencePolicyEnum getRecurrencePolicy() { return recurrencePolicy; @@ -505,7 +507,7 @@ public void setEndDate(OffsetDateTime endDate) { } - public AchievementStatusEntry campaignId(Long campaignId) { + public AchievementStatusEntry campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -518,12 +520,12 @@ public AchievementStatusEntry campaignId(Long campaignId) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the campaign the achievement belongs to.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } diff --git a/src/main/java/one/talon/model/AddFreeItemEffectProps.java b/src/main/java/one/talon/model/AddFreeItemEffectProps.java index 370fb9b3..3db7bc49 100644 --- a/src/main/java/one/talon/model/AddFreeItemEffectProps.java +++ b/src/main/java/one/talon/model/AddFreeItemEffectProps.java @@ -40,7 +40,7 @@ public class AddFreeItemEffectProps { public static final String SERIALIZED_NAME_DESIRED_QUANTITY = "desiredQuantity"; @SerializedName(SERIALIZED_NAME_DESIRED_QUANTITY) - private Long desiredQuantity; + private Integer desiredQuantity; public AddFreeItemEffectProps sku(String sku) { @@ -87,7 +87,7 @@ public void setName(String name) { } - public AddFreeItemEffectProps desiredQuantity(Long desiredQuantity) { + public AddFreeItemEffectProps desiredQuantity(Integer desiredQuantity) { this.desiredQuantity = desiredQuantity; return this; @@ -100,12 +100,12 @@ public AddFreeItemEffectProps desiredQuantity(Long desiredQuantity) { @javax.annotation.Nullable @ApiModelProperty(value = "The original quantity in case a partial reward was applied.") - public Long getDesiredQuantity() { + public Integer getDesiredQuantity() { return desiredQuantity; } - public void setDesiredQuantity(Long desiredQuantity) { + public void setDesiredQuantity(Integer desiredQuantity) { this.desiredQuantity = desiredQuantity; } diff --git a/src/main/java/one/talon/model/AddLoyaltyPoints.java b/src/main/java/one/talon/model/AddLoyaltyPoints.java index 0b414ce6..b5df785d 100644 --- a/src/main/java/one/talon/model/AddLoyaltyPoints.java +++ b/src/main/java/one/talon/model/AddLoyaltyPoints.java @@ -62,7 +62,7 @@ public class AddLoyaltyPoints { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public AddLoyaltyPoints points(BigDecimal points) { @@ -227,7 +227,7 @@ public void setSubledgerId(String subledgerId) { } - public AddLoyaltyPoints applicationId(Long applicationId) { + public AddLoyaltyPoints applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -240,12 +240,12 @@ public AddLoyaltyPoints applicationId(Long applicationId) { @javax.annotation.Nullable @ApiModelProperty(example = "322", value = "ID of the Application that is connected to the loyalty program. It is displayed in your Talon.One deployment URL.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } diff --git a/src/main/java/one/talon/model/AddLoyaltyPointsEffectProps.java b/src/main/java/one/talon/model/AddLoyaltyPointsEffectProps.java index 3014a578..e2b4f387 100644 --- a/src/main/java/one/talon/model/AddLoyaltyPointsEffectProps.java +++ b/src/main/java/one/talon/model/AddLoyaltyPointsEffectProps.java @@ -38,7 +38,7 @@ public class AddLoyaltyPointsEffectProps { public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; @SerializedName(SERIALIZED_NAME_PROGRAM_ID) - private Long programId; + private Integer programId; public static final String SERIALIZED_NAME_SUB_LEDGER_ID = "subLedgerId"; @SerializedName(SERIALIZED_NAME_SUB_LEDGER_ID) @@ -82,7 +82,7 @@ public class AddLoyaltyPointsEffectProps { public static final String SERIALIZED_NAME_BUNDLE_INDEX = "bundleIndex"; @SerializedName(SERIALIZED_NAME_BUNDLE_INDEX) - private Long bundleIndex; + private Integer bundleIndex; public static final String SERIALIZED_NAME_BUNDLE_NAME = "bundleName"; @SerializedName(SERIALIZED_NAME_BUNDLE_NAME) @@ -111,7 +111,7 @@ public void setName(String name) { } - public AddLoyaltyPointsEffectProps programId(Long programId) { + public AddLoyaltyPointsEffectProps programId(Integer programId) { this.programId = programId; return this; @@ -123,12 +123,12 @@ public AddLoyaltyPointsEffectProps programId(Long programId) { **/ @ApiModelProperty(required = true, value = "The ID of the loyalty program where these points were added.") - public Long getProgramId() { + public Integer getProgramId() { return programId; } - public void setProgramId(Long programId) { + public void setProgramId(Integer programId) { this.programId = programId; } @@ -359,7 +359,7 @@ public void setCardIdentifier(String cardIdentifier) { } - public AddLoyaltyPointsEffectProps bundleIndex(Long bundleIndex) { + public AddLoyaltyPointsEffectProps bundleIndex(Integer bundleIndex) { this.bundleIndex = bundleIndex; return this; @@ -372,12 +372,12 @@ public AddLoyaltyPointsEffectProps bundleIndex(Long bundleIndex) { @javax.annotation.Nullable @ApiModelProperty(value = "The position of the bundle in a list of item bundles created from the same bundle definition.") - public Long getBundleIndex() { + public Integer getBundleIndex() { return bundleIndex; } - public void setBundleIndex(Long bundleIndex) { + public void setBundleIndex(Integer bundleIndex) { this.bundleIndex = bundleIndex; } diff --git a/src/main/java/one/talon/model/AddPriceAdjustmentCatalogAction.java b/src/main/java/one/talon/model/AddPriceAdjustmentCatalogAction.java new file mode 100644 index 00000000..9d16b00a --- /dev/null +++ b/src/main/java/one/talon/model/AddPriceAdjustmentCatalogAction.java @@ -0,0 +1,135 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.NewPriceAdjustment; + +/** + * The specific properties of the \"ADD_PRICE_ADJUSTMENT\" catalog sync action. + */ +@ApiModel(description = "The specific properties of the \"ADD_PRICE_ADJUSTMENT\" catalog sync action. ") + +public class AddPriceAdjustmentCatalogAction { + public static final String SERIALIZED_NAME_SKU = "sku"; + @SerializedName(SERIALIZED_NAME_SKU) + private String sku; + + public static final String SERIALIZED_NAME_ADJUSTMENTS = "adjustments"; + @SerializedName(SERIALIZED_NAME_ADJUSTMENTS) + private List adjustments = new ArrayList(); + + + public AddPriceAdjustmentCatalogAction sku(String sku) { + + this.sku = sku; + return this; + } + + /** + * The SKU of the item for which the price is being adjusted. + * @return sku + **/ + @ApiModelProperty(example = "SKU1241028", required = true, value = "The SKU of the item for which the price is being adjusted.") + + public String getSku() { + return sku; + } + + + public void setSku(String sku) { + this.sku = sku; + } + + + public AddPriceAdjustmentCatalogAction adjustments(List adjustments) { + + this.adjustments = adjustments; + return this; + } + + public AddPriceAdjustmentCatalogAction addAdjustmentsItem(NewPriceAdjustment adjustmentsItem) { + this.adjustments.add(adjustmentsItem); + return this; + } + + /** + * A list of adjustments to apply to a given item. + * @return adjustments + **/ + @ApiModelProperty(required = true, value = "A list of adjustments to apply to a given item.") + + public List getAdjustments() { + return adjustments; + } + + + public void setAdjustments(List adjustments) { + this.adjustments = adjustments; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AddPriceAdjustmentCatalogAction addPriceAdjustmentCatalogAction = (AddPriceAdjustmentCatalogAction) o; + return Objects.equals(this.sku, addPriceAdjustmentCatalogAction.sku) && + Objects.equals(this.adjustments, addPriceAdjustmentCatalogAction.adjustments); + } + + @Override + public int hashCode() { + return Objects.hash(sku, adjustments); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddPriceAdjustmentCatalogAction {\n"); + sb.append(" sku: ").append(toIndentedString(sku)).append("\n"); + sb.append(" adjustments: ").append(toIndentedString(adjustments)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/AddToAudienceEffectProps.java b/src/main/java/one/talon/model/AddToAudienceEffectProps.java index 71a166b1..72f38fa8 100644 --- a/src/main/java/one/talon/model/AddToAudienceEffectProps.java +++ b/src/main/java/one/talon/model/AddToAudienceEffectProps.java @@ -32,7 +32,7 @@ public class AddToAudienceEffectProps { public static final String SERIALIZED_NAME_AUDIENCE_ID = "audienceId"; @SerializedName(SERIALIZED_NAME_AUDIENCE_ID) - private Long audienceId; + private Integer audienceId; public static final String SERIALIZED_NAME_AUDIENCE_NAME = "audienceName"; @SerializedName(SERIALIZED_NAME_AUDIENCE_NAME) @@ -44,10 +44,10 @@ public class AddToAudienceEffectProps { public static final String SERIALIZED_NAME_PROFILE_ID = "profileId"; @SerializedName(SERIALIZED_NAME_PROFILE_ID) - private Long profileId; + private Integer profileId; - public AddToAudienceEffectProps audienceId(Long audienceId) { + public AddToAudienceEffectProps audienceId(Integer audienceId) { this.audienceId = audienceId; return this; @@ -60,12 +60,12 @@ public AddToAudienceEffectProps audienceId(Long audienceId) { @javax.annotation.Nullable @ApiModelProperty(example = "10", value = "The internal ID of the audience.") - public Long getAudienceId() { + public Integer getAudienceId() { return audienceId; } - public void setAudienceId(Long audienceId) { + public void setAudienceId(Integer audienceId) { this.audienceId = audienceId; } @@ -116,7 +116,7 @@ public void setProfileIntegrationId(String profileIntegrationId) { } - public AddToAudienceEffectProps profileId(Long profileId) { + public AddToAudienceEffectProps profileId(Integer profileId) { this.profileId = profileId; return this; @@ -129,12 +129,12 @@ public AddToAudienceEffectProps profileId(Long profileId) { @javax.annotation.Nullable @ApiModelProperty(example = "150", value = "The internal ID of the customer profile.") - public Long getProfileId() { + public Integer getProfileId() { return profileId; } - public void setProfileId(Long profileId) { + public void setProfileId(Integer profileId) { this.profileId = profileId; } diff --git a/src/main/java/one/talon/model/AddedDeductedPointsBalancesNotificationPolicy.java b/src/main/java/one/talon/model/AddedDeductedPointsBalancesNotificationPolicy.java new file mode 100644 index 00000000..828be718 --- /dev/null +++ b/src/main/java/one/talon/model/AddedDeductedPointsBalancesNotificationPolicy.java @@ -0,0 +1,184 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * AddedDeductedPointsBalancesNotificationPolicy + */ + +public class AddedDeductedPointsBalancesNotificationPolicy { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + /** + * Gets or Sets scopes + */ + @JsonAdapter(ScopesEnum.Adapter.class) + public enum ScopesEnum { + ALL("all"), + + CAMPAIGN_MANAGER("campaign_manager"), + + MANAGEMENT_API("management_api"), + + RULE_ENGINE("rule_engine"); + + private String value; + + ScopesEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ScopesEnum fromValue(String value) { + for (ScopesEnum b : ScopesEnum.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 ScopesEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ScopesEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ScopesEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_SCOPES = "scopes"; + @SerializedName(SERIALIZED_NAME_SCOPES) + private List scopes = new ArrayList(); + + + public AddedDeductedPointsBalancesNotificationPolicy name(String name) { + + this.name = name; + return this; + } + + /** + * Notification name. + * @return name + **/ + @ApiModelProperty(example = "Christmas Sale", required = true, value = "Notification name.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public AddedDeductedPointsBalancesNotificationPolicy scopes(List scopes) { + + this.scopes = scopes; + return this; + } + + public AddedDeductedPointsBalancesNotificationPolicy addScopesItem(ScopesEnum scopesItem) { + this.scopes.add(scopesItem); + return this; + } + + /** + * Get scopes + * @return scopes + **/ + @ApiModelProperty(required = true, value = "") + + public List getScopes() { + return scopes; + } + + + public void setScopes(List scopes) { + this.scopes = scopes; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AddedDeductedPointsBalancesNotificationPolicy addedDeductedPointsBalancesNotificationPolicy = (AddedDeductedPointsBalancesNotificationPolicy) o; + return Objects.equals(this.name, addedDeductedPointsBalancesNotificationPolicy.name) && + Objects.equals(this.scopes, addedDeductedPointsBalancesNotificationPolicy.scopes); + } + + @Override + public int hashCode() { + return Objects.hash(name, scopes); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddedDeductedPointsBalancesNotificationPolicy {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" scopes: ").append(toIndentedString(scopes)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/AdditionalCampaignProperties.java b/src/main/java/one/talon/model/AdditionalCampaignProperties.java index f1f6f967..305e9364 100644 --- a/src/main/java/one/talon/model/AdditionalCampaignProperties.java +++ b/src/main/java/one/talon/model/AdditionalCampaignProperties.java @@ -40,11 +40,11 @@ public class AdditionalCampaignProperties { public static final String SERIALIZED_NAME_COUPON_REDEMPTION_COUNT = "couponRedemptionCount"; @SerializedName(SERIALIZED_NAME_COUPON_REDEMPTION_COUNT) - private Long couponRedemptionCount; + private Integer couponRedemptionCount; public static final String SERIALIZED_NAME_REFERRAL_REDEMPTION_COUNT = "referralRedemptionCount"; @SerializedName(SERIALIZED_NAME_REFERRAL_REDEMPTION_COUNT) - private Long referralRedemptionCount; + private Integer referralRedemptionCount; public static final String SERIALIZED_NAME_DISCOUNT_COUNT = "discountCount"; @SerializedName(SERIALIZED_NAME_DISCOUNT_COUNT) @@ -52,27 +52,27 @@ public class AdditionalCampaignProperties { public static final String SERIALIZED_NAME_DISCOUNT_EFFECT_COUNT = "discountEffectCount"; @SerializedName(SERIALIZED_NAME_DISCOUNT_EFFECT_COUNT) - private Long discountEffectCount; + private Integer discountEffectCount; public static final String SERIALIZED_NAME_COUPON_CREATION_COUNT = "couponCreationCount"; @SerializedName(SERIALIZED_NAME_COUPON_CREATION_COUNT) - private Long couponCreationCount; + private Integer couponCreationCount; public static final String SERIALIZED_NAME_CUSTOM_EFFECT_COUNT = "customEffectCount"; @SerializedName(SERIALIZED_NAME_CUSTOM_EFFECT_COUNT) - private Long customEffectCount; + private Integer customEffectCount; public static final String SERIALIZED_NAME_REFERRAL_CREATION_COUNT = "referralCreationCount"; @SerializedName(SERIALIZED_NAME_REFERRAL_CREATION_COUNT) - private Long referralCreationCount; + private Integer referralCreationCount; public static final String SERIALIZED_NAME_ADD_FREE_ITEM_EFFECT_COUNT = "addFreeItemEffectCount"; @SerializedName(SERIALIZED_NAME_ADD_FREE_ITEM_EFFECT_COUNT) - private Long addFreeItemEffectCount; + private Integer addFreeItemEffectCount; public static final String SERIALIZED_NAME_AWARDED_GIVEAWAYS_COUNT = "awardedGiveawaysCount"; @SerializedName(SERIALIZED_NAME_AWARDED_GIVEAWAYS_COUNT) - private Long awardedGiveawaysCount; + private Integer awardedGiveawaysCount; public static final String SERIALIZED_NAME_CREATED_LOYALTY_POINTS_COUNT = "createdLoyaltyPointsCount"; @SerializedName(SERIALIZED_NAME_CREATED_LOYALTY_POINTS_COUNT) @@ -80,7 +80,7 @@ public class AdditionalCampaignProperties { public static final String SERIALIZED_NAME_CREATED_LOYALTY_POINTS_EFFECT_COUNT = "createdLoyaltyPointsEffectCount"; @SerializedName(SERIALIZED_NAME_CREATED_LOYALTY_POINTS_EFFECT_COUNT) - private Long createdLoyaltyPointsEffectCount; + private Integer createdLoyaltyPointsEffectCount; public static final String SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_COUNT = "redeemedLoyaltyPointsCount"; @SerializedName(SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_COUNT) @@ -88,15 +88,15 @@ public class AdditionalCampaignProperties { public static final String SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_EFFECT_COUNT = "redeemedLoyaltyPointsEffectCount"; @SerializedName(SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_EFFECT_COUNT) - private Long redeemedLoyaltyPointsEffectCount; + private Integer redeemedLoyaltyPointsEffectCount; public static final String SERIALIZED_NAME_CALL_API_EFFECT_COUNT = "callApiEffectCount"; @SerializedName(SERIALIZED_NAME_CALL_API_EFFECT_COUNT) - private Long callApiEffectCount; + private Integer callApiEffectCount; public static final String SERIALIZED_NAME_RESERVECOUPON_EFFECT_COUNT = "reservecouponEffectCount"; @SerializedName(SERIALIZED_NAME_RESERVECOUPON_EFFECT_COUNT) - private Long reservecouponEffectCount; + private Integer reservecouponEffectCount; public static final String SERIALIZED_NAME_LAST_ACTIVITY = "lastActivity"; @SerializedName(SERIALIZED_NAME_LAST_ACTIVITY) @@ -116,7 +116,7 @@ public class AdditionalCampaignProperties { public static final String SERIALIZED_NAME_TEMPLATE_ID = "templateId"; @SerializedName(SERIALIZED_NAME_TEMPLATE_ID) - private Long templateId; + private Integer templateId; /** * The campaign state displayed in the Campaign Manager. @@ -183,7 +183,7 @@ public FrontendStateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_VALUE_MAPS_IDS = "valueMapsIds"; @SerializedName(SERIALIZED_NAME_VALUE_MAPS_IDS) - private List valueMapsIds = null; + private List valueMapsIds = null; public AdditionalCampaignProperties budgets(List budgets) { @@ -217,7 +217,7 @@ public void setBudgets(List budgets) { } - public AdditionalCampaignProperties couponRedemptionCount(Long couponRedemptionCount) { + public AdditionalCampaignProperties couponRedemptionCount(Integer couponRedemptionCount) { this.couponRedemptionCount = couponRedemptionCount; return this; @@ -230,17 +230,17 @@ public AdditionalCampaignProperties couponRedemptionCount(Long couponRedemptionC @javax.annotation.Nullable @ApiModelProperty(example = "163", value = "This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. ") - public Long getCouponRedemptionCount() { + public Integer getCouponRedemptionCount() { return couponRedemptionCount; } - public void setCouponRedemptionCount(Long couponRedemptionCount) { + public void setCouponRedemptionCount(Integer couponRedemptionCount) { this.couponRedemptionCount = couponRedemptionCount; } - public AdditionalCampaignProperties referralRedemptionCount(Long referralRedemptionCount) { + public AdditionalCampaignProperties referralRedemptionCount(Integer referralRedemptionCount) { this.referralRedemptionCount = referralRedemptionCount; return this; @@ -253,12 +253,12 @@ public AdditionalCampaignProperties referralRedemptionCount(Long referralRedempt @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. ") - public Long getReferralRedemptionCount() { + public Integer getReferralRedemptionCount() { return referralRedemptionCount; } - public void setReferralRedemptionCount(Long referralRedemptionCount) { + public void setReferralRedemptionCount(Integer referralRedemptionCount) { this.referralRedemptionCount = referralRedemptionCount; } @@ -286,7 +286,7 @@ public void setDiscountCount(BigDecimal discountCount) { } - public AdditionalCampaignProperties discountEffectCount(Long discountEffectCount) { + public AdditionalCampaignProperties discountEffectCount(Integer discountEffectCount) { this.discountEffectCount = discountEffectCount; return this; @@ -299,17 +299,17 @@ public AdditionalCampaignProperties discountEffectCount(Long discountEffectCount @javax.annotation.Nullable @ApiModelProperty(example = "343", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. ") - public Long getDiscountEffectCount() { + public Integer getDiscountEffectCount() { return discountEffectCount; } - public void setDiscountEffectCount(Long discountEffectCount) { + public void setDiscountEffectCount(Integer discountEffectCount) { this.discountEffectCount = discountEffectCount; } - public AdditionalCampaignProperties couponCreationCount(Long couponCreationCount) { + public AdditionalCampaignProperties couponCreationCount(Integer couponCreationCount) { this.couponCreationCount = couponCreationCount; return this; @@ -322,17 +322,17 @@ public AdditionalCampaignProperties couponCreationCount(Long couponCreationCount @javax.annotation.Nullable @ApiModelProperty(example = "16", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. ") - public Long getCouponCreationCount() { + public Integer getCouponCreationCount() { return couponCreationCount; } - public void setCouponCreationCount(Long couponCreationCount) { + public void setCouponCreationCount(Integer couponCreationCount) { this.couponCreationCount = couponCreationCount; } - public AdditionalCampaignProperties customEffectCount(Long customEffectCount) { + public AdditionalCampaignProperties customEffectCount(Integer customEffectCount) { this.customEffectCount = customEffectCount; return this; @@ -345,17 +345,17 @@ public AdditionalCampaignProperties customEffectCount(Long customEffectCount) { @javax.annotation.Nullable @ApiModelProperty(example = "0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. ") - public Long getCustomEffectCount() { + public Integer getCustomEffectCount() { return customEffectCount; } - public void setCustomEffectCount(Long customEffectCount) { + public void setCustomEffectCount(Integer customEffectCount) { this.customEffectCount = customEffectCount; } - public AdditionalCampaignProperties referralCreationCount(Long referralCreationCount) { + public AdditionalCampaignProperties referralCreationCount(Integer referralCreationCount) { this.referralCreationCount = referralCreationCount; return this; @@ -368,17 +368,17 @@ public AdditionalCampaignProperties referralCreationCount(Long referralCreationC @javax.annotation.Nullable @ApiModelProperty(example = "8", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. ") - public Long getReferralCreationCount() { + public Integer getReferralCreationCount() { return referralCreationCount; } - public void setReferralCreationCount(Long referralCreationCount) { + public void setReferralCreationCount(Integer referralCreationCount) { this.referralCreationCount = referralCreationCount; } - public AdditionalCampaignProperties addFreeItemEffectCount(Long addFreeItemEffectCount) { + public AdditionalCampaignProperties addFreeItemEffectCount(Integer addFreeItemEffectCount) { this.addFreeItemEffectCount = addFreeItemEffectCount; return this; @@ -391,17 +391,17 @@ public AdditionalCampaignProperties addFreeItemEffectCount(Long addFreeItemEffec @javax.annotation.Nullable @ApiModelProperty(example = "0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. ") - public Long getAddFreeItemEffectCount() { + public Integer getAddFreeItemEffectCount() { return addFreeItemEffectCount; } - public void setAddFreeItemEffectCount(Long addFreeItemEffectCount) { + public void setAddFreeItemEffectCount(Integer addFreeItemEffectCount) { this.addFreeItemEffectCount = addFreeItemEffectCount; } - public AdditionalCampaignProperties awardedGiveawaysCount(Long awardedGiveawaysCount) { + public AdditionalCampaignProperties awardedGiveawaysCount(Integer awardedGiveawaysCount) { this.awardedGiveawaysCount = awardedGiveawaysCount; return this; @@ -414,12 +414,12 @@ public AdditionalCampaignProperties awardedGiveawaysCount(Long awardedGiveawaysC @javax.annotation.Nullable @ApiModelProperty(example = "9", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. ") - public Long getAwardedGiveawaysCount() { + public Integer getAwardedGiveawaysCount() { return awardedGiveawaysCount; } - public void setAwardedGiveawaysCount(Long awardedGiveawaysCount) { + public void setAwardedGiveawaysCount(Integer awardedGiveawaysCount) { this.awardedGiveawaysCount = awardedGiveawaysCount; } @@ -447,7 +447,7 @@ public void setCreatedLoyaltyPointsCount(BigDecimal createdLoyaltyPointsCount) { } - public AdditionalCampaignProperties createdLoyaltyPointsEffectCount(Long createdLoyaltyPointsEffectCount) { + public AdditionalCampaignProperties createdLoyaltyPointsEffectCount(Integer createdLoyaltyPointsEffectCount) { this.createdLoyaltyPointsEffectCount = createdLoyaltyPointsEffectCount; return this; @@ -460,12 +460,12 @@ public AdditionalCampaignProperties createdLoyaltyPointsEffectCount(Long created @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. ") - public Long getCreatedLoyaltyPointsEffectCount() { + public Integer getCreatedLoyaltyPointsEffectCount() { return createdLoyaltyPointsEffectCount; } - public void setCreatedLoyaltyPointsEffectCount(Long createdLoyaltyPointsEffectCount) { + public void setCreatedLoyaltyPointsEffectCount(Integer createdLoyaltyPointsEffectCount) { this.createdLoyaltyPointsEffectCount = createdLoyaltyPointsEffectCount; } @@ -493,7 +493,7 @@ public void setRedeemedLoyaltyPointsCount(BigDecimal redeemedLoyaltyPointsCount) } - public AdditionalCampaignProperties redeemedLoyaltyPointsEffectCount(Long redeemedLoyaltyPointsEffectCount) { + public AdditionalCampaignProperties redeemedLoyaltyPointsEffectCount(Integer redeemedLoyaltyPointsEffectCount) { this.redeemedLoyaltyPointsEffectCount = redeemedLoyaltyPointsEffectCount; return this; @@ -506,17 +506,17 @@ public AdditionalCampaignProperties redeemedLoyaltyPointsEffectCount(Long redeem @javax.annotation.Nullable @ApiModelProperty(example = "9", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. ") - public Long getRedeemedLoyaltyPointsEffectCount() { + public Integer getRedeemedLoyaltyPointsEffectCount() { return redeemedLoyaltyPointsEffectCount; } - public void setRedeemedLoyaltyPointsEffectCount(Long redeemedLoyaltyPointsEffectCount) { + public void setRedeemedLoyaltyPointsEffectCount(Integer redeemedLoyaltyPointsEffectCount) { this.redeemedLoyaltyPointsEffectCount = redeemedLoyaltyPointsEffectCount; } - public AdditionalCampaignProperties callApiEffectCount(Long callApiEffectCount) { + public AdditionalCampaignProperties callApiEffectCount(Integer callApiEffectCount) { this.callApiEffectCount = callApiEffectCount; return this; @@ -529,17 +529,17 @@ public AdditionalCampaignProperties callApiEffectCount(Long callApiEffectCount) @javax.annotation.Nullable @ApiModelProperty(example = "0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. ") - public Long getCallApiEffectCount() { + public Integer getCallApiEffectCount() { return callApiEffectCount; } - public void setCallApiEffectCount(Long callApiEffectCount) { + public void setCallApiEffectCount(Integer callApiEffectCount) { this.callApiEffectCount = callApiEffectCount; } - public AdditionalCampaignProperties reservecouponEffectCount(Long reservecouponEffectCount) { + public AdditionalCampaignProperties reservecouponEffectCount(Integer reservecouponEffectCount) { this.reservecouponEffectCount = reservecouponEffectCount; return this; @@ -552,12 +552,12 @@ public AdditionalCampaignProperties reservecouponEffectCount(Long reservecouponE @javax.annotation.Nullable @ApiModelProperty(example = "9", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. ") - public Long getReservecouponEffectCount() { + public Integer getReservecouponEffectCount() { return reservecouponEffectCount; } - public void setReservecouponEffectCount(Long reservecouponEffectCount) { + public void setReservecouponEffectCount(Integer reservecouponEffectCount) { this.reservecouponEffectCount = reservecouponEffectCount; } @@ -654,7 +654,7 @@ public void setUpdatedBy(String updatedBy) { } - public AdditionalCampaignProperties templateId(Long templateId) { + public AdditionalCampaignProperties templateId(Integer templateId) { this.templateId = templateId; return this; @@ -667,12 +667,12 @@ public AdditionalCampaignProperties templateId(Long templateId) { @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the Campaign Template this Campaign was created from.") - public Long getTemplateId() { + public Integer getTemplateId() { return templateId; } - public void setTemplateId(Long templateId) { + public void setTemplateId(Integer templateId) { this.templateId = templateId; } @@ -721,15 +721,15 @@ public void setStoresImported(Boolean storesImported) { } - public AdditionalCampaignProperties valueMapsIds(List valueMapsIds) { + public AdditionalCampaignProperties valueMapsIds(List valueMapsIds) { this.valueMapsIds = valueMapsIds; return this; } - public AdditionalCampaignProperties addValueMapsIdsItem(Long valueMapsIdsItem) { + public AdditionalCampaignProperties addValueMapsIdsItem(Integer valueMapsIdsItem) { if (this.valueMapsIds == null) { - this.valueMapsIds = new ArrayList(); + this.valueMapsIds = new ArrayList(); } this.valueMapsIds.add(valueMapsIdsItem); return this; @@ -742,12 +742,12 @@ public AdditionalCampaignProperties addValueMapsIdsItem(Long valueMapsIdsItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[100, 215]", value = "A list of value map IDs for the campaign.") - public List getValueMapsIds() { + public List getValueMapsIds() { return valueMapsIds; } - public void setValueMapsIds(List valueMapsIds) { + public void setValueMapsIds(List valueMapsIds) { this.valueMapsIds = valueMapsIds; } diff --git a/src/main/java/one/talon/model/AnalyticsProduct.java b/src/main/java/one/talon/model/AnalyticsProduct.java index f2f12fa9..801aa953 100644 --- a/src/main/java/one/talon/model/AnalyticsProduct.java +++ b/src/main/java/one/talon/model/AnalyticsProduct.java @@ -32,7 +32,7 @@ public class AnalyticsProduct { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -40,14 +40,14 @@ public class AnalyticsProduct { public static final String SERIALIZED_NAME_CATALOG_ID = "catalogId"; @SerializedName(SERIALIZED_NAME_CATALOG_ID) - private Long catalogId; + private Integer catalogId; public static final String SERIALIZED_NAME_UNITS_SOLD = "unitsSold"; @SerializedName(SERIALIZED_NAME_UNITS_SOLD) private AnalyticsDataPointWithTrend unitsSold; - public AnalyticsProduct id(Long id) { + public AnalyticsProduct id(Integer id) { this.id = id; return this; @@ -59,12 +59,12 @@ public AnalyticsProduct id(Long id) { **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the product.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -91,7 +91,7 @@ public void setName(String name) { } - public AnalyticsProduct catalogId(Long catalogId) { + public AnalyticsProduct catalogId(Integer catalogId) { this.catalogId = catalogId; return this; @@ -103,12 +103,12 @@ public AnalyticsProduct catalogId(Long catalogId) { **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. ") - public Long getCatalogId() { + public Integer getCatalogId() { return catalogId; } - public void setCatalogId(Long catalogId) { + public void setCatalogId(Integer catalogId) { this.catalogId = catalogId; } diff --git a/src/main/java/one/talon/model/AnalyticsSKU.java b/src/main/java/one/talon/model/AnalyticsSKU.java index d60036bc..1cdb7830 100644 --- a/src/main/java/one/talon/model/AnalyticsSKU.java +++ b/src/main/java/one/talon/model/AnalyticsSKU.java @@ -33,7 +33,7 @@ public class AnalyticsSKU { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_SKU = "sku"; @SerializedName(SERIALIZED_NAME_SKU) @@ -48,7 +48,7 @@ public class AnalyticsSKU { private AnalyticsDataPointWithTrend unitsSold; - public AnalyticsSKU id(Long id) { + public AnalyticsSKU id(Integer id) { this.id = id; return this; @@ -60,12 +60,12 @@ public AnalyticsSKU id(Long id) { **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the SKU linked to the application.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/src/main/java/one/talon/model/Application.java b/src/main/java/one/talon/model/Application.java index e0d4c7dc..a0efd75b 100644 --- a/src/main/java/one/talon/model/Application.java +++ b/src/main/java/one/talon/model/Application.java @@ -37,7 +37,7 @@ public class Application { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -49,7 +49,7 @@ public class Application { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -256,11 +256,11 @@ public DefaultDiscountAdditionalCostPerItemScopeEnum read(final JsonReader jsonR public static final String SERIALIZED_NAME_DEFAULT_EVALUATION_GROUP_ID = "defaultEvaluationGroupId"; @SerializedName(SERIALIZED_NAME_DEFAULT_EVALUATION_GROUP_ID) - private Long defaultEvaluationGroupId; + private Integer defaultEvaluationGroupId; public static final String SERIALIZED_NAME_DEFAULT_CART_ITEM_FILTER_ID = "defaultCartItemFilterId"; @SerializedName(SERIALIZED_NAME_DEFAULT_CART_ITEM_FILTER_ID) - private Long defaultCartItemFilterId; + private Integer defaultCartItemFilterId; public static final String SERIALIZED_NAME_ENABLE_CAMPAIGN_STATE_MANAGEMENT = "enableCampaignStateManagement"; @SerializedName(SERIALIZED_NAME_ENABLE_CAMPAIGN_STATE_MANAGEMENT) @@ -271,24 +271,24 @@ public DefaultDiscountAdditionalCostPerItemScopeEnum read(final JsonReader jsonR private List loyaltyPrograms = new ArrayList(); - public Application id(Long id) { + public Application id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -337,7 +337,7 @@ public void setModified(OffsetDateTime modified) { } - public Application accountId(Long accountId) { + public Application accountId(Integer accountId) { this.accountId = accountId; return this; @@ -349,12 +349,12 @@ public Application accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } @@ -686,7 +686,7 @@ public void setDefaultDiscountAdditionalCostPerItemScope(DefaultDiscountAddition } - public Application defaultEvaluationGroupId(Long defaultEvaluationGroupId) { + public Application defaultEvaluationGroupId(Integer defaultEvaluationGroupId) { this.defaultEvaluationGroupId = defaultEvaluationGroupId; return this; @@ -699,17 +699,17 @@ public Application defaultEvaluationGroupId(Long defaultEvaluationGroupId) { @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the default campaign evaluation group to which new campaigns will be added unless a different group is selected when creating the campaign.") - public Long getDefaultEvaluationGroupId() { + public Integer getDefaultEvaluationGroupId() { return defaultEvaluationGroupId; } - public void setDefaultEvaluationGroupId(Long defaultEvaluationGroupId) { + public void setDefaultEvaluationGroupId(Integer defaultEvaluationGroupId) { this.defaultEvaluationGroupId = defaultEvaluationGroupId; } - public Application defaultCartItemFilterId(Long defaultCartItemFilterId) { + public Application defaultCartItemFilterId(Integer defaultCartItemFilterId) { this.defaultCartItemFilterId = defaultCartItemFilterId; return this; @@ -722,12 +722,12 @@ public Application defaultCartItemFilterId(Long defaultCartItemFilterId) { @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the default Cart-Item-Filter for this application.") - public Long getDefaultCartItemFilterId() { + public Integer getDefaultCartItemFilterId() { return defaultCartItemFilterId; } - public void setDefaultCartItemFilterId(Long defaultCartItemFilterId) { + public void setDefaultCartItemFilterId(Integer defaultCartItemFilterId) { this.defaultCartItemFilterId = defaultCartItemFilterId; } diff --git a/src/main/java/one/talon/model/ApplicationAPIKey.java b/src/main/java/one/talon/model/ApplicationAPIKey.java index 2284edfa..301f6be6 100644 --- a/src/main/java/one/talon/model/ApplicationAPIKey.java +++ b/src/main/java/one/talon/model/ApplicationAPIKey.java @@ -156,23 +156,23 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_TIME_OFFSET = "timeOffset"; @SerializedName(SERIALIZED_NAME_TIME_OFFSET) - private Long timeOffset; + private Integer timeOffset; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Long createdBy; + private Integer createdBy; public static final String SERIALIZED_NAME_ACCOUNT_I_D = "accountID"; @SerializedName(SERIALIZED_NAME_ACCOUNT_I_D) - private Long accountID; + private Integer accountID; public static final String SERIALIZED_NAME_APPLICATION_I_D = "applicationID"; @SerializedName(SERIALIZED_NAME_APPLICATION_I_D) - private Long applicationID; + private Integer applicationID; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -269,7 +269,7 @@ public void setType(TypeEnum type) { } - public ApplicationAPIKey timeOffset(Long timeOffset) { + public ApplicationAPIKey timeOffset(Integer timeOffset) { this.timeOffset = timeOffset; return this; @@ -282,17 +282,17 @@ public ApplicationAPIKey timeOffset(Long timeOffset) { @javax.annotation.Nullable @ApiModelProperty(example = "100000", value = "A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. ") - public Long getTimeOffset() { + public Integer getTimeOffset() { return timeOffset; } - public void setTimeOffset(Long timeOffset) { + public void setTimeOffset(Integer timeOffset) { this.timeOffset = timeOffset; } - public ApplicationAPIKey id(Long id) { + public ApplicationAPIKey id(Integer id) { this.id = id; return this; @@ -304,17 +304,17 @@ public ApplicationAPIKey id(Long id) { **/ @ApiModelProperty(example = "34", required = true, value = "ID of the API Key.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } - public ApplicationAPIKey createdBy(Long createdBy) { + public ApplicationAPIKey createdBy(Integer createdBy) { this.createdBy = createdBy; return this; @@ -326,17 +326,17 @@ public ApplicationAPIKey createdBy(Long createdBy) { **/ @ApiModelProperty(example = "280", required = true, value = "ID of user who created.") - public Long getCreatedBy() { + public Integer getCreatedBy() { return createdBy; } - public void setCreatedBy(Long createdBy) { + public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } - public ApplicationAPIKey accountID(Long accountID) { + public ApplicationAPIKey accountID(Integer accountID) { this.accountID = accountID; return this; @@ -348,17 +348,17 @@ public ApplicationAPIKey accountID(Long accountID) { **/ @ApiModelProperty(example = "13", required = true, value = "ID of account the key is used for.") - public Long getAccountID() { + public Integer getAccountID() { return accountID; } - public void setAccountID(Long accountID) { + public void setAccountID(Integer accountID) { this.accountID = accountID; } - public ApplicationAPIKey applicationID(Long applicationID) { + public ApplicationAPIKey applicationID(Integer applicationID) { this.applicationID = applicationID; return this; @@ -370,12 +370,12 @@ public ApplicationAPIKey applicationID(Long applicationID) { **/ @ApiModelProperty(example = "54", required = true, value = "ID of application the key is used for.") - public Long getApplicationID() { + public Integer getApplicationID() { return applicationID; } - public void setApplicationID(Long applicationID) { + public void setApplicationID(Integer applicationID) { this.applicationID = applicationID; } diff --git a/src/main/java/one/talon/model/ApplicationCIF.java b/src/main/java/one/talon/model/ApplicationCIF.java index e8569415..bf71008f 100644 --- a/src/main/java/one/talon/model/ApplicationCIF.java +++ b/src/main/java/one/talon/model/ApplicationCIF.java @@ -32,7 +32,7 @@ public class ApplicationCIF { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -48,15 +48,15 @@ public class ApplicationCIF { public static final String SERIALIZED_NAME_ACTIVE_EXPRESSION_ID = "activeExpressionId"; @SerializedName(SERIALIZED_NAME_ACTIVE_EXPRESSION_ID) - private Long activeExpressionId; + private Integer activeExpressionId; public static final String SERIALIZED_NAME_MODIFIED_BY = "modifiedBy"; @SerializedName(SERIALIZED_NAME_MODIFIED_BY) - private Long modifiedBy; + private Integer modifiedBy; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Long createdBy; + private Integer createdBy; public static final String SERIALIZED_NAME_MODIFIED = "modified"; @SerializedName(SERIALIZED_NAME_MODIFIED) @@ -64,27 +64,27 @@ public class ApplicationCIF { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; - public ApplicationCIF id(Long id) { + public ApplicationCIF id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -156,7 +156,7 @@ public void setDescription(String description) { } - public ApplicationCIF activeExpressionId(Long activeExpressionId) { + public ApplicationCIF activeExpressionId(Integer activeExpressionId) { this.activeExpressionId = activeExpressionId; return this; @@ -169,17 +169,17 @@ public ApplicationCIF activeExpressionId(Long activeExpressionId) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the expression that the Application cart item filter uses.") - public Long getActiveExpressionId() { + public Integer getActiveExpressionId() { return activeExpressionId; } - public void setActiveExpressionId(Long activeExpressionId) { + public void setActiveExpressionId(Integer activeExpressionId) { this.activeExpressionId = activeExpressionId; } - public ApplicationCIF modifiedBy(Long modifiedBy) { + public ApplicationCIF modifiedBy(Integer modifiedBy) { this.modifiedBy = modifiedBy; return this; @@ -192,17 +192,17 @@ public ApplicationCIF modifiedBy(Long modifiedBy) { @javax.annotation.Nullable @ApiModelProperty(example = "334", value = "The ID of the user who last updated the Application cart item filter.") - public Long getModifiedBy() { + public Integer getModifiedBy() { return modifiedBy; } - public void setModifiedBy(Long modifiedBy) { + public void setModifiedBy(Integer modifiedBy) { this.modifiedBy = modifiedBy; } - public ApplicationCIF createdBy(Long createdBy) { + public ApplicationCIF createdBy(Integer createdBy) { this.createdBy = createdBy; return this; @@ -215,12 +215,12 @@ public ApplicationCIF createdBy(Long createdBy) { @javax.annotation.Nullable @ApiModelProperty(example = "216", value = "The ID of the user who created the Application cart item filter.") - public Long getCreatedBy() { + public Integer getCreatedBy() { return createdBy; } - public void setCreatedBy(Long createdBy) { + public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } @@ -248,7 +248,7 @@ public void setModified(OffsetDateTime modified) { } - public ApplicationCIF applicationId(Long applicationId) { + public ApplicationCIF applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -260,12 +260,12 @@ public ApplicationCIF applicationId(Long applicationId) { **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } diff --git a/src/main/java/one/talon/model/ApplicationCIFExpression.java b/src/main/java/one/talon/model/ApplicationCIFExpression.java index 3a0cfff1..96a65f50 100644 --- a/src/main/java/one/talon/model/ApplicationCIFExpression.java +++ b/src/main/java/one/talon/model/ApplicationCIFExpression.java @@ -34,7 +34,7 @@ public class ApplicationCIFExpression { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -42,11 +42,11 @@ public class ApplicationCIFExpression { public static final String SERIALIZED_NAME_CART_ITEM_FILTER_ID = "cartItemFilterId"; @SerializedName(SERIALIZED_NAME_CART_ITEM_FILTER_ID) - private Long cartItemFilterId; + private Integer cartItemFilterId; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Long createdBy; + private Integer createdBy; public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -54,27 +54,27 @@ public class ApplicationCIFExpression { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; - public ApplicationCIFExpression id(Long id) { + public ApplicationCIFExpression id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -101,7 +101,7 @@ public void setCreated(OffsetDateTime created) { } - public ApplicationCIFExpression cartItemFilterId(Long cartItemFilterId) { + public ApplicationCIFExpression cartItemFilterId(Integer cartItemFilterId) { this.cartItemFilterId = cartItemFilterId; return this; @@ -114,17 +114,17 @@ public ApplicationCIFExpression cartItemFilterId(Long cartItemFilterId) { @javax.annotation.Nullable @ApiModelProperty(example = "216", value = "The ID of the Application cart item filter.") - public Long getCartItemFilterId() { + public Integer getCartItemFilterId() { return cartItemFilterId; } - public void setCartItemFilterId(Long cartItemFilterId) { + public void setCartItemFilterId(Integer cartItemFilterId) { this.cartItemFilterId = cartItemFilterId; } - public ApplicationCIFExpression createdBy(Long createdBy) { + public ApplicationCIFExpression createdBy(Integer createdBy) { this.createdBy = createdBy; return this; @@ -137,12 +137,12 @@ public ApplicationCIFExpression createdBy(Long createdBy) { @javax.annotation.Nullable @ApiModelProperty(example = "216", value = "The ID of the user who created the Application cart item filter.") - public Long getCreatedBy() { + public Integer getCreatedBy() { return createdBy; } - public void setCreatedBy(Long createdBy) { + public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } @@ -178,7 +178,7 @@ public void setExpression(List expression) { } - public ApplicationCIFExpression applicationId(Long applicationId) { + public ApplicationCIFExpression applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -190,12 +190,12 @@ public ApplicationCIFExpression applicationId(Long applicationId) { **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } diff --git a/src/main/java/one/talon/model/ApplicationCIFReferences.java b/src/main/java/one/talon/model/ApplicationCIFReferences.java index 49f90bad..a66b0a07 100644 --- a/src/main/java/one/talon/model/ApplicationCIFReferences.java +++ b/src/main/java/one/talon/model/ApplicationCIFReferences.java @@ -34,14 +34,14 @@ public class ApplicationCIFReferences { public static final String SERIALIZED_NAME_APPLICATION_CART_ITEM_FILTER_ID = "applicationCartItemFilterId"; @SerializedName(SERIALIZED_NAME_APPLICATION_CART_ITEM_FILTER_ID) - private Long applicationCartItemFilterId; + private Integer applicationCartItemFilterId; public static final String SERIALIZED_NAME_CAMPAIGNS = "campaigns"; @SerializedName(SERIALIZED_NAME_CAMPAIGNS) private List campaigns = null; - public ApplicationCIFReferences applicationCartItemFilterId(Long applicationCartItemFilterId) { + public ApplicationCIFReferences applicationCartItemFilterId(Integer applicationCartItemFilterId) { this.applicationCartItemFilterId = applicationCartItemFilterId; return this; @@ -54,12 +54,12 @@ public ApplicationCIFReferences applicationCartItemFilterId(Long applicationCart @javax.annotation.Nullable @ApiModelProperty(example = "322", value = "The ID of the Application Cart Item Filter that is referenced by a campaign.") - public Long getApplicationCartItemFilterId() { + public Integer getApplicationCartItemFilterId() { return applicationCartItemFilterId; } - public void setApplicationCartItemFilterId(Long applicationCartItemFilterId) { + public void setApplicationCartItemFilterId(Integer applicationCartItemFilterId) { this.applicationCartItemFilterId = applicationCartItemFilterId; } diff --git a/src/main/java/one/talon/model/ApplicationCampaignAnalytics.java b/src/main/java/one/talon/model/ApplicationCampaignAnalytics.java index 4cbc846a..ed5d019a 100644 --- a/src/main/java/one/talon/model/ApplicationCampaignAnalytics.java +++ b/src/main/java/one/talon/model/ApplicationCampaignAnalytics.java @@ -45,7 +45,7 @@ public class ApplicationCampaignAnalytics { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_CAMPAIGN_NAME = "campaignName"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_NAME) @@ -183,7 +183,7 @@ public void setEndTime(OffsetDateTime endTime) { } - public ApplicationCampaignAnalytics campaignId(Long campaignId) { + public ApplicationCampaignAnalytics campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -195,12 +195,12 @@ public ApplicationCampaignAnalytics campaignId(Long campaignId) { **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the campaign.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } diff --git a/src/main/java/one/talon/model/ApplicationCampaignStats.java b/src/main/java/one/talon/model/ApplicationCampaignStats.java index bb8ff357..99f3fcde 100644 --- a/src/main/java/one/talon/model/ApplicationCampaignStats.java +++ b/src/main/java/one/talon/model/ApplicationCampaignStats.java @@ -32,30 +32,30 @@ public class ApplicationCampaignStats { public static final String SERIALIZED_NAME_DISABLED = "disabled"; @SerializedName(SERIALIZED_NAME_DISABLED) - private Long disabled; + private Integer disabled; public static final String SERIALIZED_NAME_STAGED = "staged"; @SerializedName(SERIALIZED_NAME_STAGED) - private Long staged; + private Integer staged; public static final String SERIALIZED_NAME_SCHEDULED = "scheduled"; @SerializedName(SERIALIZED_NAME_SCHEDULED) - private Long scheduled; + private Integer scheduled; public static final String SERIALIZED_NAME_RUNNING = "running"; @SerializedName(SERIALIZED_NAME_RUNNING) - private Long running; + private Integer running; public static final String SERIALIZED_NAME_EXPIRED = "expired"; @SerializedName(SERIALIZED_NAME_EXPIRED) - private Long expired; + private Integer expired; public static final String SERIALIZED_NAME_ARCHIVED = "archived"; @SerializedName(SERIALIZED_NAME_ARCHIVED) - private Long archived; + private Integer archived; - public ApplicationCampaignStats disabled(Long disabled) { + public ApplicationCampaignStats disabled(Integer disabled) { this.disabled = disabled; return this; @@ -67,17 +67,17 @@ public ApplicationCampaignStats disabled(Long disabled) { **/ @ApiModelProperty(required = true, value = "Number of disabled campaigns.") - public Long getDisabled() { + public Integer getDisabled() { return disabled; } - public void setDisabled(Long disabled) { + public void setDisabled(Integer disabled) { this.disabled = disabled; } - public ApplicationCampaignStats staged(Long staged) { + public ApplicationCampaignStats staged(Integer staged) { this.staged = staged; return this; @@ -89,17 +89,17 @@ public ApplicationCampaignStats staged(Long staged) { **/ @ApiModelProperty(required = true, value = "Number of staged campaigns.") - public Long getStaged() { + public Integer getStaged() { return staged; } - public void setStaged(Long staged) { + public void setStaged(Integer staged) { this.staged = staged; } - public ApplicationCampaignStats scheduled(Long scheduled) { + public ApplicationCampaignStats scheduled(Integer scheduled) { this.scheduled = scheduled; return this; @@ -111,17 +111,17 @@ public ApplicationCampaignStats scheduled(Long scheduled) { **/ @ApiModelProperty(required = true, value = "Number of scheduled campaigns.") - public Long getScheduled() { + public Integer getScheduled() { return scheduled; } - public void setScheduled(Long scheduled) { + public void setScheduled(Integer scheduled) { this.scheduled = scheduled; } - public ApplicationCampaignStats running(Long running) { + public ApplicationCampaignStats running(Integer running) { this.running = running; return this; @@ -133,17 +133,17 @@ public ApplicationCampaignStats running(Long running) { **/ @ApiModelProperty(required = true, value = "Number of running campaigns.") - public Long getRunning() { + public Integer getRunning() { return running; } - public void setRunning(Long running) { + public void setRunning(Integer running) { this.running = running; } - public ApplicationCampaignStats expired(Long expired) { + public ApplicationCampaignStats expired(Integer expired) { this.expired = expired; return this; @@ -155,17 +155,17 @@ public ApplicationCampaignStats expired(Long expired) { **/ @ApiModelProperty(required = true, value = "Number of expired campaigns.") - public Long getExpired() { + public Integer getExpired() { return expired; } - public void setExpired(Long expired) { + public void setExpired(Integer expired) { this.expired = expired; } - public ApplicationCampaignStats archived(Long archived) { + public ApplicationCampaignStats archived(Integer archived) { this.archived = archived; return this; @@ -177,12 +177,12 @@ public ApplicationCampaignStats archived(Long archived) { **/ @ApiModelProperty(required = true, value = "Number of archived campaigns.") - public Long getArchived() { + public Integer getArchived() { return archived; } - public void setArchived(Long archived) { + public void setArchived(Integer archived) { this.archived = archived; } diff --git a/src/main/java/one/talon/model/ApplicationCustomer.java b/src/main/java/one/talon/model/ApplicationCustomer.java index 24404786..f91f95ef 100644 --- a/src/main/java/one/talon/model/ApplicationCustomer.java +++ b/src/main/java/one/talon/model/ApplicationCustomer.java @@ -37,7 +37,7 @@ public class ApplicationCustomer { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -53,11 +53,11 @@ public class ApplicationCustomer { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_CLOSED_SESSIONS = "closedSessions"; @SerializedName(SERIALIZED_NAME_CLOSED_SESSIONS) - private Long closedSessions; + private Integer closedSessions; public static final String SERIALIZED_NAME_TOTAL_SALES = "totalSales"; @SerializedName(SERIALIZED_NAME_TOTAL_SALES) @@ -84,24 +84,24 @@ public class ApplicationCustomer { private String advocateIntegrationId; - public ApplicationCustomer id(Long id) { + public ApplicationCustomer id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of the customer profile. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of the customer profile.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -172,7 +172,7 @@ public void setAttributes(Object attributes) { } - public ApplicationCustomer accountId(Long accountId) { + public ApplicationCustomer accountId(Integer accountId) { this.accountId = accountId; return this; @@ -184,34 +184,34 @@ public ApplicationCustomer accountId(Long accountId) { **/ @ApiModelProperty(example = "31", required = true, value = "The ID of the Talon.One account that owns this profile.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } - public ApplicationCustomer closedSessions(Long closedSessions) { + public ApplicationCustomer closedSessions(Integer closedSessions) { this.closedSessions = closedSessions; return this; } /** - * The total amount of closed sessions by a customer. A closed session is a successful purchase. + * The total number of closed sessions. Does not include closed sessions that have been cancelled or reopened. See the [docs](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states). * @return closedSessions **/ - @ApiModelProperty(example = "3", required = true, value = "The total amount of closed sessions by a customer. A closed session is a successful purchase.") + @ApiModelProperty(example = "3", required = true, value = "The total number of closed sessions. Does not include closed sessions that have been cancelled or reopened. See the [docs](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states).") - public Long getClosedSessions() { + public Integer getClosedSessions() { return closedSessions; } - public void setClosedSessions(Long closedSessions) { + public void setClosedSessions(Integer closedSessions) { this.closedSessions = closedSessions; } diff --git a/src/main/java/one/talon/model/ApplicationCustomerEntity.java b/src/main/java/one/talon/model/ApplicationCustomerEntity.java index 6d899d2d..1796b8f2 100644 --- a/src/main/java/one/talon/model/ApplicationCustomerEntity.java +++ b/src/main/java/one/talon/model/ApplicationCustomerEntity.java @@ -31,10 +31,10 @@ public class ApplicationCustomerEntity { public static final String SERIALIZED_NAME_PROFILE_ID = "profileId"; @SerializedName(SERIALIZED_NAME_PROFILE_ID) - private Long profileId; + private Integer profileId; - public ApplicationCustomerEntity profileId(Long profileId) { + public ApplicationCustomerEntity profileId(Integer profileId) { this.profileId = profileId; return this; @@ -47,12 +47,12 @@ public ApplicationCustomerEntity profileId(Long profileId) { @javax.annotation.Nullable @ApiModelProperty(example = "138", value = "The globally unique Talon.One ID of the customer that created this entity.") - public Long getProfileId() { + public Integer getProfileId() { return profileId; } - public void setProfileId(Long profileId) { + public void setProfileId(Integer profileId) { this.profileId = profileId; } diff --git a/src/main/java/one/talon/model/ApplicationEntity.java b/src/main/java/one/talon/model/ApplicationEntity.java index 0d9cbb81..d9b4b2e2 100644 --- a/src/main/java/one/talon/model/ApplicationEntity.java +++ b/src/main/java/one/talon/model/ApplicationEntity.java @@ -31,10 +31,10 @@ public class ApplicationEntity { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; - public ApplicationEntity applicationId(Long applicationId) { + public ApplicationEntity applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -46,12 +46,12 @@ public ApplicationEntity applicationId(Long applicationId) { **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } diff --git a/src/main/java/one/talon/model/ApplicationEvent.java b/src/main/java/one/talon/model/ApplicationEvent.java index bb52d111..93055f72 100644 --- a/src/main/java/one/talon/model/ApplicationEvent.java +++ b/src/main/java/one/talon/model/ApplicationEvent.java @@ -36,7 +36,7 @@ public class ApplicationEvent { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -44,15 +44,15 @@ public class ApplicationEvent { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_PROFILE_ID = "profileId"; @SerializedName(SERIALIZED_NAME_PROFILE_ID) - private Long profileId; + private Integer profileId; public static final String SERIALIZED_NAME_STORE_ID = "storeId"; @SerializedName(SERIALIZED_NAME_STORE_ID) - private Long storeId; + private Integer storeId; public static final String SERIALIZED_NAME_STORE_INTEGRATION_ID = "storeIntegrationId"; @SerializedName(SERIALIZED_NAME_STORE_INTEGRATION_ID) @@ -60,7 +60,7 @@ public class ApplicationEvent { public static final String SERIALIZED_NAME_SESSION_ID = "sessionId"; @SerializedName(SERIALIZED_NAME_SESSION_ID) - private Long sessionId; + private Integer sessionId; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -79,24 +79,24 @@ public class ApplicationEvent { private List ruleFailureReasons = null; - public ApplicationEvent id(Long id) { + public ApplicationEvent id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -123,7 +123,7 @@ public void setCreated(OffsetDateTime created) { } - public ApplicationEvent applicationId(Long applicationId) { + public ApplicationEvent applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -135,17 +135,17 @@ public ApplicationEvent applicationId(Long applicationId) { **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } - public ApplicationEvent profileId(Long profileId) { + public ApplicationEvent profileId(Integer profileId) { this.profileId = profileId; return this; @@ -158,17 +158,17 @@ public ApplicationEvent profileId(Long profileId) { @javax.annotation.Nullable @ApiModelProperty(example = "138", value = "The globally unique Talon.One ID of the customer that created this entity.") - public Long getProfileId() { + public Integer getProfileId() { return profileId; } - public void setProfileId(Long profileId) { + public void setProfileId(Integer profileId) { this.profileId = profileId; } - public ApplicationEvent storeId(Long storeId) { + public ApplicationEvent storeId(Integer storeId) { this.storeId = storeId; return this; @@ -181,12 +181,12 @@ public ApplicationEvent storeId(Long storeId) { @javax.annotation.Nullable @ApiModelProperty(value = "The ID of the store.") - public Long getStoreId() { + public Integer getStoreId() { return storeId; } - public void setStoreId(Long storeId) { + public void setStoreId(Integer storeId) { this.storeId = storeId; } @@ -214,7 +214,7 @@ public void setStoreIntegrationId(String storeIntegrationId) { } - public ApplicationEvent sessionId(Long sessionId) { + public ApplicationEvent sessionId(Integer sessionId) { this.sessionId = sessionId; return this; @@ -227,12 +227,12 @@ public ApplicationEvent sessionId(Long sessionId) { @javax.annotation.Nullable @ApiModelProperty(value = "The globally unique Talon.One ID of the session that contains this event.") - public Long getSessionId() { + public Integer getSessionId() { return sessionId; } - public void setSessionId(Long sessionId) { + public void setSessionId(Integer sessionId) { this.sessionId = sessionId; } diff --git a/src/main/java/one/talon/model/ApplicationReferee.java b/src/main/java/one/talon/model/ApplicationReferee.java index 6f682fee..0f0d472e 100644 --- a/src/main/java/one/talon/model/ApplicationReferee.java +++ b/src/main/java/one/talon/model/ApplicationReferee.java @@ -32,7 +32,7 @@ public class ApplicationReferee { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_SESSION_ID = "sessionId"; @SerializedName(SERIALIZED_NAME_SESSION_ID) @@ -55,7 +55,7 @@ public class ApplicationReferee { private OffsetDateTime created; - public ApplicationReferee applicationId(Long applicationId) { + public ApplicationReferee applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -67,12 +67,12 @@ public ApplicationReferee applicationId(Long applicationId) { **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } diff --git a/src/main/java/one/talon/model/ApplicationSession.java b/src/main/java/one/talon/model/ApplicationSession.java index 85116a60..166ba7d8 100644 --- a/src/main/java/one/talon/model/ApplicationSession.java +++ b/src/main/java/one/talon/model/ApplicationSession.java @@ -38,7 +38,7 @@ public class ApplicationSession { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -54,11 +54,11 @@ public class ApplicationSession { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_PROFILE_ID = "profileId"; @SerializedName(SERIALIZED_NAME_PROFILE_ID) - private Long profileId; + private Integer profileId; public static final String SERIALIZED_NAME_PROFILEINTEGRATIONID = "profileintegrationid"; @SerializedName(SERIALIZED_NAME_PROFILEINTEGRATIONID) @@ -148,24 +148,24 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { private Object attributes; - public ApplicationSession id(Long id) { + public ApplicationSession id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -237,7 +237,7 @@ public void setStoreIntegrationId(String storeIntegrationId) { } - public ApplicationSession applicationId(Long applicationId) { + public ApplicationSession applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -249,17 +249,17 @@ public ApplicationSession applicationId(Long applicationId) { **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } - public ApplicationSession profileId(Long profileId) { + public ApplicationSession profileId(Integer profileId) { this.profileId = profileId; return this; @@ -272,12 +272,12 @@ public ApplicationSession profileId(Long profileId) { @javax.annotation.Nullable @ApiModelProperty(example = "138", value = "The globally unique Talon.One ID of the customer that created this entity.") - public Long getProfileId() { + public Integer getProfileId() { return profileId; } - public void setProfileId(Long profileId) { + public void setProfileId(Integer profileId) { this.profileId = profileId; } diff --git a/src/main/java/one/talon/model/ApplicationSessionEntity.java b/src/main/java/one/talon/model/ApplicationSessionEntity.java index 8c31f859..68f0dd81 100644 --- a/src/main/java/one/talon/model/ApplicationSessionEntity.java +++ b/src/main/java/one/talon/model/ApplicationSessionEntity.java @@ -31,10 +31,10 @@ public class ApplicationSessionEntity { public static final String SERIALIZED_NAME_SESSION_ID = "sessionId"; @SerializedName(SERIALIZED_NAME_SESSION_ID) - private Long sessionId; + private Integer sessionId; - public ApplicationSessionEntity sessionId(Long sessionId) { + public ApplicationSessionEntity sessionId(Integer sessionId) { this.sessionId = sessionId; return this; @@ -46,12 +46,12 @@ public ApplicationSessionEntity sessionId(Long sessionId) { **/ @ApiModelProperty(example = "2", required = true, value = "The globally unique Talon.One ID of the session where this entity was created.") - public Long getSessionId() { + public Integer getSessionId() { return sessionId; } - public void setSessionId(Long sessionId) { + public void setSessionId(Integer sessionId) { this.sessionId = sessionId; } diff --git a/src/main/java/one/talon/model/ApplicationStoreEntity.java b/src/main/java/one/talon/model/ApplicationStoreEntity.java index 33cb8982..eeb2e37c 100644 --- a/src/main/java/one/talon/model/ApplicationStoreEntity.java +++ b/src/main/java/one/talon/model/ApplicationStoreEntity.java @@ -31,10 +31,10 @@ public class ApplicationStoreEntity { public static final String SERIALIZED_NAME_STORE_ID = "storeId"; @SerializedName(SERIALIZED_NAME_STORE_ID) - private Long storeId; + private Integer storeId; - public ApplicationStoreEntity storeId(Long storeId) { + public ApplicationStoreEntity storeId(Integer storeId) { this.storeId = storeId; return this; @@ -47,12 +47,12 @@ public ApplicationStoreEntity storeId(Long storeId) { @javax.annotation.Nullable @ApiModelProperty(value = "The ID of the store.") - public Long getStoreId() { + public Integer getStoreId() { return storeId; } - public void setStoreId(Long storeId) { + public void setStoreId(Integer storeId) { this.storeId = storeId; } diff --git a/src/main/java/one/talon/model/AsyncCouponDeletionJobResponse.java b/src/main/java/one/talon/model/AsyncCouponDeletionJobResponse.java index 543c30a1..33712558 100644 --- a/src/main/java/one/talon/model/AsyncCouponDeletionJobResponse.java +++ b/src/main/java/one/talon/model/AsyncCouponDeletionJobResponse.java @@ -31,10 +31,10 @@ public class AsyncCouponDeletionJobResponse { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; - public AsyncCouponDeletionJobResponse id(Long id) { + public AsyncCouponDeletionJobResponse id(Integer id) { this.id = id; return this; @@ -46,12 +46,12 @@ public AsyncCouponDeletionJobResponse id(Long id) { **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/src/main/java/one/talon/model/Attribute.java b/src/main/java/one/talon/model/Attribute.java index 01e71ef1..86f3b907 100644 --- a/src/main/java/one/talon/model/Attribute.java +++ b/src/main/java/one/talon/model/Attribute.java @@ -34,7 +34,7 @@ public class Attribute { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -42,7 +42,7 @@ public class Attribute { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; /** * The name of the entity that can have this attribute. When creating or updating the entities of a given type, you can include an `attributes` object with keys corresponding to the `name` of the custom attributes for that type. @@ -210,11 +210,11 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public static final String SERIALIZED_NAME_SUBSCRIBED_CATALOGS_IDS = "subscribedCatalogsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_CATALOGS_IDS) - private List subscribedCatalogsIds = null; + private List subscribedCatalogsIds = null; /** * Gets or Sets allowedSubscriptions @@ -269,27 +269,27 @@ public AllowedSubscriptionsEnum read(final JsonReader jsonReader) throws IOExcep public static final String SERIALIZED_NAME_EVENT_TYPE_ID = "eventTypeId"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE_ID) - private Long eventTypeId; + private Integer eventTypeId; - public Attribute id(Long id) { + public Attribute id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -316,7 +316,7 @@ public void setCreated(OffsetDateTime created) { } - public Attribute accountId(Long accountId) { + public Attribute accountId(Integer accountId) { this.accountId = accountId; return this; @@ -328,12 +328,12 @@ public Attribute accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } @@ -566,15 +566,15 @@ public void setEditable(Boolean editable) { } - public Attribute subscribedApplicationsIds(List subscribedApplicationsIds) { + public Attribute subscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public Attribute addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { + public Attribute addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; @@ -587,25 +587,25 @@ public Attribute addSubscribedApplicationsIdsItem(Long subscribedApplicationsIds @javax.annotation.Nullable @ApiModelProperty(example = "[1, 4, 9]", value = "A list of the IDs of the applications where this attribute is available.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } - public Attribute subscribedCatalogsIds(List subscribedCatalogsIds) { + public Attribute subscribedCatalogsIds(List subscribedCatalogsIds) { this.subscribedCatalogsIds = subscribedCatalogsIds; return this; } - public Attribute addSubscribedCatalogsIdsItem(Long subscribedCatalogsIdsItem) { + public Attribute addSubscribedCatalogsIdsItem(Integer subscribedCatalogsIdsItem) { if (this.subscribedCatalogsIds == null) { - this.subscribedCatalogsIds = new ArrayList(); + this.subscribedCatalogsIds = new ArrayList(); } this.subscribedCatalogsIds.add(subscribedCatalogsIdsItem); return this; @@ -618,12 +618,12 @@ public Attribute addSubscribedCatalogsIdsItem(Long subscribedCatalogsIdsItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[2, 5]", value = "A list of the IDs of the catalogs where this attribute is available.") - public List getSubscribedCatalogsIds() { + public List getSubscribedCatalogsIds() { return subscribedCatalogsIds; } - public void setSubscribedCatalogsIds(List subscribedCatalogsIds) { + public void setSubscribedCatalogsIds(List subscribedCatalogsIds) { this.subscribedCatalogsIds = subscribedCatalogsIds; } @@ -659,7 +659,7 @@ public void setAllowedSubscriptions(List allowedSubscr } - public Attribute eventTypeId(Long eventTypeId) { + public Attribute eventTypeId(Integer eventTypeId) { this.eventTypeId = eventTypeId; return this; @@ -672,12 +672,12 @@ public Attribute eventTypeId(Long eventTypeId) { @javax.annotation.Nullable @ApiModelProperty(example = "22", value = "") - public Long getEventTypeId() { + public Integer getEventTypeId() { return eventTypeId; } - public void setEventTypeId(Long eventTypeId) { + public void setEventTypeId(Integer eventTypeId) { this.eventTypeId = eventTypeId; } diff --git a/src/main/java/one/talon/model/Audience.java b/src/main/java/one/talon/model/Audience.java index 32214ce1..be7db610 100644 --- a/src/main/java/one/talon/model/Audience.java +++ b/src/main/java/one/talon/model/Audience.java @@ -32,11 +32,11 @@ public class Audience { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -71,7 +71,7 @@ public class Audience { private OffsetDateTime lastUpdate; - public Audience accountId(Long accountId) { + public Audience accountId(Integer accountId) { this.accountId = accountId; return this; @@ -83,34 +83,34 @@ public Audience accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } - public Audience id(Long id) { + public Audience id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/src/main/java/one/talon/model/AudienceAnalytics.java b/src/main/java/one/talon/model/AudienceAnalytics.java index 34e331ba..14e7af6c 100644 --- a/src/main/java/one/talon/model/AudienceAnalytics.java +++ b/src/main/java/one/talon/model/AudienceAnalytics.java @@ -32,14 +32,14 @@ public class AudienceAnalytics { public static final String SERIALIZED_NAME_AUDIENCE_ID = "audienceId"; @SerializedName(SERIALIZED_NAME_AUDIENCE_ID) - private Long audienceId; + private Integer audienceId; public static final String SERIALIZED_NAME_MEMBERS_COUNT = "membersCount"; @SerializedName(SERIALIZED_NAME_MEMBERS_COUNT) - private Long membersCount; + private Integer membersCount; - public AudienceAnalytics audienceId(Long audienceId) { + public AudienceAnalytics audienceId(Integer audienceId) { this.audienceId = audienceId; return this; @@ -52,17 +52,17 @@ public AudienceAnalytics audienceId(Long audienceId) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the audience.") - public Long getAudienceId() { + public Integer getAudienceId() { return audienceId; } - public void setAudienceId(Long audienceId) { + public void setAudienceId(Integer audienceId) { this.audienceId = audienceId; } - public AudienceAnalytics membersCount(Long membersCount) { + public AudienceAnalytics membersCount(Integer membersCount) { this.membersCount = membersCount; return this; @@ -75,12 +75,12 @@ public AudienceAnalytics membersCount(Long membersCount) { @javax.annotation.Nullable @ApiModelProperty(example = "1234", value = "The member count of the audience.") - public Long getMembersCount() { + public Integer getMembersCount() { return membersCount; } - public void setMembersCount(Long membersCount) { + public void setMembersCount(Integer membersCount) { this.membersCount = membersCount; } diff --git a/src/main/java/one/talon/model/AudienceCustomer.java b/src/main/java/one/talon/model/AudienceCustomer.java index faba8c5c..d1975a3f 100644 --- a/src/main/java/one/talon/model/AudienceCustomer.java +++ b/src/main/java/one/talon/model/AudienceCustomer.java @@ -37,7 +37,7 @@ public class AudienceCustomer { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -53,11 +53,11 @@ public class AudienceCustomer { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_CLOSED_SESSIONS = "closedSessions"; @SerializedName(SERIALIZED_NAME_CLOSED_SESSIONS) - private Long closedSessions; + private Integer closedSessions; public static final String SERIALIZED_NAME_TOTAL_SALES = "totalSales"; @SerializedName(SERIALIZED_NAME_TOTAL_SALES) @@ -81,31 +81,31 @@ public class AudienceCustomer { public static final String SERIALIZED_NAME_CONNECTED_APPLICATIONS_IDS = "connectedApplicationsIds"; @SerializedName(SERIALIZED_NAME_CONNECTED_APPLICATIONS_IDS) - private List connectedApplicationsIds = null; + private List connectedApplicationsIds = null; public static final String SERIALIZED_NAME_CONNECTED_AUDIENCES = "connectedAudiences"; @SerializedName(SERIALIZED_NAME_CONNECTED_AUDIENCES) - private List connectedAudiences = null; + private List connectedAudiences = null; - public AudienceCustomer id(Long id) { + public AudienceCustomer id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of the customer profile. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of the customer profile.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -176,7 +176,7 @@ public void setAttributes(Object attributes) { } - public AudienceCustomer accountId(Long accountId) { + public AudienceCustomer accountId(Integer accountId) { this.accountId = accountId; return this; @@ -188,34 +188,34 @@ public AudienceCustomer accountId(Long accountId) { **/ @ApiModelProperty(example = "31", required = true, value = "The ID of the Talon.One account that owns this profile.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } - public AudienceCustomer closedSessions(Long closedSessions) { + public AudienceCustomer closedSessions(Integer closedSessions) { this.closedSessions = closedSessions; return this; } /** - * The total amount of closed sessions by a customer. A closed session is a successful purchase. + * The total number of closed sessions. Does not include closed sessions that have been cancelled or reopened. See the [docs](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states). * @return closedSessions **/ - @ApiModelProperty(example = "3", required = true, value = "The total amount of closed sessions by a customer. A closed session is a successful purchase.") + @ApiModelProperty(example = "3", required = true, value = "The total number of closed sessions. Does not include closed sessions that have been cancelled or reopened. See the [docs](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states).") - public Long getClosedSessions() { + public Integer getClosedSessions() { return closedSessions; } - public void setClosedSessions(Long closedSessions) { + public void setClosedSessions(Integer closedSessions) { this.closedSessions = closedSessions; } @@ -349,15 +349,15 @@ public void setSandbox(Boolean sandbox) { } - public AudienceCustomer connectedApplicationsIds(List connectedApplicationsIds) { + public AudienceCustomer connectedApplicationsIds(List connectedApplicationsIds) { this.connectedApplicationsIds = connectedApplicationsIds; return this; } - public AudienceCustomer addConnectedApplicationsIdsItem(Long connectedApplicationsIdsItem) { + public AudienceCustomer addConnectedApplicationsIdsItem(Integer connectedApplicationsIdsItem) { if (this.connectedApplicationsIds == null) { - this.connectedApplicationsIds = new ArrayList(); + this.connectedApplicationsIds = new ArrayList(); } this.connectedApplicationsIds.add(connectedApplicationsIdsItem); return this; @@ -370,25 +370,25 @@ public AudienceCustomer addConnectedApplicationsIdsItem(Long connectedApplicatio @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of the IDs of the Applications that are connected to this customer profile.") - public List getConnectedApplicationsIds() { + public List getConnectedApplicationsIds() { return connectedApplicationsIds; } - public void setConnectedApplicationsIds(List connectedApplicationsIds) { + public void setConnectedApplicationsIds(List connectedApplicationsIds) { this.connectedApplicationsIds = connectedApplicationsIds; } - public AudienceCustomer connectedAudiences(List connectedAudiences) { + public AudienceCustomer connectedAudiences(List connectedAudiences) { this.connectedAudiences = connectedAudiences; return this; } - public AudienceCustomer addConnectedAudiencesItem(Long connectedAudiencesItem) { + public AudienceCustomer addConnectedAudiencesItem(Integer connectedAudiencesItem) { if (this.connectedAudiences == null) { - this.connectedAudiences = new ArrayList(); + this.connectedAudiences = new ArrayList(); } this.connectedAudiences.add(connectedAudiencesItem); return this; @@ -401,12 +401,12 @@ public AudienceCustomer addConnectedAudiencesItem(Long connectedAudiencesItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of the IDs of the audiences that are connected to this customer profile.") - public List getConnectedAudiences() { + public List getConnectedAudiences() { return connectedAudiences; } - public void setConnectedAudiences(List connectedAudiences) { + public void setConnectedAudiences(List connectedAudiences) { this.connectedAudiences = connectedAudiences; } diff --git a/src/main/java/one/talon/model/AudienceMembership.java b/src/main/java/one/talon/model/AudienceMembership.java index 572e16a2..a835a371 100644 --- a/src/main/java/one/talon/model/AudienceMembership.java +++ b/src/main/java/one/talon/model/AudienceMembership.java @@ -31,14 +31,14 @@ public class AudienceMembership { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) private String name; - public AudienceMembership id(Long id) { + public AudienceMembership id(Integer id) { this.id = id; return this; @@ -50,12 +50,12 @@ public AudienceMembership id(Long id) { **/ @ApiModelProperty(example = "2", required = true, value = "The ID of the audience belonging to this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/src/main/java/one/talon/model/AwardGiveawayEffectProps.java b/src/main/java/one/talon/model/AwardGiveawayEffectProps.java index 9218078a..0e970cb1 100644 --- a/src/main/java/one/talon/model/AwardGiveawayEffectProps.java +++ b/src/main/java/one/talon/model/AwardGiveawayEffectProps.java @@ -32,7 +32,7 @@ public class AwardGiveawayEffectProps { public static final String SERIALIZED_NAME_POOL_ID = "poolId"; @SerializedName(SERIALIZED_NAME_POOL_ID) - private Long poolId; + private Integer poolId; public static final String SERIALIZED_NAME_POOL_NAME = "poolName"; @SerializedName(SERIALIZED_NAME_POOL_NAME) @@ -44,14 +44,14 @@ public class AwardGiveawayEffectProps { public static final String SERIALIZED_NAME_GIVEAWAY_ID = "giveawayId"; @SerializedName(SERIALIZED_NAME_GIVEAWAY_ID) - private Long giveawayId; + private Integer giveawayId; public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) private String code; - public AwardGiveawayEffectProps poolId(Long poolId) { + public AwardGiveawayEffectProps poolId(Integer poolId) { this.poolId = poolId; return this; @@ -63,12 +63,12 @@ public AwardGiveawayEffectProps poolId(Long poolId) { **/ @ApiModelProperty(example = "2", required = true, value = "The ID of the giveaways pool the code was taken from.") - public Long getPoolId() { + public Integer getPoolId() { return poolId; } - public void setPoolId(Long poolId) { + public void setPoolId(Integer poolId) { this.poolId = poolId; } @@ -117,7 +117,7 @@ public void setRecipientIntegrationId(String recipientIntegrationId) { } - public AwardGiveawayEffectProps giveawayId(Long giveawayId) { + public AwardGiveawayEffectProps giveawayId(Integer giveawayId) { this.giveawayId = giveawayId; return this; @@ -129,12 +129,12 @@ public AwardGiveawayEffectProps giveawayId(Long giveawayId) { **/ @ApiModelProperty(example = "5", required = true, value = "The internal ID for the giveaway that was awarded.") - public Long getGiveawayId() { + public Integer getGiveawayId() { return giveawayId; } - public void setGiveawayId(Long giveawayId) { + public void setGiveawayId(Integer giveawayId) { this.giveawayId = giveawayId; } diff --git a/src/main/java/one/talon/model/BaseCampaign.java b/src/main/java/one/talon/model/BaseCampaign.java index 03cc34d8..4d5dfc1b 100644 --- a/src/main/java/one/talon/model/BaseCampaign.java +++ b/src/main/java/one/talon/model/BaseCampaign.java @@ -109,7 +109,7 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ACTIVE_RULESET_ID = "activeRulesetId"; @SerializedName(SERIALIZED_NAME_ACTIVE_RULESET_ID) - private Long activeRulesetId; + private Integer activeRulesetId; public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @@ -188,7 +188,7 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CAMPAIGN_GROUPS = "campaignGroups"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_GROUPS) - private List campaignGroups = null; + private List campaignGroups = null; /** * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. @@ -243,7 +243,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_LINKED_STORE_IDS = "linkedStoreIds"; @SerializedName(SERIALIZED_NAME_LINKED_STORE_IDS) - private List linkedStoreIds = null; + private List linkedStoreIds = null; public BaseCampaign name(String name) { @@ -382,7 +382,7 @@ public void setState(StateEnum state) { } - public BaseCampaign activeRulesetId(Long activeRulesetId) { + public BaseCampaign activeRulesetId(Integer activeRulesetId) { this.activeRulesetId = activeRulesetId; return this; @@ -395,12 +395,12 @@ public BaseCampaign activeRulesetId(Long activeRulesetId) { @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "[ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. ") - public Long getActiveRulesetId() { + public Integer getActiveRulesetId() { return activeRulesetId; } - public void setActiveRulesetId(Long activeRulesetId) { + public void setActiveRulesetId(Integer activeRulesetId) { this.activeRulesetId = activeRulesetId; } @@ -532,15 +532,15 @@ public void setLimits(List limits) { } - public BaseCampaign campaignGroups(List campaignGroups) { + public BaseCampaign campaignGroups(List campaignGroups) { this.campaignGroups = campaignGroups; return this; } - public BaseCampaign addCampaignGroupsItem(Long campaignGroupsItem) { + public BaseCampaign addCampaignGroupsItem(Integer campaignGroupsItem) { if (this.campaignGroups == null) { - this.campaignGroups = new ArrayList(); + this.campaignGroups = new ArrayList(); } this.campaignGroups.add(campaignGroupsItem); return this; @@ -553,12 +553,12 @@ public BaseCampaign addCampaignGroupsItem(Long campaignGroupsItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[1, 3]", value = "The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. ") - public List getCampaignGroups() { + public List getCampaignGroups() { return campaignGroups; } - public void setCampaignGroups(List campaignGroups) { + public void setCampaignGroups(List campaignGroups) { this.campaignGroups = campaignGroups; } @@ -586,15 +586,15 @@ public void setType(TypeEnum type) { } - public BaseCampaign linkedStoreIds(List linkedStoreIds) { + public BaseCampaign linkedStoreIds(List linkedStoreIds) { this.linkedStoreIds = linkedStoreIds; return this; } - public BaseCampaign addLinkedStoreIdsItem(Long linkedStoreIdsItem) { + public BaseCampaign addLinkedStoreIdsItem(Integer linkedStoreIdsItem) { if (this.linkedStoreIds == null) { - this.linkedStoreIds = new ArrayList(); + this.linkedStoreIds = new ArrayList(); } this.linkedStoreIds.add(linkedStoreIdsItem); return this; @@ -607,12 +607,12 @@ public BaseCampaign addLinkedStoreIdsItem(Long linkedStoreIdsItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. ") - public List getLinkedStoreIds() { + public List getLinkedStoreIds() { return linkedStoreIds; } - public void setLinkedStoreIds(List linkedStoreIds) { + public void setLinkedStoreIds(List linkedStoreIds) { this.linkedStoreIds = linkedStoreIds; } diff --git a/src/main/java/one/talon/model/BaseLoyaltyProgram.java b/src/main/java/one/talon/model/BaseLoyaltyProgram.java index 1fadb224..c5553170 100644 --- a/src/main/java/one/talon/model/BaseLoyaltyProgram.java +++ b/src/main/java/one/talon/model/BaseLoyaltyProgram.java @@ -43,7 +43,7 @@ public class BaseLoyaltyProgram { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS = "subscribedApplications"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS) - private List subscribedApplications = null; + private List subscribedApplications = null; public static final String SERIALIZED_NAME_DEFAULT_VALIDITY = "defaultValidity"; @SerializedName(SERIALIZED_NAME_DEFAULT_VALIDITY) @@ -59,7 +59,7 @@ public class BaseLoyaltyProgram { public static final String SERIALIZED_NAME_USERS_PER_CARD_LIMIT = "usersPerCardLimit"; @SerializedName(SERIALIZED_NAME_USERS_PER_CARD_LIMIT) - private Long usersPerCardLimit; + private Integer usersPerCardLimit; public static final String SERIALIZED_NAME_SANDBOX = "sandbox"; @SerializedName(SERIALIZED_NAME_SANDBOX) @@ -336,15 +336,15 @@ public void setDescription(String description) { } - public BaseLoyaltyProgram subscribedApplications(List subscribedApplications) { + public BaseLoyaltyProgram subscribedApplications(List subscribedApplications) { this.subscribedApplications = subscribedApplications; return this; } - public BaseLoyaltyProgram addSubscribedApplicationsItem(Long subscribedApplicationsItem) { + public BaseLoyaltyProgram addSubscribedApplicationsItem(Integer subscribedApplicationsItem) { if (this.subscribedApplications == null) { - this.subscribedApplications = new ArrayList(); + this.subscribedApplications = new ArrayList(); } this.subscribedApplications.add(subscribedApplicationsItem); return this; @@ -357,12 +357,12 @@ public BaseLoyaltyProgram addSubscribedApplicationsItem(Long subscribedApplicati @javax.annotation.Nullable @ApiModelProperty(example = "[132, 97]", value = "A list containing the IDs of all applications that are subscribed to this Loyalty Program.") - public List getSubscribedApplications() { + public List getSubscribedApplications() { return subscribedApplications; } - public void setSubscribedApplications(List subscribedApplications) { + public void setSubscribedApplications(List subscribedApplications) { this.subscribedApplications = subscribedApplications; } @@ -436,7 +436,7 @@ public void setAllowSubledger(Boolean allowSubledger) { } - public BaseLoyaltyProgram usersPerCardLimit(Long usersPerCardLimit) { + public BaseLoyaltyProgram usersPerCardLimit(Integer usersPerCardLimit) { this.usersPerCardLimit = usersPerCardLimit; return this; @@ -450,12 +450,12 @@ public BaseLoyaltyProgram usersPerCardLimit(Long usersPerCardLimit) { @javax.annotation.Nullable @ApiModelProperty(example = "111", value = "The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. ") - public Long getUsersPerCardLimit() { + public Integer getUsersPerCardLimit() { return usersPerCardLimit; } - public void setUsersPerCardLimit(Long usersPerCardLimit) { + public void setUsersPerCardLimit(Integer usersPerCardLimit) { this.usersPerCardLimit = usersPerCardLimit; } diff --git a/src/main/java/one/talon/model/BaseNotification.java b/src/main/java/one/talon/model/BaseNotification.java index 71776451..68845db6 100644 --- a/src/main/java/one/talon/model/BaseNotification.java +++ b/src/main/java/one/talon/model/BaseNotification.java @@ -44,7 +44,7 @@ public class BaseNotification { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; /** * The notification type. @@ -57,6 +57,10 @@ public enum TypeEnum { CARD_ADDED_DEDUCTED_POINTS("card_added_deducted_points"), + LOYALTY_ADDED_DEDUCTED_POINTS_BALANCES("loyalty_added_deducted_points_balances"), + + LOYALTY_CARD_ADDED_DEDUCTED_POINTS_BALANCES("loyalty_card_added_deducted_points_balances"), + COUPON("coupon"), EXPIRING_COUPONS("expiring_coupons"), @@ -185,7 +189,7 @@ public void setWebhook(BaseNotificationWebhook webhook) { } - public BaseNotification id(Long id) { + public BaseNotification id(Integer id) { this.id = id; return this; @@ -198,12 +202,12 @@ public BaseNotification id(Long id) { **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/src/main/java/one/talon/model/BaseNotificationWebhook.java b/src/main/java/one/talon/model/BaseNotificationWebhook.java index 25ab6375..140e7fe4 100644 --- a/src/main/java/one/talon/model/BaseNotificationWebhook.java +++ b/src/main/java/one/talon/model/BaseNotificationWebhook.java @@ -34,7 +34,7 @@ public class BaseNotificationWebhook { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -57,24 +57,24 @@ public class BaseNotificationWebhook { private Boolean enabled = true; - public BaseNotificationWebhook id(Long id) { + public BaseNotificationWebhook id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/src/main/java/one/talon/model/BaseSamlConnection.java b/src/main/java/one/talon/model/BaseSamlConnection.java index 647634ba..c8d23fbe 100644 --- a/src/main/java/one/talon/model/BaseSamlConnection.java +++ b/src/main/java/one/talon/model/BaseSamlConnection.java @@ -31,7 +31,7 @@ public class BaseSamlConnection { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -62,7 +62,7 @@ public class BaseSamlConnection { private String audienceURI; - public BaseSamlConnection accountId(Long accountId) { + public BaseSamlConnection accountId(Integer accountId) { this.accountId = accountId; return this; @@ -74,12 +74,12 @@ public BaseSamlConnection accountId(Long accountId) { **/ @ApiModelProperty(example = "3885", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } diff --git a/src/main/java/one/talon/model/Binding.java b/src/main/java/one/talon/model/Binding.java index 2eeb39ba..0e776cce 100644 --- a/src/main/java/one/talon/model/Binding.java +++ b/src/main/java/one/talon/model/Binding.java @@ -23,6 +23,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; @@ -47,6 +48,18 @@ public class Binding { @SerializedName(SERIALIZED_NAME_VALUE_TYPE) private String valueType; + public static final String SERIALIZED_NAME_MIN_VALUE = "minValue"; + @SerializedName(SERIALIZED_NAME_MIN_VALUE) + private BigDecimal minValue; + + public static final String SERIALIZED_NAME_MAX_VALUE = "maxValue"; + @SerializedName(SERIALIZED_NAME_MAX_VALUE) + private BigDecimal maxValue; + + public static final String SERIALIZED_NAME_ATTRIBUTE_ID = "attributeId"; + @SerializedName(SERIALIZED_NAME_ATTRIBUTE_ID) + private Integer attributeId; + public Binding name(String name) { @@ -143,6 +156,75 @@ public void setValueType(String valueType) { } + public Binding minValue(BigDecimal minValue) { + + this.minValue = minValue; + return this; + } + + /** + * The minimum value allowed for this placeholder. + * @return minValue + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "0.0", value = "The minimum value allowed for this placeholder.") + + public BigDecimal getMinValue() { + return minValue; + } + + + public void setMinValue(BigDecimal minValue) { + this.minValue = minValue; + } + + + public Binding maxValue(BigDecimal maxValue) { + + this.maxValue = maxValue; + return this; + } + + /** + * The maximum value allowed for this placeholder. + * @return maxValue + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "19.9", value = "The maximum value allowed for this placeholder.") + + public BigDecimal getMaxValue() { + return maxValue; + } + + + public void setMaxValue(BigDecimal maxValue) { + this.maxValue = maxValue; + } + + + public Binding attributeId(Integer attributeId) { + + this.attributeId = attributeId; + return this; + } + + /** + * Id of the attribute attached to the placeholder. + * @return attributeId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "100", value = "Id of the attribute attached to the placeholder.") + + public Integer getAttributeId() { + return attributeId; + } + + + public void setAttributeId(Integer attributeId) { + this.attributeId = attributeId; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,12 +237,15 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.name, binding.name) && Objects.equals(this.type, binding.type) && Objects.equals(this.expression, binding.expression) && - Objects.equals(this.valueType, binding.valueType); + Objects.equals(this.valueType, binding.valueType) && + Objects.equals(this.minValue, binding.minValue) && + Objects.equals(this.maxValue, binding.maxValue) && + Objects.equals(this.attributeId, binding.attributeId); } @Override public int hashCode() { - return Objects.hash(name, type, expression, valueType); + return Objects.hash(name, type, expression, valueType, minValue, maxValue, attributeId); } @@ -172,6 +257,9 @@ public String toString() { sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" expression: ").append(toIndentedString(expression)).append("\n"); sb.append(" valueType: ").append(toIndentedString(valueType)).append("\n"); + sb.append(" minValue: ").append(toIndentedString(minValue)).append("\n"); + sb.append(" maxValue: ").append(toIndentedString(maxValue)).append("\n"); + sb.append(" attributeId: ").append(toIndentedString(attributeId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/BulkApplicationNotification.java b/src/main/java/one/talon/model/BulkApplicationNotification.java index 73364011..9c8e90d1 100644 --- a/src/main/java/one/talon/model/BulkApplicationNotification.java +++ b/src/main/java/one/talon/model/BulkApplicationNotification.java @@ -34,14 +34,14 @@ public class BulkApplicationNotification { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public BulkApplicationNotification totalResultSize(Long totalResultSize) { + public BulkApplicationNotification totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -53,12 +53,12 @@ public BulkApplicationNotification totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/BulkCampaignNotification.java b/src/main/java/one/talon/model/BulkCampaignNotification.java index 7140bc90..b037d504 100644 --- a/src/main/java/one/talon/model/BulkCampaignNotification.java +++ b/src/main/java/one/talon/model/BulkCampaignNotification.java @@ -34,14 +34,14 @@ public class BulkCampaignNotification { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public BulkCampaignNotification totalResultSize(Long totalResultSize) { + public BulkCampaignNotification totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -53,12 +53,12 @@ public BulkCampaignNotification totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/BulkOperationOnCampaigns.java b/src/main/java/one/talon/model/BulkOperationOnCampaigns.java index c3778244..e30c830c 100644 --- a/src/main/java/one/talon/model/BulkOperationOnCampaigns.java +++ b/src/main/java/one/talon/model/BulkOperationOnCampaigns.java @@ -87,7 +87,7 @@ public OperationEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CAMPAIGN_IDS = "campaignIds"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_IDS) - private List campaignIds = new ArrayList(); + private List campaignIds = new ArrayList(); public static final String SERIALIZED_NAME_ACTIVATE_AT = "activateAt"; @SerializedName(SERIALIZED_NAME_ACTIVATE_AT) @@ -116,13 +116,13 @@ public void setOperation(OperationEnum operation) { } - public BulkOperationOnCampaigns campaignIds(List campaignIds) { + public BulkOperationOnCampaigns campaignIds(List campaignIds) { this.campaignIds = campaignIds; return this; } - public BulkOperationOnCampaigns addCampaignIdsItem(Long campaignIdsItem) { + public BulkOperationOnCampaigns addCampaignIdsItem(Integer campaignIdsItem) { this.campaignIds.add(campaignIdsItem); return this; } @@ -133,12 +133,12 @@ public BulkOperationOnCampaigns addCampaignIdsItem(Long campaignIdsItem) { **/ @ApiModelProperty(example = "[1, 2, 3]", required = true, value = "The list of campaign IDs on which the operation will be performed.") - public List getCampaignIds() { + public List getCampaignIds() { return campaignIds; } - public void setCampaignIds(List campaignIds) { + public void setCampaignIds(List campaignIds) { this.campaignIds = campaignIds; } diff --git a/src/main/java/one/talon/model/Campaign.java b/src/main/java/one/talon/model/Campaign.java index f8c2701c..082f8e57 100644 --- a/src/main/java/one/talon/model/Campaign.java +++ b/src/main/java/one/talon/model/Campaign.java @@ -38,7 +38,7 @@ public class Campaign { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -46,11 +46,11 @@ public class Campaign { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Long userId; + private Integer userId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -127,7 +127,7 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ACTIVE_RULESET_ID = "activeRulesetId"; @SerializedName(SERIALIZED_NAME_ACTIVE_RULESET_ID) - private Long activeRulesetId; + private Integer activeRulesetId; public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @@ -206,7 +206,7 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CAMPAIGN_GROUPS = "campaignGroups"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_GROUPS) - private List campaignGroups = null; + private List campaignGroups = null; /** * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. @@ -261,7 +261,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_LINKED_STORE_IDS = "linkedStoreIds"; @SerializedName(SERIALIZED_NAME_LINKED_STORE_IDS) - private List linkedStoreIds = null; + private List linkedStoreIds = null; public static final String SERIALIZED_NAME_BUDGETS = "budgets"; @SerializedName(SERIALIZED_NAME_BUDGETS) @@ -269,11 +269,11 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_COUPON_REDEMPTION_COUNT = "couponRedemptionCount"; @SerializedName(SERIALIZED_NAME_COUPON_REDEMPTION_COUNT) - private Long couponRedemptionCount; + private Integer couponRedemptionCount; public static final String SERIALIZED_NAME_REFERRAL_REDEMPTION_COUNT = "referralRedemptionCount"; @SerializedName(SERIALIZED_NAME_REFERRAL_REDEMPTION_COUNT) - private Long referralRedemptionCount; + private Integer referralRedemptionCount; public static final String SERIALIZED_NAME_DISCOUNT_COUNT = "discountCount"; @SerializedName(SERIALIZED_NAME_DISCOUNT_COUNT) @@ -281,27 +281,27 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_DISCOUNT_EFFECT_COUNT = "discountEffectCount"; @SerializedName(SERIALIZED_NAME_DISCOUNT_EFFECT_COUNT) - private Long discountEffectCount; + private Integer discountEffectCount; public static final String SERIALIZED_NAME_COUPON_CREATION_COUNT = "couponCreationCount"; @SerializedName(SERIALIZED_NAME_COUPON_CREATION_COUNT) - private Long couponCreationCount; + private Integer couponCreationCount; public static final String SERIALIZED_NAME_CUSTOM_EFFECT_COUNT = "customEffectCount"; @SerializedName(SERIALIZED_NAME_CUSTOM_EFFECT_COUNT) - private Long customEffectCount; + private Integer customEffectCount; public static final String SERIALIZED_NAME_REFERRAL_CREATION_COUNT = "referralCreationCount"; @SerializedName(SERIALIZED_NAME_REFERRAL_CREATION_COUNT) - private Long referralCreationCount; + private Integer referralCreationCount; public static final String SERIALIZED_NAME_ADD_FREE_ITEM_EFFECT_COUNT = "addFreeItemEffectCount"; @SerializedName(SERIALIZED_NAME_ADD_FREE_ITEM_EFFECT_COUNT) - private Long addFreeItemEffectCount; + private Integer addFreeItemEffectCount; public static final String SERIALIZED_NAME_AWARDED_GIVEAWAYS_COUNT = "awardedGiveawaysCount"; @SerializedName(SERIALIZED_NAME_AWARDED_GIVEAWAYS_COUNT) - private Long awardedGiveawaysCount; + private Integer awardedGiveawaysCount; public static final String SERIALIZED_NAME_CREATED_LOYALTY_POINTS_COUNT = "createdLoyaltyPointsCount"; @SerializedName(SERIALIZED_NAME_CREATED_LOYALTY_POINTS_COUNT) @@ -309,7 +309,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CREATED_LOYALTY_POINTS_EFFECT_COUNT = "createdLoyaltyPointsEffectCount"; @SerializedName(SERIALIZED_NAME_CREATED_LOYALTY_POINTS_EFFECT_COUNT) - private Long createdLoyaltyPointsEffectCount; + private Integer createdLoyaltyPointsEffectCount; public static final String SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_COUNT = "redeemedLoyaltyPointsCount"; @SerializedName(SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_COUNT) @@ -317,15 +317,15 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_EFFECT_COUNT = "redeemedLoyaltyPointsEffectCount"; @SerializedName(SERIALIZED_NAME_REDEEMED_LOYALTY_POINTS_EFFECT_COUNT) - private Long redeemedLoyaltyPointsEffectCount; + private Integer redeemedLoyaltyPointsEffectCount; public static final String SERIALIZED_NAME_CALL_API_EFFECT_COUNT = "callApiEffectCount"; @SerializedName(SERIALIZED_NAME_CALL_API_EFFECT_COUNT) - private Long callApiEffectCount; + private Integer callApiEffectCount; public static final String SERIALIZED_NAME_RESERVECOUPON_EFFECT_COUNT = "reservecouponEffectCount"; @SerializedName(SERIALIZED_NAME_RESERVECOUPON_EFFECT_COUNT) - private Long reservecouponEffectCount; + private Integer reservecouponEffectCount; public static final String SERIALIZED_NAME_LAST_ACTIVITY = "lastActivity"; @SerializedName(SERIALIZED_NAME_LAST_ACTIVITY) @@ -345,7 +345,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_TEMPLATE_ID = "templateId"; @SerializedName(SERIALIZED_NAME_TEMPLATE_ID) - private Long templateId; + private Integer templateId; /** * The campaign state displayed in the Campaign Manager. @@ -412,7 +412,7 @@ public FrontendStateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_VALUE_MAPS_IDS = "valueMapsIds"; @SerializedName(SERIALIZED_NAME_VALUE_MAPS_IDS) - private List valueMapsIds = null; + private List valueMapsIds = null; /** * The campaign revision state displayed in the Campaign Manager. @@ -467,30 +467,30 @@ public RevisionFrontendStateEnum read(final JsonReader jsonReader) throws IOExce public static final String SERIALIZED_NAME_ACTIVE_REVISION_ID = "activeRevisionId"; @SerializedName(SERIALIZED_NAME_ACTIVE_REVISION_ID) - private Long activeRevisionId; + private Integer activeRevisionId; public static final String SERIALIZED_NAME_ACTIVE_REVISION_VERSION_ID = "activeRevisionVersionId"; @SerializedName(SERIALIZED_NAME_ACTIVE_REVISION_VERSION_ID) - private Long activeRevisionVersionId; + private Integer activeRevisionVersionId; public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) - private Long version; + private Integer version; public static final String SERIALIZED_NAME_CURRENT_REVISION_ID = "currentRevisionId"; @SerializedName(SERIALIZED_NAME_CURRENT_REVISION_ID) - private Long currentRevisionId; + private Integer currentRevisionId; public static final String SERIALIZED_NAME_CURRENT_REVISION_VERSION_ID = "currentRevisionVersionId"; @SerializedName(SERIALIZED_NAME_CURRENT_REVISION_VERSION_ID) - private Long currentRevisionVersionId; + private Integer currentRevisionVersionId; public static final String SERIALIZED_NAME_STAGE_REVISION = "stageRevision"; @SerializedName(SERIALIZED_NAME_STAGE_REVISION) private Boolean stageRevision = false; - public Campaign id(Long id) { + public Campaign id(Integer id) { this.id = id; return this; @@ -502,12 +502,12 @@ public Campaign id(Long id) { **/ @ApiModelProperty(example = "4", required = true, value = "Unique ID for this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -534,7 +534,7 @@ public void setCreated(OffsetDateTime created) { } - public Campaign applicationId(Long applicationId) { + public Campaign applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -546,17 +546,17 @@ public Campaign applicationId(Long applicationId) { **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } - public Campaign userId(Long userId) { + public Campaign userId(Integer userId) { this.userId = userId; return this; @@ -568,12 +568,12 @@ public Campaign userId(Long userId) { **/ @ApiModelProperty(example = "388", required = true, value = "The ID of the user associated with this entity.") - public Long getUserId() { + public Integer getUserId() { return userId; } - public void setUserId(Long userId) { + public void setUserId(Integer userId) { this.userId = userId; } @@ -713,7 +713,7 @@ public void setState(StateEnum state) { } - public Campaign activeRulesetId(Long activeRulesetId) { + public Campaign activeRulesetId(Integer activeRulesetId) { this.activeRulesetId = activeRulesetId; return this; @@ -726,12 +726,12 @@ public Campaign activeRulesetId(Long activeRulesetId) { @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "[ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. ") - public Long getActiveRulesetId() { + public Integer getActiveRulesetId() { return activeRulesetId; } - public void setActiveRulesetId(Long activeRulesetId) { + public void setActiveRulesetId(Integer activeRulesetId) { this.activeRulesetId = activeRulesetId; } @@ -863,15 +863,15 @@ public void setLimits(List limits) { } - public Campaign campaignGroups(List campaignGroups) { + public Campaign campaignGroups(List campaignGroups) { this.campaignGroups = campaignGroups; return this; } - public Campaign addCampaignGroupsItem(Long campaignGroupsItem) { + public Campaign addCampaignGroupsItem(Integer campaignGroupsItem) { if (this.campaignGroups == null) { - this.campaignGroups = new ArrayList(); + this.campaignGroups = new ArrayList(); } this.campaignGroups.add(campaignGroupsItem); return this; @@ -884,12 +884,12 @@ public Campaign addCampaignGroupsItem(Long campaignGroupsItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[1, 3]", value = "The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. ") - public List getCampaignGroups() { + public List getCampaignGroups() { return campaignGroups; } - public void setCampaignGroups(List campaignGroups) { + public void setCampaignGroups(List campaignGroups) { this.campaignGroups = campaignGroups; } @@ -916,15 +916,15 @@ public void setType(TypeEnum type) { } - public Campaign linkedStoreIds(List linkedStoreIds) { + public Campaign linkedStoreIds(List linkedStoreIds) { this.linkedStoreIds = linkedStoreIds; return this; } - public Campaign addLinkedStoreIdsItem(Long linkedStoreIdsItem) { + public Campaign addLinkedStoreIdsItem(Integer linkedStoreIdsItem) { if (this.linkedStoreIds == null) { - this.linkedStoreIds = new ArrayList(); + this.linkedStoreIds = new ArrayList(); } this.linkedStoreIds.add(linkedStoreIdsItem); return this; @@ -937,12 +937,12 @@ public Campaign addLinkedStoreIdsItem(Long linkedStoreIdsItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. ") - public List getLinkedStoreIds() { + public List getLinkedStoreIds() { return linkedStoreIds; } - public void setLinkedStoreIds(List linkedStoreIds) { + public void setLinkedStoreIds(List linkedStoreIds) { this.linkedStoreIds = linkedStoreIds; } @@ -978,7 +978,7 @@ public void setBudgets(List budgets) { } - public Campaign couponRedemptionCount(Long couponRedemptionCount) { + public Campaign couponRedemptionCount(Integer couponRedemptionCount) { this.couponRedemptionCount = couponRedemptionCount; return this; @@ -991,17 +991,17 @@ public Campaign couponRedemptionCount(Long couponRedemptionCount) { @javax.annotation.Nullable @ApiModelProperty(example = "163", value = "This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign. ") - public Long getCouponRedemptionCount() { + public Integer getCouponRedemptionCount() { return couponRedemptionCount; } - public void setCouponRedemptionCount(Long couponRedemptionCount) { + public void setCouponRedemptionCount(Integer couponRedemptionCount) { this.couponRedemptionCount = couponRedemptionCount; } - public Campaign referralRedemptionCount(Long referralRedemptionCount) { + public Campaign referralRedemptionCount(Integer referralRedemptionCount) { this.referralRedemptionCount = referralRedemptionCount; return this; @@ -1014,12 +1014,12 @@ public Campaign referralRedemptionCount(Long referralRedemptionCount) { @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign. ") - public Long getReferralRedemptionCount() { + public Integer getReferralRedemptionCount() { return referralRedemptionCount; } - public void setReferralRedemptionCount(Long referralRedemptionCount) { + public void setReferralRedemptionCount(Integer referralRedemptionCount) { this.referralRedemptionCount = referralRedemptionCount; } @@ -1047,7 +1047,7 @@ public void setDiscountCount(BigDecimal discountCount) { } - public Campaign discountEffectCount(Long discountEffectCount) { + public Campaign discountEffectCount(Integer discountEffectCount) { this.discountEffectCount = discountEffectCount; return this; @@ -1060,17 +1060,17 @@ public Campaign discountEffectCount(Long discountEffectCount) { @javax.annotation.Nullable @ApiModelProperty(example = "343", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign. ") - public Long getDiscountEffectCount() { + public Integer getDiscountEffectCount() { return discountEffectCount; } - public void setDiscountEffectCount(Long discountEffectCount) { + public void setDiscountEffectCount(Integer discountEffectCount) { this.discountEffectCount = discountEffectCount; } - public Campaign couponCreationCount(Long couponCreationCount) { + public Campaign couponCreationCount(Integer couponCreationCount) { this.couponCreationCount = couponCreationCount; return this; @@ -1083,17 +1083,17 @@ public Campaign couponCreationCount(Long couponCreationCount) { @javax.annotation.Nullable @ApiModelProperty(example = "16", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign. ") - public Long getCouponCreationCount() { + public Integer getCouponCreationCount() { return couponCreationCount; } - public void setCouponCreationCount(Long couponCreationCount) { + public void setCouponCreationCount(Integer couponCreationCount) { this.couponCreationCount = couponCreationCount; } - public Campaign customEffectCount(Long customEffectCount) { + public Campaign customEffectCount(Integer customEffectCount) { this.customEffectCount = customEffectCount; return this; @@ -1106,17 +1106,17 @@ public Campaign customEffectCount(Long customEffectCount) { @javax.annotation.Nullable @ApiModelProperty(example = "0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign. ") - public Long getCustomEffectCount() { + public Integer getCustomEffectCount() { return customEffectCount; } - public void setCustomEffectCount(Long customEffectCount) { + public void setCustomEffectCount(Integer customEffectCount) { this.customEffectCount = customEffectCount; } - public Campaign referralCreationCount(Long referralCreationCount) { + public Campaign referralCreationCount(Integer referralCreationCount) { this.referralCreationCount = referralCreationCount; return this; @@ -1129,17 +1129,17 @@ public Campaign referralCreationCount(Long referralCreationCount) { @javax.annotation.Nullable @ApiModelProperty(example = "8", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign. ") - public Long getReferralCreationCount() { + public Integer getReferralCreationCount() { return referralCreationCount; } - public void setReferralCreationCount(Long referralCreationCount) { + public void setReferralCreationCount(Integer referralCreationCount) { this.referralCreationCount = referralCreationCount; } - public Campaign addFreeItemEffectCount(Long addFreeItemEffectCount) { + public Campaign addFreeItemEffectCount(Integer addFreeItemEffectCount) { this.addFreeItemEffectCount = addFreeItemEffectCount; return this; @@ -1152,17 +1152,17 @@ public Campaign addFreeItemEffectCount(Long addFreeItemEffectCount) { @javax.annotation.Nullable @ApiModelProperty(example = "0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign. ") - public Long getAddFreeItemEffectCount() { + public Integer getAddFreeItemEffectCount() { return addFreeItemEffectCount; } - public void setAddFreeItemEffectCount(Long addFreeItemEffectCount) { + public void setAddFreeItemEffectCount(Integer addFreeItemEffectCount) { this.addFreeItemEffectCount = addFreeItemEffectCount; } - public Campaign awardedGiveawaysCount(Long awardedGiveawaysCount) { + public Campaign awardedGiveawaysCount(Integer awardedGiveawaysCount) { this.awardedGiveawaysCount = awardedGiveawaysCount; return this; @@ -1175,12 +1175,12 @@ public Campaign awardedGiveawaysCount(Long awardedGiveawaysCount) { @javax.annotation.Nullable @ApiModelProperty(example = "9", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign. ") - public Long getAwardedGiveawaysCount() { + public Integer getAwardedGiveawaysCount() { return awardedGiveawaysCount; } - public void setAwardedGiveawaysCount(Long awardedGiveawaysCount) { + public void setAwardedGiveawaysCount(Integer awardedGiveawaysCount) { this.awardedGiveawaysCount = awardedGiveawaysCount; } @@ -1208,7 +1208,7 @@ public void setCreatedLoyaltyPointsCount(BigDecimal createdLoyaltyPointsCount) { } - public Campaign createdLoyaltyPointsEffectCount(Long createdLoyaltyPointsEffectCount) { + public Campaign createdLoyaltyPointsEffectCount(Integer createdLoyaltyPointsEffectCount) { this.createdLoyaltyPointsEffectCount = createdLoyaltyPointsEffectCount; return this; @@ -1221,12 +1221,12 @@ public Campaign createdLoyaltyPointsEffectCount(Long createdLoyaltyPointsEffectC @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign. ") - public Long getCreatedLoyaltyPointsEffectCount() { + public Integer getCreatedLoyaltyPointsEffectCount() { return createdLoyaltyPointsEffectCount; } - public void setCreatedLoyaltyPointsEffectCount(Long createdLoyaltyPointsEffectCount) { + public void setCreatedLoyaltyPointsEffectCount(Integer createdLoyaltyPointsEffectCount) { this.createdLoyaltyPointsEffectCount = createdLoyaltyPointsEffectCount; } @@ -1254,7 +1254,7 @@ public void setRedeemedLoyaltyPointsCount(BigDecimal redeemedLoyaltyPointsCount) } - public Campaign redeemedLoyaltyPointsEffectCount(Long redeemedLoyaltyPointsEffectCount) { + public Campaign redeemedLoyaltyPointsEffectCount(Integer redeemedLoyaltyPointsEffectCount) { this.redeemedLoyaltyPointsEffectCount = redeemedLoyaltyPointsEffectCount; return this; @@ -1267,17 +1267,17 @@ public Campaign redeemedLoyaltyPointsEffectCount(Long redeemedLoyaltyPointsEffec @javax.annotation.Nullable @ApiModelProperty(example = "9", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign. ") - public Long getRedeemedLoyaltyPointsEffectCount() { + public Integer getRedeemedLoyaltyPointsEffectCount() { return redeemedLoyaltyPointsEffectCount; } - public void setRedeemedLoyaltyPointsEffectCount(Long redeemedLoyaltyPointsEffectCount) { + public void setRedeemedLoyaltyPointsEffectCount(Integer redeemedLoyaltyPointsEffectCount) { this.redeemedLoyaltyPointsEffectCount = redeemedLoyaltyPointsEffectCount; } - public Campaign callApiEffectCount(Long callApiEffectCount) { + public Campaign callApiEffectCount(Integer callApiEffectCount) { this.callApiEffectCount = callApiEffectCount; return this; @@ -1290,17 +1290,17 @@ public Campaign callApiEffectCount(Long callApiEffectCount) { @javax.annotation.Nullable @ApiModelProperty(example = "0", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign. ") - public Long getCallApiEffectCount() { + public Integer getCallApiEffectCount() { return callApiEffectCount; } - public void setCallApiEffectCount(Long callApiEffectCount) { + public void setCallApiEffectCount(Integer callApiEffectCount) { this.callApiEffectCount = callApiEffectCount; } - public Campaign reservecouponEffectCount(Long reservecouponEffectCount) { + public Campaign reservecouponEffectCount(Integer reservecouponEffectCount) { this.reservecouponEffectCount = reservecouponEffectCount; return this; @@ -1313,12 +1313,12 @@ public Campaign reservecouponEffectCount(Long reservecouponEffectCount) { @javax.annotation.Nullable @ApiModelProperty(example = "9", value = "This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign. ") - public Long getReservecouponEffectCount() { + public Integer getReservecouponEffectCount() { return reservecouponEffectCount; } - public void setReservecouponEffectCount(Long reservecouponEffectCount) { + public void setReservecouponEffectCount(Integer reservecouponEffectCount) { this.reservecouponEffectCount = reservecouponEffectCount; } @@ -1415,7 +1415,7 @@ public void setUpdatedBy(String updatedBy) { } - public Campaign templateId(Long templateId) { + public Campaign templateId(Integer templateId) { this.templateId = templateId; return this; @@ -1428,12 +1428,12 @@ public Campaign templateId(Long templateId) { @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the Campaign Template this Campaign was created from.") - public Long getTemplateId() { + public Integer getTemplateId() { return templateId; } - public void setTemplateId(Long templateId) { + public void setTemplateId(Integer templateId) { this.templateId = templateId; } @@ -1482,15 +1482,15 @@ public void setStoresImported(Boolean storesImported) { } - public Campaign valueMapsIds(List valueMapsIds) { + public Campaign valueMapsIds(List valueMapsIds) { this.valueMapsIds = valueMapsIds; return this; } - public Campaign addValueMapsIdsItem(Long valueMapsIdsItem) { + public Campaign addValueMapsIdsItem(Integer valueMapsIdsItem) { if (this.valueMapsIds == null) { - this.valueMapsIds = new ArrayList(); + this.valueMapsIds = new ArrayList(); } this.valueMapsIds.add(valueMapsIdsItem); return this; @@ -1503,12 +1503,12 @@ public Campaign addValueMapsIdsItem(Long valueMapsIdsItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[100, 215]", value = "A list of value map IDs for the campaign.") - public List getValueMapsIds() { + public List getValueMapsIds() { return valueMapsIds; } - public void setValueMapsIds(List valueMapsIds) { + public void setValueMapsIds(List valueMapsIds) { this.valueMapsIds = valueMapsIds; } @@ -1536,7 +1536,7 @@ public void setRevisionFrontendState(RevisionFrontendStateEnum revisionFrontendS } - public Campaign activeRevisionId(Long activeRevisionId) { + public Campaign activeRevisionId(Integer activeRevisionId) { this.activeRevisionId = activeRevisionId; return this; @@ -1549,17 +1549,17 @@ public Campaign activeRevisionId(Long activeRevisionId) { @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "ID of the revision that was last activated on this campaign. ") - public Long getActiveRevisionId() { + public Integer getActiveRevisionId() { return activeRevisionId; } - public void setActiveRevisionId(Long activeRevisionId) { + public void setActiveRevisionId(Integer activeRevisionId) { this.activeRevisionId = activeRevisionId; } - public Campaign activeRevisionVersionId(Long activeRevisionVersionId) { + public Campaign activeRevisionVersionId(Integer activeRevisionVersionId) { this.activeRevisionVersionId = activeRevisionVersionId; return this; @@ -1572,17 +1572,17 @@ public Campaign activeRevisionVersionId(Long activeRevisionVersionId) { @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "ID of the revision version that is active on the campaign. ") - public Long getActiveRevisionVersionId() { + public Integer getActiveRevisionVersionId() { return activeRevisionVersionId; } - public void setActiveRevisionVersionId(Long activeRevisionVersionId) { + public void setActiveRevisionVersionId(Integer activeRevisionVersionId) { this.activeRevisionVersionId = activeRevisionVersionId; } - public Campaign version(Long version) { + public Campaign version(Integer version) { this.version = version; return this; @@ -1595,17 +1595,17 @@ public Campaign version(Long version) { @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "Incrementing number representing how many revisions have been activated on this campaign, starts from 0 for a new campaign. ") - public Long getVersion() { + public Integer getVersion() { return version; } - public void setVersion(Long version) { + public void setVersion(Integer version) { this.version = version; } - public Campaign currentRevisionId(Long currentRevisionId) { + public Campaign currentRevisionId(Integer currentRevisionId) { this.currentRevisionId = currentRevisionId; return this; @@ -1618,17 +1618,17 @@ public Campaign currentRevisionId(Long currentRevisionId) { @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "ID of the revision currently being modified for the campaign. ") - public Long getCurrentRevisionId() { + public Integer getCurrentRevisionId() { return currentRevisionId; } - public void setCurrentRevisionId(Long currentRevisionId) { + public void setCurrentRevisionId(Integer currentRevisionId) { this.currentRevisionId = currentRevisionId; } - public Campaign currentRevisionVersionId(Long currentRevisionVersionId) { + public Campaign currentRevisionVersionId(Integer currentRevisionVersionId) { this.currentRevisionVersionId = currentRevisionVersionId; return this; @@ -1641,12 +1641,12 @@ public Campaign currentRevisionVersionId(Long currentRevisionVersionId) { @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "ID of the latest version applied on the current revision. ") - public Long getCurrentRevisionVersionId() { + public Integer getCurrentRevisionVersionId() { return currentRevisionVersionId; } - public void setCurrentRevisionVersionId(Long currentRevisionVersionId) { + public void setCurrentRevisionVersionId(Integer currentRevisionVersionId) { this.currentRevisionVersionId = currentRevisionVersionId; } diff --git a/src/main/java/one/talon/model/CampaignActivationRequest.java b/src/main/java/one/talon/model/CampaignActivationRequest.java index 5967a311..3debc441 100644 --- a/src/main/java/one/talon/model/CampaignActivationRequest.java +++ b/src/main/java/one/talon/model/CampaignActivationRequest.java @@ -33,16 +33,16 @@ public class CampaignActivationRequest { public static final String SERIALIZED_NAME_USER_IDS = "userIds"; @SerializedName(SERIALIZED_NAME_USER_IDS) - private List userIds = new ArrayList(); + private List userIds = new ArrayList(); - public CampaignActivationRequest userIds(List userIds) { + public CampaignActivationRequest userIds(List userIds) { this.userIds = userIds; return this; } - public CampaignActivationRequest addUserIdsItem(Long userIdsItem) { + public CampaignActivationRequest addUserIdsItem(Integer userIdsItem) { this.userIds.add(userIdsItem); return this; } @@ -53,12 +53,12 @@ public CampaignActivationRequest addUserIdsItem(Long userIdsItem) { **/ @ApiModelProperty(example = "[1, 2, 3]", required = true, value = "The list of IDs of the users who will receive the activation request.") - public List getUserIds() { + public List getUserIds() { return userIds; } - public void setUserIds(List userIds) { + public void setUserIds(List userIds) { this.userIds = userIds; } diff --git a/src/main/java/one/talon/model/CampaignAnalytics.java b/src/main/java/one/talon/model/CampaignAnalytics.java index 9a9dda68..bce7f06f 100644 --- a/src/main/java/one/talon/model/CampaignAnalytics.java +++ b/src/main/java/one/talon/model/CampaignAnalytics.java @@ -69,51 +69,51 @@ public class CampaignAnalytics { public static final String SERIALIZED_NAME_CAMPAIGN_FREE_ITEMS = "campaignFreeItems"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_FREE_ITEMS) - private Long campaignFreeItems; + private Integer campaignFreeItems; public static final String SERIALIZED_NAME_TOTAL_CAMPAIGN_FREE_ITEMS = "totalCampaignFreeItems"; @SerializedName(SERIALIZED_NAME_TOTAL_CAMPAIGN_FREE_ITEMS) - private Long totalCampaignFreeItems; + private Integer totalCampaignFreeItems; public static final String SERIALIZED_NAME_COUPON_REDEMPTIONS = "couponRedemptions"; @SerializedName(SERIALIZED_NAME_COUPON_REDEMPTIONS) - private Long couponRedemptions; + private Integer couponRedemptions; public static final String SERIALIZED_NAME_TOTAL_COUPON_REDEMPTIONS = "totalCouponRedemptions"; @SerializedName(SERIALIZED_NAME_TOTAL_COUPON_REDEMPTIONS) - private Long totalCouponRedemptions; + private Integer totalCouponRedemptions; public static final String SERIALIZED_NAME_COUPON_ROLLEDBACK_REDEMPTIONS = "couponRolledbackRedemptions"; @SerializedName(SERIALIZED_NAME_COUPON_ROLLEDBACK_REDEMPTIONS) - private Long couponRolledbackRedemptions; + private Integer couponRolledbackRedemptions; public static final String SERIALIZED_NAME_TOTAL_COUPON_ROLLEDBACK_REDEMPTIONS = "totalCouponRolledbackRedemptions"; @SerializedName(SERIALIZED_NAME_TOTAL_COUPON_ROLLEDBACK_REDEMPTIONS) - private Long totalCouponRolledbackRedemptions; + private Integer totalCouponRolledbackRedemptions; public static final String SERIALIZED_NAME_REFERRAL_REDEMPTIONS = "referralRedemptions"; @SerializedName(SERIALIZED_NAME_REFERRAL_REDEMPTIONS) - private Long referralRedemptions; + private Integer referralRedemptions; public static final String SERIALIZED_NAME_TOTAL_REFERRAL_REDEMPTIONS = "totalReferralRedemptions"; @SerializedName(SERIALIZED_NAME_TOTAL_REFERRAL_REDEMPTIONS) - private Long totalReferralRedemptions; + private Integer totalReferralRedemptions; public static final String SERIALIZED_NAME_COUPONS_CREATED = "couponsCreated"; @SerializedName(SERIALIZED_NAME_COUPONS_CREATED) - private Long couponsCreated; + private Integer couponsCreated; public static final String SERIALIZED_NAME_TOTAL_COUPONS_CREATED = "totalCouponsCreated"; @SerializedName(SERIALIZED_NAME_TOTAL_COUPONS_CREATED) - private Long totalCouponsCreated; + private Integer totalCouponsCreated; public static final String SERIALIZED_NAME_REFERRALS_CREATED = "referralsCreated"; @SerializedName(SERIALIZED_NAME_REFERRALS_CREATED) - private Long referralsCreated; + private Integer referralsCreated; public static final String SERIALIZED_NAME_TOTAL_REFERRALS_CREATED = "totalReferralsCreated"; @SerializedName(SERIALIZED_NAME_TOTAL_REFERRALS_CREATED) - private Long totalReferralsCreated; + private Integer totalReferralsCreated; public static final String SERIALIZED_NAME_ADDED_LOYALTY_POINTS = "addedLoyaltyPoints"; @SerializedName(SERIALIZED_NAME_ADDED_LOYALTY_POINTS) @@ -330,7 +330,7 @@ public void setTotalCampaignRefundedDiscounts(BigDecimal totalCampaignRefundedDi } - public CampaignAnalytics campaignFreeItems(Long campaignFreeItems) { + public CampaignAnalytics campaignFreeItems(Integer campaignFreeItems) { this.campaignFreeItems = campaignFreeItems; return this; @@ -342,17 +342,17 @@ public CampaignAnalytics campaignFreeItems(Long campaignFreeItems) { **/ @ApiModelProperty(required = true, value = "Amount of free items given in the campaign.") - public Long getCampaignFreeItems() { + public Integer getCampaignFreeItems() { return campaignFreeItems; } - public void setCampaignFreeItems(Long campaignFreeItems) { + public void setCampaignFreeItems(Integer campaignFreeItems) { this.campaignFreeItems = campaignFreeItems; } - public CampaignAnalytics totalCampaignFreeItems(Long totalCampaignFreeItems) { + public CampaignAnalytics totalCampaignFreeItems(Integer totalCampaignFreeItems) { this.totalCampaignFreeItems = totalCampaignFreeItems; return this; @@ -364,17 +364,17 @@ public CampaignAnalytics totalCampaignFreeItems(Long totalCampaignFreeItems) { **/ @ApiModelProperty(example = "86", required = true, value = "Amount of free items given in the campaign since it began.") - public Long getTotalCampaignFreeItems() { + public Integer getTotalCampaignFreeItems() { return totalCampaignFreeItems; } - public void setTotalCampaignFreeItems(Long totalCampaignFreeItems) { + public void setTotalCampaignFreeItems(Integer totalCampaignFreeItems) { this.totalCampaignFreeItems = totalCampaignFreeItems; } - public CampaignAnalytics couponRedemptions(Long couponRedemptions) { + public CampaignAnalytics couponRedemptions(Integer couponRedemptions) { this.couponRedemptions = couponRedemptions; return this; @@ -386,17 +386,17 @@ public CampaignAnalytics couponRedemptions(Long couponRedemptions) { **/ @ApiModelProperty(required = true, value = "Number of coupon redemptions in the campaign.") - public Long getCouponRedemptions() { + public Integer getCouponRedemptions() { return couponRedemptions; } - public void setCouponRedemptions(Long couponRedemptions) { + public void setCouponRedemptions(Integer couponRedemptions) { this.couponRedemptions = couponRedemptions; } - public CampaignAnalytics totalCouponRedemptions(Long totalCouponRedemptions) { + public CampaignAnalytics totalCouponRedemptions(Integer totalCouponRedemptions) { this.totalCouponRedemptions = totalCouponRedemptions; return this; @@ -408,17 +408,17 @@ public CampaignAnalytics totalCouponRedemptions(Long totalCouponRedemptions) { **/ @ApiModelProperty(required = true, value = "Number of coupon redemptions in the campaign since it began.") - public Long getTotalCouponRedemptions() { + public Integer getTotalCouponRedemptions() { return totalCouponRedemptions; } - public void setTotalCouponRedemptions(Long totalCouponRedemptions) { + public void setTotalCouponRedemptions(Integer totalCouponRedemptions) { this.totalCouponRedemptions = totalCouponRedemptions; } - public CampaignAnalytics couponRolledbackRedemptions(Long couponRolledbackRedemptions) { + public CampaignAnalytics couponRolledbackRedemptions(Integer couponRolledbackRedemptions) { this.couponRolledbackRedemptions = couponRolledbackRedemptions; return this; @@ -430,17 +430,17 @@ public CampaignAnalytics couponRolledbackRedemptions(Long couponRolledbackRedemp **/ @ApiModelProperty(required = true, value = "Number of coupon redemptions that have been rolled back (due to canceling closed session) in the campaign.") - public Long getCouponRolledbackRedemptions() { + public Integer getCouponRolledbackRedemptions() { return couponRolledbackRedemptions; } - public void setCouponRolledbackRedemptions(Long couponRolledbackRedemptions) { + public void setCouponRolledbackRedemptions(Integer couponRolledbackRedemptions) { this.couponRolledbackRedemptions = couponRolledbackRedemptions; } - public CampaignAnalytics totalCouponRolledbackRedemptions(Long totalCouponRolledbackRedemptions) { + public CampaignAnalytics totalCouponRolledbackRedemptions(Integer totalCouponRolledbackRedemptions) { this.totalCouponRolledbackRedemptions = totalCouponRolledbackRedemptions; return this; @@ -452,17 +452,17 @@ public CampaignAnalytics totalCouponRolledbackRedemptions(Long totalCouponRolled **/ @ApiModelProperty(required = true, value = "Number of coupon redemptions that have been rolled back (due to canceling closed session) in the campaign since it began.") - public Long getTotalCouponRolledbackRedemptions() { + public Integer getTotalCouponRolledbackRedemptions() { return totalCouponRolledbackRedemptions; } - public void setTotalCouponRolledbackRedemptions(Long totalCouponRolledbackRedemptions) { + public void setTotalCouponRolledbackRedemptions(Integer totalCouponRolledbackRedemptions) { this.totalCouponRolledbackRedemptions = totalCouponRolledbackRedemptions; } - public CampaignAnalytics referralRedemptions(Long referralRedemptions) { + public CampaignAnalytics referralRedemptions(Integer referralRedemptions) { this.referralRedemptions = referralRedemptions; return this; @@ -474,17 +474,17 @@ public CampaignAnalytics referralRedemptions(Long referralRedemptions) { **/ @ApiModelProperty(required = true, value = "Number of referral redemptions in the campaign.") - public Long getReferralRedemptions() { + public Integer getReferralRedemptions() { return referralRedemptions; } - public void setReferralRedemptions(Long referralRedemptions) { + public void setReferralRedemptions(Integer referralRedemptions) { this.referralRedemptions = referralRedemptions; } - public CampaignAnalytics totalReferralRedemptions(Long totalReferralRedemptions) { + public CampaignAnalytics totalReferralRedemptions(Integer totalReferralRedemptions) { this.totalReferralRedemptions = totalReferralRedemptions; return this; @@ -496,17 +496,17 @@ public CampaignAnalytics totalReferralRedemptions(Long totalReferralRedemptions) **/ @ApiModelProperty(required = true, value = "Number of referral redemptions in the campaign since it began.") - public Long getTotalReferralRedemptions() { + public Integer getTotalReferralRedemptions() { return totalReferralRedemptions; } - public void setTotalReferralRedemptions(Long totalReferralRedemptions) { + public void setTotalReferralRedemptions(Integer totalReferralRedemptions) { this.totalReferralRedemptions = totalReferralRedemptions; } - public CampaignAnalytics couponsCreated(Long couponsCreated) { + public CampaignAnalytics couponsCreated(Integer couponsCreated) { this.couponsCreated = couponsCreated; return this; @@ -518,17 +518,17 @@ public CampaignAnalytics couponsCreated(Long couponsCreated) { **/ @ApiModelProperty(required = true, value = "Number of coupons created in the campaign by the rule engine.") - public Long getCouponsCreated() { + public Integer getCouponsCreated() { return couponsCreated; } - public void setCouponsCreated(Long couponsCreated) { + public void setCouponsCreated(Integer couponsCreated) { this.couponsCreated = couponsCreated; } - public CampaignAnalytics totalCouponsCreated(Long totalCouponsCreated) { + public CampaignAnalytics totalCouponsCreated(Integer totalCouponsCreated) { this.totalCouponsCreated = totalCouponsCreated; return this; @@ -540,17 +540,17 @@ public CampaignAnalytics totalCouponsCreated(Long totalCouponsCreated) { **/ @ApiModelProperty(required = true, value = "Number of coupons created in the campaign by the rule engine since it began.") - public Long getTotalCouponsCreated() { + public Integer getTotalCouponsCreated() { return totalCouponsCreated; } - public void setTotalCouponsCreated(Long totalCouponsCreated) { + public void setTotalCouponsCreated(Integer totalCouponsCreated) { this.totalCouponsCreated = totalCouponsCreated; } - public CampaignAnalytics referralsCreated(Long referralsCreated) { + public CampaignAnalytics referralsCreated(Integer referralsCreated) { this.referralsCreated = referralsCreated; return this; @@ -562,17 +562,17 @@ public CampaignAnalytics referralsCreated(Long referralsCreated) { **/ @ApiModelProperty(required = true, value = "Number of referrals created in the campaign by the rule engine.") - public Long getReferralsCreated() { + public Integer getReferralsCreated() { return referralsCreated; } - public void setReferralsCreated(Long referralsCreated) { + public void setReferralsCreated(Integer referralsCreated) { this.referralsCreated = referralsCreated; } - public CampaignAnalytics totalReferralsCreated(Long totalReferralsCreated) { + public CampaignAnalytics totalReferralsCreated(Integer totalReferralsCreated) { this.totalReferralsCreated = totalReferralsCreated; return this; @@ -584,12 +584,12 @@ public CampaignAnalytics totalReferralsCreated(Long totalReferralsCreated) { **/ @ApiModelProperty(required = true, value = "Number of referrals created in the campaign by the rule engine since it began.") - public Long getTotalReferralsCreated() { + public Integer getTotalReferralsCreated() { return totalReferralsCreated; } - public void setTotalReferralsCreated(Long totalReferralsCreated) { + public void setTotalReferralsCreated(Integer totalReferralsCreated) { this.totalReferralsCreated = totalReferralsCreated; } diff --git a/src/main/java/one/talon/model/CampaignCollection.java b/src/main/java/one/talon/model/CampaignCollection.java index f06493ea..e119c161 100644 --- a/src/main/java/one/talon/model/CampaignCollection.java +++ b/src/main/java/one/talon/model/CampaignCollection.java @@ -34,7 +34,7 @@ public class CampaignCollection { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -42,7 +42,7 @@ public class CampaignCollection { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_MODIFIED = "modified"; @SerializedName(SERIALIZED_NAME_MODIFIED) @@ -58,43 +58,43 @@ public class CampaignCollection { public static final String SERIALIZED_NAME_MODIFIED_BY = "modifiedBy"; @SerializedName(SERIALIZED_NAME_MODIFIED_BY) - private Long modifiedBy; + private Integer modifiedBy; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Long createdBy; + private Integer createdBy; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_PAYLOAD = "payload"; @SerializedName(SERIALIZED_NAME_PAYLOAD) private List payload = null; - public CampaignCollection id(Long id) { + public CampaignCollection id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -121,7 +121,7 @@ public void setCreated(OffsetDateTime created) { } - public CampaignCollection accountId(Long accountId) { + public CampaignCollection accountId(Integer accountId) { this.accountId = accountId; return this; @@ -133,12 +133,12 @@ public CampaignCollection accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } @@ -210,7 +210,7 @@ public void setName(String name) { } - public CampaignCollection modifiedBy(Long modifiedBy) { + public CampaignCollection modifiedBy(Integer modifiedBy) { this.modifiedBy = modifiedBy; return this; @@ -223,17 +223,17 @@ public CampaignCollection modifiedBy(Long modifiedBy) { @javax.annotation.Nullable @ApiModelProperty(example = "48", value = "ID of the user who last updated this effect if available.") - public Long getModifiedBy() { + public Integer getModifiedBy() { return modifiedBy; } - public void setModifiedBy(Long modifiedBy) { + public void setModifiedBy(Integer modifiedBy) { this.modifiedBy = modifiedBy; } - public CampaignCollection createdBy(Long createdBy) { + public CampaignCollection createdBy(Integer createdBy) { this.createdBy = createdBy; return this; @@ -245,17 +245,17 @@ public CampaignCollection createdBy(Long createdBy) { **/ @ApiModelProperty(example = "134", required = true, value = "ID of the user who created this effect.") - public Long getCreatedBy() { + public Integer getCreatedBy() { return createdBy; } - public void setCreatedBy(Long createdBy) { + public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } - public CampaignCollection applicationId(Long applicationId) { + public CampaignCollection applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -268,17 +268,17 @@ public CampaignCollection applicationId(Long applicationId) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } - public CampaignCollection campaignId(Long campaignId) { + public CampaignCollection campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -291,12 +291,12 @@ public CampaignCollection campaignId(Long campaignId) { @javax.annotation.Nullable @ApiModelProperty(example = "7", value = "The ID of the campaign that owns this entity.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } diff --git a/src/main/java/one/talon/model/CampaignCollectionWithoutPayload.java b/src/main/java/one/talon/model/CampaignCollectionWithoutPayload.java index c484a4a8..474718b4 100644 --- a/src/main/java/one/talon/model/CampaignCollectionWithoutPayload.java +++ b/src/main/java/one/talon/model/CampaignCollectionWithoutPayload.java @@ -32,7 +32,7 @@ public class CampaignCollectionWithoutPayload { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -40,7 +40,7 @@ public class CampaignCollectionWithoutPayload { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_MODIFIED = "modified"; @SerializedName(SERIALIZED_NAME_MODIFIED) @@ -56,39 +56,39 @@ public class CampaignCollectionWithoutPayload { public static final String SERIALIZED_NAME_MODIFIED_BY = "modifiedBy"; @SerializedName(SERIALIZED_NAME_MODIFIED_BY) - private Long modifiedBy; + private Integer modifiedBy; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Long createdBy; + private Integer createdBy; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; - public CampaignCollectionWithoutPayload id(Long id) { + public CampaignCollectionWithoutPayload id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -115,7 +115,7 @@ public void setCreated(OffsetDateTime created) { } - public CampaignCollectionWithoutPayload accountId(Long accountId) { + public CampaignCollectionWithoutPayload accountId(Integer accountId) { this.accountId = accountId; return this; @@ -127,12 +127,12 @@ public CampaignCollectionWithoutPayload accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } @@ -204,7 +204,7 @@ public void setName(String name) { } - public CampaignCollectionWithoutPayload modifiedBy(Long modifiedBy) { + public CampaignCollectionWithoutPayload modifiedBy(Integer modifiedBy) { this.modifiedBy = modifiedBy; return this; @@ -217,17 +217,17 @@ public CampaignCollectionWithoutPayload modifiedBy(Long modifiedBy) { @javax.annotation.Nullable @ApiModelProperty(example = "48", value = "ID of the user who last updated this effect if available.") - public Long getModifiedBy() { + public Integer getModifiedBy() { return modifiedBy; } - public void setModifiedBy(Long modifiedBy) { + public void setModifiedBy(Integer modifiedBy) { this.modifiedBy = modifiedBy; } - public CampaignCollectionWithoutPayload createdBy(Long createdBy) { + public CampaignCollectionWithoutPayload createdBy(Integer createdBy) { this.createdBy = createdBy; return this; @@ -239,17 +239,17 @@ public CampaignCollectionWithoutPayload createdBy(Long createdBy) { **/ @ApiModelProperty(example = "134", required = true, value = "ID of the user who created this effect.") - public Long getCreatedBy() { + public Integer getCreatedBy() { return createdBy; } - public void setCreatedBy(Long createdBy) { + public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } - public CampaignCollectionWithoutPayload applicationId(Long applicationId) { + public CampaignCollectionWithoutPayload applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -262,17 +262,17 @@ public CampaignCollectionWithoutPayload applicationId(Long applicationId) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } - public CampaignCollectionWithoutPayload campaignId(Long campaignId) { + public CampaignCollectionWithoutPayload campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -285,12 +285,12 @@ public CampaignCollectionWithoutPayload campaignId(Long campaignId) { @javax.annotation.Nullable @ApiModelProperty(example = "7", value = "The ID of the campaign that owns this entity.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } diff --git a/src/main/java/one/talon/model/CampaignCopy.java b/src/main/java/one/talon/model/CampaignCopy.java index 8e5f5cbb..521c92cc 100644 --- a/src/main/java/one/talon/model/CampaignCopy.java +++ b/src/main/java/one/talon/model/CampaignCopy.java @@ -38,7 +38,7 @@ public class CampaignCopy { public static final String SERIALIZED_NAME_APPLICATION_IDS = "applicationIds"; @SerializedName(SERIALIZED_NAME_APPLICATION_IDS) - private List applicationIds = new ArrayList(); + private List applicationIds = new ArrayList(); public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -58,7 +58,7 @@ public class CampaignCopy { public static final String SERIALIZED_NAME_EVALUATION_GROUP_ID = "evaluationGroupId"; @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_ID) - private Long evaluationGroupId; + private Integer evaluationGroupId; public CampaignCopy name(String name) { @@ -84,13 +84,13 @@ public void setName(String name) { } - public CampaignCopy applicationIds(List applicationIds) { + public CampaignCopy applicationIds(List applicationIds) { this.applicationIds = applicationIds; return this; } - public CampaignCopy addApplicationIdsItem(Long applicationIdsItem) { + public CampaignCopy addApplicationIdsItem(Integer applicationIdsItem) { this.applicationIds.add(applicationIdsItem); return this; } @@ -101,12 +101,12 @@ public CampaignCopy addApplicationIdsItem(Long applicationIdsItem) { **/ @ApiModelProperty(example = "[1, 2, 3]", required = true, value = "Application IDs of the applications to which a campaign should be copied to.") - public List getApplicationIds() { + public List getApplicationIds() { return applicationIds; } - public void setApplicationIds(List applicationIds) { + public void setApplicationIds(List applicationIds) { this.applicationIds = applicationIds; } @@ -211,7 +211,7 @@ public void setTags(List tags) { } - public CampaignCopy evaluationGroupId(Long evaluationGroupId) { + public CampaignCopy evaluationGroupId(Integer evaluationGroupId) { this.evaluationGroupId = evaluationGroupId; return this; @@ -224,12 +224,12 @@ public CampaignCopy evaluationGroupId(Long evaluationGroupId) { @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "The ID of the campaign evaluation group the campaign belongs to.") - public Long getEvaluationGroupId() { + public Integer getEvaluationGroupId() { return evaluationGroupId; } - public void setEvaluationGroupId(Long evaluationGroupId) { + public void setEvaluationGroupId(Integer evaluationGroupId) { this.evaluationGroupId = evaluationGroupId; } diff --git a/src/main/java/one/talon/model/CampaignDeactivationRequest.java b/src/main/java/one/talon/model/CampaignDeactivationRequest.java new file mode 100644 index 00000000..17bc3de7 --- /dev/null +++ b/src/main/java/one/talon/model/CampaignDeactivationRequest.java @@ -0,0 +1,105 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * CampaignDeactivationRequest + */ + +public class CampaignDeactivationRequest { + public static final String SERIALIZED_NAME_USER_IDS = "userIds"; + @SerializedName(SERIALIZED_NAME_USER_IDS) + private List userIds = new ArrayList(); + + + public CampaignDeactivationRequest userIds(List userIds) { + + this.userIds = userIds; + return this; + } + + public CampaignDeactivationRequest addUserIdsItem(Integer userIdsItem) { + this.userIds.add(userIdsItem); + return this; + } + + /** + * The list of IDs of the users receiving the deactivation request emails. + * @return userIds + **/ + @ApiModelProperty(example = "[1, 2, 3]", required = true, value = "The list of IDs of the users receiving the deactivation request emails.") + + public List getUserIds() { + return userIds; + } + + + public void setUserIds(List userIds) { + this.userIds = userIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CampaignDeactivationRequest campaignDeactivationRequest = (CampaignDeactivationRequest) o; + return Objects.equals(this.userIds, campaignDeactivationRequest.userIds); + } + + @Override + public int hashCode() { + return Objects.hash(userIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CampaignDeactivationRequest {\n"); + sb.append(" userIds: ").append(toIndentedString(userIds)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/CampaignDetail.java b/src/main/java/one/talon/model/CampaignDetail.java index a7f31bd3..54115c5f 100644 --- a/src/main/java/one/talon/model/CampaignDetail.java +++ b/src/main/java/one/talon/model/CampaignDetail.java @@ -31,14 +31,14 @@ public class CampaignDetail { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_CAMPAIGN_NAME = "campaignName"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_NAME) private String campaignName; - public CampaignDetail campaignId(Long campaignId) { + public CampaignDetail campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -51,12 +51,12 @@ public CampaignDetail campaignId(Long campaignId) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the campaign that references the application cart item filter.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } diff --git a/src/main/java/one/talon/model/CampaignEntity.java b/src/main/java/one/talon/model/CampaignEntity.java index b62db3b0..59356755 100644 --- a/src/main/java/one/talon/model/CampaignEntity.java +++ b/src/main/java/one/talon/model/CampaignEntity.java @@ -31,10 +31,10 @@ public class CampaignEntity { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; - public CampaignEntity campaignId(Long campaignId) { + public CampaignEntity campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -46,12 +46,12 @@ public CampaignEntity campaignId(Long campaignId) { **/ @ApiModelProperty(example = "211", required = true, value = "The ID of the campaign that owns this entity.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } diff --git a/src/main/java/one/talon/model/CampaignEvaluationGroup.java b/src/main/java/one/talon/model/CampaignEvaluationGroup.java index accd837f..545d8569 100644 --- a/src/main/java/one/talon/model/CampaignEvaluationGroup.java +++ b/src/main/java/one/talon/model/CampaignEvaluationGroup.java @@ -31,7 +31,7 @@ public class CampaignEvaluationGroup { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -39,7 +39,7 @@ public class CampaignEvaluationGroup { public static final String SERIALIZED_NAME_PARENT_ID = "parentId"; @SerializedName(SERIALIZED_NAME_PARENT_ID) - private Long parentId; + private Integer parentId; public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -157,10 +157,10 @@ public EvaluationScopeEnum read(final JsonReader jsonReader) throws IOException public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; - public CampaignEvaluationGroup applicationId(Long applicationId) { + public CampaignEvaluationGroup applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -172,12 +172,12 @@ public CampaignEvaluationGroup applicationId(Long applicationId) { **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } @@ -204,7 +204,7 @@ public void setName(String name) { } - public CampaignEvaluationGroup parentId(Long parentId) { + public CampaignEvaluationGroup parentId(Integer parentId) { this.parentId = parentId; return this; @@ -217,12 +217,12 @@ public CampaignEvaluationGroup parentId(Long parentId) { **/ @ApiModelProperty(example = "2", required = true, value = "The ID of the parent group that contains the campaign evaluation group.") - public Long getParentId() { + public Integer getParentId() { return parentId; } - public void setParentId(Long parentId) { + public void setParentId(Integer parentId) { this.parentId = parentId; } @@ -316,7 +316,7 @@ public void setLocked(Boolean locked) { } - public CampaignEvaluationGroup id(Long id) { + public CampaignEvaluationGroup id(Integer id) { this.id = id; return this; @@ -328,12 +328,12 @@ public CampaignEvaluationGroup id(Long id) { **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/src/main/java/one/talon/model/CampaignEvaluationPosition.java b/src/main/java/one/talon/model/CampaignEvaluationPosition.java index 53d8b831..5d3ca6c9 100644 --- a/src/main/java/one/talon/model/CampaignEvaluationPosition.java +++ b/src/main/java/one/talon/model/CampaignEvaluationPosition.java @@ -32,7 +32,7 @@ public class CampaignEvaluationPosition { public static final String SERIALIZED_NAME_GROUP_ID = "groupId"; @SerializedName(SERIALIZED_NAME_GROUP_ID) - private Long groupId; + private Integer groupId; public static final String SERIALIZED_NAME_GROUP_NAME = "groupName"; @SerializedName(SERIALIZED_NAME_GROUP_NAME) @@ -40,10 +40,10 @@ public class CampaignEvaluationPosition { public static final String SERIALIZED_NAME_POSITION = "position"; @SerializedName(SERIALIZED_NAME_POSITION) - private Long position; + private Integer position; - public CampaignEvaluationPosition groupId(Long groupId) { + public CampaignEvaluationPosition groupId(Integer groupId) { this.groupId = groupId; return this; @@ -55,12 +55,12 @@ public CampaignEvaluationPosition groupId(Long groupId) { **/ @ApiModelProperty(example = "2", required = true, value = "The ID of the campaign evaluation group the campaign belongs to.") - public Long getGroupId() { + public Integer getGroupId() { return groupId; } - public void setGroupId(Long groupId) { + public void setGroupId(Integer groupId) { this.groupId = groupId; } @@ -87,7 +87,7 @@ public void setGroupName(String groupName) { } - public CampaignEvaluationPosition position(Long position) { + public CampaignEvaluationPosition position(Integer position) { this.position = position; return this; @@ -99,12 +99,12 @@ public CampaignEvaluationPosition position(Long position) { **/ @ApiModelProperty(example = "2", required = true, value = "The position of the campaign node in its parent group.") - public Long getPosition() { + public Integer getPosition() { return position; } - public void setPosition(Long position) { + public void setPosition(Integer position) { this.position = position; } diff --git a/src/main/java/one/talon/model/CampaignEvaluationTreeChangedNotification.java b/src/main/java/one/talon/model/CampaignEvaluationTreeChangedNotification.java index 13bd42da..eeac3faa 100644 --- a/src/main/java/one/talon/model/CampaignEvaluationTreeChangedNotification.java +++ b/src/main/java/one/talon/model/CampaignEvaluationTreeChangedNotification.java @@ -33,7 +33,7 @@ public class CampaignEvaluationTreeChangedNotification { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_OLD_EVALUATION_TREE = "oldEvaluationTree"; @SerializedName(SERIALIZED_NAME_OLD_EVALUATION_TREE) @@ -44,7 +44,7 @@ public class CampaignEvaluationTreeChangedNotification { private CampaignSet evaluationTree; - public CampaignEvaluationTreeChangedNotification applicationId(Long applicationId) { + public CampaignEvaluationTreeChangedNotification applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -56,12 +56,12 @@ public CampaignEvaluationTreeChangedNotification applicationId(Long applicationI **/ @ApiModelProperty(example = "78", required = true, value = "The ID of the Application whose campaign evaluation tree changed.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } diff --git a/src/main/java/one/talon/model/CampaignGroup.java b/src/main/java/one/talon/model/CampaignGroup.java index 9ce165f9..7f12e32b 100644 --- a/src/main/java/one/talon/model/CampaignGroup.java +++ b/src/main/java/one/talon/model/CampaignGroup.java @@ -34,7 +34,7 @@ public class CampaignGroup { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -46,7 +46,7 @@ public class CampaignGroup { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -58,31 +58,31 @@ public class CampaignGroup { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public static final String SERIALIZED_NAME_CAMPAIGN_IDS = "campaignIds"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_IDS) - private List campaignIds = null; + private List campaignIds = null; - public CampaignGroup id(Long id) { + public CampaignGroup id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -131,7 +131,7 @@ public void setModified(OffsetDateTime modified) { } - public CampaignGroup accountId(Long accountId) { + public CampaignGroup accountId(Integer accountId) { this.accountId = accountId; return this; @@ -143,12 +143,12 @@ public CampaignGroup accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } @@ -198,15 +198,15 @@ public void setDescription(String description) { } - public CampaignGroup subscribedApplicationsIds(List subscribedApplicationsIds) { + public CampaignGroup subscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public CampaignGroup addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { + public CampaignGroup addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; @@ -219,25 +219,25 @@ public CampaignGroup addSubscribedApplicationsIdsItem(Long subscribedApplication @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of IDs of the Applications that this campaign access group is enabled for.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } - public CampaignGroup campaignIds(List campaignIds) { + public CampaignGroup campaignIds(List campaignIds) { this.campaignIds = campaignIds; return this; } - public CampaignGroup addCampaignIdsItem(Long campaignIdsItem) { + public CampaignGroup addCampaignIdsItem(Integer campaignIdsItem) { if (this.campaignIds == null) { - this.campaignIds = new ArrayList(); + this.campaignIds = new ArrayList(); } this.campaignIds.add(campaignIdsItem); return this; @@ -250,12 +250,12 @@ public CampaignGroup addCampaignIdsItem(Long campaignIdsItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[4, 6, 8]", value = "A list of IDs of the campaigns that are part of the campaign access group.") - public List getCampaignIds() { + public List getCampaignIds() { return campaignIds; } - public void setCampaignIds(List campaignIds) { + public void setCampaignIds(List campaignIds) { this.campaignIds = campaignIds; } diff --git a/src/main/java/one/talon/model/CampaignGroupEntity.java b/src/main/java/one/talon/model/CampaignGroupEntity.java index a9e38036..d4c78772 100644 --- a/src/main/java/one/talon/model/CampaignGroupEntity.java +++ b/src/main/java/one/talon/model/CampaignGroupEntity.java @@ -33,18 +33,18 @@ public class CampaignGroupEntity { public static final String SERIALIZED_NAME_CAMPAIGN_GROUPS = "campaignGroups"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_GROUPS) - private List campaignGroups = null; + private List campaignGroups = null; - public CampaignGroupEntity campaignGroups(List campaignGroups) { + public CampaignGroupEntity campaignGroups(List campaignGroups) { this.campaignGroups = campaignGroups; return this; } - public CampaignGroupEntity addCampaignGroupsItem(Long campaignGroupsItem) { + public CampaignGroupEntity addCampaignGroupsItem(Integer campaignGroupsItem) { if (this.campaignGroups == null) { - this.campaignGroups = new ArrayList(); + this.campaignGroups = new ArrayList(); } this.campaignGroups.add(campaignGroupsItem); return this; @@ -57,12 +57,12 @@ public CampaignGroupEntity addCampaignGroupsItem(Long campaignGroupsItem) { @javax.annotation.Nullable @ApiModelProperty(value = "The IDs of the campaign groups that own this entity.") - public List getCampaignGroups() { + public List getCampaignGroups() { return campaignGroups; } - public void setCampaignGroups(List campaignGroups) { + public void setCampaignGroups(List campaignGroups) { this.campaignGroups = campaignGroups; } diff --git a/src/main/java/one/talon/model/CampaignNotificationPolicy.java b/src/main/java/one/talon/model/CampaignNotificationPolicy.java index 6104059f..fb30bfe5 100644 --- a/src/main/java/one/talon/model/CampaignNotificationPolicy.java +++ b/src/main/java/one/talon/model/CampaignNotificationPolicy.java @@ -39,7 +39,7 @@ public class CampaignNotificationPolicy { public static final String SERIALIZED_NAME_BATCH_SIZE = "batchSize"; @SerializedName(SERIALIZED_NAME_BATCH_SIZE) - private Long batchSize = 5l; + private Integer batchSize; public CampaignNotificationPolicy name(String name) { @@ -87,7 +87,7 @@ public void setBatchingEnabled(Boolean batchingEnabled) { } - public CampaignNotificationPolicy batchSize(Long batchSize) { + public CampaignNotificationPolicy batchSize(Integer batchSize) { this.batchSize = batchSize; return this; @@ -100,12 +100,12 @@ public CampaignNotificationPolicy batchSize(Long batchSize) { @javax.annotation.Nullable @ApiModelProperty(example = "5", value = "The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.") - public Long getBatchSize() { + public Integer getBatchSize() { return batchSize; } - public void setBatchSize(Long batchSize) { + public void setBatchSize(Integer batchSize) { this.batchSize = batchSize; } diff --git a/src/main/java/one/talon/model/CampaignSet.java b/src/main/java/one/talon/model/CampaignSet.java index 99d60d5c..bbebb872 100644 --- a/src/main/java/one/talon/model/CampaignSet.java +++ b/src/main/java/one/talon/model/CampaignSet.java @@ -32,15 +32,15 @@ public class CampaignSet { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) - private Long version; + private Integer version; public static final String SERIALIZED_NAME_SET = "set"; @SerializedName(SERIALIZED_NAME_SET) @@ -51,7 +51,7 @@ public class CampaignSet { private String updatedBy; - public CampaignSet applicationId(Long applicationId) { + public CampaignSet applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -63,39 +63,39 @@ public CampaignSet applicationId(Long applicationId) { **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } - public CampaignSet id(Long id) { + public CampaignSet id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } - public CampaignSet version(Long version) { + public CampaignSet version(Integer version) { this.version = version; return this; @@ -108,12 +108,12 @@ public CampaignSet version(Long version) { **/ @ApiModelProperty(example = "3", required = true, value = "Version of the campaign set.") - public Long getVersion() { + public Integer getVersion() { return version; } - public void setVersion(Long version) { + public void setVersion(Integer version) { this.version = version; } diff --git a/src/main/java/one/talon/model/CampaignSetBranchNode.java b/src/main/java/one/talon/model/CampaignSetBranchNode.java index 59c7f5c2..c15e86dd 100644 --- a/src/main/java/one/talon/model/CampaignSetBranchNode.java +++ b/src/main/java/one/talon/model/CampaignSetBranchNode.java @@ -142,7 +142,7 @@ public OperatorEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_GROUP_ID = "groupId"; @SerializedName(SERIALIZED_NAME_GROUP_ID) - private Long groupId; + private Integer groupId; public static final String SERIALIZED_NAME_LOCKED = "locked"; @SerializedName(SERIALIZED_NAME_LOCKED) @@ -352,7 +352,7 @@ public void setElements(List elements) { } - public CampaignSetBranchNode groupId(Long groupId) { + public CampaignSetBranchNode groupId(Integer groupId) { this.groupId = groupId; return this; @@ -364,12 +364,12 @@ public CampaignSetBranchNode groupId(Long groupId) { **/ @ApiModelProperty(required = true, value = "The ID of the campaign set.") - public Long getGroupId() { + public Integer getGroupId() { return groupId; } - public void setGroupId(Long groupId) { + public void setGroupId(Integer groupId) { this.groupId = groupId; } diff --git a/src/main/java/one/talon/model/CampaignSetLeafNode.java b/src/main/java/one/talon/model/CampaignSetLeafNode.java index 2110b4b8..f928bf4c 100644 --- a/src/main/java/one/talon/model/CampaignSetLeafNode.java +++ b/src/main/java/one/talon/model/CampaignSetLeafNode.java @@ -80,7 +80,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public CampaignSetLeafNode type(TypeEnum type) { @@ -105,7 +105,7 @@ public void setType(TypeEnum type) { } - public CampaignSetLeafNode campaignId(Long campaignId) { + public CampaignSetLeafNode campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -117,12 +117,12 @@ public CampaignSetLeafNode campaignId(Long campaignId) { **/ @ApiModelProperty(required = true, value = "ID of the campaign") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } diff --git a/src/main/java/one/talon/model/CampaignStoreBudget.java b/src/main/java/one/talon/model/CampaignStoreBudget.java index 665c3165..dffe6c67 100644 --- a/src/main/java/one/talon/model/CampaignStoreBudget.java +++ b/src/main/java/one/talon/model/CampaignStoreBudget.java @@ -35,7 +35,7 @@ public class CampaignStoreBudget { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -43,35 +43,35 @@ public class CampaignStoreBudget { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_STORE_ID = "storeId"; @SerializedName(SERIALIZED_NAME_STORE_ID) - private Long storeId; + private Integer storeId; public static final String SERIALIZED_NAME_LIMITS = "limits"; @SerializedName(SERIALIZED_NAME_LIMITS) private List limits = new ArrayList(); - public CampaignStoreBudget id(Long id) { + public CampaignStoreBudget id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -98,7 +98,7 @@ public void setCreated(OffsetDateTime created) { } - public CampaignStoreBudget campaignId(Long campaignId) { + public CampaignStoreBudget campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -110,17 +110,17 @@ public CampaignStoreBudget campaignId(Long campaignId) { **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the campaign that owns this entity.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } - public CampaignStoreBudget storeId(Long storeId) { + public CampaignStoreBudget storeId(Integer storeId) { this.storeId = storeId; return this; @@ -132,12 +132,12 @@ public CampaignStoreBudget storeId(Long storeId) { **/ @ApiModelProperty(required = true, value = "The ID of the store.") - public Long getStoreId() { + public Integer getStoreId() { return storeId; } - public void setStoreId(Long storeId) { + public void setStoreId(Integer storeId) { this.storeId = storeId; } diff --git a/src/main/java/one/talon/model/CampaignTemplate.java b/src/main/java/one/talon/model/CampaignTemplate.java index 93459473..91ad9d71 100644 --- a/src/main/java/one/talon/model/CampaignTemplate.java +++ b/src/main/java/one/talon/model/CampaignTemplate.java @@ -39,7 +39,7 @@ public class CampaignTemplate { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -47,11 +47,11 @@ public class CampaignTemplate { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Long userId; + private Integer userId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -128,7 +128,7 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ACTIVE_RULESET_ID = "activeRulesetId"; @SerializedName(SERIALIZED_NAME_ACTIVE_RULESET_ID) - private Long activeRulesetId; + private Integer activeRulesetId; public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @@ -215,7 +215,7 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_APPLICATIONS_IDS = "applicationsIds"; @SerializedName(SERIALIZED_NAME_APPLICATIONS_IDS) - private List applicationsIds = new ArrayList(); + private List applicationsIds = new ArrayList(); public static final String SERIALIZED_NAME_CAMPAIGN_COLLECTIONS = "campaignCollections"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_COLLECTIONS) @@ -223,7 +223,7 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_DEFAULT_CAMPAIGN_GROUP_ID = "defaultCampaignGroupId"; @SerializedName(SERIALIZED_NAME_DEFAULT_CAMPAIGN_GROUP_ID) - private Long defaultCampaignGroupId; + private Integer defaultCampaignGroupId; /** * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. @@ -286,31 +286,31 @@ public CampaignTypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_VALID_APPLICATION_IDS = "validApplicationIds"; @SerializedName(SERIALIZED_NAME_VALID_APPLICATION_IDS) - private List validApplicationIds = new ArrayList(); + private List validApplicationIds = new ArrayList(); public static final String SERIALIZED_NAME_IS_USER_FAVORITE = "isUserFavorite"; @SerializedName(SERIALIZED_NAME_IS_USER_FAVORITE) private Boolean isUserFavorite = false; - public CampaignTemplate id(Long id) { + public CampaignTemplate id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -337,7 +337,7 @@ public void setCreated(OffsetDateTime created) { } - public CampaignTemplate accountId(Long accountId) { + public CampaignTemplate accountId(Integer accountId) { this.accountId = accountId; return this; @@ -349,17 +349,17 @@ public CampaignTemplate accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } - public CampaignTemplate userId(Long userId) { + public CampaignTemplate userId(Integer userId) { this.userId = userId; return this; @@ -371,12 +371,12 @@ public CampaignTemplate userId(Long userId) { **/ @ApiModelProperty(example = "388", required = true, value = "The ID of the user associated with this entity.") - public Long getUserId() { + public Integer getUserId() { return userId; } - public void setUserId(Long userId) { + public void setUserId(Integer userId) { this.userId = userId; } @@ -515,7 +515,7 @@ public void setState(StateEnum state) { } - public CampaignTemplate activeRulesetId(Long activeRulesetId) { + public CampaignTemplate activeRulesetId(Integer activeRulesetId) { this.activeRulesetId = activeRulesetId; return this; @@ -528,12 +528,12 @@ public CampaignTemplate activeRulesetId(Long activeRulesetId) { @javax.annotation.Nullable @ApiModelProperty(example = "5", value = "The ID of the ruleset this campaign template will use.") - public Long getActiveRulesetId() { + public Integer getActiveRulesetId() { return activeRulesetId; } - public void setActiveRulesetId(Long activeRulesetId) { + public void setActiveRulesetId(Integer activeRulesetId) { this.activeRulesetId = activeRulesetId; } @@ -731,13 +731,13 @@ public void setTemplateParams(List templateParams) { } - public CampaignTemplate applicationsIds(List applicationsIds) { + public CampaignTemplate applicationsIds(List applicationsIds) { this.applicationsIds = applicationsIds; return this; } - public CampaignTemplate addApplicationsIdsItem(Long applicationsIdsItem) { + public CampaignTemplate addApplicationsIdsItem(Integer applicationsIdsItem) { this.applicationsIds.add(applicationsIdsItem); return this; } @@ -748,12 +748,12 @@ public CampaignTemplate addApplicationsIdsItem(Long applicationsIdsItem) { **/ @ApiModelProperty(example = "[1, 2, 3, 1, 2, 3]", required = true, value = "A list of IDs of the Applications that are subscribed to this campaign template.") - public List getApplicationsIds() { + public List getApplicationsIds() { return applicationsIds; } - public void setApplicationsIds(List applicationsIds) { + public void setApplicationsIds(List applicationsIds) { this.applicationsIds = applicationsIds; } @@ -789,7 +789,7 @@ public void setCampaignCollections(List campaignColl } - public CampaignTemplate defaultCampaignGroupId(Long defaultCampaignGroupId) { + public CampaignTemplate defaultCampaignGroupId(Integer defaultCampaignGroupId) { this.defaultCampaignGroupId = defaultCampaignGroupId; return this; @@ -802,12 +802,12 @@ public CampaignTemplate defaultCampaignGroupId(Long defaultCampaignGroupId) { @javax.annotation.Nullable @ApiModelProperty(example = "42", value = "The default campaign group ID.") - public Long getDefaultCampaignGroupId() { + public Integer getDefaultCampaignGroupId() { return defaultCampaignGroupId; } - public void setDefaultCampaignGroupId(Long defaultCampaignGroupId) { + public void setDefaultCampaignGroupId(Integer defaultCampaignGroupId) { this.defaultCampaignGroupId = defaultCampaignGroupId; } @@ -880,13 +880,13 @@ public void setUpdatedBy(String updatedBy) { } - public CampaignTemplate validApplicationIds(List validApplicationIds) { + public CampaignTemplate validApplicationIds(List validApplicationIds) { this.validApplicationIds = validApplicationIds; return this; } - public CampaignTemplate addValidApplicationIdsItem(Long validApplicationIdsItem) { + public CampaignTemplate addValidApplicationIdsItem(Integer validApplicationIdsItem) { this.validApplicationIds.add(validApplicationIdsItem); return this; } @@ -897,12 +897,12 @@ public CampaignTemplate addValidApplicationIdsItem(Long validApplicationIdsItem) **/ @ApiModelProperty(example = "[1, 2, 3]", required = true, value = "The IDs of the Applications that are related to this entity.") - public List getValidApplicationIds() { + public List getValidApplicationIds() { return validApplicationIds; } - public void setValidApplicationIds(List validApplicationIds) { + public void setValidApplicationIds(List validApplicationIds) { this.validApplicationIds = validApplicationIds; } diff --git a/src/main/java/one/talon/model/CampaignTemplateCouponReservationSettings.java b/src/main/java/one/talon/model/CampaignTemplateCouponReservationSettings.java index 2fa8a087..3f1385d5 100644 --- a/src/main/java/one/talon/model/CampaignTemplateCouponReservationSettings.java +++ b/src/main/java/one/talon/model/CampaignTemplateCouponReservationSettings.java @@ -31,14 +31,14 @@ public class CampaignTemplateCouponReservationSettings { public static final String SERIALIZED_NAME_RESERVATION_LIMIT = "reservationLimit"; @SerializedName(SERIALIZED_NAME_RESERVATION_LIMIT) - private Long reservationLimit; + private Integer reservationLimit; public static final String SERIALIZED_NAME_IS_RESERVATION_MANDATORY = "isReservationMandatory"; @SerializedName(SERIALIZED_NAME_IS_RESERVATION_MANDATORY) private Boolean isReservationMandatory = false; - public CampaignTemplateCouponReservationSettings reservationLimit(Long reservationLimit) { + public CampaignTemplateCouponReservationSettings reservationLimit(Integer reservationLimit) { this.reservationLimit = reservationLimit; return this; @@ -53,12 +53,12 @@ public CampaignTemplateCouponReservationSettings reservationLimit(Long reservati @javax.annotation.Nullable @ApiModelProperty(example = "45", value = "The number of reservations that can be made with this coupon code. ") - public Long getReservationLimit() { + public Integer getReservationLimit() { return reservationLimit; } - public void setReservationLimit(Long reservationLimit) { + public void setReservationLimit(Integer reservationLimit) { this.reservationLimit = reservationLimit; } diff --git a/src/main/java/one/talon/model/CampaignTemplateParams.java b/src/main/java/one/talon/model/CampaignTemplateParams.java index 6d83d4de..df3bc4d2 100644 --- a/src/main/java/one/talon/model/CampaignTemplateParams.java +++ b/src/main/java/one/talon/model/CampaignTemplateParams.java @@ -98,7 +98,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ATTRIBUTE_ID = "attributeId"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_ID) - private Long attributeId; + private Integer attributeId; public CampaignTemplateParams name(String name) { @@ -167,7 +167,7 @@ public void setDescription(String description) { } - public CampaignTemplateParams attributeId(Long attributeId) { + public CampaignTemplateParams attributeId(Integer attributeId) { this.attributeId = attributeId; return this; @@ -180,12 +180,12 @@ public CampaignTemplateParams attributeId(Long attributeId) { @javax.annotation.Nullable @ApiModelProperty(example = "42", value = "ID of the corresponding attribute.") - public Long getAttributeId() { + public Integer getAttributeId() { return attributeId; } - public void setAttributeId(Long attributeId) { + public void setAttributeId(Integer attributeId) { this.attributeId = attributeId; } diff --git a/src/main/java/one/talon/model/CampaignVersions.java b/src/main/java/one/talon/model/CampaignVersions.java index 3ddf3971..72929d62 100644 --- a/src/main/java/one/talon/model/CampaignVersions.java +++ b/src/main/java/one/talon/model/CampaignVersions.java @@ -82,23 +82,23 @@ public RevisionFrontendStateEnum read(final JsonReader jsonReader) throws IOExce public static final String SERIALIZED_NAME_ACTIVE_REVISION_ID = "activeRevisionId"; @SerializedName(SERIALIZED_NAME_ACTIVE_REVISION_ID) - private Long activeRevisionId; + private Integer activeRevisionId; public static final String SERIALIZED_NAME_ACTIVE_REVISION_VERSION_ID = "activeRevisionVersionId"; @SerializedName(SERIALIZED_NAME_ACTIVE_REVISION_VERSION_ID) - private Long activeRevisionVersionId; + private Integer activeRevisionVersionId; public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) - private Long version; + private Integer version; public static final String SERIALIZED_NAME_CURRENT_REVISION_ID = "currentRevisionId"; @SerializedName(SERIALIZED_NAME_CURRENT_REVISION_ID) - private Long currentRevisionId; + private Integer currentRevisionId; public static final String SERIALIZED_NAME_CURRENT_REVISION_VERSION_ID = "currentRevisionVersionId"; @SerializedName(SERIALIZED_NAME_CURRENT_REVISION_VERSION_ID) - private Long currentRevisionVersionId; + private Integer currentRevisionVersionId; public static final String SERIALIZED_NAME_STAGE_REVISION = "stageRevision"; @SerializedName(SERIALIZED_NAME_STAGE_REVISION) @@ -128,7 +128,7 @@ public void setRevisionFrontendState(RevisionFrontendStateEnum revisionFrontendS } - public CampaignVersions activeRevisionId(Long activeRevisionId) { + public CampaignVersions activeRevisionId(Integer activeRevisionId) { this.activeRevisionId = activeRevisionId; return this; @@ -141,17 +141,17 @@ public CampaignVersions activeRevisionId(Long activeRevisionId) { @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "ID of the revision that was last activated on this campaign. ") - public Long getActiveRevisionId() { + public Integer getActiveRevisionId() { return activeRevisionId; } - public void setActiveRevisionId(Long activeRevisionId) { + public void setActiveRevisionId(Integer activeRevisionId) { this.activeRevisionId = activeRevisionId; } - public CampaignVersions activeRevisionVersionId(Long activeRevisionVersionId) { + public CampaignVersions activeRevisionVersionId(Integer activeRevisionVersionId) { this.activeRevisionVersionId = activeRevisionVersionId; return this; @@ -164,17 +164,17 @@ public CampaignVersions activeRevisionVersionId(Long activeRevisionVersionId) { @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "ID of the revision version that is active on the campaign. ") - public Long getActiveRevisionVersionId() { + public Integer getActiveRevisionVersionId() { return activeRevisionVersionId; } - public void setActiveRevisionVersionId(Long activeRevisionVersionId) { + public void setActiveRevisionVersionId(Integer activeRevisionVersionId) { this.activeRevisionVersionId = activeRevisionVersionId; } - public CampaignVersions version(Long version) { + public CampaignVersions version(Integer version) { this.version = version; return this; @@ -187,17 +187,17 @@ public CampaignVersions version(Long version) { @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "Incrementing number representing how many revisions have been activated on this campaign, starts from 0 for a new campaign. ") - public Long getVersion() { + public Integer getVersion() { return version; } - public void setVersion(Long version) { + public void setVersion(Integer version) { this.version = version; } - public CampaignVersions currentRevisionId(Long currentRevisionId) { + public CampaignVersions currentRevisionId(Integer currentRevisionId) { this.currentRevisionId = currentRevisionId; return this; @@ -210,17 +210,17 @@ public CampaignVersions currentRevisionId(Long currentRevisionId) { @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "ID of the revision currently being modified for the campaign. ") - public Long getCurrentRevisionId() { + public Integer getCurrentRevisionId() { return currentRevisionId; } - public void setCurrentRevisionId(Long currentRevisionId) { + public void setCurrentRevisionId(Integer currentRevisionId) { this.currentRevisionId = currentRevisionId; } - public CampaignVersions currentRevisionVersionId(Long currentRevisionVersionId) { + public CampaignVersions currentRevisionVersionId(Integer currentRevisionVersionId) { this.currentRevisionVersionId = currentRevisionVersionId; return this; @@ -233,12 +233,12 @@ public CampaignVersions currentRevisionVersionId(Long currentRevisionVersionId) @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "ID of the latest version applied on the current revision. ") - public Long getCurrentRevisionVersionId() { + public Integer getCurrentRevisionVersionId() { return currentRevisionVersionId; } - public void setCurrentRevisionVersionId(Long currentRevisionVersionId) { + public void setCurrentRevisionVersionId(Integer currentRevisionVersionId) { this.currentRevisionVersionId = currentRevisionVersionId; } diff --git a/src/main/java/one/talon/model/CardAddedDeductedPointsBalancesNotificationPolicy.java b/src/main/java/one/talon/model/CardAddedDeductedPointsBalancesNotificationPolicy.java new file mode 100644 index 00000000..8035cecd --- /dev/null +++ b/src/main/java/one/talon/model/CardAddedDeductedPointsBalancesNotificationPolicy.java @@ -0,0 +1,184 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * CardAddedDeductedPointsBalancesNotificationPolicy + */ + +public class CardAddedDeductedPointsBalancesNotificationPolicy { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + /** + * Gets or Sets scopes + */ + @JsonAdapter(ScopesEnum.Adapter.class) + public enum ScopesEnum { + ALL("all"), + + CAMPAIGN_MANAGER("campaign_manager"), + + MANAGEMENT_API("management_api"), + + RULE_ENGINE("rule_engine"); + + private String value; + + ScopesEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ScopesEnum fromValue(String value) { + for (ScopesEnum b : ScopesEnum.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 ScopesEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ScopesEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ScopesEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_SCOPES = "scopes"; + @SerializedName(SERIALIZED_NAME_SCOPES) + private List scopes = new ArrayList(); + + + public CardAddedDeductedPointsBalancesNotificationPolicy name(String name) { + + this.name = name; + return this; + } + + /** + * Notification name. + * @return name + **/ + @ApiModelProperty(example = "Christmas Sale", required = true, value = "Notification name.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public CardAddedDeductedPointsBalancesNotificationPolicy scopes(List scopes) { + + this.scopes = scopes; + return this; + } + + public CardAddedDeductedPointsBalancesNotificationPolicy addScopesItem(ScopesEnum scopesItem) { + this.scopes.add(scopesItem); + return this; + } + + /** + * Get scopes + * @return scopes + **/ + @ApiModelProperty(required = true, value = "") + + public List getScopes() { + return scopes; + } + + + public void setScopes(List scopes) { + this.scopes = scopes; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CardAddedDeductedPointsBalancesNotificationPolicy cardAddedDeductedPointsBalancesNotificationPolicy = (CardAddedDeductedPointsBalancesNotificationPolicy) o; + return Objects.equals(this.name, cardAddedDeductedPointsBalancesNotificationPolicy.name) && + Objects.equals(this.scopes, cardAddedDeductedPointsBalancesNotificationPolicy.scopes); + } + + @Override + public int hashCode() { + return Objects.hash(name, scopes); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CardAddedDeductedPointsBalancesNotificationPolicy {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" scopes: ").append(toIndentedString(scopes)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/CardExpiringPointsNotificationPolicy.java b/src/main/java/one/talon/model/CardExpiringPointsNotificationPolicy.java index 2059359d..cdf2669e 100644 --- a/src/main/java/one/talon/model/CardExpiringPointsNotificationPolicy.java +++ b/src/main/java/one/talon/model/CardExpiringPointsNotificationPolicy.java @@ -46,7 +46,7 @@ public class CardExpiringPointsNotificationPolicy { public static final String SERIALIZED_NAME_BATCH_SIZE = "batchSize"; @SerializedName(SERIALIZED_NAME_BATCH_SIZE) - private Long batchSize = 1000l; + private Integer batchSize; public CardExpiringPointsNotificationPolicy name(String name) { @@ -121,7 +121,7 @@ public void setBatchingEnabled(Boolean batchingEnabled) { } - public CardExpiringPointsNotificationPolicy batchSize(Long batchSize) { + public CardExpiringPointsNotificationPolicy batchSize(Integer batchSize) { this.batchSize = batchSize; return this; @@ -134,12 +134,12 @@ public CardExpiringPointsNotificationPolicy batchSize(Long batchSize) { @javax.annotation.Nullable @ApiModelProperty(example = "1000", value = "The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.") - public Long getBatchSize() { + public Integer getBatchSize() { return batchSize; } - public void setBatchSize(Long batchSize) { + public void setBatchSize(Integer batchSize) { this.batchSize = batchSize; } diff --git a/src/main/java/one/talon/model/CardExpiringPointsNotificationTrigger.java b/src/main/java/one/talon/model/CardExpiringPointsNotificationTrigger.java index 3c2fc97a..edfd1bf6 100644 --- a/src/main/java/one/talon/model/CardExpiringPointsNotificationTrigger.java +++ b/src/main/java/one/talon/model/CardExpiringPointsNotificationTrigger.java @@ -31,7 +31,7 @@ public class CardExpiringPointsNotificationTrigger { public static final String SERIALIZED_NAME_AMOUNT = "amount"; @SerializedName(SERIALIZED_NAME_AMOUNT) - private Long amount; + private Integer amount; /** * Notification period indicated by a letter; \"w\" means week, \"d\" means day. @@ -85,7 +85,7 @@ public PeriodEnum read(final JsonReader jsonReader) throws IOException { private PeriodEnum period; - public CardExpiringPointsNotificationTrigger amount(Long amount) { + public CardExpiringPointsNotificationTrigger amount(Integer amount) { this.amount = amount; return this; @@ -98,12 +98,12 @@ public CardExpiringPointsNotificationTrigger amount(Long amount) { **/ @ApiModelProperty(required = true, value = "The amount of period.") - public Long getAmount() { + public Integer getAmount() { return amount; } - public void setAmount(Long amount) { + public void setAmount(Integer amount) { this.amount = amount; } diff --git a/src/main/java/one/talon/model/CardLedgerPointsEntryIntegrationAPI.java b/src/main/java/one/talon/model/CardLedgerPointsEntryIntegrationAPI.java index f108141c..0a3df33f 100644 --- a/src/main/java/one/talon/model/CardLedgerPointsEntryIntegrationAPI.java +++ b/src/main/java/one/talon/model/CardLedgerPointsEntryIntegrationAPI.java @@ -34,7 +34,7 @@ public class CardLedgerPointsEntryIntegrationAPI { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -42,7 +42,7 @@ public class CardLedgerPointsEntryIntegrationAPI { public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; @SerializedName(SERIALIZED_NAME_PROGRAM_ID) - private Long programId; + private Integer programId; public static final String SERIALIZED_NAME_CUSTOMER_PROFILE_I_D = "customerProfileID"; @SerializedName(SERIALIZED_NAME_CUSTOMER_PROFILE_I_D) @@ -73,7 +73,7 @@ public class CardLedgerPointsEntryIntegrationAPI { private BigDecimal amount; - public CardLedgerPointsEntryIntegrationAPI id(Long id) { + public CardLedgerPointsEntryIntegrationAPI id(Integer id) { this.id = id; return this; @@ -85,12 +85,12 @@ public CardLedgerPointsEntryIntegrationAPI id(Long id) { **/ @ApiModelProperty(example = "123", required = true, value = "ID of the transaction that adds loyalty points.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -117,7 +117,7 @@ public void setCreated(OffsetDateTime created) { } - public CardLedgerPointsEntryIntegrationAPI programId(Long programId) { + public CardLedgerPointsEntryIntegrationAPI programId(Integer programId) { this.programId = programId; return this; @@ -129,12 +129,12 @@ public CardLedgerPointsEntryIntegrationAPI programId(Long programId) { **/ @ApiModelProperty(example = "324", required = true, value = "ID of the loyalty program.") - public Long getProgramId() { + public Integer getProgramId() { return programId; } - public void setProgramId(Long programId) { + public void setProgramId(Integer programId) { this.programId = programId; } diff --git a/src/main/java/one/talon/model/CardLedgerTransactionLogEntry.java b/src/main/java/one/talon/model/CardLedgerTransactionLogEntry.java index 61ad9d95..10ff2326 100644 --- a/src/main/java/one/talon/model/CardLedgerTransactionLogEntry.java +++ b/src/main/java/one/talon/model/CardLedgerTransactionLogEntry.java @@ -38,7 +38,7 @@ public class CardLedgerTransactionLogEntry { public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; @SerializedName(SERIALIZED_NAME_PROGRAM_ID) - private Long programId; + private Integer programId; public static final String SERIALIZED_NAME_CARD_IDENTIFIER = "cardIdentifier"; @SerializedName(SERIALIZED_NAME_CARD_IDENTIFIER) @@ -46,11 +46,11 @@ public class CardLedgerTransactionLogEntry { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_SESSION_ID = "sessionId"; @SerializedName(SERIALIZED_NAME_SESSION_ID) - private Long sessionId; + private Integer sessionId; public static final String SERIALIZED_NAME_CUSTOMER_SESSION_ID = "customerSessionId"; @SerializedName(SERIALIZED_NAME_CUSTOMER_SESSION_ID) @@ -129,7 +129,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public CardLedgerTransactionLogEntry created(OffsetDateTime created) { @@ -154,7 +154,7 @@ public void setCreated(OffsetDateTime created) { } - public CardLedgerTransactionLogEntry programId(Long programId) { + public CardLedgerTransactionLogEntry programId(Integer programId) { this.programId = programId; return this; @@ -166,12 +166,12 @@ public CardLedgerTransactionLogEntry programId(Long programId) { **/ @ApiModelProperty(example = "324", required = true, value = "ID of the loyalty program.") - public Long getProgramId() { + public Integer getProgramId() { return programId; } - public void setProgramId(Long programId) { + public void setProgramId(Integer programId) { this.programId = programId; } @@ -198,7 +198,7 @@ public void setCardIdentifier(String cardIdentifier) { } - public CardLedgerTransactionLogEntry applicationId(Long applicationId) { + public CardLedgerTransactionLogEntry applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -211,17 +211,17 @@ public CardLedgerTransactionLogEntry applicationId(Long applicationId) { @javax.annotation.Nullable @ApiModelProperty(example = "322", value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } - public CardLedgerTransactionLogEntry sessionId(Long sessionId) { + public CardLedgerTransactionLogEntry sessionId(Integer sessionId) { this.sessionId = sessionId; return this; @@ -234,12 +234,12 @@ public CardLedgerTransactionLogEntry sessionId(Long sessionId) { @javax.annotation.Nullable @ApiModelProperty(example = "233", value = "The **internal** ID of the session. ") - public Long getSessionId() { + public Integer getSessionId() { return sessionId; } - public void setSessionId(Long sessionId) { + public void setSessionId(Integer sessionId) { this.sessionId = sessionId; } @@ -399,7 +399,7 @@ public void setAmount(BigDecimal amount) { } - public CardLedgerTransactionLogEntry id(Long id) { + public CardLedgerTransactionLogEntry id(Integer id) { this.id = id; return this; @@ -411,12 +411,12 @@ public CardLedgerTransactionLogEntry id(Long id) { **/ @ApiModelProperty(example = "123", required = true, value = "ID of the loyalty ledger entry.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/src/main/java/one/talon/model/CardLedgerTransactionLogEntryIntegrationAPI.java b/src/main/java/one/talon/model/CardLedgerTransactionLogEntryIntegrationAPI.java index 68505a91..18664982 100644 --- a/src/main/java/one/talon/model/CardLedgerTransactionLogEntryIntegrationAPI.java +++ b/src/main/java/one/talon/model/CardLedgerTransactionLogEntryIntegrationAPI.java @@ -38,7 +38,7 @@ public class CardLedgerTransactionLogEntryIntegrationAPI { public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; @SerializedName(SERIALIZED_NAME_PROGRAM_ID) - private Long programId; + private Integer programId; public static final String SERIALIZED_NAME_CARD_IDENTIFIER = "cardIdentifier"; @SerializedName(SERIALIZED_NAME_CARD_IDENTIFIER) @@ -121,11 +121,11 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_RULESET_ID = "rulesetId"; @SerializedName(SERIALIZED_NAME_RULESET_ID) - private Long rulesetId; + private Integer rulesetId; public static final String SERIALIZED_NAME_RULE_NAME = "ruleName"; @SerializedName(SERIALIZED_NAME_RULE_NAME) @@ -154,7 +154,7 @@ public void setCreated(OffsetDateTime created) { } - public CardLedgerTransactionLogEntryIntegrationAPI programId(Long programId) { + public CardLedgerTransactionLogEntryIntegrationAPI programId(Integer programId) { this.programId = programId; return this; @@ -166,12 +166,12 @@ public CardLedgerTransactionLogEntryIntegrationAPI programId(Long programId) { **/ @ApiModelProperty(example = "324", required = true, value = "ID of the loyalty program.") - public Long getProgramId() { + public Integer getProgramId() { return programId; } - public void setProgramId(Long programId) { + public void setProgramId(Integer programId) { this.programId = programId; } @@ -353,7 +353,7 @@ public void setAmount(BigDecimal amount) { } - public CardLedgerTransactionLogEntryIntegrationAPI id(Long id) { + public CardLedgerTransactionLogEntryIntegrationAPI id(Integer id) { this.id = id; return this; @@ -365,17 +365,17 @@ public CardLedgerTransactionLogEntryIntegrationAPI id(Long id) { **/ @ApiModelProperty(example = "123", required = true, value = "ID of the loyalty ledger transaction.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } - public CardLedgerTransactionLogEntryIntegrationAPI rulesetId(Long rulesetId) { + public CardLedgerTransactionLogEntryIntegrationAPI rulesetId(Integer rulesetId) { this.rulesetId = rulesetId; return this; @@ -388,12 +388,12 @@ public CardLedgerTransactionLogEntryIntegrationAPI rulesetId(Long rulesetId) { @javax.annotation.Nullable @ApiModelProperty(example = "11", value = "The ID of the ruleset containing the rule that triggered this effect.") - public Long getRulesetId() { + public Integer getRulesetId() { return rulesetId; } - public void setRulesetId(Long rulesetId) { + public void setRulesetId(Integer rulesetId) { this.rulesetId = rulesetId; } diff --git a/src/main/java/one/talon/model/Catalog.java b/src/main/java/one/talon/model/Catalog.java index 5dcc539e..cb786b9a 100644 --- a/src/main/java/one/talon/model/Catalog.java +++ b/src/main/java/one/talon/model/Catalog.java @@ -34,7 +34,7 @@ public class Catalog { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -42,7 +42,7 @@ public class Catalog { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_MODIFIED = "modified"; @SerializedName(SERIALIZED_NAME_MODIFIED) @@ -58,35 +58,35 @@ public class Catalog { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) - private Long version; + private Integer version; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Long createdBy; + private Integer createdBy; - public Catalog id(Long id) { + public Catalog id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -113,7 +113,7 @@ public void setCreated(OffsetDateTime created) { } - public Catalog accountId(Long accountId) { + public Catalog accountId(Integer accountId) { this.accountId = accountId; return this; @@ -125,12 +125,12 @@ public Catalog accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } @@ -201,15 +201,15 @@ public void setDescription(String description) { } - public Catalog subscribedApplicationsIds(List subscribedApplicationsIds) { + public Catalog subscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public Catalog addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { + public Catalog addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; @@ -222,17 +222,17 @@ public Catalog addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsIt @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of the IDs of the applications that are subscribed to this catalog.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } - public Catalog version(Long version) { + public Catalog version(Integer version) { this.version = version; return this; @@ -244,17 +244,17 @@ public Catalog version(Long version) { **/ @ApiModelProperty(example = "6", required = true, value = "The current version of this catalog.") - public Long getVersion() { + public Integer getVersion() { return version; } - public void setVersion(Long version) { + public void setVersion(Integer version) { this.version = version; } - public Catalog createdBy(Long createdBy) { + public Catalog createdBy(Integer createdBy) { this.createdBy = createdBy; return this; @@ -266,12 +266,12 @@ public Catalog createdBy(Long createdBy) { **/ @ApiModelProperty(example = "6", required = true, value = "The ID of user who created this catalog.") - public Long getCreatedBy() { + public Integer getCreatedBy() { return createdBy; } - public void setCreatedBy(Long createdBy) { + public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } diff --git a/src/main/java/one/talon/model/CatalogAction.java b/src/main/java/one/talon/model/CatalogAction.java index aef375ac..50c66a73 100644 --- a/src/main/java/one/talon/model/CatalogAction.java +++ b/src/main/java/one/talon/model/CatalogAction.java @@ -43,7 +43,9 @@ public enum TypeEnum { REMOVE("REMOVE"), - REMOVE_MANY("REMOVE_MANY"); + REMOVE_MANY("REMOVE_MANY"), + + ADD_PRICE_ADJUSTMENT("ADD_PRICE_ADJUSTMENT"); private String value; diff --git a/src/main/java/one/talon/model/CatalogItem.java b/src/main/java/one/talon/model/CatalogItem.java index c9485f5b..1abf31fc 100644 --- a/src/main/java/one/talon/model/CatalogItem.java +++ b/src/main/java/one/talon/model/CatalogItem.java @@ -37,7 +37,7 @@ public class CatalogItem { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -53,11 +53,11 @@ public class CatalogItem { public static final String SERIALIZED_NAME_CATALOGID = "catalogid"; @SerializedName(SERIALIZED_NAME_CATALOGID) - private Long catalogid; + private Integer catalogid; public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) - private Long version; + private Integer version; public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) @@ -68,24 +68,24 @@ public class CatalogItem { private Product product; - public CatalogItem id(Long id) { + public CatalogItem id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -157,7 +157,7 @@ public void setPrice(BigDecimal price) { } - public CatalogItem catalogid(Long catalogid) { + public CatalogItem catalogid(Integer catalogid) { this.catalogid = catalogid; return this; @@ -169,17 +169,17 @@ public CatalogItem catalogid(Long catalogid) { **/ @ApiModelProperty(example = "6", required = true, value = "The ID of the catalog the item belongs to.") - public Long getCatalogid() { + public Integer getCatalogid() { return catalogid; } - public void setCatalogid(Long catalogid) { + public void setCatalogid(Integer catalogid) { this.catalogid = catalogid; } - public CatalogItem version(Long version) { + public CatalogItem version(Integer version) { this.version = version; return this; @@ -192,12 +192,12 @@ public CatalogItem version(Long version) { **/ @ApiModelProperty(example = "5", required = true, value = "The version of the catalog item.") - public Long getVersion() { + public Integer getVersion() { return version; } - public void setVersion(Long version) { + public void setVersion(Integer version) { this.version = version; } diff --git a/src/main/java/one/talon/model/CatalogSyncRequest.java b/src/main/java/one/talon/model/CatalogSyncRequest.java index 432764e0..699f4c03 100644 --- a/src/main/java/one/talon/model/CatalogSyncRequest.java +++ b/src/main/java/one/talon/model/CatalogSyncRequest.java @@ -38,7 +38,7 @@ public class CatalogSyncRequest { public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) - private Long version; + private Integer version; public CatalogSyncRequest actions(List actions) { @@ -68,7 +68,7 @@ public void setActions(List actions) { } - public CatalogSyncRequest version(Long version) { + public CatalogSyncRequest version(Integer version) { this.version = version; return this; @@ -82,12 +82,12 @@ public CatalogSyncRequest version(Long version) { @javax.annotation.Nullable @ApiModelProperty(example = "244", value = "The version number of the catalog to apply the actions on.") - public Long getVersion() { + public Integer getVersion() { return version; } - public void setVersion(Long version) { + public void setVersion(Integer version) { this.version = version; } diff --git a/src/main/java/one/talon/model/CatalogsStrikethroughNotificationPolicy.java b/src/main/java/one/talon/model/CatalogsStrikethroughNotificationPolicy.java index 8dddde17..70d4540f 100644 --- a/src/main/java/one/talon/model/CatalogsStrikethroughNotificationPolicy.java +++ b/src/main/java/one/talon/model/CatalogsStrikethroughNotificationPolicy.java @@ -35,7 +35,7 @@ public class CatalogsStrikethroughNotificationPolicy { public static final String SERIALIZED_NAME_AHEAD_OF_DAYS_TRIGGER = "aheadOfDaysTrigger"; @SerializedName(SERIALIZED_NAME_AHEAD_OF_DAYS_TRIGGER) - private Long aheadOfDaysTrigger; + private Integer aheadOfDaysTrigger; public CatalogsStrikethroughNotificationPolicy name(String name) { @@ -60,7 +60,7 @@ public void setName(String name) { } - public CatalogsStrikethroughNotificationPolicy aheadOfDaysTrigger(Long aheadOfDaysTrigger) { + public CatalogsStrikethroughNotificationPolicy aheadOfDaysTrigger(Integer aheadOfDaysTrigger) { this.aheadOfDaysTrigger = aheadOfDaysTrigger; return this; @@ -75,12 +75,12 @@ public CatalogsStrikethroughNotificationPolicy aheadOfDaysTrigger(Long aheadOfDa @javax.annotation.Nullable @ApiModelProperty(value = "The number of days in advance that strikethrough pricing updates should be sent.") - public Long getAheadOfDaysTrigger() { + public Integer getAheadOfDaysTrigger() { return aheadOfDaysTrigger; } - public void setAheadOfDaysTrigger(Long aheadOfDaysTrigger) { + public void setAheadOfDaysTrigger(Integer aheadOfDaysTrigger) { this.aheadOfDaysTrigger = aheadOfDaysTrigger; } diff --git a/src/main/java/one/talon/model/Change.java b/src/main/java/one/talon/model/Change.java index cf4cf2fb..8524d2dd 100644 --- a/src/main/java/one/talon/model/Change.java +++ b/src/main/java/one/talon/model/Change.java @@ -32,7 +32,7 @@ public class Change { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -40,11 +40,11 @@ public class Change { public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Long userId; + private Integer userId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_ENTITY = "entity"; @SerializedName(SERIALIZED_NAME_ENTITY) @@ -60,27 +60,27 @@ public class Change { public static final String SERIALIZED_NAME_MANAGEMENT_KEY_ID = "managementKeyId"; @SerializedName(SERIALIZED_NAME_MANAGEMENT_KEY_ID) - private Long managementKeyId; + private Integer managementKeyId; - public Change id(Long id) { + public Change id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -107,7 +107,7 @@ public void setCreated(OffsetDateTime created) { } - public Change userId(Long userId) { + public Change userId(Integer userId) { this.userId = userId; return this; @@ -119,17 +119,17 @@ public Change userId(Long userId) { **/ @ApiModelProperty(example = "388", required = true, value = "The ID of the user associated with this entity.") - public Long getUserId() { + public Integer getUserId() { return userId; } - public void setUserId(Long userId) { + public void setUserId(Integer userId) { this.userId = userId; } - public Change applicationId(Long applicationId) { + public Change applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -142,12 +142,12 @@ public Change applicationId(Long applicationId) { @javax.annotation.Nullable @ApiModelProperty(example = "359", value = "ID of application associated with change.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } @@ -220,7 +220,7 @@ public void setNew(Object _new) { } - public Change managementKeyId(Long managementKeyId) { + public Change managementKeyId(Integer managementKeyId) { this.managementKeyId = managementKeyId; return this; @@ -233,12 +233,12 @@ public Change managementKeyId(Long managementKeyId) { @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "ID of management key used to perform changes.") - public Long getManagementKeyId() { + public Integer getManagementKeyId() { return managementKeyId; } - public void setManagementKeyId(Long managementKeyId) { + public void setManagementKeyId(Integer managementKeyId) { this.managementKeyId = managementKeyId; } diff --git a/src/main/java/one/talon/model/ChangeLoyaltyTierLevelEffectProps.java b/src/main/java/one/talon/model/ChangeLoyaltyTierLevelEffectProps.java index f92910f4..ac6bcf44 100644 --- a/src/main/java/one/talon/model/ChangeLoyaltyTierLevelEffectProps.java +++ b/src/main/java/one/talon/model/ChangeLoyaltyTierLevelEffectProps.java @@ -37,7 +37,7 @@ public class ChangeLoyaltyTierLevelEffectProps { public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; @SerializedName(SERIALIZED_NAME_PROGRAM_ID) - private Long programId; + private Integer programId; public static final String SERIALIZED_NAME_SUB_LEDGER_ID = "subLedgerId"; @SerializedName(SERIALIZED_NAME_SUB_LEDGER_ID) @@ -78,7 +78,7 @@ public void setRuleTitle(String ruleTitle) { } - public ChangeLoyaltyTierLevelEffectProps programId(Long programId) { + public ChangeLoyaltyTierLevelEffectProps programId(Integer programId) { this.programId = programId; return this; @@ -90,12 +90,12 @@ public ChangeLoyaltyTierLevelEffectProps programId(Long programId) { **/ @ApiModelProperty(required = true, value = "The ID of the loyalty program where these points were added.") - public Long getProgramId() { + public Integer getProgramId() { return programId; } - public void setProgramId(Long programId) { + public void setProgramId(Integer programId) { this.programId = programId; } diff --git a/src/main/java/one/talon/model/Collection.java b/src/main/java/one/talon/model/Collection.java index 577c6c33..dfe3920f 100644 --- a/src/main/java/one/talon/model/Collection.java +++ b/src/main/java/one/talon/model/Collection.java @@ -34,7 +34,7 @@ public class Collection { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -42,7 +42,7 @@ public class Collection { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_MODIFIED = "modified"; @SerializedName(SERIALIZED_NAME_MODIFIED) @@ -54,7 +54,7 @@ public class Collection { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -62,43 +62,43 @@ public class Collection { public static final String SERIALIZED_NAME_MODIFIED_BY = "modifiedBy"; @SerializedName(SERIALIZED_NAME_MODIFIED_BY) - private Long modifiedBy; + private Integer modifiedBy; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Long createdBy; + private Integer createdBy; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_PAYLOAD = "payload"; @SerializedName(SERIALIZED_NAME_PAYLOAD) private List payload = null; - public Collection id(Long id) { + public Collection id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -125,7 +125,7 @@ public void setCreated(OffsetDateTime created) { } - public Collection accountId(Long accountId) { + public Collection accountId(Integer accountId) { this.accountId = accountId; return this; @@ -137,12 +137,12 @@ public Collection accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } @@ -192,15 +192,15 @@ public void setDescription(String description) { } - public Collection subscribedApplicationsIds(List subscribedApplicationsIds) { + public Collection subscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public Collection addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { + public Collection addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; @@ -213,12 +213,12 @@ public Collection addSubscribedApplicationsIdsItem(Long subscribedApplicationsId @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of the IDs of the Applications where this collection is enabled.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } @@ -245,7 +245,7 @@ public void setName(String name) { } - public Collection modifiedBy(Long modifiedBy) { + public Collection modifiedBy(Integer modifiedBy) { this.modifiedBy = modifiedBy; return this; @@ -258,17 +258,17 @@ public Collection modifiedBy(Long modifiedBy) { @javax.annotation.Nullable @ApiModelProperty(example = "48", value = "ID of the user who last updated this effect if available.") - public Long getModifiedBy() { + public Integer getModifiedBy() { return modifiedBy; } - public void setModifiedBy(Long modifiedBy) { + public void setModifiedBy(Integer modifiedBy) { this.modifiedBy = modifiedBy; } - public Collection createdBy(Long createdBy) { + public Collection createdBy(Integer createdBy) { this.createdBy = createdBy; return this; @@ -280,17 +280,17 @@ public Collection createdBy(Long createdBy) { **/ @ApiModelProperty(example = "134", required = true, value = "ID of the user who created this effect.") - public Long getCreatedBy() { + public Integer getCreatedBy() { return createdBy; } - public void setCreatedBy(Long createdBy) { + public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } - public Collection applicationId(Long applicationId) { + public Collection applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -303,17 +303,17 @@ public Collection applicationId(Long applicationId) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } - public Collection campaignId(Long campaignId) { + public Collection campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -326,12 +326,12 @@ public Collection campaignId(Long campaignId) { @javax.annotation.Nullable @ApiModelProperty(example = "7", value = "The ID of the campaign that owns this entity.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } diff --git a/src/main/java/one/talon/model/CollectionWithoutPayload.java b/src/main/java/one/talon/model/CollectionWithoutPayload.java index 1c6bb135..bc685e1a 100644 --- a/src/main/java/one/talon/model/CollectionWithoutPayload.java +++ b/src/main/java/one/talon/model/CollectionWithoutPayload.java @@ -34,7 +34,7 @@ public class CollectionWithoutPayload { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -42,7 +42,7 @@ public class CollectionWithoutPayload { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_MODIFIED = "modified"; @SerializedName(SERIALIZED_NAME_MODIFIED) @@ -54,7 +54,7 @@ public class CollectionWithoutPayload { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -62,39 +62,39 @@ public class CollectionWithoutPayload { public static final String SERIALIZED_NAME_MODIFIED_BY = "modifiedBy"; @SerializedName(SERIALIZED_NAME_MODIFIED_BY) - private Long modifiedBy; + private Integer modifiedBy; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Long createdBy; + private Integer createdBy; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; - public CollectionWithoutPayload id(Long id) { + public CollectionWithoutPayload id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -121,7 +121,7 @@ public void setCreated(OffsetDateTime created) { } - public CollectionWithoutPayload accountId(Long accountId) { + public CollectionWithoutPayload accountId(Integer accountId) { this.accountId = accountId; return this; @@ -133,12 +133,12 @@ public CollectionWithoutPayload accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } @@ -188,15 +188,15 @@ public void setDescription(String description) { } - public CollectionWithoutPayload subscribedApplicationsIds(List subscribedApplicationsIds) { + public CollectionWithoutPayload subscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public CollectionWithoutPayload addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { + public CollectionWithoutPayload addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; @@ -209,12 +209,12 @@ public CollectionWithoutPayload addSubscribedApplicationsIdsItem(Long subscribed @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of the IDs of the Applications where this collection is enabled.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } @@ -241,7 +241,7 @@ public void setName(String name) { } - public CollectionWithoutPayload modifiedBy(Long modifiedBy) { + public CollectionWithoutPayload modifiedBy(Integer modifiedBy) { this.modifiedBy = modifiedBy; return this; @@ -254,17 +254,17 @@ public CollectionWithoutPayload modifiedBy(Long modifiedBy) { @javax.annotation.Nullable @ApiModelProperty(example = "48", value = "ID of the user who last updated this effect if available.") - public Long getModifiedBy() { + public Integer getModifiedBy() { return modifiedBy; } - public void setModifiedBy(Long modifiedBy) { + public void setModifiedBy(Integer modifiedBy) { this.modifiedBy = modifiedBy; } - public CollectionWithoutPayload createdBy(Long createdBy) { + public CollectionWithoutPayload createdBy(Integer createdBy) { this.createdBy = createdBy; return this; @@ -276,17 +276,17 @@ public CollectionWithoutPayload createdBy(Long createdBy) { **/ @ApiModelProperty(example = "134", required = true, value = "ID of the user who created this effect.") - public Long getCreatedBy() { + public Integer getCreatedBy() { return createdBy; } - public void setCreatedBy(Long createdBy) { + public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } - public CollectionWithoutPayload applicationId(Long applicationId) { + public CollectionWithoutPayload applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -299,17 +299,17 @@ public CollectionWithoutPayload applicationId(Long applicationId) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } - public CollectionWithoutPayload campaignId(Long campaignId) { + public CollectionWithoutPayload campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -322,12 +322,12 @@ public CollectionWithoutPayload campaignId(Long campaignId) { @javax.annotation.Nullable @ApiModelProperty(example = "7", value = "The ID of the campaign that owns this entity.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } diff --git a/src/main/java/one/talon/model/Coupon.java b/src/main/java/one/talon/model/Coupon.java index 2e2cad82..49b9572c 100644 --- a/src/main/java/one/talon/model/Coupon.java +++ b/src/main/java/one/talon/model/Coupon.java @@ -36,7 +36,7 @@ public class Coupon { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -44,7 +44,7 @@ public class Coupon { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @@ -52,7 +52,7 @@ public class Coupon { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Long usageLimit; + private Integer usageLimit; public static final String SERIALIZED_NAME_DISCOUNT_LIMIT = "discountLimit"; @SerializedName(SERIALIZED_NAME_DISCOUNT_LIMIT) @@ -60,7 +60,7 @@ public class Coupon { public static final String SERIALIZED_NAME_RESERVATION_LIMIT = "reservationLimit"; @SerializedName(SERIALIZED_NAME_RESERVATION_LIMIT) - private Long reservationLimit; + private Integer reservationLimit; public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) @@ -76,7 +76,7 @@ public class Coupon { public static final String SERIALIZED_NAME_USAGE_COUNTER = "usageCounter"; @SerializedName(SERIALIZED_NAME_USAGE_COUNTER) - private Long usageCounter; + private Integer usageCounter; public static final String SERIALIZED_NAME_DISCOUNT_COUNTER = "discountCounter"; @SerializedName(SERIALIZED_NAME_DISCOUNT_COUNTER) @@ -96,7 +96,7 @@ public class Coupon { public static final String SERIALIZED_NAME_REFERRAL_ID = "referralId"; @SerializedName(SERIALIZED_NAME_REFERRAL_ID) - private Long referralId; + private Integer referralId; public static final String SERIALIZED_NAME_RECIPIENT_INTEGRATION_ID = "recipientIntegrationId"; @SerializedName(SERIALIZED_NAME_RECIPIENT_INTEGRATION_ID) @@ -104,7 +104,7 @@ public class Coupon { public static final String SERIALIZED_NAME_IMPORT_ID = "importId"; @SerializedName(SERIALIZED_NAME_IMPORT_ID) - private Long importId; + private Integer importId; public static final String SERIALIZED_NAME_RESERVATION = "reservation"; @SerializedName(SERIALIZED_NAME_RESERVATION) @@ -123,24 +123,24 @@ public class Coupon { private Boolean implicitlyReserved; - public Coupon id(Long id) { + public Coupon id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of the coupon. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of the coupon.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -152,10 +152,10 @@ public Coupon created(OffsetDateTime created) { } /** - * The time this entity was created. + * The time the coupon was created. * @return created **/ - @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") + @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time the coupon was created.") public OffsetDateTime getCreated() { return created; @@ -167,7 +167,7 @@ public void setCreated(OffsetDateTime created) { } - public Coupon campaignId(Long campaignId) { + public Coupon campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -179,12 +179,12 @@ public Coupon campaignId(Long campaignId) { **/ @ApiModelProperty(example = "211", required = true, value = "The ID of the campaign that owns this entity.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } @@ -211,7 +211,7 @@ public void setValue(String value) { } - public Coupon usageLimit(Long usageLimit) { + public Coupon usageLimit(Integer usageLimit) { this.usageLimit = usageLimit; return this; @@ -225,12 +225,12 @@ public Coupon usageLimit(Long usageLimit) { **/ @ApiModelProperty(example = "100", required = true, value = "The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. ") - public Long getUsageLimit() { + public Integer getUsageLimit() { return usageLimit; } - public void setUsageLimit(Long usageLimit) { + public void setUsageLimit(Integer usageLimit) { this.usageLimit = usageLimit; } @@ -244,7 +244,7 @@ public Coupon discountLimit(BigDecimal discountLimit) { /** * The total discount value that the code can give. Typically used to represent a gift card value. * minimum: 0 - * maximum: 999999 + * maximum: 1E+15 * @return discountLimit **/ @javax.annotation.Nullable @@ -260,7 +260,7 @@ public void setDiscountLimit(BigDecimal discountLimit) { } - public Coupon reservationLimit(Long reservationLimit) { + public Coupon reservationLimit(Integer reservationLimit) { this.reservationLimit = reservationLimit; return this; @@ -275,12 +275,12 @@ public Coupon reservationLimit(Long reservationLimit) { @javax.annotation.Nullable @ApiModelProperty(example = "45", value = "The number of reservations that can be made with this coupon code. ") - public Long getReservationLimit() { + public Integer getReservationLimit() { return reservationLimit; } - public void setReservationLimit(Long reservationLimit) { + public void setReservationLimit(Integer reservationLimit) { this.reservationLimit = reservationLimit; } @@ -362,7 +362,7 @@ public void setLimits(List limits) { } - public Coupon usageCounter(Long usageCounter) { + public Coupon usageCounter(Integer usageCounter) { this.usageCounter = usageCounter; return this; @@ -374,12 +374,12 @@ public Coupon usageCounter(Long usageCounter) { **/ @ApiModelProperty(example = "10", required = true, value = "The number of times the coupon has been successfully redeemed.") - public Long getUsageCounter() { + public Integer getUsageCounter() { return usageCounter; } - public void setUsageCounter(Long usageCounter) { + public void setUsageCounter(Integer usageCounter) { this.usageCounter = usageCounter; } @@ -476,7 +476,7 @@ public void setAttributes(Object attributes) { } - public Coupon referralId(Long referralId) { + public Coupon referralId(Integer referralId) { this.referralId = referralId; return this; @@ -489,12 +489,12 @@ public Coupon referralId(Long referralId) { @javax.annotation.Nullable @ApiModelProperty(example = "326632952", value = "The integration ID of the referring customer (if any) for whom this coupon was created as an effect.") - public Long getReferralId() { + public Integer getReferralId() { return referralId; } - public void setReferralId(Long referralId) { + public void setReferralId(Integer referralId) { this.referralId = referralId; } @@ -522,7 +522,7 @@ public void setRecipientIntegrationId(String recipientIntegrationId) { } - public Coupon importId(Long importId) { + public Coupon importId(Integer importId) { this.importId = importId; return this; @@ -535,12 +535,12 @@ public Coupon importId(Long importId) { @javax.annotation.Nullable @ApiModelProperty(example = "4", value = "The ID of the Import which created this coupon.") - public Long getImportId() { + public Integer getImportId() { return importId; } - public void setImportId(Long importId) { + public void setImportId(Integer importId) { this.importId = importId; } diff --git a/src/main/java/one/talon/model/CouponConstraints.java b/src/main/java/one/talon/model/CouponConstraints.java index bfb9425b..55a8adab 100644 --- a/src/main/java/one/talon/model/CouponConstraints.java +++ b/src/main/java/one/talon/model/CouponConstraints.java @@ -33,7 +33,7 @@ public class CouponConstraints { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Long usageLimit; + private Integer usageLimit; public static final String SERIALIZED_NAME_DISCOUNT_LIMIT = "discountLimit"; @SerializedName(SERIALIZED_NAME_DISCOUNT_LIMIT) @@ -41,7 +41,7 @@ public class CouponConstraints { public static final String SERIALIZED_NAME_RESERVATION_LIMIT = "reservationLimit"; @SerializedName(SERIALIZED_NAME_RESERVATION_LIMIT) - private Long reservationLimit; + private Integer reservationLimit; public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) @@ -52,7 +52,7 @@ public class CouponConstraints { private OffsetDateTime expiryDate; - public CouponConstraints usageLimit(Long usageLimit) { + public CouponConstraints usageLimit(Integer usageLimit) { this.usageLimit = usageLimit; return this; @@ -67,12 +67,12 @@ public CouponConstraints usageLimit(Long usageLimit) { @javax.annotation.Nullable @ApiModelProperty(example = "100", value = "The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. ") - public Long getUsageLimit() { + public Integer getUsageLimit() { return usageLimit; } - public void setUsageLimit(Long usageLimit) { + public void setUsageLimit(Integer usageLimit) { this.usageLimit = usageLimit; } @@ -86,7 +86,7 @@ public CouponConstraints discountLimit(BigDecimal discountLimit) { /** * The total discount value that the code can give. Typically used to represent a gift card value. * minimum: 0 - * maximum: 999999 + * maximum: 1E+15 * @return discountLimit **/ @javax.annotation.Nullable @@ -102,7 +102,7 @@ public void setDiscountLimit(BigDecimal discountLimit) { } - public CouponConstraints reservationLimit(Long reservationLimit) { + public CouponConstraints reservationLimit(Integer reservationLimit) { this.reservationLimit = reservationLimit; return this; @@ -117,12 +117,12 @@ public CouponConstraints reservationLimit(Long reservationLimit) { @javax.annotation.Nullable @ApiModelProperty(example = "45", value = "The number of reservations that can be made with this coupon code. ") - public Long getReservationLimit() { + public Integer getReservationLimit() { return reservationLimit; } - public void setReservationLimit(Long reservationLimit) { + public void setReservationLimit(Integer reservationLimit) { this.reservationLimit = reservationLimit; } diff --git a/src/main/java/one/talon/model/CouponCreationJob.java b/src/main/java/one/talon/model/CouponCreationJob.java index c4c069b7..e4cf9752 100644 --- a/src/main/java/one/talon/model/CouponCreationJob.java +++ b/src/main/java/one/talon/model/CouponCreationJob.java @@ -36,7 +36,7 @@ public class CouponCreationJob { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -44,19 +44,19 @@ public class CouponCreationJob { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Long usageLimit; + private Integer usageLimit; public static final String SERIALIZED_NAME_DISCOUNT_LIMIT = "discountLimit"; @SerializedName(SERIALIZED_NAME_DISCOUNT_LIMIT) @@ -64,7 +64,7 @@ public class CouponCreationJob { public static final String SERIALIZED_NAME_RESERVATION_LIMIT = "reservationLimit"; @SerializedName(SERIALIZED_NAME_RESERVATION_LIMIT) - private Long reservationLimit; + private Integer reservationLimit; public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) @@ -76,7 +76,7 @@ public class CouponCreationJob { public static final String SERIALIZED_NAME_NUMBER_OF_COUPONS = "numberOfCoupons"; @SerializedName(SERIALIZED_NAME_NUMBER_OF_COUPONS) - private Long numberOfCoupons; + private Integer numberOfCoupons; public static final String SERIALIZED_NAME_COUPON_SETTINGS = "couponSettings"; @SerializedName(SERIALIZED_NAME_COUPON_SETTINGS) @@ -96,11 +96,11 @@ public class CouponCreationJob { public static final String SERIALIZED_NAME_CREATED_AMOUNT = "createdAmount"; @SerializedName(SERIALIZED_NAME_CREATED_AMOUNT) - private Long createdAmount; + private Integer createdAmount; public static final String SERIALIZED_NAME_FAIL_COUNT = "failCount"; @SerializedName(SERIALIZED_NAME_FAIL_COUNT) - private Long failCount; + private Integer failCount; public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @@ -108,7 +108,7 @@ public class CouponCreationJob { public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Long createdBy; + private Integer createdBy; public static final String SERIALIZED_NAME_COMMUNICATED = "communicated"; @SerializedName(SERIALIZED_NAME_COMMUNICATED) @@ -116,31 +116,31 @@ public class CouponCreationJob { public static final String SERIALIZED_NAME_CHUNK_EXECUTION_COUNT = "chunkExecutionCount"; @SerializedName(SERIALIZED_NAME_CHUNK_EXECUTION_COUNT) - private Long chunkExecutionCount; + private Integer chunkExecutionCount; public static final String SERIALIZED_NAME_CHUNK_SIZE = "chunkSize"; @SerializedName(SERIALIZED_NAME_CHUNK_SIZE) - private Long chunkSize; + private Integer chunkSize; - public CouponCreationJob id(Long id) { + public CouponCreationJob id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -167,7 +167,7 @@ public void setCreated(OffsetDateTime created) { } - public CouponCreationJob campaignId(Long campaignId) { + public CouponCreationJob campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -179,17 +179,17 @@ public CouponCreationJob campaignId(Long campaignId) { **/ @ApiModelProperty(example = "211", required = true, value = "The ID of the campaign that owns this entity.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } - public CouponCreationJob applicationId(Long applicationId) { + public CouponCreationJob applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -201,17 +201,17 @@ public CouponCreationJob applicationId(Long applicationId) { **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } - public CouponCreationJob accountId(Long accountId) { + public CouponCreationJob accountId(Integer accountId) { this.accountId = accountId; return this; @@ -223,17 +223,17 @@ public CouponCreationJob accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } - public CouponCreationJob usageLimit(Long usageLimit) { + public CouponCreationJob usageLimit(Integer usageLimit) { this.usageLimit = usageLimit; return this; @@ -247,12 +247,12 @@ public CouponCreationJob usageLimit(Long usageLimit) { **/ @ApiModelProperty(example = "100", required = true, value = "The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. ") - public Long getUsageLimit() { + public Integer getUsageLimit() { return usageLimit; } - public void setUsageLimit(Long usageLimit) { + public void setUsageLimit(Integer usageLimit) { this.usageLimit = usageLimit; } @@ -266,7 +266,7 @@ public CouponCreationJob discountLimit(BigDecimal discountLimit) { /** * The total discount value that the code can give. Typically used to represent a gift card value. * minimum: 0 - * maximum: 999999 + * maximum: 1E+15 * @return discountLimit **/ @javax.annotation.Nullable @@ -282,7 +282,7 @@ public void setDiscountLimit(BigDecimal discountLimit) { } - public CouponCreationJob reservationLimit(Long reservationLimit) { + public CouponCreationJob reservationLimit(Integer reservationLimit) { this.reservationLimit = reservationLimit; return this; @@ -297,12 +297,12 @@ public CouponCreationJob reservationLimit(Long reservationLimit) { @javax.annotation.Nullable @ApiModelProperty(example = "45", value = "The number of reservations that can be made with this coupon code. ") - public Long getReservationLimit() { + public Integer getReservationLimit() { return reservationLimit; } - public void setReservationLimit(Long reservationLimit) { + public void setReservationLimit(Integer reservationLimit) { this.reservationLimit = reservationLimit; } @@ -353,7 +353,7 @@ public void setExpiryDate(OffsetDateTime expiryDate) { } - public CouponCreationJob numberOfCoupons(Long numberOfCoupons) { + public CouponCreationJob numberOfCoupons(Integer numberOfCoupons) { this.numberOfCoupons = numberOfCoupons; return this; @@ -367,12 +367,12 @@ public CouponCreationJob numberOfCoupons(Long numberOfCoupons) { **/ @ApiModelProperty(example = "200000", required = true, value = "The number of new coupon codes to generate for the campaign.") - public Long getNumberOfCoupons() { + public Integer getNumberOfCoupons() { return numberOfCoupons; } - public void setNumberOfCoupons(Long numberOfCoupons) { + public void setNumberOfCoupons(Integer numberOfCoupons) { this.numberOfCoupons = numberOfCoupons; } @@ -466,7 +466,7 @@ public void setStatus(String status) { } - public CouponCreationJob createdAmount(Long createdAmount) { + public CouponCreationJob createdAmount(Integer createdAmount) { this.createdAmount = createdAmount; return this; @@ -478,17 +478,17 @@ public CouponCreationJob createdAmount(Long createdAmount) { **/ @ApiModelProperty(example = "1000000", required = true, value = "The number of coupon codes that were already created for this request.") - public Long getCreatedAmount() { + public Integer getCreatedAmount() { return createdAmount; } - public void setCreatedAmount(Long createdAmount) { + public void setCreatedAmount(Integer createdAmount) { this.createdAmount = createdAmount; } - public CouponCreationJob failCount(Long failCount) { + public CouponCreationJob failCount(Integer failCount) { this.failCount = failCount; return this; @@ -500,12 +500,12 @@ public CouponCreationJob failCount(Long failCount) { **/ @ApiModelProperty(example = "10", required = true, value = "The number of times this job failed.") - public Long getFailCount() { + public Integer getFailCount() { return failCount; } - public void setFailCount(Long failCount) { + public void setFailCount(Integer failCount) { this.failCount = failCount; } @@ -537,7 +537,7 @@ public void setErrors(List errors) { } - public CouponCreationJob createdBy(Long createdBy) { + public CouponCreationJob createdBy(Integer createdBy) { this.createdBy = createdBy; return this; @@ -549,12 +549,12 @@ public CouponCreationJob createdBy(Long createdBy) { **/ @ApiModelProperty(example = "1", required = true, value = "ID of the user who created this effect.") - public Long getCreatedBy() { + public Integer getCreatedBy() { return createdBy; } - public void setCreatedBy(Long createdBy) { + public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } @@ -581,7 +581,7 @@ public void setCommunicated(Boolean communicated) { } - public CouponCreationJob chunkExecutionCount(Long chunkExecutionCount) { + public CouponCreationJob chunkExecutionCount(Integer chunkExecutionCount) { this.chunkExecutionCount = chunkExecutionCount; return this; @@ -593,17 +593,17 @@ public CouponCreationJob chunkExecutionCount(Long chunkExecutionCount) { **/ @ApiModelProperty(example = "0", required = true, value = "The number of times an attempt to create a chunk of coupons was made during the processing of the job.") - public Long getChunkExecutionCount() { + public Integer getChunkExecutionCount() { return chunkExecutionCount; } - public void setChunkExecutionCount(Long chunkExecutionCount) { + public void setChunkExecutionCount(Integer chunkExecutionCount) { this.chunkExecutionCount = chunkExecutionCount; } - public CouponCreationJob chunkSize(Long chunkSize) { + public CouponCreationJob chunkSize(Integer chunkSize) { this.chunkSize = chunkSize; return this; @@ -616,12 +616,12 @@ public CouponCreationJob chunkSize(Long chunkSize) { @javax.annotation.Nullable @ApiModelProperty(example = "20000", value = "The number of coupons that will be created in a single transactions. Coupons will be created in chunks until arriving at the requested amount.") - public Long getChunkSize() { + public Integer getChunkSize() { return chunkSize; } - public void setChunkSize(Long chunkSize) { + public void setChunkSize(Integer chunkSize) { this.chunkSize = chunkSize; } diff --git a/src/main/java/one/talon/model/CouponDeletionFilters.java b/src/main/java/one/talon/model/CouponDeletionFilters.java index 2e00eb24..bc016897 100644 --- a/src/main/java/one/talon/model/CouponDeletionFilters.java +++ b/src/main/java/one/talon/model/CouponDeletionFilters.java @@ -125,7 +125,7 @@ public ValidEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_REFERRAL_ID = "referralId"; @SerializedName(SERIALIZED_NAME_REFERRAL_ID) - private Long referralId; + private Integer referralId; public static final String SERIALIZED_NAME_EXPIRES_AFTER = "expiresAfter"; @SerializedName(SERIALIZED_NAME_EXPIRES_AFTER) @@ -389,7 +389,7 @@ public void setBatchId(String batchId) { } - public CouponDeletionFilters referralId(Long referralId) { + public CouponDeletionFilters referralId(Integer referralId) { this.referralId = referralId; return this; @@ -402,12 +402,12 @@ public CouponDeletionFilters referralId(Long referralId) { @javax.annotation.Nullable @ApiModelProperty(value = "Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code.") - public Long getReferralId() { + public Integer getReferralId() { return referralId; } - public void setReferralId(Long referralId) { + public void setReferralId(Integer referralId) { this.referralId = referralId; } diff --git a/src/main/java/one/talon/model/CouponDeletionJob.java b/src/main/java/one/talon/model/CouponDeletionJob.java index d0805dfc..5638f016 100644 --- a/src/main/java/one/talon/model/CouponDeletionJob.java +++ b/src/main/java/one/talon/model/CouponDeletionJob.java @@ -35,7 +35,7 @@ public class CouponDeletionJob { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -43,11 +43,11 @@ public class CouponDeletionJob { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_FILTERS = "filters"; @SerializedName(SERIALIZED_NAME_FILTERS) @@ -59,11 +59,11 @@ public class CouponDeletionJob { public static final String SERIALIZED_NAME_DELETED_AMOUNT = "deletedAmount"; @SerializedName(SERIALIZED_NAME_DELETED_AMOUNT) - private Long deletedAmount; + private Integer deletedAmount; public static final String SERIALIZED_NAME_FAIL_COUNT = "failCount"; @SerializedName(SERIALIZED_NAME_FAIL_COUNT) - private Long failCount; + private Integer failCount; public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) @@ -71,7 +71,7 @@ public class CouponDeletionJob { public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Long createdBy; + private Integer createdBy; public static final String SERIALIZED_NAME_COMMUNICATED = "communicated"; @SerializedName(SERIALIZED_NAME_COMMUNICATED) @@ -79,27 +79,27 @@ public class CouponDeletionJob { public static final String SERIALIZED_NAME_CAMPAIGN_I_DS = "campaignIDs"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_I_DS) - private List campaignIDs = null; + private List campaignIDs = null; - public CouponDeletionJob id(Long id) { + public CouponDeletionJob id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -126,7 +126,7 @@ public void setCreated(OffsetDateTime created) { } - public CouponDeletionJob applicationId(Long applicationId) { + public CouponDeletionJob applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -138,17 +138,17 @@ public CouponDeletionJob applicationId(Long applicationId) { **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } - public CouponDeletionJob accountId(Long accountId) { + public CouponDeletionJob accountId(Integer accountId) { this.accountId = accountId; return this; @@ -160,12 +160,12 @@ public CouponDeletionJob accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } @@ -214,7 +214,7 @@ public void setStatus(String status) { } - public CouponDeletionJob deletedAmount(Long deletedAmount) { + public CouponDeletionJob deletedAmount(Integer deletedAmount) { this.deletedAmount = deletedAmount; return this; @@ -227,17 +227,17 @@ public CouponDeletionJob deletedAmount(Long deletedAmount) { @javax.annotation.Nullable @ApiModelProperty(example = "1000000", value = "The number of coupon codes that were already deleted for this request.") - public Long getDeletedAmount() { + public Integer getDeletedAmount() { return deletedAmount; } - public void setDeletedAmount(Long deletedAmount) { + public void setDeletedAmount(Integer deletedAmount) { this.deletedAmount = deletedAmount; } - public CouponDeletionJob failCount(Long failCount) { + public CouponDeletionJob failCount(Integer failCount) { this.failCount = failCount; return this; @@ -249,12 +249,12 @@ public CouponDeletionJob failCount(Long failCount) { **/ @ApiModelProperty(example = "10", required = true, value = "The number of times this job failed.") - public Long getFailCount() { + public Integer getFailCount() { return failCount; } - public void setFailCount(Long failCount) { + public void setFailCount(Integer failCount) { this.failCount = failCount; } @@ -286,7 +286,7 @@ public void setErrors(List errors) { } - public CouponDeletionJob createdBy(Long createdBy) { + public CouponDeletionJob createdBy(Integer createdBy) { this.createdBy = createdBy; return this; @@ -298,12 +298,12 @@ public CouponDeletionJob createdBy(Long createdBy) { **/ @ApiModelProperty(example = "1", required = true, value = "ID of the user who created this effect.") - public Long getCreatedBy() { + public Integer getCreatedBy() { return createdBy; } - public void setCreatedBy(Long createdBy) { + public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } @@ -330,15 +330,15 @@ public void setCommunicated(Boolean communicated) { } - public CouponDeletionJob campaignIDs(List campaignIDs) { + public CouponDeletionJob campaignIDs(List campaignIDs) { this.campaignIDs = campaignIDs; return this; } - public CouponDeletionJob addCampaignIDsItem(Long campaignIDsItem) { + public CouponDeletionJob addCampaignIDsItem(Integer campaignIDsItem) { if (this.campaignIDs == null) { - this.campaignIDs = new ArrayList(); + this.campaignIDs = new ArrayList(); } this.campaignIDs.add(campaignIDsItem); return this; @@ -351,12 +351,12 @@ public CouponDeletionJob addCampaignIDsItem(Long campaignIDsItem) { @javax.annotation.Nullable @ApiModelProperty(value = "") - public List getCampaignIDs() { + public List getCampaignIDs() { return campaignIDs; } - public void setCampaignIDs(List campaignIDs) { + public void setCampaignIDs(List campaignIDs) { this.campaignIDs = campaignIDs; } diff --git a/src/main/java/one/talon/model/CouponEntity.java b/src/main/java/one/talon/model/CouponEntity.java new file mode 100644 index 00000000..45fc2d23 --- /dev/null +++ b/src/main/java/one/talon/model/CouponEntity.java @@ -0,0 +1,127 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * CouponEntity + */ + +public class CouponEntity { + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Integer id; + + public static final String SERIALIZED_NAME_CREATED = "created"; + @SerializedName(SERIALIZED_NAME_CREATED) + private OffsetDateTime created; + + + public CouponEntity id(Integer id) { + + this.id = id; + return this; + } + + /** + * The internal ID of the coupon. + * @return id + **/ + @ApiModelProperty(example = "6", required = true, value = "The internal ID of the coupon.") + + public Integer getId() { + return id; + } + + + public void setId(Integer id) { + this.id = id; + } + + + public CouponEntity created(OffsetDateTime created) { + + this.created = created; + return this; + } + + /** + * The time the coupon was created. + * @return created + **/ + @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time the coupon was created.") + + public OffsetDateTime getCreated() { + return created; + } + + + public void setCreated(OffsetDateTime created) { + this.created = created; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CouponEntity couponEntity = (CouponEntity) o; + return Objects.equals(this.id, couponEntity.id) && + Objects.equals(this.created, couponEntity.created); + } + + @Override + public int hashCode() { + return Objects.hash(id, created); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CouponEntity {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" created: ").append(toIndentedString(created)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/CouponRejectionReason.java b/src/main/java/one/talon/model/CouponRejectionReason.java index cdfc7046..528ba6d6 100644 --- a/src/main/java/one/talon/model/CouponRejectionReason.java +++ b/src/main/java/one/talon/model/CouponRejectionReason.java @@ -32,11 +32,11 @@ public class CouponRejectionReason { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_COUPON_ID = "couponId"; @SerializedName(SERIALIZED_NAME_COUPON_ID) - private Long couponId; + private Integer couponId; /** * Gets or Sets reason @@ -110,7 +110,7 @@ public ReasonEnum read(final JsonReader jsonReader) throws IOException { private ReasonEnum reason; - public CouponRejectionReason campaignId(Long campaignId) { + public CouponRejectionReason campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -122,17 +122,17 @@ public CouponRejectionReason campaignId(Long campaignId) { **/ @ApiModelProperty(example = "244", required = true, value = "") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } - public CouponRejectionReason couponId(Long couponId) { + public CouponRejectionReason couponId(Integer couponId) { this.couponId = couponId; return this; @@ -144,12 +144,12 @@ public CouponRejectionReason couponId(Long couponId) { **/ @ApiModelProperty(example = "4928", required = true, value = "") - public Long getCouponId() { + public Integer getCouponId() { return couponId; } - public void setCouponId(Long couponId) { + public void setCouponId(Integer couponId) { this.couponId = couponId; } diff --git a/src/main/java/one/talon/model/CouponsNotificationPolicy.java b/src/main/java/one/talon/model/CouponsNotificationPolicy.java index ded53716..37dcbf4f 100644 --- a/src/main/java/one/talon/model/CouponsNotificationPolicy.java +++ b/src/main/java/one/talon/model/CouponsNotificationPolicy.java @@ -100,7 +100,7 @@ public ScopesEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_BATCH_SIZE = "batchSize"; @SerializedName(SERIALIZED_NAME_BATCH_SIZE) - private Long batchSize = 1000l; + private Integer batchSize; public CouponsNotificationPolicy name(String name) { @@ -198,7 +198,7 @@ public void setIncludeData(Boolean includeData) { } - public CouponsNotificationPolicy batchSize(Long batchSize) { + public CouponsNotificationPolicy batchSize(Integer batchSize) { this.batchSize = batchSize; return this; @@ -211,12 +211,12 @@ public CouponsNotificationPolicy batchSize(Long batchSize) { @javax.annotation.Nullable @ApiModelProperty(example = "1000", value = "The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.") - public Long getBatchSize() { + public Integer getBatchSize() { return batchSize; } - public void setBatchSize(Long batchSize) { + public void setBatchSize(Integer batchSize) { this.batchSize = batchSize; } diff --git a/src/main/java/one/talon/model/CreateAchievement.java b/src/main/java/one/talon/model/CreateAchievement.java index b1387d27..e32e34bf 100644 --- a/src/main/java/one/talon/model/CreateAchievement.java +++ b/src/main/java/one/talon/model/CreateAchievement.java @@ -57,13 +57,15 @@ public class CreateAchievement { private TimePoint periodEndOverride; /** - * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. */ @JsonAdapter(RecurrencePolicyEnum.Adapter.class) public enum RecurrencePolicyEnum { NO_RECURRENCE("no_recurrence"), - ON_EXPIRATION("on_expiration"); + ON_EXPIRATION("on_expiration"), + + ON_COMPLETION("on_completion"); private String value; @@ -308,11 +310,11 @@ public CreateAchievement recurrencePolicy(RecurrencePolicyEnum recurrencePolicy) } /** - * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. * @return recurrencePolicy **/ @javax.annotation.Nullable - @ApiModelProperty(example = "no_recurrence", value = "The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. ") + @ApiModelProperty(example = "no_recurrence", value = "The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. ") public RecurrencePolicyEnum getRecurrencePolicy() { return recurrencePolicy; diff --git a/src/main/java/one/talon/model/CreateApplicationAPIKey.java b/src/main/java/one/talon/model/CreateApplicationAPIKey.java index 53413123..b5869e1c 100644 --- a/src/main/java/one/talon/model/CreateApplicationAPIKey.java +++ b/src/main/java/one/talon/model/CreateApplicationAPIKey.java @@ -156,7 +156,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_TIME_OFFSET = "timeOffset"; @SerializedName(SERIALIZED_NAME_TIME_OFFSET) - private Long timeOffset; + private Integer timeOffset; public CreateApplicationAPIKey title(String title) { @@ -249,7 +249,7 @@ public void setType(TypeEnum type) { } - public CreateApplicationAPIKey timeOffset(Long timeOffset) { + public CreateApplicationAPIKey timeOffset(Integer timeOffset) { this.timeOffset = timeOffset; return this; @@ -262,12 +262,12 @@ public CreateApplicationAPIKey timeOffset(Long timeOffset) { @javax.annotation.Nullable @ApiModelProperty(example = "100000", value = "A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. ") - public Long getTimeOffset() { + public Integer getTimeOffset() { return timeOffset; } - public void setTimeOffset(Long timeOffset) { + public void setTimeOffset(Integer timeOffset) { this.timeOffset = timeOffset; } diff --git a/src/main/java/one/talon/model/CreateManagementKey.java b/src/main/java/one/talon/model/CreateManagementKey.java index 72dbb982..e79ad375 100644 --- a/src/main/java/one/talon/model/CreateManagementKey.java +++ b/src/main/java/one/talon/model/CreateManagementKey.java @@ -47,7 +47,7 @@ public class CreateManagementKey { public static final String SERIALIZED_NAME_ALLOWED_APPLICATION_IDS = "allowedApplicationIds"; @SerializedName(SERIALIZED_NAME_ALLOWED_APPLICATION_IDS) - private List allowedApplicationIds = null; + private List allowedApplicationIds = null; public CreateManagementKey name(String name) { @@ -121,15 +121,15 @@ public void setEndpoints(List endpoints) { } - public CreateManagementKey allowedApplicationIds(List allowedApplicationIds) { + public CreateManagementKey allowedApplicationIds(List allowedApplicationIds) { this.allowedApplicationIds = allowedApplicationIds; return this; } - public CreateManagementKey addAllowedApplicationIdsItem(Long allowedApplicationIdsItem) { + public CreateManagementKey addAllowedApplicationIdsItem(Integer allowedApplicationIdsItem) { if (this.allowedApplicationIds == null) { - this.allowedApplicationIds = new ArrayList(); + this.allowedApplicationIds = new ArrayList(); } this.allowedApplicationIds.add(allowedApplicationIdsItem); return this; @@ -142,12 +142,12 @@ public CreateManagementKey addAllowedApplicationIdsItem(Long allowedApplicationI @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of Application IDs that you can access with the management key. An empty or missing list means the management key can be used for all Applications in the account. ") - public List getAllowedApplicationIds() { + public List getAllowedApplicationIds() { return allowedApplicationIds; } - public void setAllowedApplicationIds(List allowedApplicationIds) { + public void setAllowedApplicationIds(List allowedApplicationIds) { this.allowedApplicationIds = allowedApplicationIds; } diff --git a/src/main/java/one/talon/model/CreateTemplateCampaign.java b/src/main/java/one/talon/model/CreateTemplateCampaign.java index c656e7aa..0096fcb3 100644 --- a/src/main/java/one/talon/model/CreateTemplateCampaign.java +++ b/src/main/java/one/talon/model/CreateTemplateCampaign.java @@ -43,7 +43,7 @@ public class CreateTemplateCampaign { public static final String SERIALIZED_NAME_TEMPLATE_ID = "templateId"; @SerializedName(SERIALIZED_NAME_TEMPLATE_ID) - private Long templateId; + private Integer templateId; public static final String SERIALIZED_NAME_CAMPAIGN_ATTRIBUTES_OVERRIDES = "campaignAttributesOverrides"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ATTRIBUTES_OVERRIDES) @@ -59,7 +59,7 @@ public class CreateTemplateCampaign { public static final String SERIALIZED_NAME_CAMPAIGN_GROUPS = "campaignGroups"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_GROUPS) - private List campaignGroups = null; + private List campaignGroups = null; public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @@ -67,11 +67,11 @@ public class CreateTemplateCampaign { public static final String SERIALIZED_NAME_EVALUATION_GROUP_ID = "evaluationGroupId"; @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_ID) - private Long evaluationGroupId; + private Integer evaluationGroupId; public static final String SERIALIZED_NAME_LINKED_STORE_IDS = "linkedStoreIds"; @SerializedName(SERIALIZED_NAME_LINKED_STORE_IDS) - private List linkedStoreIds = null; + private List linkedStoreIds = null; public CreateTemplateCampaign name(String name) { @@ -119,7 +119,7 @@ public void setDescription(String description) { } - public CreateTemplateCampaign templateId(Long templateId) { + public CreateTemplateCampaign templateId(Integer templateId) { this.templateId = templateId; return this; @@ -131,12 +131,12 @@ public CreateTemplateCampaign templateId(Long templateId) { **/ @ApiModelProperty(example = "4", required = true, value = "The ID of the Campaign Template which will be used in order to create the Campaign.") - public Long getTemplateId() { + public Integer getTemplateId() { return templateId; } - public void setTemplateId(Long templateId) { + public void setTemplateId(Integer templateId) { this.templateId = templateId; } @@ -226,15 +226,15 @@ public void setLimitOverrides(List limitOverrides) { } - public CreateTemplateCampaign campaignGroups(List campaignGroups) { + public CreateTemplateCampaign campaignGroups(List campaignGroups) { this.campaignGroups = campaignGroups; return this; } - public CreateTemplateCampaign addCampaignGroupsItem(Long campaignGroupsItem) { + public CreateTemplateCampaign addCampaignGroupsItem(Integer campaignGroupsItem) { if (this.campaignGroups == null) { - this.campaignGroups = new ArrayList(); + this.campaignGroups = new ArrayList(); } this.campaignGroups.add(campaignGroupsItem); return this; @@ -247,12 +247,12 @@ public CreateTemplateCampaign addCampaignGroupsItem(Long campaignGroupsItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[1, 3]", value = "The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) this campaign belongs to. ") - public List getCampaignGroups() { + public List getCampaignGroups() { return campaignGroups; } - public void setCampaignGroups(List campaignGroups) { + public void setCampaignGroups(List campaignGroups) { this.campaignGroups = campaignGroups; } @@ -288,7 +288,7 @@ public void setTags(List tags) { } - public CreateTemplateCampaign evaluationGroupId(Long evaluationGroupId) { + public CreateTemplateCampaign evaluationGroupId(Integer evaluationGroupId) { this.evaluationGroupId = evaluationGroupId; return this; @@ -301,25 +301,25 @@ public CreateTemplateCampaign evaluationGroupId(Long evaluationGroupId) { @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "The ID of the campaign evaluation group the campaign belongs to.") - public Long getEvaluationGroupId() { + public Integer getEvaluationGroupId() { return evaluationGroupId; } - public void setEvaluationGroupId(Long evaluationGroupId) { + public void setEvaluationGroupId(Integer evaluationGroupId) { this.evaluationGroupId = evaluationGroupId; } - public CreateTemplateCampaign linkedStoreIds(List linkedStoreIds) { + public CreateTemplateCampaign linkedStoreIds(List linkedStoreIds) { this.linkedStoreIds = linkedStoreIds; return this; } - public CreateTemplateCampaign addLinkedStoreIdsItem(Long linkedStoreIdsItem) { + public CreateTemplateCampaign addLinkedStoreIdsItem(Integer linkedStoreIdsItem) { if (this.linkedStoreIds == null) { - this.linkedStoreIds = new ArrayList(); + this.linkedStoreIds = new ArrayList(); } this.linkedStoreIds.add(linkedStoreIdsItem); return this; @@ -332,12 +332,12 @@ public CreateTemplateCampaign addLinkedStoreIdsItem(Long linkedStoreIdsItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of store IDs that are linked to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. ") - public List getLinkedStoreIds() { + public List getLinkedStoreIds() { return linkedStoreIds; } - public void setLinkedStoreIds(List linkedStoreIds) { + public void setLinkedStoreIds(List linkedStoreIds) { this.linkedStoreIds = linkedStoreIds; } diff --git a/src/main/java/one/talon/model/CustomEffect.java b/src/main/java/one/talon/model/CustomEffect.java index 6ad94d4e..c26c7034 100644 --- a/src/main/java/one/talon/model/CustomEffect.java +++ b/src/main/java/one/talon/model/CustomEffect.java @@ -35,7 +35,7 @@ public class CustomEffect { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -43,7 +43,7 @@ public class CustomEffect { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_MODIFIED = "modified"; @SerializedName(SERIALIZED_NAME_MODIFIED) @@ -51,7 +51,7 @@ public class CustomEffect { public static final String SERIALIZED_NAME_APPLICATION_IDS = "applicationIds"; @SerializedName(SERIALIZED_NAME_APPLICATION_IDS) - private List applicationIds = new ArrayList(); + private List applicationIds = new ArrayList(); public static final String SERIALIZED_NAME_IS_PER_ITEM = "isPerItem"; @SerializedName(SERIALIZED_NAME_IS_PER_ITEM) @@ -83,31 +83,31 @@ public class CustomEffect { public static final String SERIALIZED_NAME_MODIFIED_BY = "modifiedBy"; @SerializedName(SERIALIZED_NAME_MODIFIED_BY) - private Long modifiedBy; + private Integer modifiedBy; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Long createdBy; + private Integer createdBy; - public CustomEffect id(Long id) { + public CustomEffect id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -134,7 +134,7 @@ public void setCreated(OffsetDateTime created) { } - public CustomEffect accountId(Long accountId) { + public CustomEffect accountId(Integer accountId) { this.accountId = accountId; return this; @@ -146,12 +146,12 @@ public CustomEffect accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } @@ -178,13 +178,13 @@ public void setModified(OffsetDateTime modified) { } - public CustomEffect applicationIds(List applicationIds) { + public CustomEffect applicationIds(List applicationIds) { this.applicationIds = applicationIds; return this; } - public CustomEffect addApplicationIdsItem(Long applicationIdsItem) { + public CustomEffect addApplicationIdsItem(Integer applicationIdsItem) { this.applicationIds.add(applicationIdsItem); return this; } @@ -195,12 +195,12 @@ public CustomEffect addApplicationIdsItem(Long applicationIdsItem) { **/ @ApiModelProperty(required = true, value = "The IDs of the Applications that are related to this entity.") - public List getApplicationIds() { + public List getApplicationIds() { return applicationIds; } - public void setApplicationIds(List applicationIds) { + public void setApplicationIds(List applicationIds) { this.applicationIds = applicationIds; } @@ -370,7 +370,7 @@ public void setParams(List params) { } - public CustomEffect modifiedBy(Long modifiedBy) { + public CustomEffect modifiedBy(Integer modifiedBy) { this.modifiedBy = modifiedBy; return this; @@ -383,17 +383,17 @@ public CustomEffect modifiedBy(Long modifiedBy) { @javax.annotation.Nullable @ApiModelProperty(example = "334", value = "ID of the user who last updated this effect if available.") - public Long getModifiedBy() { + public Integer getModifiedBy() { return modifiedBy; } - public void setModifiedBy(Long modifiedBy) { + public void setModifiedBy(Integer modifiedBy) { this.modifiedBy = modifiedBy; } - public CustomEffect createdBy(Long createdBy) { + public CustomEffect createdBy(Integer createdBy) { this.createdBy = createdBy; return this; @@ -405,12 +405,12 @@ public CustomEffect createdBy(Long createdBy) { **/ @ApiModelProperty(example = "216", required = true, value = "ID of the user who created this effect.") - public Long getCreatedBy() { + public Integer getCreatedBy() { return createdBy; } - public void setCreatedBy(Long createdBy) { + public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } diff --git a/src/main/java/one/talon/model/CustomEffectProps.java b/src/main/java/one/talon/model/CustomEffectProps.java index fce4bdaa..6ca12dad 100644 --- a/src/main/java/one/talon/model/CustomEffectProps.java +++ b/src/main/java/one/talon/model/CustomEffectProps.java @@ -33,7 +33,7 @@ public class CustomEffectProps { public static final String SERIALIZED_NAME_EFFECT_ID = "effectId"; @SerializedName(SERIALIZED_NAME_EFFECT_ID) - private Long effectId; + private Integer effectId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -49,7 +49,7 @@ public class CustomEffectProps { public static final String SERIALIZED_NAME_BUNDLE_INDEX = "bundleIndex"; @SerializedName(SERIALIZED_NAME_BUNDLE_INDEX) - private Long bundleIndex; + private Integer bundleIndex; public static final String SERIALIZED_NAME_BUNDLE_NAME = "bundleName"; @SerializedName(SERIALIZED_NAME_BUNDLE_NAME) @@ -60,7 +60,7 @@ public class CustomEffectProps { private Object payload; - public CustomEffectProps effectId(Long effectId) { + public CustomEffectProps effectId(Integer effectId) { this.effectId = effectId; return this; @@ -72,12 +72,12 @@ public CustomEffectProps effectId(Long effectId) { **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the custom effect that was triggered.") - public Long getEffectId() { + public Integer getEffectId() { return effectId; } - public void setEffectId(Long effectId) { + public void setEffectId(Integer effectId) { this.effectId = effectId; } @@ -150,7 +150,7 @@ public void setCartItemSubPosition(BigDecimal cartItemSubPosition) { } - public CustomEffectProps bundleIndex(Long bundleIndex) { + public CustomEffectProps bundleIndex(Integer bundleIndex) { this.bundleIndex = bundleIndex; return this; @@ -163,12 +163,12 @@ public CustomEffectProps bundleIndex(Long bundleIndex) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The position of the bundle in a list of item bundles created from the same bundle definition.") - public Long getBundleIndex() { + public Integer getBundleIndex() { return bundleIndex; } - public void setBundleIndex(Long bundleIndex) { + public void setBundleIndex(Integer bundleIndex) { this.bundleIndex = bundleIndex; } diff --git a/src/main/java/one/talon/model/CustomerActivityReport.java b/src/main/java/one/talon/model/CustomerActivityReport.java index 23c95db3..ab0297f7 100644 --- a/src/main/java/one/talon/model/CustomerActivityReport.java +++ b/src/main/java/one/talon/model/CustomerActivityReport.java @@ -46,7 +46,7 @@ public class CustomerActivityReport { public static final String SERIALIZED_NAME_CUSTOMER_ID = "customerId"; @SerializedName(SERIALIZED_NAME_CUSTOMER_ID) - private Long customerId; + private Integer customerId; public static final String SERIALIZED_NAME_LAST_ACTIVITY = "lastActivity"; @SerializedName(SERIALIZED_NAME_LAST_ACTIVITY) @@ -54,15 +54,15 @@ public class CustomerActivityReport { public static final String SERIALIZED_NAME_COUPON_REDEMPTIONS = "couponRedemptions"; @SerializedName(SERIALIZED_NAME_COUPON_REDEMPTIONS) - private Long couponRedemptions; + private Integer couponRedemptions; public static final String SERIALIZED_NAME_COUPON_USE_ATTEMPTS = "couponUseAttempts"; @SerializedName(SERIALIZED_NAME_COUPON_USE_ATTEMPTS) - private Long couponUseAttempts; + private Integer couponUseAttempts; public static final String SERIALIZED_NAME_COUPON_FAILED_ATTEMPTS = "couponFailedAttempts"; @SerializedName(SERIALIZED_NAME_COUPON_FAILED_ATTEMPTS) - private Long couponFailedAttempts; + private Integer couponFailedAttempts; public static final String SERIALIZED_NAME_ACCRUED_DISCOUNTS = "accruedDiscounts"; @SerializedName(SERIALIZED_NAME_ACCRUED_DISCOUNTS) @@ -74,11 +74,11 @@ public class CustomerActivityReport { public static final String SERIALIZED_NAME_TOTAL_ORDERS = "totalOrders"; @SerializedName(SERIALIZED_NAME_TOTAL_ORDERS) - private Long totalOrders; + private Integer totalOrders; public static final String SERIALIZED_NAME_TOTAL_ORDERS_NO_COUPON = "totalOrdersNoCoupon"; @SerializedName(SERIALIZED_NAME_TOTAL_ORDERS_NO_COUPON) - private Long totalOrdersNoCoupon; + private Integer totalOrdersNoCoupon; public static final String SERIALIZED_NAME_CAMPAIGN_NAME = "campaignName"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_NAME) @@ -151,7 +151,7 @@ public void setName(String name) { } - public CustomerActivityReport customerId(Long customerId) { + public CustomerActivityReport customerId(Integer customerId) { this.customerId = customerId; return this; @@ -163,12 +163,12 @@ public CustomerActivityReport customerId(Long customerId) { **/ @ApiModelProperty(required = true, value = "The internal Talon.One ID of the customer.") - public Long getCustomerId() { + public Integer getCustomerId() { return customerId; } - public void setCustomerId(Long customerId) { + public void setCustomerId(Integer customerId) { this.customerId = customerId; } @@ -196,7 +196,7 @@ public void setLastActivity(OffsetDateTime lastActivity) { } - public CustomerActivityReport couponRedemptions(Long couponRedemptions) { + public CustomerActivityReport couponRedemptions(Integer couponRedemptions) { this.couponRedemptions = couponRedemptions; return this; @@ -208,17 +208,17 @@ public CustomerActivityReport couponRedemptions(Long couponRedemptions) { **/ @ApiModelProperty(required = true, value = "Number of coupon redemptions in all customer campaigns.") - public Long getCouponRedemptions() { + public Integer getCouponRedemptions() { return couponRedemptions; } - public void setCouponRedemptions(Long couponRedemptions) { + public void setCouponRedemptions(Integer couponRedemptions) { this.couponRedemptions = couponRedemptions; } - public CustomerActivityReport couponUseAttempts(Long couponUseAttempts) { + public CustomerActivityReport couponUseAttempts(Integer couponUseAttempts) { this.couponUseAttempts = couponUseAttempts; return this; @@ -230,17 +230,17 @@ public CustomerActivityReport couponUseAttempts(Long couponUseAttempts) { **/ @ApiModelProperty(required = true, value = "Number of coupon use attempts in all customer campaigns.") - public Long getCouponUseAttempts() { + public Integer getCouponUseAttempts() { return couponUseAttempts; } - public void setCouponUseAttempts(Long couponUseAttempts) { + public void setCouponUseAttempts(Integer couponUseAttempts) { this.couponUseAttempts = couponUseAttempts; } - public CustomerActivityReport couponFailedAttempts(Long couponFailedAttempts) { + public CustomerActivityReport couponFailedAttempts(Integer couponFailedAttempts) { this.couponFailedAttempts = couponFailedAttempts; return this; @@ -252,12 +252,12 @@ public CustomerActivityReport couponFailedAttempts(Long couponFailedAttempts) { **/ @ApiModelProperty(required = true, value = "Number of failed coupon use attempts in all customer campaigns.") - public Long getCouponFailedAttempts() { + public Integer getCouponFailedAttempts() { return couponFailedAttempts; } - public void setCouponFailedAttempts(Long couponFailedAttempts) { + public void setCouponFailedAttempts(Integer couponFailedAttempts) { this.couponFailedAttempts = couponFailedAttempts; } @@ -306,7 +306,7 @@ public void setAccruedRevenue(BigDecimal accruedRevenue) { } - public CustomerActivityReport totalOrders(Long totalOrders) { + public CustomerActivityReport totalOrders(Integer totalOrders) { this.totalOrders = totalOrders; return this; @@ -318,17 +318,17 @@ public CustomerActivityReport totalOrders(Long totalOrders) { **/ @ApiModelProperty(required = true, value = "Number of orders in all customer campaigns.") - public Long getTotalOrders() { + public Integer getTotalOrders() { return totalOrders; } - public void setTotalOrders(Long totalOrders) { + public void setTotalOrders(Integer totalOrders) { this.totalOrders = totalOrders; } - public CustomerActivityReport totalOrdersNoCoupon(Long totalOrdersNoCoupon) { + public CustomerActivityReport totalOrdersNoCoupon(Integer totalOrdersNoCoupon) { this.totalOrdersNoCoupon = totalOrdersNoCoupon; return this; @@ -340,12 +340,12 @@ public CustomerActivityReport totalOrdersNoCoupon(Long totalOrdersNoCoupon) { **/ @ApiModelProperty(required = true, value = "Number of orders without coupon used in all customer campaigns.") - public Long getTotalOrdersNoCoupon() { + public Integer getTotalOrdersNoCoupon() { return totalOrdersNoCoupon; } - public void setTotalOrdersNoCoupon(Long totalOrdersNoCoupon) { + public void setTotalOrdersNoCoupon(Integer totalOrdersNoCoupon) { this.totalOrdersNoCoupon = totalOrdersNoCoupon; } diff --git a/src/main/java/one/talon/model/CustomerAnalytics.java b/src/main/java/one/talon/model/CustomerAnalytics.java index 4d745146..9aa11399 100644 --- a/src/main/java/one/talon/model/CustomerAnalytics.java +++ b/src/main/java/one/talon/model/CustomerAnalytics.java @@ -33,23 +33,23 @@ public class CustomerAnalytics { public static final String SERIALIZED_NAME_ACCEPTED_COUPONS = "acceptedCoupons"; @SerializedName(SERIALIZED_NAME_ACCEPTED_COUPONS) - private Long acceptedCoupons; + private Integer acceptedCoupons; public static final String SERIALIZED_NAME_CREATED_COUPONS = "createdCoupons"; @SerializedName(SERIALIZED_NAME_CREATED_COUPONS) - private Long createdCoupons; + private Integer createdCoupons; public static final String SERIALIZED_NAME_FREE_ITEMS = "freeItems"; @SerializedName(SERIALIZED_NAME_FREE_ITEMS) - private Long freeItems; + private Integer freeItems; public static final String SERIALIZED_NAME_TOTAL_ORDERS = "totalOrders"; @SerializedName(SERIALIZED_NAME_TOTAL_ORDERS) - private Long totalOrders; + private Integer totalOrders; public static final String SERIALIZED_NAME_TOTAL_DISCOUNTED_ORDERS = "totalDiscountedOrders"; @SerializedName(SERIALIZED_NAME_TOTAL_DISCOUNTED_ORDERS) - private Long totalDiscountedOrders; + private Integer totalDiscountedOrders; public static final String SERIALIZED_NAME_TOTAL_REVENUE = "totalRevenue"; @SerializedName(SERIALIZED_NAME_TOTAL_REVENUE) @@ -60,7 +60,7 @@ public class CustomerAnalytics { private BigDecimal totalDiscounts; - public CustomerAnalytics acceptedCoupons(Long acceptedCoupons) { + public CustomerAnalytics acceptedCoupons(Integer acceptedCoupons) { this.acceptedCoupons = acceptedCoupons; return this; @@ -72,17 +72,17 @@ public CustomerAnalytics acceptedCoupons(Long acceptedCoupons) { **/ @ApiModelProperty(required = true, value = "Total accepted coupons for this customer.") - public Long getAcceptedCoupons() { + public Integer getAcceptedCoupons() { return acceptedCoupons; } - public void setAcceptedCoupons(Long acceptedCoupons) { + public void setAcceptedCoupons(Integer acceptedCoupons) { this.acceptedCoupons = acceptedCoupons; } - public CustomerAnalytics createdCoupons(Long createdCoupons) { + public CustomerAnalytics createdCoupons(Integer createdCoupons) { this.createdCoupons = createdCoupons; return this; @@ -94,17 +94,17 @@ public CustomerAnalytics createdCoupons(Long createdCoupons) { **/ @ApiModelProperty(required = true, value = "Total created coupons for this customer.") - public Long getCreatedCoupons() { + public Integer getCreatedCoupons() { return createdCoupons; } - public void setCreatedCoupons(Long createdCoupons) { + public void setCreatedCoupons(Integer createdCoupons) { this.createdCoupons = createdCoupons; } - public CustomerAnalytics freeItems(Long freeItems) { + public CustomerAnalytics freeItems(Integer freeItems) { this.freeItems = freeItems; return this; @@ -116,17 +116,17 @@ public CustomerAnalytics freeItems(Long freeItems) { **/ @ApiModelProperty(required = true, value = "Total free items given to this customer.") - public Long getFreeItems() { + public Integer getFreeItems() { return freeItems; } - public void setFreeItems(Long freeItems) { + public void setFreeItems(Integer freeItems) { this.freeItems = freeItems; } - public CustomerAnalytics totalOrders(Long totalOrders) { + public CustomerAnalytics totalOrders(Integer totalOrders) { this.totalOrders = totalOrders; return this; @@ -138,17 +138,17 @@ public CustomerAnalytics totalOrders(Long totalOrders) { **/ @ApiModelProperty(required = true, value = "Total orders made by this customer.") - public Long getTotalOrders() { + public Integer getTotalOrders() { return totalOrders; } - public void setTotalOrders(Long totalOrders) { + public void setTotalOrders(Integer totalOrders) { this.totalOrders = totalOrders; } - public CustomerAnalytics totalDiscountedOrders(Long totalDiscountedOrders) { + public CustomerAnalytics totalDiscountedOrders(Integer totalDiscountedOrders) { this.totalDiscountedOrders = totalDiscountedOrders; return this; @@ -160,12 +160,12 @@ public CustomerAnalytics totalDiscountedOrders(Long totalDiscountedOrders) { **/ @ApiModelProperty(required = true, value = "Total orders made by this customer that had a discount.") - public Long getTotalDiscountedOrders() { + public Integer getTotalDiscountedOrders() { return totalDiscountedOrders; } - public void setTotalDiscountedOrders(Long totalDiscountedOrders) { + public void setTotalDiscountedOrders(Integer totalDiscountedOrders) { this.totalDiscountedOrders = totalDiscountedOrders; } diff --git a/src/main/java/one/talon/model/CustomerProfile.java b/src/main/java/one/talon/model/CustomerProfile.java index c6b3cbe4..314f5436 100644 --- a/src/main/java/one/talon/model/CustomerProfile.java +++ b/src/main/java/one/talon/model/CustomerProfile.java @@ -37,7 +37,7 @@ public class CustomerProfile { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -53,11 +53,11 @@ public class CustomerProfile { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_CLOSED_SESSIONS = "closedSessions"; @SerializedName(SERIALIZED_NAME_CLOSED_SESSIONS) - private Long closedSessions; + private Integer closedSessions; public static final String SERIALIZED_NAME_TOTAL_SALES = "totalSales"; @SerializedName(SERIALIZED_NAME_TOTAL_SALES) @@ -80,24 +80,24 @@ public class CustomerProfile { private Boolean sandbox; - public CustomerProfile id(Long id) { + public CustomerProfile id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of the customer profile. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of the customer profile.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -168,7 +168,7 @@ public void setAttributes(Object attributes) { } - public CustomerProfile accountId(Long accountId) { + public CustomerProfile accountId(Integer accountId) { this.accountId = accountId; return this; @@ -180,34 +180,34 @@ public CustomerProfile accountId(Long accountId) { **/ @ApiModelProperty(example = "31", required = true, value = "The ID of the Talon.One account that owns this profile.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } - public CustomerProfile closedSessions(Long closedSessions) { + public CustomerProfile closedSessions(Integer closedSessions) { this.closedSessions = closedSessions; return this; } /** - * The total amount of closed sessions by a customer. A closed session is a successful purchase. + * The total number of closed sessions. Does not include closed sessions that have been cancelled or reopened. See the [docs](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states). * @return closedSessions **/ - @ApiModelProperty(example = "3", required = true, value = "The total amount of closed sessions by a customer. A closed session is a successful purchase.") + @ApiModelProperty(example = "3", required = true, value = "The total number of closed sessions. Does not include closed sessions that have been cancelled or reopened. See the [docs](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states).") - public Long getClosedSessions() { + public Integer getClosedSessions() { return closedSessions; } - public void setClosedSessions(Long closedSessions) { + public void setClosedSessions(Integer closedSessions) { this.closedSessions = closedSessions; } diff --git a/src/main/java/one/talon/model/CustomerProfileAudienceRequestItem.java b/src/main/java/one/talon/model/CustomerProfileAudienceRequestItem.java index 3c816f0c..7db07c3c 100644 --- a/src/main/java/one/talon/model/CustomerProfileAudienceRequestItem.java +++ b/src/main/java/one/talon/model/CustomerProfileAudienceRequestItem.java @@ -86,7 +86,7 @@ public ActionEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_AUDIENCE_ID = "audienceId"; @SerializedName(SERIALIZED_NAME_AUDIENCE_ID) - private Long audienceId; + private Integer audienceId; public CustomerProfileAudienceRequestItem action(ActionEnum action) { @@ -133,7 +133,7 @@ public void setProfileIntegrationId(String profileIntegrationId) { } - public CustomerProfileAudienceRequestItem audienceId(Long audienceId) { + public CustomerProfileAudienceRequestItem audienceId(Integer audienceId) { this.audienceId = audienceId; return this; @@ -145,12 +145,12 @@ public CustomerProfileAudienceRequestItem audienceId(Long audienceId) { **/ @ApiModelProperty(example = "748", required = true, value = "The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2).") - public Long getAudienceId() { + public Integer getAudienceId() { return audienceId; } - public void setAudienceId(Long audienceId) { + public void setAudienceId(Integer audienceId) { this.audienceId = audienceId; } diff --git a/src/main/java/one/talon/model/CustomerProfileEntity.java b/src/main/java/one/talon/model/CustomerProfileEntity.java new file mode 100644 index 00000000..ab053e07 --- /dev/null +++ b/src/main/java/one/talon/model/CustomerProfileEntity.java @@ -0,0 +1,127 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; + +/** + * CustomerProfileEntity + */ + +public class CustomerProfileEntity { + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Integer id; + + public static final String SERIALIZED_NAME_CREATED = "created"; + @SerializedName(SERIALIZED_NAME_CREATED) + private OffsetDateTime created; + + + public CustomerProfileEntity id(Integer id) { + + this.id = id; + return this; + } + + /** + * The internal ID of the customer profile. + * @return id + **/ + @ApiModelProperty(example = "6", required = true, value = "The internal ID of the customer profile.") + + public Integer getId() { + return id; + } + + + public void setId(Integer id) { + this.id = id; + } + + + public CustomerProfileEntity created(OffsetDateTime created) { + + this.created = created; + return this; + } + + /** + * The time the customer profile was created. + * @return created + **/ + @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time the customer profile was created.") + + public OffsetDateTime getCreated() { + return created; + } + + + public void setCreated(OffsetDateTime created) { + this.created = created; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CustomerProfileEntity customerProfileEntity = (CustomerProfileEntity) o; + return Objects.equals(this.id, customerProfileEntity.id) && + Objects.equals(this.created, customerProfileEntity.created); + } + + @Override + public int hashCode() { + return Objects.hash(id, created); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CustomerProfileEntity {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" created: ").append(toIndentedString(created)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/CustomerProfileSearchQuery.java b/src/main/java/one/talon/model/CustomerProfileSearchQuery.java index 12d60944..a68a18cf 100644 --- a/src/main/java/one/talon/model/CustomerProfileSearchQuery.java +++ b/src/main/java/one/talon/model/CustomerProfileSearchQuery.java @@ -41,7 +41,7 @@ public class CustomerProfileSearchQuery { public static final String SERIALIZED_NAME_PROFILE_I_DS = "profileIDs"; @SerializedName(SERIALIZED_NAME_PROFILE_I_DS) - private List profileIDs = null; + private List profileIDs = null; public CustomerProfileSearchQuery attributes(Object attributes) { @@ -98,15 +98,15 @@ public void setIntegrationIDs(List integrationIDs) { } - public CustomerProfileSearchQuery profileIDs(List profileIDs) { + public CustomerProfileSearchQuery profileIDs(List profileIDs) { this.profileIDs = profileIDs; return this; } - public CustomerProfileSearchQuery addProfileIDsItem(Long profileIDsItem) { + public CustomerProfileSearchQuery addProfileIDsItem(Integer profileIDsItem) { if (this.profileIDs == null) { - this.profileIDs = new ArrayList(); + this.profileIDs = new ArrayList(); } this.profileIDs.add(profileIDsItem); return this; @@ -119,12 +119,12 @@ public CustomerProfileSearchQuery addProfileIDsItem(Long profileIDsItem) { @javax.annotation.Nullable @ApiModelProperty(value = "") - public List getProfileIDs() { + public List getProfileIDs() { return profileIDs; } - public void setProfileIDs(List profileIDs) { + public void setProfileIDs(List profileIDs) { this.profileIDs = profileIDs; } diff --git a/src/main/java/one/talon/model/CustomerSession.java b/src/main/java/one/talon/model/CustomerSession.java index 6f670204..4167bcd4 100644 --- a/src/main/java/one/talon/model/CustomerSession.java +++ b/src/main/java/one/talon/model/CustomerSession.java @@ -46,7 +46,7 @@ public class CustomerSession { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_PROFILE_ID = "profileId"; @SerializedName(SERIALIZED_NAME_PROFILE_ID) @@ -188,7 +188,7 @@ public void setCreated(OffsetDateTime created) { } - public CustomerSession applicationId(Long applicationId) { + public CustomerSession applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -200,12 +200,12 @@ public CustomerSession applicationId(Long applicationId) { **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } diff --git a/src/main/java/one/talon/model/CustomerSessionV2.java b/src/main/java/one/talon/model/CustomerSessionV2.java index 8e1977aa..cb27203e 100644 --- a/src/main/java/one/talon/model/CustomerSessionV2.java +++ b/src/main/java/one/talon/model/CustomerSessionV2.java @@ -40,7 +40,7 @@ public class CustomerSessionV2 { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -52,7 +52,7 @@ public class CustomerSessionV2 { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_PROFILE_ID = "profileId"; @SerializedName(SERIALIZED_NAME_PROFILE_ID) @@ -64,7 +64,7 @@ public class CustomerSessionV2 { public static final String SERIALIZED_NAME_EVALUABLE_CAMPAIGN_IDS = "evaluableCampaignIds"; @SerializedName(SERIALIZED_NAME_EVALUABLE_CAMPAIGN_IDS) - private List evaluableCampaignIds = null; + private List evaluableCampaignIds = null; public static final String SERIALIZED_NAME_COUPON_CODES = "couponCodes"; @SerializedName(SERIALIZED_NAME_COUPON_CODES) @@ -170,24 +170,24 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { private OffsetDateTime updated; - public CustomerSessionV2 id(Long id) { + public CustomerSessionV2 id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -236,7 +236,7 @@ public void setIntegrationId(String integrationId) { } - public CustomerSessionV2 applicationId(Long applicationId) { + public CustomerSessionV2 applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -248,12 +248,12 @@ public CustomerSessionV2 applicationId(Long applicationId) { **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } @@ -303,15 +303,15 @@ public void setStoreIntegrationId(String storeIntegrationId) { } - public CustomerSessionV2 evaluableCampaignIds(List evaluableCampaignIds) { + public CustomerSessionV2 evaluableCampaignIds(List evaluableCampaignIds) { this.evaluableCampaignIds = evaluableCampaignIds; return this; } - public CustomerSessionV2 addEvaluableCampaignIdsItem(Long evaluableCampaignIdsItem) { + public CustomerSessionV2 addEvaluableCampaignIdsItem(Integer evaluableCampaignIdsItem) { if (this.evaluableCampaignIds == null) { - this.evaluableCampaignIds = new ArrayList(); + this.evaluableCampaignIds = new ArrayList(); } this.evaluableCampaignIds.add(evaluableCampaignIdsItem); return this; @@ -324,12 +324,12 @@ public CustomerSessionV2 addEvaluableCampaignIdsItem(Long evaluableCampaignIdsIt @javax.annotation.Nullable @ApiModelProperty(example = "[10, 12]", value = "When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. ") - public List getEvaluableCampaignIds() { + public List getEvaluableCampaignIds() { return evaluableCampaignIds; } - public void setEvaluableCampaignIds(List evaluableCampaignIds) { + public void setEvaluableCampaignIds(List evaluableCampaignIds) { this.evaluableCampaignIds = evaluableCampaignIds; } diff --git a/src/main/java/one/talon/model/DeductLoyaltyPoints.java b/src/main/java/one/talon/model/DeductLoyaltyPoints.java index c8cafc39..9accf9a7 100644 --- a/src/main/java/one/talon/model/DeductLoyaltyPoints.java +++ b/src/main/java/one/talon/model/DeductLoyaltyPoints.java @@ -45,7 +45,7 @@ public class DeductLoyaltyPoints { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public DeductLoyaltyPoints points(BigDecimal points) { @@ -118,7 +118,7 @@ public void setSubledgerId(String subledgerId) { } - public DeductLoyaltyPoints applicationId(Long applicationId) { + public DeductLoyaltyPoints applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -131,12 +131,12 @@ public DeductLoyaltyPoints applicationId(Long applicationId) { @javax.annotation.Nullable @ApiModelProperty(example = "322", value = "ID of the Application that is connected to the loyalty program.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } diff --git a/src/main/java/one/talon/model/DeductLoyaltyPointsEffectProps.java b/src/main/java/one/talon/model/DeductLoyaltyPointsEffectProps.java index 69a889fa..a8611258 100644 --- a/src/main/java/one/talon/model/DeductLoyaltyPointsEffectProps.java +++ b/src/main/java/one/talon/model/DeductLoyaltyPointsEffectProps.java @@ -37,7 +37,7 @@ public class DeductLoyaltyPointsEffectProps { public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; @SerializedName(SERIALIZED_NAME_PROGRAM_ID) - private Long programId; + private Integer programId; public static final String SERIALIZED_NAME_SUB_LEDGER_ID = "subLedgerId"; @SerializedName(SERIALIZED_NAME_SUB_LEDGER_ID) @@ -82,7 +82,7 @@ public void setRuleTitle(String ruleTitle) { } - public DeductLoyaltyPointsEffectProps programId(Long programId) { + public DeductLoyaltyPointsEffectProps programId(Integer programId) { this.programId = programId; return this; @@ -94,12 +94,12 @@ public DeductLoyaltyPointsEffectProps programId(Long programId) { **/ @ApiModelProperty(required = true, value = "The ID of the loyalty program where these points were added.") - public Long getProgramId() { + public Integer getProgramId() { return programId; } - public void setProgramId(Long programId) { + public void setProgramId(Integer programId) { this.programId = programId; } diff --git a/src/main/java/one/talon/model/Effect.java b/src/main/java/one/talon/model/Effect.java index ed575dcc..60504d70 100644 --- a/src/main/java/one/talon/model/Effect.java +++ b/src/main/java/one/talon/model/Effect.java @@ -23,6 +23,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.math.BigDecimal; +import java.util.UUID; /** * A generic effect that is fired by a triggered campaign. The props property will contain information specific to the specific effect type. @@ -32,15 +34,15 @@ public class Effect { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_RULESET_ID = "rulesetId"; @SerializedName(SERIALIZED_NAME_RULESET_ID) - private Long rulesetId; + private Integer rulesetId; public static final String SERIALIZED_NAME_RULE_INDEX = "ruleIndex"; @SerializedName(SERIALIZED_NAME_RULE_INDEX) - private Long ruleIndex; + private Integer ruleIndex; public static final String SERIALIZED_NAME_RULE_NAME = "ruleName"; @SerializedName(SERIALIZED_NAME_RULE_NAME) @@ -52,19 +54,19 @@ public class Effect { public static final String SERIALIZED_NAME_TRIGGERED_BY_COUPON = "triggeredByCoupon"; @SerializedName(SERIALIZED_NAME_TRIGGERED_BY_COUPON) - private Long triggeredByCoupon; + private Integer triggeredByCoupon; public static final String SERIALIZED_NAME_TRIGGERED_FOR_CATALOG_ITEM = "triggeredForCatalogItem"; @SerializedName(SERIALIZED_NAME_TRIGGERED_FOR_CATALOG_ITEM) - private Long triggeredForCatalogItem; + private Integer triggeredForCatalogItem; public static final String SERIALIZED_NAME_CONDITION_INDEX = "conditionIndex"; @SerializedName(SERIALIZED_NAME_CONDITION_INDEX) - private Long conditionIndex; + private Integer conditionIndex; public static final String SERIALIZED_NAME_EVALUATION_GROUP_I_D = "evaluationGroupID"; @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_I_D) - private Long evaluationGroupID; + private Integer evaluationGroupID; public static final String SERIALIZED_NAME_EVALUATION_GROUP_MODE = "evaluationGroupMode"; @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_MODE) @@ -72,18 +74,30 @@ public class Effect { public static final String SERIALIZED_NAME_CAMPAIGN_REVISION_ID = "campaignRevisionId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_REVISION_ID) - private Long campaignRevisionId; + private Integer campaignRevisionId; public static final String SERIALIZED_NAME_CAMPAIGN_REVISION_VERSION_ID = "campaignRevisionVersionId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_REVISION_VERSION_ID) - private Long campaignRevisionVersionId; + private Integer campaignRevisionVersionId; + + public static final String SERIALIZED_NAME_SELECTED_PRICE_TYPE = "selectedPriceType"; + @SerializedName(SERIALIZED_NAME_SELECTED_PRICE_TYPE) + private String selectedPriceType; + + public static final String SERIALIZED_NAME_SELECTED_PRICE = "selectedPrice"; + @SerializedName(SERIALIZED_NAME_SELECTED_PRICE) + private BigDecimal selectedPrice; + + public static final String SERIALIZED_NAME_ADJUSTMENT_REFERENCE_ID = "adjustmentReferenceId"; + @SerializedName(SERIALIZED_NAME_ADJUSTMENT_REFERENCE_ID) + private UUID adjustmentReferenceId; public static final String SERIALIZED_NAME_PROPS = "props"; @SerializedName(SERIALIZED_NAME_PROPS) private Object props; - public Effect campaignId(Long campaignId) { + public Effect campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -95,17 +109,17 @@ public Effect campaignId(Long campaignId) { **/ @ApiModelProperty(example = "244", required = true, value = "The ID of the campaign that triggered this effect.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } - public Effect rulesetId(Long rulesetId) { + public Effect rulesetId(Integer rulesetId) { this.rulesetId = rulesetId; return this; @@ -117,17 +131,17 @@ public Effect rulesetId(Long rulesetId) { **/ @ApiModelProperty(example = "73", required = true, value = "The ID of the ruleset that was active in the campaign when this effect was triggered.") - public Long getRulesetId() { + public Integer getRulesetId() { return rulesetId; } - public void setRulesetId(Long rulesetId) { + public void setRulesetId(Integer rulesetId) { this.rulesetId = rulesetId; } - public Effect ruleIndex(Long ruleIndex) { + public Effect ruleIndex(Integer ruleIndex) { this.ruleIndex = ruleIndex; return this; @@ -139,12 +153,12 @@ public Effect ruleIndex(Long ruleIndex) { **/ @ApiModelProperty(example = "2", required = true, value = "The position of the rule that triggered this effect within the ruleset.") - public Long getRuleIndex() { + public Integer getRuleIndex() { return ruleIndex; } - public void setRuleIndex(Long ruleIndex) { + public void setRuleIndex(Integer ruleIndex) { this.ruleIndex = ruleIndex; } @@ -193,7 +207,7 @@ public void setEffectType(String effectType) { } - public Effect triggeredByCoupon(Long triggeredByCoupon) { + public Effect triggeredByCoupon(Integer triggeredByCoupon) { this.triggeredByCoupon = triggeredByCoupon; return this; @@ -206,17 +220,17 @@ public Effect triggeredByCoupon(Long triggeredByCoupon) { @javax.annotation.Nullable @ApiModelProperty(example = "4928", value = "The ID of the coupon that was being evaluated when this effect was triggered.") - public Long getTriggeredByCoupon() { + public Integer getTriggeredByCoupon() { return triggeredByCoupon; } - public void setTriggeredByCoupon(Long triggeredByCoupon) { + public void setTriggeredByCoupon(Integer triggeredByCoupon) { this.triggeredByCoupon = triggeredByCoupon; } - public Effect triggeredForCatalogItem(Long triggeredForCatalogItem) { + public Effect triggeredForCatalogItem(Integer triggeredForCatalogItem) { this.triggeredForCatalogItem = triggeredForCatalogItem; return this; @@ -229,17 +243,17 @@ public Effect triggeredForCatalogItem(Long triggeredForCatalogItem) { @javax.annotation.Nullable @ApiModelProperty(example = "786", value = "The ID of the catalog item that was being evaluated when this effect was triggered.") - public Long getTriggeredForCatalogItem() { + public Integer getTriggeredForCatalogItem() { return triggeredForCatalogItem; } - public void setTriggeredForCatalogItem(Long triggeredForCatalogItem) { + public void setTriggeredForCatalogItem(Integer triggeredForCatalogItem) { this.triggeredForCatalogItem = triggeredForCatalogItem; } - public Effect conditionIndex(Long conditionIndex) { + public Effect conditionIndex(Integer conditionIndex) { this.conditionIndex = conditionIndex; return this; @@ -252,17 +266,17 @@ public Effect conditionIndex(Long conditionIndex) { @javax.annotation.Nullable @ApiModelProperty(example = "786", value = "The index of the condition that was triggered.") - public Long getConditionIndex() { + public Integer getConditionIndex() { return conditionIndex; } - public void setConditionIndex(Long conditionIndex) { + public void setConditionIndex(Integer conditionIndex) { this.conditionIndex = conditionIndex; } - public Effect evaluationGroupID(Long evaluationGroupID) { + public Effect evaluationGroupID(Integer evaluationGroupID) { this.evaluationGroupID = evaluationGroupID; return this; @@ -275,12 +289,12 @@ public Effect evaluationGroupID(Long evaluationGroupID) { @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation).") - public Long getEvaluationGroupID() { + public Integer getEvaluationGroupID() { return evaluationGroupID; } - public void setEvaluationGroupID(Long evaluationGroupID) { + public void setEvaluationGroupID(Integer evaluationGroupID) { this.evaluationGroupID = evaluationGroupID; } @@ -308,7 +322,7 @@ public void setEvaluationGroupMode(String evaluationGroupMode) { } - public Effect campaignRevisionId(Long campaignRevisionId) { + public Effect campaignRevisionId(Integer campaignRevisionId) { this.campaignRevisionId = campaignRevisionId; return this; @@ -321,17 +335,17 @@ public Effect campaignRevisionId(Long campaignRevisionId) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The revision ID of the campaign that was used when triggering the effect.") - public Long getCampaignRevisionId() { + public Integer getCampaignRevisionId() { return campaignRevisionId; } - public void setCampaignRevisionId(Long campaignRevisionId) { + public void setCampaignRevisionId(Integer campaignRevisionId) { this.campaignRevisionId = campaignRevisionId; } - public Effect campaignRevisionVersionId(Long campaignRevisionVersionId) { + public Effect campaignRevisionVersionId(Integer campaignRevisionVersionId) { this.campaignRevisionVersionId = campaignRevisionVersionId; return this; @@ -344,16 +358,85 @@ public Effect campaignRevisionVersionId(Long campaignRevisionVersionId) { @javax.annotation.Nullable @ApiModelProperty(example = "5", value = "The revision version ID of the campaign that was used when triggering the effect.") - public Long getCampaignRevisionVersionId() { + public Integer getCampaignRevisionVersionId() { return campaignRevisionVersionId; } - public void setCampaignRevisionVersionId(Long campaignRevisionVersionId) { + public void setCampaignRevisionVersionId(Integer campaignRevisionVersionId) { this.campaignRevisionVersionId = campaignRevisionVersionId; } + public Effect selectedPriceType(String selectedPriceType) { + + this.selectedPriceType = selectedPriceType; + return this; + } + + /** + * The selected price type for the SKU targeted by this effect. + * @return selectedPriceType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "member", value = "The selected price type for the SKU targeted by this effect.") + + public String getSelectedPriceType() { + return selectedPriceType; + } + + + public void setSelectedPriceType(String selectedPriceType) { + this.selectedPriceType = selectedPriceType; + } + + + public Effect selectedPrice(BigDecimal selectedPrice) { + + this.selectedPrice = selectedPrice; + return this; + } + + /** + * The value of the selected price type to apply to the SKU targeted by this effect, before any discounts are applied. + * @return selectedPrice + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "100.0", value = "The value of the selected price type to apply to the SKU targeted by this effect, before any discounts are applied.") + + public BigDecimal getSelectedPrice() { + return selectedPrice; + } + + + public void setSelectedPrice(BigDecimal selectedPrice) { + this.selectedPrice = selectedPrice; + } + + + public Effect adjustmentReferenceId(UUID adjustmentReferenceId) { + + this.adjustmentReferenceId = adjustmentReferenceId; + return this; + } + + /** + * The reference identifier of the selected price adjustment for this SKU. This is only returned if the `selectedPrice` resulted from a price adjustment. + * @return adjustmentReferenceId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "68851723-e6fa-488f-ace9-112581e6c19b", value = "The reference identifier of the selected price adjustment for this SKU. This is only returned if the `selectedPrice` resulted from a price adjustment.") + + public UUID getAdjustmentReferenceId() { + return adjustmentReferenceId; + } + + + public void setAdjustmentReferenceId(UUID adjustmentReferenceId) { + this.adjustmentReferenceId = adjustmentReferenceId; + } + + public Effect props(Object props) { this.props = props; @@ -397,12 +480,15 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.evaluationGroupMode, effect.evaluationGroupMode) && Objects.equals(this.campaignRevisionId, effect.campaignRevisionId) && Objects.equals(this.campaignRevisionVersionId, effect.campaignRevisionVersionId) && + Objects.equals(this.selectedPriceType, effect.selectedPriceType) && + Objects.equals(this.selectedPrice, effect.selectedPrice) && + Objects.equals(this.adjustmentReferenceId, effect.adjustmentReferenceId) && Objects.equals(this.props, effect.props); } @Override public int hashCode() { - return Objects.hash(campaignId, rulesetId, ruleIndex, ruleName, effectType, triggeredByCoupon, triggeredForCatalogItem, conditionIndex, evaluationGroupID, evaluationGroupMode, campaignRevisionId, campaignRevisionVersionId, props); + return Objects.hash(campaignId, rulesetId, ruleIndex, ruleName, effectType, triggeredByCoupon, triggeredForCatalogItem, conditionIndex, evaluationGroupID, evaluationGroupMode, campaignRevisionId, campaignRevisionVersionId, selectedPriceType, selectedPrice, adjustmentReferenceId, props); } @@ -422,6 +508,9 @@ public String toString() { sb.append(" evaluationGroupMode: ").append(toIndentedString(evaluationGroupMode)).append("\n"); sb.append(" campaignRevisionId: ").append(toIndentedString(campaignRevisionId)).append("\n"); sb.append(" campaignRevisionVersionId: ").append(toIndentedString(campaignRevisionVersionId)).append("\n"); + sb.append(" selectedPriceType: ").append(toIndentedString(selectedPriceType)).append("\n"); + sb.append(" selectedPrice: ").append(toIndentedString(selectedPrice)).append("\n"); + sb.append(" adjustmentReferenceId: ").append(toIndentedString(adjustmentReferenceId)).append("\n"); sb.append(" props: ").append(toIndentedString(props)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/EffectEntity.java b/src/main/java/one/talon/model/EffectEntity.java index abd00dba..eaeeb2df 100644 --- a/src/main/java/one/talon/model/EffectEntity.java +++ b/src/main/java/one/talon/model/EffectEntity.java @@ -23,6 +23,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.math.BigDecimal; +import java.util.UUID; /** * Definition of all properties that are present on all effects, independent of their type. @@ -32,15 +34,15 @@ public class EffectEntity { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_RULESET_ID = "rulesetId"; @SerializedName(SERIALIZED_NAME_RULESET_ID) - private Long rulesetId; + private Integer rulesetId; public static final String SERIALIZED_NAME_RULE_INDEX = "ruleIndex"; @SerializedName(SERIALIZED_NAME_RULE_INDEX) - private Long ruleIndex; + private Integer ruleIndex; public static final String SERIALIZED_NAME_RULE_NAME = "ruleName"; @SerializedName(SERIALIZED_NAME_RULE_NAME) @@ -52,19 +54,19 @@ public class EffectEntity { public static final String SERIALIZED_NAME_TRIGGERED_BY_COUPON = "triggeredByCoupon"; @SerializedName(SERIALIZED_NAME_TRIGGERED_BY_COUPON) - private Long triggeredByCoupon; + private Integer triggeredByCoupon; public static final String SERIALIZED_NAME_TRIGGERED_FOR_CATALOG_ITEM = "triggeredForCatalogItem"; @SerializedName(SERIALIZED_NAME_TRIGGERED_FOR_CATALOG_ITEM) - private Long triggeredForCatalogItem; + private Integer triggeredForCatalogItem; public static final String SERIALIZED_NAME_CONDITION_INDEX = "conditionIndex"; @SerializedName(SERIALIZED_NAME_CONDITION_INDEX) - private Long conditionIndex; + private Integer conditionIndex; public static final String SERIALIZED_NAME_EVALUATION_GROUP_I_D = "evaluationGroupID"; @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_I_D) - private Long evaluationGroupID; + private Integer evaluationGroupID; public static final String SERIALIZED_NAME_EVALUATION_GROUP_MODE = "evaluationGroupMode"; @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_MODE) @@ -72,14 +74,26 @@ public class EffectEntity { public static final String SERIALIZED_NAME_CAMPAIGN_REVISION_ID = "campaignRevisionId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_REVISION_ID) - private Long campaignRevisionId; + private Integer campaignRevisionId; public static final String SERIALIZED_NAME_CAMPAIGN_REVISION_VERSION_ID = "campaignRevisionVersionId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_REVISION_VERSION_ID) - private Long campaignRevisionVersionId; + private Integer campaignRevisionVersionId; + public static final String SERIALIZED_NAME_SELECTED_PRICE_TYPE = "selectedPriceType"; + @SerializedName(SERIALIZED_NAME_SELECTED_PRICE_TYPE) + private String selectedPriceType; - public EffectEntity campaignId(Long campaignId) { + public static final String SERIALIZED_NAME_SELECTED_PRICE = "selectedPrice"; + @SerializedName(SERIALIZED_NAME_SELECTED_PRICE) + private BigDecimal selectedPrice; + + public static final String SERIALIZED_NAME_ADJUSTMENT_REFERENCE_ID = "adjustmentReferenceId"; + @SerializedName(SERIALIZED_NAME_ADJUSTMENT_REFERENCE_ID) + private UUID adjustmentReferenceId; + + + public EffectEntity campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -91,17 +105,17 @@ public EffectEntity campaignId(Long campaignId) { **/ @ApiModelProperty(example = "244", required = true, value = "The ID of the campaign that triggered this effect.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } - public EffectEntity rulesetId(Long rulesetId) { + public EffectEntity rulesetId(Integer rulesetId) { this.rulesetId = rulesetId; return this; @@ -113,17 +127,17 @@ public EffectEntity rulesetId(Long rulesetId) { **/ @ApiModelProperty(example = "73", required = true, value = "The ID of the ruleset that was active in the campaign when this effect was triggered.") - public Long getRulesetId() { + public Integer getRulesetId() { return rulesetId; } - public void setRulesetId(Long rulesetId) { + public void setRulesetId(Integer rulesetId) { this.rulesetId = rulesetId; } - public EffectEntity ruleIndex(Long ruleIndex) { + public EffectEntity ruleIndex(Integer ruleIndex) { this.ruleIndex = ruleIndex; return this; @@ -135,12 +149,12 @@ public EffectEntity ruleIndex(Long ruleIndex) { **/ @ApiModelProperty(example = "2", required = true, value = "The position of the rule that triggered this effect within the ruleset.") - public Long getRuleIndex() { + public Integer getRuleIndex() { return ruleIndex; } - public void setRuleIndex(Long ruleIndex) { + public void setRuleIndex(Integer ruleIndex) { this.ruleIndex = ruleIndex; } @@ -189,7 +203,7 @@ public void setEffectType(String effectType) { } - public EffectEntity triggeredByCoupon(Long triggeredByCoupon) { + public EffectEntity triggeredByCoupon(Integer triggeredByCoupon) { this.triggeredByCoupon = triggeredByCoupon; return this; @@ -202,17 +216,17 @@ public EffectEntity triggeredByCoupon(Long triggeredByCoupon) { @javax.annotation.Nullable @ApiModelProperty(example = "4928", value = "The ID of the coupon that was being evaluated when this effect was triggered.") - public Long getTriggeredByCoupon() { + public Integer getTriggeredByCoupon() { return triggeredByCoupon; } - public void setTriggeredByCoupon(Long triggeredByCoupon) { + public void setTriggeredByCoupon(Integer triggeredByCoupon) { this.triggeredByCoupon = triggeredByCoupon; } - public EffectEntity triggeredForCatalogItem(Long triggeredForCatalogItem) { + public EffectEntity triggeredForCatalogItem(Integer triggeredForCatalogItem) { this.triggeredForCatalogItem = triggeredForCatalogItem; return this; @@ -225,17 +239,17 @@ public EffectEntity triggeredForCatalogItem(Long triggeredForCatalogItem) { @javax.annotation.Nullable @ApiModelProperty(example = "786", value = "The ID of the catalog item that was being evaluated when this effect was triggered.") - public Long getTriggeredForCatalogItem() { + public Integer getTriggeredForCatalogItem() { return triggeredForCatalogItem; } - public void setTriggeredForCatalogItem(Long triggeredForCatalogItem) { + public void setTriggeredForCatalogItem(Integer triggeredForCatalogItem) { this.triggeredForCatalogItem = triggeredForCatalogItem; } - public EffectEntity conditionIndex(Long conditionIndex) { + public EffectEntity conditionIndex(Integer conditionIndex) { this.conditionIndex = conditionIndex; return this; @@ -248,17 +262,17 @@ public EffectEntity conditionIndex(Long conditionIndex) { @javax.annotation.Nullable @ApiModelProperty(example = "786", value = "The index of the condition that was triggered.") - public Long getConditionIndex() { + public Integer getConditionIndex() { return conditionIndex; } - public void setConditionIndex(Long conditionIndex) { + public void setConditionIndex(Integer conditionIndex) { this.conditionIndex = conditionIndex; } - public EffectEntity evaluationGroupID(Long evaluationGroupID) { + public EffectEntity evaluationGroupID(Integer evaluationGroupID) { this.evaluationGroupID = evaluationGroupID; return this; @@ -271,12 +285,12 @@ public EffectEntity evaluationGroupID(Long evaluationGroupID) { @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation).") - public Long getEvaluationGroupID() { + public Integer getEvaluationGroupID() { return evaluationGroupID; } - public void setEvaluationGroupID(Long evaluationGroupID) { + public void setEvaluationGroupID(Integer evaluationGroupID) { this.evaluationGroupID = evaluationGroupID; } @@ -304,7 +318,7 @@ public void setEvaluationGroupMode(String evaluationGroupMode) { } - public EffectEntity campaignRevisionId(Long campaignRevisionId) { + public EffectEntity campaignRevisionId(Integer campaignRevisionId) { this.campaignRevisionId = campaignRevisionId; return this; @@ -317,17 +331,17 @@ public EffectEntity campaignRevisionId(Long campaignRevisionId) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The revision ID of the campaign that was used when triggering the effect.") - public Long getCampaignRevisionId() { + public Integer getCampaignRevisionId() { return campaignRevisionId; } - public void setCampaignRevisionId(Long campaignRevisionId) { + public void setCampaignRevisionId(Integer campaignRevisionId) { this.campaignRevisionId = campaignRevisionId; } - public EffectEntity campaignRevisionVersionId(Long campaignRevisionVersionId) { + public EffectEntity campaignRevisionVersionId(Integer campaignRevisionVersionId) { this.campaignRevisionVersionId = campaignRevisionVersionId; return this; @@ -340,16 +354,85 @@ public EffectEntity campaignRevisionVersionId(Long campaignRevisionVersionId) { @javax.annotation.Nullable @ApiModelProperty(example = "5", value = "The revision version ID of the campaign that was used when triggering the effect.") - public Long getCampaignRevisionVersionId() { + public Integer getCampaignRevisionVersionId() { return campaignRevisionVersionId; } - public void setCampaignRevisionVersionId(Long campaignRevisionVersionId) { + public void setCampaignRevisionVersionId(Integer campaignRevisionVersionId) { this.campaignRevisionVersionId = campaignRevisionVersionId; } + public EffectEntity selectedPriceType(String selectedPriceType) { + + this.selectedPriceType = selectedPriceType; + return this; + } + + /** + * The selected price type for the SKU targeted by this effect. + * @return selectedPriceType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "member", value = "The selected price type for the SKU targeted by this effect.") + + public String getSelectedPriceType() { + return selectedPriceType; + } + + + public void setSelectedPriceType(String selectedPriceType) { + this.selectedPriceType = selectedPriceType; + } + + + public EffectEntity selectedPrice(BigDecimal selectedPrice) { + + this.selectedPrice = selectedPrice; + return this; + } + + /** + * The value of the selected price type to apply to the SKU targeted by this effect, before any discounts are applied. + * @return selectedPrice + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "100.0", value = "The value of the selected price type to apply to the SKU targeted by this effect, before any discounts are applied.") + + public BigDecimal getSelectedPrice() { + return selectedPrice; + } + + + public void setSelectedPrice(BigDecimal selectedPrice) { + this.selectedPrice = selectedPrice; + } + + + public EffectEntity adjustmentReferenceId(UUID adjustmentReferenceId) { + + this.adjustmentReferenceId = adjustmentReferenceId; + return this; + } + + /** + * The reference identifier of the selected price adjustment for this SKU. This is only returned if the `selectedPrice` resulted from a price adjustment. + * @return adjustmentReferenceId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "68851723-e6fa-488f-ace9-112581e6c19b", value = "The reference identifier of the selected price adjustment for this SKU. This is only returned if the `selectedPrice` resulted from a price adjustment.") + + public UUID getAdjustmentReferenceId() { + return adjustmentReferenceId; + } + + + public void setAdjustmentReferenceId(UUID adjustmentReferenceId) { + this.adjustmentReferenceId = adjustmentReferenceId; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -370,12 +453,15 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.evaluationGroupID, effectEntity.evaluationGroupID) && Objects.equals(this.evaluationGroupMode, effectEntity.evaluationGroupMode) && Objects.equals(this.campaignRevisionId, effectEntity.campaignRevisionId) && - Objects.equals(this.campaignRevisionVersionId, effectEntity.campaignRevisionVersionId); + Objects.equals(this.campaignRevisionVersionId, effectEntity.campaignRevisionVersionId) && + Objects.equals(this.selectedPriceType, effectEntity.selectedPriceType) && + Objects.equals(this.selectedPrice, effectEntity.selectedPrice) && + Objects.equals(this.adjustmentReferenceId, effectEntity.adjustmentReferenceId); } @Override public int hashCode() { - return Objects.hash(campaignId, rulesetId, ruleIndex, ruleName, effectType, triggeredByCoupon, triggeredForCatalogItem, conditionIndex, evaluationGroupID, evaluationGroupMode, campaignRevisionId, campaignRevisionVersionId); + return Objects.hash(campaignId, rulesetId, ruleIndex, ruleName, effectType, triggeredByCoupon, triggeredForCatalogItem, conditionIndex, evaluationGroupID, evaluationGroupMode, campaignRevisionId, campaignRevisionVersionId, selectedPriceType, selectedPrice, adjustmentReferenceId); } @@ -395,6 +481,9 @@ public String toString() { sb.append(" evaluationGroupMode: ").append(toIndentedString(evaluationGroupMode)).append("\n"); sb.append(" campaignRevisionId: ").append(toIndentedString(campaignRevisionId)).append("\n"); sb.append(" campaignRevisionVersionId: ").append(toIndentedString(campaignRevisionVersionId)).append("\n"); + sb.append(" selectedPriceType: ").append(toIndentedString(selectedPriceType)).append("\n"); + sb.append(" selectedPrice: ").append(toIndentedString(selectedPrice)).append("\n"); + sb.append(" adjustmentReferenceId: ").append(toIndentedString(adjustmentReferenceId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/Entity.java b/src/main/java/one/talon/model/Entity.java index 09a0159d..b661edfe 100644 --- a/src/main/java/one/talon/model/Entity.java +++ b/src/main/java/one/talon/model/Entity.java @@ -32,31 +32,31 @@ public class Entity { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) private OffsetDateTime created; - public Entity id(Long id) { + public Entity id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/src/main/java/one/talon/model/EntityWithTalangVisibleID.java b/src/main/java/one/talon/model/EntityWithTalangVisibleID.java index 11b013a4..29695353 100644 --- a/src/main/java/one/talon/model/EntityWithTalangVisibleID.java +++ b/src/main/java/one/talon/model/EntityWithTalangVisibleID.java @@ -32,14 +32,14 @@ public class EntityWithTalangVisibleID { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) private OffsetDateTime created; - public EntityWithTalangVisibleID id(Long id) { + public EntityWithTalangVisibleID id(Integer id) { this.id = id; return this; @@ -51,12 +51,12 @@ public EntityWithTalangVisibleID id(Long id) { **/ @ApiModelProperty(example = "4", required = true, value = "Unique ID for this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/src/main/java/one/talon/model/Environment.java b/src/main/java/one/talon/model/Environment.java index a47ee94f..b4494098 100644 --- a/src/main/java/one/talon/model/Environment.java +++ b/src/main/java/one/talon/model/Environment.java @@ -34,6 +34,7 @@ import one.talon.model.FunctionDef; import one.talon.model.GiveawaysPool; import one.talon.model.LoyaltyProgram; +import one.talon.model.PriceType; import one.talon.model.SlotDef; import one.talon.model.TemplateDef; import org.threeten.bp.OffsetDateTime; @@ -45,7 +46,7 @@ public class Environment { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -53,7 +54,7 @@ public class Environment { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_SLOTS = "slots"; @SerializedName(SERIALIZED_NAME_SLOTS) @@ -103,25 +104,29 @@ public class Environment { @SerializedName(SERIALIZED_NAME_APPLICATION_CART_ITEM_FILTERS) private List applicationCartItemFilters = null; + public static final String SERIALIZED_NAME_PRICE_TYPES = "priceTypes"; + @SerializedName(SERIALIZED_NAME_PRICE_TYPES) + private List priceTypes = null; - public Environment id(Long id) { + + public Environment id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -148,7 +153,7 @@ public void setCreated(OffsetDateTime created) { } - public Environment applicationId(Long applicationId) { + public Environment applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -160,12 +165,12 @@ public Environment applicationId(Long applicationId) { **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } @@ -521,6 +526,37 @@ public void setApplicationCartItemFilters(List applicationCartIt } + public Environment priceTypes(List priceTypes) { + + this.priceTypes = priceTypes; + return this; + } + + public Environment addPriceTypesItem(PriceType priceTypesItem) { + if (this.priceTypes == null) { + this.priceTypes = new ArrayList(); + } + this.priceTypes.add(priceTypesItem); + return this; + } + + /** + * The price types that this Application can use. + * @return priceTypes + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The price types that this Application can use.") + + public List getPriceTypes() { + return priceTypes; + } + + + public void setPriceTypes(List priceTypes) { + this.priceTypes = priceTypes; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -544,12 +580,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.additionalCosts, environment.additionalCosts) && Objects.equals(this.audiences, environment.audiences) && Objects.equals(this.collections, environment.collections) && - Objects.equals(this.applicationCartItemFilters, environment.applicationCartItemFilters); + Objects.equals(this.applicationCartItemFilters, environment.applicationCartItemFilters) && + Objects.equals(this.priceTypes, environment.priceTypes); } @Override public int hashCode() { - return Objects.hash(id, created, applicationId, slots, functions, templates, variables, giveawaysPools, loyaltyPrograms, achievements, attributes, additionalCosts, audiences, collections, applicationCartItemFilters); + return Objects.hash(id, created, applicationId, slots, functions, templates, variables, giveawaysPools, loyaltyPrograms, achievements, attributes, additionalCosts, audiences, collections, applicationCartItemFilters, priceTypes); } @@ -572,6 +609,7 @@ public String toString() { sb.append(" audiences: ").append(toIndentedString(audiences)).append("\n"); sb.append(" collections: ").append(toIndentedString(collections)).append("\n"); sb.append(" applicationCartItemFilters: ").append(toIndentedString(applicationCartItemFilters)).append("\n"); + sb.append(" priceTypes: ").append(toIndentedString(priceTypes)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/one/talon/model/ErrorResponseWithStatus.java b/src/main/java/one/talon/model/ErrorResponseWithStatus.java index 34f82ab2..c8dadbf9 100644 --- a/src/main/java/one/talon/model/ErrorResponseWithStatus.java +++ b/src/main/java/one/talon/model/ErrorResponseWithStatus.java @@ -42,7 +42,7 @@ public class ErrorResponseWithStatus { public static final String SERIALIZED_NAME_STATUS_CODE = "StatusCode"; @SerializedName(SERIALIZED_NAME_STATUS_CODE) - private Long statusCode; + private Integer statusCode; public ErrorResponseWithStatus message(String message) { @@ -99,7 +99,7 @@ public void setErrors(List errors) { } - public ErrorResponseWithStatus statusCode(Long statusCode) { + public ErrorResponseWithStatus statusCode(Integer statusCode) { this.statusCode = statusCode; return this; @@ -112,12 +112,12 @@ public ErrorResponseWithStatus statusCode(Long statusCode) { @javax.annotation.Nullable @ApiModelProperty(value = "The error code") - public Long getStatusCode() { + public Integer getStatusCode() { return statusCode; } - public void setStatusCode(Long statusCode) { + public void setStatusCode(Integer statusCode) { this.statusCode = statusCode; } diff --git a/src/main/java/one/talon/model/EvaluableCampaignIds.java b/src/main/java/one/talon/model/EvaluableCampaignIds.java index 80ac2c7a..9db37558 100644 --- a/src/main/java/one/talon/model/EvaluableCampaignIds.java +++ b/src/main/java/one/talon/model/EvaluableCampaignIds.java @@ -33,18 +33,18 @@ public class EvaluableCampaignIds { public static final String SERIALIZED_NAME_EVALUABLE_CAMPAIGN_IDS = "evaluableCampaignIds"; @SerializedName(SERIALIZED_NAME_EVALUABLE_CAMPAIGN_IDS) - private List evaluableCampaignIds = null; + private List evaluableCampaignIds = null; - public EvaluableCampaignIds evaluableCampaignIds(List evaluableCampaignIds) { + public EvaluableCampaignIds evaluableCampaignIds(List evaluableCampaignIds) { this.evaluableCampaignIds = evaluableCampaignIds; return this; } - public EvaluableCampaignIds addEvaluableCampaignIdsItem(Long evaluableCampaignIdsItem) { + public EvaluableCampaignIds addEvaluableCampaignIdsItem(Integer evaluableCampaignIdsItem) { if (this.evaluableCampaignIds == null) { - this.evaluableCampaignIds = new ArrayList(); + this.evaluableCampaignIds = new ArrayList(); } this.evaluableCampaignIds.add(evaluableCampaignIdsItem); return this; @@ -57,12 +57,12 @@ public EvaluableCampaignIds addEvaluableCampaignIdsItem(Long evaluableCampaignId @javax.annotation.Nullable @ApiModelProperty(example = "[10, 12]", value = "When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. ") - public List getEvaluableCampaignIds() { + public List getEvaluableCampaignIds() { return evaluableCampaignIds; } - public void setEvaluableCampaignIds(List evaluableCampaignIds) { + public void setEvaluableCampaignIds(List evaluableCampaignIds) { this.evaluableCampaignIds = evaluableCampaignIds; } diff --git a/src/main/java/one/talon/model/Event.java b/src/main/java/one/talon/model/Event.java index 2415112a..ade89bb3 100644 --- a/src/main/java/one/talon/model/Event.java +++ b/src/main/java/one/talon/model/Event.java @@ -36,7 +36,7 @@ public class Event { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -44,7 +44,7 @@ public class Event { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_PROFILE_ID = "profileId"; @SerializedName(SERIALIZED_NAME_PROFILE_ID) @@ -79,24 +79,24 @@ public class Event { private Meta meta; - public Event id(Long id) { + public Event id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -123,7 +123,7 @@ public void setCreated(OffsetDateTime created) { } - public Event applicationId(Long applicationId) { + public Event applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -135,12 +135,12 @@ public Event applicationId(Long applicationId) { **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } diff --git a/src/main/java/one/talon/model/EventType.java b/src/main/java/one/talon/model/EventType.java index 6b4fd55b..00c7b7af 100644 --- a/src/main/java/one/talon/model/EventType.java +++ b/src/main/java/one/talon/model/EventType.java @@ -32,7 +32,7 @@ public class EventType { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -51,24 +51,24 @@ public class EventType { private String description; - public EventType id(Long id) { + public EventType id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/src/main/java/one/talon/model/EventV2.java b/src/main/java/one/talon/model/EventV2.java index 0eae2cad..f4659912 100644 --- a/src/main/java/one/talon/model/EventV2.java +++ b/src/main/java/one/talon/model/EventV2.java @@ -41,7 +41,7 @@ public class EventV2 { public static final String SERIALIZED_NAME_EVALUABLE_CAMPAIGN_IDS = "evaluableCampaignIds"; @SerializedName(SERIALIZED_NAME_EVALUABLE_CAMPAIGN_IDS) - private List evaluableCampaignIds = null; + private List evaluableCampaignIds = null; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -98,15 +98,15 @@ public void setStoreIntegrationId(String storeIntegrationId) { } - public EventV2 evaluableCampaignIds(List evaluableCampaignIds) { + public EventV2 evaluableCampaignIds(List evaluableCampaignIds) { this.evaluableCampaignIds = evaluableCampaignIds; return this; } - public EventV2 addEvaluableCampaignIdsItem(Long evaluableCampaignIdsItem) { + public EventV2 addEvaluableCampaignIdsItem(Integer evaluableCampaignIdsItem) { if (this.evaluableCampaignIds == null) { - this.evaluableCampaignIds = new ArrayList(); + this.evaluableCampaignIds = new ArrayList(); } this.evaluableCampaignIds.add(evaluableCampaignIdsItem); return this; @@ -119,12 +119,12 @@ public EventV2 addEvaluableCampaignIdsItem(Long evaluableCampaignIdsItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[10, 12]", value = "When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. ") - public List getEvaluableCampaignIds() { + public List getEvaluableCampaignIds() { return evaluableCampaignIds; } - public void setEvaluableCampaignIds(List evaluableCampaignIds) { + public void setEvaluableCampaignIds(List evaluableCampaignIds) { this.evaluableCampaignIds = evaluableCampaignIds; } diff --git a/src/main/java/one/talon/model/ExpiringCouponsNotificationPolicy.java b/src/main/java/one/talon/model/ExpiringCouponsNotificationPolicy.java index c1016cc9..5274282e 100644 --- a/src/main/java/one/talon/model/ExpiringCouponsNotificationPolicy.java +++ b/src/main/java/one/talon/model/ExpiringCouponsNotificationPolicy.java @@ -46,7 +46,7 @@ public class ExpiringCouponsNotificationPolicy { public static final String SERIALIZED_NAME_BATCH_SIZE = "batchSize"; @SerializedName(SERIALIZED_NAME_BATCH_SIZE) - private Long batchSize = 1000l; + private Integer batchSize; public ExpiringCouponsNotificationPolicy name(String name) { @@ -121,7 +121,7 @@ public void setBatchingEnabled(Boolean batchingEnabled) { } - public ExpiringCouponsNotificationPolicy batchSize(Long batchSize) { + public ExpiringCouponsNotificationPolicy batchSize(Integer batchSize) { this.batchSize = batchSize; return this; @@ -134,12 +134,12 @@ public ExpiringCouponsNotificationPolicy batchSize(Long batchSize) { @javax.annotation.Nullable @ApiModelProperty(example = "1000", value = "The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.") - public Long getBatchSize() { + public Integer getBatchSize() { return batchSize; } - public void setBatchSize(Long batchSize) { + public void setBatchSize(Integer batchSize) { this.batchSize = batchSize; } diff --git a/src/main/java/one/talon/model/ExpiringCouponsNotificationTrigger.java b/src/main/java/one/talon/model/ExpiringCouponsNotificationTrigger.java index 078e55e5..71c0651c 100644 --- a/src/main/java/one/talon/model/ExpiringCouponsNotificationTrigger.java +++ b/src/main/java/one/talon/model/ExpiringCouponsNotificationTrigger.java @@ -31,7 +31,7 @@ public class ExpiringCouponsNotificationTrigger { public static final String SERIALIZED_NAME_AMOUNT = "amount"; @SerializedName(SERIALIZED_NAME_AMOUNT) - private Long amount; + private Integer amount; /** * Notification period indicated by a letter; \"w\" means week, \"d\" means day. @@ -85,7 +85,7 @@ public PeriodEnum read(final JsonReader jsonReader) throws IOException { private PeriodEnum period; - public ExpiringCouponsNotificationTrigger amount(Long amount) { + public ExpiringCouponsNotificationTrigger amount(Integer amount) { this.amount = amount; return this; @@ -98,12 +98,12 @@ public ExpiringCouponsNotificationTrigger amount(Long amount) { **/ @ApiModelProperty(required = true, value = "The amount of period.") - public Long getAmount() { + public Integer getAmount() { return amount; } - public void setAmount(Long amount) { + public void setAmount(Integer amount) { this.amount = amount; } diff --git a/src/main/java/one/talon/model/ExpiringPointsNotificationPolicy.java b/src/main/java/one/talon/model/ExpiringPointsNotificationPolicy.java index 204e57dc..1f430ad4 100644 --- a/src/main/java/one/talon/model/ExpiringPointsNotificationPolicy.java +++ b/src/main/java/one/talon/model/ExpiringPointsNotificationPolicy.java @@ -46,7 +46,7 @@ public class ExpiringPointsNotificationPolicy { public static final String SERIALIZED_NAME_BATCH_SIZE = "batchSize"; @SerializedName(SERIALIZED_NAME_BATCH_SIZE) - private Long batchSize = 1000l; + private Integer batchSize; public ExpiringPointsNotificationPolicy name(String name) { @@ -121,7 +121,7 @@ public void setBatchingEnabled(Boolean batchingEnabled) { } - public ExpiringPointsNotificationPolicy batchSize(Long batchSize) { + public ExpiringPointsNotificationPolicy batchSize(Integer batchSize) { this.batchSize = batchSize; return this; @@ -134,12 +134,12 @@ public ExpiringPointsNotificationPolicy batchSize(Long batchSize) { @javax.annotation.Nullable @ApiModelProperty(example = "1000", value = "The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.") - public Long getBatchSize() { + public Integer getBatchSize() { return batchSize; } - public void setBatchSize(Long batchSize) { + public void setBatchSize(Integer batchSize) { this.batchSize = batchSize; } diff --git a/src/main/java/one/talon/model/ExpiringPointsNotificationTrigger.java b/src/main/java/one/talon/model/ExpiringPointsNotificationTrigger.java index 47b76e94..01c62140 100644 --- a/src/main/java/one/talon/model/ExpiringPointsNotificationTrigger.java +++ b/src/main/java/one/talon/model/ExpiringPointsNotificationTrigger.java @@ -31,7 +31,7 @@ public class ExpiringPointsNotificationTrigger { public static final String SERIALIZED_NAME_AMOUNT = "amount"; @SerializedName(SERIALIZED_NAME_AMOUNT) - private Long amount; + private Integer amount; /** * Notification period indicated by a letter; \"w\" means week, \"d\" means day. @@ -85,7 +85,7 @@ public PeriodEnum read(final JsonReader jsonReader) throws IOException { private PeriodEnum period; - public ExpiringPointsNotificationTrigger amount(Long amount) { + public ExpiringPointsNotificationTrigger amount(Integer amount) { this.amount = amount; return this; @@ -98,12 +98,12 @@ public ExpiringPointsNotificationTrigger amount(Long amount) { **/ @ApiModelProperty(required = true, value = "The amount of period.") - public Long getAmount() { + public Integer getAmount() { return amount; } - public void setAmount(Long amount) { + public void setAmount(Integer amount) { this.amount = amount; } diff --git a/src/main/java/one/talon/model/Export.java b/src/main/java/one/talon/model/Export.java index 182abe03..74b8f8b2 100644 --- a/src/main/java/one/talon/model/Export.java +++ b/src/main/java/one/talon/model/Export.java @@ -32,7 +32,7 @@ public class Export { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -40,11 +40,11 @@ public class Export { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Long userId; + private Integer userId; /** * The name of the entity that was exported. @@ -112,24 +112,24 @@ public EntityEnum read(final JsonReader jsonReader) throws IOException { private Object filter; - public Export id(Long id) { + public Export id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -156,7 +156,7 @@ public void setCreated(OffsetDateTime created) { } - public Export accountId(Long accountId) { + public Export accountId(Integer accountId) { this.accountId = accountId; return this; @@ -168,17 +168,17 @@ public Export accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } - public Export userId(Long userId) { + public Export userId(Integer userId) { this.userId = userId; return this; @@ -190,12 +190,12 @@ public Export userId(Long userId) { **/ @ApiModelProperty(example = "388", required = true, value = "The ID of the user associated with this entity.") - public Long getUserId() { + public Integer getUserId() { return userId; } - public void setUserId(Long userId) { + public void setUserId(Integer userId) { this.userId = userId; } diff --git a/src/main/java/one/talon/model/ExtendLoyaltyPointsExpiryDateEffectProps.java b/src/main/java/one/talon/model/ExtendLoyaltyPointsExpiryDateEffectProps.java new file mode 100644 index 00000000..650323ee --- /dev/null +++ b/src/main/java/one/talon/model/ExtendLoyaltyPointsExpiryDateEffectProps.java @@ -0,0 +1,223 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.threeten.bp.OffsetDateTime; + +/** + * The properties specific to the \"extendLoyaltyPointsExpiryDate\" effect. This gets triggered when a validated rule contains the \"extend expiry date\" effect. The current expiry date gets extended by the time frame given in the effect. + */ +@ApiModel(description = "The properties specific to the \"extendLoyaltyPointsExpiryDate\" effect. This gets triggered when a validated rule contains the \"extend expiry date\" effect. The current expiry date gets extended by the time frame given in the effect. ") + +public class ExtendLoyaltyPointsExpiryDateEffectProps { + public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; + @SerializedName(SERIALIZED_NAME_PROGRAM_ID) + private Integer programId; + + public static final String SERIALIZED_NAME_SUB_LEDGER_ID = "subLedgerId"; + @SerializedName(SERIALIZED_NAME_SUB_LEDGER_ID) + private String subLedgerId; + + public static final String SERIALIZED_NAME_EXTENSION_DURATION = "extensionDuration"; + @SerializedName(SERIALIZED_NAME_EXTENSION_DURATION) + private String extensionDuration; + + public static final String SERIALIZED_NAME_TRANSACTION_U_U_I_DS = "transactionUUIDs"; + @SerializedName(SERIALIZED_NAME_TRANSACTION_U_U_I_DS) + private List transactionUUIDs = null; + + public static final String SERIALIZED_NAME_PREVIOUS_EXPIRATION_DATE = "previousExpirationDate"; + @SerializedName(SERIALIZED_NAME_PREVIOUS_EXPIRATION_DATE) + private OffsetDateTime previousExpirationDate; + + + public ExtendLoyaltyPointsExpiryDateEffectProps programId(Integer programId) { + + this.programId = programId; + return this; + } + + /** + * ID of the loyalty program that contains these points. + * @return programId + **/ + @ApiModelProperty(required = true, value = "ID of the loyalty program that contains these points.") + + public Integer getProgramId() { + return programId; + } + + + public void setProgramId(Integer programId) { + this.programId = programId; + } + + + public ExtendLoyaltyPointsExpiryDateEffectProps subLedgerId(String subLedgerId) { + + this.subLedgerId = subLedgerId; + return this; + } + + /** + * API name of the loyalty program subledger that contains these points. added. + * @return subLedgerId + **/ + @ApiModelProperty(required = true, value = "API name of the loyalty program subledger that contains these points. added.") + + public String getSubLedgerId() { + return subLedgerId; + } + + + public void setSubLedgerId(String subLedgerId) { + this.subLedgerId = subLedgerId; + } + + + public ExtendLoyaltyPointsExpiryDateEffectProps extensionDuration(String extensionDuration) { + + this.extensionDuration = extensionDuration; + return this; + } + + /** + * Time frame by which the expiry date extends. The time format is either: - immediate, or - an **integer** followed by a letter indicating the time unit. Examples: `immediate`, `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. + * @return extensionDuration + **/ + @ApiModelProperty(example = "12h", required = true, value = "Time frame by which the expiry date extends. The time format is either: - immediate, or - an **integer** followed by a letter indicating the time unit. Examples: `immediate`, `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. ") + + public String getExtensionDuration() { + return extensionDuration; + } + + + public void setExtensionDuration(String extensionDuration) { + this.extensionDuration = extensionDuration; + } + + + public ExtendLoyaltyPointsExpiryDateEffectProps transactionUUIDs(List transactionUUIDs) { + + this.transactionUUIDs = transactionUUIDs; + return this; + } + + public ExtendLoyaltyPointsExpiryDateEffectProps addTransactionUUIDsItem(String transactionUUIDsItem) { + if (this.transactionUUIDs == null) { + this.transactionUUIDs = new ArrayList(); + } + this.transactionUUIDs.add(transactionUUIDsItem); + return this; + } + + /** + * The list of identifiers of transactions affected affected by the extension. + * @return transactionUUIDs + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The list of identifiers of transactions affected affected by the extension.") + + public List getTransactionUUIDs() { + return transactionUUIDs; + } + + + public void setTransactionUUIDs(List transactionUUIDs) { + this.transactionUUIDs = transactionUUIDs; + } + + + public ExtendLoyaltyPointsExpiryDateEffectProps previousExpirationDate(OffsetDateTime previousExpirationDate) { + + this.previousExpirationDate = previousExpirationDate; + return this; + } + + /** + * Expiry date before applying the extension. + * @return previousExpirationDate + **/ + @ApiModelProperty(required = true, value = "Expiry date before applying the extension.") + + public OffsetDateTime getPreviousExpirationDate() { + return previousExpirationDate; + } + + + public void setPreviousExpirationDate(OffsetDateTime previousExpirationDate) { + this.previousExpirationDate = previousExpirationDate; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExtendLoyaltyPointsExpiryDateEffectProps extendLoyaltyPointsExpiryDateEffectProps = (ExtendLoyaltyPointsExpiryDateEffectProps) o; + return Objects.equals(this.programId, extendLoyaltyPointsExpiryDateEffectProps.programId) && + Objects.equals(this.subLedgerId, extendLoyaltyPointsExpiryDateEffectProps.subLedgerId) && + Objects.equals(this.extensionDuration, extendLoyaltyPointsExpiryDateEffectProps.extensionDuration) && + Objects.equals(this.transactionUUIDs, extendLoyaltyPointsExpiryDateEffectProps.transactionUUIDs) && + Objects.equals(this.previousExpirationDate, extendLoyaltyPointsExpiryDateEffectProps.previousExpirationDate); + } + + @Override + public int hashCode() { + return Objects.hash(programId, subLedgerId, extensionDuration, transactionUUIDs, previousExpirationDate); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExtendLoyaltyPointsExpiryDateEffectProps {\n"); + sb.append(" programId: ").append(toIndentedString(programId)).append("\n"); + sb.append(" subLedgerId: ").append(toIndentedString(subLedgerId)).append("\n"); + sb.append(" extensionDuration: ").append(toIndentedString(extensionDuration)).append("\n"); + sb.append(" transactionUUIDs: ").append(toIndentedString(transactionUUIDs)).append("\n"); + sb.append(" previousExpirationDate: ").append(toIndentedString(previousExpirationDate)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/GenerateCampaignDescription.java b/src/main/java/one/talon/model/GenerateCampaignDescription.java index 501273b7..31a36883 100644 --- a/src/main/java/one/talon/model/GenerateCampaignDescription.java +++ b/src/main/java/one/talon/model/GenerateCampaignDescription.java @@ -31,14 +31,14 @@ public class GenerateCampaignDescription { public static final String SERIALIZED_NAME_RULESET_I_D = "rulesetID"; @SerializedName(SERIALIZED_NAME_RULESET_I_D) - private Long rulesetID; + private Integer rulesetID; public static final String SERIALIZED_NAME_CURRENCY = "currency"; @SerializedName(SERIALIZED_NAME_CURRENCY) private String currency; - public GenerateCampaignDescription rulesetID(Long rulesetID) { + public GenerateCampaignDescription rulesetID(Integer rulesetID) { this.rulesetID = rulesetID; return this; @@ -50,12 +50,12 @@ public GenerateCampaignDescription rulesetID(Long rulesetID) { **/ @ApiModelProperty(required = true, value = "ID of a ruleset.") - public Long getRulesetID() { + public Integer getRulesetID() { return rulesetID; } - public void setRulesetID(Long rulesetID) { + public void setRulesetID(Integer rulesetID) { this.rulesetID = rulesetID; } diff --git a/src/main/java/one/talon/model/GenerateCampaignTags.java b/src/main/java/one/talon/model/GenerateCampaignTags.java index 899f4e57..4df09824 100644 --- a/src/main/java/one/talon/model/GenerateCampaignTags.java +++ b/src/main/java/one/talon/model/GenerateCampaignTags.java @@ -31,10 +31,10 @@ public class GenerateCampaignTags { public static final String SERIALIZED_NAME_RULESET_I_D = "rulesetID"; @SerializedName(SERIALIZED_NAME_RULESET_I_D) - private Long rulesetID; + private Integer rulesetID; - public GenerateCampaignTags rulesetID(Long rulesetID) { + public GenerateCampaignTags rulesetID(Integer rulesetID) { this.rulesetID = rulesetID; return this; @@ -46,12 +46,12 @@ public GenerateCampaignTags rulesetID(Long rulesetID) { **/ @ApiModelProperty(required = true, value = "ID of a ruleset.") - public Long getRulesetID() { + public Integer getRulesetID() { return rulesetID; } - public void setRulesetID(Long rulesetID) { + public void setRulesetID(Integer rulesetID) { this.rulesetID = rulesetID; } diff --git a/src/main/java/one/talon/model/GetIntegrationCouponRequest.java b/src/main/java/one/talon/model/GetIntegrationCouponRequest.java index 0925699b..d8e6e76b 100644 --- a/src/main/java/one/talon/model/GetIntegrationCouponRequest.java +++ b/src/main/java/one/talon/model/GetIntegrationCouponRequest.java @@ -33,20 +33,20 @@ public class GetIntegrationCouponRequest { public static final String SERIALIZED_NAME_CAMPAIGN_IDS = "campaignIds"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_IDS) - private List campaignIds = new ArrayList(); + private List campaignIds = new ArrayList(); public static final String SERIALIZED_NAME_LIMIT = "limit"; @SerializedName(SERIALIZED_NAME_LIMIT) - private Long limit = 10l; + private Integer limit; - public GetIntegrationCouponRequest campaignIds(List campaignIds) { + public GetIntegrationCouponRequest campaignIds(List campaignIds) { this.campaignIds = campaignIds; return this; } - public GetIntegrationCouponRequest addCampaignIdsItem(Long campaignIdsItem) { + public GetIntegrationCouponRequest addCampaignIdsItem(Integer campaignIdsItem) { this.campaignIds.add(campaignIdsItem); return this; } @@ -57,17 +57,17 @@ public GetIntegrationCouponRequest addCampaignIdsItem(Long campaignIdsItem) { **/ @ApiModelProperty(example = "[1, 2, 3]", required = true, value = "A list of IDs of the campaigns to get coupons from.") - public List getCampaignIds() { + public List getCampaignIds() { return campaignIds; } - public void setCampaignIds(List campaignIds) { + public void setCampaignIds(List campaignIds) { this.campaignIds = campaignIds; } - public GetIntegrationCouponRequest limit(Long limit) { + public GetIntegrationCouponRequest limit(Integer limit) { this.limit = limit; return this; @@ -81,12 +81,12 @@ public GetIntegrationCouponRequest limit(Long limit) { **/ @ApiModelProperty(required = true, value = "The maximum number of coupons included in the response.") - public Long getLimit() { + public Integer getLimit() { return limit; } - public void setLimit(Long limit) { + public void setLimit(Integer limit) { this.limit = limit; } diff --git a/src/main/java/one/talon/model/Giveaway.java b/src/main/java/one/talon/model/Giveaway.java index 3eb71d73..0a3d31f7 100644 --- a/src/main/java/one/talon/model/Giveaway.java +++ b/src/main/java/one/talon/model/Giveaway.java @@ -32,7 +32,7 @@ public class Giveaway { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -44,7 +44,7 @@ public class Giveaway { public static final String SERIALIZED_NAME_POOL_ID = "poolId"; @SerializedName(SERIALIZED_NAME_POOL_ID) - private Long poolId; + private Integer poolId; public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) @@ -64,7 +64,7 @@ public class Giveaway { public static final String SERIALIZED_NAME_IMPORT_ID = "importId"; @SerializedName(SERIALIZED_NAME_IMPORT_ID) - private Long importId; + private Integer importId; public static final String SERIALIZED_NAME_PROFILE_INTEGRATION_ID = "profileIntegrationId"; @SerializedName(SERIALIZED_NAME_PROFILE_INTEGRATION_ID) @@ -72,27 +72,27 @@ public class Giveaway { public static final String SERIALIZED_NAME_PROFILE_ID = "profileId"; @SerializedName(SERIALIZED_NAME_PROFILE_ID) - private Long profileId; + private Integer profileId; - public Giveaway id(Long id) { + public Giveaway id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -141,7 +141,7 @@ public void setCode(String code) { } - public Giveaway poolId(Long poolId) { + public Giveaway poolId(Integer poolId) { this.poolId = poolId; return this; @@ -153,12 +153,12 @@ public Giveaway poolId(Long poolId) { **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the pool to return giveaway codes from.") - public Long getPoolId() { + public Integer getPoolId() { return poolId; } - public void setPoolId(Long poolId) { + public void setPoolId(Integer poolId) { this.poolId = poolId; } @@ -255,7 +255,7 @@ public void setUsed(Boolean used) { } - public Giveaway importId(Long importId) { + public Giveaway importId(Integer importId) { this.importId = importId; return this; @@ -268,12 +268,12 @@ public Giveaway importId(Long importId) { @javax.annotation.Nullable @ApiModelProperty(example = "4", value = "The ID of the Import which created this giveaway.") - public Long getImportId() { + public Integer getImportId() { return importId; } - public void setImportId(Long importId) { + public void setImportId(Integer importId) { this.importId = importId; } @@ -301,7 +301,7 @@ public void setProfileIntegrationId(String profileIntegrationId) { } - public Giveaway profileId(Long profileId) { + public Giveaway profileId(Integer profileId) { this.profileId = profileId; return this; @@ -314,12 +314,12 @@ public Giveaway profileId(Long profileId) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The internal ID of the customer profile that was awarded the giveaway, if the giveaway was awarded and an internal ID exists.") - public Long getProfileId() { + public Integer getProfileId() { return profileId; } - public void setProfileId(Long profileId) { + public void setProfileId(Integer profileId) { this.profileId = profileId; } diff --git a/src/main/java/one/talon/model/GiveawaysPool.java b/src/main/java/one/talon/model/GiveawaysPool.java index 538a6c3d..01463481 100644 --- a/src/main/java/one/talon/model/GiveawaysPool.java +++ b/src/main/java/one/talon/model/GiveawaysPool.java @@ -35,7 +35,7 @@ public class GiveawaysPool { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -43,7 +43,7 @@ public class GiveawaysPool { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -55,7 +55,7 @@ public class GiveawaysPool { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public static final String SERIALIZED_NAME_SANDBOX = "sandbox"; @SerializedName(SERIALIZED_NAME_SANDBOX) @@ -67,31 +67,31 @@ public class GiveawaysPool { public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Long createdBy; + private Integer createdBy; public static final String SERIALIZED_NAME_MODIFIED_BY = "modifiedBy"; @SerializedName(SERIALIZED_NAME_MODIFIED_BY) - private Long modifiedBy; + private Integer modifiedBy; - public GiveawaysPool id(Long id) { + public GiveawaysPool id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -118,7 +118,7 @@ public void setCreated(OffsetDateTime created) { } - public GiveawaysPool accountId(Long accountId) { + public GiveawaysPool accountId(Integer accountId) { this.accountId = accountId; return this; @@ -130,12 +130,12 @@ public GiveawaysPool accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } @@ -185,15 +185,15 @@ public void setDescription(String description) { } - public GiveawaysPool subscribedApplicationsIds(List subscribedApplicationsIds) { + public GiveawaysPool subscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public GiveawaysPool addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { + public GiveawaysPool addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; @@ -206,12 +206,12 @@ public GiveawaysPool addSubscribedApplicationsIdsItem(Long subscribedApplication @javax.annotation.Nullable @ApiModelProperty(example = "[2, 4]", value = "A list of the IDs of the applications that this giveaways pool is enabled for.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } @@ -261,7 +261,7 @@ public void setModified(OffsetDateTime modified) { } - public GiveawaysPool createdBy(Long createdBy) { + public GiveawaysPool createdBy(Integer createdBy) { this.createdBy = createdBy; return this; @@ -273,17 +273,17 @@ public GiveawaysPool createdBy(Long createdBy) { **/ @ApiModelProperty(required = true, value = "ID of the user who created this giveaways pool.") - public Long getCreatedBy() { + public Integer getCreatedBy() { return createdBy; } - public void setCreatedBy(Long createdBy) { + public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } - public GiveawaysPool modifiedBy(Long modifiedBy) { + public GiveawaysPool modifiedBy(Integer modifiedBy) { this.modifiedBy = modifiedBy; return this; @@ -296,12 +296,12 @@ public GiveawaysPool modifiedBy(Long modifiedBy) { @javax.annotation.Nullable @ApiModelProperty(value = "ID of the user who last updated this giveaways pool if available.") - public Long getModifiedBy() { + public Integer getModifiedBy() { return modifiedBy; } - public void setModifiedBy(Long modifiedBy) { + public void setModifiedBy(Integer modifiedBy) { this.modifiedBy = modifiedBy; } diff --git a/src/main/java/one/talon/model/HiddenConditionsEffects.java b/src/main/java/one/talon/model/HiddenConditionsEffects.java index f046f12c..c40bb062 100644 --- a/src/main/java/one/talon/model/HiddenConditionsEffects.java +++ b/src/main/java/one/talon/model/HiddenConditionsEffects.java @@ -42,11 +42,11 @@ public class HiddenConditionsEffects { public static final String SERIALIZED_NAME_CUSTOM_EFFECTS = "customEffects"; @SerializedName(SERIALIZED_NAME_CUSTOM_EFFECTS) - private List customEffects = null; + private List customEffects = null; public static final String SERIALIZED_NAME_WEBHOOKS = "webhooks"; @SerializedName(SERIALIZED_NAME_WEBHOOKS) - private List webhooks = null; + private List webhooks = null; public HiddenConditionsEffects builtInEffects(List builtInEffects) { @@ -111,15 +111,15 @@ public void setConditions(List conditions) { } - public HiddenConditionsEffects customEffects(List customEffects) { + public HiddenConditionsEffects customEffects(List customEffects) { this.customEffects = customEffects; return this; } - public HiddenConditionsEffects addCustomEffectsItem(Long customEffectsItem) { + public HiddenConditionsEffects addCustomEffectsItem(Integer customEffectsItem) { if (this.customEffects == null) { - this.customEffects = new ArrayList(); + this.customEffects = new ArrayList(); } this.customEffects.add(customEffectsItem); return this; @@ -132,25 +132,25 @@ public HiddenConditionsEffects addCustomEffectsItem(Long customEffectsItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2]", value = "List of the IDs of hidden custom effects.") - public List getCustomEffects() { + public List getCustomEffects() { return customEffects; } - public void setCustomEffects(List customEffects) { + public void setCustomEffects(List customEffects) { this.customEffects = customEffects; } - public HiddenConditionsEffects webhooks(List webhooks) { + public HiddenConditionsEffects webhooks(List webhooks) { this.webhooks = webhooks; return this; } - public HiddenConditionsEffects addWebhooksItem(Long webhooksItem) { + public HiddenConditionsEffects addWebhooksItem(Integer webhooksItem) { if (this.webhooks == null) { - this.webhooks = new ArrayList(); + this.webhooks = new ArrayList(); } this.webhooks.add(webhooksItem); return this; @@ -163,12 +163,12 @@ public HiddenConditionsEffects addWebhooksItem(Long webhooksItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[3, 4]", value = "List of the IDs of hidden webhooks.") - public List getWebhooks() { + public List getWebhooks() { return webhooks; } - public void setWebhooks(List webhooks) { + public void setWebhooks(List webhooks) { this.webhooks = webhooks; } diff --git a/src/main/java/one/talon/model/IdentifiableEntity.java b/src/main/java/one/talon/model/IdentifiableEntity.java index 8c9a2044..23d85468 100644 --- a/src/main/java/one/talon/model/IdentifiableEntity.java +++ b/src/main/java/one/talon/model/IdentifiableEntity.java @@ -31,10 +31,10 @@ public class IdentifiableEntity { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; - public IdentifiableEntity id(Long id) { + public IdentifiableEntity id(Integer id) { this.id = id; return this; @@ -46,12 +46,12 @@ public IdentifiableEntity id(Long id) { **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/src/main/java/one/talon/model/ImportEntity.java b/src/main/java/one/talon/model/ImportEntity.java index 76869a78..426c6151 100644 --- a/src/main/java/one/talon/model/ImportEntity.java +++ b/src/main/java/one/talon/model/ImportEntity.java @@ -31,10 +31,10 @@ public class ImportEntity { public static final String SERIALIZED_NAME_IMPORT_ID = "importId"; @SerializedName(SERIALIZED_NAME_IMPORT_ID) - private Long importId; + private Integer importId; - public ImportEntity importId(Long importId) { + public ImportEntity importId(Integer importId) { this.importId = importId; return this; @@ -47,12 +47,12 @@ public ImportEntity importId(Long importId) { @javax.annotation.Nullable @ApiModelProperty(example = "4", value = "The ID of the Import which created this referral.") - public Long getImportId() { + public Integer getImportId() { return importId; } - public void setImportId(Long importId) { + public void setImportId(Integer importId) { this.importId = importId; } diff --git a/src/main/java/one/talon/model/IncreaseAchievementProgressEffectProps.java b/src/main/java/one/talon/model/IncreaseAchievementProgressEffectProps.java index 03cc843a..6fc0dc15 100644 --- a/src/main/java/one/talon/model/IncreaseAchievementProgressEffectProps.java +++ b/src/main/java/one/talon/model/IncreaseAchievementProgressEffectProps.java @@ -33,7 +33,7 @@ public class IncreaseAchievementProgressEffectProps { public static final String SERIALIZED_NAME_ACHIEVEMENT_ID = "achievementId"; @SerializedName(SERIALIZED_NAME_ACHIEVEMENT_ID) - private Long achievementId; + private Integer achievementId; public static final String SERIALIZED_NAME_ACHIEVEMENT_NAME = "achievementName"; @SerializedName(SERIALIZED_NAME_ACHIEVEMENT_NAME) @@ -41,7 +41,7 @@ public class IncreaseAchievementProgressEffectProps { public static final String SERIALIZED_NAME_PROGRESS_TRACKER_ID = "progressTrackerId"; @SerializedName(SERIALIZED_NAME_PROGRESS_TRACKER_ID) - private Long progressTrackerId; + private Integer progressTrackerId; public static final String SERIALIZED_NAME_DELTA = "delta"; @SerializedName(SERIALIZED_NAME_DELTA) @@ -60,7 +60,7 @@ public class IncreaseAchievementProgressEffectProps { private Boolean isJustCompleted; - public IncreaseAchievementProgressEffectProps achievementId(Long achievementId) { + public IncreaseAchievementProgressEffectProps achievementId(Integer achievementId) { this.achievementId = achievementId; return this; @@ -72,12 +72,12 @@ public IncreaseAchievementProgressEffectProps achievementId(Long achievementId) **/ @ApiModelProperty(example = "10", required = true, value = "The internal ID of the achievement.") - public Long getAchievementId() { + public Integer getAchievementId() { return achievementId; } - public void setAchievementId(Long achievementId) { + public void setAchievementId(Integer achievementId) { this.achievementId = achievementId; } @@ -104,7 +104,7 @@ public void setAchievementName(String achievementName) { } - public IncreaseAchievementProgressEffectProps progressTrackerId(Long progressTrackerId) { + public IncreaseAchievementProgressEffectProps progressTrackerId(Integer progressTrackerId) { this.progressTrackerId = progressTrackerId; return this; @@ -117,12 +117,12 @@ public IncreaseAchievementProgressEffectProps progressTrackerId(Long progressTra @javax.annotation.Nullable @ApiModelProperty(value = "The internal ID of the achievement progress tracker.") - public Long getProgressTrackerId() { + public Integer getProgressTrackerId() { return progressTrackerId; } - public void setProgressTrackerId(Long progressTrackerId) { + public void setProgressTrackerId(Integer progressTrackerId) { this.progressTrackerId = progressTrackerId; } diff --git a/src/main/java/one/talon/model/InlineResponse200.java b/src/main/java/one/talon/model/InlineResponse200.java index 8248845b..a9f02b8f 100644 --- a/src/main/java/one/talon/model/InlineResponse200.java +++ b/src/main/java/one/talon/model/InlineResponse200.java @@ -34,14 +34,14 @@ public class InlineResponse200 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse200 totalResultSize(Long totalResultSize) { + public InlineResponse200 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -53,12 +53,12 @@ public InlineResponse200 totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse2001.java b/src/main/java/one/talon/model/InlineResponse2001.java index 81baabf1..014d40f8 100644 --- a/src/main/java/one/talon/model/InlineResponse2001.java +++ b/src/main/java/one/talon/model/InlineResponse2001.java @@ -34,14 +34,14 @@ public class InlineResponse2001 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse2001 totalResultSize(Long totalResultSize) { + public InlineResponse2001 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -53,12 +53,12 @@ public InlineResponse2001 totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20010.java b/src/main/java/one/talon/model/InlineResponse20010.java index 3ba512c1..e796f326 100644 --- a/src/main/java/one/talon/model/InlineResponse20010.java +++ b/src/main/java/one/talon/model/InlineResponse20010.java @@ -34,14 +34,14 @@ public class InlineResponse20010 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse20010 totalResultSize(Long totalResultSize) { + public InlineResponse20010 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -53,12 +53,12 @@ public InlineResponse20010 totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20013.java b/src/main/java/one/talon/model/InlineResponse20013.java index 601bbf46..02ed6bcf 100644 --- a/src/main/java/one/talon/model/InlineResponse20013.java +++ b/src/main/java/one/talon/model/InlineResponse20013.java @@ -34,14 +34,14 @@ public class InlineResponse20013 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse20013 totalResultSize(Long totalResultSize) { + public InlineResponse20013 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -53,12 +53,12 @@ public InlineResponse20013 totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20015.java b/src/main/java/one/talon/model/InlineResponse20015.java index d6387ea7..70367dd5 100644 --- a/src/main/java/one/talon/model/InlineResponse20015.java +++ b/src/main/java/one/talon/model/InlineResponse20015.java @@ -34,14 +34,14 @@ public class InlineResponse20015 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse20015 totalResultSize(Long totalResultSize) { + public InlineResponse20015 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -53,12 +53,12 @@ public InlineResponse20015 totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20016.java b/src/main/java/one/talon/model/InlineResponse20016.java index fc7e4655..8f4e502b 100644 --- a/src/main/java/one/talon/model/InlineResponse20016.java +++ b/src/main/java/one/talon/model/InlineResponse20016.java @@ -34,14 +34,14 @@ public class InlineResponse20016 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse20016 totalResultSize(Long totalResultSize) { + public InlineResponse20016 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -53,12 +53,12 @@ public InlineResponse20016 totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse2002.java b/src/main/java/one/talon/model/InlineResponse2002.java index 84225a95..b59dbe26 100644 --- a/src/main/java/one/talon/model/InlineResponse2002.java +++ b/src/main/java/one/talon/model/InlineResponse2002.java @@ -34,14 +34,14 @@ public class InlineResponse2002 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse2002 totalResultSize(Long totalResultSize) { + public InlineResponse2002 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -53,12 +53,12 @@ public InlineResponse2002 totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20020.java b/src/main/java/one/talon/model/InlineResponse20020.java index 36378ffc..58c0fa16 100644 --- a/src/main/java/one/talon/model/InlineResponse20020.java +++ b/src/main/java/one/talon/model/InlineResponse20020.java @@ -38,7 +38,7 @@ public class InlineResponse20020 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -68,7 +68,7 @@ public void setHasMore(Boolean hasMore) { } - public InlineResponse20020 totalResultSize(Long totalResultSize) { + public InlineResponse20020 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -81,12 +81,12 @@ public InlineResponse20020 totalResultSize(Long totalResultSize) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20023.java b/src/main/java/one/talon/model/InlineResponse20023.java index ff6215c9..8f60f76b 100644 --- a/src/main/java/one/talon/model/InlineResponse20023.java +++ b/src/main/java/one/talon/model/InlineResponse20023.java @@ -34,14 +34,14 @@ public class InlineResponse20023 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse20023 totalResultSize(Long totalResultSize) { + public InlineResponse20023 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -53,12 +53,12 @@ public InlineResponse20023 totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20024.java b/src/main/java/one/talon/model/InlineResponse20024.java index cca3e170..3935bb1d 100644 --- a/src/main/java/one/talon/model/InlineResponse20024.java +++ b/src/main/java/one/talon/model/InlineResponse20024.java @@ -34,7 +34,7 @@ public class InlineResponse20024 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_HAS_MORE = "hasMore"; @SerializedName(SERIALIZED_NAME_HAS_MORE) @@ -45,7 +45,7 @@ public class InlineResponse20024 { private List data = new ArrayList(); - public InlineResponse20024 totalResultSize(Long totalResultSize) { + public InlineResponse20024 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -58,12 +58,12 @@ public InlineResponse20024 totalResultSize(Long totalResultSize) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20025.java b/src/main/java/one/talon/model/InlineResponse20025.java index f2f24ae4..9fd34f51 100644 --- a/src/main/java/one/talon/model/InlineResponse20025.java +++ b/src/main/java/one/talon/model/InlineResponse20025.java @@ -38,7 +38,7 @@ public class InlineResponse20025 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -68,7 +68,7 @@ public void setHasMore(Boolean hasMore) { } - public InlineResponse20025 totalResultSize(Long totalResultSize) { + public InlineResponse20025 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -81,12 +81,12 @@ public InlineResponse20025 totalResultSize(Long totalResultSize) { @javax.annotation.Nullable @ApiModelProperty(value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20026.java b/src/main/java/one/talon/model/InlineResponse20026.java index fc7e8077..2cafddad 100644 --- a/src/main/java/one/talon/model/InlineResponse20026.java +++ b/src/main/java/one/talon/model/InlineResponse20026.java @@ -38,7 +38,7 @@ public class InlineResponse20026 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -68,7 +68,7 @@ public void setHasMore(Boolean hasMore) { } - public InlineResponse20026 totalResultSize(Long totalResultSize) { + public InlineResponse20026 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -81,12 +81,12 @@ public InlineResponse20026 totalResultSize(Long totalResultSize) { @javax.annotation.Nullable @ApiModelProperty(value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20031.java b/src/main/java/one/talon/model/InlineResponse20031.java index 0c6570fa..3c71211d 100644 --- a/src/main/java/one/talon/model/InlineResponse20031.java +++ b/src/main/java/one/talon/model/InlineResponse20031.java @@ -33,14 +33,14 @@ public class InlineResponse20031 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse20031 totalResultSize(Long totalResultSize) { + public InlineResponse20031 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -52,12 +52,12 @@ public InlineResponse20031 totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20032.java b/src/main/java/one/talon/model/InlineResponse20032.java index 5cc598f0..e6915216 100644 --- a/src/main/java/one/talon/model/InlineResponse20032.java +++ b/src/main/java/one/talon/model/InlineResponse20032.java @@ -38,7 +38,7 @@ public class InlineResponse20032 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -68,7 +68,7 @@ public void setHasMore(Boolean hasMore) { } - public InlineResponse20032 totalResultSize(Long totalResultSize) { + public InlineResponse20032 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -81,12 +81,12 @@ public InlineResponse20032 totalResultSize(Long totalResultSize) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20035.java b/src/main/java/one/talon/model/InlineResponse20035.java index 57f04f45..9804eb42 100644 --- a/src/main/java/one/talon/model/InlineResponse20035.java +++ b/src/main/java/one/talon/model/InlineResponse20035.java @@ -38,7 +38,7 @@ public class InlineResponse20035 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -68,7 +68,7 @@ public void setHasMore(Boolean hasMore) { } - public InlineResponse20035 totalResultSize(Long totalResultSize) { + public InlineResponse20035 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -81,12 +81,12 @@ public InlineResponse20035 totalResultSize(Long totalResultSize) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20036.java b/src/main/java/one/talon/model/InlineResponse20036.java index 99e86f74..6295809f 100644 --- a/src/main/java/one/talon/model/InlineResponse20036.java +++ b/src/main/java/one/talon/model/InlineResponse20036.java @@ -34,14 +34,14 @@ public class InlineResponse20036 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse20036 totalResultSize(Long totalResultSize) { + public InlineResponse20036 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -53,12 +53,12 @@ public InlineResponse20036 totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20037.java b/src/main/java/one/talon/model/InlineResponse20037.java index 0503e4a1..2082cff3 100644 --- a/src/main/java/one/talon/model/InlineResponse20037.java +++ b/src/main/java/one/talon/model/InlineResponse20037.java @@ -38,7 +38,7 @@ public class InlineResponse20037 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -68,7 +68,7 @@ public void setHasMore(Boolean hasMore) { } - public InlineResponse20037 totalResultSize(Long totalResultSize) { + public InlineResponse20037 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -81,12 +81,12 @@ public InlineResponse20037 totalResultSize(Long totalResultSize) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20038.java b/src/main/java/one/talon/model/InlineResponse20038.java index b18da9fa..354c35b9 100644 --- a/src/main/java/one/talon/model/InlineResponse20038.java +++ b/src/main/java/one/talon/model/InlineResponse20038.java @@ -34,14 +34,14 @@ public class InlineResponse20038 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse20038 totalResultSize(Long totalResultSize) { + public InlineResponse20038 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -53,12 +53,12 @@ public InlineResponse20038 totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20039.java b/src/main/java/one/talon/model/InlineResponse20039.java index 62983873..05b0b5dd 100644 --- a/src/main/java/one/talon/model/InlineResponse20039.java +++ b/src/main/java/one/talon/model/InlineResponse20039.java @@ -34,14 +34,14 @@ public class InlineResponse20039 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse20039 totalResultSize(Long totalResultSize) { + public InlineResponse20039 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -53,12 +53,12 @@ public InlineResponse20039 totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20040.java b/src/main/java/one/talon/model/InlineResponse20040.java index 4b584c4b..f7c6d690 100644 --- a/src/main/java/one/talon/model/InlineResponse20040.java +++ b/src/main/java/one/talon/model/InlineResponse20040.java @@ -34,14 +34,14 @@ public class InlineResponse20040 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse20040 totalResultSize(Long totalResultSize) { + public InlineResponse20040 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -53,12 +53,12 @@ public InlineResponse20040 totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20041.java b/src/main/java/one/talon/model/InlineResponse20041.java index 8485c92e..b4d6f335 100644 --- a/src/main/java/one/talon/model/InlineResponse20041.java +++ b/src/main/java/one/talon/model/InlineResponse20041.java @@ -34,14 +34,14 @@ public class InlineResponse20041 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse20041 totalResultSize(Long totalResultSize) { + public InlineResponse20041 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -53,12 +53,12 @@ public InlineResponse20041 totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20042.java b/src/main/java/one/talon/model/InlineResponse20042.java index ba3d8bdd..bd5378b1 100644 --- a/src/main/java/one/talon/model/InlineResponse20042.java +++ b/src/main/java/one/talon/model/InlineResponse20042.java @@ -34,14 +34,14 @@ public class InlineResponse20042 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse20042 totalResultSize(Long totalResultSize) { + public InlineResponse20042 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -53,12 +53,12 @@ public InlineResponse20042 totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20043.java b/src/main/java/one/talon/model/InlineResponse20043.java index 4304c5c5..f7cd7ddd 100644 --- a/src/main/java/one/talon/model/InlineResponse20043.java +++ b/src/main/java/one/talon/model/InlineResponse20043.java @@ -34,14 +34,14 @@ public class InlineResponse20043 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse20043 totalResultSize(Long totalResultSize) { + public InlineResponse20043 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -53,12 +53,12 @@ public InlineResponse20043 totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20044.java b/src/main/java/one/talon/model/InlineResponse20044.java index 9507301b..78f07479 100644 --- a/src/main/java/one/talon/model/InlineResponse20044.java +++ b/src/main/java/one/talon/model/InlineResponse20044.java @@ -34,7 +34,7 @@ public class InlineResponse20044 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_HAS_MORE = "hasMore"; @SerializedName(SERIALIZED_NAME_HAS_MORE) @@ -45,7 +45,7 @@ public class InlineResponse20044 { private List data = new ArrayList(); - public InlineResponse20044 totalResultSize(Long totalResultSize) { + public InlineResponse20044 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -58,12 +58,12 @@ public InlineResponse20044 totalResultSize(Long totalResultSize) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20045.java b/src/main/java/one/talon/model/InlineResponse20045.java index 15e22cd1..9f079907 100644 --- a/src/main/java/one/talon/model/InlineResponse20045.java +++ b/src/main/java/one/talon/model/InlineResponse20045.java @@ -34,14 +34,14 @@ public class InlineResponse20045 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse20045 totalResultSize(Long totalResultSize) { + public InlineResponse20045 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -53,12 +53,12 @@ public InlineResponse20045 totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20046.java b/src/main/java/one/talon/model/InlineResponse20046.java index ab9b2ebe..69f1a693 100644 --- a/src/main/java/one/talon/model/InlineResponse20046.java +++ b/src/main/java/one/talon/model/InlineResponse20046.java @@ -34,14 +34,14 @@ public class InlineResponse20046 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse20046 totalResultSize(Long totalResultSize) { + public InlineResponse20046 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -53,12 +53,12 @@ public InlineResponse20046 totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20047.java b/src/main/java/one/talon/model/InlineResponse20047.java index 2eba2280..9c9f0bee 100644 --- a/src/main/java/one/talon/model/InlineResponse20047.java +++ b/src/main/java/one/talon/model/InlineResponse20047.java @@ -38,7 +38,7 @@ public class InlineResponse20047 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -68,7 +68,7 @@ public void setHasMore(Boolean hasMore) { } - public InlineResponse20047 totalResultSize(Long totalResultSize) { + public InlineResponse20047 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -81,12 +81,12 @@ public InlineResponse20047 totalResultSize(Long totalResultSize) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse20048.java b/src/main/java/one/talon/model/InlineResponse20048.java index f132c4bf..e7bfbdcc 100644 --- a/src/main/java/one/talon/model/InlineResponse20048.java +++ b/src/main/java/one/talon/model/InlineResponse20048.java @@ -25,52 +25,28 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.Achievement; +import one.talon.model.ListCampaignStoreBudgets; /** * InlineResponse20048 */ public class InlineResponse20048 { - public static final String SERIALIZED_NAME_HAS_MORE = "hasMore"; - @SerializedName(SERIALIZED_NAME_HAS_MORE) - private Boolean hasMore; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = null; - public InlineResponse20048 hasMore(Boolean hasMore) { - - this.hasMore = hasMore; - return this; - } - - /** - * Get hasMore - * @return hasMore - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Boolean getHasMore() { - return hasMore; - } - - - public void setHasMore(Boolean hasMore) { - this.hasMore = hasMore; - } - - - public InlineResponse20048 data(List data) { + public InlineResponse20048 data(List data) { this.data = data; return this; } - public InlineResponse20048 addDataItem(Achievement dataItem) { + public InlineResponse20048 addDataItem(ListCampaignStoreBudgets dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } this.data.add(dataItem); return this; } @@ -79,14 +55,15 @@ public InlineResponse20048 addDataItem(Achievement dataItem) { * Get data * @return data **/ - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(value = "") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -100,13 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } InlineResponse20048 inlineResponse20048 = (InlineResponse20048) o; - return Objects.equals(this.hasMore, inlineResponse20048.hasMore) && - Objects.equals(this.data, inlineResponse20048.data); + return Objects.equals(this.data, inlineResponse20048.data); } @Override public int hashCode() { - return Objects.hash(hasMore, data); + return Objects.hash(data); } @@ -114,7 +90,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse20048 {\n"); - sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/InlineResponse20049.java b/src/main/java/one/talon/model/InlineResponse20049.java index 87f8b55e..870b7fd2 100644 --- a/src/main/java/one/talon/model/InlineResponse20049.java +++ b/src/main/java/one/talon/model/InlineResponse20049.java @@ -25,51 +25,28 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.AchievementProgressWithDefinition; +import one.talon.model.SummaryCampaignStoreBudget; /** * InlineResponse20049 */ public class InlineResponse20049 { - public static final String SERIALIZED_NAME_HAS_MORE = "hasMore"; - @SerializedName(SERIALIZED_NAME_HAS_MORE) - private Boolean hasMore; - public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) - private List data = new ArrayList(); + private List data = null; - public InlineResponse20049 hasMore(Boolean hasMore) { - - this.hasMore = hasMore; - return this; - } - - /** - * Get hasMore - * @return hasMore - **/ - @ApiModelProperty(example = "true", required = true, value = "") - - public Boolean getHasMore() { - return hasMore; - } - - - public void setHasMore(Boolean hasMore) { - this.hasMore = hasMore; - } - - - public InlineResponse20049 data(List data) { + public InlineResponse20049 data(List data) { this.data = data; return this; } - public InlineResponse20049 addDataItem(AchievementProgressWithDefinition dataItem) { + public InlineResponse20049 addDataItem(SummaryCampaignStoreBudget dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } this.data.add(dataItem); return this; } @@ -78,14 +55,15 @@ public InlineResponse20049 addDataItem(AchievementProgressWithDefinition dataIte * Get data * @return data **/ - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(value = "") - public List getData() { + public List getData() { return data; } - public void setData(List data) { + public void setData(List data) { this.data = data; } @@ -99,13 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } InlineResponse20049 inlineResponse20049 = (InlineResponse20049) o; - return Objects.equals(this.hasMore, inlineResponse20049.hasMore) && - Objects.equals(this.data, inlineResponse20049.data); + return Objects.equals(this.data, inlineResponse20049.data); } @Override public int hashCode() { - return Objects.hash(hasMore, data); + return Objects.hash(data); } @@ -113,7 +90,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InlineResponse20049 {\n"); - sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/one/talon/model/InlineResponse20050.java b/src/main/java/one/talon/model/InlineResponse20050.java new file mode 100644 index 00000000..67c26332 --- /dev/null +++ b/src/main/java/one/talon/model/InlineResponse20050.java @@ -0,0 +1,135 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.Achievement; + +/** + * InlineResponse20050 + */ + +public class InlineResponse20050 { + public static final String SERIALIZED_NAME_HAS_MORE = "hasMore"; + @SerializedName(SERIALIZED_NAME_HAS_MORE) + private Boolean hasMore; + + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = new ArrayList(); + + + public InlineResponse20050 hasMore(Boolean hasMore) { + + this.hasMore = hasMore; + return this; + } + + /** + * Get hasMore + * @return hasMore + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getHasMore() { + return hasMore; + } + + + public void setHasMore(Boolean hasMore) { + this.hasMore = hasMore; + } + + + public InlineResponse20050 data(List data) { + + this.data = data; + return this; + } + + public InlineResponse20050 addDataItem(Achievement dataItem) { + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(required = true, value = "") + + public List getData() { + return data; + } + + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InlineResponse20050 inlineResponse20050 = (InlineResponse20050) o; + return Objects.equals(this.hasMore, inlineResponse20050.hasMore) && + Objects.equals(this.data, inlineResponse20050.data); + } + + @Override + public int hashCode() { + return Objects.hash(hasMore, data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InlineResponse20050 {\n"); + sb.append(" hasMore: ").append(toIndentedString(hasMore)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/InlineResponse20051.java b/src/main/java/one/talon/model/InlineResponse20051.java new file mode 100644 index 00000000..07f15787 --- /dev/null +++ b/src/main/java/one/talon/model/InlineResponse20051.java @@ -0,0 +1,134 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.AchievementProgressWithDefinition; + +/** + * InlineResponse20051 + */ + +public class InlineResponse20051 { + public static final String SERIALIZED_NAME_HAS_MORE = "hasMore"; + @SerializedName(SERIALIZED_NAME_HAS_MORE) + private Boolean hasMore; + + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = new ArrayList(); + + + public InlineResponse20051 hasMore(Boolean hasMore) { + + this.hasMore = hasMore; + return this; + } + + /** + * Get hasMore + * @return hasMore + **/ + @ApiModelProperty(example = "true", required = true, value = "") + + public Boolean getHasMore() { + return hasMore; + } + + + public void setHasMore(Boolean hasMore) { + this.hasMore = hasMore; + } + + + public InlineResponse20051 data(List data) { + + this.data = data; + return this; + } + + public InlineResponse20051 addDataItem(AchievementProgressWithDefinition dataItem) { + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(required = true, value = "") + + public List getData() { + return data; + } + + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InlineResponse20051 inlineResponse20051 = (InlineResponse20051) o; + return Objects.equals(this.hasMore, inlineResponse20051.hasMore) && + Objects.equals(this.data, inlineResponse20051.data); + } + + @Override + public int hashCode() { + return Objects.hash(hasMore, data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InlineResponse20051 {\n"); + sb.append(" hasMore: ").append(toIndentedString(hasMore)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/InlineResponse2007.java b/src/main/java/one/talon/model/InlineResponse2007.java index e2835e75..5c305ec5 100644 --- a/src/main/java/one/talon/model/InlineResponse2007.java +++ b/src/main/java/one/talon/model/InlineResponse2007.java @@ -34,14 +34,14 @@ public class InlineResponse2007 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse2007 totalResultSize(Long totalResultSize) { + public InlineResponse2007 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -53,12 +53,12 @@ public InlineResponse2007 totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse2008.java b/src/main/java/one/talon/model/InlineResponse2008.java index 92f6d6dc..1bff03dc 100644 --- a/src/main/java/one/talon/model/InlineResponse2008.java +++ b/src/main/java/one/talon/model/InlineResponse2008.java @@ -34,14 +34,14 @@ public class InlineResponse2008 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse2008 totalResultSize(Long totalResultSize) { + public InlineResponse2008 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -53,12 +53,12 @@ public InlineResponse2008 totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse2009.java b/src/main/java/one/talon/model/InlineResponse2009.java index 8823e8cc..beb9abb8 100644 --- a/src/main/java/one/talon/model/InlineResponse2009.java +++ b/src/main/java/one/talon/model/InlineResponse2009.java @@ -34,14 +34,14 @@ public class InlineResponse2009 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse2009 totalResultSize(Long totalResultSize) { + public InlineResponse2009 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -53,12 +53,12 @@ public InlineResponse2009 totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/InlineResponse201.java b/src/main/java/one/talon/model/InlineResponse201.java index 025b62a9..f7303689 100644 --- a/src/main/java/one/talon/model/InlineResponse201.java +++ b/src/main/java/one/talon/model/InlineResponse201.java @@ -34,14 +34,14 @@ public class InlineResponse201 { public static final String SERIALIZED_NAME_TOTAL_RESULT_SIZE = "totalResultSize"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULT_SIZE) - private Long totalResultSize; + private Integer totalResultSize; public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private List data = new ArrayList(); - public InlineResponse201 totalResultSize(Long totalResultSize) { + public InlineResponse201 totalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; return this; @@ -53,12 +53,12 @@ public InlineResponse201 totalResultSize(Long totalResultSize) { **/ @ApiModelProperty(example = "1", required = true, value = "") - public Long getTotalResultSize() { + public Integer getTotalResultSize() { return totalResultSize; } - public void setTotalResultSize(Long totalResultSize) { + public void setTotalResultSize(Integer totalResultSize) { this.totalResultSize = totalResultSize; } diff --git a/src/main/java/one/talon/model/IntegrationCoupon.java b/src/main/java/one/talon/model/IntegrationCoupon.java index f794c632..a2a72848 100644 --- a/src/main/java/one/talon/model/IntegrationCoupon.java +++ b/src/main/java/one/talon/model/IntegrationCoupon.java @@ -36,7 +36,7 @@ public class IntegrationCoupon { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -44,7 +44,7 @@ public class IntegrationCoupon { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @@ -52,7 +52,7 @@ public class IntegrationCoupon { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Long usageLimit; + private Integer usageLimit; public static final String SERIALIZED_NAME_DISCOUNT_LIMIT = "discountLimit"; @SerializedName(SERIALIZED_NAME_DISCOUNT_LIMIT) @@ -60,7 +60,7 @@ public class IntegrationCoupon { public static final String SERIALIZED_NAME_RESERVATION_LIMIT = "reservationLimit"; @SerializedName(SERIALIZED_NAME_RESERVATION_LIMIT) - private Long reservationLimit; + private Integer reservationLimit; public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) @@ -76,7 +76,7 @@ public class IntegrationCoupon { public static final String SERIALIZED_NAME_USAGE_COUNTER = "usageCounter"; @SerializedName(SERIALIZED_NAME_USAGE_COUNTER) - private Long usageCounter; + private Integer usageCounter; public static final String SERIALIZED_NAME_DISCOUNT_COUNTER = "discountCounter"; @SerializedName(SERIALIZED_NAME_DISCOUNT_COUNTER) @@ -96,7 +96,7 @@ public class IntegrationCoupon { public static final String SERIALIZED_NAME_REFERRAL_ID = "referralId"; @SerializedName(SERIALIZED_NAME_REFERRAL_ID) - private Long referralId; + private Integer referralId; public static final String SERIALIZED_NAME_RECIPIENT_INTEGRATION_ID = "recipientIntegrationId"; @SerializedName(SERIALIZED_NAME_RECIPIENT_INTEGRATION_ID) @@ -104,7 +104,7 @@ public class IntegrationCoupon { public static final String SERIALIZED_NAME_IMPORT_ID = "importId"; @SerializedName(SERIALIZED_NAME_IMPORT_ID) - private Long importId; + private Integer importId; public static final String SERIALIZED_NAME_RESERVATION = "reservation"; @SerializedName(SERIALIZED_NAME_RESERVATION) @@ -124,27 +124,27 @@ public class IntegrationCoupon { public static final String SERIALIZED_NAME_PROFILE_REDEMPTION_COUNT = "profileRedemptionCount"; @SerializedName(SERIALIZED_NAME_PROFILE_REDEMPTION_COUNT) - private Long profileRedemptionCount; + private Integer profileRedemptionCount; - public IntegrationCoupon id(Long id) { + public IntegrationCoupon id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of the coupon. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of the coupon.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -156,10 +156,10 @@ public IntegrationCoupon created(OffsetDateTime created) { } /** - * The time this entity was created. + * The time the coupon was created. * @return created **/ - @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") + @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time the coupon was created.") public OffsetDateTime getCreated() { return created; @@ -171,7 +171,7 @@ public void setCreated(OffsetDateTime created) { } - public IntegrationCoupon campaignId(Long campaignId) { + public IntegrationCoupon campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -183,12 +183,12 @@ public IntegrationCoupon campaignId(Long campaignId) { **/ @ApiModelProperty(example = "211", required = true, value = "The ID of the campaign that owns this entity.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } @@ -215,7 +215,7 @@ public void setValue(String value) { } - public IntegrationCoupon usageLimit(Long usageLimit) { + public IntegrationCoupon usageLimit(Integer usageLimit) { this.usageLimit = usageLimit; return this; @@ -229,12 +229,12 @@ public IntegrationCoupon usageLimit(Long usageLimit) { **/ @ApiModelProperty(example = "100", required = true, value = "The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. ") - public Long getUsageLimit() { + public Integer getUsageLimit() { return usageLimit; } - public void setUsageLimit(Long usageLimit) { + public void setUsageLimit(Integer usageLimit) { this.usageLimit = usageLimit; } @@ -248,7 +248,7 @@ public IntegrationCoupon discountLimit(BigDecimal discountLimit) { /** * The total discount value that the code can give. Typically used to represent a gift card value. * minimum: 0 - * maximum: 999999 + * maximum: 1E+15 * @return discountLimit **/ @javax.annotation.Nullable @@ -264,7 +264,7 @@ public void setDiscountLimit(BigDecimal discountLimit) { } - public IntegrationCoupon reservationLimit(Long reservationLimit) { + public IntegrationCoupon reservationLimit(Integer reservationLimit) { this.reservationLimit = reservationLimit; return this; @@ -279,12 +279,12 @@ public IntegrationCoupon reservationLimit(Long reservationLimit) { @javax.annotation.Nullable @ApiModelProperty(example = "45", value = "The number of reservations that can be made with this coupon code. ") - public Long getReservationLimit() { + public Integer getReservationLimit() { return reservationLimit; } - public void setReservationLimit(Long reservationLimit) { + public void setReservationLimit(Integer reservationLimit) { this.reservationLimit = reservationLimit; } @@ -366,7 +366,7 @@ public void setLimits(List limits) { } - public IntegrationCoupon usageCounter(Long usageCounter) { + public IntegrationCoupon usageCounter(Integer usageCounter) { this.usageCounter = usageCounter; return this; @@ -378,12 +378,12 @@ public IntegrationCoupon usageCounter(Long usageCounter) { **/ @ApiModelProperty(example = "10", required = true, value = "The number of times the coupon has been successfully redeemed.") - public Long getUsageCounter() { + public Integer getUsageCounter() { return usageCounter; } - public void setUsageCounter(Long usageCounter) { + public void setUsageCounter(Integer usageCounter) { this.usageCounter = usageCounter; } @@ -480,7 +480,7 @@ public void setAttributes(Object attributes) { } - public IntegrationCoupon referralId(Long referralId) { + public IntegrationCoupon referralId(Integer referralId) { this.referralId = referralId; return this; @@ -493,12 +493,12 @@ public IntegrationCoupon referralId(Long referralId) { @javax.annotation.Nullable @ApiModelProperty(example = "326632952", value = "The integration ID of the referring customer (if any) for whom this coupon was created as an effect.") - public Long getReferralId() { + public Integer getReferralId() { return referralId; } - public void setReferralId(Long referralId) { + public void setReferralId(Integer referralId) { this.referralId = referralId; } @@ -526,7 +526,7 @@ public void setRecipientIntegrationId(String recipientIntegrationId) { } - public IntegrationCoupon importId(Long importId) { + public IntegrationCoupon importId(Integer importId) { this.importId = importId; return this; @@ -539,12 +539,12 @@ public IntegrationCoupon importId(Long importId) { @javax.annotation.Nullable @ApiModelProperty(example = "4", value = "The ID of the Import which created this coupon.") - public Long getImportId() { + public Integer getImportId() { return importId; } - public void setImportId(Long importId) { + public void setImportId(Integer importId) { this.importId = importId; } @@ -641,7 +641,7 @@ public void setImplicitlyReserved(Boolean implicitlyReserved) { } - public IntegrationCoupon profileRedemptionCount(Long profileRedemptionCount) { + public IntegrationCoupon profileRedemptionCount(Integer profileRedemptionCount) { this.profileRedemptionCount = profileRedemptionCount; return this; @@ -653,12 +653,12 @@ public IntegrationCoupon profileRedemptionCount(Long profileRedemptionCount) { **/ @ApiModelProperty(example = "5", required = true, value = "The number of times the coupon was redeemed by the profile.") - public Long getProfileRedemptionCount() { + public Integer getProfileRedemptionCount() { return profileRedemptionCount; } - public void setProfileRedemptionCount(Long profileRedemptionCount) { + public void setProfileRedemptionCount(Integer profileRedemptionCount) { this.profileRedemptionCount = profileRedemptionCount; } diff --git a/src/main/java/one/talon/model/IntegrationCustomerProfileAudienceRequest.java b/src/main/java/one/talon/model/IntegrationCustomerProfileAudienceRequest.java new file mode 100644 index 00000000..a234e677 --- /dev/null +++ b/src/main/java/one/talon/model/IntegrationCustomerProfileAudienceRequest.java @@ -0,0 +1,110 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.IntegrationCustomerProfileAudienceRequestItem; + +/** + * IntegrationCustomerProfileAudienceRequest + */ + +public class IntegrationCustomerProfileAudienceRequest { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = null; + + + public IntegrationCustomerProfileAudienceRequest data(List data) { + + this.data = data; + return this; + } + + public IntegrationCustomerProfileAudienceRequest addDataItem(IntegrationCustomerProfileAudienceRequestItem dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getData() { + return data; + } + + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IntegrationCustomerProfileAudienceRequest integrationCustomerProfileAudienceRequest = (IntegrationCustomerProfileAudienceRequest) o; + return Objects.equals(this.data, integrationCustomerProfileAudienceRequest.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IntegrationCustomerProfileAudienceRequest {\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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/IntegrationCustomerProfileAudienceRequestItem.java b/src/main/java/one/talon/model/IntegrationCustomerProfileAudienceRequestItem.java new file mode 100644 index 00000000..bc8ac10f --- /dev/null +++ b/src/main/java/one/talon/model/IntegrationCustomerProfileAudienceRequestItem.java @@ -0,0 +1,201 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * IntegrationCustomerProfileAudienceRequestItem + */ + +public class IntegrationCustomerProfileAudienceRequestItem { + /** + * Defines the action to perform: - `add`: Adds the customer profile to the audience. **Note**: If the customer profile does not exist, it will be created. The profile will not be visible in any Application until a session or profile update is received for that profile. - `delete`: Removes the customer profile from the audience. + */ + @JsonAdapter(ActionEnum.Adapter.class) + public enum ActionEnum { + ADD("add"), + + DELETE("delete"); + + private String value; + + ActionEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ActionEnum fromValue(String value) { + for (ActionEnum b : ActionEnum.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 ActionEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ActionEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ActionEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_ACTION = "action"; + @SerializedName(SERIALIZED_NAME_ACTION) + private ActionEnum action; + + public static final String SERIALIZED_NAME_PROFILE_INTEGRATION_ID = "profileIntegrationId"; + @SerializedName(SERIALIZED_NAME_PROFILE_INTEGRATION_ID) + private String profileIntegrationId; + + public static final String SERIALIZED_NAME_INTEGRATION_ID = "integrationId"; + @SerializedName(SERIALIZED_NAME_INTEGRATION_ID) + private String integrationId; + + + public IntegrationCustomerProfileAudienceRequestItem action(ActionEnum action) { + + this.action = action; + return this; + } + + /** + * Defines the action to perform: - `add`: Adds the customer profile to the audience. **Note**: If the customer profile does not exist, it will be created. The profile will not be visible in any Application until a session or profile update is received for that profile. - `delete`: Removes the customer profile from the audience. + * @return action + **/ + @ApiModelProperty(example = "add", required = true, value = "Defines the action to perform: - `add`: Adds the customer profile to the audience. **Note**: If the customer profile does not exist, it will be created. The profile will not be visible in any Application until a session or profile update is received for that profile. - `delete`: Removes the customer profile from the audience. ") + + public ActionEnum getAction() { + return action; + } + + + public void setAction(ActionEnum action) { + this.action = action; + } + + + public IntegrationCustomerProfileAudienceRequestItem profileIntegrationId(String profileIntegrationId) { + + this.profileIntegrationId = profileIntegrationId; + return this; + } + + /** + * The ID of this customer profile in the third-party integration. + * @return profileIntegrationId + **/ + @ApiModelProperty(example = "R195412", required = true, value = "The ID of this customer profile in the third-party integration.") + + public String getProfileIntegrationId() { + return profileIntegrationId; + } + + + public void setProfileIntegrationId(String profileIntegrationId) { + this.profileIntegrationId = profileIntegrationId; + } + + + public IntegrationCustomerProfileAudienceRequestItem integrationId(String integrationId) { + + this.integrationId = integrationId; + return this; + } + + /** + * The ID of this audience in the third-party integration. + * @return integrationId + **/ + @ApiModelProperty(example = "382370BKDB946", required = true, value = "The ID of this audience in the third-party integration.") + + public String getIntegrationId() { + return integrationId; + } + + + public void setIntegrationId(String integrationId) { + this.integrationId = integrationId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IntegrationCustomerProfileAudienceRequestItem integrationCustomerProfileAudienceRequestItem = (IntegrationCustomerProfileAudienceRequestItem) o; + return Objects.equals(this.action, integrationCustomerProfileAudienceRequestItem.action) && + Objects.equals(this.profileIntegrationId, integrationCustomerProfileAudienceRequestItem.profileIntegrationId) && + Objects.equals(this.integrationId, integrationCustomerProfileAudienceRequestItem.integrationId); + } + + @Override + public int hashCode() { + return Objects.hash(action, profileIntegrationId, integrationId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IntegrationCustomerProfileAudienceRequestItem {\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append(" profileIntegrationId: ").append(toIndentedString(profileIntegrationId)).append("\n"); + sb.append(" integrationId: ").append(toIndentedString(integrationId)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/InventoryCoupon.java b/src/main/java/one/talon/model/InventoryCoupon.java index 6e7868fe..c6665904 100644 --- a/src/main/java/one/talon/model/InventoryCoupon.java +++ b/src/main/java/one/talon/model/InventoryCoupon.java @@ -36,7 +36,7 @@ public class InventoryCoupon { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -44,7 +44,7 @@ public class InventoryCoupon { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @@ -52,7 +52,7 @@ public class InventoryCoupon { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Long usageLimit; + private Integer usageLimit; public static final String SERIALIZED_NAME_DISCOUNT_LIMIT = "discountLimit"; @SerializedName(SERIALIZED_NAME_DISCOUNT_LIMIT) @@ -60,7 +60,7 @@ public class InventoryCoupon { public static final String SERIALIZED_NAME_RESERVATION_LIMIT = "reservationLimit"; @SerializedName(SERIALIZED_NAME_RESERVATION_LIMIT) - private Long reservationLimit; + private Integer reservationLimit; public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) @@ -76,7 +76,7 @@ public class InventoryCoupon { public static final String SERIALIZED_NAME_USAGE_COUNTER = "usageCounter"; @SerializedName(SERIALIZED_NAME_USAGE_COUNTER) - private Long usageCounter; + private Integer usageCounter; public static final String SERIALIZED_NAME_DISCOUNT_COUNTER = "discountCounter"; @SerializedName(SERIALIZED_NAME_DISCOUNT_COUNTER) @@ -96,7 +96,7 @@ public class InventoryCoupon { public static final String SERIALIZED_NAME_REFERRAL_ID = "referralId"; @SerializedName(SERIALIZED_NAME_REFERRAL_ID) - private Long referralId; + private Integer referralId; public static final String SERIALIZED_NAME_RECIPIENT_INTEGRATION_ID = "recipientIntegrationId"; @SerializedName(SERIALIZED_NAME_RECIPIENT_INTEGRATION_ID) @@ -104,7 +104,7 @@ public class InventoryCoupon { public static final String SERIALIZED_NAME_IMPORT_ID = "importId"; @SerializedName(SERIALIZED_NAME_IMPORT_ID) - private Long importId; + private Integer importId; public static final String SERIALIZED_NAME_RESERVATION = "reservation"; @SerializedName(SERIALIZED_NAME_RESERVATION) @@ -124,31 +124,31 @@ public class InventoryCoupon { public static final String SERIALIZED_NAME_PROFILE_REDEMPTION_COUNT = "profileRedemptionCount"; @SerializedName(SERIALIZED_NAME_PROFILE_REDEMPTION_COUNT) - private Long profileRedemptionCount; + private Integer profileRedemptionCount; public static final String SERIALIZED_NAME_STATE = "state"; @SerializedName(SERIALIZED_NAME_STATE) private String state; - public InventoryCoupon id(Long id) { + public InventoryCoupon id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of the coupon. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of the coupon.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -160,10 +160,10 @@ public InventoryCoupon created(OffsetDateTime created) { } /** - * The time this entity was created. + * The time the coupon was created. * @return created **/ - @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") + @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time the coupon was created.") public OffsetDateTime getCreated() { return created; @@ -175,7 +175,7 @@ public void setCreated(OffsetDateTime created) { } - public InventoryCoupon campaignId(Long campaignId) { + public InventoryCoupon campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -187,12 +187,12 @@ public InventoryCoupon campaignId(Long campaignId) { **/ @ApiModelProperty(example = "211", required = true, value = "The ID of the campaign that owns this entity.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } @@ -219,7 +219,7 @@ public void setValue(String value) { } - public InventoryCoupon usageLimit(Long usageLimit) { + public InventoryCoupon usageLimit(Integer usageLimit) { this.usageLimit = usageLimit; return this; @@ -233,12 +233,12 @@ public InventoryCoupon usageLimit(Long usageLimit) { **/ @ApiModelProperty(example = "100", required = true, value = "The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. ") - public Long getUsageLimit() { + public Integer getUsageLimit() { return usageLimit; } - public void setUsageLimit(Long usageLimit) { + public void setUsageLimit(Integer usageLimit) { this.usageLimit = usageLimit; } @@ -252,7 +252,7 @@ public InventoryCoupon discountLimit(BigDecimal discountLimit) { /** * The total discount value that the code can give. Typically used to represent a gift card value. * minimum: 0 - * maximum: 999999 + * maximum: 1E+15 * @return discountLimit **/ @javax.annotation.Nullable @@ -268,7 +268,7 @@ public void setDiscountLimit(BigDecimal discountLimit) { } - public InventoryCoupon reservationLimit(Long reservationLimit) { + public InventoryCoupon reservationLimit(Integer reservationLimit) { this.reservationLimit = reservationLimit; return this; @@ -283,12 +283,12 @@ public InventoryCoupon reservationLimit(Long reservationLimit) { @javax.annotation.Nullable @ApiModelProperty(example = "45", value = "The number of reservations that can be made with this coupon code. ") - public Long getReservationLimit() { + public Integer getReservationLimit() { return reservationLimit; } - public void setReservationLimit(Long reservationLimit) { + public void setReservationLimit(Integer reservationLimit) { this.reservationLimit = reservationLimit; } @@ -370,7 +370,7 @@ public void setLimits(List limits) { } - public InventoryCoupon usageCounter(Long usageCounter) { + public InventoryCoupon usageCounter(Integer usageCounter) { this.usageCounter = usageCounter; return this; @@ -382,12 +382,12 @@ public InventoryCoupon usageCounter(Long usageCounter) { **/ @ApiModelProperty(example = "10", required = true, value = "The number of times the coupon has been successfully redeemed.") - public Long getUsageCounter() { + public Integer getUsageCounter() { return usageCounter; } - public void setUsageCounter(Long usageCounter) { + public void setUsageCounter(Integer usageCounter) { this.usageCounter = usageCounter; } @@ -484,7 +484,7 @@ public void setAttributes(Object attributes) { } - public InventoryCoupon referralId(Long referralId) { + public InventoryCoupon referralId(Integer referralId) { this.referralId = referralId; return this; @@ -497,12 +497,12 @@ public InventoryCoupon referralId(Long referralId) { @javax.annotation.Nullable @ApiModelProperty(example = "326632952", value = "The integration ID of the referring customer (if any) for whom this coupon was created as an effect.") - public Long getReferralId() { + public Integer getReferralId() { return referralId; } - public void setReferralId(Long referralId) { + public void setReferralId(Integer referralId) { this.referralId = referralId; } @@ -530,7 +530,7 @@ public void setRecipientIntegrationId(String recipientIntegrationId) { } - public InventoryCoupon importId(Long importId) { + public InventoryCoupon importId(Integer importId) { this.importId = importId; return this; @@ -543,12 +543,12 @@ public InventoryCoupon importId(Long importId) { @javax.annotation.Nullable @ApiModelProperty(example = "4", value = "The ID of the Import which created this coupon.") - public Long getImportId() { + public Integer getImportId() { return importId; } - public void setImportId(Long importId) { + public void setImportId(Integer importId) { this.importId = importId; } @@ -645,7 +645,7 @@ public void setImplicitlyReserved(Boolean implicitlyReserved) { } - public InventoryCoupon profileRedemptionCount(Long profileRedemptionCount) { + public InventoryCoupon profileRedemptionCount(Integer profileRedemptionCount) { this.profileRedemptionCount = profileRedemptionCount; return this; @@ -657,12 +657,12 @@ public InventoryCoupon profileRedemptionCount(Long profileRedemptionCount) { **/ @ApiModelProperty(example = "5", required = true, value = "The number of times the coupon was redeemed by the profile.") - public Long getProfileRedemptionCount() { + public Integer getProfileRedemptionCount() { return profileRedemptionCount; } - public void setProfileRedemptionCount(Long profileRedemptionCount) { + public void setProfileRedemptionCount(Integer profileRedemptionCount) { this.profileRedemptionCount = profileRedemptionCount; } diff --git a/src/main/java/one/talon/model/InventoryReferral.java b/src/main/java/one/talon/model/InventoryReferral.java index 3bb92692..fa8c51bf 100644 --- a/src/main/java/one/talon/model/InventoryReferral.java +++ b/src/main/java/one/talon/model/InventoryReferral.java @@ -34,7 +34,7 @@ public class InventoryReferral { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -50,11 +50,11 @@ public class InventoryReferral { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Long usageLimit; + private Integer usageLimit; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_ADVOCATE_PROFILE_INTEGRATION_ID = "advocateProfileIntegrationId"; @SerializedName(SERIALIZED_NAME_ADVOCATE_PROFILE_INTEGRATION_ID) @@ -70,7 +70,7 @@ public class InventoryReferral { public static final String SERIALIZED_NAME_IMPORT_ID = "importId"; @SerializedName(SERIALIZED_NAME_IMPORT_ID) - private Long importId; + private Integer importId; public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) @@ -78,7 +78,7 @@ public class InventoryReferral { public static final String SERIALIZED_NAME_USAGE_COUNTER = "usageCounter"; @SerializedName(SERIALIZED_NAME_USAGE_COUNTER) - private Long usageCounter; + private Integer usageCounter; public static final String SERIALIZED_NAME_BATCH_ID = "batchId"; @SerializedName(SERIALIZED_NAME_BATCH_ID) @@ -89,24 +89,24 @@ public class InventoryReferral { private List referredCustomers = new ArrayList(); - public InventoryReferral id(Long id) { + public InventoryReferral id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -179,7 +179,7 @@ public void setExpiryDate(OffsetDateTime expiryDate) { } - public InventoryReferral usageLimit(Long usageLimit) { + public InventoryReferral usageLimit(Integer usageLimit) { this.usageLimit = usageLimit; return this; @@ -193,17 +193,17 @@ public InventoryReferral usageLimit(Long usageLimit) { **/ @ApiModelProperty(example = "1", required = true, value = "The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. ") - public Long getUsageLimit() { + public Integer getUsageLimit() { return usageLimit; } - public void setUsageLimit(Long usageLimit) { + public void setUsageLimit(Integer usageLimit) { this.usageLimit = usageLimit; } - public InventoryReferral campaignId(Long campaignId) { + public InventoryReferral campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -215,12 +215,12 @@ public InventoryReferral campaignId(Long campaignId) { **/ @ApiModelProperty(example = "78", required = true, value = "ID of the campaign from which the referral received the referral code.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } @@ -293,7 +293,7 @@ public void setAttributes(Object attributes) { } - public InventoryReferral importId(Long importId) { + public InventoryReferral importId(Integer importId) { this.importId = importId; return this; @@ -306,12 +306,12 @@ public InventoryReferral importId(Long importId) { @javax.annotation.Nullable @ApiModelProperty(example = "4", value = "The ID of the Import which created this referral.") - public Long getImportId() { + public Integer getImportId() { return importId; } - public void setImportId(Long importId) { + public void setImportId(Integer importId) { this.importId = importId; } @@ -338,7 +338,7 @@ public void setCode(String code) { } - public InventoryReferral usageCounter(Long usageCounter) { + public InventoryReferral usageCounter(Integer usageCounter) { this.usageCounter = usageCounter; return this; @@ -350,12 +350,12 @@ public InventoryReferral usageCounter(Long usageCounter) { **/ @ApiModelProperty(example = "1", required = true, value = "The number of times this referral code has been successfully used.") - public Long getUsageCounter() { + public Integer getUsageCounter() { return usageCounter; } - public void setUsageCounter(Long usageCounter) { + public void setUsageCounter(Integer usageCounter) { this.usageCounter = usageCounter; } diff --git a/src/main/java/one/talon/model/ItemAttribute.java b/src/main/java/one/talon/model/ItemAttribute.java index b5099404..34a4a365 100644 --- a/src/main/java/one/talon/model/ItemAttribute.java +++ b/src/main/java/one/talon/model/ItemAttribute.java @@ -31,7 +31,7 @@ public class ItemAttribute { public static final String SERIALIZED_NAME_ATTRIBUTEID = "attributeid"; @SerializedName(SERIALIZED_NAME_ATTRIBUTEID) - private Long attributeid; + private Integer attributeid; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -42,7 +42,7 @@ public class ItemAttribute { private Object value; - public ItemAttribute attributeid(Long attributeid) { + public ItemAttribute attributeid(Integer attributeid) { this.attributeid = attributeid; return this; @@ -54,12 +54,12 @@ public ItemAttribute attributeid(Long attributeid) { **/ @ApiModelProperty(example = "6", required = true, value = "The ID of the attribute of the item.") - public Long getAttributeid() { + public Integer getAttributeid() { return attributeid; } - public void setAttributeid(Long attributeid) { + public void setAttributeid(Integer attributeid) { this.attributeid = attributeid; } diff --git a/src/main/java/one/talon/model/LedgerEntry.java b/src/main/java/one/talon/model/LedgerEntry.java index a0313d95..f374a559 100644 --- a/src/main/java/one/talon/model/LedgerEntry.java +++ b/src/main/java/one/talon/model/LedgerEntry.java @@ -33,7 +33,7 @@ public class LedgerEntry { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -45,19 +45,19 @@ public class LedgerEntry { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_LOYALTY_PROGRAM_ID = "loyaltyProgramId"; @SerializedName(SERIALIZED_NAME_LOYALTY_PROGRAM_ID) - private Long loyaltyProgramId; + private Integer loyaltyProgramId; public static final String SERIALIZED_NAME_EVENT_ID = "eventId"; @SerializedName(SERIALIZED_NAME_EVENT_ID) - private Long eventId; + private Integer eventId; public static final String SERIALIZED_NAME_AMOUNT = "amount"; @SerializedName(SERIALIZED_NAME_AMOUNT) - private Long amount; + private Integer amount; public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) @@ -69,27 +69,27 @@ public class LedgerEntry { public static final String SERIALIZED_NAME_REFERENCE_ID = "referenceId"; @SerializedName(SERIALIZED_NAME_REFERENCE_ID) - private Long referenceId; + private Integer referenceId; - public LedgerEntry id(Long id) { + public LedgerEntry id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -138,7 +138,7 @@ public void setProfileId(String profileId) { } - public LedgerEntry accountId(Long accountId) { + public LedgerEntry accountId(Integer accountId) { this.accountId = accountId; return this; @@ -150,17 +150,17 @@ public LedgerEntry accountId(Long accountId) { **/ @ApiModelProperty(required = true, value = "The ID of the Talon.One account that owns this profile.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } - public LedgerEntry loyaltyProgramId(Long loyaltyProgramId) { + public LedgerEntry loyaltyProgramId(Integer loyaltyProgramId) { this.loyaltyProgramId = loyaltyProgramId; return this; @@ -172,17 +172,17 @@ public LedgerEntry loyaltyProgramId(Long loyaltyProgramId) { **/ @ApiModelProperty(example = "323414846", required = true, value = "ID of the ledger.") - public Long getLoyaltyProgramId() { + public Integer getLoyaltyProgramId() { return loyaltyProgramId; } - public void setLoyaltyProgramId(Long loyaltyProgramId) { + public void setLoyaltyProgramId(Integer loyaltyProgramId) { this.loyaltyProgramId = loyaltyProgramId; } - public LedgerEntry eventId(Long eventId) { + public LedgerEntry eventId(Integer eventId) { this.eventId = eventId; return this; @@ -194,17 +194,17 @@ public LedgerEntry eventId(Long eventId) { **/ @ApiModelProperty(example = "3", required = true, value = "ID of the related event.") - public Long getEventId() { + public Integer getEventId() { return eventId; } - public void setEventId(Long eventId) { + public void setEventId(Integer eventId) { this.eventId = eventId; } - public LedgerEntry amount(Long amount) { + public LedgerEntry amount(Integer amount) { this.amount = amount; return this; @@ -216,12 +216,12 @@ public LedgerEntry amount(Long amount) { **/ @ApiModelProperty(example = "100", required = true, value = "Amount of loyalty points.") - public Long getAmount() { + public Integer getAmount() { return amount; } - public void setAmount(Long amount) { + public void setAmount(Integer amount) { this.amount = amount; } @@ -270,7 +270,7 @@ public void setExpiryDate(OffsetDateTime expiryDate) { } - public LedgerEntry referenceId(Long referenceId) { + public LedgerEntry referenceId(Integer referenceId) { this.referenceId = referenceId; return this; @@ -283,12 +283,12 @@ public LedgerEntry referenceId(Long referenceId) { @javax.annotation.Nullable @ApiModelProperty(value = "The ID of the balancing ledgerEntry.") - public Long getReferenceId() { + public Integer getReferenceId() { return referenceId; } - public void setReferenceId(Long referenceId) { + public void setReferenceId(Integer referenceId) { this.referenceId = referenceId; } diff --git a/src/main/java/one/talon/model/LedgerInfo.java b/src/main/java/one/talon/model/LedgerInfo.java index d3c880e7..6cc777d7 100644 --- a/src/main/java/one/talon/model/LedgerInfo.java +++ b/src/main/java/one/talon/model/LedgerInfo.java @@ -127,7 +127,8 @@ public LedgerInfo negativeBalance(BigDecimal negativeBalance) { * Sum of negative points. This implies that `currentBalance` is `0`. * @return negativeBalance **/ - @ApiModelProperty(example = "10.0", required = true, value = "Sum of negative points. This implies that `currentBalance` is `0`.") + @javax.annotation.Nullable + @ApiModelProperty(example = "10.0", value = "Sum of negative points. This implies that `currentBalance` is `0`.") public BigDecimal getNegativeBalance() { return negativeBalance; @@ -238,7 +239,8 @@ public LedgerInfo tentativeNegativeBalance(BigDecimal tentativeNegativeBalance) * The tentative negative balance after all additions and deductions from the current customer session are applied to `negativeBalance`. When the session is closed, the tentative effects are applied and `negativeBalance` is updated to this value. **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. * @return tentativeNegativeBalance **/ - @ApiModelProperty(example = "100.0", required = true, value = "The tentative negative balance after all additions and deductions from the current customer session are applied to `negativeBalance`. When the session is closed, the tentative effects are applied and `negativeBalance` is updated to this value. **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. ") + @javax.annotation.Nullable + @ApiModelProperty(example = "100.0", value = "The tentative negative balance after all additions and deductions from the current customer session are applied to `negativeBalance`. When the session is closed, the tentative effects are applied and `negativeBalance` is updated to this value. **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. ") public BigDecimal getTentativeNegativeBalance() { return tentativeNegativeBalance; diff --git a/src/main/java/one/talon/model/LedgerPointsEntryIntegrationAPI.java b/src/main/java/one/talon/model/LedgerPointsEntryIntegrationAPI.java index d51a4b39..fed96758 100644 --- a/src/main/java/one/talon/model/LedgerPointsEntryIntegrationAPI.java +++ b/src/main/java/one/talon/model/LedgerPointsEntryIntegrationAPI.java @@ -34,7 +34,7 @@ public class LedgerPointsEntryIntegrationAPI { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -42,7 +42,7 @@ public class LedgerPointsEntryIntegrationAPI { public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; @SerializedName(SERIALIZED_NAME_PROGRAM_ID) - private Long programId; + private Integer programId; public static final String SERIALIZED_NAME_CUSTOMER_SESSION_ID = "customerSessionId"; @SerializedName(SERIALIZED_NAME_CUSTOMER_SESSION_ID) @@ -69,7 +69,7 @@ public class LedgerPointsEntryIntegrationAPI { private BigDecimal amount; - public LedgerPointsEntryIntegrationAPI id(Long id) { + public LedgerPointsEntryIntegrationAPI id(Integer id) { this.id = id; return this; @@ -81,12 +81,12 @@ public LedgerPointsEntryIntegrationAPI id(Long id) { **/ @ApiModelProperty(example = "123", required = true, value = "ID of the transaction that adds loyalty points.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -113,7 +113,7 @@ public void setCreated(OffsetDateTime created) { } - public LedgerPointsEntryIntegrationAPI programId(Long programId) { + public LedgerPointsEntryIntegrationAPI programId(Integer programId) { this.programId = programId; return this; @@ -125,12 +125,12 @@ public LedgerPointsEntryIntegrationAPI programId(Long programId) { **/ @ApiModelProperty(example = "324", required = true, value = "ID of the loyalty program.") - public Long getProgramId() { + public Integer getProgramId() { return programId; } - public void setProgramId(Long programId) { + public void setProgramId(Integer programId) { this.programId = programId; } diff --git a/src/main/java/one/talon/model/LedgerTransactionLogEntryIntegrationAPI.java b/src/main/java/one/talon/model/LedgerTransactionLogEntryIntegrationAPI.java index 36146733..02900b01 100644 --- a/src/main/java/one/talon/model/LedgerTransactionLogEntryIntegrationAPI.java +++ b/src/main/java/one/talon/model/LedgerTransactionLogEntryIntegrationAPI.java @@ -39,7 +39,7 @@ public class LedgerTransactionLogEntryIntegrationAPI { public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; @SerializedName(SERIALIZED_NAME_PROGRAM_ID) - private Long programId; + private Integer programId; public static final String SERIALIZED_NAME_CUSTOMER_SESSION_ID = "customerSessionId"; @SerializedName(SERIALIZED_NAME_CUSTOMER_SESSION_ID) @@ -118,11 +118,11 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_RULESET_ID = "rulesetId"; @SerializedName(SERIALIZED_NAME_RULESET_ID) - private Long rulesetId; + private Integer rulesetId; public static final String SERIALIZED_NAME_RULE_NAME = "ruleName"; @SerializedName(SERIALIZED_NAME_RULE_NAME) @@ -155,7 +155,7 @@ public void setCreated(OffsetDateTime created) { } - public LedgerTransactionLogEntryIntegrationAPI programId(Long programId) { + public LedgerTransactionLogEntryIntegrationAPI programId(Integer programId) { this.programId = programId; return this; @@ -167,12 +167,12 @@ public LedgerTransactionLogEntryIntegrationAPI programId(Long programId) { **/ @ApiModelProperty(example = "324", required = true, value = "ID of the loyalty program.") - public Long getProgramId() { + public Integer getProgramId() { return programId; } - public void setProgramId(Long programId) { + public void setProgramId(Integer programId) { this.programId = programId; } @@ -332,7 +332,7 @@ public void setAmount(BigDecimal amount) { } - public LedgerTransactionLogEntryIntegrationAPI id(Long id) { + public LedgerTransactionLogEntryIntegrationAPI id(Integer id) { this.id = id; return this; @@ -344,17 +344,17 @@ public LedgerTransactionLogEntryIntegrationAPI id(Long id) { **/ @ApiModelProperty(example = "123", required = true, value = "ID of the loyalty ledger transaction.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } - public LedgerTransactionLogEntryIntegrationAPI rulesetId(Long rulesetId) { + public LedgerTransactionLogEntryIntegrationAPI rulesetId(Integer rulesetId) { this.rulesetId = rulesetId; return this; @@ -367,12 +367,12 @@ public LedgerTransactionLogEntryIntegrationAPI rulesetId(Long rulesetId) { @javax.annotation.Nullable @ApiModelProperty(example = "11", value = "The ID of the ruleset containing the rule that triggered this effect.") - public Long getRulesetId() { + public Integer getRulesetId() { return rulesetId; } - public void setRulesetId(Long rulesetId) { + public void setRulesetId(Integer rulesetId) { this.rulesetId = rulesetId; } diff --git a/src/main/java/one/talon/model/LimitCounter.java b/src/main/java/one/talon/model/LimitCounter.java index 9d08c50a..a5bac14b 100644 --- a/src/main/java/one/talon/model/LimitCounter.java +++ b/src/main/java/one/talon/model/LimitCounter.java @@ -32,19 +32,19 @@ public class LimitCounter { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) @@ -52,7 +52,7 @@ public class LimitCounter { public static final String SERIALIZED_NAME_PROFILE_ID = "profileId"; @SerializedName(SERIALIZED_NAME_PROFILE_ID) - private Long profileId; + private Integer profileId; public static final String SERIALIZED_NAME_PROFILE_INTEGRATION_ID = "profileIntegrationId"; @SerializedName(SERIALIZED_NAME_PROFILE_INTEGRATION_ID) @@ -60,7 +60,7 @@ public class LimitCounter { public static final String SERIALIZED_NAME_COUPON_ID = "couponId"; @SerializedName(SERIALIZED_NAME_COUPON_ID) - private Long couponId; + private Integer couponId; public static final String SERIALIZED_NAME_COUPON_VALUE = "couponValue"; @SerializedName(SERIALIZED_NAME_COUPON_VALUE) @@ -68,7 +68,7 @@ public class LimitCounter { public static final String SERIALIZED_NAME_REFERRAL_ID = "referralId"; @SerializedName(SERIALIZED_NAME_REFERRAL_ID) - private Long referralId; + private Integer referralId; public static final String SERIALIZED_NAME_REFERRAL_VALUE = "referralValue"; @SerializedName(SERIALIZED_NAME_REFERRAL_VALUE) @@ -91,7 +91,7 @@ public class LimitCounter { private BigDecimal counter; - public LimitCounter campaignId(Long campaignId) { + public LimitCounter campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -103,17 +103,17 @@ public LimitCounter campaignId(Long campaignId) { **/ @ApiModelProperty(example = "211", required = true, value = "The ID of the campaign that owns this entity.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } - public LimitCounter applicationId(Long applicationId) { + public LimitCounter applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -125,17 +125,17 @@ public LimitCounter applicationId(Long applicationId) { **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } - public LimitCounter accountId(Long accountId) { + public LimitCounter accountId(Integer accountId) { this.accountId = accountId; return this; @@ -147,17 +147,17 @@ public LimitCounter accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } - public LimitCounter id(Long id) { + public LimitCounter id(Integer id) { this.id = id; return this; @@ -169,12 +169,12 @@ public LimitCounter id(Long id) { **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -201,7 +201,7 @@ public void setAction(String action) { } - public LimitCounter profileId(Long profileId) { + public LimitCounter profileId(Integer profileId) { this.profileId = profileId; return this; @@ -214,12 +214,12 @@ public LimitCounter profileId(Long profileId) { @javax.annotation.Nullable @ApiModelProperty(example = "335", value = "The profile ID for which this limit counter is used.") - public Long getProfileId() { + public Integer getProfileId() { return profileId; } - public void setProfileId(Long profileId) { + public void setProfileId(Integer profileId) { this.profileId = profileId; } @@ -247,7 +247,7 @@ public void setProfileIntegrationId(String profileIntegrationId) { } - public LimitCounter couponId(Long couponId) { + public LimitCounter couponId(Integer couponId) { this.couponId = couponId; return this; @@ -260,12 +260,12 @@ public LimitCounter couponId(Long couponId) { @javax.annotation.Nullable @ApiModelProperty(example = "34", value = "The internal coupon ID for which this limit counter is used.") - public Long getCouponId() { + public Integer getCouponId() { return couponId; } - public void setCouponId(Long couponId) { + public void setCouponId(Integer couponId) { this.couponId = couponId; } @@ -293,7 +293,7 @@ public void setCouponValue(String couponValue) { } - public LimitCounter referralId(Long referralId) { + public LimitCounter referralId(Integer referralId) { this.referralId = referralId; return this; @@ -306,12 +306,12 @@ public LimitCounter referralId(Long referralId) { @javax.annotation.Nullable @ApiModelProperty(example = "4", value = "The referral ID for which this limit counter is used.") - public Long getReferralId() { + public Integer getReferralId() { return referralId; } - public void setReferralId(Long referralId) { + public void setReferralId(Integer referralId) { this.referralId = referralId; } diff --git a/src/main/java/one/talon/model/ListCampaignStoreBudgets.java b/src/main/java/one/talon/model/ListCampaignStoreBudgets.java index 7cc644fd..af82bff9 100644 --- a/src/main/java/one/talon/model/ListCampaignStoreBudgets.java +++ b/src/main/java/one/talon/model/ListCampaignStoreBudgets.java @@ -36,7 +36,7 @@ public class ListCampaignStoreBudgets { public static final String SERIALIZED_NAME_LIMIT = "limit"; @SerializedName(SERIALIZED_NAME_LIMIT) - private Long limit; + private Integer limit; public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) @@ -69,7 +69,7 @@ public void setStore(ListCampaignStoreBudgetsStore store) { } - public ListCampaignStoreBudgets limit(Long limit) { + public ListCampaignStoreBudgets limit(Integer limit) { this.limit = limit; return this; @@ -81,12 +81,12 @@ public ListCampaignStoreBudgets limit(Long limit) { **/ @ApiModelProperty(required = true, value = "") - public Long getLimit() { + public Integer getLimit() { return limit; } - public void setLimit(Long limit) { + public void setLimit(Integer limit) { this.limit = limit; } diff --git a/src/main/java/one/talon/model/ListCampaignStoreBudgetsStore.java b/src/main/java/one/talon/model/ListCampaignStoreBudgetsStore.java index c8dcccf0..a402aa05 100644 --- a/src/main/java/one/talon/model/ListCampaignStoreBudgetsStore.java +++ b/src/main/java/one/talon/model/ListCampaignStoreBudgetsStore.java @@ -31,7 +31,7 @@ public class ListCampaignStoreBudgetsStore { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_INTEGRATION_ID = "integrationId"; @SerializedName(SERIALIZED_NAME_INTEGRATION_ID) @@ -42,7 +42,7 @@ public class ListCampaignStoreBudgetsStore { private String name; - public ListCampaignStoreBudgetsStore id(Long id) { + public ListCampaignStoreBudgetsStore id(Integer id) { this.id = id; return this; @@ -54,12 +54,12 @@ public ListCampaignStoreBudgetsStore id(Long id) { **/ @ApiModelProperty(required = true, value = "") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/src/main/java/one/talon/model/LoyaltyCard.java b/src/main/java/one/talon/model/LoyaltyCard.java index bf8740e5..ff5c86bb 100644 --- a/src/main/java/one/talon/model/LoyaltyCard.java +++ b/src/main/java/one/talon/model/LoyaltyCard.java @@ -38,7 +38,7 @@ public class LoyaltyCard { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -46,7 +46,7 @@ public class LoyaltyCard { public static final String SERIALIZED_NAME_PROGRAM_I_D = "programID"; @SerializedName(SERIALIZED_NAME_PROGRAM_I_D) - private Long programID; + private Integer programID; public static final String SERIALIZED_NAME_PROGRAM_NAME = "programName"; @SerializedName(SERIALIZED_NAME_PROGRAM_NAME) @@ -70,7 +70,7 @@ public class LoyaltyCard { public static final String SERIALIZED_NAME_USERS_PER_CARD_LIMIT = "usersPerCardLimit"; @SerializedName(SERIALIZED_NAME_USERS_PER_CARD_LIMIT) - private Long usersPerCardLimit; + private Integer usersPerCardLimit; public static final String SERIALIZED_NAME_PROFILES = "profiles"; @SerializedName(SERIALIZED_NAME_PROFILES) @@ -101,24 +101,24 @@ public class LoyaltyCard { private String batchId; - public LoyaltyCard id(Long id) { + public LoyaltyCard id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -145,7 +145,7 @@ public void setCreated(OffsetDateTime created) { } - public LoyaltyCard programID(Long programID) { + public LoyaltyCard programID(Integer programID) { this.programID = programID; return this; @@ -157,12 +157,12 @@ public LoyaltyCard programID(Long programID) { **/ @ApiModelProperty(example = "125", required = true, value = "The ID of the loyalty program that owns this entity.") - public Long getProgramID() { + public Integer getProgramID() { return programID; } - public void setProgramID(Long programID) { + public void setProgramID(Integer programID) { this.programID = programID; } @@ -280,7 +280,7 @@ public void setIdentifier(String identifier) { } - public LoyaltyCard usersPerCardLimit(Long usersPerCardLimit) { + public LoyaltyCard usersPerCardLimit(Integer usersPerCardLimit) { this.usersPerCardLimit = usersPerCardLimit; return this; @@ -293,12 +293,12 @@ public LoyaltyCard usersPerCardLimit(Long usersPerCardLimit) { **/ @ApiModelProperty(example = "111", required = true, value = "The max amount of customer profiles that can be linked to the card. 0 means unlimited. ") - public Long getUsersPerCardLimit() { + public Integer getUsersPerCardLimit() { return usersPerCardLimit; } - public void setUsersPerCardLimit(Long usersPerCardLimit) { + public void setUsersPerCardLimit(Integer usersPerCardLimit) { this.usersPerCardLimit = usersPerCardLimit; } diff --git a/src/main/java/one/talon/model/LoyaltyCardBatch.java b/src/main/java/one/talon/model/LoyaltyCardBatch.java index aabd98ec..a5bb9eb6 100644 --- a/src/main/java/one/talon/model/LoyaltyCardBatch.java +++ b/src/main/java/one/talon/model/LoyaltyCardBatch.java @@ -32,7 +32,7 @@ public class LoyaltyCardBatch { public static final String SERIALIZED_NAME_NUMBER_OF_CARDS = "numberOfCards"; @SerializedName(SERIALIZED_NAME_NUMBER_OF_CARDS) - private Long numberOfCards; + private Integer numberOfCards; public static final String SERIALIZED_NAME_BATCH_ID = "batchId"; @SerializedName(SERIALIZED_NAME_BATCH_ID) @@ -94,7 +94,7 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { private CodeGeneratorSettings cardCodeSettings; - public LoyaltyCardBatch numberOfCards(Long numberOfCards) { + public LoyaltyCardBatch numberOfCards(Integer numberOfCards) { this.numberOfCards = numberOfCards; return this; @@ -106,12 +106,12 @@ public LoyaltyCardBatch numberOfCards(Long numberOfCards) { **/ @ApiModelProperty(example = "5000", required = true, value = "Number of loyalty cards in the batch.") - public Long getNumberOfCards() { + public Integer getNumberOfCards() { return numberOfCards; } - public void setNumberOfCards(Long numberOfCards) { + public void setNumberOfCards(Integer numberOfCards) { this.numberOfCards = numberOfCards; } diff --git a/src/main/java/one/talon/model/LoyaltyCardBatchResponse.java b/src/main/java/one/talon/model/LoyaltyCardBatchResponse.java index e257e31c..2ea77ea9 100644 --- a/src/main/java/one/talon/model/LoyaltyCardBatchResponse.java +++ b/src/main/java/one/talon/model/LoyaltyCardBatchResponse.java @@ -31,14 +31,14 @@ public class LoyaltyCardBatchResponse { public static final String SERIALIZED_NAME_NUMBER_OF_CARDS_GENERATED = "numberOfCardsGenerated"; @SerializedName(SERIALIZED_NAME_NUMBER_OF_CARDS_GENERATED) - private Long numberOfCardsGenerated; + private Integer numberOfCardsGenerated; public static final String SERIALIZED_NAME_BATCH_ID = "batchId"; @SerializedName(SERIALIZED_NAME_BATCH_ID) private String batchId; - public LoyaltyCardBatchResponse numberOfCardsGenerated(Long numberOfCardsGenerated) { + public LoyaltyCardBatchResponse numberOfCardsGenerated(Integer numberOfCardsGenerated) { this.numberOfCardsGenerated = numberOfCardsGenerated; return this; @@ -50,12 +50,12 @@ public LoyaltyCardBatchResponse numberOfCardsGenerated(Long numberOfCardsGenerat **/ @ApiModelProperty(example = "5000", required = true, value = "Number of loyalty cards in the batch.") - public Long getNumberOfCardsGenerated() { + public Integer getNumberOfCardsGenerated() { return numberOfCardsGenerated; } - public void setNumberOfCardsGenerated(Long numberOfCardsGenerated) { + public void setNumberOfCardsGenerated(Integer numberOfCardsGenerated) { this.numberOfCardsGenerated = numberOfCardsGenerated; } diff --git a/src/main/java/one/talon/model/LoyaltyLedgerEntry.java b/src/main/java/one/talon/model/LoyaltyLedgerEntry.java index 802f9f09..b1876bcf 100644 --- a/src/main/java/one/talon/model/LoyaltyLedgerEntry.java +++ b/src/main/java/one/talon/model/LoyaltyLedgerEntry.java @@ -39,7 +39,7 @@ public class LoyaltyLedgerEntry { public static final String SERIALIZED_NAME_PROGRAM_I_D = "programID"; @SerializedName(SERIALIZED_NAME_PROGRAM_I_D) - private Long programID; + private Integer programID; public static final String SERIALIZED_NAME_CUSTOMER_PROFILE_I_D = "customerProfileID"; @SerializedName(SERIALIZED_NAME_CUSTOMER_PROFILE_I_D) @@ -47,7 +47,7 @@ public class LoyaltyLedgerEntry { public static final String SERIALIZED_NAME_CARD_I_D = "cardID"; @SerializedName(SERIALIZED_NAME_CARD_I_D) - private Long cardID; + private Integer cardID; public static final String SERIALIZED_NAME_CUSTOMER_SESSION_I_D = "customerSessionID"; @SerializedName(SERIALIZED_NAME_CUSTOMER_SESSION_I_D) @@ -55,7 +55,7 @@ public class LoyaltyLedgerEntry { public static final String SERIALIZED_NAME_EVENT_I_D = "eventID"; @SerializedName(SERIALIZED_NAME_EVENT_I_D) - private Long eventID; + private Integer eventID; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -83,7 +83,7 @@ public class LoyaltyLedgerEntry { public static final String SERIALIZED_NAME_USER_I_D = "userID"; @SerializedName(SERIALIZED_NAME_USER_I_D) - private Long userID; + private Integer userID; public static final String SERIALIZED_NAME_ARCHIVED = "archived"; @SerializedName(SERIALIZED_NAME_ARCHIVED) @@ -116,7 +116,7 @@ public void setCreated(OffsetDateTime created) { } - public LoyaltyLedgerEntry programID(Long programID) { + public LoyaltyLedgerEntry programID(Integer programID) { this.programID = programID; return this; @@ -128,12 +128,12 @@ public LoyaltyLedgerEntry programID(Long programID) { **/ @ApiModelProperty(example = "5", required = true, value = "") - public Long getProgramID() { + public Integer getProgramID() { return programID; } - public void setProgramID(Long programID) { + public void setProgramID(Integer programID) { this.programID = programID; } @@ -161,7 +161,7 @@ public void setCustomerProfileID(String customerProfileID) { } - public LoyaltyLedgerEntry cardID(Long cardID) { + public LoyaltyLedgerEntry cardID(Integer cardID) { this.cardID = cardID; return this; @@ -174,12 +174,12 @@ public LoyaltyLedgerEntry cardID(Long cardID) { @javax.annotation.Nullable @ApiModelProperty(example = "241", value = "") - public Long getCardID() { + public Integer getCardID() { return cardID; } - public void setCardID(Long cardID) { + public void setCardID(Integer cardID) { this.cardID = cardID; } @@ -207,7 +207,7 @@ public void setCustomerSessionID(String customerSessionID) { } - public LoyaltyLedgerEntry eventID(Long eventID) { + public LoyaltyLedgerEntry eventID(Integer eventID) { this.eventID = eventID; return this; @@ -220,12 +220,12 @@ public LoyaltyLedgerEntry eventID(Long eventID) { @javax.annotation.Nullable @ApiModelProperty(example = "5", value = "") - public Long getEventID() { + public Integer getEventID() { return eventID; } - public void setEventID(Long eventID) { + public void setEventID(Integer eventID) { this.eventID = eventID; } @@ -364,7 +364,7 @@ public void setSubLedgerID(String subLedgerID) { } - public LoyaltyLedgerEntry userID(Long userID) { + public LoyaltyLedgerEntry userID(Integer userID) { this.userID = userID; return this; @@ -377,12 +377,12 @@ public LoyaltyLedgerEntry userID(Long userID) { @javax.annotation.Nullable @ApiModelProperty(example = "499", value = "This is the ID of the user who created this entry, if the addition or subtraction was done manually.") - public Long getUserID() { + public Integer getUserID() { return userID; } - public void setUserID(Long userID) { + public void setUserID(Integer userID) { this.userID = userID; } diff --git a/src/main/java/one/talon/model/LoyaltyMembership.java b/src/main/java/one/talon/model/LoyaltyMembership.java index 1ab8c95b..40e1ab44 100644 --- a/src/main/java/one/talon/model/LoyaltyMembership.java +++ b/src/main/java/one/talon/model/LoyaltyMembership.java @@ -36,7 +36,7 @@ public class LoyaltyMembership { public static final String SERIALIZED_NAME_LOYALTY_PROGRAM_ID = "loyaltyProgramId"; @SerializedName(SERIALIZED_NAME_LOYALTY_PROGRAM_ID) - private Long loyaltyProgramId; + private Integer loyaltyProgramId; public LoyaltyMembership joined(OffsetDateTime joined) { @@ -62,7 +62,7 @@ public void setJoined(OffsetDateTime joined) { } - public LoyaltyMembership loyaltyProgramId(Long loyaltyProgramId) { + public LoyaltyMembership loyaltyProgramId(Integer loyaltyProgramId) { this.loyaltyProgramId = loyaltyProgramId; return this; @@ -74,12 +74,12 @@ public LoyaltyMembership loyaltyProgramId(Long loyaltyProgramId) { **/ @ApiModelProperty(example = "323414846", required = true, value = "The ID of the loyalty program belonging to this entity.") - public Long getLoyaltyProgramId() { + public Integer getLoyaltyProgramId() { return loyaltyProgramId; } - public void setLoyaltyProgramId(Long loyaltyProgramId) { + public void setLoyaltyProgramId(Integer loyaltyProgramId) { this.loyaltyProgramId = loyaltyProgramId; } diff --git a/src/main/java/one/talon/model/LoyaltyProgram.java b/src/main/java/one/talon/model/LoyaltyProgram.java index f1106810..39812e36 100644 --- a/src/main/java/one/talon/model/LoyaltyProgram.java +++ b/src/main/java/one/talon/model/LoyaltyProgram.java @@ -37,7 +37,7 @@ public class LoyaltyProgram { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -53,7 +53,7 @@ public class LoyaltyProgram { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS = "subscribedApplications"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS) - private List subscribedApplications = new ArrayList(); + private List subscribedApplications = new ArrayList(); public static final String SERIALIZED_NAME_DEFAULT_VALIDITY = "defaultValidity"; @SerializedName(SERIALIZED_NAME_DEFAULT_VALIDITY) @@ -69,7 +69,7 @@ public class LoyaltyProgram { public static final String SERIALIZED_NAME_USERS_PER_CARD_LIMIT = "usersPerCardLimit"; @SerializedName(SERIALIZED_NAME_USERS_PER_CARD_LIMIT) - private Long usersPerCardLimit; + private Integer usersPerCardLimit; public static final String SERIALIZED_NAME_SANDBOX = "sandbox"; @SerializedName(SERIALIZED_NAME_SANDBOX) @@ -301,7 +301,7 @@ public ReturnPolicyEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ACCOUNT_I_D = "accountID"; @SerializedName(SERIALIZED_NAME_ACCOUNT_I_D) - private Long accountID; + private Integer accountID; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -340,7 +340,7 @@ public ReturnPolicyEnum read(final JsonReader jsonReader) throws IOException { private Boolean canUpdateSubledgers = false; - public LoyaltyProgram id(Long id) { + public LoyaltyProgram id(Integer id) { this.id = id; return this; @@ -352,12 +352,12 @@ public LoyaltyProgram id(Long id) { **/ @ApiModelProperty(example = "139", required = true, value = "The ID of loyalty program.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -428,13 +428,13 @@ public void setDescription(String description) { } - public LoyaltyProgram subscribedApplications(List subscribedApplications) { + public LoyaltyProgram subscribedApplications(List subscribedApplications) { this.subscribedApplications = subscribedApplications; return this; } - public LoyaltyProgram addSubscribedApplicationsItem(Long subscribedApplicationsItem) { + public LoyaltyProgram addSubscribedApplicationsItem(Integer subscribedApplicationsItem) { this.subscribedApplications.add(subscribedApplicationsItem); return this; } @@ -445,12 +445,12 @@ public LoyaltyProgram addSubscribedApplicationsItem(Long subscribedApplicationsI **/ @ApiModelProperty(example = "[132, 97]", required = true, value = "A list containing the IDs of all applications that are subscribed to this Loyalty Program.") - public List getSubscribedApplications() { + public List getSubscribedApplications() { return subscribedApplications; } - public void setSubscribedApplications(List subscribedApplications) { + public void setSubscribedApplications(List subscribedApplications) { this.subscribedApplications = subscribedApplications; } @@ -521,7 +521,7 @@ public void setAllowSubledger(Boolean allowSubledger) { } - public LoyaltyProgram usersPerCardLimit(Long usersPerCardLimit) { + public LoyaltyProgram usersPerCardLimit(Integer usersPerCardLimit) { this.usersPerCardLimit = usersPerCardLimit; return this; @@ -535,12 +535,12 @@ public LoyaltyProgram usersPerCardLimit(Long usersPerCardLimit) { @javax.annotation.Nullable @ApiModelProperty(example = "111", value = "The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. ") - public Long getUsersPerCardLimit() { + public Integer getUsersPerCardLimit() { return usersPerCardLimit; } - public void setUsersPerCardLimit(Long usersPerCardLimit) { + public void setUsersPerCardLimit(Integer usersPerCardLimit) { this.usersPerCardLimit = usersPerCardLimit; } @@ -728,7 +728,7 @@ public void setReturnPolicy(ReturnPolicyEnum returnPolicy) { } - public LoyaltyProgram accountID(Long accountID) { + public LoyaltyProgram accountID(Integer accountID) { this.accountID = accountID; return this; @@ -740,12 +740,12 @@ public LoyaltyProgram accountID(Long accountID) { **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the Talon.One account that owns this program.") - public Long getAccountID() { + public Integer getAccountID() { return accountID; } - public void setAccountID(Long accountID) { + public void setAccountID(Integer accountID) { this.accountID = accountID; } diff --git a/src/main/java/one/talon/model/LoyaltyProgramBalance.java b/src/main/java/one/talon/model/LoyaltyProgramBalance.java index 1a57552d..42231a09 100644 --- a/src/main/java/one/talon/model/LoyaltyProgramBalance.java +++ b/src/main/java/one/talon/model/LoyaltyProgramBalance.java @@ -118,7 +118,8 @@ public LoyaltyProgramBalance negativeBalance(BigDecimal negativeBalance) { * Sum of negative points. This implies that `currentBalance` is `0`. * @return negativeBalance **/ - @ApiModelProperty(example = "10.0", required = true, value = "Sum of negative points. This implies that `currentBalance` is `0`.") + @javax.annotation.Nullable + @ApiModelProperty(example = "10.0", value = "Sum of negative points. This implies that `currentBalance` is `0`.") public BigDecimal getNegativeBalance() { return negativeBalance; @@ -229,7 +230,8 @@ public LoyaltyProgramBalance tentativeNegativeBalance(BigDecimal tentativeNegati * The tentative negative balance after all additions and deductions from the current customer session are applied to `negativeBalance`. When the session is closed, the tentative effects are applied and `negativeBalance` is updated to this value. **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. * @return tentativeNegativeBalance **/ - @ApiModelProperty(example = "100.0", required = true, value = "The tentative negative balance after all additions and deductions from the current customer session are applied to `negativeBalance`. When the session is closed, the tentative effects are applied and `negativeBalance` is updated to this value. **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. ") + @javax.annotation.Nullable + @ApiModelProperty(example = "100.0", value = "The tentative negative balance after all additions and deductions from the current customer session are applied to `negativeBalance`. When the session is closed, the tentative effects are applied and `negativeBalance` is updated to this value. **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. ") public BigDecimal getTentativeNegativeBalance() { return tentativeNegativeBalance; diff --git a/src/main/java/one/talon/model/LoyaltyProgramEntity.java b/src/main/java/one/talon/model/LoyaltyProgramEntity.java index 751079b4..84dfd908 100644 --- a/src/main/java/one/talon/model/LoyaltyProgramEntity.java +++ b/src/main/java/one/talon/model/LoyaltyProgramEntity.java @@ -31,7 +31,7 @@ public class LoyaltyProgramEntity { public static final String SERIALIZED_NAME_PROGRAM_I_D = "programID"; @SerializedName(SERIALIZED_NAME_PROGRAM_I_D) - private Long programID; + private Integer programID; public static final String SERIALIZED_NAME_PROGRAM_NAME = "programName"; @SerializedName(SERIALIZED_NAME_PROGRAM_NAME) @@ -42,7 +42,7 @@ public class LoyaltyProgramEntity { private String programTitle; - public LoyaltyProgramEntity programID(Long programID) { + public LoyaltyProgramEntity programID(Integer programID) { this.programID = programID; return this; @@ -54,12 +54,12 @@ public LoyaltyProgramEntity programID(Long programID) { **/ @ApiModelProperty(example = "125", required = true, value = "The ID of the loyalty program that owns this entity.") - public Long getProgramID() { + public Integer getProgramID() { return programID; } - public void setProgramID(Long programID) { + public void setProgramID(Integer programID) { this.programID = programID; } diff --git a/src/main/java/one/talon/model/LoyaltyProgramLedgers.java b/src/main/java/one/talon/model/LoyaltyProgramLedgers.java index 9804db59..484ebdf0 100644 --- a/src/main/java/one/talon/model/LoyaltyProgramLedgers.java +++ b/src/main/java/one/talon/model/LoyaltyProgramLedgers.java @@ -37,7 +37,7 @@ public class LoyaltyProgramLedgers { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) @@ -60,7 +60,7 @@ public class LoyaltyProgramLedgers { private Map subLedgers = null; - public LoyaltyProgramLedgers id(Long id) { + public LoyaltyProgramLedgers id(Integer id) { this.id = id; return this; @@ -72,12 +72,12 @@ public LoyaltyProgramLedgers id(Long id) { **/ @ApiModelProperty(example = "5", required = true, value = "The internal ID of loyalty program.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/src/main/java/one/talon/model/LoyaltyProgramTransaction.java b/src/main/java/one/talon/model/LoyaltyProgramTransaction.java index bdff74aa..f67d3932 100644 --- a/src/main/java/one/talon/model/LoyaltyProgramTransaction.java +++ b/src/main/java/one/talon/model/LoyaltyProgramTransaction.java @@ -34,15 +34,15 @@ public class LoyaltyProgramTransaction { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; @SerializedName(SERIALIZED_NAME_PROGRAM_ID) - private Long programId; + private Integer programId; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -133,11 +133,11 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_IMPORT_ID = "importId"; @SerializedName(SERIALIZED_NAME_IMPORT_ID) - private Long importId; + private Integer importId; public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Long userId; + private Integer userId; public static final String SERIALIZED_NAME_USER_EMAIL = "userEmail"; @SerializedName(SERIALIZED_NAME_USER_EMAIL) @@ -145,7 +145,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_RULESET_ID = "rulesetId"; @SerializedName(SERIALIZED_NAME_RULESET_ID) - private Long rulesetId; + private Integer rulesetId; public static final String SERIALIZED_NAME_RULE_NAME = "ruleName"; @SerializedName(SERIALIZED_NAME_RULE_NAME) @@ -156,7 +156,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { private LoyaltyLedgerEntryFlags flags; - public LoyaltyProgramTransaction id(Long id) { + public LoyaltyProgramTransaction id(Integer id) { this.id = id; return this; @@ -168,17 +168,17 @@ public LoyaltyProgramTransaction id(Long id) { **/ @ApiModelProperty(example = "123", required = true, value = "ID of the loyalty ledger transaction.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } - public LoyaltyProgramTransaction programId(Long programId) { + public LoyaltyProgramTransaction programId(Integer programId) { this.programId = programId; return this; @@ -190,17 +190,17 @@ public LoyaltyProgramTransaction programId(Long programId) { **/ @ApiModelProperty(example = "324", required = true, value = "ID of the loyalty program.") - public Long getProgramId() { + public Integer getProgramId() { return programId; } - public void setProgramId(Long programId) { + public void setProgramId(Integer programId) { this.programId = programId; } - public LoyaltyProgramTransaction campaignId(Long campaignId) { + public LoyaltyProgramTransaction campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -213,12 +213,12 @@ public LoyaltyProgramTransaction campaignId(Long campaignId) { @javax.annotation.Nullable @ApiModelProperty(example = "324", value = "ID of the campaign.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } @@ -446,7 +446,7 @@ public void setCustomerSessionId(String customerSessionId) { } - public LoyaltyProgramTransaction importId(Long importId) { + public LoyaltyProgramTransaction importId(Integer importId) { this.importId = importId; return this; @@ -459,17 +459,17 @@ public LoyaltyProgramTransaction importId(Long importId) { @javax.annotation.Nullable @ApiModelProperty(example = "4", value = "ID of the import where the transaction occurred.") - public Long getImportId() { + public Integer getImportId() { return importId; } - public void setImportId(Long importId) { + public void setImportId(Integer importId) { this.importId = importId; } - public LoyaltyProgramTransaction userId(Long userId) { + public LoyaltyProgramTransaction userId(Integer userId) { this.userId = userId; return this; @@ -482,12 +482,12 @@ public LoyaltyProgramTransaction userId(Long userId) { @javax.annotation.Nullable @ApiModelProperty(example = "5", value = "ID of the user who manually added or deducted points. Applies only to manual transactions.") - public Long getUserId() { + public Integer getUserId() { return userId; } - public void setUserId(Long userId) { + public void setUserId(Integer userId) { this.userId = userId; } @@ -515,7 +515,7 @@ public void setUserEmail(String userEmail) { } - public LoyaltyProgramTransaction rulesetId(Long rulesetId) { + public LoyaltyProgramTransaction rulesetId(Integer rulesetId) { this.rulesetId = rulesetId; return this; @@ -528,12 +528,12 @@ public LoyaltyProgramTransaction rulesetId(Long rulesetId) { @javax.annotation.Nullable @ApiModelProperty(example = "11", value = "ID of the ruleset containing the rule that triggered the effect. Applies only for transactions that resulted from a customer session.") - public Long getRulesetId() { + public Integer getRulesetId() { return rulesetId; } - public void setRulesetId(Long rulesetId) { + public void setRulesetId(Integer rulesetId) { this.rulesetId = rulesetId; } diff --git a/src/main/java/one/talon/model/LoyaltyTier.java b/src/main/java/one/talon/model/LoyaltyTier.java index 6177f2b1..41523e77 100644 --- a/src/main/java/one/talon/model/LoyaltyTier.java +++ b/src/main/java/one/talon/model/LoyaltyTier.java @@ -34,7 +34,7 @@ public class LoyaltyTier { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -42,7 +42,7 @@ public class LoyaltyTier { public static final String SERIALIZED_NAME_PROGRAM_I_D = "programID"; @SerializedName(SERIALIZED_NAME_PROGRAM_I_D) - private Long programID; + private Integer programID; public static final String SERIALIZED_NAME_PROGRAM_NAME = "programName"; @SerializedName(SERIALIZED_NAME_PROGRAM_NAME) @@ -61,24 +61,24 @@ public class LoyaltyTier { private BigDecimal minPoints; - public LoyaltyTier id(Long id) { + public LoyaltyTier id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -105,7 +105,7 @@ public void setCreated(OffsetDateTime created) { } - public LoyaltyTier programID(Long programID) { + public LoyaltyTier programID(Integer programID) { this.programID = programID; return this; @@ -117,12 +117,12 @@ public LoyaltyTier programID(Long programID) { **/ @ApiModelProperty(example = "125", required = true, value = "The ID of the loyalty program that owns this entity.") - public Long getProgramID() { + public Integer getProgramID() { return programID; } - public void setProgramID(Long programID) { + public void setProgramID(Integer programID) { this.programID = programID; } diff --git a/src/main/java/one/talon/model/ManagementKey.java b/src/main/java/one/talon/model/ManagementKey.java index dd155703..201d99b2 100644 --- a/src/main/java/one/talon/model/ManagementKey.java +++ b/src/main/java/one/talon/model/ManagementKey.java @@ -47,19 +47,19 @@ public class ManagementKey { public static final String SERIALIZED_NAME_ALLOWED_APPLICATION_IDS = "allowedApplicationIds"; @SerializedName(SERIALIZED_NAME_ALLOWED_APPLICATION_IDS) - private List allowedApplicationIds = null; + private List allowedApplicationIds = null; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Long createdBy; + private Integer createdBy; public static final String SERIALIZED_NAME_ACCOUNT_I_D = "accountID"; @SerializedName(SERIALIZED_NAME_ACCOUNT_I_D) - private Long accountID; + private Integer accountID; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -141,15 +141,15 @@ public void setEndpoints(List endpoints) { } - public ManagementKey allowedApplicationIds(List allowedApplicationIds) { + public ManagementKey allowedApplicationIds(List allowedApplicationIds) { this.allowedApplicationIds = allowedApplicationIds; return this; } - public ManagementKey addAllowedApplicationIdsItem(Long allowedApplicationIdsItem) { + public ManagementKey addAllowedApplicationIdsItem(Integer allowedApplicationIdsItem) { if (this.allowedApplicationIds == null) { - this.allowedApplicationIds = new ArrayList(); + this.allowedApplicationIds = new ArrayList(); } this.allowedApplicationIds.add(allowedApplicationIdsItem); return this; @@ -162,17 +162,17 @@ public ManagementKey addAllowedApplicationIdsItem(Long allowedApplicationIdsItem @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of Application IDs that you can access with the management key. An empty or missing list means the management key can be used for all Applications in the account. ") - public List getAllowedApplicationIds() { + public List getAllowedApplicationIds() { return allowedApplicationIds; } - public void setAllowedApplicationIds(List allowedApplicationIds) { + public void setAllowedApplicationIds(List allowedApplicationIds) { this.allowedApplicationIds = allowedApplicationIds; } - public ManagementKey id(Long id) { + public ManagementKey id(Integer id) { this.id = id; return this; @@ -184,17 +184,17 @@ public ManagementKey id(Long id) { **/ @ApiModelProperty(example = "34", required = true, value = "ID of the management key.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } - public ManagementKey createdBy(Long createdBy) { + public ManagementKey createdBy(Integer createdBy) { this.createdBy = createdBy; return this; @@ -206,17 +206,17 @@ public ManagementKey createdBy(Long createdBy) { **/ @ApiModelProperty(example = "280", required = true, value = "ID of the user who created it.") - public Long getCreatedBy() { + public Integer getCreatedBy() { return createdBy; } - public void setCreatedBy(Long createdBy) { + public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } - public ManagementKey accountID(Long accountID) { + public ManagementKey accountID(Integer accountID) { this.accountID = accountID; return this; @@ -228,12 +228,12 @@ public ManagementKey accountID(Long accountID) { **/ @ApiModelProperty(example = "13", required = true, value = "ID of account the key is used for.") - public Long getAccountID() { + public Integer getAccountID() { return accountID; } - public void setAccountID(Long accountID) { + public void setAccountID(Integer accountID) { this.accountID = accountID; } diff --git a/src/main/java/one/talon/model/ManagerConfig.java b/src/main/java/one/talon/model/ManagerConfig.java index 08191ea8..3dcb3c07 100644 --- a/src/main/java/one/talon/model/ManagerConfig.java +++ b/src/main/java/one/talon/model/ManagerConfig.java @@ -31,10 +31,10 @@ public class ManagerConfig { public static final String SERIALIZED_NAME_SCHEMA_VERSION = "schemaVersion"; @SerializedName(SERIALIZED_NAME_SCHEMA_VERSION) - private Long schemaVersion; + private Integer schemaVersion; - public ManagerConfig schemaVersion(Long schemaVersion) { + public ManagerConfig schemaVersion(Integer schemaVersion) { this.schemaVersion = schemaVersion; return this; @@ -46,12 +46,12 @@ public ManagerConfig schemaVersion(Long schemaVersion) { **/ @ApiModelProperty(required = true, value = "") - public Long getSchemaVersion() { + public Integer getSchemaVersion() { return schemaVersion; } - public void setSchemaVersion(Long schemaVersion) { + public void setSchemaVersion(Integer schemaVersion) { this.schemaVersion = schemaVersion; } diff --git a/src/main/java/one/talon/model/MessageLogEntry.java b/src/main/java/one/talon/model/MessageLogEntry.java index 82a30d50..3aadc98b 100644 --- a/src/main/java/one/talon/model/MessageLogEntry.java +++ b/src/main/java/one/talon/model/MessageLogEntry.java @@ -47,7 +47,7 @@ public class MessageLogEntry { public static final String SERIALIZED_NAME_NOTIFICATION_ID = "notificationId"; @SerializedName(SERIALIZED_NAME_NOTIFICATION_ID) - private Long notificationId; + private Integer notificationId; public static final String SERIALIZED_NAME_NOTIFICATION_NAME = "notificationName"; @SerializedName(SERIALIZED_NAME_NOTIFICATION_NAME) @@ -55,7 +55,7 @@ public class MessageLogEntry { public static final String SERIALIZED_NAME_WEBHOOK_ID = "webhookId"; @SerializedName(SERIALIZED_NAME_WEBHOOK_ID) - private Long webhookId; + private Integer webhookId; public static final String SERIALIZED_NAME_WEBHOOK_NAME = "webhookName"; @SerializedName(SERIALIZED_NAME_WEBHOOK_NAME) @@ -132,15 +132,15 @@ public EntityTypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_LOYALTY_PROGRAM_ID = "loyaltyProgramId"; @SerializedName(SERIALIZED_NAME_LOYALTY_PROGRAM_ID) - private Long loyaltyProgramId; + private Integer loyaltyProgramId; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public MessageLogEntry id(String id) { @@ -210,7 +210,7 @@ public void setChangeType(String changeType) { } - public MessageLogEntry notificationId(Long notificationId) { + public MessageLogEntry notificationId(Integer notificationId) { this.notificationId = notificationId; return this; @@ -223,12 +223,12 @@ public MessageLogEntry notificationId(Long notificationId) { @javax.annotation.Nullable @ApiModelProperty(example = "101", value = "ID of the notification.") - public Long getNotificationId() { + public Integer getNotificationId() { return notificationId; } - public void setNotificationId(Long notificationId) { + public void setNotificationId(Integer notificationId) { this.notificationId = notificationId; } @@ -256,7 +256,7 @@ public void setNotificationName(String notificationName) { } - public MessageLogEntry webhookId(Long webhookId) { + public MessageLogEntry webhookId(Integer webhookId) { this.webhookId = webhookId; return this; @@ -269,12 +269,12 @@ public MessageLogEntry webhookId(Long webhookId) { @javax.annotation.Nullable @ApiModelProperty(example = "101", value = "ID of the webhook.") - public Long getWebhookId() { + public Integer getWebhookId() { return webhookId; } - public void setWebhookId(Long webhookId) { + public void setWebhookId(Integer webhookId) { this.webhookId = webhookId; } @@ -415,7 +415,7 @@ public void setUrl(String url) { } - public MessageLogEntry applicationId(Long applicationId) { + public MessageLogEntry applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -429,17 +429,17 @@ public MessageLogEntry applicationId(Long applicationId) { @javax.annotation.Nullable @ApiModelProperty(example = "5", value = "Identifier of the Application.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } - public MessageLogEntry loyaltyProgramId(Long loyaltyProgramId) { + public MessageLogEntry loyaltyProgramId(Integer loyaltyProgramId) { this.loyaltyProgramId = loyaltyProgramId; return this; @@ -453,17 +453,17 @@ public MessageLogEntry loyaltyProgramId(Long loyaltyProgramId) { @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "Identifier of the loyalty program.") - public Long getLoyaltyProgramId() { + public Integer getLoyaltyProgramId() { return loyaltyProgramId; } - public void setLoyaltyProgramId(Long loyaltyProgramId) { + public void setLoyaltyProgramId(Integer loyaltyProgramId) { this.loyaltyProgramId = loyaltyProgramId; } - public MessageLogEntry campaignId(Long campaignId) { + public MessageLogEntry campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -477,12 +477,12 @@ public MessageLogEntry campaignId(Long campaignId) { @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "Identifier of the campaign.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } diff --git a/src/main/java/one/talon/model/MessageLogResponse.java b/src/main/java/one/talon/model/MessageLogResponse.java index 1620d30b..8bd50aaf 100644 --- a/src/main/java/one/talon/model/MessageLogResponse.java +++ b/src/main/java/one/talon/model/MessageLogResponse.java @@ -41,7 +41,7 @@ public class MessageLogResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - private Long status; + private Integer status; public MessageLogResponse createdAt(OffsetDateTime createdAt) { @@ -90,7 +90,7 @@ public void setResponse(byte[] response) { } - public MessageLogResponse status(Long status) { + public MessageLogResponse status(Integer status) { this.status = status; return this; @@ -103,12 +103,12 @@ public MessageLogResponse status(Long status) { @javax.annotation.Nullable @ApiModelProperty(example = "200", value = "HTTP status code of the response.") - public Long getStatus() { + public Integer getStatus() { return status; } - public void setStatus(Long status) { + public void setStatus(Integer status) { this.status = status; } diff --git a/src/main/java/one/talon/model/MessageTest.java b/src/main/java/one/talon/model/MessageTest.java index 6d7b0334..35b2a1f7 100644 --- a/src/main/java/one/talon/model/MessageTest.java +++ b/src/main/java/one/talon/model/MessageTest.java @@ -35,7 +35,7 @@ public class MessageTest { public static final String SERIALIZED_NAME_HTTP_STATUS = "httpStatus"; @SerializedName(SERIALIZED_NAME_HTTP_STATUS) - private Long httpStatus; + private Integer httpStatus; public MessageTest httpResponse(String httpResponse) { @@ -60,7 +60,7 @@ public void setHttpResponse(String httpResponse) { } - public MessageTest httpStatus(Long httpStatus) { + public MessageTest httpStatus(Integer httpStatus) { this.httpStatus = httpStatus; return this; @@ -72,12 +72,12 @@ public MessageTest httpStatus(Long httpStatus) { **/ @ApiModelProperty(example = "200", required = true, value = "The returned http status code.") - public Long getHttpStatus() { + public Integer getHttpStatus() { return httpStatus; } - public void setHttpStatus(Long httpStatus) { + public void setHttpStatus(Integer httpStatus) { this.httpStatus = httpStatus; } diff --git a/src/main/java/one/talon/model/ModelImport.java b/src/main/java/one/talon/model/ModelImport.java index 883dd7d6..61fe5008 100644 --- a/src/main/java/one/talon/model/ModelImport.java +++ b/src/main/java/one/talon/model/ModelImport.java @@ -32,7 +32,7 @@ public class ModelImport { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -40,11 +40,11 @@ public class ModelImport { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Long userId; + private Integer userId; public static final String SERIALIZED_NAME_ENTITY = "entity"; @SerializedName(SERIALIZED_NAME_ENTITY) @@ -52,27 +52,27 @@ public class ModelImport { public static final String SERIALIZED_NAME_AMOUNT = "amount"; @SerializedName(SERIALIZED_NAME_AMOUNT) - private Long amount; + private Integer amount; - public ModelImport id(Long id) { + public ModelImport id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -99,7 +99,7 @@ public void setCreated(OffsetDateTime created) { } - public ModelImport accountId(Long accountId) { + public ModelImport accountId(Integer accountId) { this.accountId = accountId; return this; @@ -111,17 +111,17 @@ public ModelImport accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } - public ModelImport userId(Long userId) { + public ModelImport userId(Integer userId) { this.userId = userId; return this; @@ -133,12 +133,12 @@ public ModelImport userId(Long userId) { **/ @ApiModelProperty(example = "388", required = true, value = "The ID of the user associated with this entity.") - public Long getUserId() { + public Integer getUserId() { return userId; } - public void setUserId(Long userId) { + public void setUserId(Integer userId) { this.userId = userId; } @@ -165,7 +165,7 @@ public void setEntity(String entity) { } - public ModelImport amount(Long amount) { + public ModelImport amount(Integer amount) { this.amount = amount; return this; @@ -178,12 +178,12 @@ public ModelImport amount(Long amount) { **/ @ApiModelProperty(example = "10", required = true, value = "The number of values that were imported.") - public Long getAmount() { + public Integer getAmount() { return amount; } - public void setAmount(Long amount) { + public void setAmount(Integer amount) { this.amount = amount; } diff --git a/src/main/java/one/talon/model/ModelReturn.java b/src/main/java/one/talon/model/ModelReturn.java index 199bf928..154c81e6 100644 --- a/src/main/java/one/talon/model/ModelReturn.java +++ b/src/main/java/one/talon/model/ModelReturn.java @@ -35,7 +35,7 @@ public class ModelReturn { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -43,11 +43,11 @@ public class ModelReturn { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_RETURNED_CART_ITEMS = "returnedCartItems"; @SerializedName(SERIALIZED_NAME_RETURNED_CART_ITEMS) @@ -55,11 +55,11 @@ public class ModelReturn { public static final String SERIALIZED_NAME_EVENT_ID = "eventId"; @SerializedName(SERIALIZED_NAME_EVENT_ID) - private Long eventId; + private Integer eventId; public static final String SERIALIZED_NAME_SESSION_ID = "sessionId"; @SerializedName(SERIALIZED_NAME_SESSION_ID) - private Long sessionId; + private Integer sessionId; public static final String SERIALIZED_NAME_SESSION_INTEGRATION_ID = "sessionIntegrationId"; @SerializedName(SERIALIZED_NAME_SESSION_INTEGRATION_ID) @@ -67,7 +67,7 @@ public class ModelReturn { public static final String SERIALIZED_NAME_PROFILE_ID = "profileId"; @SerializedName(SERIALIZED_NAME_PROFILE_ID) - private Long profileId; + private Integer profileId; public static final String SERIALIZED_NAME_PROFILE_INTEGRATION_ID = "profileIntegrationId"; @SerializedName(SERIALIZED_NAME_PROFILE_INTEGRATION_ID) @@ -75,27 +75,27 @@ public class ModelReturn { public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Long createdBy; + private Integer createdBy; - public ModelReturn id(Long id) { + public ModelReturn id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -122,7 +122,7 @@ public void setCreated(OffsetDateTime created) { } - public ModelReturn applicationId(Long applicationId) { + public ModelReturn applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -134,17 +134,17 @@ public ModelReturn applicationId(Long applicationId) { **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } - public ModelReturn accountId(Long accountId) { + public ModelReturn accountId(Integer accountId) { this.accountId = accountId; return this; @@ -156,12 +156,12 @@ public ModelReturn accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } @@ -193,7 +193,7 @@ public void setReturnedCartItems(List returnedCartItems) { } - public ModelReturn eventId(Long eventId) { + public ModelReturn eventId(Integer eventId) { this.eventId = eventId; return this; @@ -205,17 +205,17 @@ public ModelReturn eventId(Long eventId) { **/ @ApiModelProperty(example = "123", required = true, value = "The event ID of that was generated for this return.") - public Long getEventId() { + public Integer getEventId() { return eventId; } - public void setEventId(Long eventId) { + public void setEventId(Integer eventId) { this.eventId = eventId; } - public ModelReturn sessionId(Long sessionId) { + public ModelReturn sessionId(Integer sessionId) { this.sessionId = sessionId; return this; @@ -227,12 +227,12 @@ public ModelReturn sessionId(Long sessionId) { **/ @ApiModelProperty(example = "123", required = true, value = "The internal ID of the session this return was requested on.") - public Long getSessionId() { + public Integer getSessionId() { return sessionId; } - public void setSessionId(Long sessionId) { + public void setSessionId(Integer sessionId) { this.sessionId = sessionId; } @@ -259,7 +259,7 @@ public void setSessionIntegrationId(String sessionIntegrationId) { } - public ModelReturn profileId(Long profileId) { + public ModelReturn profileId(Integer profileId) { this.profileId = profileId; return this; @@ -272,12 +272,12 @@ public ModelReturn profileId(Long profileId) { @javax.annotation.Nullable @ApiModelProperty(example = "123", value = "The internal ID of the profile this return was requested on.") - public Long getProfileId() { + public Integer getProfileId() { return profileId; } - public void setProfileId(Long profileId) { + public void setProfileId(Integer profileId) { this.profileId = profileId; } @@ -305,7 +305,7 @@ public void setProfileIntegrationId(String profileIntegrationId) { } - public ModelReturn createdBy(Long createdBy) { + public ModelReturn createdBy(Integer createdBy) { this.createdBy = createdBy; return this; @@ -318,12 +318,12 @@ public ModelReturn createdBy(Long createdBy) { @javax.annotation.Nullable @ApiModelProperty(example = "123", value = "ID of the user who requested this return.") - public Long getCreatedBy() { + public Integer getCreatedBy() { return createdBy; } - public void setCreatedBy(Long createdBy) { + public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } diff --git a/src/main/java/one/talon/model/MultiApplicationEntity.java b/src/main/java/one/talon/model/MultiApplicationEntity.java index d20a4323..3a04e0ae 100644 --- a/src/main/java/one/talon/model/MultiApplicationEntity.java +++ b/src/main/java/one/talon/model/MultiApplicationEntity.java @@ -33,16 +33,16 @@ public class MultiApplicationEntity { public static final String SERIALIZED_NAME_APPLICATION_IDS = "applicationIds"; @SerializedName(SERIALIZED_NAME_APPLICATION_IDS) - private List applicationIds = new ArrayList(); + private List applicationIds = new ArrayList(); - public MultiApplicationEntity applicationIds(List applicationIds) { + public MultiApplicationEntity applicationIds(List applicationIds) { this.applicationIds = applicationIds; return this; } - public MultiApplicationEntity addApplicationIdsItem(Long applicationIdsItem) { + public MultiApplicationEntity addApplicationIdsItem(Integer applicationIdsItem) { this.applicationIds.add(applicationIdsItem); return this; } @@ -53,12 +53,12 @@ public MultiApplicationEntity addApplicationIdsItem(Long applicationIdsItem) { **/ @ApiModelProperty(required = true, value = "The IDs of the Applications that are related to this entity.") - public List getApplicationIds() { + public List getApplicationIds() { return applicationIds; } - public void setApplicationIds(List applicationIds) { + public void setApplicationIds(List applicationIds) { this.applicationIds = applicationIds; } diff --git a/src/main/java/one/talon/model/MultipleAudiences.java b/src/main/java/one/talon/model/MultipleAudiences.java index b5a94e36..92bbd338 100644 --- a/src/main/java/one/talon/model/MultipleAudiences.java +++ b/src/main/java/one/talon/model/MultipleAudiences.java @@ -34,14 +34,14 @@ public class MultipleAudiences { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) private List audiences = new ArrayList(); - public MultipleAudiences accountId(Long accountId) { + public MultipleAudiences accountId(Integer accountId) { this.accountId = accountId; return this; @@ -53,12 +53,12 @@ public MultipleAudiences accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } diff --git a/src/main/java/one/talon/model/MultipleAudiencesItem.java b/src/main/java/one/talon/model/MultipleAudiencesItem.java index 58aa273b..b2d4670d 100644 --- a/src/main/java/one/talon/model/MultipleAudiencesItem.java +++ b/src/main/java/one/talon/model/MultipleAudiencesItem.java @@ -32,7 +32,7 @@ public class MultipleAudiencesItem { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -100,24 +100,24 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { private StatusEnum status; - public MultipleAudiencesItem id(Long id) { + public MultipleAudiencesItem id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/src/main/java/one/talon/model/NewAdditionalCost.java b/src/main/java/one/talon/model/NewAdditionalCost.java index a02fff35..acd19ba7 100644 --- a/src/main/java/one/talon/model/NewAdditionalCost.java +++ b/src/main/java/one/talon/model/NewAdditionalCost.java @@ -45,7 +45,7 @@ public class NewAdditionalCost { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; /** * The type of additional cost. Possible value: - `session`: Additional cost will be added per session. - `item`: Additional cost will be added per item. - `both`: Additional cost will be added per item and session. @@ -167,15 +167,15 @@ public void setDescription(String description) { } - public NewAdditionalCost subscribedApplicationsIds(List subscribedApplicationsIds) { + public NewAdditionalCost subscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public NewAdditionalCost addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { + public NewAdditionalCost addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; @@ -188,12 +188,12 @@ public NewAdditionalCost addSubscribedApplicationsIdsItem(Long subscribedApplica @javax.annotation.Nullable @ApiModelProperty(example = "[3, 13]", value = "A list of the IDs of the applications that are subscribed to this additional cost.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } diff --git a/src/main/java/one/talon/model/NewAppWideCouponDeletionJob.java b/src/main/java/one/talon/model/NewAppWideCouponDeletionJob.java index 9a1a1e71..a5407a1d 100644 --- a/src/main/java/one/talon/model/NewAppWideCouponDeletionJob.java +++ b/src/main/java/one/talon/model/NewAppWideCouponDeletionJob.java @@ -38,7 +38,7 @@ public class NewAppWideCouponDeletionJob { public static final String SERIALIZED_NAME_CAMPAIGNIDS = "campaignids"; @SerializedName(SERIALIZED_NAME_CAMPAIGNIDS) - private List campaignids = new ArrayList(); + private List campaignids = new ArrayList(); public NewAppWideCouponDeletionJob filters(CouponDeletionFilters filters) { @@ -63,13 +63,13 @@ public void setFilters(CouponDeletionFilters filters) { } - public NewAppWideCouponDeletionJob campaignids(List campaignids) { + public NewAppWideCouponDeletionJob campaignids(List campaignids) { this.campaignids = campaignids; return this; } - public NewAppWideCouponDeletionJob addCampaignidsItem(Long campaignidsItem) { + public NewAppWideCouponDeletionJob addCampaignidsItem(Integer campaignidsItem) { this.campaignids.add(campaignidsItem); return this; } @@ -80,12 +80,12 @@ public NewAppWideCouponDeletionJob addCampaignidsItem(Long campaignidsItem) { **/ @ApiModelProperty(required = true, value = "") - public List getCampaignids() { + public List getCampaignids() { return campaignids; } - public void setCampaignids(List campaignids) { + public void setCampaignids(List campaignids) { this.campaignids = campaignids; } diff --git a/src/main/java/one/talon/model/NewApplicationAPIKey.java b/src/main/java/one/talon/model/NewApplicationAPIKey.java index 890773c0..478dd59a 100644 --- a/src/main/java/one/talon/model/NewApplicationAPIKey.java +++ b/src/main/java/one/talon/model/NewApplicationAPIKey.java @@ -156,23 +156,23 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_TIME_OFFSET = "timeOffset"; @SerializedName(SERIALIZED_NAME_TIME_OFFSET) - private Long timeOffset; + private Integer timeOffset; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Long createdBy; + private Integer createdBy; public static final String SERIALIZED_NAME_ACCOUNT_I_D = "accountID"; @SerializedName(SERIALIZED_NAME_ACCOUNT_I_D) - private Long accountID; + private Integer accountID; public static final String SERIALIZED_NAME_APPLICATION_I_D = "applicationID"; @SerializedName(SERIALIZED_NAME_APPLICATION_I_D) - private Long applicationID; + private Integer applicationID; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -273,7 +273,7 @@ public void setType(TypeEnum type) { } - public NewApplicationAPIKey timeOffset(Long timeOffset) { + public NewApplicationAPIKey timeOffset(Integer timeOffset) { this.timeOffset = timeOffset; return this; @@ -286,17 +286,17 @@ public NewApplicationAPIKey timeOffset(Long timeOffset) { @javax.annotation.Nullable @ApiModelProperty(example = "100000", value = "A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. ") - public Long getTimeOffset() { + public Integer getTimeOffset() { return timeOffset; } - public void setTimeOffset(Long timeOffset) { + public void setTimeOffset(Integer timeOffset) { this.timeOffset = timeOffset; } - public NewApplicationAPIKey id(Long id) { + public NewApplicationAPIKey id(Integer id) { this.id = id; return this; @@ -308,17 +308,17 @@ public NewApplicationAPIKey id(Long id) { **/ @ApiModelProperty(example = "34", required = true, value = "ID of the API Key.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } - public NewApplicationAPIKey createdBy(Long createdBy) { + public NewApplicationAPIKey createdBy(Integer createdBy) { this.createdBy = createdBy; return this; @@ -330,17 +330,17 @@ public NewApplicationAPIKey createdBy(Long createdBy) { **/ @ApiModelProperty(example = "280", required = true, value = "ID of user who created.") - public Long getCreatedBy() { + public Integer getCreatedBy() { return createdBy; } - public void setCreatedBy(Long createdBy) { + public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } - public NewApplicationAPIKey accountID(Long accountID) { + public NewApplicationAPIKey accountID(Integer accountID) { this.accountID = accountID; return this; @@ -352,17 +352,17 @@ public NewApplicationAPIKey accountID(Long accountID) { **/ @ApiModelProperty(example = "13", required = true, value = "ID of account the key is used for.") - public Long getAccountID() { + public Integer getAccountID() { return accountID; } - public void setAccountID(Long accountID) { + public void setAccountID(Integer accountID) { this.accountID = accountID; } - public NewApplicationAPIKey applicationID(Long applicationID) { + public NewApplicationAPIKey applicationID(Integer applicationID) { this.applicationID = applicationID; return this; @@ -374,12 +374,12 @@ public NewApplicationAPIKey applicationID(Long applicationID) { **/ @ApiModelProperty(example = "54", required = true, value = "ID of application the key is used for.") - public Long getApplicationID() { + public Integer getApplicationID() { return applicationID; } - public void setApplicationID(Long applicationID) { + public void setApplicationID(Integer applicationID) { this.applicationID = applicationID; } diff --git a/src/main/java/one/talon/model/NewApplicationCIF.java b/src/main/java/one/talon/model/NewApplicationCIF.java index 947edd6d..47e9839a 100644 --- a/src/main/java/one/talon/model/NewApplicationCIF.java +++ b/src/main/java/one/talon/model/NewApplicationCIF.java @@ -40,15 +40,15 @@ public class NewApplicationCIF { public static final String SERIALIZED_NAME_ACTIVE_EXPRESSION_ID = "activeExpressionId"; @SerializedName(SERIALIZED_NAME_ACTIVE_EXPRESSION_ID) - private Long activeExpressionId; + private Integer activeExpressionId; public static final String SERIALIZED_NAME_MODIFIED_BY = "modifiedBy"; @SerializedName(SERIALIZED_NAME_MODIFIED_BY) - private Long modifiedBy; + private Integer modifiedBy; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Long createdBy; + private Integer createdBy; public static final String SERIALIZED_NAME_MODIFIED = "modified"; @SerializedName(SERIALIZED_NAME_MODIFIED) @@ -100,7 +100,7 @@ public void setDescription(String description) { } - public NewApplicationCIF activeExpressionId(Long activeExpressionId) { + public NewApplicationCIF activeExpressionId(Integer activeExpressionId) { this.activeExpressionId = activeExpressionId; return this; @@ -113,17 +113,17 @@ public NewApplicationCIF activeExpressionId(Long activeExpressionId) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the expression that the Application cart item filter uses.") - public Long getActiveExpressionId() { + public Integer getActiveExpressionId() { return activeExpressionId; } - public void setActiveExpressionId(Long activeExpressionId) { + public void setActiveExpressionId(Integer activeExpressionId) { this.activeExpressionId = activeExpressionId; } - public NewApplicationCIF modifiedBy(Long modifiedBy) { + public NewApplicationCIF modifiedBy(Integer modifiedBy) { this.modifiedBy = modifiedBy; return this; @@ -136,17 +136,17 @@ public NewApplicationCIF modifiedBy(Long modifiedBy) { @javax.annotation.Nullable @ApiModelProperty(example = "334", value = "The ID of the user who last updated the Application cart item filter.") - public Long getModifiedBy() { + public Integer getModifiedBy() { return modifiedBy; } - public void setModifiedBy(Long modifiedBy) { + public void setModifiedBy(Integer modifiedBy) { this.modifiedBy = modifiedBy; } - public NewApplicationCIF createdBy(Long createdBy) { + public NewApplicationCIF createdBy(Integer createdBy) { this.createdBy = createdBy; return this; @@ -159,12 +159,12 @@ public NewApplicationCIF createdBy(Long createdBy) { @javax.annotation.Nullable @ApiModelProperty(example = "216", value = "The ID of the user who created the Application cart item filter.") - public Long getCreatedBy() { + public Integer getCreatedBy() { return createdBy; } - public void setCreatedBy(Long createdBy) { + public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } diff --git a/src/main/java/one/talon/model/NewApplicationCIFExpression.java b/src/main/java/one/talon/model/NewApplicationCIFExpression.java index 441e2010..2cd31bcf 100644 --- a/src/main/java/one/talon/model/NewApplicationCIFExpression.java +++ b/src/main/java/one/talon/model/NewApplicationCIFExpression.java @@ -33,18 +33,18 @@ public class NewApplicationCIFExpression { public static final String SERIALIZED_NAME_CART_ITEM_FILTER_ID = "cartItemFilterId"; @SerializedName(SERIALIZED_NAME_CART_ITEM_FILTER_ID) - private Long cartItemFilterId; + private Integer cartItemFilterId; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Long createdBy; + private Integer createdBy; public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) private List expression = null; - public NewApplicationCIFExpression cartItemFilterId(Long cartItemFilterId) { + public NewApplicationCIFExpression cartItemFilterId(Integer cartItemFilterId) { this.cartItemFilterId = cartItemFilterId; return this; @@ -57,17 +57,17 @@ public NewApplicationCIFExpression cartItemFilterId(Long cartItemFilterId) { @javax.annotation.Nullable @ApiModelProperty(example = "216", value = "The ID of the Application cart item filter.") - public Long getCartItemFilterId() { + public Integer getCartItemFilterId() { return cartItemFilterId; } - public void setCartItemFilterId(Long cartItemFilterId) { + public void setCartItemFilterId(Integer cartItemFilterId) { this.cartItemFilterId = cartItemFilterId; } - public NewApplicationCIFExpression createdBy(Long createdBy) { + public NewApplicationCIFExpression createdBy(Integer createdBy) { this.createdBy = createdBy; return this; @@ -80,12 +80,12 @@ public NewApplicationCIFExpression createdBy(Long createdBy) { @javax.annotation.Nullable @ApiModelProperty(example = "216", value = "The ID of the user who created the Application cart item filter.") - public Long getCreatedBy() { + public Integer getCreatedBy() { return createdBy; } - public void setCreatedBy(Long createdBy) { + public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } diff --git a/src/main/java/one/talon/model/NewAttribute.java b/src/main/java/one/talon/model/NewAttribute.java index af4c366b..22ce8d71 100644 --- a/src/main/java/one/talon/model/NewAttribute.java +++ b/src/main/java/one/talon/model/NewAttribute.java @@ -197,11 +197,11 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public static final String SERIALIZED_NAME_SUBSCRIBED_CATALOGS_IDS = "subscribedCatalogsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_CATALOGS_IDS) - private List subscribedCatalogsIds = null; + private List subscribedCatalogsIds = null; /** * Gets or Sets allowedSubscriptions @@ -483,15 +483,15 @@ public void setEditable(Boolean editable) { } - public NewAttribute subscribedApplicationsIds(List subscribedApplicationsIds) { + public NewAttribute subscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public NewAttribute addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { + public NewAttribute addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; @@ -504,25 +504,25 @@ public NewAttribute addSubscribedApplicationsIdsItem(Long subscribedApplications @javax.annotation.Nullable @ApiModelProperty(example = "[1, 4, 9]", value = "A list of the IDs of the applications where this attribute is available.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } - public NewAttribute subscribedCatalogsIds(List subscribedCatalogsIds) { + public NewAttribute subscribedCatalogsIds(List subscribedCatalogsIds) { this.subscribedCatalogsIds = subscribedCatalogsIds; return this; } - public NewAttribute addSubscribedCatalogsIdsItem(Long subscribedCatalogsIdsItem) { + public NewAttribute addSubscribedCatalogsIdsItem(Integer subscribedCatalogsIdsItem) { if (this.subscribedCatalogsIds == null) { - this.subscribedCatalogsIds = new ArrayList(); + this.subscribedCatalogsIds = new ArrayList(); } this.subscribedCatalogsIds.add(subscribedCatalogsIdsItem); return this; @@ -535,12 +535,12 @@ public NewAttribute addSubscribedCatalogsIdsItem(Long subscribedCatalogsIdsItem) @javax.annotation.Nullable @ApiModelProperty(example = "[2, 5]", value = "A list of the IDs of the catalogs where this attribute is available.") - public List getSubscribedCatalogsIds() { + public List getSubscribedCatalogsIds() { return subscribedCatalogsIds; } - public void setSubscribedCatalogsIds(List subscribedCatalogsIds) { + public void setSubscribedCatalogsIds(List subscribedCatalogsIds) { this.subscribedCatalogsIds = subscribedCatalogsIds; } diff --git a/src/main/java/one/talon/model/NewCampaign.java b/src/main/java/one/talon/model/NewCampaign.java index 33a0ec52..c2ff9038 100644 --- a/src/main/java/one/talon/model/NewCampaign.java +++ b/src/main/java/one/talon/model/NewCampaign.java @@ -109,7 +109,7 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ACTIVE_RULESET_ID = "activeRulesetId"; @SerializedName(SERIALIZED_NAME_ACTIVE_RULESET_ID) - private Long activeRulesetId; + private Integer activeRulesetId; public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @@ -188,7 +188,7 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CAMPAIGN_GROUPS = "campaignGroups"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_GROUPS) - private List campaignGroups = null; + private List campaignGroups = null; /** * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. @@ -243,11 +243,11 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_LINKED_STORE_IDS = "linkedStoreIds"; @SerializedName(SERIALIZED_NAME_LINKED_STORE_IDS) - private List linkedStoreIds = null; + private List linkedStoreIds = null; public static final String SERIALIZED_NAME_EVALUATION_GROUP_ID = "evaluationGroupId"; @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_ID) - private Long evaluationGroupId; + private Integer evaluationGroupId; public NewCampaign name(String name) { @@ -386,7 +386,7 @@ public void setState(StateEnum state) { } - public NewCampaign activeRulesetId(Long activeRulesetId) { + public NewCampaign activeRulesetId(Integer activeRulesetId) { this.activeRulesetId = activeRulesetId; return this; @@ -399,12 +399,12 @@ public NewCampaign activeRulesetId(Long activeRulesetId) { @javax.annotation.Nullable @ApiModelProperty(example = "6", value = "[ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. ") - public Long getActiveRulesetId() { + public Integer getActiveRulesetId() { return activeRulesetId; } - public void setActiveRulesetId(Long activeRulesetId) { + public void setActiveRulesetId(Integer activeRulesetId) { this.activeRulesetId = activeRulesetId; } @@ -536,15 +536,15 @@ public void setLimits(List limits) { } - public NewCampaign campaignGroups(List campaignGroups) { + public NewCampaign campaignGroups(List campaignGroups) { this.campaignGroups = campaignGroups; return this; } - public NewCampaign addCampaignGroupsItem(Long campaignGroupsItem) { + public NewCampaign addCampaignGroupsItem(Integer campaignGroupsItem) { if (this.campaignGroups == null) { - this.campaignGroups = new ArrayList(); + this.campaignGroups = new ArrayList(); } this.campaignGroups.add(campaignGroupsItem); return this; @@ -557,12 +557,12 @@ public NewCampaign addCampaignGroupsItem(Long campaignGroupsItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[1, 3]", value = "The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. ") - public List getCampaignGroups() { + public List getCampaignGroups() { return campaignGroups; } - public void setCampaignGroups(List campaignGroups) { + public void setCampaignGroups(List campaignGroups) { this.campaignGroups = campaignGroups; } @@ -590,15 +590,15 @@ public void setType(TypeEnum type) { } - public NewCampaign linkedStoreIds(List linkedStoreIds) { + public NewCampaign linkedStoreIds(List linkedStoreIds) { this.linkedStoreIds = linkedStoreIds; return this; } - public NewCampaign addLinkedStoreIdsItem(Long linkedStoreIdsItem) { + public NewCampaign addLinkedStoreIdsItem(Integer linkedStoreIdsItem) { if (this.linkedStoreIds == null) { - this.linkedStoreIds = new ArrayList(); + this.linkedStoreIds = new ArrayList(); } this.linkedStoreIds.add(linkedStoreIdsItem); return this; @@ -611,17 +611,17 @@ public NewCampaign addLinkedStoreIdsItem(Long linkedStoreIdsItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of store IDs that you want to link to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. ") - public List getLinkedStoreIds() { + public List getLinkedStoreIds() { return linkedStoreIds; } - public void setLinkedStoreIds(List linkedStoreIds) { + public void setLinkedStoreIds(List linkedStoreIds) { this.linkedStoreIds = linkedStoreIds; } - public NewCampaign evaluationGroupId(Long evaluationGroupId) { + public NewCampaign evaluationGroupId(Integer evaluationGroupId) { this.evaluationGroupId = evaluationGroupId; return this; @@ -634,12 +634,12 @@ public NewCampaign evaluationGroupId(Long evaluationGroupId) { @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "The ID of the campaign evaluation group the campaign belongs to.") - public Long getEvaluationGroupId() { + public Integer getEvaluationGroupId() { return evaluationGroupId; } - public void setEvaluationGroupId(Long evaluationGroupId) { + public void setEvaluationGroupId(Integer evaluationGroupId) { this.evaluationGroupId = evaluationGroupId; } diff --git a/src/main/java/one/talon/model/NewCampaignEvaluationGroup.java b/src/main/java/one/talon/model/NewCampaignEvaluationGroup.java index ee5fd2d8..f234592c 100644 --- a/src/main/java/one/talon/model/NewCampaignEvaluationGroup.java +++ b/src/main/java/one/talon/model/NewCampaignEvaluationGroup.java @@ -35,7 +35,7 @@ public class NewCampaignEvaluationGroup { public static final String SERIALIZED_NAME_PARENT_ID = "parentId"; @SerializedName(SERIALIZED_NAME_PARENT_ID) - private Long parentId; + private Integer parentId; public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -174,7 +174,7 @@ public void setName(String name) { } - public NewCampaignEvaluationGroup parentId(Long parentId) { + public NewCampaignEvaluationGroup parentId(Integer parentId) { this.parentId = parentId; return this; @@ -187,12 +187,12 @@ public NewCampaignEvaluationGroup parentId(Long parentId) { **/ @ApiModelProperty(example = "2", required = true, value = "The ID of the parent group that contains the campaign evaluation group.") - public Long getParentId() { + public Integer getParentId() { return parentId; } - public void setParentId(Long parentId) { + public void setParentId(Integer parentId) { this.parentId = parentId; } diff --git a/src/main/java/one/talon/model/NewCampaignGroup.java b/src/main/java/one/talon/model/NewCampaignGroup.java index 21d5fa3e..b9a90979 100644 --- a/src/main/java/one/talon/model/NewCampaignGroup.java +++ b/src/main/java/one/talon/model/NewCampaignGroup.java @@ -41,11 +41,11 @@ public class NewCampaignGroup { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public static final String SERIALIZED_NAME_CAMPAIGN_IDS = "campaignIds"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_IDS) - private List campaignIds = null; + private List campaignIds = null; public NewCampaignGroup name(String name) { @@ -93,15 +93,15 @@ public void setDescription(String description) { } - public NewCampaignGroup subscribedApplicationsIds(List subscribedApplicationsIds) { + public NewCampaignGroup subscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public NewCampaignGroup addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { + public NewCampaignGroup addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; @@ -114,25 +114,25 @@ public NewCampaignGroup addSubscribedApplicationsIdsItem(Long subscribedApplicat @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of IDs of the Applications that this campaign access group is enabled for.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } - public NewCampaignGroup campaignIds(List campaignIds) { + public NewCampaignGroup campaignIds(List campaignIds) { this.campaignIds = campaignIds; return this; } - public NewCampaignGroup addCampaignIdsItem(Long campaignIdsItem) { + public NewCampaignGroup addCampaignIdsItem(Integer campaignIdsItem) { if (this.campaignIds == null) { - this.campaignIds = new ArrayList(); + this.campaignIds = new ArrayList(); } this.campaignIds.add(campaignIdsItem); return this; @@ -145,12 +145,12 @@ public NewCampaignGroup addCampaignIdsItem(Long campaignIdsItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[4, 6, 8]", value = "A list of IDs of the campaigns that are part of the campaign access group.") - public List getCampaignIds() { + public List getCampaignIds() { return campaignIds; } - public void setCampaignIds(List campaignIds) { + public void setCampaignIds(List campaignIds) { this.campaignIds = campaignIds; } diff --git a/src/main/java/one/talon/model/NewCampaignSet.java b/src/main/java/one/talon/model/NewCampaignSet.java index eeeea81e..1769f548 100644 --- a/src/main/java/one/talon/model/NewCampaignSet.java +++ b/src/main/java/one/talon/model/NewCampaignSet.java @@ -32,18 +32,18 @@ public class NewCampaignSet { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) - private Long version; + private Integer version; public static final String SERIALIZED_NAME_SET = "set"; @SerializedName(SERIALIZED_NAME_SET) private CampaignSetBranchNode set; - public NewCampaignSet applicationId(Long applicationId) { + public NewCampaignSet applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -55,17 +55,17 @@ public NewCampaignSet applicationId(Long applicationId) { **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } - public NewCampaignSet version(Long version) { + public NewCampaignSet version(Integer version) { this.version = version; return this; @@ -78,12 +78,12 @@ public NewCampaignSet version(Long version) { **/ @ApiModelProperty(example = "2", required = true, value = "Version of the campaign set.") - public Long getVersion() { + public Integer getVersion() { return version; } - public void setVersion(Long version) { + public void setVersion(Integer version) { this.version = version; } diff --git a/src/main/java/one/talon/model/NewCampaignStoreBudgetStoreLimit.java b/src/main/java/one/talon/model/NewCampaignStoreBudgetStoreLimit.java index 3285b5aa..34e68198 100644 --- a/src/main/java/one/talon/model/NewCampaignStoreBudgetStoreLimit.java +++ b/src/main/java/one/talon/model/NewCampaignStoreBudgetStoreLimit.java @@ -32,14 +32,14 @@ public class NewCampaignStoreBudgetStoreLimit { public static final String SERIALIZED_NAME_STORE_ID = "storeId"; @SerializedName(SERIALIZED_NAME_STORE_ID) - private Long storeId; + private Integer storeId; public static final String SERIALIZED_NAME_LIMIT = "limit"; @SerializedName(SERIALIZED_NAME_LIMIT) private BigDecimal limit; - public NewCampaignStoreBudgetStoreLimit storeId(Long storeId) { + public NewCampaignStoreBudgetStoreLimit storeId(Integer storeId) { this.storeId = storeId; return this; @@ -51,12 +51,12 @@ public NewCampaignStoreBudgetStoreLimit storeId(Long storeId) { **/ @ApiModelProperty(example = "17", required = true, value = "The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. ") - public Long getStoreId() { + public Integer getStoreId() { return storeId; } - public void setStoreId(Long storeId) { + public void setStoreId(Integer storeId) { this.storeId = storeId; } diff --git a/src/main/java/one/talon/model/NewCampaignTemplate.java b/src/main/java/one/talon/model/NewCampaignTemplate.java index e85bb918..afbb60b3 100644 --- a/src/main/java/one/talon/model/NewCampaignTemplate.java +++ b/src/main/java/one/talon/model/NewCampaignTemplate.java @@ -198,7 +198,7 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_DEFAULT_CAMPAIGN_GROUP_ID = "defaultCampaignGroupId"; @SerializedName(SERIALIZED_NAME_DEFAULT_CAMPAIGN_GROUP_ID) - private Long defaultCampaignGroupId; + private Integer defaultCampaignGroupId; /** * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. @@ -610,7 +610,7 @@ public void setCampaignCollections(List campaignColl } - public NewCampaignTemplate defaultCampaignGroupId(Long defaultCampaignGroupId) { + public NewCampaignTemplate defaultCampaignGroupId(Integer defaultCampaignGroupId) { this.defaultCampaignGroupId = defaultCampaignGroupId; return this; @@ -623,12 +623,12 @@ public NewCampaignTemplate defaultCampaignGroupId(Long defaultCampaignGroupId) { @javax.annotation.Nullable @ApiModelProperty(example = "42", value = "The default campaign group ID.") - public Long getDefaultCampaignGroupId() { + public Integer getDefaultCampaignGroupId() { return defaultCampaignGroupId; } - public void setDefaultCampaignGroupId(Long defaultCampaignGroupId) { + public void setDefaultCampaignGroupId(Integer defaultCampaignGroupId) { this.defaultCampaignGroupId = defaultCampaignGroupId; } diff --git a/src/main/java/one/talon/model/NewCatalog.java b/src/main/java/one/talon/model/NewCatalog.java index bb825d43..d29d1d24 100644 --- a/src/main/java/one/talon/model/NewCatalog.java +++ b/src/main/java/one/talon/model/NewCatalog.java @@ -41,7 +41,7 @@ public class NewCatalog { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public NewCatalog name(String name) { @@ -88,15 +88,15 @@ public void setDescription(String description) { } - public NewCatalog subscribedApplicationsIds(List subscribedApplicationsIds) { + public NewCatalog subscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public NewCatalog addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { + public NewCatalog addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; @@ -109,12 +109,12 @@ public NewCatalog addSubscribedApplicationsIdsItem(Long subscribedApplicationsId @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of the IDs of the applications that are subscribed to this catalog.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } diff --git a/src/main/java/one/talon/model/NewCollection.java b/src/main/java/one/talon/model/NewCollection.java index 3aa3eff0..2838e1b8 100644 --- a/src/main/java/one/talon/model/NewCollection.java +++ b/src/main/java/one/talon/model/NewCollection.java @@ -37,7 +37,7 @@ public class NewCollection { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -67,15 +67,15 @@ public void setDescription(String description) { } - public NewCollection subscribedApplicationsIds(List subscribedApplicationsIds) { + public NewCollection subscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public NewCollection addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { + public NewCollection addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; @@ -88,12 +88,12 @@ public NewCollection addSubscribedApplicationsIdsItem(Long subscribedApplication @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of the IDs of the Applications where this collection is enabled.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } diff --git a/src/main/java/one/talon/model/NewCouponCreationJob.java b/src/main/java/one/talon/model/NewCouponCreationJob.java index 0b6a0374..a02e7484 100644 --- a/src/main/java/one/talon/model/NewCouponCreationJob.java +++ b/src/main/java/one/talon/model/NewCouponCreationJob.java @@ -34,7 +34,7 @@ public class NewCouponCreationJob { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Long usageLimit; + private Integer usageLimit; public static final String SERIALIZED_NAME_DISCOUNT_LIMIT = "discountLimit"; @SerializedName(SERIALIZED_NAME_DISCOUNT_LIMIT) @@ -42,7 +42,7 @@ public class NewCouponCreationJob { public static final String SERIALIZED_NAME_RESERVATION_LIMIT = "reservationLimit"; @SerializedName(SERIALIZED_NAME_RESERVATION_LIMIT) - private Long reservationLimit; + private Integer reservationLimit; public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) @@ -54,7 +54,7 @@ public class NewCouponCreationJob { public static final String SERIALIZED_NAME_NUMBER_OF_COUPONS = "numberOfCoupons"; @SerializedName(SERIALIZED_NAME_NUMBER_OF_COUPONS) - private Long numberOfCoupons; + private Integer numberOfCoupons; public static final String SERIALIZED_NAME_COUPON_SETTINGS = "couponSettings"; @SerializedName(SERIALIZED_NAME_COUPON_SETTINGS) @@ -65,7 +65,7 @@ public class NewCouponCreationJob { private Object attributes; - public NewCouponCreationJob usageLimit(Long usageLimit) { + public NewCouponCreationJob usageLimit(Integer usageLimit) { this.usageLimit = usageLimit; return this; @@ -79,12 +79,12 @@ public NewCouponCreationJob usageLimit(Long usageLimit) { **/ @ApiModelProperty(example = "100", required = true, value = "The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. ") - public Long getUsageLimit() { + public Integer getUsageLimit() { return usageLimit; } - public void setUsageLimit(Long usageLimit) { + public void setUsageLimit(Integer usageLimit) { this.usageLimit = usageLimit; } @@ -98,7 +98,7 @@ public NewCouponCreationJob discountLimit(BigDecimal discountLimit) { /** * The total discount value that the code can give. Typically used to represent a gift card value. * minimum: 0 - * maximum: 999999 + * maximum: 1E+15 * @return discountLimit **/ @javax.annotation.Nullable @@ -114,7 +114,7 @@ public void setDiscountLimit(BigDecimal discountLimit) { } - public NewCouponCreationJob reservationLimit(Long reservationLimit) { + public NewCouponCreationJob reservationLimit(Integer reservationLimit) { this.reservationLimit = reservationLimit; return this; @@ -129,12 +129,12 @@ public NewCouponCreationJob reservationLimit(Long reservationLimit) { @javax.annotation.Nullable @ApiModelProperty(example = "45", value = "The number of reservations that can be made with this coupon code. ") - public Long getReservationLimit() { + public Integer getReservationLimit() { return reservationLimit; } - public void setReservationLimit(Long reservationLimit) { + public void setReservationLimit(Integer reservationLimit) { this.reservationLimit = reservationLimit; } @@ -185,7 +185,7 @@ public void setExpiryDate(OffsetDateTime expiryDate) { } - public NewCouponCreationJob numberOfCoupons(Long numberOfCoupons) { + public NewCouponCreationJob numberOfCoupons(Integer numberOfCoupons) { this.numberOfCoupons = numberOfCoupons; return this; @@ -199,12 +199,12 @@ public NewCouponCreationJob numberOfCoupons(Long numberOfCoupons) { **/ @ApiModelProperty(example = "200000", required = true, value = "The number of new coupon codes to generate for the campaign.") - public Long getNumberOfCoupons() { + public Integer getNumberOfCoupons() { return numberOfCoupons; } - public void setNumberOfCoupons(Long numberOfCoupons) { + public void setNumberOfCoupons(Integer numberOfCoupons) { this.numberOfCoupons = numberOfCoupons; } diff --git a/src/main/java/one/talon/model/NewCoupons.java b/src/main/java/one/talon/model/NewCoupons.java index cfdee8c3..7b5cdb92 100644 --- a/src/main/java/one/talon/model/NewCoupons.java +++ b/src/main/java/one/talon/model/NewCoupons.java @@ -36,7 +36,7 @@ public class NewCoupons { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Long usageLimit; + private Integer usageLimit; public static final String SERIALIZED_NAME_DISCOUNT_LIMIT = "discountLimit"; @SerializedName(SERIALIZED_NAME_DISCOUNT_LIMIT) @@ -44,7 +44,7 @@ public class NewCoupons { public static final String SERIALIZED_NAME_RESERVATION_LIMIT = "reservationLimit"; @SerializedName(SERIALIZED_NAME_RESERVATION_LIMIT) - private Long reservationLimit; + private Integer reservationLimit; public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) @@ -60,7 +60,7 @@ public class NewCoupons { public static final String SERIALIZED_NAME_NUMBER_OF_COUPONS = "numberOfCoupons"; @SerializedName(SERIALIZED_NAME_NUMBER_OF_COUPONS) - private Long numberOfCoupons; + private Integer numberOfCoupons; public static final String SERIALIZED_NAME_UNIQUE_PREFIX = "uniquePrefix"; @SerializedName(SERIALIZED_NAME_UNIQUE_PREFIX) @@ -91,7 +91,7 @@ public class NewCoupons { private Boolean implicitlyReserved; - public NewCoupons usageLimit(Long usageLimit) { + public NewCoupons usageLimit(Integer usageLimit) { this.usageLimit = usageLimit; return this; @@ -105,12 +105,12 @@ public NewCoupons usageLimit(Long usageLimit) { **/ @ApiModelProperty(example = "100", required = true, value = "The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. ") - public Long getUsageLimit() { + public Integer getUsageLimit() { return usageLimit; } - public void setUsageLimit(Long usageLimit) { + public void setUsageLimit(Integer usageLimit) { this.usageLimit = usageLimit; } @@ -124,7 +124,7 @@ public NewCoupons discountLimit(BigDecimal discountLimit) { /** * The total discount value that the code can give. Typically used to represent a gift card value. * minimum: 0 - * maximum: 999999 + * maximum: 1E+15 * @return discountLimit **/ @javax.annotation.Nullable @@ -140,7 +140,7 @@ public void setDiscountLimit(BigDecimal discountLimit) { } - public NewCoupons reservationLimit(Long reservationLimit) { + public NewCoupons reservationLimit(Integer reservationLimit) { this.reservationLimit = reservationLimit; return this; @@ -155,12 +155,12 @@ public NewCoupons reservationLimit(Long reservationLimit) { @javax.annotation.Nullable @ApiModelProperty(example = "45", value = "The number of reservations that can be made with this coupon code. ") - public Long getReservationLimit() { + public Integer getReservationLimit() { return reservationLimit; } - public void setReservationLimit(Long reservationLimit) { + public void setReservationLimit(Integer reservationLimit) { this.reservationLimit = reservationLimit; } @@ -242,7 +242,7 @@ public void setLimits(List limits) { } - public NewCoupons numberOfCoupons(Long numberOfCoupons) { + public NewCoupons numberOfCoupons(Integer numberOfCoupons) { this.numberOfCoupons = numberOfCoupons; return this; @@ -254,12 +254,12 @@ public NewCoupons numberOfCoupons(Long numberOfCoupons) { **/ @ApiModelProperty(example = "1", required = true, value = "The number of new coupon codes to generate for the campaign. Must be at least 1.") - public Long getNumberOfCoupons() { + public Integer getNumberOfCoupons() { return numberOfCoupons; } - public void setNumberOfCoupons(Long numberOfCoupons) { + public void setNumberOfCoupons(Integer numberOfCoupons) { this.numberOfCoupons = numberOfCoupons; } diff --git a/src/main/java/one/talon/model/NewCouponsForMultipleRecipients.java b/src/main/java/one/talon/model/NewCouponsForMultipleRecipients.java index d821f96b..695f7bb3 100644 --- a/src/main/java/one/talon/model/NewCouponsForMultipleRecipients.java +++ b/src/main/java/one/talon/model/NewCouponsForMultipleRecipients.java @@ -35,7 +35,7 @@ public class NewCouponsForMultipleRecipients { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Long usageLimit; + private Integer usageLimit; public static final String SERIALIZED_NAME_DISCOUNT_LIMIT = "discountLimit"; @SerializedName(SERIALIZED_NAME_DISCOUNT_LIMIT) @@ -43,7 +43,7 @@ public class NewCouponsForMultipleRecipients { public static final String SERIALIZED_NAME_RESERVATION_LIMIT = "reservationLimit"; @SerializedName(SERIALIZED_NAME_RESERVATION_LIMIT) - private Long reservationLimit; + private Integer reservationLimit; public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) @@ -70,7 +70,7 @@ public class NewCouponsForMultipleRecipients { private String couponPattern; - public NewCouponsForMultipleRecipients usageLimit(Long usageLimit) { + public NewCouponsForMultipleRecipients usageLimit(Integer usageLimit) { this.usageLimit = usageLimit; return this; @@ -84,12 +84,12 @@ public NewCouponsForMultipleRecipients usageLimit(Long usageLimit) { **/ @ApiModelProperty(example = "100", required = true, value = "The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. ") - public Long getUsageLimit() { + public Integer getUsageLimit() { return usageLimit; } - public void setUsageLimit(Long usageLimit) { + public void setUsageLimit(Integer usageLimit) { this.usageLimit = usageLimit; } @@ -103,7 +103,7 @@ public NewCouponsForMultipleRecipients discountLimit(BigDecimal discountLimit) { /** * The total discount value that the code can give. Typically used to represent a gift card value. * minimum: 0 - * maximum: 999999 + * maximum: 1E+15 * @return discountLimit **/ @javax.annotation.Nullable @@ -119,7 +119,7 @@ public void setDiscountLimit(BigDecimal discountLimit) { } - public NewCouponsForMultipleRecipients reservationLimit(Long reservationLimit) { + public NewCouponsForMultipleRecipients reservationLimit(Integer reservationLimit) { this.reservationLimit = reservationLimit; return this; @@ -134,12 +134,12 @@ public NewCouponsForMultipleRecipients reservationLimit(Long reservationLimit) { @javax.annotation.Nullable @ApiModelProperty(example = "45", value = "The number of reservations that can be made with this coupon code. ") - public Long getReservationLimit() { + public Integer getReservationLimit() { return reservationLimit; } - public void setReservationLimit(Long reservationLimit) { + public void setReservationLimit(Integer reservationLimit) { this.reservationLimit = reservationLimit; } diff --git a/src/main/java/one/talon/model/NewCustomEffect.java b/src/main/java/one/talon/model/NewCustomEffect.java index a52b60f8..65ddfbc4 100644 --- a/src/main/java/one/talon/model/NewCustomEffect.java +++ b/src/main/java/one/talon/model/NewCustomEffect.java @@ -34,7 +34,7 @@ public class NewCustomEffect { public static final String SERIALIZED_NAME_APPLICATION_IDS = "applicationIds"; @SerializedName(SERIALIZED_NAME_APPLICATION_IDS) - private List applicationIds = new ArrayList(); + private List applicationIds = new ArrayList(); public static final String SERIALIZED_NAME_IS_PER_ITEM = "isPerItem"; @SerializedName(SERIALIZED_NAME_IS_PER_ITEM) @@ -65,13 +65,13 @@ public class NewCustomEffect { private List params = null; - public NewCustomEffect applicationIds(List applicationIds) { + public NewCustomEffect applicationIds(List applicationIds) { this.applicationIds = applicationIds; return this; } - public NewCustomEffect addApplicationIdsItem(Long applicationIdsItem) { + public NewCustomEffect addApplicationIdsItem(Integer applicationIdsItem) { this.applicationIds.add(applicationIdsItem); return this; } @@ -82,12 +82,12 @@ public NewCustomEffect addApplicationIdsItem(Long applicationIdsItem) { **/ @ApiModelProperty(required = true, value = "The IDs of the Applications that are related to this entity.") - public List getApplicationIds() { + public List getApplicationIds() { return applicationIds; } - public void setApplicationIds(List applicationIds) { + public void setApplicationIds(List applicationIds) { this.applicationIds = applicationIds; } diff --git a/src/main/java/one/talon/model/NewGiveawaysPool.java b/src/main/java/one/talon/model/NewGiveawaysPool.java index c736e43d..159bf138 100644 --- a/src/main/java/one/talon/model/NewGiveawaysPool.java +++ b/src/main/java/one/talon/model/NewGiveawaysPool.java @@ -41,7 +41,7 @@ public class NewGiveawaysPool { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public static final String SERIALIZED_NAME_SANDBOX = "sandbox"; @SerializedName(SERIALIZED_NAME_SANDBOX) @@ -93,15 +93,15 @@ public void setDescription(String description) { } - public NewGiveawaysPool subscribedApplicationsIds(List subscribedApplicationsIds) { + public NewGiveawaysPool subscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public NewGiveawaysPool addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { + public NewGiveawaysPool addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; @@ -114,12 +114,12 @@ public NewGiveawaysPool addSubscribedApplicationsIdsItem(Long subscribedApplicat @javax.annotation.Nullable @ApiModelProperty(example = "[2, 4]", value = "A list of the IDs of the applications that this giveaways pool is enabled for.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } diff --git a/src/main/java/one/talon/model/NewInvitation.java b/src/main/java/one/talon/model/NewInvitation.java index 228ec61c..51bfe0ef 100644 --- a/src/main/java/one/talon/model/NewInvitation.java +++ b/src/main/java/one/talon/model/NewInvitation.java @@ -46,7 +46,7 @@ public class NewInvitation { public static final String SERIALIZED_NAME_ROLES = "roles"; @SerializedName(SERIALIZED_NAME_ROLES) - private List roles = null; + private List roles = null; public static final String SERIALIZED_NAME_ACL = "acl"; @SerializedName(SERIALIZED_NAME_ACL) @@ -121,15 +121,15 @@ public void setIsAdmin(Boolean isAdmin) { } - public NewInvitation roles(List roles) { + public NewInvitation roles(List roles) { this.roles = roles; return this; } - public NewInvitation addRolesItem(Long rolesItem) { + public NewInvitation addRolesItem(Integer rolesItem) { if (this.roles == null) { - this.roles = new ArrayList(); + this.roles = new ArrayList(); } this.roles.add(rolesItem); return this; @@ -142,12 +142,12 @@ public NewInvitation addRolesItem(Long rolesItem) { @javax.annotation.Nullable @ApiModelProperty(value = "A list of the IDs of the roles assigned to the user.") - public List getRoles() { + public List getRoles() { return roles; } - public void setRoles(List roles) { + public void setRoles(List roles) { this.roles = roles; } diff --git a/src/main/java/one/talon/model/NewLoyaltyProgram.java b/src/main/java/one/talon/model/NewLoyaltyProgram.java index 25322f91..6bf4384c 100644 --- a/src/main/java/one/talon/model/NewLoyaltyProgram.java +++ b/src/main/java/one/talon/model/NewLoyaltyProgram.java @@ -45,7 +45,7 @@ public class NewLoyaltyProgram { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS = "subscribedApplications"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS) - private List subscribedApplications = null; + private List subscribedApplications = null; public static final String SERIALIZED_NAME_DEFAULT_VALIDITY = "defaultValidity"; @SerializedName(SERIALIZED_NAME_DEFAULT_VALIDITY) @@ -61,7 +61,7 @@ public class NewLoyaltyProgram { public static final String SERIALIZED_NAME_USERS_PER_CARD_LIMIT = "usersPerCardLimit"; @SerializedName(SERIALIZED_NAME_USERS_PER_CARD_LIMIT) - private Long usersPerCardLimit; + private Integer usersPerCardLimit; public static final String SERIALIZED_NAME_SANDBOX = "sandbox"; @SerializedName(SERIALIZED_NAME_SANDBOX) @@ -353,15 +353,15 @@ public void setDescription(String description) { } - public NewLoyaltyProgram subscribedApplications(List subscribedApplications) { + public NewLoyaltyProgram subscribedApplications(List subscribedApplications) { this.subscribedApplications = subscribedApplications; return this; } - public NewLoyaltyProgram addSubscribedApplicationsItem(Long subscribedApplicationsItem) { + public NewLoyaltyProgram addSubscribedApplicationsItem(Integer subscribedApplicationsItem) { if (this.subscribedApplications == null) { - this.subscribedApplications = new ArrayList(); + this.subscribedApplications = new ArrayList(); } this.subscribedApplications.add(subscribedApplicationsItem); return this; @@ -374,12 +374,12 @@ public NewLoyaltyProgram addSubscribedApplicationsItem(Long subscribedApplicatio @javax.annotation.Nullable @ApiModelProperty(example = "[132, 97]", value = "A list containing the IDs of all applications that are subscribed to this Loyalty Program.") - public List getSubscribedApplications() { + public List getSubscribedApplications() { return subscribedApplications; } - public void setSubscribedApplications(List subscribedApplications) { + public void setSubscribedApplications(List subscribedApplications) { this.subscribedApplications = subscribedApplications; } @@ -450,7 +450,7 @@ public void setAllowSubledger(Boolean allowSubledger) { } - public NewLoyaltyProgram usersPerCardLimit(Long usersPerCardLimit) { + public NewLoyaltyProgram usersPerCardLimit(Integer usersPerCardLimit) { this.usersPerCardLimit = usersPerCardLimit; return this; @@ -464,12 +464,12 @@ public NewLoyaltyProgram usersPerCardLimit(Long usersPerCardLimit) { @javax.annotation.Nullable @ApiModelProperty(example = "111", value = "The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. ") - public Long getUsersPerCardLimit() { + public Integer getUsersPerCardLimit() { return usersPerCardLimit; } - public void setUsersPerCardLimit(Long usersPerCardLimit) { + public void setUsersPerCardLimit(Integer usersPerCardLimit) { this.usersPerCardLimit = usersPerCardLimit; } diff --git a/src/main/java/one/talon/model/NewManagementKey.java b/src/main/java/one/talon/model/NewManagementKey.java index 4dec163c..60c87ffa 100644 --- a/src/main/java/one/talon/model/NewManagementKey.java +++ b/src/main/java/one/talon/model/NewManagementKey.java @@ -47,19 +47,19 @@ public class NewManagementKey { public static final String SERIALIZED_NAME_ALLOWED_APPLICATION_IDS = "allowedApplicationIds"; @SerializedName(SERIALIZED_NAME_ALLOWED_APPLICATION_IDS) - private List allowedApplicationIds = null; + private List allowedApplicationIds = null; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Long createdBy; + private Integer createdBy; public static final String SERIALIZED_NAME_ACCOUNT_I_D = "accountID"; @SerializedName(SERIALIZED_NAME_ACCOUNT_I_D) - private Long accountID; + private Integer accountID; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -145,15 +145,15 @@ public void setEndpoints(List endpoints) { } - public NewManagementKey allowedApplicationIds(List allowedApplicationIds) { + public NewManagementKey allowedApplicationIds(List allowedApplicationIds) { this.allowedApplicationIds = allowedApplicationIds; return this; } - public NewManagementKey addAllowedApplicationIdsItem(Long allowedApplicationIdsItem) { + public NewManagementKey addAllowedApplicationIdsItem(Integer allowedApplicationIdsItem) { if (this.allowedApplicationIds == null) { - this.allowedApplicationIds = new ArrayList(); + this.allowedApplicationIds = new ArrayList(); } this.allowedApplicationIds.add(allowedApplicationIdsItem); return this; @@ -166,17 +166,17 @@ public NewManagementKey addAllowedApplicationIdsItem(Long allowedApplicationIdsI @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of Application IDs that you can access with the management key. An empty or missing list means the management key can be used for all Applications in the account. ") - public List getAllowedApplicationIds() { + public List getAllowedApplicationIds() { return allowedApplicationIds; } - public void setAllowedApplicationIds(List allowedApplicationIds) { + public void setAllowedApplicationIds(List allowedApplicationIds) { this.allowedApplicationIds = allowedApplicationIds; } - public NewManagementKey id(Long id) { + public NewManagementKey id(Integer id) { this.id = id; return this; @@ -188,17 +188,17 @@ public NewManagementKey id(Long id) { **/ @ApiModelProperty(example = "34", required = true, value = "ID of the management key.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } - public NewManagementKey createdBy(Long createdBy) { + public NewManagementKey createdBy(Integer createdBy) { this.createdBy = createdBy; return this; @@ -210,17 +210,17 @@ public NewManagementKey createdBy(Long createdBy) { **/ @ApiModelProperty(example = "280", required = true, value = "ID of the user who created it.") - public Long getCreatedBy() { + public Integer getCreatedBy() { return createdBy; } - public void setCreatedBy(Long createdBy) { + public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } - public NewManagementKey accountID(Long accountID) { + public NewManagementKey accountID(Integer accountID) { this.accountID = accountID; return this; @@ -232,12 +232,12 @@ public NewManagementKey accountID(Long accountID) { **/ @ApiModelProperty(example = "13", required = true, value = "ID of account the key is used for.") - public Long getAccountID() { + public Integer getAccountID() { return accountID; } - public void setAccountID(Long accountID) { + public void setAccountID(Integer accountID) { this.accountID = accountID; } diff --git a/src/main/java/one/talon/model/NewMessageTest.java b/src/main/java/one/talon/model/NewMessageTest.java index fccb0607..46f518dd 100644 --- a/src/main/java/one/talon/model/NewMessageTest.java +++ b/src/main/java/one/talon/model/NewMessageTest.java @@ -43,6 +43,10 @@ public enum TypeEnum { CARD_ADDED_DEDUCTED_POINTS("card_added_deducted_points"), + LOYALTY_ADDED_DEDUCTED_POINTS_BALANCES("loyalty_added_deducted_points_balances"), + + LOYALTY_CARD_ADDED_DEDUCTED_POINTS_BALANCES("loyalty_card_added_deducted_points_balances"), + COUPON("coupon"), EXPIRING_COUPONS("expiring_coupons"), diff --git a/src/main/java/one/talon/model/NewOutgoingIntegrationWebhook.java b/src/main/java/one/talon/model/NewOutgoingIntegrationWebhook.java index c3703868..ff36a853 100644 --- a/src/main/java/one/talon/model/NewOutgoingIntegrationWebhook.java +++ b/src/main/java/one/talon/model/NewOutgoingIntegrationWebhook.java @@ -41,7 +41,7 @@ public class NewOutgoingIntegrationWebhook { public static final String SERIALIZED_NAME_APPLICATION_IDS = "applicationIds"; @SerializedName(SERIALIZED_NAME_APPLICATION_IDS) - private List applicationIds = new ArrayList(); + private List applicationIds = new ArrayList(); public NewOutgoingIntegrationWebhook title(String title) { @@ -89,13 +89,13 @@ public void setDescription(String description) { } - public NewOutgoingIntegrationWebhook applicationIds(List applicationIds) { + public NewOutgoingIntegrationWebhook applicationIds(List applicationIds) { this.applicationIds = applicationIds; return this; } - public NewOutgoingIntegrationWebhook addApplicationIdsItem(Long applicationIdsItem) { + public NewOutgoingIntegrationWebhook addApplicationIdsItem(Integer applicationIdsItem) { this.applicationIds.add(applicationIdsItem); return this; } @@ -106,12 +106,12 @@ public NewOutgoingIntegrationWebhook addApplicationIdsItem(Long applicationIdsIt **/ @ApiModelProperty(example = "[1, 2, 3]", required = true, value = "IDs of the Applications to which a webhook must be linked.") - public List getApplicationIds() { + public List getApplicationIds() { return applicationIds; } - public void setApplicationIds(List applicationIds) { + public void setApplicationIds(List applicationIds) { this.applicationIds = applicationIds; } diff --git a/src/main/java/one/talon/model/NewPriceAdjustment.java b/src/main/java/one/talon/model/NewPriceAdjustment.java new file mode 100644 index 00000000..9f0891d5 --- /dev/null +++ b/src/main/java/one/talon/model/NewPriceAdjustment.java @@ -0,0 +1,244 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.threeten.bp.OffsetDateTime; + +/** + * NewPriceAdjustment + */ + +public class NewPriceAdjustment { + public static final String SERIALIZED_NAME_PRICE_TYPE = "priceType"; + @SerializedName(SERIALIZED_NAME_PRICE_TYPE) + private String priceType; + + public static final String SERIALIZED_NAME_PRICE = "price"; + @SerializedName(SERIALIZED_NAME_PRICE) + private BigDecimal price; + + public static final String SERIALIZED_NAME_REFERENCE_ID = "referenceId"; + @SerializedName(SERIALIZED_NAME_REFERENCE_ID) + private String referenceId; + + public static final String SERIALIZED_NAME_CALCULATED_AT = "calculatedAt"; + @SerializedName(SERIALIZED_NAME_CALCULATED_AT) + private OffsetDateTime calculatedAt; + + public static final String SERIALIZED_NAME_EFFECTIVE_FROM = "effectiveFrom"; + @SerializedName(SERIALIZED_NAME_EFFECTIVE_FROM) + private OffsetDateTime effectiveFrom; + + public static final String SERIALIZED_NAME_EFFECTIVE_UNTIL = "effectiveUntil"; + @SerializedName(SERIALIZED_NAME_EFFECTIVE_UNTIL) + private OffsetDateTime effectiveUntil; + + + public NewPriceAdjustment priceType(String priceType) { + + this.priceType = priceType; + return this; + } + + /** + * The price type (e.g. the price for members only) to apply to a given SKU. + * @return priceType + **/ + @ApiModelProperty(example = "member", required = true, value = "The price type (e.g. the price for members only) to apply to a given SKU.") + + public String getPriceType() { + return priceType; + } + + + public void setPriceType(String priceType) { + this.priceType = priceType; + } + + + public NewPriceAdjustment price(BigDecimal price) { + + this.price = price; + return this; + } + + /** + * The value of the price type applied to the SKU. When set to `null`, the defined price type no longer applies to the SKU. + * @return price + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "100.0", value = "The value of the price type applied to the SKU. When set to `null`, the defined price type no longer applies to the SKU.") + + public BigDecimal getPrice() { + return price; + } + + + public void setPrice(BigDecimal price) { + this.price = price; + } + + + public NewPriceAdjustment referenceId(String referenceId) { + + this.referenceId = referenceId; + return this; + } + + /** + * A unique reference identifier, e.g. a UUID. + * @return referenceId + **/ + @ApiModelProperty(example = "68851723-e6fa-488f-ace9-112581e6c19b", required = true, value = "A unique reference identifier, e.g. a UUID.") + + public String getReferenceId() { + return referenceId; + } + + + public void setReferenceId(String referenceId) { + this.referenceId = referenceId; + } + + + public NewPriceAdjustment calculatedAt(OffsetDateTime calculatedAt) { + + this.calculatedAt = calculatedAt; + return this; + } + + /** + * The time at which this price was calculated. If provided, this is used to determine the most recent price adjustment to choose if price adjustments overlap. Defaults to internal creation time if not provided. + * @return calculatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2021-09-12T10:12:42Z", value = "The time at which this price was calculated. If provided, this is used to determine the most recent price adjustment to choose if price adjustments overlap. Defaults to internal creation time if not provided.") + + public OffsetDateTime getCalculatedAt() { + return calculatedAt; + } + + + public void setCalculatedAt(OffsetDateTime calculatedAt) { + this.calculatedAt = calculatedAt; + } + + + public NewPriceAdjustment effectiveFrom(OffsetDateTime effectiveFrom) { + + this.effectiveFrom = effectiveFrom; + return this; + } + + /** + * The date and time from which the price adjustment is effective. + * @return effectiveFrom + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2021-09-12T10:12:42Z", value = "The date and time from which the price adjustment is effective.") + + public OffsetDateTime getEffectiveFrom() { + return effectiveFrom; + } + + + public void setEffectiveFrom(OffsetDateTime effectiveFrom) { + this.effectiveFrom = effectiveFrom; + } + + + public NewPriceAdjustment effectiveUntil(OffsetDateTime effectiveUntil) { + + this.effectiveUntil = effectiveUntil; + return this; + } + + /** + * The date and time until which the price adjustment is effective. + * @return effectiveUntil + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2021-09-12T10:12:42Z", value = "The date and time until which the price adjustment is effective.") + + public OffsetDateTime getEffectiveUntil() { + return effectiveUntil; + } + + + public void setEffectiveUntil(OffsetDateTime effectiveUntil) { + this.effectiveUntil = effectiveUntil; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NewPriceAdjustment newPriceAdjustment = (NewPriceAdjustment) o; + return Objects.equals(this.priceType, newPriceAdjustment.priceType) && + Objects.equals(this.price, newPriceAdjustment.price) && + Objects.equals(this.referenceId, newPriceAdjustment.referenceId) && + Objects.equals(this.calculatedAt, newPriceAdjustment.calculatedAt) && + Objects.equals(this.effectiveFrom, newPriceAdjustment.effectiveFrom) && + Objects.equals(this.effectiveUntil, newPriceAdjustment.effectiveUntil); + } + + @Override + public int hashCode() { + return Objects.hash(priceType, price, referenceId, calculatedAt, effectiveFrom, effectiveUntil); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NewPriceAdjustment {\n"); + sb.append(" priceType: ").append(toIndentedString(priceType)).append("\n"); + sb.append(" price: ").append(toIndentedString(price)).append("\n"); + sb.append(" referenceId: ").append(toIndentedString(referenceId)).append("\n"); + sb.append(" calculatedAt: ").append(toIndentedString(calculatedAt)).append("\n"); + sb.append(" effectiveFrom: ").append(toIndentedString(effectiveFrom)).append("\n"); + sb.append(" effectiveUntil: ").append(toIndentedString(effectiveUntil)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/NewPriceType.java b/src/main/java/one/talon/model/NewPriceType.java new file mode 100644 index 00000000..c347fbf3 --- /dev/null +++ b/src/main/java/one/talon/model/NewPriceType.java @@ -0,0 +1,194 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * NewPriceType + */ + +public class NewPriceType { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_TITLE = "title"; + @SerializedName(SERIALIZED_NAME_TITLE) + private String title; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; + + public static final String SERIALIZED_NAME_TARGETED_AUDIENCES_IDS = "targetedAudiencesIds"; + @SerializedName(SERIALIZED_NAME_TARGETED_AUDIENCES_IDS) + private List targetedAudiencesIds = null; + + + public NewPriceType name(String name) { + + this.name = name; + return this; + } + + /** + * The API name of the price type. This is an immutable value. + * @return name + **/ + @ApiModelProperty(example = "member", required = true, value = "The API name of the price type. This is an immutable value.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public NewPriceType title(String title) { + + this.title = title; + return this; + } + + /** + * The title of the price type. + * @return title + **/ + @ApiModelProperty(example = "Member Price", required = true, value = "The title of the price type.") + + public String getTitle() { + return title; + } + + + public void setTitle(String title) { + this.title = title; + } + + + public NewPriceType description(String description) { + + this.description = description; + return this; + } + + /** + * The description of the price type. + * @return description + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Price available exclusively to members.", value = "The description of the price type.") + + public String getDescription() { + return description; + } + + + public void setDescription(String description) { + this.description = description; + } + + + public NewPriceType targetedAudiencesIds(List targetedAudiencesIds) { + + this.targetedAudiencesIds = targetedAudiencesIds; + return this; + } + + public NewPriceType addTargetedAudiencesIdsItem(Integer targetedAudiencesIdsItem) { + if (this.targetedAudiencesIds == null) { + this.targetedAudiencesIds = new ArrayList(); + } + this.targetedAudiencesIds.add(targetedAudiencesIdsItem); + return this; + } + + /** + * A list of the IDs of the audiences that are targeted by this price type. + * @return targetedAudiencesIds + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "[1, 2, 3]", value = "A list of the IDs of the audiences that are targeted by this price type.") + + public List getTargetedAudiencesIds() { + return targetedAudiencesIds; + } + + + public void setTargetedAudiencesIds(List targetedAudiencesIds) { + this.targetedAudiencesIds = targetedAudiencesIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NewPriceType newPriceType = (NewPriceType) o; + return Objects.equals(this.name, newPriceType.name) && + Objects.equals(this.title, newPriceType.title) && + Objects.equals(this.description, newPriceType.description) && + Objects.equals(this.targetedAudiencesIds, newPriceType.targetedAudiencesIds); + } + + @Override + public int hashCode() { + return Objects.hash(name, title, description, targetedAudiencesIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NewPriceType {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" targetedAudiencesIds: ").append(toIndentedString(targetedAudiencesIds)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/NewReferral.java b/src/main/java/one/talon/model/NewReferral.java index 54c57482..4309f840 100644 --- a/src/main/java/one/talon/model/NewReferral.java +++ b/src/main/java/one/talon/model/NewReferral.java @@ -40,11 +40,11 @@ public class NewReferral { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Long usageLimit; + private Integer usageLimit; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_ADVOCATE_PROFILE_INTEGRATION_ID = "advocateProfileIntegrationId"; @SerializedName(SERIALIZED_NAME_ADVOCATE_PROFILE_INTEGRATION_ID) @@ -105,7 +105,7 @@ public void setExpiryDate(OffsetDateTime expiryDate) { } - public NewReferral usageLimit(Long usageLimit) { + public NewReferral usageLimit(Integer usageLimit) { this.usageLimit = usageLimit; return this; @@ -120,17 +120,17 @@ public NewReferral usageLimit(Long usageLimit) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. ") - public Long getUsageLimit() { + public Integer getUsageLimit() { return usageLimit; } - public void setUsageLimit(Long usageLimit) { + public void setUsageLimit(Integer usageLimit) { this.usageLimit = usageLimit; } - public NewReferral campaignId(Long campaignId) { + public NewReferral campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -142,12 +142,12 @@ public NewReferral campaignId(Long campaignId) { **/ @ApiModelProperty(example = "78", required = true, value = "ID of the campaign from which the referral received the referral code.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } diff --git a/src/main/java/one/talon/model/NewRevisionVersion.java b/src/main/java/one/talon/model/NewRevisionVersion.java index 14b9ac8f..79759828 100644 --- a/src/main/java/one/talon/model/NewRevisionVersion.java +++ b/src/main/java/one/talon/model/NewRevisionVersion.java @@ -56,7 +56,7 @@ public class NewRevisionVersion { public static final String SERIALIZED_NAME_ACTIVE_RULESET_ID = "activeRulesetId"; @SerializedName(SERIALIZED_NAME_ACTIVE_RULESET_ID) - private Long activeRulesetId; + private Integer activeRulesetId; public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @@ -249,7 +249,7 @@ public void setDescription(String description) { } - public NewRevisionVersion activeRulesetId(Long activeRulesetId) { + public NewRevisionVersion activeRulesetId(Integer activeRulesetId) { this.activeRulesetId = activeRulesetId; return this; @@ -262,12 +262,12 @@ public NewRevisionVersion activeRulesetId(Long activeRulesetId) { @javax.annotation.Nullable @ApiModelProperty(example = "5", value = "The ID of the ruleset this campaign template will use.") - public Long getActiveRulesetId() { + public Integer getActiveRulesetId() { return activeRulesetId; } - public void setActiveRulesetId(Long activeRulesetId) { + public void setActiveRulesetId(Integer activeRulesetId) { this.activeRulesetId = activeRulesetId; } diff --git a/src/main/java/one/talon/model/NewRole.java b/src/main/java/one/talon/model/NewRole.java index 48585f2c..ea2e5a17 100644 --- a/src/main/java/one/talon/model/NewRole.java +++ b/src/main/java/one/talon/model/NewRole.java @@ -45,7 +45,7 @@ public class NewRole { public static final String SERIALIZED_NAME_MEMBERS = "members"; @SerializedName(SERIALIZED_NAME_MEMBERS) - private List members = new ArrayList(); + private List members = new ArrayList(); public NewRole name(String name) { @@ -115,13 +115,13 @@ public void setAcl(String acl) { } - public NewRole members(List members) { + public NewRole members(List members) { this.members = members; return this; } - public NewRole addMembersItem(Long membersItem) { + public NewRole addMembersItem(Integer membersItem) { this.members.add(membersItem); return this; } @@ -132,12 +132,12 @@ public NewRole addMembersItem(Long membersItem) { **/ @ApiModelProperty(example = "[48, 562, 475, 18]", required = true, value = "An array of user identifiers.") - public List getMembers() { + public List getMembers() { return members; } - public void setMembers(List members) { + public void setMembers(List members) { this.members = members; } diff --git a/src/main/java/one/talon/model/NewRoleV2.java b/src/main/java/one/talon/model/NewRoleV2.java index d46e056d..d4ddd1c6 100644 --- a/src/main/java/one/talon/model/NewRoleV2.java +++ b/src/main/java/one/talon/model/NewRoleV2.java @@ -46,7 +46,7 @@ public class NewRoleV2 { public static final String SERIALIZED_NAME_MEMBERS = "members"; @SerializedName(SERIALIZED_NAME_MEMBERS) - private List members = null; + private List members = null; public NewRoleV2 name(String name) { @@ -116,15 +116,15 @@ public void setPermissions(RoleV2Permissions permissions) { } - public NewRoleV2 members(List members) { + public NewRoleV2 members(List members) { this.members = members; return this; } - public NewRoleV2 addMembersItem(Long membersItem) { + public NewRoleV2 addMembersItem(Integer membersItem) { if (this.members == null) { - this.members = new ArrayList(); + this.members = new ArrayList(); } this.members.add(membersItem); return this; @@ -137,12 +137,12 @@ public NewRoleV2 addMembersItem(Long membersItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[10, 12]", value = "A list of user IDs the role is assigned to.") - public List getMembers() { + public List getMembers() { return members; } - public void setMembers(List members) { + public void setMembers(List members) { this.members = members; } diff --git a/src/main/java/one/talon/model/NewSamlConnection.java b/src/main/java/one/talon/model/NewSamlConnection.java index e71dc6df..c950e0ba 100644 --- a/src/main/java/one/talon/model/NewSamlConnection.java +++ b/src/main/java/one/talon/model/NewSamlConnection.java @@ -36,7 +36,7 @@ public class NewSamlConnection { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -89,7 +89,7 @@ public void setX509certificate(String x509certificate) { } - public NewSamlConnection accountId(Long accountId) { + public NewSamlConnection accountId(Integer accountId) { this.accountId = accountId; return this; @@ -101,12 +101,12 @@ public NewSamlConnection accountId(Long accountId) { **/ @ApiModelProperty(example = "3885", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } diff --git a/src/main/java/one/talon/model/NewWebhook.java b/src/main/java/one/talon/model/NewWebhook.java index a98a6e1c..004a0243 100644 --- a/src/main/java/one/talon/model/NewWebhook.java +++ b/src/main/java/one/talon/model/NewWebhook.java @@ -34,7 +34,7 @@ public class NewWebhook { public static final String SERIALIZED_NAME_APPLICATION_IDS = "applicationIds"; @SerializedName(SERIALIZED_NAME_APPLICATION_IDS) - private List applicationIds = new ArrayList(); + private List applicationIds = new ArrayList(); public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) @@ -44,6 +44,10 @@ public class NewWebhook { @SerializedName(SERIALIZED_NAME_DESCRIPTION) private String description; + public static final String SERIALIZED_NAME_DRAFT = "draft"; + @SerializedName(SERIALIZED_NAME_DRAFT) + private Boolean draft; + /** * API method for this webhook. */ @@ -122,13 +126,13 @@ public VerbEnum read(final JsonReader jsonReader) throws IOException { private Boolean enabled; - public NewWebhook applicationIds(List applicationIds) { + public NewWebhook applicationIds(List applicationIds) { this.applicationIds = applicationIds; return this; } - public NewWebhook addApplicationIdsItem(Long applicationIdsItem) { + public NewWebhook addApplicationIdsItem(Integer applicationIdsItem) { this.applicationIds.add(applicationIdsItem); return this; } @@ -139,12 +143,12 @@ public NewWebhook addApplicationIdsItem(Long applicationIdsItem) { **/ @ApiModelProperty(required = true, value = "The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. ") - public List getApplicationIds() { + public List getApplicationIds() { return applicationIds; } - public void setApplicationIds(List applicationIds) { + public void setApplicationIds(List applicationIds) { this.applicationIds = applicationIds; } @@ -194,6 +198,28 @@ public void setDescription(String description) { } + public NewWebhook draft(Boolean draft) { + + this.draft = draft; + return this; + } + + /** + * Indicates if the webhook is a draft. + * @return draft + **/ + @ApiModelProperty(example = "false", required = true, value = "Indicates if the webhook is a draft.") + + public Boolean getDraft() { + return draft; + } + + + public void setDraft(Boolean draft) { + this.draft = draft; + } + + public NewWebhook verb(VerbEnum verb) { this.verb = verb; @@ -349,6 +375,7 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.applicationIds, newWebhook.applicationIds) && Objects.equals(this.title, newWebhook.title) && Objects.equals(this.description, newWebhook.description) && + Objects.equals(this.draft, newWebhook.draft) && Objects.equals(this.verb, newWebhook.verb) && Objects.equals(this.url, newWebhook.url) && Objects.equals(this.headers, newWebhook.headers) && @@ -359,7 +386,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(applicationIds, title, description, verb, url, headers, payload, params, enabled); + return Objects.hash(applicationIds, title, description, draft, verb, url, headers, payload, params, enabled); } @@ -370,6 +397,7 @@ public String toString() { sb.append(" applicationIds: ").append(toIndentedString(applicationIds)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" draft: ").append(toIndentedString(draft)).append("\n"); sb.append(" verb: ").append(toIndentedString(verb)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" headers: ").append(toIndentedString(headers)).append("\n"); diff --git a/src/main/java/one/talon/model/Notification.java b/src/main/java/one/talon/model/Notification.java index 59e74fcd..80345923 100644 --- a/src/main/java/one/talon/model/Notification.java +++ b/src/main/java/one/talon/model/Notification.java @@ -31,7 +31,7 @@ public class Notification { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -42,7 +42,7 @@ public class Notification { private String description; - public Notification id(Long id) { + public Notification id(Integer id) { this.id = id; return this; @@ -54,12 +54,12 @@ public Notification id(Long id) { **/ @ApiModelProperty(required = true, value = "id of the notification.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/src/main/java/one/talon/model/NotificationListItem.java b/src/main/java/one/talon/model/NotificationListItem.java index 9882a2f8..22381dae 100644 --- a/src/main/java/one/talon/model/NotificationListItem.java +++ b/src/main/java/one/talon/model/NotificationListItem.java @@ -31,7 +31,7 @@ public class NotificationListItem { public static final String SERIALIZED_NAME_NOTIFICATION_ID = "notificationId"; @SerializedName(SERIALIZED_NAME_NOTIFICATION_ID) - private Long notificationId; + private Integer notificationId; public static final String SERIALIZED_NAME_NOTIFICATION_NAME = "notificationName"; @SerializedName(SERIALIZED_NAME_NOTIFICATION_NAME) @@ -39,14 +39,14 @@ public class NotificationListItem { public static final String SERIALIZED_NAME_ENTITY_ID = "entityId"; @SerializedName(SERIALIZED_NAME_ENTITY_ID) - private Long entityId; + private Integer entityId; public static final String SERIALIZED_NAME_ENABLED = "enabled"; @SerializedName(SERIALIZED_NAME_ENABLED) private Boolean enabled; - public NotificationListItem notificationId(Long notificationId) { + public NotificationListItem notificationId(Integer notificationId) { this.notificationId = notificationId; return this; @@ -58,12 +58,12 @@ public NotificationListItem notificationId(Long notificationId) { **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the notification.") - public Long getNotificationId() { + public Integer getNotificationId() { return notificationId; } - public void setNotificationId(Long notificationId) { + public void setNotificationId(Integer notificationId) { this.notificationId = notificationId; } @@ -90,7 +90,7 @@ public void setNotificationName(String notificationName) { } - public NotificationListItem entityId(Long entityId) { + public NotificationListItem entityId(Integer entityId) { this.entityId = entityId; return this; @@ -102,12 +102,12 @@ public NotificationListItem entityId(Long entityId) { **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the entity to which this notification belongs. For example, in case of a loyalty notification, this value is the ID of the loyalty program. ") - public Long getEntityId() { + public Integer getEntityId() { return entityId; } - public void setEntityId(Long entityId) { + public void setEntityId(Integer entityId) { this.entityId = entityId; } diff --git a/src/main/java/one/talon/model/OneTimeCode.java b/src/main/java/one/talon/model/OneTimeCode.java index d17694ae..1f29844e 100644 --- a/src/main/java/one/talon/model/OneTimeCode.java +++ b/src/main/java/one/talon/model/OneTimeCode.java @@ -31,11 +31,11 @@ public class OneTimeCode { public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Long userId; + private Integer userId; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_TOKEN = "token"; @SerializedName(SERIALIZED_NAME_TOKEN) @@ -46,7 +46,7 @@ public class OneTimeCode { private String code; - public OneTimeCode userId(Long userId) { + public OneTimeCode userId(Integer userId) { this.userId = userId; return this; @@ -58,17 +58,17 @@ public OneTimeCode userId(Long userId) { **/ @ApiModelProperty(example = "109", required = true, value = "The ID of the user.") - public Long getUserId() { + public Integer getUserId() { return userId; } - public void setUserId(Long userId) { + public void setUserId(Integer userId) { this.userId = userId; } - public OneTimeCode accountId(Long accountId) { + public OneTimeCode accountId(Integer accountId) { this.accountId = accountId; return this; @@ -80,12 +80,12 @@ public OneTimeCode accountId(Long accountId) { **/ @ApiModelProperty(example = "31", required = true, value = "The ID of the account.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } diff --git a/src/main/java/one/talon/model/OutgoingIntegrationConfiguration.java b/src/main/java/one/talon/model/OutgoingIntegrationConfiguration.java index 658958cc..37b1bf80 100644 --- a/src/main/java/one/talon/model/OutgoingIntegrationConfiguration.java +++ b/src/main/java/one/talon/model/OutgoingIntegrationConfiguration.java @@ -31,22 +31,22 @@ public class OutgoingIntegrationConfiguration { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_TYPE_ID = "typeId"; @SerializedName(SERIALIZED_NAME_TYPE_ID) - private Long typeId; + private Integer typeId; public static final String SERIALIZED_NAME_POLICY = "policy"; @SerializedName(SERIALIZED_NAME_POLICY) private Object policy; - public OutgoingIntegrationConfiguration id(Long id) { + public OutgoingIntegrationConfiguration id(Integer id) { this.id = id; return this; @@ -58,17 +58,17 @@ public OutgoingIntegrationConfiguration id(Long id) { **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } - public OutgoingIntegrationConfiguration accountId(Long accountId) { + public OutgoingIntegrationConfiguration accountId(Integer accountId) { this.accountId = accountId; return this; @@ -80,17 +80,17 @@ public OutgoingIntegrationConfiguration accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account to which this configuration belongs.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } - public OutgoingIntegrationConfiguration typeId(Long typeId) { + public OutgoingIntegrationConfiguration typeId(Integer typeId) { this.typeId = typeId; return this; @@ -102,12 +102,12 @@ public OutgoingIntegrationConfiguration typeId(Long typeId) { **/ @ApiModelProperty(example = "12", required = true, value = "The outgoing integration type ID.") - public Long getTypeId() { + public Integer getTypeId() { return typeId; } - public void setTypeId(Long typeId) { + public void setTypeId(Integer typeId) { this.typeId = typeId; } diff --git a/src/main/java/one/talon/model/OutgoingIntegrationTemplate.java b/src/main/java/one/talon/model/OutgoingIntegrationTemplate.java index b3c826c8..01c919fb 100644 --- a/src/main/java/one/talon/model/OutgoingIntegrationTemplate.java +++ b/src/main/java/one/talon/model/OutgoingIntegrationTemplate.java @@ -33,11 +33,11 @@ public class OutgoingIntegrationTemplate { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_INTEGRATION_TYPE = "integrationType"; @SerializedName(SERIALIZED_NAME_INTEGRATION_TYPE) - private Long integrationType; + private Integer integrationType; public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) @@ -117,7 +117,7 @@ public MethodEnum read(final JsonReader jsonReader) throws IOException { private List headers = new ArrayList(); - public OutgoingIntegrationTemplate id(Long id) { + public OutgoingIntegrationTemplate id(Integer id) { this.id = id; return this; @@ -129,17 +129,17 @@ public OutgoingIntegrationTemplate id(Long id) { **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } - public OutgoingIntegrationTemplate integrationType(Long integrationType) { + public OutgoingIntegrationTemplate integrationType(Integer integrationType) { this.integrationType = integrationType; return this; @@ -151,12 +151,12 @@ public OutgoingIntegrationTemplate integrationType(Long integrationType) { **/ @ApiModelProperty(example = "2", required = true, value = "Unique ID of outgoing integration type.") - public Long getIntegrationType() { + public Integer getIntegrationType() { return integrationType; } - public void setIntegrationType(Long integrationType) { + public void setIntegrationType(Integer integrationType) { this.integrationType = integrationType; } diff --git a/src/main/java/one/talon/model/OutgoingIntegrationTemplateWithConfigurationDetails.java b/src/main/java/one/talon/model/OutgoingIntegrationTemplateWithConfigurationDetails.java index 00fbc348..900329a0 100644 --- a/src/main/java/one/talon/model/OutgoingIntegrationTemplateWithConfigurationDetails.java +++ b/src/main/java/one/talon/model/OutgoingIntegrationTemplateWithConfigurationDetails.java @@ -33,11 +33,11 @@ public class OutgoingIntegrationTemplateWithConfigurationDetails { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_INTEGRATION_TYPE = "integrationType"; @SerializedName(SERIALIZED_NAME_INTEGRATION_TYPE) - private Long integrationType; + private Integer integrationType; public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) @@ -121,7 +121,7 @@ public MethodEnum read(final JsonReader jsonReader) throws IOException { private Object policy; - public OutgoingIntegrationTemplateWithConfigurationDetails id(Long id) { + public OutgoingIntegrationTemplateWithConfigurationDetails id(Integer id) { this.id = id; return this; @@ -133,17 +133,17 @@ public OutgoingIntegrationTemplateWithConfigurationDetails id(Long id) { **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } - public OutgoingIntegrationTemplateWithConfigurationDetails integrationType(Long integrationType) { + public OutgoingIntegrationTemplateWithConfigurationDetails integrationType(Integer integrationType) { this.integrationType = integrationType; return this; @@ -155,12 +155,12 @@ public OutgoingIntegrationTemplateWithConfigurationDetails integrationType(Long **/ @ApiModelProperty(example = "2", required = true, value = "Unique ID of outgoing integration type.") - public Long getIntegrationType() { + public Integer getIntegrationType() { return integrationType; } - public void setIntegrationType(Long integrationType) { + public void setIntegrationType(Integer integrationType) { this.integrationType = integrationType; } diff --git a/src/main/java/one/talon/model/OutgoingIntegrationType.java b/src/main/java/one/talon/model/OutgoingIntegrationType.java index 1ef53237..998e9f91 100644 --- a/src/main/java/one/talon/model/OutgoingIntegrationType.java +++ b/src/main/java/one/talon/model/OutgoingIntegrationType.java @@ -31,7 +31,7 @@ public class OutgoingIntegrationType { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -50,7 +50,7 @@ public class OutgoingIntegrationType { private String documentationLink; - public OutgoingIntegrationType id(Long id) { + public OutgoingIntegrationType id(Integer id) { this.id = id; return this; @@ -62,12 +62,12 @@ public OutgoingIntegrationType id(Long id) { **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/src/main/java/one/talon/model/PendingPointsNotificationPolicy.java b/src/main/java/one/talon/model/PendingPointsNotificationPolicy.java index 7b0b1fa9..a8e1f1c0 100644 --- a/src/main/java/one/talon/model/PendingPointsNotificationPolicy.java +++ b/src/main/java/one/talon/model/PendingPointsNotificationPolicy.java @@ -39,7 +39,7 @@ public class PendingPointsNotificationPolicy { public static final String SERIALIZED_NAME_BATCH_SIZE = "batchSize"; @SerializedName(SERIALIZED_NAME_BATCH_SIZE) - private Long batchSize = 1000l; + private Integer batchSize; public PendingPointsNotificationPolicy name(String name) { @@ -87,7 +87,7 @@ public void setBatchingEnabled(Boolean batchingEnabled) { } - public PendingPointsNotificationPolicy batchSize(Long batchSize) { + public PendingPointsNotificationPolicy batchSize(Integer batchSize) { this.batchSize = batchSize; return this; @@ -100,12 +100,12 @@ public PendingPointsNotificationPolicy batchSize(Long batchSize) { @javax.annotation.Nullable @ApiModelProperty(example = "1000", value = "The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.") - public Long getBatchSize() { + public Integer getBatchSize() { return batchSize; } - public void setBatchSize(Long batchSize) { + public void setBatchSize(Integer batchSize) { this.batchSize = batchSize; } diff --git a/src/main/java/one/talon/model/Picklist.java b/src/main/java/one/talon/model/Picklist.java index f2cfb243..03f3db43 100644 --- a/src/main/java/one/talon/model/Picklist.java +++ b/src/main/java/one/talon/model/Picklist.java @@ -34,7 +34,7 @@ public class Picklist { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -101,39 +101,39 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_MODIFIED_BY = "modifiedBy"; @SerializedName(SERIALIZED_NAME_MODIFIED_BY) - private Long modifiedBy; + private Integer modifiedBy; public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Long createdBy; + private Integer createdBy; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_IMPORTED = "imported"; @SerializedName(SERIALIZED_NAME_IMPORTED) private Boolean imported; - public Picklist id(Long id) { + public Picklist id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -209,7 +209,7 @@ public void setValues(List values) { } - public Picklist modifiedBy(Long modifiedBy) { + public Picklist modifiedBy(Integer modifiedBy) { this.modifiedBy = modifiedBy; return this; @@ -222,17 +222,17 @@ public Picklist modifiedBy(Long modifiedBy) { @javax.annotation.Nullable @ApiModelProperty(example = "124", value = "ID of the user who last updated this effect if available.") - public Long getModifiedBy() { + public Integer getModifiedBy() { return modifiedBy; } - public void setModifiedBy(Long modifiedBy) { + public void setModifiedBy(Integer modifiedBy) { this.modifiedBy = modifiedBy; } - public Picklist createdBy(Long createdBy) { + public Picklist createdBy(Integer createdBy) { this.createdBy = createdBy; return this; @@ -244,17 +244,17 @@ public Picklist createdBy(Long createdBy) { **/ @ApiModelProperty(example = "134", required = true, value = "ID of the user who created this effect.") - public Long getCreatedBy() { + public Integer getCreatedBy() { return createdBy; } - public void setCreatedBy(Long createdBy) { + public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } - public Picklist accountId(Long accountId) { + public Picklist accountId(Integer accountId) { this.accountId = accountId; return this; @@ -267,12 +267,12 @@ public Picklist accountId(Long accountId) { @javax.annotation.Nullable @ApiModelProperty(example = "3886", value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } diff --git a/src/main/java/one/talon/model/PriceDetail.java b/src/main/java/one/talon/model/PriceDetail.java new file mode 100644 index 00000000..80ecaf93 --- /dev/null +++ b/src/main/java/one/talon/model/PriceDetail.java @@ -0,0 +1,188 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.UUID; +import org.threeten.bp.OffsetDateTime; + +/** + * PriceDetail + */ + +public class PriceDetail { + public static final String SERIALIZED_NAME_PRICE = "price"; + @SerializedName(SERIALIZED_NAME_PRICE) + private Float price; + + public static final String SERIALIZED_NAME_ADJUSTMENT_REFERENCE_ID = "adjustmentReferenceId"; + @SerializedName(SERIALIZED_NAME_ADJUSTMENT_REFERENCE_ID) + private UUID adjustmentReferenceId; + + public static final String SERIALIZED_NAME_ADJUSTMENT_EFFECTIVE_FROM = "adjustmentEffectiveFrom"; + @SerializedName(SERIALIZED_NAME_ADJUSTMENT_EFFECTIVE_FROM) + private OffsetDateTime adjustmentEffectiveFrom; + + public static final String SERIALIZED_NAME_ADJUSTMENT_EFFECTIVE_UNTIL = "adjustmentEffectiveUntil"; + @SerializedName(SERIALIZED_NAME_ADJUSTMENT_EFFECTIVE_UNTIL) + private OffsetDateTime adjustmentEffectiveUntil; + + + public PriceDetail price(Float price) { + + this.price = price; + return this; + } + + /** + * The value of this price type. + * @return price + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "90.0", value = "The value of this price type.") + + public Float getPrice() { + return price; + } + + + public void setPrice(Float price) { + this.price = price; + } + + + public PriceDetail adjustmentReferenceId(UUID adjustmentReferenceId) { + + this.adjustmentReferenceId = adjustmentReferenceId; + return this; + } + + /** + * The reference identifier of the selected price adjustment for this SKU. + * @return adjustmentReferenceId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "68851723-e6fa-488f-ace9-112581e6c19b", value = "The reference identifier of the selected price adjustment for this SKU.") + + public UUID getAdjustmentReferenceId() { + return adjustmentReferenceId; + } + + + public void setAdjustmentReferenceId(UUID adjustmentReferenceId) { + this.adjustmentReferenceId = adjustmentReferenceId; + } + + + public PriceDetail adjustmentEffectiveFrom(OffsetDateTime adjustmentEffectiveFrom) { + + this.adjustmentEffectiveFrom = adjustmentEffectiveFrom; + return this; + } + + /** + * The date and time from which the price adjustment is effective. + * @return adjustmentEffectiveFrom + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2025-05-25T00:00Z", value = "The date and time from which the price adjustment is effective.") + + public OffsetDateTime getAdjustmentEffectiveFrom() { + return adjustmentEffectiveFrom; + } + + + public void setAdjustmentEffectiveFrom(OffsetDateTime adjustmentEffectiveFrom) { + this.adjustmentEffectiveFrom = adjustmentEffectiveFrom; + } + + + public PriceDetail adjustmentEffectiveUntil(OffsetDateTime adjustmentEffectiveUntil) { + + this.adjustmentEffectiveUntil = adjustmentEffectiveUntil; + return this; + } + + /** + * The date and time until which the price adjustment is effective. + * @return adjustmentEffectiveUntil + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2025-05-30T00:00Z", value = "The date and time until which the price adjustment is effective.") + + public OffsetDateTime getAdjustmentEffectiveUntil() { + return adjustmentEffectiveUntil; + } + + + public void setAdjustmentEffectiveUntil(OffsetDateTime adjustmentEffectiveUntil) { + this.adjustmentEffectiveUntil = adjustmentEffectiveUntil; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PriceDetail priceDetail = (PriceDetail) o; + return Objects.equals(this.price, priceDetail.price) && + Objects.equals(this.adjustmentReferenceId, priceDetail.adjustmentReferenceId) && + Objects.equals(this.adjustmentEffectiveFrom, priceDetail.adjustmentEffectiveFrom) && + Objects.equals(this.adjustmentEffectiveUntil, priceDetail.adjustmentEffectiveUntil); + } + + @Override + public int hashCode() { + return Objects.hash(price, adjustmentReferenceId, adjustmentEffectiveFrom, adjustmentEffectiveUntil); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PriceDetail {\n"); + sb.append(" price: ").append(toIndentedString(price)).append("\n"); + sb.append(" adjustmentReferenceId: ").append(toIndentedString(adjustmentReferenceId)).append("\n"); + sb.append(" adjustmentEffectiveFrom: ").append(toIndentedString(adjustmentEffectiveFrom)).append("\n"); + sb.append(" adjustmentEffectiveUntil: ").append(toIndentedString(adjustmentEffectiveUntil)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/PriceType.java b/src/main/java/one/talon/model/PriceType.java new file mode 100644 index 00000000..c468cd48 --- /dev/null +++ b/src/main/java/one/talon/model/PriceType.java @@ -0,0 +1,337 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.threeten.bp.OffsetDateTime; + +/** + * PriceType + */ + +public class PriceType { + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Integer id; + + public static final String SERIALIZED_NAME_CREATED = "created"; + @SerializedName(SERIALIZED_NAME_CREATED) + private OffsetDateTime created; + + public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; + @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + private Integer accountId; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_TITLE = "title"; + @SerializedName(SERIALIZED_NAME_TITLE) + private String title; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; + + public static final String SERIALIZED_NAME_MODIFIED = "modified"; + @SerializedName(SERIALIZED_NAME_MODIFIED) + private OffsetDateTime modified; + + public static final String SERIALIZED_NAME_SUBSCRIBED_CATALOGS_IDS = "subscribedCatalogsIds"; + @SerializedName(SERIALIZED_NAME_SUBSCRIBED_CATALOGS_IDS) + private List subscribedCatalogsIds = new ArrayList(); + + public static final String SERIALIZED_NAME_TARGETED_AUDIENCES_IDS = "targetedAudiencesIds"; + @SerializedName(SERIALIZED_NAME_TARGETED_AUDIENCES_IDS) + private List targetedAudiencesIds = new ArrayList(); + + + public PriceType id(Integer id) { + + this.id = id; + return this; + } + + /** + * The internal ID of this entity. + * @return id + **/ + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") + + public Integer getId() { + return id; + } + + + public void setId(Integer id) { + this.id = id; + } + + + public PriceType created(OffsetDateTime created) { + + this.created = created; + return this; + } + + /** + * The time this entity was created. + * @return created + **/ + @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") + + public OffsetDateTime getCreated() { + return created; + } + + + public void setCreated(OffsetDateTime created) { + this.created = created; + } + + + public PriceType accountId(Integer accountId) { + + this.accountId = accountId; + return this; + } + + /** + * The ID of the account that owns this price type. + * @return accountId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1", value = "The ID of the account that owns this price type.") + + public Integer getAccountId() { + return accountId; + } + + + public void setAccountId(Integer accountId) { + this.accountId = accountId; + } + + + public PriceType name(String name) { + + this.name = name; + return this; + } + + /** + * The API name of the price type. This is an immutable value. + * @return name + **/ + @ApiModelProperty(example = "member", required = true, value = "The API name of the price type. This is an immutable value.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public PriceType title(String title) { + + this.title = title; + return this; + } + + /** + * The title of the price type. + * @return title + **/ + @ApiModelProperty(example = "Member Price", required = true, value = "The title of the price type.") + + public String getTitle() { + return title; + } + + + public void setTitle(String title) { + this.title = title; + } + + + public PriceType description(String description) { + + this.description = description; + return this; + } + + /** + * The description of the price type. + * @return description + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Price available exclusively to members.", value = "The description of the price type.") + + public String getDescription() { + return description; + } + + + public void setDescription(String description) { + this.description = description; + } + + + public PriceType modified(OffsetDateTime modified) { + + this.modified = modified; + return this; + } + + /** + * The date and time when the price type was last modified. + * @return modified + **/ + @ApiModelProperty(example = "2021-09-12T10:12:42Z", required = true, value = "The date and time when the price type was last modified.") + + public OffsetDateTime getModified() { + return modified; + } + + + public void setModified(OffsetDateTime modified) { + this.modified = modified; + } + + + public PriceType subscribedCatalogsIds(List subscribedCatalogsIds) { + + this.subscribedCatalogsIds = subscribedCatalogsIds; + return this; + } + + public PriceType addSubscribedCatalogsIdsItem(Integer subscribedCatalogsIdsItem) { + this.subscribedCatalogsIds.add(subscribedCatalogsIdsItem); + return this; + } + + /** + * A list of the IDs of the catalogs that are subscribed to this price type. + * @return subscribedCatalogsIds + **/ + @ApiModelProperty(example = "[1, 2, 3]", required = true, value = "A list of the IDs of the catalogs that are subscribed to this price type.") + + public List getSubscribedCatalogsIds() { + return subscribedCatalogsIds; + } + + + public void setSubscribedCatalogsIds(List subscribedCatalogsIds) { + this.subscribedCatalogsIds = subscribedCatalogsIds; + } + + + public PriceType targetedAudiencesIds(List targetedAudiencesIds) { + + this.targetedAudiencesIds = targetedAudiencesIds; + return this; + } + + public PriceType addTargetedAudiencesIdsItem(Integer targetedAudiencesIdsItem) { + this.targetedAudiencesIds.add(targetedAudiencesIdsItem); + return this; + } + + /** + * A list of the IDs of the audiences that are targeted by this price type. + * @return targetedAudiencesIds + **/ + @ApiModelProperty(example = "[1, 2, 3]", required = true, value = "A list of the IDs of the audiences that are targeted by this price type.") + + public List getTargetedAudiencesIds() { + return targetedAudiencesIds; + } + + + public void setTargetedAudiencesIds(List targetedAudiencesIds) { + this.targetedAudiencesIds = targetedAudiencesIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PriceType priceType = (PriceType) o; + return Objects.equals(this.id, priceType.id) && + Objects.equals(this.created, priceType.created) && + Objects.equals(this.accountId, priceType.accountId) && + Objects.equals(this.name, priceType.name) && + Objects.equals(this.title, priceType.title) && + Objects.equals(this.description, priceType.description) && + Objects.equals(this.modified, priceType.modified) && + Objects.equals(this.subscribedCatalogsIds, priceType.subscribedCatalogsIds) && + Objects.equals(this.targetedAudiencesIds, priceType.targetedAudiencesIds); + } + + @Override + public int hashCode() { + return Objects.hash(id, created, accountId, name, title, description, modified, subscribedCatalogsIds, targetedAudiencesIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PriceType {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" created: ").append(toIndentedString(created)).append("\n"); + sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" modified: ").append(toIndentedString(modified)).append("\n"); + sb.append(" subscribedCatalogsIds: ").append(toIndentedString(subscribedCatalogsIds)).append("\n"); + sb.append(" targetedAudiencesIds: ").append(toIndentedString(targetedAudiencesIds)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/ProductSearchMatch.java b/src/main/java/one/talon/model/ProductSearchMatch.java index 3821d9b4..a39bff09 100644 --- a/src/main/java/one/talon/model/ProductSearchMatch.java +++ b/src/main/java/one/talon/model/ProductSearchMatch.java @@ -31,7 +31,7 @@ public class ProductSearchMatch { public static final String SERIALIZED_NAME_PRODUCT_ID = "productId"; @SerializedName(SERIALIZED_NAME_PRODUCT_ID) - private Long productId; + private Integer productId; public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @@ -39,10 +39,10 @@ public class ProductSearchMatch { public static final String SERIALIZED_NAME_PRODUCT_SKU_ID = "productSkuId"; @SerializedName(SERIALIZED_NAME_PRODUCT_SKU_ID) - private Long productSkuId; + private Integer productSkuId; - public ProductSearchMatch productId(Long productId) { + public ProductSearchMatch productId(Integer productId) { this.productId = productId; return this; @@ -55,12 +55,12 @@ public ProductSearchMatch productId(Long productId) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the product.") - public Long getProductId() { + public Integer getProductId() { return productId; } - public void setProductId(Long productId) { + public void setProductId(Integer productId) { this.productId = productId; } @@ -87,7 +87,7 @@ public void setValue(String value) { } - public ProductSearchMatch productSkuId(Long productSkuId) { + public ProductSearchMatch productSkuId(Integer productSkuId) { this.productSkuId = productSkuId; return this; @@ -100,12 +100,12 @@ public ProductSearchMatch productSkuId(Long productSkuId) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the SKU linked to a product. If empty, this is an product.") - public Long getProductSkuId() { + public Integer getProductSkuId() { return productSkuId; } - public void setProductSkuId(Long productSkuId) { + public void setProductSkuId(Integer productSkuId) { this.productSkuId = productSkuId; } diff --git a/src/main/java/one/talon/model/ProductUnitAnalyticsDataPoint.java b/src/main/java/one/talon/model/ProductUnitAnalyticsDataPoint.java index 9d3b4a10..d8b7ec67 100644 --- a/src/main/java/one/talon/model/ProductUnitAnalyticsDataPoint.java +++ b/src/main/java/one/talon/model/ProductUnitAnalyticsDataPoint.java @@ -45,7 +45,7 @@ public class ProductUnitAnalyticsDataPoint { public static final String SERIALIZED_NAME_PRODUCT_ID = "productId"; @SerializedName(SERIALIZED_NAME_PRODUCT_ID) - private Long productId; + private Integer productId; public static final String SERIALIZED_NAME_PRODUCT_NAME = "productName"; @SerializedName(SERIALIZED_NAME_PRODUCT_NAME) @@ -118,7 +118,7 @@ public void setUnitsSold(AnalyticsDataPointWithTrend unitsSold) { } - public ProductUnitAnalyticsDataPoint productId(Long productId) { + public ProductUnitAnalyticsDataPoint productId(Integer productId) { this.productId = productId; return this; @@ -130,12 +130,12 @@ public ProductUnitAnalyticsDataPoint productId(Long productId) { **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the product.") - public Long getProductId() { + public Integer getProductId() { return productId; } - public void setProductId(Long productId) { + public void setProductId(Integer productId) { this.productId = productId; } diff --git a/src/main/java/one/talon/model/ProfileAudiencesChanges.java b/src/main/java/one/talon/model/ProfileAudiencesChanges.java index c3ab2511..732082fb 100644 --- a/src/main/java/one/talon/model/ProfileAudiencesChanges.java +++ b/src/main/java/one/talon/model/ProfileAudiencesChanges.java @@ -33,20 +33,20 @@ public class ProfileAudiencesChanges { public static final String SERIALIZED_NAME_ADDS = "adds"; @SerializedName(SERIALIZED_NAME_ADDS) - private List adds = new ArrayList(); + private List adds = new ArrayList(); public static final String SERIALIZED_NAME_DELETES = "deletes"; @SerializedName(SERIALIZED_NAME_DELETES) - private List deletes = new ArrayList(); + private List deletes = new ArrayList(); - public ProfileAudiencesChanges adds(List adds) { + public ProfileAudiencesChanges adds(List adds) { this.adds = adds; return this; } - public ProfileAudiencesChanges addAddsItem(Long addsItem) { + public ProfileAudiencesChanges addAddsItem(Integer addsItem) { this.adds.add(addsItem); return this; } @@ -57,23 +57,23 @@ public ProfileAudiencesChanges addAddsItem(Long addsItem) { **/ @ApiModelProperty(example = "[2, 4]", required = true, value = "The IDs of the audiences for the customer to join.") - public List getAdds() { + public List getAdds() { return adds; } - public void setAdds(List adds) { + public void setAdds(List adds) { this.adds = adds; } - public ProfileAudiencesChanges deletes(List deletes) { + public ProfileAudiencesChanges deletes(List deletes) { this.deletes = deletes; return this; } - public ProfileAudiencesChanges addDeletesItem(Long deletesItem) { + public ProfileAudiencesChanges addDeletesItem(Integer deletesItem) { this.deletes.add(deletesItem); return this; } @@ -84,12 +84,12 @@ public ProfileAudiencesChanges addDeletesItem(Long deletesItem) { **/ @ApiModelProperty(example = "[7]", required = true, value = "The IDs of the audiences for the customer to leave.") - public List getDeletes() { + public List getDeletes() { return deletes; } - public void setDeletes(List deletes) { + public void setDeletes(List deletes) { this.deletes = deletes; } diff --git a/src/main/java/one/talon/model/RedeemReferralEffectProps.java b/src/main/java/one/talon/model/RedeemReferralEffectProps.java index 9d793dcb..420c3848 100644 --- a/src/main/java/one/talon/model/RedeemReferralEffectProps.java +++ b/src/main/java/one/talon/model/RedeemReferralEffectProps.java @@ -32,14 +32,14 @@ public class RedeemReferralEffectProps { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) private String value; - public RedeemReferralEffectProps id(Long id) { + public RedeemReferralEffectProps id(Integer id) { this.id = id; return this; @@ -51,12 +51,12 @@ public RedeemReferralEffectProps id(Long id) { **/ @ApiModelProperty(required = true, value = "The id of the referral code that was redeemed.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/src/main/java/one/talon/model/Referral.java b/src/main/java/one/talon/model/Referral.java index 335bcefa..34d89756 100644 --- a/src/main/java/one/talon/model/Referral.java +++ b/src/main/java/one/talon/model/Referral.java @@ -32,7 +32,7 @@ public class Referral { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -48,11 +48,11 @@ public class Referral { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Long usageLimit; + private Integer usageLimit; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_ADVOCATE_PROFILE_INTEGRATION_ID = "advocateProfileIntegrationId"; @SerializedName(SERIALIZED_NAME_ADVOCATE_PROFILE_INTEGRATION_ID) @@ -68,7 +68,7 @@ public class Referral { public static final String SERIALIZED_NAME_IMPORT_ID = "importId"; @SerializedName(SERIALIZED_NAME_IMPORT_ID) - private Long importId; + private Integer importId; public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) @@ -76,31 +76,31 @@ public class Referral { public static final String SERIALIZED_NAME_USAGE_COUNTER = "usageCounter"; @SerializedName(SERIALIZED_NAME_USAGE_COUNTER) - private Long usageCounter; + private Integer usageCounter; public static final String SERIALIZED_NAME_BATCH_ID = "batchId"; @SerializedName(SERIALIZED_NAME_BATCH_ID) private String batchId; - public Referral id(Long id) { + public Referral id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -173,7 +173,7 @@ public void setExpiryDate(OffsetDateTime expiryDate) { } - public Referral usageLimit(Long usageLimit) { + public Referral usageLimit(Integer usageLimit) { this.usageLimit = usageLimit; return this; @@ -187,17 +187,17 @@ public Referral usageLimit(Long usageLimit) { **/ @ApiModelProperty(example = "1", required = true, value = "The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. ") - public Long getUsageLimit() { + public Integer getUsageLimit() { return usageLimit; } - public void setUsageLimit(Long usageLimit) { + public void setUsageLimit(Integer usageLimit) { this.usageLimit = usageLimit; } - public Referral campaignId(Long campaignId) { + public Referral campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -209,12 +209,12 @@ public Referral campaignId(Long campaignId) { **/ @ApiModelProperty(example = "78", required = true, value = "ID of the campaign from which the referral received the referral code.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } @@ -287,7 +287,7 @@ public void setAttributes(Object attributes) { } - public Referral importId(Long importId) { + public Referral importId(Integer importId) { this.importId = importId; return this; @@ -300,12 +300,12 @@ public Referral importId(Long importId) { @javax.annotation.Nullable @ApiModelProperty(example = "4", value = "The ID of the Import which created this referral.") - public Long getImportId() { + public Integer getImportId() { return importId; } - public void setImportId(Long importId) { + public void setImportId(Integer importId) { this.importId = importId; } @@ -332,7 +332,7 @@ public void setCode(String code) { } - public Referral usageCounter(Long usageCounter) { + public Referral usageCounter(Integer usageCounter) { this.usageCounter = usageCounter; return this; @@ -344,12 +344,12 @@ public Referral usageCounter(Long usageCounter) { **/ @ApiModelProperty(example = "1", required = true, value = "The number of times this referral code has been successfully used.") - public Long getUsageCounter() { + public Integer getUsageCounter() { return usageCounter; } - public void setUsageCounter(Long usageCounter) { + public void setUsageCounter(Integer usageCounter) { this.usageCounter = usageCounter; } diff --git a/src/main/java/one/talon/model/ReferralConstraints.java b/src/main/java/one/talon/model/ReferralConstraints.java index 56bd3a9d..7a97d365 100644 --- a/src/main/java/one/talon/model/ReferralConstraints.java +++ b/src/main/java/one/talon/model/ReferralConstraints.java @@ -40,7 +40,7 @@ public class ReferralConstraints { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Long usageLimit; + private Integer usageLimit; public ReferralConstraints startDate(OffsetDateTime startDate) { @@ -89,7 +89,7 @@ public void setExpiryDate(OffsetDateTime expiryDate) { } - public ReferralConstraints usageLimit(Long usageLimit) { + public ReferralConstraints usageLimit(Integer usageLimit) { this.usageLimit = usageLimit; return this; @@ -104,12 +104,12 @@ public ReferralConstraints usageLimit(Long usageLimit) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. ") - public Long getUsageLimit() { + public Integer getUsageLimit() { return usageLimit; } - public void setUsageLimit(Long usageLimit) { + public void setUsageLimit(Integer usageLimit) { this.usageLimit = usageLimit; } diff --git a/src/main/java/one/talon/model/ReferralRejectionReason.java b/src/main/java/one/talon/model/ReferralRejectionReason.java index a2907800..54929999 100644 --- a/src/main/java/one/talon/model/ReferralRejectionReason.java +++ b/src/main/java/one/talon/model/ReferralRejectionReason.java @@ -32,11 +32,11 @@ public class ReferralRejectionReason { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_REFERRAL_ID = "referralId"; @SerializedName(SERIALIZED_NAME_REFERRAL_ID) - private Long referralId; + private Integer referralId; /** * Gets or Sets reason @@ -110,7 +110,7 @@ public ReasonEnum read(final JsonReader jsonReader) throws IOException { private ReasonEnum reason; - public ReferralRejectionReason campaignId(Long campaignId) { + public ReferralRejectionReason campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -122,17 +122,17 @@ public ReferralRejectionReason campaignId(Long campaignId) { **/ @ApiModelProperty(required = true, value = "") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } - public ReferralRejectionReason referralId(Long referralId) { + public ReferralRejectionReason referralId(Integer referralId) { this.referralId = referralId; return this; @@ -144,12 +144,12 @@ public ReferralRejectionReason referralId(Long referralId) { **/ @ApiModelProperty(required = true, value = "") - public Long getReferralId() { + public Integer getReferralId() { return referralId; } - public void setReferralId(Long referralId) { + public void setReferralId(Integer referralId) { this.referralId = referralId; } diff --git a/src/main/java/one/talon/model/RejectCouponEffectProps.java b/src/main/java/one/talon/model/RejectCouponEffectProps.java index a1580f46..119cc084 100644 --- a/src/main/java/one/talon/model/RejectCouponEffectProps.java +++ b/src/main/java/one/talon/model/RejectCouponEffectProps.java @@ -40,11 +40,11 @@ public class RejectCouponEffectProps { public static final String SERIALIZED_NAME_CONDITION_INDEX = "conditionIndex"; @SerializedName(SERIALIZED_NAME_CONDITION_INDEX) - private Long conditionIndex; + private Integer conditionIndex; public static final String SERIALIZED_NAME_EFFECT_INDEX = "effectIndex"; @SerializedName(SERIALIZED_NAME_EFFECT_INDEX) - private Long effectIndex; + private Integer effectIndex; public static final String SERIALIZED_NAME_DETAILS = "details"; @SerializedName(SERIALIZED_NAME_DETAILS) @@ -99,7 +99,7 @@ public void setRejectionReason(String rejectionReason) { } - public RejectCouponEffectProps conditionIndex(Long conditionIndex) { + public RejectCouponEffectProps conditionIndex(Integer conditionIndex) { this.conditionIndex = conditionIndex; return this; @@ -112,17 +112,17 @@ public RejectCouponEffectProps conditionIndex(Long conditionIndex) { @javax.annotation.Nullable @ApiModelProperty(value = "The index of the condition that caused the rejection of the coupon.") - public Long getConditionIndex() { + public Integer getConditionIndex() { return conditionIndex; } - public void setConditionIndex(Long conditionIndex) { + public void setConditionIndex(Integer conditionIndex) { this.conditionIndex = conditionIndex; } - public RejectCouponEffectProps effectIndex(Long effectIndex) { + public RejectCouponEffectProps effectIndex(Integer effectIndex) { this.effectIndex = effectIndex; return this; @@ -135,12 +135,12 @@ public RejectCouponEffectProps effectIndex(Long effectIndex) { @javax.annotation.Nullable @ApiModelProperty(value = "The index of the effect that caused the rejection of the coupon.") - public Long getEffectIndex() { + public Integer getEffectIndex() { return effectIndex; } - public void setEffectIndex(Long effectIndex) { + public void setEffectIndex(Integer effectIndex) { this.effectIndex = effectIndex; } diff --git a/src/main/java/one/talon/model/RejectReferralEffectProps.java b/src/main/java/one/talon/model/RejectReferralEffectProps.java index 3d52e323..0f9fd821 100644 --- a/src/main/java/one/talon/model/RejectReferralEffectProps.java +++ b/src/main/java/one/talon/model/RejectReferralEffectProps.java @@ -40,11 +40,11 @@ public class RejectReferralEffectProps { public static final String SERIALIZED_NAME_CONDITION_INDEX = "conditionIndex"; @SerializedName(SERIALIZED_NAME_CONDITION_INDEX) - private Long conditionIndex; + private Integer conditionIndex; public static final String SERIALIZED_NAME_EFFECT_INDEX = "effectIndex"; @SerializedName(SERIALIZED_NAME_EFFECT_INDEX) - private Long effectIndex; + private Integer effectIndex; public static final String SERIALIZED_NAME_DETAILS = "details"; @SerializedName(SERIALIZED_NAME_DETAILS) @@ -99,7 +99,7 @@ public void setRejectionReason(String rejectionReason) { } - public RejectReferralEffectProps conditionIndex(Long conditionIndex) { + public RejectReferralEffectProps conditionIndex(Integer conditionIndex) { this.conditionIndex = conditionIndex; return this; @@ -112,17 +112,17 @@ public RejectReferralEffectProps conditionIndex(Long conditionIndex) { @javax.annotation.Nullable @ApiModelProperty(value = "The index of the condition that caused the rejection of the referral.") - public Long getConditionIndex() { + public Integer getConditionIndex() { return conditionIndex; } - public void setConditionIndex(Long conditionIndex) { + public void setConditionIndex(Integer conditionIndex) { this.conditionIndex = conditionIndex; } - public RejectReferralEffectProps effectIndex(Long effectIndex) { + public RejectReferralEffectProps effectIndex(Integer effectIndex) { this.effectIndex = effectIndex; return this; @@ -135,12 +135,12 @@ public RejectReferralEffectProps effectIndex(Long effectIndex) { @javax.annotation.Nullable @ApiModelProperty(value = "The index of the effect that caused the rejection of the referral.") - public Long getEffectIndex() { + public Integer getEffectIndex() { return effectIndex; } - public void setEffectIndex(Long effectIndex) { + public void setEffectIndex(Integer effectIndex) { this.effectIndex = effectIndex; } diff --git a/src/main/java/one/talon/model/RemoveFromAudienceEffectProps.java b/src/main/java/one/talon/model/RemoveFromAudienceEffectProps.java index 1fd30279..8db1d5d9 100644 --- a/src/main/java/one/talon/model/RemoveFromAudienceEffectProps.java +++ b/src/main/java/one/talon/model/RemoveFromAudienceEffectProps.java @@ -32,7 +32,7 @@ public class RemoveFromAudienceEffectProps { public static final String SERIALIZED_NAME_AUDIENCE_ID = "audienceId"; @SerializedName(SERIALIZED_NAME_AUDIENCE_ID) - private Long audienceId; + private Integer audienceId; public static final String SERIALIZED_NAME_AUDIENCE_NAME = "audienceName"; @SerializedName(SERIALIZED_NAME_AUDIENCE_NAME) @@ -44,10 +44,10 @@ public class RemoveFromAudienceEffectProps { public static final String SERIALIZED_NAME_PROFILE_ID = "profileId"; @SerializedName(SERIALIZED_NAME_PROFILE_ID) - private Long profileId; + private Integer profileId; - public RemoveFromAudienceEffectProps audienceId(Long audienceId) { + public RemoveFromAudienceEffectProps audienceId(Integer audienceId) { this.audienceId = audienceId; return this; @@ -60,12 +60,12 @@ public RemoveFromAudienceEffectProps audienceId(Long audienceId) { @javax.annotation.Nullable @ApiModelProperty(example = "10", value = "The internal ID of the audience.") - public Long getAudienceId() { + public Integer getAudienceId() { return audienceId; } - public void setAudienceId(Long audienceId) { + public void setAudienceId(Integer audienceId) { this.audienceId = audienceId; } @@ -116,7 +116,7 @@ public void setProfileIntegrationId(String profileIntegrationId) { } - public RemoveFromAudienceEffectProps profileId(Long profileId) { + public RemoveFromAudienceEffectProps profileId(Integer profileId) { this.profileId = profileId; return this; @@ -129,12 +129,12 @@ public RemoveFromAudienceEffectProps profileId(Long profileId) { @javax.annotation.Nullable @ApiModelProperty(example = "150", value = "The internal ID of the customer profile.") - public Long getProfileId() { + public Integer getProfileId() { return profileId; } - public void setProfileId(Long profileId) { + public void setProfileId(Integer profileId) { this.profileId = profileId; } diff --git a/src/main/java/one/talon/model/ReturnedCartItem.java b/src/main/java/one/talon/model/ReturnedCartItem.java index f3b1621b..d20485f8 100644 --- a/src/main/java/one/talon/model/ReturnedCartItem.java +++ b/src/main/java/one/talon/model/ReturnedCartItem.java @@ -31,14 +31,14 @@ public class ReturnedCartItem { public static final String SERIALIZED_NAME_POSITION = "position"; @SerializedName(SERIALIZED_NAME_POSITION) - private Long position; + private Integer position; public static final String SERIALIZED_NAME_QUANTITY = "quantity"; @SerializedName(SERIALIZED_NAME_QUANTITY) - private Long quantity; + private Integer quantity; - public ReturnedCartItem position(Long position) { + public ReturnedCartItem position(Integer position) { this.position = position; return this; @@ -50,17 +50,17 @@ public ReturnedCartItem position(Long position) { **/ @ApiModelProperty(example = "2", required = true, value = "The index of the cart item in the provided customer session's `cartItems` property.") - public Long getPosition() { + public Integer getPosition() { return position; } - public void setPosition(Long position) { + public void setPosition(Integer position) { this.position = position; } - public ReturnedCartItem quantity(Long quantity) { + public ReturnedCartItem quantity(Integer quantity) { this.quantity = quantity; return this; @@ -73,12 +73,12 @@ public ReturnedCartItem quantity(Long quantity) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "Number of cart items to return. ") - public Long getQuantity() { + public Integer getQuantity() { return quantity; } - public void setQuantity(Long quantity) { + public void setQuantity(Integer quantity) { this.quantity = quantity; } diff --git a/src/main/java/one/talon/model/Revision.java b/src/main/java/one/talon/model/Revision.java index c7d8a494..6bd243b2 100644 --- a/src/main/java/one/talon/model/Revision.java +++ b/src/main/java/one/talon/model/Revision.java @@ -33,7 +33,7 @@ public class Revision { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_ACTIVATE_AT = "activateAt"; @SerializedName(SERIALIZED_NAME_ACTIVATE_AT) @@ -41,15 +41,15 @@ public class Revision { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -57,7 +57,7 @@ public class Revision { public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Long createdBy; + private Integer createdBy; public static final String SERIALIZED_NAME_ACTIVATED_AT = "activatedAt"; @SerializedName(SERIALIZED_NAME_ACTIVATED_AT) @@ -65,14 +65,14 @@ public class Revision { public static final String SERIALIZED_NAME_ACTIVATED_BY = "activatedBy"; @SerializedName(SERIALIZED_NAME_ACTIVATED_BY) - private Long activatedBy; + private Integer activatedBy; public static final String SERIALIZED_NAME_CURRENT_VERSION = "currentVersion"; @SerializedName(SERIALIZED_NAME_CURRENT_VERSION) private RevisionVersion currentVersion; - public Revision id(Long id) { + public Revision id(Integer id) { this.id = id; return this; @@ -84,12 +84,12 @@ public Revision id(Long id) { **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -117,7 +117,7 @@ public void setActivateAt(OffsetDateTime activateAt) { } - public Revision accountId(Long accountId) { + public Revision accountId(Integer accountId) { this.accountId = accountId; return this; @@ -129,17 +129,17 @@ public Revision accountId(Long accountId) { **/ @ApiModelProperty(required = true, value = "") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } - public Revision applicationId(Long applicationId) { + public Revision applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -151,17 +151,17 @@ public Revision applicationId(Long applicationId) { **/ @ApiModelProperty(required = true, value = "") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } - public Revision campaignId(Long campaignId) { + public Revision campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -173,12 +173,12 @@ public Revision campaignId(Long campaignId) { **/ @ApiModelProperty(required = true, value = "") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } @@ -205,7 +205,7 @@ public void setCreated(OffsetDateTime created) { } - public Revision createdBy(Long createdBy) { + public Revision createdBy(Integer createdBy) { this.createdBy = createdBy; return this; @@ -217,12 +217,12 @@ public Revision createdBy(Long createdBy) { **/ @ApiModelProperty(required = true, value = "") - public Long getCreatedBy() { + public Integer getCreatedBy() { return createdBy; } - public void setCreatedBy(Long createdBy) { + public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } @@ -250,7 +250,7 @@ public void setActivatedAt(OffsetDateTime activatedAt) { } - public Revision activatedBy(Long activatedBy) { + public Revision activatedBy(Integer activatedBy) { this.activatedBy = activatedBy; return this; @@ -263,12 +263,12 @@ public Revision activatedBy(Long activatedBy) { @javax.annotation.Nullable @ApiModelProperty(value = "") - public Long getActivatedBy() { + public Integer getActivatedBy() { return activatedBy; } - public void setActivatedBy(Long activatedBy) { + public void setActivatedBy(Integer activatedBy) { this.activatedBy = activatedBy; } diff --git a/src/main/java/one/talon/model/RevisionActivationRequest.java b/src/main/java/one/talon/model/RevisionActivationRequest.java index a3c7ed72..32759783 100644 --- a/src/main/java/one/talon/model/RevisionActivationRequest.java +++ b/src/main/java/one/talon/model/RevisionActivationRequest.java @@ -34,20 +34,20 @@ public class RevisionActivationRequest { public static final String SERIALIZED_NAME_USER_IDS = "userIds"; @SerializedName(SERIALIZED_NAME_USER_IDS) - private List userIds = new ArrayList(); + private List userIds = new ArrayList(); public static final String SERIALIZED_NAME_ACTIVATE_AT = "activateAt"; @SerializedName(SERIALIZED_NAME_ACTIVATE_AT) private OffsetDateTime activateAt; - public RevisionActivationRequest userIds(List userIds) { + public RevisionActivationRequest userIds(List userIds) { this.userIds = userIds; return this; } - public RevisionActivationRequest addUserIdsItem(Long userIdsItem) { + public RevisionActivationRequest addUserIdsItem(Integer userIdsItem) { this.userIds.add(userIdsItem); return this; } @@ -58,12 +58,12 @@ public RevisionActivationRequest addUserIdsItem(Long userIdsItem) { **/ @ApiModelProperty(example = "[1, 2, 3]", required = true, value = "The list of IDs of the users who will receive the activation request.") - public List getUserIds() { + public List getUserIds() { return userIds; } - public void setUserIds(List userIds) { + public void setUserIds(List userIds) { this.userIds = userIds; } diff --git a/src/main/java/one/talon/model/RevisionVersion.java b/src/main/java/one/talon/model/RevisionVersion.java index 8b08e0aa..9bfb4a12 100644 --- a/src/main/java/one/talon/model/RevisionVersion.java +++ b/src/main/java/one/talon/model/RevisionVersion.java @@ -36,19 +36,19 @@ public class RevisionVersion { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -56,15 +56,15 @@ public class RevisionVersion { public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Long createdBy; + private Integer createdBy; public static final String SERIALIZED_NAME_REVISION_ID = "revisionId"; @SerializedName(SERIALIZED_NAME_REVISION_ID) - private Long revisionId; + private Integer revisionId; public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) - private Long version; + private Integer version; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -88,7 +88,7 @@ public class RevisionVersion { public static final String SERIALIZED_NAME_ACTIVE_RULESET_ID = "activeRulesetId"; @SerializedName(SERIALIZED_NAME_ACTIVE_RULESET_ID) - private Long activeRulesetId; + private Integer activeRulesetId; public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @@ -166,7 +166,7 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { private List features = null; - public RevisionVersion id(Long id) { + public RevisionVersion id(Integer id) { this.id = id; return this; @@ -178,17 +178,17 @@ public RevisionVersion id(Long id) { **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } - public RevisionVersion accountId(Long accountId) { + public RevisionVersion accountId(Integer accountId) { this.accountId = accountId; return this; @@ -200,17 +200,17 @@ public RevisionVersion accountId(Long accountId) { **/ @ApiModelProperty(required = true, value = "") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } - public RevisionVersion applicationId(Long applicationId) { + public RevisionVersion applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -222,17 +222,17 @@ public RevisionVersion applicationId(Long applicationId) { **/ @ApiModelProperty(required = true, value = "") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } - public RevisionVersion campaignId(Long campaignId) { + public RevisionVersion campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -244,12 +244,12 @@ public RevisionVersion campaignId(Long campaignId) { **/ @ApiModelProperty(required = true, value = "") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } @@ -276,7 +276,7 @@ public void setCreated(OffsetDateTime created) { } - public RevisionVersion createdBy(Long createdBy) { + public RevisionVersion createdBy(Integer createdBy) { this.createdBy = createdBy; return this; @@ -288,17 +288,17 @@ public RevisionVersion createdBy(Long createdBy) { **/ @ApiModelProperty(required = true, value = "") - public Long getCreatedBy() { + public Integer getCreatedBy() { return createdBy; } - public void setCreatedBy(Long createdBy) { + public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } - public RevisionVersion revisionId(Long revisionId) { + public RevisionVersion revisionId(Integer revisionId) { this.revisionId = revisionId; return this; @@ -310,17 +310,17 @@ public RevisionVersion revisionId(Long revisionId) { **/ @ApiModelProperty(required = true, value = "") - public Long getRevisionId() { + public Integer getRevisionId() { return revisionId; } - public void setRevisionId(Long revisionId) { + public void setRevisionId(Integer revisionId) { this.revisionId = revisionId; } - public RevisionVersion version(Long version) { + public RevisionVersion version(Integer version) { this.version = version; return this; @@ -332,12 +332,12 @@ public RevisionVersion version(Long version) { **/ @ApiModelProperty(required = true, value = "") - public Long getVersion() { + public Integer getVersion() { return version; } - public void setVersion(Long version) { + public void setVersion(Integer version) { this.version = version; } @@ -457,7 +457,7 @@ public void setDescription(String description) { } - public RevisionVersion activeRulesetId(Long activeRulesetId) { + public RevisionVersion activeRulesetId(Integer activeRulesetId) { this.activeRulesetId = activeRulesetId; return this; @@ -470,12 +470,12 @@ public RevisionVersion activeRulesetId(Long activeRulesetId) { @javax.annotation.Nullable @ApiModelProperty(example = "5", value = "The ID of the ruleset this campaign template will use.") - public Long getActiveRulesetId() { + public Integer getActiveRulesetId() { return activeRulesetId; } - public void setActiveRulesetId(Long activeRulesetId) { + public void setActiveRulesetId(Integer activeRulesetId) { this.activeRulesetId = activeRulesetId; } diff --git a/src/main/java/one/talon/model/Role.java b/src/main/java/one/talon/model/Role.java index 9fdbb90f..322524c4 100644 --- a/src/main/java/one/talon/model/Role.java +++ b/src/main/java/one/talon/model/Role.java @@ -34,7 +34,7 @@ public class Role { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -46,11 +46,11 @@ public class Role { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_CAMPAIGN_GROUP_I_D = "campaignGroupID"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_GROUP_I_D) - private Long campaignGroupID; + private Integer campaignGroupID; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -62,31 +62,31 @@ public class Role { public static final String SERIALIZED_NAME_MEMBERS = "members"; @SerializedName(SERIALIZED_NAME_MEMBERS) - private List members = null; + private List members = null; public static final String SERIALIZED_NAME_ACL = "acl"; @SerializedName(SERIALIZED_NAME_ACL) private Object acl; - public Role id(Long id) { + public Role id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -135,7 +135,7 @@ public void setModified(OffsetDateTime modified) { } - public Role accountId(Long accountId) { + public Role accountId(Integer accountId) { this.accountId = accountId; return this; @@ -147,17 +147,17 @@ public Role accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } - public Role campaignGroupID(Long campaignGroupID) { + public Role campaignGroupID(Integer campaignGroupID) { this.campaignGroupID = campaignGroupID; return this; @@ -170,12 +170,12 @@ public Role campaignGroupID(Long campaignGroupID) { @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the [Campaign Group](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) this role was created for. ") - public Long getCampaignGroupID() { + public Integer getCampaignGroupID() { return campaignGroupID; } - public void setCampaignGroupID(Long campaignGroupID) { + public void setCampaignGroupID(Integer campaignGroupID) { this.campaignGroupID = campaignGroupID; } @@ -225,15 +225,15 @@ public void setDescription(String description) { } - public Role members(List members) { + public Role members(List members) { this.members = members; return this; } - public Role addMembersItem(Long membersItem) { + public Role addMembersItem(Integer membersItem) { if (this.members == null) { - this.members = new ArrayList(); + this.members = new ArrayList(); } this.members.add(membersItem); return this; @@ -246,12 +246,12 @@ public Role addMembersItem(Long membersItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[48, 562, 475, 18]", value = "A list of user identifiers assigned to this role.") - public List getMembers() { + public List getMembers() { return members; } - public void setMembers(List members) { + public void setMembers(List members) { this.members = members; } diff --git a/src/main/java/one/talon/model/RoleAssign.java b/src/main/java/one/talon/model/RoleAssign.java index b1727798..ea565cef 100644 --- a/src/main/java/one/talon/model/RoleAssign.java +++ b/src/main/java/one/talon/model/RoleAssign.java @@ -33,20 +33,20 @@ public class RoleAssign { public static final String SERIALIZED_NAME_USERS = "users"; @SerializedName(SERIALIZED_NAME_USERS) - private List users = new ArrayList(); + private List users = new ArrayList(); public static final String SERIALIZED_NAME_ROLES = "roles"; @SerializedName(SERIALIZED_NAME_ROLES) - private List roles = new ArrayList(); + private List roles = new ArrayList(); - public RoleAssign users(List users) { + public RoleAssign users(List users) { this.users = users; return this; } - public RoleAssign addUsersItem(Long usersItem) { + public RoleAssign addUsersItem(Integer usersItem) { this.users.add(usersItem); return this; } @@ -57,23 +57,23 @@ public RoleAssign addUsersItem(Long usersItem) { **/ @ApiModelProperty(example = "[48, 562, 475, 18]", required = true, value = "An array of user IDs.") - public List getUsers() { + public List getUsers() { return users; } - public void setUsers(List users) { + public void setUsers(List users) { this.users = users; } - public RoleAssign roles(List roles) { + public RoleAssign roles(List roles) { this.roles = roles; return this; } - public RoleAssign addRolesItem(Long rolesItem) { + public RoleAssign addRolesItem(Integer rolesItem) { this.roles.add(rolesItem); return this; } @@ -84,12 +84,12 @@ public RoleAssign addRolesItem(Long rolesItem) { **/ @ApiModelProperty(example = "[128, 147]", required = true, value = "An array of role IDs.") - public List getRoles() { + public List getRoles() { return roles; } - public void setRoles(List roles) { + public void setRoles(List roles) { this.roles = roles; } diff --git a/src/main/java/one/talon/model/RoleMembership.java b/src/main/java/one/talon/model/RoleMembership.java index 8744c61c..6a593436 100644 --- a/src/main/java/one/talon/model/RoleMembership.java +++ b/src/main/java/one/talon/model/RoleMembership.java @@ -31,14 +31,14 @@ public class RoleMembership { public static final String SERIALIZED_NAME_ROLE_I_D = "RoleID"; @SerializedName(SERIALIZED_NAME_ROLE_I_D) - private Long roleID; + private Integer roleID; public static final String SERIALIZED_NAME_USER_I_D = "UserID"; @SerializedName(SERIALIZED_NAME_USER_I_D) - private Long userID; + private Integer userID; - public RoleMembership roleID(Long roleID) { + public RoleMembership roleID(Integer roleID) { this.roleID = roleID; return this; @@ -50,17 +50,17 @@ public RoleMembership roleID(Long roleID) { **/ @ApiModelProperty(required = true, value = "ID of role.") - public Long getRoleID() { + public Integer getRoleID() { return roleID; } - public void setRoleID(Long roleID) { + public void setRoleID(Integer roleID) { this.roleID = roleID; } - public RoleMembership userID(Long userID) { + public RoleMembership userID(Integer userID) { this.userID = userID; return this; @@ -72,12 +72,12 @@ public RoleMembership userID(Long userID) { **/ @ApiModelProperty(required = true, value = "ID of User.") - public Long getUserID() { + public Integer getUserID() { return userID; } - public void setUserID(Long userID) { + public void setUserID(Integer userID) { this.userID = userID; } diff --git a/src/main/java/one/talon/model/RoleV2.java b/src/main/java/one/talon/model/RoleV2.java index ff466ad2..63c217f5 100644 --- a/src/main/java/one/talon/model/RoleV2.java +++ b/src/main/java/one/talon/model/RoleV2.java @@ -35,7 +35,7 @@ public class RoleV2 { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -47,7 +47,7 @@ public class RoleV2 { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -63,27 +63,27 @@ public class RoleV2 { public static final String SERIALIZED_NAME_MEMBERS = "members"; @SerializedName(SERIALIZED_NAME_MEMBERS) - private List members = null; + private List members = null; - public RoleV2 id(Long id) { + public RoleV2 id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -132,7 +132,7 @@ public void setModified(OffsetDateTime modified) { } - public RoleV2 accountId(Long accountId) { + public RoleV2 accountId(Integer accountId) { this.accountId = accountId; return this; @@ -144,12 +144,12 @@ public RoleV2 accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } @@ -223,15 +223,15 @@ public void setPermissions(RoleV2Permissions permissions) { } - public RoleV2 members(List members) { + public RoleV2 members(List members) { this.members = members; return this; } - public RoleV2 addMembersItem(Long membersItem) { + public RoleV2 addMembersItem(Integer membersItem) { if (this.members == null) { - this.members = new ArrayList(); + this.members = new ArrayList(); } this.members.add(membersItem); return this; @@ -244,12 +244,12 @@ public RoleV2 addMembersItem(Long membersItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[10, 12]", value = "A list of user IDs the role is assigned to.") - public List getMembers() { + public List getMembers() { return members; } - public void setMembers(List members) { + public void setMembers(List members) { this.members = members; } diff --git a/src/main/java/one/talon/model/RoleV2Base.java b/src/main/java/one/talon/model/RoleV2Base.java index 6a204d0d..bc573fed 100644 --- a/src/main/java/one/talon/model/RoleV2Base.java +++ b/src/main/java/one/talon/model/RoleV2Base.java @@ -46,7 +46,7 @@ public class RoleV2Base { public static final String SERIALIZED_NAME_MEMBERS = "members"; @SerializedName(SERIALIZED_NAME_MEMBERS) - private List members = null; + private List members = null; public RoleV2Base name(String name) { @@ -118,15 +118,15 @@ public void setPermissions(RoleV2Permissions permissions) { } - public RoleV2Base members(List members) { + public RoleV2Base members(List members) { this.members = members; return this; } - public RoleV2Base addMembersItem(Long membersItem) { + public RoleV2Base addMembersItem(Integer membersItem) { if (this.members == null) { - this.members = new ArrayList(); + this.members = new ArrayList(); } this.members.add(membersItem); return this; @@ -139,12 +139,12 @@ public RoleV2Base addMembersItem(Long membersItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[10, 12]", value = "A list of user IDs the role is assigned to.") - public List getMembers() { + public List getMembers() { return members; } - public void setMembers(List members) { + public void setMembers(List members) { this.members = members; } diff --git a/src/main/java/one/talon/model/RollbackAddedLoyaltyPointsEffectProps.java b/src/main/java/one/talon/model/RollbackAddedLoyaltyPointsEffectProps.java index 6994f1d0..37434eea 100644 --- a/src/main/java/one/talon/model/RollbackAddedLoyaltyPointsEffectProps.java +++ b/src/main/java/one/talon/model/RollbackAddedLoyaltyPointsEffectProps.java @@ -33,7 +33,7 @@ public class RollbackAddedLoyaltyPointsEffectProps { public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; @SerializedName(SERIALIZED_NAME_PROGRAM_ID) - private Long programId; + private Integer programId; public static final String SERIALIZED_NAME_SUB_LEDGER_ID = "subLedgerId"; @SerializedName(SERIALIZED_NAME_SUB_LEDGER_ID) @@ -64,7 +64,7 @@ public class RollbackAddedLoyaltyPointsEffectProps { private String cardIdentifier; - public RollbackAddedLoyaltyPointsEffectProps programId(Long programId) { + public RollbackAddedLoyaltyPointsEffectProps programId(Integer programId) { this.programId = programId; return this; @@ -76,12 +76,12 @@ public RollbackAddedLoyaltyPointsEffectProps programId(Long programId) { **/ @ApiModelProperty(required = true, value = "The ID of the loyalty program where the points were originally added.") - public Long getProgramId() { + public Integer getProgramId() { return programId; } - public void setProgramId(Long programId) { + public void setProgramId(Integer programId) { this.programId = programId; } diff --git a/src/main/java/one/talon/model/RollbackDeductedLoyaltyPointsEffectProps.java b/src/main/java/one/talon/model/RollbackDeductedLoyaltyPointsEffectProps.java index 5a84e447..ebc69efc 100644 --- a/src/main/java/one/talon/model/RollbackDeductedLoyaltyPointsEffectProps.java +++ b/src/main/java/one/talon/model/RollbackDeductedLoyaltyPointsEffectProps.java @@ -34,7 +34,7 @@ public class RollbackDeductedLoyaltyPointsEffectProps { public static final String SERIALIZED_NAME_PROGRAM_ID = "programId"; @SerializedName(SERIALIZED_NAME_PROGRAM_ID) - private Long programId; + private Integer programId; public static final String SERIALIZED_NAME_SUB_LEDGER_ID = "subLedgerId"; @SerializedName(SERIALIZED_NAME_SUB_LEDGER_ID) @@ -65,7 +65,7 @@ public class RollbackDeductedLoyaltyPointsEffectProps { private String cardIdentifier; - public RollbackDeductedLoyaltyPointsEffectProps programId(Long programId) { + public RollbackDeductedLoyaltyPointsEffectProps programId(Integer programId) { this.programId = programId; return this; @@ -77,12 +77,12 @@ public RollbackDeductedLoyaltyPointsEffectProps programId(Long programId) { **/ @ApiModelProperty(required = true, value = "The ID of the loyalty program where these points were reimbursed.") - public Long getProgramId() { + public Integer getProgramId() { return programId; } - public void setProgramId(Long programId) { + public void setProgramId(Integer programId) { this.programId = programId; } diff --git a/src/main/java/one/talon/model/RollbackDiscountEffectProps.java b/src/main/java/one/talon/model/RollbackDiscountEffectProps.java index 2468b56c..da8d213b 100644 --- a/src/main/java/one/talon/model/RollbackDiscountEffectProps.java +++ b/src/main/java/one/talon/model/RollbackDiscountEffectProps.java @@ -49,7 +49,7 @@ public class RollbackDiscountEffectProps { public static final String SERIALIZED_NAME_ADDITIONAL_COST_ID = "additionalCostId"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_COST_ID) - private Long additionalCostId; + private Integer additionalCostId; public static final String SERIALIZED_NAME_ADDITIONAL_COST = "additionalCost"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_COST) @@ -150,7 +150,7 @@ public void setCartItemSubPosition(BigDecimal cartItemSubPosition) { } - public RollbackDiscountEffectProps additionalCostId(Long additionalCostId) { + public RollbackDiscountEffectProps additionalCostId(Integer additionalCostId) { this.additionalCostId = additionalCostId; return this; @@ -163,12 +163,12 @@ public RollbackDiscountEffectProps additionalCostId(Long additionalCostId) { @javax.annotation.Nullable @ApiModelProperty(value = "The ID of the additional cost that was rolled back.") - public Long getAdditionalCostId() { + public Integer getAdditionalCostId() { return additionalCostId; } - public void setAdditionalCostId(Long additionalCostId) { + public void setAdditionalCostId(Integer additionalCostId) { this.additionalCostId = additionalCostId; } diff --git a/src/main/java/one/talon/model/RollbackIncreasedAchievementProgressEffectProps.java b/src/main/java/one/talon/model/RollbackIncreasedAchievementProgressEffectProps.java index 54812185..638f2919 100644 --- a/src/main/java/one/talon/model/RollbackIncreasedAchievementProgressEffectProps.java +++ b/src/main/java/one/talon/model/RollbackIncreasedAchievementProgressEffectProps.java @@ -33,7 +33,7 @@ public class RollbackIncreasedAchievementProgressEffectProps { public static final String SERIALIZED_NAME_ACHIEVEMENT_ID = "achievementId"; @SerializedName(SERIALIZED_NAME_ACHIEVEMENT_ID) - private Long achievementId; + private Integer achievementId; public static final String SERIALIZED_NAME_ACHIEVEMENT_NAME = "achievementName"; @SerializedName(SERIALIZED_NAME_ACHIEVEMENT_NAME) @@ -41,7 +41,7 @@ public class RollbackIncreasedAchievementProgressEffectProps { public static final String SERIALIZED_NAME_PROGRESS_TRACKER_ID = "progressTrackerId"; @SerializedName(SERIALIZED_NAME_PROGRESS_TRACKER_ID) - private Long progressTrackerId; + private Integer progressTrackerId; public static final String SERIALIZED_NAME_DECREASE_PROGRESS_BY = "decreaseProgressBy"; @SerializedName(SERIALIZED_NAME_DECREASE_PROGRESS_BY) @@ -56,7 +56,7 @@ public class RollbackIncreasedAchievementProgressEffectProps { private BigDecimal target; - public RollbackIncreasedAchievementProgressEffectProps achievementId(Long achievementId) { + public RollbackIncreasedAchievementProgressEffectProps achievementId(Integer achievementId) { this.achievementId = achievementId; return this; @@ -68,12 +68,12 @@ public RollbackIncreasedAchievementProgressEffectProps achievementId(Long achiev **/ @ApiModelProperty(example = "10", required = true, value = "The internal ID of the achievement.") - public Long getAchievementId() { + public Integer getAchievementId() { return achievementId; } - public void setAchievementId(Long achievementId) { + public void setAchievementId(Integer achievementId) { this.achievementId = achievementId; } @@ -100,7 +100,7 @@ public void setAchievementName(String achievementName) { } - public RollbackIncreasedAchievementProgressEffectProps progressTrackerId(Long progressTrackerId) { + public RollbackIncreasedAchievementProgressEffectProps progressTrackerId(Integer progressTrackerId) { this.progressTrackerId = progressTrackerId; return this; @@ -112,12 +112,12 @@ public RollbackIncreasedAchievementProgressEffectProps progressTrackerId(Long pr **/ @ApiModelProperty(required = true, value = "The internal ID of the achievement progress tracker.") - public Long getProgressTrackerId() { + public Integer getProgressTrackerId() { return progressTrackerId; } - public void setProgressTrackerId(Long progressTrackerId) { + public void setProgressTrackerId(Integer progressTrackerId) { this.progressTrackerId = progressTrackerId; } diff --git a/src/main/java/one/talon/model/RuleFailureReason.java b/src/main/java/one/talon/model/RuleFailureReason.java index 0b256a86..f721e77b 100644 --- a/src/main/java/one/talon/model/RuleFailureReason.java +++ b/src/main/java/one/talon/model/RuleFailureReason.java @@ -32,7 +32,7 @@ public class RuleFailureReason { public static final String SERIALIZED_NAME_CAMPAIGN_I_D = "campaignID"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_I_D) - private Long campaignID; + private Integer campaignID; public static final String SERIALIZED_NAME_CAMPAIGN_NAME = "campaignName"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_NAME) @@ -40,11 +40,11 @@ public class RuleFailureReason { public static final String SERIALIZED_NAME_RULESET_I_D = "rulesetID"; @SerializedName(SERIALIZED_NAME_RULESET_I_D) - private Long rulesetID; + private Integer rulesetID; public static final String SERIALIZED_NAME_COUPON_I_D = "couponID"; @SerializedName(SERIALIZED_NAME_COUPON_I_D) - private Long couponID; + private Integer couponID; public static final String SERIALIZED_NAME_COUPON_VALUE = "couponValue"; @SerializedName(SERIALIZED_NAME_COUPON_VALUE) @@ -52,7 +52,7 @@ public class RuleFailureReason { public static final String SERIALIZED_NAME_REFERRAL_I_D = "referralID"; @SerializedName(SERIALIZED_NAME_REFERRAL_I_D) - private Long referralID; + private Integer referralID; public static final String SERIALIZED_NAME_REFERRAL_VALUE = "referralValue"; @SerializedName(SERIALIZED_NAME_REFERRAL_VALUE) @@ -60,7 +60,7 @@ public class RuleFailureReason { public static final String SERIALIZED_NAME_RULE_INDEX = "ruleIndex"; @SerializedName(SERIALIZED_NAME_RULE_INDEX) - private Long ruleIndex; + private Integer ruleIndex; public static final String SERIALIZED_NAME_RULE_NAME = "ruleName"; @SerializedName(SERIALIZED_NAME_RULE_NAME) @@ -68,11 +68,11 @@ public class RuleFailureReason { public static final String SERIALIZED_NAME_CONDITION_INDEX = "conditionIndex"; @SerializedName(SERIALIZED_NAME_CONDITION_INDEX) - private Long conditionIndex; + private Integer conditionIndex; public static final String SERIALIZED_NAME_EFFECT_INDEX = "effectIndex"; @SerializedName(SERIALIZED_NAME_EFFECT_INDEX) - private Long effectIndex; + private Integer effectIndex; public static final String SERIALIZED_NAME_DETAILS = "details"; @SerializedName(SERIALIZED_NAME_DETAILS) @@ -80,14 +80,14 @@ public class RuleFailureReason { public static final String SERIALIZED_NAME_EVALUATION_GROUP_I_D = "evaluationGroupID"; @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_I_D) - private Long evaluationGroupID; + private Integer evaluationGroupID; public static final String SERIALIZED_NAME_EVALUATION_GROUP_MODE = "evaluationGroupMode"; @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_MODE) private String evaluationGroupMode; - public RuleFailureReason campaignID(Long campaignID) { + public RuleFailureReason campaignID(Integer campaignID) { this.campaignID = campaignID; return this; @@ -99,12 +99,12 @@ public RuleFailureReason campaignID(Long campaignID) { **/ @ApiModelProperty(required = true, value = "The ID of the campaign that contains the rule that failed.") - public Long getCampaignID() { + public Integer getCampaignID() { return campaignID; } - public void setCampaignID(Long campaignID) { + public void setCampaignID(Integer campaignID) { this.campaignID = campaignID; } @@ -131,7 +131,7 @@ public void setCampaignName(String campaignName) { } - public RuleFailureReason rulesetID(Long rulesetID) { + public RuleFailureReason rulesetID(Integer rulesetID) { this.rulesetID = rulesetID; return this; @@ -143,17 +143,17 @@ public RuleFailureReason rulesetID(Long rulesetID) { **/ @ApiModelProperty(required = true, value = "The ID of the ruleset that contains the rule that failed.") - public Long getRulesetID() { + public Integer getRulesetID() { return rulesetID; } - public void setRulesetID(Long rulesetID) { + public void setRulesetID(Integer rulesetID) { this.rulesetID = rulesetID; } - public RuleFailureReason couponID(Long couponID) { + public RuleFailureReason couponID(Integer couponID) { this.couponID = couponID; return this; @@ -166,12 +166,12 @@ public RuleFailureReason couponID(Long couponID) { @javax.annotation.Nullable @ApiModelProperty(example = "4928", value = "The ID of the coupon that was being evaluated at the time of the rule failure.") - public Long getCouponID() { + public Integer getCouponID() { return couponID; } - public void setCouponID(Long couponID) { + public void setCouponID(Integer couponID) { this.couponID = couponID; } @@ -199,7 +199,7 @@ public void setCouponValue(String couponValue) { } - public RuleFailureReason referralID(Long referralID) { + public RuleFailureReason referralID(Integer referralID) { this.referralID = referralID; return this; @@ -212,12 +212,12 @@ public RuleFailureReason referralID(Long referralID) { @javax.annotation.Nullable @ApiModelProperty(value = "The ID of the referral that was being evaluated at the time of the rule failure.") - public Long getReferralID() { + public Integer getReferralID() { return referralID; } - public void setReferralID(Long referralID) { + public void setReferralID(Integer referralID) { this.referralID = referralID; } @@ -245,7 +245,7 @@ public void setReferralValue(String referralValue) { } - public RuleFailureReason ruleIndex(Long ruleIndex) { + public RuleFailureReason ruleIndex(Integer ruleIndex) { this.ruleIndex = ruleIndex; return this; @@ -257,12 +257,12 @@ public RuleFailureReason ruleIndex(Long ruleIndex) { **/ @ApiModelProperty(required = true, value = "The index of the rule that failed within the ruleset.") - public Long getRuleIndex() { + public Integer getRuleIndex() { return ruleIndex; } - public void setRuleIndex(Long ruleIndex) { + public void setRuleIndex(Integer ruleIndex) { this.ruleIndex = ruleIndex; } @@ -289,7 +289,7 @@ public void setRuleName(String ruleName) { } - public RuleFailureReason conditionIndex(Long conditionIndex) { + public RuleFailureReason conditionIndex(Integer conditionIndex) { this.conditionIndex = conditionIndex; return this; @@ -302,17 +302,17 @@ public RuleFailureReason conditionIndex(Long conditionIndex) { @javax.annotation.Nullable @ApiModelProperty(value = "The index of the condition that failed.") - public Long getConditionIndex() { + public Integer getConditionIndex() { return conditionIndex; } - public void setConditionIndex(Long conditionIndex) { + public void setConditionIndex(Integer conditionIndex) { this.conditionIndex = conditionIndex; } - public RuleFailureReason effectIndex(Long effectIndex) { + public RuleFailureReason effectIndex(Integer effectIndex) { this.effectIndex = effectIndex; return this; @@ -325,12 +325,12 @@ public RuleFailureReason effectIndex(Long effectIndex) { @javax.annotation.Nullable @ApiModelProperty(value = "The index of the effect that failed.") - public Long getEffectIndex() { + public Integer getEffectIndex() { return effectIndex; } - public void setEffectIndex(Long effectIndex) { + public void setEffectIndex(Integer effectIndex) { this.effectIndex = effectIndex; } @@ -358,7 +358,7 @@ public void setDetails(String details) { } - public RuleFailureReason evaluationGroupID(Long evaluationGroupID) { + public RuleFailureReason evaluationGroupID(Integer evaluationGroupID) { this.evaluationGroupID = evaluationGroupID; return this; @@ -371,12 +371,12 @@ public RuleFailureReason evaluationGroupID(Long evaluationGroupID) { @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation).") - public Long getEvaluationGroupID() { + public Integer getEvaluationGroupID() { return evaluationGroupID; } - public void setEvaluationGroupID(Long evaluationGroupID) { + public void setEvaluationGroupID(Integer evaluationGroupID) { this.evaluationGroupID = evaluationGroupID; } diff --git a/src/main/java/one/talon/model/Ruleset.java b/src/main/java/one/talon/model/Ruleset.java index 83a11c8c..27ab38ac 100644 --- a/src/main/java/one/talon/model/Ruleset.java +++ b/src/main/java/one/talon/model/Ruleset.java @@ -36,7 +36,7 @@ public class Ruleset { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -44,7 +44,7 @@ public class Ruleset { public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Long userId; + private Integer userId; public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) @@ -68,35 +68,35 @@ public class Ruleset { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_TEMPLATE_ID = "templateId"; @SerializedName(SERIALIZED_NAME_TEMPLATE_ID) - private Long templateId; + private Integer templateId; public static final String SERIALIZED_NAME_ACTIVATED_AT = "activatedAt"; @SerializedName(SERIALIZED_NAME_ACTIVATED_AT) private OffsetDateTime activatedAt; - public Ruleset id(Long id) { + public Ruleset id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -123,7 +123,7 @@ public void setCreated(OffsetDateTime created) { } - public Ruleset userId(Long userId) { + public Ruleset userId(Integer userId) { this.userId = userId; return this; @@ -135,12 +135,12 @@ public Ruleset userId(Long userId) { **/ @ApiModelProperty(example = "388", required = true, value = "The ID of the user associated with this entity.") - public Long getUserId() { + public Integer getUserId() { return userId; } - public void setUserId(Long userId) { + public void setUserId(Integer userId) { this.userId = userId; } @@ -276,7 +276,7 @@ public void setActivate(Boolean activate) { } - public Ruleset campaignId(Long campaignId) { + public Ruleset campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -289,17 +289,17 @@ public Ruleset campaignId(Long campaignId) { @javax.annotation.Nullable @ApiModelProperty(example = "320", value = "The ID of the campaign that owns this entity.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } - public Ruleset templateId(Long templateId) { + public Ruleset templateId(Integer templateId) { this.templateId = templateId; return this; @@ -312,12 +312,12 @@ public Ruleset templateId(Long templateId) { @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the campaign template that owns this entity.") - public Long getTemplateId() { + public Integer getTemplateId() { return templateId; } - public void setTemplateId(Long templateId) { + public void setTemplateId(Integer templateId) { this.templateId = templateId; } diff --git a/src/main/java/one/talon/model/SamlConnection.java b/src/main/java/one/talon/model/SamlConnection.java index fd37815a..143d524e 100644 --- a/src/main/java/one/talon/model/SamlConnection.java +++ b/src/main/java/one/talon/model/SamlConnection.java @@ -37,7 +37,7 @@ public class SamlConnection { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -69,7 +69,7 @@ public class SamlConnection { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -98,7 +98,7 @@ public void setAssertionConsumerServiceURL(String assertionConsumerServiceURL) { } - public SamlConnection accountId(Long accountId) { + public SamlConnection accountId(Integer accountId) { this.accountId = accountId; return this; @@ -110,12 +110,12 @@ public SamlConnection accountId(Long accountId) { **/ @ApiModelProperty(example = "3885", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } @@ -276,24 +276,24 @@ public void setAudienceURI(String audienceURI) { } - public SamlConnection id(Long id) { + public SamlConnection id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/src/main/java/one/talon/model/SamlLoginEndpoint.java b/src/main/java/one/talon/model/SamlLoginEndpoint.java index 7b08941c..1d28ae0b 100644 --- a/src/main/java/one/talon/model/SamlLoginEndpoint.java +++ b/src/main/java/one/talon/model/SamlLoginEndpoint.java @@ -31,7 +31,7 @@ public class SamlLoginEndpoint { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -42,7 +42,7 @@ public class SamlLoginEndpoint { private String loginURL; - public SamlLoginEndpoint id(Long id) { + public SamlLoginEndpoint id(Integer id) { this.id = id; return this; @@ -54,12 +54,12 @@ public SamlLoginEndpoint id(Long id) { **/ @ApiModelProperty(example = "2", required = true, value = "ID of the SAML login endpoint.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/src/main/java/one/talon/model/ScimBaseGroup.java b/src/main/java/one/talon/model/ScimBaseGroup.java new file mode 100644 index 00000000..0a57c5a2 --- /dev/null +++ b/src/main/java/one/talon/model/ScimBaseGroup.java @@ -0,0 +1,140 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.ScimGroupMember; + +/** + * Define the schema for base fields in a group using the SCIM provisioning protocol. Talon.One uses this schema to create roles. + */ +@ApiModel(description = "Define the schema for base fields in a group using the SCIM provisioning protocol. Talon.One uses this schema to create roles.") + +public class ScimBaseGroup { + public static final String SERIALIZED_NAME_DISPLAY_NAME = "displayName"; + @SerializedName(SERIALIZED_NAME_DISPLAY_NAME) + private String displayName; + + public static final String SERIALIZED_NAME_MEMBERS = "members"; + @SerializedName(SERIALIZED_NAME_MEMBERS) + private List members = null; + + + public ScimBaseGroup displayName(String displayName) { + + this.displayName = displayName; + return this; + } + + /** + * Display name of the group (Talon.One role). + * @return displayName + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Manager", value = "Display name of the group (Talon.One role).") + + public String getDisplayName() { + return displayName; + } + + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + + public ScimBaseGroup members(List members) { + + this.members = members; + return this; + } + + public ScimBaseGroup addMembersItem(ScimGroupMember membersItem) { + if (this.members == null) { + this.members = new ArrayList(); + } + this.members.add(membersItem); + return this; + } + + /** + * List of members to assign to the new Talon.One role. + * @return members + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "List of members to assign to the new Talon.One role.") + + public List getMembers() { + return members; + } + + + public void setMembers(List members) { + this.members = members; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ScimBaseGroup scimBaseGroup = (ScimBaseGroup) o; + return Objects.equals(this.displayName, scimBaseGroup.displayName) && + Objects.equals(this.members, scimBaseGroup.members); + } + + @Override + public int hashCode() { + return Objects.hash(displayName, members); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ScimBaseGroup {\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" members: ").append(toIndentedString(members)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/ScimGroup.java b/src/main/java/one/talon/model/ScimGroup.java new file mode 100644 index 00000000..223e99bd --- /dev/null +++ b/src/main/java/one/talon/model/ScimGroup.java @@ -0,0 +1,168 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.ScimGroupMember; + +/** + * Define the schema for groups created using the SCIM provisioning protocol. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + */ +@ApiModel(description = "Define the schema for groups created using the SCIM provisioning protocol. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role.") + +public class ScimGroup { + public static final String SERIALIZED_NAME_DISPLAY_NAME = "displayName"; + @SerializedName(SERIALIZED_NAME_DISPLAY_NAME) + private String displayName; + + public static final String SERIALIZED_NAME_MEMBERS = "members"; + @SerializedName(SERIALIZED_NAME_MEMBERS) + private List members = null; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + + public ScimGroup displayName(String displayName) { + + this.displayName = displayName; + return this; + } + + /** + * Display name of the group (Talon.One role). + * @return displayName + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Manager", value = "Display name of the group (Talon.One role).") + + public String getDisplayName() { + return displayName; + } + + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + + public ScimGroup members(List members) { + + this.members = members; + return this; + } + + public ScimGroup addMembersItem(ScimGroupMember membersItem) { + if (this.members == null) { + this.members = new ArrayList(); + } + this.members.add(membersItem); + return this; + } + + /** + * List of members to assign to the new Talon.One role. + * @return members + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "List of members to assign to the new Talon.One role.") + + public List getMembers() { + return members; + } + + + public void setMembers(List members) { + this.members = members; + } + + + public ScimGroup id(String id) { + + this.id = id; + return this; + } + + /** + * ID of the group. + * @return id + **/ + @ApiModelProperty(example = "359", required = true, value = "ID of the group.") + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ScimGroup scimGroup = (ScimGroup) o; + return Objects.equals(this.displayName, scimGroup.displayName) && + Objects.equals(this.members, scimGroup.members) && + Objects.equals(this.id, scimGroup.id); + } + + @Override + public int hashCode() { + return Objects.hash(displayName, members, id); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ScimGroup {\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" members: ").append(toIndentedString(members)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/ScimGroupMember.java b/src/main/java/one/talon/model/ScimGroupMember.java new file mode 100644 index 00000000..50766abe --- /dev/null +++ b/src/main/java/one/talon/model/ScimGroupMember.java @@ -0,0 +1,129 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Member of the SCIM group. In Talon.One, the member is a [user](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to a specific role. + */ +@ApiModel(description = "Member of the SCIM group. In Talon.One, the member is a [user](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to a specific role.") + +public class ScimGroupMember { + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private String value; + + public static final String SERIALIZED_NAME_DISPLAY = "display"; + @SerializedName(SERIALIZED_NAME_DISPLAY) + private String display; + + + public ScimGroupMember value(String value) { + + this.value = value; + return this; + } + + /** + * Unique identifier of the member. + * @return value + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "258", value = "Unique identifier of the member.") + + public String getValue() { + return value; + } + + + public void setValue(String value) { + this.value = value; + } + + + public ScimGroupMember display(String display) { + + this.display = display; + return this; + } + + /** + * Identifier of the user. This is usually an email address. + * @return display + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "john.doe@example.com", value = "Identifier of the user. This is usually an email address.") + + public String getDisplay() { + return display; + } + + + public void setDisplay(String display) { + this.display = display; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ScimGroupMember scimGroupMember = (ScimGroupMember) o; + return Objects.equals(this.value, scimGroupMember.value) && + Objects.equals(this.display, scimGroupMember.display); + } + + @Override + public int hashCode() { + return Objects.hash(value, display); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ScimGroupMember {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" display: ").append(toIndentedString(display)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/ScimGroupsListResponse.java b/src/main/java/one/talon/model/ScimGroupsListResponse.java new file mode 100644 index 00000000..746146a5 --- /dev/null +++ b/src/main/java/one/talon/model/ScimGroupsListResponse.java @@ -0,0 +1,173 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.ScimGroup; + +/** + * List of groups created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + */ +@ApiModel(description = "List of groups created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role.") + +public class ScimGroupsListResponse { + public static final String SERIALIZED_NAME_RESOURCES = "Resources"; + @SerializedName(SERIALIZED_NAME_RESOURCES) + private List resources = new ArrayList(); + + public static final String SERIALIZED_NAME_SCHEMAS = "schemas"; + @SerializedName(SERIALIZED_NAME_SCHEMAS) + private List schemas = null; + + public static final String SERIALIZED_NAME_TOTAL_RESULTS = "totalResults"; + @SerializedName(SERIALIZED_NAME_TOTAL_RESULTS) + private Integer totalResults; + + + public ScimGroupsListResponse resources(List resources) { + + this.resources = resources; + return this; + } + + public ScimGroupsListResponse addResourcesItem(ScimGroup resourcesItem) { + this.resources.add(resourcesItem); + return this; + } + + /** + * Get resources + * @return resources + **/ + @ApiModelProperty(required = true, value = "") + + public List getResources() { + return resources; + } + + + public void setResources(List resources) { + this.resources = resources; + } + + + public ScimGroupsListResponse schemas(List schemas) { + + this.schemas = schemas; + return this; + } + + public ScimGroupsListResponse addSchemasItem(String schemasItem) { + if (this.schemas == null) { + this.schemas = new ArrayList(); + } + this.schemas.add(schemasItem); + return this; + } + + /** + * SCIM schema for the given resource. + * @return schemas + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "SCIM schema for the given resource.") + + public List getSchemas() { + return schemas; + } + + + public void setSchemas(List schemas) { + this.schemas = schemas; + } + + + public ScimGroupsListResponse totalResults(Integer totalResults) { + + this.totalResults = totalResults; + return this; + } + + /** + * Number of results in the response. + * @return totalResults + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Number of results in the response.") + + public Integer getTotalResults() { + return totalResults; + } + + + public void setTotalResults(Integer totalResults) { + this.totalResults = totalResults; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ScimGroupsListResponse scimGroupsListResponse = (ScimGroupsListResponse) o; + return Objects.equals(this.resources, scimGroupsListResponse.resources) && + Objects.equals(this.schemas, scimGroupsListResponse.schemas) && + Objects.equals(this.totalResults, scimGroupsListResponse.totalResults); + } + + @Override + public int hashCode() { + return Objects.hash(resources, schemas, totalResults); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ScimGroupsListResponse {\n"); + sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); + sb.append(" schemas: ").append(toIndentedString(schemas)).append("\n"); + sb.append(" totalResults: ").append(toIndentedString(totalResults)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/ScimSchemasListResponse.java b/src/main/java/one/talon/model/ScimSchemasListResponse.java index 92dfb220..90c3bfc9 100644 --- a/src/main/java/one/talon/model/ScimSchemasListResponse.java +++ b/src/main/java/one/talon/model/ScimSchemasListResponse.java @@ -43,7 +43,7 @@ public class ScimSchemasListResponse { public static final String SERIALIZED_NAME_TOTAL_RESULTS = "totalResults"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULTS) - private Long totalResults; + private Integer totalResults; public ScimSchemasListResponse resources(List resources) { @@ -104,7 +104,7 @@ public void setSchemas(List schemas) { } - public ScimSchemasListResponse totalResults(Long totalResults) { + public ScimSchemasListResponse totalResults(Integer totalResults) { this.totalResults = totalResults; return this; @@ -117,12 +117,12 @@ public ScimSchemasListResponse totalResults(Long totalResults) { @javax.annotation.Nullable @ApiModelProperty(value = "Number of total results in the response.") - public Long getTotalResults() { + public Integer getTotalResults() { return totalResults; } - public void setTotalResults(Long totalResults) { + public void setTotalResults(Integer totalResults) { this.totalResults = totalResults; } diff --git a/src/main/java/one/talon/model/ScimServiceProviderConfigResponseBulk.java b/src/main/java/one/talon/model/ScimServiceProviderConfigResponseBulk.java index 62ca1612..e0f8acdd 100644 --- a/src/main/java/one/talon/model/ScimServiceProviderConfigResponseBulk.java +++ b/src/main/java/one/talon/model/ScimServiceProviderConfigResponseBulk.java @@ -32,18 +32,18 @@ public class ScimServiceProviderConfigResponseBulk { public static final String SERIALIZED_NAME_MAX_OPERATIONS = "maxOperations"; @SerializedName(SERIALIZED_NAME_MAX_OPERATIONS) - private Long maxOperations; + private Integer maxOperations; public static final String SERIALIZED_NAME_MAX_PAYLOAD_SIZE = "maxPayloadSize"; @SerializedName(SERIALIZED_NAME_MAX_PAYLOAD_SIZE) - private Long maxPayloadSize; + private Integer maxPayloadSize; public static final String SERIALIZED_NAME_SUPPORTED = "supported"; @SerializedName(SERIALIZED_NAME_SUPPORTED) private Boolean supported; - public ScimServiceProviderConfigResponseBulk maxOperations(Long maxOperations) { + public ScimServiceProviderConfigResponseBulk maxOperations(Integer maxOperations) { this.maxOperations = maxOperations; return this; @@ -56,17 +56,17 @@ public ScimServiceProviderConfigResponseBulk maxOperations(Long maxOperations) { @javax.annotation.Nullable @ApiModelProperty(value = "The maximum number of individual operations that can be included in a single bulk request.") - public Long getMaxOperations() { + public Integer getMaxOperations() { return maxOperations; } - public void setMaxOperations(Long maxOperations) { + public void setMaxOperations(Integer maxOperations) { this.maxOperations = maxOperations; } - public ScimServiceProviderConfigResponseBulk maxPayloadSize(Long maxPayloadSize) { + public ScimServiceProviderConfigResponseBulk maxPayloadSize(Integer maxPayloadSize) { this.maxPayloadSize = maxPayloadSize; return this; @@ -79,12 +79,12 @@ public ScimServiceProviderConfigResponseBulk maxPayloadSize(Long maxPayloadSize) @javax.annotation.Nullable @ApiModelProperty(value = "The maximum size, in bytes, of the entire payload for a bulk operation request.") - public Long getMaxPayloadSize() { + public Integer getMaxPayloadSize() { return maxPayloadSize; } - public void setMaxPayloadSize(Long maxPayloadSize) { + public void setMaxPayloadSize(Integer maxPayloadSize) { this.maxPayloadSize = maxPayloadSize; } diff --git a/src/main/java/one/talon/model/ScimServiceProviderConfigResponseFilter.java b/src/main/java/one/talon/model/ScimServiceProviderConfigResponseFilter.java index 7db0c4b6..8834ed1c 100644 --- a/src/main/java/one/talon/model/ScimServiceProviderConfigResponseFilter.java +++ b/src/main/java/one/talon/model/ScimServiceProviderConfigResponseFilter.java @@ -32,14 +32,14 @@ public class ScimServiceProviderConfigResponseFilter { public static final String SERIALIZED_NAME_MAX_RESULTS = "maxResults"; @SerializedName(SERIALIZED_NAME_MAX_RESULTS) - private Long maxResults; + private Integer maxResults; public static final String SERIALIZED_NAME_SUPPORTED = "supported"; @SerializedName(SERIALIZED_NAME_SUPPORTED) private Boolean supported; - public ScimServiceProviderConfigResponseFilter maxResults(Long maxResults) { + public ScimServiceProviderConfigResponseFilter maxResults(Integer maxResults) { this.maxResults = maxResults; return this; @@ -52,12 +52,12 @@ public ScimServiceProviderConfigResponseFilter maxResults(Long maxResults) { @javax.annotation.Nullable @ApiModelProperty(value = "The maximum number of resources that can be returned in a single filtered query response.") - public Long getMaxResults() { + public Integer getMaxResults() { return maxResults; } - public void setMaxResults(Long maxResults) { + public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } diff --git a/src/main/java/one/talon/model/ScimUsersListResponse.java b/src/main/java/one/talon/model/ScimUsersListResponse.java index 31bb9f48..d88c5819 100644 --- a/src/main/java/one/talon/model/ScimUsersListResponse.java +++ b/src/main/java/one/talon/model/ScimUsersListResponse.java @@ -43,7 +43,7 @@ public class ScimUsersListResponse { public static final String SERIALIZED_NAME_TOTAL_RESULTS = "totalResults"; @SerializedName(SERIALIZED_NAME_TOTAL_RESULTS) - private Long totalResults; + private Integer totalResults; public ScimUsersListResponse resources(List resources) { @@ -104,7 +104,7 @@ public void setSchemas(List schemas) { } - public ScimUsersListResponse totalResults(Long totalResults) { + public ScimUsersListResponse totalResults(Integer totalResults) { this.totalResults = totalResults; return this; @@ -117,12 +117,12 @@ public ScimUsersListResponse totalResults(Long totalResults) { @javax.annotation.Nullable @ApiModelProperty(value = "Number of total results in the response.") - public Long getTotalResults() { + public Integer getTotalResults() { return totalResults; } - public void setTotalResults(Long totalResults) { + public void setTotalResults(Integer totalResults) { this.totalResults = totalResults; } diff --git a/src/main/java/one/talon/model/Session.java b/src/main/java/one/talon/model/Session.java index 51d2a424..cd7f9c89 100644 --- a/src/main/java/one/talon/model/Session.java +++ b/src/main/java/one/talon/model/Session.java @@ -32,7 +32,7 @@ public class Session { public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Long userId; + private Integer userId; public static final String SERIALIZED_NAME_TOKEN = "token"; @SerializedName(SERIALIZED_NAME_TOKEN) @@ -43,7 +43,7 @@ public class Session { private OffsetDateTime created; - public Session userId(Long userId) { + public Session userId(Integer userId) { this.userId = userId; return this; @@ -55,12 +55,12 @@ public Session userId(Long userId) { **/ @ApiModelProperty(example = "109", required = true, value = "The ID of the user of this session.") - public Long getUserId() { + public Integer getUserId() { return userId; } - public void setUserId(Long userId) { + public void setUserId(Integer userId) { this.userId = userId; } diff --git a/src/main/java/one/talon/model/SetDiscountPerAdditionalCostEffectProps.java b/src/main/java/one/talon/model/SetDiscountPerAdditionalCostEffectProps.java index da03d3d1..00992707 100644 --- a/src/main/java/one/talon/model/SetDiscountPerAdditionalCostEffectProps.java +++ b/src/main/java/one/talon/model/SetDiscountPerAdditionalCostEffectProps.java @@ -37,7 +37,7 @@ public class SetDiscountPerAdditionalCostEffectProps { public static final String SERIALIZED_NAME_ADDITIONAL_COST_ID = "additionalCostId"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_COST_ID) - private Long additionalCostId; + private Integer additionalCostId; public static final String SERIALIZED_NAME_ADDITIONAL_COST = "additionalCost"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_COST) @@ -74,7 +74,7 @@ public void setName(String name) { } - public SetDiscountPerAdditionalCostEffectProps additionalCostId(Long additionalCostId) { + public SetDiscountPerAdditionalCostEffectProps additionalCostId(Integer additionalCostId) { this.additionalCostId = additionalCostId; return this; @@ -86,12 +86,12 @@ public SetDiscountPerAdditionalCostEffectProps additionalCostId(Long additionalC **/ @ApiModelProperty(required = true, value = "The ID of the additional cost.") - public Long getAdditionalCostId() { + public Integer getAdditionalCostId() { return additionalCostId; } - public void setAdditionalCostId(Long additionalCostId) { + public void setAdditionalCostId(Integer additionalCostId) { this.additionalCostId = additionalCostId; } diff --git a/src/main/java/one/talon/model/SetDiscountPerAdditionalCostPerItemEffectProps.java b/src/main/java/one/talon/model/SetDiscountPerAdditionalCostPerItemEffectProps.java index 998cb728..f8895d68 100644 --- a/src/main/java/one/talon/model/SetDiscountPerAdditionalCostPerItemEffectProps.java +++ b/src/main/java/one/talon/model/SetDiscountPerAdditionalCostPerItemEffectProps.java @@ -37,7 +37,7 @@ public class SetDiscountPerAdditionalCostPerItemEffectProps { public static final String SERIALIZED_NAME_ADDITIONAL_COST_ID = "additionalCostId"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_COST_ID) - private Long additionalCostId; + private Integer additionalCostId; public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @@ -82,7 +82,7 @@ public void setName(String name) { } - public SetDiscountPerAdditionalCostPerItemEffectProps additionalCostId(Long additionalCostId) { + public SetDiscountPerAdditionalCostPerItemEffectProps additionalCostId(Integer additionalCostId) { this.additionalCostId = additionalCostId; return this; @@ -94,12 +94,12 @@ public SetDiscountPerAdditionalCostPerItemEffectProps additionalCostId(Long addi **/ @ApiModelProperty(required = true, value = "The ID of the additional cost.") - public Long getAdditionalCostId() { + public Integer getAdditionalCostId() { return additionalCostId; } - public void setAdditionalCostId(Long additionalCostId) { + public void setAdditionalCostId(Integer additionalCostId) { this.additionalCostId = additionalCostId; } diff --git a/src/main/java/one/talon/model/SetDiscountPerItemEffectProps.java b/src/main/java/one/talon/model/SetDiscountPerItemEffectProps.java index a7229f4b..98d64694 100644 --- a/src/main/java/one/talon/model/SetDiscountPerItemEffectProps.java +++ b/src/main/java/one/talon/model/SetDiscountPerItemEffectProps.java @@ -65,7 +65,7 @@ public class SetDiscountPerItemEffectProps { public static final String SERIALIZED_NAME_BUNDLE_INDEX = "bundleIndex"; @SerializedName(SERIALIZED_NAME_BUNDLE_INDEX) - private Long bundleIndex; + private Integer bundleIndex; public static final String SERIALIZED_NAME_BUNDLE_NAME = "bundleName"; @SerializedName(SERIALIZED_NAME_BUNDLE_NAME) @@ -261,7 +261,7 @@ public void setDesiredTotalDiscount(BigDecimal desiredTotalDiscount) { } - public SetDiscountPerItemEffectProps bundleIndex(Long bundleIndex) { + public SetDiscountPerItemEffectProps bundleIndex(Integer bundleIndex) { this.bundleIndex = bundleIndex; return this; @@ -274,12 +274,12 @@ public SetDiscountPerItemEffectProps bundleIndex(Long bundleIndex) { @javax.annotation.Nullable @ApiModelProperty(value = "The position of the bundle in a list of item bundles created from the same bundle definition.") - public Long getBundleIndex() { + public Integer getBundleIndex() { return bundleIndex; } - public void setBundleIndex(Long bundleIndex) { + public void setBundleIndex(Integer bundleIndex) { this.bundleIndex = bundleIndex; } diff --git a/src/main/java/one/talon/model/Store.java b/src/main/java/one/talon/model/Store.java index f038366d..d0bfe1cb 100644 --- a/src/main/java/one/talon/model/Store.java +++ b/src/main/java/one/talon/model/Store.java @@ -34,7 +34,7 @@ public class Store { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -58,7 +58,7 @@ public class Store { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_UPDATED = "updated"; @SerializedName(SERIALIZED_NAME_UPDATED) @@ -66,27 +66,27 @@ public class Store { public static final String SERIALIZED_NAME_LINKED_CAMPAIGN_IDS = "linkedCampaignIds"; @SerializedName(SERIALIZED_NAME_LINKED_CAMPAIGN_IDS) - private List linkedCampaignIds = null; + private List linkedCampaignIds = null; - public Store id(Long id) { + public Store id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -202,7 +202,7 @@ public void setIntegrationId(String integrationId) { } - public Store applicationId(Long applicationId) { + public Store applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -214,12 +214,12 @@ public Store applicationId(Long applicationId) { **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } @@ -246,15 +246,15 @@ public void setUpdated(OffsetDateTime updated) { } - public Store linkedCampaignIds(List linkedCampaignIds) { + public Store linkedCampaignIds(List linkedCampaignIds) { this.linkedCampaignIds = linkedCampaignIds; return this; } - public Store addLinkedCampaignIdsItem(Long linkedCampaignIdsItem) { + public Store addLinkedCampaignIdsItem(Integer linkedCampaignIdsItem) { if (this.linkedCampaignIds == null) { - this.linkedCampaignIds = new ArrayList(); + this.linkedCampaignIds = new ArrayList(); } this.linkedCampaignIds.add(linkedCampaignIdsItem); return this; @@ -267,12 +267,12 @@ public Store addLinkedCampaignIdsItem(Long linkedCampaignIdsItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[4, 6, 8]", value = "A list of IDs of the campaigns that are linked with current store.") - public List getLinkedCampaignIds() { + public List getLinkedCampaignIds() { return linkedCampaignIds; } - public void setLinkedCampaignIds(List linkedCampaignIds) { + public void setLinkedCampaignIds(List linkedCampaignIds) { this.linkedCampaignIds = linkedCampaignIds; } diff --git a/src/main/java/one/talon/model/StrikethroughChangedItem.java b/src/main/java/one/talon/model/StrikethroughChangedItem.java index 54f2277a..25ec1c4b 100644 --- a/src/main/java/one/talon/model/StrikethroughChangedItem.java +++ b/src/main/java/one/talon/model/StrikethroughChangedItem.java @@ -37,11 +37,11 @@ public class StrikethroughChangedItem { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CATALOG_ID = "catalogId"; @SerializedName(SERIALIZED_NAME_CATALOG_ID) - private Long catalogId; + private Integer catalogId; public static final String SERIALIZED_NAME_SKU = "sku"; @SerializedName(SERIALIZED_NAME_SKU) @@ -49,7 +49,7 @@ public class StrikethroughChangedItem { public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) - private Long version; + private Integer version; public static final String SERIALIZED_NAME_PRICE = "price"; @SerializedName(SERIALIZED_NAME_PRICE) @@ -64,7 +64,7 @@ public class StrikethroughChangedItem { private List effects = null; - public StrikethroughChangedItem id(Long id) { + public StrikethroughChangedItem id(Integer id) { this.id = id; return this; @@ -76,17 +76,17 @@ public StrikethroughChangedItem id(Long id) { **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the event that triggered the strikethrough labeling.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } - public StrikethroughChangedItem catalogId(Long catalogId) { + public StrikethroughChangedItem catalogId(Integer catalogId) { this.catalogId = catalogId; return this; @@ -98,12 +98,12 @@ public StrikethroughChangedItem catalogId(Long catalogId) { **/ @ApiModelProperty(example = "10", required = true, value = "The ID of the catalog that the changed item belongs to.") - public Long getCatalogId() { + public Integer getCatalogId() { return catalogId; } - public void setCatalogId(Long catalogId) { + public void setCatalogId(Integer catalogId) { this.catalogId = catalogId; } @@ -130,7 +130,7 @@ public void setSku(String sku) { } - public StrikethroughChangedItem version(Long version) { + public StrikethroughChangedItem version(Integer version) { this.version = version; return this; @@ -143,12 +143,12 @@ public StrikethroughChangedItem version(Long version) { **/ @ApiModelProperty(example = "6", required = true, value = "The version of the changed item.") - public Long getVersion() { + public Integer getVersion() { return version; } - public void setVersion(Long version) { + public void setVersion(Integer version) { this.version = version; } diff --git a/src/main/java/one/talon/model/StrikethroughCustomEffectPerItemProps.java b/src/main/java/one/talon/model/StrikethroughCustomEffectPerItemProps.java index ee6dda6d..07b26055 100644 --- a/src/main/java/one/talon/model/StrikethroughCustomEffectPerItemProps.java +++ b/src/main/java/one/talon/model/StrikethroughCustomEffectPerItemProps.java @@ -32,7 +32,7 @@ public class StrikethroughCustomEffectPerItemProps { public static final String SERIALIZED_NAME_EFFECT_ID = "effectId"; @SerializedName(SERIALIZED_NAME_EFFECT_ID) - private Long effectId; + private Integer effectId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -43,7 +43,7 @@ public class StrikethroughCustomEffectPerItemProps { private Object payload; - public StrikethroughCustomEffectPerItemProps effectId(Long effectId) { + public StrikethroughCustomEffectPerItemProps effectId(Integer effectId) { this.effectId = effectId; return this; @@ -55,12 +55,12 @@ public StrikethroughCustomEffectPerItemProps effectId(Long effectId) { **/ @ApiModelProperty(example = "1", required = true, value = "ID of the effect.") - public Long getEffectId() { + public Integer getEffectId() { return effectId; } - public void setEffectId(Long effectId) { + public void setEffectId(Integer effectId) { this.effectId = effectId; } diff --git a/src/main/java/one/talon/model/StrikethroughDebugResponse.java b/src/main/java/one/talon/model/StrikethroughDebugResponse.java index 342cf517..c3addaa2 100644 --- a/src/main/java/one/talon/model/StrikethroughDebugResponse.java +++ b/src/main/java/one/talon/model/StrikethroughDebugResponse.java @@ -34,22 +34,22 @@ public class StrikethroughDebugResponse { public static final String SERIALIZED_NAME_CAMPAIGNS_I_DS = "campaignsIDs"; @SerializedName(SERIALIZED_NAME_CAMPAIGNS_I_DS) - private List campaignsIDs = null; + private List campaignsIDs = null; public static final String SERIALIZED_NAME_EFFECTS = "effects"; @SerializedName(SERIALIZED_NAME_EFFECTS) private List effects = null; - public StrikethroughDebugResponse campaignsIDs(List campaignsIDs) { + public StrikethroughDebugResponse campaignsIDs(List campaignsIDs) { this.campaignsIDs = campaignsIDs; return this; } - public StrikethroughDebugResponse addCampaignsIDsItem(Long campaignsIDsItem) { + public StrikethroughDebugResponse addCampaignsIDsItem(Integer campaignsIDsItem) { if (this.campaignsIDs == null) { - this.campaignsIDs = new ArrayList(); + this.campaignsIDs = new ArrayList(); } this.campaignsIDs.add(campaignsIDsItem); return this; @@ -62,12 +62,12 @@ public StrikethroughDebugResponse addCampaignsIDsItem(Long campaignsIDsItem) { @javax.annotation.Nullable @ApiModelProperty(value = "The campaign IDs that got fetched for the evaluation process.") - public List getCampaignsIDs() { + public List getCampaignsIDs() { return campaignsIDs; } - public void setCampaignsIDs(List campaignsIDs) { + public void setCampaignsIDs(List campaignsIDs) { this.campaignsIDs = campaignsIDs; } diff --git a/src/main/java/one/talon/model/StrikethroughEffect.java b/src/main/java/one/talon/model/StrikethroughEffect.java index 8e090272..67d3e502 100644 --- a/src/main/java/one/talon/model/StrikethroughEffect.java +++ b/src/main/java/one/talon/model/StrikethroughEffect.java @@ -33,15 +33,15 @@ public class StrikethroughEffect { public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_RULESET_ID = "rulesetId"; @SerializedName(SERIALIZED_NAME_RULESET_ID) - private Long rulesetId; + private Integer rulesetId; public static final String SERIALIZED_NAME_RULE_INDEX = "ruleIndex"; @SerializedName(SERIALIZED_NAME_RULE_INDEX) - private Long ruleIndex; + private Integer ruleIndex; public static final String SERIALIZED_NAME_RULE_NAME = "ruleName"; @SerializedName(SERIALIZED_NAME_RULE_NAME) @@ -64,7 +64,7 @@ public class StrikethroughEffect { private OffsetDateTime endTime; - public StrikethroughEffect campaignId(Long campaignId) { + public StrikethroughEffect campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -76,17 +76,17 @@ public StrikethroughEffect campaignId(Long campaignId) { **/ @ApiModelProperty(example = "3", required = true, value = "The ID of the campaign that effect belongs to.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } - public StrikethroughEffect rulesetId(Long rulesetId) { + public StrikethroughEffect rulesetId(Integer rulesetId) { this.rulesetId = rulesetId; return this; @@ -98,17 +98,17 @@ public StrikethroughEffect rulesetId(Long rulesetId) { **/ @ApiModelProperty(example = "11", required = true, value = "The ID of the ruleset containing the rule that triggered this effect.") - public Long getRulesetId() { + public Integer getRulesetId() { return rulesetId; } - public void setRulesetId(Long rulesetId) { + public void setRulesetId(Integer rulesetId) { this.rulesetId = rulesetId; } - public StrikethroughEffect ruleIndex(Long ruleIndex) { + public StrikethroughEffect ruleIndex(Integer ruleIndex) { this.ruleIndex = ruleIndex; return this; @@ -120,12 +120,12 @@ public StrikethroughEffect ruleIndex(Long ruleIndex) { **/ @ApiModelProperty(example = "2", required = true, value = "The position of the rule that triggered this effect within the ruleset.") - public Long getRuleIndex() { + public Integer getRuleIndex() { return ruleIndex; } - public void setRuleIndex(Long ruleIndex) { + public void setRuleIndex(Integer ruleIndex) { this.ruleIndex = ruleIndex; } diff --git a/src/main/java/one/talon/model/StrikethroughLabelingNotification.java b/src/main/java/one/talon/model/StrikethroughLabelingNotification.java index fb6f01d8..c78f3905 100644 --- a/src/main/java/one/talon/model/StrikethroughLabelingNotification.java +++ b/src/main/java/one/talon/model/StrikethroughLabelingNotification.java @@ -90,15 +90,15 @@ public VersionEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_CURRENT_BATCH = "currentBatch"; @SerializedName(SERIALIZED_NAME_CURRENT_BATCH) - private Long currentBatch; + private Integer currentBatch; public static final String SERIALIZED_NAME_TOTAL_BATCHES = "totalBatches"; @SerializedName(SERIALIZED_NAME_TOTAL_BATCHES) - private Long totalBatches; + private Integer totalBatches; public static final String SERIALIZED_NAME_TRIGGER = "trigger"; @SerializedName(SERIALIZED_NAME_TRIGGER) @@ -155,7 +155,7 @@ public void setValidFrom(OffsetDateTime validFrom) { } - public StrikethroughLabelingNotification applicationId(Long applicationId) { + public StrikethroughLabelingNotification applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -167,17 +167,17 @@ public StrikethroughLabelingNotification applicationId(Long applicationId) { **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application to which the catalog items labels belongs.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } - public StrikethroughLabelingNotification currentBatch(Long currentBatch) { + public StrikethroughLabelingNotification currentBatch(Integer currentBatch) { this.currentBatch = currentBatch; return this; @@ -189,17 +189,17 @@ public StrikethroughLabelingNotification currentBatch(Long currentBatch) { **/ @ApiModelProperty(example = "1", required = true, value = "The batch number of the notification. Notifications might be sent in different batches.") - public Long getCurrentBatch() { + public Integer getCurrentBatch() { return currentBatch; } - public void setCurrentBatch(Long currentBatch) { + public void setCurrentBatch(Integer currentBatch) { this.currentBatch = currentBatch; } - public StrikethroughLabelingNotification totalBatches(Long totalBatches) { + public StrikethroughLabelingNotification totalBatches(Integer totalBatches) { this.totalBatches = totalBatches; return this; @@ -211,12 +211,12 @@ public StrikethroughLabelingNotification totalBatches(Long totalBatches) { **/ @ApiModelProperty(example = "10", required = true, value = "The total number of batches for the notification.") - public Long getTotalBatches() { + public Integer getTotalBatches() { return totalBatches; } - public void setTotalBatches(Long totalBatches) { + public void setTotalBatches(Integer totalBatches) { this.totalBatches = totalBatches; } diff --git a/src/main/java/one/talon/model/StrikethroughTrigger.java b/src/main/java/one/talon/model/StrikethroughTrigger.java index aba34880..d877a66c 100644 --- a/src/main/java/one/talon/model/StrikethroughTrigger.java +++ b/src/main/java/one/talon/model/StrikethroughTrigger.java @@ -33,7 +33,7 @@ public class StrikethroughTrigger { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -52,7 +52,7 @@ public class StrikethroughTrigger { private Object payload; - public StrikethroughTrigger id(Long id) { + public StrikethroughTrigger id(Integer id) { this.id = id; return this; @@ -64,12 +64,12 @@ public StrikethroughTrigger id(Long id) { **/ @ApiModelProperty(example = "1", required = true, value = "The ID of the event that triggered the strikethrough labeling.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/src/main/java/one/talon/model/SummaryCampaignStoreBudget.java b/src/main/java/one/talon/model/SummaryCampaignStoreBudget.java index 85b94f5e..52190fec 100644 --- a/src/main/java/one/talon/model/SummaryCampaignStoreBudget.java +++ b/src/main/java/one/talon/model/SummaryCampaignStoreBudget.java @@ -165,7 +165,7 @@ public PeriodEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_STORE_COUNT = "storeCount"; @SerializedName(SERIALIZED_NAME_STORE_COUNT) - private Long storeCount; + private Integer storeCount; public static final String SERIALIZED_NAME_IMPORTED = "imported"; @SerializedName(SERIALIZED_NAME_IMPORTED) @@ -217,7 +217,7 @@ public void setPeriod(PeriodEnum period) { } - public SummaryCampaignStoreBudget storeCount(Long storeCount) { + public SummaryCampaignStoreBudget storeCount(Integer storeCount) { this.storeCount = storeCount; return this; @@ -229,12 +229,12 @@ public SummaryCampaignStoreBudget storeCount(Long storeCount) { **/ @ApiModelProperty(required = true, value = "") - public Long getStoreCount() { + public Integer getStoreCount() { return storeCount; } - public void setStoreCount(Long storeCount) { + public void setStoreCount(Integer storeCount) { this.storeCount = storeCount; } diff --git a/src/main/java/one/talon/model/TalangAttribute.java b/src/main/java/one/talon/model/TalangAttribute.java index 1d20769f..d67bdd37 100644 --- a/src/main/java/one/talon/model/TalangAttribute.java +++ b/src/main/java/one/talon/model/TalangAttribute.java @@ -189,7 +189,7 @@ public KindEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CAMPAIGNS_COUNT = "campaignsCount"; @SerializedName(SERIALIZED_NAME_CAMPAIGNS_COUNT) - private Long campaignsCount; + private Integer campaignsCount; public static final String SERIALIZED_NAME_EXAMPLE_VALUE = "exampleValue"; @SerializedName(SERIALIZED_NAME_EXAMPLE_VALUE) @@ -353,7 +353,7 @@ public void setKind(KindEnum kind) { } - public TalangAttribute campaignsCount(Long campaignsCount) { + public TalangAttribute campaignsCount(Integer campaignsCount) { this.campaignsCount = campaignsCount; return this; @@ -365,12 +365,12 @@ public TalangAttribute campaignsCount(Long campaignsCount) { **/ @ApiModelProperty(required = true, value = "The number of campaigns that refer to the attribute.") - public Long getCampaignsCount() { + public Integer getCampaignsCount() { return campaignsCount; } - public void setCampaignsCount(Long campaignsCount) { + public void setCampaignsCount(Integer campaignsCount) { this.campaignsCount = campaignsCount; } diff --git a/src/main/java/one/talon/model/TemplateArgDef.java b/src/main/java/one/talon/model/TemplateArgDef.java index 671ab11a..982f8566 100644 --- a/src/main/java/one/talon/model/TemplateArgDef.java +++ b/src/main/java/one/talon/model/TemplateArgDef.java @@ -104,7 +104,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_PICKLIST_I_D = "picklistID"; @SerializedName(SERIALIZED_NAME_PICKLIST_I_D) - private Long picklistID; + private Integer picklistID; public static final String SERIALIZED_NAME_RESTRICTED_BY_PICKLIST = "restrictedByPicklist"; @SerializedName(SERIALIZED_NAME_RESTRICTED_BY_PICKLIST) @@ -223,7 +223,7 @@ public void setKey(String key) { } - public TemplateArgDef picklistID(Long picklistID) { + public TemplateArgDef picklistID(Integer picklistID) { this.picklistID = picklistID; return this; @@ -236,12 +236,12 @@ public TemplateArgDef picklistID(Long picklistID) { @javax.annotation.Nullable @ApiModelProperty(value = "ID of the picklist linked to a template.") - public Long getPicklistID() { + public Integer getPicklistID() { return picklistID; } - public void setPicklistID(Long picklistID) { + public void setPicklistID(Integer picklistID) { this.picklistID = picklistID; } diff --git a/src/main/java/one/talon/model/TemplateDef.java b/src/main/java/one/talon/model/TemplateDef.java index c739ed72..63da409b 100644 --- a/src/main/java/one/talon/model/TemplateDef.java +++ b/src/main/java/one/talon/model/TemplateDef.java @@ -35,7 +35,7 @@ public class TemplateDef { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -43,7 +43,7 @@ public class TemplateDef { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) @@ -78,24 +78,24 @@ public class TemplateDef { private String name; - public TemplateDef id(Long id) { + public TemplateDef id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -122,7 +122,7 @@ public void setCreated(OffsetDateTime created) { } - public TemplateDef applicationId(Long applicationId) { + public TemplateDef applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -134,12 +134,12 @@ public TemplateDef applicationId(Long applicationId) { **/ @ApiModelProperty(example = "322", required = true, value = "The ID of the Application that owns this entity.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } diff --git a/src/main/java/one/talon/model/Tier.java b/src/main/java/one/talon/model/Tier.java index 3c52f16e..0d00ab48 100644 --- a/src/main/java/one/talon/model/Tier.java +++ b/src/main/java/one/talon/model/Tier.java @@ -32,7 +32,7 @@ public class Tier { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -98,7 +98,7 @@ public DowngradePolicyEnum read(final JsonReader jsonReader) throws IOException private DowngradePolicyEnum downgradePolicy; - public Tier id(Long id) { + public Tier id(Integer id) { this.id = id; return this; @@ -110,12 +110,12 @@ public Tier id(Long id) { **/ @ApiModelProperty(example = "11", required = true, value = "The internal ID of the tier.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/src/main/java/one/talon/model/TierDowngradeNotificationPolicy.java b/src/main/java/one/talon/model/TierDowngradeNotificationPolicy.java index 3412fecf..9dbb867a 100644 --- a/src/main/java/one/talon/model/TierDowngradeNotificationPolicy.java +++ b/src/main/java/one/talon/model/TierDowngradeNotificationPolicy.java @@ -39,7 +39,7 @@ public class TierDowngradeNotificationPolicy { public static final String SERIALIZED_NAME_BATCH_SIZE = "batchSize"; @SerializedName(SERIALIZED_NAME_BATCH_SIZE) - private Long batchSize = 1000l; + private Integer batchSize; public TierDowngradeNotificationPolicy name(String name) { @@ -87,7 +87,7 @@ public void setBatchingEnabled(Boolean batchingEnabled) { } - public TierDowngradeNotificationPolicy batchSize(Long batchSize) { + public TierDowngradeNotificationPolicy batchSize(Integer batchSize) { this.batchSize = batchSize; return this; @@ -100,12 +100,12 @@ public TierDowngradeNotificationPolicy batchSize(Long batchSize) { @javax.annotation.Nullable @ApiModelProperty(example = "1000", value = "The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.") - public Long getBatchSize() { + public Integer getBatchSize() { return batchSize; } - public void setBatchSize(Long batchSize) { + public void setBatchSize(Integer batchSize) { this.batchSize = batchSize; } diff --git a/src/main/java/one/talon/model/TierUpgradeNotificationPolicy.java b/src/main/java/one/talon/model/TierUpgradeNotificationPolicy.java index 7bee4134..02abbc87 100644 --- a/src/main/java/one/talon/model/TierUpgradeNotificationPolicy.java +++ b/src/main/java/one/talon/model/TierUpgradeNotificationPolicy.java @@ -39,7 +39,7 @@ public class TierUpgradeNotificationPolicy { public static final String SERIALIZED_NAME_BATCH_SIZE = "batchSize"; @SerializedName(SERIALIZED_NAME_BATCH_SIZE) - private Long batchSize = 1000l; + private Integer batchSize; public TierUpgradeNotificationPolicy name(String name) { @@ -87,7 +87,7 @@ public void setBatchingEnabled(Boolean batchingEnabled) { } - public TierUpgradeNotificationPolicy batchSize(Long batchSize) { + public TierUpgradeNotificationPolicy batchSize(Integer batchSize) { this.batchSize = batchSize; return this; @@ -100,12 +100,12 @@ public TierUpgradeNotificationPolicy batchSize(Long batchSize) { @javax.annotation.Nullable @ApiModelProperty(example = "1000", value = "The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.") - public Long getBatchSize() { + public Integer getBatchSize() { return batchSize; } - public void setBatchSize(Long batchSize) { + public void setBatchSize(Integer batchSize) { this.batchSize = batchSize; } diff --git a/src/main/java/one/talon/model/TierWillDowngradeNotificationPolicy.java b/src/main/java/one/talon/model/TierWillDowngradeNotificationPolicy.java index 88d0b6cf..b77f07a4 100644 --- a/src/main/java/one/talon/model/TierWillDowngradeNotificationPolicy.java +++ b/src/main/java/one/talon/model/TierWillDowngradeNotificationPolicy.java @@ -42,7 +42,7 @@ public class TierWillDowngradeNotificationPolicy { public static final String SERIALIZED_NAME_BATCH_SIZE = "batchSize"; @SerializedName(SERIALIZED_NAME_BATCH_SIZE) - private Long batchSize = 1000l; + private Integer batchSize; public static final String SERIALIZED_NAME_TRIGGERS = "triggers"; @SerializedName(SERIALIZED_NAME_TRIGGERS) @@ -94,7 +94,7 @@ public void setBatchingEnabled(Boolean batchingEnabled) { } - public TierWillDowngradeNotificationPolicy batchSize(Long batchSize) { + public TierWillDowngradeNotificationPolicy batchSize(Integer batchSize) { this.batchSize = batchSize; return this; @@ -107,12 +107,12 @@ public TierWillDowngradeNotificationPolicy batchSize(Long batchSize) { @javax.annotation.Nullable @ApiModelProperty(example = "1000", value = "The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.") - public Long getBatchSize() { + public Integer getBatchSize() { return batchSize; } - public void setBatchSize(Long batchSize) { + public void setBatchSize(Integer batchSize) { this.batchSize = batchSize; } diff --git a/src/main/java/one/talon/model/TierWillDowngradeNotificationTrigger.java b/src/main/java/one/talon/model/TierWillDowngradeNotificationTrigger.java index 3a261621..672e0694 100644 --- a/src/main/java/one/talon/model/TierWillDowngradeNotificationTrigger.java +++ b/src/main/java/one/talon/model/TierWillDowngradeNotificationTrigger.java @@ -31,7 +31,7 @@ public class TierWillDowngradeNotificationTrigger { public static final String SERIALIZED_NAME_AMOUNT = "amount"; @SerializedName(SERIALIZED_NAME_AMOUNT) - private Long amount; + private Integer amount; /** * Notification period indicated by a letter; \"w\" means week, \"d\" means day. @@ -85,7 +85,7 @@ public PeriodEnum read(final JsonReader jsonReader) throws IOException { private PeriodEnum period; - public TierWillDowngradeNotificationTrigger amount(Long amount) { + public TierWillDowngradeNotificationTrigger amount(Integer amount) { this.amount = amount; return this; @@ -97,12 +97,12 @@ public TierWillDowngradeNotificationTrigger amount(Long amount) { **/ @ApiModelProperty(required = true, value = "The amount of period.") - public Long getAmount() { + public Integer getAmount() { return amount; } - public void setAmount(Long amount) { + public void setAmount(Integer amount) { this.amount = amount; } diff --git a/src/main/java/one/talon/model/TimePoint.java b/src/main/java/one/talon/model/TimePoint.java index 7a4f9227..8507c325 100644 --- a/src/main/java/one/talon/model/TimePoint.java +++ b/src/main/java/one/talon/model/TimePoint.java @@ -32,30 +32,30 @@ public class TimePoint { public static final String SERIALIZED_NAME_MONTH = "month"; @SerializedName(SERIALIZED_NAME_MONTH) - private Long month; + private Integer month; public static final String SERIALIZED_NAME_DAY_OF_MONTH = "dayOfMonth"; @SerializedName(SERIALIZED_NAME_DAY_OF_MONTH) - private Long dayOfMonth; + private Integer dayOfMonth; public static final String SERIALIZED_NAME_DAY_OF_WEEK = "dayOfWeek"; @SerializedName(SERIALIZED_NAME_DAY_OF_WEEK) - private Long dayOfWeek; + private Integer dayOfWeek; public static final String SERIALIZED_NAME_HOUR = "hour"; @SerializedName(SERIALIZED_NAME_HOUR) - private Long hour; + private Integer hour; public static final String SERIALIZED_NAME_MINUTE = "minute"; @SerializedName(SERIALIZED_NAME_MINUTE) - private Long minute; + private Integer minute; public static final String SERIALIZED_NAME_SECOND = "second"; @SerializedName(SERIALIZED_NAME_SECOND) - private Long second; + private Integer second; - public TimePoint month(Long month) { + public TimePoint month(Integer month) { this.month = month; return this; @@ -70,17 +70,17 @@ public TimePoint month(Long month) { @javax.annotation.Nullable @ApiModelProperty(example = "11", value = "The achievement ends and resets in this month. **Note**: Only applicable if the period is set to `Y`. ") - public Long getMonth() { + public Integer getMonth() { return month; } - public void setMonth(Long month) { + public void setMonth(Integer month) { this.month = month; } - public TimePoint dayOfMonth(Long dayOfMonth) { + public TimePoint dayOfMonth(Integer dayOfMonth) { this.dayOfMonth = dayOfMonth; return this; @@ -95,17 +95,17 @@ public TimePoint dayOfMonth(Long dayOfMonth) { @javax.annotation.Nullable @ApiModelProperty(example = "23", value = "The achievement ends and resets on this day of the month. **Note**: Only applicable if the period is set to `Y` or `M`. ") - public Long getDayOfMonth() { + public Integer getDayOfMonth() { return dayOfMonth; } - public void setDayOfMonth(Long dayOfMonth) { + public void setDayOfMonth(Integer dayOfMonth) { this.dayOfMonth = dayOfMonth; } - public TimePoint dayOfWeek(Long dayOfWeek) { + public TimePoint dayOfWeek(Integer dayOfWeek) { this.dayOfWeek = dayOfWeek; return this; @@ -120,17 +120,17 @@ public TimePoint dayOfWeek(Long dayOfWeek) { @javax.annotation.Nullable @ApiModelProperty(value = "The achievement ends and resets on this day of the week. `1` represents `Monday` and `7` represents `Sunday`. **Note**: Only applicable if the period is set to `W`. ") - public Long getDayOfWeek() { + public Integer getDayOfWeek() { return dayOfWeek; } - public void setDayOfWeek(Long dayOfWeek) { + public void setDayOfWeek(Integer dayOfWeek) { this.dayOfWeek = dayOfWeek; } - public TimePoint hour(Long hour) { + public TimePoint hour(Integer hour) { this.hour = hour; return this; @@ -142,17 +142,17 @@ public TimePoint hour(Long hour) { **/ @ApiModelProperty(example = "23", required = true, value = "The achievement ends and resets at this hour.") - public Long getHour() { + public Integer getHour() { return hour; } - public void setHour(Long hour) { + public void setHour(Integer hour) { this.hour = hour; } - public TimePoint minute(Long minute) { + public TimePoint minute(Integer minute) { this.minute = minute; return this; @@ -164,17 +164,17 @@ public TimePoint minute(Long minute) { **/ @ApiModelProperty(example = "59", required = true, value = "The achievement ends and resets at this minute.") - public Long getMinute() { + public Integer getMinute() { return minute; } - public void setMinute(Long minute) { + public void setMinute(Integer minute) { this.minute = minute; } - public TimePoint second(Long second) { + public TimePoint second(Integer second) { this.second = second; return this; @@ -186,12 +186,12 @@ public TimePoint second(Long second) { **/ @ApiModelProperty(example = "59", required = true, value = "The achievement ends and resets at this second.") - public Long getSecond() { + public Integer getSecond() { return second; } - public void setSecond(Long second) { + public void setSecond(Integer second) { this.second = second; } diff --git a/src/main/java/one/talon/model/UpdateAchievement.java b/src/main/java/one/talon/model/UpdateAchievement.java index 5bf91f6a..7c98c809 100644 --- a/src/main/java/one/talon/model/UpdateAchievement.java +++ b/src/main/java/one/talon/model/UpdateAchievement.java @@ -57,13 +57,15 @@ public class UpdateAchievement { private TimePoint periodEndOverride; /** - * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. */ @JsonAdapter(RecurrencePolicyEnum.Adapter.class) public enum RecurrencePolicyEnum { NO_RECURRENCE("no_recurrence"), - ON_EXPIRATION("on_expiration"); + ON_EXPIRATION("on_expiration"), + + ON_COMPLETION("on_completion"); private String value; @@ -312,11 +314,11 @@ public UpdateAchievement recurrencePolicy(RecurrencePolicyEnum recurrencePolicy) } /** - * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. + * The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. * @return recurrencePolicy **/ @javax.annotation.Nullable - @ApiModelProperty(example = "no_recurrence", value = "The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. ") + @ApiModelProperty(example = "no_recurrence", value = "The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. - `on_completion`: When the customer progress status reaches `completed`, the achievement resets and becomes available again. ") public RecurrencePolicyEnum getRecurrencePolicy() { return recurrencePolicy; diff --git a/src/main/java/one/talon/model/UpdateApplication.java b/src/main/java/one/talon/model/UpdateApplication.java index 43395aca..b45ac5f5 100644 --- a/src/main/java/one/talon/model/UpdateApplication.java +++ b/src/main/java/one/talon/model/UpdateApplication.java @@ -238,11 +238,11 @@ public DefaultDiscountAdditionalCostPerItemScopeEnum read(final JsonReader jsonR public static final String SERIALIZED_NAME_DEFAULT_EVALUATION_GROUP_ID = "defaultEvaluationGroupId"; @SerializedName(SERIALIZED_NAME_DEFAULT_EVALUATION_GROUP_ID) - private Long defaultEvaluationGroupId; + private Integer defaultEvaluationGroupId; public static final String SERIALIZED_NAME_DEFAULT_CART_ITEM_FILTER_ID = "defaultCartItemFilterId"; @SerializedName(SERIALIZED_NAME_DEFAULT_CART_ITEM_FILTER_ID) - private Long defaultCartItemFilterId; + private Integer defaultCartItemFilterId; public static final String SERIALIZED_NAME_ENABLE_CAMPAIGN_STATE_MANAGEMENT = "enableCampaignStateManagement"; @SerializedName(SERIALIZED_NAME_ENABLE_CAMPAIGN_STATE_MANAGEMENT) @@ -576,7 +576,7 @@ public void setDefaultDiscountAdditionalCostPerItemScope(DefaultDiscountAddition } - public UpdateApplication defaultEvaluationGroupId(Long defaultEvaluationGroupId) { + public UpdateApplication defaultEvaluationGroupId(Integer defaultEvaluationGroupId) { this.defaultEvaluationGroupId = defaultEvaluationGroupId; return this; @@ -589,17 +589,17 @@ public UpdateApplication defaultEvaluationGroupId(Long defaultEvaluationGroupId) @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the default campaign evaluation group to which new campaigns will be added unless a different group is selected when creating the campaign.") - public Long getDefaultEvaluationGroupId() { + public Integer getDefaultEvaluationGroupId() { return defaultEvaluationGroupId; } - public void setDefaultEvaluationGroupId(Long defaultEvaluationGroupId) { + public void setDefaultEvaluationGroupId(Integer defaultEvaluationGroupId) { this.defaultEvaluationGroupId = defaultEvaluationGroupId; } - public UpdateApplication defaultCartItemFilterId(Long defaultCartItemFilterId) { + public UpdateApplication defaultCartItemFilterId(Integer defaultCartItemFilterId) { this.defaultCartItemFilterId = defaultCartItemFilterId; return this; @@ -612,12 +612,12 @@ public UpdateApplication defaultCartItemFilterId(Long defaultCartItemFilterId) { @javax.annotation.Nullable @ApiModelProperty(example = "3", value = "The ID of the default Cart-Item-Filter for this application.") - public Long getDefaultCartItemFilterId() { + public Integer getDefaultCartItemFilterId() { return defaultCartItemFilterId; } - public void setDefaultCartItemFilterId(Long defaultCartItemFilterId) { + public void setDefaultCartItemFilterId(Integer defaultCartItemFilterId) { this.defaultCartItemFilterId = defaultCartItemFilterId; } diff --git a/src/main/java/one/talon/model/UpdateApplicationAPIKey.java b/src/main/java/one/talon/model/UpdateApplicationAPIKey.java index 348dbe30..2e95e699 100644 --- a/src/main/java/one/talon/model/UpdateApplicationAPIKey.java +++ b/src/main/java/one/talon/model/UpdateApplicationAPIKey.java @@ -31,10 +31,10 @@ public class UpdateApplicationAPIKey { public static final String SERIALIZED_NAME_TIME_OFFSET = "timeOffset"; @SerializedName(SERIALIZED_NAME_TIME_OFFSET) - private Long timeOffset; + private Integer timeOffset; - public UpdateApplicationAPIKey timeOffset(Long timeOffset) { + public UpdateApplicationAPIKey timeOffset(Integer timeOffset) { this.timeOffset = timeOffset; return this; @@ -46,12 +46,12 @@ public UpdateApplicationAPIKey timeOffset(Long timeOffset) { **/ @ApiModelProperty(example = "100000", required = true, value = "A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. ") - public Long getTimeOffset() { + public Integer getTimeOffset() { return timeOffset; } - public void setTimeOffset(Long timeOffset) { + public void setTimeOffset(Integer timeOffset) { this.timeOffset = timeOffset; } diff --git a/src/main/java/one/talon/model/UpdateApplicationCIF.java b/src/main/java/one/talon/model/UpdateApplicationCIF.java index f473ddd5..9e53815e 100644 --- a/src/main/java/one/talon/model/UpdateApplicationCIF.java +++ b/src/main/java/one/talon/model/UpdateApplicationCIF.java @@ -36,11 +36,11 @@ public class UpdateApplicationCIF { public static final String SERIALIZED_NAME_ACTIVE_EXPRESSION_ID = "activeExpressionId"; @SerializedName(SERIALIZED_NAME_ACTIVE_EXPRESSION_ID) - private Long activeExpressionId; + private Integer activeExpressionId; public static final String SERIALIZED_NAME_MODIFIED_BY = "modifiedBy"; @SerializedName(SERIALIZED_NAME_MODIFIED_BY) - private Long modifiedBy; + private Integer modifiedBy; public static final String SERIALIZED_NAME_MODIFIED = "modified"; @SerializedName(SERIALIZED_NAME_MODIFIED) @@ -70,7 +70,7 @@ public void setDescription(String description) { } - public UpdateApplicationCIF activeExpressionId(Long activeExpressionId) { + public UpdateApplicationCIF activeExpressionId(Integer activeExpressionId) { this.activeExpressionId = activeExpressionId; return this; @@ -83,17 +83,17 @@ public UpdateApplicationCIF activeExpressionId(Long activeExpressionId) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The ID of the expression that the Application cart item filter uses.") - public Long getActiveExpressionId() { + public Integer getActiveExpressionId() { return activeExpressionId; } - public void setActiveExpressionId(Long activeExpressionId) { + public void setActiveExpressionId(Integer activeExpressionId) { this.activeExpressionId = activeExpressionId; } - public UpdateApplicationCIF modifiedBy(Long modifiedBy) { + public UpdateApplicationCIF modifiedBy(Integer modifiedBy) { this.modifiedBy = modifiedBy; return this; @@ -106,12 +106,12 @@ public UpdateApplicationCIF modifiedBy(Long modifiedBy) { @javax.annotation.Nullable @ApiModelProperty(example = "334", value = "The ID of the user who last updated the Application cart item filter.") - public Long getModifiedBy() { + public Integer getModifiedBy() { return modifiedBy; } - public void setModifiedBy(Long modifiedBy) { + public void setModifiedBy(Integer modifiedBy) { this.modifiedBy = modifiedBy; } diff --git a/src/main/java/one/talon/model/UpdateCampaign.java b/src/main/java/one/talon/model/UpdateCampaign.java index 3a67671e..626f588a 100644 --- a/src/main/java/one/talon/model/UpdateCampaign.java +++ b/src/main/java/one/talon/model/UpdateCampaign.java @@ -109,7 +109,7 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ACTIVE_RULESET_ID = "activeRulesetId"; @SerializedName(SERIALIZED_NAME_ACTIVE_RULESET_ID) - private Long activeRulesetId; + private Integer activeRulesetId; public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @@ -188,11 +188,11 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_CAMPAIGN_GROUPS = "campaignGroups"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_GROUPS) - private List campaignGroups = null; + private List campaignGroups = null; public static final String SERIALIZED_NAME_EVALUATION_GROUP_ID = "evaluationGroupId"; @SerializedName(SERIALIZED_NAME_EVALUATION_GROUP_ID) - private Long evaluationGroupId; + private Integer evaluationGroupId; /** * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. @@ -247,7 +247,7 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_LINKED_STORE_IDS = "linkedStoreIds"; @SerializedName(SERIALIZED_NAME_LINKED_STORE_IDS) - private List linkedStoreIds = null; + private List linkedStoreIds = null; public UpdateCampaign name(String name) { @@ -387,7 +387,7 @@ public void setState(StateEnum state) { } - public UpdateCampaign activeRulesetId(Long activeRulesetId) { + public UpdateCampaign activeRulesetId(Integer activeRulesetId) { this.activeRulesetId = activeRulesetId; return this; @@ -400,12 +400,12 @@ public UpdateCampaign activeRulesetId(Long activeRulesetId) { @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "[ID of Ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation. ") - public Long getActiveRulesetId() { + public Integer getActiveRulesetId() { return activeRulesetId; } - public void setActiveRulesetId(Long activeRulesetId) { + public void setActiveRulesetId(Integer activeRulesetId) { this.activeRulesetId = activeRulesetId; } @@ -537,15 +537,15 @@ public void setLimits(List limits) { } - public UpdateCampaign campaignGroups(List campaignGroups) { + public UpdateCampaign campaignGroups(List campaignGroups) { this.campaignGroups = campaignGroups; return this; } - public UpdateCampaign addCampaignGroupsItem(Long campaignGroupsItem) { + public UpdateCampaign addCampaignGroupsItem(Integer campaignGroupsItem) { if (this.campaignGroups == null) { - this.campaignGroups = new ArrayList(); + this.campaignGroups = new ArrayList(); } this.campaignGroups.add(campaignGroupsItem); return this; @@ -558,17 +558,17 @@ public UpdateCampaign addCampaignGroupsItem(Long campaignGroupsItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[1, 3]", value = "The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) this campaign belongs to. ") - public List getCampaignGroups() { + public List getCampaignGroups() { return campaignGroups; } - public void setCampaignGroups(List campaignGroups) { + public void setCampaignGroups(List campaignGroups) { this.campaignGroups = campaignGroups; } - public UpdateCampaign evaluationGroupId(Long evaluationGroupId) { + public UpdateCampaign evaluationGroupId(Integer evaluationGroupId) { this.evaluationGroupId = evaluationGroupId; return this; @@ -581,12 +581,12 @@ public UpdateCampaign evaluationGroupId(Long evaluationGroupId) { @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "The ID of the campaign evaluation group the campaign belongs to.") - public Long getEvaluationGroupId() { + public Integer getEvaluationGroupId() { return evaluationGroupId; } - public void setEvaluationGroupId(Long evaluationGroupId) { + public void setEvaluationGroupId(Integer evaluationGroupId) { this.evaluationGroupId = evaluationGroupId; } @@ -614,15 +614,15 @@ public void setType(TypeEnum type) { } - public UpdateCampaign linkedStoreIds(List linkedStoreIds) { + public UpdateCampaign linkedStoreIds(List linkedStoreIds) { this.linkedStoreIds = linkedStoreIds; return this; } - public UpdateCampaign addLinkedStoreIdsItem(Long linkedStoreIdsItem) { + public UpdateCampaign addLinkedStoreIdsItem(Integer linkedStoreIdsItem) { if (this.linkedStoreIds == null) { - this.linkedStoreIds = new ArrayList(); + this.linkedStoreIds = new ArrayList(); } this.linkedStoreIds.add(linkedStoreIdsItem); return this; @@ -635,12 +635,12 @@ public UpdateCampaign addLinkedStoreIdsItem(Long linkedStoreIdsItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of store IDs that you want to link to the campaign. **Note:** - Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. - If you linked stores to the campaign by uploading a CSV file, you cannot use this property and it should be empty. - Use of this property is limited to 50 stores. To link more than 50 stores, upload them via a CSV file. ") - public List getLinkedStoreIds() { + public List getLinkedStoreIds() { return linkedStoreIds; } - public void setLinkedStoreIds(List linkedStoreIds) { + public void setLinkedStoreIds(List linkedStoreIds) { this.linkedStoreIds = linkedStoreIds; } diff --git a/src/main/java/one/talon/model/UpdateCampaignEvaluationGroup.java b/src/main/java/one/talon/model/UpdateCampaignEvaluationGroup.java index 66bb74af..f31e308d 100644 --- a/src/main/java/one/talon/model/UpdateCampaignEvaluationGroup.java +++ b/src/main/java/one/talon/model/UpdateCampaignEvaluationGroup.java @@ -35,7 +35,7 @@ public class UpdateCampaignEvaluationGroup { public static final String SERIALIZED_NAME_PARENT_ID = "parentId"; @SerializedName(SERIALIZED_NAME_PARENT_ID) - private Long parentId; + private Integer parentId; public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -174,7 +174,7 @@ public void setName(String name) { } - public UpdateCampaignEvaluationGroup parentId(Long parentId) { + public UpdateCampaignEvaluationGroup parentId(Integer parentId) { this.parentId = parentId; return this; @@ -187,12 +187,12 @@ public UpdateCampaignEvaluationGroup parentId(Long parentId) { **/ @ApiModelProperty(example = "2", required = true, value = "The ID of the parent group that contains the campaign evaluation group.") - public Long getParentId() { + public Integer getParentId() { return parentId; } - public void setParentId(Long parentId) { + public void setParentId(Integer parentId) { this.parentId = parentId; } diff --git a/src/main/java/one/talon/model/UpdateCampaignGroup.java b/src/main/java/one/talon/model/UpdateCampaignGroup.java index b34bffcf..19c3e545 100644 --- a/src/main/java/one/talon/model/UpdateCampaignGroup.java +++ b/src/main/java/one/talon/model/UpdateCampaignGroup.java @@ -41,11 +41,11 @@ public class UpdateCampaignGroup { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public static final String SERIALIZED_NAME_CAMPAIGN_IDS = "campaignIds"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_IDS) - private List campaignIds = null; + private List campaignIds = null; public UpdateCampaignGroup name(String name) { @@ -93,15 +93,15 @@ public void setDescription(String description) { } - public UpdateCampaignGroup subscribedApplicationsIds(List subscribedApplicationsIds) { + public UpdateCampaignGroup subscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public UpdateCampaignGroup addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { + public UpdateCampaignGroup addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; @@ -114,25 +114,25 @@ public UpdateCampaignGroup addSubscribedApplicationsIdsItem(Long subscribedAppli @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of IDs of the Applications that this campaign access group is enabled for.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } - public UpdateCampaignGroup campaignIds(List campaignIds) { + public UpdateCampaignGroup campaignIds(List campaignIds) { this.campaignIds = campaignIds; return this; } - public UpdateCampaignGroup addCampaignIdsItem(Long campaignIdsItem) { + public UpdateCampaignGroup addCampaignIdsItem(Integer campaignIdsItem) { if (this.campaignIds == null) { - this.campaignIds = new ArrayList(); + this.campaignIds = new ArrayList(); } this.campaignIds.add(campaignIdsItem); return this; @@ -145,12 +145,12 @@ public UpdateCampaignGroup addCampaignIdsItem(Long campaignIdsItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[4, 6, 8]", value = "A list of IDs of the campaigns that are part of the campaign access group.") - public List getCampaignIds() { + public List getCampaignIds() { return campaignIds; } - public void setCampaignIds(List campaignIds) { + public void setCampaignIds(List campaignIds) { this.campaignIds = campaignIds; } diff --git a/src/main/java/one/talon/model/UpdateCampaignTemplate.java b/src/main/java/one/talon/model/UpdateCampaignTemplate.java index 120a5713..a65f7d62 100644 --- a/src/main/java/one/talon/model/UpdateCampaignTemplate.java +++ b/src/main/java/one/talon/model/UpdateCampaignTemplate.java @@ -111,7 +111,7 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ACTIVE_RULESET_ID = "activeRulesetId"; @SerializedName(SERIALIZED_NAME_ACTIVE_RULESET_ID) - private Long activeRulesetId; + private Integer activeRulesetId; public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) @@ -198,7 +198,7 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_APPLICATIONS_IDS = "applicationsIds"; @SerializedName(SERIALIZED_NAME_APPLICATIONS_IDS) - private List applicationsIds = new ArrayList(); + private List applicationsIds = new ArrayList(); public static final String SERIALIZED_NAME_CAMPAIGN_COLLECTIONS = "campaignCollections"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_COLLECTIONS) @@ -206,7 +206,7 @@ public FeaturesEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_DEFAULT_CAMPAIGN_GROUP_ID = "defaultCampaignGroupId"; @SerializedName(SERIALIZED_NAME_DEFAULT_CAMPAIGN_GROUP_ID) - private Long defaultCampaignGroupId; + private Integer defaultCampaignGroupId; /** * The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. @@ -394,7 +394,7 @@ public void setState(StateEnum state) { } - public UpdateCampaignTemplate activeRulesetId(Long activeRulesetId) { + public UpdateCampaignTemplate activeRulesetId(Integer activeRulesetId) { this.activeRulesetId = activeRulesetId; return this; @@ -407,12 +407,12 @@ public UpdateCampaignTemplate activeRulesetId(Long activeRulesetId) { @javax.annotation.Nullable @ApiModelProperty(example = "5", value = "The ID of the ruleset this campaign template will use.") - public Long getActiveRulesetId() { + public Integer getActiveRulesetId() { return activeRulesetId; } - public void setActiveRulesetId(Long activeRulesetId) { + public void setActiveRulesetId(Integer activeRulesetId) { this.activeRulesetId = activeRulesetId; } @@ -610,13 +610,13 @@ public void setTemplateParams(List templateParams) { } - public UpdateCampaignTemplate applicationsIds(List applicationsIds) { + public UpdateCampaignTemplate applicationsIds(List applicationsIds) { this.applicationsIds = applicationsIds; return this; } - public UpdateCampaignTemplate addApplicationsIdsItem(Long applicationsIdsItem) { + public UpdateCampaignTemplate addApplicationsIdsItem(Integer applicationsIdsItem) { this.applicationsIds.add(applicationsIdsItem); return this; } @@ -627,12 +627,12 @@ public UpdateCampaignTemplate addApplicationsIdsItem(Long applicationsIdsItem) { **/ @ApiModelProperty(example = "[1, 2, 3]", required = true, value = "A list of IDs of the Applications that are subscribed to this campaign template.") - public List getApplicationsIds() { + public List getApplicationsIds() { return applicationsIds; } - public void setApplicationsIds(List applicationsIds) { + public void setApplicationsIds(List applicationsIds) { this.applicationsIds = applicationsIds; } @@ -668,7 +668,7 @@ public void setCampaignCollections(List campaignColl } - public UpdateCampaignTemplate defaultCampaignGroupId(Long defaultCampaignGroupId) { + public UpdateCampaignTemplate defaultCampaignGroupId(Integer defaultCampaignGroupId) { this.defaultCampaignGroupId = defaultCampaignGroupId; return this; @@ -681,12 +681,12 @@ public UpdateCampaignTemplate defaultCampaignGroupId(Long defaultCampaignGroupId @javax.annotation.Nullable @ApiModelProperty(example = "42", value = "The default campaign group ID.") - public Long getDefaultCampaignGroupId() { + public Integer getDefaultCampaignGroupId() { return defaultCampaignGroupId; } - public void setDefaultCampaignGroupId(Long defaultCampaignGroupId) { + public void setDefaultCampaignGroupId(Integer defaultCampaignGroupId) { this.defaultCampaignGroupId = defaultCampaignGroupId; } diff --git a/src/main/java/one/talon/model/UpdateCatalog.java b/src/main/java/one/talon/model/UpdateCatalog.java index 1ad44b31..bd9d8006 100644 --- a/src/main/java/one/talon/model/UpdateCatalog.java +++ b/src/main/java/one/talon/model/UpdateCatalog.java @@ -41,7 +41,7 @@ public class UpdateCatalog { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public UpdateCatalog description(String description) { @@ -90,15 +90,15 @@ public void setName(String name) { } - public UpdateCatalog subscribedApplicationsIds(List subscribedApplicationsIds) { + public UpdateCatalog subscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public UpdateCatalog addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { + public UpdateCatalog addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; @@ -111,12 +111,12 @@ public UpdateCatalog addSubscribedApplicationsIdsItem(Long subscribedApplication @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of the IDs of the applications that are subscribed to this catalog.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } diff --git a/src/main/java/one/talon/model/UpdateCollection.java b/src/main/java/one/talon/model/UpdateCollection.java index 280d1d24..9da3a086 100644 --- a/src/main/java/one/talon/model/UpdateCollection.java +++ b/src/main/java/one/talon/model/UpdateCollection.java @@ -37,7 +37,7 @@ public class UpdateCollection { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS = "subscribedApplicationsIds"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS_IDS) - private List subscribedApplicationsIds = null; + private List subscribedApplicationsIds = null; public UpdateCollection description(String description) { @@ -63,15 +63,15 @@ public void setDescription(String description) { } - public UpdateCollection subscribedApplicationsIds(List subscribedApplicationsIds) { + public UpdateCollection subscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; return this; } - public UpdateCollection addSubscribedApplicationsIdsItem(Long subscribedApplicationsIdsItem) { + public UpdateCollection addSubscribedApplicationsIdsItem(Integer subscribedApplicationsIdsItem) { if (this.subscribedApplicationsIds == null) { - this.subscribedApplicationsIds = new ArrayList(); + this.subscribedApplicationsIds = new ArrayList(); } this.subscribedApplicationsIds.add(subscribedApplicationsIdsItem); return this; @@ -84,12 +84,12 @@ public UpdateCollection addSubscribedApplicationsIdsItem(Long subscribedApplicat @javax.annotation.Nullable @ApiModelProperty(example = "[1, 2, 3]", value = "A list of the IDs of the Applications where this collection is enabled.") - public List getSubscribedApplicationsIds() { + public List getSubscribedApplicationsIds() { return subscribedApplicationsIds; } - public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { + public void setSubscribedApplicationsIds(List subscribedApplicationsIds) { this.subscribedApplicationsIds = subscribedApplicationsIds; } diff --git a/src/main/java/one/talon/model/UpdateCoupon.java b/src/main/java/one/talon/model/UpdateCoupon.java index a2ad0852..55e776c5 100644 --- a/src/main/java/one/talon/model/UpdateCoupon.java +++ b/src/main/java/one/talon/model/UpdateCoupon.java @@ -36,7 +36,7 @@ public class UpdateCoupon { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Long usageLimit; + private Integer usageLimit; public static final String SERIALIZED_NAME_DISCOUNT_LIMIT = "discountLimit"; @SerializedName(SERIALIZED_NAME_DISCOUNT_LIMIT) @@ -44,7 +44,7 @@ public class UpdateCoupon { public static final String SERIALIZED_NAME_RESERVATION_LIMIT = "reservationLimit"; @SerializedName(SERIALIZED_NAME_RESERVATION_LIMIT) - private Long reservationLimit; + private Integer reservationLimit; public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) @@ -75,7 +75,7 @@ public class UpdateCoupon { private Boolean implicitlyReserved; - public UpdateCoupon usageLimit(Long usageLimit) { + public UpdateCoupon usageLimit(Integer usageLimit) { this.usageLimit = usageLimit; return this; @@ -90,12 +90,12 @@ public UpdateCoupon usageLimit(Long usageLimit) { @javax.annotation.Nullable @ApiModelProperty(example = "100", value = "The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. ") - public Long getUsageLimit() { + public Integer getUsageLimit() { return usageLimit; } - public void setUsageLimit(Long usageLimit) { + public void setUsageLimit(Integer usageLimit) { this.usageLimit = usageLimit; } @@ -109,7 +109,7 @@ public UpdateCoupon discountLimit(BigDecimal discountLimit) { /** * The total discount value that the code can give. Typically used to represent a gift card value. * minimum: 0 - * maximum: 999999 + * maximum: 1E+15 * @return discountLimit **/ @javax.annotation.Nullable @@ -125,7 +125,7 @@ public void setDiscountLimit(BigDecimal discountLimit) { } - public UpdateCoupon reservationLimit(Long reservationLimit) { + public UpdateCoupon reservationLimit(Integer reservationLimit) { this.reservationLimit = reservationLimit; return this; @@ -140,12 +140,12 @@ public UpdateCoupon reservationLimit(Long reservationLimit) { @javax.annotation.Nullable @ApiModelProperty(example = "45", value = "The number of reservations that can be made with this coupon code. ") - public Long getReservationLimit() { + public Integer getReservationLimit() { return reservationLimit; } - public void setReservationLimit(Long reservationLimit) { + public void setReservationLimit(Integer reservationLimit) { this.reservationLimit = reservationLimit; } diff --git a/src/main/java/one/talon/model/UpdateCouponBatch.java b/src/main/java/one/talon/model/UpdateCouponBatch.java index 83389c2d..e28ccb0b 100644 --- a/src/main/java/one/talon/model/UpdateCouponBatch.java +++ b/src/main/java/one/talon/model/UpdateCouponBatch.java @@ -33,7 +33,7 @@ public class UpdateCouponBatch { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Long usageLimit; + private Integer usageLimit; public static final String SERIALIZED_NAME_DISCOUNT_LIMIT = "discountLimit"; @SerializedName(SERIALIZED_NAME_DISCOUNT_LIMIT) @@ -41,7 +41,7 @@ public class UpdateCouponBatch { public static final String SERIALIZED_NAME_RESERVATION_LIMIT = "reservationLimit"; @SerializedName(SERIALIZED_NAME_RESERVATION_LIMIT) - private Long reservationLimit; + private Integer reservationLimit; public static final String SERIALIZED_NAME_START_DATE = "startDate"; @SerializedName(SERIALIZED_NAME_START_DATE) @@ -60,7 +60,7 @@ public class UpdateCouponBatch { private String batchID; - public UpdateCouponBatch usageLimit(Long usageLimit) { + public UpdateCouponBatch usageLimit(Integer usageLimit) { this.usageLimit = usageLimit; return this; @@ -75,12 +75,12 @@ public UpdateCouponBatch usageLimit(Long usageLimit) { @javax.annotation.Nullable @ApiModelProperty(example = "100", value = "The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply. ") - public Long getUsageLimit() { + public Integer getUsageLimit() { return usageLimit; } - public void setUsageLimit(Long usageLimit) { + public void setUsageLimit(Integer usageLimit) { this.usageLimit = usageLimit; } @@ -94,7 +94,7 @@ public UpdateCouponBatch discountLimit(BigDecimal discountLimit) { /** * The total discount value that the code can give. Typically used to represent a gift card value. * minimum: 0 - * maximum: 999999 + * maximum: 1E+15 * @return discountLimit **/ @javax.annotation.Nullable @@ -110,7 +110,7 @@ public void setDiscountLimit(BigDecimal discountLimit) { } - public UpdateCouponBatch reservationLimit(Long reservationLimit) { + public UpdateCouponBatch reservationLimit(Integer reservationLimit) { this.reservationLimit = reservationLimit; return this; @@ -125,12 +125,12 @@ public UpdateCouponBatch reservationLimit(Long reservationLimit) { @javax.annotation.Nullable @ApiModelProperty(example = "45", value = "The number of reservations that can be made with this coupon code. ") - public Long getReservationLimit() { + public Integer getReservationLimit() { return reservationLimit; } - public void setReservationLimit(Long reservationLimit) { + public void setReservationLimit(Integer reservationLimit) { this.reservationLimit = reservationLimit; } diff --git a/src/main/java/one/talon/model/UpdateLoyaltyProgram.java b/src/main/java/one/talon/model/UpdateLoyaltyProgram.java index 94731980..90eb2a9a 100644 --- a/src/main/java/one/talon/model/UpdateLoyaltyProgram.java +++ b/src/main/java/one/talon/model/UpdateLoyaltyProgram.java @@ -45,7 +45,7 @@ public class UpdateLoyaltyProgram { public static final String SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS = "subscribedApplications"; @SerializedName(SERIALIZED_NAME_SUBSCRIBED_APPLICATIONS) - private List subscribedApplications = null; + private List subscribedApplications = null; public static final String SERIALIZED_NAME_DEFAULT_VALIDITY = "defaultValidity"; @SerializedName(SERIALIZED_NAME_DEFAULT_VALIDITY) @@ -61,7 +61,7 @@ public class UpdateLoyaltyProgram { public static final String SERIALIZED_NAME_USERS_PER_CARD_LIMIT = "usersPerCardLimit"; @SerializedName(SERIALIZED_NAME_USERS_PER_CARD_LIMIT) - private Long usersPerCardLimit; + private Integer usersPerCardLimit; public static final String SERIALIZED_NAME_SANDBOX = "sandbox"; @SerializedName(SERIALIZED_NAME_SANDBOX) @@ -342,15 +342,15 @@ public void setDescription(String description) { } - public UpdateLoyaltyProgram subscribedApplications(List subscribedApplications) { + public UpdateLoyaltyProgram subscribedApplications(List subscribedApplications) { this.subscribedApplications = subscribedApplications; return this; } - public UpdateLoyaltyProgram addSubscribedApplicationsItem(Long subscribedApplicationsItem) { + public UpdateLoyaltyProgram addSubscribedApplicationsItem(Integer subscribedApplicationsItem) { if (this.subscribedApplications == null) { - this.subscribedApplications = new ArrayList(); + this.subscribedApplications = new ArrayList(); } this.subscribedApplications.add(subscribedApplicationsItem); return this; @@ -363,12 +363,12 @@ public UpdateLoyaltyProgram addSubscribedApplicationsItem(Long subscribedApplica @javax.annotation.Nullable @ApiModelProperty(example = "[132, 97]", value = "A list containing the IDs of all applications that are subscribed to this Loyalty Program.") - public List getSubscribedApplications() { + public List getSubscribedApplications() { return subscribedApplications; } - public void setSubscribedApplications(List subscribedApplications) { + public void setSubscribedApplications(List subscribedApplications) { this.subscribedApplications = subscribedApplications; } @@ -442,7 +442,7 @@ public void setAllowSubledger(Boolean allowSubledger) { } - public UpdateLoyaltyProgram usersPerCardLimit(Long usersPerCardLimit) { + public UpdateLoyaltyProgram usersPerCardLimit(Integer usersPerCardLimit) { this.usersPerCardLimit = usersPerCardLimit; return this; @@ -456,12 +456,12 @@ public UpdateLoyaltyProgram usersPerCardLimit(Long usersPerCardLimit) { @javax.annotation.Nullable @ApiModelProperty(example = "111", value = "The max amount of user profiles with whom a card can be shared. This can be set to 0 for no limit. This property is only used when `cardBased` is `true`. ") - public Long getUsersPerCardLimit() { + public Integer getUsersPerCardLimit() { return usersPerCardLimit; } - public void setUsersPerCardLimit(Long usersPerCardLimit) { + public void setUsersPerCardLimit(Integer usersPerCardLimit) { this.usersPerCardLimit = usersPerCardLimit; } diff --git a/src/main/java/one/talon/model/UpdateLoyaltyProgramTier.java b/src/main/java/one/talon/model/UpdateLoyaltyProgramTier.java index df4f8e2a..a342f16d 100644 --- a/src/main/java/one/talon/model/UpdateLoyaltyProgramTier.java +++ b/src/main/java/one/talon/model/UpdateLoyaltyProgramTier.java @@ -33,7 +33,7 @@ public class UpdateLoyaltyProgramTier { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -44,7 +44,7 @@ public class UpdateLoyaltyProgramTier { private BigDecimal minPoints; - public UpdateLoyaltyProgramTier id(Long id) { + public UpdateLoyaltyProgramTier id(Integer id) { this.id = id; return this; @@ -56,12 +56,12 @@ public UpdateLoyaltyProgramTier id(Long id) { **/ @ApiModelProperty(example = "6", required = true, value = "The internal ID of the tier.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } diff --git a/src/main/java/one/talon/model/UpdateReferral.java b/src/main/java/one/talon/model/UpdateReferral.java index d73cfe42..4122eced 100644 --- a/src/main/java/one/talon/model/UpdateReferral.java +++ b/src/main/java/one/talon/model/UpdateReferral.java @@ -44,7 +44,7 @@ public class UpdateReferral { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Long usageLimit; + private Integer usageLimit; public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) @@ -120,7 +120,7 @@ public void setExpiryDate(OffsetDateTime expiryDate) { } - public UpdateReferral usageLimit(Long usageLimit) { + public UpdateReferral usageLimit(Integer usageLimit) { this.usageLimit = usageLimit; return this; @@ -135,12 +135,12 @@ public UpdateReferral usageLimit(Long usageLimit) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The number of times a referral code can be used. This can be set to 0 for no limit, but any campaign usage limits will still apply. ") - public Long getUsageLimit() { + public Integer getUsageLimit() { return usageLimit; } - public void setUsageLimit(Long usageLimit) { + public void setUsageLimit(Integer usageLimit) { this.usageLimit = usageLimit; } diff --git a/src/main/java/one/talon/model/UpdateReferralBatch.java b/src/main/java/one/talon/model/UpdateReferralBatch.java index 0153db6b..49ec3757 100644 --- a/src/main/java/one/talon/model/UpdateReferralBatch.java +++ b/src/main/java/one/talon/model/UpdateReferralBatch.java @@ -48,7 +48,7 @@ public class UpdateReferralBatch { public static final String SERIALIZED_NAME_USAGE_LIMIT = "usageLimit"; @SerializedName(SERIALIZED_NAME_USAGE_LIMIT) - private Long usageLimit; + private Integer usageLimit; public UpdateReferralBatch attributes(Object attributes) { @@ -142,7 +142,7 @@ public void setExpiryDate(OffsetDateTime expiryDate) { } - public UpdateReferralBatch usageLimit(Long usageLimit) { + public UpdateReferralBatch usageLimit(Integer usageLimit) { this.usageLimit = usageLimit; return this; @@ -157,12 +157,12 @@ public UpdateReferralBatch usageLimit(Long usageLimit) { @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "The number of times a referral code can be used. This can be set to 0 for no limit, but any campaign usage limits will still apply. ") - public Long getUsageLimit() { + public Integer getUsageLimit() { return usageLimit; } - public void setUsageLimit(Long usageLimit) { + public void setUsageLimit(Integer usageLimit) { this.usageLimit = usageLimit; } diff --git a/src/main/java/one/talon/model/UpdateRole.java b/src/main/java/one/talon/model/UpdateRole.java index 725dfc08..37752bf0 100644 --- a/src/main/java/one/talon/model/UpdateRole.java +++ b/src/main/java/one/talon/model/UpdateRole.java @@ -45,7 +45,7 @@ public class UpdateRole { public static final String SERIALIZED_NAME_MEMBERS = "members"; @SerializedName(SERIALIZED_NAME_MEMBERS) - private List members = null; + private List members = null; public UpdateRole name(String name) { @@ -117,15 +117,15 @@ public void setAcl(String acl) { } - public UpdateRole members(List members) { + public UpdateRole members(List members) { this.members = members; return this; } - public UpdateRole addMembersItem(Long membersItem) { + public UpdateRole addMembersItem(Integer membersItem) { if (this.members == null) { - this.members = new ArrayList(); + this.members = new ArrayList(); } this.members.add(membersItem); return this; @@ -138,12 +138,12 @@ public UpdateRole addMembersItem(Long membersItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[48, 562, 475, 18]", value = "An array of user identifiers.") - public List getMembers() { + public List getMembers() { return members; } - public void setMembers(List members) { + public void setMembers(List members) { this.members = members; } diff --git a/src/main/java/one/talon/model/UpdateUser.java b/src/main/java/one/talon/model/UpdateUser.java index 50bb025e..bc677a63 100644 --- a/src/main/java/one/talon/model/UpdateUser.java +++ b/src/main/java/one/talon/model/UpdateUser.java @@ -96,7 +96,7 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ROLES = "roles"; @SerializedName(SERIALIZED_NAME_ROLES) - private List roles = null; + private List roles = null; public static final String SERIALIZED_NAME_APPLICATION_NOTIFICATION_SUBSCRIPTIONS = "applicationNotificationSubscriptions"; @SerializedName(SERIALIZED_NAME_APPLICATION_NOTIFICATION_SUBSCRIPTIONS) @@ -195,15 +195,15 @@ public void setPolicy(String policy) { } - public UpdateUser roles(List roles) { + public UpdateUser roles(List roles) { this.roles = roles; return this; } - public UpdateUser addRolesItem(Long rolesItem) { + public UpdateUser addRolesItem(Integer rolesItem) { if (this.roles == null) { - this.roles = new ArrayList(); + this.roles = new ArrayList(); } this.roles.add(rolesItem); return this; @@ -216,12 +216,12 @@ public UpdateUser addRolesItem(Long rolesItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[1, 3]", value = "A list of the IDs of the roles assigned to the user. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. ") - public List getRoles() { + public List getRoles() { return roles; } - public void setRoles(List roles) { + public void setRoles(List roles) { this.roles = roles; } diff --git a/src/main/java/one/talon/model/User.java b/src/main/java/one/talon/model/User.java index 66a3f827..683a1edd 100644 --- a/src/main/java/one/talon/model/User.java +++ b/src/main/java/one/talon/model/User.java @@ -34,7 +34,7 @@ public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -50,7 +50,7 @@ public class User { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - private Long accountId; + private Integer accountId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -123,7 +123,7 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_ROLES = "roles"; @SerializedName(SERIALIZED_NAME_ROLES) - private List roles = null; + private List roles = null; public static final String SERIALIZED_NAME_AUTH_METHOD = "authMethod"; @SerializedName(SERIALIZED_NAME_AUTH_METHOD) @@ -150,24 +150,24 @@ public StateEnum read(final JsonReader jsonReader) throws IOException { private Object additionalAttributes; - public User id(Long id) { + public User id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -238,7 +238,7 @@ public void setEmail(String email) { } - public User accountId(Long accountId) { + public User accountId(Integer accountId) { this.accountId = accountId; return this; @@ -250,12 +250,12 @@ public User accountId(Long accountId) { **/ @ApiModelProperty(example = "3886", required = true, value = "The ID of the account that owns this entity.") - public Long getAccountId() { + public Integer getAccountId() { return accountId; } - public void setAccountId(Long accountId) { + public void setAccountId(Integer accountId) { this.accountId = accountId; } @@ -371,15 +371,15 @@ public void setPolicy(Object policy) { } - public User roles(List roles) { + public User roles(List roles) { this.roles = roles; return this; } - public User addRolesItem(Long rolesItem) { + public User addRolesItem(Integer rolesItem) { if (this.roles == null) { - this.roles = new ArrayList(); + this.roles = new ArrayList(); } this.roles.add(rolesItem); return this; @@ -392,12 +392,12 @@ public User addRolesItem(Long rolesItem) { @javax.annotation.Nullable @ApiModelProperty(example = "[71]", value = "A list of the IDs of the roles assigned to the user.") - public List getRoles() { + public List getRoles() { return roles; } - public void setRoles(List roles) { + public void setRoles(List roles) { this.roles = roles; } diff --git a/src/main/java/one/talon/model/UserEntity.java b/src/main/java/one/talon/model/UserEntity.java index ede72831..227e35c4 100644 --- a/src/main/java/one/talon/model/UserEntity.java +++ b/src/main/java/one/talon/model/UserEntity.java @@ -31,10 +31,10 @@ public class UserEntity { public static final String SERIALIZED_NAME_USER_ID = "userId"; @SerializedName(SERIALIZED_NAME_USER_ID) - private Long userId; + private Integer userId; - public UserEntity userId(Long userId) { + public UserEntity userId(Integer userId) { this.userId = userId; return this; @@ -46,12 +46,12 @@ public UserEntity userId(Long userId) { **/ @ApiModelProperty(example = "388", required = true, value = "The ID of the user associated with this entity.") - public Long getUserId() { + public Integer getUserId() { return userId; } - public void setUserId(Long userId) { + public void setUserId(Integer userId) { this.userId = userId; } diff --git a/src/main/java/one/talon/model/ValueMap.java b/src/main/java/one/talon/model/ValueMap.java index 2ef2f077..6e6cd0b9 100644 --- a/src/main/java/one/talon/model/ValueMap.java +++ b/src/main/java/one/talon/model/ValueMap.java @@ -32,7 +32,7 @@ public class ValueMap { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -40,14 +40,14 @@ public class ValueMap { public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; @SerializedName(SERIALIZED_NAME_CREATED_BY) - private Long createdBy; + private Integer createdBy; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; - public ValueMap id(Long id) { + public ValueMap id(Integer id) { this.id = id; return this; @@ -59,12 +59,12 @@ public ValueMap id(Long id) { **/ @ApiModelProperty(example = "6", required = true, value = "Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -92,7 +92,7 @@ public void setCreated(OffsetDateTime created) { } - public ValueMap createdBy(Long createdBy) { + public ValueMap createdBy(Integer createdBy) { this.createdBy = createdBy; return this; @@ -105,17 +105,17 @@ public ValueMap createdBy(Long createdBy) { @javax.annotation.Nullable @ApiModelProperty(example = "216", value = "The ID of the user who created the value map.") - public Long getCreatedBy() { + public Integer getCreatedBy() { return createdBy; } - public void setCreatedBy(Long createdBy) { + public void setCreatedBy(Integer createdBy) { this.createdBy = createdBy; } - public ValueMap campaignId(Long campaignId) { + public ValueMap campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -127,12 +127,12 @@ public ValueMap campaignId(Long campaignId) { **/ @ApiModelProperty(example = "244", required = true, value = "") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } diff --git a/src/main/java/one/talon/model/Webhook.java b/src/main/java/one/talon/model/Webhook.java index 11c17956..d794da57 100644 --- a/src/main/java/one/talon/model/Webhook.java +++ b/src/main/java/one/talon/model/Webhook.java @@ -35,7 +35,7 @@ public class Webhook { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -47,7 +47,7 @@ public class Webhook { public static final String SERIALIZED_NAME_APPLICATION_IDS = "applicationIds"; @SerializedName(SERIALIZED_NAME_APPLICATION_IDS) - private List applicationIds = new ArrayList(); + private List applicationIds = new ArrayList(); public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) @@ -57,6 +57,10 @@ public class Webhook { @SerializedName(SERIALIZED_NAME_DESCRIPTION) private String description; + public static final String SERIALIZED_NAME_DRAFT = "draft"; + @SerializedName(SERIALIZED_NAME_DRAFT) + private Boolean draft; + /** * API method for this webhook. */ @@ -135,24 +139,24 @@ public VerbEnum read(final JsonReader jsonReader) throws IOException { private Boolean enabled; - public Webhook id(Long id) { + public Webhook id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -201,13 +205,13 @@ public void setModified(OffsetDateTime modified) { } - public Webhook applicationIds(List applicationIds) { + public Webhook applicationIds(List applicationIds) { this.applicationIds = applicationIds; return this; } - public Webhook addApplicationIdsItem(Long applicationIdsItem) { + public Webhook addApplicationIdsItem(Integer applicationIdsItem) { this.applicationIds.add(applicationIdsItem); return this; } @@ -218,12 +222,12 @@ public Webhook addApplicationIdsItem(Long applicationIdsItem) { **/ @ApiModelProperty(required = true, value = "The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. ") - public List getApplicationIds() { + public List getApplicationIds() { return applicationIds; } - public void setApplicationIds(List applicationIds) { + public void setApplicationIds(List applicationIds) { this.applicationIds = applicationIds; } @@ -273,6 +277,28 @@ public void setDescription(String description) { } + public Webhook draft(Boolean draft) { + + this.draft = draft; + return this; + } + + /** + * Indicates if the webhook is a draft. + * @return draft + **/ + @ApiModelProperty(example = "false", required = true, value = "Indicates if the webhook is a draft.") + + public Boolean getDraft() { + return draft; + } + + + public void setDraft(Boolean draft) { + this.draft = draft; + } + + public Webhook verb(VerbEnum verb) { this.verb = verb; @@ -431,6 +457,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.applicationIds, webhook.applicationIds) && Objects.equals(this.title, webhook.title) && Objects.equals(this.description, webhook.description) && + Objects.equals(this.draft, webhook.draft) && Objects.equals(this.verb, webhook.verb) && Objects.equals(this.url, webhook.url) && Objects.equals(this.headers, webhook.headers) && @@ -441,7 +468,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, modified, applicationIds, title, description, verb, url, headers, payload, params, enabled); + return Objects.hash(id, created, modified, applicationIds, title, description, draft, verb, url, headers, payload, params, enabled); } @@ -455,6 +482,7 @@ public String toString() { sb.append(" applicationIds: ").append(toIndentedString(applicationIds)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" draft: ").append(toIndentedString(draft)).append("\n"); sb.append(" verb: ").append(toIndentedString(verb)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" headers: ").append(toIndentedString(headers)).append("\n"); diff --git a/src/main/java/one/talon/model/WebhookActivationLogEntry.java b/src/main/java/one/talon/model/WebhookActivationLogEntry.java index a2d21beb..45625dc7 100644 --- a/src/main/java/one/talon/model/WebhookActivationLogEntry.java +++ b/src/main/java/one/talon/model/WebhookActivationLogEntry.java @@ -37,15 +37,15 @@ public class WebhookActivationLogEntry { public static final String SERIALIZED_NAME_WEBHOOK_ID = "webhookId"; @SerializedName(SERIALIZED_NAME_WEBHOOK_ID) - private Long webhookId; + private Integer webhookId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) - private Long campaignId; + private Integer campaignId; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -74,7 +74,7 @@ public void setIntegrationRequestUuid(String integrationRequestUuid) { } - public WebhookActivationLogEntry webhookId(Long webhookId) { + public WebhookActivationLogEntry webhookId(Integer webhookId) { this.webhookId = webhookId; return this; @@ -86,17 +86,17 @@ public WebhookActivationLogEntry webhookId(Long webhookId) { **/ @ApiModelProperty(example = "1", required = true, value = "ID of the webhook that triggered the request.") - public Long getWebhookId() { + public Integer getWebhookId() { return webhookId; } - public void setWebhookId(Long webhookId) { + public void setWebhookId(Integer webhookId) { this.webhookId = webhookId; } - public WebhookActivationLogEntry applicationId(Long applicationId) { + public WebhookActivationLogEntry applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -108,17 +108,17 @@ public WebhookActivationLogEntry applicationId(Long applicationId) { **/ @ApiModelProperty(example = "13", required = true, value = "ID of the application that triggered the webhook.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } - public WebhookActivationLogEntry campaignId(Long campaignId) { + public WebhookActivationLogEntry campaignId(Integer campaignId) { this.campaignId = campaignId; return this; @@ -130,12 +130,12 @@ public WebhookActivationLogEntry campaignId(Long campaignId) { **/ @ApiModelProperty(example = "86", required = true, value = "ID of the campaign that triggered the webhook.") - public Long getCampaignId() { + public Integer getCampaignId() { return campaignId; } - public void setCampaignId(Long campaignId) { + public void setCampaignId(Integer campaignId) { this.campaignId = campaignId; } diff --git a/src/main/java/one/talon/model/WebhookAuthentication.java b/src/main/java/one/talon/model/WebhookAuthentication.java new file mode 100644 index 00000000..53b9e2e4 --- /dev/null +++ b/src/main/java/one/talon/model/WebhookAuthentication.java @@ -0,0 +1,378 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.WebhookAuthenticationWebhookRef; +import org.threeten.bp.OffsetDateTime; + +/** + * WebhookAuthentication + */ + +public class WebhookAuthentication { + public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; + @SerializedName(SERIALIZED_NAME_CREATED_BY) + private String createdBy; + + public static final String SERIALIZED_NAME_MODIFIED_BY = "modifiedBy"; + @SerializedName(SERIALIZED_NAME_MODIFIED_BY) + private String modifiedBy; + + public static final String SERIALIZED_NAME_WEBHOOKS = "webhooks"; + @SerializedName(SERIALIZED_NAME_WEBHOOKS) + private List webhooks = new ArrayList(); + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + /** + * Gets or Sets type + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + BASIC("basic"), + + CUSTOM("custom"); + + 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_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private Object data; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Integer id; + + public static final String SERIALIZED_NAME_CREATED = "created"; + @SerializedName(SERIALIZED_NAME_CREATED) + private OffsetDateTime created; + + public static final String SERIALIZED_NAME_MODIFIED = "modified"; + @SerializedName(SERIALIZED_NAME_MODIFIED) + private OffsetDateTime modified; + + + public WebhookAuthentication createdBy(String createdBy) { + + this.createdBy = createdBy; + return this; + } + + /** + * The name of the user who created the webhook authentication. + * @return createdBy + **/ + @ApiModelProperty(required = true, value = "The name of the user who created the webhook authentication.") + + public String getCreatedBy() { + return createdBy; + } + + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + + public WebhookAuthentication modifiedBy(String modifiedBy) { + + this.modifiedBy = modifiedBy; + return this; + } + + /** + * The name of the user who last modified the webhook authentication. + * @return modifiedBy + **/ + @ApiModelProperty(required = true, value = "The name of the user who last modified the webhook authentication.") + + public String getModifiedBy() { + return modifiedBy; + } + + + public void setModifiedBy(String modifiedBy) { + this.modifiedBy = modifiedBy; + } + + + public WebhookAuthentication webhooks(List webhooks) { + + this.webhooks = webhooks; + return this; + } + + public WebhookAuthentication addWebhooksItem(WebhookAuthenticationWebhookRef webhooksItem) { + this.webhooks.add(webhooksItem); + return this; + } + + /** + * Get webhooks + * @return webhooks + **/ + @ApiModelProperty(required = true, value = "") + + public List getWebhooks() { + return webhooks; + } + + + public void setWebhooks(List webhooks) { + this.webhooks = webhooks; + } + + + public WebhookAuthentication name(String name) { + + this.name = name; + return this; + } + + /** + * The name of the webhook authentication. + * @return name + **/ + @ApiModelProperty(example = "My basic auth", required = true, value = "The name of the webhook authentication.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public WebhookAuthentication type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @ApiModelProperty(required = true, value = "") + + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + + public WebhookAuthentication data(Object data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(required = true, value = "") + + public Object getData() { + return data; + } + + + public void setData(Object data) { + this.data = data; + } + + + public WebhookAuthentication id(Integer id) { + + this.id = id; + return this; + } + + /** + * The internal ID of this entity. + * @return id + **/ + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") + + public Integer getId() { + return id; + } + + + public void setId(Integer id) { + this.id = id; + } + + + public WebhookAuthentication created(OffsetDateTime created) { + + this.created = created; + return this; + } + + /** + * The time this entity was created. + * @return created + **/ + @ApiModelProperty(example = "2020-06-10T09:05:27.993483Z", required = true, value = "The time this entity was created.") + + public OffsetDateTime getCreated() { + return created; + } + + + public void setCreated(OffsetDateTime created) { + this.created = created; + } + + + public WebhookAuthentication modified(OffsetDateTime modified) { + + this.modified = modified; + return this; + } + + /** + * The time this entity was last modified. + * @return modified + **/ + @ApiModelProperty(example = "2021-09-12T10:12:42Z", required = true, value = "The time this entity was last modified.") + + public OffsetDateTime getModified() { + return modified; + } + + + public void setModified(OffsetDateTime modified) { + this.modified = modified; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookAuthentication webhookAuthentication = (WebhookAuthentication) o; + return Objects.equals(this.createdBy, webhookAuthentication.createdBy) && + Objects.equals(this.modifiedBy, webhookAuthentication.modifiedBy) && + Objects.equals(this.webhooks, webhookAuthentication.webhooks) && + Objects.equals(this.name, webhookAuthentication.name) && + Objects.equals(this.type, webhookAuthentication.type) && + Objects.equals(this.data, webhookAuthentication.data) && + Objects.equals(this.id, webhookAuthentication.id) && + Objects.equals(this.created, webhookAuthentication.created) && + Objects.equals(this.modified, webhookAuthentication.modified); + } + + @Override + public int hashCode() { + return Objects.hash(createdBy, modifiedBy, webhooks, name, type, data, id, created, modified); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookAuthentication {\n"); + sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append(" modifiedBy: ").append(toIndentedString(modifiedBy)).append("\n"); + sb.append(" webhooks: ").append(toIndentedString(webhooks)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" created: ").append(toIndentedString(created)).append("\n"); + sb.append(" modified: ").append(toIndentedString(modified)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/WebhookAuthenticationBase.java b/src/main/java/one/talon/model/WebhookAuthenticationBase.java new file mode 100644 index 00000000..5652e48d --- /dev/null +++ b/src/main/java/one/talon/model/WebhookAuthenticationBase.java @@ -0,0 +1,201 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * WebhookAuthenticationBase + */ + +public class WebhookAuthenticationBase { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + /** + * Gets or Sets type + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + BASIC("basic"), + + CUSTOM("custom"); + + 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_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private Object data; + + + public WebhookAuthenticationBase name(String name) { + + this.name = name; + return this; + } + + /** + * The name of the webhook authentication. + * @return name + **/ + @ApiModelProperty(example = "My basic auth", required = true, value = "The name of the webhook authentication.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public WebhookAuthenticationBase type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @ApiModelProperty(required = true, value = "") + + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + + public WebhookAuthenticationBase data(Object data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(required = true, value = "") + + public Object getData() { + return data; + } + + + public void setData(Object data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookAuthenticationBase webhookAuthenticationBase = (WebhookAuthenticationBase) o; + return Objects.equals(this.name, webhookAuthenticationBase.name) && + Objects.equals(this.type, webhookAuthenticationBase.type) && + Objects.equals(this.data, webhookAuthenticationBase.data); + } + + @Override + public int hashCode() { + return Objects.hash(name, type, data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookAuthenticationBase {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/WebhookAuthenticationDataBasic.java b/src/main/java/one/talon/model/WebhookAuthenticationDataBasic.java new file mode 100644 index 00000000..d97e32f6 --- /dev/null +++ b/src/main/java/one/talon/model/WebhookAuthenticationDataBasic.java @@ -0,0 +1,126 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * WebhookAuthenticationDataBasic + */ + +public class WebhookAuthenticationDataBasic { + public static final String SERIALIZED_NAME_USERNAME = "username"; + @SerializedName(SERIALIZED_NAME_USERNAME) + private String username; + + public static final String SERIALIZED_NAME_PASSWORD = "password"; + @SerializedName(SERIALIZED_NAME_PASSWORD) + private String password; + + + public WebhookAuthenticationDataBasic username(String username) { + + this.username = username; + return this; + } + + /** + * The Basic HTTP username. + * @return username + **/ + @ApiModelProperty(required = true, value = "The Basic HTTP username.") + + public String getUsername() { + return username; + } + + + public void setUsername(String username) { + this.username = username; + } + + + public WebhookAuthenticationDataBasic password(String password) { + + this.password = password; + return this; + } + + /** + * The Basic HTTP password. + * @return password + **/ + @ApiModelProperty(required = true, value = "The Basic HTTP password.") + + public String getPassword() { + return password; + } + + + public void setPassword(String password) { + this.password = password; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookAuthenticationDataBasic webhookAuthenticationDataBasic = (WebhookAuthenticationDataBasic) o; + return Objects.equals(this.username, webhookAuthenticationDataBasic.username) && + Objects.equals(this.password, webhookAuthenticationDataBasic.password); + } + + @Override + public int hashCode() { + return Objects.hash(username, password); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookAuthenticationDataBasic {\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/WebhookAuthenticationDataCustom.java b/src/main/java/one/talon/model/WebhookAuthenticationDataCustom.java new file mode 100644 index 00000000..00722576 --- /dev/null +++ b/src/main/java/one/talon/model/WebhookAuthenticationDataCustom.java @@ -0,0 +1,106 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * WebhookAuthenticationDataCustom + */ + +public class WebhookAuthenticationDataCustom { + public static final String SERIALIZED_NAME_HEADERS = "headers"; + @SerializedName(SERIALIZED_NAME_HEADERS) + private Map headers = new HashMap(); + + + public WebhookAuthenticationDataCustom headers(Map headers) { + + this.headers = headers; + return this; + } + + public WebhookAuthenticationDataCustom putHeadersItem(String key, String headersItem) { + this.headers.put(key, headersItem); + return this; + } + + /** + * Get headers + * @return headers + **/ + @ApiModelProperty(required = true, value = "") + + public Map getHeaders() { + return headers; + } + + + public void setHeaders(Map headers) { + this.headers = headers; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookAuthenticationDataCustom webhookAuthenticationDataCustom = (WebhookAuthenticationDataCustom) o; + return Objects.equals(this.headers, webhookAuthenticationDataCustom.headers); + } + + @Override + public int hashCode() { + return Objects.hash(headers); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookAuthenticationDataCustom {\n"); + sb.append(" headers: ").append(toIndentedString(headers)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/WebhookAuthenticationWebhookRef.java b/src/main/java/one/talon/model/WebhookAuthenticationWebhookRef.java new file mode 100644 index 00000000..5979ad0c --- /dev/null +++ b/src/main/java/one/talon/model/WebhookAuthenticationWebhookRef.java @@ -0,0 +1,155 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * WebhookAuthenticationWebhookRef + */ + +public class WebhookAuthenticationWebhookRef { + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Integer id; + + public static final String SERIALIZED_NAME_TITLE = "title"; + @SerializedName(SERIALIZED_NAME_TITLE) + private String title; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; + + + public WebhookAuthenticationWebhookRef id(Integer id) { + + this.id = id; + return this; + } + + /** + * The internal ID of this entity. + * @return id + **/ + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") + + public Integer getId() { + return id; + } + + + public void setId(Integer id) { + this.id = id; + } + + + public WebhookAuthenticationWebhookRef title(String title) { + + this.title = title; + return this; + } + + /** + * The title of the webhook authentication. + * @return title + **/ + @ApiModelProperty(example = "Send message", required = true, value = "The title of the webhook authentication.") + + public String getTitle() { + return title; + } + + + public void setTitle(String title) { + this.title = title; + } + + + public WebhookAuthenticationWebhookRef description(String description) { + + this.description = description; + return this; + } + + /** + * A description of the webhook authentication. + * @return description + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "A webhook to send a coupon to the user.", value = "A description of the webhook authentication.") + + public String getDescription() { + return description; + } + + + public void setDescription(String description) { + this.description = description; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookAuthenticationWebhookRef webhookAuthenticationWebhookRef = (WebhookAuthenticationWebhookRef) o; + return Objects.equals(this.id, webhookAuthenticationWebhookRef.id) && + Objects.equals(this.title, webhookAuthenticationWebhookRef.title) && + Objects.equals(this.description, webhookAuthenticationWebhookRef.description); + } + + @Override + public int hashCode() { + return Objects.hash(id, title, description); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookAuthenticationWebhookRef {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).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(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/one/talon/model/WebhookLogEntry.java b/src/main/java/one/talon/model/WebhookLogEntry.java index 26e71d0e..7afccda3 100644 --- a/src/main/java/one/talon/model/WebhookLogEntry.java +++ b/src/main/java/one/talon/model/WebhookLogEntry.java @@ -41,11 +41,11 @@ public class WebhookLogEntry { public static final String SERIALIZED_NAME_WEBHOOK_ID = "webhookId"; @SerializedName(SERIALIZED_NAME_WEBHOOK_ID) - private Long webhookId; + private Integer webhookId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) - private Long applicationId; + private Integer applicationId; public static final String SERIALIZED_NAME_URL = "url"; @SerializedName(SERIALIZED_NAME_URL) @@ -61,7 +61,7 @@ public class WebhookLogEntry { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - private Long status; + private Integer status; public static final String SERIALIZED_NAME_REQUEST_TIME = "requestTime"; @SerializedName(SERIALIZED_NAME_REQUEST_TIME) @@ -116,7 +116,7 @@ public void setIntegrationRequestUuid(String integrationRequestUuid) { } - public WebhookLogEntry webhookId(Long webhookId) { + public WebhookLogEntry webhookId(Integer webhookId) { this.webhookId = webhookId; return this; @@ -128,17 +128,17 @@ public WebhookLogEntry webhookId(Long webhookId) { **/ @ApiModelProperty(example = "5", required = true, value = "ID of the webhook that triggered the request.") - public Long getWebhookId() { + public Integer getWebhookId() { return webhookId; } - public void setWebhookId(Long webhookId) { + public void setWebhookId(Integer webhookId) { this.webhookId = webhookId; } - public WebhookLogEntry applicationId(Long applicationId) { + public WebhookLogEntry applicationId(Integer applicationId) { this.applicationId = applicationId; return this; @@ -151,12 +151,12 @@ public WebhookLogEntry applicationId(Long applicationId) { @javax.annotation.Nullable @ApiModelProperty(example = "12", value = "ID of the application that triggered the webhook.") - public Long getApplicationId() { + public Integer getApplicationId() { return applicationId; } - public void setApplicationId(Long applicationId) { + public void setApplicationId(Integer applicationId) { this.applicationId = applicationId; } @@ -228,7 +228,7 @@ public void setResponse(String response) { } - public WebhookLogEntry status(Long status) { + public WebhookLogEntry status(Integer status) { this.status = status; return this; @@ -241,12 +241,12 @@ public WebhookLogEntry status(Long status) { @javax.annotation.Nullable @ApiModelProperty(example = "204", value = "HTTP status code of response.") - public Long getStatus() { + public Integer getStatus() { return status; } - public void setStatus(Long status) { + public void setStatus(Integer status) { this.status = status; } diff --git a/src/main/java/one/talon/model/WebhookWithOutgoingIntegrationDetails.java b/src/main/java/one/talon/model/WebhookWithOutgoingIntegrationDetails.java index 09e2a54d..b5b99638 100644 --- a/src/main/java/one/talon/model/WebhookWithOutgoingIntegrationDetails.java +++ b/src/main/java/one/talon/model/WebhookWithOutgoingIntegrationDetails.java @@ -35,7 +35,7 @@ public class WebhookWithOutgoingIntegrationDetails { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) - private Long id; + private Integer id; public static final String SERIALIZED_NAME_CREATED = "created"; @SerializedName(SERIALIZED_NAME_CREATED) @@ -47,7 +47,7 @@ public class WebhookWithOutgoingIntegrationDetails { public static final String SERIALIZED_NAME_APPLICATION_IDS = "applicationIds"; @SerializedName(SERIALIZED_NAME_APPLICATION_IDS) - private List applicationIds = new ArrayList(); + private List applicationIds = new ArrayList(); public static final String SERIALIZED_NAME_TITLE = "title"; @SerializedName(SERIALIZED_NAME_TITLE) @@ -57,6 +57,10 @@ public class WebhookWithOutgoingIntegrationDetails { @SerializedName(SERIALIZED_NAME_DESCRIPTION) private String description; + public static final String SERIALIZED_NAME_DRAFT = "draft"; + @SerializedName(SERIALIZED_NAME_DRAFT) + private Boolean draft; + /** * API method for this webhook. */ @@ -136,35 +140,35 @@ public VerbEnum read(final JsonReader jsonReader) throws IOException { public static final String SERIALIZED_NAME_OUTGOING_INTEGRATION_TEMPLATE_ID = "outgoingIntegrationTemplateId"; @SerializedName(SERIALIZED_NAME_OUTGOING_INTEGRATION_TEMPLATE_ID) - private Long outgoingIntegrationTemplateId; + private Integer outgoingIntegrationTemplateId; public static final String SERIALIZED_NAME_OUTGOING_INTEGRATION_TYPE_ID = "outgoingIntegrationTypeId"; @SerializedName(SERIALIZED_NAME_OUTGOING_INTEGRATION_TYPE_ID) - private Long outgoingIntegrationTypeId; + private Integer outgoingIntegrationTypeId; public static final String SERIALIZED_NAME_OUTGOING_INTEGRATION_TYPE_NAME = "outgoingIntegrationTypeName"; @SerializedName(SERIALIZED_NAME_OUTGOING_INTEGRATION_TYPE_NAME) private String outgoingIntegrationTypeName; - public WebhookWithOutgoingIntegrationDetails id(Long id) { + public WebhookWithOutgoingIntegrationDetails id(Integer id) { this.id = id; return this; } /** - * Internal ID of this entity. + * The internal ID of this entity. * @return id **/ - @ApiModelProperty(example = "6", required = true, value = "Internal ID of this entity.") + @ApiModelProperty(example = "6", required = true, value = "The internal ID of this entity.") - public Long getId() { + public Integer getId() { return id; } - public void setId(Long id) { + public void setId(Integer id) { this.id = id; } @@ -213,13 +217,13 @@ public void setModified(OffsetDateTime modified) { } - public WebhookWithOutgoingIntegrationDetails applicationIds(List applicationIds) { + public WebhookWithOutgoingIntegrationDetails applicationIds(List applicationIds) { this.applicationIds = applicationIds; return this; } - public WebhookWithOutgoingIntegrationDetails addApplicationIdsItem(Long applicationIdsItem) { + public WebhookWithOutgoingIntegrationDetails addApplicationIdsItem(Integer applicationIdsItem) { this.applicationIds.add(applicationIdsItem); return this; } @@ -230,12 +234,12 @@ public WebhookWithOutgoingIntegrationDetails addApplicationIdsItem(Long applicat **/ @ApiModelProperty(required = true, value = "The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. ") - public List getApplicationIds() { + public List getApplicationIds() { return applicationIds; } - public void setApplicationIds(List applicationIds) { + public void setApplicationIds(List applicationIds) { this.applicationIds = applicationIds; } @@ -285,6 +289,28 @@ public void setDescription(String description) { } + public WebhookWithOutgoingIntegrationDetails draft(Boolean draft) { + + this.draft = draft; + return this; + } + + /** + * Indicates if the webhook is a draft. + * @return draft + **/ + @ApiModelProperty(example = "false", required = true, value = "Indicates if the webhook is a draft.") + + public Boolean getDraft() { + return draft; + } + + + public void setDraft(Boolean draft) { + this.draft = draft; + } + + public WebhookWithOutgoingIntegrationDetails verb(VerbEnum verb) { this.verb = verb; @@ -428,7 +454,7 @@ public void setEnabled(Boolean enabled) { } - public WebhookWithOutgoingIntegrationDetails outgoingIntegrationTemplateId(Long outgoingIntegrationTemplateId) { + public WebhookWithOutgoingIntegrationDetails outgoingIntegrationTemplateId(Integer outgoingIntegrationTemplateId) { this.outgoingIntegrationTemplateId = outgoingIntegrationTemplateId; return this; @@ -441,17 +467,17 @@ public WebhookWithOutgoingIntegrationDetails outgoingIntegrationTemplateId(Long @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "Identifier of the outgoing integration template.") - public Long getOutgoingIntegrationTemplateId() { + public Integer getOutgoingIntegrationTemplateId() { return outgoingIntegrationTemplateId; } - public void setOutgoingIntegrationTemplateId(Long outgoingIntegrationTemplateId) { + public void setOutgoingIntegrationTemplateId(Integer outgoingIntegrationTemplateId) { this.outgoingIntegrationTemplateId = outgoingIntegrationTemplateId; } - public WebhookWithOutgoingIntegrationDetails outgoingIntegrationTypeId(Long outgoingIntegrationTypeId) { + public WebhookWithOutgoingIntegrationDetails outgoingIntegrationTypeId(Integer outgoingIntegrationTypeId) { this.outgoingIntegrationTypeId = outgoingIntegrationTypeId; return this; @@ -464,12 +490,12 @@ public WebhookWithOutgoingIntegrationDetails outgoingIntegrationTypeId(Long outg @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "Identifier of the outgoing integration type.") - public Long getOutgoingIntegrationTypeId() { + public Integer getOutgoingIntegrationTypeId() { return outgoingIntegrationTypeId; } - public void setOutgoingIntegrationTypeId(Long outgoingIntegrationTypeId) { + public void setOutgoingIntegrationTypeId(Integer outgoingIntegrationTypeId) { this.outgoingIntegrationTypeId = outgoingIntegrationTypeId; } @@ -512,6 +538,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.applicationIds, webhookWithOutgoingIntegrationDetails.applicationIds) && Objects.equals(this.title, webhookWithOutgoingIntegrationDetails.title) && Objects.equals(this.description, webhookWithOutgoingIntegrationDetails.description) && + Objects.equals(this.draft, webhookWithOutgoingIntegrationDetails.draft) && Objects.equals(this.verb, webhookWithOutgoingIntegrationDetails.verb) && Objects.equals(this.url, webhookWithOutgoingIntegrationDetails.url) && Objects.equals(this.headers, webhookWithOutgoingIntegrationDetails.headers) && @@ -525,7 +552,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, created, modified, applicationIds, title, description, verb, url, headers, payload, params, enabled, outgoingIntegrationTemplateId, outgoingIntegrationTypeId, outgoingIntegrationTypeName); + return Objects.hash(id, created, modified, applicationIds, title, description, draft, verb, url, headers, payload, params, enabled, outgoingIntegrationTemplateId, outgoingIntegrationTypeId, outgoingIntegrationTypeName); } @@ -539,6 +566,7 @@ public String toString() { sb.append(" applicationIds: ").append(toIndentedString(applicationIds)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" draft: ").append(toIndentedString(draft)).append("\n"); sb.append(" verb: ").append(toIndentedString(verb)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" headers: ").append(toIndentedString(headers)).append("\n"); diff --git a/src/main/java/one/talon/model/WillAwardGiveawayEffectProps.java b/src/main/java/one/talon/model/WillAwardGiveawayEffectProps.java index 5e1ed4fe..e26bf78d 100644 --- a/src/main/java/one/talon/model/WillAwardGiveawayEffectProps.java +++ b/src/main/java/one/talon/model/WillAwardGiveawayEffectProps.java @@ -32,7 +32,7 @@ public class WillAwardGiveawayEffectProps { public static final String SERIALIZED_NAME_POOL_ID = "poolId"; @SerializedName(SERIALIZED_NAME_POOL_ID) - private Long poolId; + private Integer poolId; public static final String SERIALIZED_NAME_POOL_NAME = "poolName"; @SerializedName(SERIALIZED_NAME_POOL_NAME) @@ -43,7 +43,7 @@ public class WillAwardGiveawayEffectProps { private String recipientIntegrationId; - public WillAwardGiveawayEffectProps poolId(Long poolId) { + public WillAwardGiveawayEffectProps poolId(Integer poolId) { this.poolId = poolId; return this; @@ -55,12 +55,12 @@ public WillAwardGiveawayEffectProps poolId(Long poolId) { **/ @ApiModelProperty(example = "2", required = true, value = "The ID of the giveaways pool the code will be taken from.") - public Long getPoolId() { + public Integer getPoolId() { return poolId; } - public void setPoolId(Long poolId) { + public void setPoolId(Integer poolId) { this.poolId = poolId; } diff --git a/src/test/java/one/talon/api/IntegrationApiTest.java b/src/test/java/one/talon/api/IntegrationApiTest.java index bb0aae13..e8c5564a 100644 --- a/src/test/java/one/talon/api/IntegrationApiTest.java +++ b/src/test/java/one/talon/api/IntegrationApiTest.java @@ -146,7 +146,7 @@ public void createReferralsForMultipleAdvocatesTest() throws ApiException { */ @Test public void deleteAudienceMembershipsV2Test() throws ApiException { - Long audienceId = null; + Integer audienceId = null; api.deleteAudienceMembershipsV2(audienceId); // TODO: test validations @@ -162,7 +162,7 @@ public void deleteAudienceMembershipsV2Test() throws ApiException { */ @Test public void deleteAudienceV2Test() throws ApiException { - Long audienceId = null; + Integer audienceId = null; api.deleteAudienceV2(audienceId); // TODO: test validations @@ -211,7 +211,7 @@ public void deleteCustomerDataTest() throws ApiException { */ @Test public void generateLoyaltyCardTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; GenerateLoyaltyCard body = null; LoyaltyCard response = api.generateLoyaltyCard(loyaltyProgramId, body); @@ -229,12 +229,12 @@ public void generateLoyaltyCardTest() throws ApiException { @Test public void getCustomerAchievementHistoryTest() throws ApiException { String integrationId = null; - Long achievementId = null; + Integer achievementId = null; List progressStatus = null; OffsetDateTime startDate = null; OffsetDateTime endDate = null; - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; InlineResponse2002 response = api.getCustomerAchievementHistory(integrationId, achievementId, progressStatus, startDate, endDate, pageSize, skip); // TODO: test validations @@ -255,8 +255,8 @@ public void getCustomerAchievementsTest() throws ApiException { List achievementIds = null; List achievementStatus = null; List currentProgressStatus = null; - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; InlineResponse2001 response = api.getCustomerAchievements(integrationId, campaignIds, achievementIds, achievementStatus, currentProgressStatus, pageSize, skip); // TODO: test validations @@ -310,7 +310,7 @@ public void getCustomerSessionTest() throws ApiException { */ @Test public void getLoyaltyBalancesTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; String integrationId = null; OffsetDateTime endDate = null; String subledgerId = null; @@ -331,7 +331,7 @@ public void getLoyaltyBalancesTest() throws ApiException { */ @Test public void getLoyaltyCardBalancesTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; String loyaltyCardId = null; OffsetDateTime endDate = null; List subledgerId = null; @@ -350,12 +350,12 @@ public void getLoyaltyCardBalancesTest() throws ApiException { */ @Test public void getLoyaltyCardPointsTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; String loyaltyCardId = null; String status = null; List subledgerId = null; - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; InlineResponse2005 response = api.getLoyaltyCardPoints(loyaltyProgramId, loyaltyCardId, status, subledgerId, pageSize, skip); // TODO: test validations @@ -371,14 +371,14 @@ public void getLoyaltyCardPointsTest() throws ApiException { */ @Test public void getLoyaltyCardTransactionsTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; String loyaltyCardId = null; List subledgerId = null; String loyaltyTransactionType = null; OffsetDateTime startDate = null; OffsetDateTime endDate = null; - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; InlineResponse2003 response = api.getLoyaltyCardTransactions(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip); // TODO: test validations @@ -394,12 +394,12 @@ public void getLoyaltyCardTransactionsTest() throws ApiException { */ @Test public void getLoyaltyProgramProfilePointsTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; String integrationId = null; String status = null; String subledgerId = null; - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; InlineResponse2006 response = api.getLoyaltyProgramProfilePoints(loyaltyProgramId, integrationId, status, subledgerId, pageSize, skip); // TODO: test validations @@ -415,14 +415,14 @@ public void getLoyaltyProgramProfilePointsTest() throws ApiException { */ @Test public void getLoyaltyProgramProfileTransactionsTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; String integrationId = null; String subledgerId = null; String loyaltyTransactionType = null; OffsetDateTime startDate = null; OffsetDateTime endDate = null; - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; InlineResponse2004 response = api.getLoyaltyProgramProfileTransactions(loyaltyProgramId, integrationId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip); // TODO: test validations @@ -454,7 +454,7 @@ public void getReservedCustomersTest() throws ApiException { */ @Test public void linkLoyaltyCardToProfileTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; String loyaltyCardId = null; LoyaltyCardRegistration body = null; LoyaltyCard response = api.linkLoyaltyCardToProfile(loyaltyProgramId, loyaltyCardId, body); @@ -506,7 +506,7 @@ public void returnCartItemsTest() throws ApiException { */ @Test public void syncCatalogTest() throws ApiException { - Long catalogId = null; + Integer catalogId = null; CatalogSyncRequest body = null; Catalog response = api.syncCatalog(catalogId, body); @@ -516,7 +516,7 @@ public void syncCatalogTest() throws ApiException { /** * Track event * - * Triggers a custom event. To use this endpoint: 1. Define a [custom event](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) in the Campaign Manager. 1. Update or create a rule to check for this event. 1. Trigger the event with this endpoint. After you have successfully sent an event to Talon.One, you can list the received events in the **Events** view in the Campaign Manager. Talon.One also offers a set of [built-in events](https://docs.talon.one/docs/dev/concepts/entities/events). Ensure you do not create a custom event when you can use a built-in event. For example, use this endpoint to trigger an event when a customer shares a link to a product. See the [tutorial](https://docs.talon.one/docs/product/tutorials/referrals/incentivizing-product-link-sharing). <div class=\"redoc-section\"> <p class=\"title\">Important</p> 1. `profileId` is required even though the schema does not say it. 1. If the customer profile ID is new, a new profile is automatically created but the `customer_profile_created` [built-in event ](https://docs.talon.one/docs/dev/concepts/entities/events) is **not** triggered. 1. We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> + * Triggers a custom event. To use this endpoint: 1. Define a [custom event](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) in the Campaign Manager. 1. Update or create a rule to check for this event. 1. Trigger the event with this endpoint. After you have successfully sent an event to Talon.One, you can list the received events in the **Events** view in the Campaign Manager. Talon.One also offers a set of [built-in events](https://docs.talon.one/docs/dev/concepts/entities/events). Ensure you do not create a custom event when you can use a built-in event. For example, use this endpoint to trigger an event when a customer shares a link to a product. See the [tutorial](https://docs.talon.one/docs/product/tutorials/referrals/incentivizing-product-link-sharing). <div class=\"redoc-section\"> <p class=\"title\">Important</p> 1. `profileId` is required even though the schema does not specify it. 1. If the customer profile ID is new, a new profile is automatically created but the `customer_profile_created` [built-in event ](https://docs.talon.one/docs/dev/concepts/entities/events) is **not** triggered. 1. We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). 1. [Archived campaigns](https://docs.talon.one/docs/product/campaigns/managing-campaigns#archiving-a-campaign) are not considered in rule evaluation. </div> * * @throws ApiException * if the Api call fails @@ -542,7 +542,7 @@ public void trackEventV2Test() throws ApiException { */ @Test public void updateAudienceCustomersAttributesTest() throws ApiException { - Long audienceId = null; + Integer audienceId = null; Object body = null; api.updateAudienceCustomersAttributes(audienceId, body); @@ -559,7 +559,7 @@ public void updateAudienceCustomersAttributesTest() throws ApiException { */ @Test public void updateAudienceV2Test() throws ApiException { - Long audienceId = null; + Integer audienceId = null; UpdateAudience body = null; Audience response = api.updateAudienceV2(audienceId, body); @@ -585,7 +585,7 @@ public void updateCustomerProfileAudiencesTest() throws ApiException { /** * Update customer profile * - * Update or create a [Customer Profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles). This endpoint triggers the Rule Builder. You can use this endpoint to: - Set attributes on the given customer profile. Ensure you create the attributes in the Campaign Manager, first. - Modify the audience the customer profile is a member of. <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer profile returns a response with the requested integration state. - You can use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> + * Update or create a [Customer Profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles). This endpoint triggers the Rule Builder. You can use this endpoint to: - Set attributes on the given customer profile. Ensure you create the attributes in the Campaign Manager, first. - Modify the audience the customer profile is a member of. **Note:** [Archived campaigns](https://docs.talon.one/docs/product/campaigns/managing-campaigns#archiving-a-campaign) are not considered in rule evaluation when `runRuleEngine` is `true`. <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer profile returns a response with the requested integration state. - You can use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> * * @throws ApiException * if the Api call fails @@ -621,7 +621,7 @@ public void updateCustomerProfilesV2Test() throws ApiException { /** * Update customer session * - * Update or create a [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). The endpoint responds with the potential promotion rule [effects](https://docs.talon.one/docs/dev/integration-api/api-effects) that match the current cart. For example, use this endpoint to share the contents of a customer's cart with Talon.One. **Note:** The currency for the session and the cart items in the session is the currency set for the Application that owns this session. ### Session management To use this endpoint, start by learning about [customer sessions](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions) and their states and refer to the `state` parameter documentation the request body schema docs below. ### Sessions and customer profiles - To link a session to a customer profile, set the `profileId` parameter in the request body to a customer profile's `integrationId`. - While you can create an anonymous session with `profileId=\"\"`, we recommend you use a guest ID instead. - A profile can be linked to simultaneous sessions in different Applications. Either: - Use unique session integration IDs or, - Use the same session integration ID across all of the Applications. **Note:** If the specified profile does not exist, an empty profile is **created automatically**. You can update it with [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2). <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer session returns a response with the new integration state. Use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> For more information, see: - The introductory video in [Getting started](https://docs.talon.one/docs/dev/getting-started/overview). - The [integration tutorial](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one). + * Update or create a [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). The endpoint responds with the potential promotion rule [effects](https://docs.talon.one/docs/dev/integration-api/api-effects) that match the current cart. For example, use this endpoint to share the contents of a customer's cart with Talon.One. **Note:** - The currency for the session and the cart items in it is the currency set for the Application linked to this session. - [Archived campaigns](https://docs.talon.one/docs/product/campaigns/managing-campaigns#archiving-a-campaign) are not considered for rule evaluation. ### Session management To use this endpoint, start by learning about [customer sessions](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions) and their states and refer to the `state` parameter documentation the request body schema docs below. ### Sessions and customer profiles - To link a session to a customer profile, set the `profileId` parameter in the request body to a customer profile's `integrationId`. - While you can create an anonymous session with `profileId=\"\"`, we recommend you use a guest ID instead. - A profile can be linked to simultaneous sessions in different Applications. Either: - Use unique session integration IDs or, - Use the same session integration ID across all of the Applications. **Note:** If the specified profile does not exist, an empty profile is **created automatically**. You can update it with [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2). <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer session returns a response with the new integration state. Use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> For more information, see: - The introductory video in [Getting started](https://docs.talon.one/docs/dev/getting-started/overview). - The [integration tutorial](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one). * * @throws ApiException * if the Api call fails diff --git a/src/test/java/one/talon/api/ManagementApiTest.java b/src/test/java/one/talon/api/ManagementApiTest.java index c9c2099e..bcfb557c 100644 --- a/src/test/java/one/talon/api/ManagementApiTest.java +++ b/src/test/java/one/talon/api/ManagementApiTest.java @@ -84,6 +84,8 @@ import one.talon.model.InlineResponse20047; import one.talon.model.InlineResponse20048; import one.talon.model.InlineResponse20049; +import one.talon.model.InlineResponse20050; +import one.talon.model.InlineResponse20051; import one.talon.model.InlineResponse2007; import one.talon.model.InlineResponse2008; import one.talon.model.InlineResponse2009; @@ -99,6 +101,7 @@ import one.talon.model.NewAdditionalCost; import one.talon.model.NewAttribute; import one.talon.model.NewCampaignCollection; +import one.talon.model.NewCampaignStoreBudget; import one.talon.model.NewCollection; import one.talon.model.NewCouponCreationJob; import one.talon.model.NewCouponDeletionJob; @@ -115,6 +118,9 @@ import one.talon.model.RoleV2; import one.talon.model.RoleV2Base; import one.talon.model.Ruleset; +import one.talon.model.ScimBaseGroup; +import one.talon.model.ScimGroup; +import one.talon.model.ScimGroupsListResponse; import one.talon.model.ScimNewUser; import one.talon.model.ScimPatchRequest; import one.talon.model.ScimResourceTypesListResponse; @@ -179,7 +185,7 @@ public void activateUserByEmailTest() throws ApiException { */ @Test public void addLoyaltyCardPointsTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; String loyaltyCardId = null; AddLoyaltyPoints body = null; api.addLoyaltyCardPoints(loyaltyProgramId, loyaltyCardId, body); @@ -215,8 +221,8 @@ public void addLoyaltyPointsTest() throws ApiException { */ @Test public void copyCampaignToApplicationsTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; + Integer applicationId = null; + Integer campaignId = null; CampaignCopy body = null; InlineResponse2008 response = api.copyCampaignToApplications(applicationId, campaignId, body); @@ -249,8 +255,8 @@ public void createAccountCollectionTest() throws ApiException { */ @Test public void createAchievementTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; + Integer applicationId = null; + Integer campaignId = null; CreateAchievement body = null; Achievement response = api.createAchievement(applicationId, campaignId, body); @@ -299,7 +305,7 @@ public void createAttributeTest() throws ApiException { */ @Test public void createBatchLoyaltyCardsTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; LoyaltyCardBatch body = null; LoyaltyCardBatchResponse response = api.createBatchLoyaltyCards(loyaltyProgramId, body); @@ -316,13 +322,31 @@ public void createBatchLoyaltyCardsTest() throws ApiException { */ @Test public void createCampaignFromTemplateTest() throws ApiException { - Long applicationId = null; + Integer applicationId = null; CreateTemplateCampaign body = null; CreateTemplateCampaignResponse response = api.createCampaignFromTemplate(applicationId, body); // TODO: test validations } + /** + * Create campaign store budget + * + * Create a new store budget for a given campaign. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createCampaignStoreBudgetTest() throws ApiException { + Integer applicationId = null; + Integer campaignId = null; + NewCampaignStoreBudget body = null; + api.createCampaignStoreBudget(applicationId, campaignId, body); + + // TODO: test validations + } + /** * Create campaign-level collection * @@ -333,8 +357,8 @@ public void createCampaignFromTemplateTest() throws ApiException { */ @Test public void createCollectionTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; + Integer applicationId = null; + Integer campaignId = null; NewCampaignCollection body = null; Collection response = api.createCollection(applicationId, campaignId, body); @@ -351,8 +375,8 @@ public void createCollectionTest() throws ApiException { */ @Test public void createCouponsTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; + Integer applicationId = null; + Integer campaignId = null; NewCoupons body = null; String silent = null; InlineResponse20010 response = api.createCoupons(applicationId, campaignId, body, silent); @@ -370,8 +394,8 @@ public void createCouponsTest() throws ApiException { */ @Test public void createCouponsAsyncTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; + Integer applicationId = null; + Integer campaignId = null; NewCouponCreationJob body = null; AsyncCouponCreationResponse response = api.createCouponsAsync(applicationId, campaignId, body); @@ -388,8 +412,8 @@ public void createCouponsAsyncTest() throws ApiException { */ @Test public void createCouponsDeletionJobTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; + Integer applicationId = null; + Integer campaignId = null; NewCouponDeletionJob body = null; AsyncCouponDeletionJobResponse response = api.createCouponsDeletionJob(applicationId, campaignId, body); @@ -406,8 +430,8 @@ public void createCouponsDeletionJobTest() throws ApiException { */ @Test public void createCouponsForMultipleRecipientsTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; + Integer applicationId = null; + Integer campaignId = null; NewCouponsForMultipleRecipients body = null; String silent = null; InlineResponse20010 response = api.createCouponsForMultipleRecipients(applicationId, campaignId, body, silent); @@ -489,7 +513,7 @@ public void createSessionTest() throws ApiException { */ @Test public void createStoreTest() throws ApiException { - Long applicationId = null; + Integer applicationId = null; NewStore body = null; Store response = api.createStore(applicationId, body); @@ -522,7 +546,7 @@ public void deactivateUserByEmailTest() throws ApiException { */ @Test public void deductLoyaltyCardPointsTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; String loyaltyCardId = null; DeductLoyaltyPoints body = null; api.deductLoyaltyCardPoints(loyaltyProgramId, loyaltyCardId, body); @@ -540,7 +564,7 @@ public void deductLoyaltyCardPointsTest() throws ApiException { */ @Test public void deleteAccountCollectionTest() throws ApiException { - Long collectionId = null; + Integer collectionId = null; api.deleteAccountCollection(collectionId); // TODO: test validations @@ -556,9 +580,9 @@ public void deleteAccountCollectionTest() throws ApiException { */ @Test public void deleteAchievementTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; - Long achievementId = null; + Integer applicationId = null; + Integer campaignId = null; + Integer achievementId = null; api.deleteAchievement(applicationId, campaignId, achievementId); // TODO: test validations @@ -574,13 +598,32 @@ public void deleteAchievementTest() throws ApiException { */ @Test public void deleteCampaignTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; + Integer applicationId = null; + Integer campaignId = null; api.deleteCampaign(applicationId, campaignId); // TODO: test validations } + /** + * Delete campaign store budgets + * + * Delete the store budgets for a given campaign. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteCampaignStoreBudgetsTest() throws ApiException { + Integer applicationId = null; + Integer campaignId = null; + String action = null; + String period = null; + api.deleteCampaignStoreBudgets(applicationId, campaignId, action, period); + + // TODO: test validations + } + /** * Delete campaign-level collection * @@ -591,9 +634,9 @@ public void deleteCampaignTest() throws ApiException { */ @Test public void deleteCollectionTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; - Long collectionId = null; + Integer applicationId = null; + Integer campaignId = null; + Integer collectionId = null; api.deleteCollection(applicationId, campaignId, collectionId); // TODO: test validations @@ -609,8 +652,8 @@ public void deleteCollectionTest() throws ApiException { */ @Test public void deleteCouponTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; + Integer applicationId = null; + Integer campaignId = null; String couponId = null; api.deleteCoupon(applicationId, campaignId, couponId); @@ -627,8 +670,8 @@ public void deleteCouponTest() throws ApiException { */ @Test public void deleteCouponsTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; + Integer applicationId = null; + Integer campaignId = null; String value = null; OffsetDateTime createdBefore = null; OffsetDateTime createdAfter = null; @@ -639,7 +682,7 @@ public void deleteCouponsTest() throws ApiException { String valid = null; String batchId = null; String usable = null; - Long referralId = null; + Integer referralId = null; String recipientIntegrationId = null; Boolean exactMatch = null; api.deleteCoupons(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch); @@ -657,7 +700,7 @@ public void deleteCouponsTest() throws ApiException { */ @Test public void deleteLoyaltyCardTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; String loyaltyCardId = null; api.deleteLoyaltyCard(loyaltyProgramId, loyaltyCardId); @@ -674,8 +717,8 @@ public void deleteLoyaltyCardTest() throws ApiException { */ @Test public void deleteReferralTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; + Integer applicationId = null; + Integer campaignId = null; String referralId = null; api.deleteReferral(applicationId, campaignId, referralId); @@ -692,7 +735,7 @@ public void deleteReferralTest() throws ApiException { */ @Test public void deleteStoreTest() throws ApiException { - Long applicationId = null; + Integer applicationId = null; String storeId = null; api.deleteStore(applicationId, storeId); @@ -709,7 +752,7 @@ public void deleteStoreTest() throws ApiException { */ @Test public void deleteUserTest() throws ApiException { - Long userId = null; + Integer userId = null; api.deleteUser(userId); // TODO: test validations @@ -756,8 +799,8 @@ public void destroySessionTest() throws ApiException { */ @Test public void disconnectCampaignStoresTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; + Integer applicationId = null; + Integer campaignId = null; api.disconnectCampaignStores(applicationId, campaignId); // TODO: test validations @@ -773,7 +816,7 @@ public void disconnectCampaignStoresTest() throws ApiException { */ @Test public void exportAccountCollectionItemsTest() throws ApiException { - Long collectionId = null; + Integer collectionId = null; String response = api.exportAccountCollectionItems(collectionId); // TODO: test validations @@ -789,9 +832,9 @@ public void exportAccountCollectionItemsTest() throws ApiException { */ @Test public void exportAchievementsTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; - Long achievementId = null; + Integer applicationId = null; + Integer campaignId = null; + Integer achievementId = null; String response = api.exportAchievements(applicationId, campaignId, achievementId); // TODO: test validations @@ -807,12 +850,31 @@ public void exportAchievementsTest() throws ApiException { */ @Test public void exportAudiencesMembershipsTest() throws ApiException { - Long audienceId = null; + Integer audienceId = null; String response = api.exportAudiencesMemberships(audienceId); // TODO: test validations } + /** + * Export campaign store budgets + * + * Download a CSV file containing the store budgets for a given campaign. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `store_integration_id`: The identifier of the store. - `limit`: The budget limit for the store. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void exportCampaignStoreBudgetsTest() throws ApiException { + Integer applicationId = null; + Integer campaignId = null; + String action = null; + String period = null; + String response = api.exportCampaignStoreBudgets(applicationId, campaignId, action, period); + + // TODO: test validations + } + /** * Export stores * @@ -823,8 +885,8 @@ public void exportAudiencesMembershipsTest() throws ApiException { */ @Test public void exportCampaignStoresTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; + Integer applicationId = null; + Integer campaignId = null; String response = api.exportCampaignStores(applicationId, campaignId); // TODO: test validations @@ -840,9 +902,9 @@ public void exportCampaignStoresTest() throws ApiException { */ @Test public void exportCollectionItemsTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; - Long collectionId = null; + Integer applicationId = null; + Integer campaignId = null; + Integer collectionId = null; String response = api.exportCollectionItems(applicationId, campaignId, collectionId); // TODO: test validations @@ -858,7 +920,7 @@ public void exportCollectionItemsTest() throws ApiException { */ @Test public void exportCouponsTest() throws ApiException { - Long applicationId = null; + Integer applicationId = null; BigDecimal campaignId = null; String sort = null; String value = null; @@ -866,7 +928,7 @@ public void exportCouponsTest() throws ApiException { OffsetDateTime createdAfter = null; String valid = null; String usable = null; - Long referralId = null; + Integer referralId = null; String recipientIntegrationId = null; String batchId = null; Boolean exactMatch = null; @@ -881,14 +943,14 @@ public void exportCouponsTest() throws ApiException { /** * Export customer sessions * - * Download a CSV file containing the customer sessions that match the request. **Important:** Archived sessions cannot be exported. See the [retention policy](https://docs.talon.one/docs/product/server-infrastructure-and-data-retention#data-retention-policy). **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - `id`: The internal ID of the session. - `firstsession`: Whether this is a first session. - `integrationid`: The integration ID of the session. - `applicationid`: The ID of the Application. - `profileid`: The internal ID of the customer profile. - `profileintegrationid`: The integration ID of the customer profile. - `created`: The timestamp when the session was created. - `state`: The [state](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) of the session. - `cartitems`: The cart items in the session. - `discounts`: The discounts in the session. - `total`: The total value of cart items and additional costs in the session, before any discounts are applied. - `attributes`: The attributes set in the session. - `closedat`: Timestamp when the session was closed. - `cancelledat`: Timestamp when the session was cancelled. - `referral`: The referral code in the session. - `identifiers`: The identifiers in the session. - `additional_costs`: The [additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs) in the session. - `updated`: Timestamp of the last session update. - `store_integration_id`: The integration ID of the store. - `coupons`: Coupon codes in the session. + * Download a CSV file containing the customer sessions that match the request. **Important:** Archived sessions cannot be exported. See the [retention policy](https://docs.talon.one/docs/dev/server-infrastructure-and-data-retention). **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - `id`: The internal ID of the session. - `firstsession`: Whether this is a first session. - `integrationid`: The integration ID of the session. - `applicationid`: The ID of the Application. - `profileid`: The internal ID of the customer profile. - `profileintegrationid`: The integration ID of the customer profile. - `created`: The timestamp when the session was created. - `state`: The [state](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) of the session. - `cartitems`: The cart items in the session. - `discounts`: The discounts in the session. - `total`: The total value of cart items and additional costs in the session, before any discounts are applied. - `attributes`: The attributes set in the session. - `closedat`: Timestamp when the session was closed. - `cancelledat`: Timestamp when the session was cancelled. - `referral`: The referral code in the session. - `identifiers`: The identifiers in the session. - `additional_costs`: The [additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs) in the session. - `updated`: Timestamp of the last session update. - `store_integration_id`: The integration ID of the store. - `coupons`: Coupon codes in the session. * * @throws ApiException * if the Api call fails */ @Test public void exportCustomerSessionsTest() throws ApiException { - Long applicationId = null; + Integer applicationId = null; OffsetDateTime createdBefore = null; OffsetDateTime createdAfter = null; String profileIntegrationId = null; @@ -927,7 +989,7 @@ public void exportCustomersTiersTest() throws ApiException { */ @Test public void exportEffectsTest() throws ApiException { - Long applicationId = null; + Integer applicationId = null; BigDecimal campaignId = null; OffsetDateTime createdBefore = null; OffsetDateTime createdAfter = null; @@ -981,7 +1043,7 @@ public void exportLoyaltyBalancesTest() throws ApiException { */ @Test public void exportLoyaltyCardBalancesTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; OffsetDateTime endDate = null; String response = api.exportLoyaltyCardBalances(loyaltyProgramId, endDate); @@ -998,7 +1060,7 @@ public void exportLoyaltyCardBalancesTest() throws ApiException { */ @Test public void exportLoyaltyCardLedgerTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; String loyaltyCardId = null; OffsetDateTime rangeStart = null; OffsetDateTime rangeEnd = null; @@ -1018,7 +1080,7 @@ public void exportLoyaltyCardLedgerTest() throws ApiException { */ @Test public void exportLoyaltyCardsTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; String batchId = null; String dateFormat = null; String response = api.exportLoyaltyCards(loyaltyProgramId, batchId, dateFormat); @@ -1056,7 +1118,7 @@ public void exportLoyaltyLedgerTest() throws ApiException { */ @Test public void exportPoolGiveawaysTest() throws ApiException { - Long poolId = null; + Integer poolId = null; OffsetDateTime createdBefore = null; OffsetDateTime createdAfter = null; String response = api.exportPoolGiveaways(poolId, createdBefore, createdAfter); @@ -1074,7 +1136,7 @@ public void exportPoolGiveawaysTest() throws ApiException { */ @Test public void exportReferralsTest() throws ApiException { - Long applicationId = null; + Integer applicationId = null; BigDecimal campaignId = null; OffsetDateTime createdBefore = null; OffsetDateTime createdAfter = null; @@ -1097,14 +1159,14 @@ public void exportReferralsTest() throws ApiException { */ @Test public void getAccessLogsWithoutTotalCountTest() throws ApiException { - Long applicationId = null; + Integer applicationId = null; OffsetDateTime rangeStart = null; OffsetDateTime rangeEnd = null; String path = null; String method = null; String status = null; - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; String sort = null; InlineResponse20022 response = api.getAccessLogsWithoutTotalCount(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort); @@ -1121,7 +1183,7 @@ public void getAccessLogsWithoutTotalCountTest() throws ApiException { */ @Test public void getAccountTest() throws ApiException { - Long accountId = null; + Integer accountId = null; Account response = api.getAccount(accountId); // TODO: test validations @@ -1137,7 +1199,7 @@ public void getAccountTest() throws ApiException { */ @Test public void getAccountAnalyticsTest() throws ApiException { - Long accountId = null; + Integer accountId = null; AccountAnalytics response = api.getAccountAnalytics(accountId); // TODO: test validations @@ -1153,7 +1215,7 @@ public void getAccountAnalyticsTest() throws ApiException { */ @Test public void getAccountCollectionTest() throws ApiException { - Long collectionId = null; + Integer collectionId = null; Collection response = api.getAccountCollection(collectionId); // TODO: test validations @@ -1169,9 +1231,9 @@ public void getAccountCollectionTest() throws ApiException { */ @Test public void getAchievementTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; - Long achievementId = null; + Integer applicationId = null; + Integer campaignId = null; + Integer achievementId = null; Achievement response = api.getAchievement(applicationId, campaignId, achievementId); // TODO: test validations @@ -1187,7 +1249,7 @@ public void getAchievementTest() throws ApiException { */ @Test public void getAdditionalCostTest() throws ApiException { - Long additionalCostId = null; + Integer additionalCostId = null; AccountAdditionalCost response = api.getAdditionalCost(additionalCostId); // TODO: test validations @@ -1203,8 +1265,8 @@ public void getAdditionalCostTest() throws ApiException { */ @Test public void getAdditionalCostsTest() throws ApiException { - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; String sort = null; InlineResponse20038 response = api.getAdditionalCosts(pageSize, skip, sort); @@ -1221,7 +1283,7 @@ public void getAdditionalCostsTest() throws ApiException { */ @Test public void getApplicationTest() throws ApiException { - Long applicationId = null; + Integer applicationId = null; Application response = api.getApplication(applicationId); // TODO: test validations @@ -1237,7 +1299,7 @@ public void getApplicationTest() throws ApiException { */ @Test public void getApplicationApiHealthTest() throws ApiException { - Long applicationId = null; + Integer applicationId = null; ApplicationApiHealth response = api.getApplicationApiHealth(applicationId); // TODO: test validations @@ -1253,8 +1315,8 @@ public void getApplicationApiHealthTest() throws ApiException { */ @Test public void getApplicationCustomerTest() throws ApiException { - Long applicationId = null; - Long customerId = null; + Integer applicationId = null; + Integer customerId = null; ApplicationCustomer response = api.getApplicationCustomer(applicationId, customerId); // TODO: test validations @@ -1270,10 +1332,10 @@ public void getApplicationCustomerTest() throws ApiException { */ @Test public void getApplicationCustomerFriendsTest() throws ApiException { - Long applicationId = null; + Integer applicationId = null; String integrationId = null; - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; String sort = null; Boolean withTotalResultSize = null; InlineResponse20035 response = api.getApplicationCustomerFriends(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize); @@ -1291,10 +1353,10 @@ public void getApplicationCustomerFriendsTest() throws ApiException { */ @Test public void getApplicationCustomersTest() throws ApiException { - Long applicationId = null; + Integer applicationId = null; String integrationId = null; - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; Boolean withTotalResultSize = null; InlineResponse20024 response = api.getApplicationCustomers(applicationId, integrationId, pageSize, skip, withTotalResultSize); @@ -1311,10 +1373,10 @@ public void getApplicationCustomersTest() throws ApiException { */ @Test public void getApplicationCustomersByAttributesTest() throws ApiException { - Long applicationId = null; + Integer applicationId = null; CustomerProfileSearchQuery body = null; - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; Boolean withTotalResultSize = null; InlineResponse20025 response = api.getApplicationCustomersByAttributes(applicationId, body, pageSize, skip, withTotalResultSize); @@ -1331,9 +1393,9 @@ public void getApplicationCustomersByAttributesTest() throws ApiException { */ @Test public void getApplicationEventTypesTest() throws ApiException { - Long applicationId = null; - Long pageSize = null; - Long skip = null; + Integer applicationId = null; + Integer pageSize = null; + Integer skip = null; String sort = null; InlineResponse20031 response = api.getApplicationEventTypes(applicationId, pageSize, skip, sort); @@ -1350,9 +1412,9 @@ public void getApplicationEventTypesTest() throws ApiException { */ @Test public void getApplicationEventsWithoutTotalCountTest() throws ApiException { - Long applicationId = null; - Long pageSize = null; - Long skip = null; + Integer applicationId = null; + Integer pageSize = null; + Integer skip = null; String sort = null; String type = null; OffsetDateTime createdBefore = null; @@ -1380,8 +1442,8 @@ public void getApplicationEventsWithoutTotalCountTest() throws ApiException { */ @Test public void getApplicationSessionTest() throws ApiException { - Long applicationId = null; - Long sessionId = null; + Integer applicationId = null; + Integer sessionId = null; ApplicationSession response = api.getApplicationSession(applicationId, sessionId); // TODO: test validations @@ -1397,9 +1459,9 @@ public void getApplicationSessionTest() throws ApiException { */ @Test public void getApplicationSessionsTest() throws ApiException { - Long applicationId = null; - Long pageSize = null; - Long skip = null; + Integer applicationId = null; + Integer pageSize = null; + Integer skip = null; String sort = null; String profile = null; String state = null; @@ -1424,8 +1486,8 @@ public void getApplicationSessionsTest() throws ApiException { */ @Test public void getApplicationsTest() throws ApiException { - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; String sort = null; InlineResponse2007 response = api.getApplications(pageSize, skip, sort); @@ -1442,7 +1504,7 @@ public void getApplicationsTest() throws ApiException { */ @Test public void getAttributeTest() throws ApiException { - Long attributeId = null; + Integer attributeId = null; Attribute response = api.getAttribute(attributeId); // TODO: test validations @@ -1458,8 +1520,8 @@ public void getAttributeTest() throws ApiException { */ @Test public void getAttributesTest() throws ApiException { - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; String sort = null; String entity = null; InlineResponse20036 response = api.getAttributes(pageSize, skip, sort, entity); @@ -1477,9 +1539,9 @@ public void getAttributesTest() throws ApiException { */ @Test public void getAudienceMembershipsTest() throws ApiException { - Long audienceId = null; - Long pageSize = null; - Long skip = null; + Integer audienceId = null; + Integer pageSize = null; + Integer skip = null; String sort = null; String profileQuery = null; InlineResponse20034 response = api.getAudienceMemberships(audienceId, pageSize, skip, sort, profileQuery); @@ -1497,8 +1559,8 @@ public void getAudienceMembershipsTest() throws ApiException { */ @Test public void getAudiencesTest() throws ApiException { - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; String sort = null; Boolean withTotalResultSize = null; InlineResponse20032 response = api.getAudiences(pageSize, skip, sort, withTotalResultSize); @@ -1533,8 +1595,8 @@ public void getAudiencesAnalyticsTest() throws ApiException { */ @Test public void getCampaignTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; + Integer applicationId = null; + Integer campaignId = null; Campaign response = api.getCampaign(applicationId, campaignId); // TODO: test validations @@ -1550,8 +1612,8 @@ public void getCampaignTest() throws ApiException { */ @Test public void getCampaignAnalyticsTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; + Integer applicationId = null; + Integer campaignId = null; OffsetDateTime rangeStart = null; OffsetDateTime rangeEnd = null; String granularity = null; @@ -1570,10 +1632,10 @@ public void getCampaignAnalyticsTest() throws ApiException { */ @Test public void getCampaignByAttributesTest() throws ApiException { - Long applicationId = null; + Integer applicationId = null; CampaignSearch body = null; - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; String sort = null; String campaignState = null; InlineResponse2008 response = api.getCampaignByAttributes(applicationId, body, pageSize, skip, sort, campaignState); @@ -1591,7 +1653,7 @@ public void getCampaignByAttributesTest() throws ApiException { */ @Test public void getCampaignGroupTest() throws ApiException { - Long campaignGroupId = null; + Integer campaignGroupId = null; CampaignGroup response = api.getCampaignGroup(campaignGroupId); // TODO: test validations @@ -1607,8 +1669,8 @@ public void getCampaignGroupTest() throws ApiException { */ @Test public void getCampaignGroupsTest() throws ApiException { - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; String sort = null; InlineResponse20013 response = api.getCampaignGroups(pageSize, skip, sort); @@ -1625,13 +1687,13 @@ public void getCampaignGroupsTest() throws ApiException { */ @Test public void getCampaignTemplatesTest() throws ApiException { - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; String sort = null; String state = null; String name = null; String tags = null; - Long userId = null; + Integer userId = null; InlineResponse20014 response = api.getCampaignTemplates(pageSize, skip, sort, state, name, tags, userId); // TODO: test validations @@ -1647,18 +1709,18 @@ public void getCampaignTemplatesTest() throws ApiException { */ @Test public void getCampaignsTest() throws ApiException { - Long applicationId = null; - Long pageSize = null; - Long skip = null; + Integer applicationId = null; + Integer pageSize = null; + Integer skip = null; String sort = null; String campaignState = null; String name = null; String tags = null; OffsetDateTime createdBefore = null; OffsetDateTime createdAfter = null; - Long campaignGroupId = null; - Long templateId = null; - Long storeId = null; + Integer campaignGroupId = null; + Integer templateId = null; + Integer storeId = null; InlineResponse2008 response = api.getCampaigns(applicationId, pageSize, skip, sort, campaignState, name, tags, createdBefore, createdAfter, campaignGroupId, templateId, storeId); // TODO: test validations @@ -1674,16 +1736,16 @@ public void getCampaignsTest() throws ApiException { */ @Test public void getChangesTest() throws ApiException { - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; String sort = null; BigDecimal applicationId = null; String entityPath = null; - Long userId = null; + Integer userId = null; OffsetDateTime createdBefore = null; OffsetDateTime createdAfter = null; Boolean withTotalResultSize = null; - Long managementKeyId = null; + Integer managementKeyId = null; Boolean includeOld = null; InlineResponse20044 response = api.getChanges(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld); @@ -1700,9 +1762,9 @@ public void getChangesTest() throws ApiException { */ @Test public void getCollectionTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; - Long collectionId = null; + Integer applicationId = null; + Integer campaignId = null; + Integer collectionId = null; Collection response = api.getCollection(applicationId, campaignId, collectionId); // TODO: test validations @@ -1718,9 +1780,9 @@ public void getCollectionTest() throws ApiException { */ @Test public void getCollectionItemsTest() throws ApiException { - Long collectionId = null; - Long pageSize = null; - Long skip = null; + Integer collectionId = null; + Integer pageSize = null; + Integer skip = null; InlineResponse20021 response = api.getCollectionItems(collectionId, pageSize, skip); // TODO: test validations @@ -1736,10 +1798,10 @@ public void getCollectionItemsTest() throws ApiException { */ @Test public void getCouponsWithoutTotalCountTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; - Long pageSize = null; - Long skip = null; + Integer applicationId = null; + Integer campaignId = null; + Integer pageSize = null; + Integer skip = null; String sort = null; String value = null; OffsetDateTime createdBefore = null; @@ -1747,7 +1809,7 @@ public void getCouponsWithoutTotalCountTest() throws ApiException { String valid = null; String usable = null; String redeemed = null; - Long referralId = null; + Integer referralId = null; String recipientIntegrationId = null; String batchId = null; Boolean exactMatch = null; @@ -1773,10 +1835,10 @@ public void getCouponsWithoutTotalCountTest() throws ApiException { public void getCustomerActivityReportTest() throws ApiException { OffsetDateTime rangeStart = null; OffsetDateTime rangeEnd = null; - Long applicationId = null; - Long customerId = null; - Long pageSize = null; - Long skip = null; + Integer applicationId = null; + Integer customerId = null; + Integer pageSize = null; + Integer skip = null; CustomerActivityReport response = api.getCustomerActivityReport(rangeStart, rangeEnd, applicationId, customerId, pageSize, skip); // TODO: test validations @@ -1794,9 +1856,9 @@ public void getCustomerActivityReportTest() throws ApiException { public void getCustomerActivityReportsWithoutTotalCountTest() throws ApiException { OffsetDateTime rangeStart = null; OffsetDateTime rangeEnd = null; - Long applicationId = null; - Long pageSize = null; - Long skip = null; + Integer applicationId = null; + Integer pageSize = null; + Integer skip = null; String sort = null; String name = null; String integrationId = null; @@ -1817,10 +1879,10 @@ public void getCustomerActivityReportsWithoutTotalCountTest() throws ApiExceptio */ @Test public void getCustomerAnalyticsTest() throws ApiException { - Long applicationId = null; - Long customerId = null; - Long pageSize = null; - Long skip = null; + Integer applicationId = null; + Integer customerId = null; + Integer pageSize = null; + Integer skip = null; String sort = null; CustomerAnalytics response = api.getCustomerAnalytics(applicationId, customerId, pageSize, skip, sort); @@ -1837,7 +1899,7 @@ public void getCustomerAnalyticsTest() throws ApiException { */ @Test public void getCustomerProfileTest() throws ApiException { - Long customerId = null; + Integer customerId = null; CustomerProfile response = api.getCustomerProfile(customerId); // TODO: test validations @@ -1853,13 +1915,13 @@ public void getCustomerProfileTest() throws ApiException { */ @Test public void getCustomerProfileAchievementProgressTest() throws ApiException { - Long applicationId = null; + Integer applicationId = null; String integrationId = null; - Long pageSize = null; - Long skip = null; - Long achievementId = null; + Integer pageSize = null; + Integer skip = null; + Integer achievementId = null; String title = null; - InlineResponse20049 response = api.getCustomerProfileAchievementProgress(applicationId, integrationId, pageSize, skip, achievementId, title); + InlineResponse20051 response = api.getCustomerProfileAchievementProgress(applicationId, integrationId, pageSize, skip, achievementId, title); // TODO: test validations } @@ -1874,8 +1936,8 @@ public void getCustomerProfileAchievementProgressTest() throws ApiException { */ @Test public void getCustomerProfilesTest() throws ApiException { - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; Boolean sandbox = null; InlineResponse20027 response = api.getCustomerProfiles(pageSize, skip, sandbox); @@ -1893,8 +1955,8 @@ public void getCustomerProfilesTest() throws ApiException { @Test public void getCustomersByAttributesTest() throws ApiException { CustomerProfileSearchQuery body = null; - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; Boolean sandbox = null; InlineResponse20026 response = api.getCustomersByAttributes(body, pageSize, skip, sandbox); @@ -1911,7 +1973,7 @@ public void getCustomersByAttributesTest() throws ApiException { */ @Test public void getDashboardStatisticsTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; OffsetDateTime rangeStart = null; OffsetDateTime rangeEnd = null; String subledgerId = null; @@ -1932,8 +1994,8 @@ public void getDashboardStatisticsTest() throws ApiException { public void getEventTypesTest() throws ApiException { String name = null; Boolean includeOldVersions = null; - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; String sort = null; InlineResponse20042 response = api.getEventTypes(name, includeOldVersions, pageSize, skip, sort); @@ -1950,10 +2012,10 @@ public void getEventTypesTest() throws ApiException { */ @Test public void getExportsTest() throws ApiException { - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; BigDecimal applicationId = null; - Long campaignId = null; + Integer campaignId = null; String entity = null; InlineResponse20045 response = api.getExports(pageSize, skip, applicationId, campaignId, entity); @@ -1970,7 +2032,7 @@ public void getExportsTest() throws ApiException { */ @Test public void getLoyaltyCardTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; String loyaltyCardId = null; LoyaltyCard response = api.getLoyaltyCard(loyaltyProgramId, loyaltyCardId); @@ -1987,12 +2049,12 @@ public void getLoyaltyCardTest() throws ApiException { */ @Test public void getLoyaltyCardTransactionLogsTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; String loyaltyCardId = null; OffsetDateTime startDate = null; OffsetDateTime endDate = null; - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; String subledgerId = null; InlineResponse20019 response = api.getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId); @@ -2009,12 +2071,12 @@ public void getLoyaltyCardTransactionLogsTest() throws ApiException { */ @Test public void getLoyaltyCardsTest() throws ApiException { - Long loyaltyProgramId = null; - Long pageSize = null; - Long skip = null; + Integer loyaltyProgramId = null; + Integer pageSize = null; + Integer skip = null; String sort = null; String identifier = null; - Long profileId = null; + Integer profileId = null; String batchId = null; InlineResponse20018 response = api.getLoyaltyCards(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId); @@ -2048,7 +2110,7 @@ public void getLoyaltyPointsTest() throws ApiException { */ @Test public void getLoyaltyProgramTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; LoyaltyProgram response = api.getLoyaltyProgram(loyaltyProgramId); // TODO: test validations @@ -2064,13 +2126,13 @@ public void getLoyaltyProgramTest() throws ApiException { */ @Test public void getLoyaltyProgramTransactionsTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; String loyaltyTransactionType = null; String subledgerId = null; OffsetDateTime startDate = null; OffsetDateTime endDate = null; - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; InlineResponse20017 response = api.getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip); // TODO: test validations @@ -2101,7 +2163,7 @@ public void getLoyaltyProgramsTest() throws ApiException { */ @Test public void getLoyaltyStatisticsTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; LoyaltyDashboardData response = api.getLoyaltyStatistics(loyaltyProgramId); // TODO: test validations @@ -2128,8 +2190,8 @@ public void getMessageLogsTest() throws ApiException { Boolean isSuccessful = null; BigDecimal applicationId = null; BigDecimal campaignId = null; - Long loyaltyProgramId = null; - Long responseCode = null; + Integer loyaltyProgramId = null; + Integer responseCode = null; String webhookIDs = null; MessageLogEntries response = api.getMessageLogs(entityType, messageID, changeType, notificationIDs, createdBefore, createdAfter, cursor, period, isSuccessful, applicationId, campaignId, loyaltyProgramId, responseCode, webhookIDs); @@ -2146,10 +2208,10 @@ public void getMessageLogsTest() throws ApiException { */ @Test public void getReferralsWithoutTotalCountTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; - Long pageSize = null; - Long skip = null; + Integer applicationId = null; + Integer campaignId = null; + Integer pageSize = null; + Integer skip = null; String sort = null; String code = null; OffsetDateTime createdBefore = null; @@ -2172,7 +2234,7 @@ public void getReferralsWithoutTotalCountTest() throws ApiException { */ @Test public void getRoleV2Test() throws ApiException { - Long roleId = null; + Integer roleId = null; RoleV2 response = api.getRoleV2(roleId); // TODO: test validations @@ -2188,9 +2250,9 @@ public void getRoleV2Test() throws ApiException { */ @Test public void getRulesetTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; - Long rulesetId = null; + Integer applicationId = null; + Integer campaignId = null; + Integer rulesetId = null; Ruleset response = api.getRuleset(applicationId, campaignId, rulesetId); // TODO: test validations @@ -2206,10 +2268,10 @@ public void getRulesetTest() throws ApiException { */ @Test public void getRulesetsTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; - Long pageSize = null; - Long skip = null; + Integer applicationId = null; + Integer campaignId = null; + Integer pageSize = null; + Integer skip = null; String sort = null; InlineResponse2009 response = api.getRulesets(applicationId, campaignId, pageSize, skip, sort); @@ -2226,7 +2288,7 @@ public void getRulesetsTest() throws ApiException { */ @Test public void getStoreTest() throws ApiException { - Long applicationId = null; + Integer applicationId = null; String storeId = null; Store response = api.getStore(applicationId, storeId); @@ -2243,7 +2305,7 @@ public void getStoreTest() throws ApiException { */ @Test public void getUserTest() throws ApiException { - Long userId = null; + Integer userId = null; User response = api.getUser(userId); // TODO: test validations @@ -2259,8 +2321,8 @@ public void getUserTest() throws ApiException { */ @Test public void getUsersTest() throws ApiException { - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; String sort = null; InlineResponse20043 response = api.getUsers(pageSize, skip, sort); @@ -2277,7 +2339,7 @@ public void getUsersTest() throws ApiException { */ @Test public void getWebhookTest() throws ApiException { - Long webhookId = null; + Integer webhookId = null; Webhook response = api.getWebhook(webhookId); // TODO: test validations @@ -2293,8 +2355,8 @@ public void getWebhookTest() throws ApiException { */ @Test public void getWebhookActivationLogsTest() throws ApiException { - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; String sort = null; String integrationRequestUuid = null; BigDecimal webhookId = null; @@ -2317,8 +2379,8 @@ public void getWebhookActivationLogsTest() throws ApiException { */ @Test public void getWebhookLogsTest() throws ApiException { - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; String sort = null; String status = null; BigDecimal webhookId = null; @@ -2344,11 +2406,11 @@ public void getWebhookLogsTest() throws ApiException { public void getWebhooksTest() throws ApiException { String applicationIds = null; String sort = null; - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; String creationType = null; String visibility = null; - Long outgoingIntegrationsTypeId = null; + Integer outgoingIntegrationsTypeId = null; String title = null; InlineResponse20039 response = api.getWebhooks(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title); @@ -2365,7 +2427,7 @@ public void getWebhooksTest() throws ApiException { */ @Test public void importAccountCollectionTest() throws ApiException { - Long collectionId = null; + Integer collectionId = null; String upFile = null; ModelImport response = api.importAccountCollection(collectionId, upFile); @@ -2382,7 +2444,7 @@ public void importAccountCollectionTest() throws ApiException { */ @Test public void importAllowedListTest() throws ApiException { - Long attributeId = null; + Integer attributeId = null; String upFile = null; ModelImport response = api.importAllowedList(attributeId, upFile); @@ -2399,13 +2461,33 @@ public void importAllowedListTest() throws ApiException { */ @Test public void importAudiencesMembershipsTest() throws ApiException { - Long audienceId = null; + Integer audienceId = null; String upFile = null; ModelImport response = api.importAudiencesMemberships(audienceId, upFile); // TODO: test validations } + /** + * Import campaign store budgets + * + * Upload a CSV file containing store budgets for a given campaign. Send the file as multipart data. The CSV file **must** only contain the following columns: - `store_integration_id`: The identifier of the store. - `limit`: The budget limit for the store. The import **replaces** the previous list of store budgets. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void importCampaignStoreBudgetTest() throws ApiException { + Integer applicationId = null; + Integer campaignId = null; + String action = null; + String period = null; + String upFile = null; + ModelImport response = api.importCampaignStoreBudget(applicationId, campaignId, action, period, upFile); + + // TODO: test validations + } + /** * Import stores * @@ -2416,8 +2498,8 @@ public void importAudiencesMembershipsTest() throws ApiException { */ @Test public void importCampaignStoresTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; + Integer applicationId = null; + Integer campaignId = null; String upFile = null; ModelImport response = api.importCampaignStores(applicationId, campaignId, upFile); @@ -2434,9 +2516,9 @@ public void importCampaignStoresTest() throws ApiException { */ @Test public void importCollectionTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; - Long collectionId = null; + Integer applicationId = null; + Integer campaignId = null; + Integer collectionId = null; String upFile = null; ModelImport response = api.importCollection(applicationId, campaignId, collectionId, upFile); @@ -2453,8 +2535,8 @@ public void importCollectionTest() throws ApiException { */ @Test public void importCouponsTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; + Integer applicationId = null; + Integer campaignId = null; Boolean skipDuplicates = null; String upFile = null; ModelImport response = api.importCoupons(applicationId, campaignId, skipDuplicates, upFile); @@ -2472,7 +2554,7 @@ public void importCouponsTest() throws ApiException { */ @Test public void importLoyaltyCardsTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; String upFile = null; ModelImport response = api.importLoyaltyCards(loyaltyProgramId, upFile); @@ -2489,7 +2571,7 @@ public void importLoyaltyCardsTest() throws ApiException { */ @Test public void importLoyaltyCustomersTiersTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; String upFile = null; ModelImport response = api.importLoyaltyCustomersTiers(loyaltyProgramId, upFile); @@ -2506,9 +2588,10 @@ public void importLoyaltyCustomersTiersTest() throws ApiException { */ @Test public void importLoyaltyPointsTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; + Boolean notificationsEnabled = null; String upFile = null; - ModelImport response = api.importLoyaltyPoints(loyaltyProgramId, upFile); + ModelImport response = api.importLoyaltyPoints(loyaltyProgramId, notificationsEnabled, upFile); // TODO: test validations } @@ -2523,7 +2606,7 @@ public void importLoyaltyPointsTest() throws ApiException { */ @Test public void importPoolGiveawaysTest() throws ApiException { - Long poolId = null; + Integer poolId = null; String upFile = null; ModelImport response = api.importPoolGiveaways(poolId, upFile); @@ -2540,8 +2623,8 @@ public void importPoolGiveawaysTest() throws ApiException { */ @Test public void importReferralsTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; + Integer applicationId = null; + Integer campaignId = null; String upFile = null; ModelImport response = api.importReferrals(applicationId, campaignId, upFile); @@ -2574,8 +2657,8 @@ public void inviteUserExternalTest() throws ApiException { */ @Test public void listAccountCollectionsTest() throws ApiException { - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; String sort = null; Boolean withTotalResultSize = null; String name = null; @@ -2594,12 +2677,12 @@ public void listAccountCollectionsTest() throws ApiException { */ @Test public void listAchievementsTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; - Long pageSize = null; - Long skip = null; + Integer applicationId = null; + Integer campaignId = null; + Integer pageSize = null; + Integer skip = null; String title = null; - InlineResponse20048 response = api.listAchievements(applicationId, campaignId, pageSize, skip, title); + InlineResponse20050 response = api.listAchievements(applicationId, campaignId, pageSize, skip, title); // TODO: test validations } @@ -2619,6 +2702,25 @@ public void listAllRolesV2Test() throws ApiException { // TODO: test validations } + /** + * List campaign store budget limits + * + * Return the store budget limits for a given campaign. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listCampaignStoreBudgetLimitsTest() throws ApiException { + Integer applicationId = null; + Integer campaignId = null; + String action = null; + String period = null; + InlineResponse20048 response = api.listCampaignStoreBudgetLimits(applicationId, campaignId, action, period); + + // TODO: test validations + } + /** * List items in a catalog * @@ -2629,9 +2731,9 @@ public void listAllRolesV2Test() throws ApiException { */ @Test public void listCatalogItemsTest() throws ApiException { - Long catalogId = null; - Long pageSize = null; - Long skip = null; + Integer catalogId = null; + Integer pageSize = null; + Integer skip = null; Boolean withTotalResultSize = null; List sku = null; List productNames = null; @@ -2650,10 +2752,10 @@ public void listCatalogItemsTest() throws ApiException { */ @Test public void listCollectionsTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; - Long pageSize = null; - Long skip = null; + Integer applicationId = null; + Integer campaignId = null; + Integer pageSize = null; + Integer skip = null; String sort = null; Boolean withTotalResultSize = null; String name = null; @@ -2672,9 +2774,9 @@ public void listCollectionsTest() throws ApiException { */ @Test public void listCollectionsInApplicationTest() throws ApiException { - Long applicationId = null; - Long pageSize = null; - Long skip = null; + Integer applicationId = null; + Integer pageSize = null; + Integer skip = null; String sort = null; Boolean withTotalResultSize = null; String name = null; @@ -2693,9 +2795,9 @@ public void listCollectionsInApplicationTest() throws ApiException { */ @Test public void listStoresTest() throws ApiException { - Long applicationId = null; - Long pageSize = null; - Long skip = null; + Integer applicationId = null; + Integer pageSize = null; + Integer skip = null; String sort = null; Boolean withTotalResultSize = null; BigDecimal campaignId = null; @@ -2756,6 +2858,22 @@ public void resetPasswordTest() throws ApiException { // TODO: test validations } + /** + * Create SCIM group + * + * Create a new Talon.One group using the SCIM Group provisioning protocol with an identity provider, for example, Microsoft Entra ID, and assign members from the payload to the new group. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void scimCreateGroupTest() throws ApiException { + ScimBaseGroup body = null; + ScimGroup response = api.scimCreateGroup(body); + + // TODO: test validations + } + /** * Create SCIM user * @@ -2772,6 +2890,22 @@ public void scimCreateUserTest() throws ApiException { // TODO: test validations } + /** + * Delete SCIM group + * + * Delete a specific group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void scimDeleteGroupTest() throws ApiException { + Integer groupId = null; + api.scimDeleteGroup(groupId); + + // TODO: test validations + } + /** * Delete SCIM user * @@ -2782,12 +2916,43 @@ public void scimCreateUserTest() throws ApiException { */ @Test public void scimDeleteUserTest() throws ApiException { - Long userId = null; + Integer userId = null; api.scimDeleteUser(userId); // TODO: test validations } + /** + * Get SCIM group + * + * Retrieve data for a specific group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void scimGetGroupTest() throws ApiException { + Integer groupId = null; + ScimGroup response = api.scimGetGroup(groupId); + + // TODO: test validations + } + + /** + * List SCIM groups + * + * Retrieve a paginated list of groups created using the SCIM protocol with an identity provider, for example, Microsoft Entra ID. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void scimGetGroupsTest() throws ApiException { + ScimGroupsListResponse response = api.scimGetGroups(); + + // TODO: test validations + } + /** * List supported SCIM resource types * @@ -2843,7 +3008,7 @@ public void scimGetServiceProviderConfigTest() throws ApiException { */ @Test public void scimGetUserTest() throws ApiException { - Long userId = null; + Integer userId = null; ScimUser response = api.scimGetUser(userId); // TODO: test validations @@ -2864,6 +3029,23 @@ public void scimGetUsersTest() throws ApiException { // TODO: test validations } + /** + * Update SCIM group attributes + * + * Update certain attributes of a group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint allows for selective adding, removing, or replacing of specific group attributes while other attributes remain unchanged. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void scimPatchGroupTest() throws ApiException { + Integer groupId = null; + ScimPatchRequest body = null; + ScimGroup response = api.scimPatchGroup(groupId, body); + + // TODO: test validations + } + /** * Update SCIM user attributes * @@ -2874,13 +3056,30 @@ public void scimGetUsersTest() throws ApiException { */ @Test public void scimPatchUserTest() throws ApiException { - Long userId = null; + Integer userId = null; ScimPatchRequest body = null; ScimUser response = api.scimPatchUser(userId, body); // TODO: test validations } + /** + * Update SCIM group + * + * Update the details of a specific group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint replaces all attributes of the given group with the attributes provided in the request payload. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void scimReplaceGroupAttributesTest() throws ApiException { + Integer groupId = null; + ScimBaseGroup body = null; + ScimGroup response = api.scimReplaceGroupAttributes(groupId, body); + + // TODO: test validations + } + /** * Update SCIM user * @@ -2891,7 +3090,7 @@ public void scimPatchUserTest() throws ApiException { */ @Test public void scimReplaceUserAttributesTest() throws ApiException { - Long userId = null; + Integer userId = null; ScimNewUser body = null; ScimUser response = api.scimReplaceUserAttributes(userId, body); @@ -2908,17 +3107,17 @@ public void scimReplaceUserAttributesTest() throws ApiException { */ @Test public void searchCouponsAdvancedApplicationWideWithoutTotalCountTest() throws ApiException { - Long applicationId = null; + Integer applicationId = null; Object body = null; - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; String sort = null; String value = null; OffsetDateTime createdBefore = null; OffsetDateTime createdAfter = null; String valid = null; String usable = null; - Long referralId = null; + Integer referralId = null; String recipientIntegrationId = null; String batchId = null; Boolean exactMatch = null; @@ -2938,18 +3137,18 @@ public void searchCouponsAdvancedApplicationWideWithoutTotalCountTest() throws A */ @Test public void searchCouponsAdvancedWithoutTotalCountTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; + Integer applicationId = null; + Integer campaignId = null; Object body = null; - Long pageSize = null; - Long skip = null; + Integer pageSize = null; + Integer skip = null; String sort = null; String value = null; OffsetDateTime createdBefore = null; OffsetDateTime createdAfter = null; String valid = null; String usable = null; - Long referralId = null; + Integer referralId = null; String recipientIntegrationId = null; Boolean exactMatch = null; String batchId = null; @@ -2958,6 +3157,23 @@ public void searchCouponsAdvancedWithoutTotalCountTest() throws ApiException { // TODO: test validations } + /** + * Get summary of campaign store budgets + * + * Fetch a summary of all store budget information for a given campaign. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void summarizeCampaignStoreBudgetTest() throws ApiException { + Integer applicationId = null; + Integer campaignId = null; + InlineResponse20049 response = api.summarizeCampaignStoreBudget(applicationId, campaignId); + + // TODO: test validations + } + /** * Transfer card data * @@ -2968,7 +3184,7 @@ public void searchCouponsAdvancedWithoutTotalCountTest() throws ApiException { */ @Test public void transferLoyaltyCardTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; String loyaltyCardId = null; TransferLoyaltyCard body = null; api.transferLoyaltyCard(loyaltyProgramId, loyaltyCardId, body); @@ -2986,7 +3202,7 @@ public void transferLoyaltyCardTest() throws ApiException { */ @Test public void updateAccountCollectionTest() throws ApiException { - Long collectionId = null; + Integer collectionId = null; UpdateCollection body = null; Collection response = api.updateAccountCollection(collectionId, body); @@ -3003,9 +3219,9 @@ public void updateAccountCollectionTest() throws ApiException { */ @Test public void updateAchievementTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; - Long achievementId = null; + Integer applicationId = null; + Integer campaignId = null; + Integer achievementId = null; UpdateAchievement body = null; Achievement response = api.updateAchievement(applicationId, campaignId, achievementId, body); @@ -3022,7 +3238,7 @@ public void updateAchievementTest() throws ApiException { */ @Test public void updateAdditionalCostTest() throws ApiException { - Long additionalCostId = null; + Integer additionalCostId = null; NewAdditionalCost body = null; AccountAdditionalCost response = api.updateAdditionalCost(additionalCostId, body); @@ -3039,7 +3255,7 @@ public void updateAdditionalCostTest() throws ApiException { */ @Test public void updateAttributeTest() throws ApiException { - Long attributeId = null; + Integer attributeId = null; NewAttribute body = null; Attribute response = api.updateAttribute(attributeId, body); @@ -3056,8 +3272,8 @@ public void updateAttributeTest() throws ApiException { */ @Test public void updateCampaignTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; + Integer applicationId = null; + Integer campaignId = null; UpdateCampaign body = null; Campaign response = api.updateCampaign(applicationId, campaignId, body); @@ -3074,9 +3290,9 @@ public void updateCampaignTest() throws ApiException { */ @Test public void updateCollectionTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; - Long collectionId = null; + Integer applicationId = null; + Integer campaignId = null; + Integer collectionId = null; UpdateCampaignCollection body = null; Collection response = api.updateCollection(applicationId, campaignId, collectionId, body); @@ -3093,8 +3309,8 @@ public void updateCollectionTest() throws ApiException { */ @Test public void updateCouponTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; + Integer applicationId = null; + Integer campaignId = null; String couponId = null; UpdateCoupon body = null; Coupon response = api.updateCoupon(applicationId, campaignId, couponId, body); @@ -3112,8 +3328,8 @@ public void updateCouponTest() throws ApiException { */ @Test public void updateCouponBatchTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; + Integer applicationId = null; + Integer campaignId = null; UpdateCouponBatch body = null; api.updateCouponBatch(applicationId, campaignId, body); @@ -3130,7 +3346,7 @@ public void updateCouponBatchTest() throws ApiException { */ @Test public void updateLoyaltyCardTest() throws ApiException { - Long loyaltyProgramId = null; + Integer loyaltyProgramId = null; String loyaltyCardId = null; UpdateLoyaltyCard body = null; LoyaltyCard response = api.updateLoyaltyCard(loyaltyProgramId, loyaltyCardId, body); @@ -3148,8 +3364,8 @@ public void updateLoyaltyCardTest() throws ApiException { */ @Test public void updateReferralTest() throws ApiException { - Long applicationId = null; - Long campaignId = null; + Integer applicationId = null; + Integer campaignId = null; String referralId = null; UpdateReferral body = null; Referral response = api.updateReferral(applicationId, campaignId, referralId, body); @@ -3167,7 +3383,7 @@ public void updateReferralTest() throws ApiException { */ @Test public void updateRoleV2Test() throws ApiException { - Long roleId = null; + Integer roleId = null; RoleV2Base body = null; RoleV2 response = api.updateRoleV2(roleId, body); @@ -3184,7 +3400,7 @@ public void updateRoleV2Test() throws ApiException { */ @Test public void updateStoreTest() throws ApiException { - Long applicationId = null; + Integer applicationId = null; String storeId = null; NewStore body = null; Store response = api.updateStore(applicationId, storeId, body); @@ -3202,7 +3418,7 @@ public void updateStoreTest() throws ApiException { */ @Test public void updateUserTest() throws ApiException { - Long userId = null; + Integer userId = null; UpdateUser body = null; User response = api.updateUser(userId, body); diff --git a/src/test/java/one/talon/model/AddPriceAdjustmentCatalogActionTest.java b/src/test/java/one/talon/model/AddPriceAdjustmentCatalogActionTest.java new file mode 100644 index 00000000..7439e82a --- /dev/null +++ b/src/test/java/one/talon/model/AddPriceAdjustmentCatalogActionTest.java @@ -0,0 +1,62 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.NewPriceAdjustment; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AddPriceAdjustmentCatalogAction + */ +public class AddPriceAdjustmentCatalogActionTest { + private final AddPriceAdjustmentCatalogAction model = new AddPriceAdjustmentCatalogAction(); + + /** + * Model tests for AddPriceAdjustmentCatalogAction + */ + @Test + public void testAddPriceAdjustmentCatalogAction() { + // TODO: test AddPriceAdjustmentCatalogAction + } + + /** + * Test the property 'sku' + */ + @Test + public void skuTest() { + // TODO: test sku + } + + /** + * Test the property 'adjustments' + */ + @Test + public void adjustmentsTest() { + // TODO: test adjustments + } + +} diff --git a/src/test/java/one/talon/model/AddedDeductedPointsBalancesNotificationPolicyTest.java b/src/test/java/one/talon/model/AddedDeductedPointsBalancesNotificationPolicyTest.java new file mode 100644 index 00000000..23a28607 --- /dev/null +++ b/src/test/java/one/talon/model/AddedDeductedPointsBalancesNotificationPolicyTest.java @@ -0,0 +1,61 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AddedDeductedPointsBalancesNotificationPolicy + */ +public class AddedDeductedPointsBalancesNotificationPolicyTest { + private final AddedDeductedPointsBalancesNotificationPolicy model = new AddedDeductedPointsBalancesNotificationPolicy(); + + /** + * Model tests for AddedDeductedPointsBalancesNotificationPolicy + */ + @Test + public void testAddedDeductedPointsBalancesNotificationPolicy() { + // TODO: test AddedDeductedPointsBalancesNotificationPolicy + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'scopes' + */ + @Test + public void scopesTest() { + // TODO: test scopes + } + +} diff --git a/src/test/java/one/talon/model/BindingTest.java b/src/test/java/one/talon/model/BindingTest.java index 2027de5c..b78dd50e 100644 --- a/src/test/java/one/talon/model/BindingTest.java +++ b/src/test/java/one/talon/model/BindingTest.java @@ -21,6 +21,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; import org.junit.Assert; @@ -74,4 +75,28 @@ public void valueTypeTest() { // TODO: test valueType } + /** + * Test the property 'minValue' + */ + @Test + public void minValueTest() { + // TODO: test minValue + } + + /** + * Test the property 'maxValue' + */ + @Test + public void maxValueTest() { + // TODO: test maxValue + } + + /** + * Test the property 'attributeId' + */ + @Test + public void attributeIdTest() { + // TODO: test attributeId + } + } diff --git a/src/test/java/one/talon/model/CampaignDeactivationRequestTest.java b/src/test/java/one/talon/model/CampaignDeactivationRequestTest.java new file mode 100644 index 00000000..5b7fd65a --- /dev/null +++ b/src/test/java/one/talon/model/CampaignDeactivationRequestTest.java @@ -0,0 +1,53 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for CampaignDeactivationRequest + */ +public class CampaignDeactivationRequestTest { + private final CampaignDeactivationRequest model = new CampaignDeactivationRequest(); + + /** + * Model tests for CampaignDeactivationRequest + */ + @Test + public void testCampaignDeactivationRequest() { + // TODO: test CampaignDeactivationRequest + } + + /** + * Test the property 'userIds' + */ + @Test + public void userIdsTest() { + // TODO: test userIds + } + +} diff --git a/src/test/java/one/talon/model/CardAddedDeductedPointsBalancesNotificationPolicyTest.java b/src/test/java/one/talon/model/CardAddedDeductedPointsBalancesNotificationPolicyTest.java new file mode 100644 index 00000000..90816514 --- /dev/null +++ b/src/test/java/one/talon/model/CardAddedDeductedPointsBalancesNotificationPolicyTest.java @@ -0,0 +1,61 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for CardAddedDeductedPointsBalancesNotificationPolicy + */ +public class CardAddedDeductedPointsBalancesNotificationPolicyTest { + private final CardAddedDeductedPointsBalancesNotificationPolicy model = new CardAddedDeductedPointsBalancesNotificationPolicy(); + + /** + * Model tests for CardAddedDeductedPointsBalancesNotificationPolicy + */ + @Test + public void testCardAddedDeductedPointsBalancesNotificationPolicy() { + // TODO: test CardAddedDeductedPointsBalancesNotificationPolicy + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'scopes' + */ + @Test + public void scopesTest() { + // TODO: test scopes + } + +} diff --git a/src/test/java/one/talon/model/CartItemTest.java b/src/test/java/one/talon/model/CartItemTest.java index af16139f..16d7beee 100644 --- a/src/test/java/one/talon/model/CartItemTest.java +++ b/src/test/java/one/talon/model/CartItemTest.java @@ -25,8 +25,11 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.UUID; import one.talon.model.AdditionalCost; +import one.talon.model.PriceDetail; import one.talon.model.Product; +import org.threeten.bp.OffsetDateTime; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -174,4 +177,44 @@ public void catalogItemIDTest() { // TODO: test catalogItemID } + /** + * Test the property 'selectedPriceType' + */ + @Test + public void selectedPriceTypeTest() { + // TODO: test selectedPriceType + } + + /** + * Test the property 'adjustmentReferenceId' + */ + @Test + public void adjustmentReferenceIdTest() { + // TODO: test adjustmentReferenceId + } + + /** + * Test the property 'adjustmentEffectiveFrom' + */ + @Test + public void adjustmentEffectiveFromTest() { + // TODO: test adjustmentEffectiveFrom + } + + /** + * Test the property 'adjustmentEffectiveUntil' + */ + @Test + public void adjustmentEffectiveUntilTest() { + // TODO: test adjustmentEffectiveUntil + } + + /** + * Test the property 'prices' + */ + @Test + public void pricesTest() { + // TODO: test prices + } + } diff --git a/src/test/java/one/talon/model/CouponEntityTest.java b/src/test/java/one/talon/model/CouponEntityTest.java new file mode 100644 index 00000000..1d52c99b --- /dev/null +++ b/src/test/java/one/talon/model/CouponEntityTest.java @@ -0,0 +1,60 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for CouponEntity + */ +public class CouponEntityTest { + private final CouponEntity model = new CouponEntity(); + + /** + * Model tests for CouponEntity + */ + @Test + public void testCouponEntity() { + // TODO: test CouponEntity + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'created' + */ + @Test + public void createdTest() { + // TODO: test created + } + +} diff --git a/src/test/java/one/talon/model/CustomerProfileEntityTest.java b/src/test/java/one/talon/model/CustomerProfileEntityTest.java new file mode 100644 index 00000000..cb4791f2 --- /dev/null +++ b/src/test/java/one/talon/model/CustomerProfileEntityTest.java @@ -0,0 +1,60 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for CustomerProfileEntity + */ +public class CustomerProfileEntityTest { + private final CustomerProfileEntity model = new CustomerProfileEntity(); + + /** + * Model tests for CustomerProfileEntity + */ + @Test + public void testCustomerProfileEntity() { + // TODO: test CustomerProfileEntity + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'created' + */ + @Test + public void createdTest() { + // TODO: test created + } + +} diff --git a/src/test/java/one/talon/model/EffectEntityTest.java b/src/test/java/one/talon/model/EffectEntityTest.java index 1e80a8e3..5a96fdf4 100644 --- a/src/test/java/one/talon/model/EffectEntityTest.java +++ b/src/test/java/one/talon/model/EffectEntityTest.java @@ -21,6 +21,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.math.BigDecimal; +import java.util.UUID; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -136,4 +138,28 @@ public void campaignRevisionVersionIdTest() { // TODO: test campaignRevisionVersionId } + /** + * Test the property 'selectedPriceType' + */ + @Test + public void selectedPriceTypeTest() { + // TODO: test selectedPriceType + } + + /** + * Test the property 'selectedPrice' + */ + @Test + public void selectedPriceTest() { + // TODO: test selectedPrice + } + + /** + * Test the property 'adjustmentReferenceId' + */ + @Test + public void adjustmentReferenceIdTest() { + // TODO: test adjustmentReferenceId + } + } diff --git a/src/test/java/one/talon/model/EffectTest.java b/src/test/java/one/talon/model/EffectTest.java index f4f88303..f30aabe7 100644 --- a/src/test/java/one/talon/model/EffectTest.java +++ b/src/test/java/one/talon/model/EffectTest.java @@ -21,6 +21,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.math.BigDecimal; +import java.util.UUID; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -136,6 +138,30 @@ public void campaignRevisionVersionIdTest() { // TODO: test campaignRevisionVersionId } + /** + * Test the property 'selectedPriceType' + */ + @Test + public void selectedPriceTypeTest() { + // TODO: test selectedPriceType + } + + /** + * Test the property 'selectedPrice' + */ + @Test + public void selectedPriceTest() { + // TODO: test selectedPrice + } + + /** + * Test the property 'adjustmentReferenceId' + */ + @Test + public void adjustmentReferenceIdTest() { + // TODO: test adjustmentReferenceId + } + /** * Test the property 'props' */ diff --git a/src/test/java/one/talon/model/EnvironmentTest.java b/src/test/java/one/talon/model/EnvironmentTest.java index a67eff84..19d51fe0 100644 --- a/src/test/java/one/talon/model/EnvironmentTest.java +++ b/src/test/java/one/talon/model/EnvironmentTest.java @@ -32,6 +32,7 @@ import one.talon.model.FunctionDef; import one.talon.model.GiveawaysPool; import one.talon.model.LoyaltyProgram; +import one.talon.model.PriceType; import one.talon.model.SlotDef; import one.talon.model.TemplateDef; import org.threeten.bp.OffsetDateTime; @@ -174,4 +175,12 @@ public void applicationCartItemFiltersTest() { // TODO: test applicationCartItemFilters } + /** + * Test the property 'priceTypes' + */ + @Test + public void priceTypesTest() { + // TODO: test priceTypes + } + } diff --git a/src/test/java/one/talon/model/ExtendLoyaltyPointsExpiryDateEffectPropsTest.java b/src/test/java/one/talon/model/ExtendLoyaltyPointsExpiryDateEffectPropsTest.java new file mode 100644 index 00000000..fa70ad38 --- /dev/null +++ b/src/test/java/one/talon/model/ExtendLoyaltyPointsExpiryDateEffectPropsTest.java @@ -0,0 +1,86 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtendLoyaltyPointsExpiryDateEffectProps + */ +public class ExtendLoyaltyPointsExpiryDateEffectPropsTest { + private final ExtendLoyaltyPointsExpiryDateEffectProps model = new ExtendLoyaltyPointsExpiryDateEffectProps(); + + /** + * Model tests for ExtendLoyaltyPointsExpiryDateEffectProps + */ + @Test + public void testExtendLoyaltyPointsExpiryDateEffectProps() { + // TODO: test ExtendLoyaltyPointsExpiryDateEffectProps + } + + /** + * Test the property 'programId' + */ + @Test + public void programIdTest() { + // TODO: test programId + } + + /** + * Test the property 'subLedgerId' + */ + @Test + public void subLedgerIdTest() { + // TODO: test subLedgerId + } + + /** + * Test the property 'extensionDuration' + */ + @Test + public void extensionDurationTest() { + // TODO: test extensionDuration + } + + /** + * Test the property 'transactionUUIDs' + */ + @Test + public void transactionUUIDsTest() { + // TODO: test transactionUUIDs + } + + /** + * Test the property 'previousExpirationDate' + */ + @Test + public void previousExpirationDateTest() { + // TODO: test previousExpirationDate + } + +} diff --git a/src/test/java/one/talon/model/InlineResponse20048Test.java b/src/test/java/one/talon/model/InlineResponse20048Test.java index 95201e9d..3e76efc1 100644 --- a/src/test/java/one/talon/model/InlineResponse20048Test.java +++ b/src/test/java/one/talon/model/InlineResponse20048Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.Achievement; +import one.talon.model.ListCampaignStoreBudgets; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -43,14 +43,6 @@ public void testInlineResponse20048() { // TODO: test InlineResponse20048 } - /** - * Test the property 'hasMore' - */ - @Test - public void hasMoreTest() { - // TODO: test hasMore - } - /** * Test the property 'data' */ diff --git a/src/test/java/one/talon/model/InlineResponse20049Test.java b/src/test/java/one/talon/model/InlineResponse20049Test.java index 8c431d4d..5707fc23 100644 --- a/src/test/java/one/talon/model/InlineResponse20049Test.java +++ b/src/test/java/one/talon/model/InlineResponse20049Test.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import one.talon.model.AchievementProgressWithDefinition; +import one.talon.model.SummaryCampaignStoreBudget; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -43,14 +43,6 @@ public void testInlineResponse20049() { // TODO: test InlineResponse20049 } - /** - * Test the property 'hasMore' - */ - @Test - public void hasMoreTest() { - // TODO: test hasMore - } - /** * Test the property 'data' */ diff --git a/src/test/java/one/talon/model/InlineResponse20050Test.java b/src/test/java/one/talon/model/InlineResponse20050Test.java new file mode 100644 index 00000000..eea11f28 --- /dev/null +++ b/src/test/java/one/talon/model/InlineResponse20050Test.java @@ -0,0 +1,62 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.Achievement; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for InlineResponse20050 + */ +public class InlineResponse20050Test { + private final InlineResponse20050 model = new InlineResponse20050(); + + /** + * Model tests for InlineResponse20050 + */ + @Test + public void testInlineResponse20050() { + // TODO: test InlineResponse20050 + } + + /** + * Test the property 'hasMore' + */ + @Test + public void hasMoreTest() { + // TODO: test hasMore + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/one/talon/model/InlineResponse20051Test.java b/src/test/java/one/talon/model/InlineResponse20051Test.java new file mode 100644 index 00000000..cff4dce4 --- /dev/null +++ b/src/test/java/one/talon/model/InlineResponse20051Test.java @@ -0,0 +1,62 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.AchievementProgressWithDefinition; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for InlineResponse20051 + */ +public class InlineResponse20051Test { + private final InlineResponse20051 model = new InlineResponse20051(); + + /** + * Model tests for InlineResponse20051 + */ + @Test + public void testInlineResponse20051() { + // TODO: test InlineResponse20051 + } + + /** + * Test the property 'hasMore' + */ + @Test + public void hasMoreTest() { + // TODO: test hasMore + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/one/talon/model/IntegrationCustomerProfileAudienceRequestItemTest.java b/src/test/java/one/talon/model/IntegrationCustomerProfileAudienceRequestItemTest.java new file mode 100644 index 00000000..9549295c --- /dev/null +++ b/src/test/java/one/talon/model/IntegrationCustomerProfileAudienceRequestItemTest.java @@ -0,0 +1,67 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for IntegrationCustomerProfileAudienceRequestItem + */ +public class IntegrationCustomerProfileAudienceRequestItemTest { + private final IntegrationCustomerProfileAudienceRequestItem model = new IntegrationCustomerProfileAudienceRequestItem(); + + /** + * Model tests for IntegrationCustomerProfileAudienceRequestItem + */ + @Test + public void testIntegrationCustomerProfileAudienceRequestItem() { + // TODO: test IntegrationCustomerProfileAudienceRequestItem + } + + /** + * Test the property 'action' + */ + @Test + public void actionTest() { + // TODO: test action + } + + /** + * Test the property 'profileIntegrationId' + */ + @Test + public void profileIntegrationIdTest() { + // TODO: test profileIntegrationId + } + + /** + * Test the property 'integrationId' + */ + @Test + public void integrationIdTest() { + // TODO: test integrationId + } + +} diff --git a/src/test/java/one/talon/model/IntegrationCustomerProfileAudienceRequestTest.java b/src/test/java/one/talon/model/IntegrationCustomerProfileAudienceRequestTest.java new file mode 100644 index 00000000..c9a90524 --- /dev/null +++ b/src/test/java/one/talon/model/IntegrationCustomerProfileAudienceRequestTest.java @@ -0,0 +1,54 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.IntegrationCustomerProfileAudienceRequestItem; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for IntegrationCustomerProfileAudienceRequest + */ +public class IntegrationCustomerProfileAudienceRequestTest { + private final IntegrationCustomerProfileAudienceRequest model = new IntegrationCustomerProfileAudienceRequest(); + + /** + * Model tests for IntegrationCustomerProfileAudienceRequest + */ + @Test + public void testIntegrationCustomerProfileAudienceRequest() { + // TODO: test IntegrationCustomerProfileAudienceRequest + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/one/talon/model/IntegrationEventV2RequestTest.java b/src/test/java/one/talon/model/IntegrationEventV2RequestTest.java index 3b149e02..b4bf8762 100644 --- a/src/test/java/one/talon/model/IntegrationEventV2RequestTest.java +++ b/src/test/java/one/talon/model/IntegrationEventV2RequestTest.java @@ -82,6 +82,14 @@ public void attributesTest() { // TODO: test attributes } + /** + * Test the property 'loyaltyCards' + */ + @Test + public void loyaltyCardsTest() { + // TODO: test loyaltyCards + } + /** * Test the property 'responseContent' */ diff --git a/src/test/java/one/talon/model/NewPriceAdjustmentTest.java b/src/test/java/one/talon/model/NewPriceAdjustmentTest.java new file mode 100644 index 00000000..606ec708 --- /dev/null +++ b/src/test/java/one/talon/model/NewPriceAdjustmentTest.java @@ -0,0 +1,93 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for NewPriceAdjustment + */ +public class NewPriceAdjustmentTest { + private final NewPriceAdjustment model = new NewPriceAdjustment(); + + /** + * Model tests for NewPriceAdjustment + */ + @Test + public void testNewPriceAdjustment() { + // TODO: test NewPriceAdjustment + } + + /** + * Test the property 'priceType' + */ + @Test + public void priceTypeTest() { + // TODO: test priceType + } + + /** + * Test the property 'price' + */ + @Test + public void priceTest() { + // TODO: test price + } + + /** + * Test the property 'referenceId' + */ + @Test + public void referenceIdTest() { + // TODO: test referenceId + } + + /** + * Test the property 'calculatedAt' + */ + @Test + public void calculatedAtTest() { + // TODO: test calculatedAt + } + + /** + * Test the property 'effectiveFrom' + */ + @Test + public void effectiveFromTest() { + // TODO: test effectiveFrom + } + + /** + * Test the property 'effectiveUntil' + */ + @Test + public void effectiveUntilTest() { + // TODO: test effectiveUntil + } + +} diff --git a/src/test/java/one/talon/model/NewPriceTypeTest.java b/src/test/java/one/talon/model/NewPriceTypeTest.java new file mode 100644 index 00000000..d53cc810 --- /dev/null +++ b/src/test/java/one/talon/model/NewPriceTypeTest.java @@ -0,0 +1,77 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for NewPriceType + */ +public class NewPriceTypeTest { + private final NewPriceType model = new NewPriceType(); + + /** + * Model tests for NewPriceType + */ + @Test + public void testNewPriceType() { + // TODO: test NewPriceType + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'title' + */ + @Test + public void titleTest() { + // TODO: test title + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'targetedAudiencesIds' + */ + @Test + public void targetedAudiencesIdsTest() { + // TODO: test targetedAudiencesIds + } + +} diff --git a/src/test/java/one/talon/model/NewWebhookTest.java b/src/test/java/one/talon/model/NewWebhookTest.java index d878228b..de44bfad 100644 --- a/src/test/java/one/talon/model/NewWebhookTest.java +++ b/src/test/java/one/talon/model/NewWebhookTest.java @@ -67,6 +67,14 @@ public void descriptionTest() { // TODO: test description } + /** + * Test the property 'draft' + */ + @Test + public void draftTest() { + // TODO: test draft + } + /** * Test the property 'verb' */ diff --git a/src/test/java/one/talon/model/PriceDetailTest.java b/src/test/java/one/talon/model/PriceDetailTest.java new file mode 100644 index 00000000..343e1bc5 --- /dev/null +++ b/src/test/java/one/talon/model/PriceDetailTest.java @@ -0,0 +1,77 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.UUID; +import org.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for PriceDetail + */ +public class PriceDetailTest { + private final PriceDetail model = new PriceDetail(); + + /** + * Model tests for PriceDetail + */ + @Test + public void testPriceDetail() { + // TODO: test PriceDetail + } + + /** + * Test the property 'price' + */ + @Test + public void priceTest() { + // TODO: test price + } + + /** + * Test the property 'adjustmentReferenceId' + */ + @Test + public void adjustmentReferenceIdTest() { + // TODO: test adjustmentReferenceId + } + + /** + * Test the property 'adjustmentEffectiveFrom' + */ + @Test + public void adjustmentEffectiveFromTest() { + // TODO: test adjustmentEffectiveFrom + } + + /** + * Test the property 'adjustmentEffectiveUntil' + */ + @Test + public void adjustmentEffectiveUntilTest() { + // TODO: test adjustmentEffectiveUntil + } + +} diff --git a/src/test/java/one/talon/model/PriceTypeTest.java b/src/test/java/one/talon/model/PriceTypeTest.java new file mode 100644 index 00000000..b4d4967d --- /dev/null +++ b/src/test/java/one/talon/model/PriceTypeTest.java @@ -0,0 +1,118 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for PriceType + */ +public class PriceTypeTest { + private final PriceType model = new PriceType(); + + /** + * Model tests for PriceType + */ + @Test + public void testPriceType() { + // TODO: test PriceType + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'created' + */ + @Test + public void createdTest() { + // TODO: test created + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'title' + */ + @Test + public void titleTest() { + // TODO: test title + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'modified' + */ + @Test + public void modifiedTest() { + // TODO: test modified + } + + /** + * Test the property 'subscribedCatalogsIds' + */ + @Test + public void subscribedCatalogsIdsTest() { + // TODO: test subscribedCatalogsIds + } + + /** + * Test the property 'targetedAudiencesIds' + */ + @Test + public void targetedAudiencesIdsTest() { + // TODO: test targetedAudiencesIds + } + +} diff --git a/src/test/java/one/talon/model/ScimBaseGroupTest.java b/src/test/java/one/talon/model/ScimBaseGroupTest.java new file mode 100644 index 00000000..fe5a75f9 --- /dev/null +++ b/src/test/java/one/talon/model/ScimBaseGroupTest.java @@ -0,0 +1,62 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.ScimGroupMember; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ScimBaseGroup + */ +public class ScimBaseGroupTest { + private final ScimBaseGroup model = new ScimBaseGroup(); + + /** + * Model tests for ScimBaseGroup + */ + @Test + public void testScimBaseGroup() { + // TODO: test ScimBaseGroup + } + + /** + * Test the property 'displayName' + */ + @Test + public void displayNameTest() { + // TODO: test displayName + } + + /** + * Test the property 'members' + */ + @Test + public void membersTest() { + // TODO: test members + } + +} diff --git a/src/test/java/one/talon/model/ScimGroupMemberTest.java b/src/test/java/one/talon/model/ScimGroupMemberTest.java new file mode 100644 index 00000000..d378f468 --- /dev/null +++ b/src/test/java/one/talon/model/ScimGroupMemberTest.java @@ -0,0 +1,59 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ScimGroupMember + */ +public class ScimGroupMemberTest { + private final ScimGroupMember model = new ScimGroupMember(); + + /** + * Model tests for ScimGroupMember + */ + @Test + public void testScimGroupMember() { + // TODO: test ScimGroupMember + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + + /** + * Test the property 'display' + */ + @Test + public void displayTest() { + // TODO: test display + } + +} diff --git a/src/test/java/one/talon/model/ScimGroupTest.java b/src/test/java/one/talon/model/ScimGroupTest.java new file mode 100644 index 00000000..d9424bee --- /dev/null +++ b/src/test/java/one/talon/model/ScimGroupTest.java @@ -0,0 +1,70 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.ScimGroupMember; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ScimGroup + */ +public class ScimGroupTest { + private final ScimGroup model = new ScimGroup(); + + /** + * Model tests for ScimGroup + */ + @Test + public void testScimGroup() { + // TODO: test ScimGroup + } + + /** + * Test the property 'displayName' + */ + @Test + public void displayNameTest() { + // TODO: test displayName + } + + /** + * Test the property 'members' + */ + @Test + public void membersTest() { + // TODO: test members + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + +} diff --git a/src/test/java/one/talon/model/ScimGroupsListResponseTest.java b/src/test/java/one/talon/model/ScimGroupsListResponseTest.java new file mode 100644 index 00000000..4b9ba5bf --- /dev/null +++ b/src/test/java/one/talon/model/ScimGroupsListResponseTest.java @@ -0,0 +1,70 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.ScimGroup; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ScimGroupsListResponse + */ +public class ScimGroupsListResponseTest { + private final ScimGroupsListResponse model = new ScimGroupsListResponse(); + + /** + * Model tests for ScimGroupsListResponse + */ + @Test + public void testScimGroupsListResponse() { + // TODO: test ScimGroupsListResponse + } + + /** + * Test the property 'resources' + */ + @Test + public void resourcesTest() { + // TODO: test resources + } + + /** + * Test the property 'schemas' + */ + @Test + public void schemasTest() { + // TODO: test schemas + } + + /** + * Test the property 'totalResults' + */ + @Test + public void totalResultsTest() { + // TODO: test totalResults + } + +} diff --git a/src/test/java/one/talon/model/WebhookAuthenticationBaseTest.java b/src/test/java/one/talon/model/WebhookAuthenticationBaseTest.java new file mode 100644 index 00000000..a6f6b95e --- /dev/null +++ b/src/test/java/one/talon/model/WebhookAuthenticationBaseTest.java @@ -0,0 +1,67 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for WebhookAuthenticationBase + */ +public class WebhookAuthenticationBaseTest { + private final WebhookAuthenticationBase model = new WebhookAuthenticationBase(); + + /** + * Model tests for WebhookAuthenticationBase + */ + @Test + public void testWebhookAuthenticationBase() { + // TODO: test WebhookAuthenticationBase + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/one/talon/model/WebhookAuthenticationDataBasicTest.java b/src/test/java/one/talon/model/WebhookAuthenticationDataBasicTest.java new file mode 100644 index 00000000..cf97611a --- /dev/null +++ b/src/test/java/one/talon/model/WebhookAuthenticationDataBasicTest.java @@ -0,0 +1,59 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for WebhookAuthenticationDataBasic + */ +public class WebhookAuthenticationDataBasicTest { + private final WebhookAuthenticationDataBasic model = new WebhookAuthenticationDataBasic(); + + /** + * Model tests for WebhookAuthenticationDataBasic + */ + @Test + public void testWebhookAuthenticationDataBasic() { + // TODO: test WebhookAuthenticationDataBasic + } + + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } + + /** + * Test the property 'password' + */ + @Test + public void passwordTest() { + // TODO: test password + } + +} diff --git a/src/test/java/one/talon/model/WebhookAuthenticationDataCustomTest.java b/src/test/java/one/talon/model/WebhookAuthenticationDataCustomTest.java new file mode 100644 index 00000000..171f4d31 --- /dev/null +++ b/src/test/java/one/talon/model/WebhookAuthenticationDataCustomTest.java @@ -0,0 +1,54 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for WebhookAuthenticationDataCustom + */ +public class WebhookAuthenticationDataCustomTest { + private final WebhookAuthenticationDataCustom model = new WebhookAuthenticationDataCustom(); + + /** + * Model tests for WebhookAuthenticationDataCustom + */ + @Test + public void testWebhookAuthenticationDataCustom() { + // TODO: test WebhookAuthenticationDataCustom + } + + /** + * Test the property 'headers' + */ + @Test + public void headersTest() { + // TODO: test headers + } + +} diff --git a/src/test/java/one/talon/model/WebhookAuthenticationTest.java b/src/test/java/one/talon/model/WebhookAuthenticationTest.java new file mode 100644 index 00000000..546c99b9 --- /dev/null +++ b/src/test/java/one/talon/model/WebhookAuthenticationTest.java @@ -0,0 +1,119 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import one.talon.model.WebhookAuthenticationWebhookRef; +import org.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for WebhookAuthentication + */ +public class WebhookAuthenticationTest { + private final WebhookAuthentication model = new WebhookAuthentication(); + + /** + * Model tests for WebhookAuthentication + */ + @Test + public void testWebhookAuthentication() { + // TODO: test WebhookAuthentication + } + + /** + * Test the property 'createdBy' + */ + @Test + public void createdByTest() { + // TODO: test createdBy + } + + /** + * Test the property 'modifiedBy' + */ + @Test + public void modifiedByTest() { + // TODO: test modifiedBy + } + + /** + * Test the property 'webhooks' + */ + @Test + public void webhooksTest() { + // TODO: test webhooks + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'created' + */ + @Test + public void createdTest() { + // TODO: test created + } + + /** + * Test the property 'modified' + */ + @Test + public void modifiedTest() { + // TODO: test modified + } + +} diff --git a/src/test/java/one/talon/model/WebhookAuthenticationWebhookRefTest.java b/src/test/java/one/talon/model/WebhookAuthenticationWebhookRefTest.java new file mode 100644 index 00000000..533c018b --- /dev/null +++ b/src/test/java/one/talon/model/WebhookAuthenticationWebhookRefTest.java @@ -0,0 +1,67 @@ +/* + * Talon.One API + * Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}` + * + * The version of the OpenAPI document: + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package one.talon.model; + +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for WebhookAuthenticationWebhookRef + */ +public class WebhookAuthenticationWebhookRefTest { + private final WebhookAuthenticationWebhookRef model = new WebhookAuthenticationWebhookRef(); + + /** + * Model tests for WebhookAuthenticationWebhookRef + */ + @Test + public void testWebhookAuthenticationWebhookRef() { + // TODO: test WebhookAuthenticationWebhookRef + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'title' + */ + @Test + public void titleTest() { + // TODO: test title + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + +} diff --git a/src/test/java/one/talon/model/WebhookTest.java b/src/test/java/one/talon/model/WebhookTest.java index c4f738b0..f010e05f 100644 --- a/src/test/java/one/talon/model/WebhookTest.java +++ b/src/test/java/one/talon/model/WebhookTest.java @@ -92,6 +92,14 @@ public void descriptionTest() { // TODO: test description } + /** + * Test the property 'draft' + */ + @Test + public void draftTest() { + // TODO: test draft + } + /** * Test the property 'verb' */ diff --git a/src/test/java/one/talon/model/WebhookWithOutgoingIntegrationDetailsTest.java b/src/test/java/one/talon/model/WebhookWithOutgoingIntegrationDetailsTest.java index 2a66f88f..b8ac6c2c 100644 --- a/src/test/java/one/talon/model/WebhookWithOutgoingIntegrationDetailsTest.java +++ b/src/test/java/one/talon/model/WebhookWithOutgoingIntegrationDetailsTest.java @@ -92,6 +92,14 @@ public void descriptionTest() { // TODO: test description } + /** + * Test the property 'draft' + */ + @Test + public void draftTest() { + // TODO: test draft + } + /** * Test the property 'verb' */