Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order Ahead Subscription #511

Open
vcardillo opened this issue Feb 19, 2016 · 9 comments
Open

Order Ahead Subscription #511

vcardillo opened this issue Feb 19, 2016 · 9 comments

Comments

@vcardillo
Copy link
Member

SUMMARY:
If a user has an order ahead subscription, then their delivery is free for order ahead orders only.

WHERE TO LOOK:
user.has_oa_subscription

The /user/login and /user/info calls both have has_oa_subscription attached to them now.

IF has_oa_subscription is true (1), THEN strike the delivery cost for order ahead orders only, and mark it as $0. We can use the same styling here as a coupon.

Don't forget to still calculate all totals properly! Remember that delivery fee IS taxed, so you need to adjust everything properly. Reference, just in case: https://docs.google.com/spreadsheets/d/1NRV8i4X0_ZHXa0NcRbF1vXZQlx3BQVYyKAxWKzvMjIU/edit#gid=1073682431

@josephlausf
Copy link
Contributor

Hi, how do we subscribe?

@vcardillo
Copy link
Member Author

Marketing will do it manually. All you have to look for is that flag for now. If they want to cancel, they will have to email us for now. Stripe handles recurring subscriptions.

Names for the subscription plan are welcome.

@josephlausf
Copy link
Contributor

anyway i can test it on dev?

@vcardillo
Copy link
Member Author

Yes. Give me some users to mark as having it.

On Fri, Feb 19, 2016 at 3:06 PM, Joseph Lau [email protected]
wrote:

anyway i can test it on dev?


Reply to this email directly or view it on GitHub
#511 (comment).

@josephlausf
Copy link
Contributor

FB - [email protected]
Email - [email protected]

@xkokushox
Copy link

Me to please:
Email - [email protected]
FB - [email protected]

@vcardillo
Copy link
Member Author

All are done.

On Fri, Feb 19, 2016 at 3:18 PM, Kokusho Torres [email protected]
wrote:

Me to please:
Email - [email protected]
FB - [email protected]


Reply to this email directly or view it on GitHub
#511 (comment).

@josephlausf
Copy link
Contributor

thanks, here you go:

email login -> http://recordit.co/E0xjyIDrH8
fb login -> http://recordit.co/EanpKD5QJm

{  
   "Stripe":{  
      "stripeToken":"tok_17gNhSEmZcPNENoGTdHrj8Fo"
   },
   "OrderDetails":{  
      "tax_percentage":"8.75",
      "delivery_price":"0",
      "tax_cents":"131",
      "total_cents":"1856",
      "coords":{  
         "lat":"37.787360",
         "long":"-122.408219"
      },
      "items_total":"15.00",
      "address":{  
         "number":"246-298",
         "state":"CA",
         "street":"Powell Street",
         "city":"San Francisco",
         "zip":"94102"
      },
      "subtotal":"16.31",
      "tip_cents":"225",
      "total_cents_without_coupon":"1856",
      "tip_percentage":"15",
      "coupon_discount_cents":"0"
   },
   "order_type":"2",
   "OrderItems":[  
      {  
         "items":[  
            {  
               "id":"58",
               "type":"main",
               "name":"Hawaiian Shrimp Poke"
            },
            {  
               "id":"62",
               "type":"side1",
               "name":"Cucumber Salad"
            },
            {  
               "id":"62",
               "type":"side2",
               "name":"Cucumber Salad"
            },
            {  
               "id":"62",
               "type":"side3",
               "name":"Cucumber Salad"
            },
            {  
               "id":"62",
               "type":"side4",
               "name":"Cucumber Salad"
            }
         ],
         "unit_price":"15.00",
         "item_type":"CustomerBentoBox"
      }
   ],
   "AppVersion":"2.67",
   "kitchen":"1",
   "CouponCode":"",
   "for_date":"2016-02-20",
   "Platform":"iOS",
   "scheduled_window_start":"17:00",
   "scheduled_window_end":"18:00",
   "OrderAheadZone":"1",
   "Eta":{  
      "min":"75",
      "max":"85"
   },
   "MenuId":"321",
   "IdempotentToken":"CBEAA54A-8163-4059-981A-727A1A41713A"
}

@vcardillo
Copy link
Member Author

Yea, it looks great :) 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants