codecombat/spec/fixtures/sub-test-02.json

224 lines
6.7 KiB
JSON
Raw Normal View History

[
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/tokens",
"status": 200,
"response": {
"id": "tok_17IOHwKaReE7xLUdBH10GZUD",
"card": {
"id": "card_17IOHwKaReE7xLUdl9pvVGBc"
},
"type": "card"
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers",
"status": 200,
"response": {
"id": "cus_7XTEC7EMnN5Efg",
"alipay_accounts": {
"has_more": false
},
"email": "user1@me.com",
"metadata": {
"id": "0000000000000000000186a3"
},
"sources": {
"data": [
{
"id": "card_17IOHwKaReE7xLUdl9pvVGBc",
"customer": "cus_7XTEC7EMnN5Efg"
}
],
"has_more": false
},
"subscriptions": {
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTEC7EMnN5Efg",
"status": 200,
"response": {
"id": "cus_7XTEC7EMnN5Efg",
"alipay_accounts": {
"has_more": false
},
"email": "user1@me.com",
"metadata": {
"id": "0000000000000000000186a3"
},
"sources": {
"data": [
{
"id": "card_17IOHwKaReE7xLUdl9pvVGBc",
"customer": "cus_7XTEC7EMnN5Efg"
}
],
"has_more": false
},
"subscriptions": {
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTEC7EMnN5Efg/subscriptions",
"status": 200,
"response": {
"id": "sub_7XTESrfxh2hKJD",
"cancel_at_period_end": false,
"current_period_end": 1452885405,
"current_period_start": 1450207005,
"customer": "cus_7XTEC7EMnN5Efg",
"metadata": {
"id": "0000000000000000000186a3"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTEC7EMnN5Efg",
"status": 200,
"response": {
"id": "cus_7XTEC7EMnN5Efg",
"alipay_accounts": {
"has_more": false
},
"email": "user1@me.com",
"metadata": {
"id": "0000000000000000000186a3"
},
"sources": {
"data": [
{
"id": "card_17IOHwKaReE7xLUdl9pvVGBc",
"customer": "cus_7XTEC7EMnN5Efg"
}
],
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTESrfxh2hKJD",
"cancel_at_period_end": false,
"current_period_end": 1452885405,
"current_period_start": 1450207005,
"customer": "cus_7XTEC7EMnN5Efg",
"metadata": {
"id": "0000000000000000000186a3"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTEC7EMnN5Efg",
"status": 200,
"response": {
"id": "cus_7XTEC7EMnN5Efg",
"alipay_accounts": {
"has_more": false
},
"email": "user1@me.com",
"metadata": {
"id": "0000000000000000000186a3"
},
"sources": {
"data": [
{
"id": "card_17IOHwKaReE7xLUdl9pvVGBc",
"customer": "cus_7XTEC7EMnN5Efg"
}
],
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTESrfxh2hKJD",
"cancel_at_period_end": false,
"current_period_end": 1452885405,
"current_period_start": 1450207005,
"customer": "cus_7XTEC7EMnN5Efg",
"metadata": {
"id": "0000000000000000000186a3"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "DELETE",
"path": "/v1/customers/cus_7XTEC7EMnN5Efg/subscriptions/sub_7XTESrfxh2hKJD",
"status": 200,
"response": {
"id": "sub_7XTESrfxh2hKJD",
"cancel_at_period_end": true,
"current_period_end": 1452885405,
"current_period_start": 1450207005,
"customer": "cus_7XTEC7EMnN5Efg",
"metadata": {
"id": "0000000000000000000186a3"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/customers/cus_7XTEC7EMnN5Efg/subscriptions/sub_7XTESrfxh2hKJD",
"status": 200,
"response": {
"id": "sub_7XTESrfxh2hKJD",
"cancel_at_period_end": true,
"current_period_end": 1452885405,
"current_period_start": 1450207005,
"customer": "cus_7XTEC7EMnN5Efg",
"metadata": {
"id": "0000000000000000000186a3"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
}
]