4seer / openflutterecommerceapp

Open Flutter E-commerce App
GNU General Public License v3.0
849 stars 387 forks source link

12. My Promo Codes #86

Open 4seer opened 4 years ago

4seer commented 4 years ago

12.1. Promo Codes in the profile use-case: User clicks “Promo codes” on My Profile Screen. An API call is made to get list of promo codes. List of promo codes is displayed with “Apply” button.

12.2. Apply Promo Code from the profile use-case: User clicks “Apply” button in the list of My Promo codes. The promo code is applied to current cart. If there is no products in the cart then promo code is set as default to be used in the future.

E-commerce App Use-Case Description

Within this task you need to do the following:

  1. Pull all data from local database and render it on the screen.

  2. At this time mock remote repository calls for fetching data from a local JSON file. The data structure and method names should be taken from WooCommerce REST API docs.