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

203 lines
6.3 KiB
JSON
Raw Normal View History

[
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/tokens",
"status": 200,
"response": {
"id": "tok_17IOOlKaReE7xLUdF9cOZScg",
"card": {
"id": "card_17IOOlKaReE7xLUdwvPnfV15"
},
"type": "card"
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers",
"status": 200,
"response": {
"id": "cus_7XTLw21mDCPduP",
"alipay_accounts": {
"has_more": false
},
"email": "normal@jo.com",
"metadata": {
"id": "00000000000000000000005d"
},
"sources": {
"data": [
{
"id": "card_17IOOlKaReE7xLUdwvPnfV15",
"customer": "cus_7XTLw21mDCPduP"
}
],
"has_more": false
},
"subscriptions": {
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTLw21mDCPduP/subscriptions",
"status": 200,
"response": {
"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
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTLw21mDCPduP",
"status": 200,
"response": {
"id": "cus_7XTLw21mDCPduP",
"alipay_accounts": {
"has_more": false
},
"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": "POST",
"path": "/v1/customers/cus_7XTLw21mDCPduP",
"status": 200,
"response": {
"id": "cus_7XTLw21mDCPduP",
"alipay_accounts": {
"has_more": false
},
"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/subscriptions/sub_7XTLVSO3Guyty9",
"status": 200,
"response": {
"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
}
}
]