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

196 lines
5.9 KiB
JSON
Raw Normal View History

[
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/tokens",
"status": 200,
"response": {
"id": "tok_17GCvVKaReE7xLUdWKG9Sa0e",
"card": {
"id": "card_17GCvVKaReE7xLUdcFaT6hqy"
},
"type": "card"
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers",
"status": 200,
"response": {
"id": "cus_7VDMJJrLqZe8Wi",
"alipay_accounts": {
"has_more": false
},
"email": "user101@me.com",
"metadata": {
"id": "0000000000000000000186a3"
},
"sources": {
"data": [
{
"id": "card_17GCvVKaReE7xLUdcFaT6hqy",
"customer": "cus_7VDMJJrLqZe8Wi"
}
],
"has_more": false
},
"subscriptions": {
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7VDMJJrLqZe8Wi/subscriptions",
"status": 200,
"response": {
"id": "sub_7VDMlTOqYJPAT3",
"cancel_at_period_end": false,
"current_period_end": 1452365074,
"current_period_start": 1449686674,
"customer": "cus_7VDMJJrLqZe8Wi",
"metadata": {
"id": "0000000000000000000186a3"
},
"plan": {
"id": "basic",
"amount": 999
},
"quantity": 1
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7VDMJJrLqZe8Wi",
"status": 200,
"response": {
"id": "cus_7VDMJJrLqZe8Wi",
"alipay_accounts": {
"has_more": false
},
"email": "user101@me.com",
"metadata": {
"id": "0000000000000000000186a3"
},
"sources": {
"data": [
{
"id": "card_17GCvVKaReE7xLUdcFaT6hqy",
"customer": "cus_7VDMJJrLqZe8Wi"
}
],
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7VDMlTOqYJPAT3",
"cancel_at_period_end": false,
"current_period_end": 1452365074,
"current_period_start": 1449686674,
"customer": "cus_7VDMJJrLqZe8Wi",
"metadata": {
"id": "0000000000000000000186a3"
},
"plan": {
"id": "basic",
"amount": 999
},
"quantity": 1
}
],
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "DELETE",
"path": "/v1/customers/cus_7VDMJJrLqZe8Wi/subscriptions/sub_7VDMlTOqYJPAT3",
"status": 200,
"response": {
"id": "sub_7VDMlTOqYJPAT3",
"cancel_at_period_end": true,
"current_period_end": 1452365074,
"current_period_start": 1449686674,
"customer": "cus_7VDMJJrLqZe8Wi",
"metadata": {
"id": "0000000000000000000186a3"
},
"plan": {
"id": "basic",
"amount": 999
},
"quantity": 1
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7VDMJJrLqZe8Wi",
"status": 200,
"response": {
"id": "cus_7VDMJJrLqZe8Wi",
"alipay_accounts": {
"has_more": false
},
"email": "user101@me.com",
"metadata": {
"id": "0000000000000000000186a3"
},
"sources": {
"data": [
{
"id": "card_17GCvVKaReE7xLUdcFaT6hqy",
"customer": "cus_7VDMJJrLqZe8Wi"
}
],
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7VDMlTOqYJPAT3",
"cancel_at_period_end": true,
"current_period_end": 1452365074,
"current_period_start": 1449686674,
"customer": "cus_7VDMJJrLqZe8Wi",
"metadata": {
"id": "0000000000000000000186a3"
},
"plan": {
"id": "basic",
"amount": 999
},
"quantity": 1
}
],
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/customers/cus_7VDMJJrLqZe8Wi/subscriptions/sub_7VDMlTOqYJPAT3",
"status": 200,
"response": {
"id": "sub_7VDMlTOqYJPAT3",
"cancel_at_period_end": true,
"current_period_end": 1452365074,
"current_period_start": 1449686674,
"customer": "cus_7VDMJJrLqZe8Wi",
"metadata": {
"id": "0000000000000000000186a3"
},
"plan": {
"id": "basic",
"amount": 999
},
"quantity": 1
}
}
]