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

751 lines
25 KiB
JSON
Raw Normal View History

[
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/tokens",
"status": 200,
"response": {
"id": "tok_17IOLfKaReE7xLUdjOD2zWIt",
"card": {
"id": "card_17IOLfKaReE7xLUdg1ANroaI"
},
"type": "card"
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers",
"status": 200,
"response": {
"id": "cus_7XTIWPz6zZnE2a",
"alipay_accounts": {
"has_more": false
},
"email": "user48@me.com",
"metadata": {
"id": "0000000000000000000186d2"
},
"sources": {
"data": [
{
"id": "card_17IOLfKaReE7xLUdg1ANroaI",
"customer": "cus_7XTIWPz6zZnE2a"
}
],
"has_more": false
},
"subscriptions": {
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTIWPz6zZnE2a",
"status": 200,
"response": {
"id": "cus_7XTIWPz6zZnE2a",
"alipay_accounts": {
"has_more": false
},
"email": "user48@me.com",
"metadata": {
"id": "0000000000000000000186d2"
},
"sources": {
"data": [
{
"id": "card_17IOLfKaReE7xLUdg1ANroaI",
"customer": "cus_7XTIWPz6zZnE2a"
}
],
"has_more": false
},
"subscriptions": {
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/customers/cus_7XTIWPz6zZnE2a/subscriptions",
"status": 200,
"response": {
"has_more": false
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTIWPz6zZnE2a/subscriptions",
"status": 200,
"response": {
"id": "sub_7XTIQRccvvKPB1",
"cancel_at_period_end": false,
"current_period_end": 1452885637,
"current_period_start": 1450207237,
"customer": "cus_7XTIWPz6zZnE2a",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTIWPz6zZnE2a",
"subscription": "sub_7XTIQRccvvKPB1"
},
"metadata": {
"id": "0000000000000000000186d1"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTIWPz6zZnE2a/subscriptions",
"status": 200,
"response": {
"id": "sub_7XTImFPSztmw66",
"cancel_at_period_end": false,
"current_period_end": 1452885639,
"current_period_start": 1450207239,
"customer": "cus_7XTIWPz6zZnE2a",
"metadata": {
"id": "0000000000000000000186d2"
},
"plan": {
"id": "incremental",
"amount": 1
},
"quantity": 100
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTIWPz6zZnE2a",
"status": 200,
"response": {
"id": "cus_7XTIWPz6zZnE2a",
"alipay_accounts": {
"has_more": false
},
"email": "user48@me.com",
"metadata": {
"id": "0000000000000000000186d2"
},
"sources": {
"data": [
{
"id": "card_17IOLfKaReE7xLUdg1ANroaI",
"customer": "cus_7XTIWPz6zZnE2a"
}
],
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTImFPSztmw66",
"cancel_at_period_end": false,
"current_period_end": 1452885639,
"current_period_start": 1450207239,
"customer": "cus_7XTIWPz6zZnE2a",
"metadata": {
"id": "0000000000000000000186d2"
},
"plan": {
"id": "incremental",
"amount": 1
},
"quantity": 100
},
{
"id": "sub_7XTIQRccvvKPB1",
"cancel_at_period_end": false,
"current_period_end": 1452885637,
"current_period_start": 1450207237,
"customer": "cus_7XTIWPz6zZnE2a",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTIWPz6zZnE2a",
"subscription": "sub_7XTIQRccvvKPB1"
},
"metadata": {
"id": "0000000000000000000186d1"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/invoices",
"status": 200,
"response": {
"data": [
{
"id": "in_17IOLjKaReE7xLUdug5l1IIm",
"customer": "cus_7XTIWPz6zZnE2a",
"lines": {
"data": [
{
"id": "sub_7XTImFPSztmw66",
"amount": 100,
"metadata": {
"id": "0000000000000000000186d2"
},
"plan": {
"id": "incremental",
"amount": 1
},
"proration": false,
"quantity": 100,
"type": "subscription"
}
],
"has_more": false
},
"paid": true,
"subscription": "sub_7XTImFPSztmw66",
"total": 100
},
{
"id": "in_17IOLhKaReE7xLUd7IxcLZoW",
"customer": "cus_7XTIWPz6zZnE2a",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTIWPz6zZnE2a",
"subscription": "sub_7XTIQRccvvKPB1"
},
"lines": {
"data": [
{
"id": "sub_7XTIQRccvvKPB1",
"amount": 100,
"metadata": {
"id": "0000000000000000000186d1"
},
"plan": {
"id": "basic",
"amount": 100
},
"proration": false,
"quantity": 1,
"type": "subscription"
}
],
"has_more": false
},
"paid": true,
"subscription": "sub_7XTIQRccvvKPB1",
"total": 0
}
],
"has_more": false
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTIWPz6zZnE2a",
"status": 200,
"response": {
"id": "cus_7XTIWPz6zZnE2a",
"alipay_accounts": {
"has_more": false
},
"email": "user48@me.com",
"metadata": {
"id": "0000000000000000000186d2"
},
"sources": {
"data": [
{
"id": "card_17IOLfKaReE7xLUdg1ANroaI",
"customer": "cus_7XTIWPz6zZnE2a"
}
],
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTImFPSztmw66",
"cancel_at_period_end": false,
"current_period_end": 1452885639,
"current_period_start": 1450207239,
"customer": "cus_7XTIWPz6zZnE2a",
"metadata": {
"id": "0000000000000000000186d2"
},
"plan": {
"id": "incremental",
"amount": 1
},
"quantity": 100
},
{
"id": "sub_7XTIQRccvvKPB1",
"cancel_at_period_end": false,
"current_period_end": 1452885637,
"current_period_start": 1450207237,
"customer": "cus_7XTIWPz6zZnE2a",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTIWPz6zZnE2a",
"subscription": "sub_7XTIQRccvvKPB1"
},
"metadata": {
"id": "0000000000000000000186d1"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTIWPz6zZnE2a",
"status": 200,
"response": {
"id": "cus_7XTIWPz6zZnE2a",
"alipay_accounts": {
"has_more": false
},
"email": "user48@me.com",
"metadata": {
"id": "0000000000000000000186d2"
},
"sources": {
"data": [
{
"id": "card_17IOLfKaReE7xLUdg1ANroaI",
"customer": "cus_7XTIWPz6zZnE2a"
}
],
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTImFPSztmw66",
"cancel_at_period_end": false,
"current_period_end": 1452885639,
"current_period_start": 1450207239,
"customer": "cus_7XTIWPz6zZnE2a",
"metadata": {
"id": "0000000000000000000186d2"
},
"plan": {
"id": "incremental",
"amount": 1
},
"quantity": 100
},
{
"id": "sub_7XTIQRccvvKPB1",
"cancel_at_period_end": false,
"current_period_end": 1452885637,
"current_period_start": 1450207237,
"customer": "cus_7XTIWPz6zZnE2a",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTIWPz6zZnE2a",
"subscription": "sub_7XTIQRccvvKPB1"
},
"metadata": {
"id": "0000000000000000000186d1"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/invoices/in_17IOLjKaReE7xLUdug5l1IIm",
"status": 200,
"response": {
"id": "in_17IOLjKaReE7xLUdug5l1IIm",
"customer": "cus_7XTIWPz6zZnE2a",
"lines": {
"data": [
{
"id": "sub_7XTImFPSztmw66",
"amount": 100,
"metadata": {
"id": "0000000000000000000186d2"
},
"plan": {
"id": "incremental",
"amount": 1
},
"proration": false,
"quantity": 100,
"type": "subscription"
}
],
"has_more": false
},
"paid": true,
"subscription": "sub_7XTImFPSztmw66",
"total": 100
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/customers/cus_7XTIWPz6zZnE2a",
"status": 200,
"response": {
"id": "cus_7XTIWPz6zZnE2a",
"alipay_accounts": {
"has_more": false
},
"email": "user48@me.com",
"metadata": {
"id": "0000000000000000000186d2"
},
"sources": {
"data": [
{
"id": "card_17IOLfKaReE7xLUdg1ANroaI",
"customer": "cus_7XTIWPz6zZnE2a"
}
],
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTImFPSztmw66",
"cancel_at_period_end": false,
"current_period_end": 1452885639,
"current_period_start": 1450207239,
"customer": "cus_7XTIWPz6zZnE2a",
"metadata": {
"id": "0000000000000000000186d2"
},
"plan": {
"id": "incremental",
"amount": 1
},
"quantity": 100
},
{
"id": "sub_7XTIQRccvvKPB1",
"cancel_at_period_end": false,
"current_period_end": 1452885637,
"current_period_start": 1450207237,
"customer": "cus_7XTIWPz6zZnE2a",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTIWPz6zZnE2a",
"subscription": "sub_7XTIQRccvvKPB1"
},
"metadata": {
"id": "0000000000000000000186d1"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/invoices/in_17IOLhKaReE7xLUd7IxcLZoW",
"status": 200,
"response": {
"id": "in_17IOLhKaReE7xLUd7IxcLZoW",
"customer": "cus_7XTIWPz6zZnE2a",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTIWPz6zZnE2a",
"subscription": "sub_7XTIQRccvvKPB1"
},
"lines": {
"data": [
{
"id": "sub_7XTIQRccvvKPB1",
"amount": 100,
"metadata": {
"id": "0000000000000000000186d1"
},
"plan": {
"id": "basic",
"amount": 100
},
"proration": false,
"quantity": 1,
"type": "subscription"
}
],
"has_more": false
},
"paid": true,
"subscription": "sub_7XTIQRccvvKPB1",
"total": 0
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/customers/cus_7XTIWPz6zZnE2a/subscriptions/sub_7XTImFPSztmw66",
"status": 200,
"response": {
"id": "sub_7XTImFPSztmw66",
"cancel_at_period_end": false,
"current_period_end": 1452885639,
"current_period_start": 1450207239,
"customer": "cus_7XTIWPz6zZnE2a",
"metadata": {
"id": "0000000000000000000186d2"
},
"plan": {
"id": "incremental",
"amount": 1
},
"quantity": 100
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/customers/cus_7XTIWPz6zZnE2a/subscriptions/sub_7XTIQRccvvKPB1",
"status": 200,
"response": {
"id": "sub_7XTIQRccvvKPB1",
"cancel_at_period_end": false,
"current_period_end": 1452885637,
"current_period_start": 1450207237,
"customer": "cus_7XTIWPz6zZnE2a",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTIWPz6zZnE2a",
"subscription": "sub_7XTIQRccvvKPB1"
},
"metadata": {
"id": "0000000000000000000186d1"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/tokens",
"status": 200,
"response": {
"id": "tok_17IOLnKaReE7xLUdZbfYdcNI",
"card": {
"id": "card_17IOLnKaReE7xLUdC6sdISks"
},
"type": "card"
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTIWPz6zZnE2a",
"status": 200,
"response": {
"id": "cus_7XTIWPz6zZnE2a",
"alipay_accounts": {
"has_more": false
},
"email": "user48@me.com",
"metadata": {
"id": "0000000000000000000186d2"
},
"sources": {
"data": [
{
"id": "card_17IOLnKaReE7xLUdC6sdISks",
"customer": "cus_7XTIWPz6zZnE2a"
}
],
"has_more": false
},
"subscriptions": {
"data": [
{
"id": "sub_7XTImFPSztmw66",
"cancel_at_period_end": false,
"current_period_end": 1452885639,
"current_period_start": 1450207239,
"customer": "cus_7XTIWPz6zZnE2a",
"metadata": {
"id": "0000000000000000000186d2"
},
"plan": {
"id": "incremental",
"amount": 1
},
"quantity": 100
},
{
"id": "sub_7XTIQRccvvKPB1",
"cancel_at_period_end": false,
"current_period_end": 1452885637,
"current_period_start": 1450207237,
"customer": "cus_7XTIWPz6zZnE2a",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTIWPz6zZnE2a",
"subscription": "sub_7XTIQRccvvKPB1"
},
"metadata": {
"id": "0000000000000000000186d1"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTIWPz6zZnE2a/subscriptions",
"status": 200,
"response": {
"id": "sub_7XTIwI7JeLnK18",
"cancel_at_period_end": false,
"current_period_end": 1452885645,
"current_period_start": 1450207245,
"customer": "cus_7XTIWPz6zZnE2a",
"metadata": {
"id": "0000000000000000000186d2"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/customers/cus_7XTIWPz6zZnE2a/subscriptions",
"status": 200,
"response": {
"data": [
{
"id": "sub_7XTIwI7JeLnK18",
"cancel_at_period_end": false,
"current_period_end": 1452885645,
"current_period_start": 1450207245,
"customer": "cus_7XTIWPz6zZnE2a",
"metadata": {
"id": "0000000000000000000186d2"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
},
{
"id": "sub_7XTImFPSztmw66",
"cancel_at_period_end": false,
"current_period_end": 1452885639,
"current_period_start": 1450207239,
"customer": "cus_7XTIWPz6zZnE2a",
"metadata": {
"id": "0000000000000000000186d2"
},
"plan": {
"id": "incremental",
"amount": 1
},
"quantity": 100
},
{
"id": "sub_7XTIQRccvvKPB1",
"cancel_at_period_end": false,
"current_period_end": 1452885637,
"current_period_start": 1450207237,
"customer": "cus_7XTIWPz6zZnE2a",
"discount": {
"coupon": {
"id": "free"
},
"customer": "cus_7XTIWPz6zZnE2a",
"subscription": "sub_7XTIQRccvvKPB1"
},
"metadata": {
"id": "0000000000000000000186d1"
},
"plan": {
"id": "basic",
"amount": 100
},
"quantity": 1
}
],
"has_more": false
}
}
]