talon

package module
v7.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 22 Imported by: 0

README

Go API client for talon

Use the Talon.One API to integrate with your application and to manage applications and campaigns:

Determining the base URL of the endpoints

The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at https://yourbaseurl.talon.one/, the URL for the updateCustomerSessionV2 endpoint is https://yourbaseurl.talon.one/v2/customer_sessions/{Id}

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version:
  • Package version: 7.0.0
  • Build package: org.openapitools.codegen.languages.GoClientExperimentalCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import sw "./talon"

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identifield by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Getting Started

Integration API

Note: The Integration API's V1 Update customer session and Update customer profile endpoints are now deprecated. Use their V2 instead. See Migrating to V2 for more information.

package main

import (
	"context"
	"encoding/json"
	"fmt"

	talon "github.com/talon-one/talon_go/v7"
)

func main() {
	configuration := talon.NewConfiguration()
	// Set API base path
	configuration.Servers = talon.ServerConfigurations{
		{
			// Notice that there is no trailing '/'
			URL:         "https://yourbaseurl.talon.one",
			Description: "Talon.One's API base URL",
		},
	}
	// If you wish to inject a custom implementation of HTTPClient
	// configuration.HTTPClient = &customHTTPClient

	integrationClient := talon.NewAPIClient(configuration)

	// Create integration authentication context using api key
	integrationAuthContext := context.WithValue(context.Background(), talon.ContextAPIKeys, map[string]talon.APIKey{
		"Authorization": {
			Prefix: "ApiKey-v1",
			Key:    "fd1fd219b1e953a6b2700e8034de5bfc877462ae106127311ddd710978654312",
		},
	})

	// Instantiating a NewCustomerSessionV2 struct
	newCustomerSession := talon.NewCustomerSessionV2{
		// You can use either struct literals
		ProfileId:   talon.PtrString("DEADBEEF"),
		CouponCodes: &[]string{"Cool-Stuff!"},
	}

	// Or alternatively, using the relevant setter in a later stage in the code
	newCustomerSession.SetCartItems([]talon.CartItem{
		{
			Name:     talon.PtrString("Pad Thai - Veggie"),
			Sku:      "pad-332",
			Quantity: 1,
			Price:    talon.PtrFloat32(5.5),
			Category: talon.PtrString("Noodles"),
		},
		{
			Name:     talon.PtrString("Chang"),
			Sku:      "chang-br-42",
			Quantity: 1,
			Price:    talon.PtrFloat32(2.3),
			Category: talon.PtrString("Beverages"),
		},
	})

	// Instantiating a new IntegrationRequest
	integrationRequest := talon.IntegrationRequest{
		CustomerSession: newCustomerSession,
	}

	// Optional list of requested information to be present on the response.
  // See docs/IntegrationRequest.md for full list of supported values
	// integrationRequest.SetResponseContent([]string{
	// 	"customerSession",
	// 	"customerProfile",
	// 	"loyalty",
	// })

	// Create/update a customer session using `UpdateCustomerSessionV2` function
	integrationState, _, err := integrationClient.IntegrationApi.
		UpdateCustomerSessionV2(integrationAuthContext, "deetdoot_2").
		Body(integrationRequest).
		Execute()

	if err != nil {
		fmt.Printf("ERROR while calling UpdateCustomerSessionV2: %s\n", err)
		return
	}
	fmt.Printf("%#v\n", integrationState)

	// Parsing the returned effects list, please consult https://developers.talon.one/Integration-API/handling-effects-v2 for the full list of effects and their corresponding properties
	for _, effect := range integrationState.GetEffects() {
		effectType := effect.GetEffectType()
		switch {
		case "setDiscount" == effectType:
			// Initiating right props instance according to the effect type
			effectProps := talon.SetDiscountEffectProps{}
			if err := decodeHelper(effect.GetProps(), &effectProps); err != nil {
				fmt.Printf("ERROR while decoding 'setDiscount' props: %s\n", err)
				continue
			}

			// Access the specific effect's properties
			fmt.Printf("Set a discount '%s' of %2.3f\n", effectProps.GetName(), effectProps.GetValue())
		case "acceptCoupon" == effectType:
			// Initiating right props instance according to the effect type
			effectProps := talon.AcceptCouponEffectProps{}
			if err := decodeHelper(effect.GetProps(), &effectProps); err != nil {
				fmt.Printf("ERROR while decoding props: %s\n", err)
				continue
			}

			// Work with AcceptCouponEffectProps' properties
			// ...
		default:
			fmt.Printf("Encounter unknown effect type: %s\n", effectType)
		}
	}
}

// quick decoding of props-map into our library structures using JSON marshaling,
// or alternatively using a library like https://github.com/mitchellh/mapstructure
func decodeHelper(propsMap map[string]interface{}, v interface{}) error {
	propsJSON, err := json.Marshal(propsMap)
	if err != nil {
		return err
	}
	return json.Unmarshal(propsJSON, v)
}
Management API
package main

import (
	"context"
	"fmt"

	talon "github.com/talon-one/talon_go/v7"
)

func main() {
	configuration := talon.NewConfiguration()
	// Set API base path
	configuration.Servers = talon.ServerConfigurations{
		{
			// Notice that there is no trailing '/'
			URL:         "https://yourbaseurl.talon.one",
			Description: "Talon.One's API base URL",
		},
	}
	// If you wish to inject a custom implementation of HTTPClient
	// configuration.HTTPClient = &customHTTPClient

	managementClient := talon.NewAPIClient(configuration)

	// Create integration authentication context using the logged-in session
	managerAuthContext := context.WithValue(context.Background(), talon.ContextAPIKeys, map[string]talon.APIKey{
		"Authorization": talon.APIKey{
			Prefix: "ManagementKey-v1",
			Key:    "2f0dce055da01ae595005d7d79154bae7448d319d5fc7c5b2951fadd6ba1ea07",
		},
	})

	// Calling `GetApplication` function with the desired id (7)
	application, response, err := managementClient.ManagementApi.
		GetApplication(managerAuthContext, 7).
		Execute()

	if err != nil {
		fmt.Printf("ERROR while calling GetApplication: %s\n", err)
		return
	}

	fmt.Printf("%#v\n\n", application)
	fmt.Printf("%#v\n\n", response)
}

Documentation for API Endpoints

All URIs are relative to https://yourbaseurl.talon.one

Class Method HTTP request Description
IntegrationApi CreateAudienceV2 Post /v2/audiences Create audience
IntegrationApi CreateCouponReservation Post /v1/coupon_reservations/{couponValue} Create coupon reservation
IntegrationApi CreateReferral Post /v1/referrals Create referral code for an advocate
IntegrationApi CreateReferralsForMultipleAdvocates Post /v1/referrals_for_multiple_advocates Create referral codes for multiple advocates
IntegrationApi DeleteAudienceMembershipsV2 Delete /v2/audiences/{audienceId}/memberships Delete audience memberships
IntegrationApi DeleteAudienceV2 Delete /v2/audiences/{audienceId} Delete audience
IntegrationApi DeleteCouponReservation Delete /v1/coupon_reservations/{couponValue} Delete coupon reservations
IntegrationApi DeleteCustomerData Delete /v1/customer_data/{integrationId} Delete customer's personal data
IntegrationApi GetCustomerInventory Get /v1/customer_profiles/{integrationId}/inventory List customer data
IntegrationApi GetCustomerSession Get /v2/customer_sessions/{customerSessionId} Get customer session
IntegrationApi GetLoyaltyBalances Get /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/balances Get customer's loyalty points
IntegrationApi GetLoyaltyCardBalances Get /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/balances Get card's point balances
IntegrationApi GetLoyaltyCardPoints Get /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/points List card's unused loyalty points
IntegrationApi GetLoyaltyCardTransactions Get /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/transactions List card's transactions
IntegrationApi GetLoyaltyProgramProfilePoints Get /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/points List customer's unused loyalty points
IntegrationApi GetLoyaltyProgramProfileTransactions Get /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/transactions List customer's loyalty transactions
IntegrationApi GetReservedCustomers Get /v1/coupon_reservations/customerprofiles/{couponValue} List customers that have this coupon reserved
IntegrationApi LinkLoyaltyCardToProfile Post /v2/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/link_profile Link customer profile to card
IntegrationApi ReopenCustomerSession Put /v2/customer_sessions/{customerSessionId}/reopen Reopen customer session
IntegrationApi ReturnCartItems Post /v2/customer_sessions/{customerSessionId}/returns Return cart items
IntegrationApi SyncCatalog Put /v1/catalogs/{catalogId}/sync Sync cart item catalog
IntegrationApi TrackEventV2 Post /v2/events Track event
IntegrationApi UpdateAudienceCustomersAttributes Put /v2/audience_customers/{audienceId}/attributes Update profile attributes for all customers in audience
IntegrationApi UpdateAudienceV2 Put /v2/audiences/{audienceId} Update audience name
IntegrationApi UpdateCustomerProfileAudiences Post /v2/customer_audiences Update multiple customer profiles' audiences
IntegrationApi UpdateCustomerProfileV2 Put /v2/customer_profiles/{integrationId} Update customer profile
IntegrationApi UpdateCustomerProfilesV2 Put /v2/customer_profiles Update multiple customer profiles
IntegrationApi UpdateCustomerSessionV2 Put /v2/customer_sessions/{customerSessionId} Update customer session
ManagementApi ActivateUserByEmail Post /v1/users/activate Activate user by email address
ManagementApi AddLoyaltyCardPoints Put /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/add_points Add points to card
ManagementApi AddLoyaltyPoints Put /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/add_points Add points to customer profile
ManagementApi CopyCampaignToApplications Post /v1/applications/{applicationId}/campaigns/{campaignId}/copy Copy the campaign into the specified Application
ManagementApi CreateAccountCollection Post /v1/collections Create account-level collection
ManagementApi CreateAchievement Post /v1/applications/{applicationId}/campaigns/{campaignId}/achievements Create achievement
ManagementApi CreateAdditionalCost Post /v1/additional_costs Create additional cost
ManagementApi CreateAttribute Post /v1/attributes Create custom attribute
ManagementApi CreateCampaignFromTemplate Post /v1/applications/{applicationId}/create_campaign_from_template Create campaign from campaign template
ManagementApi CreateCollection Post /v1/applications/{applicationId}/campaigns/{campaignId}/collections Create campaign-level collection
ManagementApi CreateCoupons Post /v1/applications/{applicationId}/campaigns/{campaignId}/coupons Create coupons
ManagementApi CreateCouponsAsync Post /v1/applications/{applicationId}/campaigns/{campaignId}/coupons_async Create coupons asynchronously
ManagementApi CreateCouponsForMultipleRecipients Post /v1/applications/{applicationId}/campaigns/{campaignId}/coupons_with_recipients Create coupons for multiple recipients
ManagementApi CreateInviteEmail Post /v1/invite_emails Resend invitation email
ManagementApi CreateInviteV2 Post /v2/invites Invite user
ManagementApi CreatePasswordRecoveryEmail Post /v1/password_recovery_emails Request a password reset
ManagementApi CreateSession Post /v1/sessions Create session
ManagementApi CreateStore Post /v1/applications/{applicationId}/stores Create store
ManagementApi DeactivateUserByEmail Post /v1/users/deactivate Deactivate user by email address
ManagementApi DeductLoyaltyCardPoints Put /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/deduct_points Deduct points from card
ManagementApi DeleteAccountCollection Delete /v1/collections/{collectionId} Delete account-level collection
ManagementApi DeleteAchievement Delete /v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId} Delete achievement
ManagementApi DeleteCampaign Delete /v1/applications/{applicationId}/campaigns/{campaignId} Delete campaign
ManagementApi DeleteCollection Delete /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId} Delete campaign-level collection
ManagementApi DeleteCoupon Delete /v1/applications/{applicationId}/campaigns/{campaignId}/coupons/{couponId} Delete coupon
ManagementApi DeleteCoupons Delete /v1/applications/{applicationId}/campaigns/{campaignId}/coupons Delete coupons
ManagementApi DeleteLoyaltyCard Delete /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId} Delete loyalty card
ManagementApi DeleteReferral Delete /v1/applications/{applicationId}/campaigns/{campaignId}/referrals/{referralId} Delete referral
ManagementApi DeleteStore Delete /v1/applications/{applicationId}/stores/{storeId} Delete store
ManagementApi DeleteUser Delete /v1/users/{userId} Delete user
ManagementApi DeleteUserByEmail Post /v1/users/delete Delete user by email address
ManagementApi DestroySession Delete /v1/sessions Destroy session
ManagementApi ExportAccountCollectionItems Get /v1/collections/{collectionId}/export Export account-level collection's items
ManagementApi ExportAchievements Get /v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId}/export Export achievement customer data
ManagementApi ExportAudiencesMemberships Get /v1/audiences/{audienceId}/memberships/export Export audience members
ManagementApi ExportCollectionItems Get /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/export Export campaign-level collection's items
ManagementApi ExportCoupons Get /v1/applications/{applicationId}/export_coupons Export coupons
ManagementApi ExportCustomerSessions Get /v1/applications/{applicationId}/export_customer_sessions Export customer sessions
ManagementApi ExportCustomersTiers Get /v1/loyalty_programs/{loyaltyProgramId}/export_customers_tiers Export customers' tier data
ManagementApi ExportEffects Get /v1/applications/{applicationId}/export_effects Export triggered effects
ManagementApi ExportLoyaltyBalance Get /v1/loyalty_programs/{loyaltyProgramId}/export_customer_balance Export customer loyalty balance to CSV
ManagementApi ExportLoyaltyBalances Get /v1/loyalty_programs/{loyaltyProgramId}/export_customer_balances Export customer loyalty balances
ManagementApi ExportLoyaltyCardBalances Get /v1/loyalty_programs/{loyaltyProgramId}/export_card_balances Export all card transaction logs
ManagementApi ExportLoyaltyCardLedger Get /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/export_log Export card's ledger log
ManagementApi ExportLoyaltyLedger Get /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/export_log Export customer's transaction logs
ManagementApi ExportPoolGiveaways Get /v1/giveaways/pools/{poolId}/export Export giveaway codes of a giveaway pool
ManagementApi ExportReferrals Get /v1/applications/{applicationId}/export_referrals Export referrals
ManagementApi GetAccessLogsWithoutTotalCount Get /v1/applications/{applicationId}/access_logs/no_total Get access logs for Application
ManagementApi GetAccount Get /v1/accounts/{accountId} Get account details
ManagementApi GetAccountAnalytics Get /v1/accounts/{accountId}/analytics Get account analytics
ManagementApi GetAccountCollection Get /v1/collections/{collectionId} Get account-level collection
ManagementApi GetAchievement Get /v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId} Get achievement
ManagementApi GetAdditionalCost Get /v1/additional_costs/{additionalCostId} Get additional cost
ManagementApi GetAdditionalCosts Get /v1/additional_costs List additional costs
ManagementApi GetAllAccessLogs Get /v1/access_logs List access logs
ManagementApi GetApplication Get /v1/applications/{applicationId} Get Application
ManagementApi GetApplicationApiHealth Get /v1/applications/{applicationId}/health_report Get Application health
ManagementApi GetApplicationCustomer Get /v1/applications/{applicationId}/customers/{customerId} Get application's customer
ManagementApi GetApplicationCustomerFriends Get /v1/applications/{applicationId}/profile/{integrationId}/friends List friends referred by customer profile
ManagementApi GetApplicationCustomers Get /v1/applications/{applicationId}/customers List application's customers
ManagementApi GetApplicationCustomersByAttributes Post /v1/applications/{applicationId}/customer_search List application customers matching the given attributes
ManagementApi GetApplicationEventTypes Get /v1/applications/{applicationId}/event_types List Applications event types
ManagementApi GetApplicationEventsWithoutTotalCount Get /v1/applications/{applicationId}/events/no_total List Applications events
ManagementApi GetApplicationSession Get /v1/applications/{applicationId}/sessions/{sessionId} Get Application session
ManagementApi GetApplicationSessions Get /v1/applications/{applicationId}/sessions List Application sessions
ManagementApi GetApplications Get /v1/applications List Applications
ManagementApi GetAttribute Get /v1/attributes/{attributeId} Get custom attribute
ManagementApi GetAttributes Get /v1/attributes List custom attributes
ManagementApi GetAudienceMemberships Get /v1/audiences/{audienceId}/memberships List audience members
ManagementApi GetAudiences Get /v1/audiences List audiences
ManagementApi GetAudiencesAnalytics Get /v1/audiences/analytics List audience analytics
ManagementApi GetCampaign Get /v1/applications/{applicationId}/campaigns/{campaignId} Get campaign
ManagementApi GetCampaignAnalytics Get /v1/applications/{applicationId}/campaigns/{campaignId}/analytics Get analytics of campaigns
ManagementApi GetCampaignByAttributes Post /v1/applications/{applicationId}/campaigns_search List campaigns that match the given attributes
ManagementApi GetCampaignGroup Get /v1/campaign_groups/{campaignGroupId} Get campaign access group
ManagementApi GetCampaignGroups Get /v1/campaign_groups List campaign access groups
ManagementApi GetCampaignTemplates Get /v1/campaign_templates List campaign templates
ManagementApi GetCampaigns Get /v1/applications/{applicationId}/campaigns List campaigns
ManagementApi GetChanges Get /v1/changes Get audit logs for an account
ManagementApi GetCollection Get /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId} Get campaign-level collection
ManagementApi GetCollectionItems Get /v1/collections/{collectionId}/items Get collection items
ManagementApi GetCouponsWithoutTotalCount Get /v1/applications/{applicationId}/campaigns/{campaignId}/coupons/no_total List coupons
ManagementApi GetCustomerActivityReport Get /v1/applications/{applicationId}/customer_activity_reports/{customerId} Get customer's activity report
ManagementApi GetCustomerActivityReportsWithoutTotalCount Get /v1/applications/{applicationId}/customer_activity_reports/no_total Get Activity Reports for Application Customers
ManagementApi GetCustomerAnalytics Get /v1/applications/{applicationId}/customers/{customerId}/analytics Get customer's analytics report
ManagementApi GetCustomerProfile Get /v1/customers/{customerId} Get customer profile
ManagementApi GetCustomerProfileAchievementProgress Get /v1/applications/{applicationId}/achievement_progress/{integrationId} List customer achievements
ManagementApi GetCustomerProfiles Get /v1/customers/no_total List customer profiles
ManagementApi GetCustomersByAttributes Post /v1/customer_search/no_total List customer profiles matching the given attributes
ManagementApi GetEventTypes Get /v1/event_types List event types
ManagementApi GetExports Get /v1/exports Get exports
ManagementApi GetLoyaltyCard Get /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId} Get loyalty card
ManagementApi GetLoyaltyCardTransactionLogs Get /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/logs List card's transactions
ManagementApi GetLoyaltyCards Get /v1/loyalty_programs/{loyaltyProgramId}/cards List loyalty cards
ManagementApi GetLoyaltyPoints Get /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId} Get customer's full loyalty ledger
ManagementApi GetLoyaltyProgram Get /v1/loyalty_programs/{loyaltyProgramId} Get loyalty program
ManagementApi GetLoyaltyProgramTransactions Get /v1/loyalty_programs/{loyaltyProgramId}/transactions List loyalty program transactions
ManagementApi GetLoyaltyPrograms Get /v1/loyalty_programs List loyalty programs
ManagementApi GetLoyaltyStatistics Get /v1/loyalty_programs/{loyaltyProgramId}/statistics Get loyalty program statistics
ManagementApi GetReferralsWithoutTotalCount Get /v1/applications/{applicationId}/campaigns/{campaignId}/referrals/no_total List referrals
ManagementApi GetRoleV2 Get /v2/roles/{roleId} Get role
ManagementApi GetRuleset Get /v1/applications/{applicationId}/campaigns/{campaignId}/rulesets/{rulesetId} Get ruleset
ManagementApi GetRulesets Get /v1/applications/{applicationId}/campaigns/{campaignId}/rulesets List campaign rulesets
ManagementApi GetStore Get /v1/applications/{applicationId}/stores/{storeId} Get store
ManagementApi GetUser Get /v1/users/{userId} Get user
ManagementApi GetUsers Get /v1/users List users in account
ManagementApi GetWebhook Get /v1/webhooks/{webhookId} Get webhook
ManagementApi GetWebhookActivationLogs Get /v1/webhook_activation_logs List webhook activation log entries
ManagementApi GetWebhookLogs Get /v1/webhook_logs List webhook log entries
ManagementApi GetWebhooks Get /v1/webhooks List webhooks
ManagementApi ImportAccountCollection Post /v1/collections/{collectionId}/import Import data into existing account-level collection
ManagementApi ImportAllowedList Post /v1/attributes/{attributeId}/allowed_list/import Import allowed values for attribute
ManagementApi ImportAudiencesMemberships Post /v1/audiences/{audienceId}/memberships/import Import audience members
ManagementApi ImportCollection Post /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/import Import data into existing campaign-level collection
ManagementApi ImportCoupons Post /v1/applications/{applicationId}/campaigns/{campaignId}/import_coupons Import coupons
ManagementApi ImportLoyaltyCards Post /v1/loyalty_programs/{loyaltyProgramId}/import_cards Import loyalty cards
ManagementApi ImportLoyaltyCustomersTiers Post /v1/loyalty_programs/{loyaltyProgramId}/import_customers_tiers Import customers into loyalty tiers
ManagementApi ImportLoyaltyPoints Post /v1/loyalty_programs/{loyaltyProgramId}/import_points Import loyalty points
ManagementApi ImportPoolGiveaways Post /v1/giveaways/pools/{poolId}/import Import giveaway codes into a giveaway pool
ManagementApi ImportReferrals Post /v1/applications/{applicationId}/campaigns/{campaignId}/import_referrals Import referrals
ManagementApi InviteUserExternal Post /v1/users/invite Invite user from identity provider
ManagementApi ListAccountCollections Get /v1/collections List collections in account
ManagementApi ListAchievements Get /v1/applications/{applicationId}/campaigns/{campaignId}/achievements List achievements
ManagementApi ListAllRolesV2 Get /v2/roles List roles
ManagementApi ListCatalogItems Get /v1/catalogs/{catalogId}/items List items in a catalog
ManagementApi ListCollections Get /v1/applications/{applicationId}/campaigns/{campaignId}/collections List collections in campaign
ManagementApi ListCollectionsInApplication Get /v1/applications/{applicationId}/collections List collections in Application
ManagementApi ListStores Get /v1/applications/{applicationId}/stores List stores
ManagementApi NotificationActivation Put /v1/notifications/{notificationId}/activation Activate or deactivate notification
ManagementApi PostAddedDeductedPointsNotification Post /v1/loyalty_programs/{loyaltyProgramId}/notifications/added_deducted_points Create notification about added or deducted loyalty points
ManagementApi PostCatalogsStrikethroughNotification Post /v1/applications/{applicationId}/catalogs/notifications/strikethrough Create strikethrough notification
ManagementApi PostPendingPointsNotification Post /v1/loyalty_programs/{loyaltyProgramId}/notifications/pending_points Create notification about pending loyalty points
ManagementApi RemoveLoyaltyPoints Put /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/deduct_points Deduct points from customer profile
ManagementApi ResetPassword Post /v1/reset_password Reset password
ManagementApi SearchCouponsAdvancedApplicationWideWithoutTotalCount Post /v1/applications/{applicationId}/coupons_search_advanced/no_total List coupons that match the given attributes (without total count)
ManagementApi SearchCouponsAdvancedWithoutTotalCount Post /v1/applications/{applicationId}/campaigns/{campaignId}/coupons_search_advanced/no_total List coupons that match the given attributes in campaign (without total count)
ManagementApi TransferLoyaltyCard Put /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/transfer Transfer card data
ManagementApi UpdateAccountCollection Put /v1/collections/{collectionId} Update account-level collection
ManagementApi UpdateAchievement Put /v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId} Update achievement
ManagementApi UpdateAdditionalCost Put /v1/additional_costs/{additionalCostId} Update additional cost
ManagementApi UpdateAttribute Put /v1/attributes/{attributeId} Update custom attribute
ManagementApi UpdateCampaign Put /v1/applications/{applicationId}/campaigns/{campaignId} Update campaign
ManagementApi UpdateCollection Put /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId} Update campaign-level collection's description
ManagementApi UpdateCoupon Put /v1/applications/{applicationId}/campaigns/{campaignId}/coupons/{couponId} Update coupon
ManagementApi UpdateCouponBatch Put /v1/applications/{applicationId}/campaigns/{campaignId}/coupons Update coupons
ManagementApi UpdateLoyaltyCard Put /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId} Update loyalty card status
ManagementApi UpdateReferral Put /v1/applications/{applicationId}/campaigns/{campaignId}/referrals/{referralId} Update referral
ManagementApi UpdateRoleV2 Put /v2/roles/{roleId} Update role
ManagementApi UpdateStore Put /v1/applications/{applicationId}/stores/{storeId} Update store
ManagementApi UpdateUser Put /v1/users/{userId} Update user

Documentation For Models

Documentation For Authorization

api_key_v1
  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: Authorization and passed in as the auth context for each request.

management_key
  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: Authorization and passed in as the auth context for each request.

manager_auth
  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: Authorization and passed in as the auth context for each request.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)
View Source
var ErrInvalidNullable = errors.New("nullable cannot have non-zero Value and ExplicitNull simultaneously")

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given integer value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	IntegrationApi *IntegrationApiService

	ManagementApi *ManagementApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the Talon.One API API v In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResonse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type AcceptCouponEffectProps

type AcceptCouponEffectProps struct {
	// The coupon code that was accepted.
	Value string `json:"value"`
}

AcceptCouponEffectProps The properties specific to the \"acceptCoupon\" effect. This gets triggered whenever the coupon is valid and all other conditions in the rules of its campaign are met.

func (*AcceptCouponEffectProps) GetValue

func (o *AcceptCouponEffectProps) GetValue() string

GetValue returns the Value field value

func (*AcceptCouponEffectProps) SetValue

func (o *AcceptCouponEffectProps) SetValue(v string)

SetValue sets field value

type AcceptReferralEffectProps

type AcceptReferralEffectProps struct {
	// The referral code that was accepted.
	Value string `json:"value"`
}

AcceptReferralEffectProps The properties specific to the \"acceptReferral\" effect. TThis gets triggered whenever the referral code is valid and all other conditions in the rules of its campaign are met.

func (*AcceptReferralEffectProps) GetValue

func (o *AcceptReferralEffectProps) GetValue() string

GetValue returns the Value field value

func (*AcceptReferralEffectProps) SetValue

func (o *AcceptReferralEffectProps) SetValue(v string)

SetValue sets field value

type AccessLogEntry

type AccessLogEntry struct {
	// UUID reference of request.
	Uuid string `json:"uuid"`
	// HTTP status code of response.
	Status int32 `json:"status"`
	// HTTP method of request.
	Method string `json:"method"`
	// target URI of request
	RequestUri string `json:"requestUri"`
	// timestamp of request
	Time time.Time `json:"time"`
	// payload of request
	RequestPayload string `json:"requestPayload"`
	// payload of response
	ResponsePayload string `json:"responsePayload"`
}

AccessLogEntry Log of application accesses.

func (*AccessLogEntry) GetMethod

func (o *AccessLogEntry) GetMethod() string

GetMethod returns the Method field value

func (*AccessLogEntry) GetRequestPayload

func (o *AccessLogEntry) GetRequestPayload() string

GetRequestPayload returns the RequestPayload field value

func (*AccessLogEntry) GetRequestUri

func (o *AccessLogEntry) GetRequestUri() string

GetRequestUri returns the RequestUri field value

func (*AccessLogEntry) GetResponsePayload

func (o *AccessLogEntry) GetResponsePayload() string

GetResponsePayload returns the ResponsePayload field value

func (*AccessLogEntry) GetStatus

func (o *AccessLogEntry) GetStatus() int32

GetStatus returns the Status field value

func (*AccessLogEntry) GetTime

func (o *AccessLogEntry) GetTime() time.Time

GetTime returns the Time field value

func (*AccessLogEntry) GetUuid

func (o *AccessLogEntry) GetUuid() string

GetUuid returns the Uuid field value

func (*AccessLogEntry) SetMethod

func (o *AccessLogEntry) SetMethod(v string)

SetMethod sets field value

func (*AccessLogEntry) SetRequestPayload

func (o *AccessLogEntry) SetRequestPayload(v string)

SetRequestPayload sets field value

func (*AccessLogEntry) SetRequestUri

func (o *AccessLogEntry) SetRequestUri(v string)

SetRequestUri sets field value

func (*AccessLogEntry) SetResponsePayload

func (o *AccessLogEntry) SetResponsePayload(v string)

SetResponsePayload sets field value

func (*AccessLogEntry) SetStatus

func (o *AccessLogEntry) SetStatus(v int32)

SetStatus sets field value

func (*AccessLogEntry) SetTime

func (o *AccessLogEntry) SetTime(v time.Time)

SetTime sets field value

func (*AccessLogEntry) SetUuid

func (o *AccessLogEntry) SetUuid(v string)

SetUuid sets field value

type Account

type Account struct {
	// Internal ID of this entity.
	Id int32 `json:"id"`
	// The time this entity was created.
	Created time.Time `json:"created"`
	// The time this entity was last modified.
	Modified    time.Time `json:"modified"`
	CompanyName string    `json:"companyName"`
	// Subdomain Name for yourcompany.talon.one.
	DomainName string `json:"domainName"`
	// State of the account (active, deactivated).
	State string `json:"state"`
	// The billing email address associated with your company account.
	BillingEmail string `json:"billingEmail"`
	// The name of your booked plan.
	PlanName *string `json:"planName,omitempty"`
	// The point in time at which your current plan expires.
	PlanExpires *time.Time `json:"planExpires,omitempty"`
	// The maximum number of Applications covered by your plan.
	ApplicationLimit *int32 `json:"applicationLimit,omitempty"`
	// The maximum number of Campaign Manager Users covered by your plan.
	UserLimit *int32 `json:"userLimit,omitempty"`
	// The maximum number of Campaigns covered by your plan.
	CampaignLimit *int32 `json:"campaignLimit,omitempty"`
	// The maximum number of Integration API calls covered by your plan per billing period.
	ApiLimit *int32 `json:"apiLimit,omitempty"`
	// The current number of Applications in your account.
	ApplicationCount int32 `json:"applicationCount"`
	// The current number of Campaign Manager Users in your account.
	UserCount int32 `json:"userCount"`
	// The current number of active Campaigns in your account.
	CampaignsActiveCount int32 `json:"campaignsActiveCount"`
	// The current number of inactive Campaigns in your account.
	CampaignsInactiveCount int32 `json:"campaignsInactiveCount"`
	// Arbitrary properties associated with this campaign.
	Attributes *map[string]interface{} `json:"attributes,omitempty"`
}

Account

func (*Account) GetApiLimit

func (o *Account) GetApiLimit() int32

GetApiLimit returns the ApiLimit field value if set, zero value otherwise.

func (*Account) GetApiLimitOk

func (o *Account) GetApiLimitOk() (int32, bool)

GetApiLimitOk returns a tuple with the ApiLimit field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*Account) GetApplicationCount

func (o *Account) GetApplicationCount() int32

GetApplicationCount returns the ApplicationCount field value

func (*Account) GetApplicationLimit

func (o *Account) GetApplicationLimit() int32

GetApplicationLimit returns the ApplicationLimit field value if set, zero value otherwise.

func (*Account) GetApplicationLimitOk

func (o *Account) GetApplicationLimitOk() (int32, bool)

GetApplicationLimitOk returns a tuple with the ApplicationLimit field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*Account) GetAttributes

func (o *Account) GetAttributes() map[string]interface{}

GetAttributes returns the Attributes field value if set, zero value otherwise.

func (*Account) GetAttributesOk

func (o *Account) GetAttributesOk() (map[string]interface{}, bool)

GetAttributesOk returns a tuple with the Attributes field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*Account) GetBillingEmail

func (o *Account) GetBillingEmail() string

GetBillingEmail returns the BillingEmail field value

func (*Account) GetCampaignLimit

func (o *Account) GetCampaignLimit() int32

GetCampaignLimit returns the CampaignLimit field value if set, zero value otherwise.

func (*Account) GetCampaignLimitOk

func (o *Account) GetCampaignLimitOk() (int32, bool)

GetCampaignLimitOk returns a tuple with the CampaignLimit field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*Account) GetCampaignsActiveCount

func (o *Account) GetCampaignsActiveCount() int32

GetCampaignsActiveCount returns the CampaignsActiveCount field value

func (*Account) GetCampaignsInactiveCount

func (o *Account) GetCampaignsInactiveCount() int32

GetCampaignsInactiveCount returns the CampaignsInactiveCount field value

func (*Account) GetCompanyName

func (o *Account) GetCompanyName() string

GetCompanyName returns the CompanyName field value

func (*Account) GetCreated

func (o *Account) GetCreated() time.Time

GetCreated returns the Created field value

func (*Account) GetDomainName

func (o *Account) GetDomainName() string

GetDomainName returns the DomainName field value

func (*Account) GetId

func (o *Account) GetId() int32

GetId returns the Id field value

func (*Account) GetModified

func (o *Account) GetModified() time.Time

GetModified returns the Modified field value

func (*Account) GetPlanExpires

func (o *Account) GetPlanExpires() time.Time

GetPlanExpires returns the PlanExpires field value if set, zero value otherwise.

func (*Account) GetPlanExpiresOk

func (o *Account) GetPlanExpiresOk() (time.Time, bool)

GetPlanExpiresOk returns a tuple with the PlanExpires field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*Account) GetPlanName

func (o *Account) GetPlanName() string

GetPlanName returns the PlanName field value if set, zero value otherwise.

func (*Account) GetPlanNameOk

func (o *Account) GetPlanNameOk() (string, bool)

GetPlanNameOk returns a tuple with the PlanName field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*Account) GetState

func (o *Account) GetState() string

GetState returns the State field value

func (*Account) GetUserCount

func (o *Account) GetUserCount() int32

GetUserCount returns the UserCount field value

func (*Account) GetUserLimit

func (o *Account) GetUserLimit() int32

GetUserLimit returns the UserLimit field value if set, zero value otherwise.

func (*Account) GetUserLimitOk

func (o *Account) GetUserLimitOk() (int32, bool)

GetUserLimitOk returns a tuple with the UserLimit field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*Account) HasApiLimit

func (o *Account) HasApiLimit() bool

HasApiLimit returns a boolean if a field has been set.

func (*Account) HasApplicationLimit

func (o *Account) HasApplicationLimit() bool

HasApplicationLimit returns a boolean if a field has been set.

func (*Account) HasAttributes

func (o *Account) HasAttributes() bool

HasAttributes returns a boolean if a field has been set.

func (*Account) HasCampaignLimit

func (o *Account) HasCampaignLimit() bool

HasCampaignLimit returns a boolean if a field has been set.

func (*Account) HasPlanExpires

func (o *Account) HasPlanExpires() bool

HasPlanExpires returns a boolean if a field has been set.

func (*Account) HasPlanName

func (o *Account) HasPlanName() bool

HasPlanName returns a boolean if a field has been set.

func (*Account) HasUserLimit

func (o *Account) HasUserLimit() bool

HasUserLimit returns a boolean if a field has been set.

func (*Account) SetApiLimit

func (o *Account) SetApiLimit(v int32)

SetApiLimit gets a reference to the given int32 and assigns it to the ApiLimit field.

func (*Account) SetApplicationCount

func (o *Account) SetApplicationCount(v int32)

SetApplicationCount sets field value

func (*Account) SetApplicationLimit

func (o *Account) SetApplicationLimit(v int32)

SetApplicationLimit gets a reference to the given int32 and assigns it to the ApplicationLimit field.

func (*Account) SetAttributes

func (o *Account) SetAttributes(v map[string]interface{})

SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.

func (*Account) SetBillingEmail

func (o *Account) SetBillingEmail(v string)

SetBillingEmail sets field value

func (*Account) SetCampaignLimit

func (o *Account) SetCampaignLimit(v int32)

SetCampaignLimit gets a reference to the given int32 and assigns it to the CampaignLimit field.

func (*Account) SetCampaignsActiveCount

func (o *Account) SetCampaignsActiveCount(v int32)

SetCampaignsActiveCount sets field value

func (*Account) SetCampaignsInactiveCount

func (o *Account) SetCampaignsInactiveCount(v int32)

SetCampaignsInactiveCount sets field value

func (*Account) SetCompanyName

func (o *Account) SetCompanyName(v string)

SetCompanyName sets field value

func (*Account) SetCreated

func (o *Account) SetCreated(v time.Time)

SetCreated sets field value

func (*Account) SetDomainName

func (o *Account) SetDomainName(v string)

SetDomainName sets field value

func (*Account) SetId

func (o *Account) SetId(v int32)

SetId sets field value

func (*Account) SetModified

func (o *Account) SetModified(v time.Time)

SetModified sets field value

func (*Account) SetPlanExpires

func (o *Account) SetPlanExpires(v time.Time)

SetPlanExpires gets a reference to the given time.Time and assigns it to the PlanExpires field.

func (*Account) SetPlanName

func (o *Account) SetPlanName(v string)

SetPlanName gets a reference to the given string and assigns it to the PlanName field.

func (*Account) SetState

func (o *Account) SetState(v string)

SetState sets field value

func (*Account) SetUserCount

func (o *Account) SetUserCount(v int32)

SetUserCount sets field value

func (*Account) SetUserLimit

func (o *Account) SetUserLimit(v int32)

SetUserLimit gets a reference to the given int32 and assigns it to the UserLimit field.

type AccountAdditionalCost

type AccountAdditionalCost struct {
	// Internal ID of this entity.
	Id int32 `json:"id"`
	// The time this entity was created.
	Created time.Time `json:"created"`
	// The ID of the account that owns this entity.
	AccountId int32 `json:"accountId"`
	// The internal name used in API requests.
	Name string `json:"name"`
	// The human-readable name for the additional cost that will be shown in the Campaign Manager. Like `name`, the combination of entity and title must also be unique.
	Title string `json:"title"`
	// A description of this additional cost.
	Description string `json:"description"`
	// A list of the IDs of the applications that are subscribed to this additional cost.
	SubscribedApplicationsIds *[]int32 `json:"subscribedApplicationsIds,omitempty"`
	// The type of additional cost. Possible value: - `session`: Additional cost will be added per session. - `item`: Additional cost will be added per item. - `both`: Additional cost will be added per item and session.
	Type *string `json:"type,omitempty"`
}

AccountAdditionalCost

func (*AccountAdditionalCost) GetAccountId

func (o *AccountAdditionalCost) GetAccountId() int32

GetAccountId returns the AccountId field value

func (*AccountAdditionalCost) GetCreated

func (o *AccountAdditionalCost) GetCreated() time.Time

GetCreated returns the Created field value

func (*AccountAdditionalCost) GetDescription

func (o *AccountAdditionalCost) GetDescription() string

GetDescription returns the Description field value

func (*AccountAdditionalCost) GetId

func (o *AccountAdditionalCost) GetId() int32

GetId returns the Id field value

func (*AccountAdditionalCost) GetName

func (o *AccountAdditionalCost) GetName() string

GetName returns the Name field value

func (*AccountAdditionalCost) GetSubscribedApplicationsIds

func (o *AccountAdditionalCost) GetSubscribedApplicationsIds() []int32

GetSubscribedApplicationsIds returns the SubscribedApplicationsIds field value if set, zero value otherwise.

func (*AccountAdditionalCost) GetSubscribedApplicationsIdsOk

func (o *AccountAdditionalCost) GetSubscribedApplicationsIdsOk() ([]int32, bool)

GetSubscribedApplicationsIdsOk returns a tuple with the SubscribedApplicationsIds field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AccountAdditionalCost) GetTitle

func (o *AccountAdditionalCost) GetTitle() string

GetTitle returns the Title field value

func (*AccountAdditionalCost) GetType

func (o *AccountAdditionalCost) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*AccountAdditionalCost) GetTypeOk

func (o *AccountAdditionalCost) GetTypeOk() (string, bool)

GetTypeOk returns a tuple with the Type field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AccountAdditionalCost) HasSubscribedApplicationsIds

func (o *AccountAdditionalCost) HasSubscribedApplicationsIds() bool

HasSubscribedApplicationsIds returns a boolean if a field has been set.

func (*AccountAdditionalCost) HasType

func (o *AccountAdditionalCost) HasType() bool

HasType returns a boolean if a field has been set.

func (*AccountAdditionalCost) SetAccountId

func (o *AccountAdditionalCost) SetAccountId(v int32)

SetAccountId sets field value

func (*AccountAdditionalCost) SetCreated

func (o *AccountAdditionalCost) SetCreated(v time.Time)

SetCreated sets field value

func (*AccountAdditionalCost) SetDescription

func (o *AccountAdditionalCost) SetDescription(v string)

SetDescription sets field value

func (*AccountAdditionalCost) SetId

func (o *AccountAdditionalCost) SetId(v int32)

SetId sets field value

func (*AccountAdditionalCost) SetName

func (o *AccountAdditionalCost) SetName(v string)

SetName sets field value

func (*AccountAdditionalCost) SetSubscribedApplicationsIds

func (o *AccountAdditionalCost) SetSubscribedApplicationsIds(v []int32)

SetSubscribedApplicationsIds gets a reference to the given []int32 and assigns it to the SubscribedApplicationsIds field.

func (*AccountAdditionalCost) SetTitle

func (o *AccountAdditionalCost) SetTitle(v string)

SetTitle sets field value

func (*AccountAdditionalCost) SetType

func (o *AccountAdditionalCost) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

type AccountAnalytics

type AccountAnalytics struct {
	// Total number of applications in the account.
	Applications int32 `json:"applications"`
	// Total number of live applications in the account.
	LiveApplications int32 `json:"liveApplications"`
	// Total number of sandbox applications in the account.
	SandboxApplications int32 `json:"sandboxApplications"`
	// Total number of campaigns in the account.
	Campaigns int32 `json:"campaigns"`
	// Total number of active campaigns in the account.
	ActiveCampaigns int32 `json:"activeCampaigns"`
	// Total number of active campaigns in live applications in the account.
	LiveActiveCampaigns int32 `json:"liveActiveCampaigns"`
	// Total number of coupons in the account.
	Coupons int32 `json:"coupons"`
	// Total number of active coupons in the account.
	ActiveCoupons int32 `json:"activeCoupons"`
	// Total number of expired coupons in the account.
	ExpiredCoupons int32 `json:"expiredCoupons"`
	// Total number of referral codes in the account.
	ReferralCodes int32 `json:"referralCodes"`
	// Total number of active referral codes in the account.
	ActiveReferralCodes int32 `json:"activeReferralCodes"`
	// Total number of expired referral codes in the account.
	ExpiredReferralCodes int32 `json:"expiredReferralCodes"`
	// Total number of active rules in the account.
	ActiveRules int32 `json:"activeRules"`
	// Total number of users in the account.
	Users int32 `json:"users"`
	// Total number of roles in the account.
	Roles int32 `json:"roles"`
	// Total number of custom attributes in the account.
	CustomAttributes int32 `json:"customAttributes"`
	// Total number of webhooks in the account.
	Webhooks int32 `json:"webhooks"`
	// Total number of all loyalty programs in the account.
	LoyaltyPrograms int32 `json:"loyaltyPrograms"`
	// Total number of live loyalty programs in the account.
	LiveLoyaltyPrograms int32 `json:"liveLoyaltyPrograms"`
	// The point in time when the analytics numbers were updated last.
	LastUpdatedAt time.Time `json:"lastUpdatedAt"`
}

AccountAnalytics struct for AccountAnalytics

func (*AccountAnalytics) GetActiveCampaigns

func (o *AccountAnalytics) GetActiveCampaigns() int32

GetActiveCampaigns returns the ActiveCampaigns field value

func (*AccountAnalytics) GetActiveCoupons

func (o *AccountAnalytics) GetActiveCoupons() int32

GetActiveCoupons returns the ActiveCoupons field value

func (*AccountAnalytics) GetActiveReferralCodes

func (o *AccountAnalytics) GetActiveReferralCodes() int32

GetActiveReferralCodes returns the ActiveReferralCodes field value

func (*AccountAnalytics) GetActiveRules

func (o *AccountAnalytics) GetActiveRules() int32

GetActiveRules returns the ActiveRules field value

func (*AccountAnalytics) GetApplications

func (o *AccountAnalytics) GetApplications() int32

GetApplications returns the Applications field value

func (*AccountAnalytics) GetCampaigns

func (o *AccountAnalytics) GetCampaigns() int32

GetCampaigns returns the Campaigns field value

func (*AccountAnalytics) GetCoupons

func (o *AccountAnalytics) GetCoupons() int32

GetCoupons returns the Coupons field value

func (*AccountAnalytics) GetCustomAttributes

func (o *AccountAnalytics) GetCustomAttributes() int32

GetCustomAttributes returns the CustomAttributes field value

func (*AccountAnalytics) GetExpiredCoupons

func (o *AccountAnalytics) GetExpiredCoupons() int32

GetExpiredCoupons returns the ExpiredCoupons field value

func (*AccountAnalytics) GetExpiredReferralCodes

func (o *AccountAnalytics) GetExpiredReferralCodes() int32

GetExpiredReferralCodes returns the ExpiredReferralCodes field value

func (*AccountAnalytics) GetLastUpdatedAt

func (o *AccountAnalytics) GetLastUpdatedAt() time.Time

GetLastUpdatedAt returns the LastUpdatedAt field value

func (*AccountAnalytics) GetLiveActiveCampaigns

func (o *AccountAnalytics) GetLiveActiveCampaigns() int32

GetLiveActiveCampaigns returns the LiveActiveCampaigns field value

func (*AccountAnalytics) GetLiveApplications

func (o *AccountAnalytics) GetLiveApplications() int32

GetLiveApplications returns the LiveApplications field value

func (*AccountAnalytics) GetLiveLoyaltyPrograms

func (o *AccountAnalytics) GetLiveLoyaltyPrograms() int32

GetLiveLoyaltyPrograms returns the LiveLoyaltyPrograms field value

func (*AccountAnalytics) GetLoyaltyPrograms

func (o *AccountAnalytics) GetLoyaltyPrograms() int32

GetLoyaltyPrograms returns the LoyaltyPrograms field value

func (*AccountAnalytics) GetReferralCodes

func (o *AccountAnalytics) GetReferralCodes() int32

GetReferralCodes returns the ReferralCodes field value

func (*AccountAnalytics) GetRoles

func (o *AccountAnalytics) GetRoles() int32

GetRoles returns the Roles field value

func (*AccountAnalytics) GetSandboxApplications

func (o *AccountAnalytics) GetSandboxApplications() int32

GetSandboxApplications returns the SandboxApplications field value

func (*AccountAnalytics) GetUsers

func (o *AccountAnalytics) GetUsers() int32

GetUsers returns the Users field value

func (*AccountAnalytics) GetWebhooks

func (o *AccountAnalytics) GetWebhooks() int32

GetWebhooks returns the Webhooks field value

func (*AccountAnalytics) SetActiveCampaigns

func (o *AccountAnalytics) SetActiveCampaigns(v int32)

SetActiveCampaigns sets field value

func (*AccountAnalytics) SetActiveCoupons

func (o *AccountAnalytics) SetActiveCoupons(v int32)

SetActiveCoupons sets field value

func (*AccountAnalytics) SetActiveReferralCodes

func (o *AccountAnalytics) SetActiveReferralCodes(v int32)

SetActiveReferralCodes sets field value

func (*AccountAnalytics) SetActiveRules

func (o *AccountAnalytics) SetActiveRules(v int32)

SetActiveRules sets field value

func (*AccountAnalytics) SetApplications

func (o *AccountAnalytics) SetApplications(v int32)

SetApplications sets field value

func (*AccountAnalytics) SetCampaigns

func (o *AccountAnalytics) SetCampaigns(v int32)

SetCampaigns sets field value

func (*AccountAnalytics) SetCoupons

func (o *AccountAnalytics) SetCoupons(v int32)

SetCoupons sets field value

func (*AccountAnalytics) SetCustomAttributes

func (o *AccountAnalytics) SetCustomAttributes(v int32)

SetCustomAttributes sets field value

func (*AccountAnalytics) SetExpiredCoupons

func (o *AccountAnalytics) SetExpiredCoupons(v int32)

SetExpiredCoupons sets field value

func (*AccountAnalytics) SetExpiredReferralCodes

func (o *AccountAnalytics) SetExpiredReferralCodes(v int32)

SetExpiredReferralCodes sets field value

func (*AccountAnalytics) SetLastUpdatedAt

func (o *AccountAnalytics) SetLastUpdatedAt(v time.Time)

SetLastUpdatedAt sets field value

func (*AccountAnalytics) SetLiveActiveCampaigns

func (o *AccountAnalytics) SetLiveActiveCampaigns(v int32)

SetLiveActiveCampaigns sets field value

func (*AccountAnalytics) SetLiveApplications

func (o *AccountAnalytics) SetLiveApplications(v int32)

SetLiveApplications sets field value

func (*AccountAnalytics) SetLiveLoyaltyPrograms

func (o *AccountAnalytics) SetLiveLoyaltyPrograms(v int32)

SetLiveLoyaltyPrograms sets field value

func (*AccountAnalytics) SetLoyaltyPrograms

func (o *AccountAnalytics) SetLoyaltyPrograms(v int32)

SetLoyaltyPrograms sets field value

func (*AccountAnalytics) SetReferralCodes

func (o *AccountAnalytics) SetReferralCodes(v int32)

SetReferralCodes sets field value

func (*AccountAnalytics) SetRoles

func (o *AccountAnalytics) SetRoles(v int32)

SetRoles sets field value

func (*AccountAnalytics) SetSandboxApplications

func (o *AccountAnalytics) SetSandboxApplications(v int32)

SetSandboxApplications sets field value

func (*AccountAnalytics) SetUsers

func (o *AccountAnalytics) SetUsers(v int32)

SetUsers sets field value

func (*AccountAnalytics) SetWebhooks

func (o *AccountAnalytics) SetWebhooks(v int32)

SetWebhooks sets field value

type AccountDashboardStatistic

type AccountDashboardStatistic struct {
	// Aggregated statistic for account revenue.
	Revenue *[]AccountDashboardStatisticRevenue `json:"revenue,omitempty"`
	// Aggregated statistic for account discount.
	Discounts *[]AccountDashboardStatisticDiscount `json:"discounts,omitempty"`
	// Aggregated statistic for account loyalty points.
	LoyaltyPoints *[]AccountDashboardStatisticLoyaltyPoints `json:"loyaltyPoints,omitempty"`
	// Aggregated statistic for account referrals.
	Referrals *[]AccountDashboardStatisticReferrals `json:"referrals,omitempty"`
	Campaigns AccountDashboardStatisticCampaigns    `json:"campaigns"`
}

AccountDashboardStatistic struct for AccountDashboardStatistic

func (*AccountDashboardStatistic) GetCampaigns

GetCampaigns returns the Campaigns field value

func (*AccountDashboardStatistic) GetDiscounts

GetDiscounts returns the Discounts field value if set, zero value otherwise.

func (*AccountDashboardStatistic) GetDiscountsOk

GetDiscountsOk returns a tuple with the Discounts field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AccountDashboardStatistic) GetLoyaltyPoints

GetLoyaltyPoints returns the LoyaltyPoints field value if set, zero value otherwise.

func (*AccountDashboardStatistic) GetLoyaltyPointsOk

GetLoyaltyPointsOk returns a tuple with the LoyaltyPoints field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AccountDashboardStatistic) GetReferrals

GetReferrals returns the Referrals field value if set, zero value otherwise.

func (*AccountDashboardStatistic) GetReferralsOk

GetReferralsOk returns a tuple with the Referrals field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AccountDashboardStatistic) GetRevenue

GetRevenue returns the Revenue field value if set, zero value otherwise.

func (*AccountDashboardStatistic) GetRevenueOk

GetRevenueOk returns a tuple with the Revenue field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AccountDashboardStatistic) HasDiscounts

func (o *AccountDashboardStatistic) HasDiscounts() bool

HasDiscounts returns a boolean if a field has been set.

func (*AccountDashboardStatistic) HasLoyaltyPoints

func (o *AccountDashboardStatistic) HasLoyaltyPoints() bool

HasLoyaltyPoints returns a boolean if a field has been set.

func (*AccountDashboardStatistic) HasReferrals

func (o *AccountDashboardStatistic) HasReferrals() bool

HasReferrals returns a boolean if a field has been set.

func (*AccountDashboardStatistic) HasRevenue

func (o *AccountDashboardStatistic) HasRevenue() bool

HasRevenue returns a boolean if a field has been set.

func (*AccountDashboardStatistic) SetCampaigns

SetCampaigns sets field value

func (*AccountDashboardStatistic) SetDiscounts

SetDiscounts gets a reference to the given []AccountDashboardStatisticDiscount and assigns it to the Discounts field.

func (*AccountDashboardStatistic) SetLoyaltyPoints

SetLoyaltyPoints gets a reference to the given []AccountDashboardStatisticLoyaltyPoints and assigns it to the LoyaltyPoints field.

func (*AccountDashboardStatistic) SetReferrals

SetReferrals gets a reference to the given []AccountDashboardStatisticReferrals and assigns it to the Referrals field.

func (*AccountDashboardStatistic) SetRevenue

SetRevenue gets a reference to the given []AccountDashboardStatisticRevenue and assigns it to the Revenue field.

type AccountDashboardStatisticApiCalls

type AccountDashboardStatisticApiCalls struct {
	// Total number of API calls received.
	Total float32 `json:"total"`
	// Values aggregated for the specified date.
	Datetime time.Time `json:"datetime"`
}

AccountDashboardStatisticApiCalls struct for AccountDashboardStatisticApiCalls

func (*AccountDashboardStatisticApiCalls) GetDatetime

func (o *AccountDashboardStatisticApiCalls) GetDatetime() time.Time

GetDatetime returns the Datetime field value

func (*AccountDashboardStatisticApiCalls) GetTotal

GetTotal returns the Total field value

func (*AccountDashboardStatisticApiCalls) SetDatetime

func (o *AccountDashboardStatisticApiCalls) SetDatetime(v time.Time)

SetDatetime sets field value

func (*AccountDashboardStatisticApiCalls) SetTotal

SetTotal sets field value

type AccountDashboardStatisticCampaigns

type AccountDashboardStatisticCampaigns struct {
	// Number of campaigns that are active and live (across all Applications).
	Live int32 `json:"live"`
	// Campaigns scheduled to expire sometime in the next 7 days.
	EndingSoon int32 `json:"endingSoon"`
	// Campaigns with less than 10% of budget left.
	LowOnBudget int32 `json:"lowOnBudget"`
}

AccountDashboardStatisticCampaigns struct for AccountDashboardStatisticCampaigns

func (*AccountDashboardStatisticCampaigns) GetEndingSoon

func (o *AccountDashboardStatisticCampaigns) GetEndingSoon() int32

GetEndingSoon returns the EndingSoon field value

func (*AccountDashboardStatisticCampaigns) GetLive

GetLive returns the Live field value

func (*AccountDashboardStatisticCampaigns) GetLowOnBudget

func (o *AccountDashboardStatisticCampaigns) GetLowOnBudget() int32

GetLowOnBudget returns the LowOnBudget field value

func (*AccountDashboardStatisticCampaigns) SetEndingSoon

func (o *AccountDashboardStatisticCampaigns) SetEndingSoon(v int32)

SetEndingSoon sets field value

func (*AccountDashboardStatisticCampaigns) SetLive

SetLive sets field value

func (*AccountDashboardStatisticCampaigns) SetLowOnBudget

func (o *AccountDashboardStatisticCampaigns) SetLowOnBudget(v int32)

SetLowOnBudget sets field value

type AccountDashboardStatisticDiscount

type AccountDashboardStatisticDiscount struct {
	// Total discount value redeemed by users.
	Total float32 `json:"total"`
	// Average discount percentage.
	Average float32 `json:"average"`
	// Values aggregated for the specified date.
	Datetime time.Time `json:"datetime"`
}

AccountDashboardStatisticDiscount struct for AccountDashboardStatisticDiscount

func (*AccountDashboardStatisticDiscount) GetAverage

GetAverage returns the Average field value

func (*AccountDashboardStatisticDiscount) GetDatetime

func (o *AccountDashboardStatisticDiscount) GetDatetime() time.Time

GetDatetime returns the Datetime field value

func (*AccountDashboardStatisticDiscount) GetTotal

GetTotal returns the Total field value

func (*AccountDashboardStatisticDiscount) SetAverage

func (o *AccountDashboardStatisticDiscount) SetAverage(v float32)

SetAverage sets field value

func (*AccountDashboardStatisticDiscount) SetDatetime

func (o *AccountDashboardStatisticDiscount) SetDatetime(v time.Time)

SetDatetime sets field value

func (*AccountDashboardStatisticDiscount) SetTotal

SetTotal sets field value

type AccountDashboardStatisticLoyaltyPoints

type AccountDashboardStatisticLoyaltyPoints struct {
	// Total loyalty points earned by users.
	Total float32 `json:"total"`
	// Values aggregated for the specified date.
	Datetime time.Time `json:"datetime"`
}

AccountDashboardStatisticLoyaltyPoints struct for AccountDashboardStatisticLoyaltyPoints

func (*AccountDashboardStatisticLoyaltyPoints) GetDatetime

GetDatetime returns the Datetime field value

func (*AccountDashboardStatisticLoyaltyPoints) GetTotal

GetTotal returns the Total field value

func (*AccountDashboardStatisticLoyaltyPoints) SetDatetime

SetDatetime sets field value

func (*AccountDashboardStatisticLoyaltyPoints) SetTotal

SetTotal sets field value

type AccountDashboardStatisticReferrals

type AccountDashboardStatisticReferrals struct {
	// Total number of referrals initiated by users.
	Total float32 `json:"total"`
	// Values aggregated for the specified date.
	Datetime time.Time `json:"datetime"`
}

AccountDashboardStatisticReferrals struct for AccountDashboardStatisticReferrals

func (*AccountDashboardStatisticReferrals) GetDatetime

func (o *AccountDashboardStatisticReferrals) GetDatetime() time.Time

GetDatetime returns the Datetime field value

func (*AccountDashboardStatisticReferrals) GetTotal

GetTotal returns the Total field value

func (*AccountDashboardStatisticReferrals) SetDatetime

func (o *AccountDashboardStatisticReferrals) SetDatetime(v time.Time)

SetDatetime sets field value

func (*AccountDashboardStatisticReferrals) SetTotal

SetTotal sets field value

type AccountDashboardStatisticRevenue

type AccountDashboardStatisticRevenue struct {
	// All revenue that went through the client's shop (including purchases that didn’t trigger an effect).
	Total float32 `json:"total"`
	// The revenue that was created by a purchase that triggered an effect (excluding web hooks, notifications).
	Influenced float32 `json:"influenced"`
	// Values aggregated for the specified date.
	Datetime time.Time `json:"datetime"`
}

AccountDashboardStatisticRevenue struct for AccountDashboardStatisticRevenue

func (*AccountDashboardStatisticRevenue) GetDatetime

func (o *AccountDashboardStatisticRevenue) GetDatetime() time.Time

GetDatetime returns the Datetime field value

func (*AccountDashboardStatisticRevenue) GetInfluenced

func (o *AccountDashboardStatisticRevenue) GetInfluenced() float32

GetInfluenced returns the Influenced field value

func (*AccountDashboardStatisticRevenue) GetTotal

GetTotal returns the Total field value

func (*AccountDashboardStatisticRevenue) SetDatetime

func (o *AccountDashboardStatisticRevenue) SetDatetime(v time.Time)

SetDatetime sets field value

func (*AccountDashboardStatisticRevenue) SetInfluenced

func (o *AccountDashboardStatisticRevenue) SetInfluenced(v float32)

SetInfluenced sets field value

func (*AccountDashboardStatisticRevenue) SetTotal

SetTotal sets field value

type AccountEntity

type AccountEntity struct {
	// The ID of the account that owns this entity.
	AccountId int32 `json:"accountId"`
}

AccountEntity struct for AccountEntity

func (*AccountEntity) GetAccountId

func (o *AccountEntity) GetAccountId() int32

GetAccountId returns the AccountId field value

func (*AccountEntity) SetAccountId

func (o *AccountEntity) SetAccountId(v int32)

SetAccountId sets field value

type AccountLimits

type AccountLimits struct {
	// Total number of allowed live applications in the account.
	LiveApplications int32 `json:"liveApplications"`
	// Total number of allowed sandbox applications in the account.
	SandboxApplications int32 `json:"sandboxApplications"`
	// Total number of allowed active campaigns in live applications in the account.
	ActiveCampaigns int32 `json:"activeCampaigns"`
	// Total number of allowed coupons in the account.
	Coupons int32 `json:"coupons"`
	// Total number of allowed referral codes in the account.
	ReferralCodes int32 `json:"referralCodes"`
	// Total number of allowed active rulesets in the account.
	ActiveRules int32 `json:"activeRules"`
	// Total number of allowed live loyalty programs in the account.
	LiveLoyaltyPrograms int32 `json:"liveLoyaltyPrograms"`
	// Total number of allowed sandbox loyalty programs in the account.
	SandboxLoyaltyPrograms int32 `json:"sandboxLoyaltyPrograms"`
	// Total number of allowed webhooks in the account.
	Webhooks int32 `json:"webhooks"`
	// Total number of allowed users in the account.
	Users int32 `json:"users"`
	// Allowed volume of API requests to the account.
	ApiVolume int32 `json:"apiVolume"`
	// Array of promotion types that are employed in the account.
	PromotionTypes []string `json:"promotionTypes"`
}

AccountLimits struct for AccountLimits

func (*AccountLimits) GetActiveCampaigns

func (o *AccountLimits) GetActiveCampaigns() int32

GetActiveCampaigns returns the ActiveCampaigns field value

func (*AccountLimits) GetActiveRules

func (o *AccountLimits) GetActiveRules() int32

GetActiveRules returns the ActiveRules field value

func (*AccountLimits) GetApiVolume

func (o *AccountLimits) GetApiVolume() int32

GetApiVolume returns the ApiVolume field value

func (*AccountLimits) GetCoupons

func (o *AccountLimits) GetCoupons() int32

GetCoupons returns the Coupons field value

func (*AccountLimits) GetLiveApplications

func (o *AccountLimits) GetLiveApplications() int32

GetLiveApplications returns the LiveApplications field value

func (*AccountLimits) GetLiveLoyaltyPrograms

func (o *AccountLimits) GetLiveLoyaltyPrograms() int32

GetLiveLoyaltyPrograms returns the LiveLoyaltyPrograms field value

func (*AccountLimits) GetPromotionTypes

func (o *AccountLimits) GetPromotionTypes() []string

GetPromotionTypes returns the PromotionTypes field value

func (*AccountLimits) GetReferralCodes

func (o *AccountLimits) GetReferralCodes() int32

GetReferralCodes returns the ReferralCodes field value

func (*AccountLimits) GetSandboxApplications

func (o *AccountLimits) GetSandboxApplications() int32

GetSandboxApplications returns the SandboxApplications field value

func (*AccountLimits) GetSandboxLoyaltyPrograms

func (o *AccountLimits) GetSandboxLoyaltyPrograms() int32

GetSandboxLoyaltyPrograms returns the SandboxLoyaltyPrograms field value

func (*AccountLimits) GetUsers

func (o *AccountLimits) GetUsers() int32

GetUsers returns the Users field value

func (*AccountLimits) GetWebhooks

func (o *AccountLimits) GetWebhooks() int32

GetWebhooks returns the Webhooks field value

func (*AccountLimits) SetActiveCampaigns

func (o *AccountLimits) SetActiveCampaigns(v int32)

SetActiveCampaigns sets field value

func (*AccountLimits) SetActiveRules

func (o *AccountLimits) SetActiveRules(v int32)

SetActiveRules sets field value

func (*AccountLimits) SetApiVolume

func (o *AccountLimits) SetApiVolume(v int32)

SetApiVolume sets field value

func (*AccountLimits) SetCoupons

func (o *AccountLimits) SetCoupons(v int32)

SetCoupons sets field value

func (*AccountLimits) SetLiveApplications

func (o *AccountLimits) SetLiveApplications(v int32)

SetLiveApplications sets field value

func (*AccountLimits) SetLiveLoyaltyPrograms

func (o *AccountLimits) SetLiveLoyaltyPrograms(v int32)

SetLiveLoyaltyPrograms sets field value

func (*AccountLimits) SetPromotionTypes

func (o *AccountLimits) SetPromotionTypes(v []string)

SetPromotionTypes sets field value

func (*AccountLimits) SetReferralCodes

func (o *AccountLimits) SetReferralCodes(v int32)

SetReferralCodes sets field value

func (*AccountLimits) SetSandboxApplications

func (o *AccountLimits) SetSandboxApplications(v int32)

SetSandboxApplications sets field value

func (*AccountLimits) SetSandboxLoyaltyPrograms

func (o *AccountLimits) SetSandboxLoyaltyPrograms(v int32)

SetSandboxLoyaltyPrograms sets field value

func (*AccountLimits) SetUsers

func (o *AccountLimits) SetUsers(v int32)

SetUsers sets field value

func (*AccountLimits) SetWebhooks

func (o *AccountLimits) SetWebhooks(v int32)

SetWebhooks sets field value

type Achievement

type Achievement struct {
	// Internal ID of this entity.
	Id int32 `json:"id"`
	// The time this entity was created.
	Created time.Time `json:"created"`
	// The internal name of the achievement used in API requests.  **Note**: The name should start with a letter. This cannot be changed after the achievement has been created.
	Name string `json:"name"`
	// The display name for the achievement in the Campaign Manager.
	Title string `json:"title"`
	// A description of the achievement.
	Description string `json:"description"`
	// The required number of actions or the transactional milestone to complete the achievement.
	Target float32 `json:"target"`
	// The relative duration after which the achievement ends and resets for a particular customer profile.  **Note**: The `period` does not start when the achievement is created.  The period is a **positive real number** followed by one letter indicating the time unit.  Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`.  Available units:  - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years  You can also round certain units down to the beginning of period and up to the end of period.: - `_D` for rounding down days only. Signifies the start of the day. Example: `30D_D` - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. Example: `23W_U`  **Note**: You can either use the round down and round up option or set an absolute period.
	Period            string     `json:"period"`
	PeriodEndOverride *TimePoint `json:"periodEndOverride,omitempty"`
	// ID of the campaign, to which the achievement belongs to
	CampaignId int32 `json:"campaignId"`
	// ID of the user that created this achievement.
	UserId int32 `json:"userId"`
	// Name of the user that created the achievement.  **Note**: This is not available if the user has been deleted.
	CreatedBy string `json:"createdBy"`
	// Indicates if a customer has made progress in the achievement.
	HasProgress *bool `json:"hasProgress,omitempty"`
}

Achievement

func (*Achievement) GetCampaignId

func (o *Achievement) GetCampaignId() int32

GetCampaignId returns the CampaignId field value

func (*Achievement) GetCreated

func (o *Achievement) GetCreated() time.Time

GetCreated returns the Created field value

func (*Achievement) GetCreatedBy

func (o *Achievement) GetCreatedBy() string

GetCreatedBy returns the CreatedBy field value

func (*Achievement) GetDescription

func (o *Achievement) GetDescription() string

GetDescription returns the Description field value

func (*Achievement) GetHasProgress

func (o *Achievement) GetHasProgress() bool

GetHasProgress returns the HasProgress field value if set, zero value otherwise.

func (*Achievement) GetHasProgressOk

func (o *Achievement) GetHasProgressOk() (bool, bool)

GetHasProgressOk returns a tuple with the HasProgress field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*Achievement) GetId

func (o *Achievement) GetId() int32

GetId returns the Id field value

func (*Achievement) GetName

func (o *Achievement) GetName() string

GetName returns the Name field value

func (*Achievement) GetPeriod

func (o *Achievement) GetPeriod() string

GetPeriod returns the Period field value

func (*Achievement) GetPeriodEndOverride

func (o *Achievement) GetPeriodEndOverride() TimePoint

GetPeriodEndOverride returns the PeriodEndOverride field value if set, zero value otherwise.

func (*Achievement) GetPeriodEndOverrideOk

func (o *Achievement) GetPeriodEndOverrideOk() (TimePoint, bool)

GetPeriodEndOverrideOk returns a tuple with the PeriodEndOverride field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*Achievement) GetTarget

func (o *Achievement) GetTarget() float32

GetTarget returns the Target field value

func (*Achievement) GetTitle

func (o *Achievement) GetTitle() string

GetTitle returns the Title field value

func (*Achievement) GetUserId

func (o *Achievement) GetUserId() int32

GetUserId returns the UserId field value

func (*Achievement) HasHasProgress

func (o *Achievement) HasHasProgress() bool

HasHasProgress returns a boolean if a field has been set.

func (*Achievement) HasPeriodEndOverride

func (o *Achievement) HasPeriodEndOverride() bool

HasPeriodEndOverride returns a boolean if a field has been set.

func (*Achievement) SetCampaignId

func (o *Achievement) SetCampaignId(v int32)

SetCampaignId sets field value

func (*Achievement) SetCreated

func (o *Achievement) SetCreated(v time.Time)

SetCreated sets field value

func (*Achievement) SetCreatedBy

func (o *Achievement) SetCreatedBy(v string)

SetCreatedBy sets field value

func (*Achievement) SetDescription

func (o *Achievement) SetDescription(v string)

SetDescription sets field value

func (*Achievement) SetHasProgress

func (o *Achievement) SetHasProgress(v bool)

SetHasProgress gets a reference to the given bool and assigns it to the HasProgress field.

func (*Achievement) SetId

func (o *Achievement) SetId(v int32)

SetId sets field value

func (*Achievement) SetName

func (o *Achievement) SetName(v string)

SetName sets field value

func (*Achievement) SetPeriod

func (o *Achievement) SetPeriod(v string)

SetPeriod sets field value

func (*Achievement) SetPeriodEndOverride

func (o *Achievement) SetPeriodEndOverride(v TimePoint)

SetPeriodEndOverride gets a reference to the given TimePoint and assigns it to the PeriodEndOverride field.

func (*Achievement) SetTarget

func (o *Achievement) SetTarget(v float32)

SetTarget sets field value

func (*Achievement) SetTitle

func (o *Achievement) SetTitle(v string)

SetTitle sets field value

func (*Achievement) SetUserId

func (o *Achievement) SetUserId(v int32)

SetUserId sets field value

type AchievementAdditionalProperties

type AchievementAdditionalProperties struct {
	// ID of the campaign, to which the achievement belongs to
	CampaignId int32 `json:"campaignId"`
	// ID of the user that created this achievement.
	UserId int32 `json:"userId"`
	// Name of the user that created the achievement.  **Note**: This is not available if the user has been deleted.
	CreatedBy string `json:"createdBy"`
	// Indicates if a customer has made progress in the achievement.
	HasProgress *bool `json:"hasProgress,omitempty"`
}

AchievementAdditionalProperties struct for AchievementAdditionalProperties

func (*AchievementAdditionalProperties) GetCampaignId

func (o *AchievementAdditionalProperties) GetCampaignId() int32

GetCampaignId returns the CampaignId field value

func (*AchievementAdditionalProperties) GetCreatedBy

func (o *AchievementAdditionalProperties) GetCreatedBy() string

GetCreatedBy returns the CreatedBy field value

func (*AchievementAdditionalProperties) GetHasProgress

func (o *AchievementAdditionalProperties) GetHasProgress() bool

GetHasProgress returns the HasProgress field value if set, zero value otherwise.

func (*AchievementAdditionalProperties) GetHasProgressOk

func (o *AchievementAdditionalProperties) GetHasProgressOk() (bool, bool)

GetHasProgressOk returns a tuple with the HasProgress field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AchievementAdditionalProperties) GetUserId

func (o *AchievementAdditionalProperties) GetUserId() int32

GetUserId returns the UserId field value

func (*AchievementAdditionalProperties) HasHasProgress

func (o *AchievementAdditionalProperties) HasHasProgress() bool

HasHasProgress returns a boolean if a field has been set.

func (*AchievementAdditionalProperties) SetCampaignId

func (o *AchievementAdditionalProperties) SetCampaignId(v int32)

SetCampaignId sets field value

func (*AchievementAdditionalProperties) SetCreatedBy

func (o *AchievementAdditionalProperties) SetCreatedBy(v string)

SetCreatedBy sets field value

func (*AchievementAdditionalProperties) SetHasProgress

func (o *AchievementAdditionalProperties) SetHasProgress(v bool)

SetHasProgress gets a reference to the given bool and assigns it to the HasProgress field.

func (*AchievementAdditionalProperties) SetUserId

func (o *AchievementAdditionalProperties) SetUserId(v int32)

SetUserId sets field value

type AchievementProgress

type AchievementProgress struct {
	// The internal ID of the achievement.
	AchievementId int32 `json:"achievementId"`
	// The internal name of the achievement used in API requests.
	Name string `json:"name"`
	// The display name of the achievement in the Campaign Manager.
	Title string `json:"title"`
	// The ID of the campaign the achievement belongs to.
	CampaignId int32 `json:"campaignId"`
	// The status of the achievement.
	Status string `json:"status"`
	// The required number of actions or the transactional milestone to complete the achievement.
	Target *float32 `json:"target,omitempty"`
	// The current progress of the customer in the achievement.
	Progress float32 `json:"progress"`
	// Timestamp at which the customer started the achievement.
	StartDate time.Time `json:"startDate"`
	// Timestamp at which point the customer completed the achievement.
	CompletionDate *time.Time `json:"completionDate,omitempty"`
	// Timestamp at which point the achievement ends and resets for the customer.
	EndDate time.Time `json:"endDate"`
}

AchievementProgress struct for AchievementProgress

func (*AchievementProgress) GetAchievementId

func (o *AchievementProgress) GetAchievementId() int32

GetAchievementId returns the AchievementId field value

func (*AchievementProgress) GetCampaignId

func (o *AchievementProgress) GetCampaignId() int32

GetCampaignId returns the CampaignId field value

func (*AchievementProgress) GetCompletionDate

func (o *AchievementProgress) GetCompletionDate() time.Time

GetCompletionDate returns the CompletionDate field value if set, zero value otherwise.

func (*AchievementProgress) GetCompletionDateOk

func (o *AchievementProgress) GetCompletionDateOk() (time.Time, bool)

GetCompletionDateOk returns a tuple with the CompletionDate field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AchievementProgress) GetEndDate

func (o *AchievementProgress) GetEndDate() time.Time

GetEndDate returns the EndDate field value

func (*AchievementProgress) GetName

func (o *AchievementProgress) GetName() string

GetName returns the Name field value

func (*AchievementProgress) GetProgress

func (o *AchievementProgress) GetProgress() float32

GetProgress returns the Progress field value

func (*AchievementProgress) GetStartDate

func (o *AchievementProgress) GetStartDate() time.Time

GetStartDate returns the StartDate field value

func (*AchievementProgress) GetStatus

func (o *AchievementProgress) GetStatus() string

GetStatus returns the Status field value

func (*AchievementProgress) GetTarget

func (o *AchievementProgress) GetTarget() float32

GetTarget returns the Target field value if set, zero value otherwise.

func (*AchievementProgress) GetTargetOk

func (o *AchievementProgress) GetTargetOk() (float32, bool)

GetTargetOk returns a tuple with the Target field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AchievementProgress) GetTitle

func (o *AchievementProgress) GetTitle() string

GetTitle returns the Title field value

func (*AchievementProgress) HasCompletionDate

func (o *AchievementProgress) HasCompletionDate() bool

HasCompletionDate returns a boolean if a field has been set.

func (*AchievementProgress) HasTarget

func (o *AchievementProgress) HasTarget() bool

HasTarget returns a boolean if a field has been set.

func (*AchievementProgress) SetAchievementId

func (o *AchievementProgress) SetAchievementId(v int32)

SetAchievementId sets field value

func (*AchievementProgress) SetCampaignId

func (o *AchievementProgress) SetCampaignId(v int32)

SetCampaignId sets field value

func (*AchievementProgress) SetCompletionDate

func (o *AchievementProgress) SetCompletionDate(v time.Time)

SetCompletionDate gets a reference to the given time.Time and assigns it to the CompletionDate field.

func (*AchievementProgress) SetEndDate

func (o *AchievementProgress) SetEndDate(v time.Time)

SetEndDate sets field value

func (*AchievementProgress) SetName

func (o *AchievementProgress) SetName(v string)

SetName sets field value

func (*AchievementProgress) SetProgress

func (o *AchievementProgress) SetProgress(v float32)

SetProgress sets field value

func (*AchievementProgress) SetStartDate

func (o *AchievementProgress) SetStartDate(v time.Time)

SetStartDate sets field value

func (*AchievementProgress) SetStatus

func (o *AchievementProgress) SetStatus(v string)

SetStatus sets field value

func (*AchievementProgress) SetTarget

func (o *AchievementProgress) SetTarget(v float32)

SetTarget gets a reference to the given float32 and assigns it to the Target field.

func (*AchievementProgress) SetTitle

func (o *AchievementProgress) SetTitle(v string)

SetTitle sets field value

type ActivateUserRequest

type ActivateUserRequest struct {
	// The email address associated with the user profile.
	Email string `json:"email"`
}

ActivateUserRequest

func (*ActivateUserRequest) GetEmail

func (o *ActivateUserRequest) GetEmail() string

GetEmail returns the Email field value

func (*ActivateUserRequest) SetEmail

func (o *ActivateUserRequest) SetEmail(v string)

SetEmail sets field value

type AddFreeItemEffectProps

type AddFreeItemEffectProps struct {
	// SKU of the item that needs to be added.
	Sku string `json:"sku"`
	// The name / description of the effect
	Name string `json:"name"`
}

AddFreeItemEffectProps The properties specific to the \"addFreeItem\" effect. This gets triggered whenever a validated rule contained an \"add free item\" effect.

func (*AddFreeItemEffectProps) GetName

func (o *AddFreeItemEffectProps) GetName() string

GetName returns the Name field value

func (*AddFreeItemEffectProps) GetSku

func (o *AddFreeItemEffectProps) GetSku() string

GetSku returns the Sku field value

func (*AddFreeItemEffectProps) SetName

func (o *AddFreeItemEffectProps) SetName(v string)

SetName sets field value

func (*AddFreeItemEffectProps) SetSku

func (o *AddFreeItemEffectProps) SetSku(v string)

SetSku sets field value

type AddItemCatalogAction

type AddItemCatalogAction struct {
	// The unique SKU of the item to add.
	Sku string `json:"sku"`
	// Price of the item.
	Price *float32 `json:"price,omitempty"`
	// The attributes of the item to add.
	Attributes *map[string]interface{} `json:"attributes,omitempty"`
	Product    *Product                `json:"product,omitempty"`
	// Indicates whether to replace the attributes of the item if the same SKU exists.  **Note**: When set to `true`:   - If you do not provide a new `price` value, the existing `price` value is retained.   - If you do not provide a new `product` value, the `product` value is set to `null`.
	ReplaceIfExists *bool `json:"replaceIfExists,omitempty"`
}

AddItemCatalogAction The specific properties of the \"ADD\" catalog sync action.

func (*AddItemCatalogAction) GetAttributes

func (o *AddItemCatalogAction) GetAttributes() map[string]interface{}

GetAttributes returns the Attributes field value if set, zero value otherwise.

func (*AddItemCatalogAction) GetAttributesOk

func (o *AddItemCatalogAction) GetAttributesOk() (map[string]interface{}, bool)

GetAttributesOk returns a tuple with the Attributes field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AddItemCatalogAction) GetPrice

func (o *AddItemCatalogAction) GetPrice() float32

GetPrice returns the Price field value if set, zero value otherwise.

func (*AddItemCatalogAction) GetPriceOk

func (o *AddItemCatalogAction) GetPriceOk() (float32, bool)

GetPriceOk returns a tuple with the Price field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AddItemCatalogAction) GetProduct

func (o *AddItemCatalogAction) GetProduct() Product

GetProduct returns the Product field value if set, zero value otherwise.

func (*AddItemCatalogAction) GetProductOk

func (o *AddItemCatalogAction) GetProductOk() (Product, bool)

GetProductOk returns a tuple with the Product field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AddItemCatalogAction) GetReplaceIfExists

func (o *AddItemCatalogAction) GetReplaceIfExists() bool

GetReplaceIfExists returns the ReplaceIfExists field value if set, zero value otherwise.

func (*AddItemCatalogAction) GetReplaceIfExistsOk

func (o *AddItemCatalogAction) GetReplaceIfExistsOk() (bool, bool)

GetReplaceIfExistsOk returns a tuple with the ReplaceIfExists field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AddItemCatalogAction) GetSku

func (o *AddItemCatalogAction) GetSku() string

GetSku returns the Sku field value

func (*AddItemCatalogAction) HasAttributes

func (o *AddItemCatalogAction) HasAttributes() bool

HasAttributes returns a boolean if a field has been set.

func (*AddItemCatalogAction) HasPrice

func (o *AddItemCatalogAction) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (*AddItemCatalogAction) HasProduct

func (o *AddItemCatalogAction) HasProduct() bool

HasProduct returns a boolean if a field has been set.

func (*AddItemCatalogAction) HasReplaceIfExists

func (o *AddItemCatalogAction) HasReplaceIfExists() bool

HasReplaceIfExists returns a boolean if a field has been set.

func (*AddItemCatalogAction) SetAttributes

func (o *AddItemCatalogAction) SetAttributes(v map[string]interface{})

SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.

func (*AddItemCatalogAction) SetPrice

func (o *AddItemCatalogAction) SetPrice(v float32)

SetPrice gets a reference to the given float32 and assigns it to the Price field.

func (*AddItemCatalogAction) SetProduct

func (o *AddItemCatalogAction) SetProduct(v Product)

SetProduct gets a reference to the given Product and assigns it to the Product field.

func (*AddItemCatalogAction) SetReplaceIfExists

func (o *AddItemCatalogAction) SetReplaceIfExists(v bool)

SetReplaceIfExists gets a reference to the given bool and assigns it to the ReplaceIfExists field.

func (*AddItemCatalogAction) SetSku

func (o *AddItemCatalogAction) SetSku(v string)

SetSku sets field value

type AddLoyaltyPoints

type AddLoyaltyPoints struct {
	// Amount of loyalty points.
	Points float32 `json:"points"`
	// Name / reason for the point addition.
	Name *string `json:"name,omitempty"`
	// The time format is either: - `immediate` or, - an **integer** followed by one letter indicating the time unit.  Examples: `immediate`, `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`.  Available units:  - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years  You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year.  If passed, `validUntil` should be omitted.
	ValidityDuration *string `json:"validityDuration,omitempty"`
	// Date and time when points should expire. The value should be provided in RFC 3339 format. If passed, `validityDuration` should be omitted.
	ValidUntil *time.Time `json:"validUntil,omitempty"`
	// The amount of time before the points are considered valid.  The time format is either: - `immediate` or, - an **integer** followed by one letter indicating the time unit.  Examples: `immediate`, `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`.  Available units:  - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years  You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year.
	PendingDuration *string `json:"pendingDuration,omitempty"`
	// Date and time after the points are considered valid. The value should be provided in RFC 3339 format. If passed, `pendingDuration` should be omitted.
	PendingUntil *time.Time `json:"pendingUntil,omitempty"`
	// ID of the subledger the points are added to. If there is no existing subledger with this ID, the subledger is created automatically.
	SubledgerId *string `json:"subledgerId,omitempty"`
	// ID of the Application that is connected to the loyalty program. It is displayed in your Talon.One deployment URL.
	ApplicationId *int32 `json:"applicationId,omitempty"`
}

AddLoyaltyPoints Points to add.

func (*AddLoyaltyPoints) GetApplicationId

func (o *AddLoyaltyPoints) GetApplicationId() int32

GetApplicationId returns the ApplicationId field value if set, zero value otherwise.

func (*AddLoyaltyPoints) GetApplicationIdOk

func (o *AddLoyaltyPoints) GetApplicationIdOk() (int32, bool)

GetApplicationIdOk returns a tuple with the ApplicationId field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AddLoyaltyPoints) GetName

func (o *AddLoyaltyPoints) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*AddLoyaltyPoints) GetNameOk

func (o *AddLoyaltyPoints) GetNameOk() (string, bool)

GetNameOk returns a tuple with the Name field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AddLoyaltyPoints) GetPendingDuration

func (o *AddLoyaltyPoints) GetPendingDuration() string

GetPendingDuration returns the PendingDuration field value if set, zero value otherwise.

func (*AddLoyaltyPoints) GetPendingDurationOk

func (o *AddLoyaltyPoints) GetPendingDurationOk() (string, bool)

GetPendingDurationOk returns a tuple with the PendingDuration field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AddLoyaltyPoints) GetPendingUntil

func (o *AddLoyaltyPoints) GetPendingUntil() time.Time

GetPendingUntil returns the PendingUntil field value if set, zero value otherwise.

func (*AddLoyaltyPoints) GetPendingUntilOk

func (o *AddLoyaltyPoints) GetPendingUntilOk() (time.Time, bool)

GetPendingUntilOk returns a tuple with the PendingUntil field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AddLoyaltyPoints) GetPoints

func (o *AddLoyaltyPoints) GetPoints() float32

GetPoints returns the Points field value

func (*AddLoyaltyPoints) GetSubledgerId

func (o *AddLoyaltyPoints) GetSubledgerId() string

GetSubledgerId returns the SubledgerId field value if set, zero value otherwise.

func (*AddLoyaltyPoints) GetSubledgerIdOk

func (o *AddLoyaltyPoints) GetSubledgerIdOk() (string, bool)

GetSubledgerIdOk returns a tuple with the SubledgerId field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AddLoyaltyPoints) GetValidUntil

func (o *AddLoyaltyPoints) GetValidUntil() time.Time

GetValidUntil returns the ValidUntil field value if set, zero value otherwise.

func (*AddLoyaltyPoints) GetValidUntilOk

func (o *AddLoyaltyPoints) GetValidUntilOk() (time.Time, bool)

GetValidUntilOk returns a tuple with the ValidUntil field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AddLoyaltyPoints) GetValidityDuration

func (o *AddLoyaltyPoints) GetValidityDuration() string

GetValidityDuration returns the ValidityDuration field value if set, zero value otherwise.

func (*AddLoyaltyPoints) GetValidityDurationOk

func (o *AddLoyaltyPoints) GetValidityDurationOk() (string, bool)

GetValidityDurationOk returns a tuple with the ValidityDuration field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AddLoyaltyPoints) HasApplicationId

func (o *AddLoyaltyPoints) HasApplicationId() bool

HasApplicationId returns a boolean if a field has been set.

func (*AddLoyaltyPoints) HasName

func (o *AddLoyaltyPoints) HasName() bool

HasName returns a boolean if a field has been set.

func (*AddLoyaltyPoints) HasPendingDuration

func (o *AddLoyaltyPoints) HasPendingDuration() bool

HasPendingDuration returns a boolean if a field has been set.

func (*AddLoyaltyPoints) HasPendingUntil

func (o *AddLoyaltyPoints) HasPendingUntil() bool

HasPendingUntil returns a boolean if a field has been set.

func (*AddLoyaltyPoints) HasSubledgerId

func (o *AddLoyaltyPoints) HasSubledgerId() bool

HasSubledgerId returns a boolean if a field has been set.

func (*AddLoyaltyPoints) HasValidUntil

func (o *AddLoyaltyPoints) HasValidUntil() bool

HasValidUntil returns a boolean if a field has been set.

func (*AddLoyaltyPoints) HasValidityDuration

func (o *AddLoyaltyPoints) HasValidityDuration() bool

HasValidityDuration returns a boolean if a field has been set.

func (*AddLoyaltyPoints) SetApplicationId

func (o *AddLoyaltyPoints) SetApplicationId(v int32)

SetApplicationId gets a reference to the given int32 and assigns it to the ApplicationId field.

func (*AddLoyaltyPoints) SetName

func (o *AddLoyaltyPoints) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*AddLoyaltyPoints) SetPendingDuration

func (o *AddLoyaltyPoints) SetPendingDuration(v string)

SetPendingDuration gets a reference to the given string and assigns it to the PendingDuration field.

func (*AddLoyaltyPoints) SetPendingUntil

func (o *AddLoyaltyPoints) SetPendingUntil(v time.Time)

SetPendingUntil gets a reference to the given time.Time and assigns it to the PendingUntil field.

func (*AddLoyaltyPoints) SetPoints

func (o *AddLoyaltyPoints) SetPoints(v float32)

SetPoints sets field value

func (*AddLoyaltyPoints) SetSubledgerId

func (o *AddLoyaltyPoints) SetSubledgerId(v string)

SetSubledgerId gets a reference to the given string and assigns it to the SubledgerId field.

func (*AddLoyaltyPoints) SetValidUntil

func (o *AddLoyaltyPoints) SetValidUntil(v time.Time)

SetValidUntil gets a reference to the given time.Time and assigns it to the ValidUntil field.

func (*AddLoyaltyPoints) SetValidityDuration

func (o *AddLoyaltyPoints) SetValidityDuration(v string)

SetValidityDuration gets a reference to the given string and assigns it to the ValidityDuration field.

type AddLoyaltyPointsEffectProps

type AddLoyaltyPointsEffectProps struct {
	// The name / description of this loyalty point addition.
	Name string `json:"name"`
	// The ID of the loyalty program where these points were added.
	ProgramId int32 `json:"programId"`
	// The ID of the subledger within the loyalty program where these points were added.
	SubLedgerId string `json:"subLedgerId"`
	// The amount of points that were added.
	Value float32 `json:"value"`
	// The original amount of loyalty points to be awarded.
	DesiredValue *float32 `json:"desiredValue,omitempty"`
	// The user for whom these points were added.
	RecipientIntegrationId string `json:"recipientIntegrationId"`
	// Date after which points will be valid.
	StartDate *time.Time `json:"startDate,omitempty"`
	// Date after which points will expire.
	ExpiryDate *time.Time `json:"expiryDate,omitempty"`
	// The identifier of this addition in the loyalty ledger.
	TransactionUUID string `json:"transactionUUID"`
	// The index of the item in the cart items list on which the loyal points addition should be applied.
	CartItemPosition *float32 `json:"cartItemPosition,omitempty"`
	// For cart items with `quantity` > 1, the sub position indicates to which item the loyalty points addition is applied.
	CartItemSubPosition *float32 `json:"cartItemSubPosition,omitempty"`
	// The alphanumeric identifier of the loyalty card.
	CardIdentifier *string `json:"cardIdentifier,omitempty"`
	// The position of the bundle in a list of item bundles created from the same bundle definition.
	BundleIndex *int32 `json:"bundleIndex,omitempty"`
	// The name of the bundle definition.
	BundleName *string `json:"bundleName,omitempty"`
}

AddLoyaltyPointsEffectProps The properties specific to the \"addLoyaltyPoints\" effect. This gets triggered whenever a validated rule contained an \"add loyalty\" effect. These points are automatically stored and managed inside Talon.One.

func (*AddLoyaltyPointsEffectProps) GetBundleIndex

func (o *AddLoyaltyPointsEffectProps) GetBundleIndex() int32

GetBundleIndex returns the BundleIndex field value if set, zero value otherwise.

func (*AddLoyaltyPointsEffectProps) GetBundleIndexOk

func (o *AddLoyaltyPointsEffectProps) GetBundleIndexOk() (int32, bool)

GetBundleIndexOk returns a tuple with the BundleIndex field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AddLoyaltyPointsEffectProps) GetBundleName

func (o *AddLoyaltyPointsEffectProps) GetBundleName() string

GetBundleName returns the BundleName field value if set, zero value otherwise.

func (*AddLoyaltyPointsEffectProps) GetBundleNameOk

func (o *AddLoyaltyPointsEffectProps) GetBundleNameOk() (string, bool)

GetBundleNameOk returns a tuple with the BundleName field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AddLoyaltyPointsEffectProps) GetCardIdentifier

func (o *AddLoyaltyPointsEffectProps) GetCardIdentifier() string

GetCardIdentifier returns the CardIdentifier field value if set, zero value otherwise.

func (*AddLoyaltyPointsEffectProps) GetCardIdentifierOk

func (o *AddLoyaltyPointsEffectProps) GetCardIdentifierOk() (string, bool)

GetCardIdentifierOk returns a tuple with the CardIdentifier field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AddLoyaltyPointsEffectProps) GetCartItemPosition

func (o *AddLoyaltyPointsEffectProps) GetCartItemPosition() float32

GetCartItemPosition returns the CartItemPosition field value if set, zero value otherwise.

func (*AddLoyaltyPointsEffectProps) GetCartItemPositionOk

func (o *AddLoyaltyPointsEffectProps) GetCartItemPositionOk() (float32, bool)

GetCartItemPositionOk returns a tuple with the CartItemPosition field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AddLoyaltyPointsEffectProps) GetCartItemSubPosition

func (o *AddLoyaltyPointsEffectProps) GetCartItemSubPosition() float32

GetCartItemSubPosition returns the CartItemSubPosition field value if set, zero value otherwise.

func (*AddLoyaltyPointsEffectProps) GetCartItemSubPositionOk

func (o *AddLoyaltyPointsEffectProps) GetCartItemSubPositionOk() (float32, bool)

GetCartItemSubPositionOk returns a tuple with the CartItemSubPosition field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AddLoyaltyPointsEffectProps) GetDesiredValue

func (o *AddLoyaltyPointsEffectProps) GetDesiredValue() float32

GetDesiredValue returns the DesiredValue field value if set, zero value otherwise.

func (*AddLoyaltyPointsEffectProps) GetDesiredValueOk

func (o *AddLoyaltyPointsEffectProps) GetDesiredValueOk() (float32, bool)

GetDesiredValueOk returns a tuple with the DesiredValue field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AddLoyaltyPointsEffectProps) GetExpiryDate

func (o *AddLoyaltyPointsEffectProps) GetExpiryDate() time.Time

GetExpiryDate returns the ExpiryDate field value if set, zero value otherwise.

func (*AddLoyaltyPointsEffectProps) GetExpiryDateOk

func (o *AddLoyaltyPointsEffectProps) GetExpiryDateOk() (time.Time, bool)

GetExpiryDateOk returns a tuple with the ExpiryDate field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AddLoyaltyPointsEffectProps) GetName

func (o *AddLoyaltyPointsEffectProps) GetName() string

GetName returns the Name field value

func (*AddLoyaltyPointsEffectProps) GetProgramId

func (o *AddLoyaltyPointsEffectProps) GetProgramId() int32

GetProgramId returns the ProgramId field value

func (*AddLoyaltyPointsEffectProps) GetRecipientIntegrationId

func (o *AddLoyaltyPointsEffectProps) GetRecipientIntegrationId() string

GetRecipientIntegrationId returns the RecipientIntegrationId field value

func (*AddLoyaltyPointsEffectProps) GetStartDate

func (o *AddLoyaltyPointsEffectProps) GetStartDate() time.Time

GetStartDate returns the StartDate field value if set, zero value otherwise.

func (*AddLoyaltyPointsEffectProps) GetStartDateOk

func (o *AddLoyaltyPointsEffectProps) GetStartDateOk() (time.Time, bool)

GetStartDateOk returns a tuple with the StartDate field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AddLoyaltyPointsEffectProps) GetSubLedgerId

func (o *AddLoyaltyPointsEffectProps) GetSubLedgerId() string

GetSubLedgerId returns the SubLedgerId field value

func (*AddLoyaltyPointsEffectProps) GetTransactionUUID

func (o *AddLoyaltyPointsEffectProps) GetTransactionUUID() string

GetTransactionUUID returns the TransactionUUID field value

func (*AddLoyaltyPointsEffectProps) GetValue

func (o *AddLoyaltyPointsEffectProps) GetValue() float32

GetValue returns the Value field value

func (*AddLoyaltyPointsEffectProps) HasBundleIndex

func (o *AddLoyaltyPointsEffectProps) HasBundleIndex() bool

HasBundleIndex returns a boolean if a field has been set.

func (*AddLoyaltyPointsEffectProps) HasBundleName

func (o *AddLoyaltyPointsEffectProps) HasBundleName() bool

HasBundleName returns a boolean if a field has been set.

func (*AddLoyaltyPointsEffectProps) HasCardIdentifier

func (o *AddLoyaltyPointsEffectProps) HasCardIdentifier() bool

HasCardIdentifier returns a boolean if a field has been set.

func (*AddLoyaltyPointsEffectProps) HasCartItemPosition

func (o *AddLoyaltyPointsEffectProps) HasCartItemPosition() bool

HasCartItemPosition returns a boolean if a field has been set.

func (*AddLoyaltyPointsEffectProps) HasCartItemSubPosition

func (o *AddLoyaltyPointsEffectProps) HasCartItemSubPosition() bool

HasCartItemSubPosition returns a boolean if a field has been set.

func (*AddLoyaltyPointsEffectProps) HasDesiredValue

func (o *AddLoyaltyPointsEffectProps) HasDesiredValue() bool

HasDesiredValue returns a boolean if a field has been set.

func (*AddLoyaltyPointsEffectProps) HasExpiryDate

func (o *AddLoyaltyPointsEffectProps) HasExpiryDate() bool

HasExpiryDate returns a boolean if a field has been set.

func (*AddLoyaltyPointsEffectProps) HasStartDate

func (o *AddLoyaltyPointsEffectProps) HasStartDate() bool

HasStartDate returns a boolean if a field has been set.

func (*AddLoyaltyPointsEffectProps) SetBundleIndex

func (o *AddLoyaltyPointsEffectProps) SetBundleIndex(v int32)

SetBundleIndex gets a reference to the given int32 and assigns it to the BundleIndex field.

func (*AddLoyaltyPointsEffectProps) SetBundleName

func (o *AddLoyaltyPointsEffectProps) SetBundleName(v string)

SetBundleName gets a reference to the given string and assigns it to the BundleName field.

func (*AddLoyaltyPointsEffectProps) SetCardIdentifier

func (o *AddLoyaltyPointsEffectProps) SetCardIdentifier(v string)

SetCardIdentifier gets a reference to the given string and assigns it to the CardIdentifier field.

func (*AddLoyaltyPointsEffectProps) SetCartItemPosition

func (o *AddLoyaltyPointsEffectProps) SetCartItemPosition(v float32)

SetCartItemPosition gets a reference to the given float32 and assigns it to the CartItemPosition field.

func (*AddLoyaltyPointsEffectProps) SetCartItemSubPosition

func (o *AddLoyaltyPointsEffectProps) SetCartItemSubPosition(v float32)

SetCartItemSubPosition gets a reference to the given float32 and assigns it to the CartItemSubPosition field.

func (*AddLoyaltyPointsEffectProps) SetDesiredValue

func (o *AddLoyaltyPointsEffectProps) SetDesiredValue(v float32)

SetDesiredValue gets a reference to the given float32 and assigns it to the DesiredValue field.

func (*AddLoyaltyPointsEffectProps) SetExpiryDate

func (o *AddLoyaltyPointsEffectProps) SetExpiryDate(v time.Time)

SetExpiryDate gets a reference to the given time.Time and assigns it to the ExpiryDate field.

func (*AddLoyaltyPointsEffectProps) SetName

func (o *AddLoyaltyPointsEffectProps) SetName(v string)

SetName sets field value

func (*AddLoyaltyPointsEffectProps) SetProgramId

func (o *AddLoyaltyPointsEffectProps) SetProgramId(v int32)

SetProgramId sets field value

func (*AddLoyaltyPointsEffectProps) SetRecipientIntegrationId

func (o *AddLoyaltyPointsEffectProps) SetRecipientIntegrationId(v string)

SetRecipientIntegrationId sets field value

func (*AddLoyaltyPointsEffectProps) SetStartDate

func (o *AddLoyaltyPointsEffectProps) SetStartDate(v time.Time)

SetStartDate gets a reference to the given time.Time and assigns it to the StartDate field.

func (*AddLoyaltyPointsEffectProps) SetSubLedgerId

func (o *AddLoyaltyPointsEffectProps) SetSubLedgerId(v string)

SetSubLedgerId sets field value

func (*AddLoyaltyPointsEffectProps) SetTransactionUUID

func (o *AddLoyaltyPointsEffectProps) SetTransactionUUID(v string)

SetTransactionUUID sets field value

func (*AddLoyaltyPointsEffectProps) SetValue

func (o *AddLoyaltyPointsEffectProps) SetValue(v float32)

SetValue sets field value

type AddToAudienceEffectProps

type AddToAudienceEffectProps struct {
	// The internal ID of the audience.
	AudienceId *int32 `json:"audienceId,omitempty"`
	// The name of the audience.
	AudienceName *string `json:"audienceName,omitempty"`
	// The ID of the customer profile in the third-party integration platform.
	ProfileIntegrationId *string `json:"profileIntegrationId,omitempty"`
	// The internal ID of the customer profile.
	ProfileId *int32 `json:"profileId,omitempty"`
}

AddToAudienceEffectProps The properties specific to the \"addToAudience\" effect. This gets triggered whenever a validated rule contains an \"addToAudience\" effect.

func (*AddToAudienceEffectProps) GetAudienceId

func (o *AddToAudienceEffectProps) GetAudienceId() int32

GetAudienceId returns the AudienceId field value if set, zero value otherwise.

func (*AddToAudienceEffectProps) GetAudienceIdOk

func (o *AddToAudienceEffectProps) GetAudienceIdOk() (int32, bool)

GetAudienceIdOk returns a tuple with the AudienceId field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AddToAudienceEffectProps) GetAudienceName

func (o *AddToAudienceEffectProps) GetAudienceName() string

GetAudienceName returns the AudienceName field value if set, zero value otherwise.

func (*AddToAudienceEffectProps) GetAudienceNameOk

func (o *AddToAudienceEffectProps) GetAudienceNameOk() (string, bool)

GetAudienceNameOk returns a tuple with the AudienceName field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AddToAudienceEffectProps) GetProfileId

func (o *AddToAudienceEffectProps) GetProfileId() int32

GetProfileId returns the ProfileId field value if set, zero value otherwise.

func (*AddToAudienceEffectProps) GetProfileIdOk

func (o *AddToAudienceEffectProps) GetProfileIdOk() (int32, bool)

GetProfileIdOk returns a tuple with the ProfileId field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AddToAudienceEffectProps) GetProfileIntegrationId

func (o *AddToAudienceEffectProps) GetProfileIntegrationId() string

GetProfileIntegrationId returns the ProfileIntegrationId field value if set, zero value otherwise.

func (*AddToAudienceEffectProps) GetProfileIntegrationIdOk

func (o *AddToAudienceEffectProps) GetProfileIntegrationIdOk() (string, bool)

GetProfileIntegrationIdOk returns a tuple with the ProfileIntegrationId field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AddToAudienceEffectProps) HasAudienceId

func (o *AddToAudienceEffectProps) HasAudienceId() bool

HasAudienceId returns a boolean if a field has been set.

func (*AddToAudienceEffectProps) HasAudienceName

func (o *AddToAudienceEffectProps) HasAudienceName() bool

HasAudienceName returns a boolean if a field has been set.

func (*AddToAudienceEffectProps) HasProfileId

func (o *AddToAudienceEffectProps) HasProfileId() bool

HasProfileId returns a boolean if a field has been set.

func (*AddToAudienceEffectProps) HasProfileIntegrationId

func (o *AddToAudienceEffectProps) HasProfileIntegrationId() bool

HasProfileIntegrationId returns a boolean if a field has been set.

func (*AddToAudienceEffectProps) SetAudienceId

func (o *AddToAudienceEffectProps) SetAudienceId(v int32)

SetAudienceId gets a reference to the given int32 and assigns it to the AudienceId field.

func (*AddToAudienceEffectProps) SetAudienceName

func (o *AddToAudienceEffectProps) SetAudienceName(v string)

SetAudienceName gets a reference to the given string and assigns it to the AudienceName field.

func (*AddToAudienceEffectProps) SetProfileId

func (o *AddToAudienceEffectProps) SetProfileId(v int32)

SetProfileId gets a reference to the given int32 and assigns it to the ProfileId field.

func (*AddToAudienceEffectProps) SetProfileIntegrationId

func (o *AddToAudienceEffectProps) SetProfileIntegrationId(v string)

SetProfileIntegrationId gets a reference to the given string and assigns it to the ProfileIntegrationId field.

type AddedDeductedPointsNotificationPolicy

type AddedDeductedPointsNotificationPolicy struct {
	// Notification name.
	Name   string   `json:"name"`
	Scopes []string `json:"scopes"`
}

AddedDeductedPointsNotificationPolicy struct for AddedDeductedPointsNotificationPolicy

func (*AddedDeductedPointsNotificationPolicy) GetName

GetName returns the Name field value

func (*AddedDeductedPointsNotificationPolicy) GetScopes

GetScopes returns the Scopes field value

func (*AddedDeductedPointsNotificationPolicy) SetName

SetName sets field value

func (*AddedDeductedPointsNotificationPolicy) SetScopes

SetScopes sets field value

type AdditionalCampaignProperties

type AdditionalCampaignProperties struct {
	// A list of all the budgets that are defined by this campaign and their usage.  **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined.
	Budgets []CampaignBudget `json:"budgets"`
	// This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign.
	CouponRedemptionCount *int32 `json:"couponRedemptionCount,omitempty"`
	// This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign.
	ReferralRedemptionCount *int32 `json:"referralRedemptionCount,omitempty"`
	// This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign.
	DiscountCount *float32 `json:"discountCount,omitempty"`
	// This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign.
	DiscountEffectCount *int32 `json:"discountEffectCount,omitempty"`
	// This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign.
	CouponCreationCount *int32 `json:"couponCreationCount,omitempty"`
	// This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign.
	CustomEffectCount *int32 `json:"customEffectCount,omitempty"`
	// This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign.
	ReferralCreationCount *int32 `json:"referralCreationCount,omitempty"`
	// This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign.
	AddFreeItemEffectCount *int32 `json:"addFreeItemEffectCount,omitempty"`
	// This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign.
	AwardedGiveawaysCount *int32 `json:"awardedGiveawaysCount,omitempty"`
	// This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign.
	CreatedLoyaltyPointsCount *float32 `json:"createdLoyaltyPointsCount,omitempty"`
	// This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign.
	CreatedLoyaltyPointsEffectCount *int32 `json:"createdLoyaltyPointsEffectCount,omitempty"`
	// This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign.
	RedeemedLoyaltyPointsCount *float32 `json:"redeemedLoyaltyPointsCount,omitempty"`
	// This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign.
	RedeemedLoyaltyPointsEffectCount *int32 `json:"redeemedLoyaltyPointsEffectCount,omitempty"`
	// This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign.
	CallApiEffectCount *int32 `json:"callApiEffectCount,omitempty"`
	// This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign.
	ReservecouponEffectCount *int32 `json:"reservecouponEffectCount,omitempty"`
	// Timestamp of the most recent event received by this campaign.
	LastActivity *time.Time `json:"lastActivity,omitempty"`
	// Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates.
	Updated *time.Time `json:"updated,omitempty"`
	// Name of the user who created this campaign if available.
	CreatedBy *string `json:"createdBy,omitempty"`
	// Name of the user who last updated this campaign if available.
	UpdatedBy *string `json:"updatedBy,omitempty"`
	// The ID of the Campaign Template this Campaign was created from.
	TemplateId *int32 `json:"templateId,omitempty"`
	// A campaign state described exactly as in the Campaign Manager.
	FrontendState string `json:"frontendState"`
}

AdditionalCampaignProperties struct for AdditionalCampaignProperties

func (*AdditionalCampaignProperties) GetAddFreeItemEffectCount

func (o *AdditionalCampaignProperties) GetAddFreeItemEffectCount() int32

GetAddFreeItemEffectCount returns the AddFreeItemEffectCount field value if set, zero value otherwise.

func (*AdditionalCampaignProperties) GetAddFreeItemEffectCountOk

func (o *AdditionalCampaignProperties) GetAddFreeItemEffectCountOk() (int32, bool)

GetAddFreeItemEffectCountOk returns a tuple with the AddFreeItemEffectCount field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AdditionalCampaignProperties) GetAwardedGiveawaysCount

func (o *AdditionalCampaignProperties) GetAwardedGiveawaysCount() int32

GetAwardedGiveawaysCount returns the AwardedGiveawaysCount field value if set, zero value otherwise.

func (*AdditionalCampaignProperties) GetAwardedGiveawaysCountOk

func (o *AdditionalCampaignProperties) GetAwardedGiveawaysCountOk() (int32, bool)

GetAwardedGiveawaysCountOk returns a tuple with the AwardedGiveawaysCount field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AdditionalCampaignProperties) GetBudgets

func (o *AdditionalCampaignProperties) GetBudgets() []CampaignBudget

GetBudgets returns the Budgets field value

func (*AdditionalCampaignProperties) GetCallApiEffectCount

func (o *AdditionalCampaignProperties) GetCallApiEffectCount() int32

GetCallApiEffectCount returns the CallApiEffectCount field value if set, zero value otherwise.

func (*AdditionalCampaignProperties) GetCallApiEffectCountOk

func (o *AdditionalCampaignProperties) GetCallApiEffectCountOk() (int32, bool)

GetCallApiEffectCountOk returns a tuple with the CallApiEffectCount field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AdditionalCampaignProperties) GetCouponCreationCount

func (o *AdditionalCampaignProperties) GetCouponCreationCount() int32

GetCouponCreationCount returns the CouponCreationCount field value if set, zero value otherwise.

func (*AdditionalCampaignProperties) GetCouponCreationCountOk

func (o *AdditionalCampaignProperties) GetCouponCreationCountOk() (int32, bool)

GetCouponCreationCountOk returns a tuple with the CouponCreationCount field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AdditionalCampaignProperties) GetCouponRedemptionCount

func (o *AdditionalCampaignProperties) GetCouponRedemptionCount() int32

GetCouponRedemptionCount returns the CouponRedemptionCount field value if set, zero value otherwise.

func (*AdditionalCampaignProperties) GetCouponRedemptionCountOk

func (o *AdditionalCampaignProperties) GetCouponRedemptionCountOk() (int32, bool)

GetCouponRedemptionCountOk returns a tuple with the CouponRedemptionCount field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AdditionalCampaignProperties) GetCreatedBy

func (o *AdditionalCampaignProperties) GetCreatedBy() string

GetCreatedBy returns the CreatedBy field value if set, zero value otherwise.

func (*AdditionalCampaignProperties) GetCreatedByOk

func (o *AdditionalCampaignProperties) GetCreatedByOk() (string, bool)

GetCreatedByOk returns a tuple with the CreatedBy field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AdditionalCampaignProperties) GetCreatedLoyaltyPointsCount

func (o *AdditionalCampaignProperties) GetCreatedLoyaltyPointsCount() float32

GetCreatedLoyaltyPointsCount returns the CreatedLoyaltyPointsCount field value if set, zero value otherwise.

func (*AdditionalCampaignProperties) GetCreatedLoyaltyPointsCountOk

func (o *AdditionalCampaignProperties) GetCreatedLoyaltyPointsCountOk() (float32, bool)

GetCreatedLoyaltyPointsCountOk returns a tuple with the CreatedLoyaltyPointsCount field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AdditionalCampaignProperties) GetCreatedLoyaltyPointsEffectCount

func (o *AdditionalCampaignProperties) GetCreatedLoyaltyPointsEffectCount() int32

GetCreatedLoyaltyPointsEffectCount returns the CreatedLoyaltyPointsEffectCount field value if set, zero value otherwise.

func (*AdditionalCampaignProperties) GetCreatedLoyaltyPointsEffectCountOk

func (o *AdditionalCampaignProperties) GetCreatedLoyaltyPointsEffectCountOk() (int32, bool)

GetCreatedLoyaltyPointsEffectCountOk returns a tuple with the CreatedLoyaltyPointsEffectCount field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AdditionalCampaignProperties) GetCustomEffectCount

func (o *AdditionalCampaignProperties) GetCustomEffectCount() int32

GetCustomEffectCount returns the CustomEffectCount field value if set, zero value otherwise.

func (*AdditionalCampaignProperties) GetCustomEffectCountOk

func (o *AdditionalCampaignProperties) GetCustomEffectCountOk() (int32, bool)

GetCustomEffectCountOk returns a tuple with the CustomEffectCount field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AdditionalCampaignProperties) GetDiscountCount

func (o *AdditionalCampaignProperties) GetDiscountCount() float32

GetDiscountCount returns the DiscountCount field value if set, zero value otherwise.

func (*AdditionalCampaignProperties) GetDiscountCountOk

func (o *AdditionalCampaignProperties) GetDiscountCountOk() (float32, bool)

GetDiscountCountOk returns a tuple with the DiscountCount field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AdditionalCampaignProperties) GetDiscountEffectCount

func (o *AdditionalCampaignProperties) GetDiscountEffectCount() int32

GetDiscountEffectCount returns the DiscountEffectCount field value if set, zero value otherwise.

func (*AdditionalCampaignProperties) GetDiscountEffectCountOk

func (o *AdditionalCampaignProperties) GetDiscountEffectCountOk() (int32, bool)

GetDiscountEffectCountOk returns a tuple with the DiscountEffectCount field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AdditionalCampaignProperties) GetFrontendState

func (o *AdditionalCampaignProperties) GetFrontendState() string

GetFrontendState returns the FrontendState field value

func (*AdditionalCampaignProperties) GetLastActivity

func (o *AdditionalCampaignProperties) GetLastActivity() time.Time

GetLastActivity returns the LastActivity field value if set, zero value otherwise.

func (*AdditionalCampaignProperties) GetLastActivityOk

func (o *AdditionalCampaignProperties) GetLastActivityOk() (time.Time, bool)

GetLastActivityOk returns a tuple with the LastActivity field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AdditionalCampaignProperties) GetRedeemedLoyaltyPointsCount

func (o *AdditionalCampaignProperties) GetRedeemedLoyaltyPointsCount() float32

GetRedeemedLoyaltyPointsCount returns the RedeemedLoyaltyPointsCount field value if set, zero value otherwise.

func (*AdditionalCampaignProperties) GetRedeemedLoyaltyPointsCountOk

func (o *AdditionalCampaignProperties) GetRedeemedLoyaltyPointsCountOk() (float32, bool)

GetRedeemedLoyaltyPointsCountOk returns a tuple with the RedeemedLoyaltyPointsCount field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AdditionalCampaignProperties) GetRedeemedLoyaltyPointsEffectCount

func (o *AdditionalCampaignProperties) GetRedeemedLoyaltyPointsEffectCount() int32

GetRedeemedLoyaltyPointsEffectCount returns the RedeemedLoyaltyPointsEffectCount field value if set, zero value otherwise.

func (*AdditionalCampaignProperties) GetRedeemedLoyaltyPointsEffectCountOk

func (o *AdditionalCampaignProperties) GetRedeemedLoyaltyPointsEffectCountOk() (int32, bool)

GetRedeemedLoyaltyPointsEffectCountOk returns a tuple with the RedeemedLoyaltyPointsEffectCount field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AdditionalCampaignProperties) GetReferralCreationCount

func (o *AdditionalCampaignProperties) GetReferralCreationCount() int32

GetReferralCreationCount returns the ReferralCreationCount field value if set, zero value otherwise.

func (*AdditionalCampaignProperties) GetReferralCreationCountOk

func (o *AdditionalCampaignProperties) GetReferralCreationCountOk() (int32, bool)

GetReferralCreationCountOk returns a tuple with the ReferralCreationCount field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AdditionalCampaignProperties) GetReferralRedemptionCount

func (o *AdditionalCampaignProperties) GetReferralRedemptionCount() int32

GetReferralRedemptionCount returns the ReferralRedemptionCount field value if set, zero value otherwise.

func (*AdditionalCampaignProperties) GetReferralRedemptionCountOk

func (o *AdditionalCampaignProperties) GetReferralRedemptionCountOk() (int32, bool)

GetReferralRedemptionCountOk returns a tuple with the ReferralRedemptionCount field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AdditionalCampaignProperties) GetReservecouponEffectCount

func (o *AdditionalCampaignProperties) GetReservecouponEffectCount() int32

GetReservecouponEffectCount returns the ReservecouponEffectCount field value if set, zero value otherwise.

func (*AdditionalCampaignProperties) GetReservecouponEffectCountOk

func (o *AdditionalCampaignProperties) GetReservecouponEffectCountOk() (int32, bool)

GetReservecouponEffectCountOk returns a tuple with the ReservecouponEffectCount field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AdditionalCampaignProperties) GetTemplateId

func (o *AdditionalCampaignProperties) GetTemplateId() int32

GetTemplateId returns the TemplateId field value if set, zero value otherwise.

func (*AdditionalCampaignProperties) GetTemplateIdOk

func (o *AdditionalCampaignProperties) GetTemplateIdOk() (int32, bool)

GetTemplateIdOk returns a tuple with the TemplateId field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AdditionalCampaignProperties) GetUpdated

func (o *AdditionalCampaignProperties) GetUpdated() time.Time

GetUpdated returns the Updated field value if set, zero value otherwise.

func (*AdditionalCampaignProperties) GetUpdatedBy

func (o *AdditionalCampaignProperties) GetUpdatedBy() string

GetUpdatedBy returns the UpdatedBy field value if set, zero value otherwise.

func (*AdditionalCampaignProperties) GetUpdatedByOk

func (o *AdditionalCampaignProperties) GetUpdatedByOk() (string, bool)

GetUpdatedByOk returns a tuple with the UpdatedBy field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AdditionalCampaignProperties) GetUpdatedOk

func (o *AdditionalCampaignProperties) GetUpdatedOk() (time.Time, bool)

GetUpdatedOk returns a tuple with the Updated field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*AdditionalCampaignProperties) HasAddFreeItemEffectCount

func (o *AdditionalCampaignProperties) HasAddFreeItemEffectCount() bool

HasAddFreeItemEffectCount returns a boolean if a field has been set.

func (*AdditionalCampaignProperties) HasAwardedGiveawaysCount

func (o *AdditionalCampaignProperties) HasAwardedGiveawaysCount() bool

HasAwardedGiveawaysCount returns a boolean if a field has been set.

func (*AdditionalCampaignProperties) HasCallApiEffectCount

func (o *AdditionalCampaignProperties) HasCallApiEffectCount() bool

HasCallApiEffectCount returns a boolean if a field has been set.

func (*AdditionalCampaignProperties) HasCouponCreationCount

func (o *AdditionalCampaignProperties) HasCouponCreationCount() bool

HasCouponCreationCount returns a boolean if a field has been set.

func (*AdditionalCampaignProperties) HasCouponRedemptionCount

func (o *AdditionalCampaignProperties) HasCouponRedemptionCount() bool

HasCouponRedemptionCount returns a boolean if a field has been set.

func (*AdditionalCampaignProperties) HasCreatedBy

func (o *AdditionalCampaignProperties) HasCreatedBy() bool

HasCreatedBy returns a boolean if a field has been set.

func (*AdditionalCampaignProperties) HasCreatedLoyaltyPointsCount

func (o *AdditionalCampaignProperties) HasCreatedLoyaltyPointsCount() bool

HasCreatedLoyaltyPointsCount returns a boolean if a field has been set.

func (*AdditionalCampaignProperties) HasCreatedLoyaltyPointsEffectCount

func (o *AdditionalCampaignProperties) HasCreatedLoyaltyPointsEffectCount() bool

HasCreatedLoyaltyPointsEffectCount returns a boolean if a field has been set.

func (*AdditionalCampaignProperties) HasCustomEffectCount

func (o *AdditionalCampaignProperties) HasCustomEffectCount() bool

HasCustomEffectCount returns a boolean if a field has been set.

func (*AdditionalCampaignProperties) HasDiscountCount

func (o *AdditionalCampaignProperties) HasDiscountCount() bool

HasDiscountCount returns a boolean if a field has been set.

func (*AdditionalCampaignProperties) HasDiscountEffectCount

func (o *AdditionalCampaignProperties) HasDiscountEffectCount() bool

HasDiscountEffectCount returns a boolean if a field has been set.

func (*AdditionalCampaignProperties) HasLastActivity

func (o *AdditionalCampaignProperties) HasLastActivity() bool

HasLastActivity returns a boolean if a field has been set.

func (*AdditionalCampaignProperties) HasRedeemedLoyaltyPointsCount

func (o *AdditionalCampaignProperties) HasRedeemedLoyaltyPointsCount() bool

HasRedeemedLoyaltyPointsCount returns a boolean if a field has been set.

func (*AdditionalCampaignProperties) HasRedeemedLoyaltyPointsEffectCount

func (o *AdditionalCampaignProperties) HasRedeemedLoyaltyPointsEffectCount() bool

HasRedeemedLoyaltyPointsEffectCount returns a boolean if a field has been set.

func (*AdditionalCampaignProperties) HasReferralCreationCount

func (o *AdditionalCampaignProperties) HasReferralCreationCount() bool

HasReferralCreationCount returns a boolean if a field has been set.

func (*AdditionalCampaignProperties) HasReferralRedemptionCount

func (o *AdditionalCampaignProperties) HasReferralRedemptionCount() bool

HasReferralRedemptionCount returns a boolean if a field has been set.

func (*AdditionalCampaignProperties) HasReservecouponEffectCount

func (o *AdditionalCampaignProperties) HasReservecouponEffectCount() bool

HasReservecouponEffectCount returns a boolean if a field has been set.

func (*AdditionalCampaignProperties) HasTemplateId

func (o *AdditionalCampaignProperties) HasTemplateId() bool

HasTemplateId returns a boolean if a field has been set.

func (*AdditionalCampaignProperties) HasUpdated

func (o *AdditionalCampaignProperties) HasUpdated() bool

HasUpdated returns a boolean if a field has been set.

func (*AdditionalCampaignProperties) HasUpdatedBy

func (o *AdditionalCampaignProperties) HasUpdatedBy() bool

HasUpdatedBy returns a boolean if a field has been set.

func (*AdditionalCampaignProperties) SetAddFreeItemEffectCount

func (o *AdditionalCampaignProperties) SetAddFreeItemEffectCount(v int32)

SetAddFreeItemEffectCount gets a reference to the given int32 and assigns it to the AddFreeItemEffectCount field.

func (*AdditionalCampaignProperties) SetAwardedGiveawaysCount

func (o *AdditionalCampaignProperties) SetAwardedGiveawaysCount(v int32)

SetAwardedGiveawaysCount gets a reference to the given int32 and assigns it to the AwardedGiveawaysCount field.

func (*AdditionalCampaignProperties) SetBudgets

func (o *AdditionalCampaignProperties) SetBudgets(v []CampaignBudget)

SetBudgets sets field value

func (*AdditionalCampaignProperties) SetCallApiEffectCount

func (o *AdditionalCampaignProperties) SetCallApiEffectCount(v int32)

SetCallApiEffectCount gets a reference to the given int32 and assigns it to the CallApiEffectCount field.

func (*AdditionalCampaignProperties) SetCouponCreationCount

func (o *AdditionalCampaignProperties) SetCouponCreationCount(v int32)

SetCouponCreationCount gets a reference to the given int32 and assigns it to the CouponCreationCount field.

func (*AdditionalCampaignProperties) SetCouponRedemptionCount

func (o *AdditionalCampaignProperties) SetCouponRedemptionCount(v int32)

SetCouponRedemptionCount gets a reference to the given int32 and assigns it to the CouponRedemptionCount field.

func (*AdditionalCampaignProperties) SetCreatedBy

func (o *AdditionalCampaignProperties) SetCreatedBy(v string)

SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field.

func (*AdditionalCampaignProperties) SetCreatedLoyaltyPointsCount

func (o *AdditionalCampaignProperties) SetCreatedLoyaltyPointsCount(v float32)

SetCreatedLoyaltyPointsCount gets a reference to the given float32 and assigns it to the CreatedLoyaltyPointsCount field.

func (*AdditionalCampaignProperties) SetCreatedLoyaltyPointsEffectCount

func (o *AdditionalCampaignProperties) SetCreatedLoyaltyPointsEffectCount(v int32)

SetCreatedLoyaltyPointsEffectCount gets a reference to the given int32 and assigns it to the CreatedLoyaltyPointsEffectCount field.

func (*AdditionalCampaignProperties) SetCustomEffectCount

func (o *AdditionalCampaignProperties) SetCustomEffectCount(v int32)

SetCustomEffectCount gets a reference to the given int32 and assigns it to the CustomEffectCount field.

func (*AdditionalCampaignProperties) SetDiscountCount

func (o *AdditionalCampaignProperties) SetDiscountCount(v float32)

SetDiscountCount gets a reference to the given float32 and assigns it to the DiscountCount field.

func (*AdditionalCampaignProperties) SetDiscountEffectCount

func (o *AdditionalCampaignProperties) SetDiscountEffectCount(v int32)

SetDiscountEffectCount gets a reference to the given int32 and assigns it to the DiscountEffectCount field.

func (*AdditionalCampaignProperties) SetFrontendState

func (o *AdditionalCampaignProperties) SetFrontendState(v string)

SetFrontendState sets field value

func (*AdditionalCampaignProperties) SetLastActivity

func (o *AdditionalCampaignProperties) SetLastActivity(v time.Time)

SetLastActivity gets a reference to the given time.Time and assigns it to the LastActivity field.

func (*AdditionalCampaignProperties) SetRedeemedLoyaltyPointsCount

func (o *AdditionalCampaignProperties) SetRedeemedLoyaltyPointsCount(v float32)

SetRedeemedLoyaltyPointsCount gets a reference to the given float32 and assigns it to the RedeemedLoyaltyPointsCount field.

func (*AdditionalCampaignProperties) SetRedeemedLoyaltyPointsEffectCount

func (o *AdditionalCampaignProperties) SetRedeemedLoyaltyPointsEffectCount(v int32)

SetRedeemedLoyaltyPointsEffectCount gets a reference to the given int32 and assigns it to the RedeemedLoyaltyPointsEffectCount field.

func (*AdditionalCampaignProperties) SetReferralCreationCount

func (o *AdditionalCampaignProperties) SetReferralCreationCount(v int32)

SetReferralCreationCount gets a reference to the given int32 and assigns it to the ReferralCreationCount field.

func (*AdditionalCampaignProperties) SetReferralRedemptionCount

func (o *AdditionalCampaignProperties) SetReferralRedemptionCount(v int32)

SetReferralRedemptionCount gets a reference to the given int32 and assigns it to the ReferralRedemptionCount field.

func (*AdditionalCampaignProperties) SetReservecouponEffectCount

func (o *AdditionalCampaignProperties) SetReservecouponEffectCount(v int32)

SetReservecouponEffectCount gets a reference to the given int32 and assigns it to the ReservecouponEffectCount field.

func (*AdditionalCampaignProperties) SetTemplateId

func (o *AdditionalCampaignProperties) SetTemplateId(v int32)

SetTemplateId gets a reference to the given int32 and assigns it to the TemplateId field.

func (*AdditionalCampaignProperties) SetUpdated

func (o *AdditionalCampaignProperties) SetUpdated(v time.Time)

SetUpdated gets a reference to the given time.Time and assigns it to the Updated field.

func (*AdditionalCampaignProperties) SetUpdatedBy

func (o *AdditionalCampaignProperties) SetUpdatedBy(v string)

SetUpdatedBy gets a reference to the given string and assigns it to the UpdatedBy field.

type AdditionalCost

type AdditionalCost struct {
	Price float32 `json:"price"`
}

AdditionalCost struct for AdditionalCost

func (*AdditionalCost) GetPrice

func (o *AdditionalCost) GetPrice() float32

GetPrice returns the Price field value

func (*AdditionalCost) SetPrice

func (o *AdditionalCost) SetPrice(v float32)

SetPrice sets field value

type ApiError

type ApiError struct {
	// Short description of the problem.
	Title string `json:"title"`
	// Longer description of this specific instance of the problem.
	Details *string     `json:"details,omitempty"`
	Source  ErrorSource `json:"source"`
}

ApiError struct for ApiError

func (*ApiError) GetDetails

func (o *ApiError) GetDetails() string

GetDetails returns the Details field value if set, zero value otherwise.

func (*ApiError) GetDetailsOk

func (o *ApiError) GetDetailsOk() (string, bool)

GetDetailsOk returns a tuple with the Details field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApiError) GetSource

func (o *ApiError) GetSource() ErrorSource

GetSource returns the Source field value

func (*ApiError) GetTitle

func (o *ApiError) GetTitle() string

GetTitle returns the Title field value

func (*ApiError) HasDetails

func (o *ApiError) HasDetails() bool

HasDetails returns a boolean if a field has been set.

func (*ApiError) SetDetails

func (o *ApiError) SetDetails(v string)

SetDetails gets a reference to the given string and assigns it to the Details field.

func (*ApiError) SetSource

func (o *ApiError) SetSource(v ErrorSource)

SetSource sets field value

func (*ApiError) SetTitle

func (o *ApiError) SetTitle(v string)

SetTitle sets field value

type Application

type Application struct {
	// Internal ID of this entity.
	Id int32 `json:"id"`
	// The time this entity was created.
	Created time.Time `json:"created"`
	// The time this entity was last modified.
	Modified time.Time `json:"modified"`
	// The ID of the account that owns this entity.
	AccountId int32 `json:"accountId"`
	// The name of this application.
	Name string `json:"name"`
	// A longer description of the application.
	Description *string `json:"description,omitempty"`
	// A string containing an IANA timezone descriptor.
	Timezone string `json:"timezone"`
	// The default currency for new customer sessions.
	Currency string `json:"currency"`
	// The case sensitivity behavior to check coupon codes in the campaigns of this Application.
	CaseSensitivity *string `json:"caseSensitivity,omitempty"`
	// Arbitrary properties associated with this campaign.
	Attributes *map[string]interface{} `json:"attributes,omitempty"`
	// Default limits for campaigns created in this application.
	Limits *[]LimitConfig `json:"limits,omitempty"`
	// The default scope to apply `setDiscount` effects on if no scope was provided with the effect.
	DefaultDiscountScope *string `json:"defaultDiscountScope,omitempty"`
	// Indicates if discounts should cascade for this Application.
	EnableCascadingDiscounts *bool `json:"enableCascadingDiscounts,omitempty"`
	// Indicates if cart items of quantity larger than one should be separated into different items of quantity one.
	EnableFlattenedCartItems *bool               `json:"enableFlattenedCartItems,omitempty"`
	AttributesSettings       *AttributesSettings `json:"attributesSettings,omitempty"`
	// Indicates if this is a live or sandbox Application.
	Sandbox *bool `json:"sandbox,omitempty"`
	// Indicates if this Application supports partial discounts.
	EnablePartialDiscounts *bool `json:"enablePartialDiscounts,omitempty"`
	// The default scope to apply `setDiscountPerItem` effects on if no scope was provided with the effect.
	DefaultDiscountAdditionalCostPerItemScope *string `json:"defaultDiscountAdditionalCostPerItemScope,omitempty"`
	// The ID of the default campaign evaluation group to which new campaigns will be added unless a different group is selected when creating the campaign.
	DefaultEvaluationGroupId *int32 `json:"defaultEvaluationGroupId,omitempty"`
	// An array containing all the loyalty programs to which this application is subscribed.
	LoyaltyPrograms []LoyaltyProgram `json:"loyaltyPrograms"`
}

Application

func (*Application) GetAccountId

func (o *Application) GetAccountId() int32

GetAccountId returns the AccountId field value

func (*Application) GetAttributes

func (o *Application) GetAttributes() map[string]interface{}

GetAttributes returns the Attributes field value if set, zero value otherwise.

func (*Application) GetAttributesOk

func (o *Application) GetAttributesOk() (map[string]interface{}, bool)

GetAttributesOk returns a tuple with the Attributes field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*Application) GetAttributesSettings

func (o *Application) GetAttributesSettings() AttributesSettings

GetAttributesSettings returns the AttributesSettings field value if set, zero value otherwise.

func (*Application) GetAttributesSettingsOk

func (o *Application) GetAttributesSettingsOk() (AttributesSettings, bool)

GetAttributesSettingsOk returns a tuple with the AttributesSettings field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*Application) GetCaseSensitivity

func (o *Application) GetCaseSensitivity() string

GetCaseSensitivity returns the CaseSensitivity field value if set, zero value otherwise.

func (*Application) GetCaseSensitivityOk

func (o *Application) GetCaseSensitivityOk() (string, bool)

GetCaseSensitivityOk returns a tuple with the CaseSensitivity field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*Application) GetCreated

func (o *Application) GetCreated() time.Time

GetCreated returns the Created field value

func (*Application) GetCurrency

func (o *Application) GetCurrency() string

GetCurrency returns the Currency field value

func (*Application) GetDefaultDiscountAdditionalCostPerItemScope

func (o *Application) GetDefaultDiscountAdditionalCostPerItemScope() string

GetDefaultDiscountAdditionalCostPerItemScope returns the DefaultDiscountAdditionalCostPerItemScope field value if set, zero value otherwise.

func (*Application) GetDefaultDiscountAdditionalCostPerItemScopeOk

func (o *Application) GetDefaultDiscountAdditionalCostPerItemScopeOk() (string, bool)

GetDefaultDiscountAdditionalCostPerItemScopeOk returns a tuple with the DefaultDiscountAdditionalCostPerItemScope field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*Application) GetDefaultDiscountScope

func (o *Application) GetDefaultDiscountScope() string

GetDefaultDiscountScope returns the DefaultDiscountScope field value if set, zero value otherwise.

func (*Application) GetDefaultDiscountScopeOk

func (o *Application) GetDefaultDiscountScopeOk() (string, bool)

GetDefaultDiscountScopeOk returns a tuple with the DefaultDiscountScope field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*Application) GetDefaultEvaluationGroupId

func (o *Application) GetDefaultEvaluationGroupId() int32

GetDefaultEvaluationGroupId returns the DefaultEvaluationGroupId field value if set, zero value otherwise.

func (*Application) GetDefaultEvaluationGroupIdOk

func (o *Application) GetDefaultEvaluationGroupIdOk() (int32, bool)

GetDefaultEvaluationGroupIdOk returns a tuple with the DefaultEvaluationGroupId field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*Application) GetDescription

func (o *Application) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*Application) GetDescriptionOk

func (o *Application) GetDescriptionOk() (string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*Application) GetEnableCascadingDiscounts

func (o *Application) GetEnableCascadingDiscounts() bool

GetEnableCascadingDiscounts returns the EnableCascadingDiscounts field value if set, zero value otherwise.

func (*Application) GetEnableCascadingDiscountsOk

func (o *Application) GetEnableCascadingDiscountsOk() (bool, bool)

GetEnableCascadingDiscountsOk returns a tuple with the EnableCascadingDiscounts field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*Application) GetEnableFlattenedCartItems

func (o *Application) GetEnableFlattenedCartItems() bool

GetEnableFlattenedCartItems returns the EnableFlattenedCartItems field value if set, zero value otherwise.

func (*Application) GetEnableFlattenedCartItemsOk

func (o *Application) GetEnableFlattenedCartItemsOk() (bool, bool)

GetEnableFlattenedCartItemsOk returns a tuple with the EnableFlattenedCartItems field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*Application) GetEnablePartialDiscounts

func (o *Application) GetEnablePartialDiscounts() bool

GetEnablePartialDiscounts returns the EnablePartialDiscounts field value if set, zero value otherwise.

func (*Application) GetEnablePartialDiscountsOk

func (o *Application) GetEnablePartialDiscountsOk() (bool, bool)

GetEnablePartialDiscountsOk returns a tuple with the EnablePartialDiscounts field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*Application) GetId

func (o *Application) GetId() int32

GetId returns the Id field value

func (*Application) GetLimits

func (o *Application) GetLimits() []LimitConfig

GetLimits returns the Limits field value if set, zero value otherwise.

func (*Application) GetLimitsOk

func (o *Application) GetLimitsOk() ([]LimitConfig, bool)

GetLimitsOk returns a tuple with the Limits field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*Application) GetLoyaltyPrograms

func (o *Application) GetLoyaltyPrograms() []LoyaltyProgram

GetLoyaltyPrograms returns the LoyaltyPrograms field value

func (*Application) GetModified

func (o *Application) GetModified() time.Time

GetModified returns the Modified field value

func (*Application) GetName

func (o *Application) GetName() string

GetName returns the Name field value

func (*Application) GetSandbox

func (o *Application) GetSandbox() bool

GetSandbox returns the Sandbox field value if set, zero value otherwise.

func (*Application) GetSandboxOk

func (o *Application) GetSandboxOk() (bool, bool)

GetSandboxOk returns a tuple with the Sandbox field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*Application) GetTimezone

func (o *Application) GetTimezone() string

GetTimezone returns the Timezone field value

func (*Application) HasAttributes

func (o *Application) HasAttributes() bool

HasAttributes returns a boolean if a field has been set.

func (*Application) HasAttributesSettings

func (o *Application) HasAttributesSettings() bool

HasAttributesSettings returns a boolean if a field has been set.

func (*Application) HasCaseSensitivity

func (o *Application) HasCaseSensitivity() bool

HasCaseSensitivity returns a boolean if a field has been set.

func (*Application) HasDefaultDiscountAdditionalCostPerItemScope

func (o *Application) HasDefaultDiscountAdditionalCostPerItemScope() bool

HasDefaultDiscountAdditionalCostPerItemScope returns a boolean if a field has been set.

func (*Application) HasDefaultDiscountScope

func (o *Application) HasDefaultDiscountScope() bool

HasDefaultDiscountScope returns a boolean if a field has been set.

func (*Application) HasDefaultEvaluationGroupId

func (o *Application) HasDefaultEvaluationGroupId() bool

HasDefaultEvaluationGroupId returns a boolean if a field has been set.

func (*Application) HasDescription

func (o *Application) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*Application) HasEnableCascadingDiscounts

func (o *Application) HasEnableCascadingDiscounts() bool

HasEnableCascadingDiscounts returns a boolean if a field has been set.

func (*Application) HasEnableFlattenedCartItems

func (o *Application) HasEnableFlattenedCartItems() bool

HasEnableFlattenedCartItems returns a boolean if a field has been set.

func (*Application) HasEnablePartialDiscounts

func (o *Application) HasEnablePartialDiscounts() bool

HasEnablePartialDiscounts returns a boolean if a field has been set.

func (*Application) HasLimits

func (o *Application) HasLimits() bool

HasLimits returns a boolean if a field has been set.

func (*Application) HasSandbox

func (o *Application) HasSandbox() bool

HasSandbox returns a boolean if a field has been set.

func (*Application) SetAccountId

func (o *Application) SetAccountId(v int32)

SetAccountId sets field value

func (*Application) SetAttributes

func (o *Application) SetAttributes(v map[string]interface{})

SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.

func (*Application) SetAttributesSettings

func (o *Application) SetAttributesSettings(v AttributesSettings)

SetAttributesSettings gets a reference to the given AttributesSettings and assigns it to the AttributesSettings field.

func (*Application) SetCaseSensitivity

func (o *Application) SetCaseSensitivity(v string)

SetCaseSensitivity gets a reference to the given string and assigns it to the CaseSensitivity field.

func (*Application) SetCreated

func (o *Application) SetCreated(v time.Time)

SetCreated sets field value

func (*Application) SetCurrency

func (o *Application) SetCurrency(v string)

SetCurrency sets field value

func (*Application) SetDefaultDiscountAdditionalCostPerItemScope

func (o *Application) SetDefaultDiscountAdditionalCostPerItemScope(v string)

SetDefaultDiscountAdditionalCostPerItemScope gets a reference to the given string and assigns it to the DefaultDiscountAdditionalCostPerItemScope field.

func (*Application) SetDefaultDiscountScope

func (o *Application) SetDefaultDiscountScope(v string)

SetDefaultDiscountScope gets a reference to the given string and assigns it to the DefaultDiscountScope field.

func (*Application) SetDefaultEvaluationGroupId

func (o *Application) SetDefaultEvaluationGroupId(v int32)

SetDefaultEvaluationGroupId gets a reference to the given int32 and assigns it to the DefaultEvaluationGroupId field.

func (*Application) SetDescription

func (o *Application) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*Application) SetEnableCascadingDiscounts

func (o *Application) SetEnableCascadingDiscounts(v bool)

SetEnableCascadingDiscounts gets a reference to the given bool and assigns it to the EnableCascadingDiscounts field.

func (*Application) SetEnableFlattenedCartItems

func (o *Application) SetEnableFlattenedCartItems(v bool)

SetEnableFlattenedCartItems gets a reference to the given bool and assigns it to the EnableFlattenedCartItems field.

func (*Application) SetEnablePartialDiscounts

func (o *Application) SetEnablePartialDiscounts(v bool)

SetEnablePartialDiscounts gets a reference to the given bool and assigns it to the EnablePartialDiscounts field.

func (*Application) SetId

func (o *Application) SetId(v int32)

SetId sets field value

func (*Application) SetLimits

func (o *Application) SetLimits(v []LimitConfig)

SetLimits gets a reference to the given []LimitConfig and assigns it to the Limits field.

func (*Application) SetLoyaltyPrograms

func (o *Application) SetLoyaltyPrograms(v []LoyaltyProgram)

SetLoyaltyPrograms sets field value

func (*Application) SetModified

func (o *Application) SetModified(v time.Time)

SetModified sets field value

func (*Application) SetName

func (o *Application) SetName(v string)

SetName sets field value

func (*Application) SetSandbox

func (o *Application) SetSandbox(v bool)

SetSandbox gets a reference to the given bool and assigns it to the Sandbox field.

func (*Application) SetTimezone

func (o *Application) SetTimezone(v string)

SetTimezone sets field value

type ApplicationAnalyticsDataPoint

type ApplicationAnalyticsDataPoint struct {
	// The start of the aggregation time frame in UTC.
	StartTime *time.Time `json:"startTime,omitempty"`
	// The end of the aggregation time frame in UTC.
	EndTime            *time.Time                                       `json:"endTime,omitempty"`
	TotalRevenue       *ApplicationAnalyticsDataPointTotalRevenue       `json:"totalRevenue,omitempty"`
	SessionsCount      *ApplicationAnalyticsDataPointSessionsCount      `json:"sessionsCount,omitempty"`
	AvgItemsPerSession *ApplicationAnalyticsDataPointAvgItemsPerSession `json:"avgItemsPerSession,omitempty"`
	AvgSessionValue    *ApplicationAnalyticsDataPointAvgSessionValue    `json:"avgSessionValue,omitempty"`
	// The total value of discounts given for cart items in influenced sessions.
	TotalDiscounts *float32 `json:"totalDiscounts,omitempty"`
	// The number of times a coupon was successfully redeemed in influenced sessions.
	CouponsCount *float32 `json:"couponsCount,omitempty"`
}

ApplicationAnalyticsDataPoint struct for ApplicationAnalyticsDataPoint

func (*ApplicationAnalyticsDataPoint) GetAvgItemsPerSession

GetAvgItemsPerSession returns the AvgItemsPerSession field value if set, zero value otherwise.

func (*ApplicationAnalyticsDataPoint) GetAvgItemsPerSessionOk

GetAvgItemsPerSessionOk returns a tuple with the AvgItemsPerSession field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationAnalyticsDataPoint) GetAvgSessionValue

GetAvgSessionValue returns the AvgSessionValue field value if set, zero value otherwise.

func (*ApplicationAnalyticsDataPoint) GetAvgSessionValueOk

GetAvgSessionValueOk returns a tuple with the AvgSessionValue field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationAnalyticsDataPoint) GetCouponsCount

func (o *ApplicationAnalyticsDataPoint) GetCouponsCount() float32

GetCouponsCount returns the CouponsCount field value if set, zero value otherwise.

func (*ApplicationAnalyticsDataPoint) GetCouponsCountOk

func (o *ApplicationAnalyticsDataPoint) GetCouponsCountOk() (float32, bool)

GetCouponsCountOk returns a tuple with the CouponsCount field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationAnalyticsDataPoint) GetEndTime

func (o *ApplicationAnalyticsDataPoint) GetEndTime() time.Time

GetEndTime returns the EndTime field value if set, zero value otherwise.

func (*ApplicationAnalyticsDataPoint) GetEndTimeOk

func (o *ApplicationAnalyticsDataPoint) GetEndTimeOk() (time.Time, bool)

GetEndTimeOk returns a tuple with the EndTime field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationAnalyticsDataPoint) GetSessionsCount

GetSessionsCount returns the SessionsCount field value if set, zero value otherwise.

func (*ApplicationAnalyticsDataPoint) GetSessionsCountOk

GetSessionsCountOk returns a tuple with the SessionsCount field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationAnalyticsDataPoint) GetStartTime

func (o *ApplicationAnalyticsDataPoint) GetStartTime() time.Time

GetStartTime returns the StartTime field value if set, zero value otherwise.

func (*ApplicationAnalyticsDataPoint) GetStartTimeOk

func (o *ApplicationAnalyticsDataPoint) GetStartTimeOk() (time.Time, bool)

GetStartTimeOk returns a tuple with the StartTime field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationAnalyticsDataPoint) GetTotalDiscounts

func (o *ApplicationAnalyticsDataPoint) GetTotalDiscounts() float32

GetTotalDiscounts returns the TotalDiscounts field value if set, zero value otherwise.

func (*ApplicationAnalyticsDataPoint) GetTotalDiscountsOk

func (o *ApplicationAnalyticsDataPoint) GetTotalDiscountsOk() (float32, bool)

GetTotalDiscountsOk returns a tuple with the TotalDiscounts field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationAnalyticsDataPoint) GetTotalRevenue

GetTotalRevenue returns the TotalRevenue field value if set, zero value otherwise.

func (*ApplicationAnalyticsDataPoint) GetTotalRevenueOk

GetTotalRevenueOk returns a tuple with the TotalRevenue field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationAnalyticsDataPoint) HasAvgItemsPerSession

func (o *ApplicationAnalyticsDataPoint) HasAvgItemsPerSession() bool

HasAvgItemsPerSession returns a boolean if a field has been set.

func (*ApplicationAnalyticsDataPoint) HasAvgSessionValue

func (o *ApplicationAnalyticsDataPoint) HasAvgSessionValue() bool

HasAvgSessionValue returns a boolean if a field has been set.

func (*ApplicationAnalyticsDataPoint) HasCouponsCount

func (o *ApplicationAnalyticsDataPoint) HasCouponsCount() bool

HasCouponsCount returns a boolean if a field has been set.

func (*ApplicationAnalyticsDataPoint) HasEndTime

func (o *ApplicationAnalyticsDataPoint) HasEndTime() bool

HasEndTime returns a boolean if a field has been set.

func (*ApplicationAnalyticsDataPoint) HasSessionsCount

func (o *ApplicationAnalyticsDataPoint) HasSessionsCount() bool

HasSessionsCount returns a boolean if a field has been set.

func (*ApplicationAnalyticsDataPoint) HasStartTime

func (o *ApplicationAnalyticsDataPoint) HasStartTime() bool

HasStartTime returns a boolean if a field has been set.

func (*ApplicationAnalyticsDataPoint) HasTotalDiscounts

func (o *ApplicationAnalyticsDataPoint) HasTotalDiscounts() bool

HasTotalDiscounts returns a boolean if a field has been set.

func (*ApplicationAnalyticsDataPoint) HasTotalRevenue

func (o *ApplicationAnalyticsDataPoint) HasTotalRevenue() bool

HasTotalRevenue returns a boolean if a field has been set.

func (*ApplicationAnalyticsDataPoint) SetAvgItemsPerSession

SetAvgItemsPerSession gets a reference to the given ApplicationAnalyticsDataPointAvgItemsPerSession and assigns it to the AvgItemsPerSession field.

func (*ApplicationAnalyticsDataPoint) SetAvgSessionValue

SetAvgSessionValue gets a reference to the given ApplicationAnalyticsDataPointAvgSessionValue and assigns it to the AvgSessionValue field.

func (*ApplicationAnalyticsDataPoint) SetCouponsCount

func (o *ApplicationAnalyticsDataPoint) SetCouponsCount(v float32)

SetCouponsCount gets a reference to the given float32 and assigns it to the CouponsCount field.

func (*ApplicationAnalyticsDataPoint) SetEndTime

func (o *ApplicationAnalyticsDataPoint) SetEndTime(v time.Time)

SetEndTime gets a reference to the given time.Time and assigns it to the EndTime field.

func (*ApplicationAnalyticsDataPoint) SetSessionsCount

SetSessionsCount gets a reference to the given ApplicationAnalyticsDataPointSessionsCount and assigns it to the SessionsCount field.

func (*ApplicationAnalyticsDataPoint) SetStartTime

func (o *ApplicationAnalyticsDataPoint) SetStartTime(v time.Time)

SetStartTime gets a reference to the given time.Time and assigns it to the StartTime field.

func (*ApplicationAnalyticsDataPoint) SetTotalDiscounts

func (o *ApplicationAnalyticsDataPoint) SetTotalDiscounts(v float32)

SetTotalDiscounts gets a reference to the given float32 and assigns it to the TotalDiscounts field.

func (*ApplicationAnalyticsDataPoint) SetTotalRevenue

SetTotalRevenue gets a reference to the given ApplicationAnalyticsDataPointTotalRevenue and assigns it to the TotalRevenue field.

type ApplicationAnalyticsDataPointAvgItemsPerSession

type ApplicationAnalyticsDataPointAvgItemsPerSession struct {
	Total      *float32 `json:"total,omitempty"`
	Influenced *float32 `json:"influenced,omitempty"`
}

ApplicationAnalyticsDataPointAvgItemsPerSession The number of items from sessions divided by the number of sessions. The `influenced` value includes only sessions with at least one applied effect.

func (*ApplicationAnalyticsDataPointAvgItemsPerSession) GetInfluenced

GetInfluenced returns the Influenced field value if set, zero value otherwise.

func (*ApplicationAnalyticsDataPointAvgItemsPerSession) GetInfluencedOk

GetInfluencedOk returns a tuple with the Influenced field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationAnalyticsDataPointAvgItemsPerSession) GetTotal

GetTotal returns the Total field value if set, zero value otherwise.

func (*ApplicationAnalyticsDataPointAvgItemsPerSession) GetTotalOk

GetTotalOk returns a tuple with the Total field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationAnalyticsDataPointAvgItemsPerSession) HasInfluenced

HasInfluenced returns a boolean if a field has been set.

func (*ApplicationAnalyticsDataPointAvgItemsPerSession) HasTotal

HasTotal returns a boolean if a field has been set.

func (*ApplicationAnalyticsDataPointAvgItemsPerSession) SetInfluenced

SetInfluenced gets a reference to the given float32 and assigns it to the Influenced field.

func (*ApplicationAnalyticsDataPointAvgItemsPerSession) SetTotal

SetTotal gets a reference to the given float32 and assigns it to the Total field.

type ApplicationAnalyticsDataPointAvgSessionValue

type ApplicationAnalyticsDataPointAvgSessionValue struct {
	Total      *float32 `json:"total,omitempty"`
	Influenced *float32 `json:"influenced,omitempty"`
}

ApplicationAnalyticsDataPointAvgSessionValue The average customer session value, calculated by dividing the revenue value by the number of sessions. The `influenced` value includes only sessions with at least one applied effect.

func (*ApplicationAnalyticsDataPointAvgSessionValue) GetInfluenced

GetInfluenced returns the Influenced field value if set, zero value otherwise.

func (*ApplicationAnalyticsDataPointAvgSessionValue) GetInfluencedOk

GetInfluencedOk returns a tuple with the Influenced field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationAnalyticsDataPointAvgSessionValue) GetTotal

GetTotal returns the Total field value if set, zero value otherwise.

func (*ApplicationAnalyticsDataPointAvgSessionValue) GetTotalOk

GetTotalOk returns a tuple with the Total field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationAnalyticsDataPointAvgSessionValue) HasInfluenced

HasInfluenced returns a boolean if a field has been set.

func (*ApplicationAnalyticsDataPointAvgSessionValue) HasTotal

HasTotal returns a boolean if a field has been set.

func (*ApplicationAnalyticsDataPointAvgSessionValue) SetInfluenced

SetInfluenced gets a reference to the given float32 and assigns it to the Influenced field.

func (*ApplicationAnalyticsDataPointAvgSessionValue) SetTotal

SetTotal gets a reference to the given float32 and assigns it to the Total field.

type ApplicationAnalyticsDataPointSessionsCount

type ApplicationAnalyticsDataPointSessionsCount struct {
	Total      *float32 `json:"total,omitempty"`
	Influenced *float32 `json:"influenced,omitempty"`
}

ApplicationAnalyticsDataPointSessionsCount The number of all closed sessions. The `influenced` value includes only sessions with at least one applied effect.

func (*ApplicationAnalyticsDataPointSessionsCount) GetInfluenced

GetInfluenced returns the Influenced field value if set, zero value otherwise.

func (*ApplicationAnalyticsDataPointSessionsCount) GetInfluencedOk

GetInfluencedOk returns a tuple with the Influenced field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationAnalyticsDataPointSessionsCount) GetTotal

GetTotal returns the Total field value if set, zero value otherwise.

func (*ApplicationAnalyticsDataPointSessionsCount) GetTotalOk

GetTotalOk returns a tuple with the Total field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationAnalyticsDataPointSessionsCount) HasInfluenced

HasInfluenced returns a boolean if a field has been set.

func (*ApplicationAnalyticsDataPointSessionsCount) HasTotal

HasTotal returns a boolean if a field has been set.

func (*ApplicationAnalyticsDataPointSessionsCount) SetInfluenced

SetInfluenced gets a reference to the given float32 and assigns it to the Influenced field.

func (*ApplicationAnalyticsDataPointSessionsCount) SetTotal

SetTotal gets a reference to the given float32 and assigns it to the Total field.

type ApplicationAnalyticsDataPointTotalRevenue

type ApplicationAnalyticsDataPointTotalRevenue struct {
	Total      *float32 `json:"total,omitempty"`
	Influenced *float32 `json:"influenced,omitempty"`
}

ApplicationAnalyticsDataPointTotalRevenue The total, pre-discount value of all items purchased in a customer session.

func (*ApplicationAnalyticsDataPointTotalRevenue) GetInfluenced

GetInfluenced returns the Influenced field value if set, zero value otherwise.

func (*ApplicationAnalyticsDataPointTotalRevenue) GetInfluencedOk

func (o *ApplicationAnalyticsDataPointTotalRevenue) GetInfluencedOk() (float32, bool)

GetInfluencedOk returns a tuple with the Influenced field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationAnalyticsDataPointTotalRevenue) GetTotal

GetTotal returns the Total field value if set, zero value otherwise.

func (*ApplicationAnalyticsDataPointTotalRevenue) GetTotalOk

GetTotalOk returns a tuple with the Total field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationAnalyticsDataPointTotalRevenue) HasInfluenced

HasInfluenced returns a boolean if a field has been set.

func (*ApplicationAnalyticsDataPointTotalRevenue) HasTotal

HasTotal returns a boolean if a field has been set.

func (*ApplicationAnalyticsDataPointTotalRevenue) SetInfluenced

SetInfluenced gets a reference to the given float32 and assigns it to the Influenced field.

func (*ApplicationAnalyticsDataPointTotalRevenue) SetTotal

SetTotal gets a reference to the given float32 and assigns it to the Total field.

type ApplicationApiHealth

type ApplicationApiHealth struct {
	// One-word summary of the health of the API connection of an application. Possible values are: - `OK`: The Application has received only successful API requests in the last 5 minutes. - `WARNING`: The Application received at least one failed request in the last 50 minutes. - `ERROR`: More than 50% of received requests failed. - `CRITICAL`: All received requests failed. - `NONE`: During the last 5 minutes, the Application hasn't recorded any integration API requests.
	Summary string `json:"summary"`
	// time of last request relevant to the API health test.
	LastUsed time.Time `json:"lastUsed"`
}

ApplicationApiHealth Report of health of the API connection of an application.

func (*ApplicationApiHealth) GetLastUsed

func (o *ApplicationApiHealth) GetLastUsed() time.Time

GetLastUsed returns the LastUsed field value

func (*ApplicationApiHealth) GetSummary

func (o *ApplicationApiHealth) GetSummary() string

GetSummary returns the Summary field value

func (*ApplicationApiHealth) SetLastUsed

func (o *ApplicationApiHealth) SetLastUsed(v time.Time)

SetLastUsed sets field value

func (*ApplicationApiHealth) SetSummary

func (o *ApplicationApiHealth) SetSummary(v string)

SetSummary sets field value

type ApplicationApiKey

type ApplicationApiKey struct {
	// Title of the API key.
	Title string `json:"title"`
	// The date the API key expires.
	Expires time.Time `json:"expires"`
	// The third-party platform the API key is valid for. Use `none` for a generic API key to be used from your own integration layer.
	Platform *string `json:"platform,omitempty"`
	// The API key type. Can be empty or `staging`.  Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint.  When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`.
	Type *string `json:"type,omitempty"`
	// A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date.
	TimeOffset *int32 `json:"timeOffset,omitempty"`
	// ID of the API Key.
	Id int32 `json:"id"`
	// ID of user who created.
	CreatedBy int32 `json:"createdBy"`
	// ID of account the key is used for.
	AccountID int32 `json:"accountID"`
	// ID of application the key is used for.
	ApplicationID int32 `json:"applicationID"`
	// The date the API key was created.
	Created time.Time `json:"created"`
}

ApplicationApiKey

func (*ApplicationApiKey) GetAccountID

func (o *ApplicationApiKey) GetAccountID() int32

GetAccountID returns the AccountID field value

func (*ApplicationApiKey) GetApplicationID

func (o *ApplicationApiKey) GetApplicationID() int32

GetApplicationID returns the ApplicationID field value

func (*ApplicationApiKey) GetCreated

func (o *ApplicationApiKey) GetCreated() time.Time

GetCreated returns the Created field value

func (*ApplicationApiKey) GetCreatedBy

func (o *ApplicationApiKey) GetCreatedBy() int32

GetCreatedBy returns the CreatedBy field value

func (*ApplicationApiKey) GetExpires

func (o *ApplicationApiKey) GetExpires() time.Time

GetExpires returns the Expires field value

func (*ApplicationApiKey) GetId

func (o *ApplicationApiKey) GetId() int32

GetId returns the Id field value

func (*ApplicationApiKey) GetPlatform

func (o *ApplicationApiKey) GetPlatform() string

GetPlatform returns the Platform field value if set, zero value otherwise.

func (*ApplicationApiKey) GetPlatformOk

func (o *ApplicationApiKey) GetPlatformOk() (string, bool)

GetPlatformOk returns a tuple with the Platform field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationApiKey) GetTimeOffset

func (o *ApplicationApiKey) GetTimeOffset() int32

GetTimeOffset returns the TimeOffset field value if set, zero value otherwise.

func (*ApplicationApiKey) GetTimeOffsetOk

func (o *ApplicationApiKey) GetTimeOffsetOk() (int32, bool)

GetTimeOffsetOk returns a tuple with the TimeOffset field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationApiKey) GetTitle

func (o *ApplicationApiKey) GetTitle() string

GetTitle returns the Title field value

func (*ApplicationApiKey) GetType

func (o *ApplicationApiKey) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*ApplicationApiKey) GetTypeOk

func (o *ApplicationApiKey) GetTypeOk() (string, bool)

GetTypeOk returns a tuple with the Type field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationApiKey) HasPlatform

func (o *ApplicationApiKey) HasPlatform() bool

HasPlatform returns a boolean if a field has been set.

func (*ApplicationApiKey) HasTimeOffset

func (o *ApplicationApiKey) HasTimeOffset() bool

HasTimeOffset returns a boolean if a field has been set.

func (*ApplicationApiKey) HasType

func (o *ApplicationApiKey) HasType() bool

HasType returns a boolean if a field has been set.

func (*ApplicationApiKey) SetAccountID

func (o *ApplicationApiKey) SetAccountID(v int32)

SetAccountID sets field value

func (*ApplicationApiKey) SetApplicationID

func (o *ApplicationApiKey) SetApplicationID(v int32)

SetApplicationID sets field value

func (*ApplicationApiKey) SetCreated

func (o *ApplicationApiKey) SetCreated(v time.Time)

SetCreated sets field value

func (*ApplicationApiKey) SetCreatedBy

func (o *ApplicationApiKey) SetCreatedBy(v int32)

SetCreatedBy sets field value

func (*ApplicationApiKey) SetExpires

func (o *ApplicationApiKey) SetExpires(v time.Time)

SetExpires sets field value

func (*ApplicationApiKey) SetId

func (o *ApplicationApiKey) SetId(v int32)

SetId sets field value

func (*ApplicationApiKey) SetPlatform

func (o *ApplicationApiKey) SetPlatform(v string)

SetPlatform gets a reference to the given string and assigns it to the Platform field.

func (*ApplicationApiKey) SetTimeOffset

func (o *ApplicationApiKey) SetTimeOffset(v int32)

SetTimeOffset gets a reference to the given int32 and assigns it to the TimeOffset field.

func (*ApplicationApiKey) SetTitle

func (o *ApplicationApiKey) SetTitle(v string)

SetTitle sets field value

func (*ApplicationApiKey) SetType

func (o *ApplicationApiKey) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

type ApplicationCampaignAnalytics

type ApplicationCampaignAnalytics struct {
	// The start of the aggregation time frame in UTC.
	StartTime *time.Time `json:"startTime,omitempty"`
	// The end of the aggregation time frame in UTC.
	EndTime *time.Time `json:"endTime,omitempty"`
	// The ID of the campaign.
	CampaignId *int32 `json:"campaignId,omitempty"`
	// The name of the campaign.
	CampaignName *string `json:"campaignName,omitempty"`
	// A list of tags for the campaign.
	CampaignTags *[]string `json:"campaignTags,omitempty"`
	// The state of the campaign.  **Note:** A disabled or archived campaign is not evaluated for rules or coupons.
	CampaignState *string `json:"campaignState,omitempty"`
	// The [ID of the ruleset](https://docs.talon.one/management-api#operation/getRulesets) this campaign applies on customer session evaluation.
	CampaignActiveRulesetId *int32 `json:"campaignActiveRulesetId,omitempty"`
	// Date and time when the campaign becomes active.
	CampaignStartTime *time.Time `json:"campaignStartTime,omitempty"`
	// Date and time when the campaign becomes inactive.
	CampaignEndTime    *time.Time                                      `json:"campaignEndTime,omitempty"`
	TotalRevenue       *ApplicationCampaignAnalyticsTotalRevenue       `json:"totalRevenue,omitempty"`
	SessionsCount      *ApplicationCampaignAnalyticsSessionsCount      `json:"sessionsCount,omitempty"`
	AvgItemsPerSession *ApplicationCampaignAnalyticsAvgItemsPerSession `json:"avgItemsPerSession,omitempty"`
	AvgSessionValue    *ApplicationCampaignAnalyticsAvgSessionValue    `json:"avgSessionValue,omitempty"`
	TotalDiscounts     *ApplicationCampaignAnalyticsTotalDiscounts     `json:"totalDiscounts,omitempty"`
	CouponsCount       *ApplicationCampaignAnalyticsCouponsCount       `json:"couponsCount,omitempty"`
}

ApplicationCampaignAnalytics struct for ApplicationCampaignAnalytics

func (*ApplicationCampaignAnalytics) GetAvgItemsPerSession

GetAvgItemsPerSession returns the AvgItemsPerSession field value if set, zero value otherwise.

func (*ApplicationCampaignAnalytics) GetAvgItemsPerSessionOk

GetAvgItemsPerSessionOk returns a tuple with the AvgItemsPerSession field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalytics) GetAvgSessionValue

GetAvgSessionValue returns the AvgSessionValue field value if set, zero value otherwise.

func (*ApplicationCampaignAnalytics) GetAvgSessionValueOk

GetAvgSessionValueOk returns a tuple with the AvgSessionValue field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalytics) GetCampaignActiveRulesetId

func (o *ApplicationCampaignAnalytics) GetCampaignActiveRulesetId() int32

GetCampaignActiveRulesetId returns the CampaignActiveRulesetId field value if set, zero value otherwise.

func (*ApplicationCampaignAnalytics) GetCampaignActiveRulesetIdOk

func (o *ApplicationCampaignAnalytics) GetCampaignActiveRulesetIdOk() (int32, bool)

GetCampaignActiveRulesetIdOk returns a tuple with the CampaignActiveRulesetId field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalytics) GetCampaignEndTime

func (o *ApplicationCampaignAnalytics) GetCampaignEndTime() time.Time

GetCampaignEndTime returns the CampaignEndTime field value if set, zero value otherwise.

func (*ApplicationCampaignAnalytics) GetCampaignEndTimeOk

func (o *ApplicationCampaignAnalytics) GetCampaignEndTimeOk() (time.Time, bool)

GetCampaignEndTimeOk returns a tuple with the CampaignEndTime field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalytics) GetCampaignId

func (o *ApplicationCampaignAnalytics) GetCampaignId() int32

GetCampaignId returns the CampaignId field value if set, zero value otherwise.

func (*ApplicationCampaignAnalytics) GetCampaignIdOk

func (o *ApplicationCampaignAnalytics) GetCampaignIdOk() (int32, bool)

GetCampaignIdOk returns a tuple with the CampaignId field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalytics) GetCampaignName

func (o *ApplicationCampaignAnalytics) GetCampaignName() string

GetCampaignName returns the CampaignName field value if set, zero value otherwise.

func (*ApplicationCampaignAnalytics) GetCampaignNameOk

func (o *ApplicationCampaignAnalytics) GetCampaignNameOk() (string, bool)

GetCampaignNameOk returns a tuple with the CampaignName field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalytics) GetCampaignStartTime

func (o *ApplicationCampaignAnalytics) GetCampaignStartTime() time.Time

GetCampaignStartTime returns the CampaignStartTime field value if set, zero value otherwise.

func (*ApplicationCampaignAnalytics) GetCampaignStartTimeOk

func (o *ApplicationCampaignAnalytics) GetCampaignStartTimeOk() (time.Time, bool)

GetCampaignStartTimeOk returns a tuple with the CampaignStartTime field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalytics) GetCampaignState

func (o *ApplicationCampaignAnalytics) GetCampaignState() string

GetCampaignState returns the CampaignState field value if set, zero value otherwise.

func (*ApplicationCampaignAnalytics) GetCampaignStateOk

func (o *ApplicationCampaignAnalytics) GetCampaignStateOk() (string, bool)

GetCampaignStateOk returns a tuple with the CampaignState field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalytics) GetCampaignTags

func (o *ApplicationCampaignAnalytics) GetCampaignTags() []string

GetCampaignTags returns the CampaignTags field value if set, zero value otherwise.

func (*ApplicationCampaignAnalytics) GetCampaignTagsOk

func (o *ApplicationCampaignAnalytics) GetCampaignTagsOk() ([]string, bool)

GetCampaignTagsOk returns a tuple with the CampaignTags field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalytics) GetCouponsCount

GetCouponsCount returns the CouponsCount field value if set, zero value otherwise.

func (*ApplicationCampaignAnalytics) GetCouponsCountOk

GetCouponsCountOk returns a tuple with the CouponsCount field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalytics) GetEndTime

func (o *ApplicationCampaignAnalytics) GetEndTime() time.Time

GetEndTime returns the EndTime field value if set, zero value otherwise.

func (*ApplicationCampaignAnalytics) GetEndTimeOk

func (o *ApplicationCampaignAnalytics) GetEndTimeOk() (time.Time, bool)

GetEndTimeOk returns a tuple with the EndTime field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalytics) GetSessionsCount

GetSessionsCount returns the SessionsCount field value if set, zero value otherwise.

func (*ApplicationCampaignAnalytics) GetSessionsCountOk

GetSessionsCountOk returns a tuple with the SessionsCount field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalytics) GetStartTime

func (o *ApplicationCampaignAnalytics) GetStartTime() time.Time

GetStartTime returns the StartTime field value if set, zero value otherwise.

func (*ApplicationCampaignAnalytics) GetStartTimeOk

func (o *ApplicationCampaignAnalytics) GetStartTimeOk() (time.Time, bool)

GetStartTimeOk returns a tuple with the StartTime field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalytics) GetTotalDiscounts

GetTotalDiscounts returns the TotalDiscounts field value if set, zero value otherwise.

func (*ApplicationCampaignAnalytics) GetTotalDiscountsOk

GetTotalDiscountsOk returns a tuple with the TotalDiscounts field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalytics) GetTotalRevenue

GetTotalRevenue returns the TotalRevenue field value if set, zero value otherwise.

func (*ApplicationCampaignAnalytics) GetTotalRevenueOk

GetTotalRevenueOk returns a tuple with the TotalRevenue field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalytics) HasAvgItemsPerSession

func (o *ApplicationCampaignAnalytics) HasAvgItemsPerSession() bool

HasAvgItemsPerSession returns a boolean if a field has been set.

func (*ApplicationCampaignAnalytics) HasAvgSessionValue

func (o *ApplicationCampaignAnalytics) HasAvgSessionValue() bool

HasAvgSessionValue returns a boolean if a field has been set.

func (*ApplicationCampaignAnalytics) HasCampaignActiveRulesetId

func (o *ApplicationCampaignAnalytics) HasCampaignActiveRulesetId() bool

HasCampaignActiveRulesetId returns a boolean if a field has been set.

func (*ApplicationCampaignAnalytics) HasCampaignEndTime

func (o *ApplicationCampaignAnalytics) HasCampaignEndTime() bool

HasCampaignEndTime returns a boolean if a field has been set.

func (*ApplicationCampaignAnalytics) HasCampaignId

func (o *ApplicationCampaignAnalytics) HasCampaignId() bool

HasCampaignId returns a boolean if a field has been set.

func (*ApplicationCampaignAnalytics) HasCampaignName

func (o *ApplicationCampaignAnalytics) HasCampaignName() bool

HasCampaignName returns a boolean if a field has been set.

func (*ApplicationCampaignAnalytics) HasCampaignStartTime

func (o *ApplicationCampaignAnalytics) HasCampaignStartTime() bool

HasCampaignStartTime returns a boolean if a field has been set.

func (*ApplicationCampaignAnalytics) HasCampaignState

func (o *ApplicationCampaignAnalytics) HasCampaignState() bool

HasCampaignState returns a boolean if a field has been set.

func (*ApplicationCampaignAnalytics) HasCampaignTags

func (o *ApplicationCampaignAnalytics) HasCampaignTags() bool

HasCampaignTags returns a boolean if a field has been set.

func (*ApplicationCampaignAnalytics) HasCouponsCount

func (o *ApplicationCampaignAnalytics) HasCouponsCount() bool

HasCouponsCount returns a boolean if a field has been set.

func (*ApplicationCampaignAnalytics) HasEndTime

func (o *ApplicationCampaignAnalytics) HasEndTime() bool

HasEndTime returns a boolean if a field has been set.

func (*ApplicationCampaignAnalytics) HasSessionsCount

func (o *ApplicationCampaignAnalytics) HasSessionsCount() bool

HasSessionsCount returns a boolean if a field has been set.

func (*ApplicationCampaignAnalytics) HasStartTime

func (o *ApplicationCampaignAnalytics) HasStartTime() bool

HasStartTime returns a boolean if a field has been set.

func (*ApplicationCampaignAnalytics) HasTotalDiscounts

func (o *ApplicationCampaignAnalytics) HasTotalDiscounts() bool

HasTotalDiscounts returns a boolean if a field has been set.

func (*ApplicationCampaignAnalytics) HasTotalRevenue

func (o *ApplicationCampaignAnalytics) HasTotalRevenue() bool

HasTotalRevenue returns a boolean if a field has been set.

func (*ApplicationCampaignAnalytics) SetAvgItemsPerSession

SetAvgItemsPerSession gets a reference to the given ApplicationCampaignAnalyticsAvgItemsPerSession and assigns it to the AvgItemsPerSession field.

func (*ApplicationCampaignAnalytics) SetAvgSessionValue

SetAvgSessionValue gets a reference to the given ApplicationCampaignAnalyticsAvgSessionValue and assigns it to the AvgSessionValue field.

func (*ApplicationCampaignAnalytics) SetCampaignActiveRulesetId

func (o *ApplicationCampaignAnalytics) SetCampaignActiveRulesetId(v int32)

SetCampaignActiveRulesetId gets a reference to the given int32 and assigns it to the CampaignActiveRulesetId field.

func (*ApplicationCampaignAnalytics) SetCampaignEndTime

func (o *ApplicationCampaignAnalytics) SetCampaignEndTime(v time.Time)

SetCampaignEndTime gets a reference to the given time.Time and assigns it to the CampaignEndTime field.

func (*ApplicationCampaignAnalytics) SetCampaignId

func (o *ApplicationCampaignAnalytics) SetCampaignId(v int32)

SetCampaignId gets a reference to the given int32 and assigns it to the CampaignId field.

func (*ApplicationCampaignAnalytics) SetCampaignName

func (o *ApplicationCampaignAnalytics) SetCampaignName(v string)

SetCampaignName gets a reference to the given string and assigns it to the CampaignName field.

func (*ApplicationCampaignAnalytics) SetCampaignStartTime

func (o *ApplicationCampaignAnalytics) SetCampaignStartTime(v time.Time)

SetCampaignStartTime gets a reference to the given time.Time and assigns it to the CampaignStartTime field.

func (*ApplicationCampaignAnalytics) SetCampaignState

func (o *ApplicationCampaignAnalytics) SetCampaignState(v string)

SetCampaignState gets a reference to the given string and assigns it to the CampaignState field.

func (*ApplicationCampaignAnalytics) SetCampaignTags

func (o *ApplicationCampaignAnalytics) SetCampaignTags(v []string)

SetCampaignTags gets a reference to the given []string and assigns it to the CampaignTags field.

func (*ApplicationCampaignAnalytics) SetCouponsCount

SetCouponsCount gets a reference to the given ApplicationCampaignAnalyticsCouponsCount and assigns it to the CouponsCount field.

func (*ApplicationCampaignAnalytics) SetEndTime

func (o *ApplicationCampaignAnalytics) SetEndTime(v time.Time)

SetEndTime gets a reference to the given time.Time and assigns it to the EndTime field.

func (*ApplicationCampaignAnalytics) SetSessionsCount

SetSessionsCount gets a reference to the given ApplicationCampaignAnalyticsSessionsCount and assigns it to the SessionsCount field.

func (*ApplicationCampaignAnalytics) SetStartTime

func (o *ApplicationCampaignAnalytics) SetStartTime(v time.Time)

SetStartTime gets a reference to the given time.Time and assigns it to the StartTime field.

func (*ApplicationCampaignAnalytics) SetTotalDiscounts

SetTotalDiscounts gets a reference to the given ApplicationCampaignAnalyticsTotalDiscounts and assigns it to the TotalDiscounts field.

func (*ApplicationCampaignAnalytics) SetTotalRevenue

SetTotalRevenue gets a reference to the given ApplicationCampaignAnalyticsTotalRevenue and assigns it to the TotalRevenue field.

type ApplicationCampaignAnalyticsAvgItemsPerSession

type ApplicationCampaignAnalyticsAvgItemsPerSession struct {
	Value  *float32 `json:"value,omitempty"`
	Uplift *float32 `json:"uplift,omitempty"`
	Trend  *float32 `json:"trend,omitempty"`
}

ApplicationCampaignAnalyticsAvgItemsPerSession The number of items from sessions divided by the number of sessions. The `influenced` value includes only sessions with at least one applied effect.

func (*ApplicationCampaignAnalyticsAvgItemsPerSession) GetTrend

GetTrend returns the Trend field value if set, zero value otherwise.

func (*ApplicationCampaignAnalyticsAvgItemsPerSession) GetTrendOk

GetTrendOk returns a tuple with the Trend field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalyticsAvgItemsPerSession) GetUplift

GetUplift returns the Uplift field value if set, zero value otherwise.

func (*ApplicationCampaignAnalyticsAvgItemsPerSession) GetUpliftOk

GetUpliftOk returns a tuple with the Uplift field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalyticsAvgItemsPerSession) GetValue

GetValue returns the Value field value if set, zero value otherwise.

func (*ApplicationCampaignAnalyticsAvgItemsPerSession) GetValueOk

GetValueOk returns a tuple with the Value field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalyticsAvgItemsPerSession) HasTrend

HasTrend returns a boolean if a field has been set.

func (*ApplicationCampaignAnalyticsAvgItemsPerSession) HasUplift

HasUplift returns a boolean if a field has been set.

func (*ApplicationCampaignAnalyticsAvgItemsPerSession) HasValue

HasValue returns a boolean if a field has been set.

func (*ApplicationCampaignAnalyticsAvgItemsPerSession) SetTrend

SetTrend gets a reference to the given float32 and assigns it to the Trend field.

func (*ApplicationCampaignAnalyticsAvgItemsPerSession) SetUplift

SetUplift gets a reference to the given float32 and assigns it to the Uplift field.

func (*ApplicationCampaignAnalyticsAvgItemsPerSession) SetValue

SetValue gets a reference to the given float32 and assigns it to the Value field.

type ApplicationCampaignAnalyticsAvgSessionValue

type ApplicationCampaignAnalyticsAvgSessionValue struct {
	Value  *float32 `json:"value,omitempty"`
	Uplift *float32 `json:"uplift,omitempty"`
	Trend  *float32 `json:"trend,omitempty"`
}

ApplicationCampaignAnalyticsAvgSessionValue The average customer session value, calculated by dividing the revenue value by the number of sessions. The `influenced` value includes only sessions with at least one applied effect.

func (*ApplicationCampaignAnalyticsAvgSessionValue) GetTrend

GetTrend returns the Trend field value if set, zero value otherwise.

func (*ApplicationCampaignAnalyticsAvgSessionValue) GetTrendOk

GetTrendOk returns a tuple with the Trend field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalyticsAvgSessionValue) GetUplift

GetUplift returns the Uplift field value if set, zero value otherwise.

func (*ApplicationCampaignAnalyticsAvgSessionValue) GetUpliftOk

GetUpliftOk returns a tuple with the Uplift field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalyticsAvgSessionValue) GetValue

GetValue returns the Value field value if set, zero value otherwise.

func (*ApplicationCampaignAnalyticsAvgSessionValue) GetValueOk

GetValueOk returns a tuple with the Value field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalyticsAvgSessionValue) HasTrend

HasTrend returns a boolean if a field has been set.

func (*ApplicationCampaignAnalyticsAvgSessionValue) HasUplift

HasUplift returns a boolean if a field has been set.

func (*ApplicationCampaignAnalyticsAvgSessionValue) HasValue

HasValue returns a boolean if a field has been set.

func (*ApplicationCampaignAnalyticsAvgSessionValue) SetTrend

SetTrend gets a reference to the given float32 and assigns it to the Trend field.

func (*ApplicationCampaignAnalyticsAvgSessionValue) SetUplift

SetUplift gets a reference to the given float32 and assigns it to the Uplift field.

func (*ApplicationCampaignAnalyticsAvgSessionValue) SetValue

SetValue gets a reference to the given float32 and assigns it to the Value field.

type ApplicationCampaignAnalyticsCouponsCount

type ApplicationCampaignAnalyticsCouponsCount struct {
	Value *float32 `json:"value,omitempty"`
	Trend *float32 `json:"trend,omitempty"`
}

ApplicationCampaignAnalyticsCouponsCount The number of times a coupon was successfully redeemed in influenced sessions.

func (*ApplicationCampaignAnalyticsCouponsCount) GetTrend

GetTrend returns the Trend field value if set, zero value otherwise.

func (*ApplicationCampaignAnalyticsCouponsCount) GetTrendOk

GetTrendOk returns a tuple with the Trend field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalyticsCouponsCount) GetValue

GetValue returns the Value field value if set, zero value otherwise.

func (*ApplicationCampaignAnalyticsCouponsCount) GetValueOk

GetValueOk returns a tuple with the Value field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalyticsCouponsCount) HasTrend

HasTrend returns a boolean if a field has been set.

func (*ApplicationCampaignAnalyticsCouponsCount) HasValue

HasValue returns a boolean if a field has been set.

func (*ApplicationCampaignAnalyticsCouponsCount) SetTrend

SetTrend gets a reference to the given float32 and assigns it to the Trend field.

func (*ApplicationCampaignAnalyticsCouponsCount) SetValue

SetValue gets a reference to the given float32 and assigns it to the Value field.

type ApplicationCampaignAnalyticsSessionsCount

type ApplicationCampaignAnalyticsSessionsCount struct {
	Value         *float32 `json:"value,omitempty"`
	InfluenceRate *float32 `json:"influence_rate,omitempty"`
	Trend         *float32 `json:"trend,omitempty"`
}

ApplicationCampaignAnalyticsSessionsCount The number of all closed sessions. The `influenced` value includes only sessions with at least one applied effect.

func (*ApplicationCampaignAnalyticsSessionsCount) GetInfluenceRate

func (o *ApplicationCampaignAnalyticsSessionsCount) GetInfluenceRate() float32

GetInfluenceRate returns the InfluenceRate field value if set, zero value otherwise.

func (*ApplicationCampaignAnalyticsSessionsCount) GetInfluenceRateOk

func (o *ApplicationCampaignAnalyticsSessionsCount) GetInfluenceRateOk() (float32, bool)

GetInfluenceRateOk returns a tuple with the InfluenceRate field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalyticsSessionsCount) GetTrend

GetTrend returns the Trend field value if set, zero value otherwise.

func (*ApplicationCampaignAnalyticsSessionsCount) GetTrendOk

GetTrendOk returns a tuple with the Trend field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalyticsSessionsCount) GetValue

GetValue returns the Value field value if set, zero value otherwise.

func (*ApplicationCampaignAnalyticsSessionsCount) GetValueOk

GetValueOk returns a tuple with the Value field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalyticsSessionsCount) HasInfluenceRate

func (o *ApplicationCampaignAnalyticsSessionsCount) HasInfluenceRate() bool

HasInfluenceRate returns a boolean if a field has been set.

func (*ApplicationCampaignAnalyticsSessionsCount) HasTrend

HasTrend returns a boolean if a field has been set.

func (*ApplicationCampaignAnalyticsSessionsCount) HasValue

HasValue returns a boolean if a field has been set.

func (*ApplicationCampaignAnalyticsSessionsCount) SetInfluenceRate

func (o *ApplicationCampaignAnalyticsSessionsCount) SetInfluenceRate(v float32)

SetInfluenceRate gets a reference to the given float32 and assigns it to the InfluenceRate field.

func (*ApplicationCampaignAnalyticsSessionsCount) SetTrend

SetTrend gets a reference to the given float32 and assigns it to the Trend field.

func (*ApplicationCampaignAnalyticsSessionsCount) SetValue

SetValue gets a reference to the given float32 and assigns it to the Value field.

type ApplicationCampaignAnalyticsTotalDiscounts

type ApplicationCampaignAnalyticsTotalDiscounts struct {
	Value *float32 `json:"value,omitempty"`
	Trend *float32 `json:"trend,omitempty"`
}

ApplicationCampaignAnalyticsTotalDiscounts The total value of discounts given for cart items in influenced sessions.

func (*ApplicationCampaignAnalyticsTotalDiscounts) GetTrend

GetTrend returns the Trend field value if set, zero value otherwise.

func (*ApplicationCampaignAnalyticsTotalDiscounts) GetTrendOk

GetTrendOk returns a tuple with the Trend field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalyticsTotalDiscounts) GetValue

GetValue returns the Value field value if set, zero value otherwise.

func (*ApplicationCampaignAnalyticsTotalDiscounts) GetValueOk

GetValueOk returns a tuple with the Value field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalyticsTotalDiscounts) HasTrend

HasTrend returns a boolean if a field has been set.

func (*ApplicationCampaignAnalyticsTotalDiscounts) HasValue

HasValue returns a boolean if a field has been set.

func (*ApplicationCampaignAnalyticsTotalDiscounts) SetTrend

SetTrend gets a reference to the given float32 and assigns it to the Trend field.

func (*ApplicationCampaignAnalyticsTotalDiscounts) SetValue

SetValue gets a reference to the given float32 and assigns it to the Value field.

type ApplicationCampaignAnalyticsTotalRevenue

type ApplicationCampaignAnalyticsTotalRevenue struct {
	Value         *float32 `json:"value,omitempty"`
	InfluenceRate *float32 `json:"influence_rate,omitempty"`
	Trend         *float32 `json:"trend,omitempty"`
}

ApplicationCampaignAnalyticsTotalRevenue The total, pre-discount value of all items purchased in a customer session.

func (*ApplicationCampaignAnalyticsTotalRevenue) GetInfluenceRate

func (o *ApplicationCampaignAnalyticsTotalRevenue) GetInfluenceRate() float32

GetInfluenceRate returns the InfluenceRate field value if set, zero value otherwise.

func (*ApplicationCampaignAnalyticsTotalRevenue) GetInfluenceRateOk

func (o *ApplicationCampaignAnalyticsTotalRevenue) GetInfluenceRateOk() (float32, bool)

GetInfluenceRateOk returns a tuple with the InfluenceRate field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalyticsTotalRevenue) GetTrend

GetTrend returns the Trend field value if set, zero value otherwise.

func (*ApplicationCampaignAnalyticsTotalRevenue) GetTrendOk

GetTrendOk returns a tuple with the Trend field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalyticsTotalRevenue) GetValue

GetValue returns the Value field value if set, zero value otherwise.

func (*ApplicationCampaignAnalyticsTotalRevenue) GetValueOk

GetValueOk returns a tuple with the Value field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCampaignAnalyticsTotalRevenue) HasInfluenceRate

func (o *ApplicationCampaignAnalyticsTotalRevenue) HasInfluenceRate() bool

HasInfluenceRate returns a boolean if a field has been set.

func (*ApplicationCampaignAnalyticsTotalRevenue) HasTrend

HasTrend returns a boolean if a field has been set.

func (*ApplicationCampaignAnalyticsTotalRevenue) HasValue

HasValue returns a boolean if a field has been set.

func (*ApplicationCampaignAnalyticsTotalRevenue) SetInfluenceRate

func (o *ApplicationCampaignAnalyticsTotalRevenue) SetInfluenceRate(v float32)

SetInfluenceRate gets a reference to the given float32 and assigns it to the InfluenceRate field.

func (*ApplicationCampaignAnalyticsTotalRevenue) SetTrend

SetTrend gets a reference to the given float32 and assigns it to the Trend field.

func (*ApplicationCampaignAnalyticsTotalRevenue) SetValue

SetValue gets a reference to the given float32 and assigns it to the Value field.

type ApplicationCampaignStats

type ApplicationCampaignStats struct {
	// Number of draft campaigns.
	Draft int32 `json:"draft"`
	// Number of disabled campaigns.
	Disabled int32 `json:"disabled"`
	// Number of scheduled campaigns.
	Scheduled int32 `json:"scheduled"`
	// Number of running campaigns.
	Running int32 `json:"running"`
	// Number of expired campaigns.
	Expired int32 `json:"expired"`
	// Number of archived campaigns.
	Archived int32 `json:"archived"`
}

ApplicationCampaignStats Provides statistics regarding an application's campaigns.

func (*ApplicationCampaignStats) GetArchived

func (o *ApplicationCampaignStats) GetArchived() int32

GetArchived returns the Archived field value

func (*ApplicationCampaignStats) GetDisabled

func (o *ApplicationCampaignStats) GetDisabled() int32

GetDisabled returns the Disabled field value

func (*ApplicationCampaignStats) GetDraft

func (o *ApplicationCampaignStats) GetDraft() int32

GetDraft returns the Draft field value

func (*ApplicationCampaignStats) GetExpired

func (o *ApplicationCampaignStats) GetExpired() int32

GetExpired returns the Expired field value

func (*ApplicationCampaignStats) GetRunning

func (o *ApplicationCampaignStats) GetRunning() int32

GetRunning returns the Running field value

func (*ApplicationCampaignStats) GetScheduled

func (o *ApplicationCampaignStats) GetScheduled() int32

GetScheduled returns the Scheduled field value

func (*ApplicationCampaignStats) SetArchived

func (o *ApplicationCampaignStats) SetArchived(v int32)

SetArchived sets field value

func (*ApplicationCampaignStats) SetDisabled

func (o *ApplicationCampaignStats) SetDisabled(v int32)

SetDisabled sets field value

func (*ApplicationCampaignStats) SetDraft

func (o *ApplicationCampaignStats) SetDraft(v int32)

SetDraft sets field value

func (*ApplicationCampaignStats) SetExpired

func (o *ApplicationCampaignStats) SetExpired(v int32)

SetExpired sets field value

func (*ApplicationCampaignStats) SetRunning

func (o *ApplicationCampaignStats) SetRunning(v int32)

SetRunning sets field value

func (*ApplicationCampaignStats) SetScheduled

func (o *ApplicationCampaignStats) SetScheduled(v int32)

SetScheduled sets field value

type ApplicationCustomer

type ApplicationCustomer struct {
	// Internal ID of this entity. Internal ID of this entity.
	Id int32 `json:"id"`
	// The time this entity was created. The time this entity was created. The time this entity was created. The time this entity was created.
	Created time.Time `json:"created"`
	// The integration ID set by your integration layer. The integration ID set by your integration layer.
	IntegrationId string `json:"integrationId"`
	// Arbitrary properties associated with this item.
	Attributes map[string]interface{} `json:"attributes"`
	// The ID of the Talon.One account that owns this profile. The ID of the Talon.One account that owns this profile.
	AccountId int32 `json:"accountId"`
	// The total amount of closed sessions by a customer. A closed session is a successful purchase.
	ClosedSessions int32 `json:"closedSessions"`
	// The total amount of money spent by the customer **before** discounts are applied.  The total sales amount excludes the following: - Cancelled or reopened sessions. - Returned items.
	TotalSales float32 `json:"totalSales"`
	// **DEPRECATED** A list of loyalty programs joined by the customer.
	LoyaltyMemberships *[]LoyaltyMembership `json:"loyaltyMemberships,omitempty"`
	// The audiences the customer belongs to.
	AudienceMemberships *[]AudienceMembership `json:"audienceMemberships,omitempty"`
	// Timestamp of the most recent event received from this customer. This field is updated on calls that trigger the Rule Engine and that are not [dry requests](https://docs.talon.one/docs/dev/integration-api/dry-requests/#overlay).  For example, [reserving a coupon](https://docs.talon.one/integration-api#operation/createCouponReservation) for a customer doesn't impact this field.
	LastActivity time.Time `json:"lastActivity"`
	// An indicator of whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments).
	Sandbox *bool `json:"sandbox,omitempty"`
	// The Integration ID of the Customer Profile that referred this Customer in the Application.
	AdvocateIntegrationId *string `json:"advocateIntegrationId,omitempty"`
}

ApplicationCustomer

func (*ApplicationCustomer) GetAccountId

func (o *ApplicationCustomer) GetAccountId() int32

GetAccountId returns the AccountId field value

func (*ApplicationCustomer) GetAdvocateIntegrationId

func (o *ApplicationCustomer) GetAdvocateIntegrationId() string

GetAdvocateIntegrationId returns the AdvocateIntegrationId field value if set, zero value otherwise.

func (*ApplicationCustomer) GetAdvocateIntegrationIdOk

func (o *ApplicationCustomer) GetAdvocateIntegrationIdOk() (string, bool)

GetAdvocateIntegrationIdOk returns a tuple with the AdvocateIntegrationId field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCustomer) GetAttributes

func (o *ApplicationCustomer) GetAttributes() map[string]interface{}

GetAttributes returns the Attributes field value

func (*ApplicationCustomer) GetAudienceMemberships

func (o *ApplicationCustomer) GetAudienceMemberships() []AudienceMembership

GetAudienceMemberships returns the AudienceMemberships field value if set, zero value otherwise.

func (*ApplicationCustomer) GetAudienceMembershipsOk

func (o *ApplicationCustomer) GetAudienceMembershipsOk() ([]AudienceMembership, bool)

GetAudienceMembershipsOk returns a tuple with the AudienceMemberships field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCustomer) GetClosedSessions

func (o *ApplicationCustomer) GetClosedSessions() int32

GetClosedSessions returns the ClosedSessions field value

func (*ApplicationCustomer) GetCreated

func (o *ApplicationCustomer) GetCreated() time.Time

GetCreated returns the Created field value

func (*ApplicationCustomer) GetId

func (o *ApplicationCustomer) GetId() int32

GetId returns the Id field value

func (*ApplicationCustomer) GetIntegrationId

func (o *ApplicationCustomer) GetIntegrationId() string

GetIntegrationId returns the IntegrationId field value

func (*ApplicationCustomer) GetLastActivity

func (o *ApplicationCustomer) GetLastActivity() time.Time

GetLastActivity returns the LastActivity field value

func (*ApplicationCustomer) GetLoyaltyMemberships

func (o *ApplicationCustomer) GetLoyaltyMemberships() []LoyaltyMembership

GetLoyaltyMemberships returns the LoyaltyMemberships field value if set, zero value otherwise.

func (*ApplicationCustomer) GetLoyaltyMembershipsOk

func (o *ApplicationCustomer) GetLoyaltyMembershipsOk() ([]LoyaltyMembership, bool)

GetLoyaltyMembershipsOk returns a tuple with the LoyaltyMemberships field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCustomer) GetSandbox

func (o *ApplicationCustomer) GetSandbox() bool

GetSandbox returns the Sandbox field value if set, zero value otherwise.

func (*ApplicationCustomer) GetSandboxOk

func (o *ApplicationCustomer) GetSandboxOk() (bool, bool)

GetSandboxOk returns a tuple with the Sandbox field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCustomer) GetTotalSales

func (o *ApplicationCustomer) GetTotalSales() float32

GetTotalSales returns the TotalSales field value

func (*ApplicationCustomer) HasAdvocateIntegrationId

func (o *ApplicationCustomer) HasAdvocateIntegrationId() bool

HasAdvocateIntegrationId returns a boolean if a field has been set.

func (*ApplicationCustomer) HasAudienceMemberships

func (o *ApplicationCustomer) HasAudienceMemberships() bool

HasAudienceMemberships returns a boolean if a field has been set.

func (*ApplicationCustomer) HasLoyaltyMemberships

func (o *ApplicationCustomer) HasLoyaltyMemberships() bool

HasLoyaltyMemberships returns a boolean if a field has been set.

func (*ApplicationCustomer) HasSandbox

func (o *ApplicationCustomer) HasSandbox() bool

HasSandbox returns a boolean if a field has been set.

func (*ApplicationCustomer) SetAccountId

func (o *ApplicationCustomer) SetAccountId(v int32)

SetAccountId sets field value

func (*ApplicationCustomer) SetAdvocateIntegrationId

func (o *ApplicationCustomer) SetAdvocateIntegrationId(v string)

SetAdvocateIntegrationId gets a reference to the given string and assigns it to the AdvocateIntegrationId field.

func (*ApplicationCustomer) SetAttributes

func (o *ApplicationCustomer) SetAttributes(v map[string]interface{})

SetAttributes sets field value

func (*ApplicationCustomer) SetAudienceMemberships

func (o *ApplicationCustomer) SetAudienceMemberships(v []AudienceMembership)

SetAudienceMemberships gets a reference to the given []AudienceMembership and assigns it to the AudienceMemberships field.

func (*ApplicationCustomer) SetClosedSessions

func (o *ApplicationCustomer) SetClosedSessions(v int32)

SetClosedSessions sets field value

func (*ApplicationCustomer) SetCreated

func (o *ApplicationCustomer) SetCreated(v time.Time)

SetCreated sets field value

func (*ApplicationCustomer) SetId

func (o *ApplicationCustomer) SetId(v int32)

SetId sets field value

func (*ApplicationCustomer) SetIntegrationId

func (o *ApplicationCustomer) SetIntegrationId(v string)

SetIntegrationId sets field value

func (*ApplicationCustomer) SetLastActivity

func (o *ApplicationCustomer) SetLastActivity(v time.Time)

SetLastActivity sets field value

func (*ApplicationCustomer) SetLoyaltyMemberships

func (o *ApplicationCustomer) SetLoyaltyMemberships(v []LoyaltyMembership)

SetLoyaltyMemberships gets a reference to the given []LoyaltyMembership and assigns it to the LoyaltyMemberships field.

func (*ApplicationCustomer) SetSandbox

func (o *ApplicationCustomer) SetSandbox(v bool)

SetSandbox gets a reference to the given bool and assigns it to the Sandbox field.

func (*ApplicationCustomer) SetTotalSales

func (o *ApplicationCustomer) SetTotalSales(v float32)

SetTotalSales sets field value

type ApplicationCustomerEntity

type ApplicationCustomerEntity struct {
	// The globally unique Talon.One ID of the customer that created this entity.
	ProfileId *int32 `json:"profileId,omitempty"`
}

ApplicationCustomerEntity struct for ApplicationCustomerEntity

func (*ApplicationCustomerEntity) GetProfileId

func (o *ApplicationCustomerEntity) GetProfileId() int32

GetProfileId returns the ProfileId field value if set, zero value otherwise.

func (*ApplicationCustomerEntity) GetProfileIdOk

func (o *ApplicationCustomerEntity) GetProfileIdOk() (int32, bool)

GetProfileIdOk returns a tuple with the ProfileId field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationCustomerEntity) HasProfileId

func (o *ApplicationCustomerEntity) HasProfileId() bool

HasProfileId returns a boolean if a field has been set.

func (*ApplicationCustomerEntity) SetProfileId

func (o *ApplicationCustomerEntity) SetProfileId(v int32)

SetProfileId gets a reference to the given int32 and assigns it to the ProfileId field.

type ApplicationEntity

type ApplicationEntity struct {
	// The ID of the application that owns this entity.
	ApplicationId int32 `json:"applicationId"`
}

ApplicationEntity struct for ApplicationEntity

func (*ApplicationEntity) GetApplicationId

func (o *ApplicationEntity) GetApplicationId() int32

GetApplicationId returns the ApplicationId field value

func (*ApplicationEntity) SetApplicationId

func (o *ApplicationEntity) SetApplicationId(v int32)

SetApplicationId sets field value

type ApplicationEvent

type ApplicationEvent struct {
	// Internal ID of this entity.
	Id int32 `json:"id"`
	// The time this entity was created.
	Created time.Time `json:"created"`
	// The ID of the application that owns this entity.
	ApplicationId int32 `json:"applicationId"`
	// The globally unique Talon.One ID of the customer that created this entity.
	ProfileId *int32 `json:"profileId,omitempty"`
	// The ID of the store.
	StoreId *int32 `json:"storeId,omitempty"`
	// The integration ID of the store. You choose this ID when you create a store.
	StoreIntegrationId *string `json:"storeIntegrationId,omitempty"`
	// The globally unique Talon.One ID of the session that contains this event.
	SessionId *int32 `json:"sessionId,omitempty"`
	// A string representing the event. Must not be a reserved event name.
	Type string `json:"type"`
	// Additional JSON serialized data associated with the event.
	Attributes map[string]interface{} `json:"attributes"`
	// An array containing the effects that were applied as a result of this event.
	Effects []Effect `json:"effects"`
	// An array containing the rule failure reasons which happened during this event.
	RuleFailureReasons *[]RuleFailureReason `json:"ruleFailureReasons,omitempty"`
}

ApplicationEvent

func (*ApplicationEvent) GetApplicationId

func (o *ApplicationEvent) GetApplicationId() int32

GetApplicationId returns the ApplicationId field value

func (*ApplicationEvent) GetAttributes

func (o *ApplicationEvent) GetAttributes() map[string]interface{}

GetAttributes returns the Attributes field value

func (*ApplicationEvent) GetCreated

func (o *ApplicationEvent) GetCreated() time.Time

GetCreated returns the Created field value

func (*ApplicationEvent) GetEffects

func (o *ApplicationEvent) GetEffects() []Effect

GetEffects returns the Effects field value

func (*ApplicationEvent) GetId

func (o *ApplicationEvent) GetId() int32

GetId returns the Id field value

func (*ApplicationEvent) GetProfileId

func (o *ApplicationEvent) GetProfileId() int32

GetProfileId returns the ProfileId field value if set, zero value otherwise.

func (*ApplicationEvent) GetProfileIdOk

func (o *ApplicationEvent) GetProfileIdOk() (int32, bool)

GetProfileIdOk returns a tuple with the ProfileId field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationEvent) GetRuleFailureReasons

func (o *ApplicationEvent) GetRuleFailureReasons() []RuleFailureReason

GetRuleFailureReasons returns the RuleFailureReasons field value if set, zero value otherwise.

func (*ApplicationEvent) GetRuleFailureReasonsOk

func (o *ApplicationEvent) GetRuleFailureReasonsOk() ([]RuleFailureReason, bool)

GetRuleFailureReasonsOk returns a tuple with the RuleFailureReasons field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationEvent) GetSessionId

func (o *ApplicationEvent) GetSessionId() int32

GetSessionId returns the SessionId field value if set, zero value otherwise.

func (*ApplicationEvent) GetSessionIdOk

func (o *ApplicationEvent) GetSessionIdOk() (int32, bool)

GetSessionIdOk returns a tuple with the SessionId field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationEvent) GetStoreId

func (o *ApplicationEvent) GetStoreId() int32

GetStoreId returns the StoreId field value if set, zero value otherwise.

func (*ApplicationEvent) GetStoreIdOk

func (o *ApplicationEvent) GetStoreIdOk() (int32, bool)

GetStoreIdOk returns a tuple with the StoreId field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationEvent) GetStoreIntegrationId

func (o *ApplicationEvent) GetStoreIntegrationId() string

GetStoreIntegrationId returns the StoreIntegrationId field value if set, zero value otherwise.

func (*ApplicationEvent) GetStoreIntegrationIdOk

func (o *ApplicationEvent) GetStoreIntegrationIdOk() (string, bool)

GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationEvent) GetType

func (o *ApplicationEvent) GetType() string

GetType returns the Type field value

func (*ApplicationEvent) HasProfileId

func (o *ApplicationEvent) HasProfileId() bool

HasProfileId returns a boolean if a field has been set.

func (*ApplicationEvent) HasRuleFailureReasons

func (o *ApplicationEvent) HasRuleFailureReasons() bool

HasRuleFailureReasons returns a boolean if a field has been set.

func (*ApplicationEvent) HasSessionId

func (o *ApplicationEvent) HasSessionId() bool

HasSessionId returns a boolean if a field has been set.

func (*ApplicationEvent) HasStoreId

func (o *ApplicationEvent) HasStoreId() bool

HasStoreId returns a boolean if a field has been set.

func (*ApplicationEvent) HasStoreIntegrationId

func (o *ApplicationEvent) HasStoreIntegrationId() bool

HasStoreIntegrationId returns a boolean if a field has been set.

func (*ApplicationEvent) SetApplicationId

func (o *ApplicationEvent) SetApplicationId(v int32)

SetApplicationId sets field value

func (*ApplicationEvent) SetAttributes

func (o *ApplicationEvent) SetAttributes(v map[string]interface{})

SetAttributes sets field value

func (*ApplicationEvent) SetCreated

func (o *ApplicationEvent) SetCreated(v time.Time)

SetCreated sets field value

func (*ApplicationEvent) SetEffects

func (o *ApplicationEvent) SetEffects(v []Effect)

SetEffects sets field value

func (*ApplicationEvent) SetId

func (o *ApplicationEvent) SetId(v int32)

SetId sets field value

func (*ApplicationEvent) SetProfileId

func (o *ApplicationEvent) SetProfileId(v int32)

SetProfileId gets a reference to the given int32 and assigns it to the ProfileId field.

func (*ApplicationEvent) SetRuleFailureReasons

func (o *ApplicationEvent) SetRuleFailureReasons(v []RuleFailureReason)

SetRuleFailureReasons gets a reference to the given []RuleFailureReason and assigns it to the RuleFailureReasons field.

func (*ApplicationEvent) SetSessionId

func (o *ApplicationEvent) SetSessionId(v int32)

SetSessionId gets a reference to the given int32 and assigns it to the SessionId field.

func (*ApplicationEvent) SetStoreId

func (o *ApplicationEvent) SetStoreId(v int32)

SetStoreId gets a reference to the given int32 and assigns it to the StoreId field.

func (*ApplicationEvent) SetStoreIntegrationId

func (o *ApplicationEvent) SetStoreIntegrationId(v string)

SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.

func (*ApplicationEvent) SetType

func (o *ApplicationEvent) SetType(v string)

SetType sets field value

type ApplicationNotification

type ApplicationNotification struct {
	// Event type. It can be one of the following: ['campaign_evaluation_tree_changed']
	Event string `json:"event"`
}

ApplicationNotification struct for ApplicationNotification

func (*ApplicationNotification) GetEvent

func (o *ApplicationNotification) GetEvent() string

GetEvent returns the Event field value

func (*ApplicationNotification) SetEvent

func (o *ApplicationNotification) SetEvent(v string)

SetEvent sets field value

type ApplicationReferee

type ApplicationReferee struct {
	// The ID of the application that owns this entity.
	ApplicationId int32 `json:"applicationId"`
	// Integration ID of the session in which the customer redeemed the referral.
	SessionId string `json:"sessionId"`
	// Integration ID of the Advocate's Profile.
	AdvocateIntegrationId string `json:"advocateIntegrationId"`
	// Integration ID of the Friend's Profile.
	FriendIntegrationId string `json:"friendIntegrationId"`
	// Advocate's referral code.
	Code string `json:"code"`
	// Timestamp of the moment the customer redeemed the referral.
	Created time.Time `json:"created"`
}

ApplicationReferee

func (*ApplicationReferee) GetAdvocateIntegrationId

func (o *ApplicationReferee) GetAdvocateIntegrationId() string

GetAdvocateIntegrationId returns the AdvocateIntegrationId field value

func (*ApplicationReferee) GetApplicationId

func (o *ApplicationReferee) GetApplicationId() int32

GetApplicationId returns the ApplicationId field value

func (*ApplicationReferee) GetCode

func (o *ApplicationReferee) GetCode() string

GetCode returns the Code field value

func (*ApplicationReferee) GetCreated

func (o *ApplicationReferee) GetCreated() time.Time

GetCreated returns the Created field value

func (*ApplicationReferee) GetFriendIntegrationId

func (o *ApplicationReferee) GetFriendIntegrationId() string

GetFriendIntegrationId returns the FriendIntegrationId field value

func (*ApplicationReferee) GetSessionId

func (o *ApplicationReferee) GetSessionId() string

GetSessionId returns the SessionId field value

func (*ApplicationReferee) SetAdvocateIntegrationId

func (o *ApplicationReferee) SetAdvocateIntegrationId(v string)

SetAdvocateIntegrationId sets field value

func (*ApplicationReferee) SetApplicationId

func (o *ApplicationReferee) SetApplicationId(v int32)

SetApplicationId sets field value

func (*ApplicationReferee) SetCode

func (o *ApplicationReferee) SetCode(v string)

SetCode sets field value

func (*ApplicationReferee) SetCreated

func (o *ApplicationReferee) SetCreated(v time.Time)

SetCreated sets field value

func (*ApplicationReferee) SetFriendIntegrationId

func (o *ApplicationReferee) SetFriendIntegrationId(v string)

SetFriendIntegrationId sets field value

func (*ApplicationReferee) SetSessionId

func (o *ApplicationReferee) SetSessionId(v string)

SetSessionId sets field value

type ApplicationSession

type ApplicationSession struct {
	// Internal ID of this entity.
	Id int32 `json:"id"`
	// The time this entity was created. The time this entity was created.
	Created time.Time `json:"created"`
	// The integration ID set by your integration layer.
	IntegrationId string `json:"integrationId"`
	// The integration ID of the store. You choose this ID when you create a store.
	StoreIntegrationId *string `json:"storeIntegrationId,omitempty"`
	// The ID of the application that owns this entity.
	ApplicationId int32 `json:"applicationId"`
	// The globally unique Talon.One ID of the customer that created this entity.
	ProfileId *int32 `json:"profileId,omitempty"`
	// Integration ID of the customer for the session.
	Profileintegrationid *string `json:"profileintegrationid,omitempty"`
	// Any coupon code entered.
	Coupon string `json:"coupon"`
	// Any referral code entered.
	Referral string `json:"referral"`
	// Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are:  1. `open` → `closed` 2. `open` → `cancelled` 3. `closed` → `cancelled` or `partially_returned` 4. `partially_returned` → `cancelled`  For more information, see [Customer session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions).
	State string `json:"state"`
	// Serialized JSON representation.
	CartItems []CartItem `json:"cartItems"`
	// **API V1 only.** A map of labeled discount values, in the same currency as the session.  If you are using the V2 endpoints, refer to the `totalDiscounts` property instead.
	Discounts map[string]float32 `json:"discounts"`
	// The total sum of the discounts applied to this session.
	TotalDiscounts float32 `json:"totalDiscounts"`
	// The total sum of the session before any discounts applied.
	Total float32 `json:"total"`
	// Arbitrary properties associated with this item.
	Attributes *map[string]interface{} `json:"attributes,omitempty"`
}

ApplicationSession

func (*ApplicationSession) GetApplicationId

func (o *ApplicationSession) GetApplicationId() int32

GetApplicationId returns the ApplicationId field value

func (*ApplicationSession) GetAttributes

func (o *ApplicationSession) GetAttributes() map[string]interface{}

GetAttributes returns the Attributes field value if set, zero value otherwise.

func (*ApplicationSession) GetAttributesOk

func (o *ApplicationSession) GetAttributesOk() (map[string]interface{}, bool)

GetAttributesOk returns a tuple with the Attributes field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationSession) GetCartItems

func (o *ApplicationSession) GetCartItems() []CartItem

GetCartItems returns the CartItems field value

func (*ApplicationSession) GetCoupon

func (o *ApplicationSession) GetCoupon() string

GetCoupon returns the Coupon field value

func (*ApplicationSession) GetCreated

func (o *ApplicationSession) GetCreated() time.Time

GetCreated returns the Created field value

func (*ApplicationSession) GetDiscounts

func (o *ApplicationSession) GetDiscounts() map[string]float32

GetDiscounts returns the Discounts field value

func (*ApplicationSession) GetId

func (o *ApplicationSession) GetId() int32

GetId returns the Id field value

func (*ApplicationSession) GetIntegrationId

func (o *ApplicationSession) GetIntegrationId() string

GetIntegrationId returns the IntegrationId field value

func (*ApplicationSession) GetProfileId

func (o *ApplicationSession) GetProfileId() int32

GetProfileId returns the ProfileId field value if set, zero value otherwise.

func (*ApplicationSession) GetProfileIdOk

func (o *ApplicationSession) GetProfileIdOk() (int32, bool)

GetProfileIdOk returns a tuple with the ProfileId field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationSession) GetProfileintegrationid

func (o *ApplicationSession) GetProfileintegrationid() string

GetProfileintegrationid returns the Profileintegrationid field value if set, zero value otherwise.

func (*ApplicationSession) GetProfileintegrationidOk

func (o *ApplicationSession) GetProfileintegrationidOk() (string, bool)

GetProfileintegrationidOk returns a tuple with the Profileintegrationid field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationSession) GetReferral

func (o *ApplicationSession) GetReferral() string

GetReferral returns the Referral field value

func (*ApplicationSession) GetState

func (o *ApplicationSession) GetState() string

GetState returns the State field value

func (*ApplicationSession) GetStoreIntegrationId

func (o *ApplicationSession) GetStoreIntegrationId() string

GetStoreIntegrationId returns the StoreIntegrationId field value if set, zero value otherwise.

func (*ApplicationSession) GetStoreIntegrationIdOk

func (o *ApplicationSession) GetStoreIntegrationIdOk() (string, bool)

GetStoreIntegrationIdOk returns a tuple with the StoreIntegrationId field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationSession) GetTotal

func (o *ApplicationSession) GetTotal() float32

GetTotal returns the Total field value

func (*ApplicationSession) GetTotalDiscounts

func (o *ApplicationSession) GetTotalDiscounts() float32

GetTotalDiscounts returns the TotalDiscounts field value

func (*ApplicationSession) HasAttributes

func (o *ApplicationSession) HasAttributes() bool

HasAttributes returns a boolean if a field has been set.

func (*ApplicationSession) HasProfileId

func (o *ApplicationSession) HasProfileId() bool

HasProfileId returns a boolean if a field has been set.

func (*ApplicationSession) HasProfileintegrationid

func (o *ApplicationSession) HasProfileintegrationid() bool

HasProfileintegrationid returns a boolean if a field has been set.

func (*ApplicationSession) HasStoreIntegrationId

func (o *ApplicationSession) HasStoreIntegrationId() bool

HasStoreIntegrationId returns a boolean if a field has been set.

func (*ApplicationSession) SetApplicationId

func (o *ApplicationSession) SetApplicationId(v int32)

SetApplicationId sets field value

func (*ApplicationSession) SetAttributes

func (o *ApplicationSession) SetAttributes(v map[string]interface{})

SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.

func (*ApplicationSession) SetCartItems

func (o *ApplicationSession) SetCartItems(v []CartItem)

SetCartItems sets field value

func (*ApplicationSession) SetCoupon

func (o *ApplicationSession) SetCoupon(v string)

SetCoupon sets field value

func (*ApplicationSession) SetCreated

func (o *ApplicationSession) SetCreated(v time.Time)

SetCreated sets field value

func (*ApplicationSession) SetDiscounts

func (o *ApplicationSession) SetDiscounts(v map[string]float32)

SetDiscounts sets field value

func (*ApplicationSession) SetId

func (o *ApplicationSession) SetId(v int32)

SetId sets field value

func (*ApplicationSession) SetIntegrationId

func (o *ApplicationSession) SetIntegrationId(v string)

SetIntegrationId sets field value

func (*ApplicationSession) SetProfileId

func (o *ApplicationSession) SetProfileId(v int32)

SetProfileId gets a reference to the given int32 and assigns it to the ProfileId field.

func (*ApplicationSession) SetProfileintegrationid

func (o *ApplicationSession) SetProfileintegrationid(v string)

SetProfileintegrationid gets a reference to the given string and assigns it to the Profileintegrationid field.

func (*ApplicationSession) SetReferral

func (o *ApplicationSession) SetReferral(v string)

SetReferral sets field value

func (*ApplicationSession) SetState

func (o *ApplicationSession) SetState(v string)

SetState sets field value

func (*ApplicationSession) SetStoreIntegrationId

func (o *ApplicationSession) SetStoreIntegrationId(v string)

SetStoreIntegrationId gets a reference to the given string and assigns it to the StoreIntegrationId field.

func (*ApplicationSession) SetTotal

func (o *ApplicationSession) SetTotal(v float32)

SetTotal sets field value

func (*ApplicationSession) SetTotalDiscounts

func (o *ApplicationSession) SetTotalDiscounts(v float32)

SetTotalDiscounts sets field value

type ApplicationSessionEntity

type ApplicationSessionEntity struct {
	// The globally unique Talon.One ID of the session where this entity was created.
	SessionId int32 `json:"sessionId"`
}

ApplicationSessionEntity struct for ApplicationSessionEntity

func (*ApplicationSessionEntity) GetSessionId

func (o *ApplicationSessionEntity) GetSessionId() int32

GetSessionId returns the SessionId field value

func (*ApplicationSessionEntity) SetSessionId

func (o *ApplicationSessionEntity) SetSessionId(v int32)

SetSessionId sets field value

type ApplicationStoreEntity

type ApplicationStoreEntity struct {
	// The ID of the store.
	StoreId *int32 `json:"storeId,omitempty"`
}

ApplicationStoreEntity struct for ApplicationStoreEntity

func (*ApplicationStoreEntity) GetStoreId

func (o *ApplicationStoreEntity) GetStoreId() int32

GetStoreId returns the StoreId field value if set, zero value otherwise.

func (*ApplicationStoreEntity) GetStoreIdOk

func (o *ApplicationStoreEntity) GetStoreIdOk() (int32, bool)

GetStoreIdOk returns a tuple with the StoreId field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*ApplicationStoreEntity) HasStoreId

func (o *ApplicationStoreEntity) HasStoreId() bool

HasStoreId returns a boolean if a field has been set.

func (*ApplicationStoreEntity) SetStoreId

func (o *ApplicationStoreEntity) SetStoreId(v int32)

SetStoreId gets a reference to the given int32 and assigns it to the StoreId field.

type AsyncCouponCreationResponse

type AsyncCouponCreationResponse struct {
	// The batch ID that all coupons created by the request will have.
	BatchId string `json:"batchId"`
}

AsyncCouponCreationResponse struct for AsyncCouponCreationResponse

func (*AsyncCouponCreationResponse) GetBatchId

func (o *AsyncCouponCreationResponse) GetBatchId() string

GetBatchId returns the BatchId field value

func (*AsyncCouponCreationResponse) SetBatchId

func (o *AsyncCouponCreationResponse) SetBatchId(v string)

SetBatchId sets field value

type Attribute

type Attribute struct {
	// Internal ID of this entity.
	Id int32 `json:"id"`
	// The time this entity was created.
	Created time.Time `json:"created"`
	// The ID of the account that owns this entity.
	AccountId int32 `json:"accountId"`
	// The name of the entity that can have this attribute. When creating or updating the entities of a given type, you can include an `attributes` object with keys corresponding to the `name` of the custom attributes for that type.
	Entity    string  `json:"entity"`
	EventType *string `json:"eventType,omitempty"`
	// The attribute name that will be used in API requests and Talang. E.g. if `name == \"region\"` then you would set the region attribute by including an `attributes.region` property in your request payload.
	Name string `json:"name"`
	// The human-readable name for the attribute that will be shown in the Campaign Manager. Like `name`, the combination of entity and title must also be unique.
	Title string `json:"title"`
	// The data type of the attribute, a `time` attribute must be sent as a string that conforms to the [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp format.
	Type string `json:"type"`
	// A description of this attribute.
	Description string `json:"description"`
	// A list of suggestions for the attribute.
	Suggestions []string `json:"suggestions"`
	// Whether or not this attribute has an allowed list of values associated with it.
	HasAllowedList *bool `json:"hasAllowedList,omitempty"`
	// Whether or not this attribute's value is restricted by suggestions (`suggestions` property) or by an allowed list of value (`hasAllowedList` property).
	RestrictedBySuggestions *bool `json:"restrictedBySuggestions,omitempty"`
	// Whether or not this attribute can be edited.
	Editable bool `json:"editable"`
	// A list of the IDs of the applications where this attribute is available.
	SubscribedApplicationsIds *[]int32 `json:"subscribedApplicationsIds,omitempty"`
	// A list of the IDs of the catalogs where this attribute is available.
	SubscribedCatalogsIds *[]int32 `json:"subscribedCatalogsIds,omitempty"`
	// A list of allowed subscription types for this attribute.  **Note:** This only applies to attributes associated with the `CartItem` entity.
	AllowedSubscriptions *[]string `json:"allowedSubscriptions,omitempty"`
	EventTypeId          *int32    `json:"eventTypeId,omitempty"`
}

Attribute

func (*Attribute) GetAccountId

func (o *Attribute) GetAccountId() int32

GetAccountId returns the AccountId field value

func (*Attribute) GetAllowedSubscriptions

func (o *Attribute) GetAllowedSubscriptions() []string

GetAllowedSubscriptions returns the AllowedSubscriptions field value if set, zero value otherwise.

func (*Attribute) GetAllowedSubscriptionsOk

func (o *Attribute) GetAllowedSubscriptionsOk() ([]string, bool)

GetAllowedSubscriptionsOk returns a tuple with the AllowedSubscriptions field value if set, zero value otherwise and a boolean to check if the value has been set.

func (*Attribute) GetCreated

func (o *Attribute) GetCreated() time.Time

GetCreated returns the Created field value

func (*Attribute) GetDescription

func (o *Attribute) GetDescription() string

GetDescription returns the Description field value

func (*Attribute) GetEditable

func (o *Attribute) GetEditable() bool

GetEditable returns the Editable field value

func (*Attribute) GetEntity

func (o *Attribute) GetEntity() string

GetEntity returns the Entity field value

func (*Attribute) GetEventType

func (o *Attribute) GetEventType() string

GetEventType returns the EventType field value if set, zero value otherwise.

func (*Attribute) GetEventTypeId

func (o *Attribute) GetEventTypeId() int32

GetEventTypeId returns the EventTypeId field value if set, zero value otherwise.

func (*Attribute) GetEventTypeIdOk