--- http_interactions: - request: method: get uri: https://api.balancedpayments.com/v1/merchants body: encoding: US-ASCII string: '' headers: User-Agent: - balanced-ruby/0.3.5 Authorization: - Basic M2RkZGE5MDBjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6 response: status: code: 200 message: !!null headers: content-type: - application/json date: - Fri, 06 Jul 2012 04:23:38 GMT server: - nginx/1.0.14 x-balanced-guru: - OHM5bc241b0c72211e1ad0d026ba7e5e72e x-balanced-marketplace: - TEST-MP1TeztGGOGLPPCo2cLKo6SZ x-balanced-merchant: - TEST-MR1StaiKg1wIPZi4BqZBFKgK x-balanced-version: - '' content-length: - '2062' connection: - Close body: encoding: US-ASCII string: ! "{\n \"first_uri\": \"/v1/merchants?limit=10&offset=0\", \n \"items\": [\n {\n \"phone_number\": \"+16505551212\", \n \"city\": \"Nowhere\", \n \"marketplace\": {\n \"in_escrow\": 0, \n \"domain_url\": \"example.com\", \n \"name\": \"Test Marketplace\", \n \"owner_account_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC1TCUdnBEr1KwYUyKqb91wZ\", \n \"support_email_address\": \"support@example.com\", \n \"uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ\", \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/bank_accounts\", \n \"support_phone_number\": \"+16505551234\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/refunds\", \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/debits\", \n \"holds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/holds\", \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/transactions\", \n \"accounts_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts\", \n \"id\": \"TEST-MP1TeztGGOGLPPCo2cLKo6SZ\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/credits\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/cards\"\n }, \n \"name\": \"William Henry Cavendish III\", \n \"email_address\": \"whc@example.org\", \n \"created_at\": \"2012-07-06T04:22:47.628360Z\", \n \"uri\": \"/v1/merchants/TEST-MR1StaiKg1wIPZi4BqZBFKgK\", \n \"accounts_uri\": \"/v1/merchants/TEST-MR1StaiKg1wIPZi4BqZBFKgK/accounts\", \n \"meta\": {}, \n \"postal_code\": \"90210\", \n \"country_code\": \"USA\", \n \"type\": \"person\", \n \"balance\": 0, \n \"api_keys_uri\": \"/v1/merchants/TEST-MR1StaiKg1wIPZi4BqZBFKgK/api_keys\", \n \"id\": \"TEST-MR1StaiKg1wIPZi4BqZBFKgK\", \n \"street_address\": \"123 Fake St\"\n }\n ], \n \"previous_uri\": null, \n \"uri\": \"/v1/merchants?limit=10&offset=0\", \n \"limit\": 10, \n \"offset\": 0, \n \"total\": 1, \n \"next_uri\": null, \n \"last_uri\": \"/v1/merchants?limit=10&offset=0\"\n}" http_version: !!null recorded_at: Fri, 06 Jul 2012 04:23:38 GMT - request: method: get uri: https://api.balancedpayments.com/v1/merchants body: encoding: US-ASCII string: '' headers: User-Agent: - balanced-ruby/0.3.5 Authorization: - Basic M2RkZGE5MDBjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6 response: status: code: 200 message: !!null headers: content-type: - application/json date: - Fri, 06 Jul 2012 04:23:38 GMT server: - nginx/1.0.14 x-balanced-guru: - OHM5c091b1cc72211e1a977026ba7e239a9 x-balanced-marketplace: - TEST-MP1TeztGGOGLPPCo2cLKo6SZ x-balanced-merchant: - TEST-MR1StaiKg1wIPZi4BqZBFKgK x-balanced-version: - '' content-length: - '2062' connection: - Close body: encoding: US-ASCII string: ! "{\n \"first_uri\": \"/v1/merchants?limit=10&offset=0\", \n \"items\": [\n {\n \"phone_number\": \"+16505551212\", \n \"city\": \"Nowhere\", \n \"marketplace\": {\n \"in_escrow\": 0, \n \"domain_url\": \"example.com\", \n \"name\": \"Test Marketplace\", \n \"owner_account_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC1TCUdnBEr1KwYUyKqb91wZ\", \n \"support_email_address\": \"support@example.com\", \n \"uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ\", \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/bank_accounts\", \n \"support_phone_number\": \"+16505551234\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/refunds\", \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/debits\", \n \"holds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/holds\", \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/transactions\", \n \"accounts_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts\", \n \"id\": \"TEST-MP1TeztGGOGLPPCo2cLKo6SZ\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/credits\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/cards\"\n }, \n \"name\": \"William Henry Cavendish III\", \n \"email_address\": \"whc@example.org\", \n \"created_at\": \"2012-07-06T04:22:47.628360Z\", \n \"uri\": \"/v1/merchants/TEST-MR1StaiKg1wIPZi4BqZBFKgK\", \n \"accounts_uri\": \"/v1/merchants/TEST-MR1StaiKg1wIPZi4BqZBFKgK/accounts\", \n \"meta\": {}, \n \"postal_code\": \"90210\", \n \"country_code\": \"USA\", \n \"type\": \"person\", \n \"balance\": 0, \n \"api_keys_uri\": \"/v1/merchants/TEST-MR1StaiKg1wIPZi4BqZBFKgK/api_keys\", \n \"id\": \"TEST-MR1StaiKg1wIPZi4BqZBFKgK\", \n \"street_address\": \"123 Fake St\"\n }\n ], \n \"previous_uri\": null, \n \"uri\": \"/v1/merchants?limit=10&offset=0\", \n \"limit\": 10, \n \"offset\": 0, \n \"total\": 1, \n \"next_uri\": null, \n \"last_uri\": \"/v1/merchants?limit=10&offset=0\"\n}" http_version: !!null recorded_at: Fri, 06 Jul 2012 04:23:38 GMT - request: method: post uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/cards body: encoding: UTF-8 string: ! '{"card_number":"4111111111111111","expiration_month":"12","expiration_year":"2015"}' headers: User-Agent: - balanced-ruby/0.3.5 Authorization: - Basic M2RkZGE5MDBjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6 Content-Type: - application/json response: status: code: 201 message: !!null headers: content-type: - application/json date: - Fri, 06 Jul 2012 04:23:39 GMT server: - nginx/1.0.14 x-balanced-guru: - OHM5c42bc46c72211e1a29c026ba7e5e72e x-balanced-marketplace: - TEST-MP1TeztGGOGLPPCo2cLKo6SZ x-balanced-merchant: - TEST-MR1StaiKg1wIPZi4BqZBFKgK x-balanced-version: - '' content-length: - '371' connection: - Close body: encoding: US-ASCII string: ! "{\n \"card_type\": \"visa\", \n \"account\": null, \n \"name\": null, \n \"expiration_year\": 2015, \n \"created_at\": \"2012-07-06T04:23:38.960018Z\", \n \"brand\": \"Visa\", \n \"uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/cards/CC2OcGLXK66LIXOZ54LkmMGi\", \n \"expiration_month\": 12, \n \"is_valid\": true, \n \"meta\": {}, \n \ \"last_four\": 1111, \n \"id\": \"CC2OcGLXK66LIXOZ54LkmMGi\"\n}" http_version: !!null recorded_at: Fri, 06 Jul 2012 04:23:39 GMT - request: method: post uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts body: encoding: UTF-8 string: ! '{"email_address":"buyer6@example.org","card_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/cards/CC2OcGLXK66LIXOZ54LkmMGi","name":"Jack Q Buyer"}' headers: User-Agent: - balanced-ruby/0.3.5 Authorization: - Basic M2RkZGE5MDBjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6 Content-Type: - application/json response: status: code: 201 message: !!null headers: content-type: - application/json date: - Fri, 06 Jul 2012 04:23:39 GMT server: - nginx/1.0.14 x-balanced-guru: - OHM5c9fadcac72211e1a977026ba7e239a9 x-balanced-marketplace: - TEST-MP1TeztGGOGLPPCo2cLKo6SZ x-balanced-merchant: - TEST-MR1StaiKg1wIPZi4BqZBFKgK x-balanced-version: - '' content-length: - '1077' connection: - Close body: encoding: US-ASCII string: ! "{\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/holds\", \n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n ], \n \"created_at\": \"2012-07-06T04:23:39.457523Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ\", \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/bank_accounts\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/refunds\", \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/debits\", \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/transactions\", \n \"email_address\": \"buyer6@example.org\", \n \"id\": \"AC2OLMLTUfz4qG71JdAJ9TsZ\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/credits\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/cards\"\n}" http_version: !!null recorded_at: Fri, 06 Jul 2012 04:23:40 GMT - request: method: put uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ body: encoding: UTF-8 string: ! '{"holds_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/holds","name":"Jack Q Buyer","roles":["buyer"],"created_at":"2012-07-06T04:23:39.457523Z","bank_accounts_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/bank_accounts","refunds_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/refunds","meta":{},"debits_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/debits","transactions_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/transactions","email_address":"buyer6@example.org","id":"AC2OLMLTUfz4qG71JdAJ9TsZ","credits_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/credits","cards_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/cards","merchant":{"type":"person","name":"Billy Jones","street_address":"801 High St.","postal_code":"94301","country":"USA","dob":"1842-01","phone_number":"+16505551234"}}' headers: User-Agent: - balanced-ruby/0.3.5 Authorization: - Basic M2RkZGE5MDBjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6 Content-Type: - application/json response: status: code: 200 message: !!null headers: content-type: - application/json date: - Fri, 06 Jul 2012 04:23:40 GMT server: - nginx/1.0.14 x-balanced-guru: - OHM5d39803ac72211e19eae026ba7e5e72e x-balanced-marketplace: - TEST-MP1TeztGGOGLPPCo2cLKo6SZ x-balanced-merchant: - TEST-MR1StaiKg1wIPZi4BqZBFKgK x-balanced-version: - '' content-length: - '1094' connection: - Close body: encoding: US-ASCII string: ! "{\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/holds\", \n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"merchant\", \n \"buyer\"\n \ ], \n \"created_at\": \"2012-07-06T04:23:39.457523Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ\", \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/bank_accounts\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/refunds\", \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/debits\", \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/transactions\", \n \"email_address\": \"buyer6@example.org\", \n \"id\": \"AC2OLMLTUfz4qG71JdAJ9TsZ\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/credits\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/cards\"\n}" http_version: !!null recorded_at: Fri, 06 Jul 2012 04:23:41 GMT recorded_with: VCR 2.2.2