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

572 lines
19 KiB
JSON
Raw Normal View History

[
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/tokens",
"status": 200,
"response": {
"id": "tok_17IOIZKaReE7xLUdUHqOOaXb",
"card": {
"id": "card_17IOIZKaReE7xLUdD1t4wGY8"
},
"type": "card"
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers",
"status": 200,
"response": {
"id": "cus_7XTFrcuV3ULBEE",
"alipay_accounts": {
"has_more": false
},
"email": "user15@me.com",
"metadata": {
"id": "0000000000000000000186b1"
},
"sources": {
"data": [
{
"id": "card_17IOIZKaReE7xLUdD1t4wGY8",
"customer": "cus_7XTFrcuV3ULBEE"
}
],
"has_more": false
},
"subscriptions": {
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/customers/cus_7XTFrcuV3ULBEE/subscriptions",
"status": 200,
"response": {
"has_more": false
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTFrcuV3ULBEE",
"status": 200,
"response": {
"id": "cus_7XTFrcuV3ULBEE",
"alipay_accounts": {
"has_more": false
},
"email": "user15@me.com",
"metadata": {
"id": "0000000000000000000186b1"
},
"sources": {
"data": [
{
"id": "card_17IOIZKaReE7xLUdD1t4wGY8",
"customer": "cus_7XTFrcuV3ULBEE"
}
],
"has_more": false
},
"subscriptions": {
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTFrcuV3ULBEE/subscriptions",
"status": 200,
"response": {
"id": "sub_7XTFa54kxw7ZZT",
"cancel_at_period_end": false,
"current_period_end": 1452885445,
"current_period_start": 1450207045,
"customer": "cus_7XTFrcuV3ULBEE",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTFrcuV3ULBEE",
"subscription": "sub_7XTFa54kxw7ZZT"
},
"metadata": {
"id": "0000000000000000000186b0"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTFrcuV3ULBEE",
"status": 200,
"response": {
"id": "cus_7XTFrcuV3ULBEE",
"alipay_accounts": {
"has_more": false
},
"email": "user15@me.com",
"metadata": {
"id": "0000000000000000000186b1"
},
"sources": {
"data": [
{
"id": "card_17IOIZKaReE7xLUdD1t4wGY8",
"customer": "cus_7XTFrcuV3ULBEE"
}
],
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTFa54kxw7ZZT",
"cancel_at_period_end": false,
"current_period_end": 1452885445,
"current_period_start": 1450207045,
"customer": "cus_7XTFrcuV3ULBEE",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTFrcuV3ULBEE",
"subscription": "sub_7XTFa54kxw7ZZT"
},
"metadata": {
"id": "0000000000000000000186b0"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTFrcuV3ULBEE/subscriptions",
"status": 200,
"response": {
"id": "sub_7XTFNkTmzthaqw",
"cancel_at_period_end": false,
"current_period_end": 1452885447,
"current_period_start": 1450207047,
"customer": "cus_7XTFrcuV3ULBEE",
"metadata": {
"id": "0000000000000000000186b1"
},
"plan": {
"id": "incremental",
"amount": 1
},
"quantity": 100
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/invoices",
"status": 200,
"response": {
"data": [
{
"id": "in_17IOIdKaReE7xLUdXmleakxg",
"customer": "cus_7XTFrcuV3ULBEE",
"lines": {
"data": [
{
"id": "sub_7XTFNkTmzthaqw",
"amount": 100,
"metadata": {
"id": "0000000000000000000186b1"
},
"plan": {
"id": "incremental",
"amount": 1
},
"proration": false,
"quantity": 100,
"type": "subscription"
}
],
"has_more": false
},
"paid": true,
"subscription": "sub_7XTFNkTmzthaqw",
"total": 100
},
{
"id": "in_17IOIbKaReE7xLUdvgTqdG9k",
"customer": "cus_7XTFrcuV3ULBEE",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTFrcuV3ULBEE",
"subscription": "sub_7XTFa54kxw7ZZT"
},
"lines": {
"data": [
{
"id": "sub_7XTFa54kxw7ZZT",
"amount": 100,
"metadata": {
"id": "0000000000000000000186b0"
},
"plan": {
"id": "basic",
"amount": 100
},
"proration": false,
"quantity": 1,
"type": "subscription"
}
],
"has_more": false
},
"paid": true,
"subscription": "sub_7XTFa54kxw7ZZT",
"total": 0
}
],
"has_more": false
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTFrcuV3ULBEE",
"status": 200,
"response": {
"id": "cus_7XTFrcuV3ULBEE",
"alipay_accounts": {
"has_more": false
},
"email": "user15@me.com",
"metadata": {
"id": "0000000000000000000186b1"
},
"sources": {
"data": [
{
"id": "card_17IOIZKaReE7xLUdD1t4wGY8",
"customer": "cus_7XTFrcuV3ULBEE"
}
],
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTFNkTmzthaqw",
"cancel_at_period_end": false,
"current_period_end": 1452885447,
"current_period_start": 1450207047,
"customer": "cus_7XTFrcuV3ULBEE",
"metadata": {
"id": "0000000000000000000186b1"
},
"plan": {
"id": "incremental",
"amount": 1
},
"quantity": 100
},
{
"id": "sub_7XTFa54kxw7ZZT",
"cancel_at_period_end": false,
"current_period_end": 1452885445,
"current_period_start": 1450207045,
"customer": "cus_7XTFrcuV3ULBEE",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTFrcuV3ULBEE",
"subscription": "sub_7XTFa54kxw7ZZT"
},
"metadata": {
"id": "0000000000000000000186b0"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTFrcuV3ULBEE",
"status": 200,
"response": {
"id": "cus_7XTFrcuV3ULBEE",
"alipay_accounts": {
"has_more": false
},
"email": "user15@me.com",
"metadata": {
"id": "0000000000000000000186b1"
},
"sources": {
"data": [
{
"id": "card_17IOIZKaReE7xLUdD1t4wGY8",
"customer": "cus_7XTFrcuV3ULBEE"
}
],
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTFNkTmzthaqw",
"cancel_at_period_end": false,
"current_period_end": 1452885447,
"current_period_start": 1450207047,
"customer": "cus_7XTFrcuV3ULBEE",
"metadata": {
"id": "0000000000000000000186b1"
},
"plan": {
"id": "incremental",
"amount": 1
},
"quantity": 100
},
{
"id": "sub_7XTFa54kxw7ZZT",
"cancel_at_period_end": false,
"current_period_end": 1452885445,
"current_period_start": 1450207045,
"customer": "cus_7XTFrcuV3ULBEE",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTFrcuV3ULBEE",
"subscription": "sub_7XTFa54kxw7ZZT"
},
"metadata": {
"id": "0000000000000000000186b0"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/invoices/in_17IOIdKaReE7xLUdXmleakxg",
"status": 200,
"response": {
"id": "in_17IOIdKaReE7xLUdXmleakxg",
"customer": "cus_7XTFrcuV3ULBEE",
"lines": {
"data": [
{
"id": "sub_7XTFNkTmzthaqw",
"amount": 100,
"metadata": {
"id": "0000000000000000000186b1"
},
"plan": {
"id": "incremental",
"amount": 1
},
"proration": false,
"quantity": 100,
"type": "subscription"
}
],
"has_more": false
},
"paid": true,
"subscription": "sub_7XTFNkTmzthaqw",
"total": 100
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/customers/cus_7XTFrcuV3ULBEE",
"status": 200,
"response": {
"id": "cus_7XTFrcuV3ULBEE",
"alipay_accounts": {
"has_more": false
},
"email": "user15@me.com",
"metadata": {
"id": "0000000000000000000186b1"
},
"sources": {
"data": [
{
"id": "card_17IOIZKaReE7xLUdD1t4wGY8",
"customer": "cus_7XTFrcuV3ULBEE"
}
],
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTFNkTmzthaqw",
"cancel_at_period_end": false,
"current_period_end": 1452885447,
"current_period_start": 1450207047,
"customer": "cus_7XTFrcuV3ULBEE",
"metadata": {
"id": "0000000000000000000186b1"
},
"plan": {
"id": "incremental",
"amount": 1
},
"quantity": 100
},
{
"id": "sub_7XTFa54kxw7ZZT",
"cancel_at_period_end": false,
"current_period_end": 1452885445,
"current_period_start": 1450207045,
"customer": "cus_7XTFrcuV3ULBEE",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTFrcuV3ULBEE",
"subscription": "sub_7XTFa54kxw7ZZT"
},
"metadata": {
"id": "0000000000000000000186b0"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/invoices/in_17IOIbKaReE7xLUdvgTqdG9k",
"status": 200,
"response": {
"id": "in_17IOIbKaReE7xLUdvgTqdG9k",
"customer": "cus_7XTFrcuV3ULBEE",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTFrcuV3ULBEE",
"subscription": "sub_7XTFa54kxw7ZZT"
},
"lines": {
"data": [
{
"id": "sub_7XTFa54kxw7ZZT",
"amount": 100,
"metadata": {
"id": "0000000000000000000186b0"
},
"plan": {
"id": "basic",
"amount": 100
},
"proration": false,
"quantity": 1,
"type": "subscription"
}
],
"has_more": false
},
"paid": true,
"subscription": "sub_7XTFa54kxw7ZZT",
"total": 0
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/customers/cus_7XTFrcuV3ULBEE/subscriptions/sub_7XTFNkTmzthaqw",
"status": 200,
"response": {
"id": "sub_7XTFNkTmzthaqw",
"cancel_at_period_end": false,
"current_period_end": 1452885447,
"current_period_start": 1450207047,
"customer": "cus_7XTFrcuV3ULBEE",
"metadata": {
"id": "0000000000000000000186b1"
},
"plan": {
"id": "incremental",
"amount": 1
},
"quantity": 100
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/customers/cus_7XTFrcuV3ULBEE/subscriptions/sub_7XTFa54kxw7ZZT",
"status": 200,
"response": {
"id": "sub_7XTFa54kxw7ZZT",
"cancel_at_period_end": false,
"current_period_end": 1452885445,
"current_period_start": 1450207045,
"customer": "cus_7XTFrcuV3ULBEE",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTFrcuV3ULBEE",
"subscription": "sub_7XTFa54kxw7ZZT"
},
"metadata": {
"id": "0000000000000000000186b0"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
}
]