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

412 lines
13 KiB
JSON
Raw Normal View History

[
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers",
"status": 200,
"response": {
"id": "cus_7XTE4KBiF0t9qc",
"alipay_accounts": {
"has_more": false
},
"email": "user3@me.com",
"metadata": {
"id": "0000000000000000000186a5"
},
"sources": {
"has_more": false
},
"subscriptions": {
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTE4KBiF0t9qc/subscriptions",
"status": 200,
"response": {
"id": "sub_7XTE07idZi6fEN",
"cancel_at_period_end": false,
"current_period_end": 1452885416,
"current_period_start": 1450207016,
"customer": "cus_7XTE4KBiF0t9qc",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTE4KBiF0t9qc",
"subscription": "sub_7XTE07idZi6fEN"
},
"metadata": {
"id": "0000000000000000000186a5"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTE4KBiF0t9qc",
"status": 200,
"response": {
"id": "cus_7XTE4KBiF0t9qc",
"alipay_accounts": {
"has_more": false
},
"email": "user3@me.com",
"metadata": {
"id": "0000000000000000000186a5"
},
"sources": {
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTE07idZi6fEN",
"cancel_at_period_end": false,
"current_period_end": 1452885416,
"current_period_start": 1450207016,
"customer": "cus_7XTE4KBiF0t9qc",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTE4KBiF0t9qc",
"subscription": "sub_7XTE07idZi6fEN"
},
"metadata": {
"id": "0000000000000000000186a5"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTE4KBiF0t9qc",
"status": 200,
"response": {
"id": "cus_7XTE4KBiF0t9qc",
"alipay_accounts": {
"has_more": false
},
"email": "user3@me.com",
"metadata": {
"id": "0000000000000000000186a5"
},
"sources": {
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTE07idZi6fEN",
"cancel_at_period_end": false,
"current_period_end": 1452885416,
"current_period_start": 1450207016,
"customer": "cus_7XTE4KBiF0t9qc",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTE4KBiF0t9qc",
"subscription": "sub_7XTE07idZi6fEN"
},
"metadata": {
"id": "0000000000000000000186a5"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "DELETE",
"path": "/v1/customers/cus_7XTE4KBiF0t9qc/subscriptions/sub_7XTE07idZi6fEN",
"status": 200,
"response": {
"id": "sub_7XTE07idZi6fEN",
"cancel_at_period_end": true,
"current_period_end": 1452885416,
"current_period_start": 1450207016,
"customer": "cus_7XTE4KBiF0t9qc",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTE4KBiF0t9qc",
"subscription": "sub_7XTE07idZi6fEN"
},
"metadata": {
"id": "0000000000000000000186a5"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTE4KBiF0t9qc",
"status": 200,
"response": {
"id": "cus_7XTE4KBiF0t9qc",
"alipay_accounts": {
"has_more": false
},
"email": "user3@me.com",
"metadata": {
"id": "0000000000000000000186a5"
},
"sources": {
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTE07idZi6fEN",
"cancel_at_period_end": true,
"current_period_end": 1452885416,
"current_period_start": 1450207016,
"customer": "cus_7XTE4KBiF0t9qc",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTE4KBiF0t9qc",
"subscription": "sub_7XTE07idZi6fEN"
},
"metadata": {
"id": "0000000000000000000186a5"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/customers/cus_7XTE4KBiF0t9qc/subscriptions/sub_7XTE07idZi6fEN",
"status": 200,
"response": {
"id": "sub_7XTE07idZi6fEN",
"cancel_at_period_end": true,
"current_period_end": 1452885416,
"current_period_start": 1450207016,
"customer": "cus_7XTE4KBiF0t9qc",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTE4KBiF0t9qc",
"subscription": "sub_7XTE07idZi6fEN"
},
"metadata": {
"id": "0000000000000000000186a5"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTE4KBiF0t9qc",
"status": 200,
"response": {
"id": "cus_7XTE4KBiF0t9qc",
"alipay_accounts": {
"has_more": false
},
"email": "user3@me.com",
"metadata": {
"id": "0000000000000000000186a5"
},
"sources": {
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTE07idZi6fEN",
"cancel_at_period_end": true,
"current_period_end": 1452885416,
"current_period_start": 1450207016,
"customer": "cus_7XTE4KBiF0t9qc",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTE4KBiF0t9qc",
"subscription": "sub_7XTE07idZi6fEN"
},
"metadata": {
"id": "0000000000000000000186a5"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/customers/cus_7XTE4KBiF0t9qc/subscriptions/sub_7XTE07idZi6fEN",
"status": 200,
"response": {
"id": "sub_7XTE07idZi6fEN",
"cancel_at_period_end": true,
"current_period_end": 1452885416,
"current_period_start": 1450207016,
"customer": "cus_7XTE4KBiF0t9qc",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTE4KBiF0t9qc",
"subscription": "sub_7XTE07idZi6fEN"
},
"metadata": {
"id": "0000000000000000000186a5"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTE4KBiF0t9qc",
"status": 200,
"response": {
"id": "cus_7XTE4KBiF0t9qc",
"alipay_accounts": {
"has_more": false
},
"email": "user3@me.com",
"metadata": {
"id": "0000000000000000000186a5"
},
"sources": {
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTE07idZi6fEN",
"cancel_at_period_end": true,
"current_period_end": 1452885416,
"current_period_start": 1450207016,
"customer": "cus_7XTE4KBiF0t9qc",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTE4KBiF0t9qc",
"subscription": "sub_7XTE07idZi6fEN"
},
"metadata": {
"id": "0000000000000000000186a5"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/customers/cus_7XTE4KBiF0t9qc",
"status": 200,
"response": {
"id": "cus_7XTE4KBiF0t9qc",
"alipay_accounts": {
"has_more": false
},
"email": "user3@me.com",
"metadata": {
"id": "0000000000000000000186a5"
},
"sources": {
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTE07idZi6fEN",
"cancel_at_period_end": true,
"current_period_end": 1452885416,
"current_period_start": 1450207016,
"customer": "cus_7XTE4KBiF0t9qc",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTE4KBiF0t9qc",
"subscription": "sub_7XTE07idZi6fEN"
},
"metadata": {
"id": "0000000000000000000186a5"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
}
]