codecombat/spec/fixtures/sub-test-03.json
2015-12-16 16:39:44 -08:00

286 lines
No EOL
8.8 KiB
JSON

[
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/tokens",
"status": 200,
"response": {
"id": "tok_17IOI1KaReE7xLUd7QELQWlb",
"card": {
"id": "card_17IOI1KaReE7xLUdk7p00M2y"
},
"type": "card"
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers",
"status": 200,
"response": {
"id": "cus_7XTE4JmrUGrwa4",
"alipay_accounts": {
"has_more": false
},
"email": "user2@me.com",
"metadata": {
"id": "0000000000000000000186a4"
},
"sources": {
"data": [
{
"id": "card_17IOI1KaReE7xLUdk7p00M2y",
"customer": "cus_7XTE4JmrUGrwa4"
}
],
"has_more": false
},
"subscriptions": {
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTE4JmrUGrwa4/subscriptions",
"status": 200,
"response": {
"id": "sub_7XTE0asmtA1btp",
"cancel_at_period_end": false,
"current_period_end": 1452885410,
"current_period_start": 1450207010,
"customer": "cus_7XTE4JmrUGrwa4",
"metadata": {
"id": "0000000000000000000186a4"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTE4JmrUGrwa4",
"status": 200,
"response": {
"id": "cus_7XTE4JmrUGrwa4",
"alipay_accounts": {
"has_more": false
},
"email": "user2@me.com",
"metadata": {
"id": "0000000000000000000186a4"
},
"sources": {
"data": [
{
"id": "card_17IOI1KaReE7xLUdk7p00M2y",
"customer": "cus_7XTE4JmrUGrwa4"
}
],
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTE0asmtA1btp",
"cancel_at_period_end": false,
"current_period_end": 1452885410,
"current_period_start": 1450207010,
"customer": "cus_7XTE4JmrUGrwa4",
"metadata": {
"id": "0000000000000000000186a4"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/customers/cus_7XTE4JmrUGrwa4/subscriptions/sub_7XTE0asmtA1btp",
"status": 200,
"response": {
"id": "sub_7XTE0asmtA1btp",
"cancel_at_period_end": false,
"current_period_end": 1452885410,
"current_period_start": 1450207010,
"customer": "cus_7XTE4JmrUGrwa4",
"metadata": {
"id": "0000000000000000000186a4"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTE4JmrUGrwa4",
"status": 200,
"response": {
"id": "cus_7XTE4JmrUGrwa4",
"alipay_accounts": {
"has_more": false
},
"email": "user2@me.com",
"metadata": {
"id": "0000000000000000000186a4"
},
"sources": {
"data": [
{
"id": "card_17IOI1KaReE7xLUdk7p00M2y",
"customer": "cus_7XTE4JmrUGrwa4"
}
],
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTE0asmtA1btp",
"cancel_at_period_end": false,
"current_period_end": 1452885410,
"current_period_start": 1450207010,
"customer": "cus_7XTE4JmrUGrwa4",
"metadata": {
"id": "0000000000000000000186a4"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTE4JmrUGrwa4",
"status": 200,
"response": {
"id": "cus_7XTE4JmrUGrwa4",
"alipay_accounts": {
"has_more": false
},
"email": "user2@me.com",
"metadata": {
"id": "0000000000000000000186a4"
},
"sources": {
"data": [
{
"id": "card_17IOI1KaReE7xLUdk7p00M2y",
"customer": "cus_7XTE4JmrUGrwa4"
}
],
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTE0asmtA1btp",
"cancel_at_period_end": false,
"current_period_end": 1452885410,
"current_period_start": 1450207010,
"customer": "cus_7XTE4JmrUGrwa4",
"metadata": {
"id": "0000000000000000000186a4"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "DELETE",
"path": "/v1/customers/cus_7XTE4JmrUGrwa4/subscriptions/sub_7XTE0asmtA1btp",
"status": 200,
"response": {
"id": "sub_7XTE0asmtA1btp",
"cancel_at_period_end": true,
"current_period_end": 1452885410,
"current_period_start": 1450207010,
"customer": "cus_7XTE4JmrUGrwa4",
"metadata": {
"id": "0000000000000000000186a4"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/customers/cus_7XTE4JmrUGrwa4",
"status": 200,
"response": {
"id": "cus_7XTE4JmrUGrwa4",
"alipay_accounts": {
"has_more": false
},
"email": "user2@me.com",
"metadata": {
"id": "0000000000000000000186a4"
},
"sources": {
"data": [
{
"id": "card_17IOI1KaReE7xLUdk7p00M2y",
"customer": "cus_7XTE4JmrUGrwa4"
}
],
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTE0asmtA1btp",
"cancel_at_period_end": true,
"current_period_end": 1452885410,
"current_period_start": 1450207010,
"customer": "cus_7XTE4JmrUGrwa4",
"metadata": {
"id": "0000000000000000000186a4"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
}
]