You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/RecommApi/Requests/AddItemProperty.php
+16
Original file line number
Diff line number
Diff line change
@@ -20,13 +20,29 @@ class AddItemProperty extends Request {
20
20
protected$property_name;
21
21
/**
22
22
* @var string $type Value type of the item property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`, `image` or `imageList`.
23
+
* * `int`- Signed integer number.
24
+
* * `double` - Floating point number. It uses 64-bit base-2 format (IEEE 754 standard).
25
+
* * `string` - UTF-8 string.
26
+
* * `boolean` - *true* / *false*
27
+
* * `timestamp` - Value representing date and time.
28
+
* * `set` - Set of strings.
29
+
* * `image` - URL of an image (`jpeg`, `png` or `gif`).
30
+
* * `imageList` - List of URLs that refer to images.
23
31
*/
24
32
protected$type;
25
33
26
34
/**
27
35
* Construct the request
28
36
* @param string $property_name Name of the item property to be created. Currently, the following names are reserved:`id`, `itemid`, case insensitively. Also, the length of the property name must not exceed 63 characters.
29
37
* @param string $type Value type of the item property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`, `image` or `imageList`.
38
+
* * `int`- Signed integer number.
39
+
* * `double` - Floating point number. It uses 64-bit base-2 format (IEEE 754 standard).
40
+
* * `string` - UTF-8 string.
41
+
* * `boolean` - *true* / *false*
42
+
* * `timestamp` - Value representing date and time.
43
+
* * `set` - Set of strings.
44
+
* * `image` - URL of an image (`jpeg`, `png` or `gif`).
45
+
* * `imageList` - List of URLs that refer to images.
Copy file name to clipboardExpand all lines: src/RecommApi/Requests/AddPurchase.php
+11-1
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,10 @@ class AddPurchase extends Request {
42
42
* @var float $profit Your profit from the purchased item. The profit is natural in e-commerce domain (for example if `user-x` purchases `item-y` for $100 and the gross margin is 30 %, then the profit is $30), but is applicable also in other domains (for example at a news company it may be income from displayed advertisement on article page). If `amount` is greater than 1, sum of profit of all the items should be given.
43
43
*/
44
44
protected$profit;
45
+
/**
46
+
* @var string $recomm_id If this purchase is based on a recommendation request, `recommId` is the id of the clicked recommendation.
47
+
*/
48
+
protected$recomm_id;
45
49
/**
46
50
* @var array Array containing values of optional parameters
47
51
*/
@@ -68,6 +72,9 @@ class AddPurchase extends Request {
68
72
* - *profit*
69
73
* - Type: float
70
74
* - Description: Your profit from the purchased item. The profit is natural in e-commerce domain (for example if `user-x` purchases `item-y` for $100 and the gross margin is 30 %, then the profit is $30), but is applicable also in other domains (for example at a news company it may be income from displayed advertisement on article page). If `amount` is greater than 1, sum of profit of all the items should be given.
75
+
* - *recommId*
76
+
* - Type: string
77
+
* - Description: If this purchase is based on a recommendation request, `recommId` is the id of the clicked recommendation.
71
78
* @throws Exceptions\UnknownOptionalParameterException UnknownOptionalParameterException if an unknown optional parameter is given in $optional
Copy file name to clipboardExpand all lines: src/RecommApi/Requests/AddUserProperty.php
+14-2
Original file line number
Diff line number
Diff line change
@@ -19,14 +19,26 @@ class AddUserProperty extends Request {
19
19
*/
20
20
protected$property_name;
21
21
/**
22
-
* @var string $type Value type of the user property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`
22
+
* @var string $type Value type of the user property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`.
23
+
* * `int` - Signed integer number.
24
+
* * `double` - Floating point number. It uses 64-bit base-2 format (IEEE 754 standard).
25
+
* * `string` - UTF-8 string.
26
+
* * `boolean` - *true* / *false*
27
+
* * `timestamp` - Value representing date and time.
28
+
* * `set` - Set of strings.
23
29
*/
24
30
protected$type;
25
31
26
32
/**
27
33
* Construct the request
28
34
* @param string $property_name Name of the user property to be created. Currently, the following names are reserved:`id`, `userid`, case insensitively. Also, the length of the property name must not exceed 63 characters.
29
-
* @param string $type Value type of the user property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`
35
+
* @param string $type Value type of the user property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`.
36
+
* * `int` - Signed integer number.
37
+
* * `double` - Floating point number. It uses 64-bit base-2 format (IEEE 754 standard).
38
+
* * `string` - UTF-8 string.
39
+
* * `boolean` - *true* / *false*
40
+
* * `timestamp` - Value representing date and time.
Copy file name to clipboardExpand all lines: src/RecommApi/Requests/MergeUsers.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@
11
11
12
12
/**
13
13
* Merges interactions (purchases, ratings, bookmarks, detail views ...) of two different users under a single user ID. This is especially useful for online e-commerce applications working with anonymous users identified by unique tokens such as the session ID. In such applications, it may often happen that a user owns a persistent account, yet accesses the system anonymously while, e.g., putting items into a shopping cart. At some point in time, such as when the user wishes to confirm the purchase, (s)he logs into the system using his/her username and password. The interactions made under anonymous session ID then become connected with the persistent account, and merging these two together becomes desirable.
14
-
* Merging happens between two users referred to as the *target* and the *source*. After the merge, all the interactions of the source user are attributed to the target user, and the source user is **deleted** unless special parameter `keepSourceUser` is set `true`.
14
+
* Merging happens between two users referred to as the *target* and the *source*. After the merge, all the interactions of the source user are attributed to the target user, and the source user is **deleted**.
0 commit comments