From 274f71242e8989c055d951ffe2c303408cf5a90f Mon Sep 17 00:00:00 2001 From: Changaco Date: Fri, 28 Aug 2015 21:25:34 +0200 Subject: [PATCH] update the test fixtures --- tests/py/fixtures/BalancedHarness.yml | 265 ----- tests/py/fixtures/MangopayHarness.yml | 167 +++ tests/py/fixtures/TestBalancedBankAccount.yml | 199 ---- tests/py/fixtures/TestBalancedCard.yml | 633 ---------- tests/py/fixtures/TestCardHolds.yml | 1023 ----------------- tests/py/fixtures/TestCharge.yml | 70 ++ tests/py/fixtures/TestClosing.yml | 142 --- tests/py/fixtures/TestCredits.yml | 135 --- tests/py/fixtures/TestElsewhere.yml | 42 +- tests/py/fixtures/TestFriendFinder.yml | 266 ++--- tests/py/fixtures/TestGetBalancedAccount.yml | 35 - tests/py/fixtures/TestPages.yml | 314 +++-- tests/py/fixtures/TestPayday.yml | 505 -------- tests/py/fixtures/TestPayin.yml | 535 --------- tests/py/fixtures/TestPayouts.yml | 51 + tests/py/fixtures/TestRoutes.yml | 575 +-------- tests/py/fixtures/TestSync.yml | 137 +++ tests/py/fixtures/TestSyncWithBalanced.yml | 314 ----- 18 files changed, 776 insertions(+), 4632 deletions(-) delete mode 100644 tests/py/fixtures/BalancedHarness.yml create mode 100644 tests/py/fixtures/MangopayHarness.yml delete mode 100644 tests/py/fixtures/TestBalancedBankAccount.yml delete mode 100644 tests/py/fixtures/TestBalancedCard.yml delete mode 100644 tests/py/fixtures/TestCardHolds.yml create mode 100644 tests/py/fixtures/TestCharge.yml delete mode 100644 tests/py/fixtures/TestClosing.yml delete mode 100644 tests/py/fixtures/TestCredits.yml delete mode 100644 tests/py/fixtures/TestGetBalancedAccount.yml delete mode 100644 tests/py/fixtures/TestPayday.yml delete mode 100644 tests/py/fixtures/TestPayin.yml create mode 100644 tests/py/fixtures/TestPayouts.yml create mode 100644 tests/py/fixtures/TestSync.yml delete mode 100644 tests/py/fixtures/TestSyncWithBalanced.yml diff --git a/tests/py/fixtures/BalancedHarness.yml b/tests/py/fixtures/BalancedHarness.yml deleted file mode 100644 index c7548aee93..0000000000 --- a/tests/py/fixtures/BalancedHarness.yml +++ /dev/null @@ -1,265 +0,0 @@ -interactions: -- request: - body: '{}' - headers: {} - method: POST - uri: https://api.balancedpayments.com:443/api_keys - response: - body: {string: !!python/unicode "{\n \"links\": {},\n \"api_keys\": [\n {\n - \ \"links\": {},\n \"created_at\": \"2014-10-27T09:08:21.434947Z\",\n - \ \"secret\": \"ak-test-qcKHlRLT6GvImQiLtMfazhir7sueMvc\",\n \"href\": - \"/api_keys/AK6dTp9LpAjiAvXSHQbkozKM\",\n \"meta\": {},\n \"id\": - \"AK6dTp9LpAjiAvXSHQbkozKM\"\n }\n ]\n}"} - headers: - content-length: ['288'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/marketplaces?limit=25&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA5VUTW/bMAy991cEPuyyNfFnhwQotrXZZe3QYE0xbMNgyBaNeJElQ5aadEH++2hZ - rmNMKLZLQFKP5CP54sPZZOJVoIi3mBzQRo+RRqHnzSoit6BqRnJo3rGyKtVlmLwSRdGAuvS9Nx2c - w76Fc82YjWwkFP9RwFRGfJjY/K4DRnwbqCU8lkI34zZKKMIwFFhUUcp/I468j22OdzogFvphBuq2 - gK8lT6HJpdi1PfwoCd/G864VPlJREQRo2TLwYE+qmsE0F5VdC0I4qaB9XOmMlflkCY/DGyv5th2n - b4ZwseMg01w3SlQg28Trh2D3UHy7XWa327vVDQ2+wO/N1T7zDE87hDmZc+Oz9cf79fnnVbBbP+2X - Hz7dXJOvq19X9/EdK2M6cMklEAU0JebqoR/E535yHsZrP1qEF4twPp3PoziKvw8pja5rIVUKuASW - EkolNO04nn1471yIrulLjSJ/GgWRnwSORvVGcEi5rrJuNa+Di8RPkiQIo3igVUtBda5KwZFLQVgD - z/fqJW4Ob3amOcpYMRy8AGjJW7W1l6ftLC+vz5Q54u9PI6XxQUfKmlLISmXWM7OmVeyp/qaocZAN - kjbAwXNhadnUWhnWWLN3XMheTx108JxYCbQniqIwthNHJLX1jOXCCElxGsPPmi5UjvnpRrCTctZ1 - ofGzormF9rYL9/c/afY8+OwwWvoYenSOoiThDTGy6gYaBVwEMsK3Kclzobm9+zjiyskJYxnJzVfB - mw2eC4tK6Qtbs/2knR3/AMhiHPDNBQAA - headers: - content-encoding: [gzip] - content-length: ['594'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: '{"meta": {"seq": 0}}' - 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-10-27T09:08:24.077740Z\",\n \"created_at\": - \"2014-10-27T09:08:23.921113Z\",\n \"dob_month\": null,\n \"id\": - \"CU6gH6X342hhVXOrrH7SVFzL\",\n \"phone\": null,\n \"href\": \"/customers/CU6gH6X342hhVXOrrH7SVFzL\",\n - \ \"merchant_status\": \"no-match\",\n \"meta\": {\n \"seq\": - \"0\"\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: '{"meta": {"seq": 1}}' - 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-10-27T09:08:24.892778Z\",\n \"created_at\": - \"2014-10-27T09:08:24.750152Z\",\n \"dob_month\": null,\n \"id\": - \"CU6hCQw1dtlujsKG1esVTl2t\",\n \"phone\": null,\n \"href\": \"/customers/CU6hCQw1dtlujsKG1esVTl2t\",\n - \ \"merchant_status\": \"no-match\",\n \"meta\": {\n \"seq\": - \"1\"\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": 10, "meta": {"region": "Confusion", "city_town": "", - "address_2": "Box 2"}, "number": "4111111111111111", "expiration_year": 2020, - "address": {"state": "Confusion", "postal_code": "90210", "line1": "123 Main - Street"}}' - 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\": \"8c7f0423365af88c3e36cf02746eca64fdcf36ddc2e1f398c7ec9f3ffd05a267\",\n - \ \"cvv_result\": null,\n \"number\": \"xxxxxxxxxxxx1111\",\n \"avs_postal_match\": - \"no\",\n \"expiration_month\": 10,\n \"meta\": {\n \"region\": - \"Confusion\",\n \"city_town\": \"\",\n \"address_2\": \"Box - 2\"\n },\n \"id\": \"CC6j2lN0CEuf3wt77J2bQW7r\",\n \"category\": - \"other\",\n \"type\": \"credit\",\n \"cvv_match\": null,\n \"bank_name\": - \"JPMORGAN CHASE BANK, N.A.\",\n \"avs_street_match\": \"yes\",\n \"brand\": - \"Visa\",\n \"updated_at\": \"2014-10-27T09:08:26.009696Z\",\n \"address\": - {\n \"city\": null,\n \"line2\": null,\n \"line1\": \"123 - Main Street\",\n \"state\": \"Confusion\",\n \"postal_code\": - \"90210\",\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\": \"Street address - and postal code do not match.\",\n \"can_credit\": false,\n \"href\": - \"/cards/CC6j2lN0CEuf3wt77J2bQW7r\",\n \"created_at\": \"2014-10-27T09:08:26.009694Z\"\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: ['1419'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: '{"links": {"customer": "/customers/CU6hCQw1dtlujsKG1esVTl2t"}, "cvv_result": - null, "number": "xxxxxxxxxxxx1111", "avs_postal_match": "no", "expiration_month": - 10, "meta": {"region": "Confusion", "city_town": "", "address_2": "Box 2"}, - "id": "CC6j2lN0CEuf3wt77J2bQW7r", "category": "other", "type": "credit", "cvv_match": - null, "bank_name": "JPMORGAN CHASE BANK, N.A.", "avs_street_match": "yes", "brand": - "Visa", "updated_at": "2014-10-27T09:08:26.009696Z", "fingerprint": "8c7f0423365af88c3e36cf02746eca64fdcf36ddc2e1f398c7ec9f3ffd05a267", - "can_debit": true, "customer": null, "name": null, "expiration_year": 2020, - "cvv": null, "is_verified": true, "avs_result": "Street address and postal code - do not match.", "can_credit": false, "created_at": "2014-10-27T09:08:26.009694Z", - "address": {"city": null, "line2": null, "line1": "123 Main Street", "state": - "Confusion", "postal_code": "90210", "country_code": null}}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/cards/CC6j2lN0CEuf3wt77J2bQW7r - response: - body: - string: !!binary | - H4sIAAAAAAAAA41UXU/bMBR951dYfYbWcUrS9K1UiAlENwZjEtMUuf6ghtSubKdQof732U7SJMCm - +SFS7ofvuece37cjAAYEa2oGU/DL/QDwFr7OXAj57M2NwUeWxqo10846mP9IVvObl4jaonwyVxcR - M/d3BbKDOn9/3FzEhXxkeqOFtD5xQlIOxyiOk1PMJxMSszghHKJ0nDCCkzGnhMcJpQSxiMeZC2ck - 4zHnFJ5ilKSDw8Vku801M2Xh75VlURw8slwvK5ivnRO502bjrck3ylhc5Gtsycpjk6r1s9eN0NgK - JfO1ktb7I3iosGYW98nR7NHFBmqU5KXxP024507YXW7VS4joOjClrgmTI+84U68AfaRQ0HDvPHlC - xQLOz0sev9g0vUTLm5+p7jCCLXtUeuejlV05Cg6A7W7DvJloRoXtk9j03+NwieVzLvE6ZF1+u/76 - /WK2APMvs9tzcDZbXB2DxXA27PNprGbMtnzumGkDlhrL0Me9MLg1lxvqUNMcB3UgGI1PIniC0juY - TeFkitLh5DTJ4uihU6qizMV3xekIdpZuD5WKmWf2E3Pk60UoBtdYSHAboHcH46RhQ/OfzrOWDlE0 - xGQQRbCbTVQprd7ldYCv/+FlECxzypZuHFNgdcla/Va09+bR0eOOYf8GEUStIN1jeNfmQJh8y7Tg - gnnaewW8+A9PZ1D1DmolAjcmULUHPHpAFZDKgqCSzsA9+lpNU8BxYVr8K824Z2UUdsvoP4Sr2T9F - kAwhzJJs/FC9jb2j8rdn692WqnbZ0FfNV6oIa60B8RawDAXdB1S1v6K8yevst1Gz7MyozmwM+3rM - dRIVZlNaJ/RPSx28vUJh6H/LqHyuuf3R/g+4C+iXoQUAAA== - headers: - content-encoding: [gzip] - content-length: ['661'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: '{"meta": {"seq": 2}}' - 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-10-27T09:08:28.747674Z\",\n \"created_at\": - \"2014-10-27T09:08:28.611185Z\",\n \"dob_month\": null,\n \"id\": - \"CU6lY9SYo3pQ4dtkQKfAwZ5X\",\n \"phone\": null,\n \"href\": \"/customers/CU6lY9SYo3pQ4dtkQKfAwZ5X\",\n - \ \"merchant_status\": \"no-match\",\n \"meta\": {\n \"seq\": - \"2\"\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: '{"routing_number": "121042882", "account_number": "112233a", "name": "Homer - Jay"}' - headers: {} - method: POST - uri: https://api.balancedpayments.com:443/bank_accounts - response: - body: {string: !!python/unicode "{\n \"bank_accounts\": [\n {\n \"routing_number\": - \"121042882\",\n \"bank_name\": \"WELLS FARGO BANK NA\",\n \"account_type\": - \"checking\",\n \"name\": \"Homer Jay\",\n \"links\": {\n \"customer\": - null,\n \"bank_account_verification\": null\n },\n \"can_credit\": - true,\n \"created_at\": \"2014-10-27T09:08:29.645017Z\",\n \"fingerprint\": - \"dac6514d9dd3a1cd7ac925d5749e0308c2c65fa27c506aefb0c9b21611ff9969\",\n \"updated_at\": - \"2014-10-27T09:08:29.645019Z\",\n \"href\": \"/bank_accounts/BA6n7RBr8q8Lv11ojgu9mQxi\",\n - \ \"meta\": {},\n \"account_number\": \"xxx233a\",\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\": false,\n \"id\": \"BA6n7RBr8q8Lv11ojgu9mQxi\"\n - \ }\n ],\n \"links\": {\n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\",\n - \ \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\",\n - \ \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\",\n - \ \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\",\n - \ \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\"\n - \ }\n}"} - headers: - access-control-allow-headers: [Content-Type] - access-control-allow-methods: ['POST, OPTIONS'] - access-control-allow-origin: ['*'] - content-length: ['1281'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: '{"routing_number": "121042882", "bank_name": "WELLS FARGO BANK NA", "account_type": - "checking", "name": "Homer Jay", "links": {"customer": "/customers/CU6lY9SYo3pQ4dtkQKfAwZ5X"}, - "can_credit": true, "created_at": "2014-10-27T09:08:29.645017Z", "address": - {"city": null, "line2": null, "line1": null, "state": null, "postal_code": null, - "country_code": null}, "updated_at": "2014-10-27T09:08:29.645019Z", "customer": - null, "meta": {}, "bank_account_verification": null, "fingerprint": "dac6514d9dd3a1cd7ac925d5749e0308c2c65fa27c506aefb0c9b21611ff9969", - "can_debit": false, "id": "BA6n7RBr8q8Lv11ojgu9mQxi", "account_number": "xxx233a"}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/bank_accounts/BA6n7RBr8q8Lv11ojgu9mQxi - response: - body: - string: !!binary | - H4sIAAAAAAAAA5VTW2+bMBh9769APK+Jba7OWzLtojXqlHbT1k4TMrZpvRCTGdMlivjvsykUQtOp - e/GDz8fhXD4fzhzHTYlcJ4TSopK6dGfOD3PpOIfmNLAqKi3kXSKrTcqVwV2IIPBRHCP3TTfUcEiy - 4Rb/9m65vHbez68+fHYW88sL53LeT7Y/SvR+2wzTe07Xhr+f6Gg+FhuunE9k30O5kGsrsRNn5NGq - 1HbQcr39GuY3+Pqm8LYrn+n16iKb/7kNvj8RjNwmD1yJTFCiRSENgazyvHVUP1mjRCZUcSa0mdCq - 4j2iONGcJcQiLgLQP4fgHEVfAJ6BeIbwJPQDAKPb3kBmnHK1VUI23zBCwwD6DDPmEUhZRChGAQsi - H3PggZgig2cERTQAIeFZCihOEQwhzDKMQ9wTV1v2Ly0emHgAYA8NtNwrnlkR06MFmC7moYyuFir+ - HS8fICx+3VV4s9qJ/l8broktoc+oK7Xfkd1uhzyPDHpnTPFyXJ7Q+zb3LlVTkWmZo9PX8Pl1qY3x - 59fbwgB5Qgt2Amx2Xe2H6MneGU+b2jOSl33vgtnYXsypYarN+dN6sm4GO3v82iaPi2VTGddwOGpl - Ilg97YYfoxoxDceP9vqV5MOnULa1jcUOntq0e3fldKS0A+rTJE2kr9TUzv6f3ybLIzdjhS9GVbum - sPqs/gvtZMj8FwUAAA== - headers: - content-encoding: [gzip] - content-length: ['526'] - content-type: [application/json] - status: {code: 200, message: OK} -version: 1 diff --git a/tests/py/fixtures/MangopayHarness.yml b/tests/py/fixtures/MangopayHarness.yml new file mode 100644 index 0000000000..be8a6fbcb4 --- /dev/null +++ b/tests/py/fixtures/MangopayHarness.yml @@ -0,0 +1,167 @@ +interactions: +- request: + body: '{"grant_type": "client_credentials"}' + headers: {} + method: POST + uri: https://api.sandbox.mangopay.com:443/v2.01/oauth/token + response: + body: {string: !!python/unicode '{"access_token":"775b89c4d83b4c819f94f3b7dd65574a","token_type":"Bearer","expires_in":1199}'} + headers: + cache-control: [no-cache] + content-length: ['91'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: '{"CountryOfResidence": "BE", "FirstName": "David", "LastName": "Foobar", + "Birthday": 0, "Nationality": "BE", "Email": "nobody@example.net"}' + headers: {} + method: POST + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/users/natural + response: + body: {string: !!python/unicode '{"Address":{"AddressLine1":null,"AddressLine2":null,"City":null,"Region":null,"PostalCode":null,"Country":null},"FirstName":"David","LastName":"Foobar","Birthday":0,"Nationality":"BE","CountryOfResidence":"BE","Occupation":null,"IncomeRange":null,"ProofOfIdentity":null,"ProofOfAddress":null,"PersonType":"NATURAL","Email":"nobody@example.net","KYCLevel":"LIGHT","Id":"8301769","Tag":null,"CreationDate":1440851665}'} + headers: + cache-control: [no-cache] + content-length: ['415'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: '{"Currency": "EUR", "Owners": ["8301769"], "Description": "test wallet"}' + headers: {} + method: POST + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/wallets + response: + body: {string: !!python/unicode '{"Description":"test wallet","Owners":["8301769"],"Balance":{"Currency":"EUR","Amount":0},"Currency":"EUR","FundsType":"DEFAULT","Id":"8301770","Tag":null,"CreationDate":1440851667}'} + headers: + cache-control: [no-cache] + content-length: ['181'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: '{"CountryOfResidence": "BE", "FirstName": "Janet", "LastName": "Foobar", + "Birthday": 0, "Nationality": "BE", "Email": "nobody@example.net"}' + headers: {} + method: POST + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/users/natural + response: + body: {string: !!python/unicode '{"Address":{"AddressLine1":null,"AddressLine2":null,"City":null,"Region":null,"PostalCode":null,"Country":null},"FirstName":"Janet","LastName":"Foobar","Birthday":0,"Nationality":"BE","CountryOfResidence":"BE","Occupation":null,"IncomeRange":null,"ProofOfIdentity":null,"ProofOfAddress":null,"PersonType":"NATURAL","Email":"nobody@example.net","KYCLevel":"LIGHT","Id":"8301771","Tag":null,"CreationDate":1440851668}'} + headers: + cache-control: [no-cache] + content-length: ['415'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: '{"Currency": "EUR", "Owners": ["8301771"], "Description": "test wallet"}' + headers: {} + method: POST + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/wallets + response: + body: {string: !!python/unicode '{"Description":"test wallet","Owners":["8301771"],"Balance":{"Currency":"EUR","Amount":0},"Currency":"EUR","FundsType":"DEFAULT","Id":"8301772","Tag":null,"CreationDate":1440851669}'} + headers: + cache-control: [no-cache] + content-length: ['181'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: '{"Currency": "EUR", "CardType": "CB_VISA_MASTERCARD", "UserId": "8301771"}' + headers: {} + method: POST + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/cardregistrations + response: + body: {string: !!python/unicode '{"Id":"8301773","Tag":null,"CreationDate":1440851671,"UserId":"8301771","AccessKey":"1X0m87dmM2LiwFgxPLBJ","PreregistrationData":"fztL6okJyT8dJpVcSz7IN6TjsA_WKldKAvle8Nq9rpXlsvsXDHhVVmbiCs_A_pVOS4wCy-yiraxeE65tmxOe8A","RegistrationData":null,"CardId":null,"CardType":"CB_VISA_MASTERCARD","CardRegistrationURL":"https://homologation-webpayment.payline.com/webpayment/getToken","ResultCode":null,"ResultMessage":null,"Currency":"EUR","Status":"CREATED"}'} + headers: + cache-control: [no-cache] + content-length: ['451'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: cardExpirationDate=1234&data=fztL6okJyT8dJpVcSz7IN6TjsA_WKldKAvle8Nq9rpXlsvsXDHhVVmbiCs_A_pVOS4wCy-yiraxeE65tmxOe8A&cardNumber=3569990000000132&cardCvx=123&accessKeyRef=1X0m87dmM2LiwFgxPLBJ + headers: {} + method: POST + uri: https://homologation-webpayment.payline.com:443/webpayment/getToken + response: + body: {string: !!python/unicode data=VLTIjgpf1ag15dmwRyhmOathR-o1EsGLBc9U4X1D-FARXMFPMFvh_DifSvjRtYtmfbshUWsmK53nSmMLD1Vd_VliJ8bdsKDFOoAdNZc6gX16VLkqiQL0LCWHixZ89IUZujKYGa1yiRYnyq2exM2goQ} + headers: + access-control-allow-origin: ['*'] + content-length: ['155'] + content-type: [text/plain; charset=UTF-8] + keep-alive: ['timeout=15, max=100'] + set-cookie: [JSESSIONID=6018C248CED42CC298F575843F60567E8F256C597074D5021DF510D4CA16CDF1; + Path=/; Secure; HttpOnly] + vary: ['Accept-Encoding,User-Agent'] + status: {code: 200, message: OK} +- request: + body: '{"Currency": "EUR", "CardType": "CB_VISA_MASTERCARD", "RegistrationData": + "data=VLTIjgpf1ag15dmwRyhmOathR-o1EsGLBc9U4X1D-FARXMFPMFvh_DifSvjRtYtmfbshUWsmK53nSmMLD1Vd_VliJ8bdsKDFOoAdNZc6gX16VLkqiQL0LCWHixZ89IUZujKYGa1yiRYnyq2exM2goQ", + "UserId": "8301771"}' + headers: {} + method: PUT + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/cardregistrations/8301773 + response: + body: {string: !!python/unicode '{"Id":"8301773","Tag":null,"CreationDate":1440851671,"UserId":"8301771","AccessKey":"1X0m87dmM2LiwFgxPLBJ","PreregistrationData":"fztL6okJyT8dJpVcSz7IN6TjsA_WKldKAvle8Nq9rpXlsvsXDHhVVmbiCs_A_pVOS4wCy-yiraxeE65tmxOe8A","RegistrationData":"data=VLTIjgpf1ag15dmwRyhmOathR-o1EsGLBc9U4X1D-FARXMFPMFvh_DifSvjRtYtmfbshUWsmK53nSmMLD1Vd_VliJ8bdsKDFOoAdNZc6gX16VLkqiQL0LCWHixZ89IUZujKYGa1yiRYnyq2exM2goQ","CardId":"8301774","CardType":"CB_VISA_MASTERCARD","CardRegistrationURL":"https://homologation-webpayment.payline.com/webpayment/getToken","ResultCode":"000000","ResultMessage":"Success","Currency":"EUR","Status":"VALIDATED"}'} + headers: + cache-control: [no-cache] + content-length: ['620'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: '{"CountryOfResidence": "BE", "FirstName": "Homer", "LastName": "Foobar", + "Birthday": 0, "Nationality": "BE", "Email": "nobody@example.net"}' + headers: {} + method: POST + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/users/natural + response: + body: {string: !!python/unicode '{"Address":{"AddressLine1":null,"AddressLine2":null,"City":null,"Region":null,"PostalCode":null,"Country":null},"FirstName":"Homer","LastName":"Foobar","Birthday":0,"Nationality":"BE","CountryOfResidence":"BE","Occupation":null,"IncomeRange":null,"ProofOfIdentity":null,"ProofOfAddress":null,"PersonType":"NATURAL","Email":"nobody@example.net","KYCLevel":"LIGHT","Id":"8301775","Tag":null,"CreationDate":1440851676}'} + headers: + cache-control: [no-cache] + content-length: ['415'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: '{"Currency": "EUR", "Owners": ["8301775"], "Description": "test wallet"}' + headers: {} + method: POST + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/wallets + response: + body: {string: !!python/unicode '{"Description":"test wallet","Owners":["8301775"],"Balance":{"Currency":"EUR","Amount":0},"Currency":"EUR","FundsType":"DEFAULT","Id":"8301776","Tag":null,"CreationDate":1440851678}'} + headers: + cache-control: [no-cache] + content-length: ['181'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: '{"OwnerAddress": {"City": "The City of Light", "Country": "FR", "Region": + null, "AddressLine2": null, "AddressLine1": "Somewhere", "PostalCode": "75001"}, + "IBAN": "FR1420041010050500013M02606", "OwnerName": "Homer Jay"}' + headers: {} + method: POST + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/users/8301775/bankaccounts/iban + response: + body: {string: !!python/unicode '{"OwnerAddress":{"AddressLine1":"Somewhere","AddressLine2":null,"City":"The + City of Light","Region":null,"PostalCode":"75001","Country":"FR"},"IBAN":"FR1420041010050500013M02606","BIC":"PSSTFRPPLIL","UserId":"8301775","OwnerName":"Homer + Jay","Type":"IBAN","Id":"8301777","Tag":null,"CreationDate":1440851680}'} + headers: + cache-control: [no-cache] + content-length: ['308'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +version: 1 diff --git a/tests/py/fixtures/TestBalancedBankAccount.yml b/tests/py/fixtures/TestBalancedBankAccount.yml deleted file mode 100644 index afffca55a5..0000000000 --- a/tests/py/fixtures/TestBalancedBankAccount.yml +++ /dev/null @@ -1,199 +0,0 @@ -interactions: -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6lY9SYo3pQ4dtkQKfAwZ5X - response: - body: - string: !!binary | - H4sIAAAAAAAAA41Uy27bMBC85ysEnevIchTb8a3osacgKdCkKASaZCDCEqnw0dYw9O9dypJMk0rZ - iw67M0Pu7IinmyRJsVFaNFSqdJf8gEKSnPovtDhqKFS5qetPY61m/GChIwhgShiJfSDUCVWacaSZ - 4IPKINJNaqYlSFNSIg2IdLXMi0W+XKw2z8uH3XK7W21vN8VmvSle04mCJY1Q1nmeb+8dChH7shFc - V/4wjNhjv3xb1y8PTy/irn0siD48fn37/Pv1/vvlzLYS3B8wrSR9s/RscjCLK4HRuEJcl0ojbayR - KReLBmlcXY5rqEaexfS9NygNHLSzHSmS/miIEEmVtynM9NEDwp5gpXQ1X87Dsr247wWItAIadYkF - mWliYbiWR7cbDLI3Cu6hVDmXOqV4WSOlC39M2iBWB0V2FbgOzvpp82MndcJ7if7tFOE0A9f6PKvs - NC126HfDihwiRpKUlahJv0onCg6ZkS5zcOckOxp7xA8lwr1JEZlraKBE6J7FJAbMDNf9Wz/wwfml - Z8ygfzSVHFLwf8OE8OBS1raIJWdIwCRMtUbTCHlCBXwtEVcI28cronGFDHTgkTA8NsMImmH/gpcZ - 1ZErSDrCAgUhyflt/0c4B0zAhaeWRPM0guD/6m66v+0AXvlTBgAA - headers: - content-encoding: [gzip] - content-length: ['495'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6lY9SYo3pQ4dtkQKfAwZ5X/bank_accounts?is_valid=True&limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA7VUXW/aMBR976+I8tCnldgOCQkSmmDah9aqFW2nrZ2myNhO65EP5jgMhPjvs01C - EgpTX/oSiXuu7z33nMvdnFmWPcPZPMKE5GUmC3to/VRBy9qYr4JFXkqePUVZmc6YULgNEQR9FATI - flcnmRoZTpnGv3+8urqzPo1vP99Yk/H1pXU9bjKrRpFcL0wyeWZkruo3GXWZL3nKhPUVrxso4dlc - U6zJKXqkLKRO1LU+fPOTh/DuIXcX0z6V8+llPP776P3YFziYNloywWNOsOR5pgpkZZJUE233oxGc - RUQwyqXKkKJkDSIYloxGWCM2ArB/AcEFGtyDcAiCIQp7ft8DcPDYDBCrSZlYCJ6ZNxQT34N9GlLq - YkjoAJMQedQb9EMGXBAQpPAYowHxgI9ZPAMknCHoQxjHYeiHTeFyQf/HxQU9F4DQRS0uz4LFmoTT - WQBnMvazwe1EBH+CqyWE+e+nMkynK970SpnE2oRGo9rUZkdWqxVyXdzynVLBikPzuFxXuteqKouU - ywwdD8OX4UKqwV+GF7kCkojk9Ahodl2s2+hR3ymbGdtjnBSN75xq2U7qZCpt1feXnsmu1TJhO8GF - cd6p97ZwTm1t15f3vIiWOOF0dK928DzhKZcjCM7zOC6YHIFKaTtjK91Ar/JOUnvv81u1NFxUTwiq - jjtOKlIHFoIteV5q91vEZK4c0u+qZzEXbyWOEt9sq96t1gXp3r6esVuTPPxPbDp/kR6nW6fKrah3 - 8favzo15Ze32WSpqY7st2mevtUsHROus7Yki5qy9ktTuBp6gc3JiI2ZnHueA48mnW1u7drb9B/Xj - ZnWlBgAA - headers: - content-encoding: [gzip] - content-length: ['633'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6lY9SYo3pQ4dtkQKfAwZ5X/bank_accounts?is_valid=True&limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA7VUXW/aMBR976+I8tCnldgOCQkSmmDah9aqFW2nrZ2myNhO65EP5jgMhPjvs01C - EgpTX/oSiXuu7z33nMvdnFmWPcPZPMKE5GUmC3to/VRBy9qYr4JFXkqePUVZmc6YULgNEQR9FATI - flcnmRoZTpnGv3+8urqzPo1vP99Yk/H1pXU9bjKrRpFcL0wyeWZkruo3GXWZL3nKhPUVrxso4dlc - U6zJKXqkLKRO1LU+fPOTh/DuIXcX0z6V8+llPP776P3YFziYNloywWNOsOR5pgpkZZJUE233oxGc - RUQwyqXKkKJkDSIYloxGWCM2ArB/AcEFGtyDcAiCIQp7ft8DcPDYDBCrSZlYCJ6ZNxQT34N9GlLq - YkjoAJMQedQb9EMGXBAQpPAYowHxgI9ZPAMknCHoQxjHYeiHTeFyQf/HxQU9F4DQRS0uz4LFmoTT - WQBnMvazwe1EBH+CqyWE+e+nMkynK970SpnE2oRGo9rUZkdWqxVyXdzynVLBikPzuFxXuteqKouU - ywwdD8OX4UKqwV+GF7kCkojk9Ahodl2s2+hR3ymbGdtjnBSN75xq2U7qZCpt1feXnsmu1TJhO8GF - cd6p97ZwTm1t15f3vIiWOOF0dK928DzhKZcjCM7zOC6YHIFKaTtjK91Ar/JOUnvv81u1NFxUTwiq - jjtOKlIHFoIteV5q91vEZK4c0u+qZzEXbyWOEt9sq96t1gXp3r6esVuTPPxPbDp/kR6nW6fKrah3 - 8favzo15Ze32WSpqY7st2mevtUsHROus7Yki5qy9ktTuBp6gc3JiI2ZnHueA48mnW1u7drb9B/Xj - ZnWlBgAA - headers: - content-encoding: [gzip] - content-length: ['633'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6lY9SYo3pQ4dtkQKfAwZ5X - response: - body: - string: !!binary | - H4sIAAAAAAAAA41Uy27bMBC85ysEnevIchTb8a3osacgKdCkKASaZCDCEqnw0dYw9O9dypJMk0rZ - iw67M0Pu7IinmyRJsVFaNFSqdJf8gEKSnPovtDhqKFS5qetPY61m/GChIwhgShiJfSDUCVWacaSZ - 4IPKINJNaqYlSFNSIg2IdLXMi0W+XKw2z8uH3XK7W21vN8VmvSle04mCJY1Q1nmeb+8dChH7shFc - V/4wjNhjv3xb1y8PTy/irn0siD48fn37/Pv1/vvlzLYS3B8wrSR9s/RscjCLK4HRuEJcl0ojbayR - KReLBmlcXY5rqEaexfS9NygNHLSzHSmS/miIEEmVtynM9NEDwp5gpXQ1X87Dsr247wWItAIadYkF - mWliYbiWR7cbDLI3Cu6hVDmXOqV4WSOlC39M2iBWB0V2FbgOzvpp82MndcJ7if7tFOE0A9f6PKvs - NC126HfDihwiRpKUlahJv0onCg6ZkS5zcOckOxp7xA8lwr1JEZlraKBE6J7FJAbMDNf9Wz/wwfml - Z8ygfzSVHFLwf8OE8OBS1raIJWdIwCRMtUbTCHlCBXwtEVcI28cronGFDHTgkTA8NsMImmH/gpcZ - 1ZErSDrCAgUhyflt/0c4B0zAhaeWRPM0guD/6m66v+0AXvlTBgAA - headers: - content-encoding: [gzip] - content-length: ['495'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6lY9SYo3pQ4dtkQKfAwZ5X - response: - body: - string: !!binary | - H4sIAAAAAAAAA41Uy27bMBC85ysEnevIchTb8a3osacgKdCkKASaZCDCEqnw0dYw9O9dypJMk0rZ - iw67M0Pu7IinmyRJsVFaNFSqdJf8gEKSnPovtDhqKFS5qetPY61m/GChIwhgShiJfSDUCVWacaSZ - 4IPKINJNaqYlSFNSIg2IdLXMi0W+XKw2z8uH3XK7W21vN8VmvSle04mCJY1Q1nmeb+8dChH7shFc - V/4wjNhjv3xb1y8PTy/irn0siD48fn37/Pv1/vvlzLYS3B8wrSR9s/RscjCLK4HRuEJcl0ojbayR - KReLBmlcXY5rqEaexfS9NygNHLSzHSmS/miIEEmVtynM9NEDwp5gpXQ1X87Dsr247wWItAIadYkF - mWliYbiWR7cbDLI3Cu6hVDmXOqV4WSOlC39M2iBWB0V2FbgOzvpp82MndcJ7if7tFOE0A9f6PKvs - NC126HfDihwiRpKUlahJv0onCg6ZkS5zcOckOxp7xA8lwr1JEZlraKBE6J7FJAbMDNf9Wz/wwfml - Z8ygfzSVHFLwf8OE8OBS1raIJWdIwCRMtUbTCHlCBXwtEVcI28cronGFDHTgkTA8NsMImmH/gpcZ - 1ZErSDrCAgUhyflt/0c4B0zAhaeWRPM0guD/6m66v+0AXvlTBgAA - headers: - content-encoding: [gzip] - content-length: ['495'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6lY9SYo3pQ4dtkQKfAwZ5X/bank_accounts?is_valid=True&limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA7VUXW/aMBR976+I8tCnldgOCQkSmmDah9aqFW2nrZ2myNhO65EP5jgMhPjvs01C - EgpTX/oSiXuu7z33nMvdnFmWPcPZPMKE5GUmC3to/VRBy9qYr4JFXkqePUVZmc6YULgNEQR9FATI - flcnmRoZTpnGv3+8urqzPo1vP99Yk/H1pXU9bjKrRpFcL0wyeWZkruo3GXWZL3nKhPUVrxso4dlc - U6zJKXqkLKRO1LU+fPOTh/DuIXcX0z6V8+llPP776P3YFziYNloywWNOsOR5pgpkZZJUE233oxGc - RUQwyqXKkKJkDSIYloxGWCM2ArB/AcEFGtyDcAiCIQp7ft8DcPDYDBCrSZlYCJ6ZNxQT34N9GlLq - YkjoAJMQedQb9EMGXBAQpPAYowHxgI9ZPAMknCHoQxjHYeiHTeFyQf/HxQU9F4DQRS0uz4LFmoTT - WQBnMvazwe1EBH+CqyWE+e+nMkynK970SpnE2oRGo9rUZkdWqxVyXdzynVLBikPzuFxXuteqKouU - ywwdD8OX4UKqwV+GF7kCkojk9Ahodl2s2+hR3ymbGdtjnBSN75xq2U7qZCpt1feXnsmu1TJhO8GF - cd6p97ZwTm1t15f3vIiWOOF0dK928DzhKZcjCM7zOC6YHIFKaTtjK91Ar/JOUnvv81u1NFxUTwiq - jjtOKlIHFoIteV5q91vEZK4c0u+qZzEXbyWOEt9sq96t1gXp3r6esVuTPPxPbDp/kR6nW6fKrah3 - 8favzo15Ze32WSpqY7st2mevtUsHROus7Yki5qy9ktTuBp6gc3JiI2ZnHueA48mnW1u7drb9B/Xj - ZnWlBgAA - headers: - content-encoding: [gzip] - content-length: ['633'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6lY9SYo3pQ4dtkQKfAwZ5X/bank_accounts?is_valid=True&limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA7VUXW/aMBR976+I8tCnldgOCQkSmmDah9aqFW2nrZ2myNhO65EP5jgMhPjvs01C - EgpTX/oSiXuu7z33nMvdnFmWPcPZPMKE5GUmC3to/VRBy9qYr4JFXkqePUVZmc6YULgNEQR9FATI - flcnmRoZTpnGv3+8urqzPo1vP99Yk/H1pXU9bjKrRpFcL0wyeWZkruo3GXWZL3nKhPUVrxso4dlc - U6zJKXqkLKRO1LU+fPOTh/DuIXcX0z6V8+llPP776P3YFziYNloywWNOsOR5pgpkZZJUE233oxGc - RUQwyqXKkKJkDSIYloxGWCM2ArB/AcEFGtyDcAiCIQp7ft8DcPDYDBCrSZlYCJ6ZNxQT34N9GlLq - YkjoAJMQedQb9EMGXBAQpPAYowHxgI9ZPAMknCHoQxjHYeiHTeFyQf/HxQU9F4DQRS0uz4LFmoTT - WQBnMvazwe1EBH+CqyWE+e+nMkynK970SpnE2oRGo9rUZkdWqxVyXdzynVLBikPzuFxXuteqKouU - ywwdD8OX4UKqwV+GF7kCkojk9Ahodl2s2+hR3ymbGdtjnBSN75xq2U7qZCpt1feXnsmu1TJhO8GF - cd6p97ZwTm1t15f3vIiWOOF0dK928DzhKZcjCM7zOC6YHIFKaTtjK91Ar/JOUnvv81u1NFxUTwiq - jjtOKlIHFoIteV5q91vEZK4c0u+qZzEXbyWOEt9sq96t1gXp3r6esVuTPPxPbDp/kR6nW6fKrah3 - 8favzo15Ze32WSpqY7st2mevtUsHROus7Yki5qy9ktTuBp6gc3JiI2ZnHueA48mnW1u7drb9B/Xj - ZnWlBgAA - headers: - content-encoding: [gzip] - content-length: ['633'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/credits?meta%5Bcontains%5D=exchange_id&limit=25&offset=0 - response: - body: {string: !!python/unicode "{\n \"credits\": [],\n \"meta\": {\n \"last\": - \"/credits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\",\n \"next\": - null,\n \"href\": \"/credits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\",\n - \ \"limit\": 25,\n \"offset\": 0,\n \"previous\": null,\n \"total\": - 0,\n \"first\": \"/credits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\"\n - \ },\n \"links\": {}\n}"} - headers: - content-length: ['360'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/debits?meta%5Bcontains%5D=exchange_id&limit=25&offset=0 - response: - body: {string: !!python/unicode "{\n \"meta\": {\n \"last\": \"/debits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\",\n - \ \"next\": null,\n \"href\": \"/debits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\",\n - \ \"limit\": 25,\n \"offset\": 0,\n \"previous\": null,\n \"total\": - 0,\n \"first\": \"/debits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\"\n - \ },\n \"links\": {},\n \"debits\": []\n}"} - headers: - content-length: ['356'] - content-type: [application/json] - status: {code: 200, message: OK} -version: 1 diff --git a/tests/py/fixtures/TestBalancedCard.yml b/tests/py/fixtures/TestBalancedCard.yml deleted file mode 100644 index ddaec1bf11..0000000000 --- a/tests/py/fixtures/TestBalancedCard.yml +++ /dev/null @@ -1,633 +0,0 @@ -interactions: -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t - response: - body: - string: !!binary | - H4sIAAAAAAAAA41UPW/bMBDd8ysEzXX0Aad2vGbI0KlA2qFFIdAkCzGhSJc8tjUM/fcebUmmRbXs - ouHuvUfeuyee7rIsp86C7rix+S77ioUsO52/2FKk41hVTsp3Y00K9eahIwhhVjtD50CsM25BKAJC - q0FlEOknNXdgBDhrCCAir8tqvarKVb15KR935XZXr++3j/Vms/2STxRqeIKyeSirhzqgML1vOq2g - nQ8jmD/26dP79unjr4qBdK/2w3PF7ecXWcP1zEOr1XzAvDX8u6cXk4NFWgmNpi1R0Fgg4LyRudKr - jgBtr8d1HMjMYv7DQ6s8ctDPduTEzEcjjBluZ5uiAo4zIO4JV8rr5XIVl/3F516gyEFjQzZUs4Um - 1U6BOYbdaJC9s3gPa5ul1FmrGkksrOdj8o4IGRXFTeB6POubz4+fNAjvNfr3U4TzAl0759kWp2mx - Q78fVhQQKTGsabVk51UGUQjIgvVFgLskOdDYE/XWEHo2KSFzC42UGN+LlMSAWeCGf+tffAh+6QUz - +G/gRmEK/m+YGB5dytuWsOQCiZhM2IMDniBPqIgPhihLqH+8Eho3yEgHHwmnUjOMoAX2T3yZiUxc - wfARFilowy5v+z/COWAiLj61LJmnEYT/V3/X/wFUXpsCUwYAAA== - headers: - content-encoding: [gzip] - content-length: ['493'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t/cards?is_valid=True&limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA61V3U/bMBB/56+w/MATtIlTkrYSmkqFmECwMRiTmKbIjW1qSO3Kdkor1P99tpM0 - CR/THvBDpNyH7+53vzu/7AEAM6yIhmPw2/4A8OK/Vpxz8eTEtcBZFtrIBVVWCqc/4/n0+jkkJi8e - 9cVZSPXdbY4MrPy3B/VFjIsHqpaKC+Mch1nCggGKovgIs+Ewi2gUZyxAySCmGY4HjGQsignJEA1Z - NLLmNBuxiDESHGEUJ3B3cbZapYrqInf3iiLPdxpRLGZlmuvWCe1pvPFKp0upDc7TBTbZ3OUmZKOn - 6yVX2HAp0oUUxunDYBdhQQ3ugqPog7X10EjBCu1+anOHHTeb1Mhnb9FWYEJsETpFTnEi1wC9hZAT - f+80fkT5VTA9LVj0bJLkHM2ufyWqhQg29EGqjbOWZm4h2CVsNkvqxJmihJsuiHX9HQxnWDylAi+8 - 1/n3y28/ziZXYPp1cnMKTiZXFwfgqjfpdfHURlFqGjw3VDcGM4WFr+OOa9yIiyWxWZMUe3agIBwc - hsEhSm6D0TgYjlHSGx7Foyi8b4UqIbP2bXJagK2kXUPJYuqQfUccunghisAl5gLc+NTbjbHUML74 - d/tZUSeTxNuMAhQGbe9MFsKoTVoZuPhvJiPDIiV0ZtsxBkYVtOFvCXunHy0+bih2M4gC1BDSDsOr - MiHX6Yoqzjh1sHcCOPLvRgeWtYOKicC2CZTlAZc9IBIIaYBnSavhLvuKTWPAcK6b/OeKModK3++W - /n8QV9F/kiDuBcEoHg3uy9nYWij/OLRgZw5hjrVnUb/eVDb2B3uqTO2LwwjnnBzfWvz3c77g5jgM - 9iVjmprjuqNQ0HV3ycCmxGopflYon4Mtol42sMzFSqpmw6WiKy4Lt5wbhkAj7SpzfiWLIOPqs8Gw - gPu1/uptKF+QHuF6WRg78U3jX3z/e5xs+zttlV6pab8oraZVfrV2Ww1WFci5pnOZ+1er5lgrVEvf - CeZH7QOfSucq3Nv+BR00eqQXBwAA - headers: - content-encoding: [gzip] - content-length: ['762'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t/cards?is_valid=True&limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA61V3U/bMBB/56+w/MATtIlTkrYSmkqFmECwMRiTmKbIjW1qSO3Kdkor1P99tpM0 - CR/THvBDpNyH7+53vzu/7AEAM6yIhmPw2/4A8OK/Vpxz8eTEtcBZFtrIBVVWCqc/4/n0+jkkJi8e - 9cVZSPXdbY4MrPy3B/VFjIsHqpaKC+Mch1nCggGKovgIs+Ewi2gUZyxAySCmGY4HjGQsignJEA1Z - NLLmNBuxiDESHGEUJ3B3cbZapYrqInf3iiLPdxpRLGZlmuvWCe1pvPFKp0upDc7TBTbZ3OUmZKOn - 6yVX2HAp0oUUxunDYBdhQQ3ugqPog7X10EjBCu1+anOHHTeb1Mhnb9FWYEJsETpFTnEi1wC9hZAT - f+80fkT5VTA9LVj0bJLkHM2ufyWqhQg29EGqjbOWZm4h2CVsNkvqxJmihJsuiHX9HQxnWDylAi+8 - 1/n3y28/ziZXYPp1cnMKTiZXFwfgqjfpdfHURlFqGjw3VDcGM4WFr+OOa9yIiyWxWZMUe3agIBwc - hsEhSm6D0TgYjlHSGx7Foyi8b4UqIbP2bXJagK2kXUPJYuqQfUccunghisAl5gLc+NTbjbHUML74 - d/tZUSeTxNuMAhQGbe9MFsKoTVoZuPhvJiPDIiV0ZtsxBkYVtOFvCXunHy0+bih2M4gC1BDSDsOr - MiHX6Yoqzjh1sHcCOPLvRgeWtYOKicC2CZTlAZc9IBIIaYBnSavhLvuKTWPAcK6b/OeKModK3++W - /n8QV9F/kiDuBcEoHg3uy9nYWij/OLRgZw5hjrVnUb/eVDb2B3uqTO2LwwjnnBzfWvz3c77g5jgM - 9iVjmprjuqNQ0HV3ycCmxGopflYon4Mtol42sMzFSqpmw6WiKy4Lt5wbhkAj7SpzfiWLIOPqs8Gw - gPu1/uptKF+QHuF6WRg78U3jX3z/e5xs+zttlV6pab8oraZVfrV2Ww1WFci5pnOZ+1er5lgrVEvf - CeZH7QOfSucq3Nv+BR00eqQXBwAA - headers: - content-encoding: [gzip] - content-length: ['762'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t - response: - body: - string: !!binary | - H4sIAAAAAAAAA41UPW/bMBDd8ysEzXX0Aad2vGbI0KlA2qFFIdAkCzGhSJc8tjUM/fcebUmmRbXs - ouHuvUfeuyee7rIsp86C7rix+S77ioUsO52/2FKk41hVTsp3Y00K9eahIwhhVjtD50CsM25BKAJC - q0FlEOknNXdgBDhrCCAir8tqvarKVb15KR935XZXr++3j/Vms/2STxRqeIKyeSirhzqgML1vOq2g - nQ8jmD/26dP79unjr4qBdK/2w3PF7ecXWcP1zEOr1XzAvDX8u6cXk4NFWgmNpi1R0Fgg4LyRudKr - jgBtr8d1HMjMYv7DQ6s8ctDPduTEzEcjjBluZ5uiAo4zIO4JV8rr5XIVl/3F516gyEFjQzZUs4Um - 1U6BOYbdaJC9s3gPa5ul1FmrGkksrOdj8o4IGRXFTeB6POubz4+fNAjvNfr3U4TzAl0759kWp2mx - Q78fVhQQKTGsabVk51UGUQjIgvVFgLskOdDYE/XWEHo2KSFzC42UGN+LlMSAWeCGf+tffAh+6QUz - +G/gRmEK/m+YGB5dytuWsOQCiZhM2IMDniBPqIgPhihLqH+8Eho3yEgHHwmnUjOMoAX2T3yZiUxc - wfARFilowy5v+z/COWAiLj61LJmnEYT/V3/X/wFUXpsCUwYAAA== - headers: - content-encoding: [gzip] - content-length: ['493'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/v1/marketplaces/TEST-MP1wTyxDAJKCaWPjBS4Oli4d/accounts/CU6hCQw1dtlujsKG1esVTl2t - response: - body: - string: !!binary | - H4sIAAAAAAAAA41UPW/bMBDd8ysEzXX0Aad2vGbI0KlA2qFFIdAkCzGhSJc8tjUM/fcebUmmRbXs - ouHuvUfeuyee7rIsp86C7rix+S77ioUsO52/2FKk41hVTsp3Y00K9eahIwhhVjtD50CsM25BKAJC - q0FlEOknNXdgBDhrCCAir8tqvarKVb15KR935XZXr++3j/Vms/2STxRqeIKyeSirhzqgML1vOq2g - nQ8jmD/26dP79unjr4qBdK/2w3PF7ecXWcP1zEOr1XzAvDX8u6cXk4NFWgmNpi1R0Fgg4LyRudKr - jgBtr8d1HMjMYv7DQ6s8ctDPduTEzEcjjBluZ5uiAo4zIO4JV8rr5XIVl/3F516gyEFjQzZUs4Um - 1U6BOYbdaJC9s3gPa5ul1FmrGkksrOdj8o4IGRXFTeB6POubz4+fNAjvNfr3U4TzAl0759kWp2mx - Q78fVhQQKTGsabVk51UGUQjIgvVFgLskOdDYE/XWEHo2KSFzC42UGN+LlMSAWeCGf+tffAh+6QUz - +G/gRmEK/m+YGB5dytuWsOQCiZhM2IMDniBPqIgPhihLqH+8Eho3yEgHHwmnUjOMoAX2T3yZiUxc - wfARFilowy5v+z/COWAiLj61LJmnEYT/V3/X/wFUXpsCUwYAAA== - headers: - content-encoding: [gzip] - content-length: ['493'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t/cards?is_valid=True&limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA61V3U/bMBB/56+w/MATtIlTkrYSmkqFmECwMRiTmKbIjW1qSO3Kdkor1P99tpM0 - CR/THvBDpNyH7+53vzu/7AEAM6yIhmPw2/4A8OK/Vpxz8eTEtcBZFtrIBVVWCqc/4/n0+jkkJi8e - 9cVZSPXdbY4MrPy3B/VFjIsHqpaKC+Mch1nCggGKovgIs+Ewi2gUZyxAySCmGY4HjGQsignJEA1Z - NLLmNBuxiDESHGEUJ3B3cbZapYrqInf3iiLPdxpRLGZlmuvWCe1pvPFKp0upDc7TBTbZ3OUmZKOn - 6yVX2HAp0oUUxunDYBdhQQ3ugqPog7X10EjBCu1+anOHHTeb1Mhnb9FWYEJsETpFTnEi1wC9hZAT - f+80fkT5VTA9LVj0bJLkHM2ufyWqhQg29EGqjbOWZm4h2CVsNkvqxJmihJsuiHX9HQxnWDylAi+8 - 1/n3y28/ziZXYPp1cnMKTiZXFwfgqjfpdfHURlFqGjw3VDcGM4WFr+OOa9yIiyWxWZMUe3agIBwc - hsEhSm6D0TgYjlHSGx7Foyi8b4UqIbP2bXJagK2kXUPJYuqQfUccunghisAl5gLc+NTbjbHUML74 - d/tZUSeTxNuMAhQGbe9MFsKoTVoZuPhvJiPDIiV0ZtsxBkYVtOFvCXunHy0+bih2M4gC1BDSDsOr - MiHX6Yoqzjh1sHcCOPLvRgeWtYOKicC2CZTlAZc9IBIIaYBnSavhLvuKTWPAcK6b/OeKModK3++W - /n8QV9F/kiDuBcEoHg3uy9nYWij/OLRgZw5hjrVnUb/eVDb2B3uqTO2LwwjnnBzfWvz3c77g5jgM - 9iVjmprjuqNQ0HV3ycCmxGopflYon4Mtol42sMzFSqpmw6WiKy4Lt5wbhkAj7SpzfiWLIOPqs8Gw - gPu1/uptKF+QHuF6WRg78U3jX3z/e5xs+zttlV6pab8oraZVfrV2Ww1WFci5pnOZ+1er5lgrVEvf - CeZH7QOfSucq3Nv+BR00eqQXBwAA - headers: - content-encoding: [gzip] - content-length: ['762'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t/cards?is_valid=True&limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA61V3U/bMBB/56+w/MATtIlTkrYSmkqFmECwMRiTmKbIjW1qSO3Kdkor1P99tpM0 - CR/THvBDpNyH7+53vzu/7AEAM6yIhmPw2/4A8OK/Vpxz8eTEtcBZFtrIBVVWCqc/4/n0+jkkJi8e - 9cVZSPXdbY4MrPy3B/VFjIsHqpaKC+Mch1nCggGKovgIs+Ewi2gUZyxAySCmGY4HjGQsignJEA1Z - NLLmNBuxiDESHGEUJ3B3cbZapYrqInf3iiLPdxpRLGZlmuvWCe1pvPFKp0upDc7TBTbZ3OUmZKOn - 6yVX2HAp0oUUxunDYBdhQQ3ugqPog7X10EjBCu1+anOHHTeb1Mhnb9FWYEJsETpFTnEi1wC9hZAT - f+80fkT5VTA9LVj0bJLkHM2ufyWqhQg29EGqjbOWZm4h2CVsNkvqxJmihJsuiHX9HQxnWDylAi+8 - 1/n3y28/ziZXYPp1cnMKTiZXFwfgqjfpdfHURlFqGjw3VDcGM4WFr+OOa9yIiyWxWZMUe3agIBwc - hsEhSm6D0TgYjlHSGx7Foyi8b4UqIbP2bXJagK2kXUPJYuqQfUccunghisAl5gLc+NTbjbHUML74 - d/tZUSeTxNuMAhQGbe9MFsKoTVoZuPhvJiPDIiV0ZtsxBkYVtOFvCXunHy0+bih2M4gC1BDSDsOr - MiHX6Yoqzjh1sHcCOPLvRgeWtYOKicC2CZTlAZc9IBIIaYBnSavhLvuKTWPAcK6b/OeKModK3++W - /n8QV9F/kiDuBcEoHg3uy9nYWij/OLRgZw5hjrVnUb/eVDb2B3uqTO2LwwjnnBzfWvz3c77g5jgM - 9iVjmprjuqNQ0HV3ycCmxGopflYon4Mtol42sMzFSqpmw6WiKy4Lt5wbhkAj7SpzfiWLIOPqs8Gw - gPu1/uptKF+QHuF6WRg78U3jX3z/e5xs+zttlV6pab8oraZVfrV2Ww1WFci5pnOZ+1er5lgrVEvf - CeZH7QOfSucq3Nv+BR00eqQXBwAA - headers: - content-encoding: [gzip] - content-length: ['762'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t - response: - body: - string: !!binary | - H4sIAAAAAAAAA41UPW/bMBDd8ysEzXX0Aad2vGbI0KlA2qFFIdAkCzGhSJc8tjUM/fcebUmmRbXs - ouHuvUfeuyee7rIsp86C7rix+S77ioUsO52/2FKk41hVTsp3Y00K9eahIwhhVjtD50CsM25BKAJC - q0FlEOknNXdgBDhrCCAir8tqvarKVb15KR935XZXr++3j/Vms/2STxRqeIKyeSirhzqgML1vOq2g - nQ8jmD/26dP79unjr4qBdK/2w3PF7ecXWcP1zEOr1XzAvDX8u6cXk4NFWgmNpi1R0Fgg4LyRudKr - jgBtr8d1HMjMYv7DQ6s8ctDPduTEzEcjjBluZ5uiAo4zIO4JV8rr5XIVl/3F516gyEFjQzZUs4Um - 1U6BOYbdaJC9s3gPa5ul1FmrGkksrOdj8o4IGRXFTeB6POubz4+fNAjvNfr3U4TzAl0759kWp2mx - Q78fVhQQKTGsabVk51UGUQjIgvVFgLskOdDYE/XWEHo2KSFzC42UGN+LlMSAWeCGf+tffAh+6QUz - +G/gRmEK/m+YGB5dytuWsOQCiZhM2IMDniBPqIgPhihLqH+8Eho3yEgHHwmnUjOMoAX2T3yZiUxc - wfARFilowy5v+z/COWAiLj61LJmnEYT/V3/X/wFUXpsCUwYAAA== - headers: - content-encoding: [gzip] - content-length: ['493'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t/cards?is_valid=True&limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA61V3U/bMBB/56+w/MATtIlTkrYSmkqFmECwMRiTmKbIjW1qSO3Kdkor1P99tpM0 - CR/THvBDpNyH7+53vzu/7AEAM6yIhmPw2/4A8OK/Vpxz8eTEtcBZFtrIBVVWCqc/4/n0+jkkJi8e - 9cVZSPXdbY4MrPy3B/VFjIsHqpaKC+Mch1nCggGKovgIs+Ewi2gUZyxAySCmGY4HjGQsignJEA1Z - NLLmNBuxiDESHGEUJ3B3cbZapYrqInf3iiLPdxpRLGZlmuvWCe1pvPFKp0upDc7TBTbZ3OUmZKOn - 6yVX2HAp0oUUxunDYBdhQQ3ugqPog7X10EjBCu1+anOHHTeb1Mhnb9FWYEJsETpFTnEi1wC9hZAT - f+80fkT5VTA9LVj0bJLkHM2ufyWqhQg29EGqjbOWZm4h2CVsNkvqxJmihJsuiHX9HQxnWDylAi+8 - 1/n3y28/ziZXYPp1cnMKTiZXFwfgqjfpdfHURlFqGjw3VDcGM4WFr+OOa9yIiyWxWZMUe3agIBwc - hsEhSm6D0TgYjlHSGx7Foyi8b4UqIbP2bXJagK2kXUPJYuqQfUccunghisAl5gLc+NTbjbHUML74 - d/tZUSeTxNuMAhQGbe9MFsKoTVoZuPhvJiPDIiV0ZtsxBkYVtOFvCXunHy0+bih2M4gC1BDSDsOr - MiHX6Yoqzjh1sHcCOPLvRgeWtYOKicC2CZTlAZc9IBIIaYBnSavhLvuKTWPAcK6b/OeKModK3++W - /n8QV9F/kiDuBcEoHg3uy9nYWij/OLRgZw5hjrVnUb/eVDb2B3uqTO2LwwjnnBzfWvz3c77g5jgM - 9iVjmprjuqNQ0HV3ycCmxGopflYon4Mtol42sMzFSqpmw6WiKy4Lt5wbhkAj7SpzfiWLIOPqs8Gw - gPu1/uptKF+QHuF6WRg78U3jX3z/e5xs+zttlV6pab8oraZVfrV2Ww1WFci5pnOZ+1er5lgrVEvf - CeZH7QOfSucq3Nv+BR00eqQXBwAA - headers: - content-encoding: [gzip] - content-length: ['762'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t/cards?is_valid=True&limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA61V3U/bMBB/56+w/MATtIlTkrYSmkqFmECwMRiTmKbIjW1qSO3Kdkor1P99tpM0 - CR/THvBDpNyH7+53vzu/7AEAM6yIhmPw2/4A8OK/Vpxz8eTEtcBZFtrIBVVWCqc/4/n0+jkkJi8e - 9cVZSPXdbY4MrPy3B/VFjIsHqpaKC+Mch1nCggGKovgIs+Ewi2gUZyxAySCmGY4HjGQsignJEA1Z - NLLmNBuxiDESHGEUJ3B3cbZapYrqInf3iiLPdxpRLGZlmuvWCe1pvPFKp0upDc7TBTbZ3OUmZKOn - 6yVX2HAp0oUUxunDYBdhQQ3ugqPog7X10EjBCu1+anOHHTeb1Mhnb9FWYEJsETpFTnEi1wC9hZAT - f+80fkT5VTA9LVj0bJLkHM2ufyWqhQg29EGqjbOWZm4h2CVsNkvqxJmihJsuiHX9HQxnWDylAi+8 - 1/n3y28/ziZXYPp1cnMKTiZXFwfgqjfpdfHURlFqGjw3VDcGM4WFr+OOa9yIiyWxWZMUe3agIBwc - hsEhSm6D0TgYjlHSGx7Foyi8b4UqIbP2bXJagK2kXUPJYuqQfUccunghisAl5gLc+NTbjbHUML74 - d/tZUSeTxNuMAhQGbe9MFsKoTVoZuPhvJiPDIiV0ZtsxBkYVtOFvCXunHy0+bih2M4gC1BDSDsOr - MiHX6Yoqzjh1sHcCOPLvRgeWtYOKicC2CZTlAZc9IBIIaYBnSavhLvuKTWPAcK6b/OeKModK3++W - /n8QV9F/kiDuBcEoHg3uy9nYWij/OLRgZw5hjrVnUb/eVDb2B3uqTO2LwwjnnBzfWvz3c77g5jgM - 9iVjmprjuqNQ0HV3ycCmxGopflYon4Mtol42sMzFSqpmw6WiKy4Lt5wbhkAj7SpzfiWLIOPqs8Gw - gPu1/uptKF+QHuF6WRg78U3jX3z/e5xs+zttlV6pab8oraZVfrV2Ww1WFci5pnOZ+1er5lgrVEvf - CeZH7QOfSucq3Nv+BR00eqQXBwAA - headers: - content-encoding: [gzip] - content-length: ['762'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/marketplaces?limit=25&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA5VUTW/bMAy991cEPuyyNfFnhwQotrXZZe3QYE0xbMNgyBaNeJElQ5aadEH++2hZ - rmNMKLZLQFKP5CP54sPZZOJVoIi3mBzQRo+RRqHnzSoit6BqRnJo3rGyKtVlmLwSRdGAuvS9Nx2c - w76Fc82YjWwkFP9RwFRGfJjY/K4DRnwbqCU8lkI34zZKKMIwFFhUUcp/I468j22OdzogFvphBuq2 - gK8lT6HJpdi1PfwoCd/G864VPlJREQRo2TLwYE+qmsE0F5VdC0I4qaB9XOmMlflkCY/DGyv5th2n - b4ZwseMg01w3SlQg28Trh2D3UHy7XWa327vVDQ2+wO/N1T7zDE87hDmZc+Oz9cf79fnnVbBbP+2X - Hz7dXJOvq19X9/EdK2M6cMklEAU0JebqoR/E535yHsZrP1qEF4twPp3PoziKvw8pja5rIVUKuASW - EkolNO04nn1471yIrulLjSJ/GgWRnwSORvVGcEi5rrJuNa+Di8RPkiQIo3igVUtBda5KwZFLQVgD - z/fqJW4Ob3amOcpYMRy8AGjJW7W1l6ftLC+vz5Q54u9PI6XxQUfKmlLISmXWM7OmVeyp/qaocZAN - kjbAwXNhadnUWhnWWLN3XMheTx108JxYCbQniqIwthNHJLX1jOXCCElxGsPPmi5UjvnpRrCTctZ1 - ofGzormF9rYL9/c/afY8+OwwWvoYenSOoiThDTGy6gYaBVwEMsK3Kclzobm9+zjiyskJYxnJzVfB - mw2eC4tK6Qtbs/2knR3/AMhiHPDNBQAA - headers: - content-encoding: [gzip] - content-length: ['594'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t - response: - body: - string: !!binary | - H4sIAAAAAAAAA41UPW/bMBDd8ysEzXX0Aad2vGbI0KlA2qFFIdAkCzGhSJc8tjUM/fcebUmmRbXs - ouHuvUfeuyee7rIsp86C7rix+S77ioUsO52/2FKk41hVTsp3Y00K9eahIwhhVjtD50CsM25BKAJC - q0FlEOknNXdgBDhrCCAir8tqvarKVb15KR935XZXr++3j/Vms/2STxRqeIKyeSirhzqgML1vOq2g - nQ8jmD/26dP79unjr4qBdK/2w3PF7ecXWcP1zEOr1XzAvDX8u6cXk4NFWgmNpi1R0Fgg4LyRudKr - jgBtr8d1HMjMYv7DQ6s8ctDPduTEzEcjjBluZ5uiAo4zIO4JV8rr5XIVl/3F516gyEFjQzZUs4Um - 1U6BOYbdaJC9s3gPa5ul1FmrGkksrOdj8o4IGRXFTeB6POubz4+fNAjvNfr3U4TzAl0759kWp2mx - Q78fVhQQKTGsabVk51UGUQjIgvVFgLskOdDYE/XWEHo2KSFzC42UGN+LlMSAWeCGf+tffAh+6QUz - +G/gRmEK/m+YGB5dytuWsOQCiZhM2IMDniBPqIgPhihLqH+8Eho3yEgHHwmnUjOMoAX2T3yZiUxc - wfARFilowy5v+z/COWAiLj61LJmnEYT/V3/X/wFUXpsCUwYAAA== - headers: - content-encoding: [gzip] - content-length: ['493'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t/cards?is_valid=True&limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA61V3U/bMBB/56+w/MATtIlTkrYSmkqFmECwMRiTmKbIjW1qSO3Kdkor1P99tpM0 - CR/THvBDpNyH7+53vzu/7AEAM6yIhmPw2/4A8OK/Vpxz8eTEtcBZFtrIBVVWCqc/4/n0+jkkJi8e - 9cVZSPXdbY4MrPy3B/VFjIsHqpaKC+Mch1nCggGKovgIs+Ewi2gUZyxAySCmGY4HjGQsignJEA1Z - NLLmNBuxiDESHGEUJ3B3cbZapYrqInf3iiLPdxpRLGZlmuvWCe1pvPFKp0upDc7TBTbZ3OUmZKOn - 6yVX2HAp0oUUxunDYBdhQQ3ugqPog7X10EjBCu1+anOHHTeb1Mhnb9FWYEJsETpFTnEi1wC9hZAT - f+80fkT5VTA9LVj0bJLkHM2ufyWqhQg29EGqjbOWZm4h2CVsNkvqxJmihJsuiHX9HQxnWDylAi+8 - 1/n3y28/ziZXYPp1cnMKTiZXFwfgqjfpdfHURlFqGjw3VDcGM4WFr+OOa9yIiyWxWZMUe3agIBwc - hsEhSm6D0TgYjlHSGx7Foyi8b4UqIbP2bXJagK2kXUPJYuqQfUccunghisAl5gLc+NTbjbHUML74 - d/tZUSeTxNuMAhQGbe9MFsKoTVoZuPhvJiPDIiV0ZtsxBkYVtOFvCXunHy0+bih2M4gC1BDSDsOr - MiHX6Yoqzjh1sHcCOPLvRgeWtYOKicC2CZTlAZc9IBIIaYBnSavhLvuKTWPAcK6b/OeKModK3++W - /n8QV9F/kiDuBcEoHg3uy9nYWij/OLRgZw5hjrVnUb/eVDb2B3uqTO2LwwjnnBzfWvz3c77g5jgM - 9iVjmprjuqNQ0HV3ycCmxGopflYon4Mtol42sMzFSqpmw6WiKy4Lt5wbhkAj7SpzfiWLIOPqs8Gw - gPu1/uptKF+QHuF6WRg78U3jX3z/e5xs+zttlV6pab8oraZVfrV2Ww1WFci5pnOZ+1er5lgrVEvf - CeZH7QOfSucq3Nv+BR00eqQXBwAA - headers: - content-encoding: [gzip] - content-length: ['762'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t/cards?is_valid=True&limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA61V3U/bMBB/56+w/MATtIlTkrYSmkqFmECwMRiTmKbIjW1qSO3Kdkor1P99tpM0 - CR/THvBDpNyH7+53vzu/7AEAM6yIhmPw2/4A8OK/Vpxz8eTEtcBZFtrIBVVWCqc/4/n0+jkkJi8e - 9cVZSPXdbY4MrPy3B/VFjIsHqpaKC+Mch1nCggGKovgIs+Ewi2gUZyxAySCmGY4HjGQsignJEA1Z - NLLmNBuxiDESHGEUJ3B3cbZapYrqInf3iiLPdxpRLGZlmuvWCe1pvPFKp0upDc7TBTbZ3OUmZKOn - 6yVX2HAp0oUUxunDYBdhQQ3ugqPog7X10EjBCu1+anOHHTeb1Mhnb9FWYEJsETpFTnEi1wC9hZAT - f+80fkT5VTA9LVj0bJLkHM2ufyWqhQg29EGqjbOWZm4h2CVsNkvqxJmihJsuiHX9HQxnWDylAi+8 - 1/n3y28/ziZXYPp1cnMKTiZXFwfgqjfpdfHURlFqGjw3VDcGM4WFr+OOa9yIiyWxWZMUe3agIBwc - hsEhSm6D0TgYjlHSGx7Foyi8b4UqIbP2bXJagK2kXUPJYuqQfUccunghisAl5gLc+NTbjbHUML74 - d/tZUSeTxNuMAhQGbe9MFsKoTVoZuPhvJiPDIiV0ZtsxBkYVtOFvCXunHy0+bih2M4gC1BDSDsOr - MiHX6Yoqzjh1sHcCOPLvRgeWtYOKicC2CZTlAZc9IBIIaYBnSavhLvuKTWPAcK6b/OeKModK3++W - /n8QV9F/kiDuBcEoHg3uy9nYWij/OLRgZw5hjrVnUb/eVDb2B3uqTO2LwwjnnBzfWvz3c77g5jgM - 9iVjmprjuqNQ0HV3ycCmxGopflYon4Mtol42sMzFSqpmw6WiKy4Lt5wbhkAj7SpzfiWLIOPqs8Gw - gPu1/uptKF+QHuF6WRg78U3jX3z/e5xs+zttlV6pab8oraZVfrV2Ww1WFci5pnOZ+1er5lgrVEvf - CeZH7QOfSucq3Nv+BR00eqQXBwAA - headers: - content-encoding: [gzip] - content-length: ['762'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/marketplaces?limit=25&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA5VUTW/bMAy991cEPuyyNfFnhwQotrXZZe3QYE0xbMNgyBaNeJElQ5aadEH++2hZ - rmNMKLZLQFKP5CP54sPZZOJVoIi3mBzQRo+RRqHnzSoit6BqRnJo3rGyKtVlmLwSRdGAuvS9Nx2c - w76Fc82YjWwkFP9RwFRGfJjY/K4DRnwbqCU8lkI34zZKKMIwFFhUUcp/I468j22OdzogFvphBuq2 - gK8lT6HJpdi1PfwoCd/G864VPlJREQRo2TLwYE+qmsE0F5VdC0I4qaB9XOmMlflkCY/DGyv5th2n - b4ZwseMg01w3SlQg28Trh2D3UHy7XWa327vVDQ2+wO/N1T7zDE87hDmZc+Oz9cf79fnnVbBbP+2X - Hz7dXJOvq19X9/EdK2M6cMklEAU0JebqoR/E535yHsZrP1qEF4twPp3PoziKvw8pja5rIVUKuASW - EkolNO04nn1471yIrulLjSJ/GgWRnwSORvVGcEi5rrJuNa+Di8RPkiQIo3igVUtBda5KwZFLQVgD - z/fqJW4Ob3amOcpYMRy8AGjJW7W1l6ftLC+vz5Q54u9PI6XxQUfKmlLISmXWM7OmVeyp/qaocZAN - kjbAwXNhadnUWhnWWLN3XMheTx108JxYCbQniqIwthNHJLX1jOXCCElxGsPPmi5UjvnpRrCTctZ1 - ofGzormF9rYL9/c/afY8+OwwWvoYenSOoiThDTGy6gYaBVwEMsK3Kclzobm9+zjiyskJYxnJzVfB - mw2eC4tK6Qtbs/2knR3/AMhiHPDNBQAA - headers: - content-encoding: [gzip] - content-length: ['594'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/marketplaces?limit=25&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA5VUTW/bMAy991cEPuyyNfFnhwQotrXZZe3QYE0xbMNgyBaNeJElQ5aadEH++2hZ - rmNMKLZLQFKP5CP54sPZZOJVoIi3mBzQRo+RRqHnzSoit6BqRnJo3rGyKtVlmLwSRdGAuvS9Nx2c - w76Fc82YjWwkFP9RwFRGfJjY/K4DRnwbqCU8lkI34zZKKMIwFFhUUcp/I468j22OdzogFvphBuq2 - gK8lT6HJpdi1PfwoCd/G864VPlJREQRo2TLwYE+qmsE0F5VdC0I4qaB9XOmMlflkCY/DGyv5th2n - b4ZwseMg01w3SlQg28Trh2D3UHy7XWa327vVDQ2+wO/N1T7zDE87hDmZc+Oz9cf79fnnVbBbP+2X - Hz7dXJOvq19X9/EdK2M6cMklEAU0JebqoR/E535yHsZrP1qEF4twPp3PoziKvw8pja5rIVUKuASW - EkolNO04nn1471yIrulLjSJ/GgWRnwSORvVGcEi5rrJuNa+Di8RPkiQIo3igVUtBda5KwZFLQVgD - z/fqJW4Ob3amOcpYMRy8AGjJW7W1l6ftLC+vz5Q54u9PI6XxQUfKmlLISmXWM7OmVeyp/qaocZAN - kjbAwXNhadnUWhnWWLN3XMheTx108JxYCbQniqIwthNHJLX1jOXCCElxGsPPmi5UjvnpRrCTctZ1 - ofGzormF9rYL9/c/afY8+OwwWvoYenSOoiThDTGy6gYaBVwEMsK3Kclzobm9+zjiyskJYxnJzVfB - mw2eC4tK6Qtbs/2knR3/AMhiHPDNBQAA - headers: - content-encoding: [gzip] - content-length: ['594'] - 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-10-27T09:08:47.133011Z\",\n \"created_at\": - \"2014-10-27T09:08:46.990049Z\",\n \"dob_month\": null,\n \"id\": - \"CU6GDLtBEmTiDZ7GuMzsVYfr\",\n \"phone\": null,\n \"href\": \"/customers/CU6GDLtBEmTiDZ7GuMzsVYfr\",\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": "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\": - \"CC6HWC2vWiSC90Z7Ihi2Ll1b\",\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-10-27T09:08:48.151229Z\",\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/CC6HWC2vWiSC90Z7Ihi2Ll1b\",\n \"created_at\": - \"2014-10-27T09:08:48.151226Z\"\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/CU6GDLtBEmTiDZ7GuMzsVYfr"}, "cvv_result": - null, "number": "xxxxxxxxxxxx4242", "avs_postal_match": null, "expiration_month": - 12, "meta": {}, "id": "CC6HWC2vWiSC90Z7Ihi2Ll1b", "category": "other", "type": - "credit", "cvv_match": null, "bank_name": "", "avs_street_match": null, "brand": - "Visa", "updated_at": "2014-10-27T09:08:48.151229Z", "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-10-27T09:08:48.151226Z", "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/CC6HWC2vWiSC90Z7Ihi2Ll1b - response: - body: - string: !!binary | - H4sIAAAAAAAAA41UTW/bMAy991cYPq+JpPorOS4dugHdaV2LZhgMWaIbobZsSHLQLPB/n+SPxEnT - YT4YNqlHPpJP3F95ns+o4tpfer/sj+ftu7c1F0K+OvNocCcbbaoSlLX6q5/R3e29+fylfBC36/iu - +f5HPz7nyh/w7acxUC7kC6haCWkcEANhAQlpGC8oZnFOYopu4hxFEcmSMEQ3IQPKszzHCUX2A+Ik - zDMUA6E5YMb8Q2C23aYKdFO4uLIpioNHNmXW03ybPAEJyBFNtzqtK21okZbUsM15DHirhaJGVDIt - K2mcH5NDhhIMdc05lil415ZV9PVpRbZP4sdqgdbxt40g9wXOJqypgZdK7dzpymwszUNQs6vBmZkC - LsxpoRc5ZlS+ppKWHeq0NG0UgLlcWqao7Ng+Ck2PsKbmlhtPaTcngnBwjdE1iR/QYomSZbCYxUFE - MF5PMnFuJ3AuE2FcddOJ9HoCctmM35vtXIyr6izIMDBW8QtOVjXSqF068b4TI6My5ZDZ7i49oxo4 - Sqbv4omMJhLYAXWyJ4igqf7OGPpCp1tQIhfg+nuSwOntslodp2HkSy+nhT6y2ijIbSB/3l3S+X+o - S8E/Z5jMcIgJidb9PW1tg367gs6ue78UZi5ruqmKbj+MJPYdl5ngbcdq8PddGXGTRTEft4aeD8jR - 0A46GkBc6Lox8EGqg/ckUTfKjxC9zxbXXrV/AbQ8JIbqBAAA - headers: - content-encoding: [gzip] - content-length: ['549'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6GDLtBEmTiDZ7GuMzsVYfr - response: - body: - string: !!binary | - H4sIAAAAAAAAA41UQW7bMBC85xWCzrUl2UZc+9gmyKW9pQWaohBokoGISKRDLou6hv7epS3JNKlE - veiwOzPkzo54vEmSlFoDquHapNvkJxaS5Hj6YkuShmNV2rr+0NdqIV8ctAchzCiraQjEOuMGhCQg - lOxUOpF2ULN7RoCzkgAi0kVerGZFPlusH/PNNv+4Xa3nxXKZF8VTOlCo5u9SbuebTZ6vNh6FqV3Z - KAlVOIxg7tjP324f7r7Ap/vmUdw9rR/s17/m+49nfTlzXykZDphWmj87ejY4mE0rodG0IhJKAwSs - MzKVatYQoNXluIYDCSzmrw66TCMH3WwHTnQ4GmFMcxNsigo4BEDcE66UL8bLRVx2Fw+9QJG9wkZd - UsVGmlRZCfrgd6NBdtbgPYwpx1JnjCxrYmAVjskbIuqoKK4C1+JZv1x+3KReeC/Rnw8RTjN07ZRn - kx2HxXb9tluRR6REs7JSNTut0ouCRxaszTzcOcmexo7Il5LQk0kTMtfQSInxnZiS6DAjXP9vfcMH - 75ceMYP/Aa4lpuD/honh0aWcbROWnCERkwmzt8AnyAMq4oMm0hDqHq8JjStkpIOPhJVTM/SgEfZv - fJlJPXEFzXtYpKA0O7/t74Szw0RcfGrZZJ56EP5f7U37D0yBZtpTBgAA - headers: - content-encoding: [gzip] - content-length: ['498'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6GDLtBEmTiDZ7GuMzsVYfr/cards?is_valid=True&limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA61UwW7bMAy99ysMHXpaE0mN4yRAMWDp0A3oTutaLMNgyBbVCLVlQ5aDZkX+fZJs - x06aDjs0hyAhRfKR75EvZ0GAUqZ5hRbBL/snCF78tzVnUj05c2dwL+vKFDloa0XLH9Ob61vz6XN+ - J69X0U397U91/1No1MbvPnSJhFSPoEstlXGBBGg6oSELozkjaSRoxPBlJPB0SpNZGOLLMAXGEyHI - jGH7A6JZKBIcAWUCSJqifeJ0s4k1VHXm8qo6y/YeVedJA/N58JnQCe2j2aaKy6IyLItzZtL1cQ54 - LqVmRhYqzgtlnJ/QfYUcDHPD6duU3I9lOf3ysKSbB/l9Ocer6Ota0tuMJAPUzMBjobfudWHWFuY+ - qdmW4MypBi7NYaMnMSZMPcWK5T7qsLXKaABzurVEM+XR3suK9WF1yS02HjPPE8VkckHwBY3u8HyB - Z4vJfBRNppSQ1aAS55aBY5lI47obMtLoCehpM3lttrwY19VRkpawtOAnnGlRK6O38cD7SowpUzGH - xE53ERhdQy+ZZooHMhpIYAvMyZ5iiof6O0KIZBVvQEshwc33oIDT22m1Okwt5YtAsKzqUa01CJsI - jf2Sjv9DXRr+yeFsREJC6XTV7OnODui3awh1gvYTQxmrvAjG3crb2m8sfAPto+ucZZJf3dmpnmcy - l+aK4PNCiArMFW4lgxQ8H24r6ltsr8t7lfIYbBOkZQw1WKylM5QaNrKonXx73pEp7E1wcQ3RSEj9 - 3sOwQ/aH4+jINqd4xGVV1gYcrI74F8//SPLdeO9t4TWe4WkekNbGdd5dR0MbZJPG6yLz5/9EKfeq - 9R8U8wv0Rkzrcx2e7f4CUoOFamAGAAA= - headers: - content-encoding: [gzip] - content-length: ['650'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6GDLtBEmTiDZ7GuMzsVYfr/cards?is_valid=True&limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA61UwW7bMAy99ysMHXpaE0mN4yRAMWDp0A3oTutaLMNgyBbVCLVlQ5aDZkX+fZJs - x06aDjs0hyAhRfKR75EvZ0GAUqZ5hRbBL/snCF78tzVnUj05c2dwL+vKFDloa0XLH9Ob61vz6XN+ - J69X0U397U91/1No1MbvPnSJhFSPoEstlXGBBGg6oSELozkjaSRoxPBlJPB0SpNZGOLLMAXGEyHI - jGH7A6JZKBIcAWUCSJqifeJ0s4k1VHXm8qo6y/YeVedJA/N58JnQCe2j2aaKy6IyLItzZtL1cQ54 - LqVmRhYqzgtlnJ/QfYUcDHPD6duU3I9lOf3ysKSbB/l9Ocer6Ota0tuMJAPUzMBjobfudWHWFuY+ - qdmW4MypBi7NYaMnMSZMPcWK5T7qsLXKaABzurVEM+XR3suK9WF1yS02HjPPE8VkckHwBY3u8HyB - Z4vJfBRNppSQ1aAS55aBY5lI47obMtLoCehpM3lttrwY19VRkpawtOAnnGlRK6O38cD7SowpUzGH - xE53ERhdQy+ZZooHMhpIYAvMyZ5iiof6O0KIZBVvQEshwc33oIDT22m1Okwt5YtAsKzqUa01CJsI - jf2Sjv9DXRr+yeFsREJC6XTV7OnODui3awh1gvYTQxmrvAjG3crb2m8sfAPto+ucZZJf3dmpnmcy - l+aK4PNCiArMFW4lgxQ8H24r6ltsr8t7lfIYbBOkZQw1WKylM5QaNrKonXx73pEp7E1wcQ3RSEj9 - 3sOwQ/aH4+jINqd4xGVV1gYcrI74F8//SPLdeO9t4TWe4WkekNbGdd5dR0MbZJPG6yLz5/9EKfeq - 9R8U8wv0Rkzrcx2e7f4CUoOFamAGAAA= - headers: - content-encoding: [gzip] - content-length: ['650'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/credits?meta%5Bcontains%5D=exchange_id&limit=25&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA6VUW2/aMBR+769AltqnQRIgDJDQxGXqZaqmsbUbnabIcw7Fq+ME20HpUP77bJMb - VNWk7cVKzu37znfssz9rtRAREFIl0bj1Xf+2Wnt7aodUWKXGjhLgIeWP6E3pCkESQRNFY278mFEC - tZdR/mTyykoGJJUqjkCY6Pmd92s5GN54l6sEVlc7Eq2y7e32U1VAx2sARTkuAWZT7+nraPu8TK/m - 7Ju8+Z3SnRri62ZKLEJbn6eMFTzzinCahFhBGGBlGHRdr9/23HbX/+IOxr479gadQc/1e8OHugut - y19Sev1h3x01UpTAXGJiWAc8jX4W/S7fz/y2d/+2vbjvjmqANaYsFRBoHGl1NMwrxiQVAjh5Nnzv - Pi/qNBzFKTdteK7rVuHHxQISh3BaMQKFj6cCGdlg/ggBDQ2M15QzwUJRQhPMVeV+IetGwNpkOsUl - cuZLj8/xdvhwGX38cAtTEQ2yKb/eNOgnCWAhAy2RuWAQgQbA9ppBhqOEQYfEUR1/oPZqXUsp1+cP - IwU66hExLO28S3rvGI2omnT9CxN37s9IzBWmXJ77i0lDjIt4vZagJm5BA3HITKF6QOi0838ubSnp - 2l3/MEt0wNaWYrgoEbCjsX2JDQIqVphpk1ekran432a1gPbFoOMHXG6ITvnCkGO/pLMvxn7w5KVa - pVXz1lGY2eFWV6RKomHu1CFFG2Vuc2E45U8DsTS9ANWY3G6zVxAL/wncyb7RvGScCgINxEZIjoxU - Z/kfbxKZLEAFAAA= - headers: - content-encoding: [gzip] - content-length: ['581'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: '{"status": "pending", "transaction_number": "CREB5-1V7-DV29", "description": - "alice", "created_at": "2014-10-25T06:50:16.348409Z", "appears_on_statement_as": - "example.com", "updated_at": "2014-10-25T06:50:16.630538Z", "order": null, "destination_href": - "/resources/BA1kW9qyRuHClXsJzuivt8aI", "currency": "USD", "amount": 1000, "meta": - {"participant_id": "1"}, "customer_href": "/customers/CU1jR68J1GYpeYHvcmYxqMqQ", - "failure_reason_code": null, "failure_reason": null, "id": "CR1nCaq8ZGmOKMeArm6xAnIh"}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/credits/CR1nCaq8ZGmOKMeArm6xAnIh - response: - body: {string: !!python/unicode "{\n \"credits\": [\n {\n \"status\": - \"pending\",\n \"description\": \"alice\",\n \"links\": {\n \"customer\": - \"CU1jR68J1GYpeYHvcmYxqMqQ\",\n \"destination\": \"BA1kW9qyRuHClXsJzuivt8aI\",\n - \ \"order\": null\n },\n \"updated_at\": \"2014-10-27T09:08:53.808011Z\",\n - \ \"created_at\": \"2014-10-25T06:50:16.348409Z\",\n \"transaction_number\": - \"CREB5-1V7-DV29\",\n \"failure_reason\": null,\n \"currency\": - \"USD\",\n \"amount\": 1000,\n \"failure_reason_code\": null,\n - \ \"meta\": {\n \"participant_id\": \"1\"\n },\n \"href\": - \"/credits/CR1nCaq8ZGmOKMeArm6xAnIh\",\n \"appears_on_statement_as\": - \"example.com\",\n \"id\": \"CR1nCaq8ZGmOKMeArm6xAnIh\"\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: ['990'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/debits?meta%5Bcontains%5D=exchange_id&limit=25&offset=0 - response: - body: {string: !!python/unicode "{\n \"meta\": {\n \"last\": \"/debits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\",\n - \ \"next\": null,\n \"href\": \"/debits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\",\n - \ \"limit\": 25,\n \"offset\": 0,\n \"previous\": null,\n \"total\": - 0,\n \"first\": \"/debits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\"\n - \ },\n \"links\": {},\n \"debits\": []\n}"} - headers: - content-length: ['356'] - content-type: [application/json] - status: {code: 200, message: OK} -version: 1 diff --git a/tests/py/fixtures/TestCardHolds.yml b/tests/py/fixtures/TestCardHolds.yml deleted file mode 100644 index fd8fcf73b3..0000000000 --- a/tests/py/fixtures/TestCardHolds.yml +++ /dev/null @@ -1,1023 +0,0 @@ -interactions: -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t/cards?limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA6VV30/bMBB+56+w/LAnaBOnJG0lNJUKMYHoxmBMYpoiN7apIbUr2ymtUP/32U7S - JAOmafNDpNwP3913351fDgCAGVZEwzH4YX8AePFfK865eHLiWuAsC23kkiorhdNv8WJ6/RwSkxeP - +vI8pPruNkcGVv67w/oixsUDVSvFhXGOwyxhwQBFUXyM2XCYRTSKMxagZBDTDMcDRjIWxYRkiIYs - Gllzmo1YxBgJjjGKE7i/OFuvU0V1kbt7RZHne40olvMyzU3rhPY03nit05XUBufpEpts4XITstHT - zYorbLgU6VIK4/RhsI+wpAZ3wVH0wdp6aKRghXY/tbnDjpttauSzt2grMCG2CJ0ipziVG4BeQ8iJ - v3caP6J8FkzPChY9myS5QPPr74lqIYINfZBq66ylWVgI9gmb7Yo6caYo4aYLYl1/B8M5Fk+pwEvv - dfHl6vPX88kMTD9Nbs7A6WR2eQhmvUmvi6c2ilLT4LmlujGYKyx8HXdc40ZcrIjNmqTYswMF4eAo - DI5QchuMxsFwjJLe8DgeReF9K1QJmbVvk9MCbCXtGkoWU4fsG+LQxQtRBK4wF+DGp95ujKWG8cW/ - 2c+KOpkk3mYUoDBoe2eyEEZt08rAxX81GRkWKaFz244xMKqgDX9L2Dv9aPFxS7GbQRSghpB2GH4r - E3KdrqnijFMHeyeAI/9+dGBZO6iYCGybQFkecNkDIoGQBniWtBrusq/YNAYM57rJf6Eoc6j0/W7p - /wVxFf0jCeJeEIzi0eC+nI2dhfKnQwt25hDmWHsW9etNZWO/s6fK1D7mfMnNSRh8kIxpak7qHkJB - N921ApuiqjX475f7qDbReqHAMrqVVA2FK0XXXBZuATcsgEbadeX8SqZAxtX/F2xh9Mv6t41fvgs9 - wvWqMHaOm3a++K72ONn199oqoVLTfidaraj8au2uGpcqkHNNFzL3b1HNnFaolr4TzA/QOz6VzlV4 - sPsF+3TExu0GAAA= - headers: - content-encoding: [gzip] - content-length: ['752'] - 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/CC6j2lN0CEuf3wt77J2bQW7r/card_holds - response: - body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": - \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"order\": - null,\n \"card\": \"CC6j2lN0CEuf3wt77J2bQW7r\",\n \"debit\": - null\n },\n \"updated_at\": \"2014-10-27T09:09:38.511070Z\",\n \"created_at\": - \"2014-10-27T09:09:38.151048Z\",\n \"transaction_number\": \"HLGE4-0R2-DRR5\",\n - \ \"expires_at\": \"2014-11-03T09:09:38.421488Z\",\n \"failure_reason\": - null,\n \"currency\": \"USD\",\n \"amount\": 2091,\n \"meta\": - {\n \"state\": \"new\",\n \"participant_id\": \"2\"\n },\n - \ \"href\": \"/card_holds/HL7Cb6hHcmSjcldfKXgLzQ4w\",\n \"failure_reason_code\": - null,\n \"voided_at\": null,\n \"id\": \"HL7Cb6hHcmSjcldfKXgLzQ4w\"\n - \ }\n ],\n \"links\": {\n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\",\n - \ \"card_holds.order\": \"/orders/{card_holds.order}\",\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: ['1021'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: '{"amount": 1000, "meta": {"exchange_id": 1, "participant_id": 2}, "description": - "janet"}' - headers: {} - method: POST - uri: https://api.balancedpayments.com:443/card_holds/HL7Cb6hHcmSjcldfKXgLzQ4w/debits - response: - body: {string: !!python/unicode "{\n \"debits\": [\n {\n \"status\": - \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"customer\": - \"CU6hCQw1dtlujsKG1esVTl2t\",\n \"source\": \"CC6j2lN0CEuf3wt77J2bQW7r\",\n - \ \"card_hold\": \"HL7Cb6hHcmSjcldfKXgLzQ4w\",\n \"order\": null,\n - \ \"dispute\": null\n },\n \"updated_at\": \"2014-10-27T09:09:40.203235Z\",\n - \ \"created_at\": \"2014-10-27T09:09:39.707666Z\",\n \"transaction_number\": - \"WO7D-8LS-7D25\",\n \"failure_reason\": null,\n \"currency\": \"USD\",\n - \ \"amount\": 1000,\n \"failure_reason_code\": null,\n \"meta\": - {\n \"exchange_id\": \"1\",\n \"participant_id\": \"2\"\n },\n - \ \"href\": \"/debits/WD7DVt76FX6gMgtFuGj6QsOk\",\n \"appears_on_statement_as\": - \"BAL*example.com\",\n \"id\": \"WD7DVt76FX6gMgtFuGj6QsOk\"\n }\n - \ ],\n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\",\n - \ \"debits.order\": \"/orders/{debits.order}\",\n \"debits.dispute\": - \"/disputes/{debits.dispute}\",\n \"debits.source\": \"/resources/{debits.source}\",\n - \ \"debits.events\": \"/debits/{debits.id}/events\",\n \"debits.refunds\": - \"/debits/{debits.id}/refunds\",\n \"debits.card_hold\": \"/holds/{debits.card_hold}\"\n - \ }\n}"} - headers: - content-length: ['1169'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: '{"status": "succeeded", "description": "janet", "amount": 2091, "created_at": - "2014-10-27T09:09:38.151048Z", "card_href": "/cards/CC6j2lN0CEuf3wt77J2bQW7r", - "updated_at": "2014-10-27T09:09:38.511070Z", "expires_at": "2014-11-03T09:09:38.421488Z", - "failure_reason": null, "currency": "USD", "transaction_number": "HLGE4-0R2-DRR5", - "meta": {"state": "captured", "participant_id": "2"}, "debit": null, "failure_reason_code": - null, "voided_at": null, "order": null, "id": "HL7Cb6hHcmSjcldfKXgLzQ4w"}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/card_holds/HL7Cb6hHcmSjcldfKXgLzQ4w - response: - body: - string: !!binary | - H4sIAAAAAAAAA4VTXU/bMBR951dEfl4aJw1Jy2sLVKzb1LIBYkKRa7utS+pE/oBtVf77bDfNh9hA - iqLo3nvuOffcm8OZ5wGMBMm2RU4kuPB+mojnHdzb5KRCSts4kBpjSgkl4NMpSajEgpWKFdxW7BCn - qs3mjD9b5KmX6VYIQoUJcZ3npy61ANtgMkl2Uf4VTi71eviq0vQmWi3uU9H0NLWErpiyxffTdHqn - 0uTqIdl82agrfb1LFvLbM6jVVY1MXRKkKMmQw0UwjP0Q+lH6HY4vzBPDwSgOo/HosdWOBX0PMhwN - wvMQxl2IEohLhK0ZGdf7lRsUzObXl7EPl5E/XS7PWwL6q2SCyp6m0IfDWpMhiKMwHnUJ1ojlWtDM - SJPO8K6LAGshKMe/LemP22nLhPaF5nbyCI7DxpM9VcjEOruxm6YWjVGpDE+7Z+N6iYRimJWIq4wR - Z+Nbn7eCrm0qaA8qmM3TySrZzvD+dodzsv78sJn/WcSvrb7+WBkuiFXRm+2lYObujl71Ekcp/+Vw - l1CZ95OdG/QPsnP2A/pCuXJX3tV+aOcYMFIFddXRwy78dNYgcF8y6CJdqKrn7aJs94ayj7Gpf0Hc - 8X+os656q7P5d4JjSU+nC1V2q9VZ9RexHnKmGAQAAA== - headers: - content-encoding: [gzip] - content-length: ['487'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t/cards?limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA6VV30/bMBB+56+w/LAnaBOnJG0lNJUKMYHoxmBMYpoiN7apIbUr2ymtUP/32U7S - JAOmafNDpNwP3913351fDgCAGVZEwzH4YX8AePFfK865eHLiWuAsC23kkiorhdNv8WJ6/RwSkxeP - +vI8pPruNkcGVv67w/oixsUDVSvFhXGOwyxhwQBFUXyM2XCYRTSKMxagZBDTDMcDRjIWxYRkiIYs - Gllzmo1YxBgJjjGKE7i/OFuvU0V1kbt7RZHne40olvMyzU3rhPY03nit05XUBufpEpts4XITstHT - zYorbLgU6VIK4/RhsI+wpAZ3wVH0wdp6aKRghXY/tbnDjpttauSzt2grMCG2CJ0ipziVG4BeQ8iJ - v3caP6J8FkzPChY9myS5QPPr74lqIYINfZBq66ylWVgI9gmb7Yo6caYo4aYLYl1/B8M5Fk+pwEvv - dfHl6vPX88kMTD9Nbs7A6WR2eQhmvUmvi6c2ilLT4LmlujGYKyx8HXdc40ZcrIjNmqTYswMF4eAo - DI5QchuMxsFwjJLe8DgeReF9K1QJmbVvk9MCbCXtGkoWU4fsG+LQxQtRBK4wF+DGp95ujKWG8cW/ - 2c+KOpkk3mYUoDBoe2eyEEZt08rAxX81GRkWKaFz244xMKqgDX9L2Dv9aPFxS7GbQRSghpB2GH4r - E3KdrqnijFMHeyeAI/9+dGBZO6iYCGybQFkecNkDIoGQBniWtBrusq/YNAYM57rJf6Eoc6j0/W7p - /wVxFf0jCeJeEIzi0eC+nI2dhfKnQwt25hDmWHsW9etNZWO/s6fK1D7mfMnNSRh8kIxpak7qHkJB - N921ApuiqjX475f7qDbReqHAMrqVVA2FK0XXXBZuATcsgEbadeX8SqZAxtX/F2xh9Mv6t41fvgs9 - wvWqMHaOm3a++K72ONn199oqoVLTfidaraj8au2uGpcqkHNNFzL3b1HNnFaolr4TzA/QOz6VzlV4 - sPsF+3TExu0GAAA= - headers: - content-encoding: [gzip] - content-length: ['752'] - 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/CC6j2lN0CEuf3wt77J2bQW7r/card_holds - response: - body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": - \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"order\": - null,\n \"card\": \"CC6j2lN0CEuf3wt77J2bQW7r\",\n \"debit\": - null\n },\n \"updated_at\": \"2014-10-27T09:09:42.357840Z\",\n \"created_at\": - \"2014-10-27T09:09:42.109836Z\",\n \"transaction_number\": \"HLWTH-L93-0H60\",\n - \ \"expires_at\": \"2014-11-03T09:09:42.265839Z\",\n \"failure_reason\": - null,\n \"currency\": \"USD\",\n \"amount\": 2091,\n \"meta\": - {\n \"state\": \"new\",\n \"participant_id\": \"2\"\n },\n - \ \"href\": \"/card_holds/HL7GD5jr6XtjmRtiW0mc88HS\",\n \"failure_reason_code\": - null,\n \"voided_at\": null,\n \"id\": \"HL7GD5jr6XtjmRtiW0mc88HS\"\n - \ }\n ],\n \"links\": {\n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\",\n - \ \"card_holds.order\": \"/orders/{card_holds.order}\",\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: ['1021'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: '{"amount": 2091, "meta": {"exchange_id": 2, "participant_id": 2}, "description": - "janet"}' - headers: {} - method: POST - uri: https://api.balancedpayments.com:443/card_holds/HL7GD5jr6XtjmRtiW0mc88HS/debits - response: - body: {string: !!python/unicode "{\n \"debits\": [\n {\n \"status\": - \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"customer\": - \"CU6hCQw1dtlujsKG1esVTl2t\",\n \"source\": \"CC6j2lN0CEuf3wt77J2bQW7r\",\n - \ \"card_hold\": \"HL7GD5jr6XtjmRtiW0mc88HS\",\n \"order\": null,\n - \ \"dispute\": null\n },\n \"updated_at\": \"2014-10-27T09:09:43.517331Z\",\n - \ \"created_at\": \"2014-10-27T09:09:43.010148Z\",\n \"transaction_number\": - \"W08M-3P1-0Q1X\",\n \"failure_reason\": null,\n \"currency\": \"USD\",\n - \ \"amount\": 2091,\n \"failure_reason_code\": null,\n \"meta\": - {\n \"exchange_id\": \"2\",\n \"participant_id\": \"2\"\n },\n - \ \"href\": \"/debits/WD7HDKLHv8V3DHeMhaSxNKVO\",\n \"appears_on_statement_as\": - \"BAL*example.com\",\n \"id\": \"WD7HDKLHv8V3DHeMhaSxNKVO\"\n }\n - \ ],\n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\",\n - \ \"debits.order\": \"/orders/{debits.order}\",\n \"debits.dispute\": - \"/disputes/{debits.dispute}\",\n \"debits.source\": \"/resources/{debits.source}\",\n - \ \"debits.events\": \"/debits/{debits.id}/events\",\n \"debits.refunds\": - \"/debits/{debits.id}/refunds\",\n \"debits.card_hold\": \"/holds/{debits.card_hold}\"\n - \ }\n}"} - headers: - content-length: ['1169'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: '{"status": "succeeded", "description": "janet", "amount": 2091, "created_at": - "2014-10-27T09:09:42.109836Z", "card_href": "/cards/CC6j2lN0CEuf3wt77J2bQW7r", - "updated_at": "2014-10-27T09:09:42.357840Z", "expires_at": "2014-11-03T09:09:42.265839Z", - "failure_reason": null, "currency": "USD", "transaction_number": "HLWTH-L93-0H60", - "meta": {"state": "captured", "participant_id": "2"}, "debit": null, "failure_reason_code": - null, "voided_at": null, "order": null, "id": "HL7GD5jr6XtjmRtiW0mc88HS"}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/card_holds/HL7GD5jr6XtjmRtiW0mc88HS - response: - body: - string: !!binary | - H4sIAAAAAAAAA4VT246bMBB9369APBcwkOWyr6Eq6qZbtdluqlYVcmxHcQoGGZPuKuLfaztcjLYX - CSE0M2fmzJnD5caybAQ5Lo51iVv7zvouI5Z10W+ZawUUnYrbbYcQIZhg+82YxKRFnDaC1kxVnCAj - Ys6WlP1UyLGX7FZzTLgMsa4sxy4DAdVgvY5OQfkA1m+7Q/hLxPH7YP9pF/Opp6zFZE+FKt5lcZ7d - b/Jz8hRmOflwhNvnh/unj/bArp9odg2GguACalwA/JXjAyeIH0F6J5/VyvWjOIlX32buiJN/QgLX - B2kSRgZEcMhaiJQYBeuqvV7Uzje7x9zZpKED8gjMA8hzQzlpF5x8B4Qjp8ANotskTI0BB0jLjpNC - Umu14KaKNuo4Jwy9qKFfttk8CVZ1x9TmAUj9SZOKCChjxm3UpYlCI9gIOWe+s1S9gVxQRBvIREGx - lvG1zkdODirlzYby8k38Lrs98eirOFWfBd2BCiVJvp35LdcqUI0Vi8Vu55pK3121WiSuVP46Qzuh - l+8fam97aUjD9i45Eya0y03ul3kPl+LeG6quGprw0da2p79az0TqUD/sa6JU92nkEqNSf4Jo8/+X - 51D1muf073jXkgVPHerVVfub/jdIfKjtGAQAAA== - headers: - content-encoding: [gzip] - content-length: ['484'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t/cards?limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA6VV30/bMBB+56+w/LAnaBOnJG0lNJUKMYHoxmBMYpoiN7apIbUr2ymtUP/32U7S - JAOmafNDpNwP3913351fDgCAGVZEwzH4YX8AePFfK865eHLiWuAsC23kkiorhdNv8WJ6/RwSkxeP - +vI8pPruNkcGVv67w/oixsUDVSvFhXGOwyxhwQBFUXyM2XCYRTSKMxagZBDTDMcDRjIWxYRkiIYs - Gllzmo1YxBgJjjGKE7i/OFuvU0V1kbt7RZHne40olvMyzU3rhPY03nit05XUBufpEpts4XITstHT - zYorbLgU6VIK4/RhsI+wpAZ3wVH0wdp6aKRghXY/tbnDjpttauSzt2grMCG2CJ0ipziVG4BeQ8iJ - v3caP6J8FkzPChY9myS5QPPr74lqIYINfZBq66ylWVgI9gmb7Yo6caYo4aYLYl1/B8M5Fk+pwEvv - dfHl6vPX88kMTD9Nbs7A6WR2eQhmvUmvi6c2ilLT4LmlujGYKyx8HXdc40ZcrIjNmqTYswMF4eAo - DI5QchuMxsFwjJLe8DgeReF9K1QJmbVvk9MCbCXtGkoWU4fsG+LQxQtRBK4wF+DGp95ujKWG8cW/ - 2c+KOpkk3mYUoDBoe2eyEEZt08rAxX81GRkWKaFz244xMKqgDX9L2Dv9aPFxS7GbQRSghpB2GH4r - E3KdrqnijFMHeyeAI/9+dGBZO6iYCGybQFkecNkDIoGQBniWtBrusq/YNAYM57rJf6Eoc6j0/W7p - /wVxFf0jCeJeEIzi0eC+nI2dhfKnQwt25hDmWHsW9etNZWO/s6fK1D7mfMnNSRh8kIxpak7qHkJB - N921ApuiqjX475f7qDbReqHAMrqVVA2FK0XXXBZuATcsgEbadeX8SqZAxtX/F2xh9Mv6t41fvgs9 - wvWqMHaOm3a++K72ONn199oqoVLTfidaraj8au2uGpcqkHNNFzL3b1HNnFaolr4TzA/QOz6VzlV4 - sPsF+3TExu0GAAA= - headers: - content-encoding: [gzip] - content-length: ['752'] - 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/CC6j2lN0CEuf3wt77J2bQW7r/card_holds - response: - body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": - \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"order\": - null,\n \"card\": \"CC6j2lN0CEuf3wt77J2bQW7r\",\n \"debit\": - null\n },\n \"updated_at\": \"2014-10-27T09:09:46.147690Z\",\n \"created_at\": - \"2014-10-27T09:09:45.862273Z\",\n \"transaction_number\": \"HLGYG-J54-34F8\",\n - \ \"expires_at\": \"2014-11-03T09:09:46.038892Z\",\n \"failure_reason\": - null,\n \"currency\": \"USD\",\n \"amount\": 2091,\n \"meta\": - {\n \"state\": \"new\",\n \"participant_id\": \"2\"\n },\n - \ \"href\": \"/card_holds/HL7KR0DeDwvdPoZBJW6OlwNL\",\n \"failure_reason_code\": - null,\n \"voided_at\": null,\n \"id\": \"HL7KR0DeDwvdPoZBJW6OlwNL\"\n - \ }\n ],\n \"links\": {\n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\",\n - \ \"card_holds.order\": \"/orders/{card_holds.order}\",\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: ['1021'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: '{"amount": 1576, "meta": {"exchange_id": 3, "participant_id": 2}, "description": - "janet"}' - headers: {} - method: POST - uri: https://api.balancedpayments.com:443/card_holds/HL7KR0DeDwvdPoZBJW6OlwNL/debits - response: - body: {string: !!python/unicode "{\n \"debits\": [\n {\n \"status\": - \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"customer\": - \"CU6hCQw1dtlujsKG1esVTl2t\",\n \"source\": \"CC6j2lN0CEuf3wt77J2bQW7r\",\n - \ \"card_hold\": \"HL7KR0DeDwvdPoZBJW6OlwNL\",\n \"order\": null,\n - \ \"dispute\": null\n },\n \"updated_at\": \"2014-10-27T09:09:47.322471Z\",\n - \ \"created_at\": \"2014-10-27T09:09:46.817546Z\",\n \"transaction_number\": - \"W4CS-5OV-SYSP\",\n \"failure_reason\": null,\n \"currency\": \"USD\",\n - \ \"amount\": 1576,\n \"failure_reason_code\": null,\n \"meta\": - {\n \"exchange_id\": \"3\",\n \"participant_id\": \"2\"\n },\n - \ \"href\": \"/debits/WD7LVbqwTPJ2SPJcz89zgNji\",\n \"appears_on_statement_as\": - \"BAL*example.com\",\n \"id\": \"WD7LVbqwTPJ2SPJcz89zgNji\"\n }\n - \ ],\n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\",\n - \ \"debits.order\": \"/orders/{debits.order}\",\n \"debits.dispute\": - \"/disputes/{debits.dispute}\",\n \"debits.source\": \"/resources/{debits.source}\",\n - \ \"debits.events\": \"/debits/{debits.id}/events\",\n \"debits.refunds\": - \"/debits/{debits.id}/refunds\",\n \"debits.card_hold\": \"/holds/{debits.card_hold}\"\n - \ }\n}"} - headers: - content-length: ['1169'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: '{"status": "succeeded", "description": "janet", "amount": 2091, "created_at": - "2014-10-27T09:09:45.862273Z", "card_href": "/cards/CC6j2lN0CEuf3wt77J2bQW7r", - "updated_at": "2014-10-27T09:09:46.147690Z", "expires_at": "2014-11-03T09:09:46.038892Z", - "failure_reason": null, "currency": "USD", "transaction_number": "HLGYG-J54-34F8", - "meta": {"state": "captured", "participant_id": "2"}, "debit": null, "failure_reason_code": - null, "voided_at": null, "order": null, "id": "HL7KR0DeDwvdPoZBJW6OlwNL"}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/card_holds/HL7KR0DeDwvdPoZBJW6OlwNL - response: - body: - string: !!binary | - H4sIAAAAAAAAA4VT246bMBB9369APBdwgASyj03aXdEozXa3jbpVhRx70nVKDDUmaTfi32s7hIu2 - FwkhNDNn5syZw+nKsmyCBU2f8oyW9rX1RUUs62TeKldKLCsdt8uKEAAK1H51SVIoiWCFZDnXFTvM - QXbZjPHvGnnppbrlgoJQIV5l2aVLQ0A3mM0mOz9botmbahscZRQl/uZuHYm2p6qlsGFSF6/n0eLT - 5sfxYZX496uEPMfT52/LHbMbdnVLsyoolkBTbHA+GoXOCDl+9ICm1+oJYxehOB6Hjx13IuCfkLEb - T3w/CnoQKTAvMdFipLzab8yi9u3i5vONk4xDJwjfxt0A+FkwAeWA08hBwYXTxEVBHE/93oAtZlkl - IFXUSiN4X0WbVEIAJ7/00I/3824S3ucV15v7aDpqNdmDxCrWu42+NGg0wYVUc7o7K9ULLCQjrMBc - powaGV/q/CRgq1NeZyjvdhG9+4DmMD8e6Cp/fJ2sJ++z43LR8RuulZKcahaD3Q45U747azVInKn8 - dYZxQq3eX/Xe9tCQPdu7cAAujcv73E/dHi6jtddUnTXswy+2tj3zVXp9pAnVzb59lO7ejhxidOpP - EGP+//Jsql7ybP8d71wy4GlCtb5qfVX/BhPHF+YYBAAA - 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/CU6hCQw1dtlujsKG1esVTl2t/cards?limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA6VV30/bMBB+56+w/LAnaBOnJG0lNJUKMYHoxmBMYpoiN7apIbUr2ymtUP/32U7S - JAOmafNDpNwP3913351fDgCAGVZEwzH4YX8AePFfK865eHLiWuAsC23kkiorhdNv8WJ6/RwSkxeP - +vI8pPruNkcGVv67w/oixsUDVSvFhXGOwyxhwQBFUXyM2XCYRTSKMxagZBDTDMcDRjIWxYRkiIYs - Gllzmo1YxBgJjjGKE7i/OFuvU0V1kbt7RZHne40olvMyzU3rhPY03nit05XUBufpEpts4XITstHT - zYorbLgU6VIK4/RhsI+wpAZ3wVH0wdp6aKRghXY/tbnDjpttauSzt2grMCG2CJ0ipziVG4BeQ8iJ - v3caP6J8FkzPChY9myS5QPPr74lqIYINfZBq66ylWVgI9gmb7Yo6caYo4aYLYl1/B8M5Fk+pwEvv - dfHl6vPX88kMTD9Nbs7A6WR2eQhmvUmvi6c2ilLT4LmlujGYKyx8HXdc40ZcrIjNmqTYswMF4eAo - DI5QchuMxsFwjJLe8DgeReF9K1QJmbVvk9MCbCXtGkoWU4fsG+LQxQtRBK4wF+DGp95ujKWG8cW/ - 2c+KOpkk3mYUoDBoe2eyEEZt08rAxX81GRkWKaFz244xMKqgDX9L2Dv9aPFxS7GbQRSghpB2GH4r - E3KdrqnijFMHeyeAI/9+dGBZO6iYCGybQFkecNkDIoGQBniWtBrusq/YNAYM57rJf6Eoc6j0/W7p - /wVxFf0jCeJeEIzi0eC+nI2dhfKnQwt25hDmWHsW9etNZWO/s6fK1D7mfMnNSRh8kIxpak7qHkJB - N921ApuiqjX475f7qDbReqHAMrqVVA2FK0XXXBZuATcsgEbadeX8SqZAxtX/F2xh9Mv6t41fvgs9 - wvWqMHaOm3a++K72ONn199oqoVLTfidaraj8au2uGpcqkHNNFzL3b1HNnFaolr4TzA/QOz6VzlV4 - sPsF+3TExu0GAAA= - headers: - content-encoding: [gzip] - content-length: ['752'] - 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/CC6j2lN0CEuf3wt77J2bQW7r/card_holds - response: - body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": - \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"order\": - null,\n \"card\": \"CC6j2lN0CEuf3wt77J2bQW7r\",\n \"debit\": - null\n },\n \"updated_at\": \"2014-10-27T09:09:50.089005Z\",\n \"created_at\": - \"2014-10-27T09:09:49.849099Z\",\n \"transaction_number\": \"HLBYA-BC6-FFG3\",\n - \ \"expires_at\": \"2014-11-03T09:09:50.015988Z\",\n \"failure_reason\": - null,\n \"currency\": \"USD\",\n \"amount\": 2091,\n \"meta\": - {\n \"state\": \"new\",\n \"participant_id\": \"2\"\n },\n - \ \"href\": \"/card_holds/HL2gNFWxA4VwcxwHllukaRy\",\n \"failure_reason_code\": - null,\n \"voided_at\": null,\n \"id\": \"HL2gNFWxA4VwcxwHllukaRy\"\n - \ }\n ],\n \"links\": {\n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\",\n - \ \"card_holds.order\": \"/orders/{card_holds.order}\",\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: ['1019'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: '{"amount": 2092, "meta": {"exchange_id": 4, "participant_id": 2}, "description": - "janet"}' - headers: {} - method: POST - uri: https://api.balancedpayments.com:443/card_holds/HL2gNFWxA4VwcxwHllukaRy/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\": \"OHM01b1b4005db911e4910006429171ffad\",\n - \ \"description\": \"Invalid field [amount] - \\\"2092\\\" must be <= - 2091 Your request id is OHM01b1b4005db911e4910006429171ffad.\"\n }\n ]\n}"} - headers: - content-length: ['444'] - content-type: [application/json] - status: {code: 400, message: BAD REQUEST} -- request: - body: '{"status": "succeeded", "transaction_number": "HLBYA-BC6-FFG3", "description": - "janet", "amount": 2091, "created_at": "2014-10-27T09:09:49.849099Z", "card_href": - "/cards/CC6j2lN0CEuf3wt77J2bQW7r", "updated_at": "2014-10-27T09:09:50.089005Z", - "expires_at": "2014-11-03T09:09:50.015988Z", "failure_reason": null, "currency": - "USD", "is_void": true, "meta": {"state": "cancelled", "participant_id": "2"}, - "debit": null, "failure_reason_code": null, "voided_at": null, "order": null, - "id": "HL2gNFWxA4VwcxwHllukaRy"}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/card_holds/HL2gNFWxA4VwcxwHllukaRy - response: - body: - string: !!binary | - H4sIAAAAAAAAA4VT227bMAx971cYep6vcZO4b222LBiKAru16IbBUCRmVavIhiw1KQL/+yTFjmV0 - WwHDMEiew8ND+nAWBIhgScuHitMGXQQ/TSQIDu5tco3CSts4ajQhABQoetcnKTREslqxStiKRyxA - DVnOxJNF9lyGrZIUpAkJzXnP0gmwBIvF9DHjN8nig95Mdmo2+5StP9/N5InT1FJYM9VRdDrakyBd - U6yAlthWoCxJ8zBNwmz2LSkuzHOeRpMiy+fTH4NKIuF/kLyI5nmRFIUHURKLBhM7din0du1GQqvr - q/vL8GoxDZfLj5OhAexrJqEZaUrDZNJrSqIkPS/mc6/BBjOuJZRGWuOs9f1CREsJgrzYpt+/vh86 - 4W2lhZ08S4r05MkWFDYxbwt2p2DRBAsCnHsrNQbXWCpGWI2FKhl1PqJXRj9I2NhUPNxOvLrOft8s - 7/aX+e2O7HcrzvUT/vIy6BuPVZKKWhWj2Z4rZi7srf35Xh0l/qu3E96a9y/rBxqfpHf4ETyDUO7O - /ZEOw3gRo23cVR299eH9YaPYfTWxj3ShtvPBR1n2U8sxxqb+BnHn/6bOruq1zv7vQfGxZKTThVq7 - 7Pas/QNgSJxCGgQAAA== - headers: - content-encoding: [gzip] - content-length: ['469'] - content-type: [application/json] - status: {code: 200, message: OK} -- 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-10-27T09:09:52.550169Z\",\n \"created_at\": - \"2014-10-27T09:09:52.412159Z\",\n \"dob_month\": null,\n \"id\": - \"CU59sWmto39nAtjn5i3qsBW\",\n \"phone\": null,\n \"href\": \"/customers/CU59sWmto39nAtjn5i3qsBW\",\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: ['1617'] - 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\": - \"CC6ruibex7mrUHYaWlQ5OqV\",\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-10-27T09:09:53.559625Z\",\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/CC6ruibex7mrUHYaWlQ5OqV\",\n - \ \"created_at\": \"2014-10-27T09:09:53.559623Z\"\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: ['1267'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: '{"links": {"customer": "/customers/CU59sWmto39nAtjn5i3qsBW"}, "cvv_result": - null, "number": "xxxxxxxxxxxx4448", "avs_postal_match": null, "expiration_month": - 12, "meta": {}, "id": "CC6ruibex7mrUHYaWlQ5OqV", "category": "other", "type": - "credit", "cvv_match": null, "bank_name": "CREDIT AGRICOLE BANK POLSKA, S.A.", - "avs_street_match": null, "brand": "Visa", "updated_at": "2014-10-27T09:09:53.559625Z", - "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-10-27T09:09:53.559623Z", "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/CC6ruibex7mrUHYaWlQ5OqV - response: - body: - string: !!binary | - H4sIAAAAAAAAA4VUbW+bMBD+3l+B+NwS3hzifEuzaqtaLetrtE4TMtg0XsFQ20SJIv77bF4SQtMN - ISTu/Nw9d/f4dmeGYcaIY2FOjV/qxzB29VeZU8retLkz6JOlkHlGuLKa8ycAxTKTuQfZTP5hgHrv - 4nJptvDqvIuTUPZKeMEpkxoHCXIjzwki4DkTLwEIehFyPQSgj+xoguzEVXaCYBx73oTYcOwHAMQY - 4iRwIgjNfeB4vQ45EWWq47IyTfceVmZRw3LTe3zfnxzQaC3CIhcSpWGGZLwaxiCbgnIkac7CLGdS - +x13nyEjEuneHMqkuO7KfMxLGpFNkPGnbz/RMr0Di/fnHmkkyWvOt/pwLleK5T6m3BZEm2NOMJXH - dZ6kGCH2FjKU1aj5/dWX60dj9vX+er64vTIuZ99vjB+L24eb2bnxYM2s49KF5ITI06VHHLG6mmcq - 0AFWFliRxyGq5+jajn/h2Bdu8GjDqXoBsJyxHYDgpZcJYzWhoYqo1OX3J9bIjbinzc5Hs5qb1GUP - grQDjXN8whnnJZN8G/a8H8QaIxZiEqn2Tw3JS3KQVNPmI5n1JLIlSN8K13btvj4HDE0qwjXhNKFE - 9/cogdbjaTVrTq0mpkaCUnFgteIkUYHMUX2HR/9XHyf/HKFnAQDHrvfSXONK9ee3rmewDJqVYemk - 4SpP6+3RcdjVVCyKq5pU62+a0uF6a2TU7RQxapGdoWpl1IIwFUUpySep9t6jRPUkP0M0PlVcdVb9 - BT6SMtwIBQAA - headers: - content-encoding: [gzip] - content-length: ['579'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU59sWmto39nAtjn5i3qsBW/cards?limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA6VUbW/aMBD+3l8R+cM+tZAXTAhSNVFWbVWrsfVV6zRFTuIUr4md2g4CVfz32U5C - As02aUMIiTvf3XP3PHevR5YFYsQTAabWd/XHsl7NrzJnhD5rc2PQL0shWY65soL5HQzEQy6ZF9CZ - /Ekh8V7E2QOow7fHTZ6U0CfMC06o1HEBRm7kOX4EPWfipRAFXoRcD8FghOxoguzUVXaMgjj2vAm2 - g/HIhzBOgiT1nSgIwC5xvFqFHIsy03lpmWU7Dy3zqEK57nxGo9GkjUYrERZMSJSFOZLx8jAHXheE - I0kYDXNGpfY77q5CjiXSs2nbJImZynzMSxLhtZ/zu0/f0EP2FS5e7jugkcRPjG/0YyaXCuUup9wU - WJtjjhMi9/vshRgh+hxSlJuo+fX5h4tba/bx+mK+uDq3zmafL60vi6uby9mxdTOYDfZbF5JjLPtb - jziippt7IlAbVhaJAp+EyPDo2s7oxLFPXP/WDqbqC+HAGds+9B87lZJEMXSoIiJ1+13GKrlht9/s - vDUr3qRu+yBJTWjMkh5nzEoq+SbseN+INUY0THCkxj+1JC9xK6lqzHsy60hkg5HeCtd27a4+DxAC - IsIV5iQlWM93r4DWY7+aNaZaE1MrRZloUS05TlUiMDQ7PPy7+jj+I4XeAMJg7HqP1Rpv1Xx+6H5A - o3czMJAhYTQwbA6CKt1/Dipg7zOSE3nq2O9YmgosT+1aIoDi9f72gral+tj8c25TVMF0akpAVVxZ - GkPB8YqwUuuzJRZIpo6CjquYBCnh/92umps5FQdXtbq9g4SIopRY42iofDWMDkiyHe68NZ7K073F - HR7quMa7bQZdB6mk4ZJl5t73lNKvav9eMbMSv4mpfbrDo+0v+nIAJVEGAAA= - headers: - content-encoding: [gzip] - content-length: ['671'] - 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/CC6ruibex7mrUHYaWlQ5OqV/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\": \"OHM053a0bae5db911e4910006429171ffad\",\n - \ \"description\": \"R758: Account Frozen. Your request id is OHM053a0bae5db911e4910006429171ffad.\"\n - \ }\n ]\n}"} - headers: - content-length: ['387'] - content-type: [application/json] - status: {code: 402, message: PAYMENT REQUIRED} -- 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-10-27T09:09:57.982477Z\",\n \"created_at\": - \"2014-10-27T09:09:57.850987Z\",\n \"dob_month\": null,\n \"id\": - \"CUbgGIzPYoMQ0WMLl17FrGw\",\n \"phone\": null,\n \"href\": \"/customers/CUbgGIzPYoMQ0WMLl17FrGw\",\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: ['1617'] - 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\": - \"CCdIjNl0nnQ6Kx8u73nYiCk\",\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-10-27T09:10:00.026547Z\",\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/CCdIjNl0nnQ6Kx8u73nYiCk\",\n \"created_at\": - \"2014-10-27T09:10:00.026545Z\"\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: ['1234'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: '{"links": {"customer": "/customers/CUbgGIzPYoMQ0WMLl17FrGw"}, "cvv_result": - null, "number": "xxxxxxxxxxxx4242", "avs_postal_match": null, "expiration_month": - 12, "meta": {}, "id": "CCdIjNl0nnQ6Kx8u73nYiCk", "category": "other", "type": - "credit", "cvv_match": null, "bank_name": "", "avs_street_match": null, "brand": - "Visa", "updated_at": "2014-10-27T09:10:00.026547Z", "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-10-27T09:10:00.026545Z", "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/CCdIjNl0nnQ6Kx8u73nYiCk - response: - body: - string: !!binary | - H4sIAAAAAAAAA4VUbW+bMBD+3l+B+Lwmxglxmq+RVlVbp1Xai9ppQsY+Ei9gkG2yZBH/fTYvgdBU - 5QOCOz93z909vtON5/mMKq79lffL/njeqX5bcyrkzpk7gztZapNnoKzVX3+PN/cP/74+549P6Ofj - 5zQgH9X9X7+FVx+6OImQG1CFEtI4XACYzXFIQ3JHA0YSTCiakQQtFjhehiGahQwoj5MkWFJkP4As - wyRGBDBNIGDMPwdm+32kQJepiyvLND17ZJnFDcvD4JnjOe7RdK+jIteGplFGDduOY8ChEIoakcso - y6Vx/gCfM2RgqOtNX6bgdVfW/OHPlxRJ+bT4dFiWZCafxXo3IE0NbHJ1dIdzs7UszzHNsQBnZgq4 - MJd1XqUYU7mLJM1q1GVl2igAc72yWFFZk/0hNO1hZcEtNx7RekwYBfPbAN1i8g3drQK0QmiywDMy - Iy+DTJzbAYxFIoyrbjiQRk2Ar5uD12Y7FuOqGgVp58VyfsXJ8lIadYwG3ldaZFRGHGLb3ZVnVAm9 - YpouXqhooIAjUCd6jDAaym/E0Bc62oMSiQDX34sETm7Xxeo4tSNfeQlNdc9qqyCxgfxpfUWn74tL - wTsjRHgRzsOX5pZWtj+/XT2ju95shIlLGm3ztF4OHYdTTWUieFWTav1NUzrcYEtMu5Whpy2yM1St - jFoQF7ooDbyR6uy9SFRP8i1E47PFVTfVfyghmgbnBAAA - headers: - content-encoding: [gzip] - content-length: ['546'] - 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\": - \"CCgw0n216u9Rq3oHLMQM1SJ\",\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-10-27T09:10:02.512461Z\",\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/CCgw0n216u9Rq3oHLMQM1SJ\",\n \"created_at\": - \"2014-10-27T09:10:02.512459Z\"\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: ['1234'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: '{"links": {"customer": "/customers/CUbgGIzPYoMQ0WMLl17FrGw"}, "cvv_result": - null, "number": "xxxxxxxxxxxx4242", "avs_postal_match": null, "expiration_month": - 12, "meta": {}, "id": "CCgw0n216u9Rq3oHLMQM1SJ", "category": "other", "type": - "credit", "cvv_match": null, "bank_name": "", "avs_street_match": null, "brand": - "Visa", "updated_at": "2014-10-27T09:10:02.512461Z", "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-10-27T09:10:02.512459Z", "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/CCgw0n216u9Rq3oHLMQM1SJ - response: - body: - string: !!binary | - H4sIAAAAAAAAA4VU227bMAx971cYfl4TSb7VeS2wbkMDrLtiLQpDluREqC15kpw2C/zvk3xJnDTd - DNiASR3ykDzi7sLzfIIV1f7Ce7A/nrfrvtZccvHkzKPBnWy0kRVT1upff89XNx//fP4ll3fg5/K2 - hMl7dfPsD/D23Rin4GLFVK24MA5Hg5DGMIAIYhbbNwkQvYoZLkCaojSGSU6DIiKExKBIgjikAcIM - 4oJExRVMwsjfByabTaaYbkoXVzRlufeIpsp7li+TJ0QhOqDxRme11AaXWYUNWZ/GYC81V9hwKbJK - CuP8EO0zVMxg15tDmZx2XblePQOBYNykX34H8sPt8m4Jv36akMaGraTausPSrC3LfUyzrZkzE8Uo - N8d1nqWYY/GUCVx1qOPKtFGMmfOV5QqLjuwPrvEB1tTUcqMZ7saEAAwvIbhEyTeQLiBYgGhm+xeA - 8H6SiVI7gFORcOOqmw6kVxND583wtdmOxbiqToIM8yKSnnES2QijttnE+0qLBIuMstx2d+EZ1bCD - YvouHqloooAtw070CARgKr8Thj7X2YYpXnDm+nuUwMntvFgdp2HkC6/ApT6wWitW2ED+vLui8/+L - S7F/jhDNIojCKL3vb2lr+/Po6jm56/1GmLmk2VqW3XIYOew6KjNO247U4O+bMuImW2I+rgw9H5Cj - oR1kNIAo13Vj2Bup9t6jRN0k30L0Pltce9H+BVHmb+3nBAAA - headers: - content-encoding: [gzip] - content-length: ['549'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CUbgGIzPYoMQ0WMLl17FrGw/cards?limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA+VWW2/aMBR+369AedjTCrZzMSBVe6i0rluZ1l3VTlPk+AJeg8Mch8Iq/vvsXCDQ - TEibpkobEiick3N8Lt/5ju+f9HoeJZrl3rj3xf7p9e7LXytOpbp14kbg3ixyk825tlLv7GMyPb/4 - 8fY6m1yBz5PLFOIX+vzOq803zxo/Qqop1wstlXF2kCMaoJCEeEQgxQJhAnwsQBShZBiGwA8pJywR - Ag4JsA8cD0ORAMwRERxS6m0d0+Uy1jwvUudXFWm61ahinlRRrlqfAAVoZ02WebzIckPSeE4MnR36 - 4KuF1MTITMXzTBmnh2h7wpwb4mqzS1Oysipn7OLbmxQodRW9Xg0L7KtreXbbCpoYPs302r2cmZmN - cuvTrBfcianmTJr9PDtDTIi6jRWZl1b7meVGc266M0s0UWWwn2ROdmbFgtnYWEzKNiEAgxMIThD+ - AEZjCMYA9CPkYx/ftE5izDbgECTSuOzaDanQxFG3GD4U27YYl9WBk7pfNGMdSpoVyuh13NI+wCIl - KmY8sdUd94wu+A4xVRX3UNRCwJoTB3oEEGjD7yBCT+bxkmspJHf13TvAwa0brC6muuXjniBpvotq - prmwjrxBOaKD4+DS/EgLAYrCILypprQG79+eeOYHLII+RJDwyH6xj9gw4kSA0QiNIogT5ouQUhoB - gf0oYD4iHBJBQzGEOAj3J6G7iI858dM7oBCMitG773728nJyNYHvX/0LEx/2LWP6IPivJ95/3Ik/ - Bq4jE4/6IURBOGom3jLiV8dgXrPASor0UpKXrD9oNrwlm+79XlHR81TOpTmF4GkmRM7NKajx7im+ - 2l/H3o7E6tvDb/suD7VhwrolXnW4lTSCheZLmRVuI+2o3DOZ3fKOvivu9oTUf5yurVtJnwfXpOoy - 1W9flFo1vS95fKvdNEWrxEzmi8JwF3zD+LWBZJvBVlsnUbuyDuNZlpYXuA4r91at37Mrl+AvbGqd - y/DJ5ifZusVuIgoAAA== - headers: - content-encoding: [gzip] - content-length: ['754'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: '{"meta": {"seq": 6}}' - 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-10-27T09:10:06.911018Z\",\n \"created_at\": - \"2014-10-27T09:10:06.746465Z\",\n \"dob_month\": null,\n \"id\": - \"CUlh6FgyTQZ9MOjzfyT3CeI\",\n \"phone\": null,\n \"href\": \"/customers/CUlh6FgyTQZ9MOjzfyT3CeI\",\n - \ \"merchant_status\": \"no-match\",\n \"meta\": {\n \"seq\": - \"6\"\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: ['1617'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CUlh6FgyTQZ9MOjzfyT3CeI/cards?limit=10&offset=0 - response: - body: {string: !!python/unicode "{\n \"cards\": [],\n \"meta\": {\n \"last\": - \"/customers/CUlh6FgyTQZ9MOjzfyT3CeI/cards?limit=10&offset=0\",\n \"next\": - null,\n \"href\": \"/customers/CUlh6FgyTQZ9MOjzfyT3CeI/cards?limit=10&offset=0\",\n - \ \"limit\": 10,\n \"offset\": 0,\n \"previous\": null,\n \"total\": - 0,\n \"first\": \"/customers/CUlh6FgyTQZ9MOjzfyT3CeI/cards?limit=10&offset=0\"\n - \ },\n \"links\": {}\n}"} - headers: - content-length: ['361'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t/cards?limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA6VV30/bMBB+56+w/LAnaBOnJG0lNJUKMYHoxmBMYpoiN7apIbUr2ymtUP/32U7S - JAOmafNDpNwP3913351fDgCAGVZEwzH4YX8AePFfK865eHLiWuAsC23kkiorhdNv8WJ6/RwSkxeP - +vI8pPruNkcGVv67w/oixsUDVSvFhXGOwyxhwQBFUXyM2XCYRTSKMxagZBDTDMcDRjIWxYRkiIYs - Gllzmo1YxBgJjjGKE7i/OFuvU0V1kbt7RZHne40olvMyzU3rhPY03nit05XUBufpEpts4XITstHT - zYorbLgU6VIK4/RhsI+wpAZ3wVH0wdp6aKRghXY/tbnDjpttauSzt2grMCG2CJ0ipziVG4BeQ8iJ - v3caP6J8FkzPChY9myS5QPPr74lqIYINfZBq66ylWVgI9gmb7Yo6caYo4aYLYl1/B8M5Fk+pwEvv - dfHl6vPX88kMTD9Nbs7A6WR2eQhmvUmvi6c2ilLT4LmlujGYKyx8HXdc40ZcrIjNmqTYswMF4eAo - DI5QchuMxsFwjJLe8DgeReF9K1QJmbVvk9MCbCXtGkoWU4fsG+LQxQtRBK4wF+DGp95ujKWG8cW/ - 2c+KOpkk3mYUoDBoe2eyEEZt08rAxX81GRkWKaFz244xMKqgDX9L2Dv9aPFxS7GbQRSghpB2GH4r - E3KdrqnijFMHeyeAI/9+dGBZO6iYCGybQFkecNkDIoGQBniWtBrusq/YNAYM57rJf6Eoc6j0/W7p - /wVxFf0jCeJeEIzi0eC+nI2dhfKnQwt25hDmWHsW9etNZWO/s6fK1D7mfMnNSRh8kIxpak7qHkJB - N921ApuiqjX475f7qDbReqHAMrqVVA2FK0XXXBZuATcsgEbadeX8SqZAxtX/F2xh9Mv6t41fvgs9 - wvWqMHaOm3a++K72ONn199oqoVLTfidaraj8au2uGpcqkHNNFzL3b1HNnFaolr4TzA/QOz6VzlV4 - sPsF+3TExu0GAAA= - headers: - content-encoding: [gzip] - content-length: ['752'] - 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/CC6j2lN0CEuf3wt77J2bQW7r/card_holds - response: - body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": - \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"order\": - null,\n \"card\": \"CC6j2lN0CEuf3wt77J2bQW7r\",\n \"debit\": - null\n },\n \"updated_at\": \"2014-10-27T09:10:09.065637Z\",\n \"created_at\": - \"2014-10-27T09:10:08.805659Z\",\n \"transaction_number\": \"HLOSG-7Y0-651F\",\n - \ \"expires_at\": \"2014-11-03T09:10:08.989527Z\",\n \"failure_reason\": - null,\n \"currency\": \"USD\",\n \"amount\": 1000,\n \"meta\": - {\n \"state\": \"new\",\n \"participant_id\": \"2\"\n },\n - \ \"href\": \"/card_holds/HLnACSLJfcJkysLRggEaere\",\n \"failure_reason_code\": - null,\n \"voided_at\": null,\n \"id\": \"HLnACSLJfcJkysLRggEaere\"\n - \ }\n ],\n \"links\": {\n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\",\n - \ \"card_holds.order\": \"/orders/{card_holds.order}\",\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: ['1019'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: '{"status": "succeeded", "transaction_number": "HLOSG-7Y0-651F", "description": - "janet", "amount": 1000, "created_at": "2014-10-27T09:10:08.805659Z", "card_href": - "/cards/CC6j2lN0CEuf3wt77J2bQW7r", "updated_at": "2014-10-27T09:10:09.065637Z", - "expires_at": "2014-11-03T09:10:08.989527Z", "failure_reason": null, "currency": - "USD", "is_void": true, "meta": {"state": "cancelled", "participant_id": "2"}, - "debit": null, "failure_reason_code": null, "voided_at": null, "order": null, - "id": "HLnACSLJfcJkysLRggEaere"}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/card_holds/HLnACSLJfcJkysLRggEaere - response: - body: - string: !!binary | - H4sIAAAAAAAAA4VTUW+bMBB+769Afh5gyBIgb1PWrYqiTVs2TWs1Ice+tG6JQcbuVkX899oOBKNu - 64uF7u777rvvjuNFECBKJCvv6oq1aBncmEgQHN1rcq0iSts4ajWlAAwYejMkGbRU8kbxWtiKeyJA - jdmKiweLHLgMWy0ZSBMSuqoGll6AJVitFvdp9QmvLvV+9ltl2TrdffmRyTOnqWWw46qn6HV0Z0G6 - YUQBK4mtQClO3oYJDtPsGy6WCV7iIlrMiyzH16NKKuG/kDzK8dygPIiSRLSE2rFLoQ87NxK62nze - fgyznzhczJMPYwP403AJ7URTEuLZoCmPiryYp5nXYE94pSWURlrrrPX9QlRLCYI+2abft+/HTuRQ - a2EnTzDGZ08OoIiJeVuwOwWLpkRQqCpvpcbghkjFKW+IUCVnzkf0wug7CXubisfbia824t1qu1nv - 6frhqd18vb29JCBh1Dcdq6Q1syomsz3W3FzYa/ubeV6dJP6rtxPemfeX9QNNT9I7/AgeQSh35/5I - x3G8iLMu7qtO3vrw4bBR7L7a2Ee6UNf74KMs+7nlFGNTf4O4839VZ1/1Uufw96D4VDLR6UKdXXZ3 - 0T0DoigYLhoEAAA= - headers: - content-encoding: [gzip] - content-length: ['467'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/credits?meta%5Bcontains%5D=exchange_id&limit=25&offset=0 - response: - body: {string: !!python/unicode "{\n \"credits\": [],\n \"meta\": {\n \"last\": - \"/credits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\",\n \"next\": - null,\n \"href\": \"/credits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\",\n - \ \"limit\": 25,\n \"offset\": 0,\n \"previous\": null,\n \"total\": - 0,\n \"first\": \"/credits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\"\n - \ },\n \"links\": {}\n}"} - headers: - content-length: ['360'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/debits?meta%5Bcontains%5D=exchange_id&limit=25&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA91WXU/bMBR951egSvAwrcVJmqQgoWk0g6ottCXQMqapcm23dcnXbIcyEP99jpOS - tIONaeEFqapsX99zfc+9x87D1vZ2xScCVg62H+RYzjzIhZxV9jCZUME/edSn4lA3d5NtO+YRCgMB - acB3TOeQ3KE5DGZkTPFuOJ1yIg5B5WOKE5C7BCeIPS9bmTMyLQNZnUgC6WYGnIaWKyBbiBi5pWHM - 1+OLUEBPLhnZrill/5mqzPQxAat4NLhJomUcptTVUMxF6BOmkl5N+N7DhvlxRVm2jimPYkFSqtJx - 7pQZN314GDOUujCSTnKfdL7pgiDD43noYRUoGRSOtrJtOoUMZ/moUe6hppu7ZcHjACfErNrpKXmK - H/dW5qweWfrklgTiRZ/M+sR86iQjfFNtlxZAVoQLKFQDVHiMECGY4IxmacSEI0YjQcMg2bGAARG5 - db2YShTFSjYvrXlzsNSw8OIF75xohA8vPD0HSKI/laPZtBa6dwaaX+KpsRS23dYng5HNnsIl6MVK - tLp25xw4xFne4n54fdQeWT1vedYtOqyqkItLnTJvnMSg+MgaVJnjCENB8BgqfetAq1c1UNXtC7B/ - IH91u2boet3WrnMqECN/dLFqDc0261bBRTAYcIgSbsdB7E/SdhnVm27V7A2r7le3n+NPIfViRsYy - DFe1KGYkWWeMBOhnctxL18ndoB/GQZKFZtpW2j0yv3WwMQpxIog1xLWrTpFSuMKSMEaR5ggyQRGN - YCDkDadIq/zG6sattjdy7O5w8mN50W/rbr+N7hv797OzBS2cPooIZHwsCUq6lPiy38dQ9erR5+4H - cgf9yCM1FPq5Txr+RWx1KnUVvRMJnDjmgllXYuGfCzoCPmo0Wu7bS8ComZptGP8iAaMGNCmlxt8l - ABqnVaOvVcFAuypPAjrY10qVgF6GBFpOp9u6bQwNp0VO59C9O+sMeyVJ4HnsdyeB5sSat5DvLpCH - p52rWfd+UF++vQRATQeGbpivfwWM/ZoNbMt6xSvQs51qo+tWbUc3y5OABkD25VfSK6CVIQFnKGzr - +Mqanc7EcXyysAa8d1OSBJ7HTiUg/79vPf4C7bRtm9oLAAA= - headers: - content-encoding: [gzip] - content-length: ['833'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: '{"status": "succeeded", "card_hold_href": "/holds/HL7KR0DeDwvdPoZBJW6OlwNL", - "source_href": "/resources/CC6j2lN0CEuf3wt77J2bQW7r", "transaction_number": - "W4CS-5OV-SYSP", "description": "janet", "created_at": "2014-10-27T09:09:46.817546Z", - "appears_on_statement_as": "BAL*example.com", "updated_at": "2014-10-27T09:09:47.322471Z", - "order": null, "currency": "USD", "amount": 1576, "meta": {"participant_id": - "2"}, "customer_href": "/customers/CU6hCQw1dtlujsKG1esVTl2t", "failure_reason_code": - null, "failure_reason": null, "id": "WD7LVbqwTPJ2SPJcz89zgNji", "dispute": null}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/debits/WD7LVbqwTPJ2SPJcz89zgNji - response: - body: - string: !!binary | - H4sIAAAAAAAAA3VT227aQBB9z1cgP0YFXwo24a2BqhVBhBQCSqrKWnaHstS37iW0Qf737tosa6h4 - sTw7c+Zy5szhptVyCKyp4M6g9V1Zrdah+qp3LpCQ+t3hEmMAAsT5YJwEOGa0EDTPdMQOZSCsN6HZ - L400uVQ2LLnIU2A6evgcbodPe5+IRO74wxcf+HKRBDaBrp5LhqGKHoa7IJl6w89y83EvomgcrJ9W - ETuV09kRI/E2T4gGfJ1ED9+8EYz2b2SWv96PV+Fjsp9OmoCckaqXTCaJGUpzQXkhhS6rHcdhy9PU - siBIAImR0HUCz++2fa8dRAvvbuB7Az/oBJHf7/dfLRWYwVWIQnXDTt+Pet2wAREMZRxhzW2cyXRd - k7bqDuft3uOyPX+Zz2z+DaKJZBCrMrzaRXMixTpjkOG/ut3n+cjCUJrLTE/h96LwNN95shjnxFBx - CklBIAVrbLZATFBMC5SJmFYLCJz/mNsy2GiXW6vNXY2iyXL9e7+YjYP5bIzf+3fvP6c72uiwKAAx - HisStBIhBZUfVXq8/zS5hT8oLRLo4Dy1mLr81dxVV6X6/tDjOOcqPd5BpylU1xjcPdSNn9zlsaqB - GUE5bvVnAZV5GW11phipNWcRx4dLjL0Il0FtWExtX0LgTZFWUWZ4N2NQUrpHb71aM4fak8zIVYxx - n4POzs/Vd9ggzJxmqVVR3pT/ALWTzjJ1BAAA - headers: - content-encoding: [gzip] - content-length: ['540'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: '{"status": "succeeded", "card_hold_href": "/holds/HL7GD5jr6XtjmRtiW0mc88HS", - "source_href": "/resources/CC6j2lN0CEuf3wt77J2bQW7r", "transaction_number": - "W08M-3P1-0Q1X", "description": "janet", "created_at": "2014-10-27T09:09:43.010148Z", - "appears_on_statement_as": "BAL*example.com", "updated_at": "2014-10-27T09:09:43.517331Z", - "order": null, "currency": "USD", "amount": 2091, "meta": {"participant_id": - "2"}, "customer_href": "/customers/CU6hCQw1dtlujsKG1esVTl2t", "failure_reason_code": - null, "failure_reason": null, "id": "WD7HDKLHv8V3DHeMhaSxNKVO", "dispute": null}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/debits/WD7HDKLHv8V3DHeMhaSxNKVO - response: - body: - string: !!binary | - H4sIAAAAAAAAA3VT227aQBB9z1dYfowKvpBih7cWqliFJKUkELWqrGV3EEt9016SVMj/3l2bZQ0R - L5ZnZ86ZmTMz+yvHcQmsqeDuyPmtLMfZN1/1zgUSUr+7XGIMQIC4n4yTAMeMVoKWhY7YoQKE9Wa0 - +KuRhkuxYclFmQPT0ePn4XY8fwuIyOSOT+8C4MunLLQEOnspGYYmejzchdmDP/4mN4M3EUXfw/V8 - FbFjOs2OGEm3ZUY0IJlFd5PPOzZ8Ebv8p6ArP8dxnCy6gJKRppZCZplpSmtBeSWFTqsdh2brY9ey - IkgASZHQeUI/uOkFfi+MnvzbUeCPgrAfR8Mojn5ZKTCDixCFuhn0/UDxxB2IYKjgCGtt00Lm61a0 - lR/f9wY/gp4/D14s/wbRTDJIVRrezKLbkVKdMSjwP13u82JiYSgvZaG7CP3b4NjfKVmKS2KkOIbk - IJCCdSZbISYophUqREqbAYTuB+W2DDba5bXb5q0mUTKZzpLXeDmYJHC/RYv3h+nysVNhVQFiPFUi - 6E2EHBQ/avbx65fZNbyjvMqgj8vcYtr0F7mbqmr1/aPbcU+39HAH/e6iesbg3r4t/OiuD1kNzCyU - 6zV/FtCY59F2z5Qi7c5ZxOHhHGMvwmPQGhbT2ucQeFWiNZIZ3U0blNTewduO1vSh5iQLchFj3Keg - k/Pz9B12BDOnWeutqK/q/4lfH6R1BAAA - headers: - content-encoding: [gzip] - content-length: ['537'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: '{"status": "succeeded", "card_hold_href": "/holds/HL7Cb6hHcmSjcldfKXgLzQ4w", - "source_href": "/resources/CC6j2lN0CEuf3wt77J2bQW7r", "transaction_number": - "WO7D-8LS-7D25", "description": "janet", "created_at": "2014-10-27T09:09:39.707666Z", - "appears_on_statement_as": "BAL*example.com", "updated_at": "2014-10-27T09:09:40.203235Z", - "order": null, "currency": "USD", "amount": 1000, "meta": {"participant_id": - "2"}, "customer_href": "/customers/CU6hCQw1dtlujsKG1esVTl2t", "failure_reason_code": - null, "failure_reason": null, "id": "WD7DVt76FX6gMgtFuGj6QsOk", "dispute": null}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/debits/WD7DVt76FX6gMgtFuGj6QsOk - response: - body: - string: !!binary | - H4sIAAAAAAAAA3VT227aQBB9z1cgP1YFXwBvwltrN4ka2giRhKhVZS27A5j4pr2Etsj/3l2bZQ0V - L5ZnZ85czpzZX/V6DoVlKrgz6f1UVq+3b77qnQsspH53uCQEgAJ1PhonBU5YWom0LHTEFhcgrDdL - izeNNLlUNiK5KHNgOjp6DjfRbOdTkcktf7jzgb88ZYFNoKuXkhFooqNwG2TfveiLXA13AqGvwXK2 - QOxYTmfHjCabMqMacD9F0TLc3JN8viUZXT28rqd/Z6NdF1Ay2vRSyCwzQ2kuUl5Joctqx2HY+ji1 - rCgWQBMsdJ3A80d93+sH6Mm7mfjexB8Oxr43Gl//sFQQBhchCjW8GSAPhWHYgQiGC46J5jYpZL5s - SVs8orh/PZ33URyMbf4VTjPJIFFleLOL7kSKdcagIH90u8/z2MJwXspCT+F7nnec7zRZQkpqqDiG - 5CCwgnU2W2EmUpJWuBBJ2iwgcP5jbsNgpV1uqzZ3EaP4RaDw9jVcf1uLW3m3DWf88a3TYVUBZjxR - JGglQg4qP270+PnT9AP8xnmVwYCUucW05S/mbrqq1feXHsc5VenhDgZdobrG4O6+bfzorg9VDcwI - ynGbPwtozPNoqzPFSKs5izg8nGPsRbgMWsNiWvscAu+KtIYyw7sZI6W1e/C2qzVzqD3Jgl7EGPcp - 6OT8XH2HHcLMadZaFfVV/Q/8iBh7dQQAAA== - headers: - content-encoding: [gzip] - content-length: ['538'] - 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/CCgw0n216u9Rq3oHLMQM1SJ/card_holds - response: - body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": - \"succeeded\",\n \"description\": \"bob\",\n \"links\": {\n \"order\": - null,\n \"card\": \"CCgw0n216u9Rq3oHLMQM1SJ\",\n \"debit\": - null\n },\n \"updated_at\": \"2015-03-24T13:18:03.691113Z\",\n \"created_at\": - \"2015-03-24T13:18:03.306719Z\",\n \"transaction_number\": \"HL3SX-MLJ-YE43\",\n - \ \"expires_at\": \"2015-03-31T13:18:03.593558Z\",\n \"failure_reason\": - null,\n \"currency\": \"USD\",\n \"amount\": 1061,\n \"meta\": - {\n \"state\": \"new\",\n \"participant_id\": \"4\"\n },\n - \ \"href\": \"/card_holds/HL3TQo9nCFlNUnI8tYbF4iih\",\n \"failure_reason_code\": - null,\n \"voided_at\": null,\n \"id\": \"HL3TQo9nCFlNUnI8tYbF4iih\"\n - \ }\n ],\n \"links\": {\n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\",\n - \ \"card_holds.order\": \"/orders/{card_holds.order}\",\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: ['1018'] - content-type: [application/json] - status: {code: 201, message: CREATED} -version: 1 diff --git a/tests/py/fixtures/TestCharge.yml b/tests/py/fixtures/TestCharge.yml new file mode 100644 index 0000000000..80a241cb74 --- /dev/null +++ b/tests/py/fixtures/TestCharge.yml @@ -0,0 +1,70 @@ +interactions: +- request: + body: '{"AuthorId": "8301771", "Tag": "141066466", "CreditedWalletId": "8301772", + "CardId": "8301774", "SecureModeReturnURL": "http://localhost/", "Fees": {"Currency": + "EUR", "Amount": 202}, "CardType": "CB_VISA_MASTERCARD", "DebitedFunds": {"Currency": + "EUR", "Amount": 10202}}' + headers: {} + method: POST + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/payins/card/direct/ + response: + body: {string: !!python/unicode '{"Id":"8301780","Tag":"141066466","CreationDate":1440851689,"AuthorId":"8301771","CreditedUserId":"8301771","DebitedFunds":{"Currency":"EUR","Amount":10202},"CreditedFunds":{"Currency":"EUR","Amount":10000},"Fees":{"Currency":"EUR","Amount":202},"Status":"CREATED","ResultCode":null,"ResultMessage":null,"ExecutionDate":null,"Type":"PAYIN","Nature":"REGULAR","CreditedWalletId":"8301772","DebitedWalletId":null,"PaymentType":"CARD","ExecutionType":"DIRECT","SecureMode":"DEFAULT","CardId":"8301774","SecureModeReturnURL":"http://localhost/?transactionId=8301780","SecureModeRedirectURL":"https://api.sandbox.mangopay.com:443/Redirect/ACSWithValidation?token=265e083986ab4f4c8c120d3ff8b4525f","SecureModeNeeded":true}'} + headers: + cache-control: [no-cache] + content-length: ['716'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: '{"AuthorId": "8301771", "Tag": "141066467", "CreditedWalletId": "8301772", + "CardId": "-1", "SecureModeReturnURL": "http://localhost/", "Fees": {"Currency": + "EUR", "Amount": 37}, "CardType": "CB_VISA_MASTERCARD", "DebitedFunds": {"Currency": + "EUR", "Amount": 1037}}' + headers: {} + method: POST + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/payins/card/direct/ + response: + body: {string: !!python/unicode '{"Message":"One or several required parameters + are missing or incorrect. An incorrect resource ID also raises this kind of + error.","Type":"param_error","Id":"e5408507-1b8e-4184-abd0-f52e2142cb7a#1440851691","Date":1440851692.0,"errors":{"CardId":"The + value -1 is not valid"}}'} + headers: + cache-control: [no-cache] + content-length: ['275'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 400, message: Bad Request} +- request: + body: '{"Currency": "EUR", "Owners": ["8301771"], "Description": "2"}' + headers: {} + method: POST + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/wallets + response: + body: {string: !!python/unicode '{"Description":"2","Owners":["8301771"],"Balance":{"Currency":"EUR","Amount":0},"Currency":"EUR","FundsType":"DEFAULT","Id":"8301782","Tag":null,"CreationDate":1440851693}'} + headers: + cache-control: [no-cache] + content-length: ['171'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: '{"AuthorId": "8301771", "Tag": "141066469", "CreditedWalletId": "8301782", + "CardId": "8301774", "SecureModeReturnURL": "http://localhost/", "Fees": {"Currency": + "EUR", "Amount": 37}, "CardType": "CB_VISA_MASTERCARD", "DebitedFunds": {"Currency": + "EUR", "Amount": 1037}}' + headers: {} + method: POST + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/payins/card/direct/ + response: + body: {string: !!python/unicode '{"Id":"8301783","Tag":"141066469","CreationDate":1440851696,"AuthorId":"8301771","CreditedUserId":"8301771","DebitedFunds":{"Currency":"EUR","Amount":1037},"CreditedFunds":{"Currency":"EUR","Amount":1000},"Fees":{"Currency":"EUR","Amount":37},"Status":"SUCCEEDED","ResultCode":"000000","ResultMessage":"Success","ExecutionDate":1440851697,"Type":"PAYIN","Nature":"REGULAR","CreditedWalletId":"8301782","DebitedWalletId":null,"PaymentType":"CARD","ExecutionType":"DIRECT","SecureMode":"DEFAULT","CardId":"8301774","SecureModeReturnURL":null,"SecureModeRedirectURL":null,"SecureModeNeeded":false}'} + headers: + cache-control: [no-cache] + content-length: ['594'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +version: 1 diff --git a/tests/py/fixtures/TestClosing.yml b/tests/py/fixtures/TestClosing.yml deleted file mode 100644 index 92d378e646..0000000000 --- a/tests/py/fixtures/TestClosing.yml +++ /dev/null @@ -1,142 +0,0 @@ -interactions: -- request: - body: '{"meta": {"seq": 7}}' - 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-10-27T09:11:53.985908Z\",\n \"created_at\": - \"2014-10-27T09:11:53.843849Z\",\n \"dob_month\": null,\n \"id\": - \"CU2hJffWPUEAKzVzesce3bkQ\",\n \"phone\": null,\n \"href\": \"/customers/CU2hJffWPUEAKzVzesce3bkQ\",\n - \ \"merchant_status\": \"no-match\",\n \"meta\": {\n \"seq\": - \"7\"\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: '{"routing_number": "321174851", "account_type": "checking", "account_number": - "9900000001", "name": "Alice G. Krebs"}' - headers: {} - method: POST - uri: https://api.balancedpayments.com:443/bank_accounts - response: - body: {string: !!python/unicode "{\n \"bank_accounts\": [\n {\n \"routing_number\": - \"321174851\",\n \"bank_name\": \"SAN MATEO CREDIT UNION\",\n \"account_type\": - \"checking\",\n \"name\": \"Alice G. Krebs\",\n \"links\": {\n \"customer\": - null,\n \"bank_account_verification\": null\n },\n \"can_credit\": - true,\n \"created_at\": \"2014-10-27T09:11:55.902209Z\",\n \"fingerprint\": - \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\",\n \"updated_at\": - \"2014-10-27T09:11:55.902223Z\",\n \"href\": \"/bank_accounts/BA2k2FrMHYGPrN00Y176O4lG\",\n - \ \"meta\": {},\n \"account_number\": \"xxxxxx0001\",\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\": false,\n \"id\": \"BA2k2FrMHYGPrN00Y176O4lG\"\n - \ }\n ],\n \"links\": {\n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\",\n - \ \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\",\n - \ \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\",\n - \ \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\",\n - \ \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\"\n - \ }\n}"} - headers: - access-control-allow-headers: [Content-Type] - access-control-allow-methods: ['POST, OPTIONS'] - access-control-allow-origin: ['*'] - content-length: ['1292'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: '{"routing_number": "321174851", "bank_name": "SAN MATEO CREDIT UNION", - "account_type": "checking", "name": "Alice G. Krebs", "links": {"customer": - "/customers/CU2hJffWPUEAKzVzesce3bkQ"}, "can_credit": true, "created_at": "2014-10-27T09:11:55.902209Z", - "address": {"city": null, "line2": null, "line1": null, "state": null, "postal_code": - null, "country_code": null}, "updated_at": "2014-10-27T09:11:55.902223Z", "customer": - null, "meta": {}, "bank_account_verification": null, "fingerprint": "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14", - "can_debit": false, "id": "BA2k2FrMHYGPrN00Y176O4lG", "account_number": "xxxxxx0001"}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/bank_accounts/BA2k2FrMHYGPrN00Y176O4lG - response: - body: - string: !!binary | - H4sIAAAAAAAAA5VTXW+bMBR9769APK+JbUwy8sa6LOuqJt2WbOqmCRlzvVghEBlTLY347zMECqHp - 1PHgB5/L9fm493BhWXbIkk3AOE/zRGf2xPppLi3rUJ0GVmmuZfI7SPJtCMrgtkMwHtO3LrbfNEVV - j4RtocS/+nPr1l9OF9bVl+n766W1ml8v5m1x/Vag97uqnq+Bb8wTbUXTyY8lB2s2sG4UhFmLxzLZ - lFQbkoYmzzOdbo8Er1Zk/UmI73erqX/z+O0RMg5OuPn81KCnOngAJYXkTMs0MW2TPI5rZcWTRM6S - gCuIpDYVWuXQIgqYhihgJWIThOklRpdkvETeBOOJ6w48RAjyfrQChJELaqdkUv3jChQyTzBHYEwI - COyEHqWMIhYKoBTGYGDAI8+hMKIEIQ87PKScIsI4YNo2znfRP7mMBi4aIYw6XNYKRElieDIIw3c+ - 2ZAP6vbj/exOzRG6x+PRgsaz9q0taFaG0HrUJNvOyp/qQwh1hoVFkYKsn5/U+9r6xliTkgkayPlr - /Pw600b78+tdaoA44Gl0BqzGXu276NnoIwir5AWLszZ6GZXOvWhV1akw569SU6mmM7anizc4zlbp - Sj+Jw0kwAxkVw6b4aFWvU7f8ZLRf2by7Dc3S9cl2tm3YrF427DFtgKKemV6TytJXcqpr/09v5eWJ - mj7DF60qbBNYcVH8BaGt7pUiBQAA - headers: - content-encoding: [gzip] - content-length: ['534'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU2hJffWPUEAKzVzesce3bkQ/bank_accounts?limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA61UUU/bMBB+51dEedjTaG3XbUklNHWsYwxR2NZuYtMUOc55WE2TynEQUPW/z3aT - JikwMYk+ROrd+e677/t06wPP8yOWLkLGeVakOvdH3i8T9Ly1+5q0ygot0z9hWiwjUCbv9wjGQ3rU - x/7bqsj1SNkSbP7beOpdjGeTS+/k6+TD2cybT88up3VxOSvU9ytXz2+AL8yIuqLqNE4kB++0450r - iPI6n8h0YaFWIA1MXuQ6W24BnszJzWchflzNJ+Pzh+8PkHPoRYsvuwZ7W4e3oKSQnGmZpaZtWiRJ - udlmtyJnacgVxFKbCq0KqDMKmIY4ZDbjE4TpIUaHZDhDwQjjUb/fCRAhKPhZLyDMuqBWSqbuTV+g - iAWC9QTGhIDAvSiglFHEIgGUwhBMGvAg6FEYUIJQgHs8opwiwjhgWjcuVvE/sQw6fTRAGDWw3CgQ - FkS3ZYTu+zFZkI/q4tP16ZWaInSNh4NLmpzWs5agmRWh5qhStvbKnfshhBpmYXGsIN/XT+r7kvqK - WKOSERrI02H8OJxrs/vj8CoziSTkWfxE0tle3TezT0ofQ+SUFyzJa+llbJl7lirXaWO+v+1OfkWY - C/sJy5343cq6efc547aleZfIpdTHGL3JhMhBH6NSEz+FO9vS+ndLor8T9/WGuOlmCkbljC0KE6kC - KwW3Miuswg0oOjMq2HflMyHV6xFgKHU2tI5pnIb2ces4ES2sfbOvW97vyHjTLWtLsO1881/reLyw - d/PeVGdtD2rznjUcsge0qtpUDmjj3N6rF4Kqiv9vY0dma5/uHsZnydr4VrWDzV+4ViRbhgYAAA== - headers: - content-encoding: [gzip] - content-length: ['625'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: '{"amount": 1000.00, "meta": {"exchange_id": 1, "participant_id": 1}, "description": - "alice"}' - headers: {} - method: POST - uri: https://api.balancedpayments.com:443/bank_accounts/BA2k2FrMHYGPrN00Y176O4lG/credits - response: - body: {string: !!python/unicode "{\n \"credits\": [\n {\n \"status\": - \"pending\",\n \"description\": \"alice\",\n \"links\": {\n \"customer\": - \"CU2hJffWPUEAKzVzesce3bkQ\",\n \"destination\": \"BA2k2FrMHYGPrN00Y176O4lG\",\n - \ \"order\": null\n },\n \"updated_at\": \"2014-10-27T09:11:58.846439Z\",\n - \ \"created_at\": \"2014-10-27T09:11:58.512415Z\",\n \"transaction_number\": - \"CR9R1-FL4-O3SK\",\n \"failure_reason\": null,\n \"currency\": - \"USD\",\n \"amount\": 1000,\n \"failure_reason_code\": null,\n - \ \"meta\": {\n \"exchange_id\": \"1\",\n \"participant_id\": - \"1\"\n },\n \"href\": \"/credits/CR2mXS68M2pN36jArx2V3jSE\",\n - \ \"appears_on_statement_as\": \"example.com\",\n \"id\": \"CR2mXS68M2pN36jArx2V3jSE\"\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: ['1018'] - content-type: [application/json] - status: {code: 201, message: CREATED} -version: 1 diff --git a/tests/py/fixtures/TestCredits.yml b/tests/py/fixtures/TestCredits.yml deleted file mode 100644 index 0755444b12..0000000000 --- a/tests/py/fixtures/TestCredits.yml +++ /dev/null @@ -1,135 +0,0 @@ -interactions: -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6gH6X342hhVXOrrH7SVFzL/bank_accounts?limit=10&offset=0 - response: - body: {string: !!python/unicode "{\n \"bank_accounts\": [],\n \"meta\": {\n - \ \"last\": \"/customers/CU6gH6X342hhVXOrrH7SVFzL/bank_accounts?limit=10&offset=0\",\n - \ \"next\": null,\n \"href\": \"/customers/CU6gH6X342hhVXOrrH7SVFzL/bank_accounts?limit=10&offset=0\",\n - \ \"limit\": 10,\n \"offset\": 0,\n \"previous\": null,\n \"total\": - 0,\n \"first\": \"/customers/CU6gH6X342hhVXOrrH7SVFzL/bank_accounts?limit=10&offset=0\"\n - \ },\n \"links\": {}\n}"} - headers: - content-length: ['396'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6lY9SYo3pQ4dtkQKfAwZ5X/bank_accounts?limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA61Uy27bMBC85ysEHXpqbJKyXgaCwi76QGMkcNKiTYpCoEkqYa1XKcq1YfjfS9JS - JDl2kUMuArS73J2dGez2zLLsBc6WESYkrzJZ2mPrpwpa1tZ8VVrkleTZQ5RV6YIJlbchgmCEggDZ - b5si0yPDKdP57x9ms1vr4+Tm07U1nVxdWleTtrIeFMlNYYrJIyNL1b+taNp8zlMmrC9406YSni01 - xAacgkeqUupC3ev9Ny+5C2/vcqeYj6hczi/jyd9798dTg4NtoxUTPOYES55nqkFWJUm90e5pNYKz - iAhGuVQVUlSszQiGJaMR1hkbATg6h+Ac+V9BOAbBGIUDb+QC6N+3C8RqUyYKwTPzhmLiuXBEQ0od - DAn1MQmRS11/FDLggIAglY8x8okLPMziBSDhAkEPwjgOQy9sG1cF/R8WBwwcAEIHdbA8ChZrEMOe - AYbTiZf5N1MR/AlmKwjz3w9VmM7XvJ2VMom1CC1HjaitR9brNXIc3NGdUsHKQ/G43NS8N6wqiZTK - DB0Pw+fhUqrFn4eLXCWSiOT0SNJ4XWy62aO6U7Ywssc4KVvdOdW0neTJdNqp7y+9k92wZcJ2gkuj - /LDxbTk85dq+Lu8SnnJ5AcGbPI5LJi9Aza2dsbVuqc27J9F+Uvb1hpjpagoE9Yw9ChVpAoVgK55X - WuEOFJkrFfS7+lnMxesRoCg1HtSO6dyF/kUbGBE1rEOnb3vGH3C6G9a1Ndh+vvvXuxwv7N09NmUj - Xn9E95h1HHIAtKnanWhijtULQe0v2wk4Jzc2ZPb2GR5gPPl0Z2vVznb/AINZOYl7BgAA - headers: - content-encoding: [gzip] - content-length: ['621'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: '{"amount": 1900.00, "meta": {"exchange_id": 4, "participant_id": 4}, "description": - "bob"}' - headers: {} - method: POST - uri: https://api.balancedpayments.com:443/bank_accounts/BA6n7RBr8q8Lv11ojgu9mQxi/credits - response: - body: {string: !!python/unicode "{\n \"credits\": [\n {\n \"status\": - \"succeeded\",\n \"description\": \"bob\",\n \"links\": {\n \"customer\": - \"CU6lY9SYo3pQ4dtkQKfAwZ5X\",\n \"destination\": \"BA6n7RBr8q8Lv11ojgu9mQxi\",\n - \ \"order\": null\n },\n \"updated_at\": \"2014-10-27T09:09:32.728365Z\",\n - \ \"created_at\": \"2014-10-27T09:09:32.408777Z\",\n \"transaction_number\": - \"CR0B9-FU5-U7BQ\",\n \"failure_reason\": null,\n \"currency\": - \"USD\",\n \"amount\": 1900,\n \"failure_reason_code\": null,\n - \ \"meta\": {\n \"exchange_id\": \"4\",\n \"participant_id\": - \"4\"\n },\n \"href\": \"/credits/CR7vHRbnuJM95b1G7lYZF6GV\",\n - \ \"appears_on_statement_as\": \"example.com\",\n \"id\": \"CR7vHRbnuJM95b1G7lYZF6GV\"\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: ['1018'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/credits?meta%5Bcontains%5D=exchange_id&limit=25&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA6VUa2vbMBT93l8RBO2nJX4kjuNCGE1LO/b4kLQZS8Ywiiy3Wm3J0yPLCP7vlRS/ - klIGGxhj6957zrnnStqf9XoAcZwQKcBl77v+7fX29q0DQkKpzDoQCiGME5yAd3UwwQJxUkjCqMnY - sE0bywh9NnU1kiFRQrIcc5N7vRxnq+h+xYbFfJTI5/mn9Or3OvjWAOh8DS8JhTX87GpMw8WMT35N - Pm89j/18VFE+35FuCeOJxacqyyqVZSNXFQmUOImhNAp81xv1Pbfvhw9udKmfoT8I/clwHKzbLrQv - fykZuZMwDDslkkMqIDKqY6ryTdXvwp1F/dtl0F+Gs3lLkEKSKY5jzSOsi0Z5oxgpzjFFf4ze5f1N - WwZzpqhpw4tct0k/BosRS/ApYo4lPJ4K3qEnSB9xTBJDM+raWUAuCSIFpLIJv7L1iePUVDrVJnKu - F+H2w2JD1ccvUbDx7sJstb4d333tyC8KDLmItUVmg+EcawJotxnewbzI8ACxvM0/SHsT10oq9fuH - sQIc9QgyKOy8a3nvM5ITOfWDC5N3HswQoxISKs6Dm2nHjAuWpgLLqVvJABTvDFA7IHDa+T9DW0ka - 2w8OswQHbr1SDRcUHG8JsyexI0AyCTO95FVlKeH/26w20J4YcHyA6xtiUJ8w4Ngv4eyrsR8iZe1W - vap16yyY2eE2W6QpIknptClVG3Vt98Jw6p8OY730ilRzUnubvcFYxU/oTu4brUswxRHuMHZSSmCs - OitfAJYsP0VABQAA - headers: - content-encoding: [gzip] - content-length: ['582'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: '{"status": "succeeded", "transaction_number": "CR0B9-FU5-U7BQ", "description": - "bob", "created_at": "2014-10-27T09:09:32.408777Z", "appears_on_statement_as": - "example.com", "updated_at": "2014-10-27T09:09:32.728365Z", "order": null, "destination_href": - "/resources/BA6n7RBr8q8Lv11ojgu9mQxi", "currency": "USD", "amount": 1900, "meta": - {"participant_id": "4"}, "customer_href": "/customers/CU6lY9SYo3pQ4dtkQKfAwZ5X", - "failure_reason_code": null, "failure_reason": null, "id": "CR7vHRbnuJM95b1G7lYZF6GV"}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/credits/CR7vHRbnuJM95b1G7lYZF6GV - response: - body: {string: !!python/unicode "{\n \"credits\": [\n {\n \"status\": - \"succeeded\",\n \"description\": \"bob\",\n \"links\": {\n \"customer\": - \"CU6lY9SYo3pQ4dtkQKfAwZ5X\",\n \"destination\": \"BA6n7RBr8q8Lv11ojgu9mQxi\",\n - \ \"order\": null\n },\n \"updated_at\": \"2014-10-27T09:09:36.072433Z\",\n - \ \"created_at\": \"2014-10-27T09:09:32.408777Z\",\n \"transaction_number\": - \"CR0B9-FU5-U7BQ\",\n \"failure_reason\": null,\n \"currency\": - \"USD\",\n \"amount\": 1900,\n \"failure_reason_code\": null,\n - \ \"meta\": {\n \"participant_id\": \"4\"\n },\n \"href\": - \"/credits/CR7vHRbnuJM95b1G7lYZF6GV\",\n \"appears_on_statement_as\": - \"example.com\",\n \"id\": \"CR7vHRbnuJM95b1G7lYZF6GV\"\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: ['990'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/debits?meta%5Bcontains%5D=exchange_id&limit=25&offset=0 - response: - body: {string: !!python/unicode "{\n \"meta\": {\n \"last\": \"/debits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\",\n - \ \"next\": null,\n \"href\": \"/debits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\",\n - \ \"limit\": 25,\n \"offset\": 0,\n \"previous\": null,\n \"total\": - 0,\n \"first\": \"/debits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\"\n - \ },\n \"links\": {},\n \"debits\": []\n}"} - headers: - content-length: ['356'] - content-type: [application/json] - status: {code: 200, message: OK} -version: 1 diff --git a/tests/py/fixtures/TestElsewhere.yml b/tests/py/fixtures/TestElsewhere.yml index 4fde1fb2f2..b42693ae4d 100644 --- a/tests/py/fixtures/TestElsewhere.yml +++ b/tests/py/fixtures/TestElsewhere.yml @@ -7,14 +7,14 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA52TTW6DMBCF7+I1iYH8tLFU9QKVuukqm8iAAyMZ27INEUW5e8dAIhpVlcgKsOd9 - fn7M9ETqEhRhREImLDe8IxGBgrAk3e3j+HCICG+55/bUWIlllffGMUrHRbcuwVdN1jhhc628UH6d - 65o29CZ/b982SCztRAloggsPNAMTaZQjztG5o8rX8sHBePJQP688ayn1BfWPhv89gt5l6G18B1U+ - g0BZT7WvBCaG17iGy4PzC+0Mkp6GxwmKAHH4D6wollmaRGjootBLT60weqA1mcstGA9aLbT2S4oo - bUuu4Js/gUKpQ0IwtdDEIEGpaLHlFmpHTU+NhZbnXYjDilxAi+k+w3sQI853RmCbf86SCZmDFyde - 1GHczlw6ERHF61D4MZs97GfDVUeYaqSMSIbzOY0dTt290Ye2R6bU+RD8OFSi5hCGFDcqsIJnEunT - URnoccc0mYT8NCbIkohMC0PLERbf+h9HaPaFbT185Yj1GBT3SEvjZLeKd6s0/UpStn1h6f6IZzem - +Ltmw5JXlmyP5PoDJJ9p5ngEAAA= + H4sIAAAAAAAAA52TUW+kIBSF/wvPtqi7M92SNP0DTfalT32ZoFK9CQIBtJk1/e89qNO4k80mzpNA + 7vk4HO+dmLYtGSaYpkp56eSZZYwaJorycMzzx8eMyVFG6U+D1yjrYnRBcL4chvuWYjdUQ1C+tiYq + E+9r2/OBX+TP49MPEFu/UhKa4eCK5mglLXLgAt866mKvrxwsN8/128p3q7X9gP7a8H+v4N8yeFvW + ZNpbEJBN3MZOITE84zM9nkLcaWeWTDx9TtQkSMA/8KrZZ2kVwdCHgZeJe+XsTBuqUHtykazZae0v + KVDWt9LQH3kDCtIAQjK108QsgVSNaLmd2kUzcedplPU5xeFVrWhEurfwrsTAxbNTaPPfm2RS5hTV + STZ9Grd3qYPKmJF9KnzZzB762UlzZsIMWmeswnyuY4ep+270ue3B1Laeg7+Uq14SxnTRduSVrDRu + WFlkL0s3VJrq0xKjKDK2Hsx9x0R+GQLM0WaH3p53NbgRackIa2VeHO7yw11Zvhal+PkgyuMbnA2u + +UfN8bX4JQ4Fyt7Y5xdr+YwtfQQAAA== headers: access-control-allow-credentials: ['true'] access-control-allow-origin: ['*'] @@ -25,8 +25,8 @@ interactions: content-encoding: [gzip] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] - etag: [W/"16c5616f1f7f57adf84ebb85c70008d6"] - last-modified: ['Fri, 22 May 2015 13:18:14 GMT'] + etag: [W/"edf8aa2a5f76e98e1d67c6477ace9626"] + last-modified: ['Tue, 26 May 2015 18:51:47 GMT'] status: [200 OK] strict-transport-security: [max-age=31536000; includeSubdomains; preload] transfer-encoding: [chunked] @@ -38,7 +38,14 @@ interactions: method: GET uri: https://api.github.com:443/orgs/liberapay/public_members response: - body: {string: !!python/unicode '[]'} + body: + string: !!binary | + H4sIAAAAAAAAA52TwWrDMAyG38XnUq+MwhYYO+wZdiojuI7qCBzb2EpKG/rulZMwuhwG7snB6Pv0 + W7EPo7DeoBOV+GqVM0p7sRHYiGq3f9vt3182Qg2KVKz7aLmoJQqpknLeTFuD1PbHPkHU3hE42mrf + yV4u9Ofw8co+ExdJFgveWMkCLqKZZluSD3Fa6uyq/9x3Kn8oPHlr/Znpddr/GshfioPN3+jMEwam + RumpBR4WH+GWD46JysJMxCjzUmOTHYmnH6EpCrQwHOfsOMkoIwQ/yfpj0hEDoXdlwf6QbPLRKIdX + VW5iMrEgRyqLMBFMwsAXrQydkVGGiIPSlzyKCBpw4ME+oVuxbKNLAL7b3/zj85iRoFZNlx/WSdkE + t587ouWI2WoDAAA= headers: access-control-allow-credentials: ['true'] access-control-allow-origin: ['*'] @@ -46,12 +53,13 @@ interactions: X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval'] cache-control: ['public, max-age=60, s-maxage=60'] - content-length: ['2'] + content-encoding: [gzip] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] - etag: ['"98f0c1b396a4e5d54f4d5fe561d54b44"'] + etag: [W/"7e1bcc65d400d193c9e55e41e2c7beaa"] status: [200 OK] strict-transport-security: [max-age=31536000; includeSubdomains; preload] + transfer-encoding: [chunked] vary: [Accept, Accept-Encoding] status: {code: 200, message: OK} - request: @@ -71,10 +79,10 @@ interactions: content-length: ['93'] content-type: [application/json;charset=utf-8] expires: ['Tue, 31 Mar 1981 05:00:00 GMT'] - last-modified: ['Mon, 25 May 2015 17:13:33 GMT'] + last-modified: ['Sat, 29 Aug 2015 12:35:34 GMT'] pragma: [no-cache] - set-cookie: ['guest_id=v1%3A143257401303961298; Domain=.twitter.com; Path=/; - Expires=Wed, 24-May-2017 17:13:33 UTC'] + set-cookie: ['guest_id=v1%3A144085173476796921; Domain=.twitter.com; Path=/; + Expires=Mon, 28-Aug-2017 12:35:34 UTC'] status: [404 Not Found] strict-transport-security: [max-age=631138519] status: {code: 404, message: Not Found} @@ -131,6 +139,8 @@ interactions: H4sIAAAAAAAAA6tWSi0qyi9SslKoVspNLS5OTE8FspUSUzKKsxKzU7KKU7KzihOzUjKyi1MSlWpr AfM0plMwAAAA headers: + bbuserid: ['4601603'] + bbusername: [liberapay] content-encoding: [gzip] content-language: [en] content-type: [application/json; charset=utf-8] diff --git a/tests/py/fixtures/TestFriendFinder.yml b/tests/py/fixtures/TestFriendFinder.yml index d2de793d85..b8568a9c8f 100644 --- a/tests/py/fixtures/TestFriendFinder.yml +++ b/tests/py/fixtures/TestFriendFinder.yml @@ -7,32 +7,24 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA63b3W7iSBAF4HfhOjuAzW+k1V7tE+zM1WoVGexAT4yNbANionn3bdvd5e4GWak+ - rVxESuocV0g+GbDz7+ckLw+imLxOqvvkZSLSyetm9jJJrkmTVG+XKpffOTbNuX6dTvsv1t8Oojle - dpc6q/Zl0WRF821fnqaX6Wb21/XPWLYcKpVv6ybyC07PWaiOPiiL6ml3+GNzyp2D9gfrBruR9zLP - y5tMuMs9L53SPGVFcWBl5fzntGyOmXw85Kq/2x9Q1M1XF+hmP6ftpzeRtulaPrRVln5xCTUtV7gV - 8uif0yo7l13NZVfvK3FuRFl8dRkrIzvK6pAU4lfC6ZCZWkbbNb562G5WZrKr/Gv5aqgf/pyeK3FN - 9vf2R66yfSau8qFjFTkp2dPcz5n8y/whf53tAyma7C1JTy2D9ySvs98vAwtR18n+I8tzzWMex1tP - IG0UIGKtMk7FGmWRGZL+dB46EE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 + YYIsmLIMC46hXPUpf1aTPEWVLSKhsh3hTLlCKinbgxVlY3hQNhjGE6wgcPqpzZZfZ1mpAz9aVWmW + ptnG8+2qDxNUzRct45qfRhmbhP2p/a+GIm7aR4I3rQrnb9ZLZTitw2qcpvEop/kwNuebCEQLJlV9 + urU3SdqbH3mer1a5p84+TNA5GrMMc3QQZdLl/DnOGigSoYqEEFrC+RsqqfSgCasOgnhwEA1jbbSE + wOyj5jeumtp9ZcvW+ZPvHZBNFyYwG41ZZjY6iGLmcv7MZg0UZlBFYgYt4ZgNlVRm0IRlBkE8M4iG + YTZaQmD248CqPSscsyR/TvLtyvPtzKYJ0EZzlqGNDqKguZw/tFkDBRpUkaBBSzhoQyUVGjRhoUEQ + Dw2iYaCNlhCgfewO+uqYpek29b+hb9MEZjBmGRkcQxHrU/7AJnkKL1tEwmU7wtFyhVRYtgfLysbw + qGwwDClYQQB1ZPJ0q/ZwkyRZbde+HxDTrEsTRA1rlkkN51CmbMwf1bSAoso1kVi5knCuoJEKyxVh + ZbkcnpZLhrE17CDgOrHddbj9+JTniedHQnP/sU0TZNkpy6zsIZSpNuMPapSmaOpqSJS6hnCO+joq + oq4FK6gL4fl0sTB27AIsnL//AOFjGAaXKAAA headers: access-control-allow-credentials: ['true'] access-control-allow-origin: ['*'] @@ -43,33 +35,12 @@ interactions: content-encoding: [gzip] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] - etag: [W/"986ef585b000c20bfe26888d85a8eebc"] + etag: [W/"bc91d263d1a677d24b31392b0d5ff156"] status: [200 OK] strict-transport-security: [max-age=31536000; includeSubdomains; preload] transfer-encoding: [chunked] vary: [Accept, Accept-Encoding] status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://www.googleapis.com:443/plus/v1/people/103133617858201182649/people/visible - response: - body: - string: !!binary | - H4sIAAAAAAAAALWOvWrDMBSFdz/FRXOxA+2UtQ1kyOopdBDWqSKwdR1dCVxC3r1Xav0IXQTnOz9X - j44MUuJkjvTo6E+IqquqhhQ6XmyICk0R63EJS8hiXn7NBCvcTGfD/N3M0zYBDm6MCX4PLpDarsmP - mqQWpS9ONEZb8g0xh8lmOBoFtG/09M5qxKK8KE+4l5AgJMHHsvb7PLaMqPkz5rXeuOW8ynEYJnbo - PbOf0U+8DHYNojAKzzC1+tTns46YGtXq2+G1yf/6cKcnn90PHUi4/XsBAAA= - headers: - alternate-protocol: ['443:quic,p=0.08'] - cache-control: ['private, max-age=0'] - content-encoding: [gzip] - content-type: [application/json; charset=UTF-8] - expires: ['Tue, 03 Mar 2015 19:59:02 GMT'] - transfer-encoding: [chunked] - vary: [Origin, X-Origin] - status: {code: 403, message: Forbidden} - request: body: null headers: {} @@ -78,113 +49,112 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAAOxdC1Pburb+K7owc3vOXB562lZm7twCSVpaoBRoe7oPexjHlsGtY6d+lNI9/e93 - yc7LcUyCm2y6z4ZOW6KHJcvy9+lbWlr5YyNLVJxstP79x4bvbrSolJRawrDwFny+StJ4o7UxSdzY - 2gjtvoK0N4ODGzsOfPVS9dwI0hMnViq8Gmbj2ewgcuzUj0LIQzdpOmhd7l7uDuwkVT0/3HGi/uXu - b+Hn8w/dty6UHsSR5wfqalIrzIJga8NV0Iw/GF6oCy26UR9FHkoGSjk3cMVYJQm6jcJnKXJ9tYO6 - UYyGXUF5X54lyE5T2/m8gzZfqfPMT0bZmzNdzuIAGtGdTfLeptDNy939Dy/cTxfq9c1bKKLC1E99 - BeP3R1E8/68YzmWqfxvYoavcq9myt6rn3Njpjh1GYTRIivH5P0gKQxUk/xsNnKKrN8Ouun4yCOy7 - 4XWWqH2ZUUwNqOmHru/oG/g33qLs9x+//5gZ5fEd/f7jR/5gUuWkCqaKZweJ2trwoiCIbmEOXTlR - FqYbLUkhMfZV6I6TCIcJ4MOzdscpWxswX2ydYsPHjYubDL2yQ0QpIqTFjZaQ6H8w/CCKiYB+evbX - KIv9VI0vCjM0S52ryPMSVXxM/b66+h6Feg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AAA= headers: cache-control: ['no-cache, no-store, must-revalidate, pre-check=0, post-check=0'] content-disposition: [attachment; filename=json.json] content-encoding: [gzip] - content-length: ['5443'] + content-length: ['5396'] content-type: [application/json;charset=utf-8] expires: ['Tue, 31 Mar 1981 05:00:00 GMT'] - last-modified: ['Tue, 03 Mar 2015 19:59:03 GMT'] + last-modified: ['Sat, 29 Aug 2015 12:35:42 GMT'] pragma: [no-cache] - set-cookie: ['guest_id=v1%3A142541274344950707; Domain=.twitter.com; Path=/; - Expires=Thu, 02-Mar-2017 19:59:03 UTC'] + set-cookie: ['guest_id=v1%3A144085174214476937; Domain=.twitter.com; Path=/; + Expires=Mon, 28-Aug-2017 12:35:42 UTC'] status: [200 OK] strict-transport-security: [max-age=631138519] status: {code: 200, message: OK} diff --git a/tests/py/fixtures/TestGetBalancedAccount.yml b/tests/py/fixtures/TestGetBalancedAccount.yml deleted file mode 100644 index 983fae13ae..0000000000 --- a/tests/py/fixtures/TestGetBalancedAccount.yml +++ /dev/null @@ -1,35 +0,0 @@ -interactions: -- request: - body: '{"meta": {"username": "alice", "participant_id": 2}}' - 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\": \"2015-03-24T16:54:58.015604Z\",\n \"created_at\": - \"2015-03-24T16:54:57.899336Z\",\n \"dob_month\": null,\n \"id\": - \"CU6fn0Mhh38klHvYYVHXt8Qw\",\n \"phone\": null,\n \"href\": \"/customers/CU6fn0Mhh38klHvYYVHXt8Qw\",\n - \ \"merchant_status\": \"no-match\",\n \"meta\": {\n \"username\": - \"alice\",\n \"participant_id\": \"2\"\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 \"customers.accounts\": - \"/customers/{customers.id}/accounts\"\n }\n}"} - headers: - content-length: ['1723'] - content-type: [application/json] - status: {code: 201, message: CREATED} -version: 1 diff --git a/tests/py/fixtures/TestPages.yml b/tests/py/fixtures/TestPages.yml index f550736f08..b9c1dfd5be 100644 --- a/tests/py/fixtures/TestPages.yml +++ b/tests/py/fixtures/TestPages.yml @@ -1,4 +1,74 @@ interactions: +- request: + body: null + headers: {} + method: GET + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/cards/8301774 + response: + body: {string: !!python/unicode '{"ExpirationDate":"1234","Alias":"356999XXXXXX0132","CardType":"CB_VISA_MASTERCARD","CardProvider":"MASTERCARD","Country":"USA","Product":" ","BankCode":"unknown","Active":true,"Currency":"EUR","Validity":"VALID","UserId":"8301771","Id":"8301774","Tag":null,"CreationDate":1440851675}'} + headers: + cache-control: [no-cache] + content-length: ['286'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/users/8301769 + response: + body: {string: !!python/unicode '{"Address":{"AddressLine1":null,"AddressLine2":null,"City":null,"Region":null,"PostalCode":null,"Country":null},"FirstName":"David","LastName":"Foobar","Birthday":0,"Nationality":"BE","CountryOfResidence":"BE","Occupation":null,"IncomeRange":null,"ProofOfIdentity":null,"ProofOfAddress":null,"PersonType":"NATURAL","Email":"nobody@example.net","KYCLevel":"LIGHT","Id":"8301769","Tag":null,"CreationDate":1440851665}'} + headers: + cache-control: [no-cache] + content-length: ['415'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/users/8301769 + response: + body: {string: !!python/unicode '{"Address":{"AddressLine1":null,"AddressLine2":null,"City":null,"Region":null,"PostalCode":null,"Country":null},"FirstName":"David","LastName":"Foobar","Birthday":0,"Nationality":"BE","CountryOfResidence":"BE","Occupation":null,"IncomeRange":null,"ProofOfIdentity":null,"ProofOfAddress":null,"PersonType":"NATURAL","Email":"nobody@example.net","KYCLevel":"LIGHT","Id":"8301769","Tag":null,"CreationDate":1440851665}'} + headers: + cache-control: [no-cache] + content-length: ['415'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/cards/8301774 + response: + body: {string: !!python/unicode '{"ExpirationDate":"1234","Alias":"356999XXXXXX0132","CardType":"CB_VISA_MASTERCARD","CardProvider":"MASTERCARD","Country":"USA","Product":" ","BankCode":"unknown","Active":true,"Currency":"EUR","Validity":"VALID","UserId":"8301771","Id":"8301774","Tag":null,"CreationDate":1440851675}'} + headers: + cache-control: [no-cache] + content-length: ['286'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/users/8301769 + response: + body: {string: !!python/unicode '{"Address":{"AddressLine1":null,"AddressLine2":null,"City":null,"Region":null,"PostalCode":null,"Country":null},"FirstName":"David","LastName":"Foobar","Birthday":0,"Nationality":"BE","CountryOfResidence":"BE","Occupation":null,"IncomeRange":null,"ProofOfIdentity":null,"ProofOfAddress":null,"PersonType":"NATURAL","Email":"nobody@example.net","KYCLevel":"LIGHT","Id":"8301769","Tag":null,"CreationDate":1440851665}'} + headers: + cache-control: [no-cache] + content-length: ['415'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} - request: body: null headers: {} @@ -7,14 +77,14 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA52TTW6DMBCF7+I1iYH8tLFU9QKVuukqm8iAAyMZ27INEUW5e8dAIhpVlcgKsOd9 - fn7M9ETqEhRhREImLDe8IxGBgrAk3e3j+HCICG+55/bUWIlllffGMUrHRbcuwVdN1jhhc628UH6d - 65o29CZ/b982SCztRAloggsPNAMTaZQjztG5o8rX8sHBePJQP688ayn1BfWPhv89gt5l6G18B1U+ - g0BZT7WvBCaG17iGy4PzC+0Mkp6GxwmKAHH4D6wollmaRGjootBLT60weqA1mcstGA9aLbT2S4oo - bUuu4Js/gUKpQ0IwtdDEIEGpaLHlFmpHTU+NhZbnXYjDilxAi+k+w3sQI853RmCbf86SCZmDFyde - 1GHczlw6ERHF61D4MZs97GfDVUeYaqSMSIbzOY0dTt290Ye2R6bU+RD8OFSi5hCGFDcqsIJnEunT - URnoccc0mYT8NCbIkohMC0PLERbf+h9HaPaFbT185Yj1GBT3SEvjZLeKd6s0/UpStn1h6f6IZzem - +Ltmw5JXlmyP5PoDJJ9p5ngEAAA= + H4sIAAAAAAAAA52TUW+kIBSF/wvPtqi7M92SNP0DTfalT32ZoFK9CQIBtJk1/e89qNO4k80mzpNA + 7vk4HO+dmLYtGSaYpkp56eSZZYwaJorycMzzx8eMyVFG6U+D1yjrYnRBcL4chvuWYjdUQ1C+tiYq + E+9r2/OBX+TP49MPEFu/UhKa4eCK5mglLXLgAt866mKvrxwsN8/128p3q7X9gP7a8H+v4N8yeFvW + ZNpbEJBN3MZOITE84zM9nkLcaWeWTDx9TtQkSMA/8KrZZ2kVwdCHgZeJe+XsTBuqUHtykazZae0v + KVDWt9LQH3kDCtIAQjK108QsgVSNaLmd2kUzcedplPU5xeFVrWhEurfwrsTAxbNTaPPfm2RS5hTV + STZ9Grd3qYPKmJF9KnzZzB762UlzZsIMWmeswnyuY4ep+270ue3B1Laeg7+Uq14SxnTRduSVrDRu + WFlkL0s3VJrq0xKjKDK2Hsx9x0R+GQLM0WaH3p53NbgRackIa2VeHO7yw11Zvhal+PkgyuMbnA2u + +UfN8bX4JQ4Fyt7Y5xdr+YwtfQQAAA== headers: access-control-allow-credentials: ['true'] access-control-allow-origin: ['*'] @@ -25,8 +95,8 @@ interactions: content-encoding: [gzip] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] - etag: [W/"16c5616f1f7f57adf84ebb85c70008d6"] - last-modified: ['Fri, 22 May 2015 13:18:14 GMT'] + etag: [W/"edf8aa2a5f76e98e1d67c6477ace9626"] + last-modified: ['Tue, 26 May 2015 18:51:47 GMT'] status: [200 OK] strict-transport-security: [max-age=31536000; includeSubdomains; preload] transfer-encoding: [chunked] @@ -38,7 +108,14 @@ interactions: method: GET uri: https://api.github.com:443/orgs/liberapay/public_members response: - body: {string: !!python/unicode '[]'} + body: + string: !!binary | + H4sIAAAAAAAAA52TwWrDMAyG38XnUq+MwhYYO+wZdiojuI7qCBzb2EpKG/rulZMwuhwG7snB6Pv0 + W7EPo7DeoBOV+GqVM0p7sRHYiGq3f9vt3182Qg2KVKz7aLmoJQqpknLeTFuD1PbHPkHU3hE42mrf + yV4u9Ofw8co+ExdJFgveWMkCLqKZZluSD3Fa6uyq/9x3Kn8oPHlr/Znpddr/GshfioPN3+jMEwam + RumpBR4WH+GWD46JysJMxCjzUmOTHYmnH6EpCrQwHOfsOMkoIwQ/yfpj0hEDoXdlwf6QbPLRKIdX + VW5iMrEgRyqLMBFMwsAXrQydkVGGiIPSlzyKCBpw4ME+oVuxbKNLAL7b3/zj85iRoFZNlx/WSdkE + t587ouWI2WoDAAA= headers: access-control-allow-credentials: ['true'] access-control-allow-origin: ['*'] @@ -46,64 +123,15 @@ interactions: X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval'] cache-control: ['public, max-age=60, s-maxage=60'] - content-length: ['2'] + content-encoding: [gzip] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] - etag: ['"98f0c1b396a4e5d54f4d5fe561d54b44"'] + etag: [W/"7e1bcc65d400d193c9e55e41e2c7beaa"] status: [200 OK] strict-transport-security: [max-age=31536000; includeSubdomains; preload] + transfer-encoding: [chunked] vary: [Accept, Accept-Encoding] status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/cards/CC6j2lN0CEuf3wt77J2bQW7r - response: - body: - string: !!binary | - H4sIAAAAAAAAA41UXU/bMBR951dYeaat44Sk6VupEBOIbgzGpE1T5MY2NaR2ZTuFCvW/z3aSJgEm - LQ+Wcj98zz33+L6dABAUWBEdzMBv+wPAmz+tueTi2Zlbg4ustJEbqqw1WPxI1ovbl5CYsnrS15ch - 1Q/3JTJBk384bS9iXDxStVVcGJc4LVIGYxRFyRlm02kR0SgpGERpnNACJzEjBYsSQgpEQxZlNpwW - GYsYI/AMoyQNjhcXu12uqK5Kd6+oyvLoEdVmVcN87X2h/bpsvNP5VmqDy3yDTbF22ITs/PR1yxU2 - XIp8I4Vx/hAeK2yowUNyFH20sZ4aKVil3U8b7rjjZp8b+eIj+g5MiG1C58g5zuUrQB8p5MTfu0ie - ULmEi4uKRS8mTa/Q6vZnqnqMYEMfpdq7aGnWloIjYLPfUmcuFCXcDEls+x9wuMLiORd447Ouvt18 - /X45X4LFl/ndBTifL69PwXI8Hw/51EZRajo+91R3ASuFhe/jgWvcmastsahJjr06EAzPRjAaoeg+ - jGZxNovTcRimYRr/6pWqKbPxfXFagq2l30OtYuqY/cQcunohisAN5gLceej9wVhpGN/8p/NspFNI - 4mMyiELYzy5kJYza502Aq//hZRRY5ISu7DhmgOFS007ANe+DgfQEuafYPUIEUadI+xre9Rlwne+o - 4oxTx7tRVVfAqf/4doK6edBIEdg5gbo/4OADIoGQBniZ9Cbu4Ddyeo9/rShztEz8cpn8h3IVHaog - HoVwhNJ7mM3gdIaSMYRZklkVeBYP9vzj2Hq3puplNnZV87Us/V5rQbx5LGNODh5V468pb/N6C27S - bjs9aTJbw6GZc5NEuN5Wxir901JH76CQn/q/Mmqfbe5wcvgLinZLo6IFAAA= - headers: - content-encoding: [gzip] - content-length: ['671'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/cards/CC6j2lN0CEuf3wt77J2bQW7r - response: - body: - string: !!binary | - H4sIAAAAAAAAA41UXU/bMBR951dYeaat44Sk6VupEBOIbgzGpE1T5MY2NaR2ZTuFCvW/z3aSJgEm - LQ+Wcj98zz33+L6dABAUWBEdzMBv+wPAmz+tueTi2Zlbg4ustJEbqqw1WPxI1ovbl5CYsnrS15ch - 1Q/3JTJBk384bS9iXDxStVVcGJc4LVIGYxRFyRlm02kR0SgpGERpnNACJzEjBYsSQgpEQxZlNpwW - GYsYI/AMoyQNjhcXu12uqK5Kd6+oyvLoEdVmVcN87X2h/bpsvNP5VmqDy3yDTbF22ITs/PR1yxU2 - XIp8I4Vx/hAeK2yowUNyFH20sZ4aKVil3U8b7rjjZp8b+eIj+g5MiG1C58g5zuUrQB8p5MTfu0ie - ULmEi4uKRS8mTa/Q6vZnqnqMYEMfpdq7aGnWloIjYLPfUmcuFCXcDEls+x9wuMLiORd447Ouvt18 - /X45X4LFl/ndBTifL69PwXI8Hw/51EZRajo+91R3ASuFhe/jgWvcmastsahJjr06EAzPRjAaoeg+ - jGZxNovTcRimYRr/6pWqKbPxfXFagq2l30OtYuqY/cQcunohisAN5gLceej9wVhpGN/8p/NspFNI - 4mMyiELYzy5kJYza502Aq//hZRRY5ISu7DhmgOFS007ANe+DgfQEuafYPUIEUadI+xre9Rlwne+o - 4oxTx7tRVVfAqf/4doK6edBIEdg5gbo/4OADIoGQBniZ9Cbu4Ddyeo9/rShztEz8cpn8h3IVHaog - HoVwhNJ7mM3gdIaSMYRZklkVeBYP9vzj2Hq3puplNnZV87Us/V5rQbx5LGNODh5V468pb/N6C27S - bjs9aTJbw6GZc5NEuN5Wxir901JH76CQn/q/Mmqfbe5wcvgLinZLo6IFAAA= - headers: - content-encoding: [gzip] - content-length: ['671'] - content-type: [application/json] - status: {code: 200, message: OK} - request: body: null headers: {} @@ -112,14 +140,14 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA52TTW6DMBCF7+I1iYH8tLFU9QKVuukqm8iAAyMZ27INEUW5e8dAIhpVlcgKsOd9 - fn7M9ETqEhRhREImLDe8IxGBgrAk3e3j+HCICG+55/bUWIlllffGMUrHRbcuwVdN1jhhc628UH6d - 65o29CZ/b982SCztRAloggsPNAMTaZQjztG5o8rX8sHBePJQP688ayn1BfWPhv89gt5l6G18B1U+ - g0BZT7WvBCaG17iGy4PzC+0Mkp6GxwmKAHH4D6wollmaRGjootBLT60weqA1mcstGA9aLbT2S4oo - bUuu4Js/gUKpQ0IwtdDEIEGpaLHlFmpHTU+NhZbnXYjDilxAi+k+w3sQI853RmCbf86SCZmDFyde - 1GHczlw6ERHF61D4MZs97GfDVUeYaqSMSIbzOY0dTt290Ye2R6bU+RD8OFSi5hCGFDcqsIJnEunT - URnoccc0mYT8NCbIkohMC0PLERbf+h9HaPaFbT185Yj1GBT3SEvjZLeKd6s0/UpStn1h6f6IZzem - +Ltmw5JXlmyP5PoDJJ9p5ngEAAA= + H4sIAAAAAAAAA52TUW+kIBSF/wvPtqi7M92SNP0DTfalT32ZoFK9CQIBtJk1/e89qNO4k80mzpNA + 7vk4HO+dmLYtGSaYpkp56eSZZYwaJorycMzzx8eMyVFG6U+D1yjrYnRBcL4chvuWYjdUQ1C+tiYq + E+9r2/OBX+TP49MPEFu/UhKa4eCK5mglLXLgAt866mKvrxwsN8/128p3q7X9gP7a8H+v4N8yeFvW + ZNpbEJBN3MZOITE84zM9nkLcaWeWTDx9TtQkSMA/8KrZZ2kVwdCHgZeJe+XsTBuqUHtykazZae0v + KVDWt9LQH3kDCtIAQjK108QsgVSNaLmd2kUzcedplPU5xeFVrWhEurfwrsTAxbNTaPPfm2RS5hTV + STZ9Grd3qYPKmJF9KnzZzB762UlzZsIMWmeswnyuY4ep+270ue3B1Laeg7+Uq14SxnTRduSVrDRu + WFlkL0s3VJrq0xKjKDK2Hsx9x0R+GQLM0WaH3p53NbgRackIa2VeHO7yw11Zvhal+PkgyuMbnA2u + +UfN8bX4JQ4Fyt7Y5xdr+YwtfQQAAA== headers: access-control-allow-credentials: ['true'] access-control-allow-origin: ['*'] @@ -130,8 +158,8 @@ interactions: content-encoding: [gzip] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] - etag: [W/"16c5616f1f7f57adf84ebb85c70008d6"] - last-modified: ['Fri, 22 May 2015 13:18:14 GMT'] + etag: [W/"edf8aa2a5f76e98e1d67c6477ace9626"] + last-modified: ['Tue, 26 May 2015 18:51:47 GMT'] status: [200 OK] strict-transport-security: [max-age=31536000; includeSubdomains; preload] transfer-encoding: [chunked] @@ -143,7 +171,14 @@ interactions: method: GET uri: https://api.github.com:443/orgs/liberapay/public_members response: - body: {string: !!python/unicode '[]'} + body: + string: !!binary | + H4sIAAAAAAAAA52TwWrDMAyG38XnUq+MwhYYO+wZdiojuI7qCBzb2EpKG/rulZMwuhwG7snB6Pv0 + W7EPo7DeoBOV+GqVM0p7sRHYiGq3f9vt3182Qg2KVKz7aLmoJQqpknLeTFuD1PbHPkHU3hE42mrf + yV4u9Ofw8co+ExdJFgveWMkCLqKZZluSD3Fa6uyq/9x3Kn8oPHlr/Znpddr/GshfioPN3+jMEwam + RumpBR4WH+GWD46JysJMxCjzUmOTHYmnH6EpCrQwHOfsOMkoIwQ/yfpj0hEDoXdlwf6QbPLRKIdX + VW5iMrEgRyqLMBFMwsAXrQydkVGGiIPSlzyKCBpw4ME+oVuxbKNLAL7b3/zj85iRoFZNlx/WSdkE + t587ouWI2WoDAAA= headers: access-control-allow-credentials: ['true'] access-control-allow-origin: ['*'] @@ -151,63 +186,84 @@ interactions: X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval'] cache-control: ['public, max-age=60, s-maxage=60'] - content-length: ['2'] + content-encoding: [gzip] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] - etag: ['"98f0c1b396a4e5d54f4d5fe561d54b44"'] + etag: [W/"7e1bcc65d400d193c9e55e41e2c7beaa"] status: [200 OK] strict-transport-security: [max-age=31536000; includeSubdomains; preload] + transfer-encoding: [chunked] vary: [Accept, Accept-Encoding] status: {code: 200, message: OK} - request: body: null headers: {} method: GET - uri: https://api.balancedpayments.com:443/cards/CC6j2lN0CEuf3wt77J2bQW7r + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/cards/8301774 response: - body: - string: !!binary | - H4sIAAAAAAAAA41UXU/bMBR951dYeaat44Sk6VupEBOIbgzGpE1T5MY2NaR2ZTuFCvW/z3aSJgEm - LQ+Wcj98zz33+L6dABAUWBEdzMBv+wPAmz+tueTi2Zlbg4ustJEbqqw1WPxI1ovbl5CYsnrS15ch - 1Q/3JTJBk384bS9iXDxStVVcGJc4LVIGYxRFyRlm02kR0SgpGERpnNACJzEjBYsSQgpEQxZlNpwW - GYsYI/AMoyQNjhcXu12uqK5Kd6+oyvLoEdVmVcN87X2h/bpsvNP5VmqDy3yDTbF22ITs/PR1yxU2 - XIp8I4Vx/hAeK2yowUNyFH20sZ4aKVil3U8b7rjjZp8b+eIj+g5MiG1C58g5zuUrQB8p5MTfu0ie - ULmEi4uKRS8mTa/Q6vZnqnqMYEMfpdq7aGnWloIjYLPfUmcuFCXcDEls+x9wuMLiORd447Ouvt18 - /X45X4LFl/ndBTifL69PwXI8Hw/51EZRajo+91R3ASuFhe/jgWvcmastsahJjr06EAzPRjAaoeg+ - jGZxNovTcRimYRr/6pWqKbPxfXFagq2l30OtYuqY/cQcunohisAN5gLceej9wVhpGN/8p/NspFNI - 4mMyiELYzy5kJYza502Aq//hZRRY5ISu7DhmgOFS007ANe+DgfQEuafYPUIEUadI+xre9Rlwne+o - 4oxTx7tRVVfAqf/4doK6edBIEdg5gbo/4OADIoGQBniZ9Cbu4Ddyeo9/rShztEz8cpn8h3IVHaog - HoVwhNJ7mM3gdIaSMYRZklkVeBYP9vzj2Hq3puplNnZV87Us/V5rQbx5LGNODh5V468pb/N6C27S - bjs9aTJbw6GZc5NEuN5Wxir901JH76CQn/q/Mmqfbe5wcvgLinZLo6IFAAA= + body: {string: !!python/unicode '{"ExpirationDate":"1234","Alias":"356999XXXXXX0132","CardType":"CB_VISA_MASTERCARD","CardProvider":"MASTERCARD","Country":"USA","Product":" ","BankCode":"unknown","Active":true,"Currency":"EUR","Validity":"VALID","UserId":"8301771","Id":"8301774","Tag":null,"CreationDate":1440851675}'} headers: - content-encoding: [gzip] - content-length: ['671'] - content-type: [application/json] + cache-control: [no-cache] + content-length: ['286'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] status: {code: 200, message: OK} - request: body: null headers: {} method: GET - uri: https://api.balancedpayments.com:443/cards/CC6j2lN0CEuf3wt77J2bQW7r + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/users/8301769 response: - body: - string: !!binary | - H4sIAAAAAAAAA41UXU/bMBR951dYeaat44Sk6VupEBOIbgzGpE1T5MY2NaR2ZTuFCvW/z3aSJgEm - LQ+Wcj98zz33+L6dABAUWBEdzMBv+wPAmz+tueTi2Zlbg4ustJEbqqw1WPxI1ovbl5CYsnrS15ch - 1Q/3JTJBk384bS9iXDxStVVcGJc4LVIGYxRFyRlm02kR0SgpGERpnNACJzEjBYsSQgpEQxZlNpwW - GYsYI/AMoyQNjhcXu12uqK5Kd6+oyvLoEdVmVcN87X2h/bpsvNP5VmqDy3yDTbF22ITs/PR1yxU2 - XIp8I4Vx/hAeK2yowUNyFH20sZ4aKVil3U8b7rjjZp8b+eIj+g5MiG1C58g5zuUrQB8p5MTfu0ie - ULmEi4uKRS8mTa/Q6vZnqnqMYEMfpdq7aGnWloIjYLPfUmcuFCXcDEls+x9wuMLiORd447Ouvt18 - /X45X4LFl/ndBTifL69PwXI8Hw/51EZRajo+91R3ASuFhe/jgWvcmastsahJjr06EAzPRjAaoeg+ - jGZxNovTcRimYRr/6pWqKbPxfXFagq2l30OtYuqY/cQcunohisAN5gLceej9wVhpGN/8p/NspFNI - 4mMyiELYzy5kJYza502Aq//hZRRY5ISu7DhmgOFS007ANe+DgfQEuafYPUIEUadI+xre9Rlwne+o - 4oxTx7tRVVfAqf/4doK6edBIEdg5gbo/4OADIoGQBniZ9Cbu4Ddyeo9/rShztEz8cpn8h3IVHaog - HoVwhNJ7mM3gdIaSMYRZklkVeBYP9vzj2Hq3puplNnZV87Us/V5rQbx5LGNODh5V468pb/N6C27S - bjs9aTJbw6GZc5NEuN5Wxir901JH76CQn/q/Mmqfbe5wcvgLinZLo6IFAAA= + body: {string: !!python/unicode '{"Address":{"AddressLine1":null,"AddressLine2":null,"City":null,"Region":null,"PostalCode":null,"Country":null},"FirstName":"David","LastName":"Foobar","Birthday":0,"Nationality":"BE","CountryOfResidence":"BE","Occupation":null,"IncomeRange":null,"ProofOfIdentity":null,"ProofOfAddress":null,"PersonType":"NATURAL","Email":"nobody@example.net","KYCLevel":"LIGHT","Id":"8301769","Tag":null,"CreationDate":1440851665}'} headers: - content-encoding: [gzip] - content-length: ['671'] - content-type: [application/json] + cache-control: [no-cache] + content-length: ['415'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/users/8301769 + response: + body: {string: !!python/unicode '{"Address":{"AddressLine1":null,"AddressLine2":null,"City":null,"Region":null,"PostalCode":null,"Country":null},"FirstName":"David","LastName":"Foobar","Birthday":0,"Nationality":"BE","CountryOfResidence":"BE","Occupation":null,"IncomeRange":null,"ProofOfIdentity":null,"ProofOfAddress":null,"PersonType":"NATURAL","Email":"nobody@example.net","KYCLevel":"LIGHT","Id":"8301769","Tag":null,"CreationDate":1440851665}'} + headers: + cache-control: [no-cache] + content-length: ['415'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/cards/8301774 + response: + body: {string: !!python/unicode '{"ExpirationDate":"1234","Alias":"356999XXXXXX0132","CardType":"CB_VISA_MASTERCARD","CardProvider":"MASTERCARD","Country":"USA","Product":" ","BankCode":"unknown","Active":true,"Currency":"EUR","Validity":"VALID","UserId":"8301771","Id":"8301774","Tag":null,"CreationDate":1440851675}'} + headers: + cache-control: [no-cache] + content-length: ['286'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/users/8301769 + response: + body: {string: !!python/unicode '{"Address":{"AddressLine1":null,"AddressLine2":null,"City":null,"Region":null,"PostalCode":null,"Country":null},"FirstName":"David","LastName":"Foobar","Birthday":0,"Nationality":"BE","CountryOfResidence":"BE","Occupation":null,"IncomeRange":null,"ProofOfIdentity":null,"ProofOfAddress":null,"PersonType":"NATURAL","Email":"nobody@example.net","KYCLevel":"LIGHT","Id":"8301769","Tag":null,"CreationDate":1440851665}'} + headers: + cache-control: [no-cache] + content-length: ['415'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] status: {code: 200, message: OK} - request: body: null @@ -217,14 +273,14 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA52TTW6DMBCF7+I1iYH8tLFU9QKVuukqm8iAAyMZ27INEUW5e8dAIhpVlcgKsOd9 - fn7M9ETqEhRhREImLDe8IxGBgrAk3e3j+HCICG+55/bUWIlllffGMUrHRbcuwVdN1jhhc628UH6d - 65o29CZ/b982SCztRAloggsPNAMTaZQjztG5o8rX8sHBePJQP688ayn1BfWPhv89gt5l6G18B1U+ - g0BZT7WvBCaG17iGy4PzC+0Mkp6GxwmKAHH4D6wollmaRGjootBLT60weqA1mcstGA9aLbT2S4oo - bUuu4Js/gUKpQ0IwtdDEIEGpaLHlFmpHTU+NhZbnXYjDilxAi+k+w3sQI853RmCbf86SCZmDFyde - 1GHczlw6ERHF61D4MZs97GfDVUeYaqSMSIbzOY0dTt290Ye2R6bU+RD8OFSi5hCGFDcqsIJnEunT - URnoccc0mYT8NCbIkohMC0PLERbf+h9HaPaFbT185Yj1GBT3SEvjZLeKd6s0/UpStn1h6f6IZzem - +Ltmw5JXlmyP5PoDJJ9p5ngEAAA= + H4sIAAAAAAAAA52TUW+kIBSF/wvPtqi7M92SNP0DTfalT32ZoFK9CQIBtJk1/e89qNO4k80mzpNA + 7vk4HO+dmLYtGSaYpkp56eSZZYwaJorycMzzx8eMyVFG6U+D1yjrYnRBcL4chvuWYjdUQ1C+tiYq + E+9r2/OBX+TP49MPEFu/UhKa4eCK5mglLXLgAt866mKvrxwsN8/128p3q7X9gP7a8H+v4N8yeFvW + ZNpbEJBN3MZOITE84zM9nkLcaWeWTDx9TtQkSMA/8KrZZ2kVwdCHgZeJe+XsTBuqUHtykazZae0v + KVDWt9LQH3kDCtIAQjK108QsgVSNaLmd2kUzcedplPU5xeFVrWhEurfwrsTAxbNTaPPfm2RS5hTV + STZ9Grd3qYPKmJF9KnzZzB762UlzZsIMWmeswnyuY4ep+270ue3B1Laeg7+Uq14SxnTRduSVrDRu + WFlkL0s3VJrq0xKjKDK2Hsx9x0R+GQLM0WaH3p53NbgRackIa2VeHO7yw11Zvhal+PkgyuMbnA2u + +UfN8bX4JQ4Fyt7Y5xdr+YwtfQQAAA== headers: access-control-allow-credentials: ['true'] access-control-allow-origin: ['*'] @@ -235,8 +291,8 @@ interactions: content-encoding: [gzip] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] - etag: [W/"16c5616f1f7f57adf84ebb85c70008d6"] - last-modified: ['Fri, 22 May 2015 13:18:14 GMT'] + etag: [W/"edf8aa2a5f76e98e1d67c6477ace9626"] + last-modified: ['Tue, 26 May 2015 18:51:47 GMT'] status: [200 OK] strict-transport-security: [max-age=31536000; includeSubdomains; preload] transfer-encoding: [chunked] @@ -248,7 +304,14 @@ interactions: method: GET uri: https://api.github.com:443/orgs/liberapay/public_members response: - body: {string: !!python/unicode '[]'} + body: + string: !!binary | + H4sIAAAAAAAAA52TwWrDMAyG38XnUq+MwhYYO+wZdiojuI7qCBzb2EpKG/rulZMwuhwG7snB6Pv0 + W7EPo7DeoBOV+GqVM0p7sRHYiGq3f9vt3182Qg2KVKz7aLmoJQqpknLeTFuD1PbHPkHU3hE42mrf + yV4u9Ofw8co+ExdJFgveWMkCLqKZZluSD3Fa6uyq/9x3Kn8oPHlr/Znpddr/GshfioPN3+jMEwam + RumpBR4WH+GWD46JysJMxCjzUmOTHYmnH6EpCrQwHOfsOMkoIwQ/yfpj0hEDoXdlwf6QbPLRKIdX + VW5iMrEgRyqLMBFMwsAXrQydkVGGiIPSlzyKCBpw4ME+oVuxbKNLAL7b3/zj85iRoFZNlx/WSdkE + t587ouWI2WoDAAA= headers: access-control-allow-credentials: ['true'] access-control-allow-origin: ['*'] @@ -256,12 +319,13 @@ interactions: X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval'] cache-control: ['public, max-age=60, s-maxage=60'] - content-length: ['2'] + content-encoding: [gzip] content-security-policy: [default-src 'none'] content-type: [application/json; charset=utf-8] - etag: ['"98f0c1b396a4e5d54f4d5fe561d54b44"'] + etag: [W/"7e1bcc65d400d193c9e55e41e2c7beaa"] status: [200 OK] strict-transport-security: [max-age=31536000; includeSubdomains; preload] + transfer-encoding: [chunked] vary: [Accept, Accept-Encoding] status: {code: 200, message: OK} version: 1 diff --git a/tests/py/fixtures/TestPayday.yml b/tests/py/fixtures/TestPayday.yml deleted file mode 100644 index d527d0f887..0000000000 --- a/tests/py/fixtures/TestPayday.yml +++ /dev/null @@ -1,505 +0,0 @@ -interactions: -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t/cards?limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA6VV30/bMBB+56+w/LAnaBOnJG0lNJUKMYHoxmBMYpoiN7apIbUr2ymtUP/32U7S - JAOmafNDpNwP3913351fDgCAGVZEwzH4YX8AePFfK865eHLiWuAsC23kkiorhdNv8WJ6/RwSkxeP - +vI8pPruNkcGVv67w/oixsUDVSvFhXGOwyxhwQBFUXyM2XCYRTSKMxagZBDTDMcDRjIWxYRkiIYs - Gllzmo1YxBgJjjGKE7i/OFuvU0V1kbt7RZHne40olvMyzU3rhPY03nit05XUBufpEpts4XITstHT - zYorbLgU6VIK4/RhsI+wpAZ3wVH0wdp6aKRghXY/tbnDjpttauSzt2grMCG2CJ0ipziVG4BeQ8iJ - v3caP6J8FkzPChY9myS5QPPr74lqIYINfZBq66ylWVgI9gmb7Yo6caYo4aYLYl1/B8M5Fk+pwEvv - dfHl6vPX88kMTD9Nbs7A6WR2eQhmvUmvi6c2ilLT4LmlujGYKyx8HXdc40ZcrIjNmqTYswMF4eAo - DI5QchuMxsFwjJLe8DgeReF9K1QJmbVvk9MCbCXtGkoWU4fsG+LQxQtRBK4wF+DGp95ujKWG8cW/ - 2c+KOpkk3mYUoDBoe2eyEEZt08rAxX81GRkWKaFz244xMKqgDX9L2Dv9aPFxS7GbQRSghpB2GH4r - E3KdrqnijFMHeyeAI/9+dGBZO6iYCGybQFkecNkDIoGQBniWtBrusq/YNAYM57rJf6Eoc6j0/W7p - /wVxFf0jCeJeEIzi0eC+nI2dhfKnQwt25hDmWHsW9etNZWO/s6fK1D7mfMnNSRh8kIxpak7qHkJB - N921ApuiqjX475f7qDbReqHAMrqVVA2FK0XXXBZuATcsgEbadeX8SqZAxtX/F2xh9Mv6t41fvgs9 - wvWqMHaOm3a++K72ONn199oqoVLTfidaraj8au2uGpcqkHNNFzL3b1HNnFaolr4TzA/QOz6VzlV4 - sPsF+3TExu0GAAA= - headers: - content-encoding: [gzip] - content-length: ['752'] - 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/CC6j2lN0CEuf3wt77J2bQW7r/card_holds - response: - body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": - \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"order\": - null,\n \"card\": \"CC6j2lN0CEuf3wt77J2bQW7r\",\n \"debit\": - null\n },\n \"updated_at\": \"2014-10-27T09:10:32.932977Z\",\n \"created_at\": - \"2014-10-27T09:10:32.662655Z\",\n \"transaction_number\": \"HLUNG-LBC-33EM\",\n - \ \"expires_at\": \"2014-11-03T09:10:32.860544Z\",\n \"failure_reason\": - null,\n \"currency\": \"USD\",\n \"amount\": 1000,\n \"meta\": - {\n \"state\": \"new\",\n \"participant_id\": \"2\"\n },\n - \ \"href\": \"/card_holds/HLOqjAlUo5WHsYcfCXYYKhG\",\n \"failure_reason_code\": - null,\n \"voided_at\": null,\n \"id\": \"HLOqjAlUo5WHsYcfCXYYKhG\"\n - \ }\n ],\n \"links\": {\n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\",\n - \ \"card_holds.order\": \"/orders/{card_holds.order}\",\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: ['1019'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: '{"amount": 1000, "meta": {"exchange_id": 1, "participant_id": 2}, "description": - "janet"}' - headers: {} - method: POST - uri: https://api.balancedpayments.com:443/card_holds/HLOqjAlUo5WHsYcfCXYYKhG/debits - response: - body: {string: !!python/unicode "{\n \"debits\": [\n {\n \"status\": - \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"customer\": - \"CU6hCQw1dtlujsKG1esVTl2t\",\n \"source\": \"CC6j2lN0CEuf3wt77J2bQW7r\",\n - \ \"card_hold\": \"HLOqjAlUo5WHsYcfCXYYKhG\",\n \"order\": null,\n - \ \"dispute\": null\n },\n \"updated_at\": \"2014-10-27T09:10:35.643906Z\",\n - \ \"created_at\": \"2014-10-27T09:10:35.140958Z\",\n \"transaction_number\": - \"WRTX-X3R-IUGC\",\n \"failure_reason\": null,\n \"currency\": \"USD\",\n - \ \"amount\": 1000,\n \"failure_reason_code\": null,\n \"meta\": - {\n \"exchange_id\": \"1\",\n \"participant_id\": \"2\"\n },\n - \ \"href\": \"/debits/WDRdguRWD3FCiG8dRSDGwjb\",\n \"appears_on_statement_as\": - \"BAL*example.com\",\n \"id\": \"WDRdguRWD3FCiG8dRSDGwjb\"\n }\n ],\n - \ \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\",\n - \ \"debits.order\": \"/orders/{debits.order}\",\n \"debits.dispute\": - \"/disputes/{debits.dispute}\",\n \"debits.source\": \"/resources/{debits.source}\",\n - \ \"debits.events\": \"/debits/{debits.id}/events\",\n \"debits.refunds\": - \"/debits/{debits.id}/refunds\",\n \"debits.card_hold\": \"/holds/{debits.card_hold}\"\n - \ }\n}"} - headers: - content-length: ['1166'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: '{"status": "succeeded", "description": "janet", "amount": 1000, "created_at": - "2014-10-27T09:10:32.662655Z", "card_href": "/cards/CC6j2lN0CEuf3wt77J2bQW7r", - "updated_at": "2014-10-27T09:10:32.932977Z", "expires_at": "2014-11-03T09:10:32.860544Z", - "failure_reason": null, "currency": "USD", "transaction_number": "HLUNG-LBC-33EM", - "meta": {"state": "captured", "participant_id": "2"}, "debit": null, "failure_reason_code": - null, "voided_at": null, "order": null, "id": "HLOqjAlUo5WHsYcfCXYYKhG"}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/card_holds/HLOqjAlUo5WHsYcfCXYYKhG - response: - body: - string: !!binary | - H4sIAAAAAAAAA4VTy27bMBC85ysEnSOJkmz5cWvk1EbrpqgTw3WKQqBJuqYrUypFJi0M/XtIWk+k - aS+EsLuzOzs7Ol9Zlo0gx8khS3FhT61vKmJZZ/OqXCGgkDpuFxIhQjDB9nWdxKRAnOaCZkxXHCEj - os2mlP3UyLqX6pZxTLgKMZmmdZeKgG4Qx9ExSO9AfCv34bMYjT4Euy+bEW96qlpMdlTo4s1shX/I - 1WYWvo/pfIxX97P583FnV+TKhqXMMRQEJ9DAAuAPHB84wegBTKY+mIaRG0wm/jh4bKkjTv4JCdwo - CqLhsAMRHLICIq1FwuRpZ/a0F8v13dxZ3sROGN5+ageQ3znlpOhx8h0Q1pwCdxyB4WDQGbCHNJWc - JIpaYfTuimgjyTlh6I8eur6ftZPgKZNMb+4DABpNTkRAFeucRh+aaDSCuVBz2jMr0XPIBUU0h0wk - FBsZX+t84GSvU17rJ2+x/Pzr+C5dZ8PNotiiffx1u/14mLf0+lslKMOaRG+1p4wq112k6iUuTN4a - YXxQqve73truu7HjeZc8ESaMxbvMz+0WLsWlV1VdFOzCa0/bnvkqvC7ShMpq3S5Kd29G9jE69TeI - cf5/eVZVr3k2P453KenxNKFS37S8Kl8AcCYBRhUEAAA= - headers: - content-encoding: [gzip] - content-length: ['488'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t/cards?limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA6VV30/bMBB+56+w/LAnaBOnJG0lNJUKMYHoxmBMYpoiN7apIbUr2ymtUP/32U7S - JAOmafNDpNwP3913351fDgCAGVZEwzH4YX8AePFfK865eHLiWuAsC23kkiorhdNv8WJ6/RwSkxeP - +vI8pPruNkcGVv67w/oixsUDVSvFhXGOwyxhwQBFUXyM2XCYRTSKMxagZBDTDMcDRjIWxYRkiIYs - Gllzmo1YxBgJjjGKE7i/OFuvU0V1kbt7RZHne40olvMyzU3rhPY03nit05XUBufpEpts4XITstHT - zYorbLgU6VIK4/RhsI+wpAZ3wVH0wdp6aKRghXY/tbnDjpttauSzt2grMCG2CJ0ipziVG4BeQ8iJ - v3caP6J8FkzPChY9myS5QPPr74lqIYINfZBq66ylWVgI9gmb7Yo6caYo4aYLYl1/B8M5Fk+pwEvv - dfHl6vPX88kMTD9Nbs7A6WR2eQhmvUmvi6c2ilLT4LmlujGYKyx8HXdc40ZcrIjNmqTYswMF4eAo - DI5QchuMxsFwjJLe8DgeReF9K1QJmbVvk9MCbCXtGkoWU4fsG+LQxQtRBK4wF+DGp95ujKWG8cW/ - 2c+KOpkk3mYUoDBoe2eyEEZt08rAxX81GRkWKaFz244xMKqgDX9L2Dv9aPFxS7GbQRSghpB2GH4r - E3KdrqnijFMHeyeAI/9+dGBZO6iYCGybQFkecNkDIoGQBniWtBrusq/YNAYM57rJf6Eoc6j0/W7p - /wVxFf0jCeJeEIzi0eC+nI2dhfKnQwt25hDmWHsW9etNZWO/s6fK1D7mfMnNSRh8kIxpak7qHkJB - N921ApuiqjX475f7qDbReqHAMrqVVA2FK0XXXBZuATcsgEbadeX8SqZAxtX/F2xh9Mv6t41fvgs9 - wvWqMHaOm3a++K72ONn199oqoVLTfidaraj8au2uGpcqkHNNFzL3b1HNnFaolr4TzA/QOz6VzlV4 - sPsF+3TExu0GAAA= - headers: - content-encoding: [gzip] - content-length: ['752'] - 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/CC6j2lN0CEuf3wt77J2bQW7r/card_holds - response: - body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": - \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"order\": - null,\n \"card\": \"CC6j2lN0CEuf3wt77J2bQW7r\",\n \"debit\": - null\n },\n \"updated_at\": \"2014-10-27T09:10:39.782703Z\",\n \"created_at\": - \"2014-10-27T09:10:39.525112Z\",\n \"transaction_number\": \"HLBDN-OP2-VEZ4\",\n - \ \"expires_at\": \"2014-11-03T09:10:39.686311Z\",\n \"failure_reason\": - null,\n \"currency\": \"USD\",\n \"amount\": 1576,\n \"meta\": - {\n \"state\": \"new\",\n \"participant_id\": \"2\"\n },\n - \ \"href\": \"/card_holds/HLW970tRRNZktzhCcFH8qDr\",\n \"failure_reason_code\": - null,\n \"voided_at\": null,\n \"id\": \"HLW970tRRNZktzhCcFH8qDr\"\n - \ }\n ],\n \"links\": {\n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\",\n - \ \"card_holds.order\": \"/orders/{card_holds.order}\",\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: ['1019'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: '{"amount": 1576, "meta": {"exchange_id": 2, "participant_id": 2}, "description": - "janet"}' - headers: {} - method: POST - uri: https://api.balancedpayments.com:443/card_holds/HLW970tRRNZktzhCcFH8qDr/debits - response: - body: {string: !!python/unicode "{\n \"debits\": [\n {\n \"status\": - \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"customer\": - \"CU6hCQw1dtlujsKG1esVTl2t\",\n \"source\": \"CC6j2lN0CEuf3wt77J2bQW7r\",\n - \ \"card_hold\": \"HLW970tRRNZktzhCcFH8qDr\",\n \"order\": null,\n - \ \"dispute\": null\n },\n \"updated_at\": \"2014-10-27T09:10:42.433199Z\",\n - \ \"created_at\": \"2014-10-27T09:10:41.975547Z\",\n \"transaction_number\": - \"WU6H-DVK-LNPT\",\n \"failure_reason\": null,\n \"currency\": \"USD\",\n - \ \"amount\": 1576,\n \"failure_reason_code\": null,\n \"meta\": - {\n \"exchange_id\": \"2\",\n \"participant_id\": \"2\"\n },\n - \ \"href\": \"/debits/WDYTyBJ21qn8lzARshXNYRO\",\n \"appears_on_statement_as\": - \"BAL*example.com\",\n \"id\": \"WDYTyBJ21qn8lzARshXNYRO\"\n }\n ],\n - \ \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\",\n - \ \"debits.order\": \"/orders/{debits.order}\",\n \"debits.dispute\": - \"/disputes/{debits.dispute}\",\n \"debits.source\": \"/resources/{debits.source}\",\n - \ \"debits.events\": \"/debits/{debits.id}/events\",\n \"debits.refunds\": - \"/debits/{debits.id}/refunds\",\n \"debits.card_hold\": \"/holds/{debits.card_hold}\"\n - \ }\n}"} - headers: - content-length: ['1166'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: '{"status": "succeeded", "description": "janet", "amount": 1576, "created_at": - "2014-10-27T09:10:39.525112Z", "card_href": "/cards/CC6j2lN0CEuf3wt77J2bQW7r", - "updated_at": "2014-10-27T09:10:39.782703Z", "expires_at": "2014-11-03T09:10:39.686311Z", - "failure_reason": null, "currency": "USD", "transaction_number": "HLBDN-OP2-VEZ4", - "meta": {"state": "captured", "participant_id": "2"}, "debit": null, "failure_reason_code": - null, "voided_at": null, "order": null, "id": "HLW970tRRNZktzhCcFH8qDr"}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/card_holds/HLW970tRRNZktzhCcFH8qDr - response: - body: - string: !!binary | - H4sIAAAAAAAAA4VTXW+bMBR9769Afh4BQwhJ3takU1RV6ZZ1y5ppQo7tKG6Jobbp1kb899kOAaPu - 48VC995zz7nnXo4XngcwEiTbFzmRYOp91xHPO9pX56RCqjJxICuMKSWUgHfnJKESC1YqVnBT8YA4 - VV02Z/zRIM+9dLdCECp0iFd5fu7SCDANZrPRQ5Qvw9lVtYt/qjS9jraf1qloe+paQrdMmeL1/P7u - 5fI6gk98nL++X8n9t+X96hY04upWZVUSpCjJkIVFIRz6MPSj9C6cTGE4HcaDMEniyXDTSceC/gsS - TwZJlEAYORAlEJcIGy8yXh22dk6wuLmcL/3bj5H/9Woz7Ajor5IJKnuaoB/GjSZNMBqPYggdgh1i - eSVopqVJ67drIsCVEJTjF0P65fO8Y0KHouJmcpiko9aTA1VIx5zVmEVTg8aoVJqnW7M2vURCMcxK - xFXGiLXxrc97QXcmFXT3FCxu1pM0VKvVcvOoXvcz/GExfpp3CwX9qTJcECOiN9pzwfTVnazqJU5K - /kZh76DW7w8zNehfo3PzA/pMubIn7io/dlMMGKmDpurkoAs/3zQI7JcMXKQN1c02XJTp3lL2MSb1 - J4i9/P/qbKre6mx/nOBU0tNpQ7XZaX1R/wZbc9mpFQQAAA== - headers: - content-encoding: [gzip] - content-length: ['490'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6lY9SYo3pQ4dtkQKfAwZ5X/bank_accounts?limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA61Uy27bMBC85ysEHXpqbJKyXgaCwi76QGMkcNKiTYpCoEkqYa1XKcq1YfjfS9JS - JDl2kUMuArS73J2dGez2zLLsBc6WESYkrzJZ2mPrpwpa1tZ8VVrkleTZQ5RV6YIJlbchgmCEggDZ - b5si0yPDKdP57x9ms1vr4+Tm07U1nVxdWleTtrIeFMlNYYrJIyNL1b+taNp8zlMmrC9406YSni01 - xAacgkeqUupC3ev9Ny+5C2/vcqeYj6hczi/jyd9798dTg4NtoxUTPOYES55nqkFWJUm90e5pNYKz - iAhGuVQVUlSszQiGJaMR1hkbATg6h+Ac+V9BOAbBGIUDb+QC6N+3C8RqUyYKwTPzhmLiuXBEQ0od - DAn1MQmRS11/FDLggIAglY8x8okLPMziBSDhAkEPwjgOQy9sG1cF/R8WBwwcAEIHdbA8ChZrEMOe - AYbTiZf5N1MR/AlmKwjz3w9VmM7XvJ2VMom1CC1HjaitR9brNXIc3NGdUsHKQ/G43NS8N6wqiZTK - DB0Pw+fhUqrFn4eLXCWSiOT0SNJ4XWy62aO6U7Ywssc4KVvdOdW0neTJdNqp7y+9k92wZcJ2gkuj - /LDxbTk85dq+Lu8SnnJ5AcGbPI5LJi9Aza2dsbVuqc27J9F+Uvb1hpjpagoE9Yw9ChVpAoVgK55X - WuEOFJkrFfS7+lnMxesRoCg1HtSO6dyF/kUbGBE1rEOnb3vGH3C6G9a1Ndh+vvvXuxwv7N09NmUj - Xn9E95h1HHIAtKnanWhijtULQe0v2wk4Jzc2ZPb2GR5gPPl0Z2vVznb/AINZOYl7BgAA - headers: - content-encoding: [gzip] - content-length: ['621'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: '{"amount": 1500.00, "meta": {"exchange_id": 3, "participant_id": 3}, "description": - "homer"}' - headers: {} - method: POST - uri: https://api.balancedpayments.com:443/bank_accounts/BA6n7RBr8q8Lv11ojgu9mQxi/credits - response: - body: {string: !!python/unicode "{\n \"credits\": [\n {\n \"status\": - \"succeeded\",\n \"description\": \"homer\",\n \"links\": {\n \"customer\": - \"CU6lY9SYo3pQ4dtkQKfAwZ5X\",\n \"destination\": \"BA6n7RBr8q8Lv11ojgu9mQxi\",\n - \ \"order\": null\n },\n \"updated_at\": \"2014-10-27T09:10:46.253242Z\",\n - \ \"created_at\": \"2014-10-27T09:10:45.906423Z\",\n \"transaction_number\": - \"CRYUI-3CU-3FKH\",\n \"failure_reason\": null,\n \"currency\": - \"USD\",\n \"amount\": 1500,\n \"failure_reason_code\": null,\n - \ \"meta\": {\n \"exchange_id\": \"3\",\n \"participant_id\": - \"3\"\n },\n \"href\": \"/credits/CR13j0o6D2ikxnN2VQYA3mUR\",\n - \ \"appears_on_statement_as\": \"example.com\",\n \"id\": \"CR13j0o6D2ikxnN2VQYA3mUR\"\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: ['1020'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t - response: - body: - string: !!binary | - H4sIAAAAAAAAA41UPW/bMBDd8ysEzXX0Aad2vGbI0KlA2qFFIdAkCzGhSJc8tjUM/fcebUmmRbXs - ouHuvUfeuyee7rIsp86C7rix+S77ioUsO52/2FKk41hVTsp3Y00K9eahIwhhVjtD50CsM25BKAJC - q0FlEOknNXdgBDhrCCAir8tqvarKVb15KR935XZXr++3j/Vms/2STxRqeIKyeSirhzqgML1vOq2g - nQ8jmD/26dP79unjr4qBdK/2w3PF7ecXWcP1zEOr1XzAvDX8u6cXk4NFWgmNpi1R0Fgg4LyRudKr - jgBtr8d1HMjMYv7DQ6s8ctDPduTEzEcjjBluZ5uiAo4zIO4JV8rr5XIVl/3F516gyEFjQzZUs4Um - 1U6BOYbdaJC9s3gPa5ul1FmrGkksrOdj8o4IGRXFTeB6POubz4+fNAjvNfr3U4TzAl0759kWp2mx - Q78fVhQQKTGsabVk51UGUQjIgvVFgLskOdDYE/XWEHo2KSFzC42UGN+LlMSAWeCGf+tffAh+6QUz - +G/gRmEK/m+YGB5dytuWsOQCiZhM2IMDniBPqIgPhihLqH+8Eho3yEgHHwmnUjOMoAX2T3yZiUxc - wfARFilowy5v+z/COWAiLj61LJmnEYT/V3/X/wFUXpsCUwYAAA== - headers: - content-encoding: [gzip] - content-length: ['493'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6lY9SYo3pQ4dtkQKfAwZ5X - response: - body: - string: !!binary | - H4sIAAAAAAAAA41Uy27bMBC85ysEnevIchTb8a3osacgKdCkKASaZCDCEqnw0dYw9O9dypJMk0rZ - iw67M0Pu7IinmyRJsVFaNFSqdJf8gEKSnPovtDhqKFS5qetPY61m/GChIwhgShiJfSDUCVWacaSZ - 4IPKINJNaqYlSFNSIg2IdLXMi0W+XKw2z8uH3XK7W21vN8VmvSle04mCJY1Q1nmeb+8dChH7shFc - V/4wjNhjv3xb1y8PTy/irn0siD48fn37/Pv1/vvlzLYS3B8wrSR9s/RscjCLK4HRuEJcl0ojbayR - KReLBmlcXY5rqEaexfS9NygNHLSzHSmS/miIEEmVtynM9NEDwp5gpXQ1X87Dsr247wWItAIadYkF - mWliYbiWR7cbDLI3Cu6hVDmXOqV4WSOlC39M2iBWB0V2FbgOzvpp82MndcJ7if7tFOE0A9f6PKvs - NC126HfDihwiRpKUlahJv0onCg6ZkS5zcOckOxp7xA8lwr1JEZlraKBE6J7FJAbMDNf9Wz/wwfml - Z8ygfzSVHFLwf8OE8OBS1raIJWdIwCRMtUbTCHlCBXwtEVcI28cronGFDHTgkTA8NsMImmH/gpcZ - 1ZErSDrCAgUhyflt/0c4B0zAhaeWRPM0guD/6m66v+0AXvlTBgAA - headers: - content-encoding: [gzip] - content-length: ['495'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6lY9SYo3pQ4dtkQKfAwZ5X/credits?sort=created_at%2Cdesc&limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA9VVW0/bMBh951dUlsbTmjiXJgQJTbQI2NgmtSxoZZoqN3HBkNjBdrpOqP99tptb - QSA0xsNeotbf5Rx/Pj6+3+n1QMJxSqQA+70f6m+vd2++KiAkkqVeB6JMEoxTnIL3dTDFIuGkkIRR - nXHNcszbaEbora6se2mYUkiTpLJHcZBNo/Mp84qxn8rb8dni8Nfl4HvTQOUrAEkoqgGGhwENJ0O+ - d7f3eek47OaqjPLxinRLGE9Nf1pmWcVz3RAuixRJnM6Q1Axc6Ph9B/bd8BuM9h247weWO/Bc371s - d6Em82zJwIpg4Ltep0RyRAVKNOsZLfN5td/JNP7Y90Zx3zs+O20BFohkJcczhSPMHDXzhnFSco5p - 8lvzjc+P2jKUs5LqbTgDCJv07WazhKX4YcccS7R9KniVXCN6hWck1TBed5wF4pIkpEBUNuFHY73m - eKEr7UpG9mjieDeQBUcuuV3Rr+7FeHro5fGkQ78oMOJipkakJYZzrACQERpeobzIsJWwvM3fUHuy - r6FUnfNfaXfO5i3Yf6ZcJV4vsGDo+l5Xhs8pV5e4lg/3wjB8gXLhMOofx4N+HA7H/1C50WuV+1id - PniJOsPl6WROy09fosHcOQmz6eVxcHLxenU+0XejTvX9qS8q2LqBIEPCuJFdm6Own7LG+n59EIzL - g/Z837kjbcW7GcmJPHDgLlssBJYHsNoRoHilMVpnAe2VrSz5DVANHe1QlT+BDS21Ui8UHC8JM+9L - h5tkEmVqyd3YGlgQ/oYjUidijANs3/r6SbTwUlmTMabG3u4rn7NIurareMW1jtTPELDNL2E3Neb/ - uj6ZOl8NQmWh7BmgNuUB1oNX0uZYsJInuAPaSXkE3X2UOyJsCNfxtb5a6531HyLxUocxCAAA - headers: - content-encoding: [gzip] - content-length: ['681'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t/debits?sort=created_at%2Cdesc&limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA92XW2/qOBDH38+nqJD2PKw2qZ2QOFSqViU5hQXKJeHa1QqFxEBoLpA40NOq332d - CwTYsq3asCv1BcV2/jP2zM+T4fnbxUXBwUQvXF0802c6svWA0FHh0ggD4jnYDy7lnjiXOx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Zp7ZrxJJWe - Zs1FVogK+ic6mRO2vxzmFUVY+OKQLByVWAPgGJJU1f4LzCUkImm/Mf+3Wh5hzrMA0v8E7+hlgHTH - 8G3IgA4c5oc5B0r/Ty1HVaXeqK6lPq9U8d1c1x6b9X5ODfsJ218Oc3kizquGoy0M25zWh7PGU6e4 - OT/mPCtAUDzov9/AnC+xCCBRfEc1byGFkRoagxROyA9z+OmW/aPVXOkTJN4OxdndjNyGlYXYCVoP - +fQs6HXbCeb0969vL38DEYZln7sUAAA= - headers: - content-encoding: [gzip] - content-length: ['1106'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/credits?meta%5Bcontains%5D=exchange_id&limit=25&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA6VUXWvbMBR9768IgvZpib/itAmUkQ/GRscg6TKWjmE0+bpRY0ueJHcZwf99kuKv - pHQP24uwdc+959xzJR0uej1EBMRUSTTpfdO/vd7BrjogFVaF2UeyIAQghhi9qYMxSCJorihnBrHl - GYg2mlK2M5l1LUNTSGVBGj1fj9LN+H7Dg3w5jNVueZdMfz2EX5sCGq8JFGW4JphNR+x6NRM3P28+ - Pnsef3osxtlyT7spXMS2PivStNJZNoKLPMYK4ggro8B3vWHfc/v+9Wd3PPHcyXA08MPAH/oPbRfa - mb+mhIOxOxr6QSdFCcwkJkZ1xIrsR9XvarP+0A/m637w7u59S5BgmhYCIs0jrY9GeaOYFEIAI7+N - 3vX9ok3DGS+YacMLXbeBnxaLCI/hvGIGCp9OBfZki9kjRDQ2NEHXzhwLRQnNMVNN+IWtWwGJyXSq - Y+TMV17w5PLRwqe7Pfvkf1lupkG2XnXk5zlgISNtkTlikIEmwPagwR5neQoDwrMWf5T2al0rqdTr - d2MFOukRpVjaedfy3qY0o+rWD68M7jKcEc4UpkxehovbjhlXPEkkqFu3koEY7E2hdkDovPN/Lm0l - 6dp+eJwlOnLrnWq4KBfwTLm9ix0Biiuc6i2vSkuo+N9mtYH2xqDTC1y/EYP6hiHHfknnUI39GClr - t+pdrVujcGqH2xyRJonGpdNCqjbq3O6D4dQ/HcZ66wWp5mT2PXuFsYqf0Z29N1qX5IUg0GHsQEpk - rLoo/wAt/y9PQgUAAA== - headers: - content-encoding: [gzip] - content-length: ['583'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: '{"status": "succeeded", "transaction_number": "CRYUI-3CU-3FKH", "description": - "homer", "created_at": "2014-10-27T09:10:45.906423Z", "appears_on_statement_as": - "example.com", "updated_at": "2014-10-27T09:10:46.253242Z", "order": null, "destination_href": - "/resources/BA6n7RBr8q8Lv11ojgu9mQxi", "currency": "USD", "amount": 1500, "meta": - {"participant_id": "3"}, "customer_href": "/customers/CU6lY9SYo3pQ4dtkQKfAwZ5X", - "failure_reason_code": null, "failure_reason": null, "id": "CR13j0o6D2ikxnN2VQYA3mUR"}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/credits/CR13j0o6D2ikxnN2VQYA3mUR - response: - body: {string: !!python/unicode "{\n \"credits\": [\n {\n \"status\": - \"succeeded\",\n \"description\": \"homer\",\n \"links\": {\n \"customer\": - \"CU6lY9SYo3pQ4dtkQKfAwZ5X\",\n \"destination\": \"BA6n7RBr8q8Lv11ojgu9mQxi\",\n - \ \"order\": null\n },\n \"updated_at\": \"2014-10-27T09:10:51.753802Z\",\n - \ \"created_at\": \"2014-10-27T09:10:45.906423Z\",\n \"transaction_number\": - \"CRYUI-3CU-3FKH\",\n \"failure_reason\": null,\n \"currency\": - \"USD\",\n \"amount\": 1500,\n \"failure_reason_code\": null,\n - \ \"meta\": {\n \"participant_id\": \"3\"\n },\n \"href\": - \"/credits/CR13j0o6D2ikxnN2VQYA3mUR\",\n \"appears_on_statement_as\": - \"example.com\",\n \"id\": \"CR13j0o6D2ikxnN2VQYA3mUR\"\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: ['992'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/debits?meta%5Bcontains%5D=exchange_id&limit=25&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA91VXW/aMBR976+okNqHaUASCIFK1dSGFfohuqZQoNMUGdsU08RJbaef4r/PdgIJ - bN0mjb3sJbJ9fc71PffYedvZ3S2FWIDSwe6bHMtZALiQs1IV4QkR/FNAQiIOLXtfbduzj2FEBSCU - 79ntQ/wMZ4DeYZ+g/Wg65VgcGqWPKQ/Fz4qHJkGQrcwYnm6DWZ9IEll2RpymlitGthAz/EiihK/n - F5EAgcJlu6aE/WWpstKFIisFhN6rbJmGqXQVmHARhZjpopcTXn3bCC+WkmXriPA4ETiVKh3noCy4 - ieFRwmAKYTid5Jh0vgmBgCF/FgVIJ1KDwtGWsU1QxFBWjx7lCD3d3C0bnlCkhFnaaVU8QYvqMpz1 - IysfP2Iq3sVk0ZXyKUhm+KptlzZAdoQLILQBSjyBEGOEUSazDCLMISOxIBFVO+aAYpFH15upL0Wx - k+6gMXOvnkwkgmTOzzsm5jf9wMoJVPZVO1y3MbeCnuF+Tqa1J+E4Z9bkauiwVTrFXuxE92LYcgzh - eb3be/E6c+FJt/nQXtu/bEJ+t/Qhc9+ogJYj86cOJzECAiMf6OttGWa9bBply+kbrQPTOKhblXqt - ZrZat7kSkOFfQsxKy7HtulOACAYoB1BJ69MknKRuGQ4a3XL75rx80fvSz/mngAQJw75Mw3UrihVJ - 0RnDFL6o4w6u2zkMhFFCVRWm7TRS88j61sl8GCF1H9YY1146LUrhBdOqFNsSAyYIJDGgQj5wafgH - VTceteqwPe6/HJ9Z5gNtBq9HHp+NemPvsnD4OMaAcV/qozyKQ+l2H2inHh9dfMDPIIwDXIFRmGPS - 7O9R6zPpd+j/8P/lw/woGET2sMvHcOqOxuPzWafYmH/i/5pdadRrLaPx5/6XELNutOzm7/3v9Ufl - Uc0rnw467hb9bxjZL29L/je34H8P3SXesF07cUmnibzrdudpPtmO/39Onfpffr/tLL4DL2HHONEI - AAA= - headers: - content-encoding: [gzip] - content-length: ['743'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: '{"status": "succeeded", "card_hold_href": "/holds/HLW970tRRNZktzhCcFH8qDr", - "source_href": "/resources/CC6j2lN0CEuf3wt77J2bQW7r", "transaction_number": - "WU6H-DVK-LNPT", "description": "janet", "created_at": "2014-10-27T09:10:41.975547Z", - "appears_on_statement_as": "BAL*example.com", "updated_at": "2014-10-27T09:10:42.433199Z", - "order": null, "currency": "USD", "amount": 1576, "meta": {"participant_id": - "2"}, "customer_href": "/customers/CU6hCQw1dtlujsKG1esVTl2t", "failure_reason_code": - null, "failure_reason": null, "id": "WDYTyBJ21qn8lzARshXNYRO", "dispute": null}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/debits/WDYTyBJ21qn8lzARshXNYRO - response: - body: - string: !!binary | - H4sIAAAAAAAAA31T227aQBB9z1cgP1YFX4ox8JZAW5Qg0lAITarKWnYHYWKvnb00TZD/vbs2yxqq - 9MXy7MyZy5kz+4tWyyGwTgR3hq2fymq19tVXvXOBhNTvDpcYAxAgzkfjJMAxSwqR5FRH7BAFYb1p - Qp800uRS2bDkIs+A6ejRsrcd3b34RKRyx2+++sDvF2lgE+jquWQYquhRbxekM2/0WW4+vYgoug7W - d6uIHcvp7IiReJunRAMm09Ug8sR8Pnt8Em/bEf4y6T+PT+JzRqpWqExTM5OmIuGFFLqqdhxmLY9D - y4IgASRGQpcJPL/b9r12EC28wdD3hmHQGYT9IAgfLROYwf8gXb8ziMKwGzUggiHKEdbUxlRm65qz - 1bI3aY/vb9rT2beFzb9BSSoZxKoMr1bRnEiRzhhQ/KrbXX4fWxjKckn1FH4Y9Y7znSaLcU4MFceQ - DARSsMZiC8REgpMCUREnFf+B8w9zWwYb7XJrsbmr8cPi9eo68J9pP327nPPtj9nD/LbRYFEAYjxW - HGgdQgYqParUeHU5/QB/UFak0MF5ZjF19fdSVz2V6vtLD+OcSvRwBJ2mSl1jcHdft310l4eiBmbk - 5LjVnwVU5nm0VZnio1acRRwezjH2HFwGtWExtX0Ogd+Ks4oxw7oZIyGle/DWizVzqC1JSt7FGPcp - 6OT2XH2EDcLMXZZaE+VF+Rf92KzXcgQAAA== - headers: - content-encoding: [gzip] - content-length: ['538'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: '{"status": "succeeded", "card_hold_href": "/holds/HLOqjAlUo5WHsYcfCXYYKhG", - "source_href": "/resources/CC6j2lN0CEuf3wt77J2bQW7r", "transaction_number": - "WRTX-X3R-IUGC", "description": "janet", "created_at": "2014-10-27T09:10:35.140958Z", - "appears_on_statement_as": "BAL*example.com", "updated_at": "2014-10-27T09:10:35.643906Z", - "order": null, "currency": "USD", "amount": 1000, "meta": {"participant_id": - "2"}, "customer_href": "/customers/CU6hCQw1dtlujsKG1esVTl2t", "failure_reason_code": - null, "failure_reason": null, "id": "WDRdguRWD3FCiG8dRSDGwjb", "dispute": null}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/debits/WDRdguRWD3FCiG8dRSDGwjb - response: - body: - string: !!binary | - H4sIAAAAAAAAA31T247TMBB936+o8ohoc+l1+7ak0IVdgTbbkhaEIteeUpfc8IWCqvw7dlLXadHy - EmU8c+Zy5szxptNxCGyo4M6081VZnc6x/qp3LpCQ+t3hEmMAAsR5bZwEOGa0FLTIdcQe5SCsN6X5 - D400uVQ2LLkoMmA6OlyOduHTwScilXv+MPeBf16kgU2gqxeSYaijw9E+SD964Vu57R/EePwh2DzF - Y3Yup7MjRpJdkRINuH/89HN/ly6LYXzP13gbrtbrh928HV8wUreSyzQ1M2kqKC+l0FW14zRrdR5a - lgQJIAkSukzg+YOu73WD8cK7nfredNjvDUeTge9/sUxgBv+D9Ic9f+DdDictiGAo5whrapNcZpuG - szharLqrftR9v5yHNv8W0VQySFQZXq+iPZEinTHI8R/d7vJ5ZmEoK2Sup/A9zzvPd5kswQUxVJxD - MhBIwVqLLRETFNMS5SKhNf+B8w9zOwZb7XIbsbnxLCLfZRTP+u9COp+Q6Hk2P+w3rQbLEhDjieJA - 6xAyUOlRrcY3d4+v4DfKyhR6uMgspqn+Uuq6p0p9v+lhnEuJno6g11apawzuHpu2z+7qVNTAjJwc - t/6zgNq8jrYqU3w0irOI08M1xp6Dy6AxLKaxryHwS3FWM2ZYN2NQUrknb7NYM4fakszJixjjvgRd - 3J6rj7BFmLnLSmuiuqn+AvitmtlyBAAA - headers: - content-encoding: [gzip] - content-length: ['537'] - 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 deleted file mode 100644 index 14acfc8dee..0000000000 --- a/tests/py/fixtures/TestPayin.yml +++ /dev/null @@ -1,535 +0,0 @@ -interactions: -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t/cards?limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA6VV30/bMBB+56+w/LAnaBOnJG0lNJUKMYHoxmBMYpoiN7apIbUr2ymtUP/32U7S - JAOmafNDpNwP3913351fDgCAGVZEwzH4YX8AePFfK865eHLiWuAsC23kkiorhdNv8WJ6/RwSkxeP - +vI8pPruNkcGVv67w/oixsUDVSvFhXGOwyxhwQBFUXyM2XCYRTSKMxagZBDTDMcDRjIWxYRkiIYs - Gllzmo1YxBgJjjGKE7i/OFuvU0V1kbt7RZHne40olvMyzU3rhPY03nit05XUBufpEpts4XITstHT - zYorbLgU6VIK4/RhsI+wpAZ3wVH0wdp6aKRghXY/tbnDjpttauSzt2grMCG2CJ0ipziVG4BeQ8iJ - v3caP6J8FkzPChY9myS5QPPr74lqIYINfZBq66ylWVgI9gmb7Yo6caYo4aYLYl1/B8M5Fk+pwEvv - dfHl6vPX88kMTD9Nbs7A6WR2eQhmvUmvi6c2ilLT4LmlujGYKyx8HXdc40ZcrIjNmqTYswMF4eAo - DI5QchuMxsFwjJLe8DgeReF9K1QJmbVvk9MCbCXtGkoWU4fsG+LQxQtRBK4wF+DGp95ujKWG8cW/ - 2c+KOpkk3mYUoDBoe2eyEEZt08rAxX81GRkWKaFz244xMKqgDX9L2Dv9aPFxS7GbQRSghpB2GH4r - E3KdrqnijFMHeyeAI/9+dGBZO6iYCGybQFkecNkDIoGQBniWtBrusq/YNAYM57rJf6Eoc6j0/W7p - /wVxFf0jCeJeEIzi0eC+nI2dhfKnQwt25hDmWHsW9etNZWO/s6fK1D7mfMnNSRh8kIxpak7qHkJB - N921ApuiqjX475f7qDbReqHAMrqVVA2FK0XXXBZuATcsgEbadeX8SqZAxtX/F2xh9Mv6t41fvgs9 - wvWqMHaOm3a++K72ONn199oqoVLTfidaraj8au2uGpcqkHNNFzL3b1HNnFaolr4TzA/QOz6VzlV4 - sPsF+3TExu0GAAA= - headers: - content-encoding: [gzip] - content-length: ['752'] - 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/CC6j2lN0CEuf3wt77J2bQW7r/card_holds - response: - body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": - \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"order\": - null,\n \"card\": \"CC6j2lN0CEuf3wt77J2bQW7r\",\n \"debit\": - null\n },\n \"updated_at\": \"2014-10-27T09:10:56.983574Z\",\n \"created_at\": - \"2014-10-27T09:10:56.725519Z\",\n \"transaction_number\": \"HLFVJ-2WZ-TC0C\",\n - \ \"expires_at\": \"2014-11-03T09:10:56.882728Z\",\n \"failure_reason\": - null,\n \"currency\": \"USD\",\n \"amount\": 1061,\n \"meta\": - {\n \"state\": \"new\",\n \"participant_id\": \"2\"\n },\n - \ \"href\": \"/card_holds/HL1fusP2srkjK5j0m8RIKUE5\",\n \"failure_reason_code\": - null,\n \"voided_at\": null,\n \"id\": \"HL1fusP2srkjK5j0m8RIKUE5\"\n - \ }\n ],\n \"links\": {\n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\",\n - \ \"card_holds.order\": \"/orders/{card_holds.order}\",\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: ['1021'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: '{"status": "succeeded", "transaction_number": "HLFVJ-2WZ-TC0C", "description": - "janet", "amount": 1061, "created_at": "2014-10-27T09:10:56.725519Z", "card_href": - "/cards/CC6j2lN0CEuf3wt77J2bQW7r", "updated_at": "2014-10-27T09:10:56.983574Z", - "expires_at": "2014-11-03T09:10:56.882728Z", "failure_reason": null, "currency": - "USD", "is_void": true, "meta": {"state": "cancelled", "participant_id": "2"}, - "debit": null, "failure_reason_code": null, "voided_at": null, "order": null, - "id": "HL1fusP2srkjK5j0m8RIKUE5"}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/card_holds/HL1fusP2srkjK5j0m8RIKUE5 - response: - body: - string: !!binary | - H4sIAAAAAAAAA4VT226cMBB9z1cgPxcw3gK7+0pTpUlU9ZI0UqoKeW2v4g1rkC9pqxX/XtsLi1GS - 5sVCM3NmzjkzHM6iCBAsaf3QNlSBdfTTRqLo4F+bUxpr4+JAGUIYo4yCd2OSMkUk7zRvhavYYcH0 - lG24eHTIsZft1krKpA0J0zRjl4GAa1BVxQ41n2F1braL37osL9Hm610pTz1tLWUbrocWA4/+RMh0 - FGtGa+wqAILZ+ziDMSpv4GqdwXW+SjKICrS8n1gSyf4LKZIS5Xm2CiBaYqEwcbJrYfYbLwlcXH/8 - cRmju/v4poLVNID96bhkasYpi+Fi5FQkyyUqZ5y2mDdGstpSU97a0C9AjJRMkL9u6O33D9MkvG+N - cMozWGQnT/ZMYxsLtuB2yhyaYEFY0wQrtQZ3WGpOeIeFrjn1PoJnRj9ItnWpdLqd9OI62xr1BSn5 - uLvKd3C//Pbp6vY8nwjOddWkpY7GTNxTy+2JvbHABQy2ceT46nBPvbfvL+cImB9lcPoJe2JC+0sP - RR0mgQmnfTpUHd0N4eNpg9R/qTRE+lA/GBGiXPfTyDnGpV6C+B/gTZ5D1XOe4/8D0mPJjKcP9W7d - /Vn/D/qQX7scBAAA - headers: - content-encoding: [gzip] - content-length: ['468'] - 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 | - H4sIAAAAAAAAA91c2W7iWhZ9v19R4uE+takzHxvpqsU8jzaDabVKBpshYcZMKdW/97FJgtHFwV1Y - XJJ6iEo222vbWVmss/f2+fnHt2+RvrEyf4zmE3MdiX37jzjy7dtP96c4t7YNe+Mcj6w3/b5lmZYZ - +dfbSdNa91fjhT2ez5xPPBkzyz6dnYxnz07k27XE1eYr01qJQ7PNZPJ2ldcEnAskk+wJTSogmd4M - 8M7mvIB69TZfvV9TfNa0emP79RKvefx6T2izMA3bMn8YziciCEAiQSAhrgElBkEMwShAkAHWPWXZ - X1kfhoAolwFm0BNir4zZ2ug7t/1jtpn23FuK5EqVTlHKl+NSRs1nTgDWfjFeWeuznKAE8FtOIKoQ - hqDsARgY48lmZf0Qqa3dR+t9XpH+ZrWyZv2DA9pUUyckYzrfzJw7x0RR3p/J1LINcczzW3B+p5YT - PbN23ke7MFb2uD9eGDP7x9h0n2Dkb494tLIGzqnvJ9Z8z5USuDA80IGqGBMTNNlqVsrk16fMzm/o - R39uOvhnd7WdjwW3jk/p7MQxEz8IN79XAjw+aSPt1E7VkEF7bbTWq/J4OSyocDX7+2O+wmTIowxR - Rfay5gqTIYtCQiEHAZicplmp0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RL4BBKycvZqAfrkXwwXgE2jKjqfI+zaW65iBTnS56KVybnGbjf98i - CAsJYpCKAqwY4wrQaBBqewwRAi0TctYJ9luOyWVN0tSi1Mwij9D4q+17TmIkkoY5RHN/i6Dpjad4 - Rk03+sNOmorpPbNVrofL2ssQX5y0SMwrIlGx5fxs+PCy1kKXtMcQDEgwXwtTQMqSppgP7wYk7WtO - kMjM+4f0CS1CoTLLHJrb9uFFXoNyqad3qRpye4xfxriZtpOhba1vfH2X1OLPWmOkVocNOqhbsKEZ - fYJv8QiASxhokDozNEi8wcgYIFeGEc5CaFTUEGQWZIYGISSJwQKJYP7xMAKQJSBqwm85AcbEGE2I - 6zHMMLvvS4+Iwmm7r66ehnC7xjNkF/stzfMSXRjFLx+Mm3kbwlvnuJxLrNtsmzNKeL0ptUyt1aue - fOJveATBQSSW7FSMBsYAj0IgyghXPMJZCHMWTAx5i1N+HoEyKslAUFdMcn1obR3aklNOADD4yd86 - RySVxMVpC8aXAx0upiXS6Gcr4ZoEH4yvTlsoBDcqhAjjK/PhJ9q6IZAScuY8/WjLMZUoBhIkHAWk - rQsgRnQY/NxvNSzjy12qaSJ9b5qJRHM0oixxaseHUke4DHEkrfj5X+frJXK2M0RkYohv//ONHf49 - GU/H9l+I/ul8NOruG/GX2DTiz/lgsLacE6+/ObGTxP73gy9sKXEN+e2lw4iboUgb0eM3ZuSYmjgC - Xg8sVtZ2PHf3MDntKxGx57YxEYfo28cG49X/ff/A2bfB3XxC5OHd7MSzpUr0bc+TyHf3f+vvP087 - ZxxP/np7ip4T7tCmu++Kd6MNb+jY/PX99VOvd+oJd/77HnwO6ZzyRXRjjlc9y9M9dCnK2lqz63m+ - fsp5Wn/8+h+GIEqbdEYAAA== - headers: - content-encoding: [gzip] - content-length: ['2752'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: '{"status": "succeeded", "debit_href": "/debits/WDwST2a5bW2sYO8iqgJS1rn", - "transaction_number": "HLE5G-NR7-LXZA", "description": "janet", "created_at": - "2014-10-27T09:10:16.145170Z", "card_href": "/cards/CC6j2lN0CEuf3wt77J2bQW7r", - "updated_at": "2014-10-27T09:10:17.625988Z", "expires_at": "2014-11-03T09:10:16.312679Z", - "failure_reason": null, "currency": "USD", "amount": 2091, "meta": {"state": - "captured", "participant_id": "2"}, "failure_reason_code": null, "voided_at": - null, "order": null, "id": "HLvQqZmN2tgh6LOV5uBfQZi"}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/card_holds/HLvQqZmN2tgh6LOV5uBfQZi - response: - body: - string: !!binary | - H4sIAAAAAAAAA4VTXW/aMBR976+I8rwQ25Ck8LbRalWFqBjdaJmmyNimuAtO6ti0E8p/n21CPtRV - e7Gie++559xzb44XnucTLGm6yzNa+hPvp4l43tG9JlcqrLSN+6UmhDHKqP/pnKSsJJIXiufCVjxj - wVSbzbj4bZHnXqZbLimTJiR0lp271AJsg+k0fkbZHEyv9Xb4qpLkFm0Wq0Q2PU0tZRuubPHq6nV5 - j3C0WaHy8e6SvzzdLqEUfi2ualTqgmLFaIodDAE4CiAIUHIPxhMIJwANotElGMbrVjqR7GMImMB4 - AEcRTEAHoiQWJSbWi1To/cbN6d/MrqOvwfxbEswe1p9bAvZWcMnKniYYgKHT5AiGEMXJuEOwxTzT - kqVGWun87proEy0lE+SPJf2+vGqZ8D7Xwk6OwBg2nuyZwibWWY1dNLNoggtleNo1G9MLLBUnvMBC - pZw6G9/7vJNsa1Nhe0/hzeyweFnv50g97eLZ3Y9If9ku1ryV158qJTm1InqjHXJuru5kVS9xUvIR - hbuDyry/7NR+/xo7Nz9gByaUO/Gu8mM7xYDTKqyrTg524eeb9kP3VYZdpAtV9bhdlO3eUPYxNvUv - iLv8/+qsq97rbH6c8FTS0+lCld1pdVH9BcqeOTQVBAAA - 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/card_holds?limit=25&meta.state=new&offset=25 - response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aBKjdyo/uxBZMBCzHFFFx+hGEQgZj2pCcqnghAgrGhAl0Re63r8X1yXTIVPH89fX+9Tb72vHE - aFxI1tlGaBwstliUsfR7YgARRqSKsa8hbEIg8GRxSg1UQJ+tUIbE4oNeW/DIdDMmuLqW4YTc73rb - z1+O0fLpszdoTFqX5ZvLp/nJ9XlhUgrtcUmijSZC49CxZWkmTb+uu1Wlfd/brrANTARQyOIECYhz - A2vIJEj5QRvNG7aBgKQQOyfpbT8fW/J0K26yWT0v3LtXmpSbVnHSu07W20ZoHDq21M/ZSmjPIh93 - f62wDUw4gX6xcCUgqtTAETM4JQZ49LjeNhCAkp3aKsHtn7fFpGXbx4XabYNcLGb2XSPzIieheksS - 3jZC40tgm8uV8qXB8XBsoQHL2MWX6nzae/vU/k73Fw6KqPCFLHHcfoSlCZSCt9tzo7CtaGnc1OsG - Ld2c74xt39poVmNCiMskve3nV8jYS122HX173bTd8V3r6eLyYTEtJ+ttIzS+BLbJ79mFtD7Etn5g - m2bKhG28bGt/7HtBQtgEvsOhNUvE6UeAfTugJQ0B6YSd2Pq7HyC2XY5Jmhpqdlspud/1tp+PLc44 - fafTJPWc8l56vSEvvGbpMFlsIzQOHdtgmwJTUn8YJLxhG5gQReK1iHPFDdjwAxtyCI+JbSAAOyc4 - SbJC9vnYyuNuUbm93ulldzHyvOfiw+h48ZwsthEaS2zh93/9zRyprZ31qa41Dp46ENoY/+9u+6Xt - /UX4n/6pZrDv/i/YdP9nv9kcu/6B1bBhJ/58/VCD5T6R1Dv77ONfLtCFwRC+utpSMPzKYORO2/3l - ox1+YsjrdGvK63tWFy7IVk8aSDXbo5+eAOQ/XyDYvZ/aflpE6JkU5vqhEamj4K/x0ffNoweWB3+s - pzF0IOjKCB5cEX5SQdi07fw4Wp21mqWQuf/nm/G2pH8oUjGwWV51a5zBS+9ZuVO39/E4V2f5s/XH - j78B+pty7bVDAAA= - headers: - content-encoding: [gzip] - content-length: ['2348'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: '{"status": "succeeded", "transaction_number": "HL585-000-1125", "description": - "janet", "amount": 3499, "created_at": "2014-08-06T16:16:08.282104Z", "card_href": - "/cards/CC3MHBsW6vHaL3suLVdTVbO9", "updated_at": "2014-08-06T16:16:08.487929Z", - "expires_at": "2014-08-13T16:16:08.399527Z", "failure_reason": null, "currency": - "USD", "is_void": true, "meta": {"state": "cancelled", "participant_id": "2"}, - "debit": null, "failure_reason_code": null, "voided_at": null, "order": null, - "id": "HL7AlL8ennENlzrttjLWrAzj"}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/card_holds/HL7AlL8ennENlzrttjLWrAzj - response: - body: - string: !!binary | - H4sIAAAAAAAAA4VTwY6bMBC971cgn0swEBLIbbutlANtD013pa0q5NizWqfEINtE7Ub8e20Hgum2 - WgkhNDNv3ps3w/kmCBAlklXPTc0U2gTfTSQIzu5tckoT3dk4Uh2lAAwYejcmGSgqeat5I2zFgQjQ - U7bm4qdFjr1Mt0YykCYkuroeuwwCbIO7u/TT9r16WJ22pExVV96z3f3+S3HtaWoZ7LkeWgw6+qug - rmVEA6uIrUAJjpdhjMNkvcPFJo43OFskOF0tV4+TSirhbwjOQ7zaxauNeXC+SPIkxksPoiURilA7 - diW6496NhLZllmchxjiM4ySbCOBXyyUoX5MhiNOJIC2KLFl7BE+E152EykhTzlrfL0Q7KUHQ35b0 - 29cPExM5Np2wk6fLorh6cgRNTMzbgt0pWDQlgkJdeys1BrdEak55S4SuOHM+oldGP0t4sqloup1o - W65v6zIHIT5+rl+k1ofyQd6+HCaB87kq2jArYzbcqeHmxN5aYO6ZddH4X3InvTfvH9YRND9K7/QX - cAKh3aX7Q52nARec9dFQdXHXh4+njSL3pSIf6UL9YISPst2vlHOMTf0L4n6AN3UOVa91jv8Pii4l - M50u1Nt19zf9HwpaouwcBAAA - headers: - content-encoding: [gzip] - content-length: ['474'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t/cards?limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA6VV30/bMBB+56+w/LAnaBOnJG0lNJUKMYHoxmBMYpoiN7apIbUr2ymtUP/32U7S - JAOmafNDpNwP3913351fDgCAGVZEwzH4YX8AePFfK865eHLiWuAsC23kkiorhdNv8WJ6/RwSkxeP - +vI8pPruNkcGVv67w/oixsUDVSvFhXGOwyxhwQBFUXyM2XCYRTSKMxagZBDTDMcDRjIWxYRkiIYs - Gllzmo1YxBgJjjGKE7i/OFuvU0V1kbt7RZHne40olvMyzU3rhPY03nit05XUBufpEpts4XITstHT - zYorbLgU6VIK4/RhsI+wpAZ3wVH0wdp6aKRghXY/tbnDjpttauSzt2grMCG2CJ0ipziVG4BeQ8iJ - v3caP6J8FkzPChY9myS5QPPr74lqIYINfZBq66ylWVgI9gmb7Yo6caYo4aYLYl1/B8M5Fk+pwEvv - dfHl6vPX88kMTD9Nbs7A6WR2eQhmvUmvi6c2ilLT4LmlujGYKyx8HXdc40ZcrIjNmqTYswMF4eAo - DI5QchuMxsFwjJLe8DgeReF9K1QJmbVvk9MCbCXtGkoWU4fsG+LQxQtRBK4wF+DGp95ujKWG8cW/ - 2c+KOpkk3mYUoDBoe2eyEEZt08rAxX81GRkWKaFz244xMKqgDX9L2Dv9aPFxS7GbQRSghpB2GH4r - E3KdrqnijFMHeyeAI/9+dGBZO6iYCGybQFkecNkDIoGQBniWtBrusq/YNAYM57rJf6Eoc6j0/W7p - /wVxFf0jCeJeEIzi0eC+nI2dhfKnQwt25hDmWHsW9etNZWO/s6fK1D7mfMnNSRh8kIxpak7qHkJB - N921ApuiqjX475f7qDbReqHAMrqVVA2FK0XXXBZuATcsgEbadeX8SqZAxtX/F2xh9Mv6t41fvgs9 - wvWqMHaOm3a++K72ONn199oqoVLTfidaraj8au2uGpcqkHNNFzL3b1HNnFaolr4TzA/QOz6VzlV4 - sPsF+3TExu0GAAA= - headers: - content-encoding: [gzip] - content-length: ['752'] - 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/CC6j2lN0CEuf3wt77J2bQW7r/card_holds - response: - body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": - \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"order\": - null,\n \"card\": \"CC6j2lN0CEuf3wt77J2bQW7r\",\n \"debit\": - null\n },\n \"updated_at\": \"2014-10-27T09:11:06.838169Z\",\n \"created_at\": - \"2014-10-27T09:11:06.575238Z\",\n \"transaction_number\": \"HLWTS-0F6-O5Z4\",\n - \ \"expires_at\": \"2014-11-03T09:11:06.732271Z\",\n \"failure_reason\": - null,\n \"currency\": \"USD\",\n \"amount\": 4357,\n \"meta\": - {\n \"state\": \"new\",\n \"participant_id\": \"2\"\n },\n - \ \"href\": \"/card_holds/HL1qzoswuqGVSNhLwNeBIsL3\",\n \"failure_reason_code\": - null,\n \"voided_at\": null,\n \"id\": \"HL1qzoswuqGVSNhLwNeBIsL3\"\n - \ }\n ],\n \"links\": {\n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\",\n - \ \"card_holds.order\": \"/orders/{card_holds.order}\",\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: ['1021'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: '{"status": "succeeded", "transaction_number": "HLWTS-0F6-O5Z4", "description": - "janet", "amount": 4357, "created_at": "2014-10-27T09:11:06.575238Z", "card_href": - "/cards/CC6j2lN0CEuf3wt77J2bQW7r", "updated_at": "2014-10-27T09:11:06.838169Z", - "expires_at": "2014-11-03T09:11:06.732271Z", "failure_reason": null, "currency": - "USD", "is_void": true, "meta": {"state": "cancelled", "participant_id": "2"}, - "debit": null, "failure_reason_code": null, "voided_at": null, "order": null, - "id": "HL1qzoswuqGVSNhLwNeBIsL3"}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/card_holds/HL1qzoswuqGVSNhLwNeBIsL3 - response: - body: - string: !!binary | - H4sIAAAAAAAAA4VTy27bMBC85ysEnivrZZmNj3UfaWG4KJwmQIJCoMk1zFSmFD7ipob+vaQsWRTS - NhdC2N3ZmZ1dHS+CAFEiWbGrSqbQPLi3kSA4tq/NKU20cXGkDKUADBh60ycZKCp5rXklXMUDEaCH - bMnFT4fse9lulWQgbUiYsuy7dAJcg8Vi9pCWq3jxwWyzg8b4S7r5dovluaetZbDhumvR6WjOgkzN - iAZWEFeB0jiZhkkcpvg6vpwnyTzJJzhJMzy7G1RSCf+DxLNJjvM0e+tBtCRCEerGLoTZb9qR0NXy - 9nodxh9n4df8bjoQwK+aS1AjTUkYZ50mS4CzNMWJR7AlvDQSCitNtdb6fiFqpARBnx3p9/X7gYns - KyPc5NMsx2dP9qCJjXlbcDsFh6ZEUChLb6XW4JpIzSmvidAFZ62P6IXROwlbl4qG24mulsnj70od - zOOnm/Vqtzys4N1ntcwGgeO5CloxJ2M03FPF7Ym9tsBLz6yTxn+St9Ib+/5wjqDxUXqnP4EnELq9 - dH+o4zDghLMm6qpO7vrw/rRR1H6pyEe2oaYzwke57mfKMcal/gZpf4BXdXZVL3X2/w+KTiUjnW2o - cetuLpo/wqAumBwEAAA= - headers: - content-encoding: [gzip] - content-length: ['470'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t/cards?limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA6VV30/bMBB+56+w/LAnaBOnJG0lNJUKMYHoxmBMYpoiN7apIbUr2ymtUP/32U7S - JAOmafNDpNwP3913351fDgCAGVZEwzH4YX8AePFfK865eHLiWuAsC23kkiorhdNv8WJ6/RwSkxeP - +vI8pPruNkcGVv67w/oixsUDVSvFhXGOwyxhwQBFUXyM2XCYRTSKMxagZBDTDMcDRjIWxYRkiIYs - Gllzmo1YxBgJjjGKE7i/OFuvU0V1kbt7RZHne40olvMyzU3rhPY03nit05XUBufpEpts4XITstHT - zYorbLgU6VIK4/RhsI+wpAZ3wVH0wdp6aKRghXY/tbnDjpttauSzt2grMCG2CJ0ipziVG4BeQ8iJ - v3caP6J8FkzPChY9myS5QPPr74lqIYINfZBq66ylWVgI9gmb7Yo6caYo4aYLYl1/B8M5Fk+pwEvv - dfHl6vPX88kMTD9Nbs7A6WR2eQhmvUmvi6c2ilLT4LmlujGYKyx8HXdc40ZcrIjNmqTYswMF4eAo - DI5QchuMxsFwjJLe8DgeReF9K1QJmbVvk9MCbCXtGkoWU4fsG+LQxQtRBK4wF+DGp95ujKWG8cW/ - 2c+KOpkk3mYUoDBoe2eyEEZt08rAxX81GRkWKaFz244xMKqgDX9L2Dv9aPFxS7GbQRSghpB2GH4r - E3KdrqnijFMHeyeAI/9+dGBZO6iYCGybQFkecNkDIoGQBniWtBrusq/YNAYM57rJf6Eoc6j0/W7p - /wVxFf0jCeJeEIzi0eC+nI2dhfKnQwt25hDmWHsW9etNZWO/s6fK1D7mfMnNSRh8kIxpak7qHkJB - N921ApuiqjX475f7qDbReqHAMrqVVA2FK0XXXBZuATcsgEbadeX8SqZAxtX/F2xh9Mv6t41fvgs9 - wvWqMHaOm3a++K72ONn199oqoVLTfidaraj8au2uGpcqkHNNFzL3b1HNnFaolr4TzA/QOz6VzlV4 - sPsF+3TExu0GAAA= - headers: - content-encoding: [gzip] - content-length: ['752'] - 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/CC6j2lN0CEuf3wt77J2bQW7r/card_holds - response: - body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": - \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"order\": - null,\n \"card\": \"CC6j2lN0CEuf3wt77J2bQW7r\",\n \"debit\": - null\n },\n \"updated_at\": \"2014-10-27T09:11:20.142473Z\",\n \"created_at\": - \"2014-10-27T09:11:19.907075Z\",\n \"transaction_number\": \"HLH42-2RM-JKGZ\",\n - \ \"expires_at\": \"2014-11-03T09:11:20.056008Z\",\n \"failure_reason\": - null,\n \"currency\": \"USD\",\n \"amount\": 2091,\n \"meta\": - {\n \"state\": \"new\",\n \"participant_id\": \"2\"\n },\n - \ \"href\": \"/card_holds/HL1FyOeEWXvG0Ak1KO7MpANW\",\n \"failure_reason_code\": - null,\n \"voided_at\": null,\n \"id\": \"HL1FyOeEWXvG0Ak1KO7MpANW\"\n - \ }\n ],\n \"links\": {\n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\",\n - \ \"card_holds.order\": \"/orders/{card_holds.order}\",\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: ['1021'] - 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 | - H4sIAAAAAAAAA91c2W7iWhZ9v19R4uE+9aHOfGykqxbzPNoMptUqGTCBhClgCKRU/36PDQlGjYO7 - sLgkeYgim+21bVaWl/fePj//+PYt0jeXgx+j+WSwisS+/Udu+fbtp/tb7lvZpr12tkdW637fsgbW - IPKvt50Da9Vfjhf2eD5zPvFoziz7uHcynj05kW/HkkebLwfWUm6arSeTt6McEnAOkEzyRzypwGR6 - PSQvthAF3Ku3xfL9mPKzA6s3tg+HOOTx6z2h9WJg2tbgh+l8IoIhogBBgIUO1RhCMQyjiGIqSPeY - ZX9pfRSC1KgKBRTME2IvzdnK7Dun/WO2nvbcU4rkSjmK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jrTMg8vCubeNZPib4tcBL57v61+v7zuEzGfuevt6vo2eEObbqL - rHhX1fCGjge/vh8+dThTT7jz53vwKaSzyxfRjdkf9SRPd9O5KGtjzS7nefiUc7X++PU3GUOdFGFG - AAA= - headers: - content-encoding: [gzip] - content-length: ['2738'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/card_holds?limit=25&meta.state=new&offset=25 - response: - body: - string: !!binary | - H4sIAAAAAAAAA91c227iWhJ9P1/R4uE8jZ19vyAdjZqQAAnkCgQYjSJjm0BzB3MJrf73UzYQzJk4 - cXd7ooA6HUW2a6/yZrFcu6q2v//x5UvKtibOY3vYc6ap9Jf/wJEvX74Hv+Hc1LO8mX88NZ3Ztus6 - rpP61/ak407tSWfkdYYD/4pv1sD1dmd7nUHXt9yOBaMNJ447gUODWa+3HWXjgD/A6Skt5TPTBzHP - W0U6nRWrTrnavNYvY8K1jtvseJshNn78eHFoNnIsz3UeLf+KFEGYGUgaRJUxTzORRswUgnOhGjsv - 7Yn7jgnjXGkZMvEm1mBq2f5tPw5m/WZwS6l8UWBpcAV4lIsdgLscdSbudM8nZSC284krRDgPAbSs - Tm82cR/BtWkwteH5StmzycQd2M8+aOU+u0Oy+sPZwL9zyrR+mZO+61lwLPQp+J+p61sP3EV4akfW - xOvYnZE18B47TjCDqf+Z4vbEbfmnTnasOckXib3Ks+vVclDo1XJT1jhHgxkv7lzbv6NHe+j4Duzd - 1nzYAXKtp2nvxNqVSIzAww0FjpG2LE2IyaTCGselbWBCOBMYxaAtQcJAWBmcMRKTtgEA1ZxSctC0 - 7Z2W6y45bz8VcMGeLEq5q9Nu5A39Gmtfhzh20tI0wqbWTFIWl7SBiSRC8jhaC9QzlKAG0ojGJG0A - oLQmRER+xv8Upc+otSInK5fF1fmoms87ZHy9nNzifC1ZrY3AOHba4jRlJtbwxI+ttWBCTYWJUjqG - 1lKlDEGxAeK8i2pSb4YIa5+QUuKwQwTOW9N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uG+9Qr++zjDxfggjOEb0ZbA4aPjCbuvDNc - v9rhJ1ze5q1S3tCzejAg27xpINXqTH56ApD/foFg735q/20RoXdSmNuXRqROgr+mJ993rx5Yn/yx - ncbQiaC8Hby4IvymgrBpx/lxsrlqM0shc//PF+N9SP9UJGJgsx51z8/g0GtW7twdvO/n5ip/tv74 - 8TfBsc1AtUMAAA== - headers: - content-encoding: [gzip] - content-length: ['2347'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/credits?meta%5Bcontains%5D=exchange_id&limit=25&offset=0 - response: - body: {string: !!python/unicode "{\n \"credits\": [],\n \"meta\": {\n \"last\": - \"/credits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\",\n \"next\": - null,\n \"href\": \"/credits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\",\n - \ \"limit\": 25,\n \"offset\": 0,\n \"previous\": null,\n \"total\": - 0,\n \"first\": \"/credits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\"\n - \ },\n \"links\": {}\n}"} - headers: - content-length: ['360'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/debits?meta%5Bcontains%5D=exchange_id&limit=25&offset=0 - response: - body: {string: !!python/unicode "{\n \"meta\": {\n \"last\": \"/debits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\",\n - \ \"next\": null,\n \"href\": \"/debits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\",\n - \ \"limit\": 25,\n \"offset\": 0,\n \"previous\": null,\n \"total\": - 0,\n \"first\": \"/debits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\"\n - \ },\n \"links\": {},\n \"debits\": []\n}"} - headers: - content-length: ['356'] - content-type: [application/json] - status: {code: 200, message: OK} -version: 1 diff --git a/tests/py/fixtures/TestPayouts.yml b/tests/py/fixtures/TestPayouts.yml new file mode 100644 index 0000000000..2ef6864577 --- /dev/null +++ b/tests/py/fixtures/TestPayouts.yml @@ -0,0 +1,51 @@ +interactions: +- request: + body: null + headers: {} + method: GET + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/users/8301775/bankaccounts/8301777 + response: + body: {string: !!python/unicode '{"OwnerAddress":{"AddressLine1":"Somewhere","AddressLine2":null,"City":"The + City of Light","Region":null,"PostalCode":"75001","Country":"FR"},"IBAN":"FR1420041010050500013M02606","BIC":"PSSTFRPPLIL","UserId":"8301775","OwnerName":"Homer + Jay","Type":"IBAN","Id":"8301777","Tag":null,"CreationDate":1440851680}'} + headers: + cache-control: [no-cache] + content-length: ['308'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: '{"BankWireRef": "658989072", "DebitedFunds": {"Currency": "EUR", "Amount": + 100}, "BankAccountId": "8301777", "AuthorId": "8301775", "Tag": "658989072", + "Fees": {"Currency": "EUR", "Amount": 0}, "DebitedWalletId": "8301776"}' + headers: {} + method: POST + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/payouts/bankwire/ + response: + body: {string: !!python/unicode '{"Id":"8301778","Tag":"658989072","CreationDate":1440851686,"AuthorId":"8301775","CreditedUserId":null,"DebitedFunds":{"Currency":"EUR","Amount":100},"CreditedFunds":{"Currency":"EUR","Amount":100},"Fees":{"Currency":"EUR","Amount":0},"Status":"FAILED","ResultCode":"001001","ResultMessage":"Unsufficient + wallet balance","ExecutionDate":null,"Type":"PAYOUT","Nature":"REGULAR","CreditedWalletId":null,"DebitedWalletId":"8301776","PaymentType":"BANK_WIRE","BankAccountId":"8301777","BankWireRef":"658989072"}'} + headers: + cache-control: [no-cache] + content-length: ['507'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/users/8301775/bankaccounts/8301777 + response: + body: {string: !!python/unicode '{"OwnerAddress":{"AddressLine1":"Somewhere","AddressLine2":null,"City":"The + City of Light","Region":null,"PostalCode":"75001","Country":"FR"},"IBAN":"FR1420041010050500013M02606","BIC":"PSSTFRPPLIL","UserId":"8301775","OwnerName":"Homer + Jay","Type":"IBAN","Id":"8301777","Tag":null,"CreationDate":1440851680}'} + headers: + cache-control: [no-cache] + content-length: ['308'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +version: 1 diff --git a/tests/py/fixtures/TestRoutes.yml b/tests/py/fixtures/TestRoutes.yml index 3f76a463e9..dff9b4b74b 100644 --- a/tests/py/fixtures/TestRoutes.yml +++ b/tests/py/fixtures/TestRoutes.yml @@ -1,572 +1,33 @@ interactions: -- request: - body: '{"routing_number": "321174851", "account_type": "checking", "account_number": - "9900000001", "name": "Alice G. Krebs"}' - headers: {} - method: POST - uri: https://api.balancedpayments.com:443/bank_accounts - response: - body: {string: !!python/unicode "{\n \"bank_accounts\": [\n {\n \"routing_number\": - \"321174851\",\n \"bank_name\": \"SAN MATEO CREDIT UNION\",\n \"account_type\": - \"checking\",\n \"name\": \"Alice G. Krebs\",\n \"links\": {\n \"customer\": - null,\n \"bank_account_verification\": null\n },\n \"can_credit\": - true,\n \"created_at\": \"2015-03-23T16:19:20.373041Z\",\n \"fingerprint\": - \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\",\n \"updated_at\": - \"2015-03-23T16:19:20.373042Z\",\n \"href\": \"/bank_accounts/BA5aSjvNl8sltPNNvv9GBM0E\",\n - \ \"meta\": {},\n \"account_number\": \"xxxxxx0001\",\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\": false,\n \"id\": \"BA5aSjvNl8sltPNNvv9GBM0E\"\n - \ }\n ],\n \"links\": {\n \"bank_accounts.settlements\": \"/bank_accounts/{bank_accounts.id}/settlements\",\n - \ \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\",\n - \ \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\",\n - \ \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\",\n - \ \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\",\n - \ \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\"\n - \ }\n}"} - headers: - access-control-allow-headers: [Content-Type] - access-control-allow-methods: ['POST, OPTIONS'] - access-control-allow-origin: ['*'] - content-length: ['1374'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6gH6X342hhVXOrrH7SVFzL - response: - body: - string: !!binary | - H4sIAAAAAAAAA41Uy27bMBC85ysEnWvrYSFqfA1Q5FCgh7ZB0KIQaJKNiEiky0dR19C/d2lLMk2q - YS467M4MubMjHm+SJMVGadFTqdJt8h0KSXI8faHFUU+hyk3XvZtqHeMvFjqBAKaEkdgHQp1QpRlH - mgk+qowiw6xm9gRpShqkAZGWeVGtinxV1l/yu23+fltW67yu6yr/ls4ULOmrlM36riyKYuNQiNg1 - veC69YdhxB57//X2+eH2aVOVbfv49EnKh/rz44e/Hy9n7lvB/QHTVtKflp7NDmZxJTAat4jrRmmk - jTUy5WLVI43by3E91cizmP6y0DwNHLSzHSiS/miIEEmVtynM9MEDwp5gpbRcLhdh2V7c9wJE9gIa - XYMFWWhiYbiWB7cbDLIzCu6hVLOUOqV40yGlK39M2iPWBUV2FbgBzvph82MndcJ7if56jnCagWun - PKvsOC927A/jihwiRpI0rejIaZVOFBwyI0Pm4M5JdjR2iL80CJ9MishcQwMlQncsJjFiFrju3/of - H5xfesEM+kdTySEFbxsmhAeXsrZFLDlDAiZham80jZBnVMDXEnGFsH28IhpXyEAHHgnDYzNMoAX2 - b3iZURe5gqQTLFAQkpzf9lfCOWICLjy1JJqnCRSw3xaCGQX/53Az/APeQA0dkwYAAA== - headers: - content-encoding: [gzip] - content-length: ['505'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/bank_accounts/BA5aSjvNl8sltPNNvv9GBM0E - response: - body: - string: !!binary | - H4sIAAAAAAAAA41TTY+bMBC976+wOHeDbZxkyS3bRqtVtWzVTS+tKmTM0HXDR2RM1Cjiv68hUD5C - pHCwhN/M+M28N6c7hKyApzufC5EVqc6tFfplLhE61aeBVVZomf7x0yIJQBnccighS/YwJ9anNqiu - kfIEKvxt7aGX9Xbzij5/33x53qIf3vOr1wU3b/n6uK/jxTuInXmii2grrWMpAD3N0FcFQd7hsUx3 - FdWWpKEpilxnSU0wLeK4ZTbqzz+AkpEUXMssbUKbHsr/zQie+kJBKLWJ0KqADlHANYQ+rxCLYjK/ - x849dbZksSLuiuKZs3QwIz87qpFpDNReybTOmUc44G7EnYgQSiEiTuAyxhnmQQSMwRIMDGThOgwW - jGLsEkcETDBMuQDCusLFPryFC+1xeVcQVSTsgeT243rO3/4evPghj/U3zzsc3KfHF7zp3kpA82rc - 3YxaDTtX/Ks/jHHPFjwMFeRjpaQ+XqpkJAU6fU0ur3Nter+83mcGiH2RhRNgbXB17KOT0ocQ1MpH - PM476WVYTe7qqOpKpTl/V2axhgYdrtgsB61jSOC8bmM1TgNxZjIs7X7C2Yujiv2UscUtu+/53B7V - v5paNvKPnqqnUyl6A+8mdpJyb18tu/25YNcCV8ict/RGNm3wJJ2rY7ix+GDGlrFAeVd+ABIaYANe - BQAA - headers: - content-encoding: [gzip] - content-length: ['516'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: '{"customer": null, "bank_name": "SAN MATEO CREDIT UNION", "account_type": - "checking", "name": "Alice G. Krebs", "links": {"customer": "/customers/CU6gH6X342hhVXOrrH7SVFzL"}, - "can_credit": true, "created_at": "2015-03-23T16:19:20.373041Z", "address": - {"city": null, "line2": null, "line1": null, "state": null, "postal_code": null, - "country_code": null}, "updated_at": "2015-03-23T16:19:20.373042Z", "meta": - {}, "bank_account_verification": null, "fingerprint": "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14", - "routing_number": "321174851", "can_debit": false, "id": "BA5aSjvNl8sltPNNvv9GBM0E", - "account_number": "xxxxxx0001"}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/bank_accounts/BA5aSjvNl8sltPNNvv9GBM0E - response: - body: - string: !!binary | - H4sIAAAAAAAAA41TXW+bMBR9769APK9gg0NK3tIua6utZFrSqto0IWMujRc+ImOiZhH/fYaEQkgy - hQdL+Fwfn3vO9fZK0/SApkufMpYVqcz1kfZLbWratl4VLLJC8vTNT4skAKFw3bYwHpKbAdY/NUU1 - R0oTqPDZ2NOexvPJVLv7Mfn8ONeevcep1xbv7/LlZlXXswWwpbqirWiYxjFnoN0b2lcBQd7iMU+X - ldRGpJLJilxmyU7g3bPz9uC82sRaLF5ep0I8DGcvX/5++yDode2vQfCIMyp5liratIjjfWflR4uM - pj4TEHKpKqQooEUEUAmhTytEtxAeXCP72rLn2Blhd2Qhwx7aiOCfbQORahfESvC0PjOIUEDdiNoR - xpYFEbYDlxBKEA0iIASGoGDAjmsTcIiFkIttFhBGkEUZYNISF6vwv1qw4SDHddyOloWAqBJhHgyC - eTse0NmftRff5LH87nnrtXt/+4Qm7V0JSFqF0HrUJNvOynv9IYQ6w0LDUEDez4/Lzd76xliVkgoa - rNPb+Hg7l6r34+1VpoDYZ1l4AqzHXmy66MnoQwjq5CMa5230PKycO2tVzVSq9XfVU9VNZ2wPH56R - g5QxJLB7hP00tgfhGDwsze6BnWU9xu6R/ojrZnfmc7PHf/ZouY+/d1XtTpXoBbr3tScld1+x2fwc - qWuAM2J2r/RCNU3xSTlnbbiQ/MBjXY1AeVX+A3eHzjB0BQAA - headers: - content-encoding: [gzip] - content-length: ['549'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6gH6X342hhVXOrrH7SVFzL/bank_accounts?limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA61UTW/aQBC951dYPvTU4F17MTFSVJGUJlEbUjUfilpV1no9DtsYG63XKDTiv3d3 - sbFNoOIQDkjMzM68ee8xr0eWZUc0ew4pY3mZycIeWr9U0LJezbdKi7yUPHsKs3IWgVB523MxHpCT - PrY/1kWmR0ZnoPO3o4l1Pbob31jnP8afr+6s+8nVzaQprmaFcjk39WwK7FmNaCrqTqOUM7AuetZX - AVHR5FOePWuoNUgFk5WFzGdrgOf3/tOl/+gRdzp9eLwR4nJw+/Dl77dNg62twwUInnBGJc8z1TYr - 07TabLVZkdEsZAJiLlWFFCU0GQFUQhxSnbFdhPvHyDt2vTvsD3EwdFHPG3iI4J/NAolaF8Rc8My8 - 6ScookFCvQRj14UEe1FACCWIRgkQAgNQacB+4BHwiYtQgD0WEUaQSxlg0jQu5/F/seCej/zAD1pY - pgISDcLpGME5G/Xp7Z/FJD0pUvl9MlksgouzazRuZs1AUi1Cw1GtbOOVF/NBCLXMQuNYQLGtH5fL - ivqaWKWSEhrc3WH8NlxItfvb8DxXiTRkebwjaWwvlu3sTuljiIzyCU2LRnoea+b2UmU6rdT3b72T - XRNmwnZKCyO+U1u3cPYZtyvNp5TPuDzF6EOeJAXIU1RpYmfwoltq/65JtDfivt8QM11NwaiasUah - InVgLmDB81Ir3IIic6WCflc9S7h4PwIUpcaG2jGt09A9bj1FlkxhButDt+34184foMfjldN+UMHu - FrV/bZ8R22nflcLZ6r/36aqWsztqfXw0qQcAr4t3gm7fypb7tvDVVXvgmD/EgWiq2p1g9tJwYO8O - x7b2wdHqHyiwehTYBgAA - headers: - content-encoding: [gzip] - content-length: ['642'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6gH6X342hhVXOrrH7SVFzL/bank_accounts?limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA61UTW/aQBC951dYPvTU4F17MTFSVJGUJlEbUjUfilpV1no9DtsYG63XKDTiv3d3 - sbFNoOIQDkjMzM68ee8xr0eWZUc0ew4pY3mZycIeWr9U0LJezbdKi7yUPHsKs3IWgVB523MxHpCT - PrY/1kWmR0ZnoPO3o4l1Pbob31jnP8afr+6s+8nVzaQprmaFcjk39WwK7FmNaCrqTqOUM7AuetZX - AVHR5FOePWuoNUgFk5WFzGdrgOf3/tOl/+gRdzp9eLwR4nJw+/Dl77dNg62twwUInnBGJc8z1TYr - 07TabLVZkdEsZAJiLlWFFCU0GQFUQhxSnbFdhPvHyDt2vTvsD3EwdFHPG3iI4J/NAolaF8Rc8My8 - 6ScookFCvQRj14UEe1FACCWIRgkQAgNQacB+4BHwiYtQgD0WEUaQSxlg0jQu5/F/seCej/zAD1pY - pgISDcLpGME5G/Xp7Z/FJD0pUvl9MlksgouzazRuZs1AUi1Cw1GtbOOVF/NBCLXMQuNYQLGtH5fL - ivqaWKWSEhrc3WH8NlxItfvb8DxXiTRkebwjaWwvlu3sTuljiIzyCU2LRnoea+b2UmU6rdT3b72T - XRNmwnZKCyO+U1u3cPYZtyvNp5TPuDzF6EOeJAXIU1RpYmfwoltq/65JtDfivt8QM11NwaiasUah - InVgLmDB81Ir3IIic6WCflc9S7h4PwIUpcaG2jGt09A9bj1FlkxhButDt+34184foMfjldN+UMHu - FrV/bZ8R22nflcLZ6r/36aqWsztqfXw0qQcAr4t3gm7fypb7tvDVVXvgmD/EgWiq2p1g9tJwYO8O - x7b2wdHqHyiwehTYBgAA - headers: - content-encoding: [gzip] - content-length: ['642'] - content-type: [application/json] - status: {code: 200, message: OK} - request: body: null headers: {} method: GET - uri: https://api.balancedpayments.com:443/bank_accounts/BA5aSjvNl8sltPNNvv9GBM0E + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/cards/8301774 response: - body: - string: !!binary | - H4sIAAAAAAAAA41TXW+bMBR9769APK9gg0NK3tIua6utZFrSqto0IWMujRc+ImOiZhH/fYaEQkgy - hQdL+Fwfn3vO9fZK0/SApkufMpYVqcz1kfZLbWratl4VLLJC8vTNT4skAKFw3bYwHpKbAdY/NUU1 - R0oTqPDZ2NOexvPJVLv7Mfn8ONeevcep1xbv7/LlZlXXswWwpbqirWiYxjFnoN0b2lcBQd7iMU+X - ldRGpJLJilxmyU7g3bPz9uC82sRaLF5ep0I8DGcvX/5++yDode2vQfCIMyp5liratIjjfWflR4uM - pj4TEHKpKqQooEUEUAmhTytEtxAeXCP72rLn2Blhd2Qhwx7aiOCfbQORahfESvC0PjOIUEDdiNoR - xpYFEbYDlxBKEA0iIASGoGDAjmsTcIiFkIttFhBGkEUZYNISF6vwv1qw4SDHddyOloWAqBJhHgyC - eTse0NmftRff5LH87nnrtXt/+4Qm7V0JSFqF0HrUJNvOynv9IYQ6w0LDUEDez4/Lzd76xliVkgoa - rNPb+Hg7l6r34+1VpoDYZ1l4AqzHXmy66MnoQwjq5CMa5230PKycO2tVzVSq9XfVU9VNZ2wPH56R - g5QxJLB7hP00tgfhGDwsze6BnWU9xu6R/ojrZnfmc7PHf/ZouY+/d1XtTpXoBbr3tScld1+x2fwc - qWuAM2J2r/RCNU3xSTlnbbiQ/MBjXY1AeVX+A3eHzjB0BQAA + body: {string: !!python/unicode '{"ExpirationDate":"1234","Alias":"356999XXXXXX0132","CardType":"CB_VISA_MASTERCARD","CardProvider":"MASTERCARD","Country":"USA","Product":" ","BankCode":"unknown","Active":true,"Currency":"EUR","Validity":"VALID","UserId":"8301771","Id":"8301774","Tag":null,"CreationDate":1440851675}'} headers: - content-encoding: [gzip] - content-length: ['549'] - content-type: [application/json] + cache-control: [no-cache] + content-length: ['286'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] status: {code: 200, message: OK} - request: - body: null - headers: {} - method: DELETE - uri: https://api.balancedpayments.com:443/bank_accounts/BA5aSjvNl8sltPNNvv9GBM0E - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - content-type: [application/json] - status: {code: 204, message: NO CONTENT} -- 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\": - \"CC5f7iWotJIWnjSrXPdO9KGA\",\n \"category\": \"other\",\n \"type\": - \"credit\",\n \"cvv_match\": null,\n \"bank_name\": \"\",\n \"avs_street_match\": - null,\n \"brand\": \"Visa\",\n \"updated_at\": \"2015-03-23T16:19:24.144416Z\",\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\": \"Postal code matches, - but street address not verified.\",\n \"can_credit\": false,\n \"href\": - \"/cards/CC5f7iWotJIWnjSrXPdO9KGA\",\n \"created_at\": \"2015-03-23T16:19:24.144414Z\"\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: ['1287'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6gH6X342hhVXOrrH7SVFzL - response: - body: - string: !!binary | - H4sIAAAAAAAAA41Uy27bMBC85ysEnWvrYSFqfA1Q5FCgh7ZB0KIQaJKNiEiky0dR19C/d2lLMk2q - YS467M4MubMjHm+SJMVGadFTqdJt8h0KSXI8faHFUU+hyk3XvZtqHeMvFjqBAKaEkdgHQp1QpRlH - mgk+qowiw6xm9gRpShqkAZGWeVGtinxV1l/yu23+fltW67yu6yr/ls4ULOmrlM36riyKYuNQiNg1 - veC69YdhxB57//X2+eH2aVOVbfv49EnKh/rz44e/Hy9n7lvB/QHTVtKflp7NDmZxJTAat4jrRmmk - jTUy5WLVI43by3E91cizmP6y0DwNHLSzHSiS/miIEEmVtynM9MEDwp5gpbRcLhdh2V7c9wJE9gIa - XYMFWWhiYbiWB7cbDLIzCu6hVLOUOqV40yGlK39M2iPWBUV2FbgBzvph82MndcJ7if56jnCagWun - PKvsOC927A/jihwiRpI0rejIaZVOFBwyI0Pm4M5JdjR2iL80CJ9MishcQwMlQncsJjFiFrju3/of - H5xfesEM+kdTySEFbxsmhAeXsrZFLDlDAiZham80jZBnVMDXEnGFsH28IhpXyEAHHgnDYzNMoAX2 - b3iZURe5gqQTLFAQkpzf9lfCOWICLjy1JJqnCRSw3xaCGQX/53Az/APeQA0dkwYAAA== - headers: - content-encoding: [gzip] - content-length: ['505'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6gH6X342hhVXOrrH7SVFzL - response: - body: - string: !!binary | - H4sIAAAAAAAAA41Uy27bMBC85ysEnWvrYSFqfA1Q5FCgh7ZB0KIQaJKNiEiky0dR19C/d2lLMk2q - YS467M4MubMjHm+SJMVGadFTqdJt8h0KSXI8faHFUU+hyk3XvZtqHeMvFjqBAKaEkdgHQp1QpRlH - mgk+qowiw6xm9gRpShqkAZGWeVGtinxV1l/yu23+fltW67yu6yr/ls4ULOmrlM36riyKYuNQiNg1 - veC69YdhxB57//X2+eH2aVOVbfv49EnKh/rz44e/Hy9n7lvB/QHTVtKflp7NDmZxJTAat4jrRmmk - jTUy5WLVI43by3E91cizmP6y0DwNHLSzHSiS/miIEEmVtynM9MEDwp5gpbRcLhdh2V7c9wJE9gIa - XYMFWWhiYbiWB7cbDLIzCu6hVLOUOqV40yGlK39M2iPWBUV2FbgBzvph82MndcJ7if56jnCagWun - PKvsOC927A/jihwiRpI0rejIaZVOFBwyI0Pm4M5JdjR2iL80CJ9MishcQwMlQncsJjFiFrju3/of - H5xfesEM+kdTySEFbxsmhAeXsrZFLDlDAiZham80jZBnVMDXEnGFsH28IhpXyEAHHgnDYzNMoAX2 - b3iZURe5gqQTLFAQkpzf9lfCOWICLjy1JJqnCRSw3xaCGQX/53Az/APeQA0dkwYAAA== - headers: - content-encoding: [gzip] - content-length: ['505'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/cards/CC5f7iWotJIWnjSrXPdO9KGA - response: - body: - string: !!binary | - H4sIAAAAAAAAA41Uy27bMBC85ysInRNboiXL9q3IoWh7aIAWTZGiEChyFbORSIGkjBiG/r0k9bTj - APFBsHa5O7M7I55uEAooUUwHO/THviB08k8bLrl4ceEh4E422sgKlI2Kpiz7k+3tUFJw8QyqVlwY - eySIANMYJyRJtySiaYFTEq7SIlyvcb5JknCVUCAsL4poQ0L7B9JNUuRhCpgUEFEajI3p4ZAp0E3p - +jroMSOaKveEgtfZL8YxnqrJQWe11IaUWUUM3V/2gNeaK2K4FFklhXH5CI8IFRji1jCNyZnDu79P - ipQ/SvP1y6P490P9fmDft98+f5qxJgaepTq609LsLc2xqTnW4MJUAePmfNCrHHMiXjJBKl91Ppo2 - CsBcHy1XRHi2v7gmU1lTM8uNZcTrhMMouQtXd3j1M1rvou0Ox4sojuNo/TRDYswqcGkIbtx0c0U6 - 5wC+Ho7ehq0uxk110aQXjEp2JUllI4w6ZrPsGzNSIjIGud3uDhnVwGSZbotnNppZ4AjE+QmHOJz7 - 74JhwHV2AMULDm6/ZwDOb6NbgwfvPOSoIi8t6FuUNwZ1uiHSLRYJadDQcTE3kch6l+xQQUo9DbJX - UFjsYOm/4OUHDKngI7LHT4HfZmuff90OLu6C7sZYONRsL0t/eQwkTp7LgrPWs+rz3SKHuukWsVX9 - i172lUOg7VfQFzGu68bAO1Bj9gzIq/9eRZezw7U37X8cWPhrBwUAAA== - headers: - content-encoding: [gzip] - content-length: ['553'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: '{"links": {"customer": "/customers/CU6gH6X342hhVXOrrH7SVFzL"}, "cvv_result": - null, "number": "xxxxxxxxxxxx4242", "expiration_month": 12, "meta": {}, "id": - "CC5f7iWotJIWnjSrXPdO9KGA", "category": "other", "is_verified": true, "type": - "credit", "cvv_match": null, "bank_name": "", "avs_street_match": null, "brand": - "Visa", "updated_at": "2015-03-23T16:19:24.144416Z", "fingerprint": "1e2c425a579a1c7f27a037f0662b855035ceadbff18a0adbe785fb07e2afe1cc", - "can_debit": true, "customer": null, "name": null, "expiration_year": 2020, - "cvv": null, "avs_postal_match": null, "avs_result": "Postal code matches, but - street address not verified.", "can_credit": false, "created_at": "2015-03-23T16:19:24.144414Z", - "address": {"city": null, "line2": null, "line1": null, "state": null, "postal_code": - null, "country_code": null}}' + body: '{"Product": " ", "Alias": "356999XXXXXX0132", "Country": "USA", "UserId": + "8301771", "Validity": "VALID", "Currency": "EUR", "CardType": "CB_VISA_MASTERCARD", + "ExpirationDate": "1234", "Active": "false", "BankCode": "unknown", "CardProvider": + "MASTERCARD"}' headers: {} method: PUT - uri: https://api.balancedpayments.com:443/cards/CC5f7iWotJIWnjSrXPdO9KGA - response: - body: - string: !!binary | - H4sIAAAAAAAAA41U226bQBB9z1eseE5sWMDYfqsitelFSqS0jpWqQsvuYLaBBe0uVlyLf+8uFxs7 - TlU/WPYMZ+bMmcPsrxByKJFMOUv00/xBaN9+m3DOxYsNDwH7ZK10WYA0Uef2x2xzN1v7Ac6y1fpe - yrvocfXxzzenxzfXQ6GUiw3ISnKhLdADTAMckjBaEI9GKY6I60epO5vhZB6Grh9SICxJU29OXPMD - onmYJm4EmKTgUeocCtPtNpag6tzWFXWeHzKiLpKO5uvoE+AAH9Fkq+KqVJrkcUE0zc5rwGvFJdG8 - FHFRCm3zHj50KEATK85xTM5aWW7DNOJPpf7y+Un8fpTrB3a/+Prpw4g10bAp5c4+XerM0DwU1bsK - bJhKYFyfDnqRY0LESyxI0aJOR1NaAujLoyWSiJbtiityhNUVM9xYTNo9YdcLb1z/BvvfvdnSWyxx - OJm7czfyn0edGDMbOLcJ13a68UY6PwG+HPbehs1etJ3qrEi/MFqyC0la1kLLXTzKvjEjJSJmkBh1 - l0jLGo6W6VQ8sdHIAjsg1vbYxe7Yf2cMHa7iLUiecrD6njSwfju41XlonYcsVdSuFtQ1SmqNur0h - 0gmLRKnRUHEyNpGIe5csUUpydRwkk5Ca3s60fa+n/2FICf9cezDxgiDwgufu1W6Mpr+sBmcXorsj - E9s1zsq8PSkDiX3LZcJZ07Lq852QA250W6bDoVHTHjkEml6CHsS4qmoN77Q6ZE8atdt/D9HlzHDN - VfMX1oMJeB0FAAA= - headers: - content-encoding: [gzip] - content-length: ['581'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6gH6X342hhVXOrrH7SVFzL/cards?limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA6VV32+bMBB+719h+WFPbQIOhCRSNU2Vtu6H1Erd0qrThAycG69gI2OiZlX+99kG - AknTadp4iMid7+67+z4fzycI4ZSqrMIL9N38QejZ/RpzzsWjNXcGe7KutCxAGSu++DZ9uJzeTQKy - Wi3vrpS6jG6W7399wW389rRLxLh4AFUqLrQN9IGkAQlpGM2pn0aMRNSbRMybTkkyC0NvEqZAs4Qx - f0Y98wLRLGSJFwGhDPw0xbvE6XodK6jq3OYVdZ7vPKIukgbm0+AJSED6aLqu4lJWmuZxQXW6OswB - TyVXVHMp4kIKbf0+2VUoQFM7nL5NnrmxXIQs4rdSf/p4K37eqLvr7Gr++cO7AWqq4UGqjT0t9crA - 3CXVmxKsOVWQcb3f6FGMCRWPsaCFi9pvrdIKQB9vLVFUOLRLXtE+rC4zgy2LqeOJeH545k3OyOSr - P1348wUJRzNv5kWT+0GlLDMMHMqEa9vdkJFGT0COm/2XZsOLtl0dJGkJS2V2xJnKWmi1iQfeF2JM - qYgzSMx0F0irGnrJNFPck9FAAhugVvbEI95QfwcIMa/iNSjOONj57hWwetupFV875SELFTlqoTpF - Sa1RwxuizWCRkBp1GUdDEYm4VckCMZpXfSMrBczUxmN3r8d/IUgFf6Q9GPlBEPjBfXO1t2amP+wM - cHcH3JBxTiunm3G3JUztV3ZEA+1tzguuz33vjWSsAn3utf1hAU/7Vxr3TbUr6N+Tu6oGqN8SiZvq - xtIZSgVrLmur6l4OWEtDmI1r+MeMq/9v2IzObZCDbdvs5FHGq7LWYIF0dD47Vkc824533hZQ4xnu - 6AEVbVzn3XajboNM0nglc/cdOFLKnmr9e8XcTXolpvXZDk+2vwHe2sczaQYAAA== - headers: - content-encoding: [gzip] - content-length: ['673'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6gH6X342hhVXOrrH7SVFzL/cards?limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA6VV32+bMBB+719h+WFPbQIOhCRSNU2Vtu6H1Erd0qrThAycG69gI2OiZlX+99kG - AknTadp4iMid7+67+z4fzycI4ZSqrMIL9N38QejZ/RpzzsWjNXcGe7KutCxAGSu++DZ9uJzeTQKy - Wi3vrpS6jG6W7399wW389rRLxLh4AFUqLrQN9IGkAQlpGM2pn0aMRNSbRMybTkkyC0NvEqZAs4Qx - f0Y98wLRLGSJFwGhDPw0xbvE6XodK6jq3OYVdZ7vPKIukgbm0+AJSED6aLqu4lJWmuZxQXW6OswB - TyVXVHMp4kIKbf0+2VUoQFM7nL5NnrmxXIQs4rdSf/p4K37eqLvr7Gr++cO7AWqq4UGqjT0t9crA - 3CXVmxKsOVWQcb3f6FGMCRWPsaCFi9pvrdIKQB9vLVFUOLRLXtE+rC4zgy2LqeOJeH545k3OyOSr - P1348wUJRzNv5kWT+0GlLDMMHMqEa9vdkJFGT0COm/2XZsOLtl0dJGkJS2V2xJnKWmi1iQfeF2JM - qYgzSMx0F0irGnrJNFPck9FAAhugVvbEI95QfwcIMa/iNSjOONj57hWwetupFV875SELFTlqoTpF - Sa1RwxuizWCRkBp1GUdDEYm4VckCMZpXfSMrBczUxmN3r8d/IUgFf6Q9GPlBEPjBfXO1t2amP+wM - cHcH3JBxTiunm3G3JUztV3ZEA+1tzguuz33vjWSsAn3utf1hAU/7Vxr3TbUr6N+Tu6oGqN8SiZvq - xtIZSgVrLmur6l4OWEtDmI1r+MeMq/9v2IzObZCDbdvs5FHGq7LWYIF0dD47Vkc824533hZQ4xnu - 6AEVbVzn3XajboNM0nglc/cdOFLKnmr9e8XcTXolpvXZDk+2vwHe2sczaQYAAA== - headers: - content-encoding: [gzip] - content-length: ['673'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/cards/CC5f7iWotJIWnjSrXPdO9KGA - response: - body: - string: !!binary | - H4sIAAAAAAAAA41U226bQBB9z1eseE5sWMDYfqsitelFSqS0jpWqQsvuYLaBBe0uVlyLf+8uFxs7 - TlU/WPYMZ+bMmcPsrxByKJFMOUv00/xBaN9+m3DOxYsNDwH7ZK10WYA0Uef2x2xzN1v7Ac6y1fpe - yrvocfXxzzenxzfXQ6GUiw3ISnKhLdADTAMckjBaEI9GKY6I60epO5vhZB6Grh9SICxJU29OXPMD - onmYJm4EmKTgUeocCtPtNpag6tzWFXWeHzKiLpKO5uvoE+AAH9Fkq+KqVJrkcUE0zc5rwGvFJdG8 - FHFRCm3zHj50KEATK85xTM5aWW7DNOJPpf7y+Un8fpTrB3a/+Prpw4g10bAp5c4+XerM0DwU1bsK - bJhKYFyfDnqRY0LESyxI0aJOR1NaAujLoyWSiJbtiityhNUVM9xYTNo9YdcLb1z/BvvfvdnSWyxx - OJm7czfyn0edGDMbOLcJ13a68UY6PwG+HPbehs1etJ3qrEi/MFqyC0la1kLLXTzKvjEjJSJmkBh1 - l0jLGo6W6VQ8sdHIAjsg1vbYxe7Yf2cMHa7iLUiecrD6njSwfju41XlonYcsVdSuFtQ1SmqNur0h - 0gmLRKnRUHEyNpGIe5csUUpydRwkk5Ca3s60fa+n/2FICf9cezDxgiDwgufu1W6Mpr+sBmcXorsj - E9s1zsq8PSkDiX3LZcJZ07Lq852QA250W6bDoVHTHjkEml6CHsS4qmoN77Q6ZE8atdt/D9HlzHDN - VfMX1oMJeB0FAAA= - headers: - content-encoding: [gzip] - content-length: ['581'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: DELETE - uri: https://api.balancedpayments.com:443/cards/CC5f7iWotJIWnjSrXPdO9KGA - response: - body: {string: !!python/unicode ''} - headers: - content-length: ['0'] - content-type: [application/json] - status: {code: 204, message: NO CONTENT} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/bank_accounts/BA123123123 - response: - body: {string: !!python/unicode "{\n \"errors\": [\n {\n \"status\": - \"Not Found\",\n \"category_code\": \"not-found\",\n \"description\": - \"

The requested URL was not found on the server.

If you entered the - URL manually please check your spelling and try again.

Your request id - is OHMaec0b31cd17711e48c5306429171ffad.\",\n \"status_code\": 404,\n - \ \"category_type\": \"request\",\n \"request_id\": \"OHMaec0b31cd17711e48c5306429171ffad\"\n - \ }\n ]\n}"} - headers: - content-length: ['430'] - content-type: [application/json] - status: {code: 404, message: NOT FOUND} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6gH6X342hhVXOrrH7SVFzL - response: - body: - string: !!binary | - H4sIAAAAAAAAA41Uy27bMBC85ysEnWvrYSFqfA1Q5FCgh7ZB0KIQaJKNiEiky0dR19C/d2lLMk2q - YS467M4MubMjHm+SJMVGadFTqdJt8h0KSXI8faHFUU+hyk3XvZtqHeMvFjqBAKaEkdgHQp1QpRlH - mgk+qowiw6xm9gRpShqkAZGWeVGtinxV1l/yu23+fltW67yu6yr/ls4ULOmrlM36riyKYuNQiNg1 - veC69YdhxB57//X2+eH2aVOVbfv49EnKh/rz44e/Hy9n7lvB/QHTVtKflp7NDmZxJTAat4jrRmmk - jTUy5WLVI43by3E91cizmP6y0DwNHLSzHSiS/miIEEmVtynM9MEDwp5gpbRcLhdh2V7c9wJE9gIa - XYMFWWhiYbiWB7cbDLIzCu6hVLOUOqV40yGlK39M2iPWBUV2FbgBzvph82MndcJ7if56jnCagWun - PKvsOC927A/jihwiRpI0rejIaZVOFBwyI0Pm4M5JdjR2iL80CJ9MishcQwMlQncsJjFiFrju3/of - H5xfesEM+kdTySEFbxsmhAeXsrZFLDlDAiZham80jZBnVMDXEnGFsH28IhpXyEAHHgnDYzNMoAX2 - b3iZURe5gqQTLFAQkpzf9lfCOWICLjy1JJqnCRSw3xaCGQX/53Az/APeQA0dkwYAAA== - headers: - content-encoding: [gzip] - content-length: ['505'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/cards/CC123123123123 - response: - body: {string: !!python/unicode "{\n \"errors\": [\n {\n \"status\": - \"Not Found\",\n \"category_code\": \"not-found\",\n \"description\": - \"

The requested URL was not found on the server.

If you entered the - URL manually please check your spelling and try again.

Your request id - is OHMaf611e6ad17711e48c5306429171ffad.\",\n \"status_code\": 404,\n - \ \"category_type\": \"request\",\n \"request_id\": \"OHMaf611e6ad17711e48c5306429171ffad\"\n - \ }\n ]\n}"} - headers: - content-length: ['430'] - content-type: [application/json] - status: {code: 404, message: NOT FOUND} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/cards/CC6j2lN0CEuf3wt77J2bQW7r - response: - body: - string: !!binary | - H4sIAAAAAAAAA41UXU/bMBR951dYeaat44Sk6VupEBOIbgzGpE1T5MY2NaR2ZTuFCvW/z3aSJgEm - LQ+Wcj98zz33+L6dABAUWBEdzMBv+wPAmz+tueTi2Zlbg4ustJEbqqw1WPxI1ovbl5CYsnrS15ch - 1Q/3JTJBk384bS9iXDxStVVcGJc4LVIGYxRFyRlm02kR0SgpGERpnNACJzEjBYsSQgpEQxZlNpwW - GYsYI/AMoyQNjhcXu12uqK5Kd6+oyvLoEdVmVcN87X2h/bpsvNP5VmqDy3yDTbF22ITs/PR1yxU2 - XIp8I4Vx/hAeK2yowUNyFH20sZ4aKVil3U8b7rjjZp8b+eIj+g5MiG1C58g5zuUrQB8p5MTfu0ie - ULmEi4uKRS8mTa/Q6vZnqnqMYEMfpdq7aGnWloIjYLPfUmcuFCXcDEls+x9wuMLiORd447Ouvt18 - /X45X4LFl/ndBTifL69PwXI8Hw/51EZRajo+91R3ASuFhe/jgWvcmastsahJjr06EAzPRjAaoeg+ - jGZxNovTcRimYRr/6pWqKbPxfXFagq2l30OtYuqY/cQcunohisAN5gLceej9wVhpGN/8p/NspFNI - 4mMyiELYzy5kJYza502Aq//hZRRY5ISu7DhmgOFS007ANe+DgfQEuafYPUIEUadI+xre9Rlwne+o - 4oxTx7tRVVfAqf/4doK6edBIEdg5gbo/4OADIoGQBniZ9Cbu4Ddyeo9/rShztEz8cpn8h3IVHaog - HoVwhNJ7mM3gdIaSMYRZklkVeBYP9vzj2Hq3puplNnZV87Us/V5rQbx5LGNODh5V468pb/N6C27S - bjs9aTJbw6GZc5NEuN5Wxir901JH76CQn/q/Mmqfbe5wcvgLinZLo6IFAAA= - headers: - content-encoding: [gzip] - content-length: ['671'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/cards/CC6j2lN0CEuf3wt77J2bQW7r - response: - body: - string: !!binary | - H4sIAAAAAAAAA41UXU/bMBR951dYeaat44Sk6VupEBOIbgzGpE1T5MY2NaR2ZTuFCvW/z3aSJgEm - LQ+Wcj98zz33+L6dABAUWBEdzMBv+wPAmz+tueTi2Zlbg4ustJEbqqw1WPxI1ovbl5CYsnrS15ch - 1Q/3JTJBk384bS9iXDxStVVcGJc4LVIGYxRFyRlm02kR0SgpGERpnNACJzEjBYsSQgpEQxZlNpwW - GYsYI/AMoyQNjhcXu12uqK5Kd6+oyvLoEdVmVcN87X2h/bpsvNP5VmqDy3yDTbF22ITs/PR1yxU2 - XIp8I4Vx/hAeK2yowUNyFH20sZ4aKVil3U8b7rjjZp8b+eIj+g5MiG1C58g5zuUrQB8p5MTfu0ie - ULmEi4uKRS8mTa/Q6vZnqnqMYEMfpdq7aGnWloIjYLPfUmcuFCXcDEls+x9wuMLiORd447Ouvt18 - /X45X4LFl/ndBTifL69PwXI8Hw/51EZRajo+91R3ASuFhe/jgWvcmastsahJjr06EAzPRjAaoeg+ - jGZxNovTcRimYRr/6pWqKbPxfXFagq2l30OtYuqY/cQcunohisAN5gLceej9wVhpGN/8p/NspFNI - 4mMyiELYzy5kJYza502Aq//hZRRY5ISu7DhmgOFS007ANe+DgfQEuafYPUIEUadI+xre9Rlwne+o - 4oxTx7tRVVfAqf/4doK6edBIEdg5gbo/4OADIoGQBniZ9Cbu4Ddyeo9/rShztEz8cpn8h3IVHaog - HoVwhNJ7mM3gdIaSMYRZklkVeBYP9vzj2Hq3puplNnZV87Us/V5rQbx5LGNODh5V468pb/N6C27S - bjs9aTJbw6GZc5NEuN5Wxir901JH76CQn/q/Mmqfbe5wcvgLinZLo6IFAAA= - headers: - content-encoding: [gzip] - content-length: ['671'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/credits?meta%5Bcontains%5D=exchange_id&limit=25&offset=0 - response: - body: {string: !!python/unicode "{\n \"credits\": [],\n \"meta\": {\n \"last\": - \"/credits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\",\n \"next\": - null,\n \"href\": \"/credits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\",\n - \ \"limit\": 25,\n \"offset\": 0,\n \"previous\": null,\n \"total\": - 0,\n \"first\": \"/credits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\"\n - \ },\n \"links\": {}\n}"} - headers: - content-length: ['360'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/debits?meta%5Bcontains%5D=exchange_id&limit=25&offset=0 - response: - body: {string: !!python/unicode "{\n \"meta\": {\n \"last\": \"/debits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\",\n - \ \"next\": null,\n \"href\": \"/debits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\",\n - \ \"limit\": 25,\n \"offset\": 0,\n \"previous\": null,\n \"total\": - 0,\n \"first\": \"/debits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\"\n - \ },\n \"links\": {},\n \"debits\": []\n}"} - headers: - content-length: ['356'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/cards/CC6j2lN0CEuf3wt77J2bQW7r + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/cards/8301774 response: - body: - string: !!binary | - H4sIAAAAAAAAA41UXU/bMBR951dYeaat44Sk6VupEBOIbgzGpE1T5MY2NaR2ZTuFCvW/z3aSJgEm - LQ+Wcj98zz33+L6dABAUWBEdzMBv+wPAmz+tueTi2Zlbg4ustJEbqqw1WPxI1ovbl5CYsnrS15ch - 1Q/3JTJBk384bS9iXDxStVVcGJc4LVIGYxRFyRlm02kR0SgpGERpnNACJzEjBYsSQgpEQxZlNpwW - GYsYI/AMoyQNjhcXu12uqK5Kd6+oyvLoEdVmVcN87X2h/bpsvNP5VmqDy3yDTbF22ITs/PR1yxU2 - XIp8I4Vx/hAeK2yowUNyFH20sZ4aKVil3U8b7rjjZp8b+eIj+g5MiG1C58g5zuUrQB8p5MTfu0ie - ULmEi4uKRS8mTa/Q6vZnqnqMYEMfpdq7aGnWloIjYLPfUmcuFCXcDEls+x9wuMLiORd447Ouvt18 - /X45X4LFl/ndBTifL69PwXI8Hw/51EZRajo+91R3ASuFhe/jgWvcmastsahJjr06EAzPRjAaoeg+ - jGZxNovTcRimYRr/6pWqKbPxfXFagq2l30OtYuqY/cQcunohisAN5gLceej9wVhpGN/8p/NspFNI - 4mMyiELYzy5kJYza502Aq//hZRRY5ISu7DhmgOFS007ANe+DgfQEuafYPUIEUadI+xre9Rlwne+o - 4oxTx7tRVVfAqf/4doK6edBIEdg5gbo/4OADIoGQBniZ9Cbu4Ddyeo9/rShztEz8cpn8h3IVHaog - HoVwhNJ7mM3gdIaSMYRZklkVeBYP9vzj2Hq3puplNnZV87Us/V5rQbx5LGNODh5V468pb/N6C27S - bjs9aTJbw6GZc5NEuN5Wxir901JH76CQn/q/Mmqfbe5wcvgLinZLo6IFAAA= + body: {string: !!python/unicode '{"ExpirationDate":"1234","Alias":"356999XXXXXX0132","CardType":"CB_VISA_MASTERCARD","CardProvider":"MASTERCARD","Country":"USA","Product":" ","BankCode":"unknown","Active":false,"Currency":"EUR","Validity":"VALID","UserId":"8301771","Id":"8301774","Tag":null,"CreationDate":1440851675}'} headers: - content-encoding: [gzip] - content-length: ['671'] - content-type: [application/json] + cache-control: [no-cache] + content-length: ['287'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] status: {code: 200, message: OK} version: 1 diff --git a/tests/py/fixtures/TestSync.yml b/tests/py/fixtures/TestSync.yml new file mode 100644 index 0000000000..6cbe6309f4 --- /dev/null +++ b/tests/py/fixtures/TestSync.yml @@ -0,0 +1,137 @@ +interactions: +- request: + body: '{"AuthorId": "8301771", "Tag": "79634", "CreditedWalletId": "8301772", + "CardId": "8301774", "SecureModeReturnURL": "http://localhost/", "Fees": {"Currency": + "EUR", "Amount": 37}, "CardType": "CB_VISA_MASTERCARD", "DebitedFunds": {"Currency": + "EUR", "Amount": 1037}}' + headers: {} + method: POST + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/payins/card/direct/ + response: + body: {string: !!python/unicode '{"Id":"8301785","Tag":"79634","CreationDate":1440851700,"AuthorId":"8301771","CreditedUserId":"8301771","DebitedFunds":{"Currency":"EUR","Amount":1037},"CreditedFunds":{"Currency":"EUR","Amount":1000},"Fees":{"Currency":"EUR","Amount":37},"Status":"SUCCEEDED","ResultCode":"000000","ResultMessage":"Success","ExecutionDate":1440851702,"Type":"PAYIN","Nature":"REGULAR","CreditedWalletId":"8301772","DebitedWalletId":null,"PaymentType":"CARD","ExecutionType":"DIRECT","SecureMode":"DEFAULT","CardId":"8301774","SecureModeReturnURL":null,"SecureModeRedirectURL":null,"SecureModeNeeded":false}'} + headers: + cache-control: [no-cache] + content-length: ['590'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/users/8301771/transactions?page=1&per_page=10 + response: + body: {string: !!python/unicode '[{"Id":"8301780","Tag":"141066466","CreationDate":1440851689,"AuthorId":"8301771","CreditedUserId":"8301771","DebitedFunds":{"Currency":"EUR","Amount":10202},"CreditedFunds":{"Currency":"EUR","Amount":10000},"Fees":{"Currency":"EUR","Amount":202},"Status":"CREATED","ResultCode":null,"ResultMessage":null,"ExecutionDate":null,"Type":"PAYIN","Nature":"REGULAR","CreditedWalletId":"8301772","DebitedWalletId":null},{"Id":"8301783","Tag":"141066469","CreationDate":1440851696,"AuthorId":"8301771","CreditedUserId":"8301771","DebitedFunds":{"Currency":"EUR","Amount":1037},"CreditedFunds":{"Currency":"EUR","Amount":1000},"Fees":{"Currency":"EUR","Amount":37},"Status":"SUCCEEDED","ResultCode":"000000","ResultMessage":"Success","ExecutionDate":1440851697,"Type":"PAYIN","Nature":"REGULAR","CreditedWalletId":"8301782","DebitedWalletId":null},{"Id":"8301785","Tag":"79634","CreationDate":1440851700,"AuthorId":"8301771","CreditedUserId":"8301771","DebitedFunds":{"Currency":"EUR","Amount":1037},"CreditedFunds":{"Currency":"EUR","Amount":1000},"Fees":{"Currency":"EUR","Amount":37},"Status":"SUCCEEDED","ResultCode":"000000","ResultMessage":"Success","ExecutionDate":1440851702,"Type":"PAYIN","Nature":"REGULAR","CreditedWalletId":"8301772","DebitedWalletId":null}]'} + headers: + cache-control: [no-cache] + content-length: ['1261'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + link: ['; + rel="first",; + rel="last"'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/users/8301771/transactions?page=1&per_page=10 + response: + body: {string: !!python/unicode '[{"Id":"8301780","Tag":"141066466","CreationDate":1440851689,"AuthorId":"8301771","CreditedUserId":"8301771","DebitedFunds":{"Currency":"EUR","Amount":10202},"CreditedFunds":{"Currency":"EUR","Amount":10000},"Fees":{"Currency":"EUR","Amount":202},"Status":"CREATED","ResultCode":null,"ResultMessage":null,"ExecutionDate":null,"Type":"PAYIN","Nature":"REGULAR","CreditedWalletId":"8301772","DebitedWalletId":null},{"Id":"8301783","Tag":"141066469","CreationDate":1440851696,"AuthorId":"8301771","CreditedUserId":"8301771","DebitedFunds":{"Currency":"EUR","Amount":1037},"CreditedFunds":{"Currency":"EUR","Amount":1000},"Fees":{"Currency":"EUR","Amount":37},"Status":"SUCCEEDED","ResultCode":"000000","ResultMessage":"Success","ExecutionDate":1440851697,"Type":"PAYIN","Nature":"REGULAR","CreditedWalletId":"8301782","DebitedWalletId":null},{"Id":"8301785","Tag":"79634","CreationDate":1440851700,"AuthorId":"8301771","CreditedUserId":"8301771","DebitedFunds":{"Currency":"EUR","Amount":1037},"CreditedFunds":{"Currency":"EUR","Amount":1000},"Fees":{"Currency":"EUR","Amount":37},"Status":"SUCCEEDED","ResultCode":"000000","ResultMessage":"Success","ExecutionDate":1440851702,"Type":"PAYIN","Nature":"REGULAR","CreditedWalletId":"8301772","DebitedWalletId":null}]'} + headers: + cache-control: [no-cache] + content-length: ['1261'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + link: ['; + rel="first",; + rel="last"'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/wallets/8301772/transactions?page=1&per_page=10 + response: + body: {string: !!python/unicode '[{"Id":"8301780","Tag":"141066466","CreationDate":1440851689,"AuthorId":"8301771","CreditedUserId":"8301771","DebitedFunds":{"Currency":"EUR","Amount":10202},"CreditedFunds":{"Currency":"EUR","Amount":10000},"Fees":{"Currency":"EUR","Amount":202},"Status":"CREATED","ResultCode":null,"ResultMessage":null,"ExecutionDate":null,"Type":"PAYIN","Nature":"REGULAR","CreditedWalletId":"8301772","DebitedWalletId":null},{"Id":"8301785","Tag":"79634","CreationDate":1440851700,"AuthorId":"8301771","CreditedUserId":"8301771","DebitedFunds":{"Currency":"EUR","Amount":1037},"CreditedFunds":{"Currency":"EUR","Amount":1000},"Fees":{"Currency":"EUR","Amount":37},"Status":"SUCCEEDED","ResultCode":"000000","ResultMessage":"Success","ExecutionDate":1440851702,"Type":"PAYIN","Nature":"REGULAR","CreditedWalletId":"8301772","DebitedWalletId":null}]'} + headers: + cache-control: [no-cache] + content-length: ['835'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + link: ['; + rel="first",; + rel="last"'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/users/8301775/bankaccounts/8301777 + response: + body: {string: !!python/unicode '{"OwnerAddress":{"AddressLine1":"Somewhere","AddressLine2":null,"City":"The + City of Light","Region":null,"PostalCode":"75001","Country":"FR"},"IBAN":"FR1420041010050500013M02606","BIC":"PSSTFRPPLIL","UserId":"8301775","OwnerName":"Homer + Jay","Type":"IBAN","Id":"8301777","Tag":null,"CreationDate":1440851680}'} + headers: + cache-control: [no-cache] + content-length: ['308'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/users/8301775/transactions?page=1&per_page=10 + response: + body: {string: !!python/unicode '[{"Id":"8301778","Tag":"658989072","CreationDate":1440851686,"AuthorId":"8301775","CreditedUserId":null,"DebitedFunds":{"Currency":"EUR","Amount":100},"CreditedFunds":{"Currency":"EUR","Amount":100},"Fees":{"Currency":"EUR","Amount":0},"Status":"FAILED","ResultCode":"001001","ResultMessage":"Unsufficient + wallet balance","ExecutionDate":null,"Type":"PAYOUT","Nature":"REGULAR","CreditedWalletId":null,"DebitedWalletId":"8301776"}]'} + headers: + cache-control: [no-cache] + content-length: ['431'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + link: ['; + rel="first",; + rel="last"'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: '{"CreditedWalletID": "8301770", "CreditedUserId": "8301769", "DebitedFunds": + {"Currency": "EUR", "Amount": 1000}, "AuthorId": "8301771", "Tag": "79635", + "Fees": {"Currency": "EUR", "Amount": 0}, "DebitedWalletID": "8301772"}' + headers: {} + method: POST + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/transfers + response: + body: {string: !!python/unicode '{"Id":"8301789","Tag":"79635","CreationDate":1440851712,"AuthorId":"8301771","CreditedUserId":"8301769","DebitedFunds":{"Currency":"EUR","Amount":1000},"CreditedFunds":{"Currency":"EUR","Amount":1000},"Fees":{"Currency":"EUR","Amount":0},"Status":"SUCCEEDED","ResultCode":"000000","ResultMessage":"Success","ExecutionDate":1440851713,"Type":"TRANSFER","Nature":"REGULAR","DebitedWalletId":"8301772","CreditedWalletId":"8301770"}'} + headers: + cache-control: [no-cache] + content-length: ['428'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + pragma: [no-cache] + status: {code: 200, message: OK} +- request: + body: null + headers: {} + method: GET + uri: https://api.sandbox.mangopay.com:443/v2.01/liberapay-dev/wallets/8301772/transactions?page=1&per_page=10 + response: + body: {string: !!python/unicode '[{"Id":"8301780","Tag":"141066466","CreationDate":1440851689,"AuthorId":"8301771","CreditedUserId":"8301771","DebitedFunds":{"Currency":"EUR","Amount":10202},"CreditedFunds":{"Currency":"EUR","Amount":10000},"Fees":{"Currency":"EUR","Amount":202},"Status":"CREATED","ResultCode":null,"ResultMessage":null,"ExecutionDate":null,"Type":"PAYIN","Nature":"REGULAR","CreditedWalletId":"8301772","DebitedWalletId":null},{"Id":"8301785","Tag":"79634","CreationDate":1440851700,"AuthorId":"8301771","CreditedUserId":"8301771","DebitedFunds":{"Currency":"EUR","Amount":1037},"CreditedFunds":{"Currency":"EUR","Amount":1000},"Fees":{"Currency":"EUR","Amount":37},"Status":"SUCCEEDED","ResultCode":"000000","ResultMessage":"Success","ExecutionDate":1440851702,"Type":"PAYIN","Nature":"REGULAR","CreditedWalletId":"8301772","DebitedWalletId":null},{"Id":"8301789","Tag":"79635","CreationDate":1440851712,"AuthorId":"8301771","CreditedUserId":"8301769","DebitedFunds":{"Currency":"EUR","Amount":1000},"CreditedFunds":{"Currency":"EUR","Amount":1000},"Fees":{"Currency":"EUR","Amount":0},"Status":"SUCCEEDED","ResultCode":"000000","ResultMessage":"Success","ExecutionDate":1440851713,"Type":"TRANSFER","Nature":"REGULAR","CreditedWalletId":"8301770","DebitedWalletId":"8301772"}]'} + headers: + cache-control: [no-cache] + content-length: ['1264'] + content-type: [application/json; charset=utf-8] + expires: ['-1'] + link: ['; + rel="first",; + rel="last"'] + pragma: [no-cache] + status: {code: 200, message: OK} +version: 1 diff --git a/tests/py/fixtures/TestSyncWithBalanced.yml b/tests/py/fixtures/TestSyncWithBalanced.yml deleted file mode 100644 index 97f7c62640..0000000000 --- a/tests/py/fixtures/TestSyncWithBalanced.yml +++ /dev/null @@ -1,314 +0,0 @@ -interactions: -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t/cards?limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA6VV30/bMBB+56+w/LAnaBOnJG0lNJUKMYHoxmBMYpoiN7apIbUr2ymtUP/32U7S - JAOmafNDpNwP3913351fDgCAGVZEwzH4YX8AePFfK865eHLiWuAsC23kkiorhdNv8WJ6/RwSkxeP - +vI8pPruNkcGVv67w/oixsUDVSvFhXGOwyxhwQBFUXyM2XCYRTSKMxagZBDTDMcDRjIWxYRkiIYs - Gllzmo1YxBgJjjGKE7i/OFuvU0V1kbt7RZHne40olvMyzU3rhPY03nit05XUBufpEpts4XITstHT - zYorbLgU6VIK4/RhsI+wpAZ3wVH0wdp6aKRghXY/tbnDjpttauSzt2grMCG2CJ0ipziVG4BeQ8iJ - v3caP6J8FkzPChY9myS5QPPr74lqIYINfZBq66ylWVgI9gmb7Yo6caYo4aYLYl1/B8M5Fk+pwEvv - dfHl6vPX88kMTD9Nbs7A6WR2eQhmvUmvi6c2ilLT4LmlujGYKyx8HXdc40ZcrIjNmqTYswMF4eAo - DI5QchuMxsFwjJLe8DgeReF9K1QJmbVvk9MCbCXtGkoWU4fsG+LQxQtRBK4wF+DGp95ujKWG8cW/ - 2c+KOpkk3mYUoDBoe2eyEEZt08rAxX81GRkWKaFz244xMKqgDX9L2Dv9aPFxS7GbQRSghpB2GH4r - E3KdrqnijFMHeyeAI/9+dGBZO6iYCGybQFkecNkDIoGQBniWtBrusq/YNAYM57rJf6Eoc6j0/W7p - /wVxFf0jCeJeEIzi0eC+nI2dhfKnQwt25hDmWHsW9etNZWO/s6fK1D7mfMnNSRh8kIxpak7qHkJB - N921ApuiqjX475f7qDbReqHAMrqVVA2FK0XXXBZuATcsgEbadeX8SqZAxtX/F2xh9Mv6t41fvgs9 - wvWqMHaOm3a++K72ONn199oqoVLTfidaraj8au2uGpcqkHNNFzL3b1HNnFaolr4TzA/QOz6VzlV4 - sPsF+3TExu0GAAA= - headers: - content-encoding: [gzip] - content-length: ['752'] - 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/CC6j2lN0CEuf3wt77J2bQW7r/card_holds - response: - body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": - \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"order\": - null,\n \"card\": \"CC6j2lN0CEuf3wt77J2bQW7r\",\n \"debit\": - null\n },\n \"updated_at\": \"2014-10-27T09:10:16.423608Z\",\n \"created_at\": - \"2014-10-27T09:10:16.145170Z\",\n \"transaction_number\": \"HLE5G-NR7-LXZA\",\n - \ \"expires_at\": \"2014-11-03T09:10:16.312679Z\",\n \"failure_reason\": - null,\n \"currency\": \"USD\",\n \"amount\": 2091,\n \"meta\": - {\n \"state\": \"new\",\n \"participant_id\": \"2\"\n },\n - \ \"href\": \"/card_holds/HLvQqZmN2tgh6LOV5uBfQZi\",\n \"failure_reason_code\": - null,\n \"voided_at\": null,\n \"id\": \"HLvQqZmN2tgh6LOV5uBfQZi\"\n - \ }\n ],\n \"links\": {\n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\",\n - \ \"card_holds.order\": \"/orders/{card_holds.order}\",\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: ['1019'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: '{"amount": 1061, "meta": {"exchange_id": 1, "participant_id": 2}, "description": - "janet"}' - headers: {} - method: POST - uri: https://api.balancedpayments.com:443/card_holds/HLvQqZmN2tgh6LOV5uBfQZi/debits - response: - body: {string: !!python/unicode "{\n \"debits\": [\n {\n \"status\": - \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"customer\": - \"CU6hCQw1dtlujsKG1esVTl2t\",\n \"source\": \"CC6j2lN0CEuf3wt77J2bQW7r\",\n - \ \"card_hold\": \"HLvQqZmN2tgh6LOV5uBfQZi\",\n \"order\": null,\n - \ \"dispute\": null\n },\n \"updated_at\": \"2014-10-27T09:10:17.619171Z\",\n - \ \"created_at\": \"2014-10-27T09:10:17.066560Z\",\n \"transaction_number\": - \"W3FB-QEB-MU1R\",\n \"failure_reason\": null,\n \"currency\": \"USD\",\n - \ \"amount\": 1061,\n \"failure_reason_code\": null,\n \"meta\": - {\n \"exchange_id\": \"1\",\n \"participant_id\": \"2\"\n },\n - \ \"href\": \"/debits/WDwST2a5bW2sYO8iqgJS1rn\",\n \"appears_on_statement_as\": - \"BAL*example.com\",\n \"id\": \"WDwST2a5bW2sYO8iqgJS1rn\"\n }\n ],\n - \ \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\",\n - \ \"debits.order\": \"/orders/{debits.order}\",\n \"debits.dispute\": - \"/disputes/{debits.dispute}\",\n \"debits.source\": \"/resources/{debits.source}\",\n - \ \"debits.events\": \"/debits/{debits.id}/events\",\n \"debits.refunds\": - \"/debits/{debits.id}/refunds\",\n \"debits.card_hold\": \"/holds/{debits.card_hold}\"\n - \ }\n}"} - headers: - content-length: ['1166'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/debits?meta.exchange_id=1&limit=25&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA51U30/bMBB+569AeeBhWts4rOmohKa1sE3QgToo1TpNkWtfWrPECf4BTKj/+2zH - bZJKaBIvls/nu+++785+OTg8DHJQOBgevpi9sTIslbGCHoUlU/JTxnKmTqP+kb3WhWeyxnwFCaOn - 6KhIUwnqNAzeV7Ecnm0s11nmT9YC0rdmc8gmOOr7ZBWcOQn9QSngkRVatjFVoXBmjpC/lTLxBkqG - 0cYmCDLG/1gEr08lS5doqYochCO3NWTvZc+92UrjzymTpVZQSVLt6yDv3I+BR+DKVrDtyQ6F0U3P - ez1XD1MI6ktzuxrCmfsApkea01cRtu42BMGCJusio64wu2mw3/r2kWShBanYC6iMOqqyN8FO+YqM - yf/LjVfVANMRqbByTQ+kJgSAAvUyGycFSQQrFSu4vXGPOaja226mG/hmJ8ezeD2ePiGqMn0vL78i - kHe3WVQnsOg7DuNxfB9lV+H4XKfHT2owuIiW0/lA7OBs9qZM3yaP04dFfhWp1TqeXN/19SidLljz - /rZz9RtyRdZzYx1ODj+fzq1LihXQBLunG4XoQweFnWhwG54MUThEg26MTtAALWoliID/hIRx3I/D - RogSmEtMrLQJ1/myGrH58ZdRZ3o+6nyfoR91/hSzTAtIDIx0rWgyMqILAZz8teXObs7qMJwXmlsW - KIz9Azb82skSUlA7RK2MrV/MidL4qywMaspcYqEYYSXmynxlTjQ7d21V9z6v3vzs6eY2wv3lPJI/ - rz+yh9XFDRK8UXxZAhYyMfrYGYXcPNwEu0kdfZ68g2eclxl0SZHXMRX6a6ldTRuz/j7Y/AMCm6Pm - rQUAAA== - headers: - content-encoding: [gzip] - content-length: ['631'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/debits?meta.exchange_id=1&limit=25&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA51U30/bMBB+569AeeBhWts4rOmohKa1sE3QgToo1TpNkWtfWrPECf4BTKj/+2zH - bZJKaBIvls/nu+++785+OTg8DHJQOBgevpi9sTIslbGCHoUlU/JTxnKmTqP+kb3WhWeyxnwFCaOn - 6KhIUwnqNAzeV7Ecnm0s11nmT9YC0rdmc8gmOOr7ZBWcOQn9QSngkRVatjFVoXBmjpC/lTLxBkqG - 0cYmCDLG/1gEr08lS5doqYochCO3NWTvZc+92UrjzymTpVZQSVLt6yDv3I+BR+DKVrDtyQ6F0U3P - ez1XD1MI6ktzuxrCmfsApkea01cRtu42BMGCJusio64wu2mw3/r2kWShBanYC6iMOqqyN8FO+YqM - yf/LjVfVANMRqbByTQ+kJgSAAvUyGycFSQQrFSu4vXGPOaja226mG/hmJ8ezeD2ePiGqMn0vL78i - kHe3WVQnsOg7DuNxfB9lV+H4XKfHT2owuIiW0/lA7OBs9qZM3yaP04dFfhWp1TqeXN/19SidLljz - /rZz9RtyRdZzYx1ODj+fzq1LihXQBLunG4XoQweFnWhwG54MUThEg26MTtAALWoliID/hIRx3I/D - RogSmEtMrLQJ1/myGrH58ZdRZ3o+6nyfoR91/hSzTAtIDIx0rWgyMqILAZz8teXObs7qMJwXmlsW - KIz9Azb82skSUlA7RK2MrV/MidL4qywMaspcYqEYYSXmynxlTjQ7d21V9z6v3vzs6eY2wv3lPJI/ - rz+yh9XFDRK8UXxZAhYyMfrYGYXcPNwEu0kdfZ68g2eclxl0SZHXMRX6a6ldTRuz/j7Y/AMCm6Pm - rQUAAA== - headers: - content-encoding: [gzip] - content-length: ['631'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/customers/CU6hCQw1dtlujsKG1esVTl2t/cards?limit=10&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA6VV30/bMBB+56+w/LAnaBOnJG0lNJUKMYHoxmBMYpoiN7apIbUr2ymtUP/32U7S - JAOmafNDpNwP3913351fDgCAGVZEwzH4YX8AePFfK865eHLiWuAsC23kkiorhdNv8WJ6/RwSkxeP - +vI8pPruNkcGVv67w/oixsUDVSvFhXGOwyxhwQBFUXyM2XCYRTSKMxagZBDTDMcDRjIWxYRkiIYs - Gllzmo1YxBgJjjGKE7i/OFuvU0V1kbt7RZHne40olvMyzU3rhPY03nit05XUBufpEpts4XITstHT - zYorbLgU6VIK4/RhsI+wpAZ3wVH0wdp6aKRghXY/tbnDjpttauSzt2grMCG2CJ0ipziVG4BeQ8iJ - v3caP6J8FkzPChY9myS5QPPr74lqIYINfZBq66ylWVgI9gmb7Yo6caYo4aYLYl1/B8M5Fk+pwEvv - dfHl6vPX88kMTD9Nbs7A6WR2eQhmvUmvi6c2ilLT4LmlujGYKyx8HXdc40ZcrIjNmqTYswMF4eAo - DI5QchuMxsFwjJLe8DgeReF9K1QJmbVvk9MCbCXtGkoWU4fsG+LQxQtRBK4wF+DGp95ujKWG8cW/ - 2c+KOpkk3mYUoDBoe2eyEEZt08rAxX81GRkWKaFz244xMKqgDX9L2Dv9aPFxS7GbQRSghpB2GH4r - E3KdrqnijFMHeyeAI/9+dGBZO6iYCGybQFkecNkDIoGQBniWtBrusq/YNAYM57rJf6Eoc6j0/W7p - /wVxFf0jCeJeEIzi0eC+nI2dhfKnQwt25hDmWHsW9etNZWO/s6fK1D7mfMnNSRh8kIxpak7qHkJB - N921ApuiqjX475f7qDbReqHAMrqVVA2FK0XXXBZuATcsgEbadeX8SqZAxtX/F2xh9Mv6t41fvgs9 - wvWqMHaOm3a++K72ONn199oqoVLTfidaraj8au2uGpcqkHNNFzL3b1HNnFaolr4TzA/QOz6VzlV4 - sPsF+3TExu0GAAA= - headers: - content-encoding: [gzip] - content-length: ['752'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: '{"amount": 3499, "meta": {"state": "new", "participant_id": 2}, "description": - "janet"}' - headers: {} - method: POST - uri: https://api.balancedpayments.com:443/cards/CC6j2lN0CEuf3wt77J2bQW7r/card_holds - response: - body: {string: !!python/unicode "{\n \"card_holds\": [\n {\n \"status\": - \"succeeded\",\n \"description\": \"janet\",\n \"links\": {\n \"order\": - null,\n \"card\": \"CC6j2lN0CEuf3wt77J2bQW7r\",\n \"debit\": - null\n },\n \"updated_at\": \"2014-10-27T09:10:21.021606Z\",\n \"created_at\": - \"2014-10-27T09:10:20.780361Z\",\n \"transaction_number\": \"HLNXK-IMA-FSIF\",\n - \ \"expires_at\": \"2014-11-03T09:10:20.946218Z\",\n \"failure_reason\": - null,\n \"currency\": \"USD\",\n \"amount\": 3499,\n \"meta\": - {\n \"state\": \"new\",\n \"participant_id\": \"2\"\n },\n - \ \"href\": \"/card_holds/HLB3Jgy5fS9ald0U6rnLFIs\",\n \"failure_reason_code\": - null,\n \"voided_at\": null,\n \"id\": \"HLB3Jgy5fS9ald0U6rnLFIs\"\n - \ }\n ],\n \"links\": {\n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\",\n - \ \"card_holds.order\": \"/orders/{card_holds.order}\",\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: ['1019'] - content-type: [application/json] - status: {code: 201, message: CREATED} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/debits?meta.exchange_id=2&limit=25&offset=0 - response: - body: {string: !!python/unicode "{\n \"meta\": {\n \"last\": \"/debits?limit=25&meta.exchange_id=2&offset=0\",\n - \ \"next\": null,\n \"href\": \"/debits?limit=25&meta.exchange_id=2&offset=0\",\n - \ \"limit\": 25,\n \"offset\": 0,\n \"previous\": null,\n \"total\": - 0,\n \"first\": \"/debits?limit=25&meta.exchange_id=2&offset=0\"\n },\n - \ \"links\": {},\n \"debits\": []\n}"} - headers: - content-length: ['320'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/debits?meta.exchange_id=2&limit=25&offset=0 - response: - body: {string: !!python/unicode "{\n \"meta\": {\n \"last\": \"/debits?limit=25&meta.exchange_id=2&offset=0\",\n - \ \"next\": null,\n \"href\": \"/debits?limit=25&meta.exchange_id=2&offset=0\",\n - \ \"limit\": 25,\n \"offset\": 0,\n \"previous\": null,\n \"total\": - 0,\n \"first\": \"/debits?limit=25&meta.exchange_id=2&offset=0\"\n },\n - \ \"links\": {},\n \"debits\": []\n}"} - headers: - content-length: ['320'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/credits?meta.exchange_id=4&limit=25&offset=0 - response: - body: {string: !!python/unicode "{\n \"credits\": [],\n \"meta\": {\n \"last\": - \"/credits?limit=25&meta.exchange_id=4&offset=0\",\n \"next\": null,\n - \ \"href\": \"/credits?limit=25&meta.exchange_id=4&offset=0\",\n \"limit\": - 25,\n \"offset\": 0,\n \"previous\": null,\n \"total\": 0,\n \"first\": - \"/credits?limit=25&meta.exchange_id=4&offset=0\"\n },\n \"links\": {}\n}"} - headers: - content-length: ['324'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/credits?meta.exchange_id=4&limit=25&offset=0 - response: - body: {string: !!python/unicode "{\n \"credits\": [],\n \"meta\": {\n \"last\": - \"/credits?limit=25&meta.exchange_id=4&offset=0\",\n \"next\": null,\n - \ \"href\": \"/credits?limit=25&meta.exchange_id=4&offset=0\",\n \"limit\": - 25,\n \"offset\": 0,\n \"previous\": null,\n \"total\": 0,\n \"first\": - \"/credits?limit=25&meta.exchange_id=4&offset=0\"\n },\n \"links\": {}\n}"} - headers: - content-length: ['324'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/credits?meta%5Bcontains%5D=exchange_id&limit=25&offset=0 - response: - body: {string: !!python/unicode "{\n \"credits\": [],\n \"meta\": {\n \"last\": - \"/credits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\",\n \"next\": - null,\n \"href\": \"/credits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\",\n - \ \"limit\": 25,\n \"offset\": 0,\n \"previous\": null,\n \"total\": - 0,\n \"first\": \"/credits?limit=25&meta%5Bcontains%5D=exchange_id&offset=0\"\n - \ },\n \"links\": {}\n}"} - headers: - content-length: ['360'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: null - headers: {} - method: GET - uri: https://api.balancedpayments.com:443/debits?meta%5Bcontains%5D=exchange_id&limit=25&offset=0 - response: - body: - string: !!binary | - H4sIAAAAAAAAA61UbU/bMBD+zq9AkeDDtLZxWNKBhKa1sE3QgTpeqjFNkWtfqFniBL8AU9X/Pttx - m6QS2ofti+Xz+Z7n7rmzlzu7u0EBCgdHu0uzN1aOpTJWMKAwZ0p+yFnB1HEU79tre/GIlFxhxuVe - fHIML2SB+T2kjO6XWSZBHYfB2xqHw4vF4TrP/clCQPY/kF1GBiiKPXBNbU5Cf1AJeGKlll1+VSqc - myPkb2VM/GOpptKVBQtyxn9ZNq9hLV2faKnKAoQrem3IwXLLvVpL5s8pk5VWUEtV75sg79yOgSfg - ymaw7tuGhdHVwHt93Z6mFNSn5nYNhTO3CUzvNKevMqzdXQqCBU0XZU5dYnbTqn7t22aSpRakrl5A - bTRRtb0KNsrXxRj8H27s6gaYjkiFlRuAQGpCAChQL7NxUpBEsEqxktsbD5iDarzdZrpH0e7k+CZZ - jKfPiKpcP8jzzwjk7XUeNQCWfVPDeJw8RPlFOD7V2cGzGg7Povl0NhQbOovelunL5Gn6eFdcROp+ - kUwub2M9yqZ3rH1/3bnmbbkkm7mxDieHn0/n1hXFCmiK3fOOQvSuh8JeNLwOD49QeISG/QQdoiG6 - a5QgAv4SEiZJnIStECUwl5hYaVOui3k9YrODT6Pe9HTU+3qDvjX4GWa5FpAaGula0a7IiC4EcPLb - pntzddKE4aLU3FaBwsQ/ZlNfFywlJbVD1EHs/HROlNYPZmlQW+YKC8UIqzBX5oNzotm566q69akN - ZifPV9cRjuezSH6/fM8e78+ukOCt5KsKsJCp0cfOKBTm4abYTero4+QNvOCiyqFPyqKJqdlfg3Y5 - rcz6c2f1B1Zjc+DRBQAA - headers: - content-encoding: [gzip] - content-length: ['642'] - content-type: [application/json] - status: {code: 200, message: OK} -- request: - body: '{"status": "succeeded", "card_hold_href": "/holds/HLvQqZmN2tgh6LOV5uBfQZi", - "source_href": "/resources/CC6j2lN0CEuf3wt77J2bQW7r", "transaction_number": - "W3FB-QEB-MU1R", "description": "janet", "created_at": "2014-10-27T09:10:17.066560Z", - "appears_on_statement_as": "BAL*example.com", "updated_at": "2014-10-27T09:10:17.619171Z", - "order": null, "currency": "USD", "amount": 1061, "meta": {"participant_id": - "2"}, "customer_href": "/customers/CU6hCQw1dtlujsKG1esVTl2t", "failure_reason_code": - null, "failure_reason": null, "id": "WDwST2a5bW2sYO8iqgJS1rn", "dispute": null}' - headers: {} - method: PUT - uri: https://api.balancedpayments.com:443/debits/WDwST2a5bW2sYO8iqgJS1rn - response: - body: - string: !!binary | - H4sIAAAAAAAAA31TXW/aMBR9769AeZxGE7sjdLwN2m3qWCsGFI1pikx8KWaJk/qjbEL577MTjANT - 9xLl+t5zP849d3/R6QQUVkzJYND5YaxOZ19/zbtURGn7HkidpgAUaPDWOSnIVLBSsYLbiC3hoLw3 - Y/yXRbpcJluqpSpyEDZ6NI83o8kOUZXprfzyCYF8nGXYJ7DVCy1SqKNH8RZn99HoVq+vdqrfv8Or - yaIvjuVsdiJosikyagGfxy+T52V+j9XTJh4/PPb0cD1ZsnZ8IWjdCtdZ5mayVDBZamWrWsdh1uo4 - tC4pUUATomwZHKF3XRR1cX8WvR+gaID7lxHuIXy99EykAv4HQQYSx704akGUIFyS1FKbcJ2vGs4W - Vx+H3cntsPt1jr75/GvCMi0gMWVkvYr2RIZ0IYCnf2y78+mNh5G80NxOgaIYHec7TZakBXVUHENy - UMTAWostiVAsZSXhKmE1/zj4h7mNgLV1hY3YwsXNbjrDpLdaYPn94Zo9P91NkeCtBssSiJCJ4cDq - EHIw6UmtxuGH8Rv4TfIyg8u0yD2mqf5a6rqnynx/2mGCU4kejuCyrdLQGTLcN20f3dWhqIM5OQVh - /ecBtXke7VVm+GgU5xGHh3OMP4dQQGN4TGOfQ+DFcFYz5lh3YzBahQdvs1g3h9mS5vRVjHOfgk5u - L7RH2CLM3WVlNVFdVH8BndIFG3IEAAA= - headers: - content-encoding: [gzip] - content-length: ['536'] - content-type: [application/json] - status: {code: 200, message: OK} -version: 1