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/AddCartAddition.php
+21-1Lines changed: 21 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,14 @@ class AddCartAddition extends Request {
30
30
* @var bool $cascade_create Sets whether the given user/item should be created if not present in the database.
31
31
*/
32
32
protected$cascade_create;
33
+
/**
34
+
* @var float $amount Amount (number) added to cart. The default is 1. For example if `user-x` adds two `item-y` during a single order (session...), the `amount` should equal to 2.
35
+
*/
36
+
protected$amount;
37
+
/**
38
+
* @var float $price Price of the added item. If `amount` is greater than 1, sum of prices of all the items should be given.
39
+
*/
40
+
protected$price;
33
41
/**
34
42
* @var array Array containing values of optional parameters
35
43
*/
@@ -47,16 +55,24 @@ class AddCartAddition extends Request {
47
55
* - *cascadeCreate*
48
56
* - Type: bool
49
57
* - Description: Sets whether the given user/item should be created if not present in the database.
58
+
* - *amount*
59
+
* - Type: float
60
+
* - Description: Amount (number) added to cart. The default is 1. For example if `user-x` adds two `item-y` during a single order (session...), the `amount` should equal to 2.
61
+
* - *price*
62
+
* - Type: float
63
+
* - Description: Price of the added item. If `amount` is greater than 1, sum of prices of all the items should be given.
50
64
* @throws Exceptions\UnknownOptionalParameterException UnknownOptionalParameterException if an unknown optional parameter is given in $optional
Copy file name to clipboardExpand all lines: src/RecommApi/Requests/AddPurchase.php
+31-1Lines changed: 31 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,18 @@ class AddPurchase extends Request {
30
30
* @var bool $cascade_create Sets whether the given user/item should be created if not present in the database.
31
31
*/
32
32
protected$cascade_create;
33
+
/**
34
+
* @var float $amount Amount (number) of purchased items. The default is 1. For example if `user-x` purchases two `item-y` during a single order (session...), the `amount` should equal to 2.
35
+
*/
36
+
protected$amount;
37
+
/**
38
+
* @var float $price Price paid by the user for the item. If `amount` is greater than 1, sum of prices of all the items should be given.
39
+
*/
40
+
protected$price;
41
+
/**
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
+
*/
44
+
protected$profit;
33
45
/**
34
46
* @var array Array containing values of optional parameters
35
47
*/
@@ -47,16 +59,28 @@ class AddPurchase extends Request {
47
59
* - *cascadeCreate*
48
60
* - Type: bool
49
61
* - Description: Sets whether the given user/item should be created if not present in the database.
62
+
* - *amount*
63
+
* - Type: float
64
+
* - Description: Amount (number) of purchased items. The default is 1. For example if `user-x` purchases two `item-y` during a single order (session...), the `amount` should equal to 2.
65
+
* - *price*
66
+
* - Type: float
67
+
* - Description: Price paid by the user for the item. If `amount` is greater than 1, sum of prices of all the items should be given.
68
+
* - *profit*
69
+
* - Type: float
70
+
* - 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.
50
71
* @throws Exceptions\UnknownOptionalParameterException UnknownOptionalParameterException if an unknown optional parameter is given in $optional
0 commit comments