From 67a63e7bfda876b0720a47db45a676891f016625 Mon Sep 17 00:00:00 2001 From: "Jakob (Koby) Shimony" Date: Sat, 10 Oct 2020 23:00:32 +0200 Subject: [PATCH] v3.3.0: Customer Profile Update v2 dry runs & Loyalty Program Statistics (#8) ## Summary ### Integration API - Introduce `loyalty` flag in [`getCustomerInventory`](https://developers.talon.one/Integration-API/API-Reference#getCustomerInventory) endpoint to retrieve also profile's loyalty programs subscription and stats upon querying the endpoint - Introduce flags to control whether a customer [profile update request v2](https://developers.talon.one/Integration-API/API-Reference#updateCustomerProfileV2) should be a "dry run" or force it to "run rule engine" ### Loyalty Programs - Introduce Loyalty Programs statistics [endpoint](https://developers.talon.one/Management-API/API-Reference#getLoyaltyStatistics) to get a loyalty program stats snapshot ### Account Analytics - [Account analytics](https://github.com/talon-one/TalonOnePHPsdk/blob/0554761fff24d7bba56b4ab31fa4ed71eee5d0ef/docs/Model/AccountAnalytics.md) now respect live/sandbox application flagging and reports new data points: `liveApplications`, `sandboxApplications` and `liveActiveCampaigns` ### Misc: OpenAPI Generator version upgrade We have upgraded the OpenAPI Generator used to release this SDK from [v4.2.3](https://github.com/OpenAPITools/openapi-generator/releases/tag/v4.2.3) to [v4.3.1](https://github.com/OpenAPITools/openapi-generator/releases/tag/v4.3.1) which includes a few subtle improvements in the generated code, for full list of changes, please consult the release logs' under the PHP section. ----- ## Commit Summary: * Initial Commit * Upgrade generator version --- .openapi-generator/VERSION | 2 +- README.md | 19 +- composer.json | 2 +- docs/Api/IntegrationApi.md | 155 +- docs/Api/ManagementApi.md | 84 +- docs/Model/AccountAnalytics.md | 35 +- docs/Model/AccountLimits.md | 24 +- docs/Model/Application.md | 1 + docs/Model/ApplicationAPIKey.md | 5 +- docs/Model/ApplicationCustomer.md | 3 +- docs/Model/ApplicationSession.md | 2 +- docs/Model/Audience.md | 16 + docs/Model/AudienceMembership.md | 12 + docs/Model/Campaign.md | 2 +- docs/Model/CampaignAnalytics.md | 4 + docs/Model/CampaignCopy.md | 2 +- docs/Model/CreateApplicationAPIKey.md | 1 + docs/Model/CustomerActivityReport.md | 2 +- docs/Model/CustomerInventory.md | 1 + docs/Model/CustomerProfile.md | 3 +- docs/Model/CustomerProfileAudienceRequest.md | 11 + .../CustomerProfileAudienceRequestItem.md | 13 + .../CustomerProfileIntegrationRequestV2.md | 12 + docs/Model/CustomerSession.md | 2 +- docs/Model/CustomerSessionV2.md | 2 +- docs/Model/InlineResponse20012.md | 3 +- docs/Model/IntegrationEntity.md | 2 +- docs/Model/LoyaltyStatistics.md | 14 + docs/Model/LoyaltySubLedger.md | 10 +- ...ltipleCustomerProfileIntegrationRequest.md | 11 + ...leCustomerProfileIntegrationRequestItem.md | 12 + ...pleCustomerProfileIntegrationResponseV2.md | 11 + docs/Model/NewApplication.md | 1 + docs/Model/NewApplicationAPIKey.md | 5 +- docs/Model/NewAudience.md | 13 + docs/Model/NewCampaign.md | 2 +- docs/Model/Role.md | 3 +- docs/Model/SetDiscountEffectProps.md | 1 + docs/Model/SetDiscountPerItemEffectProps.md | 1 + docs/Model/UpdateApplication.md | 1 + ...omerProfileUpdate.md => UpdateAudience.md} | 4 +- docs/Model/UpdateCampaign.md | 1 + docs/Model/User.md | 2 +- lib/Api/IntegrationApi.php | 678 +++++- lib/Api/ManagementApi.php | 1987 ++++++++++++++--- lib/ApiException.php | 2 +- lib/Configuration.php | 6 +- lib/HeaderSelector.php | 2 +- lib/Model/APIError.php | 2 +- lib/Model/AcceptCouponEffectProps.php | 2 +- lib/Model/AcceptReferralEffectProps.php | 2 +- lib/Model/AccessLogEntry.php | 2 +- lib/Model/Account.php | 2 +- lib/Model/AccountAdditionalCost.php | 2 +- lib/Model/AccountAnalytics.php | 343 +-- lib/Model/AccountEntity.php | 2 +- lib/Model/AccountLimits.php | 87 +- lib/Model/AddFreeItemEffectProps.php | 2 +- lib/Model/AddLoyaltyPointsEffectProps.php | 2 +- lib/Model/AdditionalCost.php | 2 +- lib/Model/Application.php | 32 +- lib/Model/ApplicationAPIKey.php | 209 +- lib/Model/ApplicationApiHealth.php | 2 +- lib/Model/ApplicationCustomer.php | 34 +- lib/Model/ApplicationCustomerEntity.php | 2 +- lib/Model/ApplicationCustomerSearch.php | 2 +- lib/Model/ApplicationEntity.php | 2 +- lib/Model/ApplicationEvent.php | 2 +- lib/Model/ApplicationSession.php | 4 +- lib/Model/ApplicationSessionEntity.php | 2 +- lib/Model/Attribute.php | 2 +- lib/Model/AttributesMandatory.php | 2 +- lib/Model/AttributesSettings.php | 2 +- lib/Model/Audience.php | 524 +++++ lib/Model/AudienceMembership.php | 343 +++ lib/Model/BaseSamlConnection.php | 2 +- lib/Model/Binding.php | 2 +- lib/Model/Campaign.php | 62 +- lib/Model/CampaignAnalytics.php | 144 +- lib/Model/CampaignCopy.php | 8 +- lib/Model/CampaignEntity.php | 2 +- lib/Model/CampaignGroup.php | 2 +- lib/Model/CampaignGroupEntity.php | 2 +- lib/Model/CampaignSearch.php | 2 +- lib/Model/CampaignSet.php | 2 +- lib/Model/CampaignSetBranchNode.php | 2 +- lib/Model/CampaignSetLeafNode.php | 2 +- lib/Model/CampaignSetNode.php | 2 +- lib/Model/CartItem.php | 2 +- lib/Model/CartItemAdjustment.php | 2 +- lib/Model/Change.php | 2 +- lib/Model/ChangeProfilePassword.php | 2 +- lib/Model/CodeGeneratorSettings.php | 2 +- lib/Model/Coupon.php | 2 +- lib/Model/CouponConstraints.php | 2 +- lib/Model/CouponCreatedEffectProps.php | 2 +- lib/Model/CouponRejectionReason.php | 2 +- lib/Model/CouponReservations.php | 2 +- lib/Model/CouponSearch.php | 2 +- lib/Model/CouponValue.php | 2 +- lib/Model/CreateApplicationAPIKey.php | 78 +- lib/Model/CustomerActivityReport.php | 4 +- lib/Model/CustomerAnalytics.php | 2 +- lib/Model/CustomerInventory.php | 32 +- lib/Model/CustomerProfile.php | 34 +- ...php => CustomerProfileAudienceRequest.php} | 41 +- .../CustomerProfileAudienceRequestItem.php | 408 ++++ .../CustomerProfileIntegrationRequestV2.php | 366 +++ lib/Model/CustomerProfileSearchQuery.php | 2 +- lib/Model/CustomerSession.php | 4 +- lib/Model/CustomerSessionV2.php | 4 +- lib/Model/DeductLoyaltyPointsEffectProps.php | 2 +- lib/Model/Effect.php | 2 +- lib/Model/EffectEntity.php | 2 +- lib/Model/EmailEntity.php | 2 +- lib/Model/Entity.php | 2 +- lib/Model/EntityWithTalangVisibleID.php | 2 +- lib/Model/Environment.php | 2 +- lib/Model/ErrorEffectProps.php | 2 +- lib/Model/ErrorResponse.php | 2 +- lib/Model/ErrorSource.php | 2 +- lib/Model/Event.php | 2 +- lib/Model/EventType.php | 2 +- lib/Model/Export.php | 2 +- lib/Model/FeatureFlag.php | 2 +- lib/Model/FeatureFlags.php | 2 +- lib/Model/FeaturesFeed.php | 2 +- lib/Model/FeedNotification.php | 2 +- lib/Model/FuncArgDef.php | 2 +- lib/Model/FunctionDef.php | 2 +- lib/Model/Import.php | 2 +- lib/Model/ImportCoupons.php | 2 +- lib/Model/InlineResponse200.php | 2 +- lib/Model/InlineResponse2001.php | 2 +- lib/Model/InlineResponse20010.php | 2 +- lib/Model/InlineResponse20011.php | 2 +- lib/Model/InlineResponse20012.php | 39 +- lib/Model/InlineResponse20013.php | 2 +- lib/Model/InlineResponse20014.php | 2 +- lib/Model/InlineResponse20015.php | 2 +- lib/Model/InlineResponse20016.php | 2 +- lib/Model/InlineResponse20017.php | 2 +- lib/Model/InlineResponse20018.php | 2 +- lib/Model/InlineResponse20019.php | 2 +- lib/Model/InlineResponse2002.php | 2 +- lib/Model/InlineResponse20020.php | 2 +- lib/Model/InlineResponse20021.php | 2 +- lib/Model/InlineResponse20022.php | 2 +- lib/Model/InlineResponse20023.php | 2 +- lib/Model/InlineResponse20024.php | 2 +- lib/Model/InlineResponse20025.php | 2 +- lib/Model/InlineResponse20026.php | 2 +- lib/Model/InlineResponse20027.php | 2 +- lib/Model/InlineResponse20028.php | 2 +- lib/Model/InlineResponse20029.php | 2 +- lib/Model/InlineResponse2003.php | 2 +- lib/Model/InlineResponse20030.php | 2 +- lib/Model/InlineResponse2004.php | 2 +- lib/Model/InlineResponse2005.php | 2 +- lib/Model/InlineResponse2006.php | 2 +- lib/Model/InlineResponse2007.php | 2 +- lib/Model/InlineResponse2008.php | 2 +- lib/Model/InlineResponse2009.php | 2 +- lib/Model/IntegrationEntity.php | 4 +- lib/Model/IntegrationEvent.php | 2 +- lib/Model/IntegrationProfileEntity.php | 2 +- lib/Model/IntegrationRequest.php | 2 +- lib/Model/IntegrationState.php | 2 +- lib/Model/IntegrationStateV2.php | 2 +- lib/Model/LedgerEntry.php | 2 +- lib/Model/LibraryAttribute.php | 2 +- lib/Model/LimitConfig.php | 2 +- lib/Model/LoginParams.php | 2 +- lib/Model/Loyalty.php | 2 +- lib/Model/LoyaltyLedger.php | 2 +- lib/Model/LoyaltyLedgerEntry.php | 2 +- lib/Model/LoyaltyMembership.php | 2 +- lib/Model/LoyaltyPoints.php | 2 +- lib/Model/LoyaltyProgram.php | 2 +- lib/Model/LoyaltyProgramBalance.php | 2 +- lib/Model/LoyaltyProgramLedgers.php | 2 +- lib/Model/LoyaltyStatistics.php | 410 ++++ lib/Model/LoyaltySubLedger.php | 12 +- lib/Model/ManagerConfig.php | 2 +- lib/Model/Meta.php | 2 +- lib/Model/ModelInterface.php | 2 +- lib/Model/MultiApplicationEntity.php | 2 +- ...tipleCustomerProfileIntegrationRequest.php | 307 +++ ...eCustomerProfileIntegrationRequestItem.php | 341 +++ ...leCustomerProfileIntegrationResponseV2.php | 307 +++ lib/Model/MutableEntity.php | 2 +- lib/Model/NewAccount.php | 2 +- lib/Model/NewAccountSignUp.php | 2 +- lib/Model/NewAdditionalCost.php | 2 +- lib/Model/NewApplication.php | 32 +- lib/Model/NewApplicationAPIKey.php | 198 +- lib/Model/NewAttribute.php | 2 +- lib/Model/NewAudience.php | 424 ++++ lib/Model/NewCampaign.php | 73 +- lib/Model/NewCampaignGroup.php | 2 +- lib/Model/NewCampaignSet.php | 2 +- lib/Model/NewCoupons.php | 2 +- lib/Model/NewCustomerProfile.php | 2 +- lib/Model/NewCustomerSession.php | 2 +- lib/Model/NewCustomerSessionV2.php | 2 +- lib/Model/NewEvent.php | 2 +- lib/Model/NewEventType.php | 2 +- lib/Model/NewFeatureFlags.php | 2 +- lib/Model/NewImport.php | 2 +- lib/Model/NewInvitation.php | 2 +- lib/Model/NewInviteEmail.php | 2 +- lib/Model/NewLoyaltyProgram.php | 2 +- lib/Model/NewPassword.php | 2 +- lib/Model/NewPasswordEmail.php | 2 +- lib/Model/NewReferral.php | 2 +- lib/Model/NewRole.php | 2 +- lib/Model/NewRuleset.php | 2 +- lib/Model/NewSamlConnection.php | 2 +- lib/Model/NewTemplateDef.php | 2 +- lib/Model/NewUser.php | 2 +- lib/Model/NewWebhook.php | 2 +- lib/Model/Notification.php | 2 +- lib/Model/RedeemReferralEffectProps.php | 2 +- lib/Model/Referral.php | 2 +- lib/Model/ReferralCreatedEffectProps.php | 2 +- lib/Model/ReferralRejectionReason.php | 2 +- lib/Model/RejectCouponEffectProps.php | 2 +- lib/Model/RejectReferralEffectProps.php | 2 +- lib/Model/Role.php | 40 +- lib/Model/RoleAssign.php | 2 +- lib/Model/RoleMembership.php | 2 +- lib/Model/RollbackCouponEffectProps.php | 2 +- lib/Model/RollbackDiscountEffectProps.php | 2 +- lib/Model/Rule.php | 2 +- lib/Model/Ruleset.php | 2 +- lib/Model/SamlConnection.php | 2 +- lib/Model/SamlConnectionMetadata.php | 2 +- lib/Model/SamlLoginEndpoint.php | 2 +- lib/Model/Session.php | 2 +- lib/Model/SetDiscountEffectProps.php | 44 +- lib/Model/SetDiscountPerItemEffectProps.php | 42 +- lib/Model/ShowBundleMetadataEffectProps.php | 2 +- lib/Model/ShowNotificationEffectProps.php | 2 +- lib/Model/SlotDef.php | 2 +- lib/Model/TemplateArgDef.php | 2 +- lib/Model/TemplateDef.php | 2 +- lib/Model/TriggerWebhookEffectProps.php | 2 +- lib/Model/UpdateAccount.php | 2 +- lib/Model/UpdateApplication.php | 32 +- lib/Model/UpdateAttributeEffectProps.php | 2 +- lib/Model/UpdateAudience.php | 319 +++ lib/Model/UpdateCampaign.php | 42 +- lib/Model/UpdateCampaignGroup.php | 2 +- lib/Model/UpdateCoupon.php | 2 +- lib/Model/UpdateCouponBatch.php | 2 +- lib/Model/UpdateLoyaltyProgram.php | 2 +- lib/Model/UpdateRole.php | 2 +- lib/Model/UpdateUser.php | 2 +- lib/Model/UpdateUserLatestFeedTimestamp.php | 2 +- lib/Model/User.php | 10 +- lib/Model/UserEntity.php | 2 +- lib/Model/UserFeedNotifications.php | 2 +- lib/Model/Webhook.php | 2 +- lib/Model/WebhookActivationLogEntry.php | 2 +- lib/Model/WebhookLogEntry.php | 2 +- lib/ObjectSerializer.php | 13 +- test/Api/IntegrationApiTest.php | 22 +- test/Api/ManagementApiTest.php | 12 +- test/Model/APIErrorTest.php | 2 +- test/Model/AcceptCouponEffectPropsTest.php | 2 +- test/Model/AcceptReferralEffectPropsTest.php | 2 +- test/Model/AccessLogEntryTest.php | 2 +- test/Model/AccountAdditionalCostTest.php | 2 +- test/Model/AccountAnalyticsTest.php | 65 +- test/Model/AccountEntityTest.php | 2 +- test/Model/AccountLimitsTest.php | 16 +- test/Model/AccountTest.php | 2 +- test/Model/AddFreeItemEffectPropsTest.php | 2 +- .../Model/AddLoyaltyPointsEffectPropsTest.php | 2 +- test/Model/AdditionalCostTest.php | 2 +- test/Model/ApplicationAPIKeyTest.php | 37 +- test/Model/ApplicationApiHealthTest.php | 2 +- test/Model/ApplicationCustomerEntityTest.php | 2 +- test/Model/ApplicationCustomerSearchTest.php | 2 +- test/Model/ApplicationCustomerTest.php | 9 +- test/Model/ApplicationEntityTest.php | 2 +- test/Model/ApplicationEventTest.php | 2 +- test/Model/ApplicationSessionEntityTest.php | 2 +- test/Model/ApplicationSessionTest.php | 2 +- test/Model/ApplicationTest.php | 9 +- test/Model/AttributeTest.php | 2 +- test/Model/AttributesMandatoryTest.php | 2 +- test/Model/AttributesSettingsTest.php | 2 +- test/Model/AudienceMembershipTest.php | 94 + test/Model/AudienceTest.php | 122 + test/Model/BaseSamlConnectionTest.php | 2 +- test/Model/BindingTest.php | 2 +- test/Model/CampaignAnalyticsTest.php | 30 +- test/Model/CampaignCopyTest.php | 2 +- test/Model/CampaignEntityTest.php | 2 +- test/Model/CampaignGroupEntityTest.php | 2 +- test/Model/CampaignGroupTest.php | 2 +- test/Model/CampaignSearchTest.php | 2 +- test/Model/CampaignSetBranchNodeTest.php | 2 +- test/Model/CampaignSetLeafNodeTest.php | 2 +- test/Model/CampaignSetNodeTest.php | 2 +- test/Model/CampaignSetTest.php | 2 +- test/Model/CampaignTest.php | 16 +- test/Model/CartItemAdjustmentTest.php | 2 +- test/Model/CartItemTest.php | 2 +- test/Model/ChangeProfilePasswordTest.php | 2 +- test/Model/ChangeTest.php | 2 +- test/Model/CodeGeneratorSettingsTest.php | 2 +- test/Model/CouponConstraintsTest.php | 2 +- test/Model/CouponCreatedEffectPropsTest.php | 2 +- test/Model/CouponRejectionReasonTest.php | 2 +- test/Model/CouponReservationsTest.php | 2 +- test/Model/CouponSearchTest.php | 2 +- test/Model/CouponTest.php | 2 +- test/Model/CouponValueTest.php | 2 +- test/Model/CreateApplicationAPIKeyTest.php | 9 +- test/Model/CustomerActivityReportTest.php | 2 +- test/Model/CustomerAnalyticsTest.php | 2 +- test/Model/CustomerInventoryTest.php | 9 +- ...CustomerProfileAudienceRequestItemTest.php | 101 + .../CustomerProfileAudienceRequestTest.php | 87 + ...ustomerProfileIntegrationRequestV2Test.php | 94 + test/Model/CustomerProfileSearchQueryTest.php | 2 +- test/Model/CustomerProfileTest.php | 9 +- test/Model/CustomerSessionTest.php | 2 +- test/Model/CustomerSessionV2Test.php | 2 +- .../DeductLoyaltyPointsEffectPropsTest.php | 2 +- test/Model/EffectEntityTest.php | 2 +- test/Model/EffectTest.php | 2 +- test/Model/EmailEntityTest.php | 2 +- test/Model/EntityTest.php | 2 +- test/Model/EntityWithTalangVisibleIDTest.php | 2 +- test/Model/EnvironmentTest.php | 2 +- test/Model/ErrorEffectPropsTest.php | 2 +- test/Model/ErrorResponseTest.php | 2 +- test/Model/ErrorSourceTest.php | 2 +- test/Model/EventTest.php | 2 +- test/Model/EventTypeTest.php | 2 +- test/Model/ExportTest.php | 2 +- test/Model/FeatureFlagTest.php | 2 +- test/Model/FeatureFlagsTest.php | 2 +- test/Model/FeaturesFeedTest.php | 2 +- test/Model/FeedNotificationTest.php | 2 +- test/Model/FuncArgDefTest.php | 2 +- test/Model/FunctionDefTest.php | 2 +- test/Model/ImportCouponsTest.php | 2 +- test/Model/ImportTest.php | 2 +- test/Model/InlineResponse20010Test.php | 2 +- test/Model/InlineResponse20011Test.php | 2 +- test/Model/InlineResponse20012Test.php | 9 +- test/Model/InlineResponse20013Test.php | 2 +- test/Model/InlineResponse20014Test.php | 2 +- test/Model/InlineResponse20015Test.php | 2 +- test/Model/InlineResponse20016Test.php | 2 +- test/Model/InlineResponse20017Test.php | 2 +- test/Model/InlineResponse20018Test.php | 2 +- test/Model/InlineResponse20019Test.php | 2 +- test/Model/InlineResponse2001Test.php | 2 +- test/Model/InlineResponse20020Test.php | 2 +- test/Model/InlineResponse20021Test.php | 2 +- test/Model/InlineResponse20022Test.php | 2 +- test/Model/InlineResponse20023Test.php | 2 +- test/Model/InlineResponse20024Test.php | 2 +- test/Model/InlineResponse20025Test.php | 2 +- test/Model/InlineResponse20026Test.php | 2 +- test/Model/InlineResponse20027Test.php | 2 +- test/Model/InlineResponse20028Test.php | 2 +- test/Model/InlineResponse20029Test.php | 2 +- test/Model/InlineResponse2002Test.php | 2 +- test/Model/InlineResponse20030Test.php | 2 +- test/Model/InlineResponse2003Test.php | 2 +- test/Model/InlineResponse2004Test.php | 2 +- test/Model/InlineResponse2005Test.php | 2 +- test/Model/InlineResponse2006Test.php | 2 +- test/Model/InlineResponse2007Test.php | 2 +- test/Model/InlineResponse2008Test.php | 2 +- test/Model/InlineResponse2009Test.php | 2 +- test/Model/InlineResponse200Test.php | 2 +- test/Model/IntegrationEntityTest.php | 2 +- test/Model/IntegrationEventTest.php | 2 +- test/Model/IntegrationProfileEntityTest.php | 2 +- test/Model/IntegrationRequestTest.php | 2 +- test/Model/IntegrationStateTest.php | 2 +- test/Model/IntegrationStateV2Test.php | 2 +- test/Model/LedgerEntryTest.php | 2 +- test/Model/LibraryAttributeTest.php | 2 +- test/Model/LimitConfigTest.php | 2 +- test/Model/LoginParamsTest.php | 2 +- test/Model/LoyaltyLedgerEntryTest.php | 2 +- test/Model/LoyaltyLedgerTest.php | 2 +- test/Model/LoyaltyMembershipTest.php | 2 +- test/Model/LoyaltyPointsTest.php | 2 +- test/Model/LoyaltyProgramBalanceTest.php | 2 +- test/Model/LoyaltyProgramLedgersTest.php | 2 +- test/Model/LoyaltyProgramTest.php | 2 +- test/Model/LoyaltyStatisticsTest.php | 108 + test/Model/LoyaltySubLedgerTest.php | 2 +- test/Model/LoyaltyTest.php | 2 +- test/Model/ManagerConfigTest.php | 2 +- test/Model/MetaTest.php | 2 +- test/Model/MultiApplicationEntityTest.php | 2 +- ...tomerProfileIntegrationRequestItemTest.php | 94 + ...eCustomerProfileIntegrationRequestTest.php | 87 + ...stomerProfileIntegrationResponseV2Test.php | 87 + test/Model/MutableEntityTest.php | 2 +- test/Model/NewAccountSignUpTest.php | 2 +- test/Model/NewAccountTest.php | 2 +- test/Model/NewAdditionalCostTest.php | 2 +- test/Model/NewApplicationAPIKeyTest.php | 35 +- test/Model/NewApplicationTest.php | 9 +- test/Model/NewAttributeTest.php | 2 +- test/Model/NewAudienceTest.php | 101 + test/Model/NewCampaignGroupTest.php | 2 +- test/Model/NewCampaignSetTest.php | 2 +- test/Model/NewCampaignTest.php | 18 +- test/Model/NewCouponsTest.php | 2 +- test/Model/NewCustomerProfileTest.php | 2 +- test/Model/NewCustomerSessionTest.php | 2 +- test/Model/NewCustomerSessionV2Test.php | 2 +- test/Model/NewEventTest.php | 2 +- test/Model/NewEventTypeTest.php | 2 +- test/Model/NewFeatureFlagsTest.php | 2 +- test/Model/NewImportTest.php | 2 +- test/Model/NewInvitationTest.php | 2 +- test/Model/NewInviteEmailTest.php | 2 +- test/Model/NewLoyaltyProgramTest.php | 2 +- test/Model/NewPasswordEmailTest.php | 2 +- test/Model/NewPasswordTest.php | 2 +- test/Model/NewReferralTest.php | 2 +- test/Model/NewRoleTest.php | 2 +- test/Model/NewRulesetTest.php | 2 +- test/Model/NewSamlConnectionTest.php | 2 +- test/Model/NewTemplateDefTest.php | 2 +- test/Model/NewUserTest.php | 2 +- test/Model/NewWebhookTest.php | 2 +- test/Model/NotificationTest.php | 2 +- test/Model/RedeemReferralEffectPropsTest.php | 2 +- test/Model/ReferralCreatedEffectPropsTest.php | 2 +- test/Model/ReferralRejectionReasonTest.php | 2 +- test/Model/ReferralTest.php | 2 +- test/Model/RejectCouponEffectPropsTest.php | 2 +- test/Model/RejectReferralEffectPropsTest.php | 2 +- test/Model/RoleAssignTest.php | 2 +- test/Model/RoleMembershipTest.php | 2 +- test/Model/RoleTest.php | 9 +- test/Model/RollbackCouponEffectPropsTest.php | 2 +- .../Model/RollbackDiscountEffectPropsTest.php | 2 +- test/Model/RuleTest.php | 2 +- test/Model/RulesetTest.php | 2 +- test/Model/SamlConnectionMetadataTest.php | 2 +- test/Model/SamlConnectionTest.php | 2 +- test/Model/SamlLoginEndpointTest.php | 2 +- test/Model/SessionTest.php | 2 +- test/Model/SetDiscountEffectPropsTest.php | 11 +- .../SetDiscountPerItemEffectPropsTest.php | 9 +- .../ShowBundleMetadataEffectPropsTest.php | 2 +- .../Model/ShowNotificationEffectPropsTest.php | 2 +- test/Model/SlotDefTest.php | 2 +- test/Model/TemplateArgDefTest.php | 2 +- test/Model/TemplateDefTest.php | 2 +- test/Model/TriggerWebhookEffectPropsTest.php | 2 +- test/Model/UpdateAccountTest.php | 2 +- test/Model/UpdateApplicationTest.php | 9 +- test/Model/UpdateAttributeEffectPropsTest.php | 2 +- ...eUpdateTest.php => UpdateAudienceTest.php} | 18 +- test/Model/UpdateCampaignGroupTest.php | 2 +- test/Model/UpdateCampaignTest.php | 9 +- test/Model/UpdateCouponBatchTest.php | 2 +- test/Model/UpdateCouponTest.php | 2 +- test/Model/UpdateLoyaltyProgramTest.php | 2 +- test/Model/UpdateRoleTest.php | 2 +- .../UpdateUserLatestFeedTimestampTest.php | 2 +- test/Model/UpdateUserTest.php | 2 +- test/Model/UserEntityTest.php | 2 +- test/Model/UserFeedNotificationsTest.php | 2 +- test/Model/UserTest.php | 2 +- test/Model/WebhookActivationLogEntryTest.php | 2 +- test/Model/WebhookLogEntryTest.php | 2 +- test/Model/WebhookTest.php | 2 +- 484 files changed, 9285 insertions(+), 1436 deletions(-) create mode 100644 docs/Model/Audience.md create mode 100644 docs/Model/AudienceMembership.md create mode 100644 docs/Model/CustomerProfileAudienceRequest.md create mode 100644 docs/Model/CustomerProfileAudienceRequestItem.md create mode 100644 docs/Model/CustomerProfileIntegrationRequestV2.md create mode 100644 docs/Model/LoyaltyStatistics.md create mode 100644 docs/Model/MultipleCustomerProfileIntegrationRequest.md create mode 100644 docs/Model/MultipleCustomerProfileIntegrationRequestItem.md create mode 100644 docs/Model/MultipleCustomerProfileIntegrationResponseV2.md create mode 100644 docs/Model/NewAudience.md rename docs/Model/{CustomerProfileUpdate.md => UpdateAudience.md} (70%) create mode 100644 lib/Model/Audience.php create mode 100644 lib/Model/AudienceMembership.php rename lib/Model/{CustomerProfileUpdate.php => CustomerProfileAudienceRequest.php} (84%) create mode 100644 lib/Model/CustomerProfileAudienceRequestItem.php create mode 100644 lib/Model/CustomerProfileIntegrationRequestV2.php create mode 100644 lib/Model/LoyaltyStatistics.php create mode 100644 lib/Model/MultipleCustomerProfileIntegrationRequest.php create mode 100644 lib/Model/MultipleCustomerProfileIntegrationRequestItem.php create mode 100644 lib/Model/MultipleCustomerProfileIntegrationResponseV2.php create mode 100644 lib/Model/NewAudience.php create mode 100644 lib/Model/UpdateAudience.php create mode 100644 test/Model/AudienceMembershipTest.php create mode 100644 test/Model/AudienceTest.php create mode 100644 test/Model/CustomerProfileAudienceRequestItemTest.php create mode 100644 test/Model/CustomerProfileAudienceRequestTest.php create mode 100644 test/Model/CustomerProfileIntegrationRequestV2Test.php create mode 100644 test/Model/LoyaltyStatisticsTest.php create mode 100644 test/Model/MultipleCustomerProfileIntegrationRequestItemTest.php create mode 100644 test/Model/MultipleCustomerProfileIntegrationRequestTest.php create mode 100644 test/Model/MultipleCustomerProfileIntegrationResponseV2Test.php create mode 100644 test/Model/NewAudienceTest.php rename test/Model/{CustomerProfileUpdateTest.php => UpdateAudienceTest.php} (83%) diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index ec87108d..ecedc98d 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -4.2.3 \ No newline at end of file +4.3.1 \ No newline at end of file diff --git a/README.md b/README.md index 38fe9fae..d35829ac 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ The API is available at the same hostname as these docs. For example, if you are This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 1.0.0 -- Package version: 3.2.0 +- Package version: 3.3.0 - Build package: org.openapitools.codegen.languages.PhpClientCodegen ## Requirements @@ -240,7 +240,9 @@ Class | Method | HTTP request | Description *IntegrationApi* | [**getReservedCustomers**](docs/Api/IntegrationApi.md#getreservedcustomers) | **GET** /v1/coupon_reservations/customerprofiles/{couponValue} | Get the users that have this coupon reserved *IntegrationApi* | [**trackEvent**](docs/Api/IntegrationApi.md#trackevent) | **POST** /v1/events | Track an Event *IntegrationApi* | [**updateCustomerProfile**](docs/Api/IntegrationApi.md#updatecustomerprofile) | **PUT** /v1/customer_profiles/{integrationId} | Update a Customer Profile V1 -*IntegrationApi* | [**updateCustomerProfileV2**](docs/Api/IntegrationApi.md#updatecustomerprofilev2) | **PUT** /v2/customer_profiles/{customerProfileId} | Update a Customer Profile +*IntegrationApi* | [**updateCustomerProfileAudiences**](docs/Api/IntegrationApi.md#updatecustomerprofileaudiences) | **POST** /v2/customer_audiences | Update a Customer Profile Audiences +*IntegrationApi* | [**updateCustomerProfileV2**](docs/Api/IntegrationApi.md#updatecustomerprofilev2) | **PUT** /v2/customer_profiles/{integrationId} | Update a Customer Profile +*IntegrationApi* | [**updateCustomerProfilesV2**](docs/Api/IntegrationApi.md#updatecustomerprofilesv2) | **PUT** /v2/customer_profiles | Update multiple Customer Profiles *IntegrationApi* | [**updateCustomerSession**](docs/Api/IntegrationApi.md#updatecustomersession) | **PUT** /v1/customer_sessions/{customerSessionId} | Update a Customer Session V1 *IntegrationApi* | [**updateCustomerSessionV2**](docs/Api/IntegrationApi.md#updatecustomersessionv2) | **PUT** /v2/customer_sessions/{customerSessionId} | Update a Customer Session *ManagementApi* | [**addLoyaltyPoints**](docs/Api/ManagementApi.md#addloyaltypoints) | **PUT** /v1/loyalty_programs/{programID}/profile/{integrationID}/add_points | Add points in a certain loyalty program for the specified customer @@ -300,6 +302,7 @@ Class | Method | HTTP request | Description *ManagementApi* | [**getLoyaltyPoints**](docs/Api/ManagementApi.md#getloyaltypoints) | **GET** /v1/loyalty_programs/{programID}/profile/{integrationID} | get the Loyalty Ledger for this integrationID *ManagementApi* | [**getLoyaltyProgram**](docs/Api/ManagementApi.md#getloyaltyprogram) | **GET** /v1/loyalty_programs/{programID} | Get a loyalty program *ManagementApi* | [**getLoyaltyPrograms**](docs/Api/ManagementApi.md#getloyaltyprograms) | **GET** /v1/loyalty_programs | List all loyalty Programs +*ManagementApi* | [**getLoyaltyStatistics**](docs/Api/ManagementApi.md#getloyaltystatistics) | **GET** /v1/loyalty_programs/{programID}/statistics | Get loyalty program statistics by loyalty program ID *ManagementApi* | [**getReferrals**](docs/Api/ManagementApi.md#getreferrals) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals | List Referrals (with total count) *ManagementApi* | [**getReferralsWithoutTotalCount**](docs/Api/ManagementApi.md#getreferralswithouttotalcount) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals/no_total | List Referrals *ManagementApi* | [**getRole**](docs/Api/ManagementApi.md#getrole) | **GET** /v1/roles/{roleId} | Get information for the specified role. @@ -352,6 +355,8 @@ Class | Method | HTTP request | Description - [Attribute](docs/Model/Attribute.md) - [AttributesMandatory](docs/Model/AttributesMandatory.md) - [AttributesSettings](docs/Model/AttributesSettings.md) + - [Audience](docs/Model/Audience.md) + - [AudienceMembership](docs/Model/AudienceMembership.md) - [BaseSamlConnection](docs/Model/BaseSamlConnection.md) - [Binding](docs/Model/Binding.md) - [Campaign](docs/Model/Campaign.md) @@ -382,8 +387,10 @@ Class | Method | HTTP request | Description - [CustomerAnalytics](docs/Model/CustomerAnalytics.md) - [CustomerInventory](docs/Model/CustomerInventory.md) - [CustomerProfile](docs/Model/CustomerProfile.md) + - [CustomerProfileAudienceRequest](docs/Model/CustomerProfileAudienceRequest.md) + - [CustomerProfileAudienceRequestItem](docs/Model/CustomerProfileAudienceRequestItem.md) + - [CustomerProfileIntegrationRequestV2](docs/Model/CustomerProfileIntegrationRequestV2.md) - [CustomerProfileSearchQuery](docs/Model/CustomerProfileSearchQuery.md) - - [CustomerProfileUpdate](docs/Model/CustomerProfileUpdate.md) - [CustomerSession](docs/Model/CustomerSession.md) - [CustomerSessionV2](docs/Model/CustomerSessionV2.md) - [DeductLoyaltyPointsEffectProps](docs/Model/DeductLoyaltyPointsEffectProps.md) @@ -456,10 +463,14 @@ Class | Method | HTTP request | Description - [LoyaltyProgram](docs/Model/LoyaltyProgram.md) - [LoyaltyProgramBalance](docs/Model/LoyaltyProgramBalance.md) - [LoyaltyProgramLedgers](docs/Model/LoyaltyProgramLedgers.md) + - [LoyaltyStatistics](docs/Model/LoyaltyStatistics.md) - [LoyaltySubLedger](docs/Model/LoyaltySubLedger.md) - [ManagerConfig](docs/Model/ManagerConfig.md) - [Meta](docs/Model/Meta.md) - [MultiApplicationEntity](docs/Model/MultiApplicationEntity.md) + - [MultipleCustomerProfileIntegrationRequest](docs/Model/MultipleCustomerProfileIntegrationRequest.md) + - [MultipleCustomerProfileIntegrationRequestItem](docs/Model/MultipleCustomerProfileIntegrationRequestItem.md) + - [MultipleCustomerProfileIntegrationResponseV2](docs/Model/MultipleCustomerProfileIntegrationResponseV2.md) - [MutableEntity](docs/Model/MutableEntity.md) - [NewAccount](docs/Model/NewAccount.md) - [NewAccountSignUp](docs/Model/NewAccountSignUp.md) @@ -467,6 +478,7 @@ Class | Method | HTTP request | Description - [NewApplication](docs/Model/NewApplication.md) - [NewApplicationAPIKey](docs/Model/NewApplicationAPIKey.md) - [NewAttribute](docs/Model/NewAttribute.md) + - [NewAudience](docs/Model/NewAudience.md) - [NewCampaign](docs/Model/NewCampaign.md) - [NewCampaignGroup](docs/Model/NewCampaignGroup.md) - [NewCampaignSet](docs/Model/NewCampaignSet.md) @@ -519,6 +531,7 @@ Class | Method | HTTP request | Description - [UpdateAccount](docs/Model/UpdateAccount.md) - [UpdateApplication](docs/Model/UpdateApplication.md) - [UpdateAttributeEffectProps](docs/Model/UpdateAttributeEffectProps.md) + - [UpdateAudience](docs/Model/UpdateAudience.md) - [UpdateCampaign](docs/Model/UpdateCampaign.md) - [UpdateCampaignGroup](docs/Model/UpdateCampaignGroup.md) - [UpdateCoupon](docs/Model/UpdateCoupon.md) diff --git a/composer.json b/composer.json index 0fdfc341..b075c807 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "talon-one/talon-one-client", "type": "library", - "version": "3.2.0", + "version": "3.3.0", "description": "The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns.", "keywords": [ "talon-one", diff --git a/docs/Api/IntegrationApi.md b/docs/Api/IntegrationApi.md index abe892b6..067ab34c 100644 --- a/docs/Api/IntegrationApi.md +++ b/docs/Api/IntegrationApi.md @@ -12,7 +12,9 @@ Method | HTTP request | Description [**getReservedCustomers**](IntegrationApi.md#getReservedCustomers) | **GET** /v1/coupon_reservations/customerprofiles/{couponValue} | Get the users that have this coupon reserved [**trackEvent**](IntegrationApi.md#trackEvent) | **POST** /v1/events | Track an Event [**updateCustomerProfile**](IntegrationApi.md#updateCustomerProfile) | **PUT** /v1/customer_profiles/{integrationId} | Update a Customer Profile V1 -[**updateCustomerProfileV2**](IntegrationApi.md#updateCustomerProfileV2) | **PUT** /v2/customer_profiles/{customerProfileId} | Update a Customer Profile +[**updateCustomerProfileAudiences**](IntegrationApi.md#updateCustomerProfileAudiences) | **POST** /v2/customer_audiences | Update a Customer Profile Audiences +[**updateCustomerProfileV2**](IntegrationApi.md#updateCustomerProfileV2) | **PUT** /v2/customer_profiles/{integrationId} | Update a Customer Profile +[**updateCustomerProfilesV2**](IntegrationApi.md#updateCustomerProfilesV2) | **PUT** /v2/customer_profiles | Update multiple Customer Profiles [**updateCustomerSession**](IntegrationApi.md#updateCustomerSession) | **PUT** /v1/customer_sessions/{customerSessionId} | Update a Customer Session V1 [**updateCustomerSessionV2**](IntegrationApi.md#updateCustomerSessionV2) | **PUT** /v2/customer_sessions/{customerSessionId} | Update a Customer Session @@ -294,7 +296,7 @@ void (empty response body) ## getCustomerInventory -> \TalonOne\Client\Model\CustomerInventory getCustomerInventory($integrationId, $profile, $referrals, $coupons) +> \TalonOne\Client\Model\CustomerInventory getCustomerInventory($integrationId, $profile, $referrals, $coupons, $loyalty) Get an inventory of all data associated with a specific customer profile. @@ -328,9 +330,10 @@ $integrationId = 'integrationId_example'; // string | The custom identifier for $profile = True; // bool | optional flag to decide if you would like customer profile information in the response $referrals = True; // bool | optional flag to decide if you would like referral information in the response $coupons = True; // bool | optional flag to decide if you would like coupon information in the response +$loyalty = True; // bool | optional flag to decide if you would like loyalty information in the response try { - $result = $apiInstance->getCustomerInventory($integrationId, $profile, $referrals, $coupons); + $result = $apiInstance->getCustomerInventory($integrationId, $profile, $referrals, $coupons, $loyalty); print_r($result); } catch (Exception $e) { echo 'Exception when calling IntegrationApi->getCustomerInventory: ', $e->getMessage(), PHP_EOL; @@ -347,6 +350,7 @@ Name | Type | Description | Notes **profile** | **bool**| optional flag to decide if you would like customer profile information in the response | [optional] **referrals** | **bool**| optional flag to decide if you would like referral information in the response | [optional] **coupons** | **bool**| optional flag to decide if you would like coupon information in the response | [optional] + **loyalty** | **bool**| optional flag to decide if you would like loyalty information in the response | [optional] ### Return type @@ -576,9 +580,71 @@ Name | Type | Description | Notes [[Back to README]](../../README.md) +## updateCustomerProfileAudiences + +> updateCustomerProfileAudiences($body) + +Update a Customer Profile Audiences + +Update one ore multiple Customer Profiles with the specified Audiences + +### Example + +```php +setApiKey('Authorization', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = TalonOne\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer'); + + +$apiInstance = new TalonOne\Client\Api\IntegrationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$body = new \TalonOne\Client\Model\CustomerProfileAudienceRequest(); // \TalonOne\Client\Model\CustomerProfileAudienceRequest | + +try { + $apiInstance->updateCustomerProfileAudiences($body); +} catch (Exception $e) { + echo 'Exception when calling IntegrationApi->updateCustomerProfileAudiences: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**\TalonOne\Client\Model\CustomerProfileAudienceRequest**](../Model/CustomerProfileAudienceRequest.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[api_key_v1](../../README.md#api_key_v1) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../../README.md#documentation-for-models) +[[Back to README]](../../README.md) + + ## updateCustomerProfileV2 -> \TalonOne\Client\Model\CustomerProfileUpdate updateCustomerProfileV2($customerProfileId, $body) +> \TalonOne\Client\Model\IntegrationStateV2 updateCustomerProfileV2($integrationId, $body, $runRuleEngine, $dry) Update a Customer Profile @@ -603,11 +669,13 @@ $apiInstance = new TalonOne\Client\Api\IntegrationApi( new GuzzleHttp\Client(), $config ); -$customerProfileId = 'customerProfileId_example'; // string | The custom identifier for this profile, must be unique within the account. -$body = new \TalonOne\Client\Model\NewCustomerProfile(); // \TalonOne\Client\Model\NewCustomerProfile | +$integrationId = 'integrationId_example'; // string | The custom identifier for this profile, must be unique within the account. +$body = new \TalonOne\Client\Model\CustomerProfileIntegrationRequestV2(); // \TalonOne\Client\Model\CustomerProfileIntegrationRequestV2 | +$runRuleEngine = True; // bool | Flag to indicate whether to run the rule engine (Defaults to false). +$dry = True; // bool | Flag to indicate whether to skip persisting the changes or not (Will not persist if set to 'true'. Only used when 'runRuleEngine' is set to 'true'). try { - $result = $apiInstance->updateCustomerProfileV2($customerProfileId, $body); + $result = $apiInstance->updateCustomerProfileV2($integrationId, $body, $runRuleEngine, $dry); print_r($result); } catch (Exception $e) { echo 'Exception when calling IntegrationApi->updateCustomerProfileV2: ', $e->getMessage(), PHP_EOL; @@ -620,12 +688,79 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **customerProfileId** | **string**| The custom identifier for this profile, must be unique within the account. | - **body** | [**\TalonOne\Client\Model\NewCustomerProfile**](../Model/NewCustomerProfile.md)| | + **integrationId** | **string**| The custom identifier for this profile, must be unique within the account. | + **body** | [**\TalonOne\Client\Model\CustomerProfileIntegrationRequestV2**](../Model/CustomerProfileIntegrationRequestV2.md)| | + **runRuleEngine** | **bool**| Flag to indicate whether to run the rule engine (Defaults to false). | [optional] + **dry** | **bool**| Flag to indicate whether to skip persisting the changes or not (Will not persist if set to 'true'. Only used when 'runRuleEngine' is set to 'true'). | [optional] + +### Return type + +[**\TalonOne\Client\Model\IntegrationStateV2**](../Model/IntegrationStateV2.md) + +### Authorization + +[api_key_v1](../../README.md#api_key_v1) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../../README.md#documentation-for-models) +[[Back to README]](../../README.md) + + +## updateCustomerProfilesV2 + +> \TalonOne\Client\Model\MultipleCustomerProfileIntegrationResponseV2 updateCustomerProfilesV2($body, $silent) + +Update multiple Customer Profiles + +Update (or create) up to 1000 [Customer Profiles][] in 1 request. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. [Customer Profiles]: /Getting-Started/entities#customer-profile + +### Example + +```php +setApiKey('Authorization', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = TalonOne\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer'); + + +$apiInstance = new TalonOne\Client\Api\IntegrationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$body = new \TalonOne\Client\Model\MultipleCustomerProfileIntegrationRequest(); // \TalonOne\Client\Model\MultipleCustomerProfileIntegrationRequest | +$silent = 'silent_example'; // string | If set to 'yes', response will be an empty 204, otherwise a list of the IntegrationStateV2 generated. + +try { + $result = $apiInstance->updateCustomerProfilesV2($body, $silent); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling IntegrationApi->updateCustomerProfilesV2: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**\TalonOne\Client\Model\MultipleCustomerProfileIntegrationRequest**](../Model/MultipleCustomerProfileIntegrationRequest.md)| | + **silent** | **string**| If set to 'yes', response will be an empty 204, otherwise a list of the IntegrationStateV2 generated. | [optional] ### Return type -[**\TalonOne\Client\Model\CustomerProfileUpdate**](../Model/CustomerProfileUpdate.md) +[**\TalonOne\Client\Model\MultipleCustomerProfileIntegrationResponseV2**](../Model/MultipleCustomerProfileIntegrationResponseV2.md) ### Authorization diff --git a/docs/Api/ManagementApi.md b/docs/Api/ManagementApi.md index 1c209a37..ecd9e830 100644 --- a/docs/Api/ManagementApi.md +++ b/docs/Api/ManagementApi.md @@ -61,6 +61,7 @@ Method | HTTP request | Description [**getLoyaltyPoints**](ManagementApi.md#getLoyaltyPoints) | **GET** /v1/loyalty_programs/{programID}/profile/{integrationID} | get the Loyalty Ledger for this integrationID [**getLoyaltyProgram**](ManagementApi.md#getLoyaltyProgram) | **GET** /v1/loyalty_programs/{programID} | Get a loyalty program [**getLoyaltyPrograms**](ManagementApi.md#getLoyaltyPrograms) | **GET** /v1/loyalty_programs | List all loyalty Programs +[**getLoyaltyStatistics**](ManagementApi.md#getLoyaltyStatistics) | **GET** /v1/loyalty_programs/{programID}/statistics | Get loyalty program statistics by loyalty program ID [**getReferrals**](ManagementApi.md#getReferrals) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals | List Referrals (with total count) [**getReferralsWithoutTotalCount**](ManagementApi.md#getReferralsWithoutTotalCount) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals/no_total | List Referrals [**getRole**](ManagementApi.md#getRole) | **GET** /v1/roles/{roleId} | Get information for the specified role. @@ -1740,7 +1741,7 @@ Name | Type | Description | Notes ## getApplicationCustomers -> \TalonOne\Client\Model\InlineResponse20012 getApplicationCustomers($applicationId) +> \TalonOne\Client\Model\InlineResponse20012 getApplicationCustomers($applicationId, $integrationId, $pageSize, $skip, $withTotalResultSize) List Application Customers @@ -1764,9 +1765,13 @@ $apiInstance = new TalonOne\Client\Api\ManagementApi( $config ); $applicationId = 56; // int | +$integrationId = 'integrationId_example'; // string | Filter results performing an exact matching against the profile integration identifier. +$pageSize = 56; // int | The number of items to include in this response. When omitted, the maximum value of 1000 will be used. +$skip = 56; // int | Skips the given number of items when paging through large result sets. +$withTotalResultSize = True; // bool | When this flag is set, the result will include the total size of the result, across all pages. This might decrease performance on large data sets. With this flag set to true, hasMore will be be true whenever there is a next page. totalResultSize will always be zero. With this flag set to false, hasMore will always be set to false. totalResultSize will contain the total number of results for this query. try { - $result = $apiInstance->getApplicationCustomers($applicationId); + $result = $apiInstance->getApplicationCustomers($applicationId, $integrationId, $pageSize, $skip, $withTotalResultSize); print_r($result); } catch (Exception $e) { echo 'Exception when calling ManagementApi->getApplicationCustomers: ', $e->getMessage(), PHP_EOL; @@ -1780,6 +1785,10 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **applicationId** | **int**| | + **integrationId** | **string**| Filter results performing an exact matching against the profile integration identifier. | [optional] + **pageSize** | **int**| The number of items to include in this response. When omitted, the maximum value of 1000 will be used. | [optional] + **skip** | **int**| Skips the given number of items when paging through large result sets. | [optional] + **withTotalResultSize** | **bool**| When this flag is set, the result will include the total size of the result, across all pages. This might decrease performance on large data sets. With this flag set to true, hasMore will be be true whenever there is a next page. totalResultSize will always be zero. With this flag set to false, hasMore will always be set to false. totalResultSize will contain the total number of results for this query. | [optional] ### Return type @@ -2178,7 +2187,7 @@ Name | Type | Description | Notes ## getApplicationSessions -> \TalonOne\Client\Model\InlineResponse20016 getApplicationSessions($applicationId, $pageSize, $skip, $sort, $profile, $state, $coupon, $referral, $integrationId, $customerId) +> \TalonOne\Client\Model\InlineResponse20016 getApplicationSessions($applicationId, $pageSize, $skip, $sort, $profile, $state, $createdBefore, $createdAfter, $coupon, $referral, $integrationId) List Application Sessions @@ -2207,13 +2216,14 @@ $skip = 56; // int | Skips the given number of items when paging through large r $sort = 'sort_example'; // string | The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with `-` to sort in descending order. $profile = 'profile_example'; // string | Profile integration ID filter for sessions. Must be exact match. $state = 'state_example'; // string | Filter by sessions with this state. Must be exact match. +$createdBefore = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | Only return events created before this date +$createdAfter = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | Only return events created after this date $coupon = 'coupon_example'; // string | Filter by sessions with this coupon. Must be exact match. $referral = 'referral_example'; // string | Filter by sessions with this referral. Must be exact match. $integrationId = 'integrationId_example'; // string | Filter by sessions with this integrationId. Must be exact match. -$customerId = 'customerId_example'; // string | Filter by integration ID of the customer for the session try { - $result = $apiInstance->getApplicationSessions($applicationId, $pageSize, $skip, $sort, $profile, $state, $coupon, $referral, $integrationId, $customerId); + $result = $apiInstance->getApplicationSessions($applicationId, $pageSize, $skip, $sort, $profile, $state, $createdBefore, $createdAfter, $coupon, $referral, $integrationId); print_r($result); } catch (Exception $e) { echo 'Exception when calling ManagementApi->getApplicationSessions: ', $e->getMessage(), PHP_EOL; @@ -2232,10 +2242,11 @@ Name | Type | Description | Notes **sort** | **string**| The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with `-` to sort in descending order. | [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] + **createdBefore** | **\DateTime**| Only return events created before this date | [optional] + **createdAfter** | **\DateTime**| Only return events created after this date | [optional] **coupon** | **string**| Filter by sessions with this coupon. Must be exact match. | [optional] **referral** | **string**| Filter by sessions with this referral. Must be exact match. | [optional] **integrationId** | **string**| Filter by sessions with this integrationId. Must be exact match. | [optional] - **customerId** | **string**| Filter by integration ID of the customer for the session | [optional] ### Return type @@ -4066,6 +4077,67 @@ This endpoint does not need any parameter. [[Back to README]](../../README.md) +## getLoyaltyStatistics + +> \TalonOne\Client\Model\LoyaltyStatistics getLoyaltyStatistics($programID) + +Get loyalty program statistics by loyalty program ID + +### Example + +```php +setApiKey('Authorization', 'YOUR_API_KEY'); +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +// $config = TalonOne\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer'); + + +$apiInstance = new TalonOne\Client\Api\ManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$programID = 'programID_example'; // string | + +try { + $result = $apiInstance->getLoyaltyStatistics($programID); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ManagementApi->getLoyaltyStatistics: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **programID** | **string**| | + +### Return type + +[**\TalonOne\Client\Model\LoyaltyStatistics**](../Model/LoyaltyStatistics.md) + +### Authorization + +[manager_auth](../../README.md#manager_auth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../../README.md#documentation-for-models) +[[Back to README]](../../README.md) + + ## getReferrals > \TalonOne\Client\Model\InlineResponse2006 getReferrals($applicationId, $campaignId, $pageSize, $skip, $sort, $code, $createdBefore, $createdAfter, $valid, $usable, $advocate) diff --git a/docs/Model/AccountAnalytics.md b/docs/Model/AccountAnalytics.md index 98339ca2..d37655cb 100644 --- a/docs/Model/AccountAnalytics.md +++ b/docs/Model/AccountAnalytics.md @@ -4,23 +4,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**applications** | **int** | Total Number of Applications inside the account | -**activeCampaigns** | **int** | Total Number of Active Applications inside the account | -**campaigns** | **int** | Total Number of campaigns inside the account | -**coupons** | **int** | Total Number of coupons inside the account | -**activeCoupons** | **int** | Total Number of active coupons inside the account | -**expiredCoupons** | **int** | Total Number of expired coupons inside the account | -**customAttributes** | **int** | Total Number of custom attributes inside the account | -**referralCodes** | **int** | Total Number of referral codes inside the account | -**activeReferralCodes** | **int** | Total Number of active referral codes inside the account | -**expiredReferralCodes** | **int** | Total Number of expired referral codes inside the account | -**users** | **int** | Total Number of users inside the account | -**roles** | **int** | Total Number of roles inside the account | -**webhooks** | **int** | Total Number of webhooks inside the account | -**loyaltyPrograms** | **int** | Total Number of loyalty programs inside the account | -**activeRules** | **int** | Total Number of active rules in the account | -**sandboxApplications** | **int** | Total Number of sandbox applications in the account | -**liveApplications** | **int** | Total Number of live applications in the account | +**applications** | **int** | Total number of applications in the account | +**liveApplications** | **int** | Total number of live applications in the account | +**sandboxApplications** | **int** | Total number of sandbox applications in the account | +**campaigns** | **int** | Total number of campaigns in the account | +**activeCampaigns** | **int** | Total number of active campaigns in the account | +**liveActiveCampaigns** | **int** | Total number of active campaigns in live applications in the account | +**coupons** | **int** | Total number of coupons in the account | +**activeCoupons** | **int** | Total number of active coupons in the account | +**expiredCoupons** | **int** | Total number of expired coupons in the account | +**referralCodes** | **int** | Total number of referral codes in the account | +**activeReferralCodes** | **int** | Total number of active referral codes in the account | +**expiredReferralCodes** | **int** | Total number of expired referral codes in the account | +**activeRules** | **int** | Total number of active rules in the account | +**users** | **int** | Total number of users in the account | +**roles** | **int** | Total number of roles in the account | +**customAttributes** | **int** | Total number of custom attributes in the account | +**webhooks** | **int** | Total number of webhooks in the account | +**loyaltyPrograms** | **int** | Total number of loyalty programs in the account | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/AccountLimits.md b/docs/Model/AccountLimits.md index cf651eec..868e8d66 100644 --- a/docs/Model/AccountLimits.md +++ b/docs/Model/AccountLimits.md @@ -4,18 +4,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**liveApplications** | **int** | Total Number of allowed live applications in the account | -**sandboxApplications** | **int** | Total Number of allowed sandbox applications in the account | -**activeCampaigns** | **int** | Total Number of allowed active campaigns in the account | -**coupons** | **int** | Total Number of allowed coupons in the account | -**referralCodes** | **int** | Total Number of allowed referral codes in the account | -**liveLoyaltyPrograms** | **int** | Total Number of allowed live loyalty programs in the account | -**sandboxLoyaltyPrograms** | **int** | Total Number of allowed sandbox loyalty programs in the account | -**webhooks** | **int** | Total Number of allowed webhooks in the account | -**users** | **int** | Total Number of allowed users in the account | -**apiVolume** | **int** | Total allowed api volume | -**activeRules** | **int** | Total allowed active rulesets | [optional] -**promotionTypes** | **string[]** | array of rulesets where webhook is used | +**liveApplications** | **int** | Total number of allowed live applications in the account | +**sandboxApplications** | **int** | Total number of allowed sandbox applications in the account | +**activeCampaigns** | **int** | Total number of allowed active campaigns in live applications in the account | +**coupons** | **int** | Total number of allowed coupons in the account | +**referralCodes** | **int** | Total number of allowed referral codes in the account | +**activeRules** | **int** | Total number of allowed active rulesets in the account | +**liveLoyaltyPrograms** | **int** | Total number of allowed live loyalty programs in the account | +**sandboxLoyaltyPrograms** | **int** | Total number of allowed sandbox loyalty programs in the account | +**webhooks** | **int** | Total number of allowed webhooks in the account | +**users** | **int** | Total number of allowed users in the account | +**apiVolume** | **int** | Allowed volume of API requests to the account | +**promotionTypes** | **string[]** | Array of promotion types that are employed in the account | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/Application.md b/docs/Model/Application.md index 48c6a18a..8afce148 100644 --- a/docs/Model/Application.md +++ b/docs/Model/Application.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **campaignPriority** | **string** | Default priority for campaigns created in this application, can be one of (universal, stackable, exclusive). If no value is provided, this is set to \"universal\" | [optional] **exclusiveCampaignsStrategy** | **string** | The strategy used when choosing exclusive campaigns for evaluation, can be one of (listOrder, lowestDiscount, highestDiscount). If no value is provided, this is set to \"listOrder\" | [optional] **enableCascadingDiscounts** | **bool** | Flag indicating if discounts should cascade for this application | [optional] +**enableFlattenedCartItems** | **bool** | Flag indicating if cart items of quantity larger than one should be separated into different items of quantity one | [optional] **attributesSettings** | [**\TalonOne\Client\Model\AttributesSettings**](AttributesSettings.md) | | [optional] **sandbox** | **bool** | Flag indicating if this is a live or sandbox application | [optional] **loyaltyPrograms** | [**\TalonOne\Client\Model\LoyaltyProgram[]**](LoyaltyProgram.md) | An array containing all the loyalty programs to which this application is subscribed | diff --git a/docs/Model/ApplicationAPIKey.md b/docs/Model/ApplicationAPIKey.md index 8b00cc8f..12d6f2cc 100644 --- a/docs/Model/ApplicationAPIKey.md +++ b/docs/Model/ApplicationAPIKey.md @@ -4,13 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**title** | **string** | Title for API Key | +**expires** | [**\DateTime**](\DateTime.md) | The date the API key expired | +**platform** | **string** | Platform the API key is valid for. | [optional] **id** | **int** | ID of the API Key | **createdBy** | **int** | ID of user who created | -**title** | **string** | Title for API Key | **accountID** | **int** | ID of account the key is used for | **applicationID** | **int** | ID of application the key is used for | **created** | [**\DateTime**](\DateTime.md) | The date the API key was created | -**expires** | [**\DateTime**](\DateTime.md) | The date the API key expired | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ApplicationCustomer.md b/docs/Model/ApplicationCustomer.md index 23b8b77b..ce970430 100644 --- a/docs/Model/ApplicationCustomer.md +++ b/docs/Model/ApplicationCustomer.md @@ -6,12 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Unique ID for this entity. | **created** | [**\DateTime**](\DateTime.md) | The exact moment this entity was created. The exact moment this entity was created. The exact moment this entity was created. | -**integrationId** | **string** | The ID used for this entity in the application system. The ID used for this entity in the application system. | +**integrationId** | **string** | The integration ID for this entity sent to and used in the Talon.One system. The integration ID for this entity sent to and used in the Talon.One system. | **attributes** | [**object**](.md) | Arbitrary properties associated with this item | **accountId** | **int** | The ID of the Talon.One account that owns this profile. The ID of the Talon.One account that owns this profile. | **closedSessions** | **int** | The total amount of closed sessions by a customer. A closed session is a successful purchase. | **totalSales** | **float** | Sum of all purchases made by this customer | **loyaltyMemberships** | [**\TalonOne\Client\Model\LoyaltyMembership[]**](LoyaltyMembership.md) | A list of loyalty programs joined by the customer | [optional] +**audienceMemberships** | [**\TalonOne\Client\Model\AudienceMembership[]**](AudienceMembership.md) | A list of audiences the customer belongs to | [optional] **lastActivity** | [**\DateTime**](\DateTime.md) | Timestamp of the most recent event received from this customer | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ApplicationSession.md b/docs/Model/ApplicationSession.md index 50248212..199fded8 100644 --- a/docs/Model/ApplicationSession.md +++ b/docs/Model/ApplicationSession.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **created** | [**\DateTime**](\DateTime.md) | The exact moment this entity was created. The exact moment this entity was created. | **applicationId** | **int** | The ID of the application that owns this entity. | **profileId** | **int** | The globally unique Talon.One ID of the customer that created this entity. | [optional] -**integrationId** | **string** | The ID used for this entity in the application system. | +**integrationId** | **string** | The integration ID for this entity sent to and used in the Talon.One system. | **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/Model/Audience.md b/docs/Model/Audience.md new file mode 100644 index 00000000..a6f44469 --- /dev/null +++ b/docs/Model/Audience.md @@ -0,0 +1,16 @@ +# # Audience + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accountId** | **int** | The ID of the account that owns this entity. | +**id** | **int** | Unique ID for this entity. | +**created** | [**\DateTime**](\DateTime.md) | The exact moment this entity was created. | +**name** | **string** | The human-friendly display name for this Audience. | +**integration** | **string** | Integration that this audience was created in. | +**integrationId** | **string** | The ID of this Audience in the third-party integration | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/AudienceMembership.md b/docs/Model/AudienceMembership.md new file mode 100644 index 00000000..94eff974 --- /dev/null +++ b/docs/Model/AudienceMembership.md @@ -0,0 +1,12 @@ +# # AudienceMembership + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | The ID of the audience belonging to this entity. | +**name** | **string** | The Name of the audience belonging to this entity. | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/Campaign.md b/docs/Model/Campaign.md index 455eb84f..f6aa9ade 100644 --- a/docs/Model/Campaign.md +++ b/docs/Model/Campaign.md @@ -8,7 +8,6 @@ Name | Type | Description | Notes **created** | [**\DateTime**](\DateTime.md) | The exact moment this entity was created. | **applicationId** | **int** | The ID of the application that owns this entity. | **userId** | **int** | The ID of the account that owns this entity. | -**campaignGroups** | **int[]** | The IDs of the campaign groups that own this entity. | [optional] **name** | **string** | A friendly name for this campaign. | **description** | **string** | A detailed description of the campaign. | **startTime** | [**\DateTime**](\DateTime.md) | Datetime when the campaign will become active. | [optional] @@ -21,6 +20,7 @@ Name | Type | Description | Notes **couponSettings** | [**\TalonOne\Client\Model\CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **referralSettings** | [**\TalonOne\Client\Model\CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**\TalonOne\Client\Model\LimitConfig[]**](LimitConfig.md) | The set of limits that will operate for this campaign | +**campaignGroups** | **int[]** | The IDs of the campaign groups that own this entity. | [optional] **couponRedemptionCount** | **int** | Number of coupons redeemed in the campaign. | [optional] **referralRedemptionCount** | **int** | Number of referral codes redeemed in the campaign. | [optional] **discountCount** | **int** | Total amount of discounts redeemed in the campaign. | [optional] diff --git a/docs/Model/CampaignAnalytics.md b/docs/Model/CampaignAnalytics.md index 319c6ed0..8c7dd581 100644 --- a/docs/Model/CampaignAnalytics.md +++ b/docs/Model/CampaignAnalytics.md @@ -25,6 +25,10 @@ Name | Type | Description | Notes **totalCouponsCreated** | **int** | Number of coupons created in the campaign by the rule engine since it began. | **referralsCreated** | **int** | Number of referrals created in the campaign by the rule engine. | **totalReferralsCreated** | **int** | Number of referrals created in the campaign by the rule engine since it began. | +**addedLoyaltyPoints** | **float** | Number of added loyalty points in the campaign in a specific interval. | +**totalAddedLoyaltyPoints** | **float** | Number of added loyalty points in the campaign since it began. | +**deductedLoyaltyPoints** | **float** | Number of deducted loyalty points in the campaign in a specific interval. | +**totalDeductedLoyaltyPoints** | **float** | Number of deducted loyalty points in the campaign since it began. | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/CampaignCopy.md b/docs/Model/CampaignCopy.md index ce34b4be..936aac45 100644 --- a/docs/Model/CampaignCopy.md +++ b/docs/Model/CampaignCopy.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | Name of the copied campaign (Defaults to \"Copy of original campaign name\") | [optional] -**applicationIds** | **string[]** | Application IDs of the applications to which a campaign should be copied to | +**applicationIds** | **int[]** | Application IDs of the applications to which a campaign should be copied to | **description** | **string** | A detailed description of the campaign. | [optional] **startTime** | [**\DateTime**](\DateTime.md) | Datetime when the campaign will become active. | [optional] **endTime** | [**\DateTime**](\DateTime.md) | Datetime when the campaign will become in-active. | [optional] diff --git a/docs/Model/CreateApplicationAPIKey.md b/docs/Model/CreateApplicationAPIKey.md index 164e6f45..ef128896 100644 --- a/docs/Model/CreateApplicationAPIKey.md +++ b/docs/Model/CreateApplicationAPIKey.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **title** | **string** | Title for API Key | **expires** | [**\DateTime**](\DateTime.md) | The date the API key expired | +**platform** | **string** | Platform the API key is valid for. | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/CustomerActivityReport.md b/docs/Model/CustomerActivityReport.md index 6deccb4b..b34f130c 100644 --- a/docs/Model/CustomerActivityReport.md +++ b/docs/Model/CustomerActivityReport.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**integrationId** | **string** | The ID used for this entity in the application system. | +**integrationId** | **string** | The integration ID for this entity sent to and used in the Talon.One system. | **created** | [**\DateTime**](\DateTime.md) | The exact moment this entity was created. | **name** | **string** | The name for this customer profile. | **customerId** | **int** | The internal Talon.One ID of the customer. | diff --git a/docs/Model/CustomerInventory.md b/docs/Model/CustomerInventory.md index cd3c9a3b..a1198057 100644 --- a/docs/Model/CustomerInventory.md +++ b/docs/Model/CustomerInventory.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **profile** | [**\TalonOne\Client\Model\CustomerProfile**](CustomerProfile.md) | | [optional] +**loyalty** | [**\TalonOne\Client\Model\Loyalty**](Loyalty.md) | | [optional] **referrals** | [**\TalonOne\Client\Model\Referral[]**](Referral.md) | | [optional] **coupons** | [**\TalonOne\Client\Model\Coupon[]**](Coupon.md) | | [optional] diff --git a/docs/Model/CustomerProfile.md b/docs/Model/CustomerProfile.md index 24b7b6d1..0a7cf55b 100644 --- a/docs/Model/CustomerProfile.md +++ b/docs/Model/CustomerProfile.md @@ -4,13 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**integrationId** | **string** | The ID used for this entity in the application system. | +**integrationId** | **string** | The integration ID for this entity sent to and used in the Talon.One system. | **created** | [**\DateTime**](\DateTime.md) | The exact moment this entity was created. | **attributes** | [**object**](.md) | Arbitrary properties associated with this item | **accountId** | **int** | The ID of the Talon.One account that owns this profile. | **closedSessions** | **int** | The total amount of closed sessions by a customer. A closed session is a successful purchase. | **totalSales** | **float** | Sum of all purchases made by this customer | **loyaltyMemberships** | [**\TalonOne\Client\Model\LoyaltyMembership[]**](LoyaltyMembership.md) | A list of loyalty programs joined by the customer | [optional] +**audienceMemberships** | [**\TalonOne\Client\Model\AudienceMembership[]**](AudienceMembership.md) | A list of audiences the customer belongs to | [optional] **lastActivity** | [**\DateTime**](\DateTime.md) | Timestamp of the most recent event received from this customer | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/CustomerProfileAudienceRequest.md b/docs/Model/CustomerProfileAudienceRequest.md new file mode 100644 index 00000000..5024e6b5 --- /dev/null +++ b/docs/Model/CustomerProfileAudienceRequest.md @@ -0,0 +1,11 @@ +# # CustomerProfileAudienceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**\TalonOne\Client\Model\CustomerProfileAudienceRequestItem[]**](CustomerProfileAudienceRequestItem.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/CustomerProfileAudienceRequestItem.md b/docs/Model/CustomerProfileAudienceRequestItem.md new file mode 100644 index 00000000..aa81050f --- /dev/null +++ b/docs/Model/CustomerProfileAudienceRequestItem.md @@ -0,0 +1,13 @@ +# # CustomerProfileAudienceRequestItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **string** | | +**profileIntegrationId** | **string** | | +**audienceId** | **int** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/CustomerProfileIntegrationRequestV2.md b/docs/Model/CustomerProfileIntegrationRequestV2.md new file mode 100644 index 00000000..e5cfe17b --- /dev/null +++ b/docs/Model/CustomerProfileIntegrationRequestV2.md @@ -0,0 +1,12 @@ +# # CustomerProfileIntegrationRequestV2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**object**](.md) | Arbitrary properties associated with this item | [optional] +**responseContent** | **string[]** | Optional list of requested information to be present on the response related to the customer profile update. Currently supported: \"customerProfile\", \"triggeredCampaigns\", \"loyalty\" and \"event\". | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/CustomerSession.md b/docs/Model/CustomerSession.md index e94513b6..70a3aa33 100644 --- a/docs/Model/CustomerSession.md +++ b/docs/Model/CustomerSession.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**integrationId** | **string** | The ID used for this entity in the application system. | +**integrationId** | **string** | The integration ID for this entity sent to and used in the Talon.One system. | **created** | [**\DateTime**](\DateTime.md) | The exact moment this entity was created. | **applicationId** | **int** | The ID of the application that owns this entity. | **profileId** | **string** | ID of the customers profile as used within this Talon.One account. May be omitted or set to the empty string if the customer does not yet have a known profile ID. | diff --git a/docs/Model/CustomerSessionV2.md b/docs/Model/CustomerSessionV2.md index 09dfd9c8..f4602b1b 100644 --- a/docs/Model/CustomerSessionV2.md +++ b/docs/Model/CustomerSessionV2.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**integrationId** | **string** | The ID used for this entity in the application system. | +**integrationId** | **string** | The integration ID for this entity sent to and used in the Talon.One system. | **created** | [**\DateTime**](\DateTime.md) | The exact moment this entity was created. | **applicationId** | **int** | The ID of the application that owns this entity. | **profileId** | **string** | ID of the customers profile as used within this Talon.One account. May be omitted or set to the empty string if the customer does not yet have a known profile ID. | diff --git a/docs/Model/InlineResponse20012.md b/docs/Model/InlineResponse20012.md index 307c598e..8c46e45c 100644 --- a/docs/Model/InlineResponse20012.md +++ b/docs/Model/InlineResponse20012.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**totalResultSize** | **int** | | +**totalResultSize** | **int** | | [optional] +**hasMore** | **bool** | | [optional] **data** | [**\TalonOne\Client\Model\ApplicationCustomer[]**](ApplicationCustomer.md) | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/IntegrationEntity.md b/docs/Model/IntegrationEntity.md index a456313c..d0076a30 100644 --- a/docs/Model/IntegrationEntity.md +++ b/docs/Model/IntegrationEntity.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**integrationId** | **string** | The ID used for this entity in the application system. | +**integrationId** | **string** | The integration ID for this entity sent to and used in the Talon.One system. | **created** | [**\DateTime**](\DateTime.md) | The exact moment this entity was created. | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoyaltyStatistics.md b/docs/Model/LoyaltyStatistics.md new file mode 100644 index 00000000..bb946af6 --- /dev/null +++ b/docs/Model/LoyaltyStatistics.md @@ -0,0 +1,14 @@ +# # LoyaltyStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**totalActivePoints** | **float** | Total of active points for this loyalty program | +**totalPendingPoints** | **float** | Total of pending points for this loyalty program | +**totalSpentPoints** | **float** | Total of spent points for this loyalty program | +**totalExpiredPoints** | **float** | Total of expired points for this loyalty program | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/LoyaltySubLedger.md b/docs/Model/LoyaltySubLedger.md index b4577687..bad2de9b 100644 --- a/docs/Model/LoyaltySubLedger.md +++ b/docs/Model/LoyaltySubLedger.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**total** | **float** | ⚠️ Deprecated: Please use 'totalActivePoints' property instead. Current Balance of Loyalty Program's ledger. | -**totalActivePoints** | **float** | Current Balance of Loyalty Program's ledger. | -**totalPendingPoints** | **float** | | -**totalSpentPoints** | **float** | | -**totalExpiredPoints** | **float** | | +**total** | **float** | ⚠️ Deprecated: Please use 'totalActivePoints' property instead. Total amount of currently active and available points in the customer's balance | +**totalActivePoints** | **float** | Total amount of currently active and available points in the customer's balance | +**totalPendingPoints** | **float** | Total amount of pending points, which are not active yet but will become active in the future | +**totalSpentPoints** | **float** | Total amount of points already spent by this customer | +**totalExpiredPoints** | **float** | Total amount of points, that expired without ever being spent | **transactions** | [**\TalonOne\Client\Model\LoyaltyLedgerEntry[]**](LoyaltyLedgerEntry.md) | List of all events that have happened such as additions, subtractions and expiries | [optional] **expiringPoints** | [**\TalonOne\Client\Model\LoyaltyLedgerEntry[]**](LoyaltyLedgerEntry.md) | List of all points that will expire | [optional] **activePoints** | [**\TalonOne\Client\Model\LoyaltyLedgerEntry[]**](LoyaltyLedgerEntry.md) | List of all currently active points | [optional] diff --git a/docs/Model/MultipleCustomerProfileIntegrationRequest.md b/docs/Model/MultipleCustomerProfileIntegrationRequest.md new file mode 100644 index 00000000..4603f748 --- /dev/null +++ b/docs/Model/MultipleCustomerProfileIntegrationRequest.md @@ -0,0 +1,11 @@ +# # MultipleCustomerProfileIntegrationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customerProfiles** | [**\TalonOne\Client\Model\MultipleCustomerProfileIntegrationRequestItem[]**](MultipleCustomerProfileIntegrationRequestItem.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MultipleCustomerProfileIntegrationRequestItem.md b/docs/Model/MultipleCustomerProfileIntegrationRequestItem.md new file mode 100644 index 00000000..72c216c6 --- /dev/null +++ b/docs/Model/MultipleCustomerProfileIntegrationRequestItem.md @@ -0,0 +1,12 @@ +# # MultipleCustomerProfileIntegrationRequestItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**object**](.md) | Arbitrary properties associated with this item | [optional] +**integrationId** | **string** | The custom identifier for this profile, must be unique within the account. | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MultipleCustomerProfileIntegrationResponseV2.md b/docs/Model/MultipleCustomerProfileIntegrationResponseV2.md new file mode 100644 index 00000000..0fb581b3 --- /dev/null +++ b/docs/Model/MultipleCustomerProfileIntegrationResponseV2.md @@ -0,0 +1,11 @@ +# # MultipleCustomerProfileIntegrationResponseV2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**integrationStates** | [**\TalonOne\Client\Model\IntegrationStateV2[]**](IntegrationStateV2.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/NewApplication.md b/docs/Model/NewApplication.md index f0b25f1f..c8a2ec5f 100644 --- a/docs/Model/NewApplication.md +++ b/docs/Model/NewApplication.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **campaignPriority** | **string** | Default priority for campaigns created in this application, can be one of (universal, stackable, exclusive). If no value is provided, this is set to \"universal\" | [optional] **exclusiveCampaignsStrategy** | **string** | The strategy used when choosing exclusive campaigns for evaluation, can be one of (listOrder, lowestDiscount, highestDiscount). If no value is provided, this is set to \"listOrder\" | [optional] **enableCascadingDiscounts** | **bool** | Flag indicating if discounts should cascade for this application | [optional] +**enableFlattenedCartItems** | **bool** | Flag indicating if cart items of quantity larger than one should be separated into different items of quantity one | [optional] **attributesSettings** | [**\TalonOne\Client\Model\AttributesSettings**](AttributesSettings.md) | | [optional] **sandbox** | **bool** | Flag indicating if this is a live or sandbox application | [optional] **key** | **string** | Hex key for HMAC-signing API calls as coming from this application (16 hex digits) | [optional] diff --git a/docs/Model/NewApplicationAPIKey.md b/docs/Model/NewApplicationAPIKey.md index 5640f144..6ac11e9f 100644 --- a/docs/Model/NewApplicationAPIKey.md +++ b/docs/Model/NewApplicationAPIKey.md @@ -4,13 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**title** | **string** | Title for API Key | +**expires** | [**\DateTime**](\DateTime.md) | The date the API key expired | +**platform** | **string** | Platform the API key is valid for. | [optional] **id** | **int** | ID of the API Key | **createdBy** | **int** | ID of user who created | -**title** | **string** | Title for API Key | **accountID** | **int** | ID of account the key is used for | **applicationID** | **int** | ID of application the key is used for | **created** | [**\DateTime**](\DateTime.md) | The date the API key was created | -**expires** | [**\DateTime**](\DateTime.md) | The date the API key expired | **key** | **string** | Raw API Key | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/NewAudience.md b/docs/Model/NewAudience.md new file mode 100644 index 00000000..3e1f8756 --- /dev/null +++ b/docs/Model/NewAudience.md @@ -0,0 +1,13 @@ +# # NewAudience + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **string** | The human-friendly display name for this Audience. | +**integration** | **string** | Integration that this audience was created in. | +**integrationId** | **string** | The ID of this Audience in the third-party integration | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/NewCampaign.md b/docs/Model/NewCampaign.md index 95ce72d7..36613d13 100644 --- a/docs/Model/NewCampaign.md +++ b/docs/Model/NewCampaign.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaignGroups** | **int[]** | The IDs of the campaign groups that own this entity. | [optional] **name** | **string** | A friendly name for this campaign. | **description** | **string** | A detailed description of the campaign. | [optional] **startTime** | [**\DateTime**](\DateTime.md) | Datetime when the campaign will become active. | [optional] @@ -17,6 +16,7 @@ Name | Type | Description | Notes **couponSettings** | [**\TalonOne\Client\Model\CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **referralSettings** | [**\TalonOne\Client\Model\CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**\TalonOne\Client\Model\LimitConfig[]**](LimitConfig.md) | The set of limits that will operate for this campaign | +**campaignGroups** | **int[]** | The IDs of the campaign groups that own this entity. | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/Role.md b/docs/Model/Role.md index 9709a91b..44dab381 100644 --- a/docs/Model/Role.md +++ b/docs/Model/Role.md @@ -6,10 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | The ID of the role corresponding to the DB row | **accountID** | **int** | The ID of the Talon.One account that owns this role. | +**campaignGroupID** | **int** | The ID of the Campaign Group this role was created for. | [optional] **name** | **string** | Name of the role | [optional] **description** | **string** | Description of the role | [optional] **members** | **int[]** | A list of user identifiers assigned to this role | [optional] -**acl** | **string** | Role Policy this should be a stringified blob of json | [optional] +**acl** | [**object**](.md) | Role ACL Policy | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/SetDiscountEffectProps.md b/docs/Model/SetDiscountEffectProps.md index ec363516..f23c5fb1 100644 --- a/docs/Model/SetDiscountEffectProps.md +++ b/docs/Model/SetDiscountEffectProps.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name/description of this discount | **value** | **float** | The total monetary value of the discount | +**scope** | **string** | The scope which the discount was applied on, can be one of (cartItems,additionalCosts,sessionTotal) | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/SetDiscountPerItemEffectProps.md b/docs/Model/SetDiscountPerItemEffectProps.md index db2d4a05..5b4a9e7d 100644 --- a/docs/Model/SetDiscountPerItemEffectProps.md +++ b/docs/Model/SetDiscountPerItemEffectProps.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **name** | **string** | The name/description of this discount | **value** | **float** | The total monetary value of the discount | **position** | **float** | The index of the item in the cart items list on which this discount should be applied | +**subPosition** | **float** | The sub-index of the item in an item stack on which this discount should be applied | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/UpdateApplication.md b/docs/Model/UpdateApplication.md index d38a17a7..b4b4497f 100644 --- a/docs/Model/UpdateApplication.md +++ b/docs/Model/UpdateApplication.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **campaignPriority** | **string** | Default priority for campaigns created in this application, can be one of (universal, stackable, exclusive). If no value is provided, this is set to \"universal\" | [optional] **exclusiveCampaignsStrategy** | **string** | The strategy used when choosing exclusive campaigns for evaluation, can be one of (listOrder, lowestDiscount, highestDiscount). If no value is provided, this is set to \"listOrder\" | [optional] **enableCascadingDiscounts** | **bool** | Flag indicating if discounts should cascade for this application | [optional] +**enableFlattenedCartItems** | **bool** | Flag indicating if cart items of quantity larger than one should be separated into different items of quantity one | [optional] **attributesSettings** | [**\TalonOne\Client\Model\AttributesSettings**](AttributesSettings.md) | | [optional] **sandbox** | **bool** | Flag indicating if this is a live or sandbox application | [optional] diff --git a/docs/Model/CustomerProfileUpdate.md b/docs/Model/UpdateAudience.md similarity index 70% rename from docs/Model/CustomerProfileUpdate.md rename to docs/Model/UpdateAudience.md index 59b5bc50..46734a45 100644 --- a/docs/Model/CustomerProfileUpdate.md +++ b/docs/Model/UpdateAudience.md @@ -1,10 +1,10 @@ -# # CustomerProfileUpdate +# # UpdateAudience ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**customerProfile** | [**\TalonOne\Client\Model\CustomerProfile**](CustomerProfile.md) | | +**name** | **string** | The human-friendly display name for this Audience. | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/UpdateCampaign.md b/docs/Model/UpdateCampaign.md index 214b6aca..26d8638d 100644 --- a/docs/Model/UpdateCampaign.md +++ b/docs/Model/UpdateCampaign.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **couponSettings** | [**\TalonOne\Client\Model\CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **referralSettings** | [**\TalonOne\Client\Model\CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional] **limits** | [**\TalonOne\Client\Model\LimitConfig[]**](LimitConfig.md) | The set of limits that will operate for this campaign | +**campaignGroups** | **int[]** | The IDs of the campaign groups that own this entity. | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/User.md b/docs/Model/User.md index 3c70b8f8..c31ca8e1 100644 --- a/docs/Model/User.md +++ b/docs/Model/User.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **inviteToken** | **string** | Invite token, empty if the user as already accepted their invite. | **state** | **string** | Current user state. | **name** | **string** | Full name | -**policy** | **string** | A blob of ACL JSON | +**policy** | [**object**](.md) | User ACL Policy | **latestFeedTimestamp** | [**\DateTime**](\DateTime.md) | Latest timestamp the user has been notified for feed. | [optional] **roles** | **int[]** | Contains a list of all roles the user is a member of | [optional] **applicationNotificationSubscriptions** | [**object**](.md) | | [optional] diff --git a/lib/Api/IntegrationApi.php b/lib/Api/IntegrationApi.php index d7e7973d..6413c341 100644 --- a/lib/Api/IntegrationApi.php +++ b/lib/Api/IntegrationApi.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -325,6 +325,7 @@ protected function createCouponReservationRequest($couponValue, $body) $multipart = false; + // path params if ($couponValue !== null) { $resourcePath = str_replace( @@ -611,6 +612,7 @@ protected function createReferralRequest($body) + // body params $_tempBody = null; if (isset($body)) { @@ -850,6 +852,7 @@ protected function deleteCouponReservationRequest($couponValue, $body) $multipart = false; + // path params if ($couponValue !== null) { $resourcePath = str_replace( @@ -1087,6 +1090,7 @@ protected function deleteCustomerDataRequest($integrationId) $multipart = false; + // path params if ($integrationId !== null) { $resourcePath = str_replace( @@ -1179,14 +1183,15 @@ protected function deleteCustomerDataRequest($integrationId) * @param bool $profile optional flag to decide if you would like customer profile information in the response (optional) * @param bool $referrals optional flag to decide if you would like referral information in the response (optional) * @param bool $coupons optional flag to decide if you would like coupon information in the response (optional) + * @param bool $loyalty optional flag to decide if you would like loyalty information in the response (optional) * * @throws \TalonOne\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \TalonOne\Client\Model\CustomerInventory */ - public function getCustomerInventory($integrationId, $profile = null, $referrals = null, $coupons = null) + public function getCustomerInventory($integrationId, $profile = null, $referrals = null, $coupons = null, $loyalty = null) { - list($response) = $this->getCustomerInventoryWithHttpInfo($integrationId, $profile, $referrals, $coupons); + list($response) = $this->getCustomerInventoryWithHttpInfo($integrationId, $profile, $referrals, $coupons, $loyalty); return $response; } @@ -1199,14 +1204,15 @@ public function getCustomerInventory($integrationId, $profile = null, $referrals * @param bool $profile optional flag to decide if you would like customer profile information in the response (optional) * @param bool $referrals optional flag to decide if you would like referral information in the response (optional) * @param bool $coupons optional flag to decide if you would like coupon information in the response (optional) + * @param bool $loyalty optional flag to decide if you would like loyalty information in the response (optional) * * @throws \TalonOne\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \TalonOne\Client\Model\CustomerInventory, HTTP status code, HTTP response headers (array of strings) */ - public function getCustomerInventoryWithHttpInfo($integrationId, $profile = null, $referrals = null, $coupons = null) + public function getCustomerInventoryWithHttpInfo($integrationId, $profile = null, $referrals = null, $coupons = null, $loyalty = null) { - $request = $this->getCustomerInventoryRequest($integrationId, $profile, $referrals, $coupons); + $request = $this->getCustomerInventoryRequest($integrationId, $profile, $referrals, $coupons, $loyalty); try { $options = $this->createHttpClientOption(); @@ -1290,13 +1296,14 @@ public function getCustomerInventoryWithHttpInfo($integrationId, $profile = null * @param bool $profile optional flag to decide if you would like customer profile information in the response (optional) * @param bool $referrals optional flag to decide if you would like referral information in the response (optional) * @param bool $coupons optional flag to decide if you would like coupon information in the response (optional) + * @param bool $loyalty optional flag to decide if you would like loyalty information in the response (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getCustomerInventoryAsync($integrationId, $profile = null, $referrals = null, $coupons = null) + public function getCustomerInventoryAsync($integrationId, $profile = null, $referrals = null, $coupons = null, $loyalty = null) { - return $this->getCustomerInventoryAsyncWithHttpInfo($integrationId, $profile, $referrals, $coupons) + return $this->getCustomerInventoryAsyncWithHttpInfo($integrationId, $profile, $referrals, $coupons, $loyalty) ->then( function ($response) { return $response[0]; @@ -1313,14 +1320,15 @@ function ($response) { * @param bool $profile optional flag to decide if you would like customer profile information in the response (optional) * @param bool $referrals optional flag to decide if you would like referral information in the response (optional) * @param bool $coupons optional flag to decide if you would like coupon information in the response (optional) + * @param bool $loyalty optional flag to decide if you would like loyalty information in the response (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getCustomerInventoryAsyncWithHttpInfo($integrationId, $profile = null, $referrals = null, $coupons = null) + public function getCustomerInventoryAsyncWithHttpInfo($integrationId, $profile = null, $referrals = null, $coupons = null, $loyalty = null) { $returnType = '\TalonOne\Client\Model\CustomerInventory'; - $request = $this->getCustomerInventoryRequest($integrationId, $profile, $referrals, $coupons); + $request = $this->getCustomerInventoryRequest($integrationId, $profile, $referrals, $coupons, $loyalty); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1363,11 +1371,12 @@ function ($exception) { * @param bool $profile optional flag to decide if you would like customer profile information in the response (optional) * @param bool $referrals optional flag to decide if you would like referral information in the response (optional) * @param bool $coupons optional flag to decide if you would like coupon information in the response (optional) + * @param bool $loyalty optional flag to decide if you would like loyalty information in the response (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getCustomerInventoryRequest($integrationId, $profile = null, $referrals = null, $coupons = null) + protected function getCustomerInventoryRequest($integrationId, $profile = null, $referrals = null, $coupons = null, $loyalty = null) { // verify the required parameter 'integrationId' is set if ($integrationId === null || (is_array($integrationId) && count($integrationId) === 0)) { @@ -1384,18 +1393,35 @@ protected function getCustomerInventoryRequest($integrationId, $profile = null, $multipart = false; // query params + if (is_array($profile)) { + $profile = ObjectSerializer::serializeCollection($profile, '', true); + } if ($profile !== null) { - $queryParams['profile'] = ObjectSerializer::toQueryValue($profile); + $queryParams['profile'] = $profile; } // query params + if (is_array($referrals)) { + $referrals = ObjectSerializer::serializeCollection($referrals, '', true); + } if ($referrals !== null) { - $queryParams['referrals'] = ObjectSerializer::toQueryValue($referrals); + $queryParams['referrals'] = $referrals; } // query params + if (is_array($coupons)) { + $coupons = ObjectSerializer::serializeCollection($coupons, '', true); + } if ($coupons !== null) { - $queryParams['coupons'] = ObjectSerializer::toQueryValue($coupons); + $queryParams['coupons'] = $coupons; + } + // query params + if (is_array($loyalty)) { + $loyalty = ObjectSerializer::serializeCollection($loyalty, '', true); + } + if ($loyalty !== null) { + $queryParams['loyalty'] = $loyalty; } + // path params if ($integrationId !== null) { $resourcePath = str_replace( @@ -1678,6 +1704,7 @@ protected function getReservedCustomersRequest($couponValue) $multipart = false; + // path params if ($couponValue !== null) { $resourcePath = str_replace( @@ -1965,11 +1992,15 @@ protected function trackEventRequest($body, $dry = null) $multipart = false; // query params + if (is_array($dry)) { + $dry = ObjectSerializer::serializeCollection($dry, '', true); + } if ($dry !== null) { - $queryParams['dry'] = ObjectSerializer::toQueryValue($dry); + $queryParams['dry'] = $dry; } + // body params $_tempBody = null; if (isset($body)) { @@ -2262,10 +2293,14 @@ protected function updateCustomerProfileRequest($integrationId, $body, $dry = nu $multipart = false; // query params + if (is_array($dry)) { + $dry = ObjectSerializer::serializeCollection($dry, '', true); + } if ($dry !== null) { - $queryParams['dry'] = ObjectSerializer::toQueryValue($dry); + $queryParams['dry'] = $dry; } + // path params if ($integrationId !== null) { $resourcePath = str_replace( @@ -2352,21 +2387,248 @@ protected function updateCustomerProfileRequest($integrationId, $body, $dry = nu ); } + /** + * Operation updateCustomerProfileAudiences + * + * Update a Customer Profile Audiences + * + * @param \TalonOne\Client\Model\CustomerProfileAudienceRequest $body body (required) + * + * @throws \TalonOne\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function updateCustomerProfileAudiences($body) + { + $this->updateCustomerProfileAudiencesWithHttpInfo($body); + } + + /** + * Operation updateCustomerProfileAudiencesWithHttpInfo + * + * Update a Customer Profile Audiences + * + * @param \TalonOne\Client\Model\CustomerProfileAudienceRequest $body (required) + * + * @throws \TalonOne\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function updateCustomerProfileAudiencesWithHttpInfo($body) + { + $request = $this->updateCustomerProfileAudiencesRequest($body); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + } + throw $e; + } + } + + /** + * Operation updateCustomerProfileAudiencesAsync + * + * Update a Customer Profile Audiences + * + * @param \TalonOne\Client\Model\CustomerProfileAudienceRequest $body (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateCustomerProfileAudiencesAsync($body) + { + return $this->updateCustomerProfileAudiencesAsyncWithHttpInfo($body) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation updateCustomerProfileAudiencesAsyncWithHttpInfo + * + * Update a Customer Profile Audiences + * + * @param \TalonOne\Client\Model\CustomerProfileAudienceRequest $body (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateCustomerProfileAudiencesAsyncWithHttpInfo($body) + { + $returnType = ''; + $request = $this->updateCustomerProfileAudiencesRequest($body); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'updateCustomerProfileAudiences' + * + * @param \TalonOne\Client\Model\CustomerProfileAudienceRequest $body (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function updateCustomerProfileAudiencesRequest($body) + { + // verify the required parameter 'body' is set + if ($body === null || (is_array($body) && count($body) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $body when calling updateCustomerProfileAudiences' + ); + } + + $resourcePath = '/v2/customer_audiences'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + + // body params + $_tempBody = null; + if (isset($body)) { + $_tempBody = $body; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + [] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + [], + ['application/json'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($_tempBody)); + } else { + $httpBody = $_tempBody; + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('Authorization'); + if ($apiKey !== null) { + $headers['Authorization'] = $apiKey; + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + /** * Operation updateCustomerProfileV2 * * Update a Customer Profile * - * @param string $customerProfileId The custom identifier for this profile, must be unique within the account. (required) - * @param \TalonOne\Client\Model\NewCustomerProfile $body body (required) + * @param string $integrationId The custom identifier for this profile, must be unique within the account. (required) + * @param \TalonOne\Client\Model\CustomerProfileIntegrationRequestV2 $body body (required) + * @param bool $runRuleEngine Flag to indicate whether to run the rule engine (Defaults to false). (optional) + * @param bool $dry Flag to indicate whether to skip persisting the changes or not (Will not persist if set to 'true'. Only used when 'runRuleEngine' is set to 'true'). (optional) * * @throws \TalonOne\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \TalonOne\Client\Model\CustomerProfileUpdate + * @return \TalonOne\Client\Model\IntegrationStateV2 */ - public function updateCustomerProfileV2($customerProfileId, $body) + public function updateCustomerProfileV2($integrationId, $body, $runRuleEngine = null, $dry = null) { - list($response) = $this->updateCustomerProfileV2WithHttpInfo($customerProfileId, $body); + list($response) = $this->updateCustomerProfileV2WithHttpInfo($integrationId, $body, $runRuleEngine, $dry); return $response; } @@ -2375,16 +2637,18 @@ public function updateCustomerProfileV2($customerProfileId, $body) * * Update a Customer Profile * - * @param string $customerProfileId The custom identifier for this profile, must be unique within the account. (required) - * @param \TalonOne\Client\Model\NewCustomerProfile $body (required) + * @param string $integrationId The custom identifier for this profile, must be unique within the account. (required) + * @param \TalonOne\Client\Model\CustomerProfileIntegrationRequestV2 $body (required) + * @param bool $runRuleEngine Flag to indicate whether to run the rule engine (Defaults to false). (optional) + * @param bool $dry Flag to indicate whether to skip persisting the changes or not (Will not persist if set to 'true'. Only used when 'runRuleEngine' is set to 'true'). (optional) * * @throws \TalonOne\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \TalonOne\Client\Model\CustomerProfileUpdate, HTTP status code, HTTP response headers (array of strings) + * @return array of \TalonOne\Client\Model\IntegrationStateV2, HTTP status code, HTTP response headers (array of strings) */ - public function updateCustomerProfileV2WithHttpInfo($customerProfileId, $body) + public function updateCustomerProfileV2WithHttpInfo($integrationId, $body, $runRuleEngine = null, $dry = null) { - $request = $this->updateCustomerProfileV2Request($customerProfileId, $body); + $request = $this->updateCustomerProfileV2Request($integrationId, $body, $runRuleEngine, $dry); try { $options = $this->createHttpClientOption(); @@ -2417,20 +2681,20 @@ public function updateCustomerProfileV2WithHttpInfo($customerProfileId, $body) $responseBody = $response->getBody(); switch($statusCode) { case 200: - if ('\TalonOne\Client\Model\CustomerProfileUpdate' === '\SplFileObject') { + if ('\TalonOne\Client\Model\IntegrationStateV2' === '\SplFileObject') { $content = $responseBody; //stream goes to serializer } else { $content = (string) $responseBody; } return [ - ObjectSerializer::deserialize($content, '\TalonOne\Client\Model\CustomerProfileUpdate', []), + ObjectSerializer::deserialize($content, '\TalonOne\Client\Model\IntegrationStateV2', []), $response->getStatusCode(), $response->getHeaders() ]; } - $returnType = '\TalonOne\Client\Model\CustomerProfileUpdate'; + $returnType = '\TalonOne\Client\Model\IntegrationStateV2'; $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { $content = $responseBody; //stream goes to serializer @@ -2449,7 +2713,7 @@ public function updateCustomerProfileV2WithHttpInfo($customerProfileId, $body) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\TalonOne\Client\Model\CustomerProfileUpdate', + '\TalonOne\Client\Model\IntegrationStateV2', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -2464,15 +2728,17 @@ public function updateCustomerProfileV2WithHttpInfo($customerProfileId, $body) * * Update a Customer Profile * - * @param string $customerProfileId The custom identifier for this profile, must be unique within the account. (required) - * @param \TalonOne\Client\Model\NewCustomerProfile $body (required) + * @param string $integrationId The custom identifier for this profile, must be unique within the account. (required) + * @param \TalonOne\Client\Model\CustomerProfileIntegrationRequestV2 $body (required) + * @param bool $runRuleEngine Flag to indicate whether to run the rule engine (Defaults to false). (optional) + * @param bool $dry Flag to indicate whether to skip persisting the changes or not (Will not persist if set to 'true'. Only used when 'runRuleEngine' is set to 'true'). (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function updateCustomerProfileV2Async($customerProfileId, $body) + public function updateCustomerProfileV2Async($integrationId, $body, $runRuleEngine = null, $dry = null) { - return $this->updateCustomerProfileV2AsyncWithHttpInfo($customerProfileId, $body) + return $this->updateCustomerProfileV2AsyncWithHttpInfo($integrationId, $body, $runRuleEngine, $dry) ->then( function ($response) { return $response[0]; @@ -2485,16 +2751,18 @@ function ($response) { * * Update a Customer Profile * - * @param string $customerProfileId The custom identifier for this profile, must be unique within the account. (required) - * @param \TalonOne\Client\Model\NewCustomerProfile $body (required) + * @param string $integrationId The custom identifier for this profile, must be unique within the account. (required) + * @param \TalonOne\Client\Model\CustomerProfileIntegrationRequestV2 $body (required) + * @param bool $runRuleEngine Flag to indicate whether to run the rule engine (Defaults to false). (optional) + * @param bool $dry Flag to indicate whether to skip persisting the changes or not (Will not persist if set to 'true'. Only used when 'runRuleEngine' is set to 'true'). (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function updateCustomerProfileV2AsyncWithHttpInfo($customerProfileId, $body) + public function updateCustomerProfileV2AsyncWithHttpInfo($integrationId, $body, $runRuleEngine = null, $dry = null) { - $returnType = '\TalonOne\Client\Model\CustomerProfileUpdate'; - $request = $this->updateCustomerProfileV2Request($customerProfileId, $body); + $returnType = '\TalonOne\Client\Model\IntegrationStateV2'; + $request = $this->updateCustomerProfileV2Request($integrationId, $body, $runRuleEngine, $dry); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2533,18 +2801,20 @@ function ($exception) { /** * Create request for operation 'updateCustomerProfileV2' * - * @param string $customerProfileId The custom identifier for this profile, must be unique within the account. (required) - * @param \TalonOne\Client\Model\NewCustomerProfile $body (required) + * @param string $integrationId The custom identifier for this profile, must be unique within the account. (required) + * @param \TalonOne\Client\Model\CustomerProfileIntegrationRequestV2 $body (required) + * @param bool $runRuleEngine Flag to indicate whether to run the rule engine (Defaults to false). (optional) + * @param bool $dry Flag to indicate whether to skip persisting the changes or not (Will not persist if set to 'true'. Only used when 'runRuleEngine' is set to 'true'). (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function updateCustomerProfileV2Request($customerProfileId, $body) + protected function updateCustomerProfileV2Request($integrationId, $body, $runRuleEngine = null, $dry = null) { - // verify the required parameter 'customerProfileId' is set - if ($customerProfileId === null || (is_array($customerProfileId) && count($customerProfileId) === 0)) { + // verify the required parameter 'integrationId' is set + if ($integrationId === null || (is_array($integrationId) && count($integrationId) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $customerProfileId when calling updateCustomerProfileV2' + 'Missing the required parameter $integrationId when calling updateCustomerProfileV2' ); } // verify the required parameter 'body' is set @@ -2554,19 +2824,34 @@ protected function updateCustomerProfileV2Request($customerProfileId, $body) ); } - $resourcePath = '/v2/customer_profiles/{customerProfileId}'; + $resourcePath = '/v2/customer_profiles/{integrationId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; + // query params + if (is_array($runRuleEngine)) { + $runRuleEngine = ObjectSerializer::serializeCollection($runRuleEngine, '', true); + } + if ($runRuleEngine !== null) { + $queryParams['runRuleEngine'] = $runRuleEngine; + } + // query params + if (is_array($dry)) { + $dry = ObjectSerializer::serializeCollection($dry, '', true); + } + if ($dry !== null) { + $queryParams['dry'] = $dry; + } + // path params - if ($customerProfileId !== null) { + if ($integrationId !== null) { $resourcePath = str_replace( - '{' . 'customerProfileId' . '}', - ObjectSerializer::toPathValue($customerProfileId), + '{' . 'integrationId' . '}', + ObjectSerializer::toPathValue($integrationId), $resourcePath ); } @@ -2643,6 +2928,291 @@ protected function updateCustomerProfileV2Request($customerProfileId, $body) ); } + /** + * Operation updateCustomerProfilesV2 + * + * Update multiple Customer Profiles + * + * @param \TalonOne\Client\Model\MultipleCustomerProfileIntegrationRequest $body body (required) + * @param string $silent If set to 'yes', response will be an empty 204, otherwise a list of the IntegrationStateV2 generated. (optional) + * + * @throws \TalonOne\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \TalonOne\Client\Model\MultipleCustomerProfileIntegrationResponseV2 + */ + public function updateCustomerProfilesV2($body, $silent = null) + { + list($response) = $this->updateCustomerProfilesV2WithHttpInfo($body, $silent); + return $response; + } + + /** + * Operation updateCustomerProfilesV2WithHttpInfo + * + * Update multiple Customer Profiles + * + * @param \TalonOne\Client\Model\MultipleCustomerProfileIntegrationRequest $body (required) + * @param string $silent If set to 'yes', response will be an empty 204, otherwise a list of the IntegrationStateV2 generated. (optional) + * + * @throws \TalonOne\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \TalonOne\Client\Model\MultipleCustomerProfileIntegrationResponseV2, HTTP status code, HTTP response headers (array of strings) + */ + public function updateCustomerProfilesV2WithHttpInfo($body, $silent = null) + { + $request = $this->updateCustomerProfilesV2Request($body, $silent); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + switch($statusCode) { + case 200: + if ('\TalonOne\Client\Model\MultipleCustomerProfileIntegrationResponseV2' === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, '\TalonOne\Client\Model\MultipleCustomerProfileIntegrationResponseV2', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + $returnType = '\TalonOne\Client\Model\MultipleCustomerProfileIntegrationResponseV2'; + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\TalonOne\Client\Model\MultipleCustomerProfileIntegrationResponseV2', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation updateCustomerProfilesV2Async + * + * Update multiple Customer Profiles + * + * @param \TalonOne\Client\Model\MultipleCustomerProfileIntegrationRequest $body (required) + * @param string $silent If set to 'yes', response will be an empty 204, otherwise a list of the IntegrationStateV2 generated. (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateCustomerProfilesV2Async($body, $silent = null) + { + return $this->updateCustomerProfilesV2AsyncWithHttpInfo($body, $silent) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation updateCustomerProfilesV2AsyncWithHttpInfo + * + * Update multiple Customer Profiles + * + * @param \TalonOne\Client\Model\MultipleCustomerProfileIntegrationRequest $body (required) + * @param string $silent If set to 'yes', response will be an empty 204, otherwise a list of the IntegrationStateV2 generated. (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateCustomerProfilesV2AsyncWithHttpInfo($body, $silent = null) + { + $returnType = '\TalonOne\Client\Model\MultipleCustomerProfileIntegrationResponseV2'; + $request = $this->updateCustomerProfilesV2Request($body, $silent); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'updateCustomerProfilesV2' + * + * @param \TalonOne\Client\Model\MultipleCustomerProfileIntegrationRequest $body (required) + * @param string $silent If set to 'yes', response will be an empty 204, otherwise a list of the IntegrationStateV2 generated. (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function updateCustomerProfilesV2Request($body, $silent = null) + { + // verify the required parameter 'body' is set + if ($body === null || (is_array($body) && count($body) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $body when calling updateCustomerProfilesV2' + ); + } + + $resourcePath = '/v2/customer_profiles'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if (is_array($silent)) { + $silent = ObjectSerializer::serializeCollection($silent, '', true); + } + if ($silent !== null) { + $queryParams['silent'] = $silent; + } + + + + // body params + $_tempBody = null; + if (isset($body)) { + $_tempBody = $body; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($_tempBody)); + } else { + $httpBody = $_tempBody; + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('Authorization'); + if ($apiKey !== null) { + $headers['Authorization'] = $apiKey; + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'PUT', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + /** * Operation updateCustomerSession * @@ -2858,10 +3428,14 @@ protected function updateCustomerSessionRequest($customerSessionId, $body, $dry $multipart = false; // query params + if (is_array($dry)) { + $dry = ObjectSerializer::serializeCollection($dry, '', true); + } if ($dry !== null) { - $queryParams['dry'] = ObjectSerializer::toQueryValue($dry); + $queryParams['dry'] = $dry; } + // path params if ($customerSessionId !== null) { $resourcePath = str_replace( @@ -3163,10 +3737,14 @@ protected function updateCustomerSessionV2Request($customerSessionId, $body, $dr $multipart = false; // query params + if (is_array($dry)) { + $dry = ObjectSerializer::serializeCollection($dry, '', true); + } if ($dry !== null) { - $queryParams['dry'] = ObjectSerializer::toQueryValue($dry); + $queryParams['dry'] = $dry; } + // path params if ($customerSessionId !== null) { $resourcePath = str_replace( diff --git a/lib/Api/ManagementApi.php b/lib/Api/ManagementApi.php index 77bd7d30..cd7281b5 100644 --- a/lib/Api/ManagementApi.php +++ b/lib/Api/ManagementApi.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -288,6 +288,7 @@ protected function addLoyaltyPointsRequest($programID, $integrationID, $body) $multipart = false; + // path params if ($programID !== null) { $resourcePath = str_replace( @@ -598,6 +599,7 @@ protected function copyCampaignToApplicationsRequest($applicationId, $campaignId $multipart = false; + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -887,6 +889,7 @@ protected function createAdditionalCostRequest($body) + // body params $_tempBody = null; if (isset($body)) { @@ -1159,6 +1162,7 @@ protected function createAttributeRequest($body) + // body params $_tempBody = null; if (isset($body)) { @@ -1441,6 +1445,7 @@ protected function createCampaignRequest($applicationId, $body) $multipart = false; + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -1748,10 +1753,14 @@ protected function createCouponsRequest($applicationId, $campaignId, $body, $sil $multipart = false; // query params + if (is_array($silent)) { + $silent = ObjectSerializer::serializeCollection($silent, '', true); + } if ($silent !== null) { - $queryParams['silent'] = ObjectSerializer::toQueryValue($silent); + $queryParams['silent'] = $silent; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -2041,6 +2050,7 @@ protected function createPasswordRecoveryEmailRequest($body) + // body params $_tempBody = null; if (isset($body)) { @@ -2334,6 +2344,7 @@ protected function createRulesetRequest($applicationId, $campaignId, $body) $multipart = false; + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -2623,6 +2634,7 @@ protected function createSessionRequest($body) + // body params $_tempBody = null; if (isset($body)) { @@ -2857,6 +2869,7 @@ protected function deleteCampaignRequest($applicationId, $campaignId) $multipart = false; + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -3116,6 +3129,7 @@ protected function deleteCouponRequest($applicationId, $campaignId, $couponId) $multipart = false; + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -3437,58 +3451,98 @@ protected function deleteCouponsRequest($applicationId, $campaignId, $value = nu $multipart = false; // query params + if (is_array($value)) { + $value = ObjectSerializer::serializeCollection($value, '', true); + } if ($value !== null) { - $queryParams['value'] = ObjectSerializer::toQueryValue($value); + $queryParams['value'] = $value; } // query params + if (is_array($createdBefore)) { + $createdBefore = ObjectSerializer::serializeCollection($createdBefore, '', true); + } if ($createdBefore !== null) { - $queryParams['createdBefore'] = ObjectSerializer::toQueryValue($createdBefore); + $queryParams['createdBefore'] = $createdBefore; } // query params + if (is_array($createdAfter)) { + $createdAfter = ObjectSerializer::serializeCollection($createdAfter, '', true); + } if ($createdAfter !== null) { - $queryParams['createdAfter'] = ObjectSerializer::toQueryValue($createdAfter); + $queryParams['createdAfter'] = $createdAfter; } // query params + if (is_array($startsAfter)) { + $startsAfter = ObjectSerializer::serializeCollection($startsAfter, '', true); + } if ($startsAfter !== null) { - $queryParams['startsAfter'] = ObjectSerializer::toQueryValue($startsAfter); + $queryParams['startsAfter'] = $startsAfter; } // query params + if (is_array($startsBefore)) { + $startsBefore = ObjectSerializer::serializeCollection($startsBefore, '', true); + } if ($startsBefore !== null) { - $queryParams['startsBefore'] = ObjectSerializer::toQueryValue($startsBefore); + $queryParams['startsBefore'] = $startsBefore; } // query params + if (is_array($expiresAfter)) { + $expiresAfter = ObjectSerializer::serializeCollection($expiresAfter, '', true); + } if ($expiresAfter !== null) { - $queryParams['expiresAfter'] = ObjectSerializer::toQueryValue($expiresAfter); + $queryParams['expiresAfter'] = $expiresAfter; } // query params + if (is_array($expiresBefore)) { + $expiresBefore = ObjectSerializer::serializeCollection($expiresBefore, '', true); + } if ($expiresBefore !== null) { - $queryParams['expiresBefore'] = ObjectSerializer::toQueryValue($expiresBefore); + $queryParams['expiresBefore'] = $expiresBefore; } // query params + if (is_array($valid)) { + $valid = ObjectSerializer::serializeCollection($valid, '', true); + } if ($valid !== null) { - $queryParams['valid'] = ObjectSerializer::toQueryValue($valid); + $queryParams['valid'] = $valid; } // query params + if (is_array($batchId)) { + $batchId = ObjectSerializer::serializeCollection($batchId, '', true); + } if ($batchId !== null) { - $queryParams['batchId'] = ObjectSerializer::toQueryValue($batchId); + $queryParams['batchId'] = $batchId; } // query params + if (is_array($usable)) { + $usable = ObjectSerializer::serializeCollection($usable, '', true); + } if ($usable !== null) { - $queryParams['usable'] = ObjectSerializer::toQueryValue($usable); + $queryParams['usable'] = $usable; } // query params + if (is_array($referralId)) { + $referralId = ObjectSerializer::serializeCollection($referralId, '', true); + } if ($referralId !== null) { - $queryParams['referralId'] = ObjectSerializer::toQueryValue($referralId); + $queryParams['referralId'] = $referralId; } // query params + if (is_array($recipientIntegrationId)) { + $recipientIntegrationId = ObjectSerializer::serializeCollection($recipientIntegrationId, '', true); + } if ($recipientIntegrationId !== null) { - $queryParams['recipientIntegrationId'] = ObjectSerializer::toQueryValue($recipientIntegrationId); + $queryParams['recipientIntegrationId'] = $recipientIntegrationId; } // query params + if (is_array($exactMatch)) { + $exactMatch = ObjectSerializer::serializeCollection($exactMatch, '', true); + } if ($exactMatch !== null) { - $queryParams['exactMatch'] = ObjectSerializer::toQueryValue($exactMatch); + $queryParams['exactMatch'] = $exactMatch; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -3748,6 +3802,7 @@ protected function deleteReferralRequest($applicationId, $campaignId, $referralI $multipart = false; + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -4015,6 +4070,7 @@ protected function deleteRulesetRequest($applicationId, $campaignId, $rulesetId) $multipart = false; + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -4360,38 +4416,63 @@ protected function getAccessLogsRequest($applicationId, $rangeStart, $rangeEnd, $multipart = false; // query params + if (is_array($path)) { + $path = ObjectSerializer::serializeCollection($path, '', true); + } if ($path !== null) { - $queryParams['path'] = ObjectSerializer::toQueryValue($path); + $queryParams['path'] = $path; } // query params + if (is_array($method)) { + $method = ObjectSerializer::serializeCollection($method, '', true); + } if ($method !== null) { - $queryParams['method'] = ObjectSerializer::toQueryValue($method); + $queryParams['method'] = $method; } // query params + if (is_array($status)) { + $status = ObjectSerializer::serializeCollection($status, '', true); + } if ($status !== null) { - $queryParams['status'] = ObjectSerializer::toQueryValue($status); + $queryParams['status'] = $status; } // query params + if (is_array($rangeStart)) { + $rangeStart = ObjectSerializer::serializeCollection($rangeStart, '', true); + } if ($rangeStart !== null) { - $queryParams['rangeStart'] = ObjectSerializer::toQueryValue($rangeStart); + $queryParams['rangeStart'] = $rangeStart; } // query params + if (is_array($rangeEnd)) { + $rangeEnd = ObjectSerializer::serializeCollection($rangeEnd, '', true); + } if ($rangeEnd !== null) { - $queryParams['rangeEnd'] = ObjectSerializer::toQueryValue($rangeEnd); + $queryParams['rangeEnd'] = $rangeEnd; } // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -4721,38 +4802,63 @@ protected function getAccessLogsWithoutTotalCountRequest($applicationId, $rangeS $multipart = false; // query params + if (is_array($path)) { + $path = ObjectSerializer::serializeCollection($path, '', true); + } if ($path !== null) { - $queryParams['path'] = ObjectSerializer::toQueryValue($path); + $queryParams['path'] = $path; } // query params + if (is_array($method)) { + $method = ObjectSerializer::serializeCollection($method, '', true); + } if ($method !== null) { - $queryParams['method'] = ObjectSerializer::toQueryValue($method); + $queryParams['method'] = $method; } // query params + if (is_array($status)) { + $status = ObjectSerializer::serializeCollection($status, '', true); + } if ($status !== null) { - $queryParams['status'] = ObjectSerializer::toQueryValue($status); + $queryParams['status'] = $status; } // query params + if (is_array($rangeStart)) { + $rangeStart = ObjectSerializer::serializeCollection($rangeStart, '', true); + } if ($rangeStart !== null) { - $queryParams['rangeStart'] = ObjectSerializer::toQueryValue($rangeStart); + $queryParams['rangeStart'] = $rangeStart; } // query params + if (is_array($rangeEnd)) { + $rangeEnd = ObjectSerializer::serializeCollection($rangeEnd, '', true); + } if ($rangeEnd !== null) { - $queryParams['rangeEnd'] = ObjectSerializer::toQueryValue($rangeEnd); + $queryParams['rangeEnd'] = $rangeEnd; } // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -5030,6 +5136,7 @@ protected function getAccountRequest($accountId) $multipart = false; + // path params if ($accountId !== null) { $resourcePath = str_replace( @@ -5307,6 +5414,7 @@ protected function getAccountAnalyticsRequest($accountId) $multipart = false; + // path params if ($accountId !== null) { $resourcePath = str_replace( @@ -5584,6 +5692,7 @@ protected function getAdditionalCostRequest($additionalCostId) $multipart = false; + // path params if ($additionalCostId !== null) { $resourcePath = str_replace( @@ -5865,19 +5974,29 @@ protected function getAdditionalCostsRequest($pageSize = null, $skip = null, $so $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } + // body params $_tempBody = null; @@ -6187,39 +6306,64 @@ protected function getAllAccessLogsRequest($rangeStart, $rangeEnd, $path = null, $multipart = false; // query params + if (is_array($rangeStart)) { + $rangeStart = ObjectSerializer::serializeCollection($rangeStart, '', true); + } if ($rangeStart !== null) { - $queryParams['rangeStart'] = ObjectSerializer::toQueryValue($rangeStart); + $queryParams['rangeStart'] = $rangeStart; } // query params + if (is_array($rangeEnd)) { + $rangeEnd = ObjectSerializer::serializeCollection($rangeEnd, '', true); + } if ($rangeEnd !== null) { - $queryParams['rangeEnd'] = ObjectSerializer::toQueryValue($rangeEnd); + $queryParams['rangeEnd'] = $rangeEnd; } // query params + if (is_array($path)) { + $path = ObjectSerializer::serializeCollection($path, '', true); + } if ($path !== null) { - $queryParams['path'] = ObjectSerializer::toQueryValue($path); + $queryParams['path'] = $path; } // query params + if (is_array($method)) { + $method = ObjectSerializer::serializeCollection($method, '', true); + } if ($method !== null) { - $queryParams['method'] = ObjectSerializer::toQueryValue($method); + $queryParams['method'] = $method; } // query params + if (is_array($status)) { + $status = ObjectSerializer::serializeCollection($status, '', true); + } if ($status !== null) { - $queryParams['status'] = ObjectSerializer::toQueryValue($status); + $queryParams['status'] = $status; } // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } + // body params $_tempBody = null; @@ -6478,6 +6622,7 @@ protected function getAllRolesRequest() + // body params $_tempBody = null; @@ -6746,6 +6891,7 @@ protected function getApplicationRequest($applicationId) $multipart = false; + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -7023,6 +7169,7 @@ protected function getApplicationApiHealthRequest($applicationId) $multipart = false; + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -7311,6 +7458,7 @@ protected function getApplicationCustomerRequest($applicationId, $customerId) $multipart = false; + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -7403,14 +7551,18 @@ protected function getApplicationCustomerRequest($applicationId, $customerId) * List Application Customers * * @param int $applicationId applicationId (required) + * @param string $integrationId Filter results performing an exact matching against the profile integration identifier. (optional) + * @param int $pageSize The number of items to include in this response. When omitted, the maximum value of 1000 will be used. (optional) + * @param int $skip Skips the given number of items when paging through large result sets. (optional) + * @param bool $withTotalResultSize When this flag is set, the result will include the total size of the result, across all pages. This might decrease performance on large data sets. With this flag set to true, hasMore will be be true whenever there is a next page. totalResultSize will always be zero. With this flag set to false, hasMore will always be set to false. totalResultSize will contain the total number of results for this query. (optional) * * @throws \TalonOne\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \TalonOne\Client\Model\InlineResponse20012 */ - public function getApplicationCustomers($applicationId) + public function getApplicationCustomers($applicationId, $integrationId = null, $pageSize = null, $skip = null, $withTotalResultSize = null) { - list($response) = $this->getApplicationCustomersWithHttpInfo($applicationId); + list($response) = $this->getApplicationCustomersWithHttpInfo($applicationId, $integrationId, $pageSize, $skip, $withTotalResultSize); return $response; } @@ -7420,14 +7572,18 @@ public function getApplicationCustomers($applicationId) * List Application Customers * * @param int $applicationId (required) + * @param string $integrationId Filter results performing an exact matching against the profile integration identifier. (optional) + * @param int $pageSize The number of items to include in this response. When omitted, the maximum value of 1000 will be used. (optional) + * @param int $skip Skips the given number of items when paging through large result sets. (optional) + * @param bool $withTotalResultSize When this flag is set, the result will include the total size of the result, across all pages. This might decrease performance on large data sets. With this flag set to true, hasMore will be be true whenever there is a next page. totalResultSize will always be zero. With this flag set to false, hasMore will always be set to false. totalResultSize will contain the total number of results for this query. (optional) * * @throws \TalonOne\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \TalonOne\Client\Model\InlineResponse20012, HTTP status code, HTTP response headers (array of strings) */ - public function getApplicationCustomersWithHttpInfo($applicationId) + public function getApplicationCustomersWithHttpInfo($applicationId, $integrationId = null, $pageSize = null, $skip = null, $withTotalResultSize = null) { - $request = $this->getApplicationCustomersRequest($applicationId); + $request = $this->getApplicationCustomersRequest($applicationId, $integrationId, $pageSize, $skip, $withTotalResultSize); try { $options = $this->createHttpClientOption(); @@ -7508,13 +7664,17 @@ public function getApplicationCustomersWithHttpInfo($applicationId) * List Application Customers * * @param int $applicationId (required) + * @param string $integrationId Filter results performing an exact matching against the profile integration identifier. (optional) + * @param int $pageSize The number of items to include in this response. When omitted, the maximum value of 1000 will be used. (optional) + * @param int $skip Skips the given number of items when paging through large result sets. (optional) + * @param bool $withTotalResultSize When this flag is set, the result will include the total size of the result, across all pages. This might decrease performance on large data sets. With this flag set to true, hasMore will be be true whenever there is a next page. totalResultSize will always be zero. With this flag set to false, hasMore will always be set to false. totalResultSize will contain the total number of results for this query. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getApplicationCustomersAsync($applicationId) + public function getApplicationCustomersAsync($applicationId, $integrationId = null, $pageSize = null, $skip = null, $withTotalResultSize = null) { - return $this->getApplicationCustomersAsyncWithHttpInfo($applicationId) + return $this->getApplicationCustomersAsyncWithHttpInfo($applicationId, $integrationId, $pageSize, $skip, $withTotalResultSize) ->then( function ($response) { return $response[0]; @@ -7528,14 +7688,18 @@ function ($response) { * List Application Customers * * @param int $applicationId (required) + * @param string $integrationId Filter results performing an exact matching against the profile integration identifier. (optional) + * @param int $pageSize The number of items to include in this response. When omitted, the maximum value of 1000 will be used. (optional) + * @param int $skip Skips the given number of items when paging through large result sets. (optional) + * @param bool $withTotalResultSize When this flag is set, the result will include the total size of the result, across all pages. This might decrease performance on large data sets. With this flag set to true, hasMore will be be true whenever there is a next page. totalResultSize will always be zero. With this flag set to false, hasMore will always be set to false. totalResultSize will contain the total number of results for this query. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getApplicationCustomersAsyncWithHttpInfo($applicationId) + public function getApplicationCustomersAsyncWithHttpInfo($applicationId, $integrationId = null, $pageSize = null, $skip = null, $withTotalResultSize = null) { $returnType = '\TalonOne\Client\Model\InlineResponse20012'; - $request = $this->getApplicationCustomersRequest($applicationId); + $request = $this->getApplicationCustomersRequest($applicationId, $integrationId, $pageSize, $skip, $withTotalResultSize); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7575,11 +7739,15 @@ function ($exception) { * Create request for operation 'getApplicationCustomers' * * @param int $applicationId (required) + * @param string $integrationId Filter results performing an exact matching against the profile integration identifier. (optional) + * @param int $pageSize The number of items to include in this response. When omitted, the maximum value of 1000 will be used. (optional) + * @param int $skip Skips the given number of items when paging through large result sets. (optional) + * @param bool $withTotalResultSize When this flag is set, the result will include the total size of the result, across all pages. This might decrease performance on large data sets. With this flag set to true, hasMore will be be true whenever there is a next page. totalResultSize will always be zero. With this flag set to false, hasMore will always be set to false. totalResultSize will contain the total number of results for this query. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getApplicationCustomersRequest($applicationId) + protected function getApplicationCustomersRequest($applicationId, $integrationId = null, $pageSize = null, $skip = null, $withTotalResultSize = null) { // verify the required parameter 'applicationId' is set if ($applicationId === null || (is_array($applicationId) && count($applicationId) === 0)) { @@ -7595,6 +7763,35 @@ protected function getApplicationCustomersRequest($applicationId) $httpBody = ''; $multipart = false; + // query params + if (is_array($integrationId)) { + $integrationId = ObjectSerializer::serializeCollection($integrationId, '', true); + } + if ($integrationId !== null) { + $queryParams['integrationId'] = $integrationId; + } + // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } + if ($pageSize !== null) { + $queryParams['pageSize'] = $pageSize; + } + // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } + if ($skip !== null) { + $queryParams['skip'] = $skip; + } + // query params + if (is_array($withTotalResultSize)) { + $withTotalResultSize = ObjectSerializer::serializeCollection($withTotalResultSize, '', true); + } + if ($withTotalResultSize !== null) { + $queryParams['withTotalResultSize'] = $withTotalResultSize; + } + // path params if ($applicationId !== null) { @@ -7874,6 +8071,7 @@ protected function getApplicationCustomersByAttributesRequest($body) + // body params $_tempBody = null; if (isset($body)) { @@ -8160,18 +8358,28 @@ protected function getApplicationEventTypesRequest($applicationId, $pageSize = n $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -8527,62 +8735,105 @@ protected function getApplicationEventsRequest($applicationId, $pageSize = null, $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } // query params + if (is_array($type)) { + $type = ObjectSerializer::serializeCollection($type, '', true); + } if ($type !== null) { - $queryParams['type'] = ObjectSerializer::toQueryValue($type); + $queryParams['type'] = $type; } // query params + if (is_array($createdBefore)) { + $createdBefore = ObjectSerializer::serializeCollection($createdBefore, '', true); + } if ($createdBefore !== null) { - $queryParams['createdBefore'] = ObjectSerializer::toQueryValue($createdBefore); + $queryParams['createdBefore'] = $createdBefore; } // query params + if (is_array($createdAfter)) { + $createdAfter = ObjectSerializer::serializeCollection($createdAfter, '', true); + } if ($createdAfter !== null) { - $queryParams['createdAfter'] = ObjectSerializer::toQueryValue($createdAfter); + $queryParams['createdAfter'] = $createdAfter; } // query params + if (is_array($session)) { + $session = ObjectSerializer::serializeCollection($session, '', true); + } if ($session !== null) { - $queryParams['session'] = ObjectSerializer::toQueryValue($session); + $queryParams['session'] = $session; } // query params + if (is_array($profile)) { + $profile = ObjectSerializer::serializeCollection($profile, '', true); + } if ($profile !== null) { - $queryParams['profile'] = ObjectSerializer::toQueryValue($profile); + $queryParams['profile'] = $profile; } // query params + if (is_array($customerName)) { + $customerName = ObjectSerializer::serializeCollection($customerName, '', true); + } if ($customerName !== null) { - $queryParams['customerName'] = ObjectSerializer::toQueryValue($customerName); + $queryParams['customerName'] = $customerName; } // query params + if (is_array($customerEmail)) { + $customerEmail = ObjectSerializer::serializeCollection($customerEmail, '', true); + } if ($customerEmail !== null) { - $queryParams['customerEmail'] = ObjectSerializer::toQueryValue($customerEmail); + $queryParams['customerEmail'] = $customerEmail; } // query params + if (is_array($couponCode)) { + $couponCode = ObjectSerializer::serializeCollection($couponCode, '', true); + } if ($couponCode !== null) { - $queryParams['couponCode'] = ObjectSerializer::toQueryValue($couponCode); + $queryParams['couponCode'] = $couponCode; } // query params + if (is_array($referralCode)) { + $referralCode = ObjectSerializer::serializeCollection($referralCode, '', true); + } if ($referralCode !== null) { - $queryParams['referralCode'] = ObjectSerializer::toQueryValue($referralCode); + $queryParams['referralCode'] = $referralCode; } // query params + if (is_array($ruleQuery)) { + $ruleQuery = ObjectSerializer::serializeCollection($ruleQuery, '', true); + } if ($ruleQuery !== null) { - $queryParams['ruleQuery'] = ObjectSerializer::toQueryValue($ruleQuery); + $queryParams['ruleQuery'] = $ruleQuery; } // query params + if (is_array($campaignQuery)) { + $campaignQuery = ObjectSerializer::serializeCollection($campaignQuery, '', true); + } if ($campaignQuery !== null) { - $queryParams['campaignQuery'] = ObjectSerializer::toQueryValue($campaignQuery); + $queryParams['campaignQuery'] = $campaignQuery; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -8938,62 +9189,105 @@ protected function getApplicationEventsWithoutTotalCountRequest($applicationId, $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } // query params + if (is_array($type)) { + $type = ObjectSerializer::serializeCollection($type, '', true); + } if ($type !== null) { - $queryParams['type'] = ObjectSerializer::toQueryValue($type); + $queryParams['type'] = $type; } // query params + if (is_array($createdBefore)) { + $createdBefore = ObjectSerializer::serializeCollection($createdBefore, '', true); + } if ($createdBefore !== null) { - $queryParams['createdBefore'] = ObjectSerializer::toQueryValue($createdBefore); + $queryParams['createdBefore'] = $createdBefore; } // query params + if (is_array($createdAfter)) { + $createdAfter = ObjectSerializer::serializeCollection($createdAfter, '', true); + } if ($createdAfter !== null) { - $queryParams['createdAfter'] = ObjectSerializer::toQueryValue($createdAfter); + $queryParams['createdAfter'] = $createdAfter; } // query params + if (is_array($session)) { + $session = ObjectSerializer::serializeCollection($session, '', true); + } if ($session !== null) { - $queryParams['session'] = ObjectSerializer::toQueryValue($session); + $queryParams['session'] = $session; } // query params + if (is_array($profile)) { + $profile = ObjectSerializer::serializeCollection($profile, '', true); + } if ($profile !== null) { - $queryParams['profile'] = ObjectSerializer::toQueryValue($profile); + $queryParams['profile'] = $profile; } // query params + if (is_array($customerName)) { + $customerName = ObjectSerializer::serializeCollection($customerName, '', true); + } if ($customerName !== null) { - $queryParams['customerName'] = ObjectSerializer::toQueryValue($customerName); + $queryParams['customerName'] = $customerName; } // query params + if (is_array($customerEmail)) { + $customerEmail = ObjectSerializer::serializeCollection($customerEmail, '', true); + } if ($customerEmail !== null) { - $queryParams['customerEmail'] = ObjectSerializer::toQueryValue($customerEmail); + $queryParams['customerEmail'] = $customerEmail; } // query params + if (is_array($couponCode)) { + $couponCode = ObjectSerializer::serializeCollection($couponCode, '', true); + } if ($couponCode !== null) { - $queryParams['couponCode'] = ObjectSerializer::toQueryValue($couponCode); + $queryParams['couponCode'] = $couponCode; } // query params + if (is_array($referralCode)) { + $referralCode = ObjectSerializer::serializeCollection($referralCode, '', true); + } if ($referralCode !== null) { - $queryParams['referralCode'] = ObjectSerializer::toQueryValue($referralCode); + $queryParams['referralCode'] = $referralCode; } // query params + if (is_array($ruleQuery)) { + $ruleQuery = ObjectSerializer::serializeCollection($ruleQuery, '', true); + } if ($ruleQuery !== null) { - $queryParams['ruleQuery'] = ObjectSerializer::toQueryValue($ruleQuery); + $queryParams['ruleQuery'] = $ruleQuery; } // query params + if (is_array($campaignQuery)) { + $campaignQuery = ObjectSerializer::serializeCollection($campaignQuery, '', true); + } if ($campaignQuery !== null) { - $queryParams['campaignQuery'] = ObjectSerializer::toQueryValue($campaignQuery); + $queryParams['campaignQuery'] = $campaignQuery; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -9282,6 +9576,7 @@ protected function getApplicationSessionRequest($applicationId, $sessionId) $multipart = false; + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -9379,18 +9674,19 @@ protected function getApplicationSessionRequest($applicationId, $sessionId) * @param string $sort The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with `-` to sort in descending order. (optional) * @param string $profile Profile integration ID filter for sessions. Must be exact match. (optional) * @param string $state Filter by sessions with this state. Must be exact match. (optional) + * @param \DateTime $createdBefore Only return events created before this date (optional) + * @param \DateTime $createdAfter Only return events created after this date (optional) * @param string $coupon Filter by sessions with this coupon. Must be exact match. (optional) * @param string $referral Filter by sessions with this referral. Must be exact match. (optional) * @param string $integrationId Filter by sessions with this integrationId. Must be exact match. (optional) - * @param string $customerId Filter by integration ID of the customer for the session (optional) * * @throws \TalonOne\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \TalonOne\Client\Model\InlineResponse20016 */ - public function getApplicationSessions($applicationId, $pageSize = null, $skip = null, $sort = null, $profile = null, $state = null, $coupon = null, $referral = null, $integrationId = null, $customerId = null) + public function getApplicationSessions($applicationId, $pageSize = null, $skip = null, $sort = null, $profile = null, $state = null, $createdBefore = null, $createdAfter = null, $coupon = null, $referral = null, $integrationId = null) { - list($response) = $this->getApplicationSessionsWithHttpInfo($applicationId, $pageSize, $skip, $sort, $profile, $state, $coupon, $referral, $integrationId, $customerId); + list($response) = $this->getApplicationSessionsWithHttpInfo($applicationId, $pageSize, $skip, $sort, $profile, $state, $createdBefore, $createdAfter, $coupon, $referral, $integrationId); return $response; } @@ -9405,18 +9701,19 @@ public function getApplicationSessions($applicationId, $pageSize = null, $skip = * @param string $sort The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with `-` to sort in descending order. (optional) * @param string $profile Profile integration ID filter for sessions. Must be exact match. (optional) * @param string $state Filter by sessions with this state. Must be exact match. (optional) + * @param \DateTime $createdBefore Only return events created before this date (optional) + * @param \DateTime $createdAfter Only return events created after this date (optional) * @param string $coupon Filter by sessions with this coupon. Must be exact match. (optional) * @param string $referral Filter by sessions with this referral. Must be exact match. (optional) * @param string $integrationId Filter by sessions with this integrationId. Must be exact match. (optional) - * @param string $customerId Filter by integration ID of the customer for the session (optional) * * @throws \TalonOne\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \TalonOne\Client\Model\InlineResponse20016, HTTP status code, HTTP response headers (array of strings) */ - public function getApplicationSessionsWithHttpInfo($applicationId, $pageSize = null, $skip = null, $sort = null, $profile = null, $state = null, $coupon = null, $referral = null, $integrationId = null, $customerId = null) + public function getApplicationSessionsWithHttpInfo($applicationId, $pageSize = null, $skip = null, $sort = null, $profile = null, $state = null, $createdBefore = null, $createdAfter = null, $coupon = null, $referral = null, $integrationId = null) { - $request = $this->getApplicationSessionsRequest($applicationId, $pageSize, $skip, $sort, $profile, $state, $coupon, $referral, $integrationId, $customerId); + $request = $this->getApplicationSessionsRequest($applicationId, $pageSize, $skip, $sort, $profile, $state, $createdBefore, $createdAfter, $coupon, $referral, $integrationId); try { $options = $this->createHttpClientOption(); @@ -9502,17 +9799,18 @@ public function getApplicationSessionsWithHttpInfo($applicationId, $pageSize = n * @param string $sort The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with `-` to sort in descending order. (optional) * @param string $profile Profile integration ID filter for sessions. Must be exact match. (optional) * @param string $state Filter by sessions with this state. Must be exact match. (optional) + * @param \DateTime $createdBefore Only return events created before this date (optional) + * @param \DateTime $createdAfter Only return events created after this date (optional) * @param string $coupon Filter by sessions with this coupon. Must be exact match. (optional) * @param string $referral Filter by sessions with this referral. Must be exact match. (optional) * @param string $integrationId Filter by sessions with this integrationId. Must be exact match. (optional) - * @param string $customerId Filter by integration ID of the customer for the session (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getApplicationSessionsAsync($applicationId, $pageSize = null, $skip = null, $sort = null, $profile = null, $state = null, $coupon = null, $referral = null, $integrationId = null, $customerId = null) + public function getApplicationSessionsAsync($applicationId, $pageSize = null, $skip = null, $sort = null, $profile = null, $state = null, $createdBefore = null, $createdAfter = null, $coupon = null, $referral = null, $integrationId = null) { - return $this->getApplicationSessionsAsyncWithHttpInfo($applicationId, $pageSize, $skip, $sort, $profile, $state, $coupon, $referral, $integrationId, $customerId) + return $this->getApplicationSessionsAsyncWithHttpInfo($applicationId, $pageSize, $skip, $sort, $profile, $state, $createdBefore, $createdAfter, $coupon, $referral, $integrationId) ->then( function ($response) { return $response[0]; @@ -9531,18 +9829,19 @@ function ($response) { * @param string $sort The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with `-` to sort in descending order. (optional) * @param string $profile Profile integration ID filter for sessions. Must be exact match. (optional) * @param string $state Filter by sessions with this state. Must be exact match. (optional) + * @param \DateTime $createdBefore Only return events created before this date (optional) + * @param \DateTime $createdAfter Only return events created after this date (optional) * @param string $coupon Filter by sessions with this coupon. Must be exact match. (optional) * @param string $referral Filter by sessions with this referral. Must be exact match. (optional) * @param string $integrationId Filter by sessions with this integrationId. Must be exact match. (optional) - * @param string $customerId Filter by integration ID of the customer for the session (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getApplicationSessionsAsyncWithHttpInfo($applicationId, $pageSize = null, $skip = null, $sort = null, $profile = null, $state = null, $coupon = null, $referral = null, $integrationId = null, $customerId = null) + public function getApplicationSessionsAsyncWithHttpInfo($applicationId, $pageSize = null, $skip = null, $sort = null, $profile = null, $state = null, $createdBefore = null, $createdAfter = null, $coupon = null, $referral = null, $integrationId = null) { $returnType = '\TalonOne\Client\Model\InlineResponse20016'; - $request = $this->getApplicationSessionsRequest($applicationId, $pageSize, $skip, $sort, $profile, $state, $coupon, $referral, $integrationId, $customerId); + $request = $this->getApplicationSessionsRequest($applicationId, $pageSize, $skip, $sort, $profile, $state, $createdBefore, $createdAfter, $coupon, $referral, $integrationId); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -9587,15 +9886,16 @@ function ($exception) { * @param string $sort The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with `-` to sort in descending order. (optional) * @param string $profile Profile integration ID filter for sessions. Must be exact match. (optional) * @param string $state Filter by sessions with this state. Must be exact match. (optional) + * @param \DateTime $createdBefore Only return events created before this date (optional) + * @param \DateTime $createdAfter Only return events created after this date (optional) * @param string $coupon Filter by sessions with this coupon. Must be exact match. (optional) * @param string $referral Filter by sessions with this referral. Must be exact match. (optional) * @param string $integrationId Filter by sessions with this integrationId. Must be exact match. (optional) - * @param string $customerId Filter by integration ID of the customer for the session (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getApplicationSessionsRequest($applicationId, $pageSize = null, $skip = null, $sort = null, $profile = null, $state = null, $coupon = null, $referral = null, $integrationId = null, $customerId = null) + protected function getApplicationSessionsRequest($applicationId, $pageSize = null, $skip = null, $sort = null, $profile = null, $state = null, $createdBefore = null, $createdAfter = null, $coupon = null, $referral = null, $integrationId = null) { // verify the required parameter 'applicationId' is set if ($applicationId === null || (is_array($applicationId) && count($applicationId) === 0)) { @@ -9612,42 +9912,77 @@ protected function getApplicationSessionsRequest($applicationId, $pageSize = nul $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } // query params + if (is_array($profile)) { + $profile = ObjectSerializer::serializeCollection($profile, '', true); + } if ($profile !== null) { - $queryParams['profile'] = ObjectSerializer::toQueryValue($profile); + $queryParams['profile'] = $profile; } // query params + if (is_array($state)) { + $state = ObjectSerializer::serializeCollection($state, '', true); + } if ($state !== null) { - $queryParams['state'] = ObjectSerializer::toQueryValue($state); + $queryParams['state'] = $state; + } + // query params + if (is_array($createdBefore)) { + $createdBefore = ObjectSerializer::serializeCollection($createdBefore, '', true); + } + if ($createdBefore !== null) { + $queryParams['createdBefore'] = $createdBefore; + } + // query params + if (is_array($createdAfter)) { + $createdAfter = ObjectSerializer::serializeCollection($createdAfter, '', true); + } + if ($createdAfter !== null) { + $queryParams['createdAfter'] = $createdAfter; } // query params + if (is_array($coupon)) { + $coupon = ObjectSerializer::serializeCollection($coupon, '', true); + } if ($coupon !== null) { - $queryParams['coupon'] = ObjectSerializer::toQueryValue($coupon); + $queryParams['coupon'] = $coupon; } // query params + if (is_array($referral)) { + $referral = ObjectSerializer::serializeCollection($referral, '', true); + } if ($referral !== null) { - $queryParams['referral'] = ObjectSerializer::toQueryValue($referral); + $queryParams['referral'] = $referral; } // query params - if ($integrationId !== null) { - $queryParams['integrationId'] = ObjectSerializer::toQueryValue($integrationId); + if (is_array($integrationId)) { + $integrationId = ObjectSerializer::serializeCollection($integrationId, '', true); } - // query params - if ($customerId !== null) { - $queryParams['customerId'] = ObjectSerializer::toQueryValue($customerId); + if ($integrationId !== null) { + $queryParams['integrationId'] = $integrationId; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -9929,19 +10264,29 @@ protected function getApplicationsRequest($pageSize = null, $skip = null, $sort $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } + // body params $_tempBody = null; @@ -10210,6 +10555,7 @@ protected function getAttributeRequest($attributeId) $multipart = false; + // path params if ($attributeId !== null) { $resourcePath = str_replace( @@ -10491,19 +10837,29 @@ protected function getAttributesRequest($pageSize = null, $skip = null, $sort = $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } + // body params $_tempBody = null; @@ -10783,6 +11139,7 @@ protected function getCampaignRequest($applicationId, $campaignId) $multipart = false; + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -11106,18 +11463,28 @@ protected function getCampaignAnalyticsRequest($applicationId, $campaignId, $ran $multipart = false; // query params + if (is_array($rangeStart)) { + $rangeStart = ObjectSerializer::serializeCollection($rangeStart, '', true); + } if ($rangeStart !== null) { - $queryParams['rangeStart'] = ObjectSerializer::toQueryValue($rangeStart); + $queryParams['rangeStart'] = $rangeStart; } // query params + if (is_array($rangeEnd)) { + $rangeEnd = ObjectSerializer::serializeCollection($rangeEnd, '', true); + } if ($rangeEnd !== null) { - $queryParams['rangeEnd'] = ObjectSerializer::toQueryValue($rangeEnd); + $queryParams['rangeEnd'] = $rangeEnd; } // query params + if (is_array($granularity)) { + $granularity = ObjectSerializer::serializeCollection($granularity, '', true); + } if ($granularity !== null) { - $queryParams['granularity'] = ObjectSerializer::toQueryValue($granularity); + $queryParams['granularity'] = $granularity; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -11434,22 +11801,35 @@ protected function getCampaignByAttributesRequest($applicationId, $body, $pageSi $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } // query params + if (is_array($campaignState)) { + $campaignState = ObjectSerializer::serializeCollection($campaignState, '', true); + } if ($campaignState !== null) { - $queryParams['campaignState'] = ObjectSerializer::toQueryValue($campaignState); + $queryParams['campaignState'] = $campaignState; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -11775,42 +12155,70 @@ protected function getCampaignsRequest($applicationId, $pageSize = null, $skip = $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } // query params + if (is_array($campaignState)) { + $campaignState = ObjectSerializer::serializeCollection($campaignState, '', true); + } if ($campaignState !== null) { - $queryParams['campaignState'] = ObjectSerializer::toQueryValue($campaignState); + $queryParams['campaignState'] = $campaignState; } // query params + if (is_array($name)) { + $name = ObjectSerializer::serializeCollection($name, '', true); + } if ($name !== null) { - $queryParams['name'] = ObjectSerializer::toQueryValue($name); + $queryParams['name'] = $name; } // query params + if (is_array($tags)) { + $tags = ObjectSerializer::serializeCollection($tags, '', true); + } if ($tags !== null) { - $queryParams['tags'] = ObjectSerializer::toQueryValue($tags); + $queryParams['tags'] = $tags; } // query params + if (is_array($createdBefore)) { + $createdBefore = ObjectSerializer::serializeCollection($createdBefore, '', true); + } if ($createdBefore !== null) { - $queryParams['createdBefore'] = ObjectSerializer::toQueryValue($createdBefore); + $queryParams['createdBefore'] = $createdBefore; } // query params + if (is_array($createdAfter)) { + $createdAfter = ObjectSerializer::serializeCollection($createdAfter, '', true); + } if ($createdAfter !== null) { - $queryParams['createdAfter'] = ObjectSerializer::toQueryValue($createdAfter); + $queryParams['createdAfter'] = $createdAfter; } // query params + if (is_array($campaignGroupId)) { + $campaignGroupId = ObjectSerializer::serializeCollection($campaignGroupId, '', true); + } if ($campaignGroupId !== null) { - $queryParams['campaignGroupId'] = ObjectSerializer::toQueryValue($campaignGroupId); + $queryParams['campaignGroupId'] = $campaignGroupId; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -12117,39 +12525,64 @@ protected function getChangesRequest($pageSize = null, $skip = null, $sort = nul $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } // query params + if (is_array($applicationId)) { + $applicationId = ObjectSerializer::serializeCollection($applicationId, '', true); + } if ($applicationId !== null) { - $queryParams['applicationId'] = ObjectSerializer::toQueryValue($applicationId); + $queryParams['applicationId'] = $applicationId; } // query params + if (is_array($createdBefore)) { + $createdBefore = ObjectSerializer::serializeCollection($createdBefore, '', true); + } if ($createdBefore !== null) { - $queryParams['createdBefore'] = ObjectSerializer::toQueryValue($createdBefore); + $queryParams['createdBefore'] = $createdBefore; } // query params + if (is_array($createdAfter)) { + $createdAfter = ObjectSerializer::serializeCollection($createdAfter, '', true); + } if ($createdAfter !== null) { - $queryParams['createdAfter'] = ObjectSerializer::toQueryValue($createdAfter); + $queryParams['createdAfter'] = $createdAfter; } // query params + if (is_array($withTotalResultSize)) { + $withTotalResultSize = ObjectSerializer::serializeCollection($withTotalResultSize, '', true); + } if ($withTotalResultSize !== null) { - $queryParams['withTotalResultSize'] = ObjectSerializer::toQueryValue($withTotalResultSize); + $queryParams['withTotalResultSize'] = $withTotalResultSize; } // query params + if (is_array($includeOld)) { + $includeOld = ObjectSerializer::serializeCollection($includeOld, '', true); + } if ($includeOld !== null) { - $queryParams['includeOld'] = ObjectSerializer::toQueryValue($includeOld); + $queryParams['includeOld'] = $includeOld; } + // body params $_tempBody = null; @@ -12509,70 +12942,119 @@ protected function getCouponsRequest($applicationId, $campaignId, $pageSize = nu $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } // query params + if (is_array($value)) { + $value = ObjectSerializer::serializeCollection($value, '', true); + } if ($value !== null) { - $queryParams['value'] = ObjectSerializer::toQueryValue($value); + $queryParams['value'] = $value; } // query params + if (is_array($createdBefore)) { + $createdBefore = ObjectSerializer::serializeCollection($createdBefore, '', true); + } if ($createdBefore !== null) { - $queryParams['createdBefore'] = ObjectSerializer::toQueryValue($createdBefore); + $queryParams['createdBefore'] = $createdBefore; } // query params + if (is_array($createdAfter)) { + $createdAfter = ObjectSerializer::serializeCollection($createdAfter, '', true); + } if ($createdAfter !== null) { - $queryParams['createdAfter'] = ObjectSerializer::toQueryValue($createdAfter); + $queryParams['createdAfter'] = $createdAfter; } // query params + if (is_array($startsAfter)) { + $startsAfter = ObjectSerializer::serializeCollection($startsAfter, '', true); + } if ($startsAfter !== null) { - $queryParams['startsAfter'] = ObjectSerializer::toQueryValue($startsAfter); + $queryParams['startsAfter'] = $startsAfter; } // query params + if (is_array($startsBefore)) { + $startsBefore = ObjectSerializer::serializeCollection($startsBefore, '', true); + } if ($startsBefore !== null) { - $queryParams['startsBefore'] = ObjectSerializer::toQueryValue($startsBefore); + $queryParams['startsBefore'] = $startsBefore; } // query params + if (is_array($expiresAfter)) { + $expiresAfter = ObjectSerializer::serializeCollection($expiresAfter, '', true); + } if ($expiresAfter !== null) { - $queryParams['expiresAfter'] = ObjectSerializer::toQueryValue($expiresAfter); + $queryParams['expiresAfter'] = $expiresAfter; } // query params + if (is_array($expiresBefore)) { + $expiresBefore = ObjectSerializer::serializeCollection($expiresBefore, '', true); + } if ($expiresBefore !== null) { - $queryParams['expiresBefore'] = ObjectSerializer::toQueryValue($expiresBefore); + $queryParams['expiresBefore'] = $expiresBefore; } // query params + if (is_array($valid)) { + $valid = ObjectSerializer::serializeCollection($valid, '', true); + } if ($valid !== null) { - $queryParams['valid'] = ObjectSerializer::toQueryValue($valid); + $queryParams['valid'] = $valid; } // query params + if (is_array($batchId)) { + $batchId = ObjectSerializer::serializeCollection($batchId, '', true); + } if ($batchId !== null) { - $queryParams['batchId'] = ObjectSerializer::toQueryValue($batchId); + $queryParams['batchId'] = $batchId; } // query params + if (is_array($usable)) { + $usable = ObjectSerializer::serializeCollection($usable, '', true); + } if ($usable !== null) { - $queryParams['usable'] = ObjectSerializer::toQueryValue($usable); + $queryParams['usable'] = $usable; } // query params + if (is_array($referralId)) { + $referralId = ObjectSerializer::serializeCollection($referralId, '', true); + } if ($referralId !== null) { - $queryParams['referralId'] = ObjectSerializer::toQueryValue($referralId); + $queryParams['referralId'] = $referralId; } // query params + if (is_array($recipientIntegrationId)) { + $recipientIntegrationId = ObjectSerializer::serializeCollection($recipientIntegrationId, '', true); + } if ($recipientIntegrationId !== null) { - $queryParams['recipientIntegrationId'] = ObjectSerializer::toQueryValue($recipientIntegrationId); + $queryParams['recipientIntegrationId'] = $recipientIntegrationId; } // query params + if (is_array($exactMatch)) { + $exactMatch = ObjectSerializer::serializeCollection($exactMatch, '', true); + } if ($exactMatch !== null) { - $queryParams['exactMatch'] = ObjectSerializer::toQueryValue($exactMatch); + $queryParams['exactMatch'] = $exactMatch; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -12940,54 +13422,91 @@ protected function getCouponsByAttributesRequest($applicationId, $campaignId, $b $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } // query params + if (is_array($value)) { + $value = ObjectSerializer::serializeCollection($value, '', true); + } if ($value !== null) { - $queryParams['value'] = ObjectSerializer::toQueryValue($value); + $queryParams['value'] = $value; } // query params + if (is_array($createdBefore)) { + $createdBefore = ObjectSerializer::serializeCollection($createdBefore, '', true); + } if ($createdBefore !== null) { - $queryParams['createdBefore'] = ObjectSerializer::toQueryValue($createdBefore); + $queryParams['createdBefore'] = $createdBefore; } // query params + if (is_array($createdAfter)) { + $createdAfter = ObjectSerializer::serializeCollection($createdAfter, '', true); + } if ($createdAfter !== null) { - $queryParams['createdAfter'] = ObjectSerializer::toQueryValue($createdAfter); + $queryParams['createdAfter'] = $createdAfter; } // query params + if (is_array($valid)) { + $valid = ObjectSerializer::serializeCollection($valid, '', true); + } if ($valid !== null) { - $queryParams['valid'] = ObjectSerializer::toQueryValue($valid); + $queryParams['valid'] = $valid; } // query params + if (is_array($usable)) { + $usable = ObjectSerializer::serializeCollection($usable, '', true); + } if ($usable !== null) { - $queryParams['usable'] = ObjectSerializer::toQueryValue($usable); + $queryParams['usable'] = $usable; } // query params + if (is_array($referralId)) { + $referralId = ObjectSerializer::serializeCollection($referralId, '', true); + } if ($referralId !== null) { - $queryParams['referralId'] = ObjectSerializer::toQueryValue($referralId); + $queryParams['referralId'] = $referralId; } // query params + if (is_array($recipientIntegrationId)) { + $recipientIntegrationId = ObjectSerializer::serializeCollection($recipientIntegrationId, '', true); + } if ($recipientIntegrationId !== null) { - $queryParams['recipientIntegrationId'] = ObjectSerializer::toQueryValue($recipientIntegrationId); + $queryParams['recipientIntegrationId'] = $recipientIntegrationId; } // query params + if (is_array($exactMatch)) { + $exactMatch = ObjectSerializer::serializeCollection($exactMatch, '', true); + } if ($exactMatch !== null) { - $queryParams['exactMatch'] = ObjectSerializer::toQueryValue($exactMatch); + $queryParams['exactMatch'] = $exactMatch; } // query params + if (is_array($batchId)) { + $batchId = ObjectSerializer::serializeCollection($batchId, '', true); + } if ($batchId !== null) { - $queryParams['batchId'] = ObjectSerializer::toQueryValue($batchId); + $queryParams['batchId'] = $batchId; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -13352,58 +13871,98 @@ protected function getCouponsByAttributesApplicationWideRequest($applicationId, $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } // query params + if (is_array($value)) { + $value = ObjectSerializer::serializeCollection($value, '', true); + } if ($value !== null) { - $queryParams['value'] = ObjectSerializer::toQueryValue($value); + $queryParams['value'] = $value; } // query params + if (is_array($createdBefore)) { + $createdBefore = ObjectSerializer::serializeCollection($createdBefore, '', true); + } if ($createdBefore !== null) { - $queryParams['createdBefore'] = ObjectSerializer::toQueryValue($createdBefore); + $queryParams['createdBefore'] = $createdBefore; } // query params + if (is_array($createdAfter)) { + $createdAfter = ObjectSerializer::serializeCollection($createdAfter, '', true); + } if ($createdAfter !== null) { - $queryParams['createdAfter'] = ObjectSerializer::toQueryValue($createdAfter); + $queryParams['createdAfter'] = $createdAfter; } // query params + if (is_array($valid)) { + $valid = ObjectSerializer::serializeCollection($valid, '', true); + } if ($valid !== null) { - $queryParams['valid'] = ObjectSerializer::toQueryValue($valid); + $queryParams['valid'] = $valid; } // query params + if (is_array($usable)) { + $usable = ObjectSerializer::serializeCollection($usable, '', true); + } if ($usable !== null) { - $queryParams['usable'] = ObjectSerializer::toQueryValue($usable); + $queryParams['usable'] = $usable; } // query params + if (is_array($referralId)) { + $referralId = ObjectSerializer::serializeCollection($referralId, '', true); + } if ($referralId !== null) { - $queryParams['referralId'] = ObjectSerializer::toQueryValue($referralId); + $queryParams['referralId'] = $referralId; } // query params + if (is_array($recipientIntegrationId)) { + $recipientIntegrationId = ObjectSerializer::serializeCollection($recipientIntegrationId, '', true); + } if ($recipientIntegrationId !== null) { - $queryParams['recipientIntegrationId'] = ObjectSerializer::toQueryValue($recipientIntegrationId); + $queryParams['recipientIntegrationId'] = $recipientIntegrationId; } // query params + if (is_array($batchId)) { + $batchId = ObjectSerializer::serializeCollection($batchId, '', true); + } if ($batchId !== null) { - $queryParams['batchId'] = ObjectSerializer::toQueryValue($batchId); + $queryParams['batchId'] = $batchId; } // query params + if (is_array($exactMatch)) { + $exactMatch = ObjectSerializer::serializeCollection($exactMatch, '', true); + } if ($exactMatch !== null) { - $queryParams['exactMatch'] = ObjectSerializer::toQueryValue($exactMatch); + $queryParams['exactMatch'] = $exactMatch; } // query params + if (is_array($campaignState)) { + $campaignState = ObjectSerializer::serializeCollection($campaignState, '', true); + } if ($campaignState !== null) { - $queryParams['campaignState'] = ObjectSerializer::toQueryValue($campaignState); + $queryParams['campaignState'] = $campaignState; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -13755,54 +14314,91 @@ protected function getCouponsWithoutTotalCountRequest($applicationId, $campaignI $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } // query params + if (is_array($value)) { + $value = ObjectSerializer::serializeCollection($value, '', true); + } if ($value !== null) { - $queryParams['value'] = ObjectSerializer::toQueryValue($value); + $queryParams['value'] = $value; } // query params + if (is_array($createdBefore)) { + $createdBefore = ObjectSerializer::serializeCollection($createdBefore, '', true); + } if ($createdBefore !== null) { - $queryParams['createdBefore'] = ObjectSerializer::toQueryValue($createdBefore); + $queryParams['createdBefore'] = $createdBefore; } // query params + if (is_array($createdAfter)) { + $createdAfter = ObjectSerializer::serializeCollection($createdAfter, '', true); + } if ($createdAfter !== null) { - $queryParams['createdAfter'] = ObjectSerializer::toQueryValue($createdAfter); + $queryParams['createdAfter'] = $createdAfter; } // query params + if (is_array($valid)) { + $valid = ObjectSerializer::serializeCollection($valid, '', true); + } if ($valid !== null) { - $queryParams['valid'] = ObjectSerializer::toQueryValue($valid); + $queryParams['valid'] = $valid; } // query params + if (is_array($usable)) { + $usable = ObjectSerializer::serializeCollection($usable, '', true); + } if ($usable !== null) { - $queryParams['usable'] = ObjectSerializer::toQueryValue($usable); + $queryParams['usable'] = $usable; } // query params + if (is_array($referralId)) { + $referralId = ObjectSerializer::serializeCollection($referralId, '', true); + } if ($referralId !== null) { - $queryParams['referralId'] = ObjectSerializer::toQueryValue($referralId); + $queryParams['referralId'] = $referralId; } // query params + if (is_array($recipientIntegrationId)) { + $recipientIntegrationId = ObjectSerializer::serializeCollection($recipientIntegrationId, '', true); + } if ($recipientIntegrationId !== null) { - $queryParams['recipientIntegrationId'] = ObjectSerializer::toQueryValue($recipientIntegrationId); + $queryParams['recipientIntegrationId'] = $recipientIntegrationId; } // query params + if (is_array($batchId)) { + $batchId = ObjectSerializer::serializeCollection($batchId, '', true); + } if ($batchId !== null) { - $queryParams['batchId'] = ObjectSerializer::toQueryValue($batchId); + $queryParams['batchId'] = $batchId; } // query params + if (is_array($exactMatch)) { + $exactMatch = ObjectSerializer::serializeCollection($exactMatch, '', true); + } if ($exactMatch !== null) { - $queryParams['exactMatch'] = ObjectSerializer::toQueryValue($exactMatch); + $queryParams['exactMatch'] = $exactMatch; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -14131,22 +14727,35 @@ protected function getCustomerActivityReportRequest($rangeStart, $rangeEnd, $app $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($rangeStart)) { + $rangeStart = ObjectSerializer::serializeCollection($rangeStart, '', true); + } if ($rangeStart !== null) { - $queryParams['rangeStart'] = ObjectSerializer::toQueryValue($rangeStart); + $queryParams['rangeStart'] = $rangeStart; } // query params + if (is_array($rangeEnd)) { + $rangeEnd = ObjectSerializer::serializeCollection($rangeEnd, '', true); + } if ($rangeEnd !== null) { - $queryParams['rangeEnd'] = ObjectSerializer::toQueryValue($rangeEnd); + $queryParams['rangeEnd'] = $rangeEnd; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -14489,42 +15098,70 @@ protected function getCustomerActivityReportsRequest($rangeStart, $rangeEnd, $ap $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } // query params + if (is_array($rangeStart)) { + $rangeStart = ObjectSerializer::serializeCollection($rangeStart, '', true); + } if ($rangeStart !== null) { - $queryParams['rangeStart'] = ObjectSerializer::toQueryValue($rangeStart); + $queryParams['rangeStart'] = $rangeStart; } // query params + if (is_array($rangeEnd)) { + $rangeEnd = ObjectSerializer::serializeCollection($rangeEnd, '', true); + } if ($rangeEnd !== null) { - $queryParams['rangeEnd'] = ObjectSerializer::toQueryValue($rangeEnd); + $queryParams['rangeEnd'] = $rangeEnd; } // query params + if (is_array($name)) { + $name = ObjectSerializer::serializeCollection($name, '', true); + } if ($name !== null) { - $queryParams['name'] = ObjectSerializer::toQueryValue($name); + $queryParams['name'] = $name; } // query params + if (is_array($integrationId)) { + $integrationId = ObjectSerializer::serializeCollection($integrationId, '', true); + } if ($integrationId !== null) { - $queryParams['integrationId'] = ObjectSerializer::toQueryValue($integrationId); + $queryParams['integrationId'] = $integrationId; } // query params + if (is_array($campaignName)) { + $campaignName = ObjectSerializer::serializeCollection($campaignName, '', true); + } if ($campaignName !== null) { - $queryParams['campaignName'] = ObjectSerializer::toQueryValue($campaignName); + $queryParams['campaignName'] = $campaignName; } // query params + if (is_array($advocateName)) { + $advocateName = ObjectSerializer::serializeCollection($advocateName, '', true); + } if ($advocateName !== null) { - $queryParams['advocateName'] = ObjectSerializer::toQueryValue($advocateName); + $queryParams['advocateName'] = $advocateName; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -14859,42 +15496,70 @@ protected function getCustomerActivityReportsWithoutTotalCountRequest($rangeStar $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } // query params + if (is_array($rangeStart)) { + $rangeStart = ObjectSerializer::serializeCollection($rangeStart, '', true); + } if ($rangeStart !== null) { - $queryParams['rangeStart'] = ObjectSerializer::toQueryValue($rangeStart); + $queryParams['rangeStart'] = $rangeStart; } // query params + if (is_array($rangeEnd)) { + $rangeEnd = ObjectSerializer::serializeCollection($rangeEnd, '', true); + } if ($rangeEnd !== null) { - $queryParams['rangeEnd'] = ObjectSerializer::toQueryValue($rangeEnd); + $queryParams['rangeEnd'] = $rangeEnd; } // query params + if (is_array($name)) { + $name = ObjectSerializer::serializeCollection($name, '', true); + } if ($name !== null) { - $queryParams['name'] = ObjectSerializer::toQueryValue($name); + $queryParams['name'] = $name; } // query params + if (is_array($integrationId)) { + $integrationId = ObjectSerializer::serializeCollection($integrationId, '', true); + } if ($integrationId !== null) { - $queryParams['integrationId'] = ObjectSerializer::toQueryValue($integrationId); + $queryParams['integrationId'] = $integrationId; } // query params + if (is_array($campaignName)) { + $campaignName = ObjectSerializer::serializeCollection($campaignName, '', true); + } if ($campaignName !== null) { - $queryParams['campaignName'] = ObjectSerializer::toQueryValue($campaignName); + $queryParams['campaignName'] = $campaignName; } // query params + if (is_array($advocateName)) { + $advocateName = ObjectSerializer::serializeCollection($advocateName, '', true); + } if ($advocateName !== null) { - $queryParams['advocateName'] = ObjectSerializer::toQueryValue($advocateName); + $queryParams['advocateName'] = $advocateName; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -15198,18 +15863,28 @@ protected function getCustomerAnalyticsRequest($applicationId, $customerId, $pag $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -15495,6 +16170,7 @@ protected function getCustomerProfileRequest($customerId) $multipart = false; + // path params if ($customerId !== null) { $resourcePath = str_replace( @@ -15771,15 +16447,22 @@ protected function getCustomerProfilesRequest($pageSize = null, $skip = null) $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } + // body params $_tempBody = null; @@ -16058,15 +16741,22 @@ protected function getCustomersByAttributesRequest($body, $pageSize = null, $ski $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } + // body params $_tempBody = null; if (isset($body)) { @@ -16357,31 +17047,50 @@ protected function getEventTypesRequest($applicationIds = null, $name = null, $i $multipart = false; // query params + if (is_array($applicationIds)) { + $applicationIds = ObjectSerializer::serializeCollection($applicationIds, '', true); + } if ($applicationIds !== null) { - $queryParams['applicationIds'] = ObjectSerializer::toQueryValue($applicationIds); + $queryParams['applicationIds'] = $applicationIds; } // query params + if (is_array($name)) { + $name = ObjectSerializer::serializeCollection($name, '', true); + } if ($name !== null) { - $queryParams['name'] = ObjectSerializer::toQueryValue($name); + $queryParams['name'] = $name; } // query params + if (is_array($includeOldVersions)) { + $includeOldVersions = ObjectSerializer::serializeCollection($includeOldVersions, '', true); + } if ($includeOldVersions !== null) { - $queryParams['includeOldVersions'] = ObjectSerializer::toQueryValue($includeOldVersions); + $queryParams['includeOldVersions'] = $includeOldVersions; } // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } + // body params $_tempBody = null; @@ -16664,27 +17373,43 @@ protected function getExportsRequest($pageSize = null, $skip = null, $applicatio $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($applicationId)) { + $applicationId = ObjectSerializer::serializeCollection($applicationId, '', true); + } if ($applicationId !== null) { - $queryParams['applicationId'] = ObjectSerializer::toQueryValue($applicationId); + $queryParams['applicationId'] = $applicationId; } // query params + if (is_array($campaignId)) { + $campaignId = ObjectSerializer::serializeCollection($campaignId, '', true); + } if ($campaignId !== null) { - $queryParams['campaignId'] = ObjectSerializer::toQueryValue($campaignId); + $queryParams['campaignId'] = $campaignId; } // query params + if (is_array($entity)) { + $entity = ObjectSerializer::serializeCollection($entity, '', true); + } if ($entity !== null) { - $queryParams['entity'] = ObjectSerializer::toQueryValue($entity); + $queryParams['entity'] = $entity; } + // body params $_tempBody = null; @@ -16952,15 +17677,22 @@ protected function getImportsRequest($pageSize = null, $skip = null) $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } + // body params $_tempBody = null; @@ -17240,6 +17972,7 @@ protected function getLoyaltyPointsRequest($programID, $integrationID) $multipart = false; + // path params if ($programID !== null) { $resourcePath = str_replace( @@ -17525,6 +18258,7 @@ protected function getLoyaltyProgramRequest($programID) $multipart = false; + // path params if ($programID !== null) { $resourcePath = str_replace( @@ -17792,6 +18526,285 @@ protected function getLoyaltyProgramsRequest() + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($_tempBody)); + } else { + $httpBody = $_tempBody; + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('Authorization'); + if ($apiKey !== null) { + $headers['Authorization'] = $apiKey; + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getLoyaltyStatistics + * + * Get loyalty program statistics by loyalty program ID + * + * @param string $programID programID (required) + * + * @throws \TalonOne\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \TalonOne\Client\Model\LoyaltyStatistics + */ + public function getLoyaltyStatistics($programID) + { + list($response) = $this->getLoyaltyStatisticsWithHttpInfo($programID); + return $response; + } + + /** + * Operation getLoyaltyStatisticsWithHttpInfo + * + * Get loyalty program statistics by loyalty program ID + * + * @param string $programID (required) + * + * @throws \TalonOne\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \TalonOne\Client\Model\LoyaltyStatistics, HTTP status code, HTTP response headers (array of strings) + */ + public function getLoyaltyStatisticsWithHttpInfo($programID) + { + $request = $this->getLoyaltyStatisticsRequest($programID); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + switch($statusCode) { + case 200: + if ('\TalonOne\Client\Model\LoyaltyStatistics' === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, '\TalonOne\Client\Model\LoyaltyStatistics', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + $returnType = '\TalonOne\Client\Model\LoyaltyStatistics'; + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\TalonOne\Client\Model\LoyaltyStatistics', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getLoyaltyStatisticsAsync + * + * Get loyalty program statistics by loyalty program ID + * + * @param string $programID (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getLoyaltyStatisticsAsync($programID) + { + return $this->getLoyaltyStatisticsAsyncWithHttpInfo($programID) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getLoyaltyStatisticsAsyncWithHttpInfo + * + * Get loyalty program statistics by loyalty program ID + * + * @param string $programID (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getLoyaltyStatisticsAsyncWithHttpInfo($programID) + { + $returnType = '\TalonOne\Client\Model\LoyaltyStatistics'; + $request = $this->getLoyaltyStatisticsRequest($programID); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getLoyaltyStatistics' + * + * @param string $programID (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getLoyaltyStatisticsRequest($programID) + { + // verify the required parameter 'programID' is set + if ($programID === null || (is_array($programID) && count($programID) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $programID when calling getLoyaltyStatistics' + ); + } + + $resourcePath = '/v1/loyalty_programs/{programID}/statistics'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($programID !== null) { + $resourcePath = str_replace( + '{' . 'programID' . '}', + ObjectSerializer::toPathValue($programID), + $resourcePath + ); + } + // body params $_tempBody = null; @@ -18116,42 +19129,70 @@ protected function getReferralsRequest($applicationId, $campaignId, $pageSize = $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } // query params + if (is_array($code)) { + $code = ObjectSerializer::serializeCollection($code, '', true); + } if ($code !== null) { - $queryParams['code'] = ObjectSerializer::toQueryValue($code); + $queryParams['code'] = $code; } // query params + if (is_array($createdBefore)) { + $createdBefore = ObjectSerializer::serializeCollection($createdBefore, '', true); + } if ($createdBefore !== null) { - $queryParams['createdBefore'] = ObjectSerializer::toQueryValue($createdBefore); + $queryParams['createdBefore'] = $createdBefore; } // query params + if (is_array($createdAfter)) { + $createdAfter = ObjectSerializer::serializeCollection($createdAfter, '', true); + } if ($createdAfter !== null) { - $queryParams['createdAfter'] = ObjectSerializer::toQueryValue($createdAfter); + $queryParams['createdAfter'] = $createdAfter; } // query params + if (is_array($valid)) { + $valid = ObjectSerializer::serializeCollection($valid, '', true); + } if ($valid !== null) { - $queryParams['valid'] = ObjectSerializer::toQueryValue($valid); + $queryParams['valid'] = $valid; } // query params + if (is_array($usable)) { + $usable = ObjectSerializer::serializeCollection($usable, '', true); + } if ($usable !== null) { - $queryParams['usable'] = ObjectSerializer::toQueryValue($usable); + $queryParams['usable'] = $usable; } // query params + if (is_array($advocate)) { + $advocate = ObjectSerializer::serializeCollection($advocate, '', true); + } if ($advocate !== null) { - $queryParams['advocate'] = ObjectSerializer::toQueryValue($advocate); + $queryParams['advocate'] = $advocate; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -18493,42 +19534,70 @@ protected function getReferralsWithoutTotalCountRequest($applicationId, $campaig $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } // query params + if (is_array($code)) { + $code = ObjectSerializer::serializeCollection($code, '', true); + } if ($code !== null) { - $queryParams['code'] = ObjectSerializer::toQueryValue($code); + $queryParams['code'] = $code; } // query params + if (is_array($createdBefore)) { + $createdBefore = ObjectSerializer::serializeCollection($createdBefore, '', true); + } if ($createdBefore !== null) { - $queryParams['createdBefore'] = ObjectSerializer::toQueryValue($createdBefore); + $queryParams['createdBefore'] = $createdBefore; } // query params + if (is_array($createdAfter)) { + $createdAfter = ObjectSerializer::serializeCollection($createdAfter, '', true); + } if ($createdAfter !== null) { - $queryParams['createdAfter'] = ObjectSerializer::toQueryValue($createdAfter); + $queryParams['createdAfter'] = $createdAfter; } // query params + if (is_array($valid)) { + $valid = ObjectSerializer::serializeCollection($valid, '', true); + } if ($valid !== null) { - $queryParams['valid'] = ObjectSerializer::toQueryValue($valid); + $queryParams['valid'] = $valid; } // query params + if (is_array($usable)) { + $usable = ObjectSerializer::serializeCollection($usable, '', true); + } if ($usable !== null) { - $queryParams['usable'] = ObjectSerializer::toQueryValue($usable); + $queryParams['usable'] = $usable; } // query params + if (is_array($advocate)) { + $advocate = ObjectSerializer::serializeCollection($advocate, '', true); + } if ($advocate !== null) { - $queryParams['advocate'] = ObjectSerializer::toQueryValue($advocate); + $queryParams['advocate'] = $advocate; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -18814,6 +19883,7 @@ protected function getRoleRequest($roleId) $multipart = false; + // path params if ($roleId !== null) { $resourcePath = str_replace( @@ -19113,6 +20183,7 @@ protected function getRulesetRequest($applicationId, $campaignId, $rulesetId) $multipart = false; + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -19432,18 +20503,28 @@ protected function getRulesetsRequest($applicationId, $campaignId, $pageSize = n $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -19729,6 +20810,7 @@ protected function getUserRequest($userId) $multipart = false; + // path params if ($userId !== null) { $resourcePath = str_replace( @@ -20010,19 +21092,29 @@ protected function getUsersRequest($pageSize = null, $skip = null, $sort = null) $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } + // body params $_tempBody = null; @@ -20291,6 +21383,7 @@ protected function getWebhookRequest($webhookId) $multipart = false; + // path params if ($webhookId !== null) { $resourcePath = str_replace( @@ -20602,43 +21695,71 @@ protected function getWebhookActivationLogsRequest($pageSize = null, $skip = nul $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } // query params + if (is_array($integrationRequestUuid)) { + $integrationRequestUuid = ObjectSerializer::serializeCollection($integrationRequestUuid, '', true); + } if ($integrationRequestUuid !== null) { - $queryParams['integrationRequestUuid'] = ObjectSerializer::toQueryValue($integrationRequestUuid); + $queryParams['integrationRequestUuid'] = $integrationRequestUuid; } // query params + if (is_array($webhookId)) { + $webhookId = ObjectSerializer::serializeCollection($webhookId, '', true); + } if ($webhookId !== null) { - $queryParams['webhookId'] = ObjectSerializer::toQueryValue($webhookId); + $queryParams['webhookId'] = $webhookId; } // query params + if (is_array($applicationId)) { + $applicationId = ObjectSerializer::serializeCollection($applicationId, '', true); + } if ($applicationId !== null) { - $queryParams['applicationId'] = ObjectSerializer::toQueryValue($applicationId); + $queryParams['applicationId'] = $applicationId; } // query params + if (is_array($campaignId)) { + $campaignId = ObjectSerializer::serializeCollection($campaignId, '', true); + } if ($campaignId !== null) { - $queryParams['campaignId'] = ObjectSerializer::toQueryValue($campaignId); + $queryParams['campaignId'] = $campaignId; } // query params + if (is_array($createdBefore)) { + $createdBefore = ObjectSerializer::serializeCollection($createdBefore, '', true); + } if ($createdBefore !== null) { - $queryParams['createdBefore'] = ObjectSerializer::toQueryValue($createdBefore); + $queryParams['createdBefore'] = $createdBefore; } // query params + if (is_array($createdAfter)) { + $createdAfter = ObjectSerializer::serializeCollection($createdAfter, '', true); + } if ($createdAfter !== null) { - $queryParams['createdAfter'] = ObjectSerializer::toQueryValue($createdAfter); + $queryParams['createdAfter'] = $createdAfter; } + // body params $_tempBody = null; @@ -20946,47 +22067,78 @@ protected function getWebhookLogsRequest($pageSize = null, $skip = null, $sort = $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } // query params + if (is_array($status)) { + $status = ObjectSerializer::serializeCollection($status, '', true); + } if ($status !== null) { - $queryParams['status'] = ObjectSerializer::toQueryValue($status); + $queryParams['status'] = $status; } // query params + if (is_array($webhookId)) { + $webhookId = ObjectSerializer::serializeCollection($webhookId, '', true); + } if ($webhookId !== null) { - $queryParams['webhookId'] = ObjectSerializer::toQueryValue($webhookId); + $queryParams['webhookId'] = $webhookId; } // query params + if (is_array($applicationId)) { + $applicationId = ObjectSerializer::serializeCollection($applicationId, '', true); + } if ($applicationId !== null) { - $queryParams['applicationId'] = ObjectSerializer::toQueryValue($applicationId); + $queryParams['applicationId'] = $applicationId; } // query params + if (is_array($campaignId)) { + $campaignId = ObjectSerializer::serializeCollection($campaignId, '', true); + } if ($campaignId !== null) { - $queryParams['campaignId'] = ObjectSerializer::toQueryValue($campaignId); + $queryParams['campaignId'] = $campaignId; } // query params + if (is_array($requestUuid)) { + $requestUuid = ObjectSerializer::serializeCollection($requestUuid, '', true); + } if ($requestUuid !== null) { - $queryParams['requestUuid'] = ObjectSerializer::toQueryValue($requestUuid); + $queryParams['requestUuid'] = $requestUuid; } // query params + if (is_array($createdBefore)) { + $createdBefore = ObjectSerializer::serializeCollection($createdBefore, '', true); + } if ($createdBefore !== null) { - $queryParams['createdBefore'] = ObjectSerializer::toQueryValue($createdBefore); + $queryParams['createdBefore'] = $createdBefore; } // query params + if (is_array($createdAfter)) { + $createdAfter = ObjectSerializer::serializeCollection($createdAfter, '', true); + } if ($createdAfter !== null) { - $queryParams['createdAfter'] = ObjectSerializer::toQueryValue($createdAfter); + $queryParams['createdAfter'] = $createdAfter; } + // body params $_tempBody = null; @@ -21264,23 +22416,36 @@ protected function getWebhooksRequest($applicationIds = null, $sort = null, $pag $multipart = false; // query params + if (is_array($applicationIds)) { + $applicationIds = ObjectSerializer::serializeCollection($applicationIds, '', true); + } if ($applicationIds !== null) { - $queryParams['applicationIds'] = ObjectSerializer::toQueryValue($applicationIds); + $queryParams['applicationIds'] = $applicationIds; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } + // body params $_tempBody = null; @@ -21523,6 +22688,7 @@ protected function removeLoyaltyPointsRequest($programID, $integrationID, $body) $multipart = false; + // path params if ($programID !== null) { $resourcePath = str_replace( @@ -21812,6 +22978,7 @@ protected function resetPasswordRequest($body) + // body params $_tempBody = null; if (isset($body)) { @@ -22165,54 +23332,91 @@ protected function searchCouponsAdvancedRequest($applicationId, $campaignId, $bo $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } // query params + if (is_array($value)) { + $value = ObjectSerializer::serializeCollection($value, '', true); + } if ($value !== null) { - $queryParams['value'] = ObjectSerializer::toQueryValue($value); + $queryParams['value'] = $value; } // query params + if (is_array($createdBefore)) { + $createdBefore = ObjectSerializer::serializeCollection($createdBefore, '', true); + } if ($createdBefore !== null) { - $queryParams['createdBefore'] = ObjectSerializer::toQueryValue($createdBefore); + $queryParams['createdBefore'] = $createdBefore; } // query params + if (is_array($createdAfter)) { + $createdAfter = ObjectSerializer::serializeCollection($createdAfter, '', true); + } if ($createdAfter !== null) { - $queryParams['createdAfter'] = ObjectSerializer::toQueryValue($createdAfter); + $queryParams['createdAfter'] = $createdAfter; } // query params + if (is_array($valid)) { + $valid = ObjectSerializer::serializeCollection($valid, '', true); + } if ($valid !== null) { - $queryParams['valid'] = ObjectSerializer::toQueryValue($valid); + $queryParams['valid'] = $valid; } // query params + if (is_array($usable)) { + $usable = ObjectSerializer::serializeCollection($usable, '', true); + } if ($usable !== null) { - $queryParams['usable'] = ObjectSerializer::toQueryValue($usable); + $queryParams['usable'] = $usable; } // query params + if (is_array($referralId)) { + $referralId = ObjectSerializer::serializeCollection($referralId, '', true); + } if ($referralId !== null) { - $queryParams['referralId'] = ObjectSerializer::toQueryValue($referralId); + $queryParams['referralId'] = $referralId; } // query params + if (is_array($recipientIntegrationId)) { + $recipientIntegrationId = ObjectSerializer::serializeCollection($recipientIntegrationId, '', true); + } if ($recipientIntegrationId !== null) { - $queryParams['recipientIntegrationId'] = ObjectSerializer::toQueryValue($recipientIntegrationId); + $queryParams['recipientIntegrationId'] = $recipientIntegrationId; } // query params + if (is_array($exactMatch)) { + $exactMatch = ObjectSerializer::serializeCollection($exactMatch, '', true); + } if ($exactMatch !== null) { - $queryParams['exactMatch'] = ObjectSerializer::toQueryValue($exactMatch); + $queryParams['exactMatch'] = $exactMatch; } // query params + if (is_array($batchId)) { + $batchId = ObjectSerializer::serializeCollection($batchId, '', true); + } if ($batchId !== null) { - $queryParams['batchId'] = ObjectSerializer::toQueryValue($batchId); + $queryParams['batchId'] = $batchId; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -22577,58 +23781,98 @@ protected function searchCouponsAdvancedApplicationWideRequest($applicationId, $ $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } // query params + if (is_array($value)) { + $value = ObjectSerializer::serializeCollection($value, '', true); + } if ($value !== null) { - $queryParams['value'] = ObjectSerializer::toQueryValue($value); + $queryParams['value'] = $value; } // query params + if (is_array($createdBefore)) { + $createdBefore = ObjectSerializer::serializeCollection($createdBefore, '', true); + } if ($createdBefore !== null) { - $queryParams['createdBefore'] = ObjectSerializer::toQueryValue($createdBefore); + $queryParams['createdBefore'] = $createdBefore; } // query params + if (is_array($createdAfter)) { + $createdAfter = ObjectSerializer::serializeCollection($createdAfter, '', true); + } if ($createdAfter !== null) { - $queryParams['createdAfter'] = ObjectSerializer::toQueryValue($createdAfter); + $queryParams['createdAfter'] = $createdAfter; } // query params + if (is_array($valid)) { + $valid = ObjectSerializer::serializeCollection($valid, '', true); + } if ($valid !== null) { - $queryParams['valid'] = ObjectSerializer::toQueryValue($valid); + $queryParams['valid'] = $valid; } // query params + if (is_array($usable)) { + $usable = ObjectSerializer::serializeCollection($usable, '', true); + } if ($usable !== null) { - $queryParams['usable'] = ObjectSerializer::toQueryValue($usable); + $queryParams['usable'] = $usable; } // query params + if (is_array($referralId)) { + $referralId = ObjectSerializer::serializeCollection($referralId, '', true); + } if ($referralId !== null) { - $queryParams['referralId'] = ObjectSerializer::toQueryValue($referralId); + $queryParams['referralId'] = $referralId; } // query params + if (is_array($recipientIntegrationId)) { + $recipientIntegrationId = ObjectSerializer::serializeCollection($recipientIntegrationId, '', true); + } if ($recipientIntegrationId !== null) { - $queryParams['recipientIntegrationId'] = ObjectSerializer::toQueryValue($recipientIntegrationId); + $queryParams['recipientIntegrationId'] = $recipientIntegrationId; } // query params + if (is_array($batchId)) { + $batchId = ObjectSerializer::serializeCollection($batchId, '', true); + } if ($batchId !== null) { - $queryParams['batchId'] = ObjectSerializer::toQueryValue($batchId); + $queryParams['batchId'] = $batchId; } // query params + if (is_array($exactMatch)) { + $exactMatch = ObjectSerializer::serializeCollection($exactMatch, '', true); + } if ($exactMatch !== null) { - $queryParams['exactMatch'] = ObjectSerializer::toQueryValue($exactMatch); + $queryParams['exactMatch'] = $exactMatch; } // query params + if (is_array($campaignState)) { + $campaignState = ObjectSerializer::serializeCollection($campaignState, '', true); + } if ($campaignState !== null) { - $queryParams['campaignState'] = ObjectSerializer::toQueryValue($campaignState); + $queryParams['campaignState'] = $campaignState; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -22985,58 +24229,98 @@ protected function searchCouponsAdvancedApplicationWideWithoutTotalCountRequest( $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } // query params + if (is_array($value)) { + $value = ObjectSerializer::serializeCollection($value, '', true); + } if ($value !== null) { - $queryParams['value'] = ObjectSerializer::toQueryValue($value); + $queryParams['value'] = $value; } // query params + if (is_array($createdBefore)) { + $createdBefore = ObjectSerializer::serializeCollection($createdBefore, '', true); + } if ($createdBefore !== null) { - $queryParams['createdBefore'] = ObjectSerializer::toQueryValue($createdBefore); + $queryParams['createdBefore'] = $createdBefore; } // query params + if (is_array($createdAfter)) { + $createdAfter = ObjectSerializer::serializeCollection($createdAfter, '', true); + } if ($createdAfter !== null) { - $queryParams['createdAfter'] = ObjectSerializer::toQueryValue($createdAfter); + $queryParams['createdAfter'] = $createdAfter; } // query params + if (is_array($valid)) { + $valid = ObjectSerializer::serializeCollection($valid, '', true); + } if ($valid !== null) { - $queryParams['valid'] = ObjectSerializer::toQueryValue($valid); + $queryParams['valid'] = $valid; } // query params + if (is_array($usable)) { + $usable = ObjectSerializer::serializeCollection($usable, '', true); + } if ($usable !== null) { - $queryParams['usable'] = ObjectSerializer::toQueryValue($usable); + $queryParams['usable'] = $usable; } // query params + if (is_array($referralId)) { + $referralId = ObjectSerializer::serializeCollection($referralId, '', true); + } if ($referralId !== null) { - $queryParams['referralId'] = ObjectSerializer::toQueryValue($referralId); + $queryParams['referralId'] = $referralId; } // query params + if (is_array($recipientIntegrationId)) { + $recipientIntegrationId = ObjectSerializer::serializeCollection($recipientIntegrationId, '', true); + } if ($recipientIntegrationId !== null) { - $queryParams['recipientIntegrationId'] = ObjectSerializer::toQueryValue($recipientIntegrationId); + $queryParams['recipientIntegrationId'] = $recipientIntegrationId; } // query params + if (is_array($batchId)) { + $batchId = ObjectSerializer::serializeCollection($batchId, '', true); + } if ($batchId !== null) { - $queryParams['batchId'] = ObjectSerializer::toQueryValue($batchId); + $queryParams['batchId'] = $batchId; } // query params + if (is_array($exactMatch)) { + $exactMatch = ObjectSerializer::serializeCollection($exactMatch, '', true); + } if ($exactMatch !== null) { - $queryParams['exactMatch'] = ObjectSerializer::toQueryValue($exactMatch); + $queryParams['exactMatch'] = $exactMatch; } // query params + if (is_array($campaignState)) { + $campaignState = ObjectSerializer::serializeCollection($campaignState, '', true); + } if ($campaignState !== null) { - $queryParams['campaignState'] = ObjectSerializer::toQueryValue($campaignState); + $queryParams['campaignState'] = $campaignState; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -23399,54 +24683,91 @@ protected function searchCouponsAdvancedWithoutTotalCountRequest($applicationId, $multipart = false; // query params + if (is_array($pageSize)) { + $pageSize = ObjectSerializer::serializeCollection($pageSize, '', true); + } if ($pageSize !== null) { - $queryParams['pageSize'] = ObjectSerializer::toQueryValue($pageSize); + $queryParams['pageSize'] = $pageSize; } // query params + if (is_array($skip)) { + $skip = ObjectSerializer::serializeCollection($skip, '', true); + } if ($skip !== null) { - $queryParams['skip'] = ObjectSerializer::toQueryValue($skip); + $queryParams['skip'] = $skip; } // query params + if (is_array($sort)) { + $sort = ObjectSerializer::serializeCollection($sort, '', true); + } if ($sort !== null) { - $queryParams['sort'] = ObjectSerializer::toQueryValue($sort); + $queryParams['sort'] = $sort; } // query params + if (is_array($value)) { + $value = ObjectSerializer::serializeCollection($value, '', true); + } if ($value !== null) { - $queryParams['value'] = ObjectSerializer::toQueryValue($value); + $queryParams['value'] = $value; } // query params + if (is_array($createdBefore)) { + $createdBefore = ObjectSerializer::serializeCollection($createdBefore, '', true); + } if ($createdBefore !== null) { - $queryParams['createdBefore'] = ObjectSerializer::toQueryValue($createdBefore); + $queryParams['createdBefore'] = $createdBefore; } // query params + if (is_array($createdAfter)) { + $createdAfter = ObjectSerializer::serializeCollection($createdAfter, '', true); + } if ($createdAfter !== null) { - $queryParams['createdAfter'] = ObjectSerializer::toQueryValue($createdAfter); + $queryParams['createdAfter'] = $createdAfter; } // query params + if (is_array($valid)) { + $valid = ObjectSerializer::serializeCollection($valid, '', true); + } if ($valid !== null) { - $queryParams['valid'] = ObjectSerializer::toQueryValue($valid); + $queryParams['valid'] = $valid; } // query params + if (is_array($usable)) { + $usable = ObjectSerializer::serializeCollection($usable, '', true); + } if ($usable !== null) { - $queryParams['usable'] = ObjectSerializer::toQueryValue($usable); + $queryParams['usable'] = $usable; } // query params + if (is_array($referralId)) { + $referralId = ObjectSerializer::serializeCollection($referralId, '', true); + } if ($referralId !== null) { - $queryParams['referralId'] = ObjectSerializer::toQueryValue($referralId); + $queryParams['referralId'] = $referralId; } // query params + if (is_array($recipientIntegrationId)) { + $recipientIntegrationId = ObjectSerializer::serializeCollection($recipientIntegrationId, '', true); + } if ($recipientIntegrationId !== null) { - $queryParams['recipientIntegrationId'] = ObjectSerializer::toQueryValue($recipientIntegrationId); + $queryParams['recipientIntegrationId'] = $recipientIntegrationId; } // query params + if (is_array($exactMatch)) { + $exactMatch = ObjectSerializer::serializeCollection($exactMatch, '', true); + } if ($exactMatch !== null) { - $queryParams['exactMatch'] = ObjectSerializer::toQueryValue($exactMatch); + $queryParams['exactMatch'] = $exactMatch; } // query params + if (is_array($batchId)) { + $batchId = ObjectSerializer::serializeCollection($batchId, '', true); + } if ($batchId !== null) { - $queryParams['batchId'] = ObjectSerializer::toQueryValue($batchId); + $queryParams['batchId'] = $batchId; } + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -23746,6 +25067,7 @@ protected function updateAdditionalCostRequest($additionalCostId, $body) $multipart = false; + // path params if ($additionalCostId !== null) { $resourcePath = str_replace( @@ -24037,6 +25359,7 @@ protected function updateAttributeRequest($attributeId, $body) $multipart = false; + // path params if ($attributeId !== null) { $resourcePath = str_replace( @@ -24339,6 +25662,7 @@ protected function updateCampaignRequest($applicationId, $campaignId, $body) $multipart = false; + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -24660,6 +25984,7 @@ protected function updateCouponRequest($applicationId, $campaignId, $couponId, $ $multipart = false; + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -24930,6 +26255,7 @@ protected function updateCouponBatchRequest($applicationId, $campaignId, $body) $multipart = false; + // path params if ($applicationId !== null) { $resourcePath = str_replace( @@ -25251,6 +26577,7 @@ protected function updateRulesetRequest($applicationId, $campaignId, $rulesetId, $multipart = false; + // path params if ($applicationId !== null) { $resourcePath = str_replace( diff --git a/lib/ApiException.php b/lib/ApiException.php index b7bda37c..d5547cca 100644 --- a/lib/ApiException.php +++ b/lib/ApiException.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Configuration.php b/lib/Configuration.php index 199deba0..12002c3a 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -88,7 +88,7 @@ class Configuration * * @var string */ - protected $userAgent = 'OpenAPI-Generator/3.2.0/PHP'; + protected $userAgent = 'OpenAPI-Generator/3.3.0/PHP'; /** * Debug switch (default set to false) @@ -397,7 +397,7 @@ public static function toDebugReport() $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; $report .= ' The version of the OpenAPI document: 1.0.0' . PHP_EOL; - $report .= ' SDK Package Version: 3.2.0' . PHP_EOL; + $report .= ' SDK Package Version: 3.3.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/lib/HeaderSelector.php b/lib/HeaderSelector.php index f16f7d59..6d1e33d5 100644 --- a/lib/HeaderSelector.php +++ b/lib/HeaderSelector.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/APIError.php b/lib/Model/APIError.php index 553a2437..75d71efe 100644 --- a/lib/Model/APIError.php +++ b/lib/Model/APIError.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/AcceptCouponEffectProps.php b/lib/Model/AcceptCouponEffectProps.php index cf87c845..2be19f02 100644 --- a/lib/Model/AcceptCouponEffectProps.php +++ b/lib/Model/AcceptCouponEffectProps.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/AcceptReferralEffectProps.php b/lib/Model/AcceptReferralEffectProps.php index 57f35481..7048cab8 100644 --- a/lib/Model/AcceptReferralEffectProps.php +++ b/lib/Model/AcceptReferralEffectProps.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/AccessLogEntry.php b/lib/Model/AccessLogEntry.php index 36c36761..d7346ab5 100644 --- a/lib/Model/AccessLogEntry.php +++ b/lib/Model/AccessLogEntry.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/Account.php b/lib/Model/Account.php index 8a6ed076..d62a1d05 100644 --- a/lib/Model/Account.php +++ b/lib/Model/Account.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/AccountAdditionalCost.php b/lib/Model/AccountAdditionalCost.php index 8efc33bf..efd930ec 100644 --- a/lib/Model/AccountAdditionalCost.php +++ b/lib/Model/AccountAdditionalCost.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/AccountAnalytics.php b/lib/Model/AccountAnalytics.php index 7a01dee2..e76afd3f 100644 --- a/lib/Model/AccountAnalytics.php +++ b/lib/Model/AccountAnalytics.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -58,22 +58,23 @@ class AccountAnalytics implements ModelInterface, ArrayAccess */ protected static $openAPITypes = [ 'applications' => 'int', - 'activeCampaigns' => 'int', + 'liveApplications' => 'int', + 'sandboxApplications' => 'int', 'campaigns' => 'int', + 'activeCampaigns' => 'int', + 'liveActiveCampaigns' => 'int', 'coupons' => 'int', 'activeCoupons' => 'int', 'expiredCoupons' => 'int', - 'customAttributes' => 'int', 'referralCodes' => 'int', 'activeReferralCodes' => 'int', 'expiredReferralCodes' => 'int', + 'activeRules' => 'int', 'users' => 'int', 'roles' => 'int', + 'customAttributes' => 'int', 'webhooks' => 'int', - 'loyaltyPrograms' => 'int', - 'activeRules' => 'int', - 'sandboxApplications' => 'int', - 'liveApplications' => 'int' + 'loyaltyPrograms' => 'int' ]; /** @@ -83,22 +84,23 @@ class AccountAnalytics implements ModelInterface, ArrayAccess */ protected static $openAPIFormats = [ 'applications' => null, - 'activeCampaigns' => null, + 'liveApplications' => null, + 'sandboxApplications' => null, 'campaigns' => null, + 'activeCampaigns' => null, + 'liveActiveCampaigns' => null, 'coupons' => null, 'activeCoupons' => null, 'expiredCoupons' => null, - 'customAttributes' => null, 'referralCodes' => null, 'activeReferralCodes' => null, 'expiredReferralCodes' => null, + 'activeRules' => null, 'users' => null, 'roles' => null, + 'customAttributes' => null, 'webhooks' => null, - 'loyaltyPrograms' => null, - 'activeRules' => null, - 'sandboxApplications' => null, - 'liveApplications' => null + 'loyaltyPrograms' => null ]; /** @@ -129,22 +131,23 @@ public static function openAPIFormats() */ protected static $attributeMap = [ 'applications' => 'applications', - 'activeCampaigns' => 'activeCampaigns', + 'liveApplications' => 'liveApplications', + 'sandboxApplications' => 'sandboxApplications', 'campaigns' => 'campaigns', + 'activeCampaigns' => 'activeCampaigns', + 'liveActiveCampaigns' => 'liveActiveCampaigns', 'coupons' => 'coupons', 'activeCoupons' => 'activeCoupons', 'expiredCoupons' => 'expiredCoupons', - 'customAttributes' => 'customAttributes', 'referralCodes' => 'referralCodes', 'activeReferralCodes' => 'activeReferralCodes', 'expiredReferralCodes' => 'expiredReferralCodes', + 'activeRules' => 'activeRules', 'users' => 'users', 'roles' => 'roles', + 'customAttributes' => 'customAttributes', 'webhooks' => 'webhooks', - 'loyaltyPrograms' => 'loyaltyPrograms', - 'activeRules' => 'activeRules', - 'sandboxApplications' => 'sandboxApplications', - 'liveApplications' => 'liveApplications' + 'loyaltyPrograms' => 'loyaltyPrograms' ]; /** @@ -154,22 +157,23 @@ public static function openAPIFormats() */ protected static $setters = [ 'applications' => 'setApplications', - 'activeCampaigns' => 'setActiveCampaigns', + 'liveApplications' => 'setLiveApplications', + 'sandboxApplications' => 'setSandboxApplications', 'campaigns' => 'setCampaigns', + 'activeCampaigns' => 'setActiveCampaigns', + 'liveActiveCampaigns' => 'setLiveActiveCampaigns', 'coupons' => 'setCoupons', 'activeCoupons' => 'setActiveCoupons', 'expiredCoupons' => 'setExpiredCoupons', - 'customAttributes' => 'setCustomAttributes', 'referralCodes' => 'setReferralCodes', 'activeReferralCodes' => 'setActiveReferralCodes', 'expiredReferralCodes' => 'setExpiredReferralCodes', + 'activeRules' => 'setActiveRules', 'users' => 'setUsers', 'roles' => 'setRoles', + 'customAttributes' => 'setCustomAttributes', 'webhooks' => 'setWebhooks', - 'loyaltyPrograms' => 'setLoyaltyPrograms', - 'activeRules' => 'setActiveRules', - 'sandboxApplications' => 'setSandboxApplications', - 'liveApplications' => 'setLiveApplications' + 'loyaltyPrograms' => 'setLoyaltyPrograms' ]; /** @@ -179,22 +183,23 @@ public static function openAPIFormats() */ protected static $getters = [ 'applications' => 'getApplications', - 'activeCampaigns' => 'getActiveCampaigns', + 'liveApplications' => 'getLiveApplications', + 'sandboxApplications' => 'getSandboxApplications', 'campaigns' => 'getCampaigns', + 'activeCampaigns' => 'getActiveCampaigns', + 'liveActiveCampaigns' => 'getLiveActiveCampaigns', 'coupons' => 'getCoupons', 'activeCoupons' => 'getActiveCoupons', 'expiredCoupons' => 'getExpiredCoupons', - 'customAttributes' => 'getCustomAttributes', 'referralCodes' => 'getReferralCodes', 'activeReferralCodes' => 'getActiveReferralCodes', 'expiredReferralCodes' => 'getExpiredReferralCodes', + 'activeRules' => 'getActiveRules', 'users' => 'getUsers', 'roles' => 'getRoles', + 'customAttributes' => 'getCustomAttributes', 'webhooks' => 'getWebhooks', - 'loyaltyPrograms' => 'getLoyaltyPrograms', - 'activeRules' => 'getActiveRules', - 'sandboxApplications' => 'getSandboxApplications', - 'liveApplications' => 'getLiveApplications' + 'loyaltyPrograms' => 'getLoyaltyPrograms' ]; /** @@ -258,22 +263,23 @@ public function getModelName() public function __construct(array $data = null) { $this->container['applications'] = isset($data['applications']) ? $data['applications'] : null; - $this->container['activeCampaigns'] = isset($data['activeCampaigns']) ? $data['activeCampaigns'] : null; + $this->container['liveApplications'] = isset($data['liveApplications']) ? $data['liveApplications'] : null; + $this->container['sandboxApplications'] = isset($data['sandboxApplications']) ? $data['sandboxApplications'] : null; $this->container['campaigns'] = isset($data['campaigns']) ? $data['campaigns'] : null; + $this->container['activeCampaigns'] = isset($data['activeCampaigns']) ? $data['activeCampaigns'] : null; + $this->container['liveActiveCampaigns'] = isset($data['liveActiveCampaigns']) ? $data['liveActiveCampaigns'] : null; $this->container['coupons'] = isset($data['coupons']) ? $data['coupons'] : null; $this->container['activeCoupons'] = isset($data['activeCoupons']) ? $data['activeCoupons'] : null; $this->container['expiredCoupons'] = isset($data['expiredCoupons']) ? $data['expiredCoupons'] : null; - $this->container['customAttributes'] = isset($data['customAttributes']) ? $data['customAttributes'] : null; $this->container['referralCodes'] = isset($data['referralCodes']) ? $data['referralCodes'] : null; $this->container['activeReferralCodes'] = isset($data['activeReferralCodes']) ? $data['activeReferralCodes'] : null; $this->container['expiredReferralCodes'] = isset($data['expiredReferralCodes']) ? $data['expiredReferralCodes'] : null; + $this->container['activeRules'] = isset($data['activeRules']) ? $data['activeRules'] : null; $this->container['users'] = isset($data['users']) ? $data['users'] : null; $this->container['roles'] = isset($data['roles']) ? $data['roles'] : null; + $this->container['customAttributes'] = isset($data['customAttributes']) ? $data['customAttributes'] : null; $this->container['webhooks'] = isset($data['webhooks']) ? $data['webhooks'] : null; $this->container['loyaltyPrograms'] = isset($data['loyaltyPrograms']) ? $data['loyaltyPrograms'] : null; - $this->container['activeRules'] = isset($data['activeRules']) ? $data['activeRules'] : null; - $this->container['sandboxApplications'] = isset($data['sandboxApplications']) ? $data['sandboxApplications'] : null; - $this->container['liveApplications'] = isset($data['liveApplications']) ? $data['liveApplications'] : null; } /** @@ -288,12 +294,21 @@ public function listInvalidProperties() if ($this->container['applications'] === null) { $invalidProperties[] = "'applications' can't be null"; } - if ($this->container['activeCampaigns'] === null) { - $invalidProperties[] = "'activeCampaigns' can't be null"; + if ($this->container['liveApplications'] === null) { + $invalidProperties[] = "'liveApplications' can't be null"; + } + if ($this->container['sandboxApplications'] === null) { + $invalidProperties[] = "'sandboxApplications' can't be null"; } if ($this->container['campaigns'] === null) { $invalidProperties[] = "'campaigns' can't be null"; } + if ($this->container['activeCampaigns'] === null) { + $invalidProperties[] = "'activeCampaigns' can't be null"; + } + if ($this->container['liveActiveCampaigns'] === null) { + $invalidProperties[] = "'liveActiveCampaigns' can't be null"; + } if ($this->container['coupons'] === null) { $invalidProperties[] = "'coupons' can't be null"; } @@ -303,9 +318,6 @@ public function listInvalidProperties() if ($this->container['expiredCoupons'] === null) { $invalidProperties[] = "'expiredCoupons' can't be null"; } - if ($this->container['customAttributes'] === null) { - $invalidProperties[] = "'customAttributes' can't be null"; - } if ($this->container['referralCodes'] === null) { $invalidProperties[] = "'referralCodes' can't be null"; } @@ -315,27 +327,24 @@ public function listInvalidProperties() if ($this->container['expiredReferralCodes'] === null) { $invalidProperties[] = "'expiredReferralCodes' can't be null"; } + if ($this->container['activeRules'] === null) { + $invalidProperties[] = "'activeRules' can't be null"; + } if ($this->container['users'] === null) { $invalidProperties[] = "'users' can't be null"; } if ($this->container['roles'] === null) { $invalidProperties[] = "'roles' can't be null"; } + if ($this->container['customAttributes'] === null) { + $invalidProperties[] = "'customAttributes' can't be null"; + } if ($this->container['webhooks'] === null) { $invalidProperties[] = "'webhooks' can't be null"; } if ($this->container['loyaltyPrograms'] === null) { $invalidProperties[] = "'loyaltyPrograms' can't be null"; } - if ($this->container['activeRules'] === null) { - $invalidProperties[] = "'activeRules' can't be null"; - } - if ($this->container['sandboxApplications'] === null) { - $invalidProperties[] = "'sandboxApplications' can't be null"; - } - if ($this->container['liveApplications'] === null) { - $invalidProperties[] = "'liveApplications' can't be null"; - } return $invalidProperties; } @@ -364,7 +373,7 @@ public function getApplications() /** * Sets applications * - * @param int $applications Total Number of Applications inside the account + * @param int $applications Total number of applications in the account * * @return $this */ @@ -376,25 +385,49 @@ public function setApplications($applications) } /** - * Gets activeCampaigns + * Gets liveApplications * * @return int */ - public function getActiveCampaigns() + public function getLiveApplications() { - return $this->container['activeCampaigns']; + return $this->container['liveApplications']; } /** - * Sets activeCampaigns + * Sets liveApplications * - * @param int $activeCampaigns Total Number of Active Applications inside the account + * @param int $liveApplications Total number of live applications in the account * * @return $this */ - public function setActiveCampaigns($activeCampaigns) + public function setLiveApplications($liveApplications) { - $this->container['activeCampaigns'] = $activeCampaigns; + $this->container['liveApplications'] = $liveApplications; + + return $this; + } + + /** + * Gets sandboxApplications + * + * @return int + */ + public function getSandboxApplications() + { + return $this->container['sandboxApplications']; + } + + /** + * Sets sandboxApplications + * + * @param int $sandboxApplications Total number of sandbox applications in the account + * + * @return $this + */ + public function setSandboxApplications($sandboxApplications) + { + $this->container['sandboxApplications'] = $sandboxApplications; return $this; } @@ -412,7 +445,7 @@ public function getCampaigns() /** * Sets campaigns * - * @param int $campaigns Total Number of campaigns inside the account + * @param int $campaigns Total number of campaigns in the account * * @return $this */ @@ -423,6 +456,54 @@ public function setCampaigns($campaigns) return $this; } + /** + * Gets activeCampaigns + * + * @return int + */ + public function getActiveCampaigns() + { + return $this->container['activeCampaigns']; + } + + /** + * Sets activeCampaigns + * + * @param int $activeCampaigns Total number of active campaigns in the account + * + * @return $this + */ + public function setActiveCampaigns($activeCampaigns) + { + $this->container['activeCampaigns'] = $activeCampaigns; + + return $this; + } + + /** + * Gets liveActiveCampaigns + * + * @return int + */ + public function getLiveActiveCampaigns() + { + return $this->container['liveActiveCampaigns']; + } + + /** + * Sets liveActiveCampaigns + * + * @param int $liveActiveCampaigns Total number of active campaigns in live applications in the account + * + * @return $this + */ + public function setLiveActiveCampaigns($liveActiveCampaigns) + { + $this->container['liveActiveCampaigns'] = $liveActiveCampaigns; + + return $this; + } + /** * Gets coupons * @@ -436,7 +517,7 @@ public function getCoupons() /** * Sets coupons * - * @param int $coupons Total Number of coupons inside the account + * @param int $coupons Total number of coupons in the account * * @return $this */ @@ -460,7 +541,7 @@ public function getActiveCoupons() /** * Sets activeCoupons * - * @param int $activeCoupons Total Number of active coupons inside the account + * @param int $activeCoupons Total number of active coupons in the account * * @return $this */ @@ -484,7 +565,7 @@ public function getExpiredCoupons() /** * Sets expiredCoupons * - * @param int $expiredCoupons Total Number of expired coupons inside the account + * @param int $expiredCoupons Total number of expired coupons in the account * * @return $this */ @@ -495,30 +576,6 @@ public function setExpiredCoupons($expiredCoupons) return $this; } - /** - * Gets customAttributes - * - * @return int - */ - public function getCustomAttributes() - { - return $this->container['customAttributes']; - } - - /** - * Sets customAttributes - * - * @param int $customAttributes Total Number of custom attributes inside the account - * - * @return $this - */ - public function setCustomAttributes($customAttributes) - { - $this->container['customAttributes'] = $customAttributes; - - return $this; - } - /** * Gets referralCodes * @@ -532,7 +589,7 @@ public function getReferralCodes() /** * Sets referralCodes * - * @param int $referralCodes Total Number of referral codes inside the account + * @param int $referralCodes Total number of referral codes in the account * * @return $this */ @@ -556,7 +613,7 @@ public function getActiveReferralCodes() /** * Sets activeReferralCodes * - * @param int $activeReferralCodes Total Number of active referral codes inside the account + * @param int $activeReferralCodes Total number of active referral codes in the account * * @return $this */ @@ -580,7 +637,7 @@ public function getExpiredReferralCodes() /** * Sets expiredReferralCodes * - * @param int $expiredReferralCodes Total Number of expired referral codes inside the account + * @param int $expiredReferralCodes Total number of expired referral codes in the account * * @return $this */ @@ -592,169 +649,145 @@ public function setExpiredReferralCodes($expiredReferralCodes) } /** - * Gets users - * - * @return int - */ - public function getUsers() - { - return $this->container['users']; - } - - /** - * Sets users - * - * @param int $users Total Number of users inside the account - * - * @return $this - */ - public function setUsers($users) - { - $this->container['users'] = $users; - - return $this; - } - - /** - * Gets roles + * Gets activeRules * * @return int */ - public function getRoles() + public function getActiveRules() { - return $this->container['roles']; + return $this->container['activeRules']; } /** - * Sets roles + * Sets activeRules * - * @param int $roles Total Number of roles inside the account + * @param int $activeRules Total number of active rules in the account * * @return $this */ - public function setRoles($roles) + public function setActiveRules($activeRules) { - $this->container['roles'] = $roles; + $this->container['activeRules'] = $activeRules; return $this; } /** - * Gets webhooks + * Gets users * * @return int */ - public function getWebhooks() + public function getUsers() { - return $this->container['webhooks']; + return $this->container['users']; } /** - * Sets webhooks + * Sets users * - * @param int $webhooks Total Number of webhooks inside the account + * @param int $users Total number of users in the account * * @return $this */ - public function setWebhooks($webhooks) + public function setUsers($users) { - $this->container['webhooks'] = $webhooks; + $this->container['users'] = $users; return $this; } /** - * Gets loyaltyPrograms + * Gets roles * * @return int */ - public function getLoyaltyPrograms() + public function getRoles() { - return $this->container['loyaltyPrograms']; + return $this->container['roles']; } /** - * Sets loyaltyPrograms + * Sets roles * - * @param int $loyaltyPrograms Total Number of loyalty programs inside the account + * @param int $roles Total number of roles in the account * * @return $this */ - public function setLoyaltyPrograms($loyaltyPrograms) + public function setRoles($roles) { - $this->container['loyaltyPrograms'] = $loyaltyPrograms; + $this->container['roles'] = $roles; return $this; } /** - * Gets activeRules + * Gets customAttributes * * @return int */ - public function getActiveRules() + public function getCustomAttributes() { - return $this->container['activeRules']; + return $this->container['customAttributes']; } /** - * Sets activeRules + * Sets customAttributes * - * @param int $activeRules Total Number of active rules in the account + * @param int $customAttributes Total number of custom attributes in the account * * @return $this */ - public function setActiveRules($activeRules) + public function setCustomAttributes($customAttributes) { - $this->container['activeRules'] = $activeRules; + $this->container['customAttributes'] = $customAttributes; return $this; } /** - * Gets sandboxApplications + * Gets webhooks * * @return int */ - public function getSandboxApplications() + public function getWebhooks() { - return $this->container['sandboxApplications']; + return $this->container['webhooks']; } /** - * Sets sandboxApplications + * Sets webhooks * - * @param int $sandboxApplications Total Number of sandbox applications in the account + * @param int $webhooks Total number of webhooks in the account * * @return $this */ - public function setSandboxApplications($sandboxApplications) + public function setWebhooks($webhooks) { - $this->container['sandboxApplications'] = $sandboxApplications; + $this->container['webhooks'] = $webhooks; return $this; } /** - * Gets liveApplications + * Gets loyaltyPrograms * * @return int */ - public function getLiveApplications() + public function getLoyaltyPrograms() { - return $this->container['liveApplications']; + return $this->container['loyaltyPrograms']; } /** - * Sets liveApplications + * Sets loyaltyPrograms * - * @param int $liveApplications Total Number of live applications in the account + * @param int $loyaltyPrograms Total number of loyalty programs in the account * * @return $this */ - public function setLiveApplications($liveApplications) + public function setLoyaltyPrograms($loyaltyPrograms) { - $this->container['liveApplications'] = $liveApplications; + $this->container['loyaltyPrograms'] = $loyaltyPrograms; return $this; } diff --git a/lib/Model/AccountEntity.php b/lib/Model/AccountEntity.php index d709b546..9d799dd4 100644 --- a/lib/Model/AccountEntity.php +++ b/lib/Model/AccountEntity.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/AccountLimits.php b/lib/Model/AccountLimits.php index cbc4310e..e458b08f 100644 --- a/lib/Model/AccountLimits.php +++ b/lib/Model/AccountLimits.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -62,12 +62,12 @@ class AccountLimits implements ModelInterface, ArrayAccess 'activeCampaigns' => 'int', 'coupons' => 'int', 'referralCodes' => 'int', + 'activeRules' => 'int', 'liveLoyaltyPrograms' => 'int', 'sandboxLoyaltyPrograms' => 'int', 'webhooks' => 'int', 'users' => 'int', 'apiVolume' => 'int', - 'activeRules' => 'int', 'promotionTypes' => 'string[]' ]; @@ -82,12 +82,12 @@ class AccountLimits implements ModelInterface, ArrayAccess 'activeCampaigns' => null, 'coupons' => null, 'referralCodes' => null, + 'activeRules' => null, 'liveLoyaltyPrograms' => null, 'sandboxLoyaltyPrograms' => null, 'webhooks' => null, 'users' => null, 'apiVolume' => null, - 'activeRules' => null, 'promotionTypes' => null ]; @@ -123,12 +123,12 @@ public static function openAPIFormats() 'activeCampaigns' => 'activeCampaigns', 'coupons' => 'coupons', 'referralCodes' => 'referralCodes', + 'activeRules' => 'activeRules', 'liveLoyaltyPrograms' => 'liveLoyaltyPrograms', 'sandboxLoyaltyPrograms' => 'sandboxLoyaltyPrograms', 'webhooks' => 'webhooks', 'users' => 'users', 'apiVolume' => 'apiVolume', - 'activeRules' => 'activeRules', 'promotionTypes' => 'promotionTypes' ]; @@ -143,12 +143,12 @@ public static function openAPIFormats() 'activeCampaigns' => 'setActiveCampaigns', 'coupons' => 'setCoupons', 'referralCodes' => 'setReferralCodes', + 'activeRules' => 'setActiveRules', 'liveLoyaltyPrograms' => 'setLiveLoyaltyPrograms', 'sandboxLoyaltyPrograms' => 'setSandboxLoyaltyPrograms', 'webhooks' => 'setWebhooks', 'users' => 'setUsers', 'apiVolume' => 'setApiVolume', - 'activeRules' => 'setActiveRules', 'promotionTypes' => 'setPromotionTypes' ]; @@ -163,12 +163,12 @@ public static function openAPIFormats() 'activeCampaigns' => 'getActiveCampaigns', 'coupons' => 'getCoupons', 'referralCodes' => 'getReferralCodes', + 'activeRules' => 'getActiveRules', 'liveLoyaltyPrograms' => 'getLiveLoyaltyPrograms', 'sandboxLoyaltyPrograms' => 'getSandboxLoyaltyPrograms', 'webhooks' => 'getWebhooks', 'users' => 'getUsers', 'apiVolume' => 'getApiVolume', - 'activeRules' => 'getActiveRules', 'promotionTypes' => 'getPromotionTypes' ]; @@ -237,12 +237,12 @@ public function __construct(array $data = null) $this->container['activeCampaigns'] = isset($data['activeCampaigns']) ? $data['activeCampaigns'] : null; $this->container['coupons'] = isset($data['coupons']) ? $data['coupons'] : null; $this->container['referralCodes'] = isset($data['referralCodes']) ? $data['referralCodes'] : null; + $this->container['activeRules'] = isset($data['activeRules']) ? $data['activeRules'] : null; $this->container['liveLoyaltyPrograms'] = isset($data['liveLoyaltyPrograms']) ? $data['liveLoyaltyPrograms'] : null; $this->container['sandboxLoyaltyPrograms'] = isset($data['sandboxLoyaltyPrograms']) ? $data['sandboxLoyaltyPrograms'] : null; $this->container['webhooks'] = isset($data['webhooks']) ? $data['webhooks'] : null; $this->container['users'] = isset($data['users']) ? $data['users'] : null; $this->container['apiVolume'] = isset($data['apiVolume']) ? $data['apiVolume'] : null; - $this->container['activeRules'] = isset($data['activeRules']) ? $data['activeRules'] : null; $this->container['promotionTypes'] = isset($data['promotionTypes']) ? $data['promotionTypes'] : null; } @@ -270,6 +270,9 @@ public function listInvalidProperties() if ($this->container['referralCodes'] === null) { $invalidProperties[] = "'referralCodes' can't be null"; } + if ($this->container['activeRules'] === null) { + $invalidProperties[] = "'activeRules' can't be null"; + } if ($this->container['liveLoyaltyPrograms'] === null) { $invalidProperties[] = "'liveLoyaltyPrograms' can't be null"; } @@ -316,7 +319,7 @@ public function getLiveApplications() /** * Sets liveApplications * - * @param int $liveApplications Total Number of allowed live applications in the account + * @param int $liveApplications Total number of allowed live applications in the account * * @return $this */ @@ -340,7 +343,7 @@ public function getSandboxApplications() /** * Sets sandboxApplications * - * @param int $sandboxApplications Total Number of allowed sandbox applications in the account + * @param int $sandboxApplications Total number of allowed sandbox applications in the account * * @return $this */ @@ -364,7 +367,7 @@ public function getActiveCampaigns() /** * Sets activeCampaigns * - * @param int $activeCampaigns Total Number of allowed active campaigns in the account + * @param int $activeCampaigns Total number of allowed active campaigns in live applications in the account * * @return $this */ @@ -388,7 +391,7 @@ public function getCoupons() /** * Sets coupons * - * @param int $coupons Total Number of allowed coupons in the account + * @param int $coupons Total number of allowed coupons in the account * * @return $this */ @@ -412,7 +415,7 @@ public function getReferralCodes() /** * Sets referralCodes * - * @param int $referralCodes Total Number of allowed referral codes in the account + * @param int $referralCodes Total number of allowed referral codes in the account * * @return $this */ @@ -423,6 +426,30 @@ public function setReferralCodes($referralCodes) return $this; } + /** + * Gets activeRules + * + * @return int + */ + public function getActiveRules() + { + return $this->container['activeRules']; + } + + /** + * Sets activeRules + * + * @param int $activeRules Total number of allowed active rulesets in the account + * + * @return $this + */ + public function setActiveRules($activeRules) + { + $this->container['activeRules'] = $activeRules; + + return $this; + } + /** * Gets liveLoyaltyPrograms * @@ -436,7 +463,7 @@ public function getLiveLoyaltyPrograms() /** * Sets liveLoyaltyPrograms * - * @param int $liveLoyaltyPrograms Total Number of allowed live loyalty programs in the account + * @param int $liveLoyaltyPrograms Total number of allowed live loyalty programs in the account * * @return $this */ @@ -460,7 +487,7 @@ public function getSandboxLoyaltyPrograms() /** * Sets sandboxLoyaltyPrograms * - * @param int $sandboxLoyaltyPrograms Total Number of allowed sandbox loyalty programs in the account + * @param int $sandboxLoyaltyPrograms Total number of allowed sandbox loyalty programs in the account * * @return $this */ @@ -484,7 +511,7 @@ public function getWebhooks() /** * Sets webhooks * - * @param int $webhooks Total Number of allowed webhooks in the account + * @param int $webhooks Total number of allowed webhooks in the account * * @return $this */ @@ -508,7 +535,7 @@ public function getUsers() /** * Sets users * - * @param int $users Total Number of allowed users in the account + * @param int $users Total number of allowed users in the account * * @return $this */ @@ -532,7 +559,7 @@ public function getApiVolume() /** * Sets apiVolume * - * @param int $apiVolume Total allowed api volume + * @param int $apiVolume Allowed volume of API requests to the account * * @return $this */ @@ -543,30 +570,6 @@ public function setApiVolume($apiVolume) return $this; } - /** - * Gets activeRules - * - * @return int|null - */ - public function getActiveRules() - { - return $this->container['activeRules']; - } - - /** - * Sets activeRules - * - * @param int|null $activeRules Total allowed active rulesets - * - * @return $this - */ - public function setActiveRules($activeRules) - { - $this->container['activeRules'] = $activeRules; - - return $this; - } - /** * Gets promotionTypes * @@ -580,7 +583,7 @@ public function getPromotionTypes() /** * Sets promotionTypes * - * @param string[] $promotionTypes array of rulesets where webhook is used + * @param string[] $promotionTypes Array of promotion types that are employed in the account * * @return $this */ diff --git a/lib/Model/AddFreeItemEffectProps.php b/lib/Model/AddFreeItemEffectProps.php index 45932907..f45a8c7d 100644 --- a/lib/Model/AddFreeItemEffectProps.php +++ b/lib/Model/AddFreeItemEffectProps.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/AddLoyaltyPointsEffectProps.php b/lib/Model/AddLoyaltyPointsEffectProps.php index 6b38896b..b4e547c1 100644 --- a/lib/Model/AddLoyaltyPointsEffectProps.php +++ b/lib/Model/AddLoyaltyPointsEffectProps.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/AdditionalCost.php b/lib/Model/AdditionalCost.php index 661ebd69..62d3040a 100644 --- a/lib/Model/AdditionalCost.php +++ b/lib/Model/AdditionalCost.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/Application.php b/lib/Model/Application.php index 74fda770..07840fea 100644 --- a/lib/Model/Application.php +++ b/lib/Model/Application.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -72,6 +72,7 @@ class Application implements ModelInterface, ArrayAccess 'campaignPriority' => 'string', 'exclusiveCampaignsStrategy' => 'string', 'enableCascadingDiscounts' => 'bool', + 'enableFlattenedCartItems' => 'bool', 'attributesSettings' => '\TalonOne\Client\Model\AttributesSettings', 'sandbox' => 'bool', 'loyaltyPrograms' => '\TalonOne\Client\Model\LoyaltyProgram[]' @@ -97,6 +98,7 @@ class Application implements ModelInterface, ArrayAccess 'campaignPriority' => null, 'exclusiveCampaignsStrategy' => null, 'enableCascadingDiscounts' => null, + 'enableFlattenedCartItems' => null, 'attributesSettings' => null, 'sandbox' => null, 'loyaltyPrograms' => null @@ -143,6 +145,7 @@ public static function openAPIFormats() 'campaignPriority' => 'campaignPriority', 'exclusiveCampaignsStrategy' => 'exclusiveCampaignsStrategy', 'enableCascadingDiscounts' => 'enableCascadingDiscounts', + 'enableFlattenedCartItems' => 'enableFlattenedCartItems', 'attributesSettings' => 'attributesSettings', 'sandbox' => 'sandbox', 'loyaltyPrograms' => 'loyaltyPrograms' @@ -168,6 +171,7 @@ public static function openAPIFormats() 'campaignPriority' => 'setCampaignPriority', 'exclusiveCampaignsStrategy' => 'setExclusiveCampaignsStrategy', 'enableCascadingDiscounts' => 'setEnableCascadingDiscounts', + 'enableFlattenedCartItems' => 'setEnableFlattenedCartItems', 'attributesSettings' => 'setAttributesSettings', 'sandbox' => 'setSandbox', 'loyaltyPrograms' => 'setLoyaltyPrograms' @@ -193,6 +197,7 @@ public static function openAPIFormats() 'campaignPriority' => 'getCampaignPriority', 'exclusiveCampaignsStrategy' => 'getExclusiveCampaignsStrategy', 'enableCascadingDiscounts' => 'getEnableCascadingDiscounts', + 'enableFlattenedCartItems' => 'getEnableFlattenedCartItems', 'attributesSettings' => 'getAttributesSettings', 'sandbox' => 'getSandbox', 'loyaltyPrograms' => 'getLoyaltyPrograms' @@ -323,6 +328,7 @@ public function __construct(array $data = null) $this->container['campaignPriority'] = isset($data['campaignPriority']) ? $data['campaignPriority'] : null; $this->container['exclusiveCampaignsStrategy'] = isset($data['exclusiveCampaignsStrategy']) ? $data['exclusiveCampaignsStrategy'] : null; $this->container['enableCascadingDiscounts'] = isset($data['enableCascadingDiscounts']) ? $data['enableCascadingDiscounts'] : null; + $this->container['enableFlattenedCartItems'] = isset($data['enableFlattenedCartItems']) ? $data['enableFlattenedCartItems'] : null; $this->container['attributesSettings'] = isset($data['attributesSettings']) ? $data['attributesSettings'] : null; $this->container['sandbox'] = isset($data['sandbox']) ? $data['sandbox'] : null; $this->container['loyaltyPrograms'] = isset($data['loyaltyPrograms']) ? $data['loyaltyPrograms'] : null; @@ -790,6 +796,30 @@ public function setEnableCascadingDiscounts($enableCascadingDiscounts) return $this; } + /** + * Gets enableFlattenedCartItems + * + * @return bool|null + */ + public function getEnableFlattenedCartItems() + { + return $this->container['enableFlattenedCartItems']; + } + + /** + * Sets enableFlattenedCartItems + * + * @param bool|null $enableFlattenedCartItems Flag indicating if cart items of quantity larger than one should be separated into different items of quantity one + * + * @return $this + */ + public function setEnableFlattenedCartItems($enableFlattenedCartItems) + { + $this->container['enableFlattenedCartItems'] = $enableFlattenedCartItems; + + return $this; + } + /** * Gets attributesSettings * diff --git a/lib/Model/ApplicationAPIKey.php b/lib/Model/ApplicationAPIKey.php index ca6c32ce..91e503ae 100644 --- a/lib/Model/ApplicationAPIKey.php +++ b/lib/Model/ApplicationAPIKey.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -36,6 +36,7 @@ * ApplicationAPIKey Class Doc Comment * * @category Class + * @description * @package TalonOne\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -57,13 +58,14 @@ class ApplicationAPIKey implements ModelInterface, ArrayAccess * @var string[] */ protected static $openAPITypes = [ + 'title' => 'string', + 'expires' => '\DateTime', + 'platform' => 'string', 'id' => 'int', 'createdBy' => 'int', - 'title' => 'string', 'accountID' => 'int', 'applicationID' => 'int', - 'created' => '\DateTime', - 'expires' => '\DateTime' + 'created' => '\DateTime' ]; /** @@ -72,13 +74,14 @@ class ApplicationAPIKey implements ModelInterface, ArrayAccess * @var string[] */ protected static $openAPIFormats = [ + 'title' => null, + 'expires' => 'date-time', + 'platform' => null, 'id' => null, 'createdBy' => null, - 'title' => null, 'accountID' => null, 'applicationID' => null, - 'created' => 'date-time', - 'expires' => 'date-time' + 'created' => 'date-time' ]; /** @@ -108,13 +111,14 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ + 'title' => 'title', + 'expires' => 'expires', + 'platform' => 'platform', 'id' => 'id', 'createdBy' => 'createdBy', - 'title' => 'title', 'accountID' => 'accountID', 'applicationID' => 'applicationID', - 'created' => 'created', - 'expires' => 'expires' + 'created' => 'created' ]; /** @@ -123,13 +127,14 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ + 'title' => 'setTitle', + 'expires' => 'setExpires', + 'platform' => 'setPlatform', 'id' => 'setId', 'createdBy' => 'setCreatedBy', - 'title' => 'setTitle', 'accountID' => 'setAccountID', 'applicationID' => 'setApplicationID', - 'created' => 'setCreated', - 'expires' => 'setExpires' + 'created' => 'setCreated' ]; /** @@ -138,13 +143,14 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ + 'title' => 'getTitle', + 'expires' => 'getExpires', + 'platform' => 'getPlatform', 'id' => 'getId', 'createdBy' => 'getCreatedBy', - 'title' => 'getTitle', 'accountID' => 'getAccountID', 'applicationID' => 'getApplicationID', - 'created' => 'getCreated', - 'expires' => 'getExpires' + 'created' => 'getCreated' ]; /** @@ -188,9 +194,28 @@ public function getModelName() return self::$openAPIModelName; } + const PLATFORM_NONE = 'none'; + const PLATFORM_SEGMENT = 'segment'; + const PLATFORM_BRAZE = 'braze'; + const PLATFORM_MPARTICLE = 'mparticle'; + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getPlatformAllowableValues() + { + return [ + self::PLATFORM_NONE, + self::PLATFORM_SEGMENT, + self::PLATFORM_BRAZE, + self::PLATFORM_MPARTICLE, + ]; + } + /** * Associative array for storing property values @@ -207,13 +232,14 @@ public function getModelName() */ public function __construct(array $data = null) { + $this->container['title'] = isset($data['title']) ? $data['title'] : null; + $this->container['expires'] = isset($data['expires']) ? $data['expires'] : null; + $this->container['platform'] = isset($data['platform']) ? $data['platform'] : null; $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['createdBy'] = isset($data['createdBy']) ? $data['createdBy'] : null; - $this->container['title'] = isset($data['title']) ? $data['title'] : null; $this->container['accountID'] = isset($data['accountID']) ? $data['accountID'] : null; $this->container['applicationID'] = isset($data['applicationID']) ? $data['applicationID'] : null; $this->container['created'] = isset($data['created']) ? $data['created'] : null; - $this->container['expires'] = isset($data['expires']) ? $data['expires'] : null; } /** @@ -225,15 +251,26 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['title'] === null) { + $invalidProperties[] = "'title' can't be null"; + } + if ($this->container['expires'] === null) { + $invalidProperties[] = "'expires' can't be null"; + } + $allowedValues = $this->getPlatformAllowableValues(); + if (!is_null($this->container['platform']) && !in_array($this->container['platform'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'platform', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } if ($this->container['createdBy'] === null) { $invalidProperties[] = "'createdBy' can't be null"; } - if ($this->container['title'] === null) { - $invalidProperties[] = "'title' can't be null"; - } if ($this->container['accountID'] === null) { $invalidProperties[] = "'accountID' can't be null"; } @@ -243,9 +280,6 @@ public function listInvalidProperties() if ($this->container['created'] === null) { $invalidProperties[] = "'created' can't be null"; } - if ($this->container['expires'] === null) { - $invalidProperties[] = "'expires' can't be null"; - } return $invalidProperties; } @@ -262,73 +296,130 @@ public function valid() /** - * Gets id + * Gets title * - * @return int + * @return string */ - public function getId() + public function getTitle() { - return $this->container['id']; + return $this->container['title']; } /** - * Sets id + * Sets title * - * @param int $id ID of the API Key + * @param string $title Title for API Key * * @return $this */ - public function setId($id) + public function setTitle($title) { - $this->container['id'] = $id; + $this->container['title'] = $title; return $this; } /** - * Gets createdBy + * Gets expires + * + * @return \DateTime + */ + public function getExpires() + { + return $this->container['expires']; + } + + /** + * Sets expires + * + * @param \DateTime $expires The date the API key expired + * + * @return $this + */ + public function setExpires($expires) + { + $this->container['expires'] = $expires; + + return $this; + } + + /** + * Gets platform + * + * @return string|null + */ + public function getPlatform() + { + return $this->container['platform']; + } + + /** + * Sets platform + * + * @param string|null $platform Platform the API key is valid for. + * + * @return $this + */ + public function setPlatform($platform) + { + $allowedValues = $this->getPlatformAllowableValues(); + if (!is_null($platform) && !in_array($platform, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'platform', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['platform'] = $platform; + + return $this; + } + + /** + * Gets id * * @return int */ - public function getCreatedBy() + public function getId() { - return $this->container['createdBy']; + return $this->container['id']; } /** - * Sets createdBy + * Sets id * - * @param int $createdBy ID of user who created + * @param int $id ID of the API Key * * @return $this */ - public function setCreatedBy($createdBy) + public function setId($id) { - $this->container['createdBy'] = $createdBy; + $this->container['id'] = $id; return $this; } /** - * Gets title + * Gets createdBy * - * @return string + * @return int */ - public function getTitle() + public function getCreatedBy() { - return $this->container['title']; + return $this->container['createdBy']; } /** - * Sets title + * Sets createdBy * - * @param string $title Title for API Key + * @param int $createdBy ID of user who created * * @return $this */ - public function setTitle($title) + public function setCreatedBy($createdBy) { - $this->container['title'] = $title; + $this->container['createdBy'] = $createdBy; return $this; } @@ -404,30 +495,6 @@ public function setCreated($created) return $this; } - - /** - * Gets expires - * - * @return \DateTime - */ - public function getExpires() - { - return $this->container['expires']; - } - - /** - * Sets expires - * - * @param \DateTime $expires The date the API key expired - * - * @return $this - */ - public function setExpires($expires) - { - $this->container['expires'] = $expires; - - return $this; - } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/ApplicationApiHealth.php b/lib/Model/ApplicationApiHealth.php index 352f8c09..99eb786c 100644 --- a/lib/Model/ApplicationApiHealth.php +++ b/lib/Model/ApplicationApiHealth.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/ApplicationCustomer.php b/lib/Model/ApplicationCustomer.php index 5c76b304..27b2ffb1 100644 --- a/lib/Model/ApplicationCustomer.php +++ b/lib/Model/ApplicationCustomer.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -66,6 +66,7 @@ class ApplicationCustomer implements ModelInterface, ArrayAccess 'closedSessions' => 'int', 'totalSales' => 'float', 'loyaltyMemberships' => '\TalonOne\Client\Model\LoyaltyMembership[]', + 'audienceMemberships' => '\TalonOne\Client\Model\AudienceMembership[]', 'lastActivity' => '\DateTime' ]; @@ -83,6 +84,7 @@ class ApplicationCustomer implements ModelInterface, ArrayAccess 'closedSessions' => null, 'totalSales' => null, 'loyaltyMemberships' => null, + 'audienceMemberships' => null, 'lastActivity' => 'date-time' ]; @@ -121,6 +123,7 @@ public static function openAPIFormats() 'closedSessions' => 'closedSessions', 'totalSales' => 'totalSales', 'loyaltyMemberships' => 'loyaltyMemberships', + 'audienceMemberships' => 'audienceMemberships', 'lastActivity' => 'lastActivity' ]; @@ -138,6 +141,7 @@ public static function openAPIFormats() 'closedSessions' => 'setClosedSessions', 'totalSales' => 'setTotalSales', 'loyaltyMemberships' => 'setLoyaltyMemberships', + 'audienceMemberships' => 'setAudienceMemberships', 'lastActivity' => 'setLastActivity' ]; @@ -155,6 +159,7 @@ public static function openAPIFormats() 'closedSessions' => 'getClosedSessions', 'totalSales' => 'getTotalSales', 'loyaltyMemberships' => 'getLoyaltyMemberships', + 'audienceMemberships' => 'getAudienceMemberships', 'lastActivity' => 'getLastActivity' ]; @@ -226,6 +231,7 @@ public function __construct(array $data = null) $this->container['closedSessions'] = isset($data['closedSessions']) ? $data['closedSessions'] : null; $this->container['totalSales'] = isset($data['totalSales']) ? $data['totalSales'] : null; $this->container['loyaltyMemberships'] = isset($data['loyaltyMemberships']) ? $data['loyaltyMemberships'] : null; + $this->container['audienceMemberships'] = isset($data['audienceMemberships']) ? $data['audienceMemberships'] : null; $this->container['lastActivity'] = isset($data['lastActivity']) ? $data['lastActivity'] : null; } @@ -338,7 +344,7 @@ public function getIntegrationId() /** * Sets integrationId * - * @param string $integrationId The ID used for this entity in the application system. The ID used for this entity in the application system. + * @param string $integrationId The integration ID for this entity sent to and used in the Talon.One system. The integration ID for this entity sent to and used in the Talon.One system. * * @return $this */ @@ -469,6 +475,30 @@ public function setLoyaltyMemberships($loyaltyMemberships) return $this; } + /** + * Gets audienceMemberships + * + * @return \TalonOne\Client\Model\AudienceMembership[]|null + */ + public function getAudienceMemberships() + { + return $this->container['audienceMemberships']; + } + + /** + * Sets audienceMemberships + * + * @param \TalonOne\Client\Model\AudienceMembership[]|null $audienceMemberships A list of audiences the customer belongs to + * + * @return $this + */ + public function setAudienceMemberships($audienceMemberships) + { + $this->container['audienceMemberships'] = $audienceMemberships; + + return $this; + } + /** * Gets lastActivity * diff --git a/lib/Model/ApplicationCustomerEntity.php b/lib/Model/ApplicationCustomerEntity.php index 066102fa..62e700ce 100644 --- a/lib/Model/ApplicationCustomerEntity.php +++ b/lib/Model/ApplicationCustomerEntity.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/ApplicationCustomerSearch.php b/lib/Model/ApplicationCustomerSearch.php index a5f6a79e..30c4ab61 100644 --- a/lib/Model/ApplicationCustomerSearch.php +++ b/lib/Model/ApplicationCustomerSearch.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/ApplicationEntity.php b/lib/Model/ApplicationEntity.php index 611a292f..faad9b19 100644 --- a/lib/Model/ApplicationEntity.php +++ b/lib/Model/ApplicationEntity.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/ApplicationEvent.php b/lib/Model/ApplicationEvent.php index 91f0885e..33d7fbc4 100644 --- a/lib/Model/ApplicationEvent.php +++ b/lib/Model/ApplicationEvent.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/ApplicationSession.php b/lib/Model/ApplicationSession.php index e0039f2d..8d4f6203 100644 --- a/lib/Model/ApplicationSession.php +++ b/lib/Model/ApplicationSession.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -441,7 +441,7 @@ public function getIntegrationId() /** * Sets integrationId * - * @param string $integrationId The ID used for this entity in the application system. + * @param string $integrationId The integration ID for this entity sent to and used in the Talon.One system. * * @return $this */ diff --git a/lib/Model/ApplicationSessionEntity.php b/lib/Model/ApplicationSessionEntity.php index e67192b3..78ca9330 100644 --- a/lib/Model/ApplicationSessionEntity.php +++ b/lib/Model/ApplicationSessionEntity.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/Attribute.php b/lib/Model/Attribute.php index 56cb880a..e02bbe66 100644 --- a/lib/Model/Attribute.php +++ b/lib/Model/Attribute.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/AttributesMandatory.php b/lib/Model/AttributesMandatory.php index c54e92a2..8cf29b4e 100644 --- a/lib/Model/AttributesMandatory.php +++ b/lib/Model/AttributesMandatory.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/AttributesSettings.php b/lib/Model/AttributesSettings.php index 7f6820f6..8584573b 100644 --- a/lib/Model/AttributesSettings.php +++ b/lib/Model/AttributesSettings.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/Audience.php b/lib/Model/Audience.php new file mode 100644 index 00000000..b86dab6a --- /dev/null +++ b/lib/Model/Audience.php @@ -0,0 +1,524 @@ + 'int', + 'id' => 'int', + 'created' => '\DateTime', + 'name' => 'string', + 'integration' => 'string', + 'integrationId' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'accountId' => null, + 'id' => null, + 'created' => 'date-time', + 'name' => null, + 'integration' => null, + 'integrationId' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'accountId' => 'accountId', + 'id' => 'id', + 'created' => 'created', + 'name' => 'name', + 'integration' => 'integration', + 'integrationId' => 'integrationId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'accountId' => 'setAccountId', + 'id' => 'setId', + 'created' => 'setCreated', + 'name' => 'setName', + 'integration' => 'setIntegration', + 'integrationId' => 'setIntegrationId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'accountId' => 'getAccountId', + 'id' => 'getId', + 'created' => 'getCreated', + 'name' => 'getName', + 'integration' => 'getIntegration', + 'integrationId' => 'getIntegrationId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const INTEGRATION_MPARTICLE = 'mparticle'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getIntegrationAllowableValues() + { + return [ + self::INTEGRATION_MPARTICLE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['accountId'] = isset($data['accountId']) ? $data['accountId'] : null; + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['created'] = isset($data['created']) ? $data['created'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['integration'] = isset($data['integration']) ? $data['integration'] : null; + $this->container['integrationId'] = isset($data['integrationId']) ? $data['integrationId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['accountId'] === null) { + $invalidProperties[] = "'accountId' can't be null"; + } + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } + if ($this->container['created'] === null) { + $invalidProperties[] = "'created' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ((mb_strlen($this->container['name']) < 1)) { + $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 1."; + } + + if ($this->container['integration'] === null) { + $invalidProperties[] = "'integration' can't be null"; + } + $allowedValues = $this->getIntegrationAllowableValues(); + if (!is_null($this->container['integration']) && !in_array($this->container['integration'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'integration', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['integrationId'] === null) { + $invalidProperties[] = "'integrationId' can't be null"; + } + if ((mb_strlen($this->container['integrationId']) < 1)) { + $invalidProperties[] = "invalid value for 'integrationId', the character length must be bigger than or equal to 1."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets accountId + * + * @return int + */ + public function getAccountId() + { + return $this->container['accountId']; + } + + /** + * Sets accountId + * + * @param int $accountId The ID of the account that owns this entity. + * + * @return $this + */ + public function setAccountId($accountId) + { + $this->container['accountId'] = $accountId; + + return $this; + } + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id Unique ID for this entity. + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets created + * + * @return \DateTime + */ + public function getCreated() + { + return $this->container['created']; + } + + /** + * Sets created + * + * @param \DateTime $created The exact moment this entity was created. + * + * @return $this + */ + public function setCreated($created) + { + $this->container['created'] = $created; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name The human-friendly display name for this Audience. + * + * @return $this + */ + public function setName($name) + { + + if ((mb_strlen($name) < 1)) { + throw new \InvalidArgumentException('invalid length for $name when calling Audience., must be bigger than or equal to 1.'); + } + + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets integration + * + * @return string + */ + public function getIntegration() + { + return $this->container['integration']; + } + + /** + * Sets integration + * + * @param string $integration Integration that this audience was created in. + * + * @return $this + */ + public function setIntegration($integration) + { + $allowedValues = $this->getIntegrationAllowableValues(); + if (!in_array($integration, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'integration', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['integration'] = $integration; + + return $this; + } + + /** + * Gets integrationId + * + * @return string + */ + public function getIntegrationId() + { + return $this->container['integrationId']; + } + + /** + * Sets integrationId + * + * @param string $integrationId The ID of this Audience in the third-party integration + * + * @return $this + */ + public function setIntegrationId($integrationId) + { + + if ((mb_strlen($integrationId) < 1)) { + throw new \InvalidArgumentException('invalid length for $integrationId when calling Audience., must be bigger than or equal to 1.'); + } + + $this->container['integrationId'] = $integrationId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/AudienceMembership.php b/lib/Model/AudienceMembership.php new file mode 100644 index 00000000..8027a31c --- /dev/null +++ b/lib/Model/AudienceMembership.php @@ -0,0 +1,343 @@ + 'int', + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'id' => null, + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id The ID of the audience belonging to this entity. + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name The Name of the audience belonging to this entity. + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/BaseSamlConnection.php b/lib/Model/BaseSamlConnection.php index 47548479..5b8df3fb 100644 --- a/lib/Model/BaseSamlConnection.php +++ b/lib/Model/BaseSamlConnection.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/Binding.php b/lib/Model/Binding.php index 123f7c3b..5364f568 100644 --- a/lib/Model/Binding.php +++ b/lib/Model/Binding.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/Campaign.php b/lib/Model/Campaign.php index 9d28cb36..1d192e19 100644 --- a/lib/Model/Campaign.php +++ b/lib/Model/Campaign.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -62,7 +62,6 @@ class Campaign implements ModelInterface, ArrayAccess 'created' => '\DateTime', 'applicationId' => 'int', 'userId' => 'int', - 'campaignGroups' => 'int[]', 'name' => 'string', 'description' => 'string', 'startTime' => '\DateTime', @@ -75,6 +74,7 @@ class Campaign implements ModelInterface, ArrayAccess 'couponSettings' => '\TalonOne\Client\Model\CodeGeneratorSettings', 'referralSettings' => '\TalonOne\Client\Model\CodeGeneratorSettings', 'limits' => '\TalonOne\Client\Model\LimitConfig[]', + 'campaignGroups' => 'int[]', 'couponRedemptionCount' => 'int', 'referralRedemptionCount' => 'int', 'discountCount' => 'int', @@ -96,7 +96,6 @@ class Campaign implements ModelInterface, ArrayAccess 'created' => 'date-time', 'applicationId' => null, 'userId' => null, - 'campaignGroups' => null, 'name' => null, 'description' => null, 'startTime' => 'date-time', @@ -109,6 +108,7 @@ class Campaign implements ModelInterface, ArrayAccess 'couponSettings' => null, 'referralSettings' => null, 'limits' => null, + 'campaignGroups' => null, 'couponRedemptionCount' => null, 'referralRedemptionCount' => null, 'discountCount' => null, @@ -151,7 +151,6 @@ public static function openAPIFormats() 'created' => 'created', 'applicationId' => 'applicationId', 'userId' => 'userId', - 'campaignGroups' => 'campaignGroups', 'name' => 'name', 'description' => 'description', 'startTime' => 'startTime', @@ -164,6 +163,7 @@ public static function openAPIFormats() 'couponSettings' => 'couponSettings', 'referralSettings' => 'referralSettings', 'limits' => 'limits', + 'campaignGroups' => 'campaignGroups', 'couponRedemptionCount' => 'couponRedemptionCount', 'referralRedemptionCount' => 'referralRedemptionCount', 'discountCount' => 'discountCount', @@ -185,7 +185,6 @@ public static function openAPIFormats() 'created' => 'setCreated', 'applicationId' => 'setApplicationId', 'userId' => 'setUserId', - 'campaignGroups' => 'setCampaignGroups', 'name' => 'setName', 'description' => 'setDescription', 'startTime' => 'setStartTime', @@ -198,6 +197,7 @@ public static function openAPIFormats() 'couponSettings' => 'setCouponSettings', 'referralSettings' => 'setReferralSettings', 'limits' => 'setLimits', + 'campaignGroups' => 'setCampaignGroups', 'couponRedemptionCount' => 'setCouponRedemptionCount', 'referralRedemptionCount' => 'setReferralRedemptionCount', 'discountCount' => 'setDiscountCount', @@ -219,7 +219,6 @@ public static function openAPIFormats() 'created' => 'getCreated', 'applicationId' => 'getApplicationId', 'userId' => 'getUserId', - 'campaignGroups' => 'getCampaignGroups', 'name' => 'getName', 'description' => 'getDescription', 'startTime' => 'getStartTime', @@ -232,6 +231,7 @@ public static function openAPIFormats() 'couponSettings' => 'getCouponSettings', 'referralSettings' => 'getReferralSettings', 'limits' => 'getLimits', + 'campaignGroups' => 'getCampaignGroups', 'couponRedemptionCount' => 'getCouponRedemptionCount', 'referralRedemptionCount' => 'getReferralRedemptionCount', 'discountCount' => 'getDiscountCount', @@ -341,7 +341,6 @@ public function __construct(array $data = null) $this->container['created'] = isset($data['created']) ? $data['created'] : null; $this->container['applicationId'] = isset($data['applicationId']) ? $data['applicationId'] : null; $this->container['userId'] = isset($data['userId']) ? $data['userId'] : null; - $this->container['campaignGroups'] = isset($data['campaignGroups']) ? $data['campaignGroups'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['startTime'] = isset($data['startTime']) ? $data['startTime'] : null; @@ -354,6 +353,7 @@ public function __construct(array $data = null) $this->container['couponSettings'] = isset($data['couponSettings']) ? $data['couponSettings'] : null; $this->container['referralSettings'] = isset($data['referralSettings']) ? $data['referralSettings'] : null; $this->container['limits'] = isset($data['limits']) ? $data['limits'] : null; + $this->container['campaignGroups'] = isset($data['campaignGroups']) ? $data['campaignGroups'] : null; $this->container['couponRedemptionCount'] = isset($data['couponRedemptionCount']) ? $data['couponRedemptionCount'] : null; $this->container['referralRedemptionCount'] = isset($data['referralRedemptionCount']) ? $data['referralRedemptionCount'] : null; $this->container['discountCount'] = isset($data['discountCount']) ? $data['discountCount'] : null; @@ -527,30 +527,6 @@ public function setUserId($userId) return $this; } - /** - * Gets campaignGroups - * - * @return int[]|null - */ - public function getCampaignGroups() - { - return $this->container['campaignGroups']; - } - - /** - * Sets campaignGroups - * - * @param int[]|null $campaignGroups The IDs of the campaign groups that own this entity. - * - * @return $this - */ - public function setCampaignGroups($campaignGroups) - { - $this->container['campaignGroups'] = $campaignGroups; - - return $this; - } - /** * Gets name * @@ -862,6 +838,30 @@ public function setLimits($limits) return $this; } + /** + * Gets campaignGroups + * + * @return int[]|null + */ + public function getCampaignGroups() + { + return $this->container['campaignGroups']; + } + + /** + * Sets campaignGroups + * + * @param int[]|null $campaignGroups The IDs of the campaign groups that own this entity. + * + * @return $this + */ + public function setCampaignGroups($campaignGroups) + { + $this->container['campaignGroups'] = $campaignGroups; + + return $this; + } + /** * Gets couponRedemptionCount * diff --git a/lib/Model/CampaignAnalytics.php b/lib/Model/CampaignAnalytics.php index f7a00698..90b3c196 100644 --- a/lib/Model/CampaignAnalytics.php +++ b/lib/Model/CampaignAnalytics.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -78,7 +78,11 @@ class CampaignAnalytics implements ModelInterface, ArrayAccess 'couponsCreated' => 'int', 'totalCouponsCreated' => 'int', 'referralsCreated' => 'int', - 'totalReferralsCreated' => 'int' + 'totalReferralsCreated' => 'int', + 'addedLoyaltyPoints' => 'float', + 'totalAddedLoyaltyPoints' => 'float', + 'deductedLoyaltyPoints' => 'float', + 'totalDeductedLoyaltyPoints' => 'float' ]; /** @@ -107,7 +111,11 @@ class CampaignAnalytics implements ModelInterface, ArrayAccess 'couponsCreated' => null, 'totalCouponsCreated' => null, 'referralsCreated' => null, - 'totalReferralsCreated' => null + 'totalReferralsCreated' => null, + 'addedLoyaltyPoints' => null, + 'totalAddedLoyaltyPoints' => null, + 'deductedLoyaltyPoints' => null, + 'totalDeductedLoyaltyPoints' => null ]; /** @@ -157,7 +165,11 @@ public static function openAPIFormats() 'couponsCreated' => 'couponsCreated', 'totalCouponsCreated' => 'totalCouponsCreated', 'referralsCreated' => 'referralsCreated', - 'totalReferralsCreated' => 'totalReferralsCreated' + 'totalReferralsCreated' => 'totalReferralsCreated', + 'addedLoyaltyPoints' => 'addedLoyaltyPoints', + 'totalAddedLoyaltyPoints' => 'totalAddedLoyaltyPoints', + 'deductedLoyaltyPoints' => 'deductedLoyaltyPoints', + 'totalDeductedLoyaltyPoints' => 'totalDeductedLoyaltyPoints' ]; /** @@ -186,7 +198,11 @@ public static function openAPIFormats() 'couponsCreated' => 'setCouponsCreated', 'totalCouponsCreated' => 'setTotalCouponsCreated', 'referralsCreated' => 'setReferralsCreated', - 'totalReferralsCreated' => 'setTotalReferralsCreated' + 'totalReferralsCreated' => 'setTotalReferralsCreated', + 'addedLoyaltyPoints' => 'setAddedLoyaltyPoints', + 'totalAddedLoyaltyPoints' => 'setTotalAddedLoyaltyPoints', + 'deductedLoyaltyPoints' => 'setDeductedLoyaltyPoints', + 'totalDeductedLoyaltyPoints' => 'setTotalDeductedLoyaltyPoints' ]; /** @@ -215,7 +231,11 @@ public static function openAPIFormats() 'couponsCreated' => 'getCouponsCreated', 'totalCouponsCreated' => 'getTotalCouponsCreated', 'referralsCreated' => 'getReferralsCreated', - 'totalReferralsCreated' => 'getTotalReferralsCreated' + 'totalReferralsCreated' => 'getTotalReferralsCreated', + 'addedLoyaltyPoints' => 'getAddedLoyaltyPoints', + 'totalAddedLoyaltyPoints' => 'getTotalAddedLoyaltyPoints', + 'deductedLoyaltyPoints' => 'getDeductedLoyaltyPoints', + 'totalDeductedLoyaltyPoints' => 'getTotalDeductedLoyaltyPoints' ]; /** @@ -299,6 +319,10 @@ public function __construct(array $data = null) $this->container['totalCouponsCreated'] = isset($data['totalCouponsCreated']) ? $data['totalCouponsCreated'] : null; $this->container['referralsCreated'] = isset($data['referralsCreated']) ? $data['referralsCreated'] : null; $this->container['totalReferralsCreated'] = isset($data['totalReferralsCreated']) ? $data['totalReferralsCreated'] : null; + $this->container['addedLoyaltyPoints'] = isset($data['addedLoyaltyPoints']) ? $data['addedLoyaltyPoints'] : null; + $this->container['totalAddedLoyaltyPoints'] = isset($data['totalAddedLoyaltyPoints']) ? $data['totalAddedLoyaltyPoints'] : null; + $this->container['deductedLoyaltyPoints'] = isset($data['deductedLoyaltyPoints']) ? $data['deductedLoyaltyPoints'] : null; + $this->container['totalDeductedLoyaltyPoints'] = isset($data['totalDeductedLoyaltyPoints']) ? $data['totalDeductedLoyaltyPoints'] : null; } /** @@ -373,6 +397,18 @@ public function listInvalidProperties() if ($this->container['totalReferralsCreated'] === null) { $invalidProperties[] = "'totalReferralsCreated' can't be null"; } + if ($this->container['addedLoyaltyPoints'] === null) { + $invalidProperties[] = "'addedLoyaltyPoints' can't be null"; + } + if ($this->container['totalAddedLoyaltyPoints'] === null) { + $invalidProperties[] = "'totalAddedLoyaltyPoints' can't be null"; + } + if ($this->container['deductedLoyaltyPoints'] === null) { + $invalidProperties[] = "'deductedLoyaltyPoints' can't be null"; + } + if ($this->container['totalDeductedLoyaltyPoints'] === null) { + $invalidProperties[] = "'totalDeductedLoyaltyPoints' can't be null"; + } return $invalidProperties; } @@ -891,6 +927,102 @@ public function setTotalReferralsCreated($totalReferralsCreated) return $this; } + + /** + * Gets addedLoyaltyPoints + * + * @return float + */ + public function getAddedLoyaltyPoints() + { + return $this->container['addedLoyaltyPoints']; + } + + /** + * Sets addedLoyaltyPoints + * + * @param float $addedLoyaltyPoints Number of added loyalty points in the campaign in a specific interval. + * + * @return $this + */ + public function setAddedLoyaltyPoints($addedLoyaltyPoints) + { + $this->container['addedLoyaltyPoints'] = $addedLoyaltyPoints; + + return $this; + } + + /** + * Gets totalAddedLoyaltyPoints + * + * @return float + */ + public function getTotalAddedLoyaltyPoints() + { + return $this->container['totalAddedLoyaltyPoints']; + } + + /** + * Sets totalAddedLoyaltyPoints + * + * @param float $totalAddedLoyaltyPoints Number of added loyalty points in the campaign since it began. + * + * @return $this + */ + public function setTotalAddedLoyaltyPoints($totalAddedLoyaltyPoints) + { + $this->container['totalAddedLoyaltyPoints'] = $totalAddedLoyaltyPoints; + + return $this; + } + + /** + * Gets deductedLoyaltyPoints + * + * @return float + */ + public function getDeductedLoyaltyPoints() + { + return $this->container['deductedLoyaltyPoints']; + } + + /** + * Sets deductedLoyaltyPoints + * + * @param float $deductedLoyaltyPoints Number of deducted loyalty points in the campaign in a specific interval. + * + * @return $this + */ + public function setDeductedLoyaltyPoints($deductedLoyaltyPoints) + { + $this->container['deductedLoyaltyPoints'] = $deductedLoyaltyPoints; + + return $this; + } + + /** + * Gets totalDeductedLoyaltyPoints + * + * @return float + */ + public function getTotalDeductedLoyaltyPoints() + { + return $this->container['totalDeductedLoyaltyPoints']; + } + + /** + * Sets totalDeductedLoyaltyPoints + * + * @param float $totalDeductedLoyaltyPoints Number of deducted loyalty points in the campaign since it began. + * + * @return $this + */ + public function setTotalDeductedLoyaltyPoints($totalDeductedLoyaltyPoints) + { + $this->container['totalDeductedLoyaltyPoints'] = $totalDeductedLoyaltyPoints; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/CampaignCopy.php b/lib/Model/CampaignCopy.php index c7f88457..9968b0e8 100644 --- a/lib/Model/CampaignCopy.php +++ b/lib/Model/CampaignCopy.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -58,7 +58,7 @@ class CampaignCopy implements ModelInterface, ArrayAccess */ protected static $openAPITypes = [ 'name' => 'string', - 'applicationIds' => 'string[]', + 'applicationIds' => 'int[]', 'description' => 'string', 'startTime' => '\DateTime', 'endTime' => '\DateTime', @@ -264,7 +264,7 @@ public function setName($name) /** * Gets applicationIds * - * @return string[] + * @return int[] */ public function getApplicationIds() { @@ -274,7 +274,7 @@ public function getApplicationIds() /** * Sets applicationIds * - * @param string[] $applicationIds Application IDs of the applications to which a campaign should be copied to + * @param int[] $applicationIds Application IDs of the applications to which a campaign should be copied to * * @return $this */ diff --git a/lib/Model/CampaignEntity.php b/lib/Model/CampaignEntity.php index 449ab567..ac114db1 100644 --- a/lib/Model/CampaignEntity.php +++ b/lib/Model/CampaignEntity.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/CampaignGroup.php b/lib/Model/CampaignGroup.php index c4a1013b..c0a29bb0 100644 --- a/lib/Model/CampaignGroup.php +++ b/lib/Model/CampaignGroup.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/CampaignGroupEntity.php b/lib/Model/CampaignGroupEntity.php index 106bd536..20951753 100644 --- a/lib/Model/CampaignGroupEntity.php +++ b/lib/Model/CampaignGroupEntity.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/CampaignSearch.php b/lib/Model/CampaignSearch.php index 8eefacad..660c0e59 100644 --- a/lib/Model/CampaignSearch.php +++ b/lib/Model/CampaignSearch.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/CampaignSet.php b/lib/Model/CampaignSet.php index 98578188..fcecdc81 100644 --- a/lib/Model/CampaignSet.php +++ b/lib/Model/CampaignSet.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/CampaignSetBranchNode.php b/lib/Model/CampaignSetBranchNode.php index 6ecd8a22..d95ae8c2 100644 --- a/lib/Model/CampaignSetBranchNode.php +++ b/lib/Model/CampaignSetBranchNode.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/CampaignSetLeafNode.php b/lib/Model/CampaignSetLeafNode.php index 7b19140c..ebd1255b 100644 --- a/lib/Model/CampaignSetLeafNode.php +++ b/lib/Model/CampaignSetLeafNode.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/CampaignSetNode.php b/lib/Model/CampaignSetNode.php index 5b48fb2f..6550b737 100644 --- a/lib/Model/CampaignSetNode.php +++ b/lib/Model/CampaignSetNode.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/CartItem.php b/lib/Model/CartItem.php index aa17598b..7c786507 100644 --- a/lib/Model/CartItem.php +++ b/lib/Model/CartItem.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/CartItemAdjustment.php b/lib/Model/CartItemAdjustment.php index c32ce260..3c69a8d2 100644 --- a/lib/Model/CartItemAdjustment.php +++ b/lib/Model/CartItemAdjustment.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/Change.php b/lib/Model/Change.php index 05efc80b..feba7893 100644 --- a/lib/Model/Change.php +++ b/lib/Model/Change.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/ChangeProfilePassword.php b/lib/Model/ChangeProfilePassword.php index 27119961..4e89b0cb 100644 --- a/lib/Model/ChangeProfilePassword.php +++ b/lib/Model/ChangeProfilePassword.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/CodeGeneratorSettings.php b/lib/Model/CodeGeneratorSettings.php index 85355fb4..a968d382 100644 --- a/lib/Model/CodeGeneratorSettings.php +++ b/lib/Model/CodeGeneratorSettings.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/Coupon.php b/lib/Model/Coupon.php index 9af62884..dd99d1db 100644 --- a/lib/Model/Coupon.php +++ b/lib/Model/Coupon.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/CouponConstraints.php b/lib/Model/CouponConstraints.php index bd43b9a9..075f3db9 100644 --- a/lib/Model/CouponConstraints.php +++ b/lib/Model/CouponConstraints.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/CouponCreatedEffectProps.php b/lib/Model/CouponCreatedEffectProps.php index 503b4122..7673225d 100644 --- a/lib/Model/CouponCreatedEffectProps.php +++ b/lib/Model/CouponCreatedEffectProps.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/CouponRejectionReason.php b/lib/Model/CouponRejectionReason.php index 0e590446..dfe5545f 100644 --- a/lib/Model/CouponRejectionReason.php +++ b/lib/Model/CouponRejectionReason.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/CouponReservations.php b/lib/Model/CouponReservations.php index 68ceabad..87516f54 100644 --- a/lib/Model/CouponReservations.php +++ b/lib/Model/CouponReservations.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/CouponSearch.php b/lib/Model/CouponSearch.php index 373224c8..d4239a0b 100644 --- a/lib/Model/CouponSearch.php +++ b/lib/Model/CouponSearch.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/CouponValue.php b/lib/Model/CouponValue.php index fc2c8c54..664e3ddf 100644 --- a/lib/Model/CouponValue.php +++ b/lib/Model/CouponValue.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/CreateApplicationAPIKey.php b/lib/Model/CreateApplicationAPIKey.php index a86fa606..26b0e083 100644 --- a/lib/Model/CreateApplicationAPIKey.php +++ b/lib/Model/CreateApplicationAPIKey.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -58,7 +58,8 @@ class CreateApplicationAPIKey implements ModelInterface, ArrayAccess */ protected static $openAPITypes = [ 'title' => 'string', - 'expires' => '\DateTime' + 'expires' => '\DateTime', + 'platform' => 'string' ]; /** @@ -68,7 +69,8 @@ class CreateApplicationAPIKey implements ModelInterface, ArrayAccess */ protected static $openAPIFormats = [ 'title' => null, - 'expires' => 'date-time' + 'expires' => 'date-time', + 'platform' => null ]; /** @@ -99,7 +101,8 @@ public static function openAPIFormats() */ protected static $attributeMap = [ 'title' => 'title', - 'expires' => 'expires' + 'expires' => 'expires', + 'platform' => 'platform' ]; /** @@ -109,7 +112,8 @@ public static function openAPIFormats() */ protected static $setters = [ 'title' => 'setTitle', - 'expires' => 'setExpires' + 'expires' => 'setExpires', + 'platform' => 'setPlatform' ]; /** @@ -119,7 +123,8 @@ public static function openAPIFormats() */ protected static $getters = [ 'title' => 'getTitle', - 'expires' => 'getExpires' + 'expires' => 'getExpires', + 'platform' => 'getPlatform' ]; /** @@ -163,9 +168,28 @@ public function getModelName() return self::$openAPIModelName; } + const PLATFORM_NONE = 'none'; + const PLATFORM_SEGMENT = 'segment'; + const PLATFORM_BRAZE = 'braze'; + const PLATFORM_MPARTICLE = 'mparticle'; + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getPlatformAllowableValues() + { + return [ + self::PLATFORM_NONE, + self::PLATFORM_SEGMENT, + self::PLATFORM_BRAZE, + self::PLATFORM_MPARTICLE, + ]; + } + /** * Associative array for storing property values @@ -184,6 +208,7 @@ public function __construct(array $data = null) { $this->container['title'] = isset($data['title']) ? $data['title'] : null; $this->container['expires'] = isset($data['expires']) ? $data['expires'] : null; + $this->container['platform'] = isset($data['platform']) ? $data['platform'] : null; } /** @@ -201,6 +226,14 @@ public function listInvalidProperties() if ($this->container['expires'] === null) { $invalidProperties[] = "'expires' can't be null"; } + $allowedValues = $this->getPlatformAllowableValues(); + if (!is_null($this->container['platform']) && !in_array($this->container['platform'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'platform', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + return $invalidProperties; } @@ -263,6 +296,39 @@ public function setExpires($expires) return $this; } + + /** + * Gets platform + * + * @return string|null + */ + public function getPlatform() + { + return $this->container['platform']; + } + + /** + * Sets platform + * + * @param string|null $platform Platform the API key is valid for. + * + * @return $this + */ + public function setPlatform($platform) + { + $allowedValues = $this->getPlatformAllowableValues(); + if (!is_null($platform) && !in_array($platform, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'platform', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['platform'] = $platform; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/CustomerActivityReport.php b/lib/Model/CustomerActivityReport.php index 6dd77e74..6bff37f4 100644 --- a/lib/Model/CustomerActivityReport.php +++ b/lib/Model/CustomerActivityReport.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -326,7 +326,7 @@ public function getIntegrationId() /** * Sets integrationId * - * @param string $integrationId The ID used for this entity in the application system. + * @param string $integrationId The integration ID for this entity sent to and used in the Talon.One system. * * @return $this */ diff --git a/lib/Model/CustomerAnalytics.php b/lib/Model/CustomerAnalytics.php index 4dd19e52..870d94e5 100644 --- a/lib/Model/CustomerAnalytics.php +++ b/lib/Model/CustomerAnalytics.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/CustomerInventory.php b/lib/Model/CustomerInventory.php index 6d958c2f..28408f44 100644 --- a/lib/Model/CustomerInventory.php +++ b/lib/Model/CustomerInventory.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -58,6 +58,7 @@ class CustomerInventory implements ModelInterface, ArrayAccess */ protected static $openAPITypes = [ 'profile' => '\TalonOne\Client\Model\CustomerProfile', + 'loyalty' => '\TalonOne\Client\Model\Loyalty', 'referrals' => '\TalonOne\Client\Model\Referral[]', 'coupons' => '\TalonOne\Client\Model\Coupon[]' ]; @@ -69,6 +70,7 @@ class CustomerInventory implements ModelInterface, ArrayAccess */ protected static $openAPIFormats = [ 'profile' => null, + 'loyalty' => null, 'referrals' => null, 'coupons' => null ]; @@ -101,6 +103,7 @@ public static function openAPIFormats() */ protected static $attributeMap = [ 'profile' => 'profile', + 'loyalty' => 'loyalty', 'referrals' => 'referrals', 'coupons' => 'coupons' ]; @@ -112,6 +115,7 @@ public static function openAPIFormats() */ protected static $setters = [ 'profile' => 'setProfile', + 'loyalty' => 'setLoyalty', 'referrals' => 'setReferrals', 'coupons' => 'setCoupons' ]; @@ -123,6 +127,7 @@ public static function openAPIFormats() */ protected static $getters = [ 'profile' => 'getProfile', + 'loyalty' => 'getLoyalty', 'referrals' => 'getReferrals', 'coupons' => 'getCoupons' ]; @@ -188,6 +193,7 @@ public function getModelName() public function __construct(array $data = null) { $this->container['profile'] = isset($data['profile']) ? $data['profile'] : null; + $this->container['loyalty'] = isset($data['loyalty']) ? $data['loyalty'] : null; $this->container['referrals'] = isset($data['referrals']) ? $data['referrals'] : null; $this->container['coupons'] = isset($data['coupons']) ? $data['coupons'] : null; } @@ -240,6 +246,30 @@ public function setProfile($profile) return $this; } + /** + * Gets loyalty + * + * @return \TalonOne\Client\Model\Loyalty|null + */ + public function getLoyalty() + { + return $this->container['loyalty']; + } + + /** + * Sets loyalty + * + * @param \TalonOne\Client\Model\Loyalty|null $loyalty loyalty + * + * @return $this + */ + public function setLoyalty($loyalty) + { + $this->container['loyalty'] = $loyalty; + + return $this; + } + /** * Gets referrals * diff --git a/lib/Model/CustomerProfile.php b/lib/Model/CustomerProfile.php index 63c8f77b..07d19659 100644 --- a/lib/Model/CustomerProfile.php +++ b/lib/Model/CustomerProfile.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -65,6 +65,7 @@ class CustomerProfile implements ModelInterface, ArrayAccess 'closedSessions' => 'int', 'totalSales' => 'float', 'loyaltyMemberships' => '\TalonOne\Client\Model\LoyaltyMembership[]', + 'audienceMemberships' => '\TalonOne\Client\Model\AudienceMembership[]', 'lastActivity' => '\DateTime' ]; @@ -81,6 +82,7 @@ class CustomerProfile implements ModelInterface, ArrayAccess 'closedSessions' => null, 'totalSales' => null, 'loyaltyMemberships' => null, + 'audienceMemberships' => null, 'lastActivity' => 'date-time' ]; @@ -118,6 +120,7 @@ public static function openAPIFormats() 'closedSessions' => 'closedSessions', 'totalSales' => 'totalSales', 'loyaltyMemberships' => 'loyaltyMemberships', + 'audienceMemberships' => 'audienceMemberships', 'lastActivity' => 'lastActivity' ]; @@ -134,6 +137,7 @@ public static function openAPIFormats() 'closedSessions' => 'setClosedSessions', 'totalSales' => 'setTotalSales', 'loyaltyMemberships' => 'setLoyaltyMemberships', + 'audienceMemberships' => 'setAudienceMemberships', 'lastActivity' => 'setLastActivity' ]; @@ -150,6 +154,7 @@ public static function openAPIFormats() 'closedSessions' => 'getClosedSessions', 'totalSales' => 'getTotalSales', 'loyaltyMemberships' => 'getLoyaltyMemberships', + 'audienceMemberships' => 'getAudienceMemberships', 'lastActivity' => 'getLastActivity' ]; @@ -220,6 +225,7 @@ public function __construct(array $data = null) $this->container['closedSessions'] = isset($data['closedSessions']) ? $data['closedSessions'] : null; $this->container['totalSales'] = isset($data['totalSales']) ? $data['totalSales'] : null; $this->container['loyaltyMemberships'] = isset($data['loyaltyMemberships']) ? $data['loyaltyMemberships'] : null; + $this->container['audienceMemberships'] = isset($data['audienceMemberships']) ? $data['audienceMemberships'] : null; $this->container['lastActivity'] = isset($data['lastActivity']) ? $data['lastActivity'] : null; } @@ -281,7 +287,7 @@ public function getIntegrationId() /** * Sets integrationId * - * @param string $integrationId The ID used for this entity in the application system. + * @param string $integrationId The integration ID for this entity sent to and used in the Talon.One system. * * @return $this */ @@ -436,6 +442,30 @@ public function setLoyaltyMemberships($loyaltyMemberships) return $this; } + /** + * Gets audienceMemberships + * + * @return \TalonOne\Client\Model\AudienceMembership[]|null + */ + public function getAudienceMemberships() + { + return $this->container['audienceMemberships']; + } + + /** + * Sets audienceMemberships + * + * @param \TalonOne\Client\Model\AudienceMembership[]|null $audienceMemberships A list of audiences the customer belongs to + * + * @return $this + */ + public function setAudienceMemberships($audienceMemberships) + { + $this->container['audienceMemberships'] = $audienceMemberships; + + return $this; + } + /** * Gets lastActivity * diff --git a/lib/Model/CustomerProfileUpdate.php b/lib/Model/CustomerProfileAudienceRequest.php similarity index 84% rename from lib/Model/CustomerProfileUpdate.php rename to lib/Model/CustomerProfileAudienceRequest.php index 5b6a5d46..45772fbb 100644 --- a/lib/Model/CustomerProfileUpdate.php +++ b/lib/Model/CustomerProfileAudienceRequest.php @@ -1,6 +1,6 @@ '\TalonOne\Client\Model\CustomerProfile' + 'data' => '\TalonOne\Client\Model\CustomerProfileAudienceRequestItem[]' ]; /** @@ -66,7 +66,7 @@ class CustomerProfileUpdate implements ModelInterface, ArrayAccess * @var string[] */ protected static $openAPIFormats = [ - 'customerProfile' => null + 'data' => null ]; /** @@ -96,7 +96,7 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'customerProfile' => 'customerProfile' + 'data' => 'data' ]; /** @@ -105,7 +105,7 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'customerProfile' => 'setCustomerProfile' + 'data' => 'setData' ]; /** @@ -114,7 +114,7 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'customerProfile' => 'getCustomerProfile' + 'data' => 'getData' ]; /** @@ -177,7 +177,7 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['customerProfile'] = isset($data['customerProfile']) ? $data['customerProfile'] : null; + $this->container['data'] = isset($data['data']) ? $data['data'] : null; } /** @@ -189,9 +189,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['customerProfile'] === null) { - $invalidProperties[] = "'customerProfile' can't be null"; - } return $invalidProperties; } @@ -208,25 +205,25 @@ public function valid() /** - * Gets customerProfile + * Gets data * - * @return \TalonOne\Client\Model\CustomerProfile + * @return \TalonOne\Client\Model\CustomerProfileAudienceRequestItem[]|null */ - public function getCustomerProfile() + public function getData() { - return $this->container['customerProfile']; + return $this->container['data']; } /** - * Sets customerProfile + * Sets data * - * @param \TalonOne\Client\Model\CustomerProfile $customerProfile customerProfile + * @param \TalonOne\Client\Model\CustomerProfileAudienceRequestItem[]|null $data data * * @return $this */ - public function setCustomerProfile($customerProfile) + public function setData($data) { - $this->container['customerProfile'] = $customerProfile; + $this->container['data'] = $data; return $this; } diff --git a/lib/Model/CustomerProfileAudienceRequestItem.php b/lib/Model/CustomerProfileAudienceRequestItem.php new file mode 100644 index 00000000..70bd556a --- /dev/null +++ b/lib/Model/CustomerProfileAudienceRequestItem.php @@ -0,0 +1,408 @@ + 'string', + 'profileIntegrationId' => 'string', + 'audienceId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'action' => null, + 'profileIntegrationId' => null, + 'audienceId' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'action' => 'action', + 'profileIntegrationId' => 'profileIntegrationId', + 'audienceId' => 'audienceId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'action' => 'setAction', + 'profileIntegrationId' => 'setProfileIntegrationId', + 'audienceId' => 'setAudienceId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'action' => 'getAction', + 'profileIntegrationId' => 'getProfileIntegrationId', + 'audienceId' => 'getAudienceId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const ACTION_ADD = 'add'; + const ACTION_DELETE = 'delete'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getActionAllowableValues() + { + return [ + self::ACTION_ADD, + self::ACTION_DELETE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['action'] = isset($data['action']) ? $data['action'] : null; + $this->container['profileIntegrationId'] = isset($data['profileIntegrationId']) ? $data['profileIntegrationId'] : null; + $this->container['audienceId'] = isset($data['audienceId']) ? $data['audienceId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['action'] === null) { + $invalidProperties[] = "'action' can't be null"; + } + $allowedValues = $this->getActionAllowableValues(); + if (!is_null($this->container['action']) && !in_array($this->container['action'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'action', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['profileIntegrationId'] === null) { + $invalidProperties[] = "'profileIntegrationId' can't be null"; + } + if ($this->container['audienceId'] === null) { + $invalidProperties[] = "'audienceId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets action + * + * @return string + */ + public function getAction() + { + return $this->container['action']; + } + + /** + * Sets action + * + * @param string $action action + * + * @return $this + */ + public function setAction($action) + { + $allowedValues = $this->getActionAllowableValues(); + if (!in_array($action, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'action', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['action'] = $action; + + return $this; + } + + /** + * Gets profileIntegrationId + * + * @return string + */ + public function getProfileIntegrationId() + { + return $this->container['profileIntegrationId']; + } + + /** + * Sets profileIntegrationId + * + * @param string $profileIntegrationId profileIntegrationId + * + * @return $this + */ + public function setProfileIntegrationId($profileIntegrationId) + { + $this->container['profileIntegrationId'] = $profileIntegrationId; + + return $this; + } + + /** + * Gets audienceId + * + * @return int + */ + public function getAudienceId() + { + return $this->container['audienceId']; + } + + /** + * Sets audienceId + * + * @param int $audienceId audienceId + * + * @return $this + */ + public function setAudienceId($audienceId) + { + $this->container['audienceId'] = $audienceId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/CustomerProfileIntegrationRequestV2.php b/lib/Model/CustomerProfileIntegrationRequestV2.php new file mode 100644 index 00000000..9971fc41 --- /dev/null +++ b/lib/Model/CustomerProfileIntegrationRequestV2.php @@ -0,0 +1,366 @@ + 'object', + 'responseContent' => 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'attributes' => null, + 'responseContent' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'attributes' => 'attributes', + 'responseContent' => 'responseContent' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'attributes' => 'setAttributes', + 'responseContent' => 'setResponseContent' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'attributes' => 'getAttributes', + 'responseContent' => 'getResponseContent' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const RESPONSE_CONTENT_CUSTOMER_PROFILE = 'customerProfile'; + const RESPONSE_CONTENT_TRIGGERED_CAMPAIGNS = 'triggeredCampaigns'; + const RESPONSE_CONTENT_LOYALTY = 'loyalty'; + const RESPONSE_CONTENT_EVENT = 'event'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getResponseContentAllowableValues() + { + return [ + self::RESPONSE_CONTENT_CUSTOMER_PROFILE, + self::RESPONSE_CONTENT_TRIGGERED_CAMPAIGNS, + self::RESPONSE_CONTENT_LOYALTY, + self::RESPONSE_CONTENT_EVENT, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['attributes'] = isset($data['attributes']) ? $data['attributes'] : null; + $this->container['responseContent'] = isset($data['responseContent']) ? $data['responseContent'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets attributes + * + * @return object|null + */ + public function getAttributes() + { + return $this->container['attributes']; + } + + /** + * Sets attributes + * + * @param object|null $attributes Arbitrary properties associated with this item + * + * @return $this + */ + public function setAttributes($attributes) + { + $this->container['attributes'] = $attributes; + + return $this; + } + + /** + * Gets responseContent + * + * @return string[]|null + */ + public function getResponseContent() + { + return $this->container['responseContent']; + } + + /** + * Sets responseContent + * + * @param string[]|null $responseContent Optional list of requested information to be present on the response related to the customer profile update. Currently supported: \"customerProfile\", \"triggeredCampaigns\", \"loyalty\" and \"event\". + * + * @return $this + */ + public function setResponseContent($responseContent) + { + $allowedValues = $this->getResponseContentAllowableValues(); + if (!is_null($responseContent) && array_diff($responseContent, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'responseContent', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['responseContent'] = $responseContent; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/CustomerProfileSearchQuery.php b/lib/Model/CustomerProfileSearchQuery.php index 6c45430a..1f6ce514 100644 --- a/lib/Model/CustomerProfileSearchQuery.php +++ b/lib/Model/CustomerProfileSearchQuery.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/CustomerSession.php b/lib/Model/CustomerSession.php index a1e6da1f..2529c531 100644 --- a/lib/Model/CustomerSession.php +++ b/lib/Model/CustomerSession.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -351,7 +351,7 @@ public function getIntegrationId() /** * Sets integrationId * - * @param string $integrationId The ID used for this entity in the application system. + * @param string $integrationId The integration ID for this entity sent to and used in the Talon.One system. * * @return $this */ diff --git a/lib/Model/CustomerSessionV2.php b/lib/Model/CustomerSessionV2.php index dc3507d9..e0afbcff 100644 --- a/lib/Model/CustomerSessionV2.php +++ b/lib/Model/CustomerSessionV2.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -360,7 +360,7 @@ public function getIntegrationId() /** * Sets integrationId * - * @param string $integrationId The ID used for this entity in the application system. + * @param string $integrationId The integration ID for this entity sent to and used in the Talon.One system. * * @return $this */ diff --git a/lib/Model/DeductLoyaltyPointsEffectProps.php b/lib/Model/DeductLoyaltyPointsEffectProps.php index 5756f763..0278e64f 100644 --- a/lib/Model/DeductLoyaltyPointsEffectProps.php +++ b/lib/Model/DeductLoyaltyPointsEffectProps.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/Effect.php b/lib/Model/Effect.php index 74b62149..54066a6c 100644 --- a/lib/Model/Effect.php +++ b/lib/Model/Effect.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/EffectEntity.php b/lib/Model/EffectEntity.php index 3788cfa0..eb59a2ba 100644 --- a/lib/Model/EffectEntity.php +++ b/lib/Model/EffectEntity.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/EmailEntity.php b/lib/Model/EmailEntity.php index 75399bf1..50ef3910 100644 --- a/lib/Model/EmailEntity.php +++ b/lib/Model/EmailEntity.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/Entity.php b/lib/Model/Entity.php index b0ba7dde..e20f1a32 100644 --- a/lib/Model/Entity.php +++ b/lib/Model/Entity.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/EntityWithTalangVisibleID.php b/lib/Model/EntityWithTalangVisibleID.php index c8f29a1b..935dba67 100644 --- a/lib/Model/EntityWithTalangVisibleID.php +++ b/lib/Model/EntityWithTalangVisibleID.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/Environment.php b/lib/Model/Environment.php index d21f18b3..3b0fe081 100644 --- a/lib/Model/Environment.php +++ b/lib/Model/Environment.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/ErrorEffectProps.php b/lib/Model/ErrorEffectProps.php index f6f8d170..be5f1420 100644 --- a/lib/Model/ErrorEffectProps.php +++ b/lib/Model/ErrorEffectProps.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/ErrorResponse.php b/lib/Model/ErrorResponse.php index b3d8074b..c21b7e9d 100644 --- a/lib/Model/ErrorResponse.php +++ b/lib/Model/ErrorResponse.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/ErrorSource.php b/lib/Model/ErrorSource.php index 3d4d6176..6a02a937 100644 --- a/lib/Model/ErrorSource.php +++ b/lib/Model/ErrorSource.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/Event.php b/lib/Model/Event.php index 6b0d27f7..482e9548 100644 --- a/lib/Model/Event.php +++ b/lib/Model/Event.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/EventType.php b/lib/Model/EventType.php index 8874ffaf..6ddd8c1d 100644 --- a/lib/Model/EventType.php +++ b/lib/Model/EventType.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/Export.php b/lib/Model/Export.php index 893db4c2..fb7d1507 100644 --- a/lib/Model/Export.php +++ b/lib/Model/Export.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/FeatureFlag.php b/lib/Model/FeatureFlag.php index aa55603d..afe86a8c 100644 --- a/lib/Model/FeatureFlag.php +++ b/lib/Model/FeatureFlag.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/FeatureFlags.php b/lib/Model/FeatureFlags.php index a9a07973..9eb640ce 100644 --- a/lib/Model/FeatureFlags.php +++ b/lib/Model/FeatureFlags.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/FeaturesFeed.php b/lib/Model/FeaturesFeed.php index b5d4cbeb..cf4faa1e 100644 --- a/lib/Model/FeaturesFeed.php +++ b/lib/Model/FeaturesFeed.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/FeedNotification.php b/lib/Model/FeedNotification.php index 8975fcb8..50cf300a 100644 --- a/lib/Model/FeedNotification.php +++ b/lib/Model/FeedNotification.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/FuncArgDef.php b/lib/Model/FuncArgDef.php index f0d333b7..083c9b68 100644 --- a/lib/Model/FuncArgDef.php +++ b/lib/Model/FuncArgDef.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/FunctionDef.php b/lib/Model/FunctionDef.php index 2c9f4838..b1f62aa4 100644 --- a/lib/Model/FunctionDef.php +++ b/lib/Model/FunctionDef.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/Import.php b/lib/Model/Import.php index d75bcf5c..248018ff 100644 --- a/lib/Model/Import.php +++ b/lib/Model/Import.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/ImportCoupons.php b/lib/Model/ImportCoupons.php index 06b970cd..f45eaf0c 100644 --- a/lib/Model/ImportCoupons.php +++ b/lib/Model/ImportCoupons.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse200.php b/lib/Model/InlineResponse200.php index c401ba74..82e4f2dc 100644 --- a/lib/Model/InlineResponse200.php +++ b/lib/Model/InlineResponse200.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse2001.php b/lib/Model/InlineResponse2001.php index 614e884b..8e2850d1 100644 --- a/lib/Model/InlineResponse2001.php +++ b/lib/Model/InlineResponse2001.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse20010.php b/lib/Model/InlineResponse20010.php index 8782c651..34f141b4 100644 --- a/lib/Model/InlineResponse20010.php +++ b/lib/Model/InlineResponse20010.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse20011.php b/lib/Model/InlineResponse20011.php index 9c23b49f..a08883e6 100644 --- a/lib/Model/InlineResponse20011.php +++ b/lib/Model/InlineResponse20011.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse20012.php b/lib/Model/InlineResponse20012.php index f7ec40cd..3e5e878d 100644 --- a/lib/Model/InlineResponse20012.php +++ b/lib/Model/InlineResponse20012.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -58,6 +58,7 @@ class InlineResponse20012 implements ModelInterface, ArrayAccess */ protected static $openAPITypes = [ 'totalResultSize' => 'int', + 'hasMore' => 'bool', 'data' => '\TalonOne\Client\Model\ApplicationCustomer[]' ]; @@ -68,6 +69,7 @@ class InlineResponse20012 implements ModelInterface, ArrayAccess */ protected static $openAPIFormats = [ 'totalResultSize' => null, + 'hasMore' => null, 'data' => null ]; @@ -99,6 +101,7 @@ public static function openAPIFormats() */ protected static $attributeMap = [ 'totalResultSize' => 'totalResultSize', + 'hasMore' => 'hasMore', 'data' => 'data' ]; @@ -109,6 +112,7 @@ public static function openAPIFormats() */ protected static $setters = [ 'totalResultSize' => 'setTotalResultSize', + 'hasMore' => 'setHasMore', 'data' => 'setData' ]; @@ -119,6 +123,7 @@ public static function openAPIFormats() */ protected static $getters = [ 'totalResultSize' => 'getTotalResultSize', + 'hasMore' => 'getHasMore', 'data' => 'getData' ]; @@ -183,6 +188,7 @@ public function getModelName() public function __construct(array $data = null) { $this->container['totalResultSize'] = isset($data['totalResultSize']) ? $data['totalResultSize'] : null; + $this->container['hasMore'] = isset($data['hasMore']) ? $data['hasMore'] : null; $this->container['data'] = isset($data['data']) ? $data['data'] : null; } @@ -195,9 +201,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['totalResultSize'] === null) { - $invalidProperties[] = "'totalResultSize' can't be null"; - } if ($this->container['data'] === null) { $invalidProperties[] = "'data' can't be null"; } @@ -219,7 +222,7 @@ public function valid() /** * Gets totalResultSize * - * @return int + * @return int|null */ public function getTotalResultSize() { @@ -229,7 +232,7 @@ public function getTotalResultSize() /** * Sets totalResultSize * - * @param int $totalResultSize totalResultSize + * @param int|null $totalResultSize totalResultSize * * @return $this */ @@ -240,6 +243,30 @@ public function setTotalResultSize($totalResultSize) return $this; } + /** + * Gets hasMore + * + * @return bool|null + */ + public function getHasMore() + { + return $this->container['hasMore']; + } + + /** + * Sets hasMore + * + * @param bool|null $hasMore hasMore + * + * @return $this + */ + public function setHasMore($hasMore) + { + $this->container['hasMore'] = $hasMore; + + return $this; + } + /** * Gets data * diff --git a/lib/Model/InlineResponse20013.php b/lib/Model/InlineResponse20013.php index 195f9d46..e206b51f 100644 --- a/lib/Model/InlineResponse20013.php +++ b/lib/Model/InlineResponse20013.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse20014.php b/lib/Model/InlineResponse20014.php index fae298fe..1b57ab29 100644 --- a/lib/Model/InlineResponse20014.php +++ b/lib/Model/InlineResponse20014.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse20015.php b/lib/Model/InlineResponse20015.php index 77140320..8543be5e 100644 --- a/lib/Model/InlineResponse20015.php +++ b/lib/Model/InlineResponse20015.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse20016.php b/lib/Model/InlineResponse20016.php index 355283b2..f9a19c4e 100644 --- a/lib/Model/InlineResponse20016.php +++ b/lib/Model/InlineResponse20016.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse20017.php b/lib/Model/InlineResponse20017.php index 6c17a0db..f93508eb 100644 --- a/lib/Model/InlineResponse20017.php +++ b/lib/Model/InlineResponse20017.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse20018.php b/lib/Model/InlineResponse20018.php index f3c736ad..35ee5d84 100644 --- a/lib/Model/InlineResponse20018.php +++ b/lib/Model/InlineResponse20018.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse20019.php b/lib/Model/InlineResponse20019.php index 81475272..22b1e729 100644 --- a/lib/Model/InlineResponse20019.php +++ b/lib/Model/InlineResponse20019.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse2002.php b/lib/Model/InlineResponse2002.php index f5f7a07b..161ff776 100644 --- a/lib/Model/InlineResponse2002.php +++ b/lib/Model/InlineResponse2002.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse20020.php b/lib/Model/InlineResponse20020.php index f6f82fae..1c6078ba 100644 --- a/lib/Model/InlineResponse20020.php +++ b/lib/Model/InlineResponse20020.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse20021.php b/lib/Model/InlineResponse20021.php index 25f2ba05..da228047 100644 --- a/lib/Model/InlineResponse20021.php +++ b/lib/Model/InlineResponse20021.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse20022.php b/lib/Model/InlineResponse20022.php index ac5996a4..dddd43f0 100644 --- a/lib/Model/InlineResponse20022.php +++ b/lib/Model/InlineResponse20022.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse20023.php b/lib/Model/InlineResponse20023.php index a589f5d8..6264b2ec 100644 --- a/lib/Model/InlineResponse20023.php +++ b/lib/Model/InlineResponse20023.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse20024.php b/lib/Model/InlineResponse20024.php index 6a97952c..683a83e9 100644 --- a/lib/Model/InlineResponse20024.php +++ b/lib/Model/InlineResponse20024.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse20025.php b/lib/Model/InlineResponse20025.php index 20d1b1f0..d81c3e06 100644 --- a/lib/Model/InlineResponse20025.php +++ b/lib/Model/InlineResponse20025.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse20026.php b/lib/Model/InlineResponse20026.php index 993b4b49..1d3e56dd 100644 --- a/lib/Model/InlineResponse20026.php +++ b/lib/Model/InlineResponse20026.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse20027.php b/lib/Model/InlineResponse20027.php index 60df1a8a..d53d7f0a 100644 --- a/lib/Model/InlineResponse20027.php +++ b/lib/Model/InlineResponse20027.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse20028.php b/lib/Model/InlineResponse20028.php index b6ec7eec..8fb8402b 100644 --- a/lib/Model/InlineResponse20028.php +++ b/lib/Model/InlineResponse20028.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse20029.php b/lib/Model/InlineResponse20029.php index f1cd4ebe..c24c4f27 100644 --- a/lib/Model/InlineResponse20029.php +++ b/lib/Model/InlineResponse20029.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse2003.php b/lib/Model/InlineResponse2003.php index 423ee30b..15344ea9 100644 --- a/lib/Model/InlineResponse2003.php +++ b/lib/Model/InlineResponse2003.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse20030.php b/lib/Model/InlineResponse20030.php index f510032e..ca0eca22 100644 --- a/lib/Model/InlineResponse20030.php +++ b/lib/Model/InlineResponse20030.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse2004.php b/lib/Model/InlineResponse2004.php index ee052f6c..e9b1b118 100644 --- a/lib/Model/InlineResponse2004.php +++ b/lib/Model/InlineResponse2004.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse2005.php b/lib/Model/InlineResponse2005.php index ea8c7606..f29d0989 100644 --- a/lib/Model/InlineResponse2005.php +++ b/lib/Model/InlineResponse2005.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse2006.php b/lib/Model/InlineResponse2006.php index d28605ad..ea866f00 100644 --- a/lib/Model/InlineResponse2006.php +++ b/lib/Model/InlineResponse2006.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse2007.php b/lib/Model/InlineResponse2007.php index 59e44f61..a3f1fc4d 100644 --- a/lib/Model/InlineResponse2007.php +++ b/lib/Model/InlineResponse2007.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse2008.php b/lib/Model/InlineResponse2008.php index 93eb6592..94be82bd 100644 --- a/lib/Model/InlineResponse2008.php +++ b/lib/Model/InlineResponse2008.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/InlineResponse2009.php b/lib/Model/InlineResponse2009.php index 404b391e..4a7ee132 100644 --- a/lib/Model/InlineResponse2009.php +++ b/lib/Model/InlineResponse2009.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/IntegrationEntity.php b/lib/Model/IntegrationEntity.php index 9d335150..16069b3e 100644 --- a/lib/Model/IntegrationEntity.php +++ b/lib/Model/IntegrationEntity.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -229,7 +229,7 @@ public function getIntegrationId() /** * Sets integrationId * - * @param string $integrationId The ID used for this entity in the application system. + * @param string $integrationId The integration ID for this entity sent to and used in the Talon.One system. * * @return $this */ diff --git a/lib/Model/IntegrationEvent.php b/lib/Model/IntegrationEvent.php index 36933d10..11813f57 100644 --- a/lib/Model/IntegrationEvent.php +++ b/lib/Model/IntegrationEvent.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/IntegrationProfileEntity.php b/lib/Model/IntegrationProfileEntity.php index 294a7114..bbdf6bc7 100644 --- a/lib/Model/IntegrationProfileEntity.php +++ b/lib/Model/IntegrationProfileEntity.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/IntegrationRequest.php b/lib/Model/IntegrationRequest.php index a762874a..d8dc618d 100644 --- a/lib/Model/IntegrationRequest.php +++ b/lib/Model/IntegrationRequest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/IntegrationState.php b/lib/Model/IntegrationState.php index d5dcdc22..d6d74996 100644 --- a/lib/Model/IntegrationState.php +++ b/lib/Model/IntegrationState.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/IntegrationStateV2.php b/lib/Model/IntegrationStateV2.php index d8cfecb7..fa50733f 100644 --- a/lib/Model/IntegrationStateV2.php +++ b/lib/Model/IntegrationStateV2.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/LedgerEntry.php b/lib/Model/LedgerEntry.php index bcb26685..296a3b5a 100644 --- a/lib/Model/LedgerEntry.php +++ b/lib/Model/LedgerEntry.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/LibraryAttribute.php b/lib/Model/LibraryAttribute.php index bfc69898..9416af75 100644 --- a/lib/Model/LibraryAttribute.php +++ b/lib/Model/LibraryAttribute.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/LimitConfig.php b/lib/Model/LimitConfig.php index 33d99ade..646d6f86 100644 --- a/lib/Model/LimitConfig.php +++ b/lib/Model/LimitConfig.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/LoginParams.php b/lib/Model/LoginParams.php index 10b72da6..a65642b9 100644 --- a/lib/Model/LoginParams.php +++ b/lib/Model/LoginParams.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/Loyalty.php b/lib/Model/Loyalty.php index 941e3f3b..40631971 100644 --- a/lib/Model/Loyalty.php +++ b/lib/Model/Loyalty.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/LoyaltyLedger.php b/lib/Model/LoyaltyLedger.php index 056912be..a4f90aac 100644 --- a/lib/Model/LoyaltyLedger.php +++ b/lib/Model/LoyaltyLedger.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/LoyaltyLedgerEntry.php b/lib/Model/LoyaltyLedgerEntry.php index 2e656814..5ca68f6c 100644 --- a/lib/Model/LoyaltyLedgerEntry.php +++ b/lib/Model/LoyaltyLedgerEntry.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/LoyaltyMembership.php b/lib/Model/LoyaltyMembership.php index 038ceb79..02cc84f4 100644 --- a/lib/Model/LoyaltyMembership.php +++ b/lib/Model/LoyaltyMembership.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/LoyaltyPoints.php b/lib/Model/LoyaltyPoints.php index 20e50763..15b3f5e0 100644 --- a/lib/Model/LoyaltyPoints.php +++ b/lib/Model/LoyaltyPoints.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/LoyaltyProgram.php b/lib/Model/LoyaltyProgram.php index 3bbe689e..35e5a9dc 100644 --- a/lib/Model/LoyaltyProgram.php +++ b/lib/Model/LoyaltyProgram.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/LoyaltyProgramBalance.php b/lib/Model/LoyaltyProgramBalance.php index 622caecf..1c5a0fdd 100644 --- a/lib/Model/LoyaltyProgramBalance.php +++ b/lib/Model/LoyaltyProgramBalance.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/LoyaltyProgramLedgers.php b/lib/Model/LoyaltyProgramLedgers.php index d49fbfc0..8afa5e00 100644 --- a/lib/Model/LoyaltyProgramLedgers.php +++ b/lib/Model/LoyaltyProgramLedgers.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/LoyaltyStatistics.php b/lib/Model/LoyaltyStatistics.php new file mode 100644 index 00000000..3f6a2d11 --- /dev/null +++ b/lib/Model/LoyaltyStatistics.php @@ -0,0 +1,410 @@ + 'float', + 'totalPendingPoints' => 'float', + 'totalSpentPoints' => 'float', + 'totalExpiredPoints' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'totalActivePoints' => null, + 'totalPendingPoints' => null, + 'totalSpentPoints' => null, + 'totalExpiredPoints' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'totalActivePoints' => 'totalActivePoints', + 'totalPendingPoints' => 'totalPendingPoints', + 'totalSpentPoints' => 'totalSpentPoints', + 'totalExpiredPoints' => 'totalExpiredPoints' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'totalActivePoints' => 'setTotalActivePoints', + 'totalPendingPoints' => 'setTotalPendingPoints', + 'totalSpentPoints' => 'setTotalSpentPoints', + 'totalExpiredPoints' => 'setTotalExpiredPoints' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'totalActivePoints' => 'getTotalActivePoints', + 'totalPendingPoints' => 'getTotalPendingPoints', + 'totalSpentPoints' => 'getTotalSpentPoints', + 'totalExpiredPoints' => 'getTotalExpiredPoints' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['totalActivePoints'] = isset($data['totalActivePoints']) ? $data['totalActivePoints'] : null; + $this->container['totalPendingPoints'] = isset($data['totalPendingPoints']) ? $data['totalPendingPoints'] : null; + $this->container['totalSpentPoints'] = isset($data['totalSpentPoints']) ? $data['totalSpentPoints'] : null; + $this->container['totalExpiredPoints'] = isset($data['totalExpiredPoints']) ? $data['totalExpiredPoints'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['totalActivePoints'] === null) { + $invalidProperties[] = "'totalActivePoints' can't be null"; + } + if ($this->container['totalPendingPoints'] === null) { + $invalidProperties[] = "'totalPendingPoints' can't be null"; + } + if ($this->container['totalSpentPoints'] === null) { + $invalidProperties[] = "'totalSpentPoints' can't be null"; + } + if ($this->container['totalExpiredPoints'] === null) { + $invalidProperties[] = "'totalExpiredPoints' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets totalActivePoints + * + * @return float + */ + public function getTotalActivePoints() + { + return $this->container['totalActivePoints']; + } + + /** + * Sets totalActivePoints + * + * @param float $totalActivePoints Total of active points for this loyalty program + * + * @return $this + */ + public function setTotalActivePoints($totalActivePoints) + { + $this->container['totalActivePoints'] = $totalActivePoints; + + return $this; + } + + /** + * Gets totalPendingPoints + * + * @return float + */ + public function getTotalPendingPoints() + { + return $this->container['totalPendingPoints']; + } + + /** + * Sets totalPendingPoints + * + * @param float $totalPendingPoints Total of pending points for this loyalty program + * + * @return $this + */ + public function setTotalPendingPoints($totalPendingPoints) + { + $this->container['totalPendingPoints'] = $totalPendingPoints; + + return $this; + } + + /** + * Gets totalSpentPoints + * + * @return float + */ + public function getTotalSpentPoints() + { + return $this->container['totalSpentPoints']; + } + + /** + * Sets totalSpentPoints + * + * @param float $totalSpentPoints Total of spent points for this loyalty program + * + * @return $this + */ + public function setTotalSpentPoints($totalSpentPoints) + { + $this->container['totalSpentPoints'] = $totalSpentPoints; + + return $this; + } + + /** + * Gets totalExpiredPoints + * + * @return float + */ + public function getTotalExpiredPoints() + { + return $this->container['totalExpiredPoints']; + } + + /** + * Sets totalExpiredPoints + * + * @param float $totalExpiredPoints Total of expired points for this loyalty program + * + * @return $this + */ + public function setTotalExpiredPoints($totalExpiredPoints) + { + $this->container['totalExpiredPoints'] = $totalExpiredPoints; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/LoyaltySubLedger.php b/lib/Model/LoyaltySubLedger.php index 6f306f71..4bbc67f4 100644 --- a/lib/Model/LoyaltySubLedger.php +++ b/lib/Model/LoyaltySubLedger.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -287,7 +287,7 @@ public function getTotal() /** * Sets total * - * @param float $total ⚠️ Deprecated: Please use 'totalActivePoints' property instead. Current Balance of Loyalty Program's ledger. + * @param float $total ⚠️ Deprecated: Please use 'totalActivePoints' property instead. Total amount of currently active and available points in the customer's balance * * @return $this */ @@ -311,7 +311,7 @@ public function getTotalActivePoints() /** * Sets totalActivePoints * - * @param float $totalActivePoints Current Balance of Loyalty Program's ledger. + * @param float $totalActivePoints Total amount of currently active and available points in the customer's balance * * @return $this */ @@ -335,7 +335,7 @@ public function getTotalPendingPoints() /** * Sets totalPendingPoints * - * @param float $totalPendingPoints totalPendingPoints + * @param float $totalPendingPoints Total amount of pending points, which are not active yet but will become active in the future * * @return $this */ @@ -359,7 +359,7 @@ public function getTotalSpentPoints() /** * Sets totalSpentPoints * - * @param float $totalSpentPoints totalSpentPoints + * @param float $totalSpentPoints Total amount of points already spent by this customer * * @return $this */ @@ -383,7 +383,7 @@ public function getTotalExpiredPoints() /** * Sets totalExpiredPoints * - * @param float $totalExpiredPoints totalExpiredPoints + * @param float $totalExpiredPoints Total amount of points, that expired without ever being spent * * @return $this */ diff --git a/lib/Model/ManagerConfig.php b/lib/Model/ManagerConfig.php index 20b36bc7..2dda3f0f 100644 --- a/lib/Model/ManagerConfig.php +++ b/lib/Model/ManagerConfig.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/Meta.php b/lib/Model/Meta.php index 26b04499..adb856b6 100644 --- a/lib/Model/Meta.php +++ b/lib/Model/Meta.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/ModelInterface.php b/lib/Model/ModelInterface.php index fdd52b63..143641e6 100644 --- a/lib/Model/ModelInterface.php +++ b/lib/Model/ModelInterface.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/MultiApplicationEntity.php b/lib/Model/MultiApplicationEntity.php index f9556464..0032e46a 100644 --- a/lib/Model/MultiApplicationEntity.php +++ b/lib/Model/MultiApplicationEntity.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/MultipleCustomerProfileIntegrationRequest.php b/lib/Model/MultipleCustomerProfileIntegrationRequest.php new file mode 100644 index 00000000..6762717b --- /dev/null +++ b/lib/Model/MultipleCustomerProfileIntegrationRequest.php @@ -0,0 +1,307 @@ + '\TalonOne\Client\Model\MultipleCustomerProfileIntegrationRequestItem[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'customerProfiles' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'customerProfiles' => 'customerProfiles' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'customerProfiles' => 'setCustomerProfiles' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'customerProfiles' => 'getCustomerProfiles' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['customerProfiles'] = isset($data['customerProfiles']) ? $data['customerProfiles'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets customerProfiles + * + * @return \TalonOne\Client\Model\MultipleCustomerProfileIntegrationRequestItem[]|null + */ + public function getCustomerProfiles() + { + return $this->container['customerProfiles']; + } + + /** + * Sets customerProfiles + * + * @param \TalonOne\Client\Model\MultipleCustomerProfileIntegrationRequestItem[]|null $customerProfiles customerProfiles + * + * @return $this + */ + public function setCustomerProfiles($customerProfiles) + { + $this->container['customerProfiles'] = $customerProfiles; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MultipleCustomerProfileIntegrationRequestItem.php b/lib/Model/MultipleCustomerProfileIntegrationRequestItem.php new file mode 100644 index 00000000..eab58f1b --- /dev/null +++ b/lib/Model/MultipleCustomerProfileIntegrationRequestItem.php @@ -0,0 +1,341 @@ + 'object', + 'integrationId' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'attributes' => null, + 'integrationId' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'attributes' => 'attributes', + 'integrationId' => 'integrationId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'attributes' => 'setAttributes', + 'integrationId' => 'setIntegrationId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'attributes' => 'getAttributes', + 'integrationId' => 'getIntegrationId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['attributes'] = isset($data['attributes']) ? $data['attributes'] : null; + $this->container['integrationId'] = isset($data['integrationId']) ? $data['integrationId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['integrationId'] === null) { + $invalidProperties[] = "'integrationId' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets attributes + * + * @return object|null + */ + public function getAttributes() + { + return $this->container['attributes']; + } + + /** + * Sets attributes + * + * @param object|null $attributes Arbitrary properties associated with this item + * + * @return $this + */ + public function setAttributes($attributes) + { + $this->container['attributes'] = $attributes; + + return $this; + } + + /** + * Gets integrationId + * + * @return string + */ + public function getIntegrationId() + { + return $this->container['integrationId']; + } + + /** + * Sets integrationId + * + * @param string $integrationId The custom identifier for this profile, must be unique within the account. + * + * @return $this + */ + public function setIntegrationId($integrationId) + { + $this->container['integrationId'] = $integrationId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MultipleCustomerProfileIntegrationResponseV2.php b/lib/Model/MultipleCustomerProfileIntegrationResponseV2.php new file mode 100644 index 00000000..f2def2e0 --- /dev/null +++ b/lib/Model/MultipleCustomerProfileIntegrationResponseV2.php @@ -0,0 +1,307 @@ + '\TalonOne\Client\Model\IntegrationStateV2[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'integrationStates' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'integrationStates' => 'integrationStates' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'integrationStates' => 'setIntegrationStates' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'integrationStates' => 'getIntegrationStates' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['integrationStates'] = isset($data['integrationStates']) ? $data['integrationStates'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets integrationStates + * + * @return \TalonOne\Client\Model\IntegrationStateV2[]|null + */ + public function getIntegrationStates() + { + return $this->container['integrationStates']; + } + + /** + * Sets integrationStates + * + * @param \TalonOne\Client\Model\IntegrationStateV2[]|null $integrationStates integrationStates + * + * @return $this + */ + public function setIntegrationStates($integrationStates) + { + $this->container['integrationStates'] = $integrationStates; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MutableEntity.php b/lib/Model/MutableEntity.php index 9e8e3726..d340dc19 100644 --- a/lib/Model/MutableEntity.php +++ b/lib/Model/MutableEntity.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewAccount.php b/lib/Model/NewAccount.php index 8a44eec3..6fbe3c13 100644 --- a/lib/Model/NewAccount.php +++ b/lib/Model/NewAccount.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewAccountSignUp.php b/lib/Model/NewAccountSignUp.php index b2a819e5..0152cedb 100644 --- a/lib/Model/NewAccountSignUp.php +++ b/lib/Model/NewAccountSignUp.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewAdditionalCost.php b/lib/Model/NewAdditionalCost.php index f149ae3e..d16869c4 100644 --- a/lib/Model/NewAdditionalCost.php +++ b/lib/Model/NewAdditionalCost.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewApplication.php b/lib/Model/NewApplication.php index 252ef7ab..e94987ec 100644 --- a/lib/Model/NewApplication.php +++ b/lib/Model/NewApplication.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -68,6 +68,7 @@ class NewApplication implements ModelInterface, ArrayAccess 'campaignPriority' => 'string', 'exclusiveCampaignsStrategy' => 'string', 'enableCascadingDiscounts' => 'bool', + 'enableFlattenedCartItems' => 'bool', 'attributesSettings' => '\TalonOne\Client\Model\AttributesSettings', 'sandbox' => 'bool', 'key' => 'string' @@ -89,6 +90,7 @@ class NewApplication implements ModelInterface, ArrayAccess 'campaignPriority' => null, 'exclusiveCampaignsStrategy' => null, 'enableCascadingDiscounts' => null, + 'enableFlattenedCartItems' => null, 'attributesSettings' => null, 'sandbox' => null, 'key' => null @@ -131,6 +133,7 @@ public static function openAPIFormats() 'campaignPriority' => 'campaignPriority', 'exclusiveCampaignsStrategy' => 'exclusiveCampaignsStrategy', 'enableCascadingDiscounts' => 'enableCascadingDiscounts', + 'enableFlattenedCartItems' => 'enableFlattenedCartItems', 'attributesSettings' => 'attributesSettings', 'sandbox' => 'sandbox', 'key' => 'key' @@ -152,6 +155,7 @@ public static function openAPIFormats() 'campaignPriority' => 'setCampaignPriority', 'exclusiveCampaignsStrategy' => 'setExclusiveCampaignsStrategy', 'enableCascadingDiscounts' => 'setEnableCascadingDiscounts', + 'enableFlattenedCartItems' => 'setEnableFlattenedCartItems', 'attributesSettings' => 'setAttributesSettings', 'sandbox' => 'setSandbox', 'key' => 'setKey' @@ -173,6 +177,7 @@ public static function openAPIFormats() 'campaignPriority' => 'getCampaignPriority', 'exclusiveCampaignsStrategy' => 'getExclusiveCampaignsStrategy', 'enableCascadingDiscounts' => 'getEnableCascadingDiscounts', + 'enableFlattenedCartItems' => 'getEnableFlattenedCartItems', 'attributesSettings' => 'getAttributesSettings', 'sandbox' => 'getSandbox', 'key' => 'getKey' @@ -299,6 +304,7 @@ public function __construct(array $data = null) $this->container['campaignPriority'] = isset($data['campaignPriority']) ? $data['campaignPriority'] : null; $this->container['exclusiveCampaignsStrategy'] = isset($data['exclusiveCampaignsStrategy']) ? $data['exclusiveCampaignsStrategy'] : null; $this->container['enableCascadingDiscounts'] = isset($data['enableCascadingDiscounts']) ? $data['enableCascadingDiscounts'] : null; + $this->container['enableFlattenedCartItems'] = isset($data['enableFlattenedCartItems']) ? $data['enableFlattenedCartItems'] : null; $this->container['attributesSettings'] = isset($data['attributesSettings']) ? $data['attributesSettings'] : null; $this->container['sandbox'] = isset($data['sandbox']) ? $data['sandbox'] : null; $this->container['key'] = isset($data['key']) ? $data['key'] : null; @@ -659,6 +665,30 @@ public function setEnableCascadingDiscounts($enableCascadingDiscounts) return $this; } + /** + * Gets enableFlattenedCartItems + * + * @return bool|null + */ + public function getEnableFlattenedCartItems() + { + return $this->container['enableFlattenedCartItems']; + } + + /** + * Sets enableFlattenedCartItems + * + * @param bool|null $enableFlattenedCartItems Flag indicating if cart items of quantity larger than one should be separated into different items of quantity one + * + * @return $this + */ + public function setEnableFlattenedCartItems($enableFlattenedCartItems) + { + $this->container['enableFlattenedCartItems'] = $enableFlattenedCartItems; + + return $this; + } + /** * Gets attributesSettings * diff --git a/lib/Model/NewApplicationAPIKey.php b/lib/Model/NewApplicationAPIKey.php index 999f4898..cd61d9e3 100644 --- a/lib/Model/NewApplicationAPIKey.php +++ b/lib/Model/NewApplicationAPIKey.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -58,13 +58,14 @@ class NewApplicationAPIKey implements ModelInterface, ArrayAccess * @var string[] */ protected static $openAPITypes = [ + 'title' => 'string', + 'expires' => '\DateTime', + 'platform' => 'string', 'id' => 'int', 'createdBy' => 'int', - 'title' => 'string', 'accountID' => 'int', 'applicationID' => 'int', 'created' => '\DateTime', - 'expires' => '\DateTime', 'key' => 'string' ]; @@ -74,13 +75,14 @@ class NewApplicationAPIKey implements ModelInterface, ArrayAccess * @var string[] */ protected static $openAPIFormats = [ + 'title' => null, + 'expires' => 'date-time', + 'platform' => null, 'id' => null, 'createdBy' => null, - 'title' => null, 'accountID' => null, 'applicationID' => null, 'created' => 'date-time', - 'expires' => 'date-time', 'key' => null ]; @@ -111,13 +113,14 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ + 'title' => 'title', + 'expires' => 'expires', + 'platform' => 'platform', 'id' => 'id', 'createdBy' => 'createdBy', - 'title' => 'title', 'accountID' => 'accountID', 'applicationID' => 'applicationID', 'created' => 'created', - 'expires' => 'expires', 'key' => 'key' ]; @@ -127,13 +130,14 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ + 'title' => 'setTitle', + 'expires' => 'setExpires', + 'platform' => 'setPlatform', 'id' => 'setId', 'createdBy' => 'setCreatedBy', - 'title' => 'setTitle', 'accountID' => 'setAccountID', 'applicationID' => 'setApplicationID', 'created' => 'setCreated', - 'expires' => 'setExpires', 'key' => 'setKey' ]; @@ -143,13 +147,14 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ + 'title' => 'getTitle', + 'expires' => 'getExpires', + 'platform' => 'getPlatform', 'id' => 'getId', 'createdBy' => 'getCreatedBy', - 'title' => 'getTitle', 'accountID' => 'getAccountID', 'applicationID' => 'getApplicationID', 'created' => 'getCreated', - 'expires' => 'getExpires', 'key' => 'getKey' ]; @@ -194,9 +199,28 @@ public function getModelName() return self::$openAPIModelName; } + const PLATFORM_NONE = 'none'; + const PLATFORM_SEGMENT = 'segment'; + const PLATFORM_BRAZE = 'braze'; + const PLATFORM_MPARTICLE = 'mparticle'; + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getPlatformAllowableValues() + { + return [ + self::PLATFORM_NONE, + self::PLATFORM_SEGMENT, + self::PLATFORM_BRAZE, + self::PLATFORM_MPARTICLE, + ]; + } + /** * Associative array for storing property values @@ -213,13 +237,14 @@ public function getModelName() */ public function __construct(array $data = null) { + $this->container['title'] = isset($data['title']) ? $data['title'] : null; + $this->container['expires'] = isset($data['expires']) ? $data['expires'] : null; + $this->container['platform'] = isset($data['platform']) ? $data['platform'] : null; $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['createdBy'] = isset($data['createdBy']) ? $data['createdBy'] : null; - $this->container['title'] = isset($data['title']) ? $data['title'] : null; $this->container['accountID'] = isset($data['accountID']) ? $data['accountID'] : null; $this->container['applicationID'] = isset($data['applicationID']) ? $data['applicationID'] : null; $this->container['created'] = isset($data['created']) ? $data['created'] : null; - $this->container['expires'] = isset($data['expires']) ? $data['expires'] : null; $this->container['key'] = isset($data['key']) ? $data['key'] : null; } @@ -232,15 +257,26 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['title'] === null) { + $invalidProperties[] = "'title' can't be null"; + } + if ($this->container['expires'] === null) { + $invalidProperties[] = "'expires' can't be null"; + } + $allowedValues = $this->getPlatformAllowableValues(); + if (!is_null($this->container['platform']) && !in_array($this->container['platform'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'platform', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } if ($this->container['createdBy'] === null) { $invalidProperties[] = "'createdBy' can't be null"; } - if ($this->container['title'] === null) { - $invalidProperties[] = "'title' can't be null"; - } if ($this->container['accountID'] === null) { $invalidProperties[] = "'accountID' can't be null"; } @@ -250,9 +286,6 @@ public function listInvalidProperties() if ($this->container['created'] === null) { $invalidProperties[] = "'created' can't be null"; } - if ($this->container['expires'] === null) { - $invalidProperties[] = "'expires' can't be null"; - } if ($this->container['key'] === null) { $invalidProperties[] = "'key' can't be null"; } @@ -272,73 +305,130 @@ public function valid() /** - * Gets id + * Gets title * - * @return int + * @return string */ - public function getId() + public function getTitle() { - return $this->container['id']; + return $this->container['title']; } /** - * Sets id + * Sets title * - * @param int $id ID of the API Key + * @param string $title Title for API Key * * @return $this */ - public function setId($id) + public function setTitle($title) { - $this->container['id'] = $id; + $this->container['title'] = $title; return $this; } /** - * Gets createdBy + * Gets expires + * + * @return \DateTime + */ + public function getExpires() + { + return $this->container['expires']; + } + + /** + * Sets expires + * + * @param \DateTime $expires The date the API key expired + * + * @return $this + */ + public function setExpires($expires) + { + $this->container['expires'] = $expires; + + return $this; + } + + /** + * Gets platform + * + * @return string|null + */ + public function getPlatform() + { + return $this->container['platform']; + } + + /** + * Sets platform + * + * @param string|null $platform Platform the API key is valid for. + * + * @return $this + */ + public function setPlatform($platform) + { + $allowedValues = $this->getPlatformAllowableValues(); + if (!is_null($platform) && !in_array($platform, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'platform', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['platform'] = $platform; + + return $this; + } + + /** + * Gets id * * @return int */ - public function getCreatedBy() + public function getId() { - return $this->container['createdBy']; + return $this->container['id']; } /** - * Sets createdBy + * Sets id * - * @param int $createdBy ID of user who created + * @param int $id ID of the API Key * * @return $this */ - public function setCreatedBy($createdBy) + public function setId($id) { - $this->container['createdBy'] = $createdBy; + $this->container['id'] = $id; return $this; } /** - * Gets title + * Gets createdBy * - * @return string + * @return int */ - public function getTitle() + public function getCreatedBy() { - return $this->container['title']; + return $this->container['createdBy']; } /** - * Sets title + * Sets createdBy * - * @param string $title Title for API Key + * @param int $createdBy ID of user who created * * @return $this */ - public function setTitle($title) + public function setCreatedBy($createdBy) { - $this->container['title'] = $title; + $this->container['createdBy'] = $createdBy; return $this; } @@ -415,30 +505,6 @@ public function setCreated($created) return $this; } - /** - * Gets expires - * - * @return \DateTime - */ - public function getExpires() - { - return $this->container['expires']; - } - - /** - * Sets expires - * - * @param \DateTime $expires The date the API key expired - * - * @return $this - */ - public function setExpires($expires) - { - $this->container['expires'] = $expires; - - return $this; - } - /** * Gets key * diff --git a/lib/Model/NewAttribute.php b/lib/Model/NewAttribute.php index 2089b217..72251b40 100644 --- a/lib/Model/NewAttribute.php +++ b/lib/Model/NewAttribute.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewAudience.php b/lib/Model/NewAudience.php new file mode 100644 index 00000000..da050d77 --- /dev/null +++ b/lib/Model/NewAudience.php @@ -0,0 +1,424 @@ + 'string', + 'integration' => 'string', + 'integrationId' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'name' => null, + 'integration' => null, + 'integrationId' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name', + 'integration' => 'integration', + 'integrationId' => 'integrationId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName', + 'integration' => 'setIntegration', + 'integrationId' => 'setIntegrationId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName', + 'integration' => 'getIntegration', + 'integrationId' => 'getIntegrationId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const INTEGRATION_MPARTICLE = 'mparticle'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getIntegrationAllowableValues() + { + return [ + self::INTEGRATION_MPARTICLE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['integration'] = isset($data['integration']) ? $data['integration'] : null; + $this->container['integrationId'] = isset($data['integrationId']) ? $data['integrationId'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ((mb_strlen($this->container['name']) < 1)) { + $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 1."; + } + + if ($this->container['integration'] === null) { + $invalidProperties[] = "'integration' can't be null"; + } + $allowedValues = $this->getIntegrationAllowableValues(); + if (!is_null($this->container['integration']) && !in_array($this->container['integration'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'integration', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['integrationId'] === null) { + $invalidProperties[] = "'integrationId' can't be null"; + } + if ((mb_strlen($this->container['integrationId']) < 1)) { + $invalidProperties[] = "invalid value for 'integrationId', the character length must be bigger than or equal to 1."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name The human-friendly display name for this Audience. + * + * @return $this + */ + public function setName($name) + { + + if ((mb_strlen($name) < 1)) { + throw new \InvalidArgumentException('invalid length for $name when calling NewAudience., must be bigger than or equal to 1.'); + } + + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets integration + * + * @return string + */ + public function getIntegration() + { + return $this->container['integration']; + } + + /** + * Sets integration + * + * @param string $integration Integration that this audience was created in. + * + * @return $this + */ + public function setIntegration($integration) + { + $allowedValues = $this->getIntegrationAllowableValues(); + if (!in_array($integration, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'integration', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['integration'] = $integration; + + return $this; + } + + /** + * Gets integrationId + * + * @return string + */ + public function getIntegrationId() + { + return $this->container['integrationId']; + } + + /** + * Sets integrationId + * + * @param string $integrationId The ID of this Audience in the third-party integration + * + * @return $this + */ + public function setIntegrationId($integrationId) + { + + if ((mb_strlen($integrationId) < 1)) { + throw new \InvalidArgumentException('invalid length for $integrationId when calling NewAudience., must be bigger than or equal to 1.'); + } + + $this->container['integrationId'] = $integrationId; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/NewCampaign.php b/lib/Model/NewCampaign.php index 262774c4..082baa79 100644 --- a/lib/Model/NewCampaign.php +++ b/lib/Model/NewCampaign.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -36,7 +36,6 @@ * NewCampaign Class Doc Comment * * @category Class - * @description * @package TalonOne\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -58,7 +57,6 @@ class NewCampaign implements ModelInterface, ArrayAccess * @var string[] */ protected static $openAPITypes = [ - 'campaignGroups' => 'int[]', 'name' => 'string', 'description' => 'string', 'startTime' => '\DateTime', @@ -70,7 +68,8 @@ class NewCampaign implements ModelInterface, ArrayAccess 'features' => 'string[]', 'couponSettings' => '\TalonOne\Client\Model\CodeGeneratorSettings', 'referralSettings' => '\TalonOne\Client\Model\CodeGeneratorSettings', - 'limits' => '\TalonOne\Client\Model\LimitConfig[]' + 'limits' => '\TalonOne\Client\Model\LimitConfig[]', + 'campaignGroups' => 'int[]' ]; /** @@ -79,7 +78,6 @@ class NewCampaign implements ModelInterface, ArrayAccess * @var string[] */ protected static $openAPIFormats = [ - 'campaignGroups' => null, 'name' => null, 'description' => null, 'startTime' => 'date-time', @@ -91,7 +89,8 @@ class NewCampaign implements ModelInterface, ArrayAccess 'features' => null, 'couponSettings' => null, 'referralSettings' => null, - 'limits' => null + 'limits' => null, + 'campaignGroups' => null ]; /** @@ -121,7 +120,6 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'campaignGroups' => 'campaignGroups', 'name' => 'name', 'description' => 'description', 'startTime' => 'startTime', @@ -133,7 +131,8 @@ public static function openAPIFormats() 'features' => 'features', 'couponSettings' => 'couponSettings', 'referralSettings' => 'referralSettings', - 'limits' => 'limits' + 'limits' => 'limits', + 'campaignGroups' => 'campaignGroups' ]; /** @@ -142,7 +141,6 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'campaignGroups' => 'setCampaignGroups', 'name' => 'setName', 'description' => 'setDescription', 'startTime' => 'setStartTime', @@ -154,7 +152,8 @@ public static function openAPIFormats() 'features' => 'setFeatures', 'couponSettings' => 'setCouponSettings', 'referralSettings' => 'setReferralSettings', - 'limits' => 'setLimits' + 'limits' => 'setLimits', + 'campaignGroups' => 'setCampaignGroups' ]; /** @@ -163,7 +162,6 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'campaignGroups' => 'getCampaignGroups', 'name' => 'getName', 'description' => 'getDescription', 'startTime' => 'getStartTime', @@ -175,7 +173,8 @@ public static function openAPIFormats() 'features' => 'getFeatures', 'couponSettings' => 'getCouponSettings', 'referralSettings' => 'getReferralSettings', - 'limits' => 'getLimits' + 'limits' => 'getLimits', + 'campaignGroups' => 'getCampaignGroups' ]; /** @@ -272,7 +271,6 @@ public function getFeaturesAllowableValues() */ public function __construct(array $data = null) { - $this->container['campaignGroups'] = isset($data['campaignGroups']) ? $data['campaignGroups'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['startTime'] = isset($data['startTime']) ? $data['startTime'] : null; @@ -285,6 +283,7 @@ public function __construct(array $data = null) $this->container['couponSettings'] = isset($data['couponSettings']) ? $data['couponSettings'] : null; $this->container['referralSettings'] = isset($data['referralSettings']) ? $data['referralSettings'] : null; $this->container['limits'] = isset($data['limits']) ? $data['limits'] : null; + $this->container['campaignGroups'] = isset($data['campaignGroups']) ? $data['campaignGroups'] : null; } /** @@ -338,30 +337,6 @@ public function valid() } - /** - * Gets campaignGroups - * - * @return int[]|null - */ - public function getCampaignGroups() - { - return $this->container['campaignGroups']; - } - - /** - * Sets campaignGroups - * - * @param int[]|null $campaignGroups The IDs of the campaign groups that own this entity. - * - * @return $this - */ - public function setCampaignGroups($campaignGroups) - { - $this->container['campaignGroups'] = $campaignGroups; - - return $this; - } - /** * Gets name * @@ -672,6 +647,30 @@ public function setLimits($limits) return $this; } + + /** + * Gets campaignGroups + * + * @return int[]|null + */ + public function getCampaignGroups() + { + return $this->container['campaignGroups']; + } + + /** + * Sets campaignGroups + * + * @param int[]|null $campaignGroups The IDs of the campaign groups that own this entity. + * + * @return $this + */ + public function setCampaignGroups($campaignGroups) + { + $this->container['campaignGroups'] = $campaignGroups; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/NewCampaignGroup.php b/lib/Model/NewCampaignGroup.php index bd4c7340..9da81448 100644 --- a/lib/Model/NewCampaignGroup.php +++ b/lib/Model/NewCampaignGroup.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewCampaignSet.php b/lib/Model/NewCampaignSet.php index b38f2e4c..28b5a4b0 100644 --- a/lib/Model/NewCampaignSet.php +++ b/lib/Model/NewCampaignSet.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewCoupons.php b/lib/Model/NewCoupons.php index 86906442..0fe4ee82 100644 --- a/lib/Model/NewCoupons.php +++ b/lib/Model/NewCoupons.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewCustomerProfile.php b/lib/Model/NewCustomerProfile.php index 62dac388..79169e40 100644 --- a/lib/Model/NewCustomerProfile.php +++ b/lib/Model/NewCustomerProfile.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewCustomerSession.php b/lib/Model/NewCustomerSession.php index d1089988..5f7c632e 100644 --- a/lib/Model/NewCustomerSession.php +++ b/lib/Model/NewCustomerSession.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewCustomerSessionV2.php b/lib/Model/NewCustomerSessionV2.php index c5f6b0ac..c54666fb 100644 --- a/lib/Model/NewCustomerSessionV2.php +++ b/lib/Model/NewCustomerSessionV2.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewEvent.php b/lib/Model/NewEvent.php index 28d8db61..2dc8f506 100644 --- a/lib/Model/NewEvent.php +++ b/lib/Model/NewEvent.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewEventType.php b/lib/Model/NewEventType.php index 749fca8e..af0f7df0 100644 --- a/lib/Model/NewEventType.php +++ b/lib/Model/NewEventType.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewFeatureFlags.php b/lib/Model/NewFeatureFlags.php index 28aa8acb..ce782b31 100644 --- a/lib/Model/NewFeatureFlags.php +++ b/lib/Model/NewFeatureFlags.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewImport.php b/lib/Model/NewImport.php index 5378b005..8b6ed200 100644 --- a/lib/Model/NewImport.php +++ b/lib/Model/NewImport.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewInvitation.php b/lib/Model/NewInvitation.php index 3dc6bb93..a52851f2 100644 --- a/lib/Model/NewInvitation.php +++ b/lib/Model/NewInvitation.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewInviteEmail.php b/lib/Model/NewInviteEmail.php index d0389807..e90b40e2 100644 --- a/lib/Model/NewInviteEmail.php +++ b/lib/Model/NewInviteEmail.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewLoyaltyProgram.php b/lib/Model/NewLoyaltyProgram.php index 37f010dd..ee58097b 100644 --- a/lib/Model/NewLoyaltyProgram.php +++ b/lib/Model/NewLoyaltyProgram.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewPassword.php b/lib/Model/NewPassword.php index a4432c99..f5c5c61c 100644 --- a/lib/Model/NewPassword.php +++ b/lib/Model/NewPassword.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewPasswordEmail.php b/lib/Model/NewPasswordEmail.php index 4e949e90..b196151f 100644 --- a/lib/Model/NewPasswordEmail.php +++ b/lib/Model/NewPasswordEmail.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewReferral.php b/lib/Model/NewReferral.php index dcc28d41..14718018 100644 --- a/lib/Model/NewReferral.php +++ b/lib/Model/NewReferral.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewRole.php b/lib/Model/NewRole.php index 1d178584..b62b1ca7 100644 --- a/lib/Model/NewRole.php +++ b/lib/Model/NewRole.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewRuleset.php b/lib/Model/NewRuleset.php index 3b33c243..eb9956ec 100644 --- a/lib/Model/NewRuleset.php +++ b/lib/Model/NewRuleset.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewSamlConnection.php b/lib/Model/NewSamlConnection.php index 4867a179..5b255f28 100644 --- a/lib/Model/NewSamlConnection.php +++ b/lib/Model/NewSamlConnection.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewTemplateDef.php b/lib/Model/NewTemplateDef.php index 7a24acb7..d908d596 100644 --- a/lib/Model/NewTemplateDef.php +++ b/lib/Model/NewTemplateDef.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewUser.php b/lib/Model/NewUser.php index d60ff591..5197c344 100644 --- a/lib/Model/NewUser.php +++ b/lib/Model/NewUser.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/NewWebhook.php b/lib/Model/NewWebhook.php index e4f848b4..029dc4b8 100644 --- a/lib/Model/NewWebhook.php +++ b/lib/Model/NewWebhook.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/Notification.php b/lib/Model/Notification.php index 5ce929ae..20022890 100644 --- a/lib/Model/Notification.php +++ b/lib/Model/Notification.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/RedeemReferralEffectProps.php b/lib/Model/RedeemReferralEffectProps.php index 92b35f0b..5448f36e 100644 --- a/lib/Model/RedeemReferralEffectProps.php +++ b/lib/Model/RedeemReferralEffectProps.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/Referral.php b/lib/Model/Referral.php index 63cf6ffd..d9e7c27e 100644 --- a/lib/Model/Referral.php +++ b/lib/Model/Referral.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/ReferralCreatedEffectProps.php b/lib/Model/ReferralCreatedEffectProps.php index 956afe36..37c6ab6e 100644 --- a/lib/Model/ReferralCreatedEffectProps.php +++ b/lib/Model/ReferralCreatedEffectProps.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/ReferralRejectionReason.php b/lib/Model/ReferralRejectionReason.php index ef90528d..016118ca 100644 --- a/lib/Model/ReferralRejectionReason.php +++ b/lib/Model/ReferralRejectionReason.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/RejectCouponEffectProps.php b/lib/Model/RejectCouponEffectProps.php index bc9fe998..c45fa26f 100644 --- a/lib/Model/RejectCouponEffectProps.php +++ b/lib/Model/RejectCouponEffectProps.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/RejectReferralEffectProps.php b/lib/Model/RejectReferralEffectProps.php index e7c128ce..1ebde056 100644 --- a/lib/Model/RejectReferralEffectProps.php +++ b/lib/Model/RejectReferralEffectProps.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/Role.php b/lib/Model/Role.php index 15d7691f..73de068e 100644 --- a/lib/Model/Role.php +++ b/lib/Model/Role.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -60,10 +60,11 @@ class Role implements ModelInterface, ArrayAccess protected static $openAPITypes = [ 'id' => 'int', 'accountID' => 'int', + 'campaignGroupID' => 'int', 'name' => 'string', 'description' => 'string', 'members' => 'int[]', - 'acl' => 'string' + 'acl' => 'object' ]; /** @@ -74,10 +75,11 @@ class Role implements ModelInterface, ArrayAccess protected static $openAPIFormats = [ 'id' => null, 'accountID' => null, + 'campaignGroupID' => null, 'name' => null, 'description' => null, 'members' => null, - 'acl' => 'aclRole' + 'acl' => null ]; /** @@ -109,6 +111,7 @@ public static function openAPIFormats() protected static $attributeMap = [ 'id' => 'id', 'accountID' => 'accountID', + 'campaignGroupID' => 'campaignGroupID', 'name' => 'name', 'description' => 'description', 'members' => 'members', @@ -123,6 +126,7 @@ public static function openAPIFormats() protected static $setters = [ 'id' => 'setId', 'accountID' => 'setAccountID', + 'campaignGroupID' => 'setCampaignGroupID', 'name' => 'setName', 'description' => 'setDescription', 'members' => 'setMembers', @@ -137,6 +141,7 @@ public static function openAPIFormats() protected static $getters = [ 'id' => 'getId', 'accountID' => 'getAccountID', + 'campaignGroupID' => 'getCampaignGroupID', 'name' => 'getName', 'description' => 'getDescription', 'members' => 'getMembers', @@ -205,6 +210,7 @@ public function __construct(array $data = null) { $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['accountID'] = isset($data['accountID']) ? $data['accountID'] : null; + $this->container['campaignGroupID'] = isset($data['campaignGroupID']) ? $data['campaignGroupID'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['members'] = isset($data['members']) ? $data['members'] : null; @@ -289,6 +295,30 @@ public function setAccountID($accountID) return $this; } + /** + * Gets campaignGroupID + * + * @return int|null + */ + public function getCampaignGroupID() + { + return $this->container['campaignGroupID']; + } + + /** + * Sets campaignGroupID + * + * @param int|null $campaignGroupID The ID of the Campaign Group this role was created for. + * + * @return $this + */ + public function setCampaignGroupID($campaignGroupID) + { + $this->container['campaignGroupID'] = $campaignGroupID; + + return $this; + } + /** * Gets name * @@ -364,7 +394,7 @@ public function setMembers($members) /** * Gets acl * - * @return string|null + * @return object|null */ public function getAcl() { @@ -374,7 +404,7 @@ public function getAcl() /** * Sets acl * - * @param string|null $acl Role Policy this should be a stringified blob of json + * @param object|null $acl Role ACL Policy * * @return $this */ diff --git a/lib/Model/RoleAssign.php b/lib/Model/RoleAssign.php index 785f5c7c..2ab4e17f 100644 --- a/lib/Model/RoleAssign.php +++ b/lib/Model/RoleAssign.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/RoleMembership.php b/lib/Model/RoleMembership.php index bda9aee3..cbf2bbf0 100644 --- a/lib/Model/RoleMembership.php +++ b/lib/Model/RoleMembership.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/RollbackCouponEffectProps.php b/lib/Model/RollbackCouponEffectProps.php index 6176312b..735660dc 100644 --- a/lib/Model/RollbackCouponEffectProps.php +++ b/lib/Model/RollbackCouponEffectProps.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/RollbackDiscountEffectProps.php b/lib/Model/RollbackDiscountEffectProps.php index d3e05c31..10940006 100644 --- a/lib/Model/RollbackDiscountEffectProps.php +++ b/lib/Model/RollbackDiscountEffectProps.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/Rule.php b/lib/Model/Rule.php index 62e6a855..cc89ce1b 100644 --- a/lib/Model/Rule.php +++ b/lib/Model/Rule.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/Ruleset.php b/lib/Model/Ruleset.php index 61a8a29b..91dd5e62 100644 --- a/lib/Model/Ruleset.php +++ b/lib/Model/Ruleset.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/SamlConnection.php b/lib/Model/SamlConnection.php index 3f3c2007..0b918c89 100644 --- a/lib/Model/SamlConnection.php +++ b/lib/Model/SamlConnection.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/SamlConnectionMetadata.php b/lib/Model/SamlConnectionMetadata.php index bceaef8f..c195461a 100644 --- a/lib/Model/SamlConnectionMetadata.php +++ b/lib/Model/SamlConnectionMetadata.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/SamlLoginEndpoint.php b/lib/Model/SamlLoginEndpoint.php index 3a83981d..00873da9 100644 --- a/lib/Model/SamlLoginEndpoint.php +++ b/lib/Model/SamlLoginEndpoint.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/Session.php b/lib/Model/Session.php index 1461fb10..83b8efe0 100644 --- a/lib/Model/Session.php +++ b/lib/Model/Session.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/SetDiscountEffectProps.php b/lib/Model/SetDiscountEffectProps.php index 20635e9d..2ce9f2da 100644 --- a/lib/Model/SetDiscountEffectProps.php +++ b/lib/Model/SetDiscountEffectProps.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -36,7 +36,7 @@ * SetDiscountEffectProps Class Doc Comment * * @category Class - * @description The properties specific to the \"setDiscount\" effect. This gets triggered whenever a validated rule contained a \"set discount\" effect. This is a discount that should be applied globally on the session total. + * @description The properties specific to the \"setDiscount\" effect. This gets triggered whenever a validated rule contained a \"set discount\" effect. This is a discount that should be applied on the scope of defined with it. * @package TalonOne\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -59,7 +59,8 @@ class SetDiscountEffectProps implements ModelInterface, ArrayAccess */ protected static $openAPITypes = [ 'name' => 'string', - 'value' => 'float' + 'value' => 'float', + 'scope' => 'string' ]; /** @@ -69,7 +70,8 @@ class SetDiscountEffectProps implements ModelInterface, ArrayAccess */ protected static $openAPIFormats = [ 'name' => null, - 'value' => null + 'value' => null, + 'scope' => null ]; /** @@ -100,7 +102,8 @@ public static function openAPIFormats() */ protected static $attributeMap = [ 'name' => 'name', - 'value' => 'value' + 'value' => 'value', + 'scope' => 'scope' ]; /** @@ -110,7 +113,8 @@ public static function openAPIFormats() */ protected static $setters = [ 'name' => 'setName', - 'value' => 'setValue' + 'value' => 'setValue', + 'scope' => 'setScope' ]; /** @@ -120,7 +124,8 @@ public static function openAPIFormats() */ protected static $getters = [ 'name' => 'getName', - 'value' => 'getValue' + 'value' => 'getValue', + 'scope' => 'getScope' ]; /** @@ -185,6 +190,7 @@ public function __construct(array $data = null) { $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['value'] = isset($data['value']) ? $data['value'] : null; + $this->container['scope'] = isset($data['scope']) ? $data['scope'] : null; } /** @@ -264,6 +270,30 @@ public function setValue($value) return $this; } + + /** + * Gets scope + * + * @return string|null + */ + public function getScope() + { + return $this->container['scope']; + } + + /** + * Sets scope + * + * @param string|null $scope The scope which the discount was applied on, can be one of (cartItems,additionalCosts,sessionTotal) + * + * @return $this + */ + public function setScope($scope) + { + $this->container['scope'] = $scope; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/SetDiscountPerItemEffectProps.php b/lib/Model/SetDiscountPerItemEffectProps.php index dbe4a28d..5233ffbd 100644 --- a/lib/Model/SetDiscountPerItemEffectProps.php +++ b/lib/Model/SetDiscountPerItemEffectProps.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -60,7 +60,8 @@ class SetDiscountPerItemEffectProps implements ModelInterface, ArrayAccess protected static $openAPITypes = [ 'name' => 'string', 'value' => 'float', - 'position' => 'float' + 'position' => 'float', + 'subPosition' => 'float' ]; /** @@ -71,7 +72,8 @@ class SetDiscountPerItemEffectProps implements ModelInterface, ArrayAccess protected static $openAPIFormats = [ 'name' => null, 'value' => null, - 'position' => null + 'position' => null, + 'subPosition' => null ]; /** @@ -103,7 +105,8 @@ public static function openAPIFormats() protected static $attributeMap = [ 'name' => 'name', 'value' => 'value', - 'position' => 'position' + 'position' => 'position', + 'subPosition' => 'subPosition' ]; /** @@ -114,7 +117,8 @@ public static function openAPIFormats() protected static $setters = [ 'name' => 'setName', 'value' => 'setValue', - 'position' => 'setPosition' + 'position' => 'setPosition', + 'subPosition' => 'setSubPosition' ]; /** @@ -125,7 +129,8 @@ public static function openAPIFormats() protected static $getters = [ 'name' => 'getName', 'value' => 'getValue', - 'position' => 'getPosition' + 'position' => 'getPosition', + 'subPosition' => 'getSubPosition' ]; /** @@ -191,6 +196,7 @@ public function __construct(array $data = null) $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['value'] = isset($data['value']) ? $data['value'] : null; $this->container['position'] = isset($data['position']) ? $data['position'] : null; + $this->container['subPosition'] = isset($data['subPosition']) ? $data['subPosition'] : null; } /** @@ -297,6 +303,30 @@ public function setPosition($position) return $this; } + + /** + * Gets subPosition + * + * @return float|null + */ + public function getSubPosition() + { + return $this->container['subPosition']; + } + + /** + * Sets subPosition + * + * @param float|null $subPosition The sub-index of the item in an item stack on which this discount should be applied + * + * @return $this + */ + public function setSubPosition($subPosition) + { + $this->container['subPosition'] = $subPosition; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/ShowBundleMetadataEffectProps.php b/lib/Model/ShowBundleMetadataEffectProps.php index 696ad24b..5bfef3f1 100644 --- a/lib/Model/ShowBundleMetadataEffectProps.php +++ b/lib/Model/ShowBundleMetadataEffectProps.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/ShowNotificationEffectProps.php b/lib/Model/ShowNotificationEffectProps.php index 01b6564c..6cc2ee52 100644 --- a/lib/Model/ShowNotificationEffectProps.php +++ b/lib/Model/ShowNotificationEffectProps.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/SlotDef.php b/lib/Model/SlotDef.php index bd455981..1e1936bf 100644 --- a/lib/Model/SlotDef.php +++ b/lib/Model/SlotDef.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/TemplateArgDef.php b/lib/Model/TemplateArgDef.php index 9f407222..67744f20 100644 --- a/lib/Model/TemplateArgDef.php +++ b/lib/Model/TemplateArgDef.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/TemplateDef.php b/lib/Model/TemplateDef.php index 0757ba35..8524fd37 100644 --- a/lib/Model/TemplateDef.php +++ b/lib/Model/TemplateDef.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/TriggerWebhookEffectProps.php b/lib/Model/TriggerWebhookEffectProps.php index 2d8dde23..a3906ccb 100644 --- a/lib/Model/TriggerWebhookEffectProps.php +++ b/lib/Model/TriggerWebhookEffectProps.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/UpdateAccount.php b/lib/Model/UpdateAccount.php index c656dd06..1ce82f25 100644 --- a/lib/Model/UpdateAccount.php +++ b/lib/Model/UpdateAccount.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/UpdateApplication.php b/lib/Model/UpdateApplication.php index 3054f8f2..aaa77b62 100644 --- a/lib/Model/UpdateApplication.php +++ b/lib/Model/UpdateApplication.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -67,6 +67,7 @@ class UpdateApplication implements ModelInterface, ArrayAccess 'campaignPriority' => 'string', 'exclusiveCampaignsStrategy' => 'string', 'enableCascadingDiscounts' => 'bool', + 'enableFlattenedCartItems' => 'bool', 'attributesSettings' => '\TalonOne\Client\Model\AttributesSettings', 'sandbox' => 'bool' ]; @@ -87,6 +88,7 @@ class UpdateApplication implements ModelInterface, ArrayAccess 'campaignPriority' => null, 'exclusiveCampaignsStrategy' => null, 'enableCascadingDiscounts' => null, + 'enableFlattenedCartItems' => null, 'attributesSettings' => null, 'sandbox' => null ]; @@ -128,6 +130,7 @@ public static function openAPIFormats() 'campaignPriority' => 'campaignPriority', 'exclusiveCampaignsStrategy' => 'exclusiveCampaignsStrategy', 'enableCascadingDiscounts' => 'enableCascadingDiscounts', + 'enableFlattenedCartItems' => 'enableFlattenedCartItems', 'attributesSettings' => 'attributesSettings', 'sandbox' => 'sandbox' ]; @@ -148,6 +151,7 @@ public static function openAPIFormats() 'campaignPriority' => 'setCampaignPriority', 'exclusiveCampaignsStrategy' => 'setExclusiveCampaignsStrategy', 'enableCascadingDiscounts' => 'setEnableCascadingDiscounts', + 'enableFlattenedCartItems' => 'setEnableFlattenedCartItems', 'attributesSettings' => 'setAttributesSettings', 'sandbox' => 'setSandbox' ]; @@ -168,6 +172,7 @@ public static function openAPIFormats() 'campaignPriority' => 'getCampaignPriority', 'exclusiveCampaignsStrategy' => 'getExclusiveCampaignsStrategy', 'enableCascadingDiscounts' => 'getEnableCascadingDiscounts', + 'enableFlattenedCartItems' => 'getEnableFlattenedCartItems', 'attributesSettings' => 'getAttributesSettings', 'sandbox' => 'getSandbox' ]; @@ -293,6 +298,7 @@ public function __construct(array $data = null) $this->container['campaignPriority'] = isset($data['campaignPriority']) ? $data['campaignPriority'] : null; $this->container['exclusiveCampaignsStrategy'] = isset($data['exclusiveCampaignsStrategy']) ? $data['exclusiveCampaignsStrategy'] : null; $this->container['enableCascadingDiscounts'] = isset($data['enableCascadingDiscounts']) ? $data['enableCascadingDiscounts'] : null; + $this->container['enableFlattenedCartItems'] = isset($data['enableFlattenedCartItems']) ? $data['enableFlattenedCartItems'] : null; $this->container['attributesSettings'] = isset($data['attributesSettings']) ? $data['attributesSettings'] : null; $this->container['sandbox'] = isset($data['sandbox']) ? $data['sandbox'] : null; } @@ -648,6 +654,30 @@ public function setEnableCascadingDiscounts($enableCascadingDiscounts) return $this; } + /** + * Gets enableFlattenedCartItems + * + * @return bool|null + */ + public function getEnableFlattenedCartItems() + { + return $this->container['enableFlattenedCartItems']; + } + + /** + * Sets enableFlattenedCartItems + * + * @param bool|null $enableFlattenedCartItems Flag indicating if cart items of quantity larger than one should be separated into different items of quantity one + * + * @return $this + */ + public function setEnableFlattenedCartItems($enableFlattenedCartItems) + { + $this->container['enableFlattenedCartItems'] = $enableFlattenedCartItems; + + return $this; + } + /** * Gets attributesSettings * diff --git a/lib/Model/UpdateAttributeEffectProps.php b/lib/Model/UpdateAttributeEffectProps.php index 61594ec5..614cd332 100644 --- a/lib/Model/UpdateAttributeEffectProps.php +++ b/lib/Model/UpdateAttributeEffectProps.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/UpdateAudience.php b/lib/Model/UpdateAudience.php new file mode 100644 index 00000000..a34da995 --- /dev/null +++ b/lib/Model/UpdateAudience.php @@ -0,0 +1,319 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ((mb_strlen($this->container['name']) < 1)) { + $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 1."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name The human-friendly display name for this Audience. + * + * @return $this + */ + public function setName($name) + { + + if ((mb_strlen($name) < 1)) { + throw new \InvalidArgumentException('invalid length for $name when calling UpdateAudience., must be bigger than or equal to 1.'); + } + + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/UpdateCampaign.php b/lib/Model/UpdateCampaign.php index 1dd120c7..59aa31bd 100644 --- a/lib/Model/UpdateCampaign.php +++ b/lib/Model/UpdateCampaign.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -68,7 +68,8 @@ class UpdateCampaign implements ModelInterface, ArrayAccess 'features' => 'string[]', 'couponSettings' => '\TalonOne\Client\Model\CodeGeneratorSettings', 'referralSettings' => '\TalonOne\Client\Model\CodeGeneratorSettings', - 'limits' => '\TalonOne\Client\Model\LimitConfig[]' + 'limits' => '\TalonOne\Client\Model\LimitConfig[]', + 'campaignGroups' => 'int[]' ]; /** @@ -88,7 +89,8 @@ class UpdateCampaign implements ModelInterface, ArrayAccess 'features' => null, 'couponSettings' => null, 'referralSettings' => null, - 'limits' => null + 'limits' => null, + 'campaignGroups' => null ]; /** @@ -129,7 +131,8 @@ public static function openAPIFormats() 'features' => 'features', 'couponSettings' => 'couponSettings', 'referralSettings' => 'referralSettings', - 'limits' => 'limits' + 'limits' => 'limits', + 'campaignGroups' => 'campaignGroups' ]; /** @@ -149,7 +152,8 @@ public static function openAPIFormats() 'features' => 'setFeatures', 'couponSettings' => 'setCouponSettings', 'referralSettings' => 'setReferralSettings', - 'limits' => 'setLimits' + 'limits' => 'setLimits', + 'campaignGroups' => 'setCampaignGroups' ]; /** @@ -169,7 +173,8 @@ public static function openAPIFormats() 'features' => 'getFeatures', 'couponSettings' => 'getCouponSettings', 'referralSettings' => 'getReferralSettings', - 'limits' => 'getLimits' + 'limits' => 'getLimits', + 'campaignGroups' => 'getCampaignGroups' ]; /** @@ -278,6 +283,7 @@ public function __construct(array $data = null) $this->container['couponSettings'] = isset($data['couponSettings']) ? $data['couponSettings'] : null; $this->container['referralSettings'] = isset($data['referralSettings']) ? $data['referralSettings'] : null; $this->container['limits'] = isset($data['limits']) ? $data['limits'] : null; + $this->container['campaignGroups'] = isset($data['campaignGroups']) ? $data['campaignGroups'] : null; } /** @@ -638,6 +644,30 @@ public function setLimits($limits) return $this; } + + /** + * Gets campaignGroups + * + * @return int[]|null + */ + public function getCampaignGroups() + { + return $this->container['campaignGroups']; + } + + /** + * Sets campaignGroups + * + * @param int[]|null $campaignGroups The IDs of the campaign groups that own this entity. + * + * @return $this + */ + public function setCampaignGroups($campaignGroups) + { + $this->container['campaignGroups'] = $campaignGroups; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/UpdateCampaignGroup.php b/lib/Model/UpdateCampaignGroup.php index d5ac02a5..7d15852f 100644 --- a/lib/Model/UpdateCampaignGroup.php +++ b/lib/Model/UpdateCampaignGroup.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/UpdateCoupon.php b/lib/Model/UpdateCoupon.php index 802cbd4d..26298765 100644 --- a/lib/Model/UpdateCoupon.php +++ b/lib/Model/UpdateCoupon.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/UpdateCouponBatch.php b/lib/Model/UpdateCouponBatch.php index 687db07b..cce275b6 100644 --- a/lib/Model/UpdateCouponBatch.php +++ b/lib/Model/UpdateCouponBatch.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/UpdateLoyaltyProgram.php b/lib/Model/UpdateLoyaltyProgram.php index d4c24e8d..15a58345 100644 --- a/lib/Model/UpdateLoyaltyProgram.php +++ b/lib/Model/UpdateLoyaltyProgram.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/UpdateRole.php b/lib/Model/UpdateRole.php index 4abae258..ba15a480 100644 --- a/lib/Model/UpdateRole.php +++ b/lib/Model/UpdateRole.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/UpdateUser.php b/lib/Model/UpdateUser.php index 74062d88..b84566f4 100644 --- a/lib/Model/UpdateUser.php +++ b/lib/Model/UpdateUser.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/UpdateUserLatestFeedTimestamp.php b/lib/Model/UpdateUserLatestFeedTimestamp.php index 0768d548..31c40193 100644 --- a/lib/Model/UpdateUserLatestFeedTimestamp.php +++ b/lib/Model/UpdateUserLatestFeedTimestamp.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/User.php b/lib/Model/User.php index 10c148c9..ecd15e24 100644 --- a/lib/Model/User.php +++ b/lib/Model/User.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -66,7 +66,7 @@ class User implements ModelInterface, ArrayAccess 'inviteToken' => 'string', 'state' => 'string', 'name' => 'string', - 'policy' => 'string', + 'policy' => 'object', 'latestFeedTimestamp' => '\DateTime', 'roles' => 'int[]', 'applicationNotificationSubscriptions' => 'object', @@ -87,7 +87,7 @@ class User implements ModelInterface, ArrayAccess 'inviteToken' => null, 'state' => null, 'name' => null, - 'policy' => 'acl', + 'policy' => null, 'latestFeedTimestamp' => 'date-time', 'roles' => null, 'applicationNotificationSubscriptions' => null, @@ -533,7 +533,7 @@ public function setName($name) /** * Gets policy * - * @return string + * @return object */ public function getPolicy() { @@ -543,7 +543,7 @@ public function getPolicy() /** * Sets policy * - * @param string $policy A blob of ACL JSON + * @param object $policy User ACL Policy * * @return $this */ diff --git a/lib/Model/UserEntity.php b/lib/Model/UserEntity.php index 31470c99..5d62af6f 100644 --- a/lib/Model/UserEntity.php +++ b/lib/Model/UserEntity.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/UserFeedNotifications.php b/lib/Model/UserFeedNotifications.php index 307d5e14..fc7c36d3 100644 --- a/lib/Model/UserFeedNotifications.php +++ b/lib/Model/UserFeedNotifications.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/Webhook.php b/lib/Model/Webhook.php index 99abd497..e191f90c 100644 --- a/lib/Model/Webhook.php +++ b/lib/Model/Webhook.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/WebhookActivationLogEntry.php b/lib/Model/WebhookActivationLogEntry.php index fed17896..9b980a8e 100644 --- a/lib/Model/WebhookActivationLogEntry.php +++ b/lib/Model/WebhookActivationLogEntry.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/Model/WebhookLogEntry.php b/lib/Model/WebhookLogEntry.php index c7f36f31..ce09cf20 100644 --- a/lib/Model/WebhookLogEntry.php +++ b/lib/Model/WebhookLogEntry.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/lib/ObjectSerializer.php b/lib/ObjectSerializer.php index d24c691a..81243bd6 100644 --- a/lib/ObjectSerializer.php +++ b/lib/ObjectSerializer.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -213,29 +213,32 @@ public static function toString($value) * Serialize an array to a string. * * @param array $collection collection to serialize to a string - * @param string $collectionFormat the format use for serialization (csv, + * @param string $style the format use for serialization (csv, * ssv, tsv, pipes, multi) * @param bool $allowCollectionFormatMulti allow collection format to be a multidimensional array * * @return string */ - public static function serializeCollection(array $collection, $collectionFormat, $allowCollectionFormatMulti = false) + public static function serializeCollection(array $collection, $style, $allowCollectionFormatMulti = false) { - if ($allowCollectionFormatMulti && ('multi' === $collectionFormat)) { + if ($allowCollectionFormatMulti && ('multi' === $style)) { // http_build_query() almost does the job for us. We just // need to fix the result of multidimensional arrays. return preg_replace('/%5B[0-9]+%5D=/', '=', http_build_query($collection, '', '&')); } - switch ($collectionFormat) { + switch ($style) { + case 'pipeDelimited': case 'pipes': return implode('|', $collection); case 'tsv': return implode("\t", $collection); + case 'spaceDelimited': case 'ssv': return implode(' ', $collection); + case 'simple': case 'csv': // Deliberate fall through. CSV is default format. default: diff --git a/test/Api/IntegrationApiTest.php b/test/Api/IntegrationApiTest.php index 51b1c6e7..53ca6f70 100644 --- a/test/Api/IntegrationApiTest.php +++ b/test/Api/IntegrationApiTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -152,6 +152,16 @@ public function testUpdateCustomerProfile() { } + /** + * Test case for updateCustomerProfileAudiences + * + * Update a Customer Profile Audiences. + * + */ + public function testUpdateCustomerProfileAudiences() + { + } + /** * Test case for updateCustomerProfileV2 * @@ -162,6 +172,16 @@ public function testUpdateCustomerProfileV2() { } + /** + * Test case for updateCustomerProfilesV2 + * + * Update multiple Customer Profiles. + * + */ + public function testUpdateCustomerProfilesV2() + { + } + /** * Test case for updateCustomerSession * diff --git a/test/Api/ManagementApiTest.php b/test/Api/ManagementApiTest.php index 7eb160cb..ac341f8c 100644 --- a/test/Api/ManagementApiTest.php +++ b/test/Api/ManagementApiTest.php @@ -17,7 +17,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -642,6 +642,16 @@ public function testGetLoyaltyPrograms() { } + /** + * Test case for getLoyaltyStatistics + * + * Get loyalty program statistics by loyalty program ID. + * + */ + public function testGetLoyaltyStatistics() + { + } + /** * Test case for getReferrals * diff --git a/test/Model/APIErrorTest.php b/test/Model/APIErrorTest.php index 05fa491b..7f40df3b 100644 --- a/test/Model/APIErrorTest.php +++ b/test/Model/APIErrorTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/test/Model/AcceptCouponEffectPropsTest.php b/test/Model/AcceptCouponEffectPropsTest.php index fd21604a..9449abb1 100644 --- a/test/Model/AcceptCouponEffectPropsTest.php +++ b/test/Model/AcceptCouponEffectPropsTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/test/Model/AcceptReferralEffectPropsTest.php b/test/Model/AcceptReferralEffectPropsTest.php index 41eaf4bc..d00697d8 100644 --- a/test/Model/AcceptReferralEffectPropsTest.php +++ b/test/Model/AcceptReferralEffectPropsTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/test/Model/AccessLogEntryTest.php b/test/Model/AccessLogEntryTest.php index d73dd076..d06cd57e 100644 --- a/test/Model/AccessLogEntryTest.php +++ b/test/Model/AccessLogEntryTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/test/Model/AccountAdditionalCostTest.php b/test/Model/AccountAdditionalCostTest.php index a2e1b1c0..81c50be4 100644 --- a/test/Model/AccountAdditionalCostTest.php +++ b/test/Model/AccountAdditionalCostTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/test/Model/AccountAnalyticsTest.php b/test/Model/AccountAnalyticsTest.php index 37b9eae9..cb672649 100644 --- a/test/Model/AccountAnalyticsTest.php +++ b/test/Model/AccountAnalyticsTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -86,9 +86,16 @@ public function testPropertyApplications() } /** - * Test attribute "activeCampaigns" + * Test attribute "liveApplications" */ - public function testPropertyActiveCampaigns() + public function testPropertyLiveApplications() + { + } + + /** + * Test attribute "sandboxApplications" + */ + public function testPropertySandboxApplications() { } @@ -99,6 +106,20 @@ public function testPropertyCampaigns() { } + /** + * Test attribute "activeCampaigns" + */ + public function testPropertyActiveCampaigns() + { + } + + /** + * Test attribute "liveActiveCampaigns" + */ + public function testPropertyLiveActiveCampaigns() + { + } + /** * Test attribute "coupons" */ @@ -120,13 +141,6 @@ public function testPropertyExpiredCoupons() { } - /** - * Test attribute "customAttributes" - */ - public function testPropertyCustomAttributes() - { - } - /** * Test attribute "referralCodes" */ @@ -149,51 +163,44 @@ public function testPropertyExpiredReferralCodes() } /** - * Test attribute "users" - */ - public function testPropertyUsers() - { - } - - /** - * Test attribute "roles" + * Test attribute "activeRules" */ - public function testPropertyRoles() + public function testPropertyActiveRules() { } /** - * Test attribute "webhooks" + * Test attribute "users" */ - public function testPropertyWebhooks() + public function testPropertyUsers() { } /** - * Test attribute "loyaltyPrograms" + * Test attribute "roles" */ - public function testPropertyLoyaltyPrograms() + public function testPropertyRoles() { } /** - * Test attribute "activeRules" + * Test attribute "customAttributes" */ - public function testPropertyActiveRules() + public function testPropertyCustomAttributes() { } /** - * Test attribute "sandboxApplications" + * Test attribute "webhooks" */ - public function testPropertySandboxApplications() + public function testPropertyWebhooks() { } /** - * Test attribute "liveApplications" + * Test attribute "loyaltyPrograms" */ - public function testPropertyLiveApplications() + public function testPropertyLoyaltyPrograms() { } } diff --git a/test/Model/AccountEntityTest.php b/test/Model/AccountEntityTest.php index 835caaf6..de800f45 100644 --- a/test/Model/AccountEntityTest.php +++ b/test/Model/AccountEntityTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/test/Model/AccountLimitsTest.php b/test/Model/AccountLimitsTest.php index df8c2bd4..4bd64ad6 100644 --- a/test/Model/AccountLimitsTest.php +++ b/test/Model/AccountLimitsTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -113,6 +113,13 @@ public function testPropertyReferralCodes() { } + /** + * Test attribute "activeRules" + */ + public function testPropertyActiveRules() + { + } + /** * Test attribute "liveLoyaltyPrograms" */ @@ -148,13 +155,6 @@ public function testPropertyApiVolume() { } - /** - * Test attribute "activeRules" - */ - public function testPropertyActiveRules() - { - } - /** * Test attribute "promotionTypes" */ diff --git a/test/Model/AccountTest.php b/test/Model/AccountTest.php index 2d605752..686a1fa7 100644 --- a/test/Model/AccountTest.php +++ b/test/Model/AccountTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/test/Model/AddFreeItemEffectPropsTest.php b/test/Model/AddFreeItemEffectPropsTest.php index 8e993028..63b8d17b 100644 --- a/test/Model/AddFreeItemEffectPropsTest.php +++ b/test/Model/AddFreeItemEffectPropsTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/test/Model/AddLoyaltyPointsEffectPropsTest.php b/test/Model/AddLoyaltyPointsEffectPropsTest.php index 7098a2f2..2bb5ae55 100644 --- a/test/Model/AddLoyaltyPointsEffectPropsTest.php +++ b/test/Model/AddLoyaltyPointsEffectPropsTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/test/Model/AdditionalCostTest.php b/test/Model/AdditionalCostTest.php index 01d388bb..162fb9e5 100644 --- a/test/Model/AdditionalCostTest.php +++ b/test/Model/AdditionalCostTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/test/Model/ApplicationAPIKeyTest.php b/test/Model/ApplicationAPIKeyTest.php index 1a189444..efe9d073 100644 --- a/test/Model/ApplicationAPIKeyTest.php +++ b/test/Model/ApplicationAPIKeyTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -35,7 +35,7 @@ * ApplicationAPIKeyTest Class Doc Comment * * @category Class - * @description ApplicationAPIKey + * @description * @package TalonOne\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -79,23 +79,37 @@ public function testApplicationAPIKey() } /** - * Test attribute "id" + * Test attribute "title" */ - public function testPropertyId() + public function testPropertyTitle() { } /** - * Test attribute "createdBy" + * Test attribute "expires" */ - public function testPropertyCreatedBy() + public function testPropertyExpires() { } /** - * Test attribute "title" + * Test attribute "platform" */ - public function testPropertyTitle() + public function testPropertyPlatform() + { + } + + /** + * Test attribute "id" + */ + public function testPropertyId() + { + } + + /** + * Test attribute "createdBy" + */ + public function testPropertyCreatedBy() { } @@ -119,11 +133,4 @@ public function testPropertyApplicationID() public function testPropertyCreated() { } - - /** - * Test attribute "expires" - */ - public function testPropertyExpires() - { - } } diff --git a/test/Model/ApplicationApiHealthTest.php b/test/Model/ApplicationApiHealthTest.php index 2e61cf38..5b78fbfe 100644 --- a/test/Model/ApplicationApiHealthTest.php +++ b/test/Model/ApplicationApiHealthTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/test/Model/ApplicationCustomerEntityTest.php b/test/Model/ApplicationCustomerEntityTest.php index 2e97be78..4685b7f1 100644 --- a/test/Model/ApplicationCustomerEntityTest.php +++ b/test/Model/ApplicationCustomerEntityTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/test/Model/ApplicationCustomerSearchTest.php b/test/Model/ApplicationCustomerSearchTest.php index 8192b173..d1a2a40a 100644 --- a/test/Model/ApplicationCustomerSearchTest.php +++ b/test/Model/ApplicationCustomerSearchTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/test/Model/ApplicationCustomerTest.php b/test/Model/ApplicationCustomerTest.php index 6c493660..784dbd83 100644 --- a/test/Model/ApplicationCustomerTest.php +++ b/test/Model/ApplicationCustomerTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -134,6 +134,13 @@ public function testPropertyLoyaltyMemberships() { } + /** + * Test attribute "audienceMemberships" + */ + public function testPropertyAudienceMemberships() + { + } + /** * Test attribute "lastActivity" */ diff --git a/test/Model/ApplicationEntityTest.php b/test/Model/ApplicationEntityTest.php index 0ef25eba..98d7863e 100644 --- a/test/Model/ApplicationEntityTest.php +++ b/test/Model/ApplicationEntityTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/test/Model/ApplicationEventTest.php b/test/Model/ApplicationEventTest.php index 7eb13303..8b07d17a 100644 --- a/test/Model/ApplicationEventTest.php +++ b/test/Model/ApplicationEventTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/test/Model/ApplicationSessionEntityTest.php b/test/Model/ApplicationSessionEntityTest.php index 77f82bf6..53153ec2 100644 --- a/test/Model/ApplicationSessionEntityTest.php +++ b/test/Model/ApplicationSessionEntityTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/test/Model/ApplicationSessionTest.php b/test/Model/ApplicationSessionTest.php index 8771e21c..a19d310e 100644 --- a/test/Model/ApplicationSessionTest.php +++ b/test/Model/ApplicationSessionTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/test/Model/ApplicationTest.php b/test/Model/ApplicationTest.php index 272be2a4..05372198 100644 --- a/test/Model/ApplicationTest.php +++ b/test/Model/ApplicationTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** @@ -176,6 +176,13 @@ public function testPropertyEnableCascadingDiscounts() { } + /** + * Test attribute "enableFlattenedCartItems" + */ + public function testPropertyEnableFlattenedCartItems() + { + } + /** * Test attribute "attributesSettings" */ diff --git a/test/Model/AttributeTest.php b/test/Model/AttributeTest.php index cb1be93d..5ffd7273 100644 --- a/test/Model/AttributeTest.php +++ b/test/Model/AttributeTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/test/Model/AttributesMandatoryTest.php b/test/Model/AttributesMandatoryTest.php index b82d024e..a6826f7d 100644 --- a/test/Model/AttributesMandatoryTest.php +++ b/test/Model/AttributesMandatoryTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/test/Model/AttributesSettingsTest.php b/test/Model/AttributesSettingsTest.php index ee77b676..64e2240b 100644 --- a/test/Model/AttributesSettingsTest.php +++ b/test/Model/AttributesSettingsTest.php @@ -18,7 +18,7 @@ * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech - * OpenAPI Generator version: 4.2.3 + * OpenAPI Generator version: 4.3.1 */ /** diff --git a/test/Model/AudienceMembershipTest.php b/test/Model/AudienceMembershipTest.php new file mode 100644 index 00000000..79c3555c --- /dev/null +++ b/test/Model/AudienceMembershipTest.php @@ -0,0 +1,94 @@ +