注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
这是plaid的coding面试
```
# Example Coupon
#
# Exactly one of percent_discount and amount_discount will be non-null (error if not).
# The two 'minimum_...' values can each be null or non-null.
# { 'category': 'fruit',
# 'percent_discount': 15,
# 'amount_discount': None,
# 'minimum_num_items_required': 2,
# 'minimum_amount_required': 10.00
# }
# throw error if no % or amt; 0; "amount_discount": None,
# "minimum_num_items_required": 2,
# "minimum_amount_required": 10.00,
# },
# ]
```
求大米🙏 |