Open vcardillo opened 8 years ago
Hi, how do we subscribe?
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.
anyway i can test it on dev?
Yes. Give me some users to mark as having it.
On Fri, Feb 19, 2016 at 3:06 PM, Joseph Lau notifications@github.com wrote:
anyway i can test it on dev?
— Reply to this email directly or view it on GitHub https://github.com/bentocorp/ios/issues/511#issuecomment-186443606.
FB - forwardintent@gmail.com Email - josephlausf@gmail.com
Me to please: Email - kokushos1@gmail.com FB - kokushos@hotmail.com
All are done.
On Fri, Feb 19, 2016 at 3:18 PM, Kokusho Torres notifications@github.com wrote:
Me to please: Email - kokushos1@gmail.com FB - kokushos@hotmail.com
— Reply to this email directly or view it on GitHub https://github.com/bentocorp/ios/issues/511#issuecomment-186446589.
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"
}
Yea, it looks great :) :+1:
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 havehas_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