codecombat/spec/fixtures/db-user-sub-test-3.json

116 lines
3.8 KiB
JSON
Raw Normal View History

[
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/invoices",
"status": 200,
"response": {
"data": [
{
"id": "in_17GCVpKaReE7xLUdPDEmVDeD",
"customer": "cus_7VCvUEDSyqS8aN",
"lines": {
"data": [
{
"id": "sub_7VCvXO37PhGOUY",
"amount": 999,
"metadata": {
"id": "0000000000000000000186a1"
},
"plan": {
"id": "basic",
"amount": 999
},
"proration": false,
"quantity": 1,
"type": "subscription"
}
],
"has_more": false
},
"paid": true,
"subscription": "sub_7VCvXO37PhGOUY",
"total": 999
}
],
"has_more": false
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/invoices/in_17GCVpKaReE7xLUdPDEmVDeD",
"status": 200,
"response": {
"id": "in_17GCVpKaReE7xLUdPDEmVDeD",
"customer": "cus_7VCvUEDSyqS8aN",
"lines": {
"data": [
{
"id": "sub_7VCvXO37PhGOUY",
"amount": 999,
"metadata": {
"id": "0000000000000000000186a1"
},
"plan": {
"id": "basic",
"amount": 999
},
"proration": false,
"quantity": 1,
"type": "subscription"
}
],
"has_more": false
},
"paid": true,
"subscription": "sub_7VCvXO37PhGOUY",
"total": 999
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/customers/cus_7VCvUEDSyqS8aN",
"status": 200,
"response": {
"id": "cus_7VCvUEDSyqS8aN",
"alipay_accounts": {
"has_more": false
},
"email": "normal@jo.com",
"metadata": {
"id": "0000000000000000000186a1"
},
"sources": {
"data": [
{
"id": "card_17GCVoKaReE7xLUdpf0crA0p",
"customer": "cus_7VCvUEDSyqS8aN"
}
],
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7VCvXO37PhGOUY",
"cancel_at_period_end": false,
"current_period_end": 1452363481,
"current_period_start": 1449685081,
"customer": "cus_7VCvUEDSyqS8aN",
"metadata": {
"id": "0000000000000000000186a1"
},
"plan": {
"id": "basic",
"amount": 999
},
"quantity": 1
}
],
"has_more": false
}
}
}
]