codecombat/spec/fixtures/db-sub-redeem-test-1.json

185 lines
5.6 KiB
JSON
Raw Normal View History

[
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/customers/cus_7XTNzqLiTWHO6t",
"status": 200,
"response": {
"id": "cus_7XTNzqLiTWHO6t",
"alipay_accounts": {
"has_more": false
},
"email": "normal@jo.com",
"metadata": {
"id": "000000000000000000000088"
},
"sources": {
"data": [
{
"id": "card_17IOQqKaReE7xLUdRqwKR3Vo",
"customer": "cus_7XTNzqLiTWHO6t"
}
],
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTN0j8yRl2LLW",
"cancel_at_period_end": false,
"current_period_end": 1452885954,
"current_period_start": 1450207554,
"customer": "cus_7XTNzqLiTWHO6t",
"metadata": {
"id": "000000000000000000000088"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/customers/cus_7XTNzqLiTWHO6t/subscriptions",
"status": 200,
"response": {
"data": [
{
"id": "sub_7XTN0j8yRl2LLW",
"cancel_at_period_end": false,
"current_period_end": 1452885954,
"current_period_start": 1450207554,
"customer": "cus_7XTNzqLiTWHO6t",
"metadata": {
"id": "000000000000000000000088"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/customers/cus_7XTNzqLiTWHO6t/subscriptions",
"status": 200,
"response": {
"data": [
{
"id": "sub_7XTN0j8yRl2LLW",
"cancel_at_period_end": false,
"current_period_end": 1452885954,
"current_period_start": 1450207554,
"customer": "cus_7XTNzqLiTWHO6t",
"metadata": {
"id": "000000000000000000000088"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
},
{
"scope": "https://api.stripe.com:443",
"method": "DELETE",
"path": "/v1/customers/cus_7XTNzqLiTWHO6t/subscriptions/sub_7XTN0j8yRl2LLW",
"status": 200,
"response": {
"id": "sub_7XTN0j8yRl2LLW",
"cancel_at_period_end": false,
"current_period_end": 1452885954,
"current_period_start": 1450207554,
"customer": "cus_7XTNzqLiTWHO6t",
"metadata": {
"id": "000000000000000000000088"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTNzqLiTWHO6t",
"status": 200,
"response": {
"id": "cus_7XTNzqLiTWHO6t",
"alipay_accounts": {
"has_more": false
},
"email": "normal@jo.com",
"metadata": {
"id": "000000000000000000000088"
},
"sources": {
"data": [
{
"id": "card_17IOQqKaReE7xLUdRqwKR3Vo",
"customer": "cus_7XTNzqLiTWHO6t"
}
],
"has_more": false
},
"subscriptions": {
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTNzqLiTWHO6t",
"status": 200,
"response": {
"id": "cus_7XTNzqLiTWHO6t",
"alipay_accounts": {
"has_more": false
},
"email": "normal@jo.com",
"metadata": {
"id": "000000000000000000000088"
},
"sources": {
"data": [
{
"id": "card_17IOQqKaReE7xLUdRqwKR3Vo",
"customer": "cus_7XTNzqLiTWHO6t"
}
],
"has_more": false
},
"subscriptions": {
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/customers/cus_7XTNzqLiTWHO6t/subscriptions",
"status": 200,
"response": {
"has_more": false
}
}
]