@@ -2139,22 +2139,22 @@ $deals->listProductsAttachedToADeal($collect);
2139
2139
```
2140
2140
2141
2141
2142
- ### <a name =" add_a_product_to_the_deal_eventually_creating_a_new_item_called_a_deal_product " ></a >![ Method: ] ( https://apidocs.io/img/method.png " .DealsController.addAProductToTheDealEventuallyCreatingANewItemCalledADealProduct ") addAProductToTheDealEventuallyCreatingANewItemCalledADealProduct
2142
+ ### <a name =" add_a_product_to_the_deal_eventually_creating_a_new_item_called_a_deal_product " ></a >![ Method: ] ( https://apidocs.io/img/method.png " .DealsController.addAProductToTheDealEventuallyCreatingANewItemCalledADealProduct ") addAProductToTheDealEventuallyCreatingANewItemCalledADealProduct < br > _ alias _ ` addAProductToADeal `
2143
2143
2144
2144
> Adds a product to the deal.
2145
2145
2146
2146
2147
2147
``` php
2148
- function addAProductToTheDealEventuallyCreatingANewItemCalledADealProduct($options)
2148
+ function addAProductToADeal($options);
2149
+ function addAProductToTheDealEventuallyCreatingANewItemCalledADealProduct($options);
2149
2150
```
2150
2151
2151
2152
#### Parameters
2152
2153
2153
2154
| Parameter | Tags | Description |
2154
2155
| -----------| ------| -------------|
2155
2156
| id | ``` Required ``` | ID of the deal |
2156
- | body | ``` Optional ``` | TODO: Add a parameter description |
2157
-
2157
+ | body | ``` Required ``` | [ Body object] ( https://developers.pipedrive.com/docs/api/v1/Deals#addDealProduct ) that has all required body parameters |
2158
2158
2159
2159
2160
2160
#### Example Usage
@@ -2166,29 +2166,32 @@ $collect['id'] = $id;
2166
2166
$body = array('key' => 'value');
2167
2167
$collect['body'] = $body;
2168
2168
2169
-
2170
- $result = $deals->addAProductToTheDealEventuallyCreatingANewItemCalledADealProduct($collect);
2169
+ $result = $deals->addAProductToADeal($collect);
2170
+ // OR
2171
+ // $result = $deals->addAProductToTheDealEventuallyCreatingANewItemCalledADealProduct($collect);
2171
2172
2172
2173
```
2173
2174
2174
2175
2175
- ### <a name =" update_product_attachment_details_of_the_deal_product_a_product_already_attached_to_a_deal " ></a >![ Method: ] ( https://apidocs.io/img/method.png " .DealsController.updateProductAttachmentDetailsOfTheDealProductAProductAlreadyAttachedToADeal ") updateProductAttachmentDetailsOfTheDealProductAProductAlreadyAttachedToADeal
2176
+ ### <a name =" update_product_attachment_details_of_the_deal_product_a_product_already_attached_to_a_deal " ></a >![ Method: ] ( https://apidocs.io/img/method.png " .DealsController.updateProductAttachmentDetailsOfTheDealProductAProductAlreadyAttachedToADeal ") updateProductAttachmentDetailsOfTheDealProductAProductAlreadyAttachedToADeal < br > _ alias _ ` updateTheProductAttachedToADeal `
2176
2177
2177
2178
> Updates product attachment details.
2178
2179
2179
2180
2180
2181
``` php
2181
- function updateProductAttachmentDetailsOfTheDealProductAProductAlreadyAttachedToADeal($options)
2182
+ function updateTheProductAttachedToADeal($options);
2183
+ function updateProductAttachmentDetailsOfTheDealProductAProductAlreadyAttachedToADeal($options);
2182
2184
```
2183
2185
2184
2186
#### Parameters
2185
2187
2186
2188
| Parameter | Tags | Description |
2187
2189
| -----------| ------| -------------|
2188
2190
| id | ``` Required ``` | ID of the deal |
2189
- | productAttachmentId | ``` Required ``` | ID of the deal-product (the ID of the product attached to the deal) |
2190
- | itemPrice | ``` Optional ``` | Price at which this product will be added to the deal |
2191
- | quantity | ``` Optional ``` | Quantity – e.g. how many items of this product will be added to the deal |
2191
+ | productAttachmentId | ``` Required ``` | The ID of the deal-product (the ID of the product attached to the deal) |
2192
+ | productId | ``` Required ``` | The ID of the product to use |
2193
+ | itemPrice | ``` Required ``` | Price at which this product will be added to the deal |
2194
+ | quantity | ``` Required ``` | Quantity – e.g. how many items of this product will be added to the deal |
2192
2195
| discountPercentage | ``` Optional ``` | Discount %. If omitted, will be set to 0 |
2193
2196
| duration | ``` Optional ``` | Duration of the product (when product durations are not enabled for the company or if omitted, defaults to 1) |
2194
2197
| productVariationId | ``` Optional ``` | ID of the product variation to use. When omitted, no variation will be used. |
@@ -2206,6 +2209,9 @@ $collect['id'] = $id;
2206
2209
$productAttachmentId = 27;
2207
2210
$collect['productAttachmentId'] = $productAttachmentId;
2208
2211
2212
+ $productId = 2;
2213
+ $collect['productId'] = $productId;
2214
+
2209
2215
$itemPrice = 27.9633801840075;
2210
2216
$collect['itemPrice'] = $itemPrice;
2211
2217
@@ -2227,8 +2233,9 @@ $collect['comments'] = $comments;
2227
2233
$enabledFlag = int::ENUM_0;
2228
2234
$collect['enabledFlag'] = $enabledFlag;
2229
2235
2230
-
2231
- $result = $deals->updateProductAttachmentDetailsOfTheDealProductAProductAlreadyAttachedToADeal($collect);
2236
+ $result = $deals->updateTheProductAttachedToADeal($collect);
2237
+ // OR
2238
+ // $result = $deals->updateProductAttachmentDetailsOfTheDealProductAProductAlreadyAttachedToADeal($collect);
2232
2239
2233
2240
```
2234
2241
0 commit comments