Plugin Directory

Changeset 2877221


Ignore:
Timestamp:
03/09/2023 01:41:40 PM (3 years ago)
Author:
stacks
Message:

Fix Delete Endpoints, Version 5.0.3

Location:
stacks-mobile-app-builder
Files:
7 edited
40 copied

Legend:

Unmodified
Added
Removed
  • stacks-mobile-app-builder/tags/5.0.3/api/mobile/woocommerce/api/v1/cart/cart-controller.php

    r2766500 r2877221  
    4949        ));
    5050
     51        register_rest_route($this->get_api_endpoint(), $this->rest_api.'/remove_from_cart', array( // V3
     52            array(
     53                'methods'             => WP_REST_Server::READABLE,
     54                'callback'            => array($this, 'delete_item_from_cart'),
     55                'permission_callback' => array($this, 'get_items_permissions_check'),
     56                'args'                => $this->get_collection_params_delete()
     57            ),
     58            'schema' => array($this, 'get_public_item_schema'),
     59        ));
     60
    5161        register_rest_route($this->get_api_endpoint(), $this->rest_api .'/add_to_cart', array( // V3
    5262            array(
     
    7181        register_rest_route($this->get_api_endpoint(), $this->rest_api . '/clear', array( // V3
    7282            array(
    73                 'methods'             => WP_REST_Server::DELETABLE,
     83                'methods'             => WP_REST_Server::READABLE,
    7484                'callback'            => array($this, 'empty_cart'),
    7585                'permission_callback' => array($this, 'get_items_permissions_check'),
  • stacks-mobile-app-builder/tags/5.0.3/api/mobile/woocommerce/api/v1/cart/coupon-controller.php

    r2766500 r2877221  
    4545            array(
    4646                'methods'             => WP_REST_Server::DELETABLE,
     47                'callback'            => array($this, 'remove_coupon'),
     48                'permission_callback' => array($this, 'get_items_permissions_check'),
     49                'args'                => $this->get_collection_params_submit_coupon()
     50            ),
     51            'schema' => array($this, 'get_public_item_schema'),
     52        ));
     53        register_rest_route($this->get_api_endpoint(), $this->rest_api . '/coupons/remove_coupon', array( // V3
     54            array(
     55                'methods'             => WP_REST_Server::READABLE,
    4756                'callback'            => array($this, 'remove_coupon'),
    4857                'permission_callback' => array($this, 'get_items_permissions_check'),
  • stacks-mobile-app-builder/tags/5.0.3/api/mobile/woocommerce/api/v1/user-details/user-orders-controller.php

    r2739350 r2877221  
    5959            array(
    6060                'methods'             => WP_REST_Server::DELETABLE,
     61                'callback'            => array($this, 'cancel_user_order'),
     62                'permission_callback' => array($this, 'get_user_items_permission'),
     63                'args'                => $this->get_collection_params_single()
     64            ),
     65            'schema' => array($this, 'get_public_item_schema'),
     66        ));
     67
     68        register_rest_route($this->get_api_endpoint(), $this->single_order_endpoint . '/delete_order', array( // V3
     69            array(
     70                'methods'             => WP_REST_Server::READABLE,
    6171                'callback'            => array($this, 'cancel_user_order'),
    6272                'permission_callback' => array($this, 'get_user_items_permission'),
  • stacks-mobile-app-builder/tags/5.0.3/helper_functions.php

    r2873871 r2877221  
    129129 *                                Definitions                                  *
    130130 * =========================================================================== */
    131 define('stacks_version', '5.0.2');
     131define('stacks_version', '5.0.3');
    132132define('STACKS_BRAIN', 'http://tunnel.stacksmarket.co:8083');
    133133define('STACKS_WC_API', plugin_dir_path(__FILE__) . 'api/mobile/woocommerce/api');
  • stacks-mobile-app-builder/tags/5.0.3/index.php

    r2873871 r2877221  
    66 * Author URI: stacksmarket.co
    77 * Description: Enjoy the fast and easy experience of building your Ecommerce mobile application
    8  * Version: 5.0.2
     8 * Version: 5.0.3
    99 */
    1010class stacks_app_builder {
  • stacks-mobile-app-builder/tags/5.0.3/readme.txt

    r2873871 r2877221  
    66Requires PHP: 7.4
    77WC tested up to: 7.4.0
    8 Stable tag: 5.0.2
     8Stable tag: 5.0.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    122122== Changelog ==
    123123
     124= 5.0.3 (09 March, 2023) =
     125* Fix Delete Order and Delete Coupon and Delete Cart item
     126* Fix Categories linked from Button, Image and Footer
     127
    124128= 5.0.2 (02 March, 2023) =
    125129* Fix posts limit
  • stacks-mobile-app-builder/trunk/api/mobile/woocommerce/api/v1/cart/cart-controller.php

    r2766500 r2877221  
    4949        ));
    5050
     51        register_rest_route($this->get_api_endpoint(), $this->rest_api.'/remove_from_cart', array( // V3
     52            array(
     53                'methods'             => WP_REST_Server::READABLE,
     54                'callback'            => array($this, 'delete_item_from_cart'),
     55                'permission_callback' => array($this, 'get_items_permissions_check'),
     56                'args'                => $this->get_collection_params_delete()
     57            ),
     58            'schema' => array($this, 'get_public_item_schema'),
     59        ));
     60
    5161        register_rest_route($this->get_api_endpoint(), $this->rest_api .'/add_to_cart', array( // V3
    5262            array(
     
    7181        register_rest_route($this->get_api_endpoint(), $this->rest_api . '/clear', array( // V3
    7282            array(
    73                 'methods'             => WP_REST_Server::DELETABLE,
     83                'methods'             => WP_REST_Server::READABLE,
    7484                'callback'            => array($this, 'empty_cart'),
    7585                'permission_callback' => array($this, 'get_items_permissions_check'),
  • stacks-mobile-app-builder/trunk/api/mobile/woocommerce/api/v1/cart/coupon-controller.php

    r2766500 r2877221  
    4545            array(
    4646                'methods'             => WP_REST_Server::DELETABLE,
     47                'callback'            => array($this, 'remove_coupon'),
     48                'permission_callback' => array($this, 'get_items_permissions_check'),
     49                'args'                => $this->get_collection_params_submit_coupon()
     50            ),
     51            'schema' => array($this, 'get_public_item_schema'),
     52        ));
     53        register_rest_route($this->get_api_endpoint(), $this->rest_api . '/coupons/remove_coupon', array( // V3
     54            array(
     55                'methods'             => WP_REST_Server::READABLE,
    4756                'callback'            => array($this, 'remove_coupon'),
    4857                'permission_callback' => array($this, 'get_items_permissions_check'),
  • stacks-mobile-app-builder/trunk/api/mobile/woocommerce/api/v1/user-details/user-orders-controller.php

    r2739350 r2877221  
    5959            array(
    6060                'methods'             => WP_REST_Server::DELETABLE,
     61                'callback'            => array($this, 'cancel_user_order'),
     62                'permission_callback' => array($this, 'get_user_items_permission'),
     63                'args'                => $this->get_collection_params_single()
     64            ),
     65            'schema' => array($this, 'get_public_item_schema'),
     66        ));
     67
     68        register_rest_route($this->get_api_endpoint(), $this->single_order_endpoint . '/delete_order', array( // V3
     69            array(
     70                'methods'             => WP_REST_Server::READABLE,
    6171                'callback'            => array($this, 'cancel_user_order'),
    6272                'permission_callback' => array($this, 'get_user_items_permission'),
  • stacks-mobile-app-builder/trunk/helper_functions.php

    r2873871 r2877221  
    129129 *                                Definitions                                  *
    130130 * =========================================================================== */
    131 define('stacks_version', '5.0.2');
     131define('stacks_version', '5.0.3');
    132132define('STACKS_BRAIN', 'http://tunnel.stacksmarket.co:8083');
    133133define('STACKS_WC_API', plugin_dir_path(__FILE__) . 'api/mobile/woocommerce/api');
  • stacks-mobile-app-builder/trunk/index.php

    r2873871 r2877221  
    66 * Author URI: stacksmarket.co
    77 * Description: Enjoy the fast and easy experience of building your Ecommerce mobile application
    8  * Version: 5.0.2
     8 * Version: 5.0.3
    99 */
    1010class stacks_app_builder {
  • stacks-mobile-app-builder/trunk/readme.txt

    r2873871 r2877221  
    66Requires PHP: 7.4
    77WC tested up to: 7.4.0
    8 Stable tag: 5.0.2
     8Stable tag: 5.0.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    122122== Changelog ==
    123123
     124= 5.0.3 (09 March, 2023) =
     125* Fix Delete Order and Delete Coupon and Delete Cart item
     126* Fix Categories linked from Button, Image and Footer
     127
    124128= 5.0.2 (02 March, 2023) =
    125129* Fix posts limit
Note: See TracChangeset for help on using the changeset viewer.