codecombat/spec/fixtures/db-discount-handler-test-9.json
2015-12-16 16:39:44 -08:00

127 lines
No EOL
4 KiB
JSON

[
{
"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
}
}
}
]