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

64 lines
1.7 KiB
JSON
Raw Permalink Normal View History

[
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/tokens",
"status": 200,
"response": {
"id": "tok_17IOHeKaReE7xLUd0xVR8Qcu",
"card": {
"id": "card_17IOHeKaReE7xLUdsx1siboK"
},
"type": "card"
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers",
"status": 200,
"response": {
"id": "cus_7XTE2tCcVgwJps",
"alipay_accounts": {
"has_more": false
},
"email": "normal@jo.com",
"metadata": {
"id": "0000000000000000000186a1"
},
"sources": {
"data": [
{
"id": "card_17IOHeKaReE7xLUdsx1siboK",
"customer": "cus_7XTE2tCcVgwJps"
}
],
"has_more": false
},
"subscriptions": {
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTE2tCcVgwJps/subscriptions",
"status": 200,
"response": {
"id": "sub_7XTEeDaljXocIE",
"cancel_at_period_end": false,
"current_period_end": 1452885387,
"current_period_start": 1450206987,
"customer": "cus_7XTE2tCcVgwJps",
"metadata": {
"id": "0000000000000000000186a1"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
}
]