diff --git a/tests/py/fixtures/TestCardHolds.yml b/tests/py/fixtures/TestCardHolds.yml new file mode 100644 index 0000000000..6fcf2aedea --- /dev/null +++ b/tests/py/fixtures/TestCardHolds.yml @@ -0,0 +1,1034 @@ +interactions: +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU3KXdyvNSDeyLP3pAWr9hqd + response: + body: + string: !!binary | + H4sIAAAAAAAAA41Uy27bMBC85ysEnWvLipQ29i1oby2CAG3RokUh0CQLEZFIhY+ggqF/79KWZJpU + wlx02J0ZcmdHPFwlSYqN0qKlUqW75DcUkuRw/EKLo5ZClZumeTfVGsYfLXQCAUwJI7EPhDqhSjOO + NBN8VBlFhlnNdARpSiqkAZFeb/Jytfmw2uTf8ptdWezKcp0Xxfvb7a90pmBJX6UU622+uSlKh0LE + vmoF17U/DCP22I/fi88/Sf98//UT7b88FN3dD7mtn8j5zK4W3B8wrSX9a+nZ7GAWVwKjcY24rpRG + 2lgjUy5WLdK4Ph/XUo08i+mTheZp4KCdradI+qMhQiRV3qYw070HhD3BSun1cjkPy/bivhcg0glo + NBUWZKGJheFa9m43GGRvFNxDqWopdUrxqkFKl/6YtEWsCYrsInADnPXH5sdO6oT3HP31HOE0A9eO + eVbZYV7s2B/GFTlEjCSpatGQ4yqdKDhkRobMwZ2S7GjsEX+sED6aFJG5hAZKhO5ZTGLELHDdv/UF + H5xfesEM+k9TySEFbxsmhAeXsrZFLDlBAiZhqjOaRsgzKuBribhC2D5eEY0LZKADj4ThsRkm0AL7 + GV5m1ESuIOkECxSEJKe3/ZVwjpiAC08tieZpAsH/NVwN/wHQiK4AUwYAAA== + headers: + content-encoding: [gzip] + content-length: ['499'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU3KXdyvNSDeyLP3pAWr9hqd/cards?limit=10&offset=0 + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VVW2+bMBR+76+weNhTmwBOyEWqprSbVq1NWq1dO3WakIPtxiqxmW2yoCr/fbaB + AL1o08YDEud+vvOdw9MBAF6CJFbeFHw3HwA8ubcRp4w/WnEtsJa50mJNpJF6p1/h+TdcbBbXH0hx + cQWz2Z2crH5ir/LfHdaBKOMPRGaScW0dx8mI+oMQwmiI6HicQAKjhPrhaBCRBEUDihMKI4yTkAQU + Tow5SSYUUor9IQqjkbcPnGw2sSQqT21cnqfpXsPz9bIsc9t6AvM03mij4kwojdJ4jXSysrVx0ejJ + NmMSaSZ4vBZcW33g7zOsiUZdcCR5MLYOGsFpruxHbW6xY7qItfjlLNoKhLFpQsWhVZyILQhfQsiw + i3sK52cn6i7anKELqPKLW3xzu7yctBBBmjwIWVhroVcGgn3BusiIFSeSYKa7INb9dzBcIv4Yc7R2 + Xp+v5pdfPs0W4PRsdv0RnMwW54dg0Zv1ungqLQnRDZ4FUY3BUiLu+rhlCjXiPMOmahwjx47QDwZH + /ujID26C4XQAp4NhbzwMQhjct1KVkBn7NjkNwEbS7qFkMbHIviIObD4TGcwR4+Dald4ejKGGds2/ + Os+KOonAzmbih4Hf9k5EzrUs4srA5n+xGQniMSZLM44p0DInDX9L2DvzaPGxIMjuYOiHDSHNMjxr + 02Mq3hDJKCMW9k4CS/796nhl76BiIjBjAmV7wFYPsABcaOBY0hq4rb5i0xRQlKqm/pUk1KLSd7el + /xfEleQPJBhEcBLA+3I3dgbKHxYtr7OHXoqUY1G/vlQm9xt3qiztfcrWTB8H/jtBqSL6uJ6hx8m2 + e1a8pqnqDP57cJfVFFofFK/MbiTVQL1Mkg0TuT3ADQs8Lcy5sn4lUzzK5P83bGB0x/rZxS//Cz3M + VJZrs8fNOJ/cVHsM7/p7bVVQqWn/J1qjqPxq7a5alyqRdY1XInX/opo5rVQtfSeZW6A3fCqd7fBg + 9xv4QHhu7QYAAA== + headers: + content-encoding: [gzip] + content-length: ['751'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: '{"amount": 2091, "meta": {"state": "new", "participant_id": 2}, "description": + "janet"}' + headers: {} + method: POST + uri: https://api.balancedpayments.com:443/cards/CC3MHBsW6vHaL3suLVdTVbO9/card_holds + response: + body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"card\": + \"CC3MHBsW6vHaL3suLVdTVbO9\",\n \"debit\": null\n },\n \"updated_at\": + \"2014-07-28T12:44:02.482667Z\",\n \"created_at\": \"2014-07-28T12:44:02.246126Z\",\n + \ \"transaction_number\": \"HL223-221-7905\",\n \"expires_at\": \"2014-08-04T12:44:02.393923Z\",\n + \ \"failure_reason\": null,\n \"currency\": \"USD\",\n \"amount\": + 2091,\n \"meta\": {\n \"state\": \"new\",\n \"participant_id\": + \"2\"\n },\n \"href\": \"/card_holds/HL6DNvcbs8HPF3Hk2S7ktMY5\",\n + \ \"failure_reason_code\": null,\n \"voided_at\": null,\n \"id\": + \"HL6DNvcbs8HPF3Hk2S7ktMY5\"\n }\n ],\n \"links\": {\n \"card_holds.events\": + \"/card_holds/{card_holds.id}/events\",\n \"card_holds.card\": \"/cards/{card_holds.card}\",\n + \ \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\",\n \"card_holds.debit\": + \"/debits/{card_holds.debit}\"\n }\n}"} + headers: + content-length: ['944'] + content-type: [application/json] + status: {code: 201, message: CREATED} +- request: + body: '{"amount": 1000, "description": "janet"}' + headers: {} + method: POST + uri: https://api.balancedpayments.com:443/card_holds/HL6DNvcbs8HPF3Hk2S7ktMY5/debits + response: + body: {string: !!python/unicode "{\n \"debits\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"customer\": + \"CU3KXdyvNSDeyLP3pAWr9hqd\",\n \"source\": \"CC3MHBsW6vHaL3suLVdTVbO9\",\n + \ \"order\": null,\n \"dispute\": null\n },\n \"updated_at\": + \"2014-07-28T12:44:03.374049Z\",\n \"created_at\": \"2014-07-28T12:44:02.942161Z\",\n + \ \"transaction_number\": \"W481-816-9765\",\n \"failure_reason\": + null,\n \"currency\": \"USD\",\n \"amount\": 1000,\n \"failure_reason_code\": + null,\n \"meta\": {\n \"state\": \"new\",\n \"participant_id\": + \"2\"\n },\n \"href\": \"/debits/WD6EAiSkHLrwka8kNBgz40yd\",\n \"appears_on_statement_as\": + \"BAL*example.com\",\n \"id\": \"WD6EAiSkHLrwka8kNBgz40yd\"\n }\n + \ ],\n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\",\n + \ \"debits.dispute\": \"/disputes/{debits.dispute}\",\n \"debits.source\": + \"/resources/{debits.source}\",\n \"debits.order\": \"/orders/{debits.order}\",\n + \ \"debits.refunds\": \"/debits/{debits.id}/refunds\",\n \"debits.events\": + \"/debits/{debits.id}/events\"\n }\n}"} + headers: + content-length: ['1063'] + content-type: [application/json] + status: {code: 201, message: CREATED} +- request: + body: '{"status": "succeeded", "description": "janet", "amount": 2091, "created_at": + "2014-07-28T12:44:02.246126Z", "card_href": "/cards/CC3MHBsW6vHaL3suLVdTVbO9", + "updated_at": "2014-07-28T12:44:02.482667Z", "expires_at": "2014-08-04T12:44:02.393923Z", + "failure_reason": null, "currency": "USD", "transaction_number": "HL223-221-7905", + "meta": {"state": "captured", "participant_id": "2"}, "debit": null, "failure_reason_code": + null, "voided_at": null, "id": "HL6DNvcbs8HPF3Hk2S7ktMY5"}' + headers: {} + method: PUT + uri: https://api.balancedpayments.com:443/card_holds/HL6DNvcbs8HPF3Hk2S7ktMY5 + response: + body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"card\": + \"CC3MHBsW6vHaL3suLVdTVbO9\",\n \"debit\": \"WD6EAiSkHLrwka8kNBgz40yd\"\n + \ },\n \"updated_at\": \"2014-07-28T12:44:03.779589Z\",\n \"created_at\": + \"2014-07-28T12:44:02.246126Z\",\n \"transaction_number\": \"HL223-221-7905\",\n + \ \"expires_at\": \"2014-08-04T12:44:02.393923Z\",\n \"failure_reason\": + null,\n \"currency\": \"USD\",\n \"amount\": 2091,\n \"meta\": + {\n \"state\": \"captured\",\n \"participant_id\": \"2\"\n },\n + \ \"href\": \"/card_holds/HL6DNvcbs8HPF3Hk2S7ktMY5\",\n \"failure_reason_code\": + null,\n \"voided_at\": null,\n \"id\": \"HL6DNvcbs8HPF3Hk2S7ktMY5\"\n + \ }\n ],\n \"links\": {\n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\",\n + \ \"card_holds.card\": \"/cards/{card_holds.card}\",\n \"card_holds.debits\": + \"/card_holds/{card_holds.id}/debits\",\n \"card_holds.debit\": \"/debits/{card_holds.debit}\"\n + \ }\n}"} + headers: + content-length: ['971'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU3KXdyvNSDeyLP3pAWr9hqd + response: + body: + string: !!binary | + H4sIAAAAAAAAA41Uy27bMBC85ysEnWvLipQ29i1oby2CAG3RokUh0CQLEZFIhY+ggqF/79KWZJpU + wlx02J0ZcmdHPFwlSYqN0qKlUqW75DcUkuRw/EKLo5ZClZumeTfVGsYfLXQCAUwJI7EPhDqhSjOO + NBN8VBlFhlnNdARpSiqkAZFeb/Jytfmw2uTf8ptdWezKcp0Xxfvb7a90pmBJX6UU622+uSlKh0LE + vmoF17U/DCP22I/fi88/Sf98//UT7b88FN3dD7mtn8j5zK4W3B8wrSX9a+nZ7GAWVwKjcY24rpRG + 2lgjUy5WLdK4Ph/XUo08i+mTheZp4KCdradI+qMhQiRV3qYw070HhD3BSun1cjkPy/bivhcg0glo + NBUWZKGJheFa9m43GGRvFNxDqWopdUrxqkFKl/6YtEWsCYrsInADnPXH5sdO6oT3HP31HOE0A9eO + eVbZYV7s2B/GFTlEjCSpatGQ4yqdKDhkRobMwZ2S7GjsEX+sED6aFJG5hAZKhO5ZTGLELHDdv/UF + H5xfesEM+k9TySEFbxsmhAeXsrZFLDlBAiZhqjOaRsgzKuBribhC2D5eEY0LZKADj4ThsRkm0AL7 + GV5m1ESuIOkECxSEJKe3/ZVwjpiAC08tieZpAsH/NVwN/wHQiK4AUwYAAA== + headers: + content-encoding: [gzip] + content-length: ['499'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU3KXdyvNSDeyLP3pAWr9hqd/cards?limit=10&offset=0 + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VVW2+bMBR+76+weNhTmwBOyEWqprSbVq1NWq1dO3WakIPtxiqxmW2yoCr/fbaB + AL1o08YDEud+vvOdw9MBAF6CJFbeFHw3HwA8ubcRp4w/WnEtsJa50mJNpJF6p1/h+TdcbBbXH0hx + cQWz2Z2crH5ir/LfHdaBKOMPRGaScW0dx8mI+oMQwmiI6HicQAKjhPrhaBCRBEUDihMKI4yTkAQU + Tow5SSYUUor9IQqjkbcPnGw2sSQqT21cnqfpXsPz9bIsc9t6AvM03mij4kwojdJ4jXSysrVx0ejJ + NmMSaSZ4vBZcW33g7zOsiUZdcCR5MLYOGsFpruxHbW6xY7qItfjlLNoKhLFpQsWhVZyILQhfQsiw + i3sK52cn6i7anKELqPKLW3xzu7yctBBBmjwIWVhroVcGgn3BusiIFSeSYKa7INb9dzBcIv4Yc7R2 + Xp+v5pdfPs0W4PRsdv0RnMwW54dg0Zv1ungqLQnRDZ4FUY3BUiLu+rhlCjXiPMOmahwjx47QDwZH + /ujID26C4XQAp4NhbzwMQhjct1KVkBn7NjkNwEbS7qFkMbHIviIObD4TGcwR4+Dald4ejKGGds2/ + Os+KOonAzmbih4Hf9k5EzrUs4srA5n+xGQniMSZLM44p0DInDX9L2DvzaPGxIMjuYOiHDSHNMjxr + 02Mq3hDJKCMW9k4CS/796nhl76BiIjBjAmV7wFYPsABcaOBY0hq4rb5i0xRQlKqm/pUk1KLSd7el + /xfEleQPJBhEcBLA+3I3dgbKHxYtr7OHXoqUY1G/vlQm9xt3qiztfcrWTB8H/jtBqSL6uJ6hx8m2 + e1a8pqnqDP57cJfVFFofFK/MbiTVQL1Mkg0TuT3ADQs8Lcy5sn4lUzzK5P83bGB0x/rZxS//Cz3M + VJZrs8fNOJ/cVHsM7/p7bVVQqWn/J1qjqPxq7a5alyqRdY1XInX/opo5rVQtfSeZW6A3fCqd7fBg + 9xv4QHhu7QYAAA== + headers: + content-encoding: [gzip] + content-length: ['751'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: '{"amount": 2091, "meta": {"state": "new", "participant_id": 2}, "description": + "janet"}' + headers: {} + method: POST + uri: https://api.balancedpayments.com:443/cards/CC3MHBsW6vHaL3suLVdTVbO9/card_holds + response: + body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"card\": + \"CC3MHBsW6vHaL3suLVdTVbO9\",\n \"debit\": null\n },\n \"updated_at\": + \"2014-07-28T12:44:05.151262Z\",\n \"created_at\": \"2014-07-28T12:44:04.938351Z\",\n + \ \"transaction_number\": \"HL278-301-3242\",\n \"expires_at\": \"2014-08-04T12:44:05.064676Z\",\n + \ \"failure_reason\": null,\n \"currency\": \"USD\",\n \"amount\": + 2091,\n \"meta\": {\n \"state\": \"new\",\n \"participant_id\": + \"2\"\n },\n \"href\": \"/card_holds/HL6GP82LFspeIjW9XWztLEwE\",\n + \ \"failure_reason_code\": null,\n \"voided_at\": null,\n \"id\": + \"HL6GP82LFspeIjW9XWztLEwE\"\n }\n ],\n \"links\": {\n \"card_holds.events\": + \"/card_holds/{card_holds.id}/events\",\n \"card_holds.card\": \"/cards/{card_holds.card}\",\n + \ \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\",\n \"card_holds.debit\": + \"/debits/{card_holds.debit}\"\n }\n}"} + headers: + content-length: ['944'] + content-type: [application/json] + status: {code: 201, message: CREATED} +- request: + body: '{"amount": 2091, "description": "janet"}' + headers: {} + method: POST + uri: https://api.balancedpayments.com:443/card_holds/HL6GP82LFspeIjW9XWztLEwE/debits + response: + body: {string: !!python/unicode "{\n \"debits\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"customer\": + \"CU3KXdyvNSDeyLP3pAWr9hqd\",\n \"source\": \"CC3MHBsW6vHaL3suLVdTVbO9\",\n + \ \"order\": null,\n \"dispute\": null\n },\n \"updated_at\": + \"2014-07-28T12:44:06.139206Z\",\n \"created_at\": \"2014-07-28T12:44:05.676736Z\",\n + \ \"transaction_number\": \"W013-682-4382\",\n \"failure_reason\": + null,\n \"currency\": \"USD\",\n \"amount\": 2091,\n \"failure_reason_code\": + null,\n \"meta\": {\n \"state\": \"new\",\n \"participant_id\": + \"2\"\n },\n \"href\": \"/debits/WD6HEBOYVE3p11E9idopswsd\",\n \"appears_on_statement_as\": + \"BAL*example.com\",\n \"id\": \"WD6HEBOYVE3p11E9idopswsd\"\n }\n + \ ],\n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\",\n + \ \"debits.dispute\": \"/disputes/{debits.dispute}\",\n \"debits.source\": + \"/resources/{debits.source}\",\n \"debits.order\": \"/orders/{debits.order}\",\n + \ \"debits.refunds\": \"/debits/{debits.id}/refunds\",\n \"debits.events\": + \"/debits/{debits.id}/events\"\n }\n}"} + headers: + content-length: ['1063'] + content-type: [application/json] + status: {code: 201, message: CREATED} +- request: + body: '{"status": "succeeded", "description": "janet", "amount": 2091, "created_at": + "2014-07-28T12:44:04.938351Z", "card_href": "/cards/CC3MHBsW6vHaL3suLVdTVbO9", + "updated_at": "2014-07-28T12:44:05.151262Z", "expires_at": "2014-08-04T12:44:05.064676Z", + "failure_reason": null, "currency": "USD", "transaction_number": "HL278-301-3242", + "meta": {"state": "captured", "participant_id": "2"}, "debit": null, "failure_reason_code": + null, "voided_at": null, "id": "HL6GP82LFspeIjW9XWztLEwE"}' + headers: {} + method: PUT + uri: https://api.balancedpayments.com:443/card_holds/HL6GP82LFspeIjW9XWztLEwE + response: + body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"card\": + \"CC3MHBsW6vHaL3suLVdTVbO9\",\n \"debit\": \"WD6HEBOYVE3p11E9idopswsd\"\n + \ },\n \"updated_at\": \"2014-07-28T12:44:06.588345Z\",\n \"created_at\": + \"2014-07-28T12:44:04.938351Z\",\n \"transaction_number\": \"HL278-301-3242\",\n + \ \"expires_at\": \"2014-08-04T12:44:05.064676Z\",\n \"failure_reason\": + null,\n \"currency\": \"USD\",\n \"amount\": 2091,\n \"meta\": + {\n \"state\": \"captured\",\n \"participant_id\": \"2\"\n },\n + \ \"href\": \"/card_holds/HL6GP82LFspeIjW9XWztLEwE\",\n \"failure_reason_code\": + null,\n \"voided_at\": null,\n \"id\": \"HL6GP82LFspeIjW9XWztLEwE\"\n + \ }\n ],\n \"links\": {\n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\",\n + \ \"card_holds.card\": \"/cards/{card_holds.card}\",\n \"card_holds.debits\": + \"/card_holds/{card_holds.id}/debits\",\n \"card_holds.debit\": \"/debits/{card_holds.debit}\"\n + \ }\n}"} + headers: + content-length: ['971'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU3KXdyvNSDeyLP3pAWr9hqd + response: + body: + string: !!binary | + H4sIAAAAAAAAA41Uy27bMBC85ysEnWvLipQ29i1oby2CAG3RokUh0CQLEZFIhY+ggqF/79KWZJpU + wlx02J0ZcmdHPFwlSYqN0qKlUqW75DcUkuRw/EKLo5ZClZumeTfVGsYfLXQCAUwJI7EPhDqhSjOO + NBN8VBlFhlnNdARpSiqkAZFeb/Jytfmw2uTf8ptdWezKcp0Xxfvb7a90pmBJX6UU622+uSlKh0LE + vmoF17U/DCP22I/fi88/Sf98//UT7b88FN3dD7mtn8j5zK4W3B8wrSX9a+nZ7GAWVwKjcY24rpRG + 2lgjUy5WLdK4Ph/XUo08i+mTheZp4KCdradI+qMhQiRV3qYw070HhD3BSun1cjkPy/bivhcg0glo + NBUWZKGJheFa9m43GGRvFNxDqWopdUrxqkFKl/6YtEWsCYrsInADnPXH5sdO6oT3HP31HOE0A9eO + eVbZYV7s2B/GFTlEjCSpatGQ4yqdKDhkRobMwZ2S7GjsEX+sED6aFJG5hAZKhO5ZTGLELHDdv/UF + H5xfesEM+k9TySEFbxsmhAeXsrZFLDlBAiZhqjOaRsgzKuBribhC2D5eEY0LZKADj4ThsRkm0AL7 + GV5m1ESuIOkECxSEJKe3/ZVwjpiAC08tieZpAsH/NVwN/wHQiK4AUwYAAA== + headers: + content-encoding: [gzip] + content-length: ['499'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU3KXdyvNSDeyLP3pAWr9hqd/cards?limit=10&offset=0 + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VVW2+bMBR+76+weNhTmwBOyEWqprSbVq1NWq1dO3WakIPtxiqxmW2yoCr/fbaB + AL1o08YDEud+vvOdw9MBAF6CJFbeFHw3HwA8ubcRp4w/WnEtsJa50mJNpJF6p1/h+TdcbBbXH0hx + cQWz2Z2crH5ir/LfHdaBKOMPRGaScW0dx8mI+oMQwmiI6HicQAKjhPrhaBCRBEUDihMKI4yTkAQU + Tow5SSYUUor9IQqjkbcPnGw2sSQqT21cnqfpXsPz9bIsc9t6AvM03mij4kwojdJ4jXSysrVx0ejJ + NmMSaSZ4vBZcW33g7zOsiUZdcCR5MLYOGsFpruxHbW6xY7qItfjlLNoKhLFpQsWhVZyILQhfQsiw + i3sK52cn6i7anKELqPKLW3xzu7yctBBBmjwIWVhroVcGgn3BusiIFSeSYKa7INb9dzBcIv4Yc7R2 + Xp+v5pdfPs0W4PRsdv0RnMwW54dg0Zv1ungqLQnRDZ4FUY3BUiLu+rhlCjXiPMOmahwjx47QDwZH + /ujID26C4XQAp4NhbzwMQhjct1KVkBn7NjkNwEbS7qFkMbHIviIObD4TGcwR4+Dald4ejKGGds2/ + Os+KOonAzmbih4Hf9k5EzrUs4srA5n+xGQniMSZLM44p0DInDX9L2DvzaPGxIMjuYOiHDSHNMjxr + 02Mq3hDJKCMW9k4CS/796nhl76BiIjBjAmV7wFYPsABcaOBY0hq4rb5i0xRQlKqm/pUk1KLSd7el + /xfEleQPJBhEcBLA+3I3dgbKHxYtr7OHXoqUY1G/vlQm9xt3qiztfcrWTB8H/jtBqSL6uJ6hx8m2 + e1a8pqnqDP57cJfVFFofFK/MbiTVQL1Mkg0TuT3ADQs8Lcy5sn4lUzzK5P83bGB0x/rZxS//Cz3M + VJZrs8fNOJ/cVHsM7/p7bVVQqWn/J1qjqPxq7a5alyqRdY1XInX/opo5rVQtfSeZW6A3fCqd7fBg + 9xv4QHhu7QYAAA== + headers: + content-encoding: [gzip] + content-length: ['751'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: '{"amount": 2091, "meta": {"state": "new", "participant_id": 2}, "description": + "janet"}' + headers: {} + method: POST + uri: https://api.balancedpayments.com:443/cards/CC3MHBsW6vHaL3suLVdTVbO9/card_holds + response: + body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"card\": + \"CC3MHBsW6vHaL3suLVdTVbO9\",\n \"debit\": null\n },\n \"updated_at\": + \"2014-07-28T12:44:08.073612Z\",\n \"created_at\": \"2014-07-28T12:44:07.849448Z\",\n + \ \"transaction_number\": \"HL787-086-5782\",\n \"expires_at\": \"2014-08-04T12:44:07.976594Z\",\n + \ \"failure_reason\": null,\n \"currency\": \"USD\",\n \"amount\": + 2091,\n \"meta\": {\n \"state\": \"new\",\n \"participant_id\": + \"2\"\n },\n \"href\": \"/card_holds/HL6K6eJyyZDc7Wa2YNTWgl1P\",\n + \ \"failure_reason_code\": null,\n \"voided_at\": null,\n \"id\": + \"HL6K6eJyyZDc7Wa2YNTWgl1P\"\n }\n ],\n \"links\": {\n \"card_holds.events\": + \"/card_holds/{card_holds.id}/events\",\n \"card_holds.card\": \"/cards/{card_holds.card}\",\n + \ \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\",\n \"card_holds.debit\": + \"/debits/{card_holds.debit}\"\n }\n}"} + headers: + content-length: ['944'] + content-type: [application/json] + status: {code: 201, message: CREATED} +- request: + body: '{"amount": 1576, "description": "janet"}' + headers: {} + method: POST + uri: https://api.balancedpayments.com:443/card_holds/HL6K6eJyyZDc7Wa2YNTWgl1P/debits + response: + body: {string: !!python/unicode "{\n \"debits\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"customer\": + \"CU3KXdyvNSDeyLP3pAWr9hqd\",\n \"source\": \"CC3MHBsW6vHaL3suLVdTVbO9\",\n + \ \"order\": null,\n \"dispute\": null\n },\n \"updated_at\": + \"2014-07-28T12:44:08.888162Z\",\n \"created_at\": \"2014-07-28T12:44:08.477253Z\",\n + \ \"transaction_number\": \"W346-884-7108\",\n \"failure_reason\": + null,\n \"currency\": \"USD\",\n \"amount\": 1576,\n \"failure_reason_code\": + null,\n \"meta\": {\n \"state\": \"new\",\n \"participant_id\": + \"2\"\n },\n \"href\": \"/debits/WD6KNTVQcbvgalfEe3OD7CRv\",\n \"appears_on_statement_as\": + \"BAL*example.com\",\n \"id\": \"WD6KNTVQcbvgalfEe3OD7CRv\"\n }\n + \ ],\n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\",\n + \ \"debits.dispute\": \"/disputes/{debits.dispute}\",\n \"debits.source\": + \"/resources/{debits.source}\",\n \"debits.order\": \"/orders/{debits.order}\",\n + \ \"debits.refunds\": \"/debits/{debits.id}/refunds\",\n \"debits.events\": + \"/debits/{debits.id}/events\"\n }\n}"} + headers: + content-length: ['1063'] + content-type: [application/json] + status: {code: 201, message: CREATED} +- request: + body: '{"status": "succeeded", "description": "janet", "amount": 2091, "created_at": + "2014-07-28T12:44:07.849448Z", "card_href": "/cards/CC3MHBsW6vHaL3suLVdTVbO9", + "updated_at": "2014-07-28T12:44:08.073612Z", "expires_at": "2014-08-04T12:44:07.976594Z", + "failure_reason": null, "currency": "USD", "transaction_number": "HL787-086-5782", + "meta": {"state": "captured", "participant_id": "2"}, "debit": null, "failure_reason_code": + null, "voided_at": null, "id": "HL6K6eJyyZDc7Wa2YNTWgl1P"}' + headers: {} + method: PUT + uri: https://api.balancedpayments.com:443/card_holds/HL6K6eJyyZDc7Wa2YNTWgl1P + response: + body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"card\": + \"CC3MHBsW6vHaL3suLVdTVbO9\",\n \"debit\": \"WD6KNTVQcbvgalfEe3OD7CRv\"\n + \ },\n \"updated_at\": \"2014-07-28T12:44:09.290268Z\",\n \"created_at\": + \"2014-07-28T12:44:07.849448Z\",\n \"transaction_number\": \"HL787-086-5782\",\n + \ \"expires_at\": \"2014-08-04T12:44:07.976594Z\",\n \"failure_reason\": + null,\n \"currency\": \"USD\",\n \"amount\": 2091,\n \"meta\": + {\n \"state\": \"captured\",\n \"participant_id\": \"2\"\n },\n + \ \"href\": \"/card_holds/HL6K6eJyyZDc7Wa2YNTWgl1P\",\n \"failure_reason_code\": + null,\n \"voided_at\": null,\n \"id\": \"HL6K6eJyyZDc7Wa2YNTWgl1P\"\n + \ }\n ],\n \"links\": {\n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\",\n + \ \"card_holds.card\": \"/cards/{card_holds.card}\",\n \"card_holds.debits\": + \"/card_holds/{card_holds.id}/debits\",\n \"card_holds.debit\": \"/debits/{card_holds.debit}\"\n + \ }\n}"} + headers: + content-length: ['971'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU3KXdyvNSDeyLP3pAWr9hqd + response: + body: + string: !!binary | + H4sIAAAAAAAAA41Uy27bMBC85ysEnWvLipQ29i1oby2CAG3RokUh0CQLEZFIhY+ggqF/79KWZJpU + wlx02J0ZcmdHPFwlSYqN0qKlUqW75DcUkuRw/EKLo5ZClZumeTfVGsYfLXQCAUwJI7EPhDqhSjOO + NBN8VBlFhlnNdARpSiqkAZFeb/Jytfmw2uTf8ptdWezKcp0Xxfvb7a90pmBJX6UU622+uSlKh0LE + vmoF17U/DCP22I/fi88/Sf98//UT7b88FN3dD7mtn8j5zK4W3B8wrSX9a+nZ7GAWVwKjcY24rpRG + 2lgjUy5WLdK4Ph/XUo08i+mTheZp4KCdradI+qMhQiRV3qYw070HhD3BSun1cjkPy/bivhcg0glo + NBUWZKGJheFa9m43GGRvFNxDqWopdUrxqkFKl/6YtEWsCYrsInADnPXH5sdO6oT3HP31HOE0A9eO + eVbZYV7s2B/GFTlEjCSpatGQ4yqdKDhkRobMwZ2S7GjsEX+sED6aFJG5hAZKhO5ZTGLELHDdv/UF + H5xfesEM+k9TySEFbxsmhAeXsrZFLDlBAiZhqjOaRsgzKuBribhC2D5eEY0LZKADj4ThsRkm0AL7 + GV5m1ESuIOkECxSEJKe3/ZVwjpiAC08tieZpAsH/NVwN/wHQiK4AUwYAAA== + headers: + content-encoding: [gzip] + content-length: ['499'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU3KXdyvNSDeyLP3pAWr9hqd/cards?limit=10&offset=0 + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VVW2+bMBR+76+weNhTmwBOyEWqprSbVq1NWq1dO3WakIPtxiqxmW2yoCr/fbaB + AL1o08YDEud+vvOdw9MBAF6CJFbeFHw3HwA8ubcRp4w/WnEtsJa50mJNpJF6p1/h+TdcbBbXH0hx + cQWz2Z2crH5ir/LfHdaBKOMPRGaScW0dx8mI+oMQwmiI6HicQAKjhPrhaBCRBEUDihMKI4yTkAQU + Tow5SSYUUor9IQqjkbcPnGw2sSQqT21cnqfpXsPz9bIsc9t6AvM03mij4kwojdJ4jXSysrVx0ejJ + NmMSaSZ4vBZcW33g7zOsiUZdcCR5MLYOGsFpruxHbW6xY7qItfjlLNoKhLFpQsWhVZyILQhfQsiw + i3sK52cn6i7anKELqPKLW3xzu7yctBBBmjwIWVhroVcGgn3BusiIFSeSYKa7INb9dzBcIv4Yc7R2 + Xp+v5pdfPs0W4PRsdv0RnMwW54dg0Zv1ungqLQnRDZ4FUY3BUiLu+rhlCjXiPMOmahwjx47QDwZH + /ujID26C4XQAp4NhbzwMQhjct1KVkBn7NjkNwEbS7qFkMbHIviIObD4TGcwR4+Dald4ejKGGds2/ + Os+KOonAzmbih4Hf9k5EzrUs4srA5n+xGQniMSZLM44p0DInDX9L2DvzaPGxIMjuYOiHDSHNMjxr + 02Mq3hDJKCMW9k4CS/796nhl76BiIjBjAmV7wFYPsABcaOBY0hq4rb5i0xRQlKqm/pUk1KLSd7el + /xfEleQPJBhEcBLA+3I3dgbKHxYtr7OHXoqUY1G/vlQm9xt3qiztfcrWTB8H/jtBqSL6uJ6hx8m2 + e1a8pqnqDP57cJfVFFofFK/MbiTVQL1Mkg0TuT3ADQs8Lcy5sn4lUzzK5P83bGB0x/rZxS//Cz3M + VJZrs8fNOJ/cVHsM7/p7bVVQqWn/J1qjqPxq7a5alyqRdY1XInX/opo5rVQtfSeZW6A3fCqd7fBg + 9xv4QHhu7QYAAA== + headers: + content-encoding: [gzip] + content-length: ['751'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: '{"amount": 2091, "meta": {"state": "new", "participant_id": 2}, "description": + "janet"}' + headers: {} + method: POST + uri: https://api.balancedpayments.com:443/cards/CC3MHBsW6vHaL3suLVdTVbO9/card_holds + response: + body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"card\": + \"CC3MHBsW6vHaL3suLVdTVbO9\",\n \"debit\": null\n },\n \"updated_at\": + \"2014-07-28T12:44:10.526231Z\",\n \"created_at\": \"2014-07-28T12:44:10.311057Z\",\n + \ \"transaction_number\": \"HL886-348-7865\",\n \"expires_at\": \"2014-08-04T12:44:10.436799Z\",\n + \ \"failure_reason\": null,\n \"currency\": \"USD\",\n \"amount\": + 2091,\n \"meta\": {\n \"state\": \"new\",\n \"participant_id\": + \"2\"\n },\n \"href\": \"/card_holds/HL6MShgF10sXHw6r21W3OTLX\",\n + \ \"failure_reason_code\": null,\n \"voided_at\": null,\n \"id\": + \"HL6MShgF10sXHw6r21W3OTLX\"\n }\n ],\n \"links\": {\n \"card_holds.events\": + \"/card_holds/{card_holds.id}/events\",\n \"card_holds.card\": \"/cards/{card_holds.card}\",\n + \ \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\",\n \"card_holds.debit\": + \"/debits/{card_holds.debit}\"\n }\n}"} + headers: + content-length: ['944'] + content-type: [application/json] + status: {code: 201, message: CREATED} +- request: + body: '{"amount": 2092, "description": "janet"}' + headers: {} + method: POST + uri: https://api.balancedpayments.com:443/card_holds/HL6MShgF10sXHw6r21W3OTLX/debits + response: + body: {string: !!python/unicode "{\n \"errors\": [\n {\n \"status\": + \"Bad Request\",\n \"category_code\": \"request\",\n \"additional\": + null,\n \"status_code\": 400,\n \"category_type\": \"request\",\n + \ \"extras\": {\n \"amount\": \"\\\"2092\\\" must be <= 2091\"\n + \ },\n \"request_id\": \"OHMdf6d676e165411e4b88e02b12035401b\",\n + \ \"description\": \"Invalid field [amount] - \\\"2092\\\" must be <= + 2091 Your request id is OHMdf6d676e165411e4b88e02b12035401b.\"\n }\n ]\n}"} + headers: + content-length: ['444'] + content-type: [application/json] + status: {code: 400, message: BAD REQUEST} +- request: + body: '{"status": "succeeded", "transaction_number": "HL886-348-7865", "description": + "janet", "amount": 2091, "created_at": "2014-07-28T12:44:10.311057Z", "card_href": + "/cards/CC3MHBsW6vHaL3suLVdTVbO9", "updated_at": "2014-07-28T12:44:10.526231Z", + "expires_at": "2014-08-04T12:44:10.436799Z", "failure_reason": null, "currency": + "USD", "is_void": true, "meta": {"state": "cancelled", "participant_id": "2"}, + "debit": null, "failure_reason_code": null, "voided_at": null, "id": "HL6MShgF10sXHw6r21W3OTLX"}' + headers: {} + method: PUT + uri: https://api.balancedpayments.com:443/card_holds/HL6MShgF10sXHw6r21W3OTLX + response: + body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"card\": + \"CC3MHBsW6vHaL3suLVdTVbO9\",\n \"debit\": null\n },\n \"updated_at\": + \"2014-07-28T12:44:11.365477Z\",\n \"created_at\": \"2014-07-28T12:44:10.311057Z\",\n + \ \"transaction_number\": \"HL886-348-7865\",\n \"expires_at\": \"2014-08-04T12:44:10.436799Z\",\n + \ \"failure_reason\": null,\n \"currency\": \"USD\",\n \"amount\": + 2091,\n \"meta\": {\n \"state\": \"cancelled\",\n \"participant_id\": + \"2\"\n },\n \"href\": \"/card_holds/HL6MShgF10sXHw6r21W3OTLX\",\n + \ \"failure_reason_code\": null,\n \"voided_at\": \"2014-07-28T12:44:11.365480Z\",\n + \ \"id\": \"HL6MShgF10sXHw6r21W3OTLX\"\n }\n ],\n \"links\": {\n + \ \"card_holds.events\": \"/card_holds/{card_holds.id}/events\",\n \"card_holds.card\": + \"/cards/{card_holds.card}\",\n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\",\n + \ \"card_holds.debit\": \"/debits/{card_holds.debit}\"\n }\n}"} + headers: + content-length: ['975'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: '{"meta": {"seq": 3}}' + headers: {} + method: POST + uri: https://api.balancedpayments.com:443/customers + response: + body: {string: !!python/unicode "{\n \"customers\": [\n {\n \"name\": + null,\n \"links\": {\n \"source\": null,\n \"destination\": + null\n },\n \"updated_at\": \"2014-07-28T12:44:12.158196Z\",\n \"created_at\": + \"2014-07-28T12:44:12.031864Z\",\n \"dob_month\": null,\n \"id\": + \"CU6OOh9HBCcXISrxLboPWJbr\",\n \"phone\": null,\n \"href\": \"/customers/CU6OOh9HBCcXISrxLboPWJbr\",\n + \ \"merchant_status\": \"no-match\",\n \"meta\": {\n \"seq\": + \"3\"\n },\n \"dob_year\": null,\n \"address\": {\n \"city\": + null,\n \"line2\": null,\n \"line1\": null,\n \"state\": + null,\n \"postal_code\": null,\n \"country_code\": null\n },\n + \ \"business_name\": null,\n \"ssn_last4\": null,\n \"email\": + null,\n \"ein\": null\n }\n ],\n \"links\": {\n \"customers.source\": + \"/resources/{customers.source}\",\n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\",\n + \ \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\",\n + \ \"customers.debits\": \"/customers/{customers.id}/debits\",\n \"customers.destination\": + \"/resources/{customers.destination}\",\n \"customers.external_accounts\": + \"/customers/{customers.id}/external_accounts\",\n \"customers.cards\": + \"/customers/{customers.id}/cards\",\n \"customers.disputes\": \"/customers/{customers.id}/disputes\",\n + \ \"customers.transactions\": \"/customers/{customers.id}/transactions\",\n + \ \"customers.refunds\": \"/customers/{customers.id}/refunds\",\n \"customers.reversals\": + \"/customers/{customers.id}/reversals\",\n \"customers.orders\": \"/customers/{customers.id}/orders\",\n + \ \"customers.credits\": \"/customers/{customers.id}/credits\"\n }\n}"} + headers: + content-length: ['1619'] + content-type: [application/json] + status: {code: 201, message: CREATED} +- request: + body: '{"expiration_month": 12, "number": "4444444444444448", "expiration_year": + 2020}' + headers: {} + method: POST + uri: https://api.balancedpayments.com:443/cards + response: + body: {string: !!python/unicode "{\n \"cards\": [\n {\n \"links\": {\n + \ \"customer\": null\n },\n \"fingerprint\": \"9ea2b317b53183f5a93ba23a594a0b8a0f2183ea9cc338e0964755cd9df71b99\",\n + \ \"cvv_result\": null,\n \"number\": \"xxxxxxxxxxxx4448\",\n \"avs_postal_match\": + null,\n \"expiration_month\": 12,\n \"meta\": {},\n \"id\": + \"CC6PZQCKGZAQsuwLSTBbRqId\",\n \"category\": \"other\",\n \"type\": + \"credit\",\n \"cvv_match\": null,\n \"bank_name\": \"CREDIT AGRICOLE + BANK POLSKA, S.A.\",\n \"avs_street_match\": null,\n \"brand\": + \"Visa\",\n \"updated_at\": \"2014-07-28T12:44:13.094156Z\",\n \"address\": + {\n \"city\": null,\n \"line2\": null,\n \"line1\": null,\n + \ \"state\": null,\n \"postal_code\": null,\n \"country_code\": + null\n },\n \"can_debit\": true,\n \"name\": null,\n \"expiration_year\": + 2020,\n \"cvv\": null,\n \"is_verified\": true,\n \"avs_result\": + null,\n \"can_credit\": false,\n \"href\": \"/cards/CC6PZQCKGZAQsuwLSTBbRqId\",\n + \ \"created_at\": \"2014-07-28T12:44:13.094153Z\"\n }\n ],\n \"links\": + {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\",\n \"cards.customer\": + \"/customers/{cards.customer}\",\n \"cards.disputes\": \"/cards/{cards.id}/disputes\",\n + \ \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}"} + headers: + access-control-allow-headers: [Content-Type] + access-control-allow-methods: ['POST, OPTIONS'] + access-control-allow-origin: ['*'] + content-length: ['1269'] + content-type: [application/json] + status: {code: 201, message: CREATED} +- request: + body: '{"links": {"customer": "/customers/CU6OOh9HBCcXISrxLboPWJbr"}, "cvv_result": + null, "number": "xxxxxxxxxxxx4448", "avs_postal_match": null, "expiration_month": + 12, "meta": {}, "id": "CC6PZQCKGZAQsuwLSTBbRqId", "category": "other", "type": + "credit", "cvv_match": null, "bank_name": "CREDIT AGRICOLE BANK POLSKA, S.A.", + "avs_street_match": null, "brand": "Visa", "updated_at": "2014-07-28T12:44:13.094156Z", + "fingerprint": "9ea2b317b53183f5a93ba23a594a0b8a0f2183ea9cc338e0964755cd9df71b99", + "can_debit": true, "customer": null, "name": null, "expiration_year": 2020, + "cvv": null, "is_verified": true, "avs_result": null, "can_credit": false, "created_at": + "2014-07-28T12:44:13.094153Z", "address": {"city": null, "line2": null, "line1": + null, "state": null, "postal_code": null, "country_code": null}}' + headers: {} + method: PUT + uri: https://api.balancedpayments.com:443/cards/CC6PZQCKGZAQsuwLSTBbRqId + response: + body: + string: !!binary | + H4sIAAAAAAAAA41U247aMBB936+I8rwLuULCG6SrLQUVFuhFVFVkx85ibeJQ22FBKP9eOxcILKs2 + D5FyJjNzzsyxj3eapkeAIa4PtF/yQ9OO5VvCCaGvCm4A9WfORZZiJlE9+NabzTb+51EQ/Rwv2X4K + s/mPL5DpdX5x3xSKCX3BbMsIFSrRx8CCttmHrm16duwC34bAsoHrO8CAHjBiS+IY+FFk2x42/J7T + d90I+Sjum9D39VPhaLcLGeZ5ourSPElOEZqnsKK5bz2O43jnbLDj4TbjAiRhCkS0ua6B91vCgCAZ + DdOMChU3rVOHFAughnOWSVA5lqA3Xz8Hk6f18Jnnb9PlagQXf8aoxRoI/JKxg/o7ExtJ81RUHLZY + wRHDiIhLoTc5QkBfQwrSMitYPH4ar7Th02IczKaP2mj4daLNZ9PlZHivLTvDzqV2LhjG4rZ2yAAt + 5XwnHJzT8i2S5FEIykVahuk8GP0Hy1uZ1sBxBqbd6Vk9w3PXrU4IyRVd+4gIJb+9sspw2LoNm+9h + uTihZF8VqTcaZehGMMpyKtghbEXfuTUCNEQYyvEPNMFyfPZUNeYLn7U8csBAnQvLsIy2Qa8Y6oSH + O8xITLCa70UDZcjbdlacak8MtBgk/Mxqw3AsC+nd8hR3/8N+DP9jh4bvmK69rg5yIQf0Wwm6ug+q + W6OjuoabLCkvkIbEseTSIagoWdXxaipNXusm6TbXCu/WmQ1Q1D6qkxDh21zgD1qdoheNylV+lFHF + pLjirvgLKWEQ5QsFAAA= + headers: + content-encoding: [gzip] + content-length: ['584'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU6OOh9HBCcXISrxLboPWJbr + response: + body: + string: !!binary | + H4sIAAAAAAAAA41UwY7TMBC971dEOdNNkw2l2yN7AYS0SIBAIBRNbKNYm9jFdtBWVf6dcZukrh0w + lxxm3nv2vHnx8SZJUtJrIzumdLpLvmMhSY6nL7YEdAyrom/bF1Ot5eLJQicQwrTsFfGBWKdMGy7A + cClGlVFkmNX6PQXDaAUGEWmxzsvV+tWq2H7Ki11Z7vLiNn+5ze8339KZQhSLUNZ3+XZTOhQq66qT + wjT+MJzaYx8+bx4fm/s3rx/I17cf1fP7Wn748q5WlzP3jRT+gGmj2E9Lz2YHs7gSGk0aEKbSBkxv + jUyFXHVgSHM5rmMGPIvZLwu9SwMH7WwHBsofDShVTHubItwcPCDuCVfKiuVyHpbtxX0vUGQvsdFW + RNKFJpG9MOrgdoNB6l7jPbSullKntaha0Kb0x2Qd8DYo8qvADXjWD5sfO6kT3kv0b+cIpxm6dsqz + zo7zYsf+MK7IIRJQtGpkS0+rdKLgkDkdMgd3TrKjUYN4qoCcTIrIXEMDJcpqHpMYMQtc92/9iw/O + L71gBns2TAlMwf8NE8KDS1nbIpacIQGTcr3vDYuQZ1TANwqEBmIfr4jGFTLQwUeiF7EZJtAC+ze+ + zNBGrqDYBAsUpKLnt/0f4RwxARefWhrN0wTC/2u4Gf4A2ILrwFMGAAA= + headers: + content-encoding: [gzip] + content-length: ['497'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU6OOh9HBCcXISrxLboPWJbr/cards?limit=10&offset=0 + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VUbW/aMBD+3l8R+cM+tZBXIEjVRFnVsaJCS/cipilyYqdYTZzMdhio4r/PdhIS + KNWmjQ+RuPPdPXfPc/dyZhggggxxMDS+yz+G8aK/0pwQ+qzMtUG9LLjIUsykFYw/92azlf/xahx9 + myzYZhpm86+fQgaq+N15nSgm9AmznBEqVKCPoR06Vj/0HGvgxB70nRDaDvR8F5rhAJqxLe0Y+lHk + OANs+j2373kR8lHct0LfB/vE0XodMMyLROWlRZLsPbRIwxLmpvVzXXfQRMM1D/KMC5gEKRTR6jgH + 3uSEQUEyGqQZFcpv2fsKKRZQDadpkyA9lnFvvrwf394sR/e8+DVdPF6FDz8nqIUaCvyUsa16nYmV + hLlPKrY5VuaIYUTEYaMnMYaQPgcUpjpq/HD9YfJojG4eJuPZ9Nq4Gt3dGvPZdHE7OjcWnVHnsHcu + GMbidO8hg1S384Vw2IQVOZLgUQA1kbZpuRdm/8IePFr20HWHltPp2T1z4C1blRCSFB3riAjVfpuy + UnDYPm22XpslcUK1fZSkYjTK0AlnlBVUsG3Q8r5SawRpgHAoxz80BCtwo6lyzAc6a2lki6HaC9u0 + zbZAjxACwoM1ZiQmWM33oIAS5Gk5K0yVJoZGDBPeoFoxHMtEoKu3uPsX8mP4Dxyavmt5zrJc5J0c + 0A/VEKgVrycGEsi1CLr1TZC137gIJbT3CUmJuLTMd1kccywuzUokgOLN4QKDpqnq4Px7cl1VArUq + VkBZXVpqQ87wmmSFkmjDLRCZPAwqriQTxIT9f8NydPpeHN3W8gJ3EOF5IbACUtP5olntELTr7r0V + oNLTvsgtKqq42rurR10FyaTBKkv01T9RSr2q/AfF9Fq8EVP5VIdnu9+TvyXqVwYAAA== + headers: + content-encoding: [gzip] + content-length: ['676'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: '{"amount": 1061, "meta": {"state": "new", "participant_id": 4}, "description": + "bob"}' + headers: {} + method: POST + uri: https://api.balancedpayments.com:443/cards/CC6PZQCKGZAQsuwLSTBbRqId/card_holds + response: + body: {string: !!python/unicode "{\n \"errors\": [\n {\n \"status\": + \"Payment Required\",\n \"category_code\": \"card-declined\",\n \"additional\": + \"Account Frozen\",\n \"status_code\": 402,\n \"category_type\": + \"banking\",\n \"extras\": {},\n \"request_id\": \"OHMe1ca5954165411e4ac8902b12035401b\",\n + \ \"description\": \"R758: Account Frozen. Your request id is OHMe1ca5954165411e4ac8902b12035401b.\"\n + \ }\n ]\n}"} + headers: + content-length: ['387'] + content-type: [application/json] + status: {code: 402, message: PAYMENT REQUIRED} +- request: + body: '{"meta": {"seq": 4}}' + headers: {} + method: POST + uri: https://api.balancedpayments.com:443/customers + response: + body: {string: !!python/unicode "{\n \"customers\": [\n {\n \"name\": + null,\n \"links\": {\n \"source\": null,\n \"destination\": + null\n },\n \"updated_at\": \"2014-07-28T12:44:15.686124Z\",\n \"created_at\": + \"2014-07-28T12:44:15.567519Z\",\n \"dob_month\": null,\n \"id\": + \"CU6SMkCwTyQHAjXzmtSm0CRO\",\n \"phone\": null,\n \"href\": \"/customers/CU6SMkCwTyQHAjXzmtSm0CRO\",\n + \ \"merchant_status\": \"no-match\",\n \"meta\": {\n \"seq\": + \"4\"\n },\n \"dob_year\": null,\n \"address\": {\n \"city\": + null,\n \"line2\": null,\n \"line1\": null,\n \"state\": + null,\n \"postal_code\": null,\n \"country_code\": null\n },\n + \ \"business_name\": null,\n \"ssn_last4\": null,\n \"email\": + null,\n \"ein\": null\n }\n ],\n \"links\": {\n \"customers.source\": + \"/resources/{customers.source}\",\n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\",\n + \ \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\",\n + \ \"customers.debits\": \"/customers/{customers.id}/debits\",\n \"customers.destination\": + \"/resources/{customers.destination}\",\n \"customers.external_accounts\": + \"/customers/{customers.id}/external_accounts\",\n \"customers.cards\": + \"/customers/{customers.id}/cards\",\n \"customers.disputes\": \"/customers/{customers.id}/disputes\",\n + \ \"customers.transactions\": \"/customers/{customers.id}/transactions\",\n + \ \"customers.refunds\": \"/customers/{customers.id}/refunds\",\n \"customers.reversals\": + \"/customers/{customers.id}/reversals\",\n \"customers.orders\": \"/customers/{customers.id}/orders\",\n + \ \"customers.credits\": \"/customers/{customers.id}/credits\"\n }\n}"} + headers: + content-length: ['1619'] + content-type: [application/json] + status: {code: 201, message: CREATED} +- request: + body: '{"expiration_month": 12, "number": "4242424242424242", "expiration_year": + 2020}' + headers: {} + method: POST + uri: https://api.balancedpayments.com:443/cards + response: + body: {string: !!python/unicode "{\n \"cards\": [\n {\n \"links\": {\n + \ \"customer\": null\n },\n \"fingerprint\": \"1e2c425a579a1c7f27a037f0662b855035ceadbff18a0adbe785fb07e2afe1cc\",\n + \ \"cvv_result\": null,\n \"number\": \"xxxxxxxxxxxx4242\",\n \"avs_postal_match\": + null,\n \"expiration_month\": 12,\n \"meta\": {},\n \"id\": + \"CC6TLLgPxyk72mp6wYSQ54YF\",\n \"category\": \"other\",\n \"type\": + \"credit\",\n \"cvv_match\": null,\n \"bank_name\": \"\",\n \"avs_street_match\": + null,\n \"brand\": \"Visa\",\n \"updated_at\": \"2014-07-28T12:44:16.442981Z\",\n + \ \"address\": {\n \"city\": null,\n \"line2\": null,\n + \ \"line1\": null,\n \"state\": null,\n \"postal_code\": + null,\n \"country_code\": null\n },\n \"can_debit\": true,\n + \ \"name\": null,\n \"expiration_year\": 2020,\n \"cvv\": null,\n + \ \"is_verified\": true,\n \"avs_result\": null,\n \"can_credit\": + false,\n \"href\": \"/cards/CC6TLLgPxyk72mp6wYSQ54YF\",\n \"created_at\": + \"2014-07-28T12:44:16.442979Z\"\n }\n ],\n \"links\": {\n \"cards.card_holds\": + \"/cards/{cards.id}/card_holds\",\n \"cards.customer\": \"/customers/{cards.customer}\",\n + \ \"cards.disputes\": \"/cards/{cards.id}/disputes\",\n \"cards.debits\": + \"/cards/{cards.id}/debits\"\n }\n}"} + headers: + access-control-allow-headers: [Content-Type] + access-control-allow-methods: ['POST, OPTIONS'] + access-control-allow-origin: ['*'] + content-length: ['1236'] + content-type: [application/json] + status: {code: 201, message: CREATED} +- request: + body: '{"links": {"customer": "/customers/CU6SMkCwTyQHAjXzmtSm0CRO"}, "cvv_result": + null, "number": "xxxxxxxxxxxx4242", "avs_postal_match": null, "expiration_month": + 12, "meta": {}, "id": "CC6TLLgPxyk72mp6wYSQ54YF", "category": "other", "type": + "credit", "cvv_match": null, "bank_name": "", "avs_street_match": null, "brand": + "Visa", "updated_at": "2014-07-28T12:44:16.442981Z", "fingerprint": "1e2c425a579a1c7f27a037f0662b855035ceadbff18a0adbe785fb07e2afe1cc", + "can_debit": true, "customer": null, "name": null, "expiration_year": 2020, + "cvv": null, "is_verified": true, "avs_result": null, "can_credit": false, "created_at": + "2014-07-28T12:44:16.442979Z", "address": {"city": null, "line2": null, "line1": + null, "state": null, "postal_code": null, "country_code": null}}' + headers: {} + method: PUT + uri: https://api.balancedpayments.com:443/cards/CC6TLLgPxyk72mp6wYSQ54YF + response: + body: + string: !!binary | + H4sIAAAAAAAAA41UTW/bMAy991cYPq+JrPoruRUBhh06bF2yYe1QGLJEJ1ps2ZDlNF7g/z7JH4mT + pth8MGxSj3wkn3i4sSybEslKe2790j+WdWjf2pxysTXmwWBOVqXKM5Daai+++8vP28Xrqn78dP/7 + 559MLTO0+PbF7vHNhyFQwsUaZCG5UAboAKYu9ogXzIhDgwQHBN0FCfJ9HIeeh+48CoTFSeKEBOkP + CEIviVEAmCTgUGofA9PdLpJQVqmJK6o0PXpElcUdzf3ocbGLT2iyK6MiLxVJo4wourmMAfuCS6J4 + LqIsF8r4HXzMkIEipjmnMjlr27LwVw8P66/7ehvgrPBfn5aPnvv0ccSaKFjnsjanc7XRNI9BVV2A + MVMJjKvzQq9yjInYRoJkLeq8tFJJAHW9tFgS0bL9wUtyglUF09xYRNo5YeS4tyi4xeHKwXPXnTv+ + JMTYReHzKBNjegKXMuHKVDeeSKcnwNfNzluznosyVV0E6QdGc3bFSfNKKFlHI+8bMVIiIgax7u7c + UrKCk2S6Lp7JaCSBGoiRPUYYjfV3wdDmZbQDyRMOpr9nCYzerqvVcOpHPrcSkpYnVhsJiQ5kT9tL + Ov0PdUn4xwxdF8+C2XN3TxvdoBdT0MV175bCxGSNNnna7oeBxKHlMuGsaVn1/q4rA260KKbD1iin + PXIwNL2OehDjZVEpeCfV0XuWqB3le4jOp4trbpq/Q/Cq6eoEAAA= + headers: + content-encoding: [gzip] + content-length: ['551'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: '{"expiration_month": 12, "number": "4242424242424242", "expiration_year": + 2030}' + headers: {} + method: POST + uri: https://api.balancedpayments.com:443/cards + response: + body: {string: !!python/unicode "{\n \"cards\": [\n {\n \"links\": {\n + \ \"customer\": null\n },\n \"fingerprint\": \"d34d613121ae61ae732d86eaf09929617bd3f5ccc60f7364d32ae1afc5f81745\",\n + \ \"cvv_result\": null,\n \"number\": \"xxxxxxxxxxxx4242\",\n \"avs_postal_match\": + null,\n \"expiration_month\": 12,\n \"meta\": {},\n \"id\": + \"CC6V7qZ6DESWZ76Ta29niOlD\",\n \"category\": \"other\",\n \"type\": + \"credit\",\n \"cvv_match\": null,\n \"bank_name\": \"\",\n \"avs_street_match\": + null,\n \"brand\": \"Visa\",\n \"updated_at\": \"2014-07-28T12:44:17.648341Z\",\n + \ \"address\": {\n \"city\": null,\n \"line2\": null,\n + \ \"line1\": null,\n \"state\": null,\n \"postal_code\": + null,\n \"country_code\": null\n },\n \"can_debit\": true,\n + \ \"name\": null,\n \"expiration_year\": 2030,\n \"cvv\": null,\n + \ \"is_verified\": true,\n \"avs_result\": null,\n \"can_credit\": + false,\n \"href\": \"/cards/CC6V7qZ6DESWZ76Ta29niOlD\",\n \"created_at\": + \"2014-07-28T12:44:17.648338Z\"\n }\n ],\n \"links\": {\n \"cards.card_holds\": + \"/cards/{cards.id}/card_holds\",\n \"cards.customer\": \"/customers/{cards.customer}\",\n + \ \"cards.disputes\": \"/cards/{cards.id}/disputes\",\n \"cards.debits\": + \"/cards/{cards.id}/debits\"\n }\n}"} + headers: + access-control-allow-headers: [Content-Type] + access-control-allow-methods: ['POST, OPTIONS'] + access-control-allow-origin: ['*'] + content-length: ['1236'] + content-type: [application/json] + status: {code: 201, message: CREATED} +- request: + body: '{"links": {"customer": "/customers/CU6SMkCwTyQHAjXzmtSm0CRO"}, "cvv_result": + null, "number": "xxxxxxxxxxxx4242", "avs_postal_match": null, "expiration_month": + 12, "meta": {}, "id": "CC6V7qZ6DESWZ76Ta29niOlD", "category": "other", "type": + "credit", "cvv_match": null, "bank_name": "", "avs_street_match": null, "brand": + "Visa", "updated_at": "2014-07-28T12:44:17.648341Z", "fingerprint": "d34d613121ae61ae732d86eaf09929617bd3f5ccc60f7364d32ae1afc5f81745", + "can_debit": true, "customer": null, "name": null, "expiration_year": 2030, + "cvv": null, "is_verified": true, "avs_result": null, "can_credit": false, "created_at": + "2014-07-28T12:44:17.648338Z", "address": {"city": null, "line2": null, "line1": + null, "state": null, "postal_code": null, "country_code": null}}' + headers: {} + method: PUT + uri: https://api.balancedpayments.com:443/cards/CC6V7qZ6DESWZ76Ta29niOlD + response: + body: + string: !!binary | + H4sIAAAAAAAAA41U32+bMBB+71+BeG4TbBxD8lalk/YyVVuydso0Icc2jRcwzDZZs4j/fTY/EpKm + 05BA4s7f3Xd3n+9w43k+JYppf+Z9tz+ed2i+1pwJuXXm3uBOVtoUOVfW6s+/4sWn7fz3cv/54/3P + b39ys8iD+ZdHv8PXt32gVMgXrkolpHFAFiKGQQggIBzbNwohizEnaTCdwikG0ZqF6YRSioM0CjFi + ISQckJRO0hhEaOIfA9PdLlFcV5mLK6ssO3pkla9bmq+DB0EET2iy00lZaEOyJCeGbi5j8NdSKGJE + IZO8kMb5ATxmyLkhrjmnMgVr2jLHT9GvFX74sHheRXhJ4FSKx+xhwJoY/lKovTtdmI2leQxq9iV3 + Zqo4E+a80Ksc10RuE0nyBnVemjaKc3O9tLUismH7JDQ5waqSWW4sIc2cYADQXRDdwXgJ4AyhGYhH + QYQRRqtBJsbsBC5lIoyrbjiRVk8cXjeDt2Y7F+OqugjSDYwW7IqTFpU0ap8MvG/ESIlMGF/b7s48 + oyp+kkzbxTMZDSSw58TJHgZhMNTfBUNf6GTHlUgFd/09S+D0dl2tjlM38pmXkkyfWG0UT20gf9xc + 0vF/qEvxf84wGmEUh2G8au9pbRv0wxV0cd3bpTByWZNNkTX7oSdxaLiMBKsbVp2/7UqPGyyKcb81 + 9LhD9oa601EHYkKXleHvpDp6zxI1o3wP0fpscfVN/RfqZT+Q6gQAAA== + headers: + content-encoding: [gzip] + content-length: ['553'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU6SMkCwTyQHAjXzmtSm0CRO + response: + body: + string: !!binary | + H4sIAAAAAAAAA41UwY7TMBC971dEOdNNE6XdpTfUCxeEYBcJgVA0tY1imtjFdoBS5d8Zt0nq2gFz + yWHmvWfPmxef7pIkJZ02smVKp5vkMxaS5HT+YktAy7AquqZ5MdYaLvYWOoIQpmWniA/EOmXacAGG + SzGoDCL9pNYdKBhGKzCISItlXi6WD4vi8TkvNmW5yVf368d1XpSf0olCFItQVuuHVf7SoVC5q1op + TO0Pw6k9dvth/fRmv/35fHz3+tW3j79b89Qut+/fXs881FL4A6a1Yl8tPZsczOJKaDSpQZhKGzCd + NTIVctGCIfX1uJYZ8Cxm3y20TAMH7WxHBsofDShVTHubItwcPSDuCVfKivlyHpbtxX0vUOQgsdFU + RNKZJpGdMOrodoNBdp3Ge2hdzaVOa1E1oE3pj8la4E1Q5DeB6/GsLzY/dlInvNfo308RTjN07Zxn + nZ2mxQ79fliRQySgaFXLhp5X6UTBIXPaZw7ukmRHYwdiXwE5mxSRuYUGSpTteExiwMxw3b/1Lz44 + v/SMGeyXYUpgCv5vmBAeXMraFrHkAgmYlOtDZ1iEPKECvlEgNBD7eEU0bpCBDj4SnYjNMIJm2D/w + ZYYmcgXFRligIBW9vO3/COeACbj41NJonkYQ/l/9Xf8HeuokgVMGAAA= + headers: + content-encoding: [gzip] + content-length: ['497'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU6SMkCwTyQHAjXzmtSm0CRO/cards?limit=10&offset=0 + response: + body: + string: !!binary | + H4sIAAAAAAAAA+VWW2/TMBR+36+o8sATa2MnsdNKE0IdiIchGC2DFaHI8WU1zaU4Ttcy9b9jJ2mb + dp2GQGgSVGrUnpNzfC7f+Y7vTjodhxLFCmfQ+WL+dDp31dOIE5nNrHgjsG+Whc5TrozUGX5Eo7ez + 4e14dfnm5bfPP1I9St3hh3dOY79+vnEkZHbD1VzJTFtDwCH1YUAC3CeAYgExcT0sXIRgHAaB6wWU + ExYLAULimh8ch4GIXcwhERxQ6mwd08UiUrwoE+s3K5Nkq8nKNK7DXLY+PvThzposimieF5okUUo0 + nR764Mu5VETLPIvSPNNWD+D2hJRrYouzS1OyqixDNL64uHm/XM0wTOfo9np0GfjXr1tRE81vcrWy + b+d6asLcOtWrObdiqjiTej/RozHGJJtFGUkrq/3UCq0418dTixXJqmivZEF2ZuWcmdhYRKo+QRf4 + py4+heEYwIHvDwDqhhD6bjhpncSY6cAhTKS22bU7UuOJw+NicF9s+qJtVgdOmobRnB1R0rzMtFpF + Le09MFKSRYzHprqDjlYl30GmruIejFoQWHFiYQ9d6LbxdxChI4towZUUktv67h1g8XYcrTampuWD + jiBJsYtqqrgwjpxeNaS9X0CX4o/00PdhH/cn9Zw28P3rQ888nyHgAQgIR+aLPchCxIlw+33YRwDH + zBMBpRS5AnvIZx4kHBBBAxEC7Af7s3C8jE869Ff4+wSdvxp9mmA0JrCfyXfJ+b8w9GHXxchH/n89 + 9N4TD/1j6Hpk6HEX+aHnGeKu+HBtnl8tizmbLVaJnYQUFfP3NnveEM4DW77moxeJTKU+A+6zXIiC + 6zO3QbyT8eX+UnZ2TNZcIn7feXWqCRQ0XXHq041kI5grvpB5affSjtAdnZtlb0m8ZnBHSPXnCZvS + VSR6cF+qb1Xd9o2pVda7is632vWmbLWYyWJeam6j3xB/YyDZurfVNlk0rozDaJon1U3uiJV9q9Hv + 2VW78AGbRmczPFn/BA+kcscrCgAA + headers: + content-encoding: [gzip] + content-length: ['762'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: '{"meta": {"seq": 5}}' + headers: {} + method: POST + uri: https://api.balancedpayments.com:443/customers + response: + body: {string: !!python/unicode "{\n \"customers\": [\n {\n \"name\": + null,\n \"links\": {\n \"source\": null,\n \"destination\": + null\n },\n \"updated_at\": \"2014-07-28T12:44:19.427386Z\",\n \"created_at\": + \"2014-07-28T12:44:19.315286Z\",\n \"dob_month\": null,\n \"id\": + \"CU6X0aCm4qom2lpUvyxszYvv\",\n \"phone\": null,\n \"href\": \"/customers/CU6X0aCm4qom2lpUvyxszYvv\",\n + \ \"merchant_status\": \"no-match\",\n \"meta\": {\n \"seq\": + \"5\"\n },\n \"dob_year\": null,\n \"address\": {\n \"city\": + null,\n \"line2\": null,\n \"line1\": null,\n \"state\": + null,\n \"postal_code\": null,\n \"country_code\": null\n },\n + \ \"business_name\": null,\n \"ssn_last4\": null,\n \"email\": + null,\n \"ein\": null\n }\n ],\n \"links\": {\n \"customers.source\": + \"/resources/{customers.source}\",\n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\",\n + \ \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\",\n + \ \"customers.debits\": \"/customers/{customers.id}/debits\",\n \"customers.destination\": + \"/resources/{customers.destination}\",\n \"customers.external_accounts\": + \"/customers/{customers.id}/external_accounts\",\n \"customers.cards\": + \"/customers/{customers.id}/cards\",\n \"customers.disputes\": \"/customers/{customers.id}/disputes\",\n + \ \"customers.transactions\": \"/customers/{customers.id}/transactions\",\n + \ \"customers.refunds\": \"/customers/{customers.id}/refunds\",\n \"customers.reversals\": + \"/customers/{customers.id}/reversals\",\n \"customers.orders\": \"/customers/{customers.id}/orders\",\n + \ \"customers.credits\": \"/customers/{customers.id}/credits\"\n }\n}"} + headers: + content-length: ['1619'] + content-type: [application/json] + status: {code: 201, message: CREATED} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU6X0aCm4qom2lpUvyxszYvv + response: + body: + string: !!binary | + H4sIAAAAAAAAA41UXW+jMBB8769APDclUPqV1/6Fq3TtqUIb2yesGpvaJmou4r93nQAhNne+Fx52 + Z8be2cGHqyRJSWesapg26Sb5hYUkORy/2JLQMKzKTojrsSa4/HDQEYQwozpNfCDWKTOWS7BcyUFl + EOknta6lYBmtwCIiLdZ5uVo/rIrHH3mxKctN/nRTFg+3j/dv6UQhmkUot/ldcUGhals1StraH4ZT + d+zzy/3PNTw35adqCtG+7PZf5s/rbnc+s62V9AdMa81+O3o2OZjFldBoUoO0lbFgO2dkKtWqAUvq + 83ENs+BZzD4d9C4NHHSz7RlofzSgVDPjbYpwu/eAuCdcKSuWy3lYdhf3vUCRVmFDVETRhSZRnbR6 + P+8Gg2w7g/cwplpKnTGyEmBs6Y/JGuAiKPKLwPV41rvLj5t0Ft5z9G+mCKcZunbMs8kO02KHfj+s + aEYkoGlVK0GPq5xFYUbmtM9muFOSZxpbkB8VkKNJEZlLaKBE2ZbHJAbMAnf+t/7Fh9kvvWAG+7JM + S0zB/w0TwoNLOdsilpwgAZNy03aWRcgTKuBbDdIAcY9XROMCGejgI9HJ2AwjaIG9w5cZROQKmo2w + QEFpenrb/xHOARNw8aml0TyNIPy/+qv+G5NozWlTBgAA + headers: + content-encoding: [gzip] + content-length: ['489'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU6X0aCm4qom2lpUvyxszYvv/cards?limit=10&offset=0 + response: + body: {string: !!python/unicode "{\n \"cards\": [],\n \"meta\": {\n \"last\": + \"/customers/CU6X0aCm4qom2lpUvyxszYvv/cards?limit=10&offset=0\",\n \"next\": + null,\n \"href\": \"/customers/CU6X0aCm4qom2lpUvyxszYvv/cards?limit=10&offset=0\",\n + \ \"limit\": 10,\n \"offset\": 0,\n \"previous\": null,\n \"total\": + 0,\n \"first\": \"/customers/CU6X0aCm4qom2lpUvyxszYvv/cards?limit=10&offset=0\"\n + \ },\n \"links\": {}\n}"} + headers: + content-length: ['364'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU3KXdyvNSDeyLP3pAWr9hqd + response: + body: + string: !!binary | + H4sIAAAAAAAAA41Uy27bMBC85ysEnWvLipQ29i1oby2CAG3RokUh0CQLEZFIhY+ggqF/79KWZJpU + wlx02J0ZcmdHPFwlSYqN0qKlUqW75DcUkuRw/EKLo5ZClZumeTfVGsYfLXQCAUwJI7EPhDqhSjOO + NBN8VBlFhlnNdARpSiqkAZFeb/Jytfmw2uTf8ptdWezKcp0Xxfvb7a90pmBJX6UU622+uSlKh0LE + vmoF17U/DCP22I/fi88/Sf98//UT7b88FN3dD7mtn8j5zK4W3B8wrSX9a+nZ7GAWVwKjcY24rpRG + 2lgjUy5WLdK4Ph/XUo08i+mTheZp4KCdradI+qMhQiRV3qYw070HhD3BSun1cjkPy/bivhcg0glo + NBUWZKGJheFa9m43GGRvFNxDqWopdUrxqkFKl/6YtEWsCYrsInADnPXH5sdO6oT3HP31HOE0A9eO + eVbZYV7s2B/GFTlEjCSpatGQ4yqdKDhkRobMwZ2S7GjsEX+sED6aFJG5hAZKhO5ZTGLELHDdv/UF + H5xfesEM+k9TySEFbxsmhAeXsrZFLDlBAiZhqjOaRsgzKuBribhC2D5eEY0LZKADj4ThsRkm0AL7 + GV5m1ESuIOkECxSEJKe3/ZVwjpiAC08tieZpAsH/NVwN/wHQiK4AUwYAAA== + headers: + content-encoding: [gzip] + content-length: ['499'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU3KXdyvNSDeyLP3pAWr9hqd/cards?limit=10&offset=0 + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VVW2+bMBR+76+weNhTmwBOyEWqprSbVq1NWq1dO3WakIPtxiqxmW2yoCr/fbaB + AL1o08YDEud+vvOdw9MBAF6CJFbeFHw3HwA8ubcRp4w/WnEtsJa50mJNpJF6p1/h+TdcbBbXH0hx + cQWz2Z2crH5ir/LfHdaBKOMPRGaScW0dx8mI+oMQwmiI6HicQAKjhPrhaBCRBEUDihMKI4yTkAQU + Tow5SSYUUor9IQqjkbcPnGw2sSQqT21cnqfpXsPz9bIsc9t6AvM03mij4kwojdJ4jXSysrVx0ejJ + NmMSaSZ4vBZcW33g7zOsiUZdcCR5MLYOGsFpruxHbW6xY7qItfjlLNoKhLFpQsWhVZyILQhfQsiw + i3sK52cn6i7anKELqPKLW3xzu7yctBBBmjwIWVhroVcGgn3BusiIFSeSYKa7INb9dzBcIv4Yc7R2 + Xp+v5pdfPs0W4PRsdv0RnMwW54dg0Zv1ungqLQnRDZ4FUY3BUiLu+rhlCjXiPMOmahwjx47QDwZH + /ujID26C4XQAp4NhbzwMQhjct1KVkBn7NjkNwEbS7qFkMbHIviIObD4TGcwR4+Dald4ejKGGds2/ + Os+KOonAzmbih4Hf9k5EzrUs4srA5n+xGQniMSZLM44p0DInDX9L2DvzaPGxIMjuYOiHDSHNMjxr + 02Mq3hDJKCMW9k4CS/796nhl76BiIjBjAmV7wFYPsABcaOBY0hq4rb5i0xRQlKqm/pUk1KLSd7el + /xfEleQPJBhEcBLA+3I3dgbKHxYtr7OHXoqUY1G/vlQm9xt3qiztfcrWTB8H/jtBqSL6uJ6hx8m2 + e1a8pqnqDP57cJfVFFofFK/MbiTVQL1Mkg0TuT3ADQs8Lcy5sn4lUzzK5P83bGB0x/rZxS//Cz3M + VJZrs8fNOJ/cVHsM7/p7bVVQqWn/J1qjqPxq7a5alyqRdY1XInX/opo5rVQtfSeZW6A3fCqd7fBg + 9xv4QHhu7QYAAA== + headers: + content-encoding: [gzip] + content-length: ['751'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: '{"amount": 1000, "meta": {"state": "new", "participant_id": 2}, "description": + "janet"}' + headers: {} + method: POST + uri: https://api.balancedpayments.com:443/cards/CC3MHBsW6vHaL3suLVdTVbO9/card_holds + response: + body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"card\": + \"CC3MHBsW6vHaL3suLVdTVbO9\",\n \"debit\": null\n },\n \"updated_at\": + \"2014-07-28T12:44:21.775480Z\",\n \"created_at\": \"2014-07-28T12:44:21.559915Z\",\n + \ \"transaction_number\": \"HL101-260-3999\",\n \"expires_at\": \"2014-08-04T12:44:21.689475Z\",\n + \ \"failure_reason\": null,\n \"currency\": \"USD\",\n \"amount\": + 1000,\n \"meta\": {\n \"state\": \"new\",\n \"participant_id\": + \"2\"\n },\n \"href\": \"/card_holds/HL6ZwcjcM9CPa5eZEgQFeQ0g\",\n + \ \"failure_reason_code\": null,\n \"voided_at\": null,\n \"id\": + \"HL6ZwcjcM9CPa5eZEgQFeQ0g\"\n }\n ],\n \"links\": {\n \"card_holds.events\": + \"/card_holds/{card_holds.id}/events\",\n \"card_holds.card\": \"/cards/{card_holds.card}\",\n + \ \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\",\n \"card_holds.debit\": + \"/debits/{card_holds.debit}\"\n }\n}"} + headers: + content-length: ['944'] + content-type: [application/json] + status: {code: 201, message: CREATED} +- request: + body: '{"status": "succeeded", "transaction_number": "HL101-260-3999", "description": + "janet", "amount": 1000, "created_at": "2014-07-28T12:44:21.559915Z", "card_href": + "/cards/CC3MHBsW6vHaL3suLVdTVbO9", "updated_at": "2014-07-28T12:44:21.775480Z", + "expires_at": "2014-08-04T12:44:21.689475Z", "failure_reason": null, "currency": + "USD", "is_void": true, "meta": {"state": "cancelled", "participant_id": "2"}, + "debit": null, "failure_reason_code": null, "voided_at": null, "id": "HL6ZwcjcM9CPa5eZEgQFeQ0g"}' + headers: {} + method: PUT + uri: https://api.balancedpayments.com:443/card_holds/HL6ZwcjcM9CPa5eZEgQFeQ0g + response: + body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"card\": + \"CC3MHBsW6vHaL3suLVdTVbO9\",\n \"debit\": null\n },\n \"updated_at\": + \"2014-07-28T12:44:22.144977Z\",\n \"created_at\": \"2014-07-28T12:44:21.559915Z\",\n + \ \"transaction_number\": \"HL101-260-3999\",\n \"expires_at\": \"2014-08-04T12:44:21.689475Z\",\n + \ \"failure_reason\": null,\n \"currency\": \"USD\",\n \"amount\": + 1000,\n \"meta\": {\n \"state\": \"cancelled\",\n \"participant_id\": + \"2\"\n },\n \"href\": \"/card_holds/HL6ZwcjcM9CPa5eZEgQFeQ0g\",\n + \ \"failure_reason_code\": null,\n \"voided_at\": \"2014-07-28T12:44:22.144979Z\",\n + \ \"id\": \"HL6ZwcjcM9CPa5eZEgQFeQ0g\"\n }\n ],\n \"links\": {\n + \ \"card_holds.events\": \"/card_holds/{card_holds.id}/events\",\n \"card_holds.card\": + \"/cards/{card_holds.card}\",\n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\",\n + \ \"card_holds.debit\": \"/debits/{card_holds.debit}\"\n }\n}"} + headers: + content-length: ['975'] + content-type: [application/json] + status: {code: 200, message: OK} +version: 1 diff --git a/tests/py/fixtures/TestCredits.yml b/tests/py/fixtures/TestCredits.yml new file mode 100644 index 0000000000..1a72d27541 --- /dev/null +++ b/tests/py/fixtures/TestCredits.yml @@ -0,0 +1,71 @@ +interactions: +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU3O2IKYocPZ5LA7GkZWpwKZ + response: + body: + string: !!binary | + H4sIAAAAAAAAA41UTY/TMBS876+IcqabpJu2orcVB4QWCQ4gRBGKXNsoVhM7+AOoqvx3ntMk69oB + 7yWH55mJ37zxu9wlSYqN0qKlUqX75BsUkuQyfOGIo5ZClZumeTXVGsZPFjqBAKaEkdgHQp1QpRlH + mgk+qowi/axmOoI0JRXSgEjXeVGu8t0qLz4Vm335sC+397tNmW/zQzpTsKQRynazLnavHQoRx6oV + XNd+M4zY3775/PBh/e7pq8AfD5v3j7u3p8OX7veTI9DVgvsNprWkPyw9mx3M4kpgNK4R15XSSBtr + ZMrFqkUa188ttlQjz2L6czAoDRy0vZ0pkn5riBBJlTcpzPTZA8KcYKR0vVwuwrK9uO8FiHQCDpoK + C7JwiIXhWp7d06CRo1FwD6WqpdQpxasGKV36bdIWsSYospvA9fCv7zY/tlMnvM/Rv58jnGbg2pBn + lV3mwY7n/Tgih4iRJFUtGjKM0omCQ2akzxzcNcmOxhHxU4XwYFJE5hYaKBF6ZDGJEbPAdV/rP3xw + nvSCGfSPppJDCl7WTAgPLmVti1hyhQRMwlRnNI2QZ1TA1xJxhbBdXhGNG2SgA0vC8FgPE2iB/Qs2 + M2oiV5B0ggUKQpLrbv9POEdMwIVVS6J5mkDwvvq7/i9xeE/EUwYAAA== + headers: + content-encoding: [gzip] + content-length: ['496'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU3O2IKYocPZ5LA7GkZWpwKZ/bank_accounts?limit=10&offset=0 + response: + body: + string: !!binary | + H4sIAAAAAAAAA61UXW+bMBR9769APOxpDTYfIUSqpnTqsi1R232pW6YJObZpvBBIjWkTRfz32Q4E + SIPWh74gcc/1veeec3V3Z4ZhzlGyDBHGaZ6IzBwav2XQMHb6K2Ge5oIl92GSr+aUS9yENgSuPRjY + 5tsqSddI0Ioq/O5qOv1mfBh9Hd8Yl6PriXE9qjPLRqHYrnUyXlC8lPXrjKrMx3RFufEZbWsoZslS + UazISXo4z4RKVLXe/3Bu7E+TXym+nXnTkT9ezu7WT5PZocDRtOEj5SxiGAmWJrJAksdxOVFxGA2j + JMScEiZkhuA5rRFOkaAkRAoxbQDdc+CfA/gdekPXGbpBD/j9gefV/c1ITkr5mrNEvyEI9z3okoAQ + B0FMfIQD2yOe7wYUOGCAbYlHyPaxB/qIRnOAg7kN+xBGURD0g1qZfE3+w8UDvgeaXBacRoqE1VoA + 63LkfJkm2dX4nmd/H6LFz4Xr3D64pO61ogIpE2qNKlPrHdlsNrbjoIbvhHCaHZvHxLbUvVJVWiRd + pvbpMHwezoQc/Hl4nUogDnFKToB61/m2iZ70ndC5tj1CcVb7zoiSrVMnXamQ3z9qJrNSS4fNGGXa + eava28zq2tq2L+9itmLiAoI3aRRlVFyAUlszoRtVUi3vXkTz4OzrNdHdZRcIyh57FjJSBdacPrI0 + Vw43qIhUuqDelc8ixl9PACmp3kG1MY270L5oPW2ionW86bvW4vcYKawytyTbxpt/rcvxwtrNY5NV + 5rVbNI9ZY0OOiFZZRUcRfaxeSGp/2TrodE6sxWzNYx1x7HxamMq1s+IftGquiHsGAAA= + headers: + content-encoding: [gzip] + content-length: ['620'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: '{"amount": 1900.00, "description": "bob"}' + headers: {} + method: POST + uri: https://api.balancedpayments.com:443/bank_accounts/BA3QLnsEGgrsjqfhXh43Pq4d/credits + response: + body: {string: !!python/unicode "{\n \"credits\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"bob\",\n \"links\": {\n \"customer\": + \"CU3O2IKYocPZ5LA7GkZWpwKZ\",\n \"destination\": \"BA3QLnsEGgrsjqfhXh43Pq4d\",\n + \ \"order\": null\n },\n \"updated_at\": \"2014-07-01T19:19:43.494105Z\",\n + \ \"created_at\": \"2014-07-01T19:19:43.018298Z\",\n \"transaction_number\": + \"CR807-645-5056\",\n \"failure_reason\": null,\n \"currency\": + \"USD\",\n \"amount\": 1900,\n \"failure_reason_code\": null,\n + \ \"meta\": {},\n \"href\": \"/credits/CR56p7y5a2SbEJCkNqZUWXS9\",\n + \ \"appears_on_statement_as\": \"example.com\",\n \"id\": \"CR56p7y5a2SbEJCkNqZUWXS9\"\n + \ }\n ],\n \"links\": {\n \"credits.order\": \"/orders/{credits.order}\",\n + \ \"credits.customer\": \"/customers/{credits.customer}\",\n \"credits.destination\": + \"/resources/{credits.destination}\",\n \"credits.reversals\": \"/credits/{credits.id}/reversals\",\n + \ \"credits.events\": \"/credits/{credits.id}/events\"\n }\n}"} + headers: + content-length: ['953'] + content-type: [application/json] + status: {code: 201, message: CREATED} +version: 1 diff --git a/tests/py/fixtures/TestPayday.yml b/tests/py/fixtures/TestPayday.yml index 83db00b89d..36b6be7bd9 100644 --- a/tests/py/fixtures/TestPayday.yml +++ b/tests/py/fixtures/TestPayday.yml @@ -48,30 +48,211 @@ interactions: content-length: ['751'] content-type: [application/json] status: {code: 200, message: OK} +- request: + body: '{"amount": 1000, "meta": {"state": "new", "participant_id": 2}, "description": + "janet"}' + headers: {} + method: POST + uri: https://api.balancedpayments.com:443/cards/CC3MHBsW6vHaL3suLVdTVbO9/card_holds + response: + body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"card\": + \"CC3MHBsW6vHaL3suLVdTVbO9\",\n \"debit\": null\n },\n \"updated_at\": + \"2014-07-28T12:45:10.156500Z\",\n \"created_at\": \"2014-07-28T12:45:09.914076Z\",\n + \ \"transaction_number\": \"HL141-112-2168\",\n \"expires_at\": \"2014-08-04T12:45:10.042686Z\",\n + \ \"failure_reason\": null,\n \"currency\": \"USD\",\n \"amount\": + 1000,\n \"meta\": {\n \"state\": \"new\",\n \"participant_id\": + \"2\"\n },\n \"href\": \"/card_holds/HL4Q9bCd6Wt60Z4H8QCgJI9\",\n + \ \"failure_reason_code\": null,\n \"voided_at\": null,\n \"id\": + \"HL4Q9bCd6Wt60Z4H8QCgJI9\"\n }\n ],\n \"links\": {\n \"card_holds.events\": + \"/card_holds/{card_holds.id}/events\",\n \"card_holds.card\": \"/cards/{card_holds.card}\",\n + \ \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\",\n \"card_holds.debit\": + \"/debits/{card_holds.debit}\"\n }\n}"} + headers: + content-length: ['942'] + content-type: [application/json] + status: {code: 201, message: CREATED} +- request: + body: '{"amount": 1000, "description": "janet"}' + headers: {} + method: POST + uri: https://api.balancedpayments.com:443/card_holds/HL4Q9bCd6Wt60Z4H8QCgJI9/debits + response: + body: {string: !!python/unicode "{\n \"debits\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"customer\": + \"CU3KXdyvNSDeyLP3pAWr9hqd\",\n \"source\": \"CC3MHBsW6vHaL3suLVdTVbO9\",\n + \ \"order\": null,\n \"dispute\": null\n },\n \"updated_at\": + \"2014-07-28T12:45:11.072385Z\",\n \"created_at\": \"2014-07-28T12:45:10.634916Z\",\n + \ \"transaction_number\": \"W048-092-6532\",\n \"failure_reason\": + null,\n \"currency\": \"USD\",\n \"amount\": 1000,\n \"failure_reason_code\": + null,\n \"meta\": {\n \"state\": \"new\",\n \"participant_id\": + \"2\"\n },\n \"href\": \"/debits/WD5EixoE4g0Y05maT0KUnBj\",\n \"appears_on_statement_as\": + \"BAL*example.com\",\n \"id\": \"WD5EixoE4g0Y05maT0KUnBj\"\n }\n ],\n + \ \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\",\n + \ \"debits.dispute\": \"/disputes/{debits.dispute}\",\n \"debits.source\": + \"/resources/{debits.source}\",\n \"debits.order\": \"/orders/{debits.order}\",\n + \ \"debits.refunds\": \"/debits/{debits.id}/refunds\",\n \"debits.events\": + \"/debits/{debits.id}/events\"\n }\n}"} + headers: + content-length: ['1061'] + content-type: [application/json] + status: {code: 201, message: CREATED} +- request: + body: '{"status": "succeeded", "description": "janet", "amount": 1000, "created_at": + "2014-07-28T12:45:09.914076Z", "card_href": "/cards/CC3MHBsW6vHaL3suLVdTVbO9", + "updated_at": "2014-07-28T12:45:10.156500Z", "expires_at": "2014-08-04T12:45:10.042686Z", + "failure_reason": null, "currency": "USD", "transaction_number": "HL141-112-2168", + "meta": {"state": "captured", "participant_id": "2"}, "debit": null, "failure_reason_code": + null, "voided_at": null, "id": "HL4Q9bCd6Wt60Z4H8QCgJI9"}' + headers: {} + method: PUT + uri: https://api.balancedpayments.com:443/card_holds/HL4Q9bCd6Wt60Z4H8QCgJI9 + response: + body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"card\": + \"CC3MHBsW6vHaL3suLVdTVbO9\",\n \"debit\": \"WD5EixoE4g0Y05maT0KUnBj\"\n + \ },\n \"updated_at\": \"2014-07-28T12:45:11.454240Z\",\n \"created_at\": + \"2014-07-28T12:45:09.914076Z\",\n \"transaction_number\": \"HL141-112-2168\",\n + \ \"expires_at\": \"2014-08-04T12:45:10.042686Z\",\n \"failure_reason\": + null,\n \"currency\": \"USD\",\n \"amount\": 1000,\n \"meta\": + {\n \"state\": \"captured\",\n \"participant_id\": \"2\"\n },\n + \ \"href\": \"/card_holds/HL4Q9bCd6Wt60Z4H8QCgJI9\",\n \"failure_reason_code\": + null,\n \"voided_at\": null,\n \"id\": \"HL4Q9bCd6Wt60Z4H8QCgJI9\"\n + \ }\n ],\n \"links\": {\n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\",\n + \ \"card_holds.card\": \"/cards/{card_holds.card}\",\n \"card_holds.debits\": + \"/card_holds/{card_holds.id}/debits\",\n \"card_holds.debit\": \"/debits/{card_holds.debit}\"\n + \ }\n}"} + headers: + content-length: ['968'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU3KXdyvNSDeyLP3pAWr9hqd + response: + body: + string: !!binary | + H4sIAAAAAAAAA41Uy27bMBC85ysEnWvLipQ29i1oby2CAG3RokUh0CQLEZFIhY+ggqF/79KWZJpU + wlx02J0ZcmdHPFwlSYqN0qKlUqW75DcUkuRw/EKLo5ZClZumeTfVGsYfLXQCAUwJI7EPhDqhSjOO + NBN8VBlFhlnNdARpSiqkAZFeb/Jytfmw2uTf8ptdWezKcp0Xxfvb7a90pmBJX6UU622+uSlKh0LE + vmoF17U/DCP22I/fi88/Sf98//UT7b88FN3dD7mtn8j5zK4W3B8wrSX9a+nZ7GAWVwKjcY24rpRG + 2lgjUy5WLdK4Ph/XUo08i+mTheZp4KCdradI+qMhQiRV3qYw070HhD3BSun1cjkPy/bivhcg0glo + NBUWZKGJheFa9m43GGRvFNxDqWopdUrxqkFKl/6YtEWsCYrsInADnPXH5sdO6oT3HP31HOE0A9eO + eVbZYV7s2B/GFTlEjCSpatGQ4yqdKDhkRobMwZ2S7GjsEX+sED6aFJG5hAZKhO5ZTGLELHDdv/UF + H5xfesEM+k9TySEFbxsmhAeXsrZFLDlBAiZhqjOaRsgzKuBribhC2D5eEY0LZKADj4ThsRkm0AL7 + GV5m1ESuIOkECxSEJKe3/ZVwjpiAC08tieZpAsH/NVwN/wHQiK4AUwYAAA== + headers: + content-encoding: [gzip] + content-length: ['499'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU3KXdyvNSDeyLP3pAWr9hqd/cards?limit=10&offset=0 + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VVW2+bMBR+76+weNhTmwBOyEWqprSbVq1NWq1dO3WakIPtxiqxmW2yoCr/fbaB + AL1o08YDEud+vvOdw9MBAF6CJFbeFHw3HwA8ubcRp4w/WnEtsJa50mJNpJF6p1/h+TdcbBbXH0hx + cQWz2Z2crH5ir/LfHdaBKOMPRGaScW0dx8mI+oMQwmiI6HicQAKjhPrhaBCRBEUDihMKI4yTkAQU + Tow5SSYUUor9IQqjkbcPnGw2sSQqT21cnqfpXsPz9bIsc9t6AvM03mij4kwojdJ4jXSysrVx0ejJ + NmMSaSZ4vBZcW33g7zOsiUZdcCR5MLYOGsFpruxHbW6xY7qItfjlLNoKhLFpQsWhVZyILQhfQsiw + i3sK52cn6i7anKELqPKLW3xzu7yctBBBmjwIWVhroVcGgn3BusiIFSeSYKa7INb9dzBcIv4Yc7R2 + Xp+v5pdfPs0W4PRsdv0RnMwW54dg0Zv1ungqLQnRDZ4FUY3BUiLu+rhlCjXiPMOmahwjx47QDwZH + /ujID26C4XQAp4NhbzwMQhjct1KVkBn7NjkNwEbS7qFkMbHIviIObD4TGcwR4+Dald4ejKGGds2/ + Os+KOonAzmbih4Hf9k5EzrUs4srA5n+xGQniMSZLM44p0DInDX9L2DvzaPGxIMjuYOiHDSHNMjxr + 02Mq3hDJKCMW9k4CS/796nhl76BiIjBjAmV7wFYPsABcaOBY0hq4rb5i0xRQlKqm/pUk1KLSd7el + /xfEleQPJBhEcBLA+3I3dgbKHxYtr7OHXoqUY1G/vlQm9xt3qiztfcrWTB8H/jtBqSL6uJ6hx8m2 + e1a8pqnqDP57cJfVFFofFK/MbiTVQL1Mkg0TuT3ADQs8Lcy5sn4lUzzK5P83bGB0x/rZxS//Cz3M + VJZrs8fNOJ/cVHsM7/p7bVVQqWn/J1qjqPxq7a5alyqRdY1XInX/opo5rVQtfSeZW6A3fCqd7fBg + 9xv4QHhu7QYAAA== + headers: + content-encoding: [gzip] + content-length: ['751'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: '{"amount": 1576, "meta": {"state": "new", "participant_id": 2}, "description": + "janet"}' + headers: {} + method: POST + uri: https://api.balancedpayments.com:443/cards/CC3MHBsW6vHaL3suLVdTVbO9/card_holds + response: + body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"card\": + \"CC3MHBsW6vHaL3suLVdTVbO9\",\n \"debit\": null\n },\n \"updated_at\": + \"2014-07-28T12:45:12.850022Z\",\n \"created_at\": \"2014-07-28T12:45:12.631439Z\",\n + \ \"transaction_number\": \"HL977-592-8484\",\n \"expires_at\": \"2014-08-04T12:45:12.764652Z\",\n + \ \"failure_reason\": null,\n \"currency\": \"USD\",\n \"amount\": + 1576,\n \"meta\": {\n \"state\": \"new\",\n \"participant_id\": + \"2\"\n },\n \"href\": \"/card_holds/HL7TDxM5fKRKe3RqQYc6eNv\",\n + \ \"failure_reason_code\": null,\n \"voided_at\": null,\n \"id\": + \"HL7TDxM5fKRKe3RqQYc6eNv\"\n }\n ],\n \"links\": {\n \"card_holds.events\": + \"/card_holds/{card_holds.id}/events\",\n \"card_holds.card\": \"/cards/{card_holds.card}\",\n + \ \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\",\n \"card_holds.debit\": + \"/debits/{card_holds.debit}\"\n }\n}"} + headers: + content-length: ['942'] + content-type: [application/json] + status: {code: 201, message: CREATED} - request: body: '{"amount": 1576, "description": "janet"}' headers: {} method: POST - uri: https://api.balancedpayments.com:443/cards/CC3MHBsW6vHaL3suLVdTVbO9/debits + uri: https://api.balancedpayments.com:443/card_holds/HL7TDxM5fKRKe3RqQYc6eNv/debits response: body: {string: !!python/unicode "{\n \"debits\": [\n {\n \"status\": \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"customer\": \"CU3KXdyvNSDeyLP3pAWr9hqd\",\n \"source\": \"CC3MHBsW6vHaL3suLVdTVbO9\",\n \ \"order\": null,\n \"dispute\": null\n },\n \"updated_at\": - \"2014-07-01T15:44:48.009128Z\",\n \"created_at\": \"2014-07-01T15:44:47.335350Z\",\n - \ \"transaction_number\": \"W589-042-5118\",\n \"failure_reason\": + \"2014-07-28T12:45:13.689850Z\",\n \"created_at\": \"2014-07-28T12:45:13.269306Z\",\n + \ \"transaction_number\": \"W428-667-1972\",\n \"failure_reason\": null,\n \"currency\": \"USD\",\n \"amount\": 1576,\n \"failure_reason_code\": - null,\n \"meta\": {},\n \"href\": \"/debits/WD4UhNrdn6rW5mo9B8dy3Vad\",\n - \ \"appears_on_statement_as\": \"BAL*example.com\",\n \"id\": \"WD4UhNrdn6rW5mo9B8dy3Vad\"\n - \ }\n ],\n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\",\n + null,\n \"meta\": {\n \"state\": \"new\",\n \"participant_id\": + \"2\"\n },\n \"href\": \"/debits/WD8C07Yk8Sw3QuUqCbilLgh\",\n \"appears_on_statement_as\": + \"BAL*example.com\",\n \"id\": \"WD8C07Yk8Sw3QuUqCbilLgh\"\n }\n ],\n + \ \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\",\n \ \"debits.dispute\": \"/disputes/{debits.dispute}\",\n \"debits.source\": \"/resources/{debits.source}\",\n \"debits.order\": \"/orders/{debits.order}\",\n \ \"debits.refunds\": \"/debits/{debits.id}/refunds\",\n \"debits.events\": \"/debits/{debits.id}/events\"\n }\n}"} headers: - content-length: ['1002'] + content-length: ['1061'] content-type: [application/json] status: {code: 201, message: CREATED} +- request: + body: '{"status": "succeeded", "description": "janet", "amount": 1576, "created_at": + "2014-07-28T12:45:12.631439Z", "card_href": "/cards/CC3MHBsW6vHaL3suLVdTVbO9", + "updated_at": "2014-07-28T12:45:12.850022Z", "expires_at": "2014-08-04T12:45:12.764652Z", + "failure_reason": null, "currency": "USD", "transaction_number": "HL977-592-8484", + "meta": {"state": "captured", "participant_id": "2"}, "debit": null, "failure_reason_code": + null, "voided_at": null, "id": "HL7TDxM5fKRKe3RqQYc6eNv"}' + headers: {} + method: PUT + uri: https://api.balancedpayments.com:443/card_holds/HL7TDxM5fKRKe3RqQYc6eNv + response: + body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"card\": + \"CC3MHBsW6vHaL3suLVdTVbO9\",\n \"debit\": \"WD8C07Yk8Sw3QuUqCbilLgh\"\n + \ },\n \"updated_at\": \"2014-07-28T12:45:14.126939Z\",\n \"created_at\": + \"2014-07-28T12:45:12.631439Z\",\n \"transaction_number\": \"HL977-592-8484\",\n + \ \"expires_at\": \"2014-08-04T12:45:12.764652Z\",\n \"failure_reason\": + null,\n \"currency\": \"USD\",\n \"amount\": 1576,\n \"meta\": + {\n \"state\": \"captured\",\n \"participant_id\": \"2\"\n },\n + \ \"href\": \"/card_holds/HL7TDxM5fKRKe3RqQYc6eNv\",\n \"failure_reason_code\": + null,\n \"voided_at\": null,\n \"id\": \"HL7TDxM5fKRKe3RqQYc6eNv\"\n + \ }\n ],\n \"links\": {\n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\",\n + \ \"card_holds.card\": \"/cards/{card_holds.card}\",\n \"card_holds.debits\": + \"/card_holds/{card_holds.id}/debits\",\n \"card_holds.debit\": \"/debits/{card_holds.debit}\"\n + \ }\n}"} + headers: + content-length: ['968'] + content-type: [application/json] + status: {code: 200, message: OK} - request: body: null headers: {} @@ -127,18 +308,18 @@ interactions: body: {string: !!python/unicode "{\n \"credits\": [\n {\n \"status\": \"succeeded\",\n \"description\": \"homer\",\n \"links\": {\n \"customer\": \"CU3O2IKYocPZ5LA7GkZWpwKZ\",\n \"destination\": \"BA3QLnsEGgrsjqfhXh43Pq4d\",\n - \ \"order\": null\n },\n \"updated_at\": \"2014-07-01T15:44:49.736053Z\",\n - \ \"created_at\": \"2014-07-01T15:44:49.468347Z\",\n \"transaction_number\": - \"CR096-343-6203\",\n \"failure_reason\": null,\n \"currency\": + \ \"order\": null\n },\n \"updated_at\": \"2014-07-28T12:45:15.420772Z\",\n + \ \"created_at\": \"2014-07-28T12:45:15.147750Z\",\n \"transaction_number\": + \"CR799-163-2280\",\n \"failure_reason\": null,\n \"currency\": \"USD\",\n \"amount\": 1500,\n \"failure_reason_code\": null,\n - \ \"meta\": {},\n \"href\": \"/credits/CR4WGfyhoAK9GlZY845TaPch\",\n - \ \"appears_on_statement_as\": \"example.com\",\n \"id\": \"CR4WGfyhoAK9GlZY845TaPch\"\n + \ \"meta\": {},\n \"href\": \"/credits/CRaID8fpEYnsVwGSlUuCAZW\",\n + \ \"appears_on_statement_as\": \"example.com\",\n \"id\": \"CRaID8fpEYnsVwGSlUuCAZW\"\n \ }\n ],\n \"links\": {\n \"credits.order\": \"/orders/{credits.order}\",\n \ \"credits.customer\": \"/customers/{credits.customer}\",\n \"credits.destination\": \"/resources/{credits.destination}\",\n \"credits.reversals\": \"/credits/{credits.id}/reversals\",\n \ \"credits.events\": \"/credits/{credits.id}/events\"\n }\n}"} headers: - content-length: ['955'] + content-length: ['953'] content-type: [application/json] status: {code: 201, message: CREATED} - request: @@ -189,98 +370,69 @@ interactions: body: null headers: {} method: GET - uri: https://api.balancedpayments.com:443/customers/CU3O2IKYocPZ5LA7GkZWpwKZ/credits?limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA61UXW/TMBR936+o/MATXdLGbddKEyoDVaiTKGPTWBGKjHNDzBI7s52xqcp/x3bj - JCuqeICXKLkf55z7ld3JYICohIRphRaDr+ZzMNi5p3EoTXRl7UhVlAIkkKDX3pmAopKVmgluIzJR - gOy8OeP3NtNjWZpKaRdkoi9uoo/jD+s7QTfbyeVytrrf3pa/1tsWwMQbAs048QRvl9GnS67er35I - 9fMhzb5kONo84E6RSREycfi8yvNGZ90KrsqEaEhioq2CcTjCw3A2DEfXo8kC4wWen86iaTiJOhG2 - M39JwdOzCM96KVoSrgi1qmNeFd+beq/C+XQY4Wg4HYdR16aUsLySEBse5fpolbeKaSUlcPps9d58 - ftelkUJU3JYxmoRhG/4SLKYigUPEAjSxU+m6kklILX7QbEFwcYVvV+lzJpbr+Srf3p3hyTXZ0KzH - XpZApIpNhXZDoACuY+L2BJ5IUeZwSkXRxbPEuo7iukHV5vnNVoK8RGdGOVFuXIHfHhUc2x1fwZuc - FUyfj8JXIk0V6POwkYI4PFmwrseoq75Zzn+Bd7x2KM1I0J7fWLyhlPDIhDupnggtNMlt3n6SKGXy - fxRtGujGjF7eoj/3U38sKHBvKtg1K7D31L5r3mq0myiSu0G369ImsaQOupCmFJ/bv/3eKNtk7/+D - 1HBy92s6wtj4D+gOfh1GlxKVpNCrsRdSI9uqk/o3GBlRDw0FAAA= - headers: - content-encoding: [gzip] - content-length: ['551'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU3O2IKYocPZ5LA7GkZWpwKZ/credits?limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA61UXW/TMBR936+o/MATXdLGbddKEyoDVaiTKGPTWBGKjHNDzBI7s52xqcp/x3bj - JCuqeICXKLkf55z7ld3JYICohIRphRaDr+ZzMNi5p3EoTXRl7UhVlAIkkKDX3pmAopKVmgluIzJR - gOy8OeP3NtNjWZpKaRdkoi9uoo/jD+s7QTfbyeVytrrf3pa/1tsWwMQbAs048QRvl9GnS67er35I - 9fMhzb5kONo84E6RSREycfi8yvNGZ90KrsqEaEhioq2CcTjCw3A2DEfXo8kC4wWen86iaTiJOhG2 - M39JwdOzCM96KVoSrgi1qmNeFd+beq/C+XQY4Wg4HYdR16aUsLySEBse5fpolbeKaSUlcPps9d58 - ftelkUJU3JYxmoRhG/4SLKYigUPEAjSxU+m6kklILX7QbEFwcYVvV+lzJpbr+Srf3p3hyTXZ0KzH - XpZApIpNhXZDoACuY+L2BJ5IUeZwSkXRxbPEuo7iukHV5vnNVoK8RGdGOVFuXIHfHhUc2x1fwZuc - FUyfj8JXIk0V6POwkYI4PFmwrseoq75Zzn+Bd7x2KM1I0J7fWLyhlPDIhDupnggtNMlt3n6SKGXy - fxRtGujGjF7eoj/3U38sKHBvKtg1K7D31L5r3mq0myiSu0G369ImsaQOupCmFJ/bv/3eKNtk7/+D - 1HBy92s6wtj4D+gOfh1GlxKVpNCrsRdSI9uqk/o3GBlRDw0FAAA= - headers: - content-encoding: [gzip] - content-length: ['551'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU3KXdyvNSDeyLP3pAWr9hqd/debits?limit=10&offset=0 + uri: https://api.balancedpayments.com:443/customers/CU3O2IKYocPZ5LA7GkZWpwKZ/credits?sort=created_at%2Cdesc&limit=10&offset=0 response: body: string: !!binary | - H4sIAAAAAAAAA+1VyW7bMBC95ysCH3ooKpkSRVkKEBReChiooxTZ3AWFwYh0o0RbScqIG/jfS1GU - JQtxm6I+5mKIM5w3M28ex09Hx8e9hArcOzl+kt/yFGMu5KnXDwsusoQy3h9fw4+fyXoVXE7oevYJ - 5sM58+9+kj6ht5Hg7+MoicSpBd5kyyWn4hT03lVYKX0ssdIijrXljtHlodBVWglmAQ1epZeW2pAz - uoqygu/WIDKBY2mCOmwZsQO0LDvelIC9OEofyoyaz4ojs2az0/xTx72pqdN2EvG8EFRF6W/er4O0 - oRvDs4KFVQij1aGJqc7dkIwRylQS9dVcV8fubTnDIiVlj7IoJYFtSRHZ9Gu3pld3Qlc0FXtjtHdL - YhUkM3xTSqq4lORygYWaZ48XYUgpoUQzJp2E8pBFuYiytLxxj1MqGu/uXJTW20PZJ/ItQJl9y+x4 - DM+mIz53V1M8g7yY3ZCrm9tzv327JrWRv0rajLR0qPa0dJS7yAkWlCyweoU2sBwDDAxgXVnoxHFO - HM8EwLds72vTWcjoH0MGJoQIItAKEQynHIclVYu0SG6r6c+R5xvAsQ1kWV6Dv8RRXDC6kGm4orbd - kSSRMZqG67Lc68tJE4aTrEjVA0UDtxKD7G8XbBFmpJTqDmK9kNR7UqRs14aW23ziXN8FjKQum6Mk - 80ceWcMb3NICznOKGV/I/krN0ESqb4GVckbD2Vv6iJM8pmaYJU3BESnde7FVMbqmV0FuBYlM5HjI - tf5BkI7p2y602hreI0jbBQZ0PMNCNjygIAHQfxEHFOTF0FmHV+Gv/IKcAQqDafAlQq3X8D+CfB77 - VZDPbUgITRtBC9gvFyS0TeQBCPy/b0jXAcZgAAzHc5pl31lq3X32gg0JXOvgG3Iy9YPx/Qc2igIE - HmP7Bxg+BAcS5PPYlSDl7/ejzW/H5EyAWwoAAA== + H4sIAAAAAAAAA+WZW2/iOBSA3+dXVJF2njbBd8eRqlVLKXTohYG2FFYrlCZOyRYSSEKZtup/XycQ + yHSbHbTMSEi8RBD7XOx88vE55/XTwYHmRNL1k1izDv5Ufw8OXrOnGogTO5ml77V45jhSutLVfs8H + XRk7kT9J/DBIZwzDsYzWoyM/eEwlc12pmVmcZJPU7OoNvkJnzV7otPr0/IjXH/vdybzZXylQ85WB + xA/s3MDxEf56HsS1+kMU/z31hndDgltTsvZIiYSRm+kPZqPR0s+3lcOziWsn0h3YSeoBApDogOvI + vIbIItSC1CAIcI7WTqQ78wMRSDinoCCSRHYQ207q9SCYje+X621zIXTIsI6QCdbb5Nn+aBbJgbIT + Z/uYer7y2JlFkQyc59Tfm87JWsweh7MgXQakAKymf69s4ISufK9xLBM7/SrrXRlG0kv1V5YUVKpt + ++zE9Ca1XhDfzuud0c2setTvFoxPJtKO4oFaYAqIHMsgGdgZJvKbPZ6MpOGE4/V8302HytRmn2np + zl6BB9k15BYQFoAGUxBR8UPwiiKIUwaLrJaCB6BuMqGbCIgdB491zIt+f1r3zvBj0v5yNbk8HYrG + 9uSV6N139LCFsMEhgmBj9DIRQkwg6AZnnsDqiMVc51jAHUevef/gfG2Pw1h2+o8nwW3PZxeFFdr/ + 88z7WO1eg8cswi0IDGxiyMhGZ14uooKtOvY2AI8IokMBdcEJ2XHwWFyvD91L4VXd8+dnWW+wfu8Y + /YQz72O9e44eIhbiBmNIYL4hegsRgikGRZGycAuBqTNKdKyM7Dh6lDt3Z/7LvOE53eNaIwzk9NKM + t0evRO+eowdNCxODEchBMV/4OMVIb3rMWohgrnKHYoQuQ48TlV4IqlOM+Y6jx57stimSKr/5EnSj + DoXzzi2+3h69Er17jR5V3FlIoYegCYvRsxy9XAQziMEmAVekSYbKpgVhu55k0HtYC+67DVmberLX + 8P3a6P7E2x69Er17jR6xCLIQMzAyVTjcKODmIoBxINgGdz1uEl1QqBKNnb/rYfEwPGNTeUlIYsOr + aD7kL6et7dEr0bvX6CGLIgsyA0GsIu5G6C1EqKEOMcQ2CbgCQp0jqhMA6K4H3HrY675A0mwn3sSE + 5HRO5sfbk8c+VLvn4BFmUWoAZkJzsyRD1Z+VCDFMpGgqpsRlNz1AVG5LhCqsmLteWEHk5ap1Mele + 3uETYHevWqQpWv725JXoXaCnnn+lZXEtr3dnr7WRHWe1/0reiogrZY2IvBz+RxxGyeH6pvQbqqaN + j88jf+wnhxB8Dj0vlskhy4v6WiC//SojcGVkXbVfNlV+3kpWNrIlpj2GZYdBWyxVvclfTCL55IdZ + h2jdt9CSMLFH6hVDi86E5vnRL9t3oKlPm7UPtO9bTnlXy5BPqj+RdSdWLY7XZa/D8N23ynJ86Ws+ + kneStEr2K66sZLL/b0uAV1bUTqhZ9ug/DK2nvLP1rtFViWQcziJHFowWpvzLdLGvViB75XA+/pZt + 1ae3fwBwhxeM9BsAAA== headers: content-encoding: [gzip] - content-length: ['712'] + content-length: ['1153'] content-type: [application/json] status: {code: 200, message: OK} - request: body: null headers: {} method: GET - uri: https://api.balancedpayments.com:443/customers/CU3KXdyvNSDeyLP3pAWr9hqd/debits?limit=10&offset=0 + uri: https://api.balancedpayments.com:443/customers/CU3KXdyvNSDeyLP3pAWr9hqd/debits?sort=created_at%2Cdesc&limit=10&offset=0 response: body: string: !!binary | - H4sIAAAAAAAAA+1VyW7bMBC95ysCH3ooKpkSRVkKEBReChiooxTZ3AWFwYh0o0RbScqIG/jfS1GU - JQtxm6I+5mKIM5w3M28ex09Hx8e9hArcOzl+kt/yFGMu5KnXDwsusoQy3h9fw4+fyXoVXE7oevYJ - 5sM58+9+kj6ht5Hg7+MoicSpBd5kyyWn4hT03lVYKX0ssdIijrXljtHlodBVWglmAQ1epZeW2pAz - uoqygu/WIDKBY2mCOmwZsQO0LDvelIC9OEofyoyaz4ojs2az0/xTx72pqdN2EvG8EFRF6W/er4O0 - oRvDs4KFVQij1aGJqc7dkIwRylQS9dVcV8fubTnDIiVlj7IoJYFtSRHZ9Gu3pld3Qlc0FXtjtHdL - YhUkM3xTSqq4lORygYWaZ48XYUgpoUQzJp2E8pBFuYiytLxxj1MqGu/uXJTW20PZJ/ItQJl9y+x4 - DM+mIz53V1M8g7yY3ZCrm9tzv327JrWRv0rajLR0qPa0dJS7yAkWlCyweoU2sBwDDAxgXVnoxHFO - HM8EwLds72vTWcjoH0MGJoQIItAKEQynHIclVYu0SG6r6c+R5xvAsQ1kWV6Dv8RRXDC6kGm4orbd - kSSRMZqG67Lc68tJE4aTrEjVA0UDtxKD7G8XbBFmpJTqDmK9kNR7UqRs14aW23ziXN8FjKQum6Mk - 80ceWcMb3NICznOKGV/I/krN0ESqb4GVckbD2Vv6iJM8pmaYJU3BESnde7FVMbqmV0FuBYlM5HjI - tf5BkI7p2y602hreI0jbBQZ0PMNCNjygIAHQfxEHFOTF0FmHV+Gv/IKcAQqDafAlQq3X8D+CfB77 - VZDPbUgITRtBC9gvFyS0TeQBCPy/b0jXAcZgAAzHc5pl31lq3X32gg0JXOvgG3Iy9YPx/Qc2igIE - HmP7Bxg+BAcS5PPYlSDl7/ejzW/H5EyAWwoAAA== + H4sIAAAAAAAAA+2Z62/iRhDAv99fESH1PlS1sy/vrpGiKhBS2lByF15Nqgo59kKcgO34waNR/veu + H2AgcMf1HClt+BLZu56ZnZnfTmaXpw9HR6WxCI1S+ehJPsu3kRGE8q10bEZB6I6FHxxXO/jiD2s+ + abbOxLzxCXunPV+/e7SOLXFrh8HPgeuHJ6YvjFBYfSP8AVUtEZgfR/bYDk8g+OgOBoEITxAEpZ9S + I46YvZKR3MadLwav48jSjcRDaQOCzK/UUzmyGPB8MbHdKJBDTjQaZZ+FbmiM5BCCMBsZ2P5rhR2U + ZMyfYzulke08xEvJUp2mT10keiNYTxvTz4vkZeOWHXhRKBKp7Dk4XghlA5sygRv5Zirii/Qll0nf + N0Vc3xJ+YiR5yj9PXje/ljmPHCv2US4qoXO5JNt6Pl5MZ1HPPBET4YQ7ZbLZZRBTIWnhz4TlNJYy + uEFohEmiS0FkmkJYwsoiJifjDeHbXmi7TvzFveGIMJ9dz0uyDVeTsmv/LRXE1peRrVbx7/VK0KOT + utHAQdToWu3u7aW++vUiqDmTidE8pfFE4l6GTjIdeVa2xWMfEIBEAUxBvA1RmWhliFXKda6Bm9yz + vCrsEkFUx4CuiIS+4QSGGYeq70Tj2zT7PYK4QilToM5Qrn9g2KPIF31ZfIIktKseySD6vnDMeWy7 + 0zrLxYyxGznJztUYTWGQ/q0r65uuFaO6pnGtViZBidOeEO2I6WqIPcMPbdP2DCfs21bifbwR1yO6 + rFEZq70zXgXs+oG3pvhz1Hms3tqjxvBuZeGeJww/6MvYJIbHkty+kVBXOW38KGbG2BsJ1XTHuUxq + fZfqZE1JeTiwvMIyVAFDmGvfwDJQKSY63INlQLgCdKRQDRfJMgDZv503wrJWs2dujQzBNdDGRhtc + dJzKfTEsb1d9YPllXSZlwFXOOaRoX5YTEcIY0vDX6zImVOGcKAwC/j+uy/Si2e5+Nm8nQ2M0qAl8 + ecaqV5NiYN6h+0DzVpqpCrGO1lqGL3YZkmZNpYwyvE9lhlihHCkE8wIrMwJ61ui/kcpM67XK5XW3 + hj0Ia7ptuV4wDVbaVeM72owdug80b6UZq5gRQPRvqM1I1QmCFH69NhMOFVn4FZ1RrcDa/Nb6DFo7 + tVsP9YY/fTD4Q7My/JuAeVE0b9d9oPkFzZiWCVKZBiFbLbRfqs2pCCQA0X06DUAVSJgCuAaLpJkW + VZtNwwvlYTQnT1Z7MTPvDGcosjNgvnA59y+PiNS/CuH5RHeazWG33rRvQ7ty1SqoFdmu+4D7S9xJ + mcguGXAE2Z7FGyciAEAIVkV2XXhATZFNu4J1/q5xJ05knfe08QOpeae1zo0N5+ddUQzuO3QfcH+B + O8Tx/R6BgMB970RSEQAIYKsiO3DHmjxHyjsRjkmR50jwX6vuZGi0Z4BefBrXamI2hPNmfbByeVv6 + ntZ8h+4D7i9xR2WoqTrkZO/WXF6CSxFNwq7v05pD2ZprTMFcZ++5mcHWZOL82q53p5zbo1mr/UvP + vcHFVPcdug+4b+AOy3EjDlT5A61G9vv1JhHBuso4Q2QP3OUhV9ExVJD8yfNd4/74W5UxisLG/elU + Z1fTs87N8Log3LfrTnGXf//68PwP4sdp3vAfAAA= headers: content-encoding: [gzip] - content-length: ['712'] + content-length: ['1226'] content-type: [application/json] status: {code: 200, message: OK} version: 1 diff --git a/tests/py/fixtures/TestPayin.yml b/tests/py/fixtures/TestPayin.yml new file mode 100644 index 0000000000..45b584e25f --- /dev/null +++ b/tests/py/fixtures/TestPayin.yml @@ -0,0 +1,374 @@ +interactions: +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU3KXdyvNSDeyLP3pAWr9hqd + response: + body: + string: !!binary | + H4sIAAAAAAAAA41Uy27bMBC85ysEnWvLipQ29i1oby2CAG3RokUh0CQLEZFIhY+ggqF/79KWZJpU + wlx02J0ZcmdHPFwlSYqN0qKlUqW75DcUkuRw/EKLo5ZClZumeTfVGsYfLXQCAUwJI7EPhDqhSjOO + NBN8VBlFhlnNdARpSiqkAZFeb/Jytfmw2uTf8ptdWezKcp0Xxfvb7a90pmBJX6UU622+uSlKh0LE + vmoF17U/DCP22I/fi88/Sf98//UT7b88FN3dD7mtn8j5zK4W3B8wrSX9a+nZ7GAWVwKjcY24rpRG + 2lgjUy5WLdK4Ph/XUo08i+mTheZp4KCdradI+qMhQiRV3qYw070HhD3BSun1cjkPy/bivhcg0glo + NBUWZKGJheFa9m43GGRvFNxDqWopdUrxqkFKl/6YtEWsCYrsInADnPXH5sdO6oT3HP31HOE0A9eO + eVbZYV7s2B/GFTlEjCSpatGQ4yqdKDhkRobMwZ2S7GjsEX+sED6aFJG5hAZKhO5ZTGLELHDdv/UF + H5xfesEM+k9TySEFbxsmhAeXsrZFLDlBAiZhqjOaRsgzKuBribhC2D5eEY0LZKADj4ThsRkm0AL7 + GV5m1ESuIOkECxSEJKe3/ZVwjpiAC08tieZpAsH/NVwN/wHQiK4AUwYAAA== + headers: + content-encoding: [gzip] + content-length: ['499'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU3KXdyvNSDeyLP3pAWr9hqd/cards?limit=10&offset=0 + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VVW2+bMBR+76+weNhTmwBOyEWqprSbVq1NWq1dO3WakIPtxiqxmW2yoCr/fbaB + AL1o08YDEud+vvOdw9MBAF6CJFbeFHw3HwA8ubcRp4w/WnEtsJa50mJNpJF6p1/h+TdcbBbXH0hx + cQWz2Z2crH5ir/LfHdaBKOMPRGaScW0dx8mI+oMQwmiI6HicQAKjhPrhaBCRBEUDihMKI4yTkAQU + Tow5SSYUUor9IQqjkbcPnGw2sSQqT21cnqfpXsPz9bIsc9t6AvM03mij4kwojdJ4jXSysrVx0ejJ + NmMSaSZ4vBZcW33g7zOsiUZdcCR5MLYOGsFpruxHbW6xY7qItfjlLNoKhLFpQsWhVZyILQhfQsiw + i3sK52cn6i7anKELqPKLW3xzu7yctBBBmjwIWVhroVcGgn3BusiIFSeSYKa7INb9dzBcIv4Yc7R2 + Xp+v5pdfPs0W4PRsdv0RnMwW54dg0Zv1ungqLQnRDZ4FUY3BUiLu+rhlCjXiPMOmahwjx47QDwZH + /ujID26C4XQAp4NhbzwMQhjct1KVkBn7NjkNwEbS7qFkMbHIviIObD4TGcwR4+Dald4ejKGGds2/ + Os+KOonAzmbih4Hf9k5EzrUs4srA5n+xGQniMSZLM44p0DInDX9L2DvzaPGxIMjuYOiHDSHNMjxr + 02Mq3hDJKCMW9k4CS/796nhl76BiIjBjAmV7wFYPsABcaOBY0hq4rb5i0xRQlKqm/pUk1KLSd7el + /xfEleQPJBhEcBLA+3I3dgbKHxYtr7OHXoqUY1G/vlQm9xt3qiztfcrWTB8H/jtBqSL6uJ6hx8m2 + e1a8pqnqDP57cJfVFFofFK/MbiTVQL1Mkg0TuT3ADQs8Lcy5sn4lUzzK5P83bGB0x/rZxS//Cz3M + VJZrs8fNOJ/cVHsM7/p7bVVQqWn/J1qjqPxq7a5alyqRdY1XInX/opo5rVQtfSeZW6A3fCqd7fBg + 9xv4QHhu7QYAAA== + headers: + content-encoding: [gzip] + content-length: ['751'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: '{"amount": 1061, "meta": {"state": "new", "participant_id": 2}, "description": + "janet"}' + headers: {} + method: POST + uri: https://api.balancedpayments.com:443/cards/CC3MHBsW6vHaL3suLVdTVbO9/card_holds + response: + body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"card\": + \"CC3MHBsW6vHaL3suLVdTVbO9\",\n \"debit\": null\n },\n \"updated_at\": + \"2014-07-28T13:06:03.447969Z\",\n \"created_at\": \"2014-07-28T13:06:02.929188Z\",\n + \ \"transaction_number\": \"HL204-775-3704\",\n \"expires_at\": \"2014-08-04T13:06:03.363939Z\",\n + \ \"failure_reason\": null,\n \"currency\": \"USD\",\n \"amount\": + 1061,\n \"meta\": {\n \"state\": \"new\",\n \"participant_id\": + \"2\"\n },\n \"href\": \"/card_holds/HL7e0PQfQDeqDvm9LpSVYwEV\",\n + \ \"failure_reason_code\": null,\n \"voided_at\": null,\n \"id\": + \"HL7e0PQfQDeqDvm9LpSVYwEV\"\n }\n ],\n \"links\": {\n \"card_holds.events\": + \"/card_holds/{card_holds.id}/events\",\n \"card_holds.card\": \"/cards/{card_holds.card}\",\n + \ \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\",\n \"card_holds.debit\": + \"/debits/{card_holds.debit}\"\n }\n}"} + headers: + content-length: ['944'] + content-type: [application/json] + status: {code: 201, message: CREATED} +- request: + body: '{"status": "succeeded", "transaction_number": "HL204-775-3704", "description": + "janet", "amount": 1061, "created_at": "2014-07-28T13:06:02.929188Z", "card_href": + "/cards/CC3MHBsW6vHaL3suLVdTVbO9", "updated_at": "2014-07-28T13:06:03.447969Z", + "expires_at": "2014-08-04T13:06:03.363939Z", "failure_reason": null, "currency": + "USD", "is_void": true, "meta": {"state": "cancelled", "participant_id": "2"}, + "debit": null, "failure_reason_code": null, "voided_at": null, "id": "HL7e0PQfQDeqDvm9LpSVYwEV"}' + headers: {} + method: PUT + uri: https://api.balancedpayments.com:443/card_holds/HL7e0PQfQDeqDvm9LpSVYwEV + response: + body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"card\": + \"CC3MHBsW6vHaL3suLVdTVbO9\",\n \"debit\": null\n },\n \"updated_at\": + \"2014-07-28T13:06:03.805059Z\",\n \"created_at\": \"2014-07-28T13:06:02.929188Z\",\n + \ \"transaction_number\": \"HL204-775-3704\",\n \"expires_at\": \"2014-08-04T13:06:03.363939Z\",\n + \ \"failure_reason\": null,\n \"currency\": \"USD\",\n \"amount\": + 1061,\n \"meta\": {\n \"state\": \"cancelled\",\n \"participant_id\": + \"2\"\n },\n \"href\": \"/card_holds/HL7e0PQfQDeqDvm9LpSVYwEV\",\n + \ \"failure_reason_code\": null,\n \"voided_at\": \"2014-07-28T13:06:03.805061Z\",\n + \ \"id\": \"HL7e0PQfQDeqDvm9LpSVYwEV\"\n }\n ],\n \"links\": {\n + \ \"card_holds.events\": \"/card_holds/{card_holds.id}/events\",\n \"card_holds.card\": + \"/cards/{card_holds.card}\",\n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\",\n + \ \"card_holds.debit\": \"/debits/{card_holds.debit}\"\n }\n}"} + headers: + content-length: ['975'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/card_holds?meta.state=new&limit=25&offset=0 + response: + body: + string: !!binary | + H4sIAAAAAAAAA92ZWU/bShTH3/spkB/6dG1mXyyhK7Y2gUBZ0lC4uooce0JcgpN4yQLiu3fsbI4a + C6uNkJKXCM2c4/+Z4aczM+e8ftrbM1wn9JqdXteLDHvvPz2yt/ea/eq5KHbiJB03osR1lfKUZ/wz + n/RU5IZ+P/Z7QWrx0wlUvJzt+sFT6jn/1kwptTw+xheVo+iODStODUdJreHVG61vcuGsbT3V8mNt + HCTd7kzwbaGc9D0nVl7TSS0MBCAxATeRqENsA2ojaXFKJZMPy3DcUL3jQrGEgORc4tAJIsdN19cM + kueWClO1So0TZhIMTSoJWQqocd8PVbQSkzABWcbEmARM5ATajt9NQtXUoUXZHqaLXSzSTcJQBe4k + Ff1+e7JUcp57SZCuHAEJF+bPKnZWtzv956nUO1Cj/Nb2nTD2Xb/vBHHT97IdNH7b4k6o2unU/hKP + /UqNHUdo+PQwcF7ugtP4hZ7e3l/GP5ahra6o6fa8NICVZQ17vqZouk0rE9NQCjWyCGcIbC+fyMbQ + xtjCjADOS/E5d4EEYUpL8Cmo5pNqPgllZficCyABgMzHtH18Xj91ru6/JBWVsOGZHJxWnujXi83i + uV5iN+gENhU2BRaFAmNUis65C9apjZWhk2Nq6kRrYp1uy9A5FyAYY57P6H9LJyZSfmz2hN5oNCLu + QIUt1/U61dbl2dFpY7N4FmjsEJ8QWpIKLMplzwwf7cIRELAMn0JCE1BkIg5BaT61gOBASrzB0/3j + +RwJeXdzXz0fdB4TR9LO/QiMJ5vFc73ErtAJhE2oxRlAK5mq+O4J7KkLZVhiUOJspzp7IqHvuoiU + pHMqwDjlFG41nbAdf629KIgdMBo7PwZXF+f8e+GK/uzuWaCxM3wiG3ILaTxJ2ewJtAuzJBdIsBJ8 + MgFMQqTJKRblsmcqwC2IkBDbnT3hQzIcEFE7m0wak5uTyVPMwqi62fRZoLH9fEJWh9wGLGWBIK4P + 4Xdvn3kXpC+HJI9P0dsdM2giJkwO2bLcYKx7u+sci5cx6a9Lni8O/O3t8+Pf7rh++jPut5LOZf36 + 8nF8fHVWTS5yBZtNvN0LNHaGT2ITbglE9GOkLJ+ZC9O4kTLnO6DUhFK/3zl/p7a04DMT4FjfbzeZ + Pz+eT/R4w65PTuS42lDfJKq3nVoSXG02fxZo7Ayf2Ma69qmLk+j92ucsf2YuFOlqab40WZQ/KSAm + xcjUObps/swEmC4pyO3OnxB1XPewen/TQucvI/e2dfTMk6PN8lmgsRt8MptqFvRLWVJG8iysfx+l + fM5dmICrz5ciPjkSJsRC1z9Bqfw5F+CSCJm/4G7f+U4Pz/0+aYzPv8Dx1c3hWej1EvyyWT4LNKZ8 + 6t//04KasdKKMLpOlLVpcp2Ef7v+sx8fIPo5NbWyRsWB7lJ87rXbkYoP5k9b3bkYz5tA01KdsaYv + UfprmWraN6Gzj03l9AiYDfRDNfR7Wcdr2Zsw4l7sdPUQnJu1/fAP1qS3JutfGKutsVwDzsq6Xlm/ + Ld93eV32YCzfe9ufWc1izk2mfy6co/28Xzr1NoPhN8XMZ/rVFadsaJ2XGqrg/ThnVum6P739AhEQ + I7VsHAAA + headers: + content-encoding: [gzip] + content-length: ['1203'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: '{"status": "succeeded", "transaction_number": "HL728-138-4504", "description": + "janet", "amount": 2091, "created_at": "2014-07-16T16:53:31.681751Z", "card_href": + "/cards/CC3MHBsW6vHaL3suLVdTVbO9", "updated_at": "2014-07-16T16:53:31.895644Z", + "expires_at": "2014-07-23T16:53:31.794896Z", "failure_reason": null, "currency": + "USD", "is_void": true, "meta": {"state": "cancelled", "participant_id": "2"}, + "debit": null, "failure_reason_code": null, "voided_at": null, "id": "HL5AKip4VxKF1xPRAJrdou3z"}' + headers: {} + method: PUT + uri: https://api.balancedpayments.com:443/card_holds/HL5AKip4VxKF1xPRAJrdou3z + response: + body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"card\": + \"CC3MHBsW6vHaL3suLVdTVbO9\",\n \"debit\": null\n },\n \"updated_at\": + \"2014-07-28T13:06:04.874888Z\",\n \"created_at\": \"2014-07-16T16:53:31.681751Z\",\n + \ \"transaction_number\": \"HL728-138-4504\",\n \"expires_at\": \"2014-07-23T16:53:31.794896Z\",\n + \ \"failure_reason\": null,\n \"currency\": \"USD\",\n \"amount\": + 2091,\n \"meta\": {\n \"state\": \"cancelled\",\n \"participant_id\": + \"2\"\n },\n \"href\": \"/card_holds/HL5AKip4VxKF1xPRAJrdou3z\",\n + \ \"failure_reason_code\": null,\n \"voided_at\": \"2014-07-28T13:06:04.874891Z\",\n + \ \"id\": \"HL5AKip4VxKF1xPRAJrdou3z\"\n }\n ],\n \"links\": {\n + \ \"card_holds.events\": \"/card_holds/{card_holds.id}/events\",\n \"card_holds.card\": + \"/cards/{card_holds.card}\",\n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\",\n + \ \"card_holds.debit\": \"/debits/{card_holds.debit}\"\n }\n}"} + headers: + content-length: ['975'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU3KXdyvNSDeyLP3pAWr9hqd + response: + body: + string: !!binary | + H4sIAAAAAAAAA41Uy27bMBC85ysEnWvLipQ29i1oby2CAG3RokUh0CQLEZFIhY+ggqF/79KWZJpU + wlx02J0ZcmdHPFwlSYqN0qKlUqW75DcUkuRw/EKLo5ZClZumeTfVGsYfLXQCAUwJI7EPhDqhSjOO + NBN8VBlFhlnNdARpSiqkAZFeb/Jytfmw2uTf8ptdWezKcp0Xxfvb7a90pmBJX6UU622+uSlKh0LE + vmoF17U/DCP22I/fi88/Sf98//UT7b88FN3dD7mtn8j5zK4W3B8wrSX9a+nZ7GAWVwKjcY24rpRG + 2lgjUy5WLdK4Ph/XUo08i+mTheZp4KCdradI+qMhQiRV3qYw070HhD3BSun1cjkPy/bivhcg0glo + NBUWZKGJheFa9m43GGRvFNxDqWopdUrxqkFKl/6YtEWsCYrsInADnPXH5sdO6oT3HP31HOE0A9eO + eVbZYV7s2B/GFTlEjCSpatGQ4yqdKDhkRobMwZ2S7GjsEX+sED6aFJG5hAZKhO5ZTGLELHDdv/UF + H5xfesEM+k9TySEFbxsmhAeXsrZFLDlBAiZhqjOaRsgzKuBribhC2D5eEY0LZKADj4ThsRkm0AL7 + GV5m1ESuIOkECxSEJKe3/ZVwjpiAC08tieZpAsH/NVwN/wHQiK4AUwYAAA== + headers: + content-encoding: [gzip] + content-length: ['499'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU3KXdyvNSDeyLP3pAWr9hqd/cards?limit=10&offset=0 + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VVW2+bMBR+76+weNhTmwBOyEWqprSbVq1NWq1dO3WakIPtxiqxmW2yoCr/fbaB + AL1o08YDEud+vvOdw9MBAF6CJFbeFHw3HwA8ubcRp4w/WnEtsJa50mJNpJF6p1/h+TdcbBbXH0hx + cQWz2Z2crH5ir/LfHdaBKOMPRGaScW0dx8mI+oMQwmiI6HicQAKjhPrhaBCRBEUDihMKI4yTkAQU + Tow5SSYUUor9IQqjkbcPnGw2sSQqT21cnqfpXsPz9bIsc9t6AvM03mij4kwojdJ4jXSysrVx0ejJ + NmMSaSZ4vBZcW33g7zOsiUZdcCR5MLYOGsFpruxHbW6xY7qItfjlLNoKhLFpQsWhVZyILQhfQsiw + i3sK52cn6i7anKELqPKLW3xzu7yctBBBmjwIWVhroVcGgn3BusiIFSeSYKa7INb9dzBcIv4Yc7R2 + Xp+v5pdfPs0W4PRsdv0RnMwW54dg0Zv1ungqLQnRDZ4FUY3BUiLu+rhlCjXiPMOmahwjx47QDwZH + /ujID26C4XQAp4NhbzwMQhjct1KVkBn7NjkNwEbS7qFkMbHIviIObD4TGcwR4+Dald4ejKGGds2/ + Os+KOonAzmbih4Hf9k5EzrUs4srA5n+xGQniMSZLM44p0DInDX9L2DvzaPGxIMjuYOiHDSHNMjxr + 02Mq3hDJKCMW9k4CS/796nhl76BiIjBjAmV7wFYPsABcaOBY0hq4rb5i0xRQlKqm/pUk1KLSd7el + /xfEleQPJBhEcBLA+3I3dgbKHxYtr7OHXoqUY1G/vlQm9xt3qiztfcrWTB8H/jtBqSL6uJ6hx8m2 + e1a8pqnqDP57cJfVFFofFK/MbiTVQL1Mkg0TuT3ADQs8Lcy5sn4lUzzK5P83bGB0x/rZxS//Cz3M + VJZrs8fNOJ/cVHsM7/p7bVVQqWn/J1qjqPxq7a5alyqRdY1XInX/opo5rVQtfSeZW6A3fCqd7fBg + 9xv4QHhu7QYAAA== + headers: + content-encoding: [gzip] + content-length: ['751'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: '{"amount": 4357, "meta": {"state": "new", "participant_id": 2}, "description": + "janet"}' + headers: {} + method: POST + uri: https://api.balancedpayments.com:443/cards/CC3MHBsW6vHaL3suLVdTVbO9/card_holds + response: + body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"card\": + \"CC3MHBsW6vHaL3suLVdTVbO9\",\n \"debit\": null\n },\n \"updated_at\": + \"2014-07-28T13:06:06.523916Z\",\n \"created_at\": \"2014-07-28T13:06:06.298707Z\",\n + \ \"transaction_number\": \"HL055-552-8105\",\n \"expires_at\": \"2014-08-04T13:06:06.431593Z\",\n + \ \"failure_reason\": null,\n \"currency\": \"USD\",\n \"amount\": + 4357,\n \"meta\": {\n \"state\": \"new\",\n \"participant_id\": + \"2\"\n },\n \"href\": \"/card_holds/HL7hNoqSlwMFeMD4jknZ37wh\",\n + \ \"failure_reason_code\": null,\n \"voided_at\": null,\n \"id\": + \"HL7hNoqSlwMFeMD4jknZ37wh\"\n }\n ],\n \"links\": {\n \"card_holds.events\": + \"/card_holds/{card_holds.id}/events\",\n \"card_holds.card\": \"/cards/{card_holds.card}\",\n + \ \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\",\n \"card_holds.debit\": + \"/debits/{card_holds.debit}\"\n }\n}"} + headers: + content-length: ['944'] + content-type: [application/json] + status: {code: 201, message: CREATED} +- request: + body: '{"status": "succeeded", "transaction_number": "HL055-552-8105", "description": + "janet", "amount": 4357, "created_at": "2014-07-28T13:06:06.298707Z", "card_href": + "/cards/CC3MHBsW6vHaL3suLVdTVbO9", "updated_at": "2014-07-28T13:06:06.523916Z", + "expires_at": "2014-08-04T13:06:06.431593Z", "failure_reason": null, "currency": + "USD", "is_void": true, "meta": {"state": "cancelled", "participant_id": "2"}, + "debit": null, "failure_reason_code": null, "voided_at": null, "id": "HL7hNoqSlwMFeMD4jknZ37wh"}' + headers: {} + method: PUT + uri: https://api.balancedpayments.com:443/card_holds/HL7hNoqSlwMFeMD4jknZ37wh + response: + body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"card\": + \"CC3MHBsW6vHaL3suLVdTVbO9\",\n \"debit\": null\n },\n \"updated_at\": + \"2014-07-28T13:06:06.900887Z\",\n \"created_at\": \"2014-07-28T13:06:06.298707Z\",\n + \ \"transaction_number\": \"HL055-552-8105\",\n \"expires_at\": \"2014-08-04T13:06:06.431593Z\",\n + \ \"failure_reason\": null,\n \"currency\": \"USD\",\n \"amount\": + 4357,\n \"meta\": {\n \"state\": \"cancelled\",\n \"participant_id\": + \"2\"\n },\n \"href\": \"/card_holds/HL7hNoqSlwMFeMD4jknZ37wh\",\n + \ \"failure_reason_code\": null,\n \"voided_at\": \"2014-07-28T13:06:06.900890Z\",\n + \ \"id\": \"HL7hNoqSlwMFeMD4jknZ37wh\"\n }\n ],\n \"links\": {\n + \ \"card_holds.events\": \"/card_holds/{card_holds.id}/events\",\n \"card_holds.card\": + \"/cards/{card_holds.card}\",\n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\",\n + \ \"card_holds.debit\": \"/debits/{card_holds.debit}\"\n }\n}"} + headers: + content-length: ['975'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU3KXdyvNSDeyLP3pAWr9hqd + response: + body: + string: !!binary | + H4sIAAAAAAAAA41Uy27bMBC85ysEnWvLipQ29i1oby2CAG3RokUh0CQLEZFIhY+ggqF/79KWZJpU + wlx02J0ZcmdHPFwlSYqN0qKlUqW75DcUkuRw/EKLo5ZClZumeTfVGsYfLXQCAUwJI7EPhDqhSjOO + NBN8VBlFhlnNdARpSiqkAZFeb/Jytfmw2uTf8ptdWezKcp0Xxfvb7a90pmBJX6UU622+uSlKh0LE + vmoF17U/DCP22I/fi88/Sf98//UT7b88FN3dD7mtn8j5zK4W3B8wrSX9a+nZ7GAWVwKjcY24rpRG + 2lgjUy5WLdK4Ph/XUo08i+mTheZp4KCdradI+qMhQiRV3qYw070HhD3BSun1cjkPy/bivhcg0glo + NBUWZKGJheFa9m43GGRvFNxDqWopdUrxqkFKl/6YtEWsCYrsInADnPXH5sdO6oT3HP31HOE0A9eO + eVbZYV7s2B/GFTlEjCSpatGQ4yqdKDhkRobMwZ2S7GjsEX+sED6aFJG5hAZKhO5ZTGLELHDdv/UF + H5xfesEM+k9TySEFbxsmhAeXsrZFLDlBAiZhqjOaRsgzKuBribhC2D5eEY0LZKADj4ThsRkm0AL7 + GV5m1ESuIOkECxSEJKe3/ZVwjpiAC08tieZpAsH/NVwN/wHQiK4AUwYAAA== + headers: + content-encoding: [gzip] + content-length: ['499'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/customers/CU3KXdyvNSDeyLP3pAWr9hqd/cards?limit=10&offset=0 + response: + body: + string: !!binary | + H4sIAAAAAAAAA6VVW2+bMBR+76+weNhTmwBOyEWqprSbVq1NWq1dO3WakIPtxiqxmW2yoCr/fbaB + AL1o08YDEud+vvOdw9MBAF6CJFbeFHw3HwA8ubcRp4w/WnEtsJa50mJNpJF6p1/h+TdcbBbXH0hx + cQWz2Z2crH5ir/LfHdaBKOMPRGaScW0dx8mI+oMQwmiI6HicQAKjhPrhaBCRBEUDihMKI4yTkAQU + Tow5SSYUUor9IQqjkbcPnGw2sSQqT21cnqfpXsPz9bIsc9t6AvM03mij4kwojdJ4jXSysrVx0ejJ + NmMSaSZ4vBZcW33g7zOsiUZdcCR5MLYOGsFpruxHbW6xY7qItfjlLNoKhLFpQsWhVZyILQhfQsiw + i3sK52cn6i7anKELqPKLW3xzu7yctBBBmjwIWVhroVcGgn3BusiIFSeSYKa7INb9dzBcIv4Yc7R2 + Xp+v5pdfPs0W4PRsdv0RnMwW54dg0Zv1ungqLQnRDZ4FUY3BUiLu+rhlCjXiPMOmahwjx47QDwZH + /ujID26C4XQAp4NhbzwMQhjct1KVkBn7NjkNwEbS7qFkMbHIviIObD4TGcwR4+Dald4ejKGGds2/ + Os+KOonAzmbih4Hf9k5EzrUs4srA5n+xGQniMSZLM44p0DInDX9L2DvzaPGxIMjuYOiHDSHNMjxr + 02Mq3hDJKCMW9k4CS/796nhl76BiIjBjAmV7wFYPsABcaOBY0hq4rb5i0xRQlKqm/pUk1KLSd7el + /xfEleQPJBhEcBLA+3I3dgbKHxYtr7OHXoqUY1G/vlQm9xt3qiztfcrWTB8H/jtBqSL6uJ6hx8m2 + e1a8pqnqDP57cJfVFFofFK/MbiTVQL1Mkg0TuT3ADQs8Lcy5sn4lUzzK5P83bGB0x/rZxS//Cz3M + VJZrs8fNOJ/cVHsM7/p7bVVQqWn/J1qjqPxq7a5alyqRdY1XInX/opo5rVQtfSeZW6A3fCqd7fBg + 9xv4QHhu7QYAAA== + headers: + content-encoding: [gzip] + content-length: ['751'] + content-type: [application/json] + status: {code: 200, message: OK} +- request: + body: '{"amount": 2091, "meta": {"state": "new", "participant_id": 2}, "description": + "janet"}' + headers: {} + method: POST + uri: https://api.balancedpayments.com:443/cards/CC3MHBsW6vHaL3suLVdTVbO9/card_holds + response: + body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": + \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"card\": + \"CC3MHBsW6vHaL3suLVdTVbO9\",\n \"debit\": null\n },\n \"updated_at\": + \"2014-07-28T13:06:08.748356Z\",\n \"created_at\": \"2014-07-28T13:06:08.539996Z\",\n + \ \"transaction_number\": \"HL864-060-0327\",\n \"expires_at\": \"2014-08-04T13:06:08.662188Z\",\n + \ \"failure_reason\": null,\n \"currency\": \"USD\",\n \"amount\": + 2091,\n \"meta\": {\n \"state\": \"new\",\n \"participant_id\": + \"2\"\n },\n \"href\": \"/card_holds/HL7kjDtK34drZiCaw2bXT7X2\",\n + \ \"failure_reason_code\": null,\n \"voided_at\": null,\n \"id\": + \"HL7kjDtK34drZiCaw2bXT7X2\"\n }\n ],\n \"links\": {\n \"card_holds.events\": + \"/card_holds/{card_holds.id}/events\",\n \"card_holds.card\": \"/cards/{card_holds.card}\",\n + \ \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\",\n \"card_holds.debit\": + \"/debits/{card_holds.debit}\"\n }\n}"} + headers: + content-length: ['944'] + content-type: [application/json] + status: {code: 201, message: CREATED} +- request: + body: null + headers: {} + method: GET + uri: https://api.balancedpayments.com:443/card_holds?meta.state=new&limit=25&offset=0 + response: + body: + string: !!binary | + H4sIAAAAAAAAA92ZWU/jSBDH3+dTID/M09r0fVhCq+XYSSAwHJlwrFaRY3eISXASHzlAfPdpO5ej + wcKaiZCSlwh1V/W/uvmp3F31+mVvz3Cd0Gt2+j0vMuy9//TI3t5r9qvnotiJk3TciBLXVcpTnvHX + YtJTkRv6g9jvB6nFkxOoeDXb84Nu6rlYa66UWh4d4fPKYXTLRhWnhqOk1vDqjdZ3uXTWtp5q+bE2 + DpJeby74tlROBp4TK6/ppBYGApCYgJtI1CG2AbOBsDgRmLKHVThuqD5woVhKmXeJQyeIHDfdXzNI + nlsqTNUqNcG0HAMmwIivBNRk4IcqWotJmICsYmIMQSFyMbUdv5eEqqlDi7IzTDe73KSbhKEK3Gkq + +uPmeKXkPPeTIN05AhIuzZ9V7Kwfd/rPU6l3oMb5ox04Yey7/sAJ4qbvZSdo/HLEnVC106n9FR77 + lRrvPh3HZ5h44YN/5IxR667O79AqtPUdNd2+lwawtq1R39cUzY5pbWIWSqFGFuEcga3mk9pIWpxS + yWRZPjMXzScEJOdSxCcnzCQYmlQSUpLPTIAxCdh288mOIjTqPgydl9vgJH6hJzf3F/HdZvks0NgN + PpGNoY2xhRkBnJfic+ECCcKUluBTUM0n1XwSysrwuRBAAgCZj2n78udVt3N5/29SUQkbncrhSaVL + v51vFs/3JXaDTmBTYVNgUSgwRqXoXLhgndpYGTo5pqZOtCbW6bYMnQsBgjHm+Yz+p3RiIuXnft2h + Nx6PiTtUYct1vU61dXF6eNLYLJ4FGjvEJ4SWpAKLctkzw0e7cAQELMOnkNAEFJmIQ1CaTy0gOJAS + b/D2+fl8joW8vb6vng07j4kjaed+DCbTzeL5vsSu0AmETajFGUBrmar4bQT0Wyp1oQxLDEp826nO + nkjotxgiJemcCTBOOYVbTSdsx99qLwpiB4wnzt3w8vyM/yjc0e+9jQo0doZPZENuIY0nKZs9gXZh + luQCiTJvdyaASYg0OcWiXPZMBbgFERJiu7MnfEhGQyJqp9NpY3p9PO3GLIyqm02fBRrbzydkdcjT + 2pJmgSCuP8If3j7zLkhfDkken6K3O2bQREyYHLJVOcx4r7akcyxexaRXlzxfHPjT2+fn15Zw/eQp + HrSSzkX96uJxcnR5Wk3OcwXFTdSWCjR2hk9iE24JRPRjpCyfmQvTuJEy33dAqQmlfr9z/kFtacln + JsCxvt9uMn9+Pp/o8ZpdHR/LSbWhvktUbzu1JLjcbP4s0NgZPrGNde1TFyfRx7XPef7MXCjS1dJ8 + abIof1JATIqRqXN02fyZCTBdUpDbnT8h6rjuP9X76xY6exm7N63DZ54cbpbPAo0Zn/r3/7RgYay1 + IoyeE2Vtmlwn4e+e/+zHB4h+TU2trFFxoLsUX/vtdqTig8XTQXcuJosm0KwUYrzTlyi9Wqaa9k3o + fLGZnB4B84FBqEZ+P+t4rXoTRtyPnZ4egguzth/+xp700WT9C2O9NZZrwFlZ1yvrt+X7Lq+rHozl + e2/7c6t5zLnJ9M+lc7Sf90un3uYw/KKY+cxWXXPKht7zUiMVfBzn3Crd95e3n/UFNSZsHAAA + headers: + content-encoding: [gzip] + content-length: ['1194'] + content-type: [application/json] + status: {code: 200, message: OK} +version: 1