codecombat/spec/fixtures/db-discount-handler-test-7.json

127 lines
4 KiB
JSON
Raw Normal View History

[
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/coupons/20pct",
"status": 200,
"response": {
"id": "20pct"
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTLw21mDCPduP",
"status": 200,
"response": {
"id": "cus_7XTLw21mDCPduP",
"alipay_accounts": {
"has_more": false
},
"discount": {
"coupon": {
"id": "20pct"
},
"customer": "cus_7XTLw21mDCPduP"
},
"email": "normal@jo.com",
"metadata": {
"id": "00000000000000000000005d"
},
"sources": {
"data": [
{
"id": "card_17IOOlKaReE7xLUdwvPnfV15",
"customer": "cus_7XTLw21mDCPduP"
}
],
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTLVSO3Guyty9",
"cancel_at_period_end": false,
"current_period_end": 1452885828,
"current_period_start": 1450207428,
"customer": "cus_7XTLw21mDCPduP",
"discount": {
"coupon": {
"id": "500off"
},
"customer": "cus_7XTLw21mDCPduP",
"subscription": "sub_7XTLVSO3Guyty9"
},
"metadata": {
"id": "00000000000000000000005d"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/customers/cus_7XTLw21mDCPduP",
"status": 200,
"response": {
"id": "cus_7XTLw21mDCPduP",
"alipay_accounts": {
"has_more": false
},
"discount": {
"coupon": {
"id": "20pct"
},
"customer": "cus_7XTLw21mDCPduP"
},
"email": "normal@jo.com",
"metadata": {
"id": "00000000000000000000005d"
},
"sources": {
"data": [
{
"id": "card_17IOOlKaReE7xLUdwvPnfV15",
"customer": "cus_7XTLw21mDCPduP"
}
],
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTLVSO3Guyty9",
"cancel_at_period_end": false,
"current_period_end": 1452885828,
"current_period_start": 1450207428,
"customer": "cus_7XTLw21mDCPduP",
"discount": {
"coupon": {
"id": "500off"
},
"customer": "cus_7XTLw21mDCPduP",
"subscription": "sub_7XTLVSO3Guyty9"
},
"metadata": {
"id": "00000000000000000000005d"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
}
]