Skip to content

Commit

Permalink
Record new responses for all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gmile committed Jul 20, 2016
1 parent 966b343 commit 7d4530a
Show file tree
Hide file tree
Showing 119 changed files with 7,610 additions and 0 deletions.
37 changes: 37 additions & 0 deletions fixture/vcr_cassettes/Stripe.AccountTest/delete.json
@@ -0,0 +1,37 @@
[
{
"request": {
"body": "",
"headers": {
"Authorization": "Bearer qr0yuBikLRa5yJkMGuEO4DNblKhEJqkw",
"Content-Type": "application/x-www-form-urlencoded",
"User-Agent": "Stripe/v1 stripity-stripe/1.4.0"
},
"method": "delete",
"options": [],
"request_body": "",
"url": "https://api.stripe.com/v1/accounts/acct_18ZKelAF5r091xjE"
},
"response": {
"body": "{\n \"deleted\": true,\n \"id\": \"acct_18ZKelAF5r091xjE\"\n}\n",
"headers": {
"Server": "nginx",
"Date": "Wed, 20 Jul 2016 13:22:40 GMT",
"Content-Type": "application/json",
"Content-Length": "55",
"Connection": "keep-alive",
"Access-Control-Allow-Credentials": "true",
"Access-Control-Allow-Methods": "GET, POST, HEAD, OPTIONS, DELETE",
"Access-Control-Allow-Origin": "*",
"Access-Control-Max-Age": "300",
"Cache-Control": "no-cache, no-store",
"Request-Id": "req_8r2kR6JS7w8qyY",
"Stripe-Account": "acct_18ZKelAF5r091xjE",
"Stripe-Version": "2016-07-06",
"Strict-Transport-Security": "max-age=31556926; includeSubDomains"
},
"status_code": 200,
"type": "ok"
}
}
]
242 changes: 242 additions & 0 deletions fixture/vcr_cassettes/Stripe.AccountTest/delete_all.json

Large diffs are not rendered by default.

37 changes: 37 additions & 0 deletions fixture/vcr_cassettes/Stripe.AccountTest/get.json
@@ -0,0 +1,37 @@
[
{
"request": {
"body": "",
"headers": {
"Authorization": "Bearer qr0yuBikLRa5yJkMGuEO4DNblKhEJqkw",
"Content-Type": "application/x-www-form-urlencoded",
"User-Agent": "Stripe/v1 stripity-stripe/1.4.0"
},
"method": "get",
"options": [],
"request_body": "",
"url": "https://api.stripe.com/v1/accounts/acct_18ZKelAF5r091xjE"
},
"response": {
"body": "{\n \"id\": \"acct_18ZKelAF5r091xjE\",\n \"object\": \"account\",\n \"business_logo\": null,\n \"business_name\": null,\n \"business_url\": null,\n \"charges_enabled\": true,\n \"country\": \"US\",\n \"debit_negative_balances\": false,\n \"decline_charge_on\": {\n \"avs_failure\": false,\n \"cvc_failure\": false\n },\n \"default_currency\": \"usd\",\n \"details_submitted\": false,\n \"display_name\": null,\n \"email\": \"test@example.com\",\n \"external_accounts\": {\n \"object\": \"list\",\n \"data\": [],\n \"has_more\": false,\n \"total_count\": 0,\n \"url\": \"/v1/accounts/acct_18ZKelAF5r091xjE/external_accounts\"\n },\n \"legal_entity\": {\n \"address\": {\n \"city\": null,\n \"country\": \"US\",\n \"line1\": null,\n \"line2\": null,\n \"postal_code\": null,\n \"state\": null\n },\n \"business_name\": null,\n \"business_tax_id_provided\": false,\n \"dob\": {\n \"day\": null,\n \"month\": null,\n \"year\": null\n },\n \"first_name\": null,\n \"last_name\": null,\n \"personal_id_number_provided\": false,\n \"ssn_last_4_provided\": false,\n \"type\": null,\n \"verification\": {\n \"details\": null,\n \"details_code\": null,\n \"document\": null,\n \"status\": \"unverified\"\n }\n },\n \"managed\": true,\n \"metadata\": {},\n \"product_description\": null,\n \"statement_descriptor\": null,\n \"support_email\": null,\n \"support_phone\": null,\n \"timezone\": \"Etc/UTC\",\n \"tos_acceptance\": {\n \"date\": null,\n \"ip\": null,\n \"user_agent\": null\n },\n \"transfer_schedule\": {\n \"delay_days\": 2,\n \"interval\": \"daily\"\n },\n \"transfers_enabled\": false,\n \"verification\": {\n \"disabled_reason\": \"fields_needed\",\n \"due_by\": null,\n \"fields_needed\": [\n \"external_account\",\n \"legal_entity.dob.day\",\n \"legal_entity.dob.month\",\n \"legal_entity.dob.year\",\n \"legal_entity.first_name\",\n \"legal_entity.last_name\",\n \"legal_entity.type\",\n \"tos_acceptance.date\",\n \"tos_acceptance.ip\"\n ]\n }\n}\n",
"headers": {
"Server": "nginx",
"Date": "Wed, 20 Jul 2016 13:22:39 GMT",
"Content-Type": "application/json",
"Content-Length": "1932",
"Connection": "keep-alive",
"Access-Control-Allow-Credentials": "true",
"Access-Control-Allow-Methods": "GET, POST, HEAD, OPTIONS, DELETE",
"Access-Control-Allow-Origin": "*",
"Access-Control-Max-Age": "300",
"Cache-Control": "no-cache, no-store",
"Request-Id": "req_8r2kp9pM8igP2M",
"Stripe-Account": "acct_18ZKelAF5r091xjE",
"Stripe-Version": "2016-07-06",
"Strict-Transport-Security": "max-age=31556926; includeSubDomains"
},
"status_code": 200,
"type": "ok"
}
}
]
36 changes: 36 additions & 0 deletions fixture/vcr_cassettes/Stripe.AccountTest/list.json
@@ -0,0 +1,36 @@
[
{
"request": {
"body": "",
"headers": {
"Authorization": "Bearer qr0yuBikLRa5yJkMGuEO4DNblKhEJqkw",
"Content-Type": "application/x-www-form-urlencoded",
"User-Agent": "Stripe/v1 stripity-stripe/1.4.0"
},
"method": "get",
"options": [],
"request_body": "",
"url": "https://api.stripe.com/v1/accounts?limit=10"
},
"response": {
"body": "{\n \"object\": \"list\",\n \"data\": [\n {\n \"id\": \"acct_18ZKelAF5r091xjE\",\n \"object\": \"account\",\n \"business_logo\": null,\n \"business_name\": null,\n \"business_url\": null,\n \"charges_enabled\": true,\n \"country\": \"US\",\n \"debit_negative_balances\": false,\n \"decline_charge_on\": {\n \"avs_failure\": false,\n \"cvc_failure\": false\n },\n \"default_currency\": \"usd\",\n \"details_submitted\": false,\n \"display_name\": null,\n \"email\": \"test@example.com\",\n \"external_accounts\": {\n \"object\": \"list\",\n \"data\": [],\n \"has_more\": false,\n \"total_count\": 0,\n \"url\": \"/v1/accounts/acct_18ZKelAF5r091xjE/external_accounts\"\n },\n \"legal_entity\": {\n \"address\": {\n \"city\": null,\n \"country\": \"US\",\n \"line1\": null,\n \"line2\": null,\n \"postal_code\": null,\n \"state\": null\n },\n \"business_name\": null,\n \"business_tax_id_provided\": false,\n \"dob\": {\n \"day\": null,\n \"month\": null,\n \"year\": null\n },\n \"first_name\": null,\n \"last_name\": null,\n \"personal_id_number_provided\": false,\n \"ssn_last_4_provided\": false,\n \"type\": null,\n \"verification\": {\n \"details\": null,\n \"details_code\": null,\n \"document\": null,\n \"status\": \"unverified\"\n }\n },\n \"managed\": true,\n \"metadata\": {},\n \"product_description\": null,\n \"statement_descriptor\": null,\n \"support_email\": null,\n \"support_phone\": null,\n \"timezone\": \"Etc/UTC\",\n \"tos_acceptance\": {\n \"date\": null,\n \"ip\": null,\n \"user_agent\": null\n },\n \"transfer_schedule\": {\n \"delay_days\": 2,\n \"interval\": \"daily\"\n },\n \"transfers_enabled\": false,\n \"verification\": {\n \"disabled_reason\": \"fields_needed\",\n \"due_by\": null,\n \"fields_needed\": [\n \"external_account\",\n \"legal_entity.dob.day\",\n \"legal_entity.dob.month\",\n \"legal_entity.dob.year\",\n \"legal_entity.first_name\",\n \"legal_entity.last_name\",\n \"legal_entity.type\",\n \"tos_acceptance.date\",\n \"tos_acceptance.ip\"\n ]\n }\n },\n {\n \"id\": \"acct_18ZIF7JyIJHSFpeM\",\n \"object\": \"account\",\n \"business_logo\": null,\n \"business_name\": null,\n \"business_url\": null,\n \"charges_enabled\": true,\n \"country\": \"US\",\n \"default_currency\": \"usd\",\n \"details_submitted\": false,\n \"display_name\": null,\n \"email\": \"bob1@nanana.com\",\n \"managed\": false,\n \"metadata\": {},\n \"statement_descriptor\": null,\n \"support_email\": null,\n \"support_phone\": null,\n \"timezone\": \"Etc/UTC\",\n \"transfers_enabled\": false\n }\n ],\n \"has_more\": false,\n \"url\": \"/v1/accounts\"\n}\n",
"headers": {
"Server": "nginx",
"Date": "Wed, 20 Jul 2016 13:22:38 GMT",
"Content-Type": "application/json",
"Content-Length": "2906",
"Connection": "keep-alive",
"Access-Control-Allow-Credentials": "true",
"Access-Control-Allow-Methods": "GET, POST, HEAD, OPTIONS, DELETE",
"Access-Control-Allow-Origin": "*",
"Access-Control-Max-Age": "300",
"Cache-Control": "no-cache, no-store",
"Request-Id": "req_8r2k1wyCpXfNs9",
"Stripe-Version": "2016-07-06",
"Strict-Transport-Security": "max-age=31556926; includeSubDomains"
},
"status_code": 200,
"type": "ok"
}
}
]
104 changes: 104 additions & 0 deletions fixture/vcr_cassettes/Stripe.AccountTest/setup.json
@@ -0,0 +1,104 @@
[
{
"request": {
"body": "",
"headers": {
"Authorization": "Bearer qr0yuBikLRa5yJkMGuEO4DNblKhEJqkw",
"Content-Type": "application/x-www-form-urlencoded",
"User-Agent": "Stripe/v1 stripity-stripe/1.4.0"
},
"method": "get",
"options": [],
"request_body": "",
"url": "https://api.stripe.com/v1/accounts?limit=100"
},
"response": {
"body": "{\n \"object\": \"list\",\n \"data\": [\n {\n \"id\": \"acct_18ZIF7JyIJHSFpeM\",\n \"object\": \"account\",\n \"business_logo\": null,\n \"business_name\": null,\n \"business_url\": null,\n \"charges_enabled\": true,\n \"country\": \"US\",\n \"default_currency\": \"usd\",\n \"details_submitted\": false,\n \"display_name\": null,\n \"email\": \"bob1@nanana.com\",\n \"managed\": false,\n \"metadata\": {},\n \"statement_descriptor\": null,\n \"support_email\": null,\n \"support_phone\": null,\n \"timezone\": \"Etc/UTC\",\n \"transfers_enabled\": false\n }\n ],\n \"has_more\": false,\n \"url\": \"/v1/accounts\"\n}\n",
"headers": {
"Server": "nginx",
"Date": "Wed, 20 Jul 2016 13:22:35 GMT",
"Content-Type": "application/json",
"Content-Length": "633",
"Connection": "keep-alive",
"Access-Control-Allow-Credentials": "true",
"Access-Control-Allow-Methods": "GET, POST, HEAD, OPTIONS, DELETE",
"Access-Control-Allow-Origin": "*",
"Access-Control-Max-Age": "300",
"Cache-Control": "no-cache, no-store",
"Request-Id": "req_8r2kk5NFsH71Ea",
"Stripe-Version": "2016-07-06",
"Strict-Transport-Security": "max-age=31556926; includeSubDomains"
},
"status_code": 200,
"type": "ok"
}
},
{
"request": {
"body": "",
"headers": {
"Authorization": "Bearer qr0yuBikLRa5yJkMGuEO4DNblKhEJqkw",
"Content-Type": "application/x-www-form-urlencoded",
"User-Agent": "Stripe/v1 stripity-stripe/1.4.0"
},
"method": "delete",
"options": [],
"request_body": "",
"url": "https://api.stripe.com/v1/accounts/acct_18ZIF7JyIJHSFpeM"
},
"response": {
"body": "{\n \"error\": {\n \"type\": \"invalid_request_error\",\n \"message\": \"This application is not authorized to edit this account.\"\n }\n}\n",
"headers": {
"Server": "nginx",
"Date": "Wed, 20 Jul 2016 13:22:35 GMT",
"Content-Type": "application/json",
"Content-Length": "132",
"Connection": "keep-alive",
"Access-Control-Allow-Credentials": "true",
"Access-Control-Allow-Methods": "GET, POST, HEAD, OPTIONS, DELETE",
"Access-Control-Allow-Origin": "*",
"Access-Control-Max-Age": "300",
"Cache-Control": "no-cache, no-store",
"Request-Id": "req_8r2kW5YHLNTnfW",
"Stripe-Account": "acct_18ZIF7JyIJHSFpeM",
"Stripe-Version": "2016-07-06"
},
"status_code": 401,
"type": "ok"
}
},
{
"request": {
"body": "email=test%40example.com&managed=true",
"headers": {
"Authorization": "Bearer qr0yuBikLRa5yJkMGuEO4DNblKhEJqkw",
"Content-Type": "application/x-www-form-urlencoded",
"User-Agent": "Stripe/v1 stripity-stripe/1.4.0"
},
"method": "post",
"options": [],
"request_body": "",
"url": "https://api.stripe.com/v1/accounts"
},
"response": {
"body": "{\n \"id\": \"acct_18ZKelAF5r091xjE\",\n \"object\": \"account\",\n \"business_logo\": null,\n \"business_name\": null,\n \"business_url\": null,\n \"charges_enabled\": true,\n \"country\": \"US\",\n \"debit_negative_balances\": false,\n \"decline_charge_on\": {\n \"avs_failure\": false,\n \"cvc_failure\": false\n },\n \"default_currency\": \"usd\",\n \"details_submitted\": false,\n \"display_name\": null,\n \"email\": \"test@example.com\",\n \"external_accounts\": {\n \"object\": \"list\",\n \"data\": [],\n \"has_more\": false,\n \"total_count\": 0,\n \"url\": \"/v1/accounts/acct_18ZKelAF5r091xjE/external_accounts\"\n },\n \"keys\": {\n \"secret\": \"sk_test_00P8N8SiKzFiS9ETMMD0F9z9\",\n \"publishable\": \"pk_test_Eq5ULMLrQS7PC6f8OSwGuqpl\"\n },\n \"legal_entity\": {\n \"address\": {\n \"city\": null,\n \"country\": \"US\",\n \"line1\": null,\n \"line2\": null,\n \"postal_code\": null,\n \"state\": null\n },\n \"business_name\": null,\n \"business_tax_id_provided\": false,\n \"dob\": {\n \"day\": null,\n \"month\": null,\n \"year\": null\n },\n \"first_name\": null,\n \"last_name\": null,\n \"personal_id_number_provided\": false,\n \"ssn_last_4_provided\": false,\n \"type\": null,\n \"verification\": {\n \"details\": null,\n \"details_code\": null,\n \"document\": null,\n \"status\": \"unverified\"\n }\n },\n \"managed\": true,\n \"metadata\": {},\n \"product_description\": null,\n \"statement_descriptor\": null,\n \"support_email\": null,\n \"support_phone\": null,\n \"timezone\": \"Etc/UTC\",\n \"tos_acceptance\": {\n \"date\": null,\n \"ip\": null,\n \"user_agent\": null\n },\n \"transfer_schedule\": {\n \"delay_days\": 2,\n \"interval\": \"daily\"\n },\n \"transfers_enabled\": false,\n \"verification\": {\n \"disabled_reason\": \"fields_needed\",\n \"due_by\": null,\n \"fields_needed\": [\n \"external_account\",\n \"legal_entity.dob.day\",\n \"legal_entity.dob.month\",\n \"legal_entity.dob.year\",\n \"legal_entity.first_name\",\n \"legal_entity.last_name\",\n \"legal_entity.type\",\n \"tos_acceptance.date\",\n \"tos_acceptance.ip\"\n ]\n }\n}\n",
"headers": {
"Server": "nginx",
"Date": "Wed, 20 Jul 2016 13:22:38 GMT",
"Content-Type": "application/json",
"Content-Length": "2053",
"Connection": "keep-alive",
"Access-Control-Allow-Credentials": "true",
"Access-Control-Allow-Methods": "GET, POST, HEAD, OPTIONS, DELETE",
"Access-Control-Allow-Origin": "*",
"Access-Control-Max-Age": "300",
"Cache-Control": "no-cache, no-store",
"Request-Id": "req_8r2k5exTIeCR98",
"Stripe-Version": "2016-07-06",
"Strict-Transport-Security": "max-age=31556926; includeSubDomains"
},
"status_code": 200,
"type": "ok"
}
}
]
34 changes: 34 additions & 0 deletions fixture/vcr_cassettes/Stripe.AccountTest/teardown.json
@@ -0,0 +1,34 @@
[
{
"request": {
"body": "",
"headers": {
"Authorization": "Bearer qr0yuBikLRa5yJkMGuEO4DNblKhEJqkw",
"Content-Type": "application/x-www-form-urlencoded",
"User-Agent": "Stripe/v1 stripity-stripe/1.4.0"
},
"method": "delete",
"options": [],
"request_body": "",
"url": "https://api.stripe.com/v1/accounts/acct_18ZKelAF5r091xjE"
},
"response": {
"body": "{\n \"error\": {\n \"type\": \"invalid_request_error\",\n \"message\": \"The provided key '****************************Jqkw' does not have access to account 'acct_18ZKelAF5r091xjE' (or that account does not exist). Application access may have been revoked.\"\n }\n}\n",
"headers": {
"Server": "nginx",
"Date": "Wed, 20 Jul 2016 13:22:50 GMT",
"Content-Type": "application/json",
"Content-Length": "259",
"Connection": "keep-alive",
"Access-Control-Allow-Credentials": "true",
"Access-Control-Allow-Methods": "GET, POST, HEAD, OPTIONS, DELETE",
"Access-Control-Allow-Origin": "*",
"Access-Control-Max-Age": "300",
"Cache-Control": "no-cache, no-store",
"Stripe-Version": "2016-07-06"
},
"status_code": 401,
"type": "ok"
}
}
]

0 comments on commit 7d4530a

Please sign in to comment.