ProductOpener::APIProductWrite - implementation of WRITE API for creating and updating products
Return 1 if we should ignore a field value sent by a user because we already have a value sent by the producer.
Update a field that takes only 0 or 1 as a value (e.g. packagings_complete).
Update packagings.
Update packagings.
Update product fields based on input product data.
Process a change of code request if we have one.
Reference to the request object.
Reference to the response object.
Reference to the product object.
New code.
undef if we don't have a change product code request, or if it was processed correctly. an error id if there was an error (e.g. no_permisssion or invalid_product_type).
Process API v3 WRITE product requests.
TODO: v0 / v1 / v2 WRITE product requests are still handled by cgi/product_jqm_multilingual.pl which contains similar code. Internally, we should be able to upgrade those requests to v3, and then customize the response to make it return the v2 expected response.