Create coupons via API
Better coupon create error messages
Fix create coupon api method
REST API create_coupons function
Rest API edit_coupon function
edit_coupon REST API look for type and not discount_type
Check if coupon was updated when using wp_update_post and return error if not
Coding standards & cleaning of data before saving
Validate coupon types
Change duplicate coupon error code
Modify duplicate coupon error code
Add filter to coupon code
Add check for duplicate coupon code when updating coupon code
Add missing wpdb global
Fix route comments, moved coupon code filter and remove wc_clean around it, check for valid coupon types.
Add coupon type check when adding new coupon
Add missing bracket
Change comma separate data to arrays
edit coupon, change comma separated data structures to arrays
Remove implode function