From 015c50b60de2d4b8efb6518c9b7e6a189ea8b577 Mon Sep 17 00:00:00 2001 From: Tim Nguyen Date: Wed, 29 Jan 2014 18:50:34 -0800 Subject: [PATCH 01/93] Update LICENSE --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 5f56fb5..9c6060a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2014 Mahmoud Abdelkader +Copyright (c) 2014 Balanced MIT License From 6e50136abe0dd5fcec7bc228bb452e9e13703f4c Mon Sep 17 00:00:00 2001 From: Victor Lin Date: Thu, 6 Feb 2014 14:22:01 +0800 Subject: [PATCH 02/93] Reproduce bug 93 in test suite --- tests/test_suite.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_suite.py b/tests/test_suite.py index 70f50d7..49bba7f 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -349,3 +349,6 @@ def test_order_helper_methods(self): ).save() bank_account.associate_to_customer(merchant) order.credit_to(destination=bank_account, amount=1234) + + def test_empty_list(self): + balanced.Credit.query.all() From 6e60a7bb56c50a19b475b64ead045a7d17336ff6 Mon Sep 17 00:00:00 2001 From: Victor Lin Date: Thu, 6 Feb 2014 14:47:59 +0800 Subject: [PATCH 03/93] Fix test_empty_list cannot reproduce bug issue --- tests/test_suite.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/tests/test_suite.py b/tests/test_suite.py index 49bba7f..2fd5dcd 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -101,10 +101,16 @@ class BasicUseCases(unittest.TestCase): @classmethod def setUpClass(cls): - api_key = balanced.APIKey().save() - balanced.configure(api_key.secret) + cls.api_key = balanced.APIKey().save() + balanced.configure(cls.api_key.secret) cls.marketplace = balanced.Marketplace().save() + def setUp(self): + super(BasicUseCases, self).setUp() + # some test might rewrite api_key, so we need to configure it + # here again + balanced.configure(self.api_key.secret) + def test_create_a_second_marketplace_should_fail(self): with self.assertRaises(requests.HTTPError) as exc: balanced.Marketplace().save() @@ -351,4 +357,8 @@ def test_order_helper_methods(self): order.credit_to(destination=bank_account, amount=1234) def test_empty_list(self): - balanced.Credit.query.all() + balanced.configure(None) + api_key = balanced.APIKey().save() + balanced.configure(api_key.secret) + balanced.Marketplace().save() + self.assertEqual(balanced.Credit.query.all(), []) From e291c5e9eba092ff1440bcc5ec6acb1159c31dd2 Mon Sep 17 00:00:00 2001 From: Victor Lin Date: Thu, 6 Feb 2014 14:58:40 +0800 Subject: [PATCH 04/93] Fix the bug with a workaround --- balanced/resources.py | 16 +++++++++++++--- tests/test_suite.py | 3 +++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/balanced/resources.py b/balanced/resources.py index d8022d8..51368a8 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -122,10 +122,20 @@ class JSONSchemaPage(wac.Page, ObjectifyMixin): @property def items(self): try: - return getattr(self, self.resource_cls.type) + try: + return getattr(self, self.resource_cls.type) + except AttributeError: + # horrid hack because event callbacks are misnamed. + return self.event_callbacks except AttributeError: - # horrid hack because event callbacks are misnamed. - return self.event_callbacks + # Notice: + # there is no resources key in the response from server + # if the list is empty, so when we try to get something like + # `debits`, an AttributeError will be raised. Not sure is this + # behavior a bug of server, but anyway, this is just a workaround here + # for solving the problem. The issue was posted here + # https://github.com/balanced/balanced-python/issues/93 + return [] class JSONSchemaResource(wac.Resource, ObjectifyMixin): diff --git a/tests/test_suite.py b/tests/test_suite.py index 2fd5dcd..6f01f63 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -357,6 +357,9 @@ def test_order_helper_methods(self): order.credit_to(destination=bank_account, amount=1234) def test_empty_list(self): + # Notice: we need a whole new marketplace to reproduce the bug, + # otherwise, it's very likely we will consume records created + # by other tests balanced.configure(None) api_key = balanced.APIKey().save() balanced.configure(api_key.secret) From 48584ca13cc19966d12537490978cf9cdcd0bc31 Mon Sep 17 00:00:00 2001 From: Victor Lin Date: Thu, 6 Feb 2014 15:01:38 +0800 Subject: [PATCH 05/93] pep8 --- balanced/resources.py | 1 + 1 file changed, 1 insertion(+) diff --git a/balanced/resources.py b/balanced/resources.py index 51368a8..03652a3 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -502,6 +502,7 @@ def debit_from(self, source, amount, **kwargs): amount=amount, **kwargs) + class Callback(Resource): """ A Callback is a publicly accessible location that can receive POSTed JSON From ea582a25c3bd47596c57c27b144334a268eb4c34 Mon Sep 17 00:00:00 2001 From: Patrick Cieplak Date: Wed, 5 Feb 2014 19:51:30 -0800 Subject: [PATCH 06/93] dispute resource --- balanced/resources.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/balanced/resources.py b/balanced/resources.py index 03652a3..d368714 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -514,6 +514,16 @@ class Callback(Resource): uri_gen = wac.URIGen('/callbacks', '{callback}') +class Dispute(Resource): + """ + A dispute occurs when a customer disputes a transaction that + occurred on their funding instrument. + """ + type = 'disputes' + + uri_gen = wac.URIGen('/disputes', '{dispute}') + + class Event(Resource): """ An Event is a snapshot of another resource at a point in time when From cf582d5d0deb1e06c68168256cfbbe760ee0da6e Mon Sep 17 00:00:00 2001 From: Victor Lin Date: Thu, 6 Feb 2014 16:58:28 +0800 Subject: [PATCH 07/93] Add missing Dispute resource name exposing in balanced package --- balanced/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/balanced/__init__.py b/balanced/__init__.py index 1f69ea1..2bf309c 100644 --- a/balanced/__init__.py +++ b/balanced/__init__.py @@ -7,7 +7,7 @@ from balanced.resources import ( Resource, Marketplace, APIKey, CardHold, Credit, Debit, Refund, Reversal, - Transaction, BankAccount, Card, + Transaction, BankAccount, Card, Dispute, Callback, Event, EventCallback, EventCallbackLog, BankAccountVerification, Customer, Order ) @@ -24,6 +24,7 @@ Credit.__name__, Customer.__name__, Debit.__name__, + Dispute.__name__, Event.__name__, EventCallback.__name__, EventCallbackLog.__name__, From 24b81b5bc29f6ade5836f19d2b5296f0c775198a Mon Sep 17 00:00:00 2001 From: Victor Lin Date: Thu, 6 Feb 2014 17:00:16 +0800 Subject: [PATCH 08/93] Add a ugly long polling test for dispute --- tests/test_suite.py | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/tests/test_suite.py b/tests/test_suite.py index 6f01f63..3d2d4b8 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -365,3 +365,41 @@ def test_empty_list(self): balanced.configure(api_key.secret) balanced.Marketplace().save() self.assertEqual(balanced.Credit.query.all(), []) + + def test_dispute(self): + import time + # any debit to the card number `6500000000000002` will generate + # dispute + dispute_card = CARD.copy() + dispute_card['number'] = '6500000000000002' + card = balanced.Card(**dispute_card) + customer = balanced.Customer().save() + card.associate_to_customer(customer) + debit = card.debit(amount=100) + + # TODO: this is ugly, I think we should provide a more + # reliable way to generate dispute, at least it should not + # take this long + print ( + 'It takes a while before the dispute record created, ' + 'take and nap and wake up, then it should be done :/ ' + '(last time I tried it took 10 minutes...)' + ) + timeout = 12 * 60 + interval = 10 + begin = time.time() + while True: + if balanced.Dispute.query.count(): + break + time.sleep(interval) + elapsed = time.time() - begin + print 'Polling disputes..., elapsed', elapsed + self.assertLess(elapsed, timeout, 'Ouch, timeout') + + disputes = balanced.Dispute.query.all() + self.assertEqual(len(disputes), 1) + dispute = disputes[0] + + self.assertEqual(dispute.status, 'pending') + self.assertEqual(dispute.reason, 'fraud') + self.assertEqual(dispute.transaction.id, debit.id) From 46cca498f9bf1261134315495e85e205a980ff6c Mon Sep 17 00:00:00 2001 From: Victor Lin Date: Thu, 6 Feb 2014 21:00:30 +0800 Subject: [PATCH 09/93] Print polling message to stderr so that travis ci won't kill the process --- tests/test_suite.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_suite.py b/tests/test_suite.py index 3d2d4b8..c2b1878 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- - from __future__ import unicode_literals +import sys +import time from datetime import date import unittest2 as unittest @@ -367,7 +368,6 @@ def test_empty_list(self): self.assertEqual(balanced.Credit.query.all(), []) def test_dispute(self): - import time # any debit to the card number `6500000000000002` will generate # dispute dispute_card = CARD.copy() @@ -380,7 +380,7 @@ def test_dispute(self): # TODO: this is ugly, I think we should provide a more # reliable way to generate dispute, at least it should not # take this long - print ( + print >>sys.stderr, ( 'It takes a while before the dispute record created, ' 'take and nap and wake up, then it should be done :/ ' '(last time I tried it took 10 minutes...)' @@ -393,7 +393,7 @@ def test_dispute(self): break time.sleep(interval) elapsed = time.time() - begin - print 'Polling disputes..., elapsed', elapsed + print >>sys.stderr, 'Polling disputes..., elapsed', elapsed self.assertLess(elapsed, timeout, 'Ouch, timeout') disputes = balanced.Dispute.query.all() From ed74a80692c32b39995b2c45c460d3dce2ab408c Mon Sep 17 00:00:00 2001 From: Victor Lin Date: Fri, 7 Feb 2014 09:55:30 +0800 Subject: [PATCH 10/93] Refactory test for dispute --- tests/test_suite.py | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/tests/test_suite.py b/tests/test_suite.py index c2b1878..0e5a550 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -70,6 +70,10 @@ } } +#: a card which will always create a dispute when you debit it +DISPUTE_CARD = CARD.copy() +DISPUTE_CARD['number'] = '6500000000000002' + INTERNATIONAL_CARD = { 'name': 'Johnny Fresh', 'number': '4444424444444440', @@ -368,13 +372,7 @@ def test_empty_list(self): self.assertEqual(balanced.Credit.query.all(), []) def test_dispute(self): - # any debit to the card number `6500000000000002` will generate - # dispute - dispute_card = CARD.copy() - dispute_card['number'] = '6500000000000002' - card = balanced.Card(**dispute_card) - customer = balanced.Customer().save() - card.associate_to_customer(customer) + card = balanced.Card(**DISPUTE_CARD).save() debit = card.debit(amount=100) # TODO: this is ugly, I think we should provide a more @@ -396,10 +394,7 @@ def test_dispute(self): print >>sys.stderr, 'Polling disputes..., elapsed', elapsed self.assertLess(elapsed, timeout, 'Ouch, timeout') - disputes = balanced.Dispute.query.all() - self.assertEqual(len(disputes), 1) - dispute = disputes[0] - + dispute = balanced.Dispute.query.one() self.assertEqual(dispute.status, 'pending') self.assertEqual(dispute.reason, 'fraud') self.assertEqual(dispute.transaction.id, debit.id) From dbbcfcbfa6a8d9228245ef26f2dfb213470dd728 Mon Sep 17 00:00:00 2001 From: Victor Lin Date: Fri, 7 Feb 2014 18:34:38 +0800 Subject: [PATCH 11/93] Add tests for operations with revision 0 URI --- tests/test_suite.py | 174 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 173 insertions(+), 1 deletion(-) diff --git a/tests/test_suite.py b/tests/test_suite.py index 6f01f63..2a18b7e 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -101,6 +101,8 @@ class BasicUseCases(unittest.TestCase): @classmethod def setUpClass(cls): + # ensure we won't consume API key from other test case + balanced.configure() cls.api_key = balanced.APIKey().save() balanced.configure(cls.api_key.secret) cls.marketplace = balanced.Marketplace().save() @@ -347,7 +349,7 @@ def test_order_helper_methods(self): order = merchant.create_order() card = balanced.Card(**INTERNATIONAL_CARD).save() - debit = order.debit_from(source=card, amount=1234) + order.debit_from(source=card, amount=1234) bank_account = balanced.BankAccount( account_number='1234567890', routing_number='321174851', @@ -365,3 +367,173 @@ def test_empty_list(self): balanced.configure(api_key.secret) balanced.Marketplace().save() self.assertEqual(balanced.Credit.query.all(), []) + + +class Rev0URIBasicUseCases(unittest.TestCase): + """This test case ensures all revision 0 URIs can work without a problem + with current revision 1 client + + """ + + @classmethod + def setUpClass(cls): + # ensure we won't consume API key from other test case + balanced.configure() + cls.api_key = balanced.APIKey().save() + balanced.configure(cls.api_key.secret) + cls.marketplace = balanced.Marketplace().save() + + @classmethod + def _iter_customer_uris(cls, marketplace, customer): + for uri in [ + '/v1/customers/{}'.format(customer.id), + '/v1/marketplaces/{}/accounts/{}'.format(marketplace.id, customer.id), + ]: + yield uri + + @classmethod + def _iter_card_uris(cls, marketplace, customer, card): + for uri in [ + '/v1/customers/{}/cards/{}'.format(customer.id, card.id), + '/v1/marketplaces/{}/cards/{}'.format(marketplace.id, card.id), + '/v1/marketplaces/{}/accounts/{}/cards/{}'.format( + marketplace.id, customer.id, card.id, + ) + ]: + yield uri + + @classmethod + def _iter_bank_account_uris(cls, marketplace, customer, bank_account): + for uri in [ + '/v1/customers/{}/bank_accounts/{}'.format(customer.id, bank_account.id), + '/v1/marketplaces/{}/bank_accounts/{}'.format(marketplace.id, bank_account.id), + '/v1/marketplaces/{}/accounts/{}/bank_accounts/{}'.format( + marketplace.id, customer.id, bank_account.id, + ) + ]: + yield uri + + def test_marketplace(self): + uri = '/v1/marketplaces/{}'.format(self.marketplace.id) + marketplace = balanced.Marketplace.fetch(uri) + self.assertEqual(marketplace.id, self.marketplace.id) + + def test_customer(self): + customer = balanced.Customer().save() + for uri in self._iter_customer_uris( + marketplace=self.marketplace, + customer=customer, + ): + result_customer = balanced.Customer.fetch(uri) + self.assertEqual(result_customer.id, customer.id) + + def test_associate_card(self): + customer = balanced.Customer().save() + cards = set() + for uri in self._iter_customer_uris( + marketplace=self.marketplace, + customer=customer, + ): + card = balanced.Card(**CARD).save() + card.customer = uri + card.save() + cards.add(card.href) + customer_cards = set(card.href for card in customer.cards) + self.assertEqual(cards, customer_cards) + + def test_associate_bank_account(self): + customer = balanced.Customer().save() + bank_accounts = set() + for uri in self._iter_customer_uris( + marketplace=self.marketplace, + customer=customer, + ): + bank_account = balanced.BankAccount(**BANK_ACCOUNT).save() + bank_account.customer = uri + bank_account.save() + bank_accounts.add(bank_account.href) + + customer_bank_accounts = set( + bank_account.href for bank_account in customer.bank_accounts + ) + self.assertEqual(bank_accounts, customer_bank_accounts) + + def test_set_default_card(self): + customer = balanced.Customer().save() + card1 = balanced.Card(**CARD).save() + card1.associate_to_customer(customer) + card2 = balanced.Card(**CARD).save() + card2.associate_to_customer(customer) + # set card 1 as the default source + customer.source = card1.href + customer.save() + self.assertEqual(customer.source.href, card1.href) + for uri in self._iter_card_uris( + marketplace=self.marketplace, + customer=customer, + card=card2, + ): + # set the source to card2 via rev0 URI + customer.source = uri + customer.save() + self.assertEqual(customer.source.href, card2.href) + + # set the source back to card1 + customer.source = card1.href + customer.save() + self.assertEqual(customer.source.href, card1.href) + + def test_set_default_bank_account(self): + customer = balanced.Customer().save() + bank_account1 = balanced.BankAccount(**BANK_ACCOUNT).save() + bank_account1.associate_to_customer(customer) + bank_account2 = balanced.BankAccount(**BANK_ACCOUNT).save() + bank_account2.associate_to_customer(customer) + # set bank account 1 as the default destination + customer.destination = bank_account1.href + customer.save() + self.assertEqual(customer.destination.href, bank_account1.href) + for uri in self._iter_bank_account_uris( + marketplace=self.marketplace, + customer=customer, + bank_account=bank_account2, + ): + # set the destination to bank_account2 via rev0 URI + customer.destination = uri + customer.save() + self.assertEqual(customer.destination.href, bank_account2.href) + + # set the destination back to bank_account1 + customer.destination = bank_account1.href + customer.save() + self.assertEqual(customer.destination.href, bank_account1.href) + + def test_debit(self): + customer = balanced.Customer().save() + card = balanced.Card(**CARD).save() + card.associate_to_customer(customer) + for uri in self._iter_card_uris( + marketplace=self.marketplace, + customer=customer, + card=card, + ): + debit = balanced.Debit(amount=100, source=uri).save() + self.assertEqual(debit.source.href, card.href) + self.assertEqual(debit.amount, 100) + + def test_credit(self): + # make sufficient amount for credit later + card = balanced.Card(**CARD).save() + card.debit(amount=1000000) + + customer = balanced.Customer().save() + bank_account = balanced.BankAccount(**BANK_ACCOUNT).save() + bank_account.associate_to_customer(customer) + for uri in self._iter_bank_account_uris( + marketplace=self.marketplace, + customer=customer, + bank_account=bank_account, + ): + credit = balanced.Credit(amount=100, destination=uri).save() + self.assertEqual(credit.destination.href, bank_account.href) + self.assertEqual(credit.amount, 100) From 1c91d92e665fbd91e4b726a4c61f7e1fa23d4d84 Mon Sep 17 00:00:00 2001 From: Victor Lin Date: Fri, 7 Feb 2014 20:04:32 +0800 Subject: [PATCH 12/93] Fix misplaced accept and content-type header --- balanced/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/balanced/config.py b/balanced/config.py index 418bab7..c746501 100644 --- a/balanced/config.py +++ b/balanced/config.py @@ -18,13 +18,14 @@ def configure( root_url=API_ROOT, api_revision='1.1', user_agent='balanced-python/' + __version__, + accept_type='application/vnd.api+json', **kwargs ): kwargs.setdefault('headers', {}) for key, value in ( - ('content-type', 'application/vnd.api+json;revision=' + api_revision), - ('accept', 'application/json;revision=' + api_revision) + ('content-type', 'application/json;revision=' + api_revision), + ('accept', '{0};revision={1}'.format(accept_type, api_revision)) ): kwargs['headers'].setdefault(key, value) From 1847e5efd973c97a9da4ec777fb829742a2c31ce Mon Sep 17 00:00:00 2001 From: Victor Lin Date: Fri, 7 Feb 2014 20:04:58 +0800 Subject: [PATCH 13/93] Fix test broken in python 2.6 issue --- tests/test_suite.py | 56 ++++++++++++++++++++++++++++++--------------- 1 file changed, 37 insertions(+), 19 deletions(-) diff --git a/tests/test_suite.py b/tests/test_suite.py index 2a18b7e..13e324c 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -385,38 +385,55 @@ def setUpClass(cls): @classmethod def _iter_customer_uris(cls, marketplace, customer): - for uri in [ - '/v1/customers/{}'.format(customer.id), - '/v1/marketplaces/{}/accounts/{}'.format(marketplace.id, customer.id), + args = dict( + mp=marketplace, + customer=customer, + ) + for pattern in [ + '/v1/customers/{customer.id}', + '/v1/marketplaces/{mp.id}/accounts/{customer.id}', ]: - yield uri + yield pattern.format(**args) @classmethod def _iter_card_uris(cls, marketplace, customer, card): - for uri in [ - '/v1/customers/{}/cards/{}'.format(customer.id, card.id), - '/v1/marketplaces/{}/cards/{}'.format(marketplace.id, card.id), - '/v1/marketplaces/{}/accounts/{}/cards/{}'.format( - marketplace.id, customer.id, card.id, - ) + args = dict( + mp=marketplace, + customer=customer, + card=card, + ) + for pattern in [ + '/v1/customers/{customer.id}/cards/{card.id}', + '/v1/marketplaces/{mp.id}/cards/{card.id}', + '/v1/marketplaces/{mp.id}/accounts/{customer.id}/cards/{card.id}', ]: - yield uri + yield pattern.format(**args) @classmethod def _iter_bank_account_uris(cls, marketplace, customer, bank_account): - for uri in [ - '/v1/customers/{}/bank_accounts/{}'.format(customer.id, bank_account.id), - '/v1/marketplaces/{}/bank_accounts/{}'.format(marketplace.id, bank_account.id), - '/v1/marketplaces/{}/accounts/{}/bank_accounts/{}'.format( - marketplace.id, customer.id, bank_account.id, - ) + args = dict( + mp=marketplace, + customer=customer, + bank_account=bank_account, + ) + for pattern in [ + '/v1/customers/{customer.id}/bank_accounts/{bank_account.id}', + '/v1/marketplaces/{mp.id}/bank_accounts/{bank_account.id}', + '/v1/marketplaces/{mp.id}/accounts/{customer.id}/bank_accounts/{bank_account.id}', ]: - yield uri + yield pattern.format(**args) + + def assert_not_rev0(self, resource): + """Ensures the given resouce is not in revision 0 format + + """ + self.assert_(not hasattr(resource, '_uris')) def test_marketplace(self): - uri = '/v1/marketplaces/{}'.format(self.marketplace.id) + uri = '/v1/marketplaces/{0}'.format(self.marketplace.id) marketplace = balanced.Marketplace.fetch(uri) self.assertEqual(marketplace.id, self.marketplace.id) + self.assert_not_rev0(marketplace) def test_customer(self): customer = balanced.Customer().save() @@ -426,6 +443,7 @@ def test_customer(self): ): result_customer = balanced.Customer.fetch(uri) self.assertEqual(result_customer.id, customer.id) + self.assert_not_rev0(result_customer) def test_associate_card(self): customer = balanced.Customer().save() From 61d81f5af98cd4bf62637895a16676262398e1e5 Mon Sep 17 00:00:00 2001 From: Mahmoud Abdelkader Date: Fri, 7 Feb 2014 17:45:53 -0800 Subject: [PATCH 14/93] Update setup.py --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index f52c72c..2f66fc3 100644 --- a/setup.py +++ b/setup.py @@ -16,6 +16,7 @@ setup = setuptools.setup + def _get_version(): path = os.path.join(PATH_TO_FILE, 'balanced', '__init__.py') version_re = r".*__version__ = '(.*?)'" From 77b2284de863e2feb50923714d2aefe9b4860e52 Mon Sep 17 00:00:00 2001 From: Matthew Francis-Landau Date: Tue, 18 Feb 2014 12:07:42 -0800 Subject: [PATCH 15/93] fixing expected header test --- balanced/__init__.py | 2 +- tests/test_client.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/balanced/__init__.py b/balanced/__init__.py index 2bf309c..41de831 100644 --- a/balanced/__init__.py +++ b/balanced/__init__.py @@ -1,6 +1,6 @@ from __future__ import unicode_literals -__version__ = '1.0beta1' +__version__ = '1.0beta2' from balanced.config import configure from balanced import resources diff --git a/tests/test_client.py b/tests/test_client.py index 273ebab..718956d 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -12,8 +12,8 @@ def setUp(self): def test_configure(self): expected_headers = { - 'content-type': 'application/vnd.api+json;revision=1.1', - 'accept': 'application/json;revision=1.1', + 'content-type': 'application/json;revision=1.1', + 'accept': 'application/vnd.api+json;revision=1.1', 'User-Agent': u'balanced-python/1.0beta1' } self.assertDictContainsSubset( From 05b0501742350672b4848dbc2757fe55ee7c000c Mon Sep 17 00:00:00 2001 From: Matthew Francis-Landau Date: Tue, 18 Feb 2014 12:14:36 -0800 Subject: [PATCH 16/93] changing to use __version__ in tests --- tests/test_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_client.py b/tests/test_client.py index 718956d..d9242da 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -14,7 +14,7 @@ def test_configure(self): expected_headers = { 'content-type': 'application/json;revision=1.1', 'accept': 'application/vnd.api+json;revision=1.1', - 'User-Agent': u'balanced-python/1.0beta1' + 'User-Agent': u'balanced-python/' + balanced.__version__, } self.assertDictContainsSubset( expected_headers, balanced.config.client.config.headers From 2972ff2d4c23fa58bc1fd5c3729471bae72166a9 Mon Sep 17 00:00:00 2001 From: Matthew Francis-Landau Date: Tue, 18 Feb 2014 12:21:45 -0800 Subject: [PATCH 17/93] adding patch to version string --- balanced/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/balanced/__init__.py b/balanced/__init__.py index 41de831..9372c43 100644 --- a/balanced/__init__.py +++ b/balanced/__init__.py @@ -1,6 +1,6 @@ from __future__ import unicode_literals -__version__ = '1.0beta2' +__version__ = '1.0.1beta2' from balanced.config import configure from balanced import resources From 75e8effb2c74866b0efaabe03fbabb6812fe0687 Mon Sep 17 00:00:00 2001 From: Matthew Francis-Landau Date: Tue, 18 Feb 2014 17:33:35 -0800 Subject: [PATCH 18/93] External accounts --- balanced/__init__.py | 4 +++- balanced/resources.py | 11 +++++++++++ tests/test_suite.py | 10 +++++++++- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/balanced/__init__.py b/balanced/__init__.py index 9372c43..4c7147d 100644 --- a/balanced/__init__.py +++ b/balanced/__init__.py @@ -9,7 +9,8 @@ CardHold, Credit, Debit, Refund, Reversal, Transaction, BankAccount, Card, Dispute, Callback, Event, EventCallback, EventCallbackLog, - BankAccountVerification, Customer, Order + BankAccountVerification, Customer, Order, + ExternalAccount ) from balanced import exc @@ -34,5 +35,6 @@ Refund.__name__, Reversal.__name__, Transaction.__name__, + ExternalAccount.__name__, str(exc.__name__.partition('.')[-1]) ] diff --git a/balanced/resources.py b/balanced/resources.py index d368714..a330ff7 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -552,3 +552,14 @@ class EventCallbackLog(Resource): """ type = 'event_callback_logs' + + +class ExternalAccount(FundingInstrument): + """ + An External Account represents a source of funds provided by an external, 3rd + party processor. You may Debit funds from the account if can_debit is true. + """ + + type = 'external_accounts' + + uri_gen = wac.URIGen('/external_accounts', '{external_account}') diff --git a/tests/test_suite.py b/tests/test_suite.py index 0179aef..9dc03e2 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -401,7 +401,15 @@ def test_dispute(self): self.assertEqual(dispute.reason, 'fraud') self.assertEqual(dispute.transaction.id, debit.id) - + def test_external_accounts(self): + external_account = balanced.ExternalAccount( + token='123123123', + network='name_of_provider', + ).save() + debit = external_account.debit( + amount=1234 + ) + self.assertEqual(debit.source, external_account.id) class Rev0URIBasicUseCases(unittest.TestCase): From 94eb73fd46b9142c43a52294b98ce6a8d2799d31 Mon Sep 17 00:00:00 2001 From: bninja Date: Tue, 18 Feb 2014 18:04:40 -0800 Subject: [PATCH 19/93] fix escrow limit tests to use a new mp --- tests/test_suite.py | 46 ++++++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 21 deletions(-) diff --git a/tests/test_suite.py b/tests/test_suite.py index 0179aef..ce27c42 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -106,11 +106,7 @@ class BasicUseCases(unittest.TestCase): @classmethod def setUpClass(cls): - # ensure we won't consume API key from other test case - balanced.configure() - cls.api_key = balanced.APIKey().save() - balanced.configure(cls.api_key.secret) - cls.marketplace = balanced.Marketplace().save() + cls.marketplace, cls.api_key = cls.create_marketplace() def setUp(self): super(BasicUseCases, self).setUp() @@ -118,6 +114,14 @@ def setUp(self): # here again balanced.configure(self.api_key.secret) + @classmethod + def create_marketplace(self): + balanced.configure(None) + api_key = balanced.APIKey().save() + balanced.configure(api_key.secret) + marketplace = balanced.Marketplace().save() + return marketplace, api_key + def test_create_a_second_marketplace_should_fail(self): with self.assertRaises(requests.HTTPError) as exc: balanced.Marketplace().save() @@ -198,24 +202,27 @@ def test_create_a_business_customer(self): self.assertEqual(getattr(customer, key), value) def test_credit_a_bank_account(self): + self.create_marketplace() # NOTE: fresh mp for escrow checks card = balanced.Card(**INTERNATIONAL_CARD).save() bank_account = balanced.BankAccount(**BANK_ACCOUNT).save() - card.debit(amount=10000) - original_balance = balanced.Marketplace.mine.in_escrow + debit = card.debit(amount=10000) credit = bank_account.credit(amount=1000) self.assertTrue(credit.id.startswith('CR')) self.assertEqual(credit.amount, 1000) - self.assertEqual( - balanced.Marketplace.mine.in_escrow, - original_balance - credit.amount) + with self.assertRaises(requests.HTTPError) as exc: + bank_account.credit(amount=(debit.amount - credit.amount) + 1) + self.assertEqual(exc.exception.status_code, 409) + self.assertEqual(exc.exception.category_code, 'insufficient-funds') def test_escrow_limit(self): + self.create_marketplace() # NOTE: fresh mp for escrow checks bank_account = balanced.BankAccount(**BANK_ACCOUNT).save() - original_balance = balanced.Marketplace.mine.in_escrow + original_balance = 0 with self.assertRaises(requests.HTTPError) as exc: bank_account.credit(amount=original_balance + 1) - the_exception = exc.exception - self.assertEqual(the_exception.status_code, 409) + ex = exc.exception + self.assertEqual(ex.status_code, 409) + self.assertEqual(ex.category_code, 'insufficient-funds') def test_slice_syntax(self): total_debit = balanced.Debit.query.count() @@ -226,7 +233,7 @@ def test_slice_syntax(self): for debit in sliced_debits: self.assertIsInstance(debit, balanced.Debit) all_debits = balanced.Debit.query.all() - last = total_debit * - 1 + last = total_debit * -1 for index, debit in enumerate(all_debits): self.assertEqual(debit.href, balanced.Debit.query[last + index].href) @@ -364,13 +371,10 @@ def test_order_helper_methods(self): order.credit_to(destination=bank_account, amount=1234) def test_empty_list(self): - # Notice: we need a whole new marketplace to reproduce the bug, + # NOTE: we need a whole new marketplace to reproduce the bug, # otherwise, it's very likely we will consume records created # by other tests - balanced.configure(None) - api_key = balanced.APIKey().save() - balanced.configure(api_key.secret) - balanced.Marketplace().save() + self.create_marketplace() self.assertEqual(balanced.Credit.query.all(), []) def test_dispute(self): @@ -380,7 +384,7 @@ def test_dispute(self): # TODO: this is ugly, I think we should provide a more # reliable way to generate dispute, at least it should not # take this long - print >>sys.stderr, ( + print >> sys.stderr, ( 'It takes a while before the dispute record created, ' 'take and nap and wake up, then it should be done :/ ' '(last time I tried it took 10 minutes...)' @@ -393,7 +397,7 @@ def test_dispute(self): break time.sleep(interval) elapsed = time.time() - begin - print >>sys.stderr, 'Polling disputes..., elapsed', elapsed + print >> sys.stderr, 'Polling disputes..., elapsed', elapsed self.assertLess(elapsed, timeout, 'Ouch, timeout') dispute = balanced.Dispute.query.one() From 6fc50ce775b51a4957f270fde2c3373a0a837cae Mon Sep 17 00:00:00 2001 From: Matthew Francis-Landau Date: Wed, 19 Feb 2014 21:59:52 -0800 Subject: [PATCH 20/93] fixing test for external accounts --- balanced/__init__.py | 2 +- tests/test_suite.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/balanced/__init__.py b/balanced/__init__.py index 4c7147d..53b3c9a 100644 --- a/balanced/__init__.py +++ b/balanced/__init__.py @@ -1,6 +1,6 @@ from __future__ import unicode_literals -__version__ = '1.0.1beta2' +__version__ = '1.0.1beta3' from balanced.config import configure from balanced import resources diff --git a/tests/test_suite.py b/tests/test_suite.py index 9dc03e2..44a5a31 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -409,7 +409,7 @@ def test_external_accounts(self): debit = external_account.debit( amount=1234 ) - self.assertEqual(debit.source, external_account.id) + self.assertEqual(debit.source.id, external_account.id) class Rev0URIBasicUseCases(unittest.TestCase): From 59367aaa4c314bf3e4190e6d1f5581f1de1a9aa5 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Fri, 21 Feb 2014 10:07:28 -0700 Subject: [PATCH 21/93] Release 1.beta3 --- balanced/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/balanced/__init__.py b/balanced/__init__.py index 53b3c9a..d05c350 100644 --- a/balanced/__init__.py +++ b/balanced/__init__.py @@ -1,6 +1,6 @@ from __future__ import unicode_literals -__version__ = '1.0.1beta3' +__version__ = '1.beta3' from balanced.config import configure from balanced import resources From 8e51052d5e2294e8110c142b426331059139c082 Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Fri, 21 Feb 2014 09:31:26 -0800 Subject: [PATCH 22/93] fix refactored field name --- tests/test_suite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_suite.py b/tests/test_suite.py index 136480b..aacddf5 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -408,7 +408,7 @@ def test_dispute(self): def test_external_accounts(self): external_account = balanced.ExternalAccount( token='123123123', - network='name_of_provider', + provider='name_of_provider', ).save() debit = external_account.debit( amount=1234 From 6b32d9891d30604195f341f83c8d9d0e05e2b1cc Mon Sep 17 00:00:00 2001 From: Richie Date: Thu, 6 Mar 2014 11:37:29 -0800 Subject: [PATCH 23/93] Update scenario cache --- scenario.cache | 282 +++++++++--------- scenarios/_mj/api_key_create/executable.py | 2 +- scenarios/_mj/api_key_create/python.mako | 2 +- scenarios/api_key_create/executable.py | 2 +- scenarios/api_key_create/python.mako | 2 +- scenarios/api_key_delete/executable.py | 4 +- scenarios/api_key_delete/python.mako | 4 +- scenarios/api_key_list/executable.py | 2 +- scenarios/api_key_list/python.mako | 2 +- scenarios/api_key_show/executable.py | 4 +- scenarios/api_key_show/python.mako | 4 +- .../executable.py | 6 +- .../python.mako | 6 +- scenarios/bank_account_create/executable.py | 4 +- scenarios/bank_account_create/python.mako | 4 +- scenarios/bank_account_credit/executable.py | 4 +- scenarios/bank_account_credit/python.mako | 4 +- scenarios/bank_account_debit/executable.py | 4 +- scenarios/bank_account_debit/python.mako | 4 +- scenarios/bank_account_delete/executable.py | 4 +- scenarios/bank_account_delete/python.mako | 4 +- scenarios/bank_account_list/executable.py | 2 +- scenarios/bank_account_list/python.mako | 2 +- scenarios/bank_account_show/executable.py | 4 +- scenarios/bank_account_show/python.mako | 4 +- scenarios/bank_account_update/executable.py | 4 +- scenarios/bank_account_update/python.mako | 4 +- .../executable.py | 4 +- .../python.mako | 4 +- .../executable.py | 4 +- .../python.mako | 4 +- .../executable.py | 4 +- .../python.mako | 4 +- scenarios/callback_create/executable.py | 2 +- scenarios/callback_create/python.mako | 2 +- scenarios/callback_delete/executable.py | 4 +- scenarios/callback_delete/python.mako | 4 +- scenarios/callback_list/executable.py | 2 +- scenarios/callback_list/python.mako | 2 +- scenarios/callback_show/executable.py | 4 +- scenarios/callback_show/python.mako | 4 +- .../card_associate_to_customer/executable.py | 6 +- .../card_associate_to_customer/python.mako | 6 +- scenarios/card_create/executable.py | 4 +- scenarios/card_create/python.mako | 4 +- scenarios/card_debit/executable.py | 4 +- scenarios/card_debit/python.mako | 4 +- scenarios/card_delete/executable.py | 4 +- scenarios/card_delete/python.mako | 4 +- scenarios/card_hold_capture/executable.py | 4 +- scenarios/card_hold_capture/python.mako | 4 +- scenarios/card_hold_create/executable.py | 4 +- scenarios/card_hold_create/python.mako | 4 +- scenarios/card_hold_list/executable.py | 2 +- scenarios/card_hold_list/python.mako | 2 +- scenarios/card_hold_show/executable.py | 4 +- scenarios/card_hold_show/python.mako | 4 +- scenarios/card_hold_update/executable.py | 4 +- scenarios/card_hold_update/python.mako | 4 +- scenarios/card_hold_void/executable.py | 4 +- scenarios/card_hold_void/python.mako | 4 +- scenarios/card_list/executable.py | 2 +- scenarios/card_list/python.mako | 2 +- scenarios/card_show/executable.py | 4 +- scenarios/card_show/python.mako | 4 +- scenarios/card_update/executable.py | 4 +- scenarios/card_update/python.mako | 4 +- scenarios/credit_list/executable.py | 2 +- scenarios/credit_list/python.mako | 2 +- .../credit_list_bank_account/executable.py | 4 +- .../credit_list_bank_account/python.mako | 4 +- scenarios/credit_show/executable.py | 4 +- scenarios/credit_show/python.mako | 4 +- scenarios/credit_update/executable.py | 4 +- scenarios/credit_update/python.mako | 4 +- scenarios/customer_create/executable.py | 2 +- scenarios/customer_create/python.mako | 2 +- scenarios/customer_delete/executable.py | 4 +- scenarios/customer_delete/python.mako | 4 +- scenarios/customer_list/executable.py | 2 +- scenarios/customer_list/python.mako | 2 +- scenarios/customer_show/executable.py | 4 +- scenarios/customer_show/python.mako | 4 +- scenarios/customer_update/executable.py | 4 +- scenarios/customer_update/python.mako | 4 +- scenarios/debit_list/executable.py | 2 +- scenarios/debit_list/python.mako | 2 +- scenarios/debit_show/executable.py | 4 +- scenarios/debit_show/python.mako | 4 +- scenarios/debit_update/executable.py | 4 +- scenarios/debit_update/python.mako | 4 +- scenarios/event_list/executable.py | 2 +- scenarios/event_list/python.mako | 2 +- scenarios/event_show/executable.py | 4 +- scenarios/event_show/python.mako | 4 +- scenarios/order_create/executable.py | 4 +- scenarios/order_create/python.mako | 4 +- scenarios/order_list/executable.py | 2 +- scenarios/order_list/python.mako | 2 +- scenarios/order_show/executable.py | 4 +- scenarios/order_show/python.mako | 4 +- scenarios/order_update/executable.py | 4 +- scenarios/order_update/python.mako | 4 +- scenarios/refund_create/executable.py | 4 +- scenarios/refund_create/python.mako | 4 +- scenarios/refund_list/executable.py | 2 +- scenarios/refund_list/python.mako | 2 +- scenarios/refund_show/executable.py | 4 +- scenarios/refund_show/python.mako | 4 +- scenarios/refund_update/executable.py | 4 +- scenarios/refund_update/python.mako | 4 +- scenarios/reversal_create/executable.py | 4 +- scenarios/reversal_create/python.mako | 4 +- scenarios/reversal_list/executable.py | 2 +- scenarios/reversal_list/python.mako | 2 +- scenarios/reversal_show/executable.py | 4 +- scenarios/reversal_show/python.mako | 4 +- scenarios/reversal_update/executable.py | 4 +- scenarios/reversal_update/python.mako | 4 +- 119 files changed, 349 insertions(+), 349 deletions(-) diff --git a/scenario.cache b/scenario.cache index dc57ab2..305b0b3 100644 --- a/scenario.cache +++ b/scenario.cache @@ -1,91 +1,91 @@ { "accept_type": "application/vnd.api+json;revision=1.1", - "api_key": "ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc", + "api_key": "ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB", "api_key_create": { "request": { "uri": "/api_keys" }, - "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-01-27T22:56:01.641736Z\", \n \"href\": \"/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c\", \n \"id\": \"AK1vqjn1eEHXP0JYXrBrjH5c\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-1jlJCdGZjRWWYRF1iLBR69xwqG2NdQifv\"\n }\n ], \n \"links\": {}\n}" + "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-03-05T23:25:38.010269Z\", \n \"href\": \"/api_keys/AK3zUFsQ8aJ3aae9ZylavXLp\", \n \"id\": \"AK3zUFsQ8aJ3aae9ZylavXLp\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-L4Cs4roaWqT6O5EllIqqFQIiT8YB923X\"\n }\n ], \n \"links\": {}\n}" }, "api_key_delete": { "request": { - "uri": "/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c" + "uri": "/api_keys/AK3zUFsQ8aJ3aae9ZylavXLp" } }, "api_key_list": { "request": { "uri": "/api_keys" }, - "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-01-27T22:56:01.641736Z\", \n \"href\": \"/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c\", \n \"id\": \"AK1vqjn1eEHXP0JYXrBrjH5c\", \n \"links\": {}, \n \"meta\": {}\n }, \n {\n \"created_at\": \"2014-01-27T22:55:46.698536Z\", \n \"href\": \"/api_keys/AK1eDKn7B8vK70hj70S1NMbu\", \n \"id\": \"AK1eDKn7B8vK70hj70S1NMbu\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc\"\n }\n ], \n \"links\": {}, \n \"meta\": {\n \"first\": \"/api_keys?limit=10&offset=0\", \n \"href\": \"/api_keys?limit=10&offset=0\", \n \"last\": \"/api_keys?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 2\n }\n}" + "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-03-05T23:25:38.010269Z\", \n \"href\": \"/api_keys/AK3zUFsQ8aJ3aae9ZylavXLp\", \n \"id\": \"AK3zUFsQ8aJ3aae9ZylavXLp\", \n \"links\": {}, \n \"meta\": {}\n }, \n {\n \"created_at\": \"2014-03-05T23:25:33.332043Z\", \n \"href\": \"/api_keys/AK3uEJynPdwB05TB04ND2FEi\", \n \"id\": \"AK3uEJynPdwB05TB04ND2FEi\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB\"\n }\n ], \n \"links\": {}, \n \"meta\": {\n \"first\": \"/api_keys?limit=10&offset=0\", \n \"href\": \"/api_keys?limit=10&offset=0\", \n \"last\": \"/api_keys?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 2\n }\n}" }, "api_key_show": { "request": { - "uri": "/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c" + "uri": "/api_keys/AK3zUFsQ8aJ3aae9ZylavXLp" }, - "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-01-27T22:56:01.641736Z\", \n \"href\": \"/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c\", \n \"id\": \"AK1vqjn1eEHXP0JYXrBrjH5c\", \n \"links\": {}, \n \"meta\": {}\n }\n ], \n \"links\": {}\n}" + "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-03-05T23:25:38.010269Z\", \n \"href\": \"/api_keys/AK3zUFsQ8aJ3aae9ZylavXLp\", \n \"id\": \"AK3zUFsQ8aJ3aae9ZylavXLp\", \n \"links\": {}, \n \"meta\": {}\n }\n ], \n \"links\": {}\n}" }, "api_location": "https://api.balancedpayments.com", "api_rev": "rev1", "bank_account_associate_to_customer": { "request": { - "customer_href": "/customers/CU3eeasZ9yQ86uzzIYZkrPGg", + "customer_href": "/customers/CU4EeI9UPzRcOo2C3j1qFjQj", "payload": { - "customer": "/customers/CU3eeasZ9yQ86uzzIYZkrPGg" + "customer": "/customers/CU4EeI9UPzRcOo2C3j1qFjQj" }, - "uri": "/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0" + "uri": "/bank_accounts/BA4JCiiAb4alhWMlZSv9POAU" }, - "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-01-27T22:57:47.772481Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0\", \n \"id\": \"BA3qNbYRqFM0Q7MXn3IcjGl0\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU3eeasZ9yQ86uzzIYZkrPGg\"\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-01-27T22:57:48.515195Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}" + "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-05T23:26:41.766297Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA4JCiiAb4alhWMlZSv9POAU\", \n \"id\": \"BA4JCiiAb4alhWMlZSv9POAU\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU4EeI9UPzRcOo2C3j1qFjQj\"\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-05T23:26:42.260213Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}" }, "bank_account_create": { "request": { "payload": { "account_number": "9900000001", + "account_type": "checking", "name": "Johann Bernoulli", - "routing_number": "121000358", - "type": "checking" + "routing_number": "121000358" }, "uri": "/bank_accounts" }, - "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-01-27T22:57:47.772481Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0\", \n \"id\": \"BA3qNbYRqFM0Q7MXn3IcjGl0\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-01-27T22:57:47.772483Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}" + "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-05T23:26:41.766297Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA4JCiiAb4alhWMlZSv9POAU\", \n \"id\": \"BA4JCiiAb4alhWMlZSv9POAU\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-05T23:26:41.766300Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}" }, "bank_account_credit": { "request": { - "bank_account_href": "/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0", + "bank_account_href": "/bank_accounts/BA4JCiiAb4alhWMlZSv9POAU", "payload": { "amount": 5000 }, - "uri": "/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0/credits" + "uri": "/bank_accounts/BA4JCiiAb4alhWMlZSv9POAU/credits" }, - "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-27T22:58:19.422292Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR40neytmVG2HDBp1opfF7sY\", \n \"id\": \"CR40neytmVG2HDBp1opfF7sY\", \n \"links\": {\n \"customer\": \"CU3eeasZ9yQ86uzzIYZkrPGg\", \n \"destination\": \"BA3qNbYRqFM0Q7MXn3IcjGl0\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR816-868-3666\", \n \"updated_at\": \"2014-01-27T22:58:20.346871Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }\n}" + "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-03-05T23:27:04.588054Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR5j27kuJPX6voI8aokUWsEG\", \n \"id\": \"CR5j27kuJPX6voI8aokUWsEG\", \n \"links\": {\n \"customer\": \"CU4EeI9UPzRcOo2C3j1qFjQj\", \n \"destination\": \"BA4JCiiAb4alhWMlZSv9POAU\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR014-527-1811\", \n \"updated_at\": \"2014-03-05T23:27:04.959556Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }\n}" }, "bank_account_debit": { "request": { - "bank_account_href": "/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S", + "bank_account_href": "/bank_accounts/BA3EMnkybAfEzVlbVquXFLEk", "payload": { "amount": 5000, "appears_on_statement_as": "Statement text", "description": "Some descriptive text for the debit in the dashboard" }, - "uri": "/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S/debits" + "uri": "/bank_accounts/BA3EMnkybAfEzVlbVquXFLEk/debits" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-27T22:56:28.702119Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD1ZRRAZnFTryFdFaq7ijcPE\", \n \"id\": \"WD1ZRRAZnFTryFdFaq7ijcPE\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"BA1D3vL3LjasB0kewMqRGI0S\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W081-463-7557\", \n \"updated_at\": \"2014-01-27T22:56:29.235927Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" + "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-05T23:25:54.018666Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD3YFevpLojZZXSGnXtxLXYJ\", \n \"id\": \"WD3YFevpLojZZXSGnXtxLXYJ\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"BA3EMnkybAfEzVlbVquXFLEk\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W506-983-6658\", \n \"updated_at\": \"2014-03-05T23:25:54.401166Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" }, "bank_account_delete": { "request": { - "uri": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy" + "uri": "/bank_accounts/BA3LBmizwthrjehivn2ffzHU" } }, "bank_account_list": { "request": { "uri": "/bank_accounts" }, - "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-01-27T22:56:20.540530Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy\", \n \"id\": \"BA1QFf0LmIxr8p41msqX46Oy\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-01-27T22:56:20.540534Z\"\n }, \n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-01-27T22:56:08.446352Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S\", \n \"id\": \"BA1D3vL3LjasB0kewMqRGI0S\", \n \"links\": {\n \"bank_account_verification\": \"BZ1FF2MHFH9upRu7C0QUwnby\", \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-01-27T22:56:18.623674Z\"\n }, \n {\n \"account_number\": \"xxxxxxxxxxx5555\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"WELLS FARGO BANK NA\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-01-27T22:55:49.899228Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA1fUvPHaEcIdkRe8HmC2Vee\", \n \"id\": \"BA1fUvPHaEcIdkRe8HmC2Vee\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU1f8Ygc4t0F2FKNcw235x9I\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-01-27T22:55:49.899231Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }, \n \"meta\": {\n \"first\": \"/bank_accounts?limit=10&offset=0\", \n \"href\": \"/bank_accounts?limit=10&offset=0\", \n \"last\": \"/bank_accounts?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 3\n }\n}" + "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-05T23:25:48.401480Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA3LBmizwthrjehivn2ffzHU\", \n \"id\": \"BA3LBmizwthrjehivn2ffzHU\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-05T23:25:48.401483Z\"\n }, \n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-03-05T23:25:42.337258Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA3EMnkybAfEzVlbVquXFLEk\", \n \"id\": \"BA3EMnkybAfEzVlbVquXFLEk\", \n \"links\": {\n \"bank_account_verification\": \"BZ3NheXIi1UxUiNtkaSo1ZI5\", \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-05T23:25:46.811459Z\"\n }, \n {\n \"account_number\": \"xxxxxxxxxxx5555\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"WELLS FARGO BANK NA\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-03-05T23:25:34.017557Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA3EZthJjXI5E73dSq9j10sG\", \n \"id\": \"BA3EZthJjXI5E73dSq9j10sG\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU3EOo1JQiusqvWMhgNOKCQW\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-03-05T23:25:34.017561Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }, \n \"meta\": {\n \"first\": \"/bank_accounts?limit=10&offset=0\", \n \"href\": \"/bank_accounts?limit=10&offset=0\", \n \"last\": \"/bank_accounts?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 3\n }\n}" }, "bank_account_show": { "request": { - "uri": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy" + "uri": "/bank_accounts/BA3LBmizwthrjehivn2ffzHU" }, - "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-01-27T22:56:20.540530Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy\", \n \"id\": \"BA1QFf0LmIxr8p41msqX46Oy\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-01-27T22:56:20.540534Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}" + "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-05T23:25:48.401480Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA3LBmizwthrjehivn2ffzHU\", \n \"id\": \"BA3LBmizwthrjehivn2ffzHU\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-05T23:25:48.401483Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}" }, "bank_account_update": { "request": { @@ -96,22 +96,22 @@ "twitter.id": "1234987650" } }, - "uri": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy" + "uri": "/bank_accounts/BA3LBmizwthrjehivn2ffzHU" }, - "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-01-27T22:56:20.540530Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy\", \n \"id\": \"BA1QFf0LmIxr8p41msqX46Oy\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {\n \"facebook.user_id\": \"0192837465\", \n \"my-own-customer-id\": \"12345\", \n \"twitter.id\": \"1234987650\"\n }, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-01-27T22:56:25.767386Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}" + "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-05T23:25:48.401480Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA3LBmizwthrjehivn2ffzHU\", \n \"id\": \"BA3LBmizwthrjehivn2ffzHU\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {\n \"facebook.user_id\": \"0192837465\", \n \"my-own-customer-id\": \"12345\", \n \"twitter.id\": \"1234987650\"\n }, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-05T23:25:51.917992Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}" }, "bank_account_verification_create": { "request": { - "bank_account_uri": "/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S", - "uri": "/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S/verifications" + "bank_account_uri": "/bank_accounts/BA3EMnkybAfEzVlbVquXFLEk", + "uri": "/bank_accounts/BA3EMnkybAfEzVlbVquXFLEk/verifications" }, - "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-27T22:56:10.726455Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ1FF2MHFH9upRu7C0QUwnby\", \n \"id\": \"BZ1FF2MHFH9upRu7C0QUwnby\", \n \"links\": {\n \"bank_account\": \"BA1D3vL3LjasB0kewMqRGI0S\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-27T22:56:12.545750Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n}" + "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-03-05T23:25:43.892899Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ3NheXIi1UxUiNtkaSo1ZI5\", \n \"id\": \"BZ3NheXIi1UxUiNtkaSo1ZI5\", \n \"links\": {\n \"bank_account\": \"BA3EMnkybAfEzVlbVquXFLEk\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-05T23:25:44.308407Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n}" }, "bank_account_verification_show": { "request": { - "uri": "/verifications/BZ1FF2MHFH9upRu7C0QUwnby" + "uri": "/verifications/BZ3NheXIi1UxUiNtkaSo1ZI5" }, - "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-27T22:56:10.726455Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ1FF2MHFH9upRu7C0QUwnby\", \n \"id\": \"BZ1FF2MHFH9upRu7C0QUwnby\", \n \"links\": {\n \"bank_account\": \"BA1D3vL3LjasB0kewMqRGI0S\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-27T22:56:12.545750Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n}" + "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-03-05T23:25:43.892899Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ3NheXIi1UxUiNtkaSo1ZI5\", \n \"id\": \"BZ3NheXIi1UxUiNtkaSo1ZI5\", \n \"links\": {\n \"bank_account\": \"BA3EMnkybAfEzVlbVquXFLEk\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-05T23:25:44.308407Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n}" }, "bank_account_verification_update": { "request": { @@ -119,9 +119,9 @@ "amount_1": 1, "amount_2": 1 }, - "uri": "/verifications/BZ1FF2MHFH9upRu7C0QUwnby" + "uri": "/verifications/BZ3NheXIi1UxUiNtkaSo1ZI5" }, - "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-27T22:56:10.726455Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ1FF2MHFH9upRu7C0QUwnby\", \n \"id\": \"BZ1FF2MHFH9upRu7C0QUwnby\", \n \"links\": {\n \"bank_account\": \"BA1D3vL3LjasB0kewMqRGI0S\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-27T22:56:18.631337Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n}" + "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-03-05T23:25:43.892899Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ3NheXIi1UxUiNtkaSo1ZI5\", \n \"id\": \"BZ3NheXIi1UxUiNtkaSo1ZI5\", \n \"links\": {\n \"bank_account\": \"BA3EMnkybAfEzVlbVquXFLEk\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-05T23:25:46.812376Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n}" }, "callback_create": { "request": { @@ -130,28 +130,28 @@ }, "uri": "/callbacks" }, - "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB224374R2NSyoYBpDV4r7C2\", \n \"id\": \"CB224374R2NSyoYBpDV4r7C2\", \n \"links\": {}, \n \"method\": \"post\", \n \"revision\": \"1.1\", \n \"url\": \"http://www.example.com/callback\"\n }\n ], \n \"links\": {}\n}" + "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB40OMtABWHqkGcBEYpWVnAd\", \n \"id\": \"CB40OMtABWHqkGcBEYpWVnAd\", \n \"links\": {}, \n \"method\": \"post\", \n \"revision\": \"1.1\", \n \"url\": \"http://www.example.com/callback\"\n }\n ], \n \"links\": {}\n}" }, "callback_delete": { "request": { - "uri": "/callbacks/CB224374R2NSyoYBpDV4r7C2" + "uri": "/callbacks/CB40OMtABWHqkGcBEYpWVnAd" } }, "callback_list": { "request": { "uri": "/callbacks" }, - "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB224374R2NSyoYBpDV4r7C2\", \n \"id\": \"CB224374R2NSyoYBpDV4r7C2\", \n \"links\": {}, \n \"method\": \"post\", \n \"revision\": \"1.1\", \n \"url\": \"http://www.example.com/callback\"\n }\n ], \n \"links\": {}, \n \"meta\": {\n \"first\": \"/callbacks?limit=10&offset=0\", \n \"href\": \"/callbacks?limit=10&offset=0\", \n \"last\": \"/callbacks?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }\n}" + "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB40OMtABWHqkGcBEYpWVnAd\", \n \"id\": \"CB40OMtABWHqkGcBEYpWVnAd\", \n \"links\": {}, \n \"method\": \"post\", \n \"revision\": \"1.1\", \n \"url\": \"http://www.example.com/callback\"\n }\n ], \n \"links\": {}, \n \"meta\": {\n \"first\": \"/callbacks?limit=10&offset=0\", \n \"href\": \"/callbacks?limit=10&offset=0\", \n \"last\": \"/callbacks?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }\n}" }, "callback_show": { "request": { - "uri": "/callbacks/CB224374R2NSyoYBpDV4r7C2" + "uri": "/callbacks/CB40OMtABWHqkGcBEYpWVnAd" }, - "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB224374R2NSyoYBpDV4r7C2\", \n \"id\": \"CB224374R2NSyoYBpDV4r7C2\", \n \"links\": {}, \n \"method\": \"post\", \n \"revision\": \"1.1\", \n \"url\": \"http://www.example.com/callback\"\n }\n ], \n \"links\": {}\n}" + "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB40OMtABWHqkGcBEYpWVnAd\", \n \"id\": \"CB40OMtABWHqkGcBEYpWVnAd\", \n \"links\": {}, \n \"method\": \"post\", \n \"revision\": \"1.1\", \n \"url\": \"http://www.example.com/callback\"\n }\n ], \n \"links\": {}\n}" }, "card": { "address": { - "city": null, + "city": "Balo Alto", "country_code": "USA", "line1": null, "line2": null, @@ -160,97 +160,97 @@ }, "avs_postal_match": "yes", "avs_result": "Postal code matches, but street address not verified.", - "avs_street_match": null, + "avs_street_match": "yes", "brand": "Visa", - "created_at": "2014-01-27T22:55:54.558589Z", + "created_at": "2014-03-05T23:25:35.621284Z", "cvv": null, "cvv_match": null, "cvv_result": null, "expiration_month": 4, "expiration_year": 2016, "fingerprint": "979a26c05f2fb1c7ae38656312b176da2c9be1d938d442040bc79539caac6c0d", - "href": "/cards/CC1nrXVKmfh0ouOS7zxI6X8q", - "id": "CC1nrXVKmfh0ouOS7zxI6X8q", + "href": "/cards/CC3xcAcEO1uAKg6y8vInsuyy", + "id": "CC3xcAcEO1uAKg6y8vInsuyy", "is_verified": true, "links": { - "customer": "CU1iDnBalzHoZg47Np92rNrV" + "customer": "CU3vRG5nvuT7KVvWumdwT33W" }, "meta": {}, "name": "Benny Riemann", "number": "xxxxxxxxxxxx1111", - "updated_at": "2014-01-27T22:55:54.558592Z" + "updated_at": "2014-03-05T23:25:35.621287Z" }, "card_associate_to_customer": { "request": { "payload": { - "customer": "/customers/CU3eeasZ9yQ86uzzIYZkrPGg" + "customer": "/customers/CU4EeI9UPzRcOo2C3j1qFjQj" }, - "uri": "/cards/CC3kqm84fxh50avenrUsSKbu" + "uri": "/cards/CC4GOYzOKyWXBzJMVTs00aNk" }, - "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-27T22:57:42.092923Z\", \n \"cvv\": null, \n \"cvv_match\": null, \n \"cvv_result\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC3kqm84fxh50avenrUsSKbu\", \n \"id\": \"CC3kqm84fxh50avenrUsSKbu\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU3eeasZ9yQ86uzzIYZkrPGg\"\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-27T22:57:42.724392Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}" + "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-05T23:26:39.277255Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC4GOYzOKyWXBzJMVTs00aNk\", \n \"id\": \"CC4GOYzOKyWXBzJMVTs00aNk\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU4EeI9UPzRcOo2C3j1qFjQj\"\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-05T23:26:39.764773Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}" }, "card_create": { "request": { "payload": { + "cvv": "123", "expiration_month": "12", "expiration_year": "2020", - "number": "5105105105105100", - "security_code": "123" + "number": "5105105105105100" }, "uri": "/cards" }, - "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-27T22:57:42.092923Z\", \n \"cvv\": null, \n \"cvv_match\": null, \n \"cvv_result\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC3kqm84fxh50avenrUsSKbu\", \n \"id\": \"CC3kqm84fxh50avenrUsSKbu\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-27T22:57:42.092926Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}" + "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-05T23:26:39.277255Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC4GOYzOKyWXBzJMVTs00aNk\", \n \"id\": \"CC4GOYzOKyWXBzJMVTs00aNk\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-05T23:26:39.277278Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}" }, "card_debit": { "request": { - "card_href": "/cards/CC3kqm84fxh50avenrUsSKbu", + "card_href": "/cards/CC4GOYzOKyWXBzJMVTs00aNk", "payload": { "amount": 5000, "appears_on_statement_as": "Statement text", "description": "Some descriptive text for the debit in the dashboard" }, - "uri": "/cards/CC3kqm84fxh50avenrUsSKbu/debits" + "uri": "/cards/CC4GOYzOKyWXBzJMVTs00aNk/debits" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-27T22:58:07.291226Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD3MKNxNTKBGgA7mX50yogiu\", \n \"id\": \"WD3MKNxNTKBGgA7mX50yogiu\", \n \"links\": {\n \"customer\": \"CU3eeasZ9yQ86uzzIYZkrPGg\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC3kqm84fxh50avenrUsSKbu\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W180-465-2000\", \n \"updated_at\": \"2014-01-27T22:58:09.706862Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" + "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-05T23:26:56.846784Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD57kmfV9Cgc0MiZkHOmFU1z\", \n \"id\": \"WD57kmfV9Cgc0MiZkHOmFU1z\", \n \"links\": {\n \"customer\": \"CU4EeI9UPzRcOo2C3j1qFjQj\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC4GOYzOKyWXBzJMVTs00aNk\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W689-292-5444\", \n \"updated_at\": \"2014-03-05T23:26:57.800246Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" }, "card_delete": { "request": { - "uri": "/cards/CC2uc8iPDjgyxOXHVtnZloyI" + "uri": "/cards/CC4cbNzUmFqGrc1GmFpXp6fe" } }, "card_hold_capture": { "request": { - "card_hold_href": "/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S", + "card_hold_href": "/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs", "payload": { "appears_on_statement_as": "ShowsUpOnStmt", "description": "Some descriptive text for the debit in the dashboard" }, - "uri": "/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S/debits" + "uri": "/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs/debits" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-01-27T22:56:45.623268Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD2iSCukjXyeRdkvX3cW0PmC\", \n \"id\": \"WD2iSCukjXyeRdkvX3cW0PmC\", \n \"links\": {\n \"customer\": \"CU1f8Ygc4t0F2FKNcw235x9I\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC2abDOQVm5aNFhHpcRvWS02\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W744-719-1832\", \n \"updated_at\": \"2014-01-27T22:56:47.926021Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" + "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-03-05T23:26:06.474907Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD4fFQTpXCoEa4bBG4M3DilA\", \n \"id\": \"WD4fFQTpXCoEa4bBG4M3DilA\", \n \"links\": {\n \"customer\": \"CU3EOo1JQiusqvWMhgNOKCQW\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC3ZsWHP2jMgvFrrzDzfZS0q\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W093-013-7624\", \n \"updated_at\": \"2014-03-05T23:26:07.432800Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" }, "card_hold_create": { "request": { - "card_href": "/cards/CC2abDOQVm5aNFhHpcRvWS02", + "card_href": "/cards/CC3ZsWHP2jMgvFrrzDzfZS0q", "payload": { "amount": 5000, "description": "Some descriptive text for the debit in the dashboard" }, - "uri": "/cards/CC2abDOQVm5aNFhHpcRvWS02/card_holds" + "uri": "/cards/CC3ZsWHP2jMgvFrrzDzfZS0q/card_holds" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-27T22:56:49.446376Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-02-03T22:56:50.793698Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG\", \n \"id\": \"HL2ncCO5Bir2S0PCdsDHV3cG\", \n \"links\": {\n \"card\": \"CC2abDOQVm5aNFhHpcRvWS02\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL102-313-8003\", \n \"updated_at\": \"2014-01-27T22:56:51.115729Z\"\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/resources/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}" + "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-05T23:26:08.860551Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-03-12T23:26:09.014221Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL4fmk2370zAE7nAVujKxjtf\", \n \"id\": \"HL4fmk2370zAE7nAVujKxjtf\", \n \"links\": {\n \"card\": \"CC3ZsWHP2jMgvFrrzDzfZS0q\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL299-976-7990\", \n \"updated_at\": \"2014-03-05T23:26:09.094208Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}" }, "card_hold_list": { "request": { "uri": "/card_holds" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-27T22:56:39.379941Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-02-03T22:56:39.876902Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S\", \n \"id\": \"HL2bT9uMRkTZkfSPmA2pBD9S\", \n \"links\": {\n \"card\": \"CC2abDOQVm5aNFhHpcRvWS02\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL500-842-5492\", \n \"updated_at\": \"2014-01-27T22:56:40.238140Z\"\n }, \n {\n \"amount\": 10000000, \n \"created_at\": \"2014-01-27T22:55:56.619097Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-02-03T22:55:57.540880Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL1pMPzS1JEE4lMCBnKh32Oa\", \n \"id\": \"HL1pMPzS1JEE4lMCBnKh32Oa\", \n \"links\": {\n \"card\": \"CC1nrXVKmfh0ouOS7zxI6X8q\", \n \"debit\": \"WD1pU48nHJzorOySkTaQGQ9U\"\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL464-208-0908\", \n \"updated_at\": \"2014-01-27T22:56:00.845902Z\"\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/resources/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }, \n \"meta\": {\n \"first\": \"/card_holds?limit=10&offset=0\", \n \"href\": \"/card_holds?limit=10&offset=0\", \n \"last\": \"/card_holds?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 2\n }\n}" + "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-05T23:26:01.450567Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-03-12T23:26:01.582417Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs\", \n \"id\": \"HL4a1BKhDiVV9Ueh9MTozVDs\", \n \"links\": {\n \"card\": \"CC3ZsWHP2jMgvFrrzDzfZS0q\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL143-599-1267\", \n \"updated_at\": \"2014-03-05T23:26:01.708381Z\", \n \"voided_at\": null\n }, \n {\n \"amount\": 10000000, \n \"created_at\": \"2014-03-05T23:25:36.340065Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-03-12T23:25:36.858680Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3EMy06BmBJMxC9usWzYxGp\", \n \"id\": \"HL3EMy06BmBJMxC9usWzYxGp\", \n \"links\": {\n \"card\": \"CC3xcAcEO1uAKg6y8vInsuyy\", \n \"debit\": \"WD3ESkGREiEVMTVdte6B2xQZ\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL975-858-6267\", \n \"updated_at\": \"2014-03-05T23:25:37.468666Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }, \n \"meta\": {\n \"first\": \"/card_holds?limit=10&offset=0\", \n \"href\": \"/card_holds?limit=10&offset=0\", \n \"last\": \"/card_holds?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 2\n }\n}" }, "card_hold_show": { "request": { - "uri": "/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S" + "uri": "/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-27T22:56:39.379941Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-02-03T22:56:39.876902Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S\", \n \"id\": \"HL2bT9uMRkTZkfSPmA2pBD9S\", \n \"links\": {\n \"card\": \"CC2abDOQVm5aNFhHpcRvWS02\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL500-842-5492\", \n \"updated_at\": \"2014-01-27T22:56:40.238140Z\"\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/resources/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}" + "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-05T23:26:01.450567Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-03-12T23:26:01.582417Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs\", \n \"id\": \"HL4a1BKhDiVV9Ueh9MTozVDs\", \n \"links\": {\n \"card\": \"CC3ZsWHP2jMgvFrrzDzfZS0q\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL143-599-1267\", \n \"updated_at\": \"2014-03-05T23:26:01.708381Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}" }, "card_hold_update": { "request": { @@ -261,31 +261,31 @@ "meaningful.key": "some.value" } }, - "uri": "/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S" + "uri": "/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-27T22:56:39.379941Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"expires_at\": \"2014-02-03T22:56:39.876902Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S\", \n \"id\": \"HL2bT9uMRkTZkfSPmA2pBD9S\", \n \"links\": {\n \"card\": \"CC2abDOQVm5aNFhHpcRvWS02\", \n \"debit\": null\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"transaction_number\": \"HL500-842-5492\", \n \"updated_at\": \"2014-01-27T22:56:44.255042Z\"\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/resources/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}" + "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-05T23:26:01.450567Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"expires_at\": \"2014-03-12T23:26:01.582417Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs\", \n \"id\": \"HL4a1BKhDiVV9Ueh9MTozVDs\", \n \"links\": {\n \"card\": \"CC3ZsWHP2jMgvFrrzDzfZS0q\", \n \"debit\": null\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL143-599-1267\", \n \"updated_at\": \"2014-03-05T23:26:05.389848Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}" }, "card_hold_void": { "request": { "payload": { "is_void": "true" }, - "uri": "/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG" + "uri": "/card_holds/HL4fmk2370zAE7nAVujKxjtf" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-27T22:56:49.446376Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-02-03T22:56:50.793698Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG\", \n \"id\": \"HL2ncCO5Bir2S0PCdsDHV3cG\", \n \"links\": {\n \"card\": \"CC2abDOQVm5aNFhHpcRvWS02\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL102-313-8003\", \n \"updated_at\": \"2014-01-27T22:56:51.686616Z\"\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/resources/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}" + "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-05T23:26:08.860551Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-03-12T23:26:09.014221Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL4fmk2370zAE7nAVujKxjtf\", \n \"id\": \"HL4fmk2370zAE7nAVujKxjtf\", \n \"links\": {\n \"card\": \"CC3ZsWHP2jMgvFrrzDzfZS0q\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL299-976-7990\", \n \"updated_at\": \"2014-03-05T23:26:09.634525Z\", \n \"voided_at\": \"2014-03-05T23:26:09.634528Z\"\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}" }, - "card_id": "CC1nrXVKmfh0ouOS7zxI6X8q", + "card_id": "CC3xcAcEO1uAKg6y8vInsuyy", "card_list": { "request": { "uri": "/cards" }, - "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-27T22:56:55.656375Z\", \n \"cvv\": null, \n \"cvv_match\": null, \n \"cvv_result\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC2uc8iPDjgyxOXHVtnZloyI\", \n \"id\": \"CC2uc8iPDjgyxOXHVtnZloyI\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-27T22:56:55.656379Z\"\n }, \n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-27T22:56:37.869483Z\", \n \"cvv\": null, \n \"cvv_match\": null, \n \"cvv_result\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC2abDOQVm5aNFhHpcRvWS02\", \n \"id\": \"CC2abDOQVm5aNFhHpcRvWS02\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU1f8Ygc4t0F2FKNcw235x9I\"\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-27T22:56:39.354525Z\"\n }, \n {\n \"address\": {\n \"city\": null, \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"10023\", \n \"state\": null\n }, \n \"avs_postal_match\": \"yes\", \n \"avs_result\": \"Postal code matches, but street address not verified.\", \n \"avs_street_match\": null, \n \"brand\": \"Visa\", \n \"created_at\": \"2014-01-27T22:55:54.558589Z\", \n \"cvv\": null, \n \"cvv_match\": null, \n \"cvv_result\": null, \n \"expiration_month\": 4, \n \"expiration_year\": 2016, \n \"fingerprint\": \"979a26c05f2fb1c7ae38656312b176da2c9be1d938d442040bc79539caac6c0d\", \n \"href\": \"/cards/CC1nrXVKmfh0ouOS7zxI6X8q\", \n \"id\": \"CC1nrXVKmfh0ouOS7zxI6X8q\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU1iDnBalzHoZg47Np92rNrV\"\n }, \n \"meta\": {}, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-01-27T22:55:54.558592Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }, \n \"meta\": {\n \"first\": \"/cards?limit=10&offset=0\", \n \"href\": \"/cards?limit=10&offset=0\", \n \"last\": \"/cards?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 3\n }\n}" + "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-05T23:26:12.047635Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC4cbNzUmFqGrc1GmFpXp6fe\", \n \"id\": \"CC4cbNzUmFqGrc1GmFpXp6fe\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-05T23:26:12.047639Z\"\n }, \n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-05T23:26:00.730925Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC3ZsWHP2jMgvFrrzDzfZS0q\", \n \"id\": \"CC3ZsWHP2jMgvFrrzDzfZS0q\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU3EOo1JQiusqvWMhgNOKCQW\"\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-05T23:26:01.448309Z\"\n }, \n {\n \"address\": {\n \"city\": \"Balo Alto\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"10023\", \n \"state\": null\n }, \n \"avs_postal_match\": \"yes\", \n \"avs_result\": \"Postal code matches, but street address not verified.\", \n \"avs_street_match\": \"yes\", \n \"brand\": \"Visa\", \n \"created_at\": \"2014-03-05T23:25:35.621284Z\", \n \"cvv\": null, \n \"cvv_match\": null, \n \"cvv_result\": null, \n \"expiration_month\": 4, \n \"expiration_year\": 2016, \n \"fingerprint\": \"979a26c05f2fb1c7ae38656312b176da2c9be1d938d442040bc79539caac6c0d\", \n \"href\": \"/cards/CC3xcAcEO1uAKg6y8vInsuyy\", \n \"id\": \"CC3xcAcEO1uAKg6y8vInsuyy\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU3vRG5nvuT7KVvWumdwT33W\"\n }, \n \"meta\": {}, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-03-05T23:25:35.621287Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }, \n \"meta\": {\n \"first\": \"/cards?limit=10&offset=0\", \n \"href\": \"/cards?limit=10&offset=0\", \n \"last\": \"/cards?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 3\n }\n}" }, "card_show": { "request": { - "uri": "/cards/CC2uc8iPDjgyxOXHVtnZloyI" + "uri": "/cards/CC4cbNzUmFqGrc1GmFpXp6fe" }, - "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-27T22:56:55.656375Z\", \n \"cvv\": null, \n \"cvv_match\": null, \n \"cvv_result\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC2uc8iPDjgyxOXHVtnZloyI\", \n \"id\": \"CC2uc8iPDjgyxOXHVtnZloyI\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-27T22:56:55.656379Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}" + "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-05T23:26:12.047635Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC4cbNzUmFqGrc1GmFpXp6fe\", \n \"id\": \"CC4cbNzUmFqGrc1GmFpXp6fe\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-05T23:26:12.047639Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}" }, "card_update": { "request": { @@ -296,30 +296,30 @@ "twitter.id": "1234987650" } }, - "uri": "/cards/CC2uc8iPDjgyxOXHVtnZloyI" + "uri": "/cards/CC4cbNzUmFqGrc1GmFpXp6fe" }, - "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-27T22:56:55.656375Z\", \n \"cvv\": null, \n \"cvv_match\": null, \n \"cvv_result\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC2uc8iPDjgyxOXHVtnZloyI\", \n \"id\": \"CC2uc8iPDjgyxOXHVtnZloyI\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {\n \"facebook.user_id\": \"0192837465\", \n \"my-own-customer-id\": \"12345\", \n \"twitter.id\": \"1234987650\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-27T22:57:02.195769Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}" + "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-05T23:26:12.047635Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC4cbNzUmFqGrc1GmFpXp6fe\", \n \"id\": \"CC4cbNzUmFqGrc1GmFpXp6fe\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {\n \"facebook.user_id\": \"0192837465\", \n \"my-own-customer-id\": \"12345\", \n \"twitter.id\": \"1234987650\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-05T23:26:15.715688Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}" }, - "card_uri": "/cards/CC1nrXVKmfh0ouOS7zxI6X8q", - "cards_uri": "/customers/CU1iDnBalzHoZg47Np92rNrV/cards", + "card_uri": "/cards/CC3xcAcEO1uAKg6y8vInsuyy", + "cards_uri": "/customers/CU3vRG5nvuT7KVvWumdwT33W/cards", "credit_list": { "request": { "uri": "/credits" }, - "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-27T22:57:19.073817Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR2UtQgq6L3FPd1YoOc8eyOC\", \n \"id\": \"CR2UtQgq6L3FPd1YoOc8eyOC\", \n \"links\": {\n \"customer\": \"CU2N5goX8AQJE0CCPeapHUsM\", \n \"destination\": \"BA2QAksIxlLt60lqKc1wwgJy\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR408-633-3169\", \n \"updated_at\": \"2014-01-27T22:57:20.208794Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }, \n \"meta\": {\n \"first\": \"/credits?limit=10&offset=0\", \n \"href\": \"/credits?limit=10&offset=0\", \n \"last\": \"/credits?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }\n}" + "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-03-05T23:26:24.160132Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR4wyLukORa0TXhCYtjZrfw5\", \n \"id\": \"CR4wyLukORa0TXhCYtjZrfw5\", \n \"links\": {\n \"customer\": \"CU4lcDzIlpDxgcuzHkzC4QHS\", \n \"destination\": \"BA4osUR5dW1HQkqoxl65lfNe\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR858-193-7792\", \n \"updated_at\": \"2014-03-05T23:26:24.536046Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }, \n \"meta\": {\n \"first\": \"/credits?limit=10&offset=0\", \n \"href\": \"/credits?limit=10&offset=0\", \n \"last\": \"/credits?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }\n}" }, "credit_list_bank_account": { "request": { - "bank_account_href": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy", - "uri": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy/credits" + "bank_account_href": "/bank_accounts/BA3LBmizwthrjehivn2ffzHU", + "uri": "/bank_accounts/BA3LBmizwthrjehivn2ffzHU/credits" }, - "response": "{\n \"links\": {}, \n \"meta\": {\n \"first\": \"/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy/credits?limit=10&offset=0\", \n \"href\": \"/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy/credits?limit=10&offset=0\", \n \"last\": \"/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy/credits?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 0\n }\n}" + "response": "{\n \"links\": {}, \n \"meta\": {\n \"first\": \"/bank_accounts/BA3LBmizwthrjehivn2ffzHU/credits?limit=10&offset=0\", \n \"href\": \"/bank_accounts/BA3LBmizwthrjehivn2ffzHU/credits?limit=10&offset=0\", \n \"last\": \"/bank_accounts/BA3LBmizwthrjehivn2ffzHU/credits?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 0\n }\n}" }, "credit_show": { "request": { - "uri": "/credits/CR2UtQgq6L3FPd1YoOc8eyOC" + "uri": "/credits/CR4wyLukORa0TXhCYtjZrfw5" }, - "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-27T22:57:19.073817Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR2UtQgq6L3FPd1YoOc8eyOC\", \n \"id\": \"CR2UtQgq6L3FPd1YoOc8eyOC\", \n \"links\": {\n \"customer\": \"CU2N5goX8AQJE0CCPeapHUsM\", \n \"destination\": \"BA2QAksIxlLt60lqKc1wwgJy\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR408-633-3169\", \n \"updated_at\": \"2014-01-27T22:57:20.208794Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }\n}" + "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-03-05T23:26:24.160132Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR4wyLukORa0TXhCYtjZrfw5\", \n \"id\": \"CR4wyLukORa0TXhCYtjZrfw5\", \n \"links\": {\n \"customer\": \"CU4lcDzIlpDxgcuzHkzC4QHS\", \n \"destination\": \"BA4osUR5dW1HQkqoxl65lfNe\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR858-193-7792\", \n \"updated_at\": \"2014-03-05T23:26:24.536046Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }\n}" }, "credit_update": { "request": { @@ -330,9 +330,9 @@ "facebook.id": "1234567890" } }, - "uri": "/credits/CR2UtQgq6L3FPd1YoOc8eyOC" + "uri": "/credits/CR4wyLukORa0TXhCYtjZrfw5" }, - "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-27T22:57:19.073817Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for credit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR2UtQgq6L3FPd1YoOc8eyOC\", \n \"id\": \"CR2UtQgq6L3FPd1YoOc8eyOC\", \n \"links\": {\n \"customer\": \"CU2N5goX8AQJE0CCPeapHUsM\", \n \"destination\": \"BA2QAksIxlLt60lqKc1wwgJy\", \n \"order\": null\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR408-633-3169\", \n \"updated_at\": \"2014-01-27T22:57:25.832930Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }\n}" + "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-03-05T23:26:24.160132Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for credit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR4wyLukORa0TXhCYtjZrfw5\", \n \"id\": \"CR4wyLukORa0TXhCYtjZrfw5\", \n \"links\": {\n \"customer\": \"CU4lcDzIlpDxgcuzHkzC4QHS\", \n \"destination\": \"BA4osUR5dW1HQkqoxl65lfNe\", \n \"order\": null\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR858-193-7792\", \n \"updated_at\": \"2014-03-05T23:26:29.272502Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }\n}" }, "customer": { "address": { @@ -344,13 +344,13 @@ "state": null }, "business_name": null, - "created_at": "2014-01-27T22:55:50.253066Z", + "created_at": "2014-03-05T23:25:34.408553Z", "dob_month": null, "dob_year": null, "ein": null, "email": null, - "href": "/customers/CU1iDnBalzHoZg47Np92rNrV", - "id": "CU1iDnBalzHoZg47Np92rNrV", + "href": "/customers/CU3vRG5nvuT7KVvWumdwT33W", + "id": "CU3vRG5nvuT7KVvWumdwT33W", "links": { "destination": null, "source": null @@ -360,7 +360,7 @@ "name": null, "phone": null, "ssn_last4": null, - "updated_at": "2014-01-27T22:55:50.767858Z" + "updated_at": "2014-03-05T23:25:34.616603Z" }, "customer_create": { "request": { @@ -374,24 +374,24 @@ }, "uri": "/customers" }, - "response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-01-27T22:57:36.586782Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU3eeasZ9yQ86uzzIYZkrPGg\", \n \"id\": \"CU3eeasZ9yQ86uzzIYZkrPGg\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-01-27T22:57:37.740442Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n}" + "response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-05T23:26:36.978761Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU4EeI9UPzRcOo2C3j1qFjQj\", \n \"id\": \"CU4EeI9UPzRcOo2C3j1qFjQj\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-05T23:26:37.374515Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n}" }, "customer_delete": { "request": { - "uri": "/customers/CU3eeasZ9yQ86uzzIYZkrPGg" + "uri": "/customers/CU4EeI9UPzRcOo2C3j1qFjQj" } }, "customer_list": { "request": { "uri": "/customers" }, - "response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-01-27T22:57:27.459187Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU33Y4cut21qu1d1lGYDBseQ\", \n \"id\": \"CU33Y4cut21qu1d1lGYDBseQ\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-01-27T22:57:29.488272Z\"\n }, \n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-01-27T22:57:12.447565Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU2N5goX8AQJE0CCPeapHUsM\", \n \"id\": \"CU2N5goX8AQJE0CCPeapHUsM\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-01-27T22:57:13.581358Z\"\n }, \n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-01-27T22:55:50.253066Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU1iDnBalzHoZg47Np92rNrV\", \n \"id\": \"CU1iDnBalzHoZg47Np92rNrV\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"no-match\", \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-01-27T22:55:50.767858Z\"\n }, \n {\n \"address\": {\n \"city\": \"Nowhere\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"90210\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-01-27T22:55:47.156306Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU1f8Ygc4t0F2FKNcw235x9I\", \n \"id\": \"CU1f8Ygc4t0F2FKNcw235x9I\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"phone\": \"+16505551212\", \n \"ssn_last4\": \"xxxx\", \n \"updated_at\": \"2014-01-27T22:55:47.781694Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }, \n \"meta\": {\n \"first\": \"/customers?limit=10&offset=0\", \n \"href\": \"/customers?limit=10&offset=0\", \n \"last\": \"/customers?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 4\n }\n}" + "response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-05T23:26:30.913960Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU4xpIqZ7mf2fuLpBoXgoG7m\", \n \"id\": \"CU4xpIqZ7mf2fuLpBoXgoG7m\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-05T23:26:31.358255Z\"\n }, \n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-05T23:26:20.057078Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU4lcDzIlpDxgcuzHkzC4QHS\", \n \"id\": \"CU4lcDzIlpDxgcuzHkzC4QHS\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-05T23:26:20.493999Z\"\n }, \n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-05T23:25:34.408553Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU3vRG5nvuT7KVvWumdwT33W\", \n \"id\": \"CU3vRG5nvuT7KVvWumdwT33W\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"no-match\", \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-05T23:25:34.616603Z\"\n }, \n {\n \"address\": {\n \"city\": \"Nowhere\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"90210\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-05T23:25:33.699184Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU3EOo1JQiusqvWMhgNOKCQW\", \n \"id\": \"CU3EOo1JQiusqvWMhgNOKCQW\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"phone\": \"+16505551212\", \n \"ssn_last4\": \"xxxx\", \n \"updated_at\": \"2014-03-05T23:25:33.823693Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }, \n \"meta\": {\n \"first\": \"/customers?limit=10&offset=0\", \n \"href\": \"/customers?limit=10&offset=0\", \n \"last\": \"/customers?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 4\n }\n}" }, "customer_show": { "request": { - "uri": "/customers/CU33Y4cut21qu1d1lGYDBseQ" + "uri": "/customers/CU4xpIqZ7mf2fuLpBoXgoG7m" }, - "response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-01-27T22:57:27.459187Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU33Y4cut21qu1d1lGYDBseQ\", \n \"id\": \"CU33Y4cut21qu1d1lGYDBseQ\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-01-27T22:57:29.488272Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n}" + "response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-05T23:26:30.913960Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU4xpIqZ7mf2fuLpBoXgoG7m\", \n \"id\": \"CU4xpIqZ7mf2fuLpBoXgoG7m\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-05T23:26:31.358255Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n}" }, "customer_update": { "request": { @@ -401,9 +401,9 @@ "shipping-preference": "ground" } }, - "uri": "/customers/CU33Y4cut21qu1d1lGYDBseQ" + "uri": "/customers/CU4xpIqZ7mf2fuLpBoXgoG7m" }, - "response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-01-27T22:57:27.459187Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": \"email@newdomain.com\", \n \"href\": \"/customers/CU33Y4cut21qu1d1lGYDBseQ\", \n \"id\": \"CU33Y4cut21qu1d1lGYDBseQ\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {\n \"shipping-preference\": \"ground\"\n }, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-01-27T22:57:34.512310Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n}" + "response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-05T23:26:30.913960Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": \"email@newdomain.com\", \n \"href\": \"/customers/CU4xpIqZ7mf2fuLpBoXgoG7m\", \n \"id\": \"CU4xpIqZ7mf2fuLpBoXgoG7m\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {\n \"shipping-preference\": \"ground\"\n }, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-05T23:26:35.592876Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n}" }, "customers_uri": "/customers", "debit": { @@ -411,23 +411,23 @@ { "amount": 10000000, "appears_on_statement_as": "BAL*example.com", - "created_at": "2014-01-27T22:55:56.757487Z", + "created_at": "2014-03-05T23:25:36.426257Z", "currency": "USD", "description": null, "failure_reason": null, "failure_reason_code": null, - "href": "/debits/WD1pU48nHJzorOySkTaQGQ9U", - "id": "WD1pU48nHJzorOySkTaQGQ9U", + "href": "/debits/WD3ESkGREiEVMTVdte6B2xQZ", + "id": "WD3ESkGREiEVMTVdte6B2xQZ", "links": { - "customer": "CU1iDnBalzHoZg47Np92rNrV", + "customer": "CU3vRG5nvuT7KVvWumdwT33W", "dispute": null, "order": null, - "source": "CC1nrXVKmfh0ouOS7zxI6X8q" + "source": "CC3xcAcEO1uAKg6y8vInsuyy" }, "meta": {}, "status": "succeeded", - "transaction_number": "W511-688-4504", - "updated_at": "2014-01-27T22:56:00.833870Z" + "transaction_number": "W717-818-3630", + "updated_at": "2014-03-05T23:25:37.452310Z" } ], "links": { @@ -443,13 +443,13 @@ "request": { "uri": "/debits" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-27T22:57:05.511023Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD2Fd3jVcMZEWyXHtG3U1LRM\", \n \"id\": \"WD2Fd3jVcMZEWyXHtG3U1LRM\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC2uc8iPDjgyxOXHVtnZloyI\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W906-153-1439\", \n \"updated_at\": \"2014-01-27T22:57:10.153696Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-01-27T22:56:45.623268Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD2iSCukjXyeRdkvX3cW0PmC\", \n \"id\": \"WD2iSCukjXyeRdkvX3cW0PmC\", \n \"links\": {\n \"customer\": \"CU1f8Ygc4t0F2FKNcw235x9I\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC2abDOQVm5aNFhHpcRvWS02\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W744-719-1832\", \n \"updated_at\": \"2014-01-27T22:56:47.926021Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-27T22:56:28.702119Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD1ZRRAZnFTryFdFaq7ijcPE\", \n \"id\": \"WD1ZRRAZnFTryFdFaq7ijcPE\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"BA1D3vL3LjasB0kewMqRGI0S\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W081-463-7557\", \n \"updated_at\": \"2014-01-27T22:56:29.235927Z\"\n }, \n {\n \"amount\": 10000000, \n \"appears_on_statement_as\": \"BAL*example.com\", \n \"created_at\": \"2014-01-27T22:55:56.757487Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD1pU48nHJzorOySkTaQGQ9U\", \n \"id\": \"WD1pU48nHJzorOySkTaQGQ9U\", \n \"links\": {\n \"customer\": \"CU1iDnBalzHoZg47Np92rNrV\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC1nrXVKmfh0ouOS7zxI6X8q\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W511-688-4504\", \n \"updated_at\": \"2014-01-27T22:56:00.833870Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }, \n \"meta\": {\n \"first\": \"/debits?limit=10&offset=0\", \n \"href\": \"/debits?limit=10&offset=0\", \n \"last\": \"/debits?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 4\n }\n}" + "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-05T23:26:17.612909Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD4scrlw85LkeIEQqOx3AgUW\", \n \"id\": \"WD4scrlw85LkeIEQqOx3AgUW\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC4cbNzUmFqGrc1GmFpXp6fe\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W915-429-9125\", \n \"updated_at\": \"2014-03-05T23:26:18.387871Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-03-05T23:26:06.474907Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD4fFQTpXCoEa4bBG4M3DilA\", \n \"id\": \"WD4fFQTpXCoEa4bBG4M3DilA\", \n \"links\": {\n \"customer\": \"CU3EOo1JQiusqvWMhgNOKCQW\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC3ZsWHP2jMgvFrrzDzfZS0q\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W093-013-7624\", \n \"updated_at\": \"2014-03-05T23:26:07.432800Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-05T23:25:54.018666Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD3YFevpLojZZXSGnXtxLXYJ\", \n \"id\": \"WD3YFevpLojZZXSGnXtxLXYJ\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"BA3EMnkybAfEzVlbVquXFLEk\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W506-983-6658\", \n \"updated_at\": \"2014-03-05T23:25:54.401166Z\"\n }, \n {\n \"amount\": 10000000, \n \"appears_on_statement_as\": \"BAL*example.com\", \n \"created_at\": \"2014-03-05T23:25:36.426257Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD3ESkGREiEVMTVdte6B2xQZ\", \n \"id\": \"WD3ESkGREiEVMTVdte6B2xQZ\", \n \"links\": {\n \"customer\": \"CU3vRG5nvuT7KVvWumdwT33W\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC3xcAcEO1uAKg6y8vInsuyy\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W717-818-3630\", \n \"updated_at\": \"2014-03-05T23:25:37.452310Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }, \n \"meta\": {\n \"first\": \"/debits?limit=10&offset=0\", \n \"href\": \"/debits?limit=10&offset=0\", \n \"last\": \"/debits?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 4\n }\n}" }, "debit_show": { "request": { - "uri": "/debits/WD2Fd3jVcMZEWyXHtG3U1LRM" + "uri": "/debits/WD4scrlw85LkeIEQqOx3AgUW" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-27T22:57:05.511023Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD2Fd3jVcMZEWyXHtG3U1LRM\", \n \"id\": \"WD2Fd3jVcMZEWyXHtG3U1LRM\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC2uc8iPDjgyxOXHVtnZloyI\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W906-153-1439\", \n \"updated_at\": \"2014-01-27T22:57:10.153696Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" + "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-05T23:26:17.612909Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD4scrlw85LkeIEQqOx3AgUW\", \n \"id\": \"WD4scrlw85LkeIEQqOx3AgUW\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC4cbNzUmFqGrc1GmFpXp6fe\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W915-429-9125\", \n \"updated_at\": \"2014-03-05T23:26:18.387871Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" }, "debit_update": { "request": { @@ -460,30 +460,30 @@ "facebook.id": "1234567890" } }, - "uri": "/debits/WD2Fd3jVcMZEWyXHtG3U1LRM" + "uri": "/debits/WD4scrlw85LkeIEQqOx3AgUW" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-27T22:57:05.511023Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for debit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD2Fd3jVcMZEWyXHtG3U1LRM\", \n \"id\": \"WD2Fd3jVcMZEWyXHtG3U1LRM\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC2uc8iPDjgyxOXHVtnZloyI\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W906-153-1439\", \n \"updated_at\": \"2014-01-27T22:57:53.776191Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" + "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-05T23:26:17.612909Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for debit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD4scrlw85LkeIEQqOx3AgUW\", \n \"id\": \"WD4scrlw85LkeIEQqOx3AgUW\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC4cbNzUmFqGrc1GmFpXp6fe\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W915-429-9125\", \n \"updated_at\": \"2014-03-05T23:26:46.305817Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" }, "event_list": { "request": { "uri": "/events" }, - "response": "{\n \"events\": [\n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-01-27T22:55:50.253066Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU1iDnBalzHoZg47Np92rNrV\", \n \"id\": \"CU1iDnBalzHoZg47Np92rNrV\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"no-match\", \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-01-27T22:55:50.767858Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n }, \n \"href\": \"/events/EV2abbb98487a611e3a86f026ba7d31e6f\", \n \"id\": \"EV2abbb98487a611e3a86f026ba7d31e6f\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-27T22:55:50.767000Z\", \n \"type\": \"account.created\"\n }\n ], \n \"links\": {\n \"events.callbacks\": \"/events/{events.self}/callbacks\"\n }, \n \"meta\": {\n \"first\": \"/events?limit=10&offset=0\", \n \"href\": \"/events?limit=10&offset=0\", \n \"last\": \"/events?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }\n}" + "response": "{\n \"events\": [\n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"customers\": [\n {\n \"address\": {\n \"city\": \"Nowhere\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"90210\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-05T23:25:33.699184Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU3EOo1JQiusqvWMhgNOKCQW\", \n \"id\": \"CU3EOo1JQiusqvWMhgNOKCQW\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"phone\": \"+16505551212\", \n \"ssn_last4\": \"xxxx\", \n \"updated_at\": \"2014-03-05T23:25:33.823693Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n }, \n \"href\": \"/events/EV7838c0f6a4bd11e3937f060e77eca47a\", \n \"id\": \"EV7838c0f6a4bd11e3937f060e77eca47a\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-05T23:25:33.823000Z\", \n \"type\": \"account.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxxxxxxx5555\", \n \"account_type\": \"CHECKING\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"WELLS FARGO BANK NA\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-03-05T23:25:34.017557Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA3EZthJjXI5E73dSq9j10sG\", \n \"id\": \"BA3EZthJjXI5E73dSq9j10sG\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU3EOo1JQiusqvWMhgNOKCQW\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-03-05T23:25:34.017561Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n }, \n \"href\": \"/events/EV78640b08a4bd11e3937f060e77eca47a\", \n \"id\": \"EV78640b08a4bd11e3937f060e77eca47a\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-05T23:25:34.017000Z\", \n \"type\": \"bank_account.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-05T23:25:34.408553Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU3vRG5nvuT7KVvWumdwT33W\", \n \"id\": \"CU3vRG5nvuT7KVvWumdwT33W\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"no-match\", \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-05T23:25:34.616603Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n }, \n \"href\": \"/events/EV737565a6a4bd11e3b283026ba7f8ec28\", \n \"id\": \"EV737565a6a4bd11e3b283026ba7f8ec28\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-05T23:25:34.616000Z\", \n \"type\": \"account.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"cards\": [\n {\n \"address\": {\n \"city\": \"Balo Alto\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"10023\", \n \"state\": null\n }, \n \"avs_postal_match\": \"yes\", \n \"avs_result\": \"Postal code matches, but street address not verified.\", \n \"avs_street_match\": \"yes\", \n \"brand\": \"Visa\", \n \"created_at\": \"2014-03-05T23:25:35.621284Z\", \n \"cvv\": null, \n \"cvv_match\": null, \n \"cvv_result\": null, \n \"expiration_month\": 4, \n \"expiration_year\": 2016, \n \"fingerprint\": \"979a26c05f2fb1c7ae38656312b176da2c9be1d938d442040bc79539caac6c0d\", \n \"href\": \"/cards/CC3xcAcEO1uAKg6y8vInsuyy\", \n \"id\": \"CC3xcAcEO1uAKg6y8vInsuyy\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU3vRG5nvuT7KVvWumdwT33W\"\n }, \n \"meta\": {}, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-03-05T23:25:35.621287Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n }, \n \"href\": \"/events/EV742ee1fca4bd11e395d7026ba7c1aba6\", \n \"id\": \"EV742ee1fca4bd11e395d7026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-05T23:25:35.621000Z\", \n \"type\": \"card.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"card_holds\": [\n {\n \"amount\": 10000000, \n \"created_at\": \"2014-03-05T23:25:36.340065Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3EMy06BmBJMxC9usWzYxGp\", \n \"id\": \"HL3EMy06BmBJMxC9usWzYxGp\", \n \"links\": {\n \"card\": \"CC3xcAcEO1uAKg6y8vInsuyy\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"failed\", \n \"transaction_number\": \"HL975-858-6267\", \n \"updated_at\": \"2014-03-05T23:25:36.340069Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n }, \n \"href\": \"/events/EV7835e926a4bd11e3ab2d02219cc35fd9\", \n \"id\": \"EV7835e926a4bd11e3ab2d02219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-05T23:25:36.340000Z\", \n \"type\": \"hold.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"card_holds\": [\n {\n \"amount\": 10000000, \n \"created_at\": \"2014-03-05T23:25:36.340065Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-03-12T23:25:36.858680Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3EMy06BmBJMxC9usWzYxGp\", \n \"id\": \"HL3EMy06BmBJMxC9usWzYxGp\", \n \"links\": {\n \"card\": \"CC3xcAcEO1uAKg6y8vInsuyy\", \n \"debit\": \"WD3ESkGREiEVMTVdte6B2xQZ\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL975-858-6267\", \n \"updated_at\": \"2014-03-05T23:25:37.468666Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n }, \n \"href\": \"/events/EV78938b08a4bd11e3ab2d02219cc35fd9\", \n \"id\": \"EV78938b08a4bd11e3ab2d02219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-05T23:25:37.468000Z\", \n \"type\": \"hold.updated\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"debits\": [\n {\n \"amount\": 10000000, \n \"appears_on_statement_as\": \"BAL*example.com\", \n \"created_at\": \"2014-03-05T23:25:36.426257Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD3ESkGREiEVMTVdte6B2xQZ\", \n \"id\": \"WD3ESkGREiEVMTVdte6B2xQZ\", \n \"links\": {\n \"customer\": \"CU3vRG5nvuT7KVvWumdwT33W\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC3xcAcEO1uAKg6y8vInsuyy\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W717-818-3630\", \n \"updated_at\": \"2014-03-05T23:25:37.452310Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n }, \n \"href\": \"/events/EV78944246a4bd11e3ab2d02219cc35fd9\", \n \"id\": \"EV78944246a4bd11e3ab2d02219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-05T23:25:37.452000Z\", \n \"type\": \"debit.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"card_holds\": [\n {\n \"amount\": 10000000, \n \"created_at\": \"2014-03-05T23:25:36.340065Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-03-12T23:25:36.858680Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3EMy06BmBJMxC9usWzYxGp\", \n \"id\": \"HL3EMy06BmBJMxC9usWzYxGp\", \n \"links\": {\n \"card\": \"CC3xcAcEO1uAKg6y8vInsuyy\", \n \"debit\": \"WD3ESkGREiEVMTVdte6B2xQZ\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL975-858-6267\", \n \"updated_at\": \"2014-03-05T23:25:37.468666Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n }, \n \"href\": \"/events/EV74934156a4bd11e3b09706d4d32471fd\", \n \"id\": \"EV74934156a4bd11e3b09706d4d32471fd\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-05T23:25:37.468000Z\", \n \"type\": \"hold.captured\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"debits\": [\n {\n \"amount\": 10000000, \n \"appears_on_statement_as\": \"BAL*example.com\", \n \"created_at\": \"2014-03-05T23:25:36.426257Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD3ESkGREiEVMTVdte6B2xQZ\", \n \"id\": \"WD3ESkGREiEVMTVdte6B2xQZ\", \n \"links\": {\n \"customer\": \"CU3vRG5nvuT7KVvWumdwT33W\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC3xcAcEO1uAKg6y8vInsuyy\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W717-818-3630\", \n \"updated_at\": \"2014-03-05T23:25:37.452310Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n }, \n \"href\": \"/events/EV74a75966a4bd11e3b00306d4d32471fd\", \n \"id\": \"EV74a75966a4bd11e3b00306d4d32471fd\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-05T23:25:37.452000Z\", \n \"type\": \"debit.succeeded\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"CHECKING\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-05T23:25:42.337258Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA3EMnkybAfEzVlbVquXFLEk\", \n \"id\": \"BA3EMnkybAfEzVlbVquXFLEk\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-05T23:25:42.337263Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n }, \n \"href\": \"/events/EV782f6498a4bd11e387f3026ba7f8ec28\", \n \"id\": \"EV782f6498a4bd11e387f3026ba7f8ec28\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-05T23:25:42.337000Z\", \n \"type\": \"bank_account.created\"\n }\n ], \n \"links\": {\n \"events.callbacks\": \"/events/{events.self}/callbacks\"\n }, \n \"meta\": {\n \"first\": \"/events?limit=10&offset=0\", \n \"href\": \"/events?limit=10&offset=0\", \n \"last\": \"/events?limit=10&offset=50\", \n \"limit\": 10, \n \"next\": \"/events?limit=10&offset=10\", \n \"offset\": 0, \n \"previous\": null, \n \"total\": 57\n }\n}" }, "event_show": { "request": { - "uri": "/events/EV2abbb98487a611e3a86f026ba7d31e6f" + "uri": "/events/EV7838c0f6a4bd11e3937f060e77eca47a" }, - "response": "{\n \"events\": [\n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-01-27T22:55:50.253066Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU1iDnBalzHoZg47Np92rNrV\", \n \"id\": \"CU1iDnBalzHoZg47Np92rNrV\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"no-match\", \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-01-27T22:55:50.767858Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n }, \n \"href\": \"/events/EV2abbb98487a611e3a86f026ba7d31e6f\", \n \"id\": \"EV2abbb98487a611e3a86f026ba7d31e6f\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-27T22:55:50.767000Z\", \n \"type\": \"account.created\"\n }\n ], \n \"links\": {\n \"events.callbacks\": \"/events/{events.self}/callbacks\"\n }\n}" + "response": "{\n \"events\": [\n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"customers\": [\n {\n \"address\": {\n \"city\": \"Nowhere\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"90210\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-05T23:25:33.699184Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU3EOo1JQiusqvWMhgNOKCQW\", \n \"id\": \"CU3EOo1JQiusqvWMhgNOKCQW\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"phone\": \"+16505551212\", \n \"ssn_last4\": \"xxxx\", \n \"updated_at\": \"2014-03-05T23:25:33.823693Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n }, \n \"href\": \"/events/EV7838c0f6a4bd11e3937f060e77eca47a\", \n \"id\": \"EV7838c0f6a4bd11e3937f060e77eca47a\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-05T23:25:33.823000Z\", \n \"type\": \"account.created\"\n }\n ], \n \"links\": {\n \"events.callbacks\": \"/events/{events.self}/callbacks\"\n }\n}" }, "marketplace": { - "created_at": "2014-01-27T22:55:47.104898Z", + "created_at": "2014-03-05T23:25:33.690153Z", "domain_url": "example.com", - "href": "/marketplaces/TEST-MP1f3Hgx3WTYV6DhxJC7yR5Y", - "id": "TEST-MP1f3Hgx3WTYV6DhxJC7yR5Y", + "href": "/marketplaces/TEST-MP3ENDDgcR92WprrIPBftRHk", + "id": "TEST-MP3ENDDgcR92WprrIPBftRHk", "in_escrow": 0, "links": { - "owner_customer": "CU1f8Ygc4t0F2FKNcw235x9I" + "owner_customer": "CU3EOo1JQiusqvWMhgNOKCQW" }, "meta": {}, "name": "Test Marketplace", @@ -491,31 +491,31 @@ "support_email_address": "support@example.com", "support_phone_number": "+16505551234", "unsettled_fees": 0, - "updated_at": "2014-01-27T22:55:49.874263Z" + "updated_at": "2014-03-05T23:25:34.055599Z" }, - "marketplace_id": "TEST-MP1f3Hgx3WTYV6DhxJC7yR5Y", - "marketplace_uri": "/marketplaces/TEST-MP1f3Hgx3WTYV6DhxJC7yR5Y", + "marketplace_id": "TEST-MP3ENDDgcR92WprrIPBftRHk", + "marketplace_uri": "/marketplaces/TEST-MP3ENDDgcR92WprrIPBftRHk", "order_create": { "request": { - "customer_href": "/customers/CU3eeasZ9yQ86uzzIYZkrPGg", + "customer_href": "/customers/CU4EeI9UPzRcOo2C3j1qFjQj", "payload": { "description": "Order #12341234" }, - "uri": "/customers/CU3eeasZ9yQ86uzzIYZkrPGg/orders" + "uri": "/customers/CU4EeI9UPzRcOo2C3j1qFjQj/orders" }, - "response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-01-27T22:58:01.115720Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR3FOihZa7lMHdAP5p8BJZVY\", \n \"id\": \"OR3FOihZa7lMHdAP5p8BJZVY\", \n \"links\": {\n \"merchant\": \"CU3eeasZ9yQ86uzzIYZkrPGg\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-27T22:58:01.115723Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-03-05T23:26:52.111548Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR520nGy59wfJ4mM7HR6TYrn\", \n \"id\": \"OR520nGy59wfJ4mM7HR6TYrn\", \n \"links\": {\n \"merchant\": \"CU4EeI9UPzRcOo2C3j1qFjQj\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-05T23:26:52.111551Z\"\n }\n ]\n}" }, "order_list": { "request": { "uri": "/orders" }, - "response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"meta\": {\n \"first\": \"/orders?limit=10&offset=0\", \n \"href\": \"/orders?limit=10&offset=0\", \n \"last\": \"/orders?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-01-27T22:58:01.115720Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR3FOihZa7lMHdAP5p8BJZVY\", \n \"id\": \"OR3FOihZa7lMHdAP5p8BJZVY\", \n \"links\": {\n \"merchant\": \"CU3eeasZ9yQ86uzzIYZkrPGg\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-27T22:58:01.115723Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"meta\": {\n \"first\": \"/orders?limit=10&offset=0\", \n \"href\": \"/orders?limit=10&offset=0\", \n \"last\": \"/orders?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-03-05T23:26:52.111548Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR520nGy59wfJ4mM7HR6TYrn\", \n \"id\": \"OR520nGy59wfJ4mM7HR6TYrn\", \n \"links\": {\n \"merchant\": \"CU4EeI9UPzRcOo2C3j1qFjQj\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-05T23:26:52.111551Z\"\n }\n ]\n}" }, "order_show": { "request": { - "uri": "/orders/OR3FOihZa7lMHdAP5p8BJZVY" + "uri": "/orders/OR520nGy59wfJ4mM7HR6TYrn" }, - "response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-01-27T22:58:01.115720Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR3FOihZa7lMHdAP5p8BJZVY\", \n \"id\": \"OR3FOihZa7lMHdAP5p8BJZVY\", \n \"links\": {\n \"merchant\": \"CU3eeasZ9yQ86uzzIYZkrPGg\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-27T22:58:01.115723Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-03-05T23:26:52.111548Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR520nGy59wfJ4mM7HR6TYrn\", \n \"id\": \"OR520nGy59wfJ4mM7HR6TYrn\", \n \"links\": {\n \"merchant\": \"CU4EeI9UPzRcOo2C3j1qFjQj\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-05T23:26:52.111551Z\"\n }\n ]\n}" }, "order_update": { "request": { @@ -526,13 +526,13 @@ "product.id": "1234567890" } }, - "uri": "/orders/OR3FOihZa7lMHdAP5p8BJZVY" + "uri": "/orders/OR520nGy59wfJ4mM7HR6TYrn" }, - "response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-01-27T22:58:01.115720Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"New description for order\", \n \"href\": \"/orders/OR3FOihZa7lMHdAP5p8BJZVY\", \n \"id\": \"OR3FOihZa7lMHdAP5p8BJZVY\", \n \"links\": {\n \"merchant\": \"CU3eeasZ9yQ86uzzIYZkrPGg\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"product.id\": \"1234567890\"\n }, \n \"updated_at\": \"2014-01-27T22:58:05.657463Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-03-05T23:26:52.111548Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"New description for order\", \n \"href\": \"/orders/OR520nGy59wfJ4mM7HR6TYrn\", \n \"id\": \"OR520nGy59wfJ4mM7HR6TYrn\", \n \"links\": {\n \"merchant\": \"CU4EeI9UPzRcOo2C3j1qFjQj\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"product.id\": \"1234567890\"\n }, \n \"updated_at\": \"2014-03-05T23:26:55.456480Z\"\n }\n ]\n}" }, "refund_create": { "request": { - "debit_href": "/debits/WD3MKNxNTKBGgA7mX50yogiu", + "debit_href": "/debits/WD57kmfV9Cgc0MiZkHOmFU1z", "payload": { "amount": 3000, "description": "Refund for Order #1111", @@ -542,21 +542,21 @@ "user.refund_reason": "not happy with product" } }, - "uri": "/debits/WD3MKNxNTKBGgA7mX50yogiu/refunds" + "uri": "/debits/WD57kmfV9Cgc0MiZkHOmFU1z/refunds" }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-01-27T22:58:11.375665Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF3RklPuFgsgI50UuYtr4g6I\", \n \"id\": \"RF3RklPuFgsgI50UuYtr4g6I\", \n \"links\": {\n \"debit\": \"WD3MKNxNTKBGgA7mX50yogiu\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF383-088-7077\", \n \"updated_at\": \"2014-01-27T22:58:12.115131Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-05T23:26:58.437383Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF5c71x7GALUPPdyexP4Weca\", \n \"id\": \"RF5c71x7GALUPPdyexP4Weca\", \n \"links\": {\n \"debit\": \"WD57kmfV9Cgc0MiZkHOmFU1z\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF145-678-0145\", \n \"updated_at\": \"2014-03-05T23:26:58.984962Z\"\n }\n ]\n}" }, "refund_list": { "request": { "uri": "/refunds" }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"meta\": {\n \"first\": \"/refunds?limit=10&offset=0\", \n \"href\": \"/refunds?limit=10&offset=0\", \n \"last\": \"/refunds?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-01-27T22:58:11.375665Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF3RklPuFgsgI50UuYtr4g6I\", \n \"id\": \"RF3RklPuFgsgI50UuYtr4g6I\", \n \"links\": {\n \"debit\": \"WD3MKNxNTKBGgA7mX50yogiu\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF383-088-7077\", \n \"updated_at\": \"2014-01-27T22:58:12.115131Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"meta\": {\n \"first\": \"/refunds?limit=10&offset=0\", \n \"href\": \"/refunds?limit=10&offset=0\", \n \"last\": \"/refunds?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-05T23:26:58.437383Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF5c71x7GALUPPdyexP4Weca\", \n \"id\": \"RF5c71x7GALUPPdyexP4Weca\", \n \"links\": {\n \"debit\": \"WD57kmfV9Cgc0MiZkHOmFU1z\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF145-678-0145\", \n \"updated_at\": \"2014-03-05T23:26:58.984962Z\"\n }\n ]\n}" }, "refund_show": { "request": { - "uri": "/refunds/RF3RklPuFgsgI50UuYtr4g6I" + "uri": "/refunds/RF5c71x7GALUPPdyexP4Weca" }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-01-27T22:58:11.375665Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF3RklPuFgsgI50UuYtr4g6I\", \n \"id\": \"RF3RklPuFgsgI50UuYtr4g6I\", \n \"links\": {\n \"debit\": \"WD3MKNxNTKBGgA7mX50yogiu\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF383-088-7077\", \n \"updated_at\": \"2014-01-27T22:58:12.115131Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-05T23:26:58.437383Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF5c71x7GALUPPdyexP4Weca\", \n \"id\": \"RF5c71x7GALUPPdyexP4Weca\", \n \"links\": {\n \"debit\": \"WD57kmfV9Cgc0MiZkHOmFU1z\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF145-678-0145\", \n \"updated_at\": \"2014-03-05T23:26:58.984962Z\"\n }\n ]\n}" }, "refund_update": { "request": { @@ -568,13 +568,13 @@ "user.refund.count": "3" } }, - "uri": "/refunds/RF3RklPuFgsgI50UuYtr4g6I" + "uri": "/refunds/RF5c71x7GALUPPdyexP4Weca" }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-01-27T22:58:11.375665Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"href\": \"/refunds/RF3RklPuFgsgI50UuYtr4g6I\", \n \"id\": \"RF3RklPuFgsgI50UuYtr4g6I\", \n \"links\": {\n \"debit\": \"WD3MKNxNTKBGgA7mX50yogiu\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"refund.reason\": \"user not happy with product\", \n \"user.notes\": \"very polite on the phone\", \n \"user.refund.count\": \"3\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF383-088-7077\", \n \"updated_at\": \"2014-01-27T22:58:17.950799Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-05T23:26:58.437383Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"href\": \"/refunds/RF5c71x7GALUPPdyexP4Weca\", \n \"id\": \"RF5c71x7GALUPPdyexP4Weca\", \n \"links\": {\n \"debit\": \"WD57kmfV9Cgc0MiZkHOmFU1z\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"refund.reason\": \"user not happy with product\", \n \"user.notes\": \"very polite on the phone\", \n \"user.refund.count\": \"3\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF145-678-0145\", \n \"updated_at\": \"2014-03-05T23:27:03.196577Z\"\n }\n ]\n}" }, "reversal_create": { "request": { - "credit_href": "/credits/CR40neytmVG2HDBp1opfF7sY", + "credit_href": "/credits/CR5j27kuJPX6voI8aokUWsEG", "payload": { "amount": 3000, "description": "Reversal for Order #1111", @@ -584,21 +584,21 @@ "user.refund_reason": "not happy with product" } }, - "uri": "/credits/CR40neytmVG2HDBp1opfF7sY/reversals" + "uri": "/credits/CR5j27kuJPX6voI8aokUWsEG/reversals" }, - "response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-01-27T22:58:21.214829Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV42n8M9XZWna427oPDDi4RG\", \n \"id\": \"RV42n8M9XZWna427oPDDi4RG\", \n \"links\": {\n \"credit\": \"CR40neytmVG2HDBp1opfF7sY\", \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV219-169-0008\", \n \"updated_at\": \"2014-01-27T22:58:22.190749Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-05T23:27:05.479351Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV5h1LgxTlH1OtHAZEfQbvbH\", \n \"id\": \"RV5h1LgxTlH1OtHAZEfQbvbH\", \n \"links\": {\n \"credit\": \"CR5j27kuJPX6voI8aokUWsEG\", \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV541-000-1984\", \n \"updated_at\": \"2014-03-05T23:27:06.287586Z\"\n }\n ]\n}" }, "reversal_list": { "request": { "uri": "/reversals" }, - "response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"meta\": {\n \"first\": \"/reversals?limit=10&offset=0\", \n \"href\": \"/reversals?limit=10&offset=0\", \n \"last\": \"/reversals?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-01-27T22:58:21.214829Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV42n8M9XZWna427oPDDi4RG\", \n \"id\": \"RV42n8M9XZWna427oPDDi4RG\", \n \"links\": {\n \"credit\": \"CR40neytmVG2HDBp1opfF7sY\", \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV219-169-0008\", \n \"updated_at\": \"2014-01-27T22:58:22.190749Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"meta\": {\n \"first\": \"/reversals?limit=10&offset=0\", \n \"href\": \"/reversals?limit=10&offset=0\", \n \"last\": \"/reversals?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-05T23:27:05.479351Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV5h1LgxTlH1OtHAZEfQbvbH\", \n \"id\": \"RV5h1LgxTlH1OtHAZEfQbvbH\", \n \"links\": {\n \"credit\": \"CR5j27kuJPX6voI8aokUWsEG\", \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV541-000-1984\", \n \"updated_at\": \"2014-03-05T23:27:06.287586Z\"\n }\n ]\n}" }, "reversal_show": { "request": { - "uri": "/reversals/RV42n8M9XZWna427oPDDi4RG" + "uri": "/reversals/RV5h1LgxTlH1OtHAZEfQbvbH" }, - "response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-01-27T22:58:21.214829Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV42n8M9XZWna427oPDDi4RG\", \n \"id\": \"RV42n8M9XZWna427oPDDi4RG\", \n \"links\": {\n \"credit\": \"CR40neytmVG2HDBp1opfF7sY\", \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV219-169-0008\", \n \"updated_at\": \"2014-01-27T22:58:22.190749Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-05T23:27:05.479351Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV5h1LgxTlH1OtHAZEfQbvbH\", \n \"id\": \"RV5h1LgxTlH1OtHAZEfQbvbH\", \n \"links\": {\n \"credit\": \"CR5j27kuJPX6voI8aokUWsEG\", \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV541-000-1984\", \n \"updated_at\": \"2014-03-05T23:27:06.287586Z\"\n }\n ]\n}" }, "reversal_update": { "request": { @@ -610,9 +610,9 @@ "user.satisfaction": "6" } }, - "uri": "/reversals/RV42n8M9XZWna427oPDDi4RG" + "uri": "/reversals/RV5h1LgxTlH1OtHAZEfQbvbH" }, - "response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-01-27T22:58:21.214829Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV42n8M9XZWna427oPDDi4RG\", \n \"id\": \"RV42n8M9XZWna427oPDDi4RG\", \n \"links\": {\n \"credit\": \"CR40neytmVG2HDBp1opfF7sY\", \n \"order\": null\n }, \n \"meta\": {\n \"refund.reason\": \"user not happy with product\", \n \"user.notes\": \"very polite on the phone\", \n \"user.satisfaction\": \"6\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV219-169-0008\", \n \"updated_at\": \"2014-01-27T22:58:27.354488Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-05T23:27:05.479351Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV5h1LgxTlH1OtHAZEfQbvbH\", \n \"id\": \"RV5h1LgxTlH1OtHAZEfQbvbH\", \n \"links\": {\n \"credit\": \"CR5j27kuJPX6voI8aokUWsEG\", \n \"order\": null\n }, \n \"meta\": {\n \"refund.reason\": \"user not happy with product\", \n \"user.notes\": \"very polite on the phone\", \n \"user.satisfaction\": \"6\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV541-000-1984\", \n \"updated_at\": \"2014-03-05T23:27:10.206389Z\"\n }\n ]\n}" }, - "secret": "ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc" + "secret": "ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB" } \ No newline at end of file diff --git a/scenarios/_mj/api_key_create/executable.py b/scenarios/_mj/api_key_create/executable.py index 0a8a0f4..3db3248 100644 --- a/scenarios/_mj/api_key_create/executable.py +++ b/scenarios/_mj/api_key_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') api_key = balanced.APIKey() api_key.save() \ No newline at end of file diff --git a/scenarios/_mj/api_key_create/python.mako b/scenarios/_mj/api_key_create/python.mako index c5da75e..094cb24 100644 --- a/scenarios/_mj/api_key_create/python.mako +++ b/scenarios/_mj/api_key_create/python.mako @@ -4,7 +4,7 @@ balanced.APIKey % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') api_key = balanced.APIKey() api_key.save() diff --git a/scenarios/api_key_create/executable.py b/scenarios/api_key_create/executable.py index a5a5c83..cea2195 100644 --- a/scenarios/api_key_create/executable.py +++ b/scenarios/api_key_create/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') api_key = balanced.APIKey().save() \ No newline at end of file diff --git a/scenarios/api_key_create/python.mako b/scenarios/api_key_create/python.mako index 4d57661..c67de95 100644 --- a/scenarios/api_key_create/python.mako +++ b/scenarios/api_key_create/python.mako @@ -3,7 +3,7 @@ balanced.APIKey() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') api_key = balanced.APIKey().save() % endif \ No newline at end of file diff --git a/scenarios/api_key_delete/executable.py b/scenarios/api_key_delete/executable.py index 89746cc..96a391b 100644 --- a/scenarios/api_key_delete/executable.py +++ b/scenarios/api_key_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -key = balanced.APIKey.fetch('/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c') +key = balanced.APIKey.fetch('/api_keys/AK3zUFsQ8aJ3aae9ZylavXLp') key.delete() \ No newline at end of file diff --git a/scenarios/api_key_delete/python.mako b/scenarios/api_key_delete/python.mako index 8d7b907..35372fc 100644 --- a/scenarios/api_key_delete/python.mako +++ b/scenarios/api_key_delete/python.mako @@ -3,8 +3,8 @@ balanced.APIKey().delete() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -key = balanced.APIKey.fetch('/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c') +key = balanced.APIKey.fetch('/api_keys/AK3zUFsQ8aJ3aae9ZylavXLp') key.delete() % endif \ No newline at end of file diff --git a/scenarios/api_key_list/executable.py b/scenarios/api_key_list/executable.py index 10a9711..7d852cb 100644 --- a/scenarios/api_key_list/executable.py +++ b/scenarios/api_key_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') keys = balanced.APIKey.query \ No newline at end of file diff --git a/scenarios/api_key_list/python.mako b/scenarios/api_key_list/python.mako index f46d7e8..e5ffbee 100644 --- a/scenarios/api_key_list/python.mako +++ b/scenarios/api_key_list/python.mako @@ -4,7 +4,7 @@ balanced.APIKey.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') keys = balanced.APIKey.query % endif \ No newline at end of file diff --git a/scenarios/api_key_show/executable.py b/scenarios/api_key_show/executable.py index 5d4fa07..38bd0ce 100644 --- a/scenarios/api_key_show/executable.py +++ b/scenarios/api_key_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -key = balanced.APIKey.fetch('/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c') \ No newline at end of file +key = balanced.APIKey.fetch('/api_keys/AK3zUFsQ8aJ3aae9ZylavXLp') \ No newline at end of file diff --git a/scenarios/api_key_show/python.mako b/scenarios/api_key_show/python.mako index 8fe319d..61e7af9 100644 --- a/scenarios/api_key_show/python.mako +++ b/scenarios/api_key_show/python.mako @@ -4,7 +4,7 @@ balanced.APIKey.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -key = balanced.APIKey.fetch('/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c') +key = balanced.APIKey.fetch('/api_keys/AK3zUFsQ8aJ3aae9ZylavXLp') % endif \ No newline at end of file diff --git a/scenarios/bank_account_associate_to_customer/executable.py b/scenarios/bank_account_associate_to_customer/executable.py index ecb5f3d..18f29d2 100644 --- a/scenarios/bank_account_associate_to_customer/executable.py +++ b/scenarios/bank_account_associate_to_customer/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -card = balanced.Card.fetch('/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0') -card.associate_to_customer('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') \ No newline at end of file +card = balanced.Card.fetch('/bank_accounts/BA4JCiiAb4alhWMlZSv9POAU') +card.associate_to_customer('/customers/CU4EeI9UPzRcOo2C3j1qFjQj') \ No newline at end of file diff --git a/scenarios/bank_account_associate_to_customer/python.mako b/scenarios/bank_account_associate_to_customer/python.mako index 70fef8f..f4501e5 100644 --- a/scenarios/bank_account_associate_to_customer/python.mako +++ b/scenarios/bank_account_associate_to_customer/python.mako @@ -3,8 +3,8 @@ balanced.Card().associate_to_customer() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -card = balanced.Card.fetch('/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0') -card.associate_to_customer('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') +card = balanced.Card.fetch('/bank_accounts/BA4JCiiAb4alhWMlZSv9POAU') +card.associate_to_customer('/customers/CU4EeI9UPzRcOo2C3j1qFjQj') % endif \ No newline at end of file diff --git a/scenarios/bank_account_create/executable.py b/scenarios/bank_account_create/executable.py index 14ea833..c2a7643 100644 --- a/scenarios/bank_account_create/executable.py +++ b/scenarios/bank_account_create/executable.py @@ -1,10 +1,10 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') bank_account = balanced.BankAccount( routing_number='121000358', - type='checking', + account_type='checking', account_number='9900000001', name='Johann Bernoulli' ).save() \ No newline at end of file diff --git a/scenarios/bank_account_create/python.mako b/scenarios/bank_account_create/python.mako index 5c302b6..153e23d 100644 --- a/scenarios/bank_account_create/python.mako +++ b/scenarios/bank_account_create/python.mako @@ -3,11 +3,11 @@ balanced.BankAccount().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') bank_account = balanced.BankAccount( routing_number='121000358', - type='checking', + account_type='checking', account_number='9900000001', name='Johann Bernoulli' ).save() diff --git a/scenarios/bank_account_credit/executable.py b/scenarios/bank_account_credit/executable.py index 55283b2..77dd332 100644 --- a/scenarios/bank_account_credit/executable.py +++ b/scenarios/bank_account_credit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA4JCiiAb4alhWMlZSv9POAU') bank_account.credit( amount=5000 ) \ No newline at end of file diff --git a/scenarios/bank_account_credit/python.mako b/scenarios/bank_account_credit/python.mako index 433cb30..3e2b354 100644 --- a/scenarios/bank_account_credit/python.mako +++ b/scenarios/bank_account_credit/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount().credit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA4JCiiAb4alhWMlZSv9POAU') bank_account.credit( amount=5000 ) diff --git a/scenarios/bank_account_debit/executable.py b/scenarios/bank_account_debit/executable.py index 6c3d98b..b648300 100644 --- a/scenarios/bank_account_debit/executable.py +++ b/scenarios/bank_account_debit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3EMnkybAfEzVlbVquXFLEk') bank_account.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/bank_account_debit/python.mako b/scenarios/bank_account_debit/python.mako index 74acc78..d6c4b51 100644 --- a/scenarios/bank_account_debit/python.mako +++ b/scenarios/bank_account_debit/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3EMnkybAfEzVlbVquXFLEk') bank_account.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/bank_account_delete/executable.py b/scenarios/bank_account_delete/executable.py index 117eb6d..76e333a 100644 --- a/scenarios/bank_account_delete/executable.py +++ b/scenarios/bank_account_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3LBmizwthrjehivn2ffzHU') bank_account.delete() \ No newline at end of file diff --git a/scenarios/bank_account_delete/python.mako b/scenarios/bank_account_delete/python.mako index 4e65323..9b88bf7 100644 --- a/scenarios/bank_account_delete/python.mako +++ b/scenarios/bank_account_delete/python.mako @@ -3,8 +3,8 @@ balanced.BankAccount().delete() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3LBmizwthrjehivn2ffzHU') bank_account.delete() % endif \ No newline at end of file diff --git a/scenarios/bank_account_list/executable.py b/scenarios/bank_account_list/executable.py index cbbceff..8de1173 100644 --- a/scenarios/bank_account_list/executable.py +++ b/scenarios/bank_account_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') bank_accounts = balanced.BankAccount.query \ No newline at end of file diff --git a/scenarios/bank_account_list/python.mako b/scenarios/bank_account_list/python.mako index aa41712..a72606d 100644 --- a/scenarios/bank_account_list/python.mako +++ b/scenarios/bank_account_list/python.mako @@ -4,7 +4,7 @@ balanced.BankAccount.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') bank_accounts = balanced.BankAccount.query % endif \ No newline at end of file diff --git a/scenarios/bank_account_show/executable.py b/scenarios/bank_account_show/executable.py index b18e802..6a6248a 100644 --- a/scenarios/bank_account_show/executable.py +++ b/scenarios/bank_account_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy') \ No newline at end of file +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3LBmizwthrjehivn2ffzHU') \ No newline at end of file diff --git a/scenarios/bank_account_show/python.mako b/scenarios/bank_account_show/python.mako index adbd2fe..b9de60e 100644 --- a/scenarios/bank_account_show/python.mako +++ b/scenarios/bank_account_show/python.mako @@ -4,7 +4,7 @@ balanced.BankAccount.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3LBmizwthrjehivn2ffzHU') % endif \ No newline at end of file diff --git a/scenarios/bank_account_update/executable.py b/scenarios/bank_account_update/executable.py index 6707e78..4724b04 100644 --- a/scenarios/bank_account_update/executable.py +++ b/scenarios/bank_account_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3LBmizwthrjehivn2ffzHU') bank_account.meta = { 'twitter.id'='1234987650', 'facebook.user_id'='0192837465', diff --git a/scenarios/bank_account_update/python.mako b/scenarios/bank_account_update/python.mako index 3644662..70a5e7b 100644 --- a/scenarios/bank_account_update/python.mako +++ b/scenarios/bank_account_update/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3LBmizwthrjehivn2ffzHU') bank_account.meta = { 'twitter.id'='1234987650', 'facebook.user_id'='0192837465', diff --git a/scenarios/bank_account_verification_create/executable.py b/scenarios/bank_account_verification_create/executable.py index ec38665..b0ca1dc 100644 --- a/scenarios/bank_account_verification_create/executable.py +++ b/scenarios/bank_account_verification_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3EMnkybAfEzVlbVquXFLEk') verification = bank_account.verify() \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/python.mako b/scenarios/bank_account_verification_create/python.mako index e4a071c..6633dee 100644 --- a/scenarios/bank_account_verification_create/python.mako +++ b/scenarios/bank_account_verification_create/python.mako @@ -3,8 +3,8 @@ balanced.BankAccountVerification().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3EMnkybAfEzVlbVquXFLEk') verification = bank_account.verify() % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/executable.py b/scenarios/bank_account_verification_show/executable.py index 667a353..2b069b6 100644 --- a/scenarios/bank_account_verification_show/executable.py +++ b/scenarios/bank_account_verification_show/executable.py @@ -1,4 +1,4 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ1FF2MHFH9upRu7C0QUwnby') \ No newline at end of file +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ3NheXIi1UxUiNtkaSo1ZI5') \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/python.mako b/scenarios/bank_account_verification_show/python.mako index ad89c1e..b340cb6 100644 --- a/scenarios/bank_account_verification_show/python.mako +++ b/scenarios/bank_account_verification_show/python.mako @@ -4,6 +4,6 @@ balanced.BankAccountVerification.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ1FF2MHFH9upRu7C0QUwnby') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ3NheXIi1UxUiNtkaSo1ZI5') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/executable.py b/scenarios/bank_account_verification_update/executable.py index 463489f..8d1c34c 100644 --- a/scenarios/bank_account_verification_update/executable.py +++ b/scenarios/bank_account_verification_update/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ1FF2MHFH9upRu7C0QUwnby') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ3NheXIi1UxUiNtkaSo1ZI5') verification.confirm(amount_1=1, amount_2=1) \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/python.mako b/scenarios/bank_account_verification_update/python.mako index e69797b..af17d01 100644 --- a/scenarios/bank_account_verification_update/python.mako +++ b/scenarios/bank_account_verification_update/python.mako @@ -3,8 +3,8 @@ balanced.BankAccountVerification().confirm() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ1FF2MHFH9upRu7C0QUwnby') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ3NheXIi1UxUiNtkaSo1ZI5') verification.confirm(amount_1=1, amount_2=1) % endif \ No newline at end of file diff --git a/scenarios/callback_create/executable.py b/scenarios/callback_create/executable.py index fdcc27f..96fd965 100644 --- a/scenarios/callback_create/executable.py +++ b/scenarios/callback_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') callback = balanced.Callback( url='http://www.example.com/callback' diff --git a/scenarios/callback_create/python.mako b/scenarios/callback_create/python.mako index dc0214d..fe00484 100644 --- a/scenarios/callback_create/python.mako +++ b/scenarios/callback_create/python.mako @@ -3,7 +3,7 @@ balanced.Callback() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') callback = balanced.Callback( url='http://www.example.com/callback' diff --git a/scenarios/callback_delete/executable.py b/scenarios/callback_delete/executable.py index fa8b03e..5c2a88d 100644 --- a/scenarios/callback_delete/executable.py +++ b/scenarios/callback_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -callback = balanced.Callback.fetch('/callbacks/CB224374R2NSyoYBpDV4r7C2') +callback = balanced.Callback.fetch('/callbacks/CB40OMtABWHqkGcBEYpWVnAd') callback.unstore() \ No newline at end of file diff --git a/scenarios/callback_delete/python.mako b/scenarios/callback_delete/python.mako index 8988f56..6008fc7 100644 --- a/scenarios/callback_delete/python.mako +++ b/scenarios/callback_delete/python.mako @@ -3,8 +3,8 @@ balanced.Callback().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -callback = balanced.Callback.fetch('/callbacks/CB224374R2NSyoYBpDV4r7C2') +callback = balanced.Callback.fetch('/callbacks/CB40OMtABWHqkGcBEYpWVnAd') callback.unstore() % endif \ No newline at end of file diff --git a/scenarios/callback_list/executable.py b/scenarios/callback_list/executable.py index 862aa05..013c017 100644 --- a/scenarios/callback_list/executable.py +++ b/scenarios/callback_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') callbacks = balanced.Callback.query \ No newline at end of file diff --git a/scenarios/callback_list/python.mako b/scenarios/callback_list/python.mako index 2308472..2bb74b8 100644 --- a/scenarios/callback_list/python.mako +++ b/scenarios/callback_list/python.mako @@ -4,7 +4,7 @@ balanced.Callback.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') callbacks = balanced.Callback.query % endif \ No newline at end of file diff --git a/scenarios/callback_show/executable.py b/scenarios/callback_show/executable.py index 9d65293..4f3586c 100644 --- a/scenarios/callback_show/executable.py +++ b/scenarios/callback_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -callback = balanced.Callback.fetch('/callbacks/CB224374R2NSyoYBpDV4r7C2') \ No newline at end of file +callback = balanced.Callback.fetch('/callbacks/CB40OMtABWHqkGcBEYpWVnAd') \ No newline at end of file diff --git a/scenarios/callback_show/python.mako b/scenarios/callback_show/python.mako index d70d9c1..450dafe 100644 --- a/scenarios/callback_show/python.mako +++ b/scenarios/callback_show/python.mako @@ -4,7 +4,7 @@ balanced.Callback.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -callback = balanced.Callback.fetch('/callbacks/CB224374R2NSyoYBpDV4r7C2') +callback = balanced.Callback.fetch('/callbacks/CB40OMtABWHqkGcBEYpWVnAd') % endif \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/executable.py b/scenarios/card_associate_to_customer/executable.py index 4c22a35..32796f4 100644 --- a/scenarios/card_associate_to_customer/executable.py +++ b/scenarios/card_associate_to_customer/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -card = balanced.Card.fetch('/cards/CC3kqm84fxh50avenrUsSKbu') -card.associate_to_customer('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') \ No newline at end of file +card = balanced.Card.fetch('/cards/CC4GOYzOKyWXBzJMVTs00aNk') +card.associate_to_customer('/customers/CU4EeI9UPzRcOo2C3j1qFjQj') \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/python.mako b/scenarios/card_associate_to_customer/python.mako index e111e74..b29c5ed 100644 --- a/scenarios/card_associate_to_customer/python.mako +++ b/scenarios/card_associate_to_customer/python.mako @@ -3,8 +3,8 @@ balanced.Card().associate_to_customer() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -card = balanced.Card.fetch('/cards/CC3kqm84fxh50avenrUsSKbu') -card.associate_to_customer('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') +card = balanced.Card.fetch('/cards/CC4GOYzOKyWXBzJMVTs00aNk') +card.associate_to_customer('/customers/CU4EeI9UPzRcOo2C3j1qFjQj') % endif \ No newline at end of file diff --git a/scenarios/card_create/executable.py b/scenarios/card_create/executable.py index 5371566..2a03c13 100644 --- a/scenarios/card_create/executable.py +++ b/scenarios/card_create/executable.py @@ -1,10 +1,10 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') card = balanced.Card( + cvv='123', expiration_month='12', - security_code='123', number='5105105105105100', expiration_year='2020' ).save() \ No newline at end of file diff --git a/scenarios/card_create/python.mako b/scenarios/card_create/python.mako index ce40c02..f69db9c 100644 --- a/scenarios/card_create/python.mako +++ b/scenarios/card_create/python.mako @@ -3,11 +3,11 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') card = balanced.Card( + cvv='123', expiration_month='12', - security_code='123', number='5105105105105100', expiration_year='2020' ).save() diff --git a/scenarios/card_debit/executable.py b/scenarios/card_debit/executable.py index 4c5948b..ca8abc3 100644 --- a/scenarios/card_debit/executable.py +++ b/scenarios/card_debit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -card = balanced.Card.fetch('/cards/CC3kqm84fxh50avenrUsSKbu') +card = balanced.Card.fetch('/cards/CC4GOYzOKyWXBzJMVTs00aNk') card.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/card_debit/python.mako b/scenarios/card_debit/python.mako index 295284e..6ef2f99 100644 --- a/scenarios/card_debit/python.mako +++ b/scenarios/card_debit/python.mako @@ -3,9 +3,9 @@ balanced.Card().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -card = balanced.Card.fetch('/cards/CC3kqm84fxh50avenrUsSKbu') +card = balanced.Card.fetch('/cards/CC4GOYzOKyWXBzJMVTs00aNk') card.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/card_delete/executable.py b/scenarios/card_delete/executable.py index 6d68c1c..d5bee24 100644 --- a/scenarios/card_delete/executable.py +++ b/scenarios/card_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -card = balanced.Card.fetch('/cards/CC2uc8iPDjgyxOXHVtnZloyI') +card = balanced.Card.fetch('/cards/CC4cbNzUmFqGrc1GmFpXp6fe') card.unstore() \ No newline at end of file diff --git a/scenarios/card_delete/python.mako b/scenarios/card_delete/python.mako index 616041a..e35c439 100644 --- a/scenarios/card_delete/python.mako +++ b/scenarios/card_delete/python.mako @@ -3,8 +3,8 @@ balanced.Card().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -card = balanced.Card.fetch('/cards/CC2uc8iPDjgyxOXHVtnZloyI') +card = balanced.Card.fetch('/cards/CC4cbNzUmFqGrc1GmFpXp6fe') card.unstore() % endif \ No newline at end of file diff --git a/scenarios/card_hold_capture/executable.py b/scenarios/card_hold_capture/executable.py index baee209..2db8eb1 100644 --- a/scenarios/card_hold_capture/executable.py +++ b/scenarios/card_hold_capture/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -card_hold = balanced.CardHold.fetch('/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S') +card_hold = balanced.CardHold.fetch('/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs') debit = card_hold.capture( appears_on_statement_as='ShowsUpOnStmt', description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_capture/python.mako b/scenarios/card_hold_capture/python.mako index 821d1bf..3de6217 100644 --- a/scenarios/card_hold_capture/python.mako +++ b/scenarios/card_hold_capture/python.mako @@ -3,9 +3,9 @@ balanced.CardHold().capture() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -card_hold = balanced.CardHold.fetch('/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S') +card_hold = balanced.CardHold.fetch('/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs') debit = card_hold.capture( appears_on_statement_as='ShowsUpOnStmt', description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_create/executable.py b/scenarios/card_hold_create/executable.py index b4693bd..d503a34 100644 --- a/scenarios/card_hold_create/executable.py +++ b/scenarios/card_hold_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -card = balanced.Card.fetch('/cards/CC2abDOQVm5aNFhHpcRvWS02') +card = balanced.Card.fetch('/cards/CC3ZsWHP2jMgvFrrzDzfZS0q') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_create/python.mako b/scenarios/card_hold_create/python.mako index f54e4ca..0ba03d4 100644 --- a/scenarios/card_hold_create/python.mako +++ b/scenarios/card_hold_create/python.mako @@ -3,9 +3,9 @@ balanced.Card().hold() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -card = balanced.Card.fetch('/cards/CC2abDOQVm5aNFhHpcRvWS02') +card = balanced.Card.fetch('/cards/CC3ZsWHP2jMgvFrrzDzfZS0q') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_list/executable.py b/scenarios/card_hold_list/executable.py index 4b5fd50..b650b46 100644 --- a/scenarios/card_hold_list/executable.py +++ b/scenarios/card_hold_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') card_holds = balanced.CardHold.query \ No newline at end of file diff --git a/scenarios/card_hold_list/python.mako b/scenarios/card_hold_list/python.mako index 5ae73ed..a4d805b 100644 --- a/scenarios/card_hold_list/python.mako +++ b/scenarios/card_hold_list/python.mako @@ -4,7 +4,7 @@ balanced.CardHold.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') card_holds = balanced.CardHold.query % endif \ No newline at end of file diff --git a/scenarios/card_hold_show/executable.py b/scenarios/card_hold_show/executable.py index 2631ad5..6d87129 100644 --- a/scenarios/card_hold_show/executable.py +++ b/scenarios/card_hold_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -card_hold = balanced.CardHold.fetch('/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S') \ No newline at end of file +card_hold = balanced.CardHold.fetch('/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs') \ No newline at end of file diff --git a/scenarios/card_hold_show/python.mako b/scenarios/card_hold_show/python.mako index 61406d7..aa9f290 100644 --- a/scenarios/card_hold_show/python.mako +++ b/scenarios/card_hold_show/python.mako @@ -4,7 +4,7 @@ balanced.CardHold.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -card_hold = balanced.CardHold.fetch('/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S') +card_hold = balanced.CardHold.fetch('/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs') % endif \ No newline at end of file diff --git a/scenarios/card_hold_update/executable.py b/scenarios/card_hold_update/executable.py index 89676d0..3f94e65 100644 --- a/scenarios/card_hold_update/executable.py +++ b/scenarios/card_hold_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -card_hold = balanced.CardHold.fetch('/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S') +card_hold = balanced.CardHold.fetch('/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs') card_hold.description = 'update this description' card_hold.meta = { 'holding.for': 'user1', diff --git a/scenarios/card_hold_update/python.mako b/scenarios/card_hold_update/python.mako index afa6c2e..9e228f4 100644 --- a/scenarios/card_hold_update/python.mako +++ b/scenarios/card_hold_update/python.mako @@ -3,9 +3,9 @@ balanced.CardHold().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -card_hold = balanced.CardHold.fetch('/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S') +card_hold = balanced.CardHold.fetch('/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs') card_hold.description = 'update this description' card_hold.meta = { 'holding.for': 'user1', diff --git a/scenarios/card_hold_void/executable.py b/scenarios/card_hold_void/executable.py index dc3d7a6..cfc8fcc 100644 --- a/scenarios/card_hold_void/executable.py +++ b/scenarios/card_hold_void/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -card_hold = balanced.CardHold.fetch('/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG') +card_hold = balanced.CardHold.fetch('/card_holds/HL4fmk2370zAE7nAVujKxjtf') card_hold.cancel() \ No newline at end of file diff --git a/scenarios/card_hold_void/python.mako b/scenarios/card_hold_void/python.mako index 206e63b..c330eaa 100644 --- a/scenarios/card_hold_void/python.mako +++ b/scenarios/card_hold_void/python.mako @@ -3,8 +3,8 @@ balanced.CardHold().cancel() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -card_hold = balanced.CardHold.fetch('/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG') +card_hold = balanced.CardHold.fetch('/card_holds/HL4fmk2370zAE7nAVujKxjtf') card_hold.cancel() % endif \ No newline at end of file diff --git a/scenarios/card_list/executable.py b/scenarios/card_list/executable.py index 029c505..f51e9ec 100644 --- a/scenarios/card_list/executable.py +++ b/scenarios/card_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') cards = balanced.Card.query \ No newline at end of file diff --git a/scenarios/card_list/python.mako b/scenarios/card_list/python.mako index 465ce5c..4a9d1e4 100644 --- a/scenarios/card_list/python.mako +++ b/scenarios/card_list/python.mako @@ -4,7 +4,7 @@ balanced.Card.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') cards = balanced.Card.query % endif \ No newline at end of file diff --git a/scenarios/card_show/executable.py b/scenarios/card_show/executable.py index 3be1bbc..0b36806 100644 --- a/scenarios/card_show/executable.py +++ b/scenarios/card_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -card = balanced.Card.fetch('/cards/CC2uc8iPDjgyxOXHVtnZloyI') \ No newline at end of file +card = balanced.Card.fetch('/cards/CC4cbNzUmFqGrc1GmFpXp6fe') \ No newline at end of file diff --git a/scenarios/card_show/python.mako b/scenarios/card_show/python.mako index c63e502..d47568b 100644 --- a/scenarios/card_show/python.mako +++ b/scenarios/card_show/python.mako @@ -3,7 +3,7 @@ balanced.Card.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -card = balanced.Card.fetch('/cards/CC2uc8iPDjgyxOXHVtnZloyI') +card = balanced.Card.fetch('/cards/CC4cbNzUmFqGrc1GmFpXp6fe') % endif \ No newline at end of file diff --git a/scenarios/card_update/executable.py b/scenarios/card_update/executable.py index ba4b27a..c595cba 100644 --- a/scenarios/card_update/executable.py +++ b/scenarios/card_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -card = balanced.Card.fetch('/cards/CC2uc8iPDjgyxOXHVtnZloyI') +card = balanced.Card.fetch('/cards/CC4cbNzUmFqGrc1GmFpXp6fe') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/card_update/python.mako b/scenarios/card_update/python.mako index 9248b80..8ce8bd6 100644 --- a/scenarios/card_update/python.mako +++ b/scenarios/card_update/python.mako @@ -3,9 +3,9 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -card = balanced.Card.fetch('/cards/CC2uc8iPDjgyxOXHVtnZloyI') +card = balanced.Card.fetch('/cards/CC4cbNzUmFqGrc1GmFpXp6fe') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/credit_list/executable.py b/scenarios/credit_list/executable.py index e810221..72c29db 100644 --- a/scenarios/credit_list/executable.py +++ b/scenarios/credit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') credits = balanced.Credit.query \ No newline at end of file diff --git a/scenarios/credit_list/python.mako b/scenarios/credit_list/python.mako index 0974e0d..ef08cc4 100644 --- a/scenarios/credit_list/python.mako +++ b/scenarios/credit_list/python.mako @@ -4,7 +4,7 @@ balanced.Credit.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') credits = balanced.Credit.query % endif \ No newline at end of file diff --git a/scenarios/credit_list_bank_account/executable.py b/scenarios/credit_list_bank_account/executable.py index 6c4bb68..f688dec 100644 --- a/scenarios/credit_list_bank_account/executable.py +++ b/scenarios/credit_list_bank_account/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy/credits') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3LBmizwthrjehivn2ffzHU/credits') credits = bank_account.credits \ No newline at end of file diff --git a/scenarios/credit_list_bank_account/python.mako b/scenarios/credit_list_bank_account/python.mako index b9d0738..34cd8ca 100644 --- a/scenarios/credit_list_bank_account/python.mako +++ b/scenarios/credit_list_bank_account/python.mako @@ -3,8 +3,8 @@ balanced.BankAccount().credits % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy/credits') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3LBmizwthrjehivn2ffzHU/credits') credits = bank_account.credits % endif \ No newline at end of file diff --git a/scenarios/credit_show/executable.py b/scenarios/credit_show/executable.py index 8e9951e..cefd167 100644 --- a/scenarios/credit_show/executable.py +++ b/scenarios/credit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -credit = balanced.Credit.fetch('/credits/CR2UtQgq6L3FPd1YoOc8eyOC') \ No newline at end of file +credit = balanced.Credit.fetch('/credits/CR4wyLukORa0TXhCYtjZrfw5') \ No newline at end of file diff --git a/scenarios/credit_show/python.mako b/scenarios/credit_show/python.mako index e506fad..f29c329 100644 --- a/scenarios/credit_show/python.mako +++ b/scenarios/credit_show/python.mako @@ -4,7 +4,7 @@ balanced.Credit.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -credit = balanced.Credit.fetch('/credits/CR2UtQgq6L3FPd1YoOc8eyOC') +credit = balanced.Credit.fetch('/credits/CR4wyLukORa0TXhCYtjZrfw5') % endif \ No newline at end of file diff --git a/scenarios/credit_update/executable.py b/scenarios/credit_update/executable.py index 0c39cbf..61e4dd5 100644 --- a/scenarios/credit_update/executable.py +++ b/scenarios/credit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -credit = balanced.Credit.fetch('/credits/CR2UtQgq6L3FPd1YoOc8eyOC') +credit = balanced.Credit.fetch('/credits/CR4wyLukORa0TXhCYtjZrfw5') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/credit_update/python.mako b/scenarios/credit_update/python.mako index a68e4ec..9d7ed20 100644 --- a/scenarios/credit_update/python.mako +++ b/scenarios/credit_update/python.mako @@ -3,9 +3,9 @@ balanced.Credit().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -credit = balanced.Credit.fetch('/credits/CR2UtQgq6L3FPd1YoOc8eyOC') +credit = balanced.Credit.fetch('/credits/CR4wyLukORa0TXhCYtjZrfw5') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/customer_create/executable.py b/scenarios/customer_create/executable.py index 7e9c414..7d978d7 100644 --- a/scenarios/customer_create/executable.py +++ b/scenarios/customer_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') customer = balanced.Customer( dob_year=1963, diff --git a/scenarios/customer_create/python.mako b/scenarios/customer_create/python.mako index d340779..d23d7bc 100644 --- a/scenarios/customer_create/python.mako +++ b/scenarios/customer_create/python.mako @@ -3,7 +3,7 @@ balanced.Customer().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') customer = balanced.Customer( dob_year=1963, diff --git a/scenarios/customer_delete/executable.py b/scenarios/customer_delete/executable.py index 9c125931..b99a6c9 100644 --- a/scenarios/customer_delete/executable.py +++ b/scenarios/customer_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -customer = balanced.Customer.fetch('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') +customer = balanced.Customer.fetch('/customers/CU4EeI9UPzRcOo2C3j1qFjQj') customer.unstore() \ No newline at end of file diff --git a/scenarios/customer_delete/python.mako b/scenarios/customer_delete/python.mako index 7a53b1f..6195e7d 100644 --- a/scenarios/customer_delete/python.mako +++ b/scenarios/customer_delete/python.mako @@ -3,8 +3,8 @@ balanced.Customer().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -customer = balanced.Customer.fetch('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') +customer = balanced.Customer.fetch('/customers/CU4EeI9UPzRcOo2C3j1qFjQj') customer.unstore() % endif \ No newline at end of file diff --git a/scenarios/customer_list/executable.py b/scenarios/customer_list/executable.py index 4eae1e9..aeb759a 100644 --- a/scenarios/customer_list/executable.py +++ b/scenarios/customer_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') customers = balanced.Customer.query \ No newline at end of file diff --git a/scenarios/customer_list/python.mako b/scenarios/customer_list/python.mako index d973eb2..33f74e6 100644 --- a/scenarios/customer_list/python.mako +++ b/scenarios/customer_list/python.mako @@ -4,7 +4,7 @@ balanced.Customer.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') customers = balanced.Customer.query % endif \ No newline at end of file diff --git a/scenarios/customer_show/executable.py b/scenarios/customer_show/executable.py index 261e48e..712e679 100644 --- a/scenarios/customer_show/executable.py +++ b/scenarios/customer_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -customer = balanced.Customer.fetch('/customers/CU33Y4cut21qu1d1lGYDBseQ') \ No newline at end of file +customer = balanced.Customer.fetch('/customers/CU4xpIqZ7mf2fuLpBoXgoG7m') \ No newline at end of file diff --git a/scenarios/customer_show/python.mako b/scenarios/customer_show/python.mako index 70ed147..e6306c6 100644 --- a/scenarios/customer_show/python.mako +++ b/scenarios/customer_show/python.mako @@ -4,7 +4,7 @@ balanced.Customer.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -customer = balanced.Customer.fetch('/customers/CU33Y4cut21qu1d1lGYDBseQ') +customer = balanced.Customer.fetch('/customers/CU4xpIqZ7mf2fuLpBoXgoG7m') % endif \ No newline at end of file diff --git a/scenarios/customer_update/executable.py b/scenarios/customer_update/executable.py index cd8b092..08fe23d 100644 --- a/scenarios/customer_update/executable.py +++ b/scenarios/customer_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -customer = balanced.Debit.fetch('/customers/CU33Y4cut21qu1d1lGYDBseQ') +customer = balanced.Debit.fetch('/customers/CU4xpIqZ7mf2fuLpBoXgoG7m') customer.email = 'email@newdomain.com' customer.meta = { 'shipping-preference': 'ground' diff --git a/scenarios/customer_update/python.mako b/scenarios/customer_update/python.mako index 0eec0f1..29af3da 100644 --- a/scenarios/customer_update/python.mako +++ b/scenarios/customer_update/python.mako @@ -3,9 +3,9 @@ balanced.Customer().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -customer = balanced.Debit.fetch('/customers/CU33Y4cut21qu1d1lGYDBseQ') +customer = balanced.Debit.fetch('/customers/CU4xpIqZ7mf2fuLpBoXgoG7m') customer.email = 'email@newdomain.com' customer.meta = { 'shipping-preference': 'ground' diff --git a/scenarios/debit_list/executable.py b/scenarios/debit_list/executable.py index fbe2eef..cdb88e0 100644 --- a/scenarios/debit_list/executable.py +++ b/scenarios/debit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') debits = balanced.Debit.query \ No newline at end of file diff --git a/scenarios/debit_list/python.mako b/scenarios/debit_list/python.mako index 6b27175..a5720e7 100644 --- a/scenarios/debit_list/python.mako +++ b/scenarios/debit_list/python.mako @@ -4,7 +4,7 @@ balanced.Debit.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') debits = balanced.Debit.query % endif \ No newline at end of file diff --git a/scenarios/debit_show/executable.py b/scenarios/debit_show/executable.py index 78cff4a..3a5c947 100644 --- a/scenarios/debit_show/executable.py +++ b/scenarios/debit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -debit = balanced.Debit.fetch('/debits/WD2Fd3jVcMZEWyXHtG3U1LRM') \ No newline at end of file +debit = balanced.Debit.fetch('/debits/WD4scrlw85LkeIEQqOx3AgUW') \ No newline at end of file diff --git a/scenarios/debit_show/python.mako b/scenarios/debit_show/python.mako index a373964..08deac5 100644 --- a/scenarios/debit_show/python.mako +++ b/scenarios/debit_show/python.mako @@ -4,7 +4,7 @@ balanced.Debit.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -debit = balanced.Debit.fetch('/debits/WD2Fd3jVcMZEWyXHtG3U1LRM') +debit = balanced.Debit.fetch('/debits/WD4scrlw85LkeIEQqOx3AgUW') % endif \ No newline at end of file diff --git a/scenarios/debit_update/executable.py b/scenarios/debit_update/executable.py index 4012e22..5a45f8d 100644 --- a/scenarios/debit_update/executable.py +++ b/scenarios/debit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -debit = balanced.Debit.fetch('/debits/WD2Fd3jVcMZEWyXHtG3U1LRM') +debit = balanced.Debit.fetch('/debits/WD4scrlw85LkeIEQqOx3AgUW') debit.description = 'New description for debit' debit.meta = { 'facebook.id': '1234567890', diff --git a/scenarios/debit_update/python.mako b/scenarios/debit_update/python.mako index ec4e980..7ac05fe 100644 --- a/scenarios/debit_update/python.mako +++ b/scenarios/debit_update/python.mako @@ -3,9 +3,9 @@ balanced.Debit().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -debit = balanced.Debit.fetch('/debits/WD2Fd3jVcMZEWyXHtG3U1LRM') +debit = balanced.Debit.fetch('/debits/WD4scrlw85LkeIEQqOx3AgUW') debit.description = 'New description for debit' debit.meta = { 'facebook.id': '1234567890', diff --git a/scenarios/event_list/executable.py b/scenarios/event_list/executable.py index d7b8e96..0625f6b 100644 --- a/scenarios/event_list/executable.py +++ b/scenarios/event_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') events = balanced.Event.query \ No newline at end of file diff --git a/scenarios/event_list/python.mako b/scenarios/event_list/python.mako index 9decb8f..b4a23bd 100644 --- a/scenarios/event_list/python.mako +++ b/scenarios/event_list/python.mako @@ -4,7 +4,7 @@ balanced.Event.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') events = balanced.Event.query % endif \ No newline at end of file diff --git a/scenarios/event_show/executable.py b/scenarios/event_show/executable.py index 12d0795..7eb73c8 100644 --- a/scenarios/event_show/executable.py +++ b/scenarios/event_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -event = balanced.Event.fetch('/events/EV2abbb98487a611e3a86f026ba7d31e6f') \ No newline at end of file +event = balanced.Event.fetch('/events/EV7838c0f6a4bd11e3937f060e77eca47a') \ No newline at end of file diff --git a/scenarios/event_show/python.mako b/scenarios/event_show/python.mako index 4201c5b..6b35aa1 100644 --- a/scenarios/event_show/python.mako +++ b/scenarios/event_show/python.mako @@ -4,7 +4,7 @@ balanced.Event.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -event = balanced.Event.fetch('/events/EV2abbb98487a611e3a86f026ba7d31e6f') +event = balanced.Event.fetch('/events/EV7838c0f6a4bd11e3937f060e77eca47a') % endif \ No newline at end of file diff --git a/scenarios/order_create/executable.py b/scenarios/order_create/executable.py index dbfc872..c0fbf71 100644 --- a/scenarios/order_create/executable.py +++ b/scenarios/order_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -merchant_customer = balanced.Customer.fetch('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') +merchant_customer = balanced.Customer.fetch('/customers/CU4EeI9UPzRcOo2C3j1qFjQj') merchant_customer.create_order( description='Order #12341234' ).save() \ No newline at end of file diff --git a/scenarios/order_create/python.mako b/scenarios/order_create/python.mako index fcf82b3..75f3cd0 100644 --- a/scenarios/order_create/python.mako +++ b/scenarios/order_create/python.mako @@ -3,9 +3,9 @@ balanced.Order() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -merchant_customer = balanced.Customer.fetch('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') +merchant_customer = balanced.Customer.fetch('/customers/CU4EeI9UPzRcOo2C3j1qFjQj') merchant_customer.create_order( description='Order #12341234' ).save() diff --git a/scenarios/order_list/executable.py b/scenarios/order_list/executable.py index 9ca61c4..3dcd605 100644 --- a/scenarios/order_list/executable.py +++ b/scenarios/order_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') orders = balanced.Order.query \ No newline at end of file diff --git a/scenarios/order_list/python.mako b/scenarios/order_list/python.mako index d25f46b..8fe5c49 100644 --- a/scenarios/order_list/python.mako +++ b/scenarios/order_list/python.mako @@ -4,7 +4,7 @@ balanced.Order.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') orders = balanced.Order.query % endif \ No newline at end of file diff --git a/scenarios/order_show/executable.py b/scenarios/order_show/executable.py index 2f4dbad..742b126 100644 --- a/scenarios/order_show/executable.py +++ b/scenarios/order_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -order = balanced.Order.fetch('/orders/OR3FOihZa7lMHdAP5p8BJZVY') \ No newline at end of file +order = balanced.Order.fetch('/orders/OR520nGy59wfJ4mM7HR6TYrn') \ No newline at end of file diff --git a/scenarios/order_show/python.mako b/scenarios/order_show/python.mako index 8cdd544..8e2f675 100644 --- a/scenarios/order_show/python.mako +++ b/scenarios/order_show/python.mako @@ -4,7 +4,7 @@ balanced.Order.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -order = balanced.Order.fetch('/orders/OR3FOihZa7lMHdAP5p8BJZVY') +order = balanced.Order.fetch('/orders/OR520nGy59wfJ4mM7HR6TYrn') % endif \ No newline at end of file diff --git a/scenarios/order_update/executable.py b/scenarios/order_update/executable.py index 65b660a..2edec25 100644 --- a/scenarios/order_update/executable.py +++ b/scenarios/order_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -order = balanced.Order.fetch('/orders/OR3FOihZa7lMHdAP5p8BJZVY') +order = balanced.Order.fetch('/orders/OR520nGy59wfJ4mM7HR6TYrn') order.description = 'New description for order' order.meta = { 'anykey': 'valuegoeshere', diff --git a/scenarios/order_update/python.mako b/scenarios/order_update/python.mako index 212c7c3..ca8d243 100644 --- a/scenarios/order_update/python.mako +++ b/scenarios/order_update/python.mako @@ -3,9 +3,9 @@ balanced.Order().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -order = balanced.Order.fetch('/orders/OR3FOihZa7lMHdAP5p8BJZVY') +order = balanced.Order.fetch('/orders/OR520nGy59wfJ4mM7HR6TYrn') order.description = 'New description for order' order.meta = { 'anykey': 'valuegoeshere', diff --git a/scenarios/refund_create/executable.py b/scenarios/refund_create/executable.py index 4dd71db..9d56082 100644 --- a/scenarios/refund_create/executable.py +++ b/scenarios/refund_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -debit = balanced.Debit.fetch('/debits/WD3MKNxNTKBGgA7mX50yogiu') +debit = balanced.Debit.fetch('/debits/WD57kmfV9Cgc0MiZkHOmFU1z') refund = debit.refund( amount=3000, description="Refund for Order #1111", diff --git a/scenarios/refund_create/python.mako b/scenarios/refund_create/python.mako index af6c7e5..14d6d29 100644 --- a/scenarios/refund_create/python.mako +++ b/scenarios/refund_create/python.mako @@ -3,9 +3,9 @@ balanced.Debit().refund() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -debit = balanced.Debit.fetch('/debits/WD3MKNxNTKBGgA7mX50yogiu') +debit = balanced.Debit.fetch('/debits/WD57kmfV9Cgc0MiZkHOmFU1z') refund = debit.refund( amount=3000, description="Refund for Order #1111", diff --git a/scenarios/refund_list/executable.py b/scenarios/refund_list/executable.py index 96d1062..7c6ac41 100644 --- a/scenarios/refund_list/executable.py +++ b/scenarios/refund_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') refunds = balanced.Refund.query \ No newline at end of file diff --git a/scenarios/refund_list/python.mako b/scenarios/refund_list/python.mako index 9be7346..7e0a516 100644 --- a/scenarios/refund_list/python.mako +++ b/scenarios/refund_list/python.mako @@ -4,7 +4,7 @@ balanced.Refund.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') refunds = balanced.Refund.query % endif \ No newline at end of file diff --git a/scenarios/refund_show/executable.py b/scenarios/refund_show/executable.py index 2e6aa9f..4a901c6 100644 --- a/scenarios/refund_show/executable.py +++ b/scenarios/refund_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -refund = balanced.Refund.fetch('/refunds/RF3RklPuFgsgI50UuYtr4g6I') \ No newline at end of file +refund = balanced.Refund.fetch('/refunds/RF5c71x7GALUPPdyexP4Weca') \ No newline at end of file diff --git a/scenarios/refund_show/python.mako b/scenarios/refund_show/python.mako index 2d3542c..2fb0062 100644 --- a/scenarios/refund_show/python.mako +++ b/scenarios/refund_show/python.mako @@ -4,7 +4,7 @@ balanced.Refund.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -refund = balanced.Refund.fetch('/refunds/RF3RklPuFgsgI50UuYtr4g6I') +refund = balanced.Refund.fetch('/refunds/RF5c71x7GALUPPdyexP4Weca') % endif \ No newline at end of file diff --git a/scenarios/refund_update/executable.py b/scenarios/refund_update/executable.py index 6854534..51fa8ae 100644 --- a/scenarios/refund_update/executable.py +++ b/scenarios/refund_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -refund = balanced.Refund.fetch('/refunds/RF3RklPuFgsgI50UuYtr4g6I') +refund = balanced.Refund.fetch('/refunds/RF5c71x7GALUPPdyexP4Weca') refund.description = 'update this description' refund.meta = { 'user.refund.count': '3', diff --git a/scenarios/refund_update/python.mako b/scenarios/refund_update/python.mako index da6f2d6..4f224b4 100644 --- a/scenarios/refund_update/python.mako +++ b/scenarios/refund_update/python.mako @@ -3,9 +3,9 @@ balanced.Refund().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -refund = balanced.Refund.fetch('/refunds/RF3RklPuFgsgI50UuYtr4g6I') +refund = balanced.Refund.fetch('/refunds/RF5c71x7GALUPPdyexP4Weca') refund.description = 'update this description' refund.meta = { 'user.refund.count': '3', diff --git a/scenarios/reversal_create/executable.py b/scenarios/reversal_create/executable.py index 11f7cde..31301d1 100644 --- a/scenarios/reversal_create/executable.py +++ b/scenarios/reversal_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -credit = balanced.Credit.fetch('/credits/CR40neytmVG2HDBp1opfF7sY') +credit = balanced.Credit.fetch('/credits/CR5j27kuJPX6voI8aokUWsEG') reversal = credit.reverse( amount=3000, description="Reversal for Order #1111", diff --git a/scenarios/reversal_create/python.mako b/scenarios/reversal_create/python.mako index e8a8995..c9a35d5 100644 --- a/scenarios/reversal_create/python.mako +++ b/scenarios/reversal_create/python.mako @@ -3,9 +3,9 @@ balanced.Credit().reverse() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -credit = balanced.Credit.fetch('/credits/CR40neytmVG2HDBp1opfF7sY') +credit = balanced.Credit.fetch('/credits/CR5j27kuJPX6voI8aokUWsEG') reversal = credit.reverse( amount=3000, description="Reversal for Order #1111", diff --git a/scenarios/reversal_list/executable.py b/scenarios/reversal_list/executable.py index fa42560..85f3372 100644 --- a/scenarios/reversal_list/executable.py +++ b/scenarios/reversal_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') reversals = balanced.Reversal.query \ No newline at end of file diff --git a/scenarios/reversal_list/python.mako b/scenarios/reversal_list/python.mako index 38a6da6..e0833a9 100644 --- a/scenarios/reversal_list/python.mako +++ b/scenarios/reversal_list/python.mako @@ -4,7 +4,7 @@ balanced.Reversal.query() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') reversals = balanced.Reversal.query % endif \ No newline at end of file diff --git a/scenarios/reversal_show/executable.py b/scenarios/reversal_show/executable.py index b9ae116..3ab159c 100644 --- a/scenarios/reversal_show/executable.py +++ b/scenarios/reversal_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -refund = balanced.Reversal.fetch('/reversals/RV42n8M9XZWna427oPDDi4RG') \ No newline at end of file +refund = balanced.Reversal.fetch('/reversals/RV5h1LgxTlH1OtHAZEfQbvbH') \ No newline at end of file diff --git a/scenarios/reversal_show/python.mako b/scenarios/reversal_show/python.mako index 1beddcb..4f1b614 100644 --- a/scenarios/reversal_show/python.mako +++ b/scenarios/reversal_show/python.mako @@ -4,7 +4,7 @@ balanced.Reversal.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -refund = balanced.Reversal.fetch('/reversals/RV42n8M9XZWna427oPDDi4RG') +refund = balanced.Reversal.fetch('/reversals/RV5h1LgxTlH1OtHAZEfQbvbH') % endif \ No newline at end of file diff --git a/scenarios/reversal_update/executable.py b/scenarios/reversal_update/executable.py index 214189f..4203000 100644 --- a/scenarios/reversal_update/executable.py +++ b/scenarios/reversal_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -reversal = balanced.Reversal.fetch('/reversals/RV42n8M9XZWna427oPDDi4RG') +reversal = balanced.Reversal.fetch('/reversals/RV5h1LgxTlH1OtHAZEfQbvbH') reversal.description = 'update this description' reversal.meta = { 'user.refund.count': '3', diff --git a/scenarios/reversal_update/python.mako b/scenarios/reversal_update/python.mako index b9b9065..c4aa6e7 100644 --- a/scenarios/reversal_update/python.mako +++ b/scenarios/reversal_update/python.mako @@ -3,9 +3,9 @@ balanced.Reversal().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -reversal = balanced.Reversal.fetch('/reversals/RV42n8M9XZWna427oPDDi4RG') +reversal = balanced.Reversal.fetch('/reversals/RV5h1LgxTlH1OtHAZEfQbvbH') reversal.description = 'update this description' reversal.meta = { 'user.refund.count': '3', From 18541c1af36fd2994fd4f6d969ff850c85813246 Mon Sep 17 00:00:00 2001 From: Richie Date: Thu, 6 Mar 2014 14:11:09 -0800 Subject: [PATCH 24/93] Update scenario cache --- scenario.cache | 271 +++++++++--------- scenarios/_mj/api_key_create/executable.py | 2 +- scenarios/_mj/api_key_create/python.mako | 2 +- scenarios/api_key_create/executable.py | 2 +- scenarios/api_key_create/python.mako | 2 +- scenarios/api_key_delete/executable.py | 4 +- scenarios/api_key_delete/python.mako | 4 +- scenarios/api_key_list/executable.py | 2 +- scenarios/api_key_list/python.mako | 2 +- scenarios/api_key_show/executable.py | 4 +- scenarios/api_key_show/python.mako | 4 +- .../executable.py | 6 +- .../python.mako | 6 +- scenarios/bank_account_create/executable.py | 2 +- scenarios/bank_account_create/python.mako | 2 +- scenarios/bank_account_credit/executable.py | 4 +- scenarios/bank_account_credit/python.mako | 4 +- scenarios/bank_account_debit/executable.py | 4 +- scenarios/bank_account_debit/python.mako | 4 +- scenarios/bank_account_delete/executable.py | 4 +- scenarios/bank_account_delete/python.mako | 4 +- scenarios/bank_account_list/executable.py | 2 +- scenarios/bank_account_list/python.mako | 2 +- scenarios/bank_account_show/executable.py | 4 +- scenarios/bank_account_show/python.mako | 4 +- scenarios/bank_account_update/executable.py | 4 +- scenarios/bank_account_update/python.mako | 4 +- .../executable.py | 4 +- .../python.mako | 4 +- .../executable.py | 4 +- .../python.mako | 4 +- .../executable.py | 4 +- .../python.mako | 4 +- scenarios/callback_create/executable.py | 5 +- scenarios/callback_create/python.mako | 5 +- scenarios/callback_delete/executable.py | 4 +- scenarios/callback_delete/python.mako | 4 +- scenarios/callback_list/executable.py | 2 +- scenarios/callback_list/python.mako | 2 +- scenarios/callback_show/executable.py | 4 +- scenarios/callback_show/python.mako | 4 +- .../card_associate_to_customer/executable.py | 6 +- .../card_associate_to_customer/python.mako | 6 +- scenarios/card_create/executable.py | 2 +- scenarios/card_create/python.mako | 2 +- scenarios/card_debit/executable.py | 4 +- scenarios/card_debit/python.mako | 4 +- scenarios/card_delete/executable.py | 4 +- scenarios/card_delete/python.mako | 4 +- scenarios/card_hold_capture/executable.py | 4 +- scenarios/card_hold_capture/python.mako | 4 +- scenarios/card_hold_create/executable.py | 4 +- scenarios/card_hold_create/python.mako | 4 +- scenarios/card_hold_list/executable.py | 2 +- scenarios/card_hold_list/python.mako | 2 +- scenarios/card_hold_show/executable.py | 4 +- scenarios/card_hold_show/python.mako | 4 +- scenarios/card_hold_update/executable.py | 4 +- scenarios/card_hold_update/python.mako | 4 +- scenarios/card_hold_void/executable.py | 4 +- scenarios/card_hold_void/python.mako | 4 +- scenarios/card_list/executable.py | 2 +- scenarios/card_list/python.mako | 2 +- scenarios/card_show/executable.py | 4 +- scenarios/card_show/python.mako | 4 +- scenarios/card_update/executable.py | 4 +- scenarios/card_update/python.mako | 4 +- scenarios/credit_list/executable.py | 2 +- scenarios/credit_list/python.mako | 2 +- .../credit_list_bank_account/executable.py | 4 +- .../credit_list_bank_account/python.mako | 4 +- scenarios/credit_show/executable.py | 4 +- scenarios/credit_show/python.mako | 4 +- scenarios/credit_update/executable.py | 4 +- scenarios/credit_update/python.mako | 4 +- scenarios/customer_create/executable.py | 2 +- scenarios/customer_create/python.mako | 2 +- scenarios/customer_delete/executable.py | 4 +- scenarios/customer_delete/python.mako | 4 +- scenarios/customer_list/executable.py | 2 +- scenarios/customer_list/python.mako | 2 +- scenarios/customer_show/executable.py | 4 +- scenarios/customer_show/python.mako | 4 +- scenarios/customer_update/executable.py | 4 +- scenarios/customer_update/python.mako | 4 +- scenarios/debit_list/executable.py | 2 +- scenarios/debit_list/python.mako | 2 +- scenarios/debit_show/executable.py | 4 +- scenarios/debit_show/python.mako | 4 +- scenarios/debit_update/executable.py | 4 +- scenarios/debit_update/python.mako | 4 +- scenarios/event_list/executable.py | 2 +- scenarios/event_list/python.mako | 2 +- scenarios/event_show/executable.py | 4 +- scenarios/event_show/python.mako | 4 +- scenarios/order_create/executable.py | 4 +- scenarios/order_create/python.mako | 4 +- scenarios/order_list/executable.py | 2 +- scenarios/order_list/python.mako | 2 +- scenarios/order_show/executable.py | 4 +- scenarios/order_show/python.mako | 4 +- scenarios/order_update/executable.py | 4 +- scenarios/order_update/python.mako | 4 +- scenarios/refund_create/executable.py | 4 +- scenarios/refund_create/python.mako | 4 +- scenarios/refund_list/executable.py | 2 +- scenarios/refund_list/python.mako | 2 +- scenarios/refund_show/executable.py | 4 +- scenarios/refund_show/python.mako | 4 +- scenarios/refund_update/executable.py | 4 +- scenarios/refund_update/python.mako | 4 +- scenarios/reversal_create/executable.py | 4 +- scenarios/reversal_create/python.mako | 4 +- scenarios/reversal_list/executable.py | 2 +- scenarios/reversal_list/python.mako | 2 +- scenarios/reversal_show/executable.py | 4 +- scenarios/reversal_show/python.mako | 4 +- scenarios/reversal_update/executable.py | 4 +- scenarios/reversal_update/python.mako | 4 +- 119 files changed, 344 insertions(+), 341 deletions(-) diff --git a/scenario.cache b/scenario.cache index 305b0b3..e08a698 100644 --- a/scenario.cache +++ b/scenario.cache @@ -1,40 +1,40 @@ { "accept_type": "application/vnd.api+json;revision=1.1", - "api_key": "ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB", + "api_key": "ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul", "api_key_create": { "request": { "uri": "/api_keys" }, - "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-03-05T23:25:38.010269Z\", \n \"href\": \"/api_keys/AK3zUFsQ8aJ3aae9ZylavXLp\", \n \"id\": \"AK3zUFsQ8aJ3aae9ZylavXLp\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-L4Cs4roaWqT6O5EllIqqFQIiT8YB923X\"\n }\n ], \n \"links\": {}\n}" + "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-03-06T19:22:18.256643Z\", \n \"href\": \"/api_keys/AK4Vt1mJyCtjdSiGgqAebarR\", \n \"id\": \"AK4Vt1mJyCtjdSiGgqAebarR\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-4bQUCg96rUwLV8FZXSTeq8WUSqROO9yT\"\n }\n ], \n \"links\": {}\n}" }, "api_key_delete": { "request": { - "uri": "/api_keys/AK3zUFsQ8aJ3aae9ZylavXLp" + "uri": "/api_keys/AK4Vt1mJyCtjdSiGgqAebarR" } }, "api_key_list": { "request": { "uri": "/api_keys" }, - "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-03-05T23:25:38.010269Z\", \n \"href\": \"/api_keys/AK3zUFsQ8aJ3aae9ZylavXLp\", \n \"id\": \"AK3zUFsQ8aJ3aae9ZylavXLp\", \n \"links\": {}, \n \"meta\": {}\n }, \n {\n \"created_at\": \"2014-03-05T23:25:33.332043Z\", \n \"href\": \"/api_keys/AK3uEJynPdwB05TB04ND2FEi\", \n \"id\": \"AK3uEJynPdwB05TB04ND2FEi\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB\"\n }\n ], \n \"links\": {}, \n \"meta\": {\n \"first\": \"/api_keys?limit=10&offset=0\", \n \"href\": \"/api_keys?limit=10&offset=0\", \n \"last\": \"/api_keys?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 2\n }\n}" + "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-03-06T19:22:18.256643Z\", \n \"href\": \"/api_keys/AK4Vt1mJyCtjdSiGgqAebarR\", \n \"id\": \"AK4Vt1mJyCtjdSiGgqAebarR\", \n \"links\": {}, \n \"meta\": {}\n }, \n {\n \"created_at\": \"2014-03-06T19:22:11.872886Z\", \n \"href\": \"/api_keys/AK4OhVZUPzjD3YSCWBjU1dHO\", \n \"id\": \"AK4OhVZUPzjD3YSCWBjU1dHO\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul\"\n }\n ], \n \"links\": {}, \n \"meta\": {\n \"first\": \"/api_keys?limit=10&offset=0\", \n \"href\": \"/api_keys?limit=10&offset=0\", \n \"last\": \"/api_keys?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 2\n }\n}" }, "api_key_show": { "request": { - "uri": "/api_keys/AK3zUFsQ8aJ3aae9ZylavXLp" + "uri": "/api_keys/AK4Vt1mJyCtjdSiGgqAebarR" }, - "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-03-05T23:25:38.010269Z\", \n \"href\": \"/api_keys/AK3zUFsQ8aJ3aae9ZylavXLp\", \n \"id\": \"AK3zUFsQ8aJ3aae9ZylavXLp\", \n \"links\": {}, \n \"meta\": {}\n }\n ], \n \"links\": {}\n}" + "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-03-06T19:22:18.256643Z\", \n \"href\": \"/api_keys/AK4Vt1mJyCtjdSiGgqAebarR\", \n \"id\": \"AK4Vt1mJyCtjdSiGgqAebarR\", \n \"links\": {}, \n \"meta\": {}\n }\n ], \n \"links\": {}\n}" }, "api_location": "https://api.balancedpayments.com", "api_rev": "rev1", "bank_account_associate_to_customer": { "request": { - "customer_href": "/customers/CU4EeI9UPzRcOo2C3j1qFjQj", + "customer_href": "/customers/CU64R7DS6DwuXYVg9RTskFK8", "payload": { - "customer": "/customers/CU4EeI9UPzRcOo2C3j1qFjQj" + "customer": "/customers/CU64R7DS6DwuXYVg9RTskFK8" }, - "uri": "/bank_accounts/BA4JCiiAb4alhWMlZSv9POAU" + "uri": "/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m" }, - "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-05T23:26:41.766297Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA4JCiiAb4alhWMlZSv9POAU\", \n \"id\": \"BA4JCiiAb4alhWMlZSv9POAU\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU4EeI9UPzRcOo2C3j1qFjQj\"\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-05T23:26:42.260213Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}" + "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-06T19:23:27.876147Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m\", \n \"id\": \"BA6bLGpQZPOiTNRxF24rMd9m\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU64R7DS6DwuXYVg9RTskFK8\"\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-06T19:23:28.930538Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}" }, "bank_account_create": { "request": { @@ -46,46 +46,46 @@ }, "uri": "/bank_accounts" }, - "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-05T23:26:41.766297Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA4JCiiAb4alhWMlZSv9POAU\", \n \"id\": \"BA4JCiiAb4alhWMlZSv9POAU\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-05T23:26:41.766300Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}" + "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-06T19:23:27.876147Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m\", \n \"id\": \"BA6bLGpQZPOiTNRxF24rMd9m\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-06T19:23:27.876150Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}" }, "bank_account_credit": { "request": { - "bank_account_href": "/bank_accounts/BA4JCiiAb4alhWMlZSv9POAU", + "bank_account_href": "/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m", "payload": { "amount": 5000 }, - "uri": "/bank_accounts/BA4JCiiAb4alhWMlZSv9POAU/credits" + "uri": "/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m/credits" }, - "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-03-05T23:27:04.588054Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR5j27kuJPX6voI8aokUWsEG\", \n \"id\": \"CR5j27kuJPX6voI8aokUWsEG\", \n \"links\": {\n \"customer\": \"CU4EeI9UPzRcOo2C3j1qFjQj\", \n \"destination\": \"BA4JCiiAb4alhWMlZSv9POAU\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR014-527-1811\", \n \"updated_at\": \"2014-03-05T23:27:04.959556Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }\n}" + "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-03-06T19:23:54.514782Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR6NpuEtezCdLTYngDrSEODv\", \n \"id\": \"CR6NpuEtezCdLTYngDrSEODv\", \n \"links\": {\n \"customer\": \"CU64R7DS6DwuXYVg9RTskFK8\", \n \"destination\": \"BA6bLGpQZPOiTNRxF24rMd9m\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR855-415-1670\", \n \"updated_at\": \"2014-03-06T19:23:55.019500Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }\n}" }, "bank_account_debit": { "request": { - "bank_account_href": "/bank_accounts/BA3EMnkybAfEzVlbVquXFLEk", + "bank_account_href": "/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM", "payload": { "amount": 5000, "appears_on_statement_as": "Statement text", "description": "Some descriptive text for the debit in the dashboard" }, - "uri": "/bank_accounts/BA3EMnkybAfEzVlbVquXFLEk/debits" + "uri": "/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM/debits" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-05T23:25:54.018666Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD3YFevpLojZZXSGnXtxLXYJ\", \n \"id\": \"WD3YFevpLojZZXSGnXtxLXYJ\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"BA3EMnkybAfEzVlbVquXFLEk\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W506-983-6658\", \n \"updated_at\": \"2014-03-05T23:25:54.401166Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" + "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-06T19:22:35.961050Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD5qunOPeKdCnWXIg9EHyHge\", \n \"id\": \"WD5qunOPeKdCnWXIg9EHyHge\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"BA50LpPrCTB63Ecm0wEgdOQM\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W051-293-0823\", \n \"updated_at\": \"2014-03-06T19:22:36.418154Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" }, "bank_account_delete": { "request": { - "uri": "/bank_accounts/BA3LBmizwthrjehivn2ffzHU" + "uri": "/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V" } }, "bank_account_list": { "request": { "uri": "/bank_accounts" }, - "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-05T23:25:48.401480Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA3LBmizwthrjehivn2ffzHU\", \n \"id\": \"BA3LBmizwthrjehivn2ffzHU\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-05T23:25:48.401483Z\"\n }, \n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-03-05T23:25:42.337258Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA3EMnkybAfEzVlbVquXFLEk\", \n \"id\": \"BA3EMnkybAfEzVlbVquXFLEk\", \n \"links\": {\n \"bank_account_verification\": \"BZ3NheXIi1UxUiNtkaSo1ZI5\", \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-05T23:25:46.811459Z\"\n }, \n {\n \"account_number\": \"xxxxxxxxxxx5555\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"WELLS FARGO BANK NA\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-03-05T23:25:34.017557Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA3EZthJjXI5E73dSq9j10sG\", \n \"id\": \"BA3EZthJjXI5E73dSq9j10sG\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU3EOo1JQiusqvWMhgNOKCQW\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-03-05T23:25:34.017561Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }, \n \"meta\": {\n \"first\": \"/bank_accounts?limit=10&offset=0\", \n \"href\": \"/bank_accounts?limit=10&offset=0\", \n \"last\": \"/bank_accounts?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 3\n }\n}" + "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-06T19:22:30.247406Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V\", \n \"id\": \"BA58WYAEUMrEtAkW5KAvWo5V\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-06T19:22:30.247410Z\"\n }, \n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-03-06T19:22:22.966278Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM\", \n \"id\": \"BA50LpPrCTB63Ecm0wEgdOQM\", \n \"links\": {\n \"bank_account_verification\": \"BZ5alC0fajkuBOvOU7lVT7QJ\", \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-06T19:22:27.888575Z\"\n }, \n {\n \"account_number\": \"xxxxxxxxxxx5555\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"WELLS FARGO BANK NA\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-03-06T19:22:12.982029Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA4WYHt1wCRMAJGm6k0BDaeR\", \n \"id\": \"BA4WYHt1wCRMAJGm6k0BDaeR\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU4Wt8xSbREzV2NWtdVAFGeR\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-03-06T19:22:12.982032Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }, \n \"meta\": {\n \"first\": \"/bank_accounts?limit=10&offset=0\", \n \"href\": \"/bank_accounts?limit=10&offset=0\", \n \"last\": \"/bank_accounts?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 3\n }\n}" }, "bank_account_show": { "request": { - "uri": "/bank_accounts/BA3LBmizwthrjehivn2ffzHU" + "uri": "/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V" }, - "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-05T23:25:48.401480Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA3LBmizwthrjehivn2ffzHU\", \n \"id\": \"BA3LBmizwthrjehivn2ffzHU\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-05T23:25:48.401483Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}" + "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-06T19:22:30.247406Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V\", \n \"id\": \"BA58WYAEUMrEtAkW5KAvWo5V\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-06T19:22:30.247410Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}" }, "bank_account_update": { "request": { @@ -96,22 +96,22 @@ "twitter.id": "1234987650" } }, - "uri": "/bank_accounts/BA3LBmizwthrjehivn2ffzHU" + "uri": "/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V" }, - "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-05T23:25:48.401480Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA3LBmizwthrjehivn2ffzHU\", \n \"id\": \"BA3LBmizwthrjehivn2ffzHU\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {\n \"facebook.user_id\": \"0192837465\", \n \"my-own-customer-id\": \"12345\", \n \"twitter.id\": \"1234987650\"\n }, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-05T23:25:51.917992Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}" + "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-06T19:22:30.247406Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V\", \n \"id\": \"BA58WYAEUMrEtAkW5KAvWo5V\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {\n \"facebook.user_id\": \"0192837465\", \n \"my-own-customer-id\": \"12345\", \n \"twitter.id\": \"1234987650\"\n }, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-06T19:22:33.744499Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}" }, "bank_account_verification_create": { "request": { - "bank_account_uri": "/bank_accounts/BA3EMnkybAfEzVlbVquXFLEk", - "uri": "/bank_accounts/BA3EMnkybAfEzVlbVquXFLEk/verifications" + "bank_account_uri": "/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM", + "uri": "/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM/verifications" }, - "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-03-05T23:25:43.892899Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ3NheXIi1UxUiNtkaSo1ZI5\", \n \"id\": \"BZ3NheXIi1UxUiNtkaSo1ZI5\", \n \"links\": {\n \"bank_account\": \"BA3EMnkybAfEzVlbVquXFLEk\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-05T23:25:44.308407Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n}" + "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-03-06T19:22:24.651572Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ5alC0fajkuBOvOU7lVT7QJ\", \n \"id\": \"BZ5alC0fajkuBOvOU7lVT7QJ\", \n \"links\": {\n \"bank_account\": \"BA50LpPrCTB63Ecm0wEgdOQM\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-06T19:22:25.233126Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n}" }, "bank_account_verification_show": { "request": { - "uri": "/verifications/BZ3NheXIi1UxUiNtkaSo1ZI5" + "uri": "/verifications/BZ5alC0fajkuBOvOU7lVT7QJ" }, - "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-03-05T23:25:43.892899Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ3NheXIi1UxUiNtkaSo1ZI5\", \n \"id\": \"BZ3NheXIi1UxUiNtkaSo1ZI5\", \n \"links\": {\n \"bank_account\": \"BA3EMnkybAfEzVlbVquXFLEk\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-05T23:25:44.308407Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n}" + "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-03-06T19:22:24.651572Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ5alC0fajkuBOvOU7lVT7QJ\", \n \"id\": \"BZ5alC0fajkuBOvOU7lVT7QJ\", \n \"links\": {\n \"bank_account\": \"BA50LpPrCTB63Ecm0wEgdOQM\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-06T19:22:25.233126Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n}" }, "bank_account_verification_update": { "request": { @@ -119,35 +119,36 @@ "amount_1": 1, "amount_2": 1 }, - "uri": "/verifications/BZ3NheXIi1UxUiNtkaSo1ZI5" + "uri": "/verifications/BZ5alC0fajkuBOvOU7lVT7QJ" }, - "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-03-05T23:25:43.892899Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ3NheXIi1UxUiNtkaSo1ZI5\", \n \"id\": \"BZ3NheXIi1UxUiNtkaSo1ZI5\", \n \"links\": {\n \"bank_account\": \"BA3EMnkybAfEzVlbVquXFLEk\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-05T23:25:46.812376Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n}" + "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-03-06T19:22:24.651572Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ5alC0fajkuBOvOU7lVT7QJ\", \n \"id\": \"BZ5alC0fajkuBOvOU7lVT7QJ\", \n \"links\": {\n \"bank_account\": \"BA50LpPrCTB63Ecm0wEgdOQM\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-06T19:22:27.893114Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n}" }, "callback_create": { "request": { "payload": { + "method": "post", "url": "http://www.example.com/callback" }, "uri": "/callbacks" }, - "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB40OMtABWHqkGcBEYpWVnAd\", \n \"id\": \"CB40OMtABWHqkGcBEYpWVnAd\", \n \"links\": {}, \n \"method\": \"post\", \n \"revision\": \"1.1\", \n \"url\": \"http://www.example.com/callback\"\n }\n ], \n \"links\": {}\n}" + "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB5pnz4XnaDpRFGlNMb6u50R\", \n \"id\": \"CB5pnz4XnaDpRFGlNMb6u50R\", \n \"links\": {}, \n \"method\": \"post\", \n \"revision\": \"1.1\", \n \"url\": \"http://www.example.com/callback\"\n }\n ], \n \"links\": {}\n}" }, "callback_delete": { "request": { - "uri": "/callbacks/CB40OMtABWHqkGcBEYpWVnAd" + "uri": "/callbacks/CB5pnz4XnaDpRFGlNMb6u50R" } }, "callback_list": { "request": { "uri": "/callbacks" }, - "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB40OMtABWHqkGcBEYpWVnAd\", \n \"id\": \"CB40OMtABWHqkGcBEYpWVnAd\", \n \"links\": {}, \n \"method\": \"post\", \n \"revision\": \"1.1\", \n \"url\": \"http://www.example.com/callback\"\n }\n ], \n \"links\": {}, \n \"meta\": {\n \"first\": \"/callbacks?limit=10&offset=0\", \n \"href\": \"/callbacks?limit=10&offset=0\", \n \"last\": \"/callbacks?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }\n}" + "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB5pnz4XnaDpRFGlNMb6u50R\", \n \"id\": \"CB5pnz4XnaDpRFGlNMb6u50R\", \n \"links\": {}, \n \"method\": \"post\", \n \"revision\": \"1.1\", \n \"url\": \"http://www.example.com/callback\"\n }\n ], \n \"links\": {}, \n \"meta\": {\n \"first\": \"/callbacks?limit=10&offset=0\", \n \"href\": \"/callbacks?limit=10&offset=0\", \n \"last\": \"/callbacks?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }\n}" }, "callback_show": { "request": { - "uri": "/callbacks/CB40OMtABWHqkGcBEYpWVnAd" + "uri": "/callbacks/CB5pnz4XnaDpRFGlNMb6u50R" }, - "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB40OMtABWHqkGcBEYpWVnAd\", \n \"id\": \"CB40OMtABWHqkGcBEYpWVnAd\", \n \"links\": {}, \n \"method\": \"post\", \n \"revision\": \"1.1\", \n \"url\": \"http://www.example.com/callback\"\n }\n ], \n \"links\": {}\n}" + "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB5pnz4XnaDpRFGlNMb6u50R\", \n \"id\": \"CB5pnz4XnaDpRFGlNMb6u50R\", \n \"links\": {}, \n \"method\": \"post\", \n \"revision\": \"1.1\", \n \"url\": \"http://www.example.com/callback\"\n }\n ], \n \"links\": {}\n}" }, "card": { "address": { @@ -162,32 +163,32 @@ "avs_result": "Postal code matches, but street address not verified.", "avs_street_match": "yes", "brand": "Visa", - "created_at": "2014-03-05T23:25:35.621284Z", + "created_at": "2014-03-06T19:22:15.395346Z", "cvv": null, "cvv_match": null, "cvv_result": null, "expiration_month": 4, "expiration_year": 2016, "fingerprint": "979a26c05f2fb1c7ae38656312b176da2c9be1d938d442040bc79539caac6c0d", - "href": "/cards/CC3xcAcEO1uAKg6y8vInsuyy", - "id": "CC3xcAcEO1uAKg6y8vInsuyy", + "href": "/cards/CC4SdMF0rukpL3XdVvpqoC4m", + "id": "CC4SdMF0rukpL3XdVvpqoC4m", "is_verified": true, "links": { - "customer": "CU3vRG5nvuT7KVvWumdwT33W" + "customer": "CU4Q8w3Fcg1ed7rrx2bWcw18" }, "meta": {}, "name": "Benny Riemann", "number": "xxxxxxxxxxxx1111", - "updated_at": "2014-03-05T23:25:35.621287Z" + "updated_at": "2014-03-06T19:22:15.395350Z" }, "card_associate_to_customer": { "request": { "payload": { - "customer": "/customers/CU4EeI9UPzRcOo2C3j1qFjQj" + "customer": "/customers/CU64R7DS6DwuXYVg9RTskFK8" }, - "uri": "/cards/CC4GOYzOKyWXBzJMVTs00aNk" + "uri": "/cards/CC68IoCVpoFlkugB7xt52p8C" }, - "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-05T23:26:39.277255Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC4GOYzOKyWXBzJMVTs00aNk\", \n \"id\": \"CC4GOYzOKyWXBzJMVTs00aNk\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU4EeI9UPzRcOo2C3j1qFjQj\"\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-05T23:26:39.764773Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}" + "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-06T19:23:25.159503Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC68IoCVpoFlkugB7xt52p8C\", \n \"id\": \"CC68IoCVpoFlkugB7xt52p8C\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU64R7DS6DwuXYVg9RTskFK8\"\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-06T19:23:25.633918Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}" }, "card_create": { "request": { @@ -199,58 +200,58 @@ }, "uri": "/cards" }, - "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-05T23:26:39.277255Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC4GOYzOKyWXBzJMVTs00aNk\", \n \"id\": \"CC4GOYzOKyWXBzJMVTs00aNk\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-05T23:26:39.277278Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}" + "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-06T19:23:25.159503Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC68IoCVpoFlkugB7xt52p8C\", \n \"id\": \"CC68IoCVpoFlkugB7xt52p8C\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-06T19:23:25.159506Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}" }, "card_debit": { "request": { - "card_href": "/cards/CC4GOYzOKyWXBzJMVTs00aNk", + "card_href": "/cards/CC68IoCVpoFlkugB7xt52p8C", "payload": { "amount": 5000, "appears_on_statement_as": "Statement text", "description": "Some descriptive text for the debit in the dashboard" }, - "uri": "/cards/CC4GOYzOKyWXBzJMVTs00aNk/debits" + "uri": "/cards/CC68IoCVpoFlkugB7xt52p8C/debits" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-05T23:26:56.846784Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD57kmfV9Cgc0MiZkHOmFU1z\", \n \"id\": \"WD57kmfV9Cgc0MiZkHOmFU1z\", \n \"links\": {\n \"customer\": \"CU4EeI9UPzRcOo2C3j1qFjQj\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC4GOYzOKyWXBzJMVTs00aNk\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W689-292-5444\", \n \"updated_at\": \"2014-03-05T23:26:57.800246Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" + "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-06T19:23:44.148512Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD6BKYhbRzlRhfKSE1DcpqS5\", \n \"id\": \"WD6BKYhbRzlRhfKSE1DcpqS5\", \n \"links\": {\n \"customer\": \"CU64R7DS6DwuXYVg9RTskFK8\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC68IoCVpoFlkugB7xt52p8C\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W274-713-3734\", \n \"updated_at\": \"2014-03-06T19:23:45.554127Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" }, "card_delete": { "request": { - "uri": "/cards/CC4cbNzUmFqGrc1GmFpXp6fe" + "uri": "/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O" } }, "card_hold_capture": { "request": { - "card_hold_href": "/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs", + "card_hold_href": "/card_holds/HL5wAfv8JaMsEn9idXrLZZZT", "payload": { "appears_on_statement_as": "ShowsUpOnStmt", "description": "Some descriptive text for the debit in the dashboard" }, - "uri": "/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs/debits" + "uri": "/card_holds/HL5wAfv8JaMsEn9idXrLZZZT/debits" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-03-05T23:26:06.474907Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD4fFQTpXCoEa4bBG4M3DilA\", \n \"id\": \"WD4fFQTpXCoEa4bBG4M3DilA\", \n \"links\": {\n \"customer\": \"CU3EOo1JQiusqvWMhgNOKCQW\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC3ZsWHP2jMgvFrrzDzfZS0q\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W093-013-7624\", \n \"updated_at\": \"2014-03-05T23:26:07.432800Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" + "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-03-06T19:22:49.584629Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD5Co9XwRZJg1QtvC5QeekhX\", \n \"id\": \"WD5Co9XwRZJg1QtvC5QeekhX\", \n \"links\": {\n \"customer\": \"CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC5nCSU0yFp3qxR4p6UZST7y\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W493-697-4873\", \n \"updated_at\": \"2014-03-06T19:22:50.608819Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" }, "card_hold_create": { "request": { - "card_href": "/cards/CC3ZsWHP2jMgvFrrzDzfZS0q", + "card_href": "/cards/CC5nCSU0yFp3qxR4p6UZST7y", "payload": { "amount": 5000, "description": "Some descriptive text for the debit in the dashboard" }, - "uri": "/cards/CC3ZsWHP2jMgvFrrzDzfZS0q/card_holds" + "uri": "/cards/CC5nCSU0yFp3qxR4p6UZST7y/card_holds" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-05T23:26:08.860551Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-03-12T23:26:09.014221Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL4fmk2370zAE7nAVujKxjtf\", \n \"id\": \"HL4fmk2370zAE7nAVujKxjtf\", \n \"links\": {\n \"card\": \"CC3ZsWHP2jMgvFrrzDzfZS0q\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL299-976-7990\", \n \"updated_at\": \"2014-03-05T23:26:09.094208Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}" + "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-06T19:22:51.758438Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-03-13T19:22:52.154430Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL5Ig892KbmJyDqED5fYsJ8m\", \n \"id\": \"HL5Ig892KbmJyDqED5fYsJ8m\", \n \"links\": {\n \"card\": \"CC5nCSU0yFp3qxR4p6UZST7y\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL671-938-5651\", \n \"updated_at\": \"2014-03-06T19:22:52.362482Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}" }, "card_hold_list": { "request": { "uri": "/card_holds" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-05T23:26:01.450567Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-03-12T23:26:01.582417Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs\", \n \"id\": \"HL4a1BKhDiVV9Ueh9MTozVDs\", \n \"links\": {\n \"card\": \"CC3ZsWHP2jMgvFrrzDzfZS0q\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL143-599-1267\", \n \"updated_at\": \"2014-03-05T23:26:01.708381Z\", \n \"voided_at\": null\n }, \n {\n \"amount\": 10000000, \n \"created_at\": \"2014-03-05T23:25:36.340065Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-03-12T23:25:36.858680Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3EMy06BmBJMxC9usWzYxGp\", \n \"id\": \"HL3EMy06BmBJMxC9usWzYxGp\", \n \"links\": {\n \"card\": \"CC3xcAcEO1uAKg6y8vInsuyy\", \n \"debit\": \"WD3ESkGREiEVMTVdte6B2xQZ\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL975-858-6267\", \n \"updated_at\": \"2014-03-05T23:25:37.468666Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }, \n \"meta\": {\n \"first\": \"/card_holds?limit=10&offset=0\", \n \"href\": \"/card_holds?limit=10&offset=0\", \n \"last\": \"/card_holds?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 2\n }\n}" + "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-06T19:22:44.421804Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-03-13T19:22:44.661981Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL5wAfv8JaMsEn9idXrLZZZT\", \n \"id\": \"HL5wAfv8JaMsEn9idXrLZZZT\", \n \"links\": {\n \"card\": \"CC5nCSU0yFp3qxR4p6UZST7y\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL116-606-6128\", \n \"updated_at\": \"2014-03-06T19:22:44.816617Z\", \n \"voided_at\": null\n }, \n {\n \"amount\": 10000000, \n \"created_at\": \"2014-03-06T19:22:16.137074Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-03-13T19:22:16.821934Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL50LRASJbs8Kbcwqpu2TFdD\", \n \"id\": \"HL50LRASJbs8Kbcwqpu2TFdD\", \n \"links\": {\n \"card\": \"CC4SdMF0rukpL3XdVvpqoC4m\", \n \"debit\": \"WD50VxLKoVBNdkbovF4D56xX\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL974-747-7939\", \n \"updated_at\": \"2014-03-06T19:22:17.708358Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }, \n \"meta\": {\n \"first\": \"/card_holds?limit=10&offset=0\", \n \"href\": \"/card_holds?limit=10&offset=0\", \n \"last\": \"/card_holds?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 2\n }\n}" }, "card_hold_show": { "request": { - "uri": "/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs" + "uri": "/card_holds/HL5wAfv8JaMsEn9idXrLZZZT" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-05T23:26:01.450567Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-03-12T23:26:01.582417Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs\", \n \"id\": \"HL4a1BKhDiVV9Ueh9MTozVDs\", \n \"links\": {\n \"card\": \"CC3ZsWHP2jMgvFrrzDzfZS0q\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL143-599-1267\", \n \"updated_at\": \"2014-03-05T23:26:01.708381Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}" + "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-06T19:22:44.421804Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-03-13T19:22:44.661981Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL5wAfv8JaMsEn9idXrLZZZT\", \n \"id\": \"HL5wAfv8JaMsEn9idXrLZZZT\", \n \"links\": {\n \"card\": \"CC5nCSU0yFp3qxR4p6UZST7y\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL116-606-6128\", \n \"updated_at\": \"2014-03-06T19:22:44.816617Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}" }, "card_hold_update": { "request": { @@ -261,31 +262,31 @@ "meaningful.key": "some.value" } }, - "uri": "/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs" + "uri": "/card_holds/HL5wAfv8JaMsEn9idXrLZZZT" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-05T23:26:01.450567Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"expires_at\": \"2014-03-12T23:26:01.582417Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs\", \n \"id\": \"HL4a1BKhDiVV9Ueh9MTozVDs\", \n \"links\": {\n \"card\": \"CC3ZsWHP2jMgvFrrzDzfZS0q\", \n \"debit\": null\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL143-599-1267\", \n \"updated_at\": \"2014-03-05T23:26:05.389848Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}" + "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-06T19:22:44.421804Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"expires_at\": \"2014-03-13T19:22:44.661981Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL5wAfv8JaMsEn9idXrLZZZT\", \n \"id\": \"HL5wAfv8JaMsEn9idXrLZZZT\", \n \"links\": {\n \"card\": \"CC5nCSU0yFp3qxR4p6UZST7y\", \n \"debit\": null\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL116-606-6128\", \n \"updated_at\": \"2014-03-06T19:22:48.496101Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}" }, "card_hold_void": { "request": { "payload": { "is_void": "true" }, - "uri": "/card_holds/HL4fmk2370zAE7nAVujKxjtf" + "uri": "/card_holds/HL5Ig892KbmJyDqED5fYsJ8m" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-05T23:26:08.860551Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-03-12T23:26:09.014221Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL4fmk2370zAE7nAVujKxjtf\", \n \"id\": \"HL4fmk2370zAE7nAVujKxjtf\", \n \"links\": {\n \"card\": \"CC3ZsWHP2jMgvFrrzDzfZS0q\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL299-976-7990\", \n \"updated_at\": \"2014-03-05T23:26:09.634525Z\", \n \"voided_at\": \"2014-03-05T23:26:09.634528Z\"\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}" + "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-06T19:22:51.758438Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-03-13T19:22:52.154430Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL5Ig892KbmJyDqED5fYsJ8m\", \n \"id\": \"HL5Ig892KbmJyDqED5fYsJ8m\", \n \"links\": {\n \"card\": \"CC5nCSU0yFp3qxR4p6UZST7y\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL671-938-5651\", \n \"updated_at\": \"2014-03-06T19:22:52.865612Z\", \n \"voided_at\": \"2014-03-06T19:22:52.865616Z\"\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}" }, - "card_id": "CC3xcAcEO1uAKg6y8vInsuyy", + "card_id": "CC4SdMF0rukpL3XdVvpqoC4m", "card_list": { "request": { "uri": "/cards" }, - "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-05T23:26:12.047635Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC4cbNzUmFqGrc1GmFpXp6fe\", \n \"id\": \"CC4cbNzUmFqGrc1GmFpXp6fe\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-05T23:26:12.047639Z\"\n }, \n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-05T23:26:00.730925Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC3ZsWHP2jMgvFrrzDzfZS0q\", \n \"id\": \"CC3ZsWHP2jMgvFrrzDzfZS0q\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU3EOo1JQiusqvWMhgNOKCQW\"\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-05T23:26:01.448309Z\"\n }, \n {\n \"address\": {\n \"city\": \"Balo Alto\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"10023\", \n \"state\": null\n }, \n \"avs_postal_match\": \"yes\", \n \"avs_result\": \"Postal code matches, but street address not verified.\", \n \"avs_street_match\": \"yes\", \n \"brand\": \"Visa\", \n \"created_at\": \"2014-03-05T23:25:35.621284Z\", \n \"cvv\": null, \n \"cvv_match\": null, \n \"cvv_result\": null, \n \"expiration_month\": 4, \n \"expiration_year\": 2016, \n \"fingerprint\": \"979a26c05f2fb1c7ae38656312b176da2c9be1d938d442040bc79539caac6c0d\", \n \"href\": \"/cards/CC3xcAcEO1uAKg6y8vInsuyy\", \n \"id\": \"CC3xcAcEO1uAKg6y8vInsuyy\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU3vRG5nvuT7KVvWumdwT33W\"\n }, \n \"meta\": {}, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-03-05T23:25:35.621287Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }, \n \"meta\": {\n \"first\": \"/cards?limit=10&offset=0\", \n \"href\": \"/cards?limit=10&offset=0\", \n \"last\": \"/cards?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 3\n }\n}" + "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-06T19:22:55.617351Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O\", \n \"id\": \"CC5Buki6e4Kg4bDVZ3OSfQ8O\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-06T19:22:55.617354Z\"\n }, \n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-06T19:22:43.295192Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC5nCSU0yFp3qxR4p6UZST7y\", \n \"id\": \"CC5nCSU0yFp3qxR4p6UZST7y\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU4Wt8xSbREzV2NWtdVAFGeR\"\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-06T19:22:44.417128Z\"\n }, \n {\n \"address\": {\n \"city\": \"Balo Alto\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"10023\", \n \"state\": null\n }, \n \"avs_postal_match\": \"yes\", \n \"avs_result\": \"Postal code matches, but street address not verified.\", \n \"avs_street_match\": \"yes\", \n \"brand\": \"Visa\", \n \"created_at\": \"2014-03-06T19:22:15.395346Z\", \n \"cvv\": null, \n \"cvv_match\": null, \n \"cvv_result\": null, \n \"expiration_month\": 4, \n \"expiration_year\": 2016, \n \"fingerprint\": \"979a26c05f2fb1c7ae38656312b176da2c9be1d938d442040bc79539caac6c0d\", \n \"href\": \"/cards/CC4SdMF0rukpL3XdVvpqoC4m\", \n \"id\": \"CC4SdMF0rukpL3XdVvpqoC4m\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU4Q8w3Fcg1ed7rrx2bWcw18\"\n }, \n \"meta\": {}, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-03-06T19:22:15.395350Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }, \n \"meta\": {\n \"first\": \"/cards?limit=10&offset=0\", \n \"href\": \"/cards?limit=10&offset=0\", \n \"last\": \"/cards?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 3\n }\n}" }, "card_show": { "request": { - "uri": "/cards/CC4cbNzUmFqGrc1GmFpXp6fe" + "uri": "/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O" }, - "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-05T23:26:12.047635Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC4cbNzUmFqGrc1GmFpXp6fe\", \n \"id\": \"CC4cbNzUmFqGrc1GmFpXp6fe\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-05T23:26:12.047639Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}" + "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-06T19:22:55.617351Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O\", \n \"id\": \"CC5Buki6e4Kg4bDVZ3OSfQ8O\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-06T19:22:55.617354Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}" }, "card_update": { "request": { @@ -296,30 +297,30 @@ "twitter.id": "1234987650" } }, - "uri": "/cards/CC4cbNzUmFqGrc1GmFpXp6fe" + "uri": "/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O" }, - "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-05T23:26:12.047635Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC4cbNzUmFqGrc1GmFpXp6fe\", \n \"id\": \"CC4cbNzUmFqGrc1GmFpXp6fe\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {\n \"facebook.user_id\": \"0192837465\", \n \"my-own-customer-id\": \"12345\", \n \"twitter.id\": \"1234987650\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-05T23:26:15.715688Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}" + "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-06T19:22:55.617351Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O\", \n \"id\": \"CC5Buki6e4Kg4bDVZ3OSfQ8O\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {\n \"facebook.user_id\": \"0192837465\", \n \"my-own-customer-id\": \"12345\", \n \"twitter.id\": \"1234987650\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-06T19:22:59.186980Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}" }, - "card_uri": "/cards/CC3xcAcEO1uAKg6y8vInsuyy", - "cards_uri": "/customers/CU3vRG5nvuT7KVvWumdwT33W/cards", + "card_uri": "/cards/CC4SdMF0rukpL3XdVvpqoC4m", + "cards_uri": "/customers/CU4Q8w3Fcg1ed7rrx2bWcw18/cards", "credit_list": { "request": { "uri": "/credits" }, - "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-03-05T23:26:24.160132Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR4wyLukORa0TXhCYtjZrfw5\", \n \"id\": \"CR4wyLukORa0TXhCYtjZrfw5\", \n \"links\": {\n \"customer\": \"CU4lcDzIlpDxgcuzHkzC4QHS\", \n \"destination\": \"BA4osUR5dW1HQkqoxl65lfNe\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR858-193-7792\", \n \"updated_at\": \"2014-03-05T23:26:24.536046Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }, \n \"meta\": {\n \"first\": \"/credits?limit=10&offset=0\", \n \"href\": \"/credits?limit=10&offset=0\", \n \"last\": \"/credits?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }\n}" + "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-03-06T19:23:08.771807Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR5XXPwA1ckaTDSIg3593sEx\", \n \"id\": \"CR5XXPwA1ckaTDSIg3593sEx\", \n \"links\": {\n \"customer\": \"CU5LVuaZG7gURfbA7TuMNoZa\", \n \"destination\": \"BA5OqdmH8URGBYpilMITWsNW\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR570-678-5174\", \n \"updated_at\": \"2014-03-06T19:23:09.525306Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }, \n \"meta\": {\n \"first\": \"/credits?limit=10&offset=0\", \n \"href\": \"/credits?limit=10&offset=0\", \n \"last\": \"/credits?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }\n}" }, "credit_list_bank_account": { "request": { - "bank_account_href": "/bank_accounts/BA3LBmizwthrjehivn2ffzHU", - "uri": "/bank_accounts/BA3LBmizwthrjehivn2ffzHU/credits" + "bank_account_href": "/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V", + "uri": "/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V/credits" }, - "response": "{\n \"links\": {}, \n \"meta\": {\n \"first\": \"/bank_accounts/BA3LBmizwthrjehivn2ffzHU/credits?limit=10&offset=0\", \n \"href\": \"/bank_accounts/BA3LBmizwthrjehivn2ffzHU/credits?limit=10&offset=0\", \n \"last\": \"/bank_accounts/BA3LBmizwthrjehivn2ffzHU/credits?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 0\n }\n}" + "response": "{\n \"links\": {}, \n \"meta\": {\n \"first\": \"/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V/credits?limit=10&offset=0\", \n \"href\": \"/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V/credits?limit=10&offset=0\", \n \"last\": \"/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V/credits?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 0\n }\n}" }, "credit_show": { "request": { - "uri": "/credits/CR4wyLukORa0TXhCYtjZrfw5" + "uri": "/credits/CR5XXPwA1ckaTDSIg3593sEx" }, - "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-03-05T23:26:24.160132Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR4wyLukORa0TXhCYtjZrfw5\", \n \"id\": \"CR4wyLukORa0TXhCYtjZrfw5\", \n \"links\": {\n \"customer\": \"CU4lcDzIlpDxgcuzHkzC4QHS\", \n \"destination\": \"BA4osUR5dW1HQkqoxl65lfNe\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR858-193-7792\", \n \"updated_at\": \"2014-03-05T23:26:24.536046Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }\n}" + "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-03-06T19:23:08.771807Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR5XXPwA1ckaTDSIg3593sEx\", \n \"id\": \"CR5XXPwA1ckaTDSIg3593sEx\", \n \"links\": {\n \"customer\": \"CU5LVuaZG7gURfbA7TuMNoZa\", \n \"destination\": \"BA5OqdmH8URGBYpilMITWsNW\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR570-678-5174\", \n \"updated_at\": \"2014-03-06T19:23:09.525306Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }\n}" }, "credit_update": { "request": { @@ -330,9 +331,9 @@ "facebook.id": "1234567890" } }, - "uri": "/credits/CR4wyLukORa0TXhCYtjZrfw5" + "uri": "/credits/CR5XXPwA1ckaTDSIg3593sEx" }, - "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-03-05T23:26:24.160132Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for credit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR4wyLukORa0TXhCYtjZrfw5\", \n \"id\": \"CR4wyLukORa0TXhCYtjZrfw5\", \n \"links\": {\n \"customer\": \"CU4lcDzIlpDxgcuzHkzC4QHS\", \n \"destination\": \"BA4osUR5dW1HQkqoxl65lfNe\", \n \"order\": null\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR858-193-7792\", \n \"updated_at\": \"2014-03-05T23:26:29.272502Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }\n}" + "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-03-06T19:23:08.771807Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for credit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR5XXPwA1ckaTDSIg3593sEx\", \n \"id\": \"CR5XXPwA1ckaTDSIg3593sEx\", \n \"links\": {\n \"customer\": \"CU5LVuaZG7gURfbA7TuMNoZa\", \n \"destination\": \"BA5OqdmH8URGBYpilMITWsNW\", \n \"order\": null\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR570-678-5174\", \n \"updated_at\": \"2014-03-06T19:23:14.259690Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }\n}" }, "customer": { "address": { @@ -344,13 +345,13 @@ "state": null }, "business_name": null, - "created_at": "2014-03-05T23:25:34.408553Z", + "created_at": "2014-03-06T19:22:13.513707Z", "dob_month": null, "dob_year": null, "ein": null, "email": null, - "href": "/customers/CU3vRG5nvuT7KVvWumdwT33W", - "id": "CU3vRG5nvuT7KVvWumdwT33W", + "href": "/customers/CU4Q8w3Fcg1ed7rrx2bWcw18", + "id": "CU4Q8w3Fcg1ed7rrx2bWcw18", "links": { "destination": null, "source": null @@ -360,7 +361,7 @@ "name": null, "phone": null, "ssn_last4": null, - "updated_at": "2014-03-05T23:25:34.616603Z" + "updated_at": "2014-03-06T19:22:13.936010Z" }, "customer_create": { "request": { @@ -374,24 +375,24 @@ }, "uri": "/customers" }, - "response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-05T23:26:36.978761Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU4EeI9UPzRcOo2C3j1qFjQj\", \n \"id\": \"CU4EeI9UPzRcOo2C3j1qFjQj\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-05T23:26:37.374515Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n}" + "response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:23:21.728225Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU64R7DS6DwuXYVg9RTskFK8\", \n \"id\": \"CU64R7DS6DwuXYVg9RTskFK8\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-06T19:23:22.907102Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n}" }, "customer_delete": { "request": { - "uri": "/customers/CU4EeI9UPzRcOo2C3j1qFjQj" + "uri": "/customers/CU64R7DS6DwuXYVg9RTskFK8" } }, "customer_list": { "request": { "uri": "/customers" }, - "response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-05T23:26:30.913960Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU4xpIqZ7mf2fuLpBoXgoG7m\", \n \"id\": \"CU4xpIqZ7mf2fuLpBoXgoG7m\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-05T23:26:31.358255Z\"\n }, \n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-05T23:26:20.057078Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU4lcDzIlpDxgcuzHkzC4QHS\", \n \"id\": \"CU4lcDzIlpDxgcuzHkzC4QHS\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-05T23:26:20.493999Z\"\n }, \n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-05T23:25:34.408553Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU3vRG5nvuT7KVvWumdwT33W\", \n \"id\": \"CU3vRG5nvuT7KVvWumdwT33W\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"no-match\", \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-05T23:25:34.616603Z\"\n }, \n {\n \"address\": {\n \"city\": \"Nowhere\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"90210\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-05T23:25:33.699184Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU3EOo1JQiusqvWMhgNOKCQW\", \n \"id\": \"CU3EOo1JQiusqvWMhgNOKCQW\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"phone\": \"+16505551212\", \n \"ssn_last4\": \"xxxx\", \n \"updated_at\": \"2014-03-05T23:25:33.823693Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }, \n \"meta\": {\n \"first\": \"/customers?limit=10&offset=0\", \n \"href\": \"/customers?limit=10&offset=0\", \n \"last\": \"/customers?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 4\n }\n}" + "response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:23:15.982885Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU5YopHN07Ul5XQnILUifeQT\", \n \"id\": \"CU5YopHN07Ul5XQnILUifeQT\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-06T19:23:16.724050Z\"\n }, \n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:23:04.895882Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU5LVuaZG7gURfbA7TuMNoZa\", \n \"id\": \"CU5LVuaZG7gURfbA7TuMNoZa\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-06T19:23:05.747337Z\"\n }, \n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:22:13.513707Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU4Q8w3Fcg1ed7rrx2bWcw18\", \n \"id\": \"CU4Q8w3Fcg1ed7rrx2bWcw18\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"no-match\", \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-06T19:22:13.936010Z\"\n }, \n {\n \"address\": {\n \"city\": \"Nowhere\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"90210\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:22:12.312268Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"id\": \"CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"phone\": \"+16505551212\", \n \"ssn_last4\": \"xxxx\", \n \"updated_at\": \"2014-03-06T19:22:12.718847Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }, \n \"meta\": {\n \"first\": \"/customers?limit=10&offset=0\", \n \"href\": \"/customers?limit=10&offset=0\", \n \"last\": \"/customers?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 4\n }\n}" }, "customer_show": { "request": { - "uri": "/customers/CU4xpIqZ7mf2fuLpBoXgoG7m" + "uri": "/customers/CU5YopHN07Ul5XQnILUifeQT" }, - "response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-05T23:26:30.913960Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU4xpIqZ7mf2fuLpBoXgoG7m\", \n \"id\": \"CU4xpIqZ7mf2fuLpBoXgoG7m\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-05T23:26:31.358255Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n}" + "response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:23:15.982885Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU5YopHN07Ul5XQnILUifeQT\", \n \"id\": \"CU5YopHN07Ul5XQnILUifeQT\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-06T19:23:16.724050Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n}" }, "customer_update": { "request": { @@ -401,9 +402,9 @@ "shipping-preference": "ground" } }, - "uri": "/customers/CU4xpIqZ7mf2fuLpBoXgoG7m" + "uri": "/customers/CU5YopHN07Ul5XQnILUifeQT" }, - "response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-05T23:26:30.913960Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": \"email@newdomain.com\", \n \"href\": \"/customers/CU4xpIqZ7mf2fuLpBoXgoG7m\", \n \"id\": \"CU4xpIqZ7mf2fuLpBoXgoG7m\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {\n \"shipping-preference\": \"ground\"\n }, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-05T23:26:35.592876Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n}" + "response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:23:15.982885Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": \"email@newdomain.com\", \n \"href\": \"/customers/CU5YopHN07Ul5XQnILUifeQT\", \n \"id\": \"CU5YopHN07Ul5XQnILUifeQT\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {\n \"shipping-preference\": \"ground\"\n }, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-06T19:23:20.140160Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n}" }, "customers_uri": "/customers", "debit": { @@ -411,23 +412,23 @@ { "amount": 10000000, "appears_on_statement_as": "BAL*example.com", - "created_at": "2014-03-05T23:25:36.426257Z", + "created_at": "2014-03-06T19:22:16.279376Z", "currency": "USD", "description": null, "failure_reason": null, "failure_reason_code": null, - "href": "/debits/WD3ESkGREiEVMTVdte6B2xQZ", - "id": "WD3ESkGREiEVMTVdte6B2xQZ", + "href": "/debits/WD50VxLKoVBNdkbovF4D56xX", + "id": "WD50VxLKoVBNdkbovF4D56xX", "links": { - "customer": "CU3vRG5nvuT7KVvWumdwT33W", + "customer": "CU4Q8w3Fcg1ed7rrx2bWcw18", "dispute": null, "order": null, - "source": "CC3xcAcEO1uAKg6y8vInsuyy" + "source": "CC4SdMF0rukpL3XdVvpqoC4m" }, "meta": {}, "status": "succeeded", - "transaction_number": "W717-818-3630", - "updated_at": "2014-03-05T23:25:37.452310Z" + "transaction_number": "W465-333-0144", + "updated_at": "2014-03-06T19:22:17.695058Z" } ], "links": { @@ -443,13 +444,13 @@ "request": { "uri": "/debits" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-05T23:26:17.612909Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD4scrlw85LkeIEQqOx3AgUW\", \n \"id\": \"WD4scrlw85LkeIEQqOx3AgUW\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC4cbNzUmFqGrc1GmFpXp6fe\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W915-429-9125\", \n \"updated_at\": \"2014-03-05T23:26:18.387871Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-03-05T23:26:06.474907Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD4fFQTpXCoEa4bBG4M3DilA\", \n \"id\": \"WD4fFQTpXCoEa4bBG4M3DilA\", \n \"links\": {\n \"customer\": \"CU3EOo1JQiusqvWMhgNOKCQW\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC3ZsWHP2jMgvFrrzDzfZS0q\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W093-013-7624\", \n \"updated_at\": \"2014-03-05T23:26:07.432800Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-05T23:25:54.018666Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD3YFevpLojZZXSGnXtxLXYJ\", \n \"id\": \"WD3YFevpLojZZXSGnXtxLXYJ\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"BA3EMnkybAfEzVlbVquXFLEk\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W506-983-6658\", \n \"updated_at\": \"2014-03-05T23:25:54.401166Z\"\n }, \n {\n \"amount\": 10000000, \n \"appears_on_statement_as\": \"BAL*example.com\", \n \"created_at\": \"2014-03-05T23:25:36.426257Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD3ESkGREiEVMTVdte6B2xQZ\", \n \"id\": \"WD3ESkGREiEVMTVdte6B2xQZ\", \n \"links\": {\n \"customer\": \"CU3vRG5nvuT7KVvWumdwT33W\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC3xcAcEO1uAKg6y8vInsuyy\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W717-818-3630\", \n \"updated_at\": \"2014-03-05T23:25:37.452310Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }, \n \"meta\": {\n \"first\": \"/debits?limit=10&offset=0\", \n \"href\": \"/debits?limit=10&offset=0\", \n \"last\": \"/debits?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 4\n }\n}" + "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-06T19:23:01.594300Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD5PTwr2bwJLIyJio1pEpYBr\", \n \"id\": \"WD5PTwr2bwJLIyJio1pEpYBr\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC5Buki6e4Kg4bDVZ3OSfQ8O\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W986-715-3969\", \n \"updated_at\": \"2014-03-06T19:23:02.987552Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-03-06T19:22:49.584629Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD5Co9XwRZJg1QtvC5QeekhX\", \n \"id\": \"WD5Co9XwRZJg1QtvC5QeekhX\", \n \"links\": {\n \"customer\": \"CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC5nCSU0yFp3qxR4p6UZST7y\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W493-697-4873\", \n \"updated_at\": \"2014-03-06T19:22:50.608819Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-06T19:22:35.961050Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD5qunOPeKdCnWXIg9EHyHge\", \n \"id\": \"WD5qunOPeKdCnWXIg9EHyHge\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"BA50LpPrCTB63Ecm0wEgdOQM\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W051-293-0823\", \n \"updated_at\": \"2014-03-06T19:22:36.418154Z\"\n }, \n {\n \"amount\": 10000000, \n \"appears_on_statement_as\": \"BAL*example.com\", \n \"created_at\": \"2014-03-06T19:22:16.279376Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD50VxLKoVBNdkbovF4D56xX\", \n \"id\": \"WD50VxLKoVBNdkbovF4D56xX\", \n \"links\": {\n \"customer\": \"CU4Q8w3Fcg1ed7rrx2bWcw18\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC4SdMF0rukpL3XdVvpqoC4m\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W465-333-0144\", \n \"updated_at\": \"2014-03-06T19:22:17.695058Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }, \n \"meta\": {\n \"first\": \"/debits?limit=10&offset=0\", \n \"href\": \"/debits?limit=10&offset=0\", \n \"last\": \"/debits?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 4\n }\n}" }, "debit_show": { "request": { - "uri": "/debits/WD4scrlw85LkeIEQqOx3AgUW" + "uri": "/debits/WD5PTwr2bwJLIyJio1pEpYBr" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-05T23:26:17.612909Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD4scrlw85LkeIEQqOx3AgUW\", \n \"id\": \"WD4scrlw85LkeIEQqOx3AgUW\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC4cbNzUmFqGrc1GmFpXp6fe\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W915-429-9125\", \n \"updated_at\": \"2014-03-05T23:26:18.387871Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" + "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-06T19:23:01.594300Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD5PTwr2bwJLIyJio1pEpYBr\", \n \"id\": \"WD5PTwr2bwJLIyJio1pEpYBr\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC5Buki6e4Kg4bDVZ3OSfQ8O\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W986-715-3969\", \n \"updated_at\": \"2014-03-06T19:23:02.987552Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" }, "debit_update": { "request": { @@ -460,30 +461,30 @@ "facebook.id": "1234567890" } }, - "uri": "/debits/WD4scrlw85LkeIEQqOx3AgUW" + "uri": "/debits/WD5PTwr2bwJLIyJio1pEpYBr" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-05T23:26:17.612909Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for debit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD4scrlw85LkeIEQqOx3AgUW\", \n \"id\": \"WD4scrlw85LkeIEQqOx3AgUW\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC4cbNzUmFqGrc1GmFpXp6fe\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W915-429-9125\", \n \"updated_at\": \"2014-03-05T23:26:46.305817Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" + "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-06T19:23:01.594300Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for debit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD5PTwr2bwJLIyJio1pEpYBr\", \n \"id\": \"WD5PTwr2bwJLIyJio1pEpYBr\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC5Buki6e4Kg4bDVZ3OSfQ8O\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W986-715-3969\", \n \"updated_at\": \"2014-03-06T19:23:33.383170Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" }, "event_list": { "request": { "uri": "/events" }, - "response": "{\n \"events\": [\n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"customers\": [\n {\n \"address\": {\n \"city\": \"Nowhere\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"90210\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-05T23:25:33.699184Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU3EOo1JQiusqvWMhgNOKCQW\", \n \"id\": \"CU3EOo1JQiusqvWMhgNOKCQW\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"phone\": \"+16505551212\", \n \"ssn_last4\": \"xxxx\", \n \"updated_at\": \"2014-03-05T23:25:33.823693Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n }, \n \"href\": \"/events/EV7838c0f6a4bd11e3937f060e77eca47a\", \n \"id\": \"EV7838c0f6a4bd11e3937f060e77eca47a\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-05T23:25:33.823000Z\", \n \"type\": \"account.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxxxxxxx5555\", \n \"account_type\": \"CHECKING\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"WELLS FARGO BANK NA\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-03-05T23:25:34.017557Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA3EZthJjXI5E73dSq9j10sG\", \n \"id\": \"BA3EZthJjXI5E73dSq9j10sG\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU3EOo1JQiusqvWMhgNOKCQW\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-03-05T23:25:34.017561Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n }, \n \"href\": \"/events/EV78640b08a4bd11e3937f060e77eca47a\", \n \"id\": \"EV78640b08a4bd11e3937f060e77eca47a\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-05T23:25:34.017000Z\", \n \"type\": \"bank_account.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-05T23:25:34.408553Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU3vRG5nvuT7KVvWumdwT33W\", \n \"id\": \"CU3vRG5nvuT7KVvWumdwT33W\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"no-match\", \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-05T23:25:34.616603Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n }, \n \"href\": \"/events/EV737565a6a4bd11e3b283026ba7f8ec28\", \n \"id\": \"EV737565a6a4bd11e3b283026ba7f8ec28\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-05T23:25:34.616000Z\", \n \"type\": \"account.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"cards\": [\n {\n \"address\": {\n \"city\": \"Balo Alto\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"10023\", \n \"state\": null\n }, \n \"avs_postal_match\": \"yes\", \n \"avs_result\": \"Postal code matches, but street address not verified.\", \n \"avs_street_match\": \"yes\", \n \"brand\": \"Visa\", \n \"created_at\": \"2014-03-05T23:25:35.621284Z\", \n \"cvv\": null, \n \"cvv_match\": null, \n \"cvv_result\": null, \n \"expiration_month\": 4, \n \"expiration_year\": 2016, \n \"fingerprint\": \"979a26c05f2fb1c7ae38656312b176da2c9be1d938d442040bc79539caac6c0d\", \n \"href\": \"/cards/CC3xcAcEO1uAKg6y8vInsuyy\", \n \"id\": \"CC3xcAcEO1uAKg6y8vInsuyy\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU3vRG5nvuT7KVvWumdwT33W\"\n }, \n \"meta\": {}, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-03-05T23:25:35.621287Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n }, \n \"href\": \"/events/EV742ee1fca4bd11e395d7026ba7c1aba6\", \n \"id\": \"EV742ee1fca4bd11e395d7026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-05T23:25:35.621000Z\", \n \"type\": \"card.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"card_holds\": [\n {\n \"amount\": 10000000, \n \"created_at\": \"2014-03-05T23:25:36.340065Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3EMy06BmBJMxC9usWzYxGp\", \n \"id\": \"HL3EMy06BmBJMxC9usWzYxGp\", \n \"links\": {\n \"card\": \"CC3xcAcEO1uAKg6y8vInsuyy\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"failed\", \n \"transaction_number\": \"HL975-858-6267\", \n \"updated_at\": \"2014-03-05T23:25:36.340069Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n }, \n \"href\": \"/events/EV7835e926a4bd11e3ab2d02219cc35fd9\", \n \"id\": \"EV7835e926a4bd11e3ab2d02219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-05T23:25:36.340000Z\", \n \"type\": \"hold.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"card_holds\": [\n {\n \"amount\": 10000000, \n \"created_at\": \"2014-03-05T23:25:36.340065Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-03-12T23:25:36.858680Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3EMy06BmBJMxC9usWzYxGp\", \n \"id\": \"HL3EMy06BmBJMxC9usWzYxGp\", \n \"links\": {\n \"card\": \"CC3xcAcEO1uAKg6y8vInsuyy\", \n \"debit\": \"WD3ESkGREiEVMTVdte6B2xQZ\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL975-858-6267\", \n \"updated_at\": \"2014-03-05T23:25:37.468666Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n }, \n \"href\": \"/events/EV78938b08a4bd11e3ab2d02219cc35fd9\", \n \"id\": \"EV78938b08a4bd11e3ab2d02219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-05T23:25:37.468000Z\", \n \"type\": \"hold.updated\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"debits\": [\n {\n \"amount\": 10000000, \n \"appears_on_statement_as\": \"BAL*example.com\", \n \"created_at\": \"2014-03-05T23:25:36.426257Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD3ESkGREiEVMTVdte6B2xQZ\", \n \"id\": \"WD3ESkGREiEVMTVdte6B2xQZ\", \n \"links\": {\n \"customer\": \"CU3vRG5nvuT7KVvWumdwT33W\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC3xcAcEO1uAKg6y8vInsuyy\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W717-818-3630\", \n \"updated_at\": \"2014-03-05T23:25:37.452310Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n }, \n \"href\": \"/events/EV78944246a4bd11e3ab2d02219cc35fd9\", \n \"id\": \"EV78944246a4bd11e3ab2d02219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-05T23:25:37.452000Z\", \n \"type\": \"debit.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"card_holds\": [\n {\n \"amount\": 10000000, \n \"created_at\": \"2014-03-05T23:25:36.340065Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-03-12T23:25:36.858680Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3EMy06BmBJMxC9usWzYxGp\", \n \"id\": \"HL3EMy06BmBJMxC9usWzYxGp\", \n \"links\": {\n \"card\": \"CC3xcAcEO1uAKg6y8vInsuyy\", \n \"debit\": \"WD3ESkGREiEVMTVdte6B2xQZ\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL975-858-6267\", \n \"updated_at\": \"2014-03-05T23:25:37.468666Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n }, \n \"href\": \"/events/EV74934156a4bd11e3b09706d4d32471fd\", \n \"id\": \"EV74934156a4bd11e3b09706d4d32471fd\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-05T23:25:37.468000Z\", \n \"type\": \"hold.captured\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"debits\": [\n {\n \"amount\": 10000000, \n \"appears_on_statement_as\": \"BAL*example.com\", \n \"created_at\": \"2014-03-05T23:25:36.426257Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD3ESkGREiEVMTVdte6B2xQZ\", \n \"id\": \"WD3ESkGREiEVMTVdte6B2xQZ\", \n \"links\": {\n \"customer\": \"CU3vRG5nvuT7KVvWumdwT33W\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC3xcAcEO1uAKg6y8vInsuyy\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W717-818-3630\", \n \"updated_at\": \"2014-03-05T23:25:37.452310Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n }, \n \"href\": \"/events/EV74a75966a4bd11e3b00306d4d32471fd\", \n \"id\": \"EV74a75966a4bd11e3b00306d4d32471fd\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-05T23:25:37.452000Z\", \n \"type\": \"debit.succeeded\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"CHECKING\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-05T23:25:42.337258Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA3EMnkybAfEzVlbVquXFLEk\", \n \"id\": \"BA3EMnkybAfEzVlbVquXFLEk\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-05T23:25:42.337263Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n }, \n \"href\": \"/events/EV782f6498a4bd11e387f3026ba7f8ec28\", \n \"id\": \"EV782f6498a4bd11e387f3026ba7f8ec28\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-05T23:25:42.337000Z\", \n \"type\": \"bank_account.created\"\n }\n ], \n \"links\": {\n \"events.callbacks\": \"/events/{events.self}/callbacks\"\n }, \n \"meta\": {\n \"first\": \"/events?limit=10&offset=0\", \n \"href\": \"/events?limit=10&offset=0\", \n \"last\": \"/events?limit=10&offset=50\", \n \"limit\": 10, \n \"next\": \"/events?limit=10&offset=10\", \n \"offset\": 0, \n \"previous\": null, \n \"total\": 57\n }\n}" + "response": "{\n \"events\": [\n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"customers\": [\n {\n \"address\": {\n \"city\": \"Nowhere\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"90210\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:22:12.312268Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"id\": \"CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"phone\": \"+16505551212\", \n \"ssn_last4\": \"xxxx\", \n \"updated_at\": \"2014-03-06T19:22:12.718847Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n }, \n \"href\": \"/events/EVa26caeeea56411e3838802219cc35fd9\", \n \"id\": \"EVa26caeeea56411e3838802219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:12.718000Z\", \n \"type\": \"account.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxxxxxxx5555\", \n \"account_type\": \"CHECKING\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"WELLS FARGO BANK NA\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-03-06T19:22:12.982029Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA4WYHt1wCRMAJGm6k0BDaeR\", \n \"id\": \"BA4WYHt1wCRMAJGm6k0BDaeR\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU4Wt8xSbREzV2NWtdVAFGeR\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-03-06T19:22:12.982032Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n }, \n \"href\": \"/events/EVa2d381faa56411e3838802219cc35fd9\", \n \"id\": \"EVa2d381faa56411e3838802219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:12.982000Z\", \n \"type\": \"bank_account.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:22:13.513707Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU4Q8w3Fcg1ed7rrx2bWcw18\", \n \"id\": \"CU4Q8w3Fcg1ed7rrx2bWcw18\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"no-match\", \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-06T19:22:13.936010Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n }, \n \"href\": \"/events/EV9f0ef1c6a56411e3b231026ba7c1aba6\", \n \"id\": \"EV9f0ef1c6a56411e3b231026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:13.936000Z\", \n \"type\": \"account.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"cards\": [\n {\n \"address\": {\n \"city\": \"Balo Alto\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"10023\", \n \"state\": null\n }, \n \"avs_postal_match\": \"yes\", \n \"avs_result\": \"Postal code matches, but street address not verified.\", \n \"avs_street_match\": \"yes\", \n \"brand\": \"Visa\", \n \"created_at\": \"2014-03-06T19:22:15.395346Z\", \n \"cvv\": null, \n \"cvv_match\": null, \n \"cvv_result\": null, \n \"expiration_month\": 4, \n \"expiration_year\": 2016, \n \"fingerprint\": \"979a26c05f2fb1c7ae38656312b176da2c9be1d938d442040bc79539caac6c0d\", \n \"href\": \"/cards/CC4SdMF0rukpL3XdVvpqoC4m\", \n \"id\": \"CC4SdMF0rukpL3XdVvpqoC4m\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU4Q8w3Fcg1ed7rrx2bWcw18\"\n }, \n \"meta\": {}, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-03-06T19:22:15.395350Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n }, \n \"href\": \"/events/EVa034f640a56411e3ac79026ba7c1aba6\", \n \"id\": \"EVa034f640a56411e3ac79026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:15.395000Z\", \n \"type\": \"card.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"card_holds\": [\n {\n \"amount\": 10000000, \n \"created_at\": \"2014-03-06T19:22:16.137074Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL50LRASJbs8Kbcwqpu2TFdD\", \n \"id\": \"HL50LRASJbs8Kbcwqpu2TFdD\", \n \"links\": {\n \"card\": \"CC4SdMF0rukpL3XdVvpqoC4m\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"failed\", \n \"transaction_number\": \"HL974-747-7939\", \n \"updated_at\": \"2014-03-06T19:22:16.137078Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n }, \n \"href\": \"/events/EVa4c0c84ca56411e3a10e02219cc35fd9\", \n \"id\": \"EVa4c0c84ca56411e3a10e02219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:16.137000Z\", \n \"type\": \"hold.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"card_holds\": [\n {\n \"amount\": 10000000, \n \"created_at\": \"2014-03-06T19:22:16.137074Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-03-13T19:22:16.821934Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL50LRASJbs8Kbcwqpu2TFdD\", \n \"id\": \"HL50LRASJbs8Kbcwqpu2TFdD\", \n \"links\": {\n \"card\": \"CC4SdMF0rukpL3XdVvpqoC4m\", \n \"debit\": \"WD50VxLKoVBNdkbovF4D56xX\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL974-747-7939\", \n \"updated_at\": \"2014-03-06T19:22:17.708358Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n }, \n \"href\": \"/events/EVa5363b72a56411e3a10e02219cc35fd9\", \n \"id\": \"EVa5363b72a56411e3a10e02219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:17.708000Z\", \n \"type\": \"hold.updated\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"debits\": [\n {\n \"amount\": 10000000, \n \"appears_on_statement_as\": \"BAL*example.com\", \n \"created_at\": \"2014-03-06T19:22:16.279376Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD50VxLKoVBNdkbovF4D56xX\", \n \"id\": \"WD50VxLKoVBNdkbovF4D56xX\", \n \"links\": {\n \"customer\": \"CU4Q8w3Fcg1ed7rrx2bWcw18\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC4SdMF0rukpL3XdVvpqoC4m\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W465-333-0144\", \n \"updated_at\": \"2014-03-06T19:22:17.695058Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n }, \n \"href\": \"/events/EVa53707c8a56411e3a10e02219cc35fd9\", \n \"id\": \"EVa53707c8a56411e3a10e02219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:17.695000Z\", \n \"type\": \"debit.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"card_holds\": [\n {\n \"amount\": 10000000, \n \"created_at\": \"2014-03-06T19:22:16.137074Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-03-13T19:22:16.821934Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL50LRASJbs8Kbcwqpu2TFdD\", \n \"id\": \"HL50LRASJbs8Kbcwqpu2TFdD\", \n \"links\": {\n \"card\": \"CC4SdMF0rukpL3XdVvpqoC4m\", \n \"debit\": \"WD50VxLKoVBNdkbovF4D56xX\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL974-747-7939\", \n \"updated_at\": \"2014-03-06T19:22:17.708358Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n }, \n \"href\": \"/events/EVa0b420d2a56411e3b09706d4d32471fd\", \n \"id\": \"EVa0b420d2a56411e3b09706d4d32471fd\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:17.708000Z\", \n \"type\": \"hold.captured\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"debits\": [\n {\n \"amount\": 10000000, \n \"appears_on_statement_as\": \"BAL*example.com\", \n \"created_at\": \"2014-03-06T19:22:16.279376Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD50VxLKoVBNdkbovF4D56xX\", \n \"id\": \"WD50VxLKoVBNdkbovF4D56xX\", \n \"links\": {\n \"customer\": \"CU4Q8w3Fcg1ed7rrx2bWcw18\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC4SdMF0rukpL3XdVvpqoC4m\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W465-333-0144\", \n \"updated_at\": \"2014-03-06T19:22:17.695058Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n }, \n \"href\": \"/events/EVa0ce9b24a56411e3aae506d4d32471fd\", \n \"id\": \"EVa0ce9b24a56411e3aae506d4d32471fd\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:17.695000Z\", \n \"type\": \"debit.succeeded\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"CHECKING\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-06T19:22:22.966278Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM\", \n \"id\": \"BA50LpPrCTB63Ecm0wEgdOQM\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-06T19:22:22.966284Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n }, \n \"href\": \"/events/EVa4bd5a9aa56411e38b3b026ba7f8ec28\", \n \"id\": \"EVa4bd5a9aa56411e38b3b026ba7f8ec28\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:22.966000Z\", \n \"type\": \"bank_account.created\"\n }\n ], \n \"links\": {\n \"events.callbacks\": \"/events/{events.self}/callbacks\"\n }, \n \"meta\": {\n \"first\": \"/events?limit=10&offset=0\", \n \"href\": \"/events?limit=10&offset=0\", \n \"last\": \"/events?limit=10&offset=50\", \n \"limit\": 10, \n \"next\": \"/events?limit=10&offset=10\", \n \"offset\": 0, \n \"previous\": null, \n \"total\": 57\n }\n}" }, "event_show": { "request": { - "uri": "/events/EV7838c0f6a4bd11e3937f060e77eca47a" + "uri": "/events/EVa26caeeea56411e3838802219cc35fd9" }, - "response": "{\n \"events\": [\n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"customers\": [\n {\n \"address\": {\n \"city\": \"Nowhere\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"90210\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-05T23:25:33.699184Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU3EOo1JQiusqvWMhgNOKCQW\", \n \"id\": \"CU3EOo1JQiusqvWMhgNOKCQW\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"phone\": \"+16505551212\", \n \"ssn_last4\": \"xxxx\", \n \"updated_at\": \"2014-03-05T23:25:33.823693Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n }, \n \"href\": \"/events/EV7838c0f6a4bd11e3937f060e77eca47a\", \n \"id\": \"EV7838c0f6a4bd11e3937f060e77eca47a\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-05T23:25:33.823000Z\", \n \"type\": \"account.created\"\n }\n ], \n \"links\": {\n \"events.callbacks\": \"/events/{events.self}/callbacks\"\n }\n}" + "response": "{\n \"events\": [\n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"customers\": [\n {\n \"address\": {\n \"city\": \"Nowhere\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"90210\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:22:12.312268Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"id\": \"CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"phone\": \"+16505551212\", \n \"ssn_last4\": \"xxxx\", \n \"updated_at\": \"2014-03-06T19:22:12.718847Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n }, \n \"href\": \"/events/EVa26caeeea56411e3838802219cc35fd9\", \n \"id\": \"EVa26caeeea56411e3838802219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:12.718000Z\", \n \"type\": \"account.created\"\n }\n ], \n \"links\": {\n \"events.callbacks\": \"/events/{events.self}/callbacks\"\n }\n}" }, "marketplace": { - "created_at": "2014-03-05T23:25:33.690153Z", + "created_at": "2014-03-06T19:22:12.289111Z", "domain_url": "example.com", - "href": "/marketplaces/TEST-MP3ENDDgcR92WprrIPBftRHk", - "id": "TEST-MP3ENDDgcR92WprrIPBftRHk", + "href": "/marketplaces/TEST-MP4WroYryqRegCZd9nhFMgyJ", + "id": "TEST-MP4WroYryqRegCZd9nhFMgyJ", "in_escrow": 0, "links": { - "owner_customer": "CU3EOo1JQiusqvWMhgNOKCQW" + "owner_customer": "CU4Wt8xSbREzV2NWtdVAFGeR" }, "meta": {}, "name": "Test Marketplace", @@ -491,31 +492,31 @@ "support_email_address": "support@example.com", "support_phone_number": "+16505551234", "unsettled_fees": 0, - "updated_at": "2014-03-05T23:25:34.055599Z" + "updated_at": "2014-03-06T19:22:13.041828Z" }, - "marketplace_id": "TEST-MP3ENDDgcR92WprrIPBftRHk", - "marketplace_uri": "/marketplaces/TEST-MP3ENDDgcR92WprrIPBftRHk", + "marketplace_id": "TEST-MP4WroYryqRegCZd9nhFMgyJ", + "marketplace_uri": "/marketplaces/TEST-MP4WroYryqRegCZd9nhFMgyJ", "order_create": { "request": { - "customer_href": "/customers/CU4EeI9UPzRcOo2C3j1qFjQj", + "customer_href": "/customers/CU64R7DS6DwuXYVg9RTskFK8", "payload": { "description": "Order #12341234" }, - "uri": "/customers/CU4EeI9UPzRcOo2C3j1qFjQj/orders" + "uri": "/customers/CU64R7DS6DwuXYVg9RTskFK8/orders" }, - "response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-03-05T23:26:52.111548Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR520nGy59wfJ4mM7HR6TYrn\", \n \"id\": \"OR520nGy59wfJ4mM7HR6TYrn\", \n \"links\": {\n \"merchant\": \"CU4EeI9UPzRcOo2C3j1qFjQj\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-05T23:26:52.111551Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-03-06T19:23:39.207291Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR6wcEVkOymvs4PairiGEcIx\", \n \"id\": \"OR6wcEVkOymvs4PairiGEcIx\", \n \"links\": {\n \"merchant\": \"CU64R7DS6DwuXYVg9RTskFK8\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-06T19:23:39.207294Z\"\n }\n ]\n}" }, "order_list": { "request": { "uri": "/orders" }, - "response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"meta\": {\n \"first\": \"/orders?limit=10&offset=0\", \n \"href\": \"/orders?limit=10&offset=0\", \n \"last\": \"/orders?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-03-05T23:26:52.111548Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR520nGy59wfJ4mM7HR6TYrn\", \n \"id\": \"OR520nGy59wfJ4mM7HR6TYrn\", \n \"links\": {\n \"merchant\": \"CU4EeI9UPzRcOo2C3j1qFjQj\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-05T23:26:52.111551Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"meta\": {\n \"first\": \"/orders?limit=10&offset=0\", \n \"href\": \"/orders?limit=10&offset=0\", \n \"last\": \"/orders?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-03-06T19:23:39.207291Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR6wcEVkOymvs4PairiGEcIx\", \n \"id\": \"OR6wcEVkOymvs4PairiGEcIx\", \n \"links\": {\n \"merchant\": \"CU64R7DS6DwuXYVg9RTskFK8\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-06T19:23:39.207294Z\"\n }\n ]\n}" }, "order_show": { "request": { - "uri": "/orders/OR520nGy59wfJ4mM7HR6TYrn" + "uri": "/orders/OR6wcEVkOymvs4PairiGEcIx" }, - "response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-03-05T23:26:52.111548Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR520nGy59wfJ4mM7HR6TYrn\", \n \"id\": \"OR520nGy59wfJ4mM7HR6TYrn\", \n \"links\": {\n \"merchant\": \"CU4EeI9UPzRcOo2C3j1qFjQj\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-05T23:26:52.111551Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-03-06T19:23:39.207291Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR6wcEVkOymvs4PairiGEcIx\", \n \"id\": \"OR6wcEVkOymvs4PairiGEcIx\", \n \"links\": {\n \"merchant\": \"CU64R7DS6DwuXYVg9RTskFK8\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-06T19:23:39.207294Z\"\n }\n ]\n}" }, "order_update": { "request": { @@ -526,13 +527,13 @@ "product.id": "1234567890" } }, - "uri": "/orders/OR520nGy59wfJ4mM7HR6TYrn" + "uri": "/orders/OR6wcEVkOymvs4PairiGEcIx" }, - "response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-03-05T23:26:52.111548Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"New description for order\", \n \"href\": \"/orders/OR520nGy59wfJ4mM7HR6TYrn\", \n \"id\": \"OR520nGy59wfJ4mM7HR6TYrn\", \n \"links\": {\n \"merchant\": \"CU4EeI9UPzRcOo2C3j1qFjQj\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"product.id\": \"1234567890\"\n }, \n \"updated_at\": \"2014-03-05T23:26:55.456480Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-03-06T19:23:39.207291Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"New description for order\", \n \"href\": \"/orders/OR6wcEVkOymvs4PairiGEcIx\", \n \"id\": \"OR6wcEVkOymvs4PairiGEcIx\", \n \"links\": {\n \"merchant\": \"CU64R7DS6DwuXYVg9RTskFK8\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"product.id\": \"1234567890\"\n }, \n \"updated_at\": \"2014-03-06T19:23:42.673919Z\"\n }\n ]\n}" }, "refund_create": { "request": { - "debit_href": "/debits/WD57kmfV9Cgc0MiZkHOmFU1z", + "debit_href": "/debits/WD6BKYhbRzlRhfKSE1DcpqS5", "payload": { "amount": 3000, "description": "Refund for Order #1111", @@ -542,21 +543,21 @@ "user.refund_reason": "not happy with product" } }, - "uri": "/debits/WD57kmfV9Cgc0MiZkHOmFU1z/refunds" + "uri": "/debits/WD6BKYhbRzlRhfKSE1DcpqS5/refunds" }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-05T23:26:58.437383Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF5c71x7GALUPPdyexP4Weca\", \n \"id\": \"RF5c71x7GALUPPdyexP4Weca\", \n \"links\": {\n \"debit\": \"WD57kmfV9Cgc0MiZkHOmFU1z\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF145-678-0145\", \n \"updated_at\": \"2014-03-05T23:26:58.984962Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:46.176138Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF6HsnqferSuES9VZEWrthG2\", \n \"id\": \"RF6HsnqferSuES9VZEWrthG2\", \n \"links\": {\n \"debit\": \"WD6BKYhbRzlRhfKSE1DcpqS5\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF348-549-7723\", \n \"updated_at\": \"2014-03-06T19:23:48.234584Z\"\n }\n ]\n}" }, "refund_list": { "request": { "uri": "/refunds" }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"meta\": {\n \"first\": \"/refunds?limit=10&offset=0\", \n \"href\": \"/refunds?limit=10&offset=0\", \n \"last\": \"/refunds?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-05T23:26:58.437383Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF5c71x7GALUPPdyexP4Weca\", \n \"id\": \"RF5c71x7GALUPPdyexP4Weca\", \n \"links\": {\n \"debit\": \"WD57kmfV9Cgc0MiZkHOmFU1z\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF145-678-0145\", \n \"updated_at\": \"2014-03-05T23:26:58.984962Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"meta\": {\n \"first\": \"/refunds?limit=10&offset=0\", \n \"href\": \"/refunds?limit=10&offset=0\", \n \"last\": \"/refunds?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:46.176138Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF6HsnqferSuES9VZEWrthG2\", \n \"id\": \"RF6HsnqferSuES9VZEWrthG2\", \n \"links\": {\n \"debit\": \"WD6BKYhbRzlRhfKSE1DcpqS5\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF348-549-7723\", \n \"updated_at\": \"2014-03-06T19:23:48.234584Z\"\n }\n ]\n}" }, "refund_show": { "request": { - "uri": "/refunds/RF5c71x7GALUPPdyexP4Weca" + "uri": "/refunds/RF6HsnqferSuES9VZEWrthG2" }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-05T23:26:58.437383Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF5c71x7GALUPPdyexP4Weca\", \n \"id\": \"RF5c71x7GALUPPdyexP4Weca\", \n \"links\": {\n \"debit\": \"WD57kmfV9Cgc0MiZkHOmFU1z\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF145-678-0145\", \n \"updated_at\": \"2014-03-05T23:26:58.984962Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:46.176138Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF6HsnqferSuES9VZEWrthG2\", \n \"id\": \"RF6HsnqferSuES9VZEWrthG2\", \n \"links\": {\n \"debit\": \"WD6BKYhbRzlRhfKSE1DcpqS5\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF348-549-7723\", \n \"updated_at\": \"2014-03-06T19:23:48.234584Z\"\n }\n ]\n}" }, "refund_update": { "request": { @@ -568,13 +569,13 @@ "user.refund.count": "3" } }, - "uri": "/refunds/RF5c71x7GALUPPdyexP4Weca" + "uri": "/refunds/RF6HsnqferSuES9VZEWrthG2" }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-05T23:26:58.437383Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"href\": \"/refunds/RF5c71x7GALUPPdyexP4Weca\", \n \"id\": \"RF5c71x7GALUPPdyexP4Weca\", \n \"links\": {\n \"debit\": \"WD57kmfV9Cgc0MiZkHOmFU1z\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"refund.reason\": \"user not happy with product\", \n \"user.notes\": \"very polite on the phone\", \n \"user.refund.count\": \"3\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF145-678-0145\", \n \"updated_at\": \"2014-03-05T23:27:03.196577Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:46.176138Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"href\": \"/refunds/RF6HsnqferSuES9VZEWrthG2\", \n \"id\": \"RF6HsnqferSuES9VZEWrthG2\", \n \"links\": {\n \"debit\": \"WD6BKYhbRzlRhfKSE1DcpqS5\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"refund.reason\": \"user not happy with product\", \n \"user.notes\": \"very polite on the phone\", \n \"user.refund.count\": \"3\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF348-549-7723\", \n \"updated_at\": \"2014-03-06T19:23:53.123358Z\"\n }\n ]\n}" }, "reversal_create": { "request": { - "credit_href": "/credits/CR5j27kuJPX6voI8aokUWsEG", + "credit_href": "/credits/CR6NpuEtezCdLTYngDrSEODv", "payload": { "amount": 3000, "description": "Reversal for Order #1111", @@ -584,21 +585,21 @@ "user.refund_reason": "not happy with product" } }, - "uri": "/credits/CR5j27kuJPX6voI8aokUWsEG/reversals" + "uri": "/credits/CR6NpuEtezCdLTYngDrSEODv/reversals" }, - "response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-05T23:27:05.479351Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV5h1LgxTlH1OtHAZEfQbvbH\", \n \"id\": \"RV5h1LgxTlH1OtHAZEfQbvbH\", \n \"links\": {\n \"credit\": \"CR5j27kuJPX6voI8aokUWsEG\", \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV541-000-1984\", \n \"updated_at\": \"2014-03-05T23:27:06.287586Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:55.596399Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"id\": \"RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"links\": {\n \"credit\": \"CR6NpuEtezCdLTYngDrSEODv\", \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV542-861-3670\", \n \"updated_at\": \"2014-03-06T19:23:56.470321Z\"\n }\n ]\n}" }, "reversal_list": { "request": { "uri": "/reversals" }, - "response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"meta\": {\n \"first\": \"/reversals?limit=10&offset=0\", \n \"href\": \"/reversals?limit=10&offset=0\", \n \"last\": \"/reversals?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-05T23:27:05.479351Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV5h1LgxTlH1OtHAZEfQbvbH\", \n \"id\": \"RV5h1LgxTlH1OtHAZEfQbvbH\", \n \"links\": {\n \"credit\": \"CR5j27kuJPX6voI8aokUWsEG\", \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV541-000-1984\", \n \"updated_at\": \"2014-03-05T23:27:06.287586Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"meta\": {\n \"first\": \"/reversals?limit=10&offset=0\", \n \"href\": \"/reversals?limit=10&offset=0\", \n \"last\": \"/reversals?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:55.596399Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"id\": \"RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"links\": {\n \"credit\": \"CR6NpuEtezCdLTYngDrSEODv\", \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV542-861-3670\", \n \"updated_at\": \"2014-03-06T19:23:56.470321Z\"\n }\n ]\n}" }, "reversal_show": { "request": { - "uri": "/reversals/RV5h1LgxTlH1OtHAZEfQbvbH" + "uri": "/reversals/RV6OCxJ1UhkG84is6H9PHjkZ" }, - "response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-05T23:27:05.479351Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV5h1LgxTlH1OtHAZEfQbvbH\", \n \"id\": \"RV5h1LgxTlH1OtHAZEfQbvbH\", \n \"links\": {\n \"credit\": \"CR5j27kuJPX6voI8aokUWsEG\", \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV541-000-1984\", \n \"updated_at\": \"2014-03-05T23:27:06.287586Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:55.596399Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"id\": \"RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"links\": {\n \"credit\": \"CR6NpuEtezCdLTYngDrSEODv\", \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV542-861-3670\", \n \"updated_at\": \"2014-03-06T19:23:56.470321Z\"\n }\n ]\n}" }, "reversal_update": { "request": { @@ -610,9 +611,9 @@ "user.satisfaction": "6" } }, - "uri": "/reversals/RV5h1LgxTlH1OtHAZEfQbvbH" + "uri": "/reversals/RV6OCxJ1UhkG84is6H9PHjkZ" }, - "response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-05T23:27:05.479351Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV5h1LgxTlH1OtHAZEfQbvbH\", \n \"id\": \"RV5h1LgxTlH1OtHAZEfQbvbH\", \n \"links\": {\n \"credit\": \"CR5j27kuJPX6voI8aokUWsEG\", \n \"order\": null\n }, \n \"meta\": {\n \"refund.reason\": \"user not happy with product\", \n \"user.notes\": \"very polite on the phone\", \n \"user.satisfaction\": \"6\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV541-000-1984\", \n \"updated_at\": \"2014-03-05T23:27:10.206389Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:55.596399Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"id\": \"RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"links\": {\n \"credit\": \"CR6NpuEtezCdLTYngDrSEODv\", \n \"order\": null\n }, \n \"meta\": {\n \"refund.reason\": \"user not happy with product\", \n \"user.notes\": \"very polite on the phone\", \n \"user.satisfaction\": \"6\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV542-861-3670\", \n \"updated_at\": \"2014-03-06T19:24:00.271458Z\"\n }\n ]\n}" }, - "secret": "ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB" + "secret": "ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul" } \ No newline at end of file diff --git a/scenarios/_mj/api_key_create/executable.py b/scenarios/_mj/api_key_create/executable.py index 3db3248..4c08c79 100644 --- a/scenarios/_mj/api_key_create/executable.py +++ b/scenarios/_mj/api_key_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') api_key = balanced.APIKey() api_key.save() \ No newline at end of file diff --git a/scenarios/_mj/api_key_create/python.mako b/scenarios/_mj/api_key_create/python.mako index 094cb24..6327f51 100644 --- a/scenarios/_mj/api_key_create/python.mako +++ b/scenarios/_mj/api_key_create/python.mako @@ -4,7 +4,7 @@ balanced.APIKey % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') api_key = balanced.APIKey() api_key.save() diff --git a/scenarios/api_key_create/executable.py b/scenarios/api_key_create/executable.py index cea2195..4695624 100644 --- a/scenarios/api_key_create/executable.py +++ b/scenarios/api_key_create/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') api_key = balanced.APIKey().save() \ No newline at end of file diff --git a/scenarios/api_key_create/python.mako b/scenarios/api_key_create/python.mako index c67de95..dda0985 100644 --- a/scenarios/api_key_create/python.mako +++ b/scenarios/api_key_create/python.mako @@ -3,7 +3,7 @@ balanced.APIKey() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') api_key = balanced.APIKey().save() % endif \ No newline at end of file diff --git a/scenarios/api_key_delete/executable.py b/scenarios/api_key_delete/executable.py index 96a391b..a7cd096 100644 --- a/scenarios/api_key_delete/executable.py +++ b/scenarios/api_key_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -key = balanced.APIKey.fetch('/api_keys/AK3zUFsQ8aJ3aae9ZylavXLp') +key = balanced.APIKey.fetch('/api_keys/AK4Vt1mJyCtjdSiGgqAebarR') key.delete() \ No newline at end of file diff --git a/scenarios/api_key_delete/python.mako b/scenarios/api_key_delete/python.mako index 35372fc..ed1f4b2 100644 --- a/scenarios/api_key_delete/python.mako +++ b/scenarios/api_key_delete/python.mako @@ -3,8 +3,8 @@ balanced.APIKey().delete() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -key = balanced.APIKey.fetch('/api_keys/AK3zUFsQ8aJ3aae9ZylavXLp') +key = balanced.APIKey.fetch('/api_keys/AK4Vt1mJyCtjdSiGgqAebarR') key.delete() % endif \ No newline at end of file diff --git a/scenarios/api_key_list/executable.py b/scenarios/api_key_list/executable.py index 7d852cb..c7a483a 100644 --- a/scenarios/api_key_list/executable.py +++ b/scenarios/api_key_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') keys = balanced.APIKey.query \ No newline at end of file diff --git a/scenarios/api_key_list/python.mako b/scenarios/api_key_list/python.mako index e5ffbee..6ef83db 100644 --- a/scenarios/api_key_list/python.mako +++ b/scenarios/api_key_list/python.mako @@ -4,7 +4,7 @@ balanced.APIKey.query % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') keys = balanced.APIKey.query % endif \ No newline at end of file diff --git a/scenarios/api_key_show/executable.py b/scenarios/api_key_show/executable.py index 38bd0ce..dad1fe4 100644 --- a/scenarios/api_key_show/executable.py +++ b/scenarios/api_key_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -key = balanced.APIKey.fetch('/api_keys/AK3zUFsQ8aJ3aae9ZylavXLp') \ No newline at end of file +key = balanced.APIKey.fetch('/api_keys/AK4Vt1mJyCtjdSiGgqAebarR') \ No newline at end of file diff --git a/scenarios/api_key_show/python.mako b/scenarios/api_key_show/python.mako index 61e7af9..46d5883 100644 --- a/scenarios/api_key_show/python.mako +++ b/scenarios/api_key_show/python.mako @@ -4,7 +4,7 @@ balanced.APIKey.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -key = balanced.APIKey.fetch('/api_keys/AK3zUFsQ8aJ3aae9ZylavXLp') +key = balanced.APIKey.fetch('/api_keys/AK4Vt1mJyCtjdSiGgqAebarR') % endif \ No newline at end of file diff --git a/scenarios/bank_account_associate_to_customer/executable.py b/scenarios/bank_account_associate_to_customer/executable.py index 18f29d2..8134a37 100644 --- a/scenarios/bank_account_associate_to_customer/executable.py +++ b/scenarios/bank_account_associate_to_customer/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -card = balanced.Card.fetch('/bank_accounts/BA4JCiiAb4alhWMlZSv9POAU') -card.associate_to_customer('/customers/CU4EeI9UPzRcOo2C3j1qFjQj') \ No newline at end of file +card = balanced.Card.fetch('/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m') +card.associate_to_customer('/customers/CU64R7DS6DwuXYVg9RTskFK8') \ No newline at end of file diff --git a/scenarios/bank_account_associate_to_customer/python.mako b/scenarios/bank_account_associate_to_customer/python.mako index f4501e5..638de52 100644 --- a/scenarios/bank_account_associate_to_customer/python.mako +++ b/scenarios/bank_account_associate_to_customer/python.mako @@ -3,8 +3,8 @@ balanced.Card().associate_to_customer() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -card = balanced.Card.fetch('/bank_accounts/BA4JCiiAb4alhWMlZSv9POAU') -card.associate_to_customer('/customers/CU4EeI9UPzRcOo2C3j1qFjQj') +card = balanced.Card.fetch('/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m') +card.associate_to_customer('/customers/CU64R7DS6DwuXYVg9RTskFK8') % endif \ No newline at end of file diff --git a/scenarios/bank_account_create/executable.py b/scenarios/bank_account_create/executable.py index c2a7643..7aeaddf 100644 --- a/scenarios/bank_account_create/executable.py +++ b/scenarios/bank_account_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') bank_account = balanced.BankAccount( routing_number='121000358', diff --git a/scenarios/bank_account_create/python.mako b/scenarios/bank_account_create/python.mako index 153e23d..4d21e90 100644 --- a/scenarios/bank_account_create/python.mako +++ b/scenarios/bank_account_create/python.mako @@ -3,7 +3,7 @@ balanced.BankAccount().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') bank_account = balanced.BankAccount( routing_number='121000358', diff --git a/scenarios/bank_account_credit/executable.py b/scenarios/bank_account_credit/executable.py index 77dd332..4d54390 100644 --- a/scenarios/bank_account_credit/executable.py +++ b/scenarios/bank_account_credit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA4JCiiAb4alhWMlZSv9POAU') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m') bank_account.credit( amount=5000 ) \ No newline at end of file diff --git a/scenarios/bank_account_credit/python.mako b/scenarios/bank_account_credit/python.mako index 3e2b354..49ff472 100644 --- a/scenarios/bank_account_credit/python.mako +++ b/scenarios/bank_account_credit/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount().credit() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA4JCiiAb4alhWMlZSv9POAU') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m') bank_account.credit( amount=5000 ) diff --git a/scenarios/bank_account_debit/executable.py b/scenarios/bank_account_debit/executable.py index b648300..199a2ad 100644 --- a/scenarios/bank_account_debit/executable.py +++ b/scenarios/bank_account_debit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3EMnkybAfEzVlbVquXFLEk') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM') bank_account.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/bank_account_debit/python.mako b/scenarios/bank_account_debit/python.mako index d6c4b51..ded6b98 100644 --- a/scenarios/bank_account_debit/python.mako +++ b/scenarios/bank_account_debit/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3EMnkybAfEzVlbVquXFLEk') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM') bank_account.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/bank_account_delete/executable.py b/scenarios/bank_account_delete/executable.py index 76e333a..f4f50d8 100644 --- a/scenarios/bank_account_delete/executable.py +++ b/scenarios/bank_account_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3LBmizwthrjehivn2ffzHU') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V') bank_account.delete() \ No newline at end of file diff --git a/scenarios/bank_account_delete/python.mako b/scenarios/bank_account_delete/python.mako index 9b88bf7..a1834f9 100644 --- a/scenarios/bank_account_delete/python.mako +++ b/scenarios/bank_account_delete/python.mako @@ -3,8 +3,8 @@ balanced.BankAccount().delete() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3LBmizwthrjehivn2ffzHU') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V') bank_account.delete() % endif \ No newline at end of file diff --git a/scenarios/bank_account_list/executable.py b/scenarios/bank_account_list/executable.py index 8de1173..afd7b2e 100644 --- a/scenarios/bank_account_list/executable.py +++ b/scenarios/bank_account_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') bank_accounts = balanced.BankAccount.query \ No newline at end of file diff --git a/scenarios/bank_account_list/python.mako b/scenarios/bank_account_list/python.mako index a72606d..27f7f64 100644 --- a/scenarios/bank_account_list/python.mako +++ b/scenarios/bank_account_list/python.mako @@ -4,7 +4,7 @@ balanced.BankAccount.query % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') bank_accounts = balanced.BankAccount.query % endif \ No newline at end of file diff --git a/scenarios/bank_account_show/executable.py b/scenarios/bank_account_show/executable.py index 6a6248a..458323c 100644 --- a/scenarios/bank_account_show/executable.py +++ b/scenarios/bank_account_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3LBmizwthrjehivn2ffzHU') \ No newline at end of file +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V') \ No newline at end of file diff --git a/scenarios/bank_account_show/python.mako b/scenarios/bank_account_show/python.mako index b9de60e..8882e1c 100644 --- a/scenarios/bank_account_show/python.mako +++ b/scenarios/bank_account_show/python.mako @@ -4,7 +4,7 @@ balanced.BankAccount.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3LBmizwthrjehivn2ffzHU') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V') % endif \ No newline at end of file diff --git a/scenarios/bank_account_update/executable.py b/scenarios/bank_account_update/executable.py index 4724b04..31316ba 100644 --- a/scenarios/bank_account_update/executable.py +++ b/scenarios/bank_account_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3LBmizwthrjehivn2ffzHU') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V') bank_account.meta = { 'twitter.id'='1234987650', 'facebook.user_id'='0192837465', diff --git a/scenarios/bank_account_update/python.mako b/scenarios/bank_account_update/python.mako index 70a5e7b..72de58b 100644 --- a/scenarios/bank_account_update/python.mako +++ b/scenarios/bank_account_update/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3LBmizwthrjehivn2ffzHU') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V') bank_account.meta = { 'twitter.id'='1234987650', 'facebook.user_id'='0192837465', diff --git a/scenarios/bank_account_verification_create/executable.py b/scenarios/bank_account_verification_create/executable.py index b0ca1dc..6d4cfcf 100644 --- a/scenarios/bank_account_verification_create/executable.py +++ b/scenarios/bank_account_verification_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3EMnkybAfEzVlbVquXFLEk') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM') verification = bank_account.verify() \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/python.mako b/scenarios/bank_account_verification_create/python.mako index 6633dee..61a9e9a 100644 --- a/scenarios/bank_account_verification_create/python.mako +++ b/scenarios/bank_account_verification_create/python.mako @@ -3,8 +3,8 @@ balanced.BankAccountVerification().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3EMnkybAfEzVlbVquXFLEk') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM') verification = bank_account.verify() % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/executable.py b/scenarios/bank_account_verification_show/executable.py index 2b069b6..a269b2b 100644 --- a/scenarios/bank_account_verification_show/executable.py +++ b/scenarios/bank_account_verification_show/executable.py @@ -1,4 +1,4 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ3NheXIi1UxUiNtkaSo1ZI5') \ No newline at end of file +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ5alC0fajkuBOvOU7lVT7QJ') \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/python.mako b/scenarios/bank_account_verification_show/python.mako index b340cb6..bbf617a 100644 --- a/scenarios/bank_account_verification_show/python.mako +++ b/scenarios/bank_account_verification_show/python.mako @@ -4,6 +4,6 @@ balanced.BankAccountVerification.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ3NheXIi1UxUiNtkaSo1ZI5') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ5alC0fajkuBOvOU7lVT7QJ') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/executable.py b/scenarios/bank_account_verification_update/executable.py index 8d1c34c..e744cc5 100644 --- a/scenarios/bank_account_verification_update/executable.py +++ b/scenarios/bank_account_verification_update/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ3NheXIi1UxUiNtkaSo1ZI5') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ5alC0fajkuBOvOU7lVT7QJ') verification.confirm(amount_1=1, amount_2=1) \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/python.mako b/scenarios/bank_account_verification_update/python.mako index af17d01..aca8653 100644 --- a/scenarios/bank_account_verification_update/python.mako +++ b/scenarios/bank_account_verification_update/python.mako @@ -3,8 +3,8 @@ balanced.BankAccountVerification().confirm() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ3NheXIi1UxUiNtkaSo1ZI5') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ5alC0fajkuBOvOU7lVT7QJ') verification.confirm(amount_1=1, amount_2=1) % endif \ No newline at end of file diff --git a/scenarios/callback_create/executable.py b/scenarios/callback_create/executable.py index 96fd965..1743025 100644 --- a/scenarios/callback_create/executable.py +++ b/scenarios/callback_create/executable.py @@ -1,7 +1,8 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') callback = balanced.Callback( - url='http://www.example.com/callback' + url='http://www.example.com/callback', + method='post' ).save() \ No newline at end of file diff --git a/scenarios/callback_create/python.mako b/scenarios/callback_create/python.mako index fe00484..4b7bb89 100644 --- a/scenarios/callback_create/python.mako +++ b/scenarios/callback_create/python.mako @@ -3,9 +3,10 @@ balanced.Callback() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') callback = balanced.Callback( - url='http://www.example.com/callback' + url='http://www.example.com/callback', + method='post' ).save() % endif \ No newline at end of file diff --git a/scenarios/callback_delete/executable.py b/scenarios/callback_delete/executable.py index 5c2a88d..901ddc0 100644 --- a/scenarios/callback_delete/executable.py +++ b/scenarios/callback_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -callback = balanced.Callback.fetch('/callbacks/CB40OMtABWHqkGcBEYpWVnAd') +callback = balanced.Callback.fetch('/callbacks/CB5pnz4XnaDpRFGlNMb6u50R') callback.unstore() \ No newline at end of file diff --git a/scenarios/callback_delete/python.mako b/scenarios/callback_delete/python.mako index 6008fc7..242d49d 100644 --- a/scenarios/callback_delete/python.mako +++ b/scenarios/callback_delete/python.mako @@ -3,8 +3,8 @@ balanced.Callback().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -callback = balanced.Callback.fetch('/callbacks/CB40OMtABWHqkGcBEYpWVnAd') +callback = balanced.Callback.fetch('/callbacks/CB5pnz4XnaDpRFGlNMb6u50R') callback.unstore() % endif \ No newline at end of file diff --git a/scenarios/callback_list/executable.py b/scenarios/callback_list/executable.py index 013c017..2d822c1 100644 --- a/scenarios/callback_list/executable.py +++ b/scenarios/callback_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') callbacks = balanced.Callback.query \ No newline at end of file diff --git a/scenarios/callback_list/python.mako b/scenarios/callback_list/python.mako index 2bb74b8..d2e8cf4 100644 --- a/scenarios/callback_list/python.mako +++ b/scenarios/callback_list/python.mako @@ -4,7 +4,7 @@ balanced.Callback.query % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') callbacks = balanced.Callback.query % endif \ No newline at end of file diff --git a/scenarios/callback_show/executable.py b/scenarios/callback_show/executable.py index 4f3586c..076d973 100644 --- a/scenarios/callback_show/executable.py +++ b/scenarios/callback_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -callback = balanced.Callback.fetch('/callbacks/CB40OMtABWHqkGcBEYpWVnAd') \ No newline at end of file +callback = balanced.Callback.fetch('/callbacks/CB5pnz4XnaDpRFGlNMb6u50R') \ No newline at end of file diff --git a/scenarios/callback_show/python.mako b/scenarios/callback_show/python.mako index 450dafe..b974f10 100644 --- a/scenarios/callback_show/python.mako +++ b/scenarios/callback_show/python.mako @@ -4,7 +4,7 @@ balanced.Callback.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -callback = balanced.Callback.fetch('/callbacks/CB40OMtABWHqkGcBEYpWVnAd') +callback = balanced.Callback.fetch('/callbacks/CB5pnz4XnaDpRFGlNMb6u50R') % endif \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/executable.py b/scenarios/card_associate_to_customer/executable.py index 32796f4..a71703a 100644 --- a/scenarios/card_associate_to_customer/executable.py +++ b/scenarios/card_associate_to_customer/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -card = balanced.Card.fetch('/cards/CC4GOYzOKyWXBzJMVTs00aNk') -card.associate_to_customer('/customers/CU4EeI9UPzRcOo2C3j1qFjQj') \ No newline at end of file +card = balanced.Card.fetch('/cards/CC68IoCVpoFlkugB7xt52p8C') +card.associate_to_customer('/customers/CU64R7DS6DwuXYVg9RTskFK8') \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/python.mako b/scenarios/card_associate_to_customer/python.mako index b29c5ed..ecabb47 100644 --- a/scenarios/card_associate_to_customer/python.mako +++ b/scenarios/card_associate_to_customer/python.mako @@ -3,8 +3,8 @@ balanced.Card().associate_to_customer() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -card = balanced.Card.fetch('/cards/CC4GOYzOKyWXBzJMVTs00aNk') -card.associate_to_customer('/customers/CU4EeI9UPzRcOo2C3j1qFjQj') +card = balanced.Card.fetch('/cards/CC68IoCVpoFlkugB7xt52p8C') +card.associate_to_customer('/customers/CU64R7DS6DwuXYVg9RTskFK8') % endif \ No newline at end of file diff --git a/scenarios/card_create/executable.py b/scenarios/card_create/executable.py index 2a03c13..ee4e28c 100644 --- a/scenarios/card_create/executable.py +++ b/scenarios/card_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') card = balanced.Card( cvv='123', diff --git a/scenarios/card_create/python.mako b/scenarios/card_create/python.mako index f69db9c..d65ff82 100644 --- a/scenarios/card_create/python.mako +++ b/scenarios/card_create/python.mako @@ -3,7 +3,7 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') card = balanced.Card( cvv='123', diff --git a/scenarios/card_debit/executable.py b/scenarios/card_debit/executable.py index ca8abc3..66e9ded 100644 --- a/scenarios/card_debit/executable.py +++ b/scenarios/card_debit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -card = balanced.Card.fetch('/cards/CC4GOYzOKyWXBzJMVTs00aNk') +card = balanced.Card.fetch('/cards/CC68IoCVpoFlkugB7xt52p8C') card.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/card_debit/python.mako b/scenarios/card_debit/python.mako index 6ef2f99..b6ebc18 100644 --- a/scenarios/card_debit/python.mako +++ b/scenarios/card_debit/python.mako @@ -3,9 +3,9 @@ balanced.Card().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -card = balanced.Card.fetch('/cards/CC4GOYzOKyWXBzJMVTs00aNk') +card = balanced.Card.fetch('/cards/CC68IoCVpoFlkugB7xt52p8C') card.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/card_delete/executable.py b/scenarios/card_delete/executable.py index d5bee24..40486a5 100644 --- a/scenarios/card_delete/executable.py +++ b/scenarios/card_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -card = balanced.Card.fetch('/cards/CC4cbNzUmFqGrc1GmFpXp6fe') +card = balanced.Card.fetch('/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O') card.unstore() \ No newline at end of file diff --git a/scenarios/card_delete/python.mako b/scenarios/card_delete/python.mako index e35c439..8feaf1a 100644 --- a/scenarios/card_delete/python.mako +++ b/scenarios/card_delete/python.mako @@ -3,8 +3,8 @@ balanced.Card().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -card = balanced.Card.fetch('/cards/CC4cbNzUmFqGrc1GmFpXp6fe') +card = balanced.Card.fetch('/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O') card.unstore() % endif \ No newline at end of file diff --git a/scenarios/card_hold_capture/executable.py b/scenarios/card_hold_capture/executable.py index 2db8eb1..d4e9078 100644 --- a/scenarios/card_hold_capture/executable.py +++ b/scenarios/card_hold_capture/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -card_hold = balanced.CardHold.fetch('/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs') +card_hold = balanced.CardHold.fetch('/card_holds/HL5wAfv8JaMsEn9idXrLZZZT') debit = card_hold.capture( appears_on_statement_as='ShowsUpOnStmt', description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_capture/python.mako b/scenarios/card_hold_capture/python.mako index 3de6217..c1bba34 100644 --- a/scenarios/card_hold_capture/python.mako +++ b/scenarios/card_hold_capture/python.mako @@ -3,9 +3,9 @@ balanced.CardHold().capture() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -card_hold = balanced.CardHold.fetch('/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs') +card_hold = balanced.CardHold.fetch('/card_holds/HL5wAfv8JaMsEn9idXrLZZZT') debit = card_hold.capture( appears_on_statement_as='ShowsUpOnStmt', description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_create/executable.py b/scenarios/card_hold_create/executable.py index d503a34..e432726 100644 --- a/scenarios/card_hold_create/executable.py +++ b/scenarios/card_hold_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -card = balanced.Card.fetch('/cards/CC3ZsWHP2jMgvFrrzDzfZS0q') +card = balanced.Card.fetch('/cards/CC5nCSU0yFp3qxR4p6UZST7y') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_create/python.mako b/scenarios/card_hold_create/python.mako index 0ba03d4..dd69b28 100644 --- a/scenarios/card_hold_create/python.mako +++ b/scenarios/card_hold_create/python.mako @@ -3,9 +3,9 @@ balanced.Card().hold() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -card = balanced.Card.fetch('/cards/CC3ZsWHP2jMgvFrrzDzfZS0q') +card = balanced.Card.fetch('/cards/CC5nCSU0yFp3qxR4p6UZST7y') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_list/executable.py b/scenarios/card_hold_list/executable.py index b650b46..cf0f6f2 100644 --- a/scenarios/card_hold_list/executable.py +++ b/scenarios/card_hold_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') card_holds = balanced.CardHold.query \ No newline at end of file diff --git a/scenarios/card_hold_list/python.mako b/scenarios/card_hold_list/python.mako index a4d805b..b899a66 100644 --- a/scenarios/card_hold_list/python.mako +++ b/scenarios/card_hold_list/python.mako @@ -4,7 +4,7 @@ balanced.CardHold.query % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') card_holds = balanced.CardHold.query % endif \ No newline at end of file diff --git a/scenarios/card_hold_show/executable.py b/scenarios/card_hold_show/executable.py index 6d87129..ddcfa3c 100644 --- a/scenarios/card_hold_show/executable.py +++ b/scenarios/card_hold_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -card_hold = balanced.CardHold.fetch('/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs') \ No newline at end of file +card_hold = balanced.CardHold.fetch('/card_holds/HL5wAfv8JaMsEn9idXrLZZZT') \ No newline at end of file diff --git a/scenarios/card_hold_show/python.mako b/scenarios/card_hold_show/python.mako index aa9f290..a28d400 100644 --- a/scenarios/card_hold_show/python.mako +++ b/scenarios/card_hold_show/python.mako @@ -4,7 +4,7 @@ balanced.CardHold.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -card_hold = balanced.CardHold.fetch('/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs') +card_hold = balanced.CardHold.fetch('/card_holds/HL5wAfv8JaMsEn9idXrLZZZT') % endif \ No newline at end of file diff --git a/scenarios/card_hold_update/executable.py b/scenarios/card_hold_update/executable.py index 3f94e65..4a920c1 100644 --- a/scenarios/card_hold_update/executable.py +++ b/scenarios/card_hold_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -card_hold = balanced.CardHold.fetch('/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs') +card_hold = balanced.CardHold.fetch('/card_holds/HL5wAfv8JaMsEn9idXrLZZZT') card_hold.description = 'update this description' card_hold.meta = { 'holding.for': 'user1', diff --git a/scenarios/card_hold_update/python.mako b/scenarios/card_hold_update/python.mako index 9e228f4..f30b691 100644 --- a/scenarios/card_hold_update/python.mako +++ b/scenarios/card_hold_update/python.mako @@ -3,9 +3,9 @@ balanced.CardHold().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -card_hold = balanced.CardHold.fetch('/card_holds/HL4a1BKhDiVV9Ueh9MTozVDs') +card_hold = balanced.CardHold.fetch('/card_holds/HL5wAfv8JaMsEn9idXrLZZZT') card_hold.description = 'update this description' card_hold.meta = { 'holding.for': 'user1', diff --git a/scenarios/card_hold_void/executable.py b/scenarios/card_hold_void/executable.py index cfc8fcc..b813339 100644 --- a/scenarios/card_hold_void/executable.py +++ b/scenarios/card_hold_void/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -card_hold = balanced.CardHold.fetch('/card_holds/HL4fmk2370zAE7nAVujKxjtf') +card_hold = balanced.CardHold.fetch('/card_holds/HL5Ig892KbmJyDqED5fYsJ8m') card_hold.cancel() \ No newline at end of file diff --git a/scenarios/card_hold_void/python.mako b/scenarios/card_hold_void/python.mako index c330eaa..007e02f 100644 --- a/scenarios/card_hold_void/python.mako +++ b/scenarios/card_hold_void/python.mako @@ -3,8 +3,8 @@ balanced.CardHold().cancel() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -card_hold = balanced.CardHold.fetch('/card_holds/HL4fmk2370zAE7nAVujKxjtf') +card_hold = balanced.CardHold.fetch('/card_holds/HL5Ig892KbmJyDqED5fYsJ8m') card_hold.cancel() % endif \ No newline at end of file diff --git a/scenarios/card_list/executable.py b/scenarios/card_list/executable.py index f51e9ec..a68e381 100644 --- a/scenarios/card_list/executable.py +++ b/scenarios/card_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') cards = balanced.Card.query \ No newline at end of file diff --git a/scenarios/card_list/python.mako b/scenarios/card_list/python.mako index 4a9d1e4..01fa97f 100644 --- a/scenarios/card_list/python.mako +++ b/scenarios/card_list/python.mako @@ -4,7 +4,7 @@ balanced.Card.query % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') cards = balanced.Card.query % endif \ No newline at end of file diff --git a/scenarios/card_show/executable.py b/scenarios/card_show/executable.py index 0b36806..a024256 100644 --- a/scenarios/card_show/executable.py +++ b/scenarios/card_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -card = balanced.Card.fetch('/cards/CC4cbNzUmFqGrc1GmFpXp6fe') \ No newline at end of file +card = balanced.Card.fetch('/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O') \ No newline at end of file diff --git a/scenarios/card_show/python.mako b/scenarios/card_show/python.mako index d47568b..ff38bbe 100644 --- a/scenarios/card_show/python.mako +++ b/scenarios/card_show/python.mako @@ -3,7 +3,7 @@ balanced.Card.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -card = balanced.Card.fetch('/cards/CC4cbNzUmFqGrc1GmFpXp6fe') +card = balanced.Card.fetch('/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O') % endif \ No newline at end of file diff --git a/scenarios/card_update/executable.py b/scenarios/card_update/executable.py index c595cba..768c58d 100644 --- a/scenarios/card_update/executable.py +++ b/scenarios/card_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -card = balanced.Card.fetch('/cards/CC4cbNzUmFqGrc1GmFpXp6fe') +card = balanced.Card.fetch('/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/card_update/python.mako b/scenarios/card_update/python.mako index 8ce8bd6..9cad63c 100644 --- a/scenarios/card_update/python.mako +++ b/scenarios/card_update/python.mako @@ -3,9 +3,9 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -card = balanced.Card.fetch('/cards/CC4cbNzUmFqGrc1GmFpXp6fe') +card = balanced.Card.fetch('/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/credit_list/executable.py b/scenarios/credit_list/executable.py index 72c29db..c09ae09 100644 --- a/scenarios/credit_list/executable.py +++ b/scenarios/credit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') credits = balanced.Credit.query \ No newline at end of file diff --git a/scenarios/credit_list/python.mako b/scenarios/credit_list/python.mako index ef08cc4..a0cb9c0 100644 --- a/scenarios/credit_list/python.mako +++ b/scenarios/credit_list/python.mako @@ -4,7 +4,7 @@ balanced.Credit.query % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') credits = balanced.Credit.query % endif \ No newline at end of file diff --git a/scenarios/credit_list_bank_account/executable.py b/scenarios/credit_list_bank_account/executable.py index f688dec..3d7c401 100644 --- a/scenarios/credit_list_bank_account/executable.py +++ b/scenarios/credit_list_bank_account/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3LBmizwthrjehivn2ffzHU/credits') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V/credits') credits = bank_account.credits \ No newline at end of file diff --git a/scenarios/credit_list_bank_account/python.mako b/scenarios/credit_list_bank_account/python.mako index 34cd8ca..58d3d15 100644 --- a/scenarios/credit_list_bank_account/python.mako +++ b/scenarios/credit_list_bank_account/python.mako @@ -3,8 +3,8 @@ balanced.BankAccount().credits % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3LBmizwthrjehivn2ffzHU/credits') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V/credits') credits = bank_account.credits % endif \ No newline at end of file diff --git a/scenarios/credit_show/executable.py b/scenarios/credit_show/executable.py index cefd167..c2ab4e1 100644 --- a/scenarios/credit_show/executable.py +++ b/scenarios/credit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -credit = balanced.Credit.fetch('/credits/CR4wyLukORa0TXhCYtjZrfw5') \ No newline at end of file +credit = balanced.Credit.fetch('/credits/CR5XXPwA1ckaTDSIg3593sEx') \ No newline at end of file diff --git a/scenarios/credit_show/python.mako b/scenarios/credit_show/python.mako index f29c329..5ede87f 100644 --- a/scenarios/credit_show/python.mako +++ b/scenarios/credit_show/python.mako @@ -4,7 +4,7 @@ balanced.Credit.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -credit = balanced.Credit.fetch('/credits/CR4wyLukORa0TXhCYtjZrfw5') +credit = balanced.Credit.fetch('/credits/CR5XXPwA1ckaTDSIg3593sEx') % endif \ No newline at end of file diff --git a/scenarios/credit_update/executable.py b/scenarios/credit_update/executable.py index 61e4dd5..793d6a3 100644 --- a/scenarios/credit_update/executable.py +++ b/scenarios/credit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -credit = balanced.Credit.fetch('/credits/CR4wyLukORa0TXhCYtjZrfw5') +credit = balanced.Credit.fetch('/credits/CR5XXPwA1ckaTDSIg3593sEx') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/credit_update/python.mako b/scenarios/credit_update/python.mako index 9d7ed20..0e988de 100644 --- a/scenarios/credit_update/python.mako +++ b/scenarios/credit_update/python.mako @@ -3,9 +3,9 @@ balanced.Credit().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -credit = balanced.Credit.fetch('/credits/CR4wyLukORa0TXhCYtjZrfw5') +credit = balanced.Credit.fetch('/credits/CR5XXPwA1ckaTDSIg3593sEx') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/customer_create/executable.py b/scenarios/customer_create/executable.py index 7d978d7..e2a67de 100644 --- a/scenarios/customer_create/executable.py +++ b/scenarios/customer_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') customer = balanced.Customer( dob_year=1963, diff --git a/scenarios/customer_create/python.mako b/scenarios/customer_create/python.mako index d23d7bc..541b8da 100644 --- a/scenarios/customer_create/python.mako +++ b/scenarios/customer_create/python.mako @@ -3,7 +3,7 @@ balanced.Customer().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') customer = balanced.Customer( dob_year=1963, diff --git a/scenarios/customer_delete/executable.py b/scenarios/customer_delete/executable.py index b99a6c9..89dc0de 100644 --- a/scenarios/customer_delete/executable.py +++ b/scenarios/customer_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -customer = balanced.Customer.fetch('/customers/CU4EeI9UPzRcOo2C3j1qFjQj') +customer = balanced.Customer.fetch('/customers/CU64R7DS6DwuXYVg9RTskFK8') customer.unstore() \ No newline at end of file diff --git a/scenarios/customer_delete/python.mako b/scenarios/customer_delete/python.mako index 6195e7d..9e05117 100644 --- a/scenarios/customer_delete/python.mako +++ b/scenarios/customer_delete/python.mako @@ -3,8 +3,8 @@ balanced.Customer().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -customer = balanced.Customer.fetch('/customers/CU4EeI9UPzRcOo2C3j1qFjQj') +customer = balanced.Customer.fetch('/customers/CU64R7DS6DwuXYVg9RTskFK8') customer.unstore() % endif \ No newline at end of file diff --git a/scenarios/customer_list/executable.py b/scenarios/customer_list/executable.py index aeb759a..a749f77 100644 --- a/scenarios/customer_list/executable.py +++ b/scenarios/customer_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') customers = balanced.Customer.query \ No newline at end of file diff --git a/scenarios/customer_list/python.mako b/scenarios/customer_list/python.mako index 33f74e6..9f906c3 100644 --- a/scenarios/customer_list/python.mako +++ b/scenarios/customer_list/python.mako @@ -4,7 +4,7 @@ balanced.Customer.query % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') customers = balanced.Customer.query % endif \ No newline at end of file diff --git a/scenarios/customer_show/executable.py b/scenarios/customer_show/executable.py index 712e679..720dafe 100644 --- a/scenarios/customer_show/executable.py +++ b/scenarios/customer_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -customer = balanced.Customer.fetch('/customers/CU4xpIqZ7mf2fuLpBoXgoG7m') \ No newline at end of file +customer = balanced.Customer.fetch('/customers/CU5YopHN07Ul5XQnILUifeQT') \ No newline at end of file diff --git a/scenarios/customer_show/python.mako b/scenarios/customer_show/python.mako index e6306c6..55dc483 100644 --- a/scenarios/customer_show/python.mako +++ b/scenarios/customer_show/python.mako @@ -4,7 +4,7 @@ balanced.Customer.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -customer = balanced.Customer.fetch('/customers/CU4xpIqZ7mf2fuLpBoXgoG7m') +customer = balanced.Customer.fetch('/customers/CU5YopHN07Ul5XQnILUifeQT') % endif \ No newline at end of file diff --git a/scenarios/customer_update/executable.py b/scenarios/customer_update/executable.py index 08fe23d..8bd5553 100644 --- a/scenarios/customer_update/executable.py +++ b/scenarios/customer_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -customer = balanced.Debit.fetch('/customers/CU4xpIqZ7mf2fuLpBoXgoG7m') +customer = balanced.Debit.fetch('/customers/CU5YopHN07Ul5XQnILUifeQT') customer.email = 'email@newdomain.com' customer.meta = { 'shipping-preference': 'ground' diff --git a/scenarios/customer_update/python.mako b/scenarios/customer_update/python.mako index 29af3da..294af9a 100644 --- a/scenarios/customer_update/python.mako +++ b/scenarios/customer_update/python.mako @@ -3,9 +3,9 @@ balanced.Customer().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -customer = balanced.Debit.fetch('/customers/CU4xpIqZ7mf2fuLpBoXgoG7m') +customer = balanced.Debit.fetch('/customers/CU5YopHN07Ul5XQnILUifeQT') customer.email = 'email@newdomain.com' customer.meta = { 'shipping-preference': 'ground' diff --git a/scenarios/debit_list/executable.py b/scenarios/debit_list/executable.py index cdb88e0..c7d81b4 100644 --- a/scenarios/debit_list/executable.py +++ b/scenarios/debit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') debits = balanced.Debit.query \ No newline at end of file diff --git a/scenarios/debit_list/python.mako b/scenarios/debit_list/python.mako index a5720e7..60d46d6 100644 --- a/scenarios/debit_list/python.mako +++ b/scenarios/debit_list/python.mako @@ -4,7 +4,7 @@ balanced.Debit.query % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') debits = balanced.Debit.query % endif \ No newline at end of file diff --git a/scenarios/debit_show/executable.py b/scenarios/debit_show/executable.py index 3a5c947..558946d 100644 --- a/scenarios/debit_show/executable.py +++ b/scenarios/debit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -debit = balanced.Debit.fetch('/debits/WD4scrlw85LkeIEQqOx3AgUW') \ No newline at end of file +debit = balanced.Debit.fetch('/debits/WD5PTwr2bwJLIyJio1pEpYBr') \ No newline at end of file diff --git a/scenarios/debit_show/python.mako b/scenarios/debit_show/python.mako index 08deac5..20ceb70 100644 --- a/scenarios/debit_show/python.mako +++ b/scenarios/debit_show/python.mako @@ -4,7 +4,7 @@ balanced.Debit.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -debit = balanced.Debit.fetch('/debits/WD4scrlw85LkeIEQqOx3AgUW') +debit = balanced.Debit.fetch('/debits/WD5PTwr2bwJLIyJio1pEpYBr') % endif \ No newline at end of file diff --git a/scenarios/debit_update/executable.py b/scenarios/debit_update/executable.py index 5a45f8d..a12b984 100644 --- a/scenarios/debit_update/executable.py +++ b/scenarios/debit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -debit = balanced.Debit.fetch('/debits/WD4scrlw85LkeIEQqOx3AgUW') +debit = balanced.Debit.fetch('/debits/WD5PTwr2bwJLIyJio1pEpYBr') debit.description = 'New description for debit' debit.meta = { 'facebook.id': '1234567890', diff --git a/scenarios/debit_update/python.mako b/scenarios/debit_update/python.mako index 7ac05fe..78f8e6e 100644 --- a/scenarios/debit_update/python.mako +++ b/scenarios/debit_update/python.mako @@ -3,9 +3,9 @@ balanced.Debit().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -debit = balanced.Debit.fetch('/debits/WD4scrlw85LkeIEQqOx3AgUW') +debit = balanced.Debit.fetch('/debits/WD5PTwr2bwJLIyJio1pEpYBr') debit.description = 'New description for debit' debit.meta = { 'facebook.id': '1234567890', diff --git a/scenarios/event_list/executable.py b/scenarios/event_list/executable.py index 0625f6b..1db39cb 100644 --- a/scenarios/event_list/executable.py +++ b/scenarios/event_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') events = balanced.Event.query \ No newline at end of file diff --git a/scenarios/event_list/python.mako b/scenarios/event_list/python.mako index b4a23bd..764b8a0 100644 --- a/scenarios/event_list/python.mako +++ b/scenarios/event_list/python.mako @@ -4,7 +4,7 @@ balanced.Event.query % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') events = balanced.Event.query % endif \ No newline at end of file diff --git a/scenarios/event_show/executable.py b/scenarios/event_show/executable.py index 7eb73c8..05a47f5 100644 --- a/scenarios/event_show/executable.py +++ b/scenarios/event_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -event = balanced.Event.fetch('/events/EV7838c0f6a4bd11e3937f060e77eca47a') \ No newline at end of file +event = balanced.Event.fetch('/events/EVa26caeeea56411e3838802219cc35fd9') \ No newline at end of file diff --git a/scenarios/event_show/python.mako b/scenarios/event_show/python.mako index 6b35aa1..83e8092 100644 --- a/scenarios/event_show/python.mako +++ b/scenarios/event_show/python.mako @@ -4,7 +4,7 @@ balanced.Event.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -event = balanced.Event.fetch('/events/EV7838c0f6a4bd11e3937f060e77eca47a') +event = balanced.Event.fetch('/events/EVa26caeeea56411e3838802219cc35fd9') % endif \ No newline at end of file diff --git a/scenarios/order_create/executable.py b/scenarios/order_create/executable.py index c0fbf71..bb61e7f 100644 --- a/scenarios/order_create/executable.py +++ b/scenarios/order_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -merchant_customer = balanced.Customer.fetch('/customers/CU4EeI9UPzRcOo2C3j1qFjQj') +merchant_customer = balanced.Customer.fetch('/customers/CU64R7DS6DwuXYVg9RTskFK8') merchant_customer.create_order( description='Order #12341234' ).save() \ No newline at end of file diff --git a/scenarios/order_create/python.mako b/scenarios/order_create/python.mako index 75f3cd0..2cb9b2f 100644 --- a/scenarios/order_create/python.mako +++ b/scenarios/order_create/python.mako @@ -3,9 +3,9 @@ balanced.Order() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -merchant_customer = balanced.Customer.fetch('/customers/CU4EeI9UPzRcOo2C3j1qFjQj') +merchant_customer = balanced.Customer.fetch('/customers/CU64R7DS6DwuXYVg9RTskFK8') merchant_customer.create_order( description='Order #12341234' ).save() diff --git a/scenarios/order_list/executable.py b/scenarios/order_list/executable.py index 3dcd605..c58f7d9 100644 --- a/scenarios/order_list/executable.py +++ b/scenarios/order_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') orders = balanced.Order.query \ No newline at end of file diff --git a/scenarios/order_list/python.mako b/scenarios/order_list/python.mako index 8fe5c49..1c43314 100644 --- a/scenarios/order_list/python.mako +++ b/scenarios/order_list/python.mako @@ -4,7 +4,7 @@ balanced.Order.query % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') orders = balanced.Order.query % endif \ No newline at end of file diff --git a/scenarios/order_show/executable.py b/scenarios/order_show/executable.py index 742b126..90348c0 100644 --- a/scenarios/order_show/executable.py +++ b/scenarios/order_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -order = balanced.Order.fetch('/orders/OR520nGy59wfJ4mM7HR6TYrn') \ No newline at end of file +order = balanced.Order.fetch('/orders/OR6wcEVkOymvs4PairiGEcIx') \ No newline at end of file diff --git a/scenarios/order_show/python.mako b/scenarios/order_show/python.mako index 8e2f675..bacbea7 100644 --- a/scenarios/order_show/python.mako +++ b/scenarios/order_show/python.mako @@ -4,7 +4,7 @@ balanced.Order.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -order = balanced.Order.fetch('/orders/OR520nGy59wfJ4mM7HR6TYrn') +order = balanced.Order.fetch('/orders/OR6wcEVkOymvs4PairiGEcIx') % endif \ No newline at end of file diff --git a/scenarios/order_update/executable.py b/scenarios/order_update/executable.py index 2edec25..cd3c660 100644 --- a/scenarios/order_update/executable.py +++ b/scenarios/order_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -order = balanced.Order.fetch('/orders/OR520nGy59wfJ4mM7HR6TYrn') +order = balanced.Order.fetch('/orders/OR6wcEVkOymvs4PairiGEcIx') order.description = 'New description for order' order.meta = { 'anykey': 'valuegoeshere', diff --git a/scenarios/order_update/python.mako b/scenarios/order_update/python.mako index ca8d243..b7ed45f 100644 --- a/scenarios/order_update/python.mako +++ b/scenarios/order_update/python.mako @@ -3,9 +3,9 @@ balanced.Order().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -order = balanced.Order.fetch('/orders/OR520nGy59wfJ4mM7HR6TYrn') +order = balanced.Order.fetch('/orders/OR6wcEVkOymvs4PairiGEcIx') order.description = 'New description for order' order.meta = { 'anykey': 'valuegoeshere', diff --git a/scenarios/refund_create/executable.py b/scenarios/refund_create/executable.py index 9d56082..0ee6f11 100644 --- a/scenarios/refund_create/executable.py +++ b/scenarios/refund_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -debit = balanced.Debit.fetch('/debits/WD57kmfV9Cgc0MiZkHOmFU1z') +debit = balanced.Debit.fetch('/debits/WD6BKYhbRzlRhfKSE1DcpqS5') refund = debit.refund( amount=3000, description="Refund for Order #1111", diff --git a/scenarios/refund_create/python.mako b/scenarios/refund_create/python.mako index 14d6d29..fcc0e15 100644 --- a/scenarios/refund_create/python.mako +++ b/scenarios/refund_create/python.mako @@ -3,9 +3,9 @@ balanced.Debit().refund() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -debit = balanced.Debit.fetch('/debits/WD57kmfV9Cgc0MiZkHOmFU1z') +debit = balanced.Debit.fetch('/debits/WD6BKYhbRzlRhfKSE1DcpqS5') refund = debit.refund( amount=3000, description="Refund for Order #1111", diff --git a/scenarios/refund_list/executable.py b/scenarios/refund_list/executable.py index 7c6ac41..1f15eed 100644 --- a/scenarios/refund_list/executable.py +++ b/scenarios/refund_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') refunds = balanced.Refund.query \ No newline at end of file diff --git a/scenarios/refund_list/python.mako b/scenarios/refund_list/python.mako index 7e0a516..d14d73a 100644 --- a/scenarios/refund_list/python.mako +++ b/scenarios/refund_list/python.mako @@ -4,7 +4,7 @@ balanced.Refund.query % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') refunds = balanced.Refund.query % endif \ No newline at end of file diff --git a/scenarios/refund_show/executable.py b/scenarios/refund_show/executable.py index 4a901c6..331c88d 100644 --- a/scenarios/refund_show/executable.py +++ b/scenarios/refund_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -refund = balanced.Refund.fetch('/refunds/RF5c71x7GALUPPdyexP4Weca') \ No newline at end of file +refund = balanced.Refund.fetch('/refunds/RF6HsnqferSuES9VZEWrthG2') \ No newline at end of file diff --git a/scenarios/refund_show/python.mako b/scenarios/refund_show/python.mako index 2fb0062..e9242ba 100644 --- a/scenarios/refund_show/python.mako +++ b/scenarios/refund_show/python.mako @@ -4,7 +4,7 @@ balanced.Refund.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -refund = balanced.Refund.fetch('/refunds/RF5c71x7GALUPPdyexP4Weca') +refund = balanced.Refund.fetch('/refunds/RF6HsnqferSuES9VZEWrthG2') % endif \ No newline at end of file diff --git a/scenarios/refund_update/executable.py b/scenarios/refund_update/executable.py index 51fa8ae..12c57ad 100644 --- a/scenarios/refund_update/executable.py +++ b/scenarios/refund_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -refund = balanced.Refund.fetch('/refunds/RF5c71x7GALUPPdyexP4Weca') +refund = balanced.Refund.fetch('/refunds/RF6HsnqferSuES9VZEWrthG2') refund.description = 'update this description' refund.meta = { 'user.refund.count': '3', diff --git a/scenarios/refund_update/python.mako b/scenarios/refund_update/python.mako index 4f224b4..964a746 100644 --- a/scenarios/refund_update/python.mako +++ b/scenarios/refund_update/python.mako @@ -3,9 +3,9 @@ balanced.Refund().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -refund = balanced.Refund.fetch('/refunds/RF5c71x7GALUPPdyexP4Weca') +refund = balanced.Refund.fetch('/refunds/RF6HsnqferSuES9VZEWrthG2') refund.description = 'update this description' refund.meta = { 'user.refund.count': '3', diff --git a/scenarios/reversal_create/executable.py b/scenarios/reversal_create/executable.py index 31301d1..bc1012c 100644 --- a/scenarios/reversal_create/executable.py +++ b/scenarios/reversal_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -credit = balanced.Credit.fetch('/credits/CR5j27kuJPX6voI8aokUWsEG') +credit = balanced.Credit.fetch('/credits/CR6NpuEtezCdLTYngDrSEODv') reversal = credit.reverse( amount=3000, description="Reversal for Order #1111", diff --git a/scenarios/reversal_create/python.mako b/scenarios/reversal_create/python.mako index c9a35d5..d92fbdd 100644 --- a/scenarios/reversal_create/python.mako +++ b/scenarios/reversal_create/python.mako @@ -3,9 +3,9 @@ balanced.Credit().reverse() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -credit = balanced.Credit.fetch('/credits/CR5j27kuJPX6voI8aokUWsEG') +credit = balanced.Credit.fetch('/credits/CR6NpuEtezCdLTYngDrSEODv') reversal = credit.reverse( amount=3000, description="Reversal for Order #1111", diff --git a/scenarios/reversal_list/executable.py b/scenarios/reversal_list/executable.py index 85f3372..7735e61 100644 --- a/scenarios/reversal_list/executable.py +++ b/scenarios/reversal_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') reversals = balanced.Reversal.query \ No newline at end of file diff --git a/scenarios/reversal_list/python.mako b/scenarios/reversal_list/python.mako index e0833a9..30def86 100644 --- a/scenarios/reversal_list/python.mako +++ b/scenarios/reversal_list/python.mako @@ -4,7 +4,7 @@ balanced.Reversal.query() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') reversals = balanced.Reversal.query % endif \ No newline at end of file diff --git a/scenarios/reversal_show/executable.py b/scenarios/reversal_show/executable.py index 3ab159c..48e962d 100644 --- a/scenarios/reversal_show/executable.py +++ b/scenarios/reversal_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -refund = balanced.Reversal.fetch('/reversals/RV5h1LgxTlH1OtHAZEfQbvbH') \ No newline at end of file +refund = balanced.Reversal.fetch('/reversals/RV6OCxJ1UhkG84is6H9PHjkZ') \ No newline at end of file diff --git a/scenarios/reversal_show/python.mako b/scenarios/reversal_show/python.mako index 4f1b614..37a07eb 100644 --- a/scenarios/reversal_show/python.mako +++ b/scenarios/reversal_show/python.mako @@ -4,7 +4,7 @@ balanced.Reversal.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -refund = balanced.Reversal.fetch('/reversals/RV5h1LgxTlH1OtHAZEfQbvbH') +refund = balanced.Reversal.fetch('/reversals/RV6OCxJ1UhkG84is6H9PHjkZ') % endif \ No newline at end of file diff --git a/scenarios/reversal_update/executable.py b/scenarios/reversal_update/executable.py index 4203000..1cde23c 100644 --- a/scenarios/reversal_update/executable.py +++ b/scenarios/reversal_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -reversal = balanced.Reversal.fetch('/reversals/RV5h1LgxTlH1OtHAZEfQbvbH') +reversal = balanced.Reversal.fetch('/reversals/RV6OCxJ1UhkG84is6H9PHjkZ') reversal.description = 'update this description' reversal.meta = { 'user.refund.count': '3', diff --git a/scenarios/reversal_update/python.mako b/scenarios/reversal_update/python.mako index c4aa6e7..78b1d1e 100644 --- a/scenarios/reversal_update/python.mako +++ b/scenarios/reversal_update/python.mako @@ -3,9 +3,9 @@ balanced.Reversal().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2cSDy37BKy5K4NUHKHVNXNTjTHPEqjRtB') +balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -reversal = balanced.Reversal.fetch('/reversals/RV5h1LgxTlH1OtHAZEfQbvbH') +reversal = balanced.Reversal.fetch('/reversals/RV6OCxJ1UhkG84is6H9PHjkZ') reversal.description = 'update this description' reversal.meta = { 'user.refund.count': '3', From 7c047c87baeb32416ea5b3288d1e34fc169ed030 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Mon, 10 Mar 2014 15:16:08 -0600 Subject: [PATCH 25/93] Version bump to 1.0 --- balanced/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/balanced/__init__.py b/balanced/__init__.py index d05c350..83d90b7 100644 --- a/balanced/__init__.py +++ b/balanced/__init__.py @@ -1,6 +1,6 @@ from __future__ import unicode_literals -__version__ = '1.beta3' +__version__ = '1.0' from balanced.config import configure from balanced import resources From 04613f682fc0106739c40eb365b928b6c821143b Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Mon, 10 Mar 2014 18:04:30 -0600 Subject: [PATCH 26/93] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index b32b361..9774e1b 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ Online Marketplace Payments [![Build Status](https://secure.travis-ci.org/balanced/balanced-python.png?branch=master)](http://travis-ci.org/balanced/balanced-python) +**v1.x requires Balanced API 1.1. Use [v0.x](https://github.com/balanced/balanced-python/tree/rev0) for Balanced API 1.0.** + ## Installation pip install balanced From fde6c18adc28979e41dd15a8330d71462791acf7 Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Mon, 10 Mar 2014 16:34:03 -0700 Subject: [PATCH 27/93] fix bank account debits example --- balanced/exc.py | 8 +++++++- balanced/resources.py | 4 ++-- examples/bank_account_debits.py | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/balanced/exc.py b/balanced/exc.py index 2594bed..8ef9656 100644 --- a/balanced/exc.py +++ b/balanced/exc.py @@ -6,7 +6,13 @@ class BalancedError(Exception): - pass + + def __str__(self): + attrs = ', '.join([ + '{0}={1}'.format(k, repr(v)) + for k, v in self.__dict__.iteritems() + ]) + return '{0}({1})'.format(self.__class__.__name__, attrs) class ResourceError(BalancedError): diff --git a/balanced/resources.py b/balanced/resources.py index a330ff7..b5e3ac3 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -132,8 +132,8 @@ def items(self): # there is no resources key in the response from server # if the list is empty, so when we try to get something like # `debits`, an AttributeError will be raised. Not sure is this - # behavior a bug of server, but anyway, this is just a workaround here - # for solving the problem. The issue was posted here + # behavior a bug of server, but anyway, this is just a workaround + # here for solving the problem. The issue was posted here # https://github.com/balanced/balanced-python/issues/93 return [] diff --git a/examples/bank_account_debits.py b/examples/bank_account_debits.py index 8cc9c76..012b72d 100644 --- a/examples/bank_account_debits.py +++ b/examples/bank_account_debits.py @@ -35,7 +35,7 @@ def main(): print 'PROTIP: for TEST bank accounts the valid amount is always 1 and 1' try: - verification.confirm(amount_1=1, amount_2=1) + verification.confirm(amount_1=1, amount_2=2) except balanced.exc.BankAccountVerificationFailure as ex: print 'Authentication error , %s' % ex.message From e9d0aea298a7ee5069149fe3aa0f21ecfa6d9246 Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Mon, 10 Mar 2014 17:00:06 -0700 Subject: [PATCH 28/93] reproduce the bug as filed in #103 --- balanced/resources.py | 3 ++- examples/bank_account_debits.py | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/balanced/resources.py b/balanced/resources.py index b5e3ac3..9dc5db5 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -186,7 +186,8 @@ def __getattr__(self, item): if suffix not in item: href = getattr(self, item + suffix, None) if href: - setattr(self, item, Resource.get(href)) + item_type = Resource.registry.get(item + 's', Resource) + setattr(self, item, item_type.get(href)) return getattr(self, item) raise AttributeError( "'{0}' has no attribute '{1}'".format( diff --git a/examples/bank_account_debits.py b/examples/bank_account_debits.py index 012b72d..280fea0 100644 --- a/examples/bank_account_debits.py +++ b/examples/bank_account_debits.py @@ -39,6 +39,11 @@ def main(): except balanced.exc.BankAccountVerificationFailure as ex: print 'Authentication error , %s' % ex.message + # reload + verification = balanced.BankAccount.fetch( + bank_account.href + ).bank_account_verification + if verification.confirm(1, 1).verification_status != 'succeeded': raise Exception('unpossible') debit = bank_account.debit(100) From c5e192f9547f7b251486cf78d98933410a31daca Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Mon, 10 Mar 2014 17:00:22 -0700 Subject: [PATCH 29/93] bump build --- balanced/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/balanced/__init__.py b/balanced/__init__.py index 83d90b7..c8617a2 100644 --- a/balanced/__init__.py +++ b/balanced/__init__.py @@ -1,6 +1,6 @@ from __future__ import unicode_literals -__version__ = '1.0' +__version__ = '1.0.1' from balanced.config import configure from balanced import resources From c38588f7e90e31066b259d2a4e8ed502fc16485a Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Mon, 7 Apr 2014 10:36:59 -0600 Subject: [PATCH 30/93] Add CHANGELOG --- CHANGELOG.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..df4bd2c --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,11 @@ +## 1.0.1 + +* Fix for returned generic Resource instead of expected resource class + + +## 1.0 + +* Requires Balanced API 1.1 +* Hypermedia API support +* Debits and credits are now performed directly on funding instruments and not via Customer +* Support for new Order resource \ No newline at end of file From 6eac1ff4f6b58778e704821795a8c73353c620fb Mon Sep 17 00:00:00 2001 From: Richie Date: Thu, 10 Apr 2014 18:04:19 -0700 Subject: [PATCH 31/93] add pagination test --- tests/test_suite.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_suite.py b/tests/test_suite.py index aacddf5..fe485cd 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -377,6 +377,13 @@ def test_empty_list(self): self.create_marketplace() self.assertEqual(balanced.Credit.query.all(), []) + # def test_query_pagination(self): + # card = balanced.Card(**CARD).save() + # while balanced.Debit.query.count() <= 25: + # debit = card.debit(amount=1000) + # balanced.Debit.query.all() + # self.assertEqual(balanced.Debit.query.count(), 26) + def test_dispute(self): card = balanced.Card(**DISPUTE_CARD).save() debit = card.debit(amount=100) From aaf5a4027a84d83ee7cc9d7b2d36159b59e3c69e Mon Sep 17 00:00:00 2001 From: Richie Date: Thu, 10 Apr 2014 18:40:07 -0700 Subject: [PATCH 32/93] Uncomment out test, and add skip failing --- tests/test_suite.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_suite.py b/tests/test_suite.py index fe485cd..903813a 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -377,12 +377,12 @@ def test_empty_list(self): self.create_marketplace() self.assertEqual(balanced.Credit.query.all(), []) - # def test_query_pagination(self): - # card = balanced.Card(**CARD).save() - # while balanced.Debit.query.count() <= 25: - # debit = card.debit(amount=1000) - # balanced.Debit.query.all() - # self.assertEqual(balanced.Debit.query.count(), 26) + @unittest.skip('FAILING') + def test_query_pagination(self): + card = balanced.Card(**CARD).save() + for _ in xrange(30): card.debit(amount=100) + self.assertEqual(len(balanced.Debit.query.all()), 30) + def test_dispute(self): card = balanced.Card(**DISPUTE_CARD).save() From 3449818ba73efb86d1dac558650ddf9c3a4457e0 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Fri, 18 Apr 2014 13:31:16 -0600 Subject: [PATCH 33/93] Obtain scenario cache from Github. Color output. --- .gitignore | 1 + render_scenarios.py | 44 ++-- scenario.cache | 619 -------------------------------------------- 3 files changed, 29 insertions(+), 635 deletions(-) delete mode 100644 scenario.cache diff --git a/.gitignore b/.gitignore index 47a72b1..207a68b 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,4 @@ dist/ .idea/ _build/ coverage.xml +scenario.cache \ No newline at end of file diff --git a/render_scenarios.py b/render_scenarios.py index 261c406..df68c9b 100644 --- a/render_scenarios.py +++ b/render_scenarios.py @@ -3,10 +3,21 @@ import json import balanced import pprint +import requests +import sys + from pprint import PrettyPrinter from mako.template import Template from mako.lookup import TemplateLookup +class colors: + GREEN = '\033[92m' + YELLOW = '\033[93m' + RED = '\033[91m' + RESET = '\033[0m' + +SCENARIO_CACHE_URL = 'https://raw.githubusercontent.com/balanced/balanced-docs/master/scenario.cache' + def construct_response(scenario_name): # load up response data data = json.load(open('scenario.cache','r')) @@ -50,8 +61,8 @@ def render_executables(): request=request, payload=payload).strip() except KeyError: text = '' - print "WARN: Skipped {} since {} not in scenario.cache".format( - path, event_name) + print colors.YELLOW + "WARN: Skipped {} since {} not in scenario.cache".format( + path, event_name) + colors.RESET with open(os.path.join(os.path.dirname(path), 'executable.py'), 'w+') as write_to: write_to.write(text) @@ -68,23 +79,24 @@ def render_mako(): "% elif mode == 'response':\n" + response + "\n% endif" wfile.write(body) -def issue_no_mako_warnings(): - - set_has_mako = set([]) - set_no_python_mako = set([]) - for path in glob2.glob('./scenarios/**/*.mako'): - set_has_mako.add(os.path.dirname(path)) - for path in glob2.glob('./scenarios/**/python.mako'): - set_no_python_mako.add(os.path.dirname(path)) - print 'The following dont have a python.mako file. Look into it!' - print set_has_mako.difference(set_no_python_mako) - +def fetch_scenario_cache(): + try: + os.remove('scenario.cache') + except OSError: + pass + with open('scenario.cache', 'wb') as fo: + response = requests.get(SCENARIO_CACHE_URL) + if not response.ok: + sys.exit() + for block in response.iter_content(): + fo.write(block) if __name__ == "__main__": - print "Making Executables" + print colors.GREEN + "Obtaining scenario cache..." + colors.RESET + fetch_scenario_cache() + print colors.GREEN + "Making Executables..." + colors.RESET render_executables() - print "Rendering new mako files" + print colors.GREEN + "Rendering new mako files..." + colors.RESET render_mako() - issue_no_mako_warnings() diff --git a/scenario.cache b/scenario.cache deleted file mode 100644 index e08a698..0000000 --- a/scenario.cache +++ /dev/null @@ -1,619 +0,0 @@ -{ - "accept_type": "application/vnd.api+json;revision=1.1", - "api_key": "ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul", - "api_key_create": { - "request": { - "uri": "/api_keys" - }, - "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-03-06T19:22:18.256643Z\", \n \"href\": \"/api_keys/AK4Vt1mJyCtjdSiGgqAebarR\", \n \"id\": \"AK4Vt1mJyCtjdSiGgqAebarR\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-4bQUCg96rUwLV8FZXSTeq8WUSqROO9yT\"\n }\n ], \n \"links\": {}\n}" - }, - "api_key_delete": { - "request": { - "uri": "/api_keys/AK4Vt1mJyCtjdSiGgqAebarR" - } - }, - "api_key_list": { - "request": { - "uri": "/api_keys" - }, - "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-03-06T19:22:18.256643Z\", \n \"href\": \"/api_keys/AK4Vt1mJyCtjdSiGgqAebarR\", \n \"id\": \"AK4Vt1mJyCtjdSiGgqAebarR\", \n \"links\": {}, \n \"meta\": {}\n }, \n {\n \"created_at\": \"2014-03-06T19:22:11.872886Z\", \n \"href\": \"/api_keys/AK4OhVZUPzjD3YSCWBjU1dHO\", \n \"id\": \"AK4OhVZUPzjD3YSCWBjU1dHO\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul\"\n }\n ], \n \"links\": {}, \n \"meta\": {\n \"first\": \"/api_keys?limit=10&offset=0\", \n \"href\": \"/api_keys?limit=10&offset=0\", \n \"last\": \"/api_keys?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 2\n }\n}" - }, - "api_key_show": { - "request": { - "uri": "/api_keys/AK4Vt1mJyCtjdSiGgqAebarR" - }, - "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-03-06T19:22:18.256643Z\", \n \"href\": \"/api_keys/AK4Vt1mJyCtjdSiGgqAebarR\", \n \"id\": \"AK4Vt1mJyCtjdSiGgqAebarR\", \n \"links\": {}, \n \"meta\": {}\n }\n ], \n \"links\": {}\n}" - }, - "api_location": "https://api.balancedpayments.com", - "api_rev": "rev1", - "bank_account_associate_to_customer": { - "request": { - "customer_href": "/customers/CU64R7DS6DwuXYVg9RTskFK8", - "payload": { - "customer": "/customers/CU64R7DS6DwuXYVg9RTskFK8" - }, - "uri": "/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m" - }, - "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-06T19:23:27.876147Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m\", \n \"id\": \"BA6bLGpQZPOiTNRxF24rMd9m\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU64R7DS6DwuXYVg9RTskFK8\"\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-06T19:23:28.930538Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}" - }, - "bank_account_create": { - "request": { - "payload": { - "account_number": "9900000001", - "account_type": "checking", - "name": "Johann Bernoulli", - "routing_number": "121000358" - }, - "uri": "/bank_accounts" - }, - "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-06T19:23:27.876147Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m\", \n \"id\": \"BA6bLGpQZPOiTNRxF24rMd9m\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-06T19:23:27.876150Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}" - }, - "bank_account_credit": { - "request": { - "bank_account_href": "/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m", - "payload": { - "amount": 5000 - }, - "uri": "/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m/credits" - }, - "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-03-06T19:23:54.514782Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR6NpuEtezCdLTYngDrSEODv\", \n \"id\": \"CR6NpuEtezCdLTYngDrSEODv\", \n \"links\": {\n \"customer\": \"CU64R7DS6DwuXYVg9RTskFK8\", \n \"destination\": \"BA6bLGpQZPOiTNRxF24rMd9m\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR855-415-1670\", \n \"updated_at\": \"2014-03-06T19:23:55.019500Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }\n}" - }, - "bank_account_debit": { - "request": { - "bank_account_href": "/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM", - "payload": { - "amount": 5000, - "appears_on_statement_as": "Statement text", - "description": "Some descriptive text for the debit in the dashboard" - }, - "uri": "/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM/debits" - }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-06T19:22:35.961050Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD5qunOPeKdCnWXIg9EHyHge\", \n \"id\": \"WD5qunOPeKdCnWXIg9EHyHge\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"BA50LpPrCTB63Ecm0wEgdOQM\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W051-293-0823\", \n \"updated_at\": \"2014-03-06T19:22:36.418154Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" - }, - "bank_account_delete": { - "request": { - "uri": "/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V" - } - }, - "bank_account_list": { - "request": { - "uri": "/bank_accounts" - }, - "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-06T19:22:30.247406Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V\", \n \"id\": \"BA58WYAEUMrEtAkW5KAvWo5V\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-06T19:22:30.247410Z\"\n }, \n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-03-06T19:22:22.966278Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM\", \n \"id\": \"BA50LpPrCTB63Ecm0wEgdOQM\", \n \"links\": {\n \"bank_account_verification\": \"BZ5alC0fajkuBOvOU7lVT7QJ\", \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-06T19:22:27.888575Z\"\n }, \n {\n \"account_number\": \"xxxxxxxxxxx5555\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"WELLS FARGO BANK NA\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-03-06T19:22:12.982029Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA4WYHt1wCRMAJGm6k0BDaeR\", \n \"id\": \"BA4WYHt1wCRMAJGm6k0BDaeR\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU4Wt8xSbREzV2NWtdVAFGeR\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-03-06T19:22:12.982032Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }, \n \"meta\": {\n \"first\": \"/bank_accounts?limit=10&offset=0\", \n \"href\": \"/bank_accounts?limit=10&offset=0\", \n \"last\": \"/bank_accounts?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 3\n }\n}" - }, - "bank_account_show": { - "request": { - "uri": "/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V" - }, - "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-06T19:22:30.247406Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V\", \n \"id\": \"BA58WYAEUMrEtAkW5KAvWo5V\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-06T19:22:30.247410Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}" - }, - "bank_account_update": { - "request": { - "payload": { - "meta": { - "facebook.user_id": "0192837465", - "my-own-customer-id": "12345", - "twitter.id": "1234987650" - } - }, - "uri": "/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V" - }, - "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-06T19:22:30.247406Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V\", \n \"id\": \"BA58WYAEUMrEtAkW5KAvWo5V\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {\n \"facebook.user_id\": \"0192837465\", \n \"my-own-customer-id\": \"12345\", \n \"twitter.id\": \"1234987650\"\n }, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-06T19:22:33.744499Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}" - }, - "bank_account_verification_create": { - "request": { - "bank_account_uri": "/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM", - "uri": "/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM/verifications" - }, - "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-03-06T19:22:24.651572Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ5alC0fajkuBOvOU7lVT7QJ\", \n \"id\": \"BZ5alC0fajkuBOvOU7lVT7QJ\", \n \"links\": {\n \"bank_account\": \"BA50LpPrCTB63Ecm0wEgdOQM\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-06T19:22:25.233126Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n}" - }, - "bank_account_verification_show": { - "request": { - "uri": "/verifications/BZ5alC0fajkuBOvOU7lVT7QJ" - }, - "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-03-06T19:22:24.651572Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ5alC0fajkuBOvOU7lVT7QJ\", \n \"id\": \"BZ5alC0fajkuBOvOU7lVT7QJ\", \n \"links\": {\n \"bank_account\": \"BA50LpPrCTB63Ecm0wEgdOQM\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-06T19:22:25.233126Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n}" - }, - "bank_account_verification_update": { - "request": { - "payload": { - "amount_1": 1, - "amount_2": 1 - }, - "uri": "/verifications/BZ5alC0fajkuBOvOU7lVT7QJ" - }, - "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-03-06T19:22:24.651572Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ5alC0fajkuBOvOU7lVT7QJ\", \n \"id\": \"BZ5alC0fajkuBOvOU7lVT7QJ\", \n \"links\": {\n \"bank_account\": \"BA50LpPrCTB63Ecm0wEgdOQM\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-06T19:22:27.893114Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n}" - }, - "callback_create": { - "request": { - "payload": { - "method": "post", - "url": "http://www.example.com/callback" - }, - "uri": "/callbacks" - }, - "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB5pnz4XnaDpRFGlNMb6u50R\", \n \"id\": \"CB5pnz4XnaDpRFGlNMb6u50R\", \n \"links\": {}, \n \"method\": \"post\", \n \"revision\": \"1.1\", \n \"url\": \"http://www.example.com/callback\"\n }\n ], \n \"links\": {}\n}" - }, - "callback_delete": { - "request": { - "uri": "/callbacks/CB5pnz4XnaDpRFGlNMb6u50R" - } - }, - "callback_list": { - "request": { - "uri": "/callbacks" - }, - "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB5pnz4XnaDpRFGlNMb6u50R\", \n \"id\": \"CB5pnz4XnaDpRFGlNMb6u50R\", \n \"links\": {}, \n \"method\": \"post\", \n \"revision\": \"1.1\", \n \"url\": \"http://www.example.com/callback\"\n }\n ], \n \"links\": {}, \n \"meta\": {\n \"first\": \"/callbacks?limit=10&offset=0\", \n \"href\": \"/callbacks?limit=10&offset=0\", \n \"last\": \"/callbacks?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }\n}" - }, - "callback_show": { - "request": { - "uri": "/callbacks/CB5pnz4XnaDpRFGlNMb6u50R" - }, - "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB5pnz4XnaDpRFGlNMb6u50R\", \n \"id\": \"CB5pnz4XnaDpRFGlNMb6u50R\", \n \"links\": {}, \n \"method\": \"post\", \n \"revision\": \"1.1\", \n \"url\": \"http://www.example.com/callback\"\n }\n ], \n \"links\": {}\n}" - }, - "card": { - "address": { - "city": "Balo Alto", - "country_code": "USA", - "line1": null, - "line2": null, - "postal_code": "10023", - "state": null - }, - "avs_postal_match": "yes", - "avs_result": "Postal code matches, but street address not verified.", - "avs_street_match": "yes", - "brand": "Visa", - "created_at": "2014-03-06T19:22:15.395346Z", - "cvv": null, - "cvv_match": null, - "cvv_result": null, - "expiration_month": 4, - "expiration_year": 2016, - "fingerprint": "979a26c05f2fb1c7ae38656312b176da2c9be1d938d442040bc79539caac6c0d", - "href": "/cards/CC4SdMF0rukpL3XdVvpqoC4m", - "id": "CC4SdMF0rukpL3XdVvpqoC4m", - "is_verified": true, - "links": { - "customer": "CU4Q8w3Fcg1ed7rrx2bWcw18" - }, - "meta": {}, - "name": "Benny Riemann", - "number": "xxxxxxxxxxxx1111", - "updated_at": "2014-03-06T19:22:15.395350Z" - }, - "card_associate_to_customer": { - "request": { - "payload": { - "customer": "/customers/CU64R7DS6DwuXYVg9RTskFK8" - }, - "uri": "/cards/CC68IoCVpoFlkugB7xt52p8C" - }, - "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-06T19:23:25.159503Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC68IoCVpoFlkugB7xt52p8C\", \n \"id\": \"CC68IoCVpoFlkugB7xt52p8C\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU64R7DS6DwuXYVg9RTskFK8\"\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-06T19:23:25.633918Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}" - }, - "card_create": { - "request": { - "payload": { - "cvv": "123", - "expiration_month": "12", - "expiration_year": "2020", - "number": "5105105105105100" - }, - "uri": "/cards" - }, - "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-06T19:23:25.159503Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC68IoCVpoFlkugB7xt52p8C\", \n \"id\": \"CC68IoCVpoFlkugB7xt52p8C\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-06T19:23:25.159506Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}" - }, - "card_debit": { - "request": { - "card_href": "/cards/CC68IoCVpoFlkugB7xt52p8C", - "payload": { - "amount": 5000, - "appears_on_statement_as": "Statement text", - "description": "Some descriptive text for the debit in the dashboard" - }, - "uri": "/cards/CC68IoCVpoFlkugB7xt52p8C/debits" - }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-06T19:23:44.148512Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD6BKYhbRzlRhfKSE1DcpqS5\", \n \"id\": \"WD6BKYhbRzlRhfKSE1DcpqS5\", \n \"links\": {\n \"customer\": \"CU64R7DS6DwuXYVg9RTskFK8\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC68IoCVpoFlkugB7xt52p8C\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W274-713-3734\", \n \"updated_at\": \"2014-03-06T19:23:45.554127Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" - }, - "card_delete": { - "request": { - "uri": "/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O" - } - }, - "card_hold_capture": { - "request": { - "card_hold_href": "/card_holds/HL5wAfv8JaMsEn9idXrLZZZT", - "payload": { - "appears_on_statement_as": "ShowsUpOnStmt", - "description": "Some descriptive text for the debit in the dashboard" - }, - "uri": "/card_holds/HL5wAfv8JaMsEn9idXrLZZZT/debits" - }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-03-06T19:22:49.584629Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD5Co9XwRZJg1QtvC5QeekhX\", \n \"id\": \"WD5Co9XwRZJg1QtvC5QeekhX\", \n \"links\": {\n \"customer\": \"CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC5nCSU0yFp3qxR4p6UZST7y\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W493-697-4873\", \n \"updated_at\": \"2014-03-06T19:22:50.608819Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" - }, - "card_hold_create": { - "request": { - "card_href": "/cards/CC5nCSU0yFp3qxR4p6UZST7y", - "payload": { - "amount": 5000, - "description": "Some descriptive text for the debit in the dashboard" - }, - "uri": "/cards/CC5nCSU0yFp3qxR4p6UZST7y/card_holds" - }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-06T19:22:51.758438Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-03-13T19:22:52.154430Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL5Ig892KbmJyDqED5fYsJ8m\", \n \"id\": \"HL5Ig892KbmJyDqED5fYsJ8m\", \n \"links\": {\n \"card\": \"CC5nCSU0yFp3qxR4p6UZST7y\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL671-938-5651\", \n \"updated_at\": \"2014-03-06T19:22:52.362482Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}" - }, - "card_hold_list": { - "request": { - "uri": "/card_holds" - }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-06T19:22:44.421804Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-03-13T19:22:44.661981Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL5wAfv8JaMsEn9idXrLZZZT\", \n \"id\": \"HL5wAfv8JaMsEn9idXrLZZZT\", \n \"links\": {\n \"card\": \"CC5nCSU0yFp3qxR4p6UZST7y\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL116-606-6128\", \n \"updated_at\": \"2014-03-06T19:22:44.816617Z\", \n \"voided_at\": null\n }, \n {\n \"amount\": 10000000, \n \"created_at\": \"2014-03-06T19:22:16.137074Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-03-13T19:22:16.821934Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL50LRASJbs8Kbcwqpu2TFdD\", \n \"id\": \"HL50LRASJbs8Kbcwqpu2TFdD\", \n \"links\": {\n \"card\": \"CC4SdMF0rukpL3XdVvpqoC4m\", \n \"debit\": \"WD50VxLKoVBNdkbovF4D56xX\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL974-747-7939\", \n \"updated_at\": \"2014-03-06T19:22:17.708358Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }, \n \"meta\": {\n \"first\": \"/card_holds?limit=10&offset=0\", \n \"href\": \"/card_holds?limit=10&offset=0\", \n \"last\": \"/card_holds?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 2\n }\n}" - }, - "card_hold_show": { - "request": { - "uri": "/card_holds/HL5wAfv8JaMsEn9idXrLZZZT" - }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-06T19:22:44.421804Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-03-13T19:22:44.661981Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL5wAfv8JaMsEn9idXrLZZZT\", \n \"id\": \"HL5wAfv8JaMsEn9idXrLZZZT\", \n \"links\": {\n \"card\": \"CC5nCSU0yFp3qxR4p6UZST7y\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL116-606-6128\", \n \"updated_at\": \"2014-03-06T19:22:44.816617Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}" - }, - "card_hold_update": { - "request": { - "payload": { - "description": "update this description", - "meta": { - "holding.for": "user1", - "meaningful.key": "some.value" - } - }, - "uri": "/card_holds/HL5wAfv8JaMsEn9idXrLZZZT" - }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-06T19:22:44.421804Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"expires_at\": \"2014-03-13T19:22:44.661981Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL5wAfv8JaMsEn9idXrLZZZT\", \n \"id\": \"HL5wAfv8JaMsEn9idXrLZZZT\", \n \"links\": {\n \"card\": \"CC5nCSU0yFp3qxR4p6UZST7y\", \n \"debit\": null\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL116-606-6128\", \n \"updated_at\": \"2014-03-06T19:22:48.496101Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}" - }, - "card_hold_void": { - "request": { - "payload": { - "is_void": "true" - }, - "uri": "/card_holds/HL5Ig892KbmJyDqED5fYsJ8m" - }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-06T19:22:51.758438Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-03-13T19:22:52.154430Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL5Ig892KbmJyDqED5fYsJ8m\", \n \"id\": \"HL5Ig892KbmJyDqED5fYsJ8m\", \n \"links\": {\n \"card\": \"CC5nCSU0yFp3qxR4p6UZST7y\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL671-938-5651\", \n \"updated_at\": \"2014-03-06T19:22:52.865612Z\", \n \"voided_at\": \"2014-03-06T19:22:52.865616Z\"\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}" - }, - "card_id": "CC4SdMF0rukpL3XdVvpqoC4m", - "card_list": { - "request": { - "uri": "/cards" - }, - "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-06T19:22:55.617351Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O\", \n \"id\": \"CC5Buki6e4Kg4bDVZ3OSfQ8O\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-06T19:22:55.617354Z\"\n }, \n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-06T19:22:43.295192Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC5nCSU0yFp3qxR4p6UZST7y\", \n \"id\": \"CC5nCSU0yFp3qxR4p6UZST7y\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU4Wt8xSbREzV2NWtdVAFGeR\"\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-06T19:22:44.417128Z\"\n }, \n {\n \"address\": {\n \"city\": \"Balo Alto\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"10023\", \n \"state\": null\n }, \n \"avs_postal_match\": \"yes\", \n \"avs_result\": \"Postal code matches, but street address not verified.\", \n \"avs_street_match\": \"yes\", \n \"brand\": \"Visa\", \n \"created_at\": \"2014-03-06T19:22:15.395346Z\", \n \"cvv\": null, \n \"cvv_match\": null, \n \"cvv_result\": null, \n \"expiration_month\": 4, \n \"expiration_year\": 2016, \n \"fingerprint\": \"979a26c05f2fb1c7ae38656312b176da2c9be1d938d442040bc79539caac6c0d\", \n \"href\": \"/cards/CC4SdMF0rukpL3XdVvpqoC4m\", \n \"id\": \"CC4SdMF0rukpL3XdVvpqoC4m\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU4Q8w3Fcg1ed7rrx2bWcw18\"\n }, \n \"meta\": {}, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-03-06T19:22:15.395350Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }, \n \"meta\": {\n \"first\": \"/cards?limit=10&offset=0\", \n \"href\": \"/cards?limit=10&offset=0\", \n \"last\": \"/cards?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 3\n }\n}" - }, - "card_show": { - "request": { - "uri": "/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O" - }, - "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-06T19:22:55.617351Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O\", \n \"id\": \"CC5Buki6e4Kg4bDVZ3OSfQ8O\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-06T19:22:55.617354Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}" - }, - "card_update": { - "request": { - "payload": { - "meta": { - "facebook.user_id": "0192837465", - "my-own-customer-id": "12345", - "twitter.id": "1234987650" - } - }, - "uri": "/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O" - }, - "response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-06T19:22:55.617351Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O\", \n \"id\": \"CC5Buki6e4Kg4bDVZ3OSfQ8O\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {\n \"facebook.user_id\": \"0192837465\", \n \"my-own-customer-id\": \"12345\", \n \"twitter.id\": \"1234987650\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-06T19:22:59.186980Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}" - }, - "card_uri": "/cards/CC4SdMF0rukpL3XdVvpqoC4m", - "cards_uri": "/customers/CU4Q8w3Fcg1ed7rrx2bWcw18/cards", - "credit_list": { - "request": { - "uri": "/credits" - }, - "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-03-06T19:23:08.771807Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR5XXPwA1ckaTDSIg3593sEx\", \n \"id\": \"CR5XXPwA1ckaTDSIg3593sEx\", \n \"links\": {\n \"customer\": \"CU5LVuaZG7gURfbA7TuMNoZa\", \n \"destination\": \"BA5OqdmH8URGBYpilMITWsNW\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR570-678-5174\", \n \"updated_at\": \"2014-03-06T19:23:09.525306Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }, \n \"meta\": {\n \"first\": \"/credits?limit=10&offset=0\", \n \"href\": \"/credits?limit=10&offset=0\", \n \"last\": \"/credits?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }\n}" - }, - "credit_list_bank_account": { - "request": { - "bank_account_href": "/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V", - "uri": "/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V/credits" - }, - "response": "{\n \"links\": {}, \n \"meta\": {\n \"first\": \"/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V/credits?limit=10&offset=0\", \n \"href\": \"/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V/credits?limit=10&offset=0\", \n \"last\": \"/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V/credits?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 0\n }\n}" - }, - "credit_show": { - "request": { - "uri": "/credits/CR5XXPwA1ckaTDSIg3593sEx" - }, - "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-03-06T19:23:08.771807Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR5XXPwA1ckaTDSIg3593sEx\", \n \"id\": \"CR5XXPwA1ckaTDSIg3593sEx\", \n \"links\": {\n \"customer\": \"CU5LVuaZG7gURfbA7TuMNoZa\", \n \"destination\": \"BA5OqdmH8URGBYpilMITWsNW\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR570-678-5174\", \n \"updated_at\": \"2014-03-06T19:23:09.525306Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }\n}" - }, - "credit_update": { - "request": { - "payload": { - "description": "New description for credit", - "meta": { - "anykey": "valuegoeshere", - "facebook.id": "1234567890" - } - }, - "uri": "/credits/CR5XXPwA1ckaTDSIg3593sEx" - }, - "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-03-06T19:23:08.771807Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for credit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR5XXPwA1ckaTDSIg3593sEx\", \n \"id\": \"CR5XXPwA1ckaTDSIg3593sEx\", \n \"links\": {\n \"customer\": \"CU5LVuaZG7gURfbA7TuMNoZa\", \n \"destination\": \"BA5OqdmH8URGBYpilMITWsNW\", \n \"order\": null\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR570-678-5174\", \n \"updated_at\": \"2014-03-06T19:23:14.259690Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }\n}" - }, - "customer": { - "address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "business_name": null, - "created_at": "2014-03-06T19:22:13.513707Z", - "dob_month": null, - "dob_year": null, - "ein": null, - "email": null, - "href": "/customers/CU4Q8w3Fcg1ed7rrx2bWcw18", - "id": "CU4Q8w3Fcg1ed7rrx2bWcw18", - "links": { - "destination": null, - "source": null - }, - "merchant_status": "no-match", - "meta": {}, - "name": null, - "phone": null, - "ssn_last4": null, - "updated_at": "2014-03-06T19:22:13.936010Z" - }, - "customer_create": { - "request": { - "payload": { - "address": { - "postal_code": "48120" - }, - "dob_month": 7, - "dob_year": 1963, - "name": "Henry Ford" - }, - "uri": "/customers" - }, - "response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:23:21.728225Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU64R7DS6DwuXYVg9RTskFK8\", \n \"id\": \"CU64R7DS6DwuXYVg9RTskFK8\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-06T19:23:22.907102Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n}" - }, - "customer_delete": { - "request": { - "uri": "/customers/CU64R7DS6DwuXYVg9RTskFK8" - } - }, - "customer_list": { - "request": { - "uri": "/customers" - }, - "response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:23:15.982885Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU5YopHN07Ul5XQnILUifeQT\", \n \"id\": \"CU5YopHN07Ul5XQnILUifeQT\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-06T19:23:16.724050Z\"\n }, \n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:23:04.895882Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU5LVuaZG7gURfbA7TuMNoZa\", \n \"id\": \"CU5LVuaZG7gURfbA7TuMNoZa\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-06T19:23:05.747337Z\"\n }, \n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:22:13.513707Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU4Q8w3Fcg1ed7rrx2bWcw18\", \n \"id\": \"CU4Q8w3Fcg1ed7rrx2bWcw18\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"no-match\", \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-06T19:22:13.936010Z\"\n }, \n {\n \"address\": {\n \"city\": \"Nowhere\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"90210\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:22:12.312268Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"id\": \"CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"phone\": \"+16505551212\", \n \"ssn_last4\": \"xxxx\", \n \"updated_at\": \"2014-03-06T19:22:12.718847Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }, \n \"meta\": {\n \"first\": \"/customers?limit=10&offset=0\", \n \"href\": \"/customers?limit=10&offset=0\", \n \"last\": \"/customers?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 4\n }\n}" - }, - "customer_show": { - "request": { - "uri": "/customers/CU5YopHN07Ul5XQnILUifeQT" - }, - "response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:23:15.982885Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU5YopHN07Ul5XQnILUifeQT\", \n \"id\": \"CU5YopHN07Ul5XQnILUifeQT\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-06T19:23:16.724050Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n}" - }, - "customer_update": { - "request": { - "payload": { - "email": "email@newdomain.com", - "meta": { - "shipping-preference": "ground" - } - }, - "uri": "/customers/CU5YopHN07Ul5XQnILUifeQT" - }, - "response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:23:15.982885Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": \"email@newdomain.com\", \n \"href\": \"/customers/CU5YopHN07Ul5XQnILUifeQT\", \n \"id\": \"CU5YopHN07Ul5XQnILUifeQT\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {\n \"shipping-preference\": \"ground\"\n }, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-06T19:23:20.140160Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n}" - }, - "customers_uri": "/customers", - "debit": { - "debits": [ - { - "amount": 10000000, - "appears_on_statement_as": "BAL*example.com", - "created_at": "2014-03-06T19:22:16.279376Z", - "currency": "USD", - "description": null, - "failure_reason": null, - "failure_reason_code": null, - "href": "/debits/WD50VxLKoVBNdkbovF4D56xX", - "id": "WD50VxLKoVBNdkbovF4D56xX", - "links": { - "customer": "CU4Q8w3Fcg1ed7rrx2bWcw18", - "dispute": null, - "order": null, - "source": "CC4SdMF0rukpL3XdVvpqoC4m" - }, - "meta": {}, - "status": "succeeded", - "transaction_number": "W465-333-0144", - "updated_at": "2014-03-06T19:22:17.695058Z" - } - ], - "links": { - "debits.customer": "/customers/{debits.customer}", - "debits.dispute": "/disputes/{debits.dispute}", - "debits.events": "/debits/{debits.id}/events", - "debits.order": "/orders/{debits.order}", - "debits.refunds": "/debits/{debits.id}/refunds", - "debits.source": "/resources/{debits.source}" - } - }, - "debit_list": { - "request": { - "uri": "/debits" - }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-06T19:23:01.594300Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD5PTwr2bwJLIyJio1pEpYBr\", \n \"id\": \"WD5PTwr2bwJLIyJio1pEpYBr\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC5Buki6e4Kg4bDVZ3OSfQ8O\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W986-715-3969\", \n \"updated_at\": \"2014-03-06T19:23:02.987552Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-03-06T19:22:49.584629Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD5Co9XwRZJg1QtvC5QeekhX\", \n \"id\": \"WD5Co9XwRZJg1QtvC5QeekhX\", \n \"links\": {\n \"customer\": \"CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC5nCSU0yFp3qxR4p6UZST7y\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W493-697-4873\", \n \"updated_at\": \"2014-03-06T19:22:50.608819Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-06T19:22:35.961050Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD5qunOPeKdCnWXIg9EHyHge\", \n \"id\": \"WD5qunOPeKdCnWXIg9EHyHge\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"BA50LpPrCTB63Ecm0wEgdOQM\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W051-293-0823\", \n \"updated_at\": \"2014-03-06T19:22:36.418154Z\"\n }, \n {\n \"amount\": 10000000, \n \"appears_on_statement_as\": \"BAL*example.com\", \n \"created_at\": \"2014-03-06T19:22:16.279376Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD50VxLKoVBNdkbovF4D56xX\", \n \"id\": \"WD50VxLKoVBNdkbovF4D56xX\", \n \"links\": {\n \"customer\": \"CU4Q8w3Fcg1ed7rrx2bWcw18\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC4SdMF0rukpL3XdVvpqoC4m\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W465-333-0144\", \n \"updated_at\": \"2014-03-06T19:22:17.695058Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }, \n \"meta\": {\n \"first\": \"/debits?limit=10&offset=0\", \n \"href\": \"/debits?limit=10&offset=0\", \n \"last\": \"/debits?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 4\n }\n}" - }, - "debit_show": { - "request": { - "uri": "/debits/WD5PTwr2bwJLIyJio1pEpYBr" - }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-06T19:23:01.594300Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD5PTwr2bwJLIyJio1pEpYBr\", \n \"id\": \"WD5PTwr2bwJLIyJio1pEpYBr\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC5Buki6e4Kg4bDVZ3OSfQ8O\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W986-715-3969\", \n \"updated_at\": \"2014-03-06T19:23:02.987552Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" - }, - "debit_update": { - "request": { - "payload": { - "description": "New description for debit", - "meta": { - "anykey": "valuegoeshere", - "facebook.id": "1234567890" - } - }, - "uri": "/debits/WD5PTwr2bwJLIyJio1pEpYBr" - }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-06T19:23:01.594300Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for debit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD5PTwr2bwJLIyJio1pEpYBr\", \n \"id\": \"WD5PTwr2bwJLIyJio1pEpYBr\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC5Buki6e4Kg4bDVZ3OSfQ8O\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W986-715-3969\", \n \"updated_at\": \"2014-03-06T19:23:33.383170Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}" - }, - "event_list": { - "request": { - "uri": "/events" - }, - "response": "{\n \"events\": [\n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"customers\": [\n {\n \"address\": {\n \"city\": \"Nowhere\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"90210\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:22:12.312268Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"id\": \"CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"phone\": \"+16505551212\", \n \"ssn_last4\": \"xxxx\", \n \"updated_at\": \"2014-03-06T19:22:12.718847Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n }, \n \"href\": \"/events/EVa26caeeea56411e3838802219cc35fd9\", \n \"id\": \"EVa26caeeea56411e3838802219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:12.718000Z\", \n \"type\": \"account.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxxxxxxx5555\", \n \"account_type\": \"CHECKING\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"WELLS FARGO BANK NA\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-03-06T19:22:12.982029Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA4WYHt1wCRMAJGm6k0BDaeR\", \n \"id\": \"BA4WYHt1wCRMAJGm6k0BDaeR\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU4Wt8xSbREzV2NWtdVAFGeR\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-03-06T19:22:12.982032Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n }, \n \"href\": \"/events/EVa2d381faa56411e3838802219cc35fd9\", \n \"id\": \"EVa2d381faa56411e3838802219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:12.982000Z\", \n \"type\": \"bank_account.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:22:13.513707Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU4Q8w3Fcg1ed7rrx2bWcw18\", \n \"id\": \"CU4Q8w3Fcg1ed7rrx2bWcw18\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"no-match\", \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-06T19:22:13.936010Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n }, \n \"href\": \"/events/EV9f0ef1c6a56411e3b231026ba7c1aba6\", \n \"id\": \"EV9f0ef1c6a56411e3b231026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:13.936000Z\", \n \"type\": \"account.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"cards\": [\n {\n \"address\": {\n \"city\": \"Balo Alto\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"10023\", \n \"state\": null\n }, \n \"avs_postal_match\": \"yes\", \n \"avs_result\": \"Postal code matches, but street address not verified.\", \n \"avs_street_match\": \"yes\", \n \"brand\": \"Visa\", \n \"created_at\": \"2014-03-06T19:22:15.395346Z\", \n \"cvv\": null, \n \"cvv_match\": null, \n \"cvv_result\": null, \n \"expiration_month\": 4, \n \"expiration_year\": 2016, \n \"fingerprint\": \"979a26c05f2fb1c7ae38656312b176da2c9be1d938d442040bc79539caac6c0d\", \n \"href\": \"/cards/CC4SdMF0rukpL3XdVvpqoC4m\", \n \"id\": \"CC4SdMF0rukpL3XdVvpqoC4m\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU4Q8w3Fcg1ed7rrx2bWcw18\"\n }, \n \"meta\": {}, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-03-06T19:22:15.395350Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n }, \n \"href\": \"/events/EVa034f640a56411e3ac79026ba7c1aba6\", \n \"id\": \"EVa034f640a56411e3ac79026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:15.395000Z\", \n \"type\": \"card.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"card_holds\": [\n {\n \"amount\": 10000000, \n \"created_at\": \"2014-03-06T19:22:16.137074Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL50LRASJbs8Kbcwqpu2TFdD\", \n \"id\": \"HL50LRASJbs8Kbcwqpu2TFdD\", \n \"links\": {\n \"card\": \"CC4SdMF0rukpL3XdVvpqoC4m\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"failed\", \n \"transaction_number\": \"HL974-747-7939\", \n \"updated_at\": \"2014-03-06T19:22:16.137078Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n }, \n \"href\": \"/events/EVa4c0c84ca56411e3a10e02219cc35fd9\", \n \"id\": \"EVa4c0c84ca56411e3a10e02219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:16.137000Z\", \n \"type\": \"hold.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"card_holds\": [\n {\n \"amount\": 10000000, \n \"created_at\": \"2014-03-06T19:22:16.137074Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-03-13T19:22:16.821934Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL50LRASJbs8Kbcwqpu2TFdD\", \n \"id\": \"HL50LRASJbs8Kbcwqpu2TFdD\", \n \"links\": {\n \"card\": \"CC4SdMF0rukpL3XdVvpqoC4m\", \n \"debit\": \"WD50VxLKoVBNdkbovF4D56xX\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL974-747-7939\", \n \"updated_at\": \"2014-03-06T19:22:17.708358Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n }, \n \"href\": \"/events/EVa5363b72a56411e3a10e02219cc35fd9\", \n \"id\": \"EVa5363b72a56411e3a10e02219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:17.708000Z\", \n \"type\": \"hold.updated\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"debits\": [\n {\n \"amount\": 10000000, \n \"appears_on_statement_as\": \"BAL*example.com\", \n \"created_at\": \"2014-03-06T19:22:16.279376Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD50VxLKoVBNdkbovF4D56xX\", \n \"id\": \"WD50VxLKoVBNdkbovF4D56xX\", \n \"links\": {\n \"customer\": \"CU4Q8w3Fcg1ed7rrx2bWcw18\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC4SdMF0rukpL3XdVvpqoC4m\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W465-333-0144\", \n \"updated_at\": \"2014-03-06T19:22:17.695058Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n }, \n \"href\": \"/events/EVa53707c8a56411e3a10e02219cc35fd9\", \n \"id\": \"EVa53707c8a56411e3a10e02219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:17.695000Z\", \n \"type\": \"debit.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"card_holds\": [\n {\n \"amount\": 10000000, \n \"created_at\": \"2014-03-06T19:22:16.137074Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-03-13T19:22:16.821934Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL50LRASJbs8Kbcwqpu2TFdD\", \n \"id\": \"HL50LRASJbs8Kbcwqpu2TFdD\", \n \"links\": {\n \"card\": \"CC4SdMF0rukpL3XdVvpqoC4m\", \n \"debit\": \"WD50VxLKoVBNdkbovF4D56xX\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL974-747-7939\", \n \"updated_at\": \"2014-03-06T19:22:17.708358Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n }, \n \"href\": \"/events/EVa0b420d2a56411e3b09706d4d32471fd\", \n \"id\": \"EVa0b420d2a56411e3b09706d4d32471fd\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:17.708000Z\", \n \"type\": \"hold.captured\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"debits\": [\n {\n \"amount\": 10000000, \n \"appears_on_statement_as\": \"BAL*example.com\", \n \"created_at\": \"2014-03-06T19:22:16.279376Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD50VxLKoVBNdkbovF4D56xX\", \n \"id\": \"WD50VxLKoVBNdkbovF4D56xX\", \n \"links\": {\n \"customer\": \"CU4Q8w3Fcg1ed7rrx2bWcw18\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC4SdMF0rukpL3XdVvpqoC4m\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W465-333-0144\", \n \"updated_at\": \"2014-03-06T19:22:17.695058Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n }, \n \"href\": \"/events/EVa0ce9b24a56411e3aae506d4d32471fd\", \n \"id\": \"EVa0ce9b24a56411e3aae506d4d32471fd\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:17.695000Z\", \n \"type\": \"debit.succeeded\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"CHECKING\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-06T19:22:22.966278Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM\", \n \"id\": \"BA50LpPrCTB63Ecm0wEgdOQM\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-06T19:22:22.966284Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n }, \n \"href\": \"/events/EVa4bd5a9aa56411e38b3b026ba7f8ec28\", \n \"id\": \"EVa4bd5a9aa56411e38b3b026ba7f8ec28\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:22.966000Z\", \n \"type\": \"bank_account.created\"\n }\n ], \n \"links\": {\n \"events.callbacks\": \"/events/{events.self}/callbacks\"\n }, \n \"meta\": {\n \"first\": \"/events?limit=10&offset=0\", \n \"href\": \"/events?limit=10&offset=0\", \n \"last\": \"/events?limit=10&offset=50\", \n \"limit\": 10, \n \"next\": \"/events?limit=10&offset=10\", \n \"offset\": 0, \n \"previous\": null, \n \"total\": 57\n }\n}" - }, - "event_show": { - "request": { - "uri": "/events/EVa26caeeea56411e3838802219cc35fd9" - }, - "response": "{\n \"events\": [\n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"customers\": [\n {\n \"address\": {\n \"city\": \"Nowhere\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"90210\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:22:12.312268Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"id\": \"CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"phone\": \"+16505551212\", \n \"ssn_last4\": \"xxxx\", \n \"updated_at\": \"2014-03-06T19:22:12.718847Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n }, \n \"href\": \"/events/EVa26caeeea56411e3838802219cc35fd9\", \n \"id\": \"EVa26caeeea56411e3838802219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:12.718000Z\", \n \"type\": \"account.created\"\n }\n ], \n \"links\": {\n \"events.callbacks\": \"/events/{events.self}/callbacks\"\n }\n}" - }, - "marketplace": { - "created_at": "2014-03-06T19:22:12.289111Z", - "domain_url": "example.com", - "href": "/marketplaces/TEST-MP4WroYryqRegCZd9nhFMgyJ", - "id": "TEST-MP4WroYryqRegCZd9nhFMgyJ", - "in_escrow": 0, - "links": { - "owner_customer": "CU4Wt8xSbREzV2NWtdVAFGeR" - }, - "meta": {}, - "name": "Test Marketplace", - "production": false, - "support_email_address": "support@example.com", - "support_phone_number": "+16505551234", - "unsettled_fees": 0, - "updated_at": "2014-03-06T19:22:13.041828Z" - }, - "marketplace_id": "TEST-MP4WroYryqRegCZd9nhFMgyJ", - "marketplace_uri": "/marketplaces/TEST-MP4WroYryqRegCZd9nhFMgyJ", - "order_create": { - "request": { - "customer_href": "/customers/CU64R7DS6DwuXYVg9RTskFK8", - "payload": { - "description": "Order #12341234" - }, - "uri": "/customers/CU64R7DS6DwuXYVg9RTskFK8/orders" - }, - "response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-03-06T19:23:39.207291Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR6wcEVkOymvs4PairiGEcIx\", \n \"id\": \"OR6wcEVkOymvs4PairiGEcIx\", \n \"links\": {\n \"merchant\": \"CU64R7DS6DwuXYVg9RTskFK8\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-06T19:23:39.207294Z\"\n }\n ]\n}" - }, - "order_list": { - "request": { - "uri": "/orders" - }, - "response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"meta\": {\n \"first\": \"/orders?limit=10&offset=0\", \n \"href\": \"/orders?limit=10&offset=0\", \n \"last\": \"/orders?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-03-06T19:23:39.207291Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR6wcEVkOymvs4PairiGEcIx\", \n \"id\": \"OR6wcEVkOymvs4PairiGEcIx\", \n \"links\": {\n \"merchant\": \"CU64R7DS6DwuXYVg9RTskFK8\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-06T19:23:39.207294Z\"\n }\n ]\n}" - }, - "order_show": { - "request": { - "uri": "/orders/OR6wcEVkOymvs4PairiGEcIx" - }, - "response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-03-06T19:23:39.207291Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR6wcEVkOymvs4PairiGEcIx\", \n \"id\": \"OR6wcEVkOymvs4PairiGEcIx\", \n \"links\": {\n \"merchant\": \"CU64R7DS6DwuXYVg9RTskFK8\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-06T19:23:39.207294Z\"\n }\n ]\n}" - }, - "order_update": { - "request": { - "payload": { - "description": "New description for order", - "meta": { - "anykey": "valuegoeshere", - "product.id": "1234567890" - } - }, - "uri": "/orders/OR6wcEVkOymvs4PairiGEcIx" - }, - "response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-03-06T19:23:39.207291Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"New description for order\", \n \"href\": \"/orders/OR6wcEVkOymvs4PairiGEcIx\", \n \"id\": \"OR6wcEVkOymvs4PairiGEcIx\", \n \"links\": {\n \"merchant\": \"CU64R7DS6DwuXYVg9RTskFK8\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"product.id\": \"1234567890\"\n }, \n \"updated_at\": \"2014-03-06T19:23:42.673919Z\"\n }\n ]\n}" - }, - "refund_create": { - "request": { - "debit_href": "/debits/WD6BKYhbRzlRhfKSE1DcpqS5", - "payload": { - "amount": 3000, - "description": "Refund for Order #1111", - "meta": { - "fulfillment.item.condition": "OK", - "merchant.feedback": "positive", - "user.refund_reason": "not happy with product" - } - }, - "uri": "/debits/WD6BKYhbRzlRhfKSE1DcpqS5/refunds" - }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:46.176138Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF6HsnqferSuES9VZEWrthG2\", \n \"id\": \"RF6HsnqferSuES9VZEWrthG2\", \n \"links\": {\n \"debit\": \"WD6BKYhbRzlRhfKSE1DcpqS5\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF348-549-7723\", \n \"updated_at\": \"2014-03-06T19:23:48.234584Z\"\n }\n ]\n}" - }, - "refund_list": { - "request": { - "uri": "/refunds" - }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"meta\": {\n \"first\": \"/refunds?limit=10&offset=0\", \n \"href\": \"/refunds?limit=10&offset=0\", \n \"last\": \"/refunds?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:46.176138Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF6HsnqferSuES9VZEWrthG2\", \n \"id\": \"RF6HsnqferSuES9VZEWrthG2\", \n \"links\": {\n \"debit\": \"WD6BKYhbRzlRhfKSE1DcpqS5\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF348-549-7723\", \n \"updated_at\": \"2014-03-06T19:23:48.234584Z\"\n }\n ]\n}" - }, - "refund_show": { - "request": { - "uri": "/refunds/RF6HsnqferSuES9VZEWrthG2" - }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:46.176138Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF6HsnqferSuES9VZEWrthG2\", \n \"id\": \"RF6HsnqferSuES9VZEWrthG2\", \n \"links\": {\n \"debit\": \"WD6BKYhbRzlRhfKSE1DcpqS5\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF348-549-7723\", \n \"updated_at\": \"2014-03-06T19:23:48.234584Z\"\n }\n ]\n}" - }, - "refund_update": { - "request": { - "payload": { - "description": "update this description", - "meta": { - "refund.reason": "user not happy with product", - "user.notes": "very polite on the phone", - "user.refund.count": "3" - } - }, - "uri": "/refunds/RF6HsnqferSuES9VZEWrthG2" - }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:46.176138Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"href\": \"/refunds/RF6HsnqferSuES9VZEWrthG2\", \n \"id\": \"RF6HsnqferSuES9VZEWrthG2\", \n \"links\": {\n \"debit\": \"WD6BKYhbRzlRhfKSE1DcpqS5\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"refund.reason\": \"user not happy with product\", \n \"user.notes\": \"very polite on the phone\", \n \"user.refund.count\": \"3\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF348-549-7723\", \n \"updated_at\": \"2014-03-06T19:23:53.123358Z\"\n }\n ]\n}" - }, - "reversal_create": { - "request": { - "credit_href": "/credits/CR6NpuEtezCdLTYngDrSEODv", - "payload": { - "amount": 3000, - "description": "Reversal for Order #1111", - "meta": { - "fulfillment.item.condition": "OK", - "merchant.feedback": "positive", - "user.refund_reason": "not happy with product" - } - }, - "uri": "/credits/CR6NpuEtezCdLTYngDrSEODv/reversals" - }, - "response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:55.596399Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"id\": \"RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"links\": {\n \"credit\": \"CR6NpuEtezCdLTYngDrSEODv\", \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV542-861-3670\", \n \"updated_at\": \"2014-03-06T19:23:56.470321Z\"\n }\n ]\n}" - }, - "reversal_list": { - "request": { - "uri": "/reversals" - }, - "response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"meta\": {\n \"first\": \"/reversals?limit=10&offset=0\", \n \"href\": \"/reversals?limit=10&offset=0\", \n \"last\": \"/reversals?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:55.596399Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"id\": \"RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"links\": {\n \"credit\": \"CR6NpuEtezCdLTYngDrSEODv\", \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV542-861-3670\", \n \"updated_at\": \"2014-03-06T19:23:56.470321Z\"\n }\n ]\n}" - }, - "reversal_show": { - "request": { - "uri": "/reversals/RV6OCxJ1UhkG84is6H9PHjkZ" - }, - "response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:55.596399Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"id\": \"RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"links\": {\n \"credit\": \"CR6NpuEtezCdLTYngDrSEODv\", \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV542-861-3670\", \n \"updated_at\": \"2014-03-06T19:23:56.470321Z\"\n }\n ]\n}" - }, - "reversal_update": { - "request": { - "payload": { - "description": "update this description", - "meta": { - "refund.reason": "user not happy with product", - "user.notes": "very polite on the phone", - "user.satisfaction": "6" - } - }, - "uri": "/reversals/RV6OCxJ1UhkG84is6H9PHjkZ" - }, - "response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:55.596399Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"id\": \"RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"links\": {\n \"credit\": \"CR6NpuEtezCdLTYngDrSEODv\", \n \"order\": null\n }, \n \"meta\": {\n \"refund.reason\": \"user not happy with product\", \n \"user.notes\": \"very polite on the phone\", \n \"user.satisfaction\": \"6\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV542-861-3670\", \n \"updated_at\": \"2014-03-06T19:24:00.271458Z\"\n }\n ]\n}" - }, - "secret": "ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul" -} \ No newline at end of file From 2995b86950eed8b4e8949f493c7be123e5224615 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Fri, 18 Apr 2014 13:31:34 -0600 Subject: [PATCH 34/93] Scenario updates --- scenarios/_mj/api_key_create/executable.py | 2 +- scenarios/_mj/api_key_create/python.mako | 4 ++-- scenarios/api_key_create/executable.py | 2 +- scenarios/api_key_create/python.mako | 4 ++-- scenarios/api_key_delete/executable.py | 4 ++-- scenarios/api_key_delete/python.mako | 4 ++-- scenarios/api_key_list/executable.py | 2 +- scenarios/api_key_list/python.mako | 2 +- scenarios/api_key_show/executable.py | 4 ++-- scenarios/api_key_show/python.mako | 6 +++--- .../bank_account_associate_to_customer/executable.py | 6 +++--- scenarios/bank_account_associate_to_customer/python.mako | 8 ++++---- scenarios/bank_account_create/executable.py | 2 +- scenarios/bank_account_create/python.mako | 4 ++-- scenarios/bank_account_credit/executable.py | 4 ++-- scenarios/bank_account_credit/python.mako | 6 +++--- scenarios/bank_account_debit/executable.py | 4 ++-- scenarios/bank_account_debit/python.mako | 6 +++--- scenarios/bank_account_delete/executable.py | 4 ++-- scenarios/bank_account_delete/python.mako | 4 ++-- scenarios/bank_account_list/executable.py | 2 +- scenarios/bank_account_list/python.mako | 2 +- scenarios/bank_account_show/executable.py | 4 ++-- scenarios/bank_account_show/python.mako | 6 +++--- scenarios/bank_account_update/executable.py | 4 ++-- scenarios/bank_account_update/python.mako | 6 +++--- scenarios/bank_account_verification_create/executable.py | 4 ++-- scenarios/bank_account_verification_create/python.mako | 6 +++--- scenarios/bank_account_verification_show/executable.py | 4 ++-- scenarios/bank_account_verification_show/python.mako | 6 +++--- scenarios/bank_account_verification_update/executable.py | 4 ++-- scenarios/bank_account_verification_update/python.mako | 6 +++--- scenarios/callback_create/executable.py | 2 +- scenarios/callback_create/python.mako | 4 ++-- scenarios/callback_delete/executable.py | 4 ++-- scenarios/callback_delete/python.mako | 4 ++-- scenarios/callback_list/executable.py | 2 +- scenarios/callback_list/python.mako | 2 +- scenarios/callback_show/executable.py | 4 ++-- scenarios/callback_show/python.mako | 6 +++--- scenarios/card_associate_to_customer/executable.py | 6 +++--- scenarios/card_associate_to_customer/python.mako | 8 ++++---- scenarios/card_create/executable.py | 2 +- scenarios/card_create/python.mako | 4 ++-- scenarios/card_debit/executable.py | 4 ++-- scenarios/card_debit/python.mako | 6 +++--- scenarios/card_delete/executable.py | 4 ++-- scenarios/card_delete/python.mako | 4 ++-- scenarios/card_hold_capture/executable.py | 4 ++-- scenarios/card_hold_capture/python.mako | 6 +++--- scenarios/card_hold_create/executable.py | 4 ++-- scenarios/card_hold_create/python.mako | 6 +++--- scenarios/card_hold_list/executable.py | 2 +- scenarios/card_hold_list/python.mako | 2 +- scenarios/card_hold_show/executable.py | 4 ++-- scenarios/card_hold_show/python.mako | 6 +++--- scenarios/card_hold_update/executable.py | 4 ++-- scenarios/card_hold_update/python.mako | 6 +++--- scenarios/card_hold_void/executable.py | 4 ++-- scenarios/card_hold_void/python.mako | 6 +++--- scenarios/card_list/executable.py | 2 +- scenarios/card_list/python.mako | 2 +- scenarios/card_show/executable.py | 4 ++-- scenarios/card_show/python.mako | 6 +++--- scenarios/card_update/executable.py | 4 ++-- scenarios/card_update/python.mako | 6 +++--- scenarios/credit_list/executable.py | 2 +- scenarios/credit_list/python.mako | 2 +- scenarios/credit_list_bank_account/executable.py | 4 ++-- scenarios/credit_list_bank_account/python.mako | 4 ++-- scenarios/credit_show/executable.py | 4 ++-- scenarios/credit_show/python.mako | 6 +++--- scenarios/credit_update/executable.py | 4 ++-- scenarios/credit_update/python.mako | 6 +++--- scenarios/customer_create/executable.py | 2 +- scenarios/customer_create/python.mako | 4 ++-- scenarios/customer_delete/executable.py | 4 ++-- scenarios/customer_delete/python.mako | 4 ++-- scenarios/customer_list/executable.py | 2 +- scenarios/customer_list/python.mako | 2 +- scenarios/customer_show/executable.py | 4 ++-- scenarios/customer_show/python.mako | 6 +++--- scenarios/customer_update/executable.py | 4 ++-- scenarios/customer_update/python.mako | 6 +++--- scenarios/debit_list/executable.py | 2 +- scenarios/debit_list/python.mako | 2 +- scenarios/debit_show/executable.py | 4 ++-- scenarios/debit_show/python.mako | 6 +++--- scenarios/debit_update/executable.py | 4 ++-- scenarios/debit_update/python.mako | 6 +++--- scenarios/event_list/executable.py | 2 +- scenarios/event_list/python.mako | 2 +- scenarios/event_show/executable.py | 4 ++-- scenarios/event_show/python.mako | 6 +++--- scenarios/order_create/executable.py | 4 ++-- scenarios/order_create/python.mako | 6 +++--- scenarios/order_list/executable.py | 2 +- scenarios/order_list/python.mako | 2 +- scenarios/order_show/executable.py | 4 ++-- scenarios/order_show/python.mako | 6 +++--- scenarios/order_update/executable.py | 4 ++-- scenarios/order_update/python.mako | 6 +++--- scenarios/refund_create/executable.py | 4 ++-- scenarios/refund_create/python.mako | 6 +++--- scenarios/refund_list/executable.py | 2 +- scenarios/refund_list/python.mako | 2 +- scenarios/refund_show/executable.py | 4 ++-- scenarios/refund_show/python.mako | 6 +++--- scenarios/refund_update/executable.py | 4 ++-- scenarios/refund_update/python.mako | 6 +++--- scenarios/reversal_create/executable.py | 4 ++-- scenarios/reversal_create/python.mako | 6 +++--- scenarios/reversal_list/executable.py | 2 +- scenarios/reversal_list/python.mako | 2 +- scenarios/reversal_show/executable.py | 4 ++-- scenarios/reversal_show/python.mako | 6 +++--- scenarios/reversal_update/executable.py | 4 ++-- scenarios/reversal_update/python.mako | 6 +++--- 118 files changed, 245 insertions(+), 245 deletions(-) diff --git a/scenarios/_mj/api_key_create/executable.py b/scenarios/_mj/api_key_create/executable.py index 4c08c79..bd23f6e 100644 --- a/scenarios/_mj/api_key_create/executable.py +++ b/scenarios/_mj/api_key_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') api_key = balanced.APIKey() api_key.save() \ No newline at end of file diff --git a/scenarios/_mj/api_key_create/python.mako b/scenarios/_mj/api_key_create/python.mako index 6f2692e..cb275ba 100644 --- a/scenarios/_mj/api_key_create/python.mako +++ b/scenarios/_mj/api_key_create/python.mako @@ -4,10 +4,10 @@ balanced.APIKey % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') api_key = balanced.APIKey() api_key.save() % elif mode == 'response': -APIKey(links={}, created_at=u'2014-03-06T19:22:18.256643Z', secret=u'ak-test-4bQUCg96rUwLV8FZXSTeq8WUSqROO9yT', href=u'/api_keys/AK4Vt1mJyCtjdSiGgqAebarR', meta={}, id=u'AK4Vt1mJyCtjdSiGgqAebarR') +APIKey(links={}, created_at=u'2014-04-17T22:38:39.103798Z', secret=u'ak-test-1DSRO02OhucdVxve32NKh57AHNr4kmhb', href=u'/api_keys/AK7KGjv4YKtOf03Lqm0f84V', meta={}, id=u'AK7KGjv4YKtOf03Lqm0f84V') % endif \ No newline at end of file diff --git a/scenarios/api_key_create/executable.py b/scenarios/api_key_create/executable.py index 4695624..8b4f2c6 100644 --- a/scenarios/api_key_create/executable.py +++ b/scenarios/api_key_create/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') api_key = balanced.APIKey().save() \ No newline at end of file diff --git a/scenarios/api_key_create/python.mako b/scenarios/api_key_create/python.mako index fd36c88..08a1455 100644 --- a/scenarios/api_key_create/python.mako +++ b/scenarios/api_key_create/python.mako @@ -3,9 +3,9 @@ balanced.APIKey() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') api_key = balanced.APIKey().save() % elif mode == 'response': -APIKey(links={}, created_at=u'2014-03-06T19:22:18.256643Z', secret=u'ak-test-4bQUCg96rUwLV8FZXSTeq8WUSqROO9yT', href=u'/api_keys/AK4Vt1mJyCtjdSiGgqAebarR', meta={}, id=u'AK4Vt1mJyCtjdSiGgqAebarR') +APIKey(links={}, created_at=u'2014-04-17T22:38:39.103798Z', secret=u'ak-test-1DSRO02OhucdVxve32NKh57AHNr4kmhb', href=u'/api_keys/AK7KGjv4YKtOf03Lqm0f84V', meta={}, id=u'AK7KGjv4YKtOf03Lqm0f84V') % endif \ No newline at end of file diff --git a/scenarios/api_key_delete/executable.py b/scenarios/api_key_delete/executable.py index a7cd096..f189254 100644 --- a/scenarios/api_key_delete/executable.py +++ b/scenarios/api_key_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -key = balanced.APIKey.fetch('/api_keys/AK4Vt1mJyCtjdSiGgqAebarR') +key = balanced.APIKey.fetch('/api_keys/AK7KGjv4YKtOf03Lqm0f84V') key.delete() \ No newline at end of file diff --git a/scenarios/api_key_delete/python.mako b/scenarios/api_key_delete/python.mako index c415318..9d77f7a 100644 --- a/scenarios/api_key_delete/python.mako +++ b/scenarios/api_key_delete/python.mako @@ -3,9 +3,9 @@ balanced.APIKey().delete() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -key = balanced.APIKey.fetch('/api_keys/AK4Vt1mJyCtjdSiGgqAebarR') +key = balanced.APIKey.fetch('/api_keys/AK7KGjv4YKtOf03Lqm0f84V') key.delete() % elif mode == 'response': diff --git a/scenarios/api_key_list/executable.py b/scenarios/api_key_list/executable.py index c7a483a..93eec3d 100644 --- a/scenarios/api_key_list/executable.py +++ b/scenarios/api_key_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') keys = balanced.APIKey.query \ No newline at end of file diff --git a/scenarios/api_key_list/python.mako b/scenarios/api_key_list/python.mako index bba4a21..cd78030 100644 --- a/scenarios/api_key_list/python.mako +++ b/scenarios/api_key_list/python.mako @@ -4,7 +4,7 @@ balanced.APIKey.query % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') keys = balanced.APIKey.query % elif mode == 'response': diff --git a/scenarios/api_key_show/executable.py b/scenarios/api_key_show/executable.py index dad1fe4..2d9d46a 100644 --- a/scenarios/api_key_show/executable.py +++ b/scenarios/api_key_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -key = balanced.APIKey.fetch('/api_keys/AK4Vt1mJyCtjdSiGgqAebarR') \ No newline at end of file +key = balanced.APIKey.fetch('/api_keys/AK7KGjv4YKtOf03Lqm0f84V') \ No newline at end of file diff --git a/scenarios/api_key_show/python.mako b/scenarios/api_key_show/python.mako index da13b58..1b676d7 100644 --- a/scenarios/api_key_show/python.mako +++ b/scenarios/api_key_show/python.mako @@ -4,9 +4,9 @@ balanced.APIKey.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -key = balanced.APIKey.fetch('/api_keys/AK4Vt1mJyCtjdSiGgqAebarR') +key = balanced.APIKey.fetch('/api_keys/AK7KGjv4YKtOf03Lqm0f84V') % elif mode == 'response': -APIKey(created_at=u'2014-03-06T19:22:18.256643Z', href=u'/api_keys/AK4Vt1mJyCtjdSiGgqAebarR', meta={}, id=u'AK4Vt1mJyCtjdSiGgqAebarR', links={}) +APIKey(created_at=u'2014-04-17T22:38:39.103798Z', href=u'/api_keys/AK7KGjv4YKtOf03Lqm0f84V', meta={}, id=u'AK7KGjv4YKtOf03Lqm0f84V', links={}) % endif \ No newline at end of file diff --git a/scenarios/bank_account_associate_to_customer/executable.py b/scenarios/bank_account_associate_to_customer/executable.py index 8134a37..c52df58 100644 --- a/scenarios/bank_account_associate_to_customer/executable.py +++ b/scenarios/bank_account_associate_to_customer/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -card = balanced.Card.fetch('/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m') -card.associate_to_customer('/customers/CU64R7DS6DwuXYVg9RTskFK8') \ No newline at end of file +card = balanced.Card.fetch('/bank_accounts/BAscOV2erMwv3yhIb5sFTaV') +card.associate_to_customer('/customers/CUeXNjpejPooRtSnJLc6SRD') \ No newline at end of file diff --git a/scenarios/bank_account_associate_to_customer/python.mako b/scenarios/bank_account_associate_to_customer/python.mako index 8deac8d..96c1be6 100644 --- a/scenarios/bank_account_associate_to_customer/python.mako +++ b/scenarios/bank_account_associate_to_customer/python.mako @@ -3,10 +3,10 @@ balanced.Card().associate_to_customer() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -card = balanced.Card.fetch('/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m') -card.associate_to_customer('/customers/CU64R7DS6DwuXYVg9RTskFK8') +card = balanced.Card.fetch('/bank_accounts/BAscOV2erMwv3yhIb5sFTaV') +card.associate_to_customer('/customers/CUeXNjpejPooRtSnJLc6SRD') % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': u'CU64R7DS6DwuXYVg9RTskFK8', u'bank_account_verification': None}, can_credit=True, created_at=u'2014-03-06T19:23:27.876147Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-03-06T19:23:28.930538Z', href=u'/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA6bLGpQZPOiTNRxF24rMd9m') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': u'CUeXNjpejPooRtSnJLc6SRD', u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-17T22:38:57.291677Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-17T22:38:57.745100Z', href=u'/bank_accounts/BAscOV2erMwv3yhIb5sFTaV', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BAscOV2erMwv3yhIb5sFTaV') % endif \ No newline at end of file diff --git a/scenarios/bank_account_create/executable.py b/scenarios/bank_account_create/executable.py index 7aeaddf..e51c158 100644 --- a/scenarios/bank_account_create/executable.py +++ b/scenarios/bank_account_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') bank_account = balanced.BankAccount( routing_number='121000358', diff --git a/scenarios/bank_account_create/python.mako b/scenarios/bank_account_create/python.mako index fec9847..6dbc771 100644 --- a/scenarios/bank_account_create/python.mako +++ b/scenarios/bank_account_create/python.mako @@ -3,7 +3,7 @@ balanced.BankAccount().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') bank_account = balanced.BankAccount( routing_number='121000358', @@ -12,5 +12,5 @@ bank_account = balanced.BankAccount( name='Johann Bernoulli' ).save() % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-03-06T19:23:27.876147Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-03-06T19:23:27.876150Z', href=u'/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA6bLGpQZPOiTNRxF24rMd9m') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-17T22:38:57.291677Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-17T22:38:57.291680Z', href=u'/bank_accounts/BAscOV2erMwv3yhIb5sFTaV', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BAscOV2erMwv3yhIb5sFTaV') % endif \ No newline at end of file diff --git a/scenarios/bank_account_credit/executable.py b/scenarios/bank_account_credit/executable.py index 4d54390..04db74b 100644 --- a/scenarios/bank_account_credit/executable.py +++ b/scenarios/bank_account_credit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BAscOV2erMwv3yhIb5sFTaV') bank_account.credit( amount=5000 ) \ No newline at end of file diff --git a/scenarios/bank_account_credit/python.mako b/scenarios/bank_account_credit/python.mako index 3d67481..a3421a0 100644 --- a/scenarios/bank_account_credit/python.mako +++ b/scenarios/bank_account_credit/python.mako @@ -3,12 +3,12 @@ balanced.BankAccount().credit() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BAscOV2erMwv3yhIb5sFTaV') bank_account.credit( amount=5000 ) % elif mode == 'response': -Credit(status=u'succeeded', description=None, links={u'customer': u'CU64R7DS6DwuXYVg9RTskFK8', u'destination': u'BA6bLGpQZPOiTNRxF24rMd9m', u'order': None}, amount=5000, created_at=u'2014-03-06T19:23:54.514782Z', updated_at=u'2014-03-06T19:23:55.019500Z', failure_reason=None, currency=u'USD', transaction_number=u'CR855-415-1670', href=u'/credits/CR6NpuEtezCdLTYngDrSEODv', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR6NpuEtezCdLTYngDrSEODv') +Credit(status=u'succeeded', description=None, links={u'customer': u'CUeXNjpejPooRtSnJLc6SRD', u'destination': u'BAscOV2erMwv3yhIb5sFTaV', u'order': None}, amount=5000, created_at=u'2014-04-17T22:40:19.333713Z', updated_at=u'2014-04-17T22:40:19.557731Z', failure_reason=None, currency=u'USD', transaction_number=u'CR808-363-1663', href=u'/credits/CR1KskgNXcoA6e52QczoCYyF', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR1KskgNXcoA6e52QczoCYyF') % endif \ No newline at end of file diff --git a/scenarios/bank_account_debit/executable.py b/scenarios/bank_account_debit/executable.py index 199a2ad..209c077 100644 --- a/scenarios/bank_account_debit/executable.py +++ b/scenarios/bank_account_debit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BAcRGk40xmI8meZpNLB3oYp') bank_account.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/bank_account_debit/python.mako b/scenarios/bank_account_debit/python.mako index 7210cd8..664470d 100644 --- a/scenarios/bank_account_debit/python.mako +++ b/scenarios/bank_account_debit/python.mako @@ -3,14 +3,14 @@ balanced.BankAccount().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BAcRGk40xmI8meZpNLB3oYp') bank_account.debit( appears_on_statement_as='Statement text', amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'BA50LpPrCTB63Ecm0wEgdOQM', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-03-06T19:22:35.961050Z', updated_at=u'2014-03-06T19:22:36.418154Z', failure_reason=None, currency=u'USD', transaction_number=u'W051-293-0823', href=u'/debits/WD5qunOPeKdCnWXIg9EHyHge', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD5qunOPeKdCnWXIg9EHyHge') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'BAcRGk40xmI8meZpNLB3oYp', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-17T22:38:59.275346Z', updated_at=u'2014-04-17T22:38:59.553856Z', failure_reason=None, currency=u'USD', transaction_number=u'W805-408-0649', href=u'/debits/WDure3wqINhVaYzrW0oclQd', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WDure3wqINhVaYzrW0oclQd') % endif \ No newline at end of file diff --git a/scenarios/bank_account_delete/executable.py b/scenarios/bank_account_delete/executable.py index f4f50d8..3132985 100644 --- a/scenarios/bank_account_delete/executable.py +++ b/scenarios/bank_account_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA8MzVwjVFnkuUvfHaXmqMZ') bank_account.delete() \ No newline at end of file diff --git a/scenarios/bank_account_delete/python.mako b/scenarios/bank_account_delete/python.mako index dec04d0..71b0b8b 100644 --- a/scenarios/bank_account_delete/python.mako +++ b/scenarios/bank_account_delete/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount().delete() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA8MzVwjVFnkuUvfHaXmqMZ') bank_account.delete() % elif mode == 'response': diff --git a/scenarios/bank_account_list/executable.py b/scenarios/bank_account_list/executable.py index afd7b2e..483528c 100644 --- a/scenarios/bank_account_list/executable.py +++ b/scenarios/bank_account_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') bank_accounts = balanced.BankAccount.query \ No newline at end of file diff --git a/scenarios/bank_account_list/python.mako b/scenarios/bank_account_list/python.mako index c650a68..9f4b102 100644 --- a/scenarios/bank_account_list/python.mako +++ b/scenarios/bank_account_list/python.mako @@ -4,7 +4,7 @@ balanced.BankAccount.query % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') bank_accounts = balanced.BankAccount.query % elif mode == 'response': diff --git a/scenarios/bank_account_show/executable.py b/scenarios/bank_account_show/executable.py index 458323c..54267c2 100644 --- a/scenarios/bank_account_show/executable.py +++ b/scenarios/bank_account_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V') \ No newline at end of file +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA8MzVwjVFnkuUvfHaXmqMZ') \ No newline at end of file diff --git a/scenarios/bank_account_show/python.mako b/scenarios/bank_account_show/python.mako index 1aa0006..7be67bc 100644 --- a/scenarios/bank_account_show/python.mako +++ b/scenarios/bank_account_show/python.mako @@ -4,9 +4,9 @@ balanced.BankAccount.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA8MzVwjVFnkuUvfHaXmqMZ') % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-03-06T19:22:30.247406Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-03-06T19:22:30.247410Z', href=u'/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA58WYAEUMrEtAkW5KAvWo5V') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-17T22:38:50.708229Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-17T22:38:50.708231Z', href=u'/bank_accounts/BA8MzVwjVFnkuUvfHaXmqMZ', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA8MzVwjVFnkuUvfHaXmqMZ') % endif \ No newline at end of file diff --git a/scenarios/bank_account_update/executable.py b/scenarios/bank_account_update/executable.py index 31316ba..f409a50 100644 --- a/scenarios/bank_account_update/executable.py +++ b/scenarios/bank_account_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA8MzVwjVFnkuUvfHaXmqMZ') bank_account.meta = { 'twitter.id'='1234987650', 'facebook.user_id'='0192837465', diff --git a/scenarios/bank_account_update/python.mako b/scenarios/bank_account_update/python.mako index c5023fd..d5fc88e 100644 --- a/scenarios/bank_account_update/python.mako +++ b/scenarios/bank_account_update/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA8MzVwjVFnkuUvfHaXmqMZ') bank_account.meta = { 'twitter.id'='1234987650', 'facebook.user_id'='0192837465', @@ -13,5 +13,5 @@ bank_account.meta = { } bank_account.save() % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-03-06T19:22:30.247406Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-03-06T19:22:33.744499Z', href=u'/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V', meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA58WYAEUMrEtAkW5KAvWo5V') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-17T22:38:50.708229Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-17T22:38:54.102822Z', href=u'/bank_accounts/BA8MzVwjVFnkuUvfHaXmqMZ', meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA8MzVwjVFnkuUvfHaXmqMZ') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/executable.py b/scenarios/bank_account_verification_create/executable.py index 6d4cfcf..3dc9357 100644 --- a/scenarios/bank_account_verification_create/executable.py +++ b/scenarios/bank_account_verification_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BAcRGk40xmI8meZpNLB3oYp') verification = bank_account.verify() \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/python.mako b/scenarios/bank_account_verification_create/python.mako index 7552eb6..0df2541 100644 --- a/scenarios/bank_account_verification_create/python.mako +++ b/scenarios/bank_account_verification_create/python.mako @@ -3,10 +3,10 @@ balanced.BankAccountVerification().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BAcRGk40xmI8meZpNLB3oYp') verification = bank_account.verify() % elif mode == 'response': -BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA50LpPrCTB63Ecm0wEgdOQM'}, created_at=u'2014-03-06T19:22:24.651572Z', attempts_remaining=3, updated_at=u'2014-03-06T19:22:25.233126Z', deposit_status=u'succeeded', attempts=0, href=u'/verifications/BZ5alC0fajkuBOvOU7lVT7QJ', meta={}, id=u'BZ5alC0fajkuBOvOU7lVT7QJ') +BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BAcRGk40xmI8meZpNLB3oYp'}, created_at=u'2014-04-17T22:38:45.205941Z', attempts_remaining=3, updated_at=u'2014-04-17T22:38:45.505191Z', deposit_status=u'succeeded', attempts=0, href=u'/verifications/BZ2AZ05mk2SQsEcicjSh3UN', meta={}, id=u'BZ2AZ05mk2SQsEcicjSh3UN') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/executable.py b/scenarios/bank_account_verification_show/executable.py index a269b2b..0bd5010 100644 --- a/scenarios/bank_account_verification_show/executable.py +++ b/scenarios/bank_account_verification_show/executable.py @@ -1,4 +1,4 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ5alC0fajkuBOvOU7lVT7QJ') \ No newline at end of file +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ2AZ05mk2SQsEcicjSh3UN') \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/python.mako b/scenarios/bank_account_verification_show/python.mako index 9ec10ae..fbb8be7 100644 --- a/scenarios/bank_account_verification_show/python.mako +++ b/scenarios/bank_account_verification_show/python.mako @@ -4,8 +4,8 @@ balanced.BankAccountVerification.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ5alC0fajkuBOvOU7lVT7QJ') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ2AZ05mk2SQsEcicjSh3UN') % elif mode == 'response': -BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA50LpPrCTB63Ecm0wEgdOQM'}, created_at=u'2014-03-06T19:22:24.651572Z', attempts_remaining=3, updated_at=u'2014-03-06T19:22:25.233126Z', deposit_status=u'succeeded', attempts=0, href=u'/verifications/BZ5alC0fajkuBOvOU7lVT7QJ', meta={}, id=u'BZ5alC0fajkuBOvOU7lVT7QJ') +BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BAcRGk40xmI8meZpNLB3oYp'}, created_at=u'2014-04-17T22:38:45.205941Z', attempts_remaining=3, updated_at=u'2014-04-17T22:38:45.505191Z', deposit_status=u'succeeded', attempts=0, href=u'/verifications/BZ2AZ05mk2SQsEcicjSh3UN', meta={}, id=u'BZ2AZ05mk2SQsEcicjSh3UN') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/executable.py b/scenarios/bank_account_verification_update/executable.py index e744cc5..292aadb 100644 --- a/scenarios/bank_account_verification_update/executable.py +++ b/scenarios/bank_account_verification_update/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ5alC0fajkuBOvOU7lVT7QJ') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ2AZ05mk2SQsEcicjSh3UN') verification.confirm(amount_1=1, amount_2=1) \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/python.mako b/scenarios/bank_account_verification_update/python.mako index 22e9a25..b9eb4da 100644 --- a/scenarios/bank_account_verification_update/python.mako +++ b/scenarios/bank_account_verification_update/python.mako @@ -3,10 +3,10 @@ balanced.BankAccountVerification().confirm() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ5alC0fajkuBOvOU7lVT7QJ') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ2AZ05mk2SQsEcicjSh3UN') verification.confirm(amount_1=1, amount_2=1) % elif mode == 'response': -BankAccountVerification(verification_status=u'succeeded', links={u'bank_account': u'BA50LpPrCTB63Ecm0wEgdOQM'}, created_at=u'2014-03-06T19:22:24.651572Z', attempts_remaining=2, updated_at=u'2014-03-06T19:22:27.893114Z', deposit_status=u'succeeded', attempts=1, href=u'/verifications/BZ5alC0fajkuBOvOU7lVT7QJ', meta={}, id=u'BZ5alC0fajkuBOvOU7lVT7QJ') +BankAccountVerification(verification_status=u'succeeded', links={u'bank_account': u'BAcRGk40xmI8meZpNLB3oYp'}, created_at=u'2014-04-17T22:38:45.205941Z', attempts_remaining=2, updated_at=u'2014-04-17T22:38:49.126263Z', deposit_status=u'succeeded', attempts=1, href=u'/verifications/BZ2AZ05mk2SQsEcicjSh3UN', meta={}, id=u'BZ2AZ05mk2SQsEcicjSh3UN') % endif \ No newline at end of file diff --git a/scenarios/callback_create/executable.py b/scenarios/callback_create/executable.py index 1743025..166cfa4 100644 --- a/scenarios/callback_create/executable.py +++ b/scenarios/callback_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') callback = balanced.Callback( url='http://www.example.com/callback', diff --git a/scenarios/callback_create/python.mako b/scenarios/callback_create/python.mako index d53c88c..b7c6518 100644 --- a/scenarios/callback_create/python.mako +++ b/scenarios/callback_create/python.mako @@ -3,12 +3,12 @@ balanced.Callback() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') callback = balanced.Callback( url='http://www.example.com/callback', method='post' ).save() % elif mode == 'response': -Callback(links={}, url=u'http://www.example.com/callback', id=u'CB5pnz4XnaDpRFGlNMb6u50R', href=u'/callbacks/CB5pnz4XnaDpRFGlNMb6u50R', method=u'post', revision=u'1.1') +Callback(links={}, url=u'http://www.example.com/callback', id=u'CBwxLHWPLsoBqKqVyUvZRKp', href=u'/callbacks/CBwxLHWPLsoBqKqVyUvZRKp', method=u'post', revision=u'1.1') % endif \ No newline at end of file diff --git a/scenarios/callback_delete/executable.py b/scenarios/callback_delete/executable.py index 901ddc0..3c04aad 100644 --- a/scenarios/callback_delete/executable.py +++ b/scenarios/callback_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -callback = balanced.Callback.fetch('/callbacks/CB5pnz4XnaDpRFGlNMb6u50R') +callback = balanced.Callback.fetch('/callbacks/CBwxLHWPLsoBqKqVyUvZRKp') callback.unstore() \ No newline at end of file diff --git a/scenarios/callback_delete/python.mako b/scenarios/callback_delete/python.mako index 9c51066..9d044db 100644 --- a/scenarios/callback_delete/python.mako +++ b/scenarios/callback_delete/python.mako @@ -3,9 +3,9 @@ balanced.Callback().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -callback = balanced.Callback.fetch('/callbacks/CB5pnz4XnaDpRFGlNMb6u50R') +callback = balanced.Callback.fetch('/callbacks/CBwxLHWPLsoBqKqVyUvZRKp') callback.unstore() % elif mode == 'response': diff --git a/scenarios/callback_list/executable.py b/scenarios/callback_list/executable.py index 2d822c1..cfa6d34 100644 --- a/scenarios/callback_list/executable.py +++ b/scenarios/callback_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') callbacks = balanced.Callback.query \ No newline at end of file diff --git a/scenarios/callback_list/python.mako b/scenarios/callback_list/python.mako index dbddfa9..dbed104 100644 --- a/scenarios/callback_list/python.mako +++ b/scenarios/callback_list/python.mako @@ -4,7 +4,7 @@ balanced.Callback.query % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') callbacks = balanced.Callback.query % elif mode == 'response': diff --git a/scenarios/callback_show/executable.py b/scenarios/callback_show/executable.py index 076d973..8e5289d 100644 --- a/scenarios/callback_show/executable.py +++ b/scenarios/callback_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -callback = balanced.Callback.fetch('/callbacks/CB5pnz4XnaDpRFGlNMb6u50R') \ No newline at end of file +callback = balanced.Callback.fetch('/callbacks/CBwxLHWPLsoBqKqVyUvZRKp') \ No newline at end of file diff --git a/scenarios/callback_show/python.mako b/scenarios/callback_show/python.mako index 5e84e35..6be40ef 100644 --- a/scenarios/callback_show/python.mako +++ b/scenarios/callback_show/python.mako @@ -4,9 +4,9 @@ balanced.Callback.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -callback = balanced.Callback.fetch('/callbacks/CB5pnz4XnaDpRFGlNMb6u50R') +callback = balanced.Callback.fetch('/callbacks/CBwxLHWPLsoBqKqVyUvZRKp') % elif mode == 'response': -Callback(links={}, url=u'http://www.example.com/callback', id=u'CB5pnz4XnaDpRFGlNMb6u50R', href=u'/callbacks/CB5pnz4XnaDpRFGlNMb6u50R', method=u'post', revision=u'1.1') +Callback(links={}, url=u'http://www.example.com/callback', id=u'CBwxLHWPLsoBqKqVyUvZRKp', href=u'/callbacks/CBwxLHWPLsoBqKqVyUvZRKp', method=u'post', revision=u'1.1') % endif \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/executable.py b/scenarios/card_associate_to_customer/executable.py index a71703a..5eaf2ef 100644 --- a/scenarios/card_associate_to_customer/executable.py +++ b/scenarios/card_associate_to_customer/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -card = balanced.Card.fetch('/cards/CC68IoCVpoFlkugB7xt52p8C') -card.associate_to_customer('/customers/CU64R7DS6DwuXYVg9RTskFK8') \ No newline at end of file +card = balanced.Card.fetch('/cards/CCVkCgaysaNhZH3ITVLmQ9X') +card.associate_to_customer('/customers/CUeXNjpejPooRtSnJLc6SRD') \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/python.mako b/scenarios/card_associate_to_customer/python.mako index e0f746b..6c71e1d 100644 --- a/scenarios/card_associate_to_customer/python.mako +++ b/scenarios/card_associate_to_customer/python.mako @@ -3,10 +3,10 @@ balanced.Card().associate_to_customer() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -card = balanced.Card.fetch('/cards/CC68IoCVpoFlkugB7xt52p8C') -card.associate_to_customer('/customers/CU64R7DS6DwuXYVg9RTskFK8') +card = balanced.Card.fetch('/cards/CCVkCgaysaNhZH3ITVLmQ9X') +card.associate_to_customer('/customers/CUeXNjpejPooRtSnJLc6SRD') % elif mode == 'response': -Card(cvv_match=u'yes', links={u'customer': u'CU64R7DS6DwuXYVg9RTskFK8'}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-03-06T19:23:25.159503Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-03-06T19:23:25.633918Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CC68IoCVpoFlkugB7xt52p8C', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CC68IoCVpoFlkugB7xt52p8C', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) +Card(cvv_match=u'yes', links={u'customer': u'CUeXNjpejPooRtSnJLc6SRD'}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-17T22:39:23.185879Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-17T22:39:23.629066Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CCVkCgaysaNhZH3ITVLmQ9X', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CCVkCgaysaNhZH3ITVLmQ9X', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) % endif \ No newline at end of file diff --git a/scenarios/card_create/executable.py b/scenarios/card_create/executable.py index ee4e28c..0254da6 100644 --- a/scenarios/card_create/executable.py +++ b/scenarios/card_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') card = balanced.Card( cvv='123', diff --git a/scenarios/card_create/python.mako b/scenarios/card_create/python.mako index 9df0735..d6af7f4 100644 --- a/scenarios/card_create/python.mako +++ b/scenarios/card_create/python.mako @@ -3,7 +3,7 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') card = balanced.Card( cvv='123', @@ -12,5 +12,5 @@ card = balanced.Card( expiration_year='2020' ).save() % elif mode == 'response': -Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-03-06T19:23:25.159503Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-03-06T19:23:25.159506Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CC68IoCVpoFlkugB7xt52p8C', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CC68IoCVpoFlkugB7xt52p8C', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) +Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-17T22:39:23.185879Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-17T22:39:23.185881Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CCVkCgaysaNhZH3ITVLmQ9X', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CCVkCgaysaNhZH3ITVLmQ9X', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) % endif \ No newline at end of file diff --git a/scenarios/card_debit/executable.py b/scenarios/card_debit/executable.py index 66e9ded..bd084c4 100644 --- a/scenarios/card_debit/executable.py +++ b/scenarios/card_debit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -card = balanced.Card.fetch('/cards/CC68IoCVpoFlkugB7xt52p8C') +card = balanced.Card.fetch('/cards/CCVkCgaysaNhZH3ITVLmQ9X') card.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/card_debit/python.mako b/scenarios/card_debit/python.mako index df04516..891f70f 100644 --- a/scenarios/card_debit/python.mako +++ b/scenarios/card_debit/python.mako @@ -3,14 +3,14 @@ balanced.Card().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -card = balanced.Card.fetch('/cards/CC68IoCVpoFlkugB7xt52p8C') +card = balanced.Card.fetch('/cards/CCVkCgaysaNhZH3ITVLmQ9X') card.debit( appears_on_statement_as='Statement text', amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CU64R7DS6DwuXYVg9RTskFK8', u'source': u'CC68IoCVpoFlkugB7xt52p8C', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-03-06T19:23:44.148512Z', updated_at=u'2014-03-06T19:23:45.554127Z', failure_reason=None, currency=u'USD', transaction_number=u'W274-713-3734', href=u'/debits/WD6BKYhbRzlRhfKSE1DcpqS5', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD6BKYhbRzlRhfKSE1DcpqS5') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CUeXNjpejPooRtSnJLc6SRD', u'source': u'CCVkCgaysaNhZH3ITVLmQ9X', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-17T22:39:46.207280Z', updated_at=u'2014-04-17T22:39:46.903737Z', failure_reason=None, currency=u'USD', transaction_number=u'W087-679-0746', href=u'/debits/WD19cDwPJMMJj6UWn4YI2bGZ', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD19cDwPJMMJj6UWn4YI2bGZ') % endif \ No newline at end of file diff --git a/scenarios/card_delete/executable.py b/scenarios/card_delete/executable.py index 40486a5..f617c4b 100644 --- a/scenarios/card_delete/executable.py +++ b/scenarios/card_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -card = balanced.Card.fetch('/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O') +card = balanced.Card.fetch('/cards/CCOeoFZJMd94AruXU0wuSI9') card.unstore() \ No newline at end of file diff --git a/scenarios/card_delete/python.mako b/scenarios/card_delete/python.mako index 0e79c7d..6767326 100644 --- a/scenarios/card_delete/python.mako +++ b/scenarios/card_delete/python.mako @@ -3,9 +3,9 @@ balanced.Card().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -card = balanced.Card.fetch('/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O') +card = balanced.Card.fetch('/cards/CCOeoFZJMd94AruXU0wuSI9') card.unstore() % elif mode == 'response': diff --git a/scenarios/card_hold_capture/executable.py b/scenarios/card_hold_capture/executable.py index d4e9078..03dd7a2 100644 --- a/scenarios/card_hold_capture/executable.py +++ b/scenarios/card_hold_capture/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -card_hold = balanced.CardHold.fetch('/card_holds/HL5wAfv8JaMsEn9idXrLZZZT') +card_hold = balanced.CardHold.fetch('/card_holds/HLqY5FcrUWcnBzMkHpKK1WB') debit = card_hold.capture( appears_on_statement_as='ShowsUpOnStmt', description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_capture/python.mako b/scenarios/card_hold_capture/python.mako index 2dfd65d..ec6c22a 100644 --- a/scenarios/card_hold_capture/python.mako +++ b/scenarios/card_hold_capture/python.mako @@ -3,13 +3,13 @@ balanced.CardHold().capture() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -card_hold = balanced.CardHold.fetch('/card_holds/HL5wAfv8JaMsEn9idXrLZZZT') +card_hold = balanced.CardHold.fetch('/card_holds/HLqY5FcrUWcnBzMkHpKK1WB') debit = card_hold.capture( appears_on_statement_as='ShowsUpOnStmt', description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CU4Wt8xSbREzV2NWtdVAFGeR', u'source': u'CC5nCSU0yFp3qxR4p6UZST7y', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-03-06T19:22:49.584629Z', updated_at=u'2014-03-06T19:22:50.608819Z', failure_reason=None, currency=u'USD', transaction_number=u'W493-697-4873', href=u'/debits/WD5Co9XwRZJg1QtvC5QeekhX', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, appears_on_statement_as=u'BAL*ShowsUpOnStmt', id=u'WD5Co9XwRZJg1QtvC5QeekhX') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CU7EYury1BOjhbW83bqFKfVr', u'source': u'CCCk1CEzUN0gDA5qh8um0rv', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-17T22:39:11.899836Z', updated_at=u'2014-04-17T22:39:12.557109Z', failure_reason=None, currency=u'USD', transaction_number=u'W443-185-7401', href=u'/debits/WDIDzVvqKBTwEp0GJ4gNBu9', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, appears_on_statement_as=u'BAL*ShowsUpOnStmt', id=u'WDIDzVvqKBTwEp0GJ4gNBu9') % endif \ No newline at end of file diff --git a/scenarios/card_hold_create/executable.py b/scenarios/card_hold_create/executable.py index e432726..94c4787 100644 --- a/scenarios/card_hold_create/executable.py +++ b/scenarios/card_hold_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -card = balanced.Card.fetch('/cards/CC5nCSU0yFp3qxR4p6UZST7y') +card = balanced.Card.fetch('/cards/CCCk1CEzUN0gDA5qh8um0rv') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_create/python.mako b/scenarios/card_hold_create/python.mako index 114efe0..6b097f5 100644 --- a/scenarios/card_hold_create/python.mako +++ b/scenarios/card_hold_create/python.mako @@ -3,13 +3,13 @@ balanced.Card().hold() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -card = balanced.Card.fetch('/cards/CC5nCSU0yFp3qxR4p6UZST7y') +card = balanced.Card.fetch('/cards/CCCk1CEzUN0gDA5qh8um0rv') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC5nCSU0yFp3qxR4p6UZST7y', u'debit': None}, amount=5000, created_at=u'2014-03-06T19:22:51.758438Z', updated_at=u'2014-03-06T19:22:52.362482Z', expires_at=u'2014-03-13T19:22:52.154430Z', failure_reason=None, currency=u'USD', transaction_number=u'HL671-938-5651', href=u'/card_holds/HL5Ig892KbmJyDqED5fYsJ8m', meta={}, failure_reason_code=None, voided_at=None, id=u'HL5Ig892KbmJyDqED5fYsJ8m') +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CCCk1CEzUN0gDA5qh8um0rv', u'debit': None}, amount=5000, created_at=u'2014-04-17T22:39:13.915486Z', updated_at=u'2014-04-17T22:39:14.097528Z', expires_at=u'2014-04-24T22:39:14.014926Z', failure_reason=None, currency=u'USD', transaction_number=u'HL198-143-2621', href=u'/card_holds/HLKUg5lJJ5fQZpvaAujCWZH', meta={}, failure_reason_code=None, voided_at=None, id=u'HLKUg5lJJ5fQZpvaAujCWZH') % endif \ No newline at end of file diff --git a/scenarios/card_hold_list/executable.py b/scenarios/card_hold_list/executable.py index cf0f6f2..e2d0899 100644 --- a/scenarios/card_hold_list/executable.py +++ b/scenarios/card_hold_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') card_holds = balanced.CardHold.query \ No newline at end of file diff --git a/scenarios/card_hold_list/python.mako b/scenarios/card_hold_list/python.mako index 70995ea..e40dbe2 100644 --- a/scenarios/card_hold_list/python.mako +++ b/scenarios/card_hold_list/python.mako @@ -4,7 +4,7 @@ balanced.CardHold.query % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') card_holds = balanced.CardHold.query % elif mode == 'response': diff --git a/scenarios/card_hold_show/executable.py b/scenarios/card_hold_show/executable.py index ddcfa3c..c4fd470 100644 --- a/scenarios/card_hold_show/executable.py +++ b/scenarios/card_hold_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -card_hold = balanced.CardHold.fetch('/card_holds/HL5wAfv8JaMsEn9idXrLZZZT') \ No newline at end of file +card_hold = balanced.CardHold.fetch('/card_holds/HLqY5FcrUWcnBzMkHpKK1WB') \ No newline at end of file diff --git a/scenarios/card_hold_show/python.mako b/scenarios/card_hold_show/python.mako index dd08325..5a03495 100644 --- a/scenarios/card_hold_show/python.mako +++ b/scenarios/card_hold_show/python.mako @@ -4,9 +4,9 @@ balanced.CardHold.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -card_hold = balanced.CardHold.fetch('/card_holds/HL5wAfv8JaMsEn9idXrLZZZT') +card_hold = balanced.CardHold.fetch('/card_holds/HLqY5FcrUWcnBzMkHpKK1WB') % elif mode == 'response': -CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC5nCSU0yFp3qxR4p6UZST7y', u'debit': None}, amount=5000, created_at=u'2014-03-06T19:22:44.421804Z', updated_at=u'2014-03-06T19:22:44.816617Z', expires_at=u'2014-03-13T19:22:44.661981Z', failure_reason=None, currency=u'USD', transaction_number=u'HL116-606-6128', href=u'/card_holds/HL5wAfv8JaMsEn9idXrLZZZT', meta={}, failure_reason_code=None, voided_at=None, id=u'HL5wAfv8JaMsEn9idXrLZZZT') +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CCCk1CEzUN0gDA5qh8um0rv', u'debit': None}, amount=5000, created_at=u'2014-04-17T22:39:06.875506Z', updated_at=u'2014-04-17T22:39:07.063348Z', expires_at=u'2014-04-24T22:39:06.984691Z', failure_reason=None, currency=u'USD', transaction_number=u'HL019-852-0737', href=u'/card_holds/HLqY5FcrUWcnBzMkHpKK1WB', meta={}, failure_reason_code=None, voided_at=None, id=u'HLqY5FcrUWcnBzMkHpKK1WB') % endif \ No newline at end of file diff --git a/scenarios/card_hold_update/executable.py b/scenarios/card_hold_update/executable.py index 4a920c1..29cb912 100644 --- a/scenarios/card_hold_update/executable.py +++ b/scenarios/card_hold_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -card_hold = balanced.CardHold.fetch('/card_holds/HL5wAfv8JaMsEn9idXrLZZZT') +card_hold = balanced.CardHold.fetch('/card_holds/HLqY5FcrUWcnBzMkHpKK1WB') card_hold.description = 'update this description' card_hold.meta = { 'holding.for': 'user1', diff --git a/scenarios/card_hold_update/python.mako b/scenarios/card_hold_update/python.mako index 8f785c8..dabc402 100644 --- a/scenarios/card_hold_update/python.mako +++ b/scenarios/card_hold_update/python.mako @@ -3,9 +3,9 @@ balanced.CardHold().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -card_hold = balanced.CardHold.fetch('/card_holds/HL5wAfv8JaMsEn9idXrLZZZT') +card_hold = balanced.CardHold.fetch('/card_holds/HLqY5FcrUWcnBzMkHpKK1WB') card_hold.description = 'update this description' card_hold.meta = { 'holding.for': 'user1', @@ -13,5 +13,5 @@ card_hold.meta = { } card_hold.save() % elif mode == 'response': -CardHold(status=u'succeeded', description=u'update this description', links={u'card': u'CC5nCSU0yFp3qxR4p6UZST7y', u'debit': None}, amount=5000, created_at=u'2014-03-06T19:22:44.421804Z', updated_at=u'2014-03-06T19:22:48.496101Z', expires_at=u'2014-03-13T19:22:44.661981Z', failure_reason=None, currency=u'USD', transaction_number=u'HL116-606-6128', href=u'/card_holds/HL5wAfv8JaMsEn9idXrLZZZT', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, voided_at=None, id=u'HL5wAfv8JaMsEn9idXrLZZZT') +CardHold(status=u'succeeded', description=u'update this description', links={u'card': u'CCCk1CEzUN0gDA5qh8um0rv', u'debit': None}, amount=5000, created_at=u'2014-04-17T22:39:06.875506Z', updated_at=u'2014-04-17T22:39:10.767779Z', expires_at=u'2014-04-24T22:39:06.984691Z', failure_reason=None, currency=u'USD', transaction_number=u'HL019-852-0737', href=u'/card_holds/HLqY5FcrUWcnBzMkHpKK1WB', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, voided_at=None, id=u'HLqY5FcrUWcnBzMkHpKK1WB') % endif \ No newline at end of file diff --git a/scenarios/card_hold_void/executable.py b/scenarios/card_hold_void/executable.py index b813339..7078e5e 100644 --- a/scenarios/card_hold_void/executable.py +++ b/scenarios/card_hold_void/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -card_hold = balanced.CardHold.fetch('/card_holds/HL5Ig892KbmJyDqED5fYsJ8m') +card_hold = balanced.CardHold.fetch('/card_holds/HLKUg5lJJ5fQZpvaAujCWZH') card_hold.cancel() \ No newline at end of file diff --git a/scenarios/card_hold_void/python.mako b/scenarios/card_hold_void/python.mako index c79dec4..5366a24 100644 --- a/scenarios/card_hold_void/python.mako +++ b/scenarios/card_hold_void/python.mako @@ -3,10 +3,10 @@ balanced.CardHold().cancel() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -card_hold = balanced.CardHold.fetch('/card_holds/HL5Ig892KbmJyDqED5fYsJ8m') +card_hold = balanced.CardHold.fetch('/card_holds/HLKUg5lJJ5fQZpvaAujCWZH') card_hold.cancel() % elif mode == 'response': -CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC5nCSU0yFp3qxR4p6UZST7y', u'debit': None}, amount=5000, created_at=u'2014-03-06T19:22:51.758438Z', updated_at=u'2014-03-06T19:22:52.865612Z', expires_at=u'2014-03-13T19:22:52.154430Z', failure_reason=None, currency=u'USD', transaction_number=u'HL671-938-5651', href=u'/card_holds/HL5Ig892KbmJyDqED5fYsJ8m', meta={}, failure_reason_code=None, voided_at=u'2014-03-06T19:22:52.865616Z', id=u'HL5Ig892KbmJyDqED5fYsJ8m') +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CCCk1CEzUN0gDA5qh8um0rv', u'debit': None}, amount=5000, created_at=u'2014-04-17T22:39:13.915486Z', updated_at=u'2014-04-17T22:39:14.562891Z', expires_at=u'2014-04-24T22:39:14.014926Z', failure_reason=None, currency=u'USD', transaction_number=u'HL198-143-2621', href=u'/card_holds/HLKUg5lJJ5fQZpvaAujCWZH', meta={}, failure_reason_code=None, voided_at=u'2014-04-17T22:39:14.562893Z', id=u'HLKUg5lJJ5fQZpvaAujCWZH') % endif \ No newline at end of file diff --git a/scenarios/card_list/executable.py b/scenarios/card_list/executable.py index a68e381..9abaf24 100644 --- a/scenarios/card_list/executable.py +++ b/scenarios/card_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') cards = balanced.Card.query \ No newline at end of file diff --git a/scenarios/card_list/python.mako b/scenarios/card_list/python.mako index d7fb6bf..1f8f1b9 100644 --- a/scenarios/card_list/python.mako +++ b/scenarios/card_list/python.mako @@ -4,7 +4,7 @@ balanced.Card.query % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') cards = balanced.Card.query % elif mode == 'response': diff --git a/scenarios/card_show/executable.py b/scenarios/card_show/executable.py index a024256..0b5b853 100644 --- a/scenarios/card_show/executable.py +++ b/scenarios/card_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -card = balanced.Card.fetch('/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O') \ No newline at end of file +card = balanced.Card.fetch('/cards/CCOeoFZJMd94AruXU0wuSI9') \ No newline at end of file diff --git a/scenarios/card_show/python.mako b/scenarios/card_show/python.mako index b7164b2..8ae5e46 100644 --- a/scenarios/card_show/python.mako +++ b/scenarios/card_show/python.mako @@ -3,9 +3,9 @@ balanced.Card.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -card = balanced.Card.fetch('/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O') +card = balanced.Card.fetch('/cards/CCOeoFZJMd94AruXU0wuSI9') % elif mode == 'response': -Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-03-06T19:22:55.617351Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-03-06T19:22:55.617354Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CC5Buki6e4Kg4bDVZ3OSfQ8O', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) +Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-17T22:39:16.874876Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-17T22:39:16.874878Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CCOeoFZJMd94AruXU0wuSI9', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CCOeoFZJMd94AruXU0wuSI9', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) % endif \ No newline at end of file diff --git a/scenarios/card_update/executable.py b/scenarios/card_update/executable.py index 768c58d..f768796 100644 --- a/scenarios/card_update/executable.py +++ b/scenarios/card_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -card = balanced.Card.fetch('/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O') +card = balanced.Card.fetch('/cards/CCOeoFZJMd94AruXU0wuSI9') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/card_update/python.mako b/scenarios/card_update/python.mako index 6400fd6..2603c04 100644 --- a/scenarios/card_update/python.mako +++ b/scenarios/card_update/python.mako @@ -3,9 +3,9 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -card = balanced.Card.fetch('/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O') +card = balanced.Card.fetch('/cards/CCOeoFZJMd94AruXU0wuSI9') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', @@ -13,5 +13,5 @@ card.meta = { } card.save() % elif mode == 'response': -Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-03-06T19:22:55.617351Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-03-06T19:22:59.186980Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O', meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CC5Buki6e4Kg4bDVZ3OSfQ8O', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) +Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-17T22:39:16.874876Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-17T22:39:20.595781Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CCOeoFZJMd94AruXU0wuSI9', meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CCOeoFZJMd94AruXU0wuSI9', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) % endif \ No newline at end of file diff --git a/scenarios/credit_list/executable.py b/scenarios/credit_list/executable.py index c09ae09..3fdd1fe 100644 --- a/scenarios/credit_list/executable.py +++ b/scenarios/credit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') credits = balanced.Credit.query \ No newline at end of file diff --git a/scenarios/credit_list/python.mako b/scenarios/credit_list/python.mako index 2831397..09ccadc 100644 --- a/scenarios/credit_list/python.mako +++ b/scenarios/credit_list/python.mako @@ -4,7 +4,7 @@ balanced.Credit.query % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') credits = balanced.Credit.query % elif mode == 'response': diff --git a/scenarios/credit_list_bank_account/executable.py b/scenarios/credit_list_bank_account/executable.py index 3d7c401..0ddcba7 100644 --- a/scenarios/credit_list_bank_account/executable.py +++ b/scenarios/credit_list_bank_account/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V/credits') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA8MzVwjVFnkuUvfHaXmqMZ/credits') credits = bank_account.credits \ No newline at end of file diff --git a/scenarios/credit_list_bank_account/python.mako b/scenarios/credit_list_bank_account/python.mako index 9cff348..1496516 100644 --- a/scenarios/credit_list_bank_account/python.mako +++ b/scenarios/credit_list_bank_account/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount().credits % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V/credits') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA8MzVwjVFnkuUvfHaXmqMZ/credits') credits = bank_account.credits % elif mode == 'response': diff --git a/scenarios/credit_show/executable.py b/scenarios/credit_show/executable.py index c2ab4e1..9262d30 100644 --- a/scenarios/credit_show/executable.py +++ b/scenarios/credit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -credit = balanced.Credit.fetch('/credits/CR5XXPwA1ckaTDSIg3593sEx') \ No newline at end of file +credit = balanced.Credit.fetch('/credits/CROijU7WflyjITPTGU9GMlL') \ No newline at end of file diff --git a/scenarios/credit_show/python.mako b/scenarios/credit_show/python.mako index 627d878..92c0226 100644 --- a/scenarios/credit_show/python.mako +++ b/scenarios/credit_show/python.mako @@ -4,9 +4,9 @@ balanced.Credit.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -credit = balanced.Credit.fetch('/credits/CR5XXPwA1ckaTDSIg3593sEx') +credit = balanced.Credit.fetch('/credits/CROijU7WflyjITPTGU9GMlL') % elif mode == 'response': -Credit(status=u'succeeded', description=None, links={u'customer': u'CU5LVuaZG7gURfbA7TuMNoZa', u'destination': u'BA5OqdmH8URGBYpilMITWsNW', u'order': None}, amount=5000, created_at=u'2014-03-06T19:23:08.771807Z', updated_at=u'2014-03-06T19:23:09.525306Z', failure_reason=None, currency=u'USD', transaction_number=u'CR570-678-5174', href=u'/credits/CR5XXPwA1ckaTDSIg3593sEx', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR5XXPwA1ckaTDSIg3593sEx') +Credit(status=u'succeeded', description=None, links={u'customer': u'CUeXNjpejPooRtSnJLc6SRD', u'destination': u'BAscOV2erMwv3yhIb5sFTaV', u'order': None}, amount=5000, created_at=u'2014-04-17T22:39:27.622238Z', updated_at=u'2014-04-17T22:39:27.978440Z', failure_reason=None, currency=u'USD', transaction_number=u'CR574-106-7569', href=u'/credits/CROijU7WflyjITPTGU9GMlL', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CROijU7WflyjITPTGU9GMlL') % endif \ No newline at end of file diff --git a/scenarios/credit_update/executable.py b/scenarios/credit_update/executable.py index 793d6a3..5e6a02a 100644 --- a/scenarios/credit_update/executable.py +++ b/scenarios/credit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -credit = balanced.Credit.fetch('/credits/CR5XXPwA1ckaTDSIg3593sEx') +credit = balanced.Credit.fetch('/credits/CROijU7WflyjITPTGU9GMlL') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/credit_update/python.mako b/scenarios/credit_update/python.mako index f7e3ed9..b12c8e2 100644 --- a/scenarios/credit_update/python.mako +++ b/scenarios/credit_update/python.mako @@ -3,9 +3,9 @@ balanced.Credit().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -credit = balanced.Credit.fetch('/credits/CR5XXPwA1ckaTDSIg3593sEx') +credit = balanced.Credit.fetch('/credits/CROijU7WflyjITPTGU9GMlL') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', @@ -13,5 +13,5 @@ credit.meta = { } credit.save() % elif mode == 'response': -Credit(status=u'succeeded', description=u'New description for credit', links={u'customer': u'CU5LVuaZG7gURfbA7TuMNoZa', u'destination': u'BA5OqdmH8URGBYpilMITWsNW', u'order': None}, amount=5000, created_at=u'2014-03-06T19:23:08.771807Z', updated_at=u'2014-03-06T19:23:14.259690Z', failure_reason=None, currency=u'USD', transaction_number=u'CR570-678-5174', href=u'/credits/CR5XXPwA1ckaTDSIg3593sEx', meta={u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR5XXPwA1ckaTDSIg3593sEx') +Credit(status=u'succeeded', description=u'New description for credit', links={u'customer': u'CUeXNjpejPooRtSnJLc6SRD', u'destination': u'BAscOV2erMwv3yhIb5sFTaV', u'order': None}, amount=5000, created_at=u'2014-04-17T22:39:27.622238Z', updated_at=u'2014-04-17T22:39:33.204162Z', failure_reason=None, currency=u'USD', transaction_number=u'CR574-106-7569', href=u'/credits/CROijU7WflyjITPTGU9GMlL', meta={u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CROijU7WflyjITPTGU9GMlL') % endif \ No newline at end of file diff --git a/scenarios/customer_create/executable.py b/scenarios/customer_create/executable.py index e2a67de..6b86adb 100644 --- a/scenarios/customer_create/executable.py +++ b/scenarios/customer_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') customer = balanced.Customer( dob_year=1963, diff --git a/scenarios/customer_create/python.mako b/scenarios/customer_create/python.mako index b3adb30..6d7b4f8 100644 --- a/scenarios/customer_create/python.mako +++ b/scenarios/customer_create/python.mako @@ -3,7 +3,7 @@ balanced.Customer().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') customer = balanced.Customer( dob_year=1963, @@ -14,5 +14,5 @@ customer = balanced.Customer( } ).save() % elif mode == 'response': -Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-03-06T19:23:21.728225Z', dob_month=7, updated_at=u'2014-03-06T19:23:22.907102Z', phone=None, href=u'/customers/CU64R7DS6DwuXYVg9RTskFK8', meta={}, dob_year=1963, email=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU64R7DS6DwuXYVg9RTskFK8', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) +Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-04-17T22:39:40.628341Z', dob_month=7, updated_at=u'2014-04-17T22:39:40.804922Z', phone=None, href=u'/customers/CU1eX3FIMntmCLmi2VfWA2db', meta={}, dob_year=1963, email=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU1eX3FIMntmCLmi2VfWA2db', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) % endif \ No newline at end of file diff --git a/scenarios/customer_delete/executable.py b/scenarios/customer_delete/executable.py index 89dc0de..24fa177 100644 --- a/scenarios/customer_delete/executable.py +++ b/scenarios/customer_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -customer = balanced.Customer.fetch('/customers/CU64R7DS6DwuXYVg9RTskFK8') +customer = balanced.Customer.fetch('/customers/CU1eX3FIMntmCLmi2VfWA2db') customer.unstore() \ No newline at end of file diff --git a/scenarios/customer_delete/python.mako b/scenarios/customer_delete/python.mako index 3a17f20..a908a45 100644 --- a/scenarios/customer_delete/python.mako +++ b/scenarios/customer_delete/python.mako @@ -3,9 +3,9 @@ balanced.Customer().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -customer = balanced.Customer.fetch('/customers/CU64R7DS6DwuXYVg9RTskFK8') +customer = balanced.Customer.fetch('/customers/CU1eX3FIMntmCLmi2VfWA2db') customer.unstore() % elif mode == 'response': diff --git a/scenarios/customer_list/executable.py b/scenarios/customer_list/executable.py index a749f77..33d280c 100644 --- a/scenarios/customer_list/executable.py +++ b/scenarios/customer_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') customers = balanced.Customer.query \ No newline at end of file diff --git a/scenarios/customer_list/python.mako b/scenarios/customer_list/python.mako index 0fed49f..fe11a9b 100644 --- a/scenarios/customer_list/python.mako +++ b/scenarios/customer_list/python.mako @@ -4,7 +4,7 @@ balanced.Customer.query % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') customers = balanced.Customer.query % elif mode == 'response': diff --git a/scenarios/customer_show/executable.py b/scenarios/customer_show/executable.py index 720dafe..a1b7741 100644 --- a/scenarios/customer_show/executable.py +++ b/scenarios/customer_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -customer = balanced.Customer.fetch('/customers/CU5YopHN07Ul5XQnILUifeQT') \ No newline at end of file +customer = balanced.Customer.fetch('/customers/CU194sQ52I1idiwicbg0mOOB') \ No newline at end of file diff --git a/scenarios/customer_show/python.mako b/scenarios/customer_show/python.mako index 5ef6861..0d2460c 100644 --- a/scenarios/customer_show/python.mako +++ b/scenarios/customer_show/python.mako @@ -4,9 +4,9 @@ balanced.Customer.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -customer = balanced.Customer.fetch('/customers/CU5YopHN07Ul5XQnILUifeQT') +customer = balanced.Customer.fetch('/customers/CU194sQ52I1idiwicbg0mOOB') % elif mode == 'response': -Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-03-06T19:23:15.982885Z', dob_month=7, updated_at=u'2014-03-06T19:23:16.724050Z', phone=None, href=u'/customers/CU5YopHN07Ul5XQnILUifeQT', meta={}, dob_year=1963, email=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU5YopHN07Ul5XQnILUifeQT', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) +Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-04-17T22:39:35.399913Z', dob_month=7, updated_at=u'2014-04-17T22:39:35.564842Z', phone=None, href=u'/customers/CU194sQ52I1idiwicbg0mOOB', meta={}, dob_year=1963, email=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU194sQ52I1idiwicbg0mOOB', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) % endif \ No newline at end of file diff --git a/scenarios/customer_update/executable.py b/scenarios/customer_update/executable.py index 8bd5553..530b9e0 100644 --- a/scenarios/customer_update/executable.py +++ b/scenarios/customer_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -customer = balanced.Debit.fetch('/customers/CU5YopHN07Ul5XQnILUifeQT') +customer = balanced.Debit.fetch('/customers/CU194sQ52I1idiwicbg0mOOB') customer.email = 'email@newdomain.com' customer.meta = { 'shipping-preference': 'ground' diff --git a/scenarios/customer_update/python.mako b/scenarios/customer_update/python.mako index 038de9c..1d2d47a 100644 --- a/scenarios/customer_update/python.mako +++ b/scenarios/customer_update/python.mako @@ -3,14 +3,14 @@ balanced.Customer().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -customer = balanced.Debit.fetch('/customers/CU5YopHN07Ul5XQnILUifeQT') +customer = balanced.Debit.fetch('/customers/CU194sQ52I1idiwicbg0mOOB') customer.email = 'email@newdomain.com' customer.meta = { 'shipping-preference': 'ground' } customer.save() % elif mode == 'response': -Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-03-06T19:23:15.982885Z', dob_month=7, updated_at=u'2014-03-06T19:23:20.140160Z', phone=None, href=u'/customers/CU5YopHN07Ul5XQnILUifeQT', meta={u'shipping-preference': u'ground'}, dob_year=1963, email=u'email@newdomain.com', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU5YopHN07Ul5XQnILUifeQT', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) +Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-04-17T22:39:35.399913Z', dob_month=7, updated_at=u'2014-04-17T22:39:39.258231Z', phone=None, href=u'/customers/CU194sQ52I1idiwicbg0mOOB', meta={u'shipping-preference': u'ground'}, dob_year=1963, email=u'email@newdomain.com', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU194sQ52I1idiwicbg0mOOB', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) % endif \ No newline at end of file diff --git a/scenarios/debit_list/executable.py b/scenarios/debit_list/executable.py index c7d81b4..bfc073a 100644 --- a/scenarios/debit_list/executable.py +++ b/scenarios/debit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') debits = balanced.Debit.query \ No newline at end of file diff --git a/scenarios/debit_list/python.mako b/scenarios/debit_list/python.mako index b6fc47b..c683762 100644 --- a/scenarios/debit_list/python.mako +++ b/scenarios/debit_list/python.mako @@ -4,7 +4,7 @@ balanced.Debit.query % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') debits = balanced.Debit.query % elif mode == 'response': diff --git a/scenarios/debit_show/executable.py b/scenarios/debit_show/executable.py index 558946d..8d6c0e8 100644 --- a/scenarios/debit_show/executable.py +++ b/scenarios/debit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -debit = balanced.Debit.fetch('/debits/WD5PTwr2bwJLIyJio1pEpYBr') \ No newline at end of file +debit = balanced.Debit.fetch('/debits/WDLlpoutDUH8fGfp28GeT0V') \ No newline at end of file diff --git a/scenarios/debit_show/python.mako b/scenarios/debit_show/python.mako index 50af467..72a4427 100644 --- a/scenarios/debit_show/python.mako +++ b/scenarios/debit_show/python.mako @@ -4,9 +4,9 @@ balanced.Debit.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -debit = balanced.Debit.fetch('/debits/WD5PTwr2bwJLIyJio1pEpYBr') +debit = balanced.Debit.fetch('/debits/WDLlpoutDUH8fGfp28GeT0V') % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC5Buki6e4Kg4bDVZ3OSfQ8O', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-03-06T19:23:01.594300Z', updated_at=u'2014-03-06T19:23:02.987552Z', failure_reason=None, currency=u'USD', transaction_number=u'W986-715-3969', href=u'/debits/WD5PTwr2bwJLIyJio1pEpYBr', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD5PTwr2bwJLIyJio1pEpYBr') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CUeXNjpejPooRtSnJLc6SRD', u'source': u'CCVkCgaysaNhZH3ITVLmQ9X', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-17T22:39:24.996837Z', updated_at=u'2014-04-17T22:39:25.992198Z', failure_reason=None, currency=u'USD', transaction_number=u'W766-065-9952', href=u'/debits/WDLlpoutDUH8fGfp28GeT0V', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WDLlpoutDUH8fGfp28GeT0V') % endif \ No newline at end of file diff --git a/scenarios/debit_update/executable.py b/scenarios/debit_update/executable.py index a12b984..f2c8354 100644 --- a/scenarios/debit_update/executable.py +++ b/scenarios/debit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -debit = balanced.Debit.fetch('/debits/WD5PTwr2bwJLIyJio1pEpYBr') +debit = balanced.Debit.fetch('/debits/WDLlpoutDUH8fGfp28GeT0V') debit.description = 'New description for debit' debit.meta = { 'facebook.id': '1234567890', diff --git a/scenarios/debit_update/python.mako b/scenarios/debit_update/python.mako index db88a11..ccf4a19 100644 --- a/scenarios/debit_update/python.mako +++ b/scenarios/debit_update/python.mako @@ -3,9 +3,9 @@ balanced.Debit().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -debit = balanced.Debit.fetch('/debits/WD5PTwr2bwJLIyJio1pEpYBr') +debit = balanced.Debit.fetch('/debits/WDLlpoutDUH8fGfp28GeT0V') debit.description = 'New description for debit' debit.meta = { 'facebook.id': '1234567890', @@ -13,5 +13,5 @@ debit.meta = { } debit.save() % elif mode == 'response': -Debit(status=u'succeeded', description=u'New description for debit', links={u'customer': None, u'source': u'CC5Buki6e4Kg4bDVZ3OSfQ8O', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-03-06T19:23:01.594300Z', updated_at=u'2014-03-06T19:23:33.383170Z', failure_reason=None, currency=u'USD', transaction_number=u'W986-715-3969', href=u'/debits/WD5PTwr2bwJLIyJio1pEpYBr', meta={u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD5PTwr2bwJLIyJio1pEpYBr') +Debit(status=u'succeeded', description=u'New description for debit', links={u'customer': u'CUeXNjpejPooRtSnJLc6SRD', u'source': u'CCVkCgaysaNhZH3ITVLmQ9X', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-17T22:39:24.996837Z', updated_at=u'2014-04-17T22:39:44.848896Z', failure_reason=None, currency=u'USD', transaction_number=u'W766-065-9952', href=u'/debits/WDLlpoutDUH8fGfp28GeT0V', meta={u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WDLlpoutDUH8fGfp28GeT0V') % endif \ No newline at end of file diff --git a/scenarios/event_list/executable.py b/scenarios/event_list/executable.py index 1db39cb..a1d774e 100644 --- a/scenarios/event_list/executable.py +++ b/scenarios/event_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') events = balanced.Event.query \ No newline at end of file diff --git a/scenarios/event_list/python.mako b/scenarios/event_list/python.mako index 6023fdc..1b10c19 100644 --- a/scenarios/event_list/python.mako +++ b/scenarios/event_list/python.mako @@ -4,7 +4,7 @@ balanced.Event.query % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') events = balanced.Event.query % elif mode == 'response': diff --git a/scenarios/event_show/executable.py b/scenarios/event_show/executable.py index 05a47f5..584c9ed 100644 --- a/scenarios/event_show/executable.py +++ b/scenarios/event_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -event = balanced.Event.fetch('/events/EVa26caeeea56411e3838802219cc35fd9') \ No newline at end of file +event = balanced.Event.fetch('/events/EVfbb73252c68011e3bb20061e5f402045') \ No newline at end of file diff --git a/scenarios/event_show/python.mako b/scenarios/event_show/python.mako index f434672..3d6df6b 100644 --- a/scenarios/event_show/python.mako +++ b/scenarios/event_show/python.mako @@ -4,9 +4,9 @@ balanced.Event.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -event = balanced.Event.fetch('/events/EVa26caeeea56411e3838802219cc35fd9') +event = balanced.Event.fetch('/events/EVfbb73252c68011e3bb20061e5f402045') % elif mode == 'response': -Event(links={}, occurred_at=u'2014-03-06T19:22:12.718000Z', entity={u'customers': [{u'name': u'William Henry Cavendish III', u'links': {u'source': None, u'destination': None}, u'updated_at': u'2014-03-06T19:22:12.718847Z', u'created_at': u'2014-03-06T19:22:12.312268Z', u'dob_month': 2, u'merchant_status': u'underwritten', u'id': u'CU4Wt8xSbREzV2NWtdVAFGeR', u'phone': u'+16505551212', u'href': u'/customers/CU4Wt8xSbREzV2NWtdVAFGeR', u'meta': {}, u'dob_year': 1947, u'address': {u'city': u'Nowhere', u'line2': None, u'line1': None, u'state': None, u'postal_code': u'90210', u'country_code': u'USA'}, u'business_name': None, u'ssn_last4': u'xxxx', u'email': u'whc@example.org', u'ein': None}], u'links': {u'customers.source': u'/resources/{customers.source}', u'customers.card_holds': u'/customers/{customers.id}/card_holds', u'customers.cards': u'/customers/{customers.id}/cards', u'customers.debits': u'/customers/{customers.id}/debits', u'customers.destination': u'/resources/{customers.destination}', u'customers.external_accounts': u'/customers/{customers.id}/external_accounts', u'customers.bank_accounts': u'/customers/{customers.id}/bank_accounts', u'customers.transactions': u'/customers/{customers.id}/transactions', u'customers.refunds': u'/customers/{customers.id}/refunds', u'customers.reversals': u'/customers/{customers.id}/reversals', u'customers.orders': u'/customers/{customers.id}/orders', u'customers.credits': u'/customers/{customers.id}/credits'}}, href=u'/events/EVa26caeeea56411e3838802219cc35fd9', callback_statuses={u'failed': 0, u'retrying': 0, u'succeeded': 0, u'pending': 0}, type=u'account.created', id=u'EVa26caeeea56411e3838802219cc35fd9') +Event(links={}, occurred_at=u'2014-04-17T22:38:35.758000Z', entity={u'customers': [{u'name': u'William Henry Cavendish III', u'links': {u'source': None, u'destination': None}, u'updated_at': u'2014-04-17T22:38:35.758188Z', u'created_at': u'2014-04-17T22:38:35.705116Z', u'dob_month': 2, u'merchant_status': u'underwritten', u'id': u'CU7EYury1BOjhbW83bqFKfVr', u'phone': u'+16505551212', u'href': u'/customers/CU7EYury1BOjhbW83bqFKfVr', u'meta': {}, u'dob_year': 1947, u'address': {u'city': u'Nowhere', u'line2': None, u'line1': None, u'state': None, u'postal_code': u'90210', u'country_code': u'USA'}, u'business_name': None, u'ssn_last4': u'xxxx', u'email': u'whc@example.org', u'ein': None}], u'links': {u'customers.source': u'/resources/{customers.source}', u'customers.card_holds': u'/customers/{customers.id}/card_holds', u'customers.cards': u'/customers/{customers.id}/cards', u'customers.debits': u'/customers/{customers.id}/debits', u'customers.destination': u'/resources/{customers.destination}', u'customers.external_accounts': u'/customers/{customers.id}/external_accounts', u'customers.bank_accounts': u'/customers/{customers.id}/bank_accounts', u'customers.transactions': u'/customers/{customers.id}/transactions', u'customers.refunds': u'/customers/{customers.id}/refunds', u'customers.reversals': u'/customers/{customers.id}/reversals', u'customers.orders': u'/customers/{customers.id}/orders', u'customers.credits': u'/customers/{customers.id}/credits'}}, href=u'/events/EVfbb73252c68011e3bb20061e5f402045', callback_statuses={u'failed': 0, u'retrying': 0, u'succeeded': 0, u'pending': 0}, type=u'account.created', id=u'EVfbb73252c68011e3bb20061e5f402045') % endif \ No newline at end of file diff --git a/scenarios/order_create/executable.py b/scenarios/order_create/executable.py index bb61e7f..f41e8de 100644 --- a/scenarios/order_create/executable.py +++ b/scenarios/order_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -merchant_customer = balanced.Customer.fetch('/customers/CU64R7DS6DwuXYVg9RTskFK8') +merchant_customer = balanced.Customer.fetch('/customers/CU1eX3FIMntmCLmi2VfWA2db') merchant_customer.create_order( description='Order #12341234' ).save() \ No newline at end of file diff --git a/scenarios/order_create/python.mako b/scenarios/order_create/python.mako index 6afe926..77203bf 100644 --- a/scenarios/order_create/python.mako +++ b/scenarios/order_create/python.mako @@ -3,12 +3,12 @@ balanced.Order() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -merchant_customer = balanced.Customer.fetch('/customers/CU64R7DS6DwuXYVg9RTskFK8') +merchant_customer = balanced.Customer.fetch('/customers/CU1eX3FIMntmCLmi2VfWA2db') merchant_customer.create_order( description='Order #12341234' ).save() % elif mode == 'response': -Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'Order #12341234', links={u'merchant': u'CU64R7DS6DwuXYVg9RTskFK8'}, created_at=u'2014-03-06T19:23:39.207291Z', updated_at=u'2014-03-06T19:23:39.207294Z', currency=u'USD', amount=0, href=u'/orders/OR6wcEVkOymvs4PairiGEcIx', meta={}, id=u'OR6wcEVkOymvs4PairiGEcIx', amount_escrowed=0) +Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'Order #12341234', links={u'merchant': u'CU1eX3FIMntmCLmi2VfWA2db'}, created_at=u'2014-04-17T22:40:10.393839Z', updated_at=u'2014-04-17T22:40:10.393841Z', currency=u'USD', amount=0, href=u'/orders/OR1MqLeXKqwqqW254i3GJ72F', meta={}, id=u'OR1MqLeXKqwqqW254i3GJ72F', amount_escrowed=0) % endif \ No newline at end of file diff --git a/scenarios/order_list/executable.py b/scenarios/order_list/executable.py index c58f7d9..623a5b2 100644 --- a/scenarios/order_list/executable.py +++ b/scenarios/order_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') orders = balanced.Order.query \ No newline at end of file diff --git a/scenarios/order_list/python.mako b/scenarios/order_list/python.mako index 4cfc90f..5ec0f20 100644 --- a/scenarios/order_list/python.mako +++ b/scenarios/order_list/python.mako @@ -4,7 +4,7 @@ balanced.Order.query % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') orders = balanced.Order.query % elif mode == 'response': diff --git a/scenarios/order_show/executable.py b/scenarios/order_show/executable.py index 90348c0..9e9efc2 100644 --- a/scenarios/order_show/executable.py +++ b/scenarios/order_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -order = balanced.Order.fetch('/orders/OR6wcEVkOymvs4PairiGEcIx') \ No newline at end of file +order = balanced.Order.fetch('/orders/OR1MqLeXKqwqqW254i3GJ72F') \ No newline at end of file diff --git a/scenarios/order_show/python.mako b/scenarios/order_show/python.mako index f9dc3b2..49e607f 100644 --- a/scenarios/order_show/python.mako +++ b/scenarios/order_show/python.mako @@ -4,9 +4,9 @@ balanced.Order.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -order = balanced.Order.fetch('/orders/OR6wcEVkOymvs4PairiGEcIx') +order = balanced.Order.fetch('/orders/OR1MqLeXKqwqqW254i3GJ72F') % elif mode == 'response': -Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'Order #12341234', links={u'merchant': u'CU64R7DS6DwuXYVg9RTskFK8'}, created_at=u'2014-03-06T19:23:39.207291Z', updated_at=u'2014-03-06T19:23:39.207294Z', currency=u'USD', amount=0, href=u'/orders/OR6wcEVkOymvs4PairiGEcIx', meta={}, id=u'OR6wcEVkOymvs4PairiGEcIx', amount_escrowed=0) +Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'Order #12341234', links={u'merchant': u'CU1eX3FIMntmCLmi2VfWA2db'}, created_at=u'2014-04-17T22:40:10.393839Z', updated_at=u'2014-04-17T22:40:10.393841Z', currency=u'USD', amount=0, href=u'/orders/OR1MqLeXKqwqqW254i3GJ72F', meta={}, id=u'OR1MqLeXKqwqqW254i3GJ72F', amount_escrowed=0) % endif \ No newline at end of file diff --git a/scenarios/order_update/executable.py b/scenarios/order_update/executable.py index cd3c660..770e12a 100644 --- a/scenarios/order_update/executable.py +++ b/scenarios/order_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -order = balanced.Order.fetch('/orders/OR6wcEVkOymvs4PairiGEcIx') +order = balanced.Order.fetch('/orders/OR1MqLeXKqwqqW254i3GJ72F') order.description = 'New description for order' order.meta = { 'anykey': 'valuegoeshere', diff --git a/scenarios/order_update/python.mako b/scenarios/order_update/python.mako index ca2116b..3f1800f 100644 --- a/scenarios/order_update/python.mako +++ b/scenarios/order_update/python.mako @@ -3,9 +3,9 @@ balanced.Order().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -order = balanced.Order.fetch('/orders/OR6wcEVkOymvs4PairiGEcIx') +order = balanced.Order.fetch('/orders/OR1MqLeXKqwqqW254i3GJ72F') order.description = 'New description for order' order.meta = { 'anykey': 'valuegoeshere', @@ -13,5 +13,5 @@ order.meta = { } order.save() % elif mode == 'response': -Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'New description for order', links={u'merchant': u'CU64R7DS6DwuXYVg9RTskFK8'}, created_at=u'2014-03-06T19:23:39.207291Z', updated_at=u'2014-03-06T19:23:42.673919Z', currency=u'USD', amount=0, href=u'/orders/OR6wcEVkOymvs4PairiGEcIx', meta={u'product.id': u'1234567890', u'anykey': u'valuegoeshere'}, id=u'OR6wcEVkOymvs4PairiGEcIx', amount_escrowed=0) +Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'New description for order', links={u'merchant': u'CU1eX3FIMntmCLmi2VfWA2db'}, created_at=u'2014-04-17T22:40:10.393839Z', updated_at=u'2014-04-17T22:40:13.722216Z', currency=u'USD', amount=0, href=u'/orders/OR1MqLeXKqwqqW254i3GJ72F', meta={u'product.id': u'1234567890', u'anykey': u'valuegoeshere'}, id=u'OR1MqLeXKqwqqW254i3GJ72F', amount_escrowed=0) % endif \ No newline at end of file diff --git a/scenarios/refund_create/executable.py b/scenarios/refund_create/executable.py index 0ee6f11..47f3e96 100644 --- a/scenarios/refund_create/executable.py +++ b/scenarios/refund_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -debit = balanced.Debit.fetch('/debits/WD6BKYhbRzlRhfKSE1DcpqS5') +debit = balanced.Debit.fetch('/debits/WD19cDwPJMMJj6UWn4YI2bGZ') refund = debit.refund( amount=3000, description="Refund for Order #1111", diff --git a/scenarios/refund_create/python.mako b/scenarios/refund_create/python.mako index 8454567..7e5b1eb 100644 --- a/scenarios/refund_create/python.mako +++ b/scenarios/refund_create/python.mako @@ -3,9 +3,9 @@ balanced.Debit().refund() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -debit = balanced.Debit.fetch('/debits/WD6BKYhbRzlRhfKSE1DcpqS5') +debit = balanced.Debit.fetch('/debits/WD19cDwPJMMJj6UWn4YI2bGZ') refund = debit.refund( amount=3000, description="Refund for Order #1111", @@ -16,5 +16,5 @@ refund = debit.refund( } ) % elif mode == 'response': -Refund(status=u'succeeded', description=u'Refund for Order #1111', links={u'dispute': None, u'order': None, u'debit': u'WD6BKYhbRzlRhfKSE1DcpqS5'}, amount=3000, created_at=u'2014-03-06T19:23:46.176138Z', updated_at=u'2014-03-06T19:23:48.234584Z', currency=u'USD', transaction_number=u'RF348-549-7723', href=u'/refunds/RF6HsnqferSuES9VZEWrthG2', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, id=u'RF6HsnqferSuES9VZEWrthG2') +Refund(status=u'succeeded', description=u'Refund for Order #1111', links={u'dispute': None, u'order': None, u'debit': u'WD19cDwPJMMJj6UWn4YI2bGZ'}, amount=3000, created_at=u'2014-04-17T22:39:47.779017Z', updated_at=u'2014-04-17T22:39:48.442287Z', currency=u'USD', transaction_number=u'RF938-498-8864', href=u'/refunds/RF1mYWVCnVu5NkDAl47rDgMx', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, id=u'RF1mYWVCnVu5NkDAl47rDgMx') % endif \ No newline at end of file diff --git a/scenarios/refund_list/executable.py b/scenarios/refund_list/executable.py index 1f15eed..ac5b0f4 100644 --- a/scenarios/refund_list/executable.py +++ b/scenarios/refund_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') refunds = balanced.Refund.query \ No newline at end of file diff --git a/scenarios/refund_list/python.mako b/scenarios/refund_list/python.mako index 55d91be..585e700 100644 --- a/scenarios/refund_list/python.mako +++ b/scenarios/refund_list/python.mako @@ -4,7 +4,7 @@ balanced.Refund.query % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') refunds = balanced.Refund.query % elif mode == 'response': diff --git a/scenarios/refund_show/executable.py b/scenarios/refund_show/executable.py index 331c88d..c0d0a3e 100644 --- a/scenarios/refund_show/executable.py +++ b/scenarios/refund_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -refund = balanced.Refund.fetch('/refunds/RF6HsnqferSuES9VZEWrthG2') \ No newline at end of file +refund = balanced.Refund.fetch('/refunds/RF1mYWVCnVu5NkDAl47rDgMx') \ No newline at end of file diff --git a/scenarios/refund_show/python.mako b/scenarios/refund_show/python.mako index 45e9458..bfe9e8a 100644 --- a/scenarios/refund_show/python.mako +++ b/scenarios/refund_show/python.mako @@ -4,9 +4,9 @@ balanced.Refund.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -refund = balanced.Refund.fetch('/refunds/RF6HsnqferSuES9VZEWrthG2') +refund = balanced.Refund.fetch('/refunds/RF1mYWVCnVu5NkDAl47rDgMx') % elif mode == 'response': -Refund(status=u'succeeded', description=u'Refund for Order #1111', links={u'dispute': None, u'order': None, u'debit': u'WD6BKYhbRzlRhfKSE1DcpqS5'}, amount=3000, created_at=u'2014-03-06T19:23:46.176138Z', updated_at=u'2014-03-06T19:23:48.234584Z', currency=u'USD', transaction_number=u'RF348-549-7723', href=u'/refunds/RF6HsnqferSuES9VZEWrthG2', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, id=u'RF6HsnqferSuES9VZEWrthG2') +Refund(status=u'succeeded', description=u'Refund for Order #1111', links={u'dispute': None, u'order': None, u'debit': u'WD19cDwPJMMJj6UWn4YI2bGZ'}, amount=3000, created_at=u'2014-04-17T22:39:47.779017Z', updated_at=u'2014-04-17T22:39:48.442287Z', currency=u'USD', transaction_number=u'RF938-498-8864', href=u'/refunds/RF1mYWVCnVu5NkDAl47rDgMx', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, id=u'RF1mYWVCnVu5NkDAl47rDgMx') % endif \ No newline at end of file diff --git a/scenarios/refund_update/executable.py b/scenarios/refund_update/executable.py index 12c57ad..1c27df7 100644 --- a/scenarios/refund_update/executable.py +++ b/scenarios/refund_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -refund = balanced.Refund.fetch('/refunds/RF6HsnqferSuES9VZEWrthG2') +refund = balanced.Refund.fetch('/refunds/RF1mYWVCnVu5NkDAl47rDgMx') refund.description = 'update this description' refund.meta = { 'user.refund.count': '3', diff --git a/scenarios/refund_update/python.mako b/scenarios/refund_update/python.mako index 2f48fa6..0c2cbec 100644 --- a/scenarios/refund_update/python.mako +++ b/scenarios/refund_update/python.mako @@ -3,9 +3,9 @@ balanced.Refund().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -refund = balanced.Refund.fetch('/refunds/RF6HsnqferSuES9VZEWrthG2') +refund = balanced.Refund.fetch('/refunds/RF1mYWVCnVu5NkDAl47rDgMx') refund.description = 'update this description' refund.meta = { 'user.refund.count': '3', @@ -14,5 +14,5 @@ refund.meta = { } refund.save() % elif mode == 'response': -Refund(status=u'succeeded', description=u'update this description', links={u'dispute': None, u'order': None, u'debit': u'WD6BKYhbRzlRhfKSE1DcpqS5'}, amount=3000, created_at=u'2014-03-06T19:23:46.176138Z', updated_at=u'2014-03-06T19:23:53.123358Z', currency=u'USD', transaction_number=u'RF348-549-7723', href=u'/refunds/RF6HsnqferSuES9VZEWrthG2', meta={u'user.refund.count': u'3', u'refund.reason': u'user not happy with product', u'user.notes': u'very polite on the phone'}, id=u'RF6HsnqferSuES9VZEWrthG2') +Refund(status=u'succeeded', description=u'update this description', links={u'dispute': None, u'order': None, u'debit': u'WD19cDwPJMMJj6UWn4YI2bGZ'}, amount=3000, created_at=u'2014-04-17T22:39:47.779017Z', updated_at=u'2014-04-17T22:40:17.834532Z', currency=u'USD', transaction_number=u'RF938-498-8864', href=u'/refunds/RF1mYWVCnVu5NkDAl47rDgMx', meta={u'user.refund.count': u'3', u'refund.reason': u'user not happy with product', u'user.notes': u'very polite on the phone'}, id=u'RF1mYWVCnVu5NkDAl47rDgMx') % endif \ No newline at end of file diff --git a/scenarios/reversal_create/executable.py b/scenarios/reversal_create/executable.py index bc1012c..eacbbaf 100644 --- a/scenarios/reversal_create/executable.py +++ b/scenarios/reversal_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -credit = balanced.Credit.fetch('/credits/CR6NpuEtezCdLTYngDrSEODv') +credit = balanced.Credit.fetch('/credits/CR1KskgNXcoA6e52QczoCYyF') reversal = credit.reverse( amount=3000, description="Reversal for Order #1111", diff --git a/scenarios/reversal_create/python.mako b/scenarios/reversal_create/python.mako index 642a0af..67cd6cd 100644 --- a/scenarios/reversal_create/python.mako +++ b/scenarios/reversal_create/python.mako @@ -3,9 +3,9 @@ balanced.Credit().reverse() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -credit = balanced.Credit.fetch('/credits/CR6NpuEtezCdLTYngDrSEODv') +credit = balanced.Credit.fetch('/credits/CR1KskgNXcoA6e52QczoCYyF') reversal = credit.reverse( amount=3000, description="Reversal for Order #1111", @@ -16,5 +16,5 @@ reversal = credit.reverse( } ) % elif mode == 'response': -Reversal(status=u'succeeded', description=u'Reversal for Order #1111', links={u'credit': u'CR6NpuEtezCdLTYngDrSEODv', u'order': None}, amount=3000, created_at=u'2014-03-06T19:23:55.596399Z', updated_at=u'2014-03-06T19:23:56.470321Z', failure_reason=None, currency=u'USD', transaction_number=u'RV542-861-3670', href=u'/reversals/RV6OCxJ1UhkG84is6H9PHjkZ', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, failure_reason_code=None, id=u'RV6OCxJ1UhkG84is6H9PHjkZ') +Reversal(status=u'succeeded', description=u'Reversal for Order #1111', links={u'credit': u'CR1KskgNXcoA6e52QczoCYyF', u'order': None}, amount=3000, created_at=u'2014-04-17T22:40:20.199870Z', updated_at=u'2014-04-17T22:40:20.570448Z', failure_reason=None, currency=u'USD', transaction_number=u'RV365-228-5418', href=u'/reversals/RV1Lqw4ZTPoeuldngynU1z6J', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, failure_reason_code=None, id=u'RV1Lqw4ZTPoeuldngynU1z6J') % endif \ No newline at end of file diff --git a/scenarios/reversal_list/executable.py b/scenarios/reversal_list/executable.py index 7735e61..ad39896 100644 --- a/scenarios/reversal_list/executable.py +++ b/scenarios/reversal_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') reversals = balanced.Reversal.query \ No newline at end of file diff --git a/scenarios/reversal_list/python.mako b/scenarios/reversal_list/python.mako index 36f9575..286122f 100644 --- a/scenarios/reversal_list/python.mako +++ b/scenarios/reversal_list/python.mako @@ -4,7 +4,7 @@ balanced.Reversal.query() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') reversals = balanced.Reversal.query % elif mode == 'response': diff --git a/scenarios/reversal_show/executable.py b/scenarios/reversal_show/executable.py index 48e962d..f8c7c01 100644 --- a/scenarios/reversal_show/executable.py +++ b/scenarios/reversal_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -refund = balanced.Reversal.fetch('/reversals/RV6OCxJ1UhkG84is6H9PHjkZ') \ No newline at end of file +refund = balanced.Reversal.fetch('/reversals/RV1Lqw4ZTPoeuldngynU1z6J') \ No newline at end of file diff --git a/scenarios/reversal_show/python.mako b/scenarios/reversal_show/python.mako index e8b391f..06cd7e9 100644 --- a/scenarios/reversal_show/python.mako +++ b/scenarios/reversal_show/python.mako @@ -4,9 +4,9 @@ balanced.Reversal.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -refund = balanced.Reversal.fetch('/reversals/RV6OCxJ1UhkG84is6H9PHjkZ') +refund = balanced.Reversal.fetch('/reversals/RV1Lqw4ZTPoeuldngynU1z6J') % elif mode == 'response': -Reversal(status=u'succeeded', description=u'Reversal for Order #1111', links={u'credit': u'CR6NpuEtezCdLTYngDrSEODv', u'order': None}, amount=3000, created_at=u'2014-03-06T19:23:55.596399Z', updated_at=u'2014-03-06T19:23:56.470321Z', failure_reason=None, currency=u'USD', transaction_number=u'RV542-861-3670', href=u'/reversals/RV6OCxJ1UhkG84is6H9PHjkZ', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, failure_reason_code=None, id=u'RV6OCxJ1UhkG84is6H9PHjkZ') +Reversal(status=u'succeeded', description=u'Reversal for Order #1111', links={u'credit': u'CR1KskgNXcoA6e52QczoCYyF', u'order': None}, amount=3000, created_at=u'2014-04-17T22:40:20.199870Z', updated_at=u'2014-04-17T22:40:20.570448Z', failure_reason=None, currency=u'USD', transaction_number=u'RV365-228-5418', href=u'/reversals/RV1Lqw4ZTPoeuldngynU1z6J', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, failure_reason_code=None, id=u'RV1Lqw4ZTPoeuldngynU1z6J') % endif \ No newline at end of file diff --git a/scenarios/reversal_update/executable.py b/scenarios/reversal_update/executable.py index 1cde23c..3ae44f5 100644 --- a/scenarios/reversal_update/executable.py +++ b/scenarios/reversal_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -reversal = balanced.Reversal.fetch('/reversals/RV6OCxJ1UhkG84is6H9PHjkZ') +reversal = balanced.Reversal.fetch('/reversals/RV1Lqw4ZTPoeuldngynU1z6J') reversal.description = 'update this description' reversal.meta = { 'user.refund.count': '3', diff --git a/scenarios/reversal_update/python.mako b/scenarios/reversal_update/python.mako index 0a61feb..f94bcec 100644 --- a/scenarios/reversal_update/python.mako +++ b/scenarios/reversal_update/python.mako @@ -3,9 +3,9 @@ balanced.Reversal().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -reversal = balanced.Reversal.fetch('/reversals/RV6OCxJ1UhkG84is6H9PHjkZ') +reversal = balanced.Reversal.fetch('/reversals/RV1Lqw4ZTPoeuldngynU1z6J') reversal.description = 'update this description' reversal.meta = { 'user.refund.count': '3', @@ -14,5 +14,5 @@ reversal.meta = { } reversal.save() % elif mode == 'response': -Reversal(status=u'succeeded', description=u'update this description', links={u'credit': u'CR6NpuEtezCdLTYngDrSEODv', u'order': None}, amount=3000, created_at=u'2014-03-06T19:23:55.596399Z', updated_at=u'2014-03-06T19:24:00.271458Z', failure_reason=None, currency=u'USD', transaction_number=u'RV542-861-3670', href=u'/reversals/RV6OCxJ1UhkG84is6H9PHjkZ', meta={u'user.satisfaction': u'6', u'refund.reason': u'user not happy with product', u'user.notes': u'very polite on the phone'}, failure_reason_code=None, id=u'RV6OCxJ1UhkG84is6H9PHjkZ') +Reversal(status=u'succeeded', description=u'update this description', links={u'credit': u'CR1KskgNXcoA6e52QczoCYyF', u'order': None}, amount=3000, created_at=u'2014-04-17T22:40:20.199870Z', updated_at=u'2014-04-17T22:40:24.560642Z', failure_reason=None, currency=u'USD', transaction_number=u'RV365-228-5418', href=u'/reversals/RV1Lqw4ZTPoeuldngynU1z6J', meta={u'user.satisfaction': u'6', u'refund.reason': u'user not happy with product', u'user.notes': u'very polite on the phone'}, failure_reason_code=None, id=u'RV1Lqw4ZTPoeuldngynU1z6J') % endif \ No newline at end of file From cf8c85716720e75088bf3ca8b407e27213023b05 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Fri, 18 Apr 2014 13:31:41 -0600 Subject: [PATCH 35/93] Add dispute scenarios --- scenarios/card_create_dispute/definition.mako | 1 + scenarios/card_create_dispute/executable.py | 10 ++++++++++ scenarios/card_create_dispute/python.mako | 16 ++++++++++++++++ scenarios/card_create_dispute/request.mako | 6 ++++++ scenarios/card_debit_dispute/definition.mako | 1 + scenarios/card_debit_dispute/executable.py | 10 ++++++++++ scenarios/card_debit_dispute/python.mako | 16 ++++++++++++++++ scenarios/card_debit_dispute/request.mako | 8 ++++++++ scenarios/dispute_list/definition.mako | 1 + scenarios/dispute_list/executable.py | 5 +++++ scenarios/dispute_list/python.mako | 11 +++++++++++ scenarios/dispute_list/request.mako | 4 ++++ scenarios/dispute_show/definition.mako | 1 + scenarios/dispute_show/executable.py | 5 +++++ scenarios/dispute_show/python.mako | 12 ++++++++++++ scenarios/dispute_show/request.mako | 4 ++++ 16 files changed, 111 insertions(+) create mode 100644 scenarios/card_create_dispute/definition.mako create mode 100644 scenarios/card_create_dispute/executable.py create mode 100644 scenarios/card_create_dispute/python.mako create mode 100644 scenarios/card_create_dispute/request.mako create mode 100644 scenarios/card_debit_dispute/definition.mako create mode 100644 scenarios/card_debit_dispute/executable.py create mode 100644 scenarios/card_debit_dispute/python.mako create mode 100644 scenarios/card_debit_dispute/request.mako create mode 100644 scenarios/dispute_list/definition.mako create mode 100644 scenarios/dispute_list/executable.py create mode 100644 scenarios/dispute_list/python.mako create mode 100644 scenarios/dispute_list/request.mako create mode 100644 scenarios/dispute_show/definition.mako create mode 100644 scenarios/dispute_show/executable.py create mode 100644 scenarios/dispute_show/python.mako create mode 100644 scenarios/dispute_show/request.mako diff --git a/scenarios/card_create_dispute/definition.mako b/scenarios/card_create_dispute/definition.mako new file mode 100644 index 0000000..1235831 --- /dev/null +++ b/scenarios/card_create_dispute/definition.mako @@ -0,0 +1 @@ +balanced.Card().save() \ No newline at end of file diff --git a/scenarios/card_create_dispute/executable.py b/scenarios/card_create_dispute/executable.py new file mode 100644 index 0000000..fe38d16 --- /dev/null +++ b/scenarios/card_create_dispute/executable.py @@ -0,0 +1,10 @@ +import balanced + +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') + +card = balanced.Card( + cvv='123', + expiration_month='12', + number='6500000000000002', + expiration_year='3000' +).save() \ No newline at end of file diff --git a/scenarios/card_create_dispute/python.mako b/scenarios/card_create_dispute/python.mako new file mode 100644 index 0000000..092e5f1 --- /dev/null +++ b/scenarios/card_create_dispute/python.mako @@ -0,0 +1,16 @@ +% if mode == 'definition': +balanced.Card().save() +% elif mode == 'request': +import balanced + +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') + +card = balanced.Card( + cvv='123', + expiration_month='12', + number='6500000000000002', + expiration_year='3000' +).save() +% elif mode == 'response': +Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=3000, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-17T22:39:50.334535Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx0002', updated_at=u'2014-04-17T22:39:50.334538Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CC1dQyiZY6h896UfGpBAWXOJ', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CC1dQyiZY6h896UfGpBAWXOJ', fingerprint=u'3c667a62653e187f29b5781eeb0703f26e99558080de0c0f9490b5f9c4ac2871', is_verified=True, brand=u'Discover', name=None) +% endif \ No newline at end of file diff --git a/scenarios/card_create_dispute/request.mako b/scenarios/card_create_dispute/request.mako new file mode 100644 index 0000000..bae039b --- /dev/null +++ b/scenarios/card_create_dispute/request.mako @@ -0,0 +1,6 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +card = balanced.Card( + <% main.payload_expand(request['payload']) %> +).save() \ No newline at end of file diff --git a/scenarios/card_debit_dispute/definition.mako b/scenarios/card_debit_dispute/definition.mako new file mode 100644 index 0000000..91d7e5b --- /dev/null +++ b/scenarios/card_debit_dispute/definition.mako @@ -0,0 +1 @@ +balanced.Card().debit() \ No newline at end of file diff --git a/scenarios/card_debit_dispute/executable.py b/scenarios/card_debit_dispute/executable.py new file mode 100644 index 0000000..75a048c --- /dev/null +++ b/scenarios/card_debit_dispute/executable.py @@ -0,0 +1,10 @@ +import balanced + +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') + +card = balanced.Card.fetch('/cards/CC1dQyiZY6h896UfGpBAWXOJ') +card.debit( + appears_on_statement_as='Statement text', + amount=5000, + description='Some descriptive text for the debit in the dashboard' +) \ No newline at end of file diff --git a/scenarios/card_debit_dispute/python.mako b/scenarios/card_debit_dispute/python.mako new file mode 100644 index 0000000..27a40c7 --- /dev/null +++ b/scenarios/card_debit_dispute/python.mako @@ -0,0 +1,16 @@ +% if mode == 'definition': +balanced.Card().debit() +% elif mode == 'request': +import balanced + +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') + +card = balanced.Card.fetch('/cards/CC1dQyiZY6h896UfGpBAWXOJ') +card.debit( + appears_on_statement_as='Statement text', + amount=5000, + description='Some descriptive text for the debit in the dashboard' +) +% elif mode == 'response': +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC1dQyiZY6h896UfGpBAWXOJ', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-17T22:39:51.088029Z', updated_at=u'2014-04-17T22:39:52.100741Z', failure_reason=None, currency=u'USD', transaction_number=u'W303-837-3548', href=u'/debits/WD1qIcVqGE1JrqFJuHH0d1pf', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD1qIcVqGE1JrqFJuHH0d1pf') +% endif \ No newline at end of file diff --git a/scenarios/card_debit_dispute/request.mako b/scenarios/card_debit_dispute/request.mako new file mode 100644 index 0000000..ed62839 --- /dev/null +++ b/scenarios/card_debit_dispute/request.mako @@ -0,0 +1,8 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +card = balanced.Card.fetch('${request['card_href']}') +card.debit( + <% main.payload_expand(request['payload']) %> +) + diff --git a/scenarios/dispute_list/definition.mako b/scenarios/dispute_list/definition.mako new file mode 100644 index 0000000..e3b1ab2 --- /dev/null +++ b/scenarios/dispute_list/definition.mako @@ -0,0 +1 @@ +balanced.Dispute.query \ No newline at end of file diff --git a/scenarios/dispute_list/executable.py b/scenarios/dispute_list/executable.py new file mode 100644 index 0000000..182eb69 --- /dev/null +++ b/scenarios/dispute_list/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') + +disputes = balanced.Dispute.query \ No newline at end of file diff --git a/scenarios/dispute_list/python.mako b/scenarios/dispute_list/python.mako new file mode 100644 index 0000000..84ea44a --- /dev/null +++ b/scenarios/dispute_list/python.mako @@ -0,0 +1,11 @@ +% if mode == 'definition': +balanced.Dispute.query +% elif mode == 'request': +import balanced + +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') + +disputes = balanced.Dispute.query +% elif mode == 'response': + +% endif \ No newline at end of file diff --git a/scenarios/dispute_list/request.mako b/scenarios/dispute_list/request.mako new file mode 100644 index 0000000..cbd6885 --- /dev/null +++ b/scenarios/dispute_list/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +disputes = balanced.Dispute.query \ No newline at end of file diff --git a/scenarios/dispute_show/definition.mako b/scenarios/dispute_show/definition.mako new file mode 100644 index 0000000..6fb713f --- /dev/null +++ b/scenarios/dispute_show/definition.mako @@ -0,0 +1 @@ +balanced.Dispute.fetch() diff --git a/scenarios/dispute_show/executable.py b/scenarios/dispute_show/executable.py new file mode 100644 index 0000000..f3b3504 --- /dev/null +++ b/scenarios/dispute_show/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') + +dispute = balanced.Dispute.fetch('/disputes/DT1yIxVolzxscHl6rGUhtTDw') \ No newline at end of file diff --git a/scenarios/dispute_show/python.mako b/scenarios/dispute_show/python.mako new file mode 100644 index 0000000..e338c0a --- /dev/null +++ b/scenarios/dispute_show/python.mako @@ -0,0 +1,12 @@ +% if mode == 'definition': +balanced.Dispute.fetch() + +% elif mode == 'request': +import balanced + +balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') + +dispute = balanced.Dispute.fetch('/disputes/DT1yIxVolzxscHl6rGUhtTDw') +% elif mode == 'response': +Dispute(status=u'pending', links={u'transaction': u'WD1qIcVqGE1JrqFJuHH0d1pf'}, respond_by=u'2014-05-17T00:00:00Z', amount=5000, created_at=u'2014-04-17T22:39:53.381467Z', updated_at=u'2014-04-17T22:39:53.381469Z', initiated_at=u'2014-04-17T00:00:00Z', currency=u'USD', reason=u'fraud', href=u'/disputes/DT1yIxVolzxscHl6rGUhtTDw', meta={}, id=u'DT1yIxVolzxscHl6rGUhtTDw') +% endif \ No newline at end of file diff --git a/scenarios/dispute_show/request.mako b/scenarios/dispute_show/request.mako new file mode 100644 index 0000000..c9e302e --- /dev/null +++ b/scenarios/dispute_show/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +dispute = balanced.Dispute.fetch('${request['uri']}') \ No newline at end of file From e0eb6f037ebb6e082baaef667ea9a726572caa5e Mon Sep 17 00:00:00 2001 From: Matthew Francis-Landau Date: Tue, 22 Apr 2014 16:39:55 -0700 Subject: [PATCH 36/93] fix polymorphic types coming back as resource --- balanced/resources.py | 15 +++++++++++++++ tests/test_suite.py | 9 +++++++++ 2 files changed, 24 insertions(+) diff --git a/balanced/resources.py b/balanced/resources.py index 9dc5db5..9ebfdec 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -211,6 +211,21 @@ def unstore(self): def fetch(cls, href): return cls.get(href) + @classmethod + def get(cls, href): + if href.startswith('/resources'): + # hackety hack hax + # resource is an abstract type, we shouldn't have it comeing back itself + # instead we need to figure out the type based off the api response + resp = cls.client.get(href) + resource = [ + k for k in resp.data.keys() if k != 'links' and k != 'meta' + ] + if resource: + return Resource.registry.get(resource[0], cls)(**resp.data) + return cls(**resp.data) + return super(Resource, cls).get(href) + class Marketplace(Resource): """ diff --git a/tests/test_suite.py b/tests/test_suite.py index aacddf5..d299933 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -415,6 +415,15 @@ def test_external_accounts(self): ) self.assertEqual(debit.source.id, external_account.id) + def test_general_resources(self): + card = balanced.Card(**CARD).save() + customer = balanced.Customer().save() + card.associate_to_customer(customer) + debit = card.debit(amount=1000) + self.assertIsNotNone(debit) + self.assertIsNotNone(debit.source) + self.assertTrue(isinstance(debit.source, balanced.Card)) + class Rev0URIBasicUseCases(unittest.TestCase): """This test case ensures all revision 0 URIs can work without a problem From 13ef45077418812948410341c11fba5b141346d7 Mon Sep 17 00:00:00 2001 From: Matthew Francis-Landau Date: Tue, 22 Apr 2014 17:23:41 -0700 Subject: [PATCH 37/93] return none when there is actually none instead of a page object --- balanced/resources.py | 8 ++++++++ tests/test_suite.py | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/balanced/resources.py b/balanced/resources.py index 9ebfdec..4157007 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -109,6 +109,14 @@ def extract_variables_from_item(item, variables): if not item_property.endswith('_href'): item_property += '_href' lazy_href = parsed_link + + elif '{' in parsed_link and '}' in parsed_link: + # the link is of the form /asdf/{asdf} which means + # that the variables could not be resolved as it + # was None. Instead of making it into a page object + # we explicitly set it to None to represent the + # attribute is None + lazy_href = None else: # collection lazy_href = JSONSchemaCollection( diff --git a/tests/test_suite.py b/tests/test_suite.py index d299933..7186289 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -424,6 +424,15 @@ def test_general_resources(self): self.assertIsNotNone(debit.source) self.assertTrue(isinstance(debit.source, balanced.Card)) + def test_get_none_for_none(self): + card = balanced.Card(**CARD).save() + customer = balanced.Customer().save() + self.assertIsNone(card.customer) + card.associate_to_customer(customer) + card = balanced.Card.get(card.href) + self.assertIsNotNone(card.customer) + self.assertTrue(isinstance(card.customer, balanced.Customer)) + class Rev0URIBasicUseCases(unittest.TestCase): """This test case ensures all revision 0 URIs can work without a problem From 910e865d2c391680785c1afd577d55a852e7116f Mon Sep 17 00:00:00 2001 From: Richard Serna Date: Wed, 23 Apr 2014 11:44:08 -0700 Subject: [PATCH 38/93] Bump version, and update wac dependancy --- CHANGELOG.md | 5 ++++ balanced/__init__.py | 2 +- requirements.txt | 2 +- tests/test_suite.py | 59 ++++++++++++++++++++++++-------------------- 4 files changed, 39 insertions(+), 29 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index df4bd2c..33a588d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.0.2 + +* Fix for query pagination + + ## 1.0.1 * Fix for returned generic Resource instead of expected resource class diff --git a/balanced/__init__.py b/balanced/__init__.py index c8617a2..5b94768 100644 --- a/balanced/__init__.py +++ b/balanced/__init__.py @@ -1,6 +1,6 @@ from __future__ import unicode_literals -__version__ = '1.0.1' +__version__ = '1.0.2' from balanced.config import configure from balanced import resources diff --git a/requirements.txt b/requirements.txt index 556ea63..77e1d61 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -wac==0.22 +wac==0.23 iso8601==0.1.4 uritemplate==0.6 diff --git a/tests/test_suite.py b/tests/test_suite.py index aacddf5..72bd362 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -377,33 +377,38 @@ def test_empty_list(self): self.create_marketplace() self.assertEqual(balanced.Credit.query.all(), []) - def test_dispute(self): - card = balanced.Card(**DISPUTE_CARD).save() - debit = card.debit(amount=100) - - # TODO: this is ugly, I think we should provide a more - # reliable way to generate dispute, at least it should not - # take this long - print >> sys.stderr, ( - 'It takes a while before the dispute record created, ' - 'take and nap and wake up, then it should be done :/ ' - '(last time I tried it took 10 minutes...)' - ) - timeout = 12 * 60 - interval = 10 - begin = time.time() - while True: - if balanced.Dispute.query.count(): - break - time.sleep(interval) - elapsed = time.time() - begin - print >> sys.stderr, 'Polling disputes..., elapsed', elapsed - self.assertLess(elapsed, timeout, 'Ouch, timeout') - - dispute = balanced.Dispute.query.one() - self.assertEqual(dispute.status, 'pending') - self.assertEqual(dispute.reason, 'fraud') - self.assertEqual(dispute.transaction.id, debit.id) + def test_query_pagination(self): + card = balanced.Card(**CARD).save() + for _ in xrange(30): card.debit(amount=100) + self.assertEqual(len(balanced.Debit.query.all()), 30) + + # def test_dispute(self): + # card = balanced.Card(**DISPUTE_CARD).save() + # debit = card.debit(amount=100) + # + # # TODO: this is ugly, I think we should provide a more + # # reliable way to generate dispute, at least it should not + # # take this long + # print >> sys.stderr, ( + # 'It takes a while before the dispute record created, ' + # 'take and nap and wake up, then it should be done :/ ' + # '(last time I tried it took 10 minutes...)' + # ) + # timeout = 12 * 60 + # interval = 10 + # begin = time.time() + # while True: + # if balanced.Dispute.query.count(): + # break + # time.sleep(interval) + # elapsed = time.time() - begin + # print >> sys.stderr, 'Polling disputes..., elapsed', elapsed + # self.assertLess(elapsed, timeout, 'Ouch, timeout') + # + # dispute = balanced.Dispute.query.one() + # self.assertEqual(dispute.status, 'pending') + # self.assertEqual(dispute.reason, 'fraud') + # self.assertEqual(dispute.transaction.id, debit.id) def test_external_accounts(self): external_account = balanced.ExternalAccount( From 216637a5774ffa4529e97ddb755c3e86c15980c9 Mon Sep 17 00:00:00 2001 From: Richard Serna Date: Thu, 24 Apr 2014 09:04:48 -0700 Subject: [PATCH 39/93] add tests and bump version --- CHANGELOG.md | 4 ++++ balanced/__init__.py | 2 +- requirements.txt | 2 +- tests/test_suite.py | 5 +++++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index df4bd2c..d2bb112 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.2 + +* Fix for query pagination + ## 1.0.1 * Fix for returned generic Resource instead of expected resource class diff --git a/balanced/__init__.py b/balanced/__init__.py index c8617a2..5b94768 100644 --- a/balanced/__init__.py +++ b/balanced/__init__.py @@ -1,6 +1,6 @@ from __future__ import unicode_literals -__version__ = '1.0.1' +__version__ = '1.0.2' from balanced.config import configure from balanced import resources diff --git a/requirements.txt b/requirements.txt index 556ea63..77e1d61 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -wac==0.22 +wac==0.23 iso8601==0.1.4 uritemplate==0.6 diff --git a/tests/test_suite.py b/tests/test_suite.py index aacddf5..f5aba61 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -377,6 +377,11 @@ def test_empty_list(self): self.create_marketplace() self.assertEqual(balanced.Credit.query.all(), []) + def test_query_pagination(self): + card = balanced.Card(**CARD).save() + for _ in xrange(30): card.debit(amount=100) + self.assertEqual(len(balanced.Debit.query.all()), 30) + def test_dispute(self): card = balanced.Card(**DISPUTE_CARD).save() debit = card.debit(amount=100) From 39cec51cf3dd4476dc1ba9e9430b6c661384156a Mon Sep 17 00:00:00 2001 From: Richard Serna Date: Thu, 24 Apr 2014 13:31:52 -0700 Subject: [PATCH 40/93] edit pagination --- tests/test_suite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_suite.py b/tests/test_suite.py index a1330fb..9b2093b 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -380,7 +380,7 @@ def test_empty_list(self): def test_query_pagination(self): card = balanced.Card(**CARD).save() for _ in xrange(30): card.debit(amount=100) - self.assertEqual(len(balanced.Debit.query.all()), 30) + self.assertEqual(len(card.debits.all()), balanced.Debit.query.count()) def test_dispute(self): card = balanced.Card(**DISPUTE_CARD).save() From 882ce22a3e3abe7d896a2f4a9a7b6fedbb0ad2a8 Mon Sep 17 00:00:00 2001 From: Richard Serna Date: Thu, 24 Apr 2014 13:53:25 -0700 Subject: [PATCH 41/93] Fix test --- tests/test_suite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_suite.py b/tests/test_suite.py index 9b2093b..bab7196 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -380,7 +380,7 @@ def test_empty_list(self): def test_query_pagination(self): card = balanced.Card(**CARD).save() for _ in xrange(30): card.debit(amount=100) - self.assertEqual(len(card.debits.all()), balanced.Debit.query.count()) + self.assertEqual(len(balanced.Debit.query.all()), balanced.Debit.query.count()) def test_dispute(self): card = balanced.Card(**DISPUTE_CARD).save() From e98cd2e3d4607cefc3dd11832cc35f2e4ac6b9fa Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Fri, 25 Apr 2014 15:18:06 -0600 Subject: [PATCH 42/93] Add debit_dispute_show scenario --- scenarios/debit_dispute_show/definition.mako | 1 + scenarios/debit_dispute_show/executable.py | 6 ++++++ scenarios/debit_dispute_show/python.mako | 13 +++++++++++++ scenarios/debit_dispute_show/request.mako | 5 +++++ 4 files changed, 25 insertions(+) create mode 100644 scenarios/debit_dispute_show/definition.mako create mode 100644 scenarios/debit_dispute_show/executable.py create mode 100644 scenarios/debit_dispute_show/python.mako create mode 100644 scenarios/debit_dispute_show/request.mako diff --git a/scenarios/debit_dispute_show/definition.mako b/scenarios/debit_dispute_show/definition.mako new file mode 100644 index 0000000..ce8c692 --- /dev/null +++ b/scenarios/debit_dispute_show/definition.mako @@ -0,0 +1 @@ +balanced.Debit().dispute diff --git a/scenarios/debit_dispute_show/executable.py b/scenarios/debit_dispute_show/executable.py new file mode 100644 index 0000000..c9b2c9a --- /dev/null +++ b/scenarios/debit_dispute_show/executable.py @@ -0,0 +1,6 @@ +import balanced + +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') + +debit = balanced.Debit.fetch('/debits/WD4YCKAyFrQBFYuFCUCRynOx') +dispute = debit.dispute \ No newline at end of file diff --git a/scenarios/debit_dispute_show/python.mako b/scenarios/debit_dispute_show/python.mako new file mode 100644 index 0000000..fee66d8 --- /dev/null +++ b/scenarios/debit_dispute_show/python.mako @@ -0,0 +1,13 @@ +% if mode == 'definition': +balanced.Debit().dispute + +% elif mode == 'request': +import balanced + +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') + +debit = balanced.Debit.fetch('/debits/WD4YCKAyFrQBFYuFCUCRynOx') +dispute = debit.dispute +% elif mode == 'response': +Dispute(status=u'pending', links={u'transaction': u'WD4YCKAyFrQBFYuFCUCRynOx'}, respond_by=u'2014-05-25T20:10:26.554061Z', amount=5000, created_at=u'2014-04-25T20:18:33.022136Z', updated_at=u'2014-04-25T20:18:33.022139Z', initiated_at=u'2014-04-25T20:10:26.554057Z', currency=u'USD', reason=u'fraud', href=u'/disputes/DT61IA2iRqyYBLqUCJNt5XNV', meta={}, id=u'DT61IA2iRqyYBLqUCJNt5XNV') +% endif \ No newline at end of file diff --git a/scenarios/debit_dispute_show/request.mako b/scenarios/debit_dispute_show/request.mako new file mode 100644 index 0000000..1406a28 --- /dev/null +++ b/scenarios/debit_dispute_show/request.mako @@ -0,0 +1,5 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +debit = balanced.Debit.fetch('${request['debit_href']}') +dispute = debit.dispute \ No newline at end of file From c04f2b52aa598c218ba38ae71e5559483932810f Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Fri, 25 Apr 2014 15:18:24 -0600 Subject: [PATCH 43/93] Update scenarios --- scenarios/_mj/api_key_create/executable.py | 2 +- scenarios/_mj/api_key_create/python.mako | 4 ++-- scenarios/api_key_create/executable.py | 2 +- scenarios/api_key_create/python.mako | 4 ++-- scenarios/api_key_delete/executable.py | 4 ++-- scenarios/api_key_delete/python.mako | 4 ++-- scenarios/api_key_list/executable.py | 2 +- scenarios/api_key_list/python.mako | 2 +- scenarios/api_key_show/executable.py | 4 ++-- scenarios/api_key_show/python.mako | 6 +++--- .../bank_account_associate_to_customer/executable.py | 6 +++--- scenarios/bank_account_associate_to_customer/python.mako | 8 ++++---- scenarios/bank_account_create/executable.py | 2 +- scenarios/bank_account_create/python.mako | 4 ++-- scenarios/bank_account_credit/executable.py | 4 ++-- scenarios/bank_account_credit/python.mako | 6 +++--- scenarios/bank_account_debit/executable.py | 4 ++-- scenarios/bank_account_debit/python.mako | 6 +++--- scenarios/bank_account_delete/executable.py | 4 ++-- scenarios/bank_account_delete/python.mako | 4 ++-- scenarios/bank_account_list/executable.py | 2 +- scenarios/bank_account_list/python.mako | 2 +- scenarios/bank_account_show/executable.py | 4 ++-- scenarios/bank_account_show/python.mako | 6 +++--- scenarios/bank_account_update/executable.py | 4 ++-- scenarios/bank_account_update/python.mako | 6 +++--- scenarios/bank_account_verification_create/executable.py | 4 ++-- scenarios/bank_account_verification_create/python.mako | 6 +++--- scenarios/bank_account_verification_show/executable.py | 4 ++-- scenarios/bank_account_verification_show/python.mako | 6 +++--- scenarios/bank_account_verification_update/executable.py | 4 ++-- scenarios/bank_account_verification_update/python.mako | 6 +++--- scenarios/callback_create/executable.py | 2 +- scenarios/callback_create/python.mako | 4 ++-- scenarios/callback_delete/executable.py | 4 ++-- scenarios/callback_delete/python.mako | 4 ++-- scenarios/callback_list/executable.py | 2 +- scenarios/callback_list/python.mako | 2 +- scenarios/callback_show/executable.py | 4 ++-- scenarios/callback_show/python.mako | 6 +++--- scenarios/card_associate_to_customer/executable.py | 6 +++--- scenarios/card_associate_to_customer/python.mako | 8 ++++---- scenarios/card_create/executable.py | 2 +- scenarios/card_create/python.mako | 4 ++-- scenarios/card_create_dispute/executable.py | 2 +- scenarios/card_create_dispute/python.mako | 4 ++-- scenarios/card_debit/executable.py | 4 ++-- scenarios/card_debit/python.mako | 6 +++--- scenarios/card_debit_dispute/executable.py | 4 ++-- scenarios/card_debit_dispute/python.mako | 6 +++--- scenarios/card_delete/executable.py | 4 ++-- scenarios/card_delete/python.mako | 4 ++-- scenarios/card_hold_capture/executable.py | 4 ++-- scenarios/card_hold_capture/python.mako | 6 +++--- scenarios/card_hold_create/executable.py | 4 ++-- scenarios/card_hold_create/python.mako | 6 +++--- scenarios/card_hold_list/executable.py | 2 +- scenarios/card_hold_list/python.mako | 2 +- scenarios/card_hold_show/executable.py | 4 ++-- scenarios/card_hold_show/python.mako | 6 +++--- scenarios/card_hold_update/executable.py | 4 ++-- scenarios/card_hold_update/python.mako | 6 +++--- scenarios/card_hold_void/executable.py | 4 ++-- scenarios/card_hold_void/python.mako | 6 +++--- scenarios/card_list/executable.py | 2 +- scenarios/card_list/python.mako | 2 +- scenarios/card_show/executable.py | 4 ++-- scenarios/card_show/python.mako | 6 +++--- scenarios/card_update/executable.py | 4 ++-- scenarios/card_update/python.mako | 6 +++--- scenarios/credit_list/executable.py | 2 +- scenarios/credit_list/python.mako | 2 +- scenarios/credit_list_bank_account/executable.py | 4 ++-- scenarios/credit_list_bank_account/python.mako | 4 ++-- scenarios/credit_show/executable.py | 4 ++-- scenarios/credit_show/python.mako | 6 +++--- scenarios/credit_update/executable.py | 4 ++-- scenarios/credit_update/python.mako | 6 +++--- scenarios/customer_create/executable.py | 2 +- scenarios/customer_create/python.mako | 4 ++-- scenarios/customer_delete/executable.py | 4 ++-- scenarios/customer_delete/python.mako | 4 ++-- scenarios/customer_list/executable.py | 2 +- scenarios/customer_list/python.mako | 2 +- scenarios/customer_show/executable.py | 4 ++-- scenarios/customer_show/python.mako | 6 +++--- scenarios/customer_update/executable.py | 4 ++-- scenarios/customer_update/python.mako | 6 +++--- scenarios/debit_list/executable.py | 2 +- scenarios/debit_list/python.mako | 2 +- scenarios/debit_show/executable.py | 4 ++-- scenarios/debit_show/python.mako | 6 +++--- scenarios/debit_update/executable.py | 4 ++-- scenarios/debit_update/python.mako | 6 +++--- scenarios/dispute_list/executable.py | 2 +- scenarios/dispute_list/python.mako | 2 +- scenarios/dispute_show/executable.py | 4 ++-- scenarios/dispute_show/python.mako | 6 +++--- scenarios/event_list/executable.py | 2 +- scenarios/event_list/python.mako | 2 +- scenarios/event_show/executable.py | 4 ++-- scenarios/event_show/python.mako | 6 +++--- scenarios/order_create/executable.py | 4 ++-- scenarios/order_create/python.mako | 6 +++--- scenarios/order_list/executable.py | 2 +- scenarios/order_list/python.mako | 2 +- scenarios/order_show/executable.py | 4 ++-- scenarios/order_show/python.mako | 6 +++--- scenarios/order_update/executable.py | 4 ++-- scenarios/order_update/python.mako | 6 +++--- scenarios/refund_create/executable.py | 4 ++-- scenarios/refund_create/python.mako | 6 +++--- scenarios/refund_list/executable.py | 2 +- scenarios/refund_list/python.mako | 2 +- scenarios/refund_show/executable.py | 4 ++-- scenarios/refund_show/python.mako | 6 +++--- scenarios/refund_update/executable.py | 4 ++-- scenarios/refund_update/python.mako | 6 +++--- scenarios/reversal_create/executable.py | 4 ++-- scenarios/reversal_create/python.mako | 6 +++--- scenarios/reversal_list/executable.py | 2 +- scenarios/reversal_list/python.mako | 2 +- scenarios/reversal_show/executable.py | 4 ++-- scenarios/reversal_show/python.mako | 6 +++--- scenarios/reversal_update/executable.py | 4 ++-- scenarios/reversal_update/python.mako | 6 +++--- 126 files changed, 260 insertions(+), 260 deletions(-) diff --git a/scenarios/_mj/api_key_create/executable.py b/scenarios/_mj/api_key_create/executable.py index bd23f6e..6f09bfb 100644 --- a/scenarios/_mj/api_key_create/executable.py +++ b/scenarios/_mj/api_key_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') api_key = balanced.APIKey() api_key.save() \ No newline at end of file diff --git a/scenarios/_mj/api_key_create/python.mako b/scenarios/_mj/api_key_create/python.mako index cb275ba..c840c36 100644 --- a/scenarios/_mj/api_key_create/python.mako +++ b/scenarios/_mj/api_key_create/python.mako @@ -4,10 +4,10 @@ balanced.APIKey % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') api_key = balanced.APIKey() api_key.save() % elif mode == 'response': -APIKey(links={}, created_at=u'2014-04-17T22:38:39.103798Z', secret=u'ak-test-1DSRO02OhucdVxve32NKh57AHNr4kmhb', href=u'/api_keys/AK7KGjv4YKtOf03Lqm0f84V', meta={}, id=u'AK7KGjv4YKtOf03Lqm0f84V') +APIKey(links={}, created_at=u'2014-04-25T20:09:11.537493Z', secret=u'ak-test-2hjXn5Ny6P9aFu5jitCvkF06nNIHc3sYN', href=u'/api_keys/AK3DgZwSCD2ggxGSw1bsiyDX', meta={}, id=u'AK3DgZwSCD2ggxGSw1bsiyDX') % endif \ No newline at end of file diff --git a/scenarios/api_key_create/executable.py b/scenarios/api_key_create/executable.py index 8b4f2c6..0f1e752 100644 --- a/scenarios/api_key_create/executable.py +++ b/scenarios/api_key_create/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') api_key = balanced.APIKey().save() \ No newline at end of file diff --git a/scenarios/api_key_create/python.mako b/scenarios/api_key_create/python.mako index 08a1455..0bfa6d1 100644 --- a/scenarios/api_key_create/python.mako +++ b/scenarios/api_key_create/python.mako @@ -3,9 +3,9 @@ balanced.APIKey() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') api_key = balanced.APIKey().save() % elif mode == 'response': -APIKey(links={}, created_at=u'2014-04-17T22:38:39.103798Z', secret=u'ak-test-1DSRO02OhucdVxve32NKh57AHNr4kmhb', href=u'/api_keys/AK7KGjv4YKtOf03Lqm0f84V', meta={}, id=u'AK7KGjv4YKtOf03Lqm0f84V') +APIKey(links={}, created_at=u'2014-04-25T20:09:11.537493Z', secret=u'ak-test-2hjXn5Ny6P9aFu5jitCvkF06nNIHc3sYN', href=u'/api_keys/AK3DgZwSCD2ggxGSw1bsiyDX', meta={}, id=u'AK3DgZwSCD2ggxGSw1bsiyDX') % endif \ No newline at end of file diff --git a/scenarios/api_key_delete/executable.py b/scenarios/api_key_delete/executable.py index f189254..9def46b 100644 --- a/scenarios/api_key_delete/executable.py +++ b/scenarios/api_key_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -key = balanced.APIKey.fetch('/api_keys/AK7KGjv4YKtOf03Lqm0f84V') +key = balanced.APIKey.fetch('/api_keys/AK3DgZwSCD2ggxGSw1bsiyDX') key.delete() \ No newline at end of file diff --git a/scenarios/api_key_delete/python.mako b/scenarios/api_key_delete/python.mako index 9d77f7a..2fd99db 100644 --- a/scenarios/api_key_delete/python.mako +++ b/scenarios/api_key_delete/python.mako @@ -3,9 +3,9 @@ balanced.APIKey().delete() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -key = balanced.APIKey.fetch('/api_keys/AK7KGjv4YKtOf03Lqm0f84V') +key = balanced.APIKey.fetch('/api_keys/AK3DgZwSCD2ggxGSw1bsiyDX') key.delete() % elif mode == 'response': diff --git a/scenarios/api_key_list/executable.py b/scenarios/api_key_list/executable.py index 93eec3d..096ae74 100644 --- a/scenarios/api_key_list/executable.py +++ b/scenarios/api_key_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') keys = balanced.APIKey.query \ No newline at end of file diff --git a/scenarios/api_key_list/python.mako b/scenarios/api_key_list/python.mako index cd78030..6776e65 100644 --- a/scenarios/api_key_list/python.mako +++ b/scenarios/api_key_list/python.mako @@ -4,7 +4,7 @@ balanced.APIKey.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') keys = balanced.APIKey.query % elif mode == 'response': diff --git a/scenarios/api_key_show/executable.py b/scenarios/api_key_show/executable.py index 2d9d46a..7d7042c 100644 --- a/scenarios/api_key_show/executable.py +++ b/scenarios/api_key_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -key = balanced.APIKey.fetch('/api_keys/AK7KGjv4YKtOf03Lqm0f84V') \ No newline at end of file +key = balanced.APIKey.fetch('/api_keys/AK3DgZwSCD2ggxGSw1bsiyDX') \ No newline at end of file diff --git a/scenarios/api_key_show/python.mako b/scenarios/api_key_show/python.mako index 1b676d7..6361725 100644 --- a/scenarios/api_key_show/python.mako +++ b/scenarios/api_key_show/python.mako @@ -4,9 +4,9 @@ balanced.APIKey.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -key = balanced.APIKey.fetch('/api_keys/AK7KGjv4YKtOf03Lqm0f84V') +key = balanced.APIKey.fetch('/api_keys/AK3DgZwSCD2ggxGSw1bsiyDX') % elif mode == 'response': -APIKey(created_at=u'2014-04-17T22:38:39.103798Z', href=u'/api_keys/AK7KGjv4YKtOf03Lqm0f84V', meta={}, id=u'AK7KGjv4YKtOf03Lqm0f84V', links={}) +APIKey(created_at=u'2014-04-25T20:09:11.537493Z', href=u'/api_keys/AK3DgZwSCD2ggxGSw1bsiyDX', meta={}, id=u'AK3DgZwSCD2ggxGSw1bsiyDX', links={}) % endif \ No newline at end of file diff --git a/scenarios/bank_account_associate_to_customer/executable.py b/scenarios/bank_account_associate_to_customer/executable.py index c52df58..78d475c 100644 --- a/scenarios/bank_account_associate_to_customer/executable.py +++ b/scenarios/bank_account_associate_to_customer/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card = balanced.Card.fetch('/bank_accounts/BAscOV2erMwv3yhIb5sFTaV') -card.associate_to_customer('/customers/CUeXNjpejPooRtSnJLc6SRD') \ No newline at end of file +card = balanced.Card.fetch('/bank_accounts/BA3Y63fK5STwlhKNMkE3Utmd') +card.associate_to_customer('/customers/CU3VYCUIfwngJsidJWdGw2W5') \ No newline at end of file diff --git a/scenarios/bank_account_associate_to_customer/python.mako b/scenarios/bank_account_associate_to_customer/python.mako index 96c1be6..2f13d34 100644 --- a/scenarios/bank_account_associate_to_customer/python.mako +++ b/scenarios/bank_account_associate_to_customer/python.mako @@ -3,10 +3,10 @@ balanced.Card().associate_to_customer() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card = balanced.Card.fetch('/bank_accounts/BAscOV2erMwv3yhIb5sFTaV') -card.associate_to_customer('/customers/CUeXNjpejPooRtSnJLc6SRD') +card = balanced.Card.fetch('/bank_accounts/BA3Y63fK5STwlhKNMkE3Utmd') +card.associate_to_customer('/customers/CU3VYCUIfwngJsidJWdGw2W5') % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': u'CUeXNjpejPooRtSnJLc6SRD', u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-17T22:38:57.291677Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-17T22:38:57.745100Z', href=u'/bank_accounts/BAscOV2erMwv3yhIb5sFTaV', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BAscOV2erMwv3yhIb5sFTaV') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': u'CU3VYCUIfwngJsidJWdGw2W5', u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-25T20:09:30.053834Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-25T20:09:30.667083Z', href=u'/bank_accounts/BA3Y63fK5STwlhKNMkE3Utmd', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA3Y63fK5STwlhKNMkE3Utmd') % endif \ No newline at end of file diff --git a/scenarios/bank_account_create/executable.py b/scenarios/bank_account_create/executable.py index e51c158..d2b989e 100644 --- a/scenarios/bank_account_create/executable.py +++ b/scenarios/bank_account_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') bank_account = balanced.BankAccount( routing_number='121000358', diff --git a/scenarios/bank_account_create/python.mako b/scenarios/bank_account_create/python.mako index 6dbc771..48e0e2e 100644 --- a/scenarios/bank_account_create/python.mako +++ b/scenarios/bank_account_create/python.mako @@ -3,7 +3,7 @@ balanced.BankAccount().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') bank_account = balanced.BankAccount( routing_number='121000358', @@ -12,5 +12,5 @@ bank_account = balanced.BankAccount( name='Johann Bernoulli' ).save() % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-17T22:38:57.291677Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-17T22:38:57.291680Z', href=u'/bank_accounts/BAscOV2erMwv3yhIb5sFTaV', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BAscOV2erMwv3yhIb5sFTaV') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-25T20:09:30.053834Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-25T20:09:30.053837Z', href=u'/bank_accounts/BA3Y63fK5STwlhKNMkE3Utmd', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA3Y63fK5STwlhKNMkE3Utmd') % endif \ No newline at end of file diff --git a/scenarios/bank_account_credit/executable.py b/scenarios/bank_account_credit/executable.py index 04db74b..b0c865b 100644 --- a/scenarios/bank_account_credit/executable.py +++ b/scenarios/bank_account_credit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BAscOV2erMwv3yhIb5sFTaV') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3Y63fK5STwlhKNMkE3Utmd') bank_account.credit( amount=5000 ) \ No newline at end of file diff --git a/scenarios/bank_account_credit/python.mako b/scenarios/bank_account_credit/python.mako index a3421a0..fd02bd8 100644 --- a/scenarios/bank_account_credit/python.mako +++ b/scenarios/bank_account_credit/python.mako @@ -3,12 +3,12 @@ balanced.BankAccount().credit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BAscOV2erMwv3yhIb5sFTaV') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3Y63fK5STwlhKNMkE3Utmd') bank_account.credit( amount=5000 ) % elif mode == 'response': -Credit(status=u'succeeded', description=None, links={u'customer': u'CUeXNjpejPooRtSnJLc6SRD', u'destination': u'BAscOV2erMwv3yhIb5sFTaV', u'order': None}, amount=5000, created_at=u'2014-04-17T22:40:19.333713Z', updated_at=u'2014-04-17T22:40:19.557731Z', failure_reason=None, currency=u'USD', transaction_number=u'CR808-363-1663', href=u'/credits/CR1KskgNXcoA6e52QczoCYyF', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR1KskgNXcoA6e52QczoCYyF') +Credit(status=u'succeeded', description=None, links={u'customer': u'CU3VYCUIfwngJsidJWdGw2W5', u'destination': u'BA3Y63fK5STwlhKNMkE3Utmd', u'order': None}, amount=5000, created_at=u'2014-04-25T20:18:52.480929Z', updated_at=u'2014-04-25T20:18:54.380146Z', failure_reason=None, currency=u'USD', transaction_number=u'CR666-481-5204', href=u'/credits/CR6nBcaGvGc4dtflEB1bjKBP', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR6nBcaGvGc4dtflEB1bjKBP') % endif \ No newline at end of file diff --git a/scenarios/bank_account_debit/executable.py b/scenarios/bank_account_debit/executable.py index 209c077..3e64052 100644 --- a/scenarios/bank_account_debit/executable.py +++ b/scenarios/bank_account_debit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BAcRGk40xmI8meZpNLB3oYp') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3IhKG3bIN22cLHbaOIGtHb') bank_account.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/bank_account_debit/python.mako b/scenarios/bank_account_debit/python.mako index 664470d..7d7ec1f 100644 --- a/scenarios/bank_account_debit/python.mako +++ b/scenarios/bank_account_debit/python.mako @@ -3,14 +3,14 @@ balanced.BankAccount().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BAcRGk40xmI8meZpNLB3oYp') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3IhKG3bIN22cLHbaOIGtHb') bank_account.debit( appears_on_statement_as='Statement text', amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'BAcRGk40xmI8meZpNLB3oYp', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-17T22:38:59.275346Z', updated_at=u'2014-04-17T22:38:59.553856Z', failure_reason=None, currency=u'USD', transaction_number=u'W805-408-0649', href=u'/debits/WDure3wqINhVaYzrW0oclQd', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WDure3wqINhVaYzrW0oclQd') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'BA3IhKG3bIN22cLHbaOIGtHb', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T20:09:33.925749Z', updated_at=u'2014-04-25T20:09:34.551675Z', failure_reason=None, currency=u'USD', transaction_number=u'W212-186-3238', href=u'/debits/WD42s4BBkPXvzXTxyo7CLfFj', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD42s4BBkPXvzXTxyo7CLfFj') % endif \ No newline at end of file diff --git a/scenarios/bank_account_delete/executable.py b/scenarios/bank_account_delete/executable.py index 3132985..2c27c69 100644 --- a/scenarios/bank_account_delete/executable.py +++ b/scenarios/bank_account_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA8MzVwjVFnkuUvfHaXmqMZ') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl') bank_account.delete() \ No newline at end of file diff --git a/scenarios/bank_account_delete/python.mako b/scenarios/bank_account_delete/python.mako index 71b0b8b..e9ec7fc 100644 --- a/scenarios/bank_account_delete/python.mako +++ b/scenarios/bank_account_delete/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount().delete() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA8MzVwjVFnkuUvfHaXmqMZ') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl') bank_account.delete() % elif mode == 'response': diff --git a/scenarios/bank_account_list/executable.py b/scenarios/bank_account_list/executable.py index 483528c..d8e2a41 100644 --- a/scenarios/bank_account_list/executable.py +++ b/scenarios/bank_account_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') bank_accounts = balanced.BankAccount.query \ No newline at end of file diff --git a/scenarios/bank_account_list/python.mako b/scenarios/bank_account_list/python.mako index 9f4b102..27df78f 100644 --- a/scenarios/bank_account_list/python.mako +++ b/scenarios/bank_account_list/python.mako @@ -4,7 +4,7 @@ balanced.BankAccount.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') bank_accounts = balanced.BankAccount.query % elif mode == 'response': diff --git a/scenarios/bank_account_show/executable.py b/scenarios/bank_account_show/executable.py index 54267c2..83337f6 100644 --- a/scenarios/bank_account_show/executable.py +++ b/scenarios/bank_account_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA8MzVwjVFnkuUvfHaXmqMZ') \ No newline at end of file +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl') \ No newline at end of file diff --git a/scenarios/bank_account_show/python.mako b/scenarios/bank_account_show/python.mako index 7be67bc..c68be8b 100644 --- a/scenarios/bank_account_show/python.mako +++ b/scenarios/bank_account_show/python.mako @@ -4,9 +4,9 @@ balanced.BankAccount.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA8MzVwjVFnkuUvfHaXmqMZ') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl') % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-17T22:38:50.708229Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-17T22:38:50.708231Z', href=u'/bank_accounts/BA8MzVwjVFnkuUvfHaXmqMZ', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA8MzVwjVFnkuUvfHaXmqMZ') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-25T20:09:22.528624Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-25T20:09:22.528628Z', href=u'/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA3PDwDCkdeC4OgPtPNwoCWl') % endif \ No newline at end of file diff --git a/scenarios/bank_account_update/executable.py b/scenarios/bank_account_update/executable.py index f409a50..77879f1 100644 --- a/scenarios/bank_account_update/executable.py +++ b/scenarios/bank_account_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA8MzVwjVFnkuUvfHaXmqMZ') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl') bank_account.meta = { 'twitter.id'='1234987650', 'facebook.user_id'='0192837465', diff --git a/scenarios/bank_account_update/python.mako b/scenarios/bank_account_update/python.mako index d5fc88e..a506168 100644 --- a/scenarios/bank_account_update/python.mako +++ b/scenarios/bank_account_update/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA8MzVwjVFnkuUvfHaXmqMZ') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl') bank_account.meta = { 'twitter.id'='1234987650', 'facebook.user_id'='0192837465', @@ -13,5 +13,5 @@ bank_account.meta = { } bank_account.save() % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-17T22:38:50.708229Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-17T22:38:54.102822Z', href=u'/bank_accounts/BA8MzVwjVFnkuUvfHaXmqMZ', meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA8MzVwjVFnkuUvfHaXmqMZ') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-25T20:09:22.528624Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-25T20:09:25.975494Z', href=u'/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl', meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA3PDwDCkdeC4OgPtPNwoCWl') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/executable.py b/scenarios/bank_account_verification_create/executable.py index 3dc9357..7881bf5 100644 --- a/scenarios/bank_account_verification_create/executable.py +++ b/scenarios/bank_account_verification_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BAcRGk40xmI8meZpNLB3oYp') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3IhKG3bIN22cLHbaOIGtHb') verification = bank_account.verify() \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/python.mako b/scenarios/bank_account_verification_create/python.mako index 0df2541..604b1dd 100644 --- a/scenarios/bank_account_verification_create/python.mako +++ b/scenarios/bank_account_verification_create/python.mako @@ -3,10 +3,10 @@ balanced.BankAccountVerification().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BAcRGk40xmI8meZpNLB3oYp') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3IhKG3bIN22cLHbaOIGtHb') verification = bank_account.verify() % elif mode == 'response': -BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BAcRGk40xmI8meZpNLB3oYp'}, created_at=u'2014-04-17T22:38:45.205941Z', attempts_remaining=3, updated_at=u'2014-04-17T22:38:45.505191Z', deposit_status=u'succeeded', attempts=0, href=u'/verifications/BZ2AZ05mk2SQsEcicjSh3UN', meta={}, id=u'BZ2AZ05mk2SQsEcicjSh3UN') +BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA3IhKG3bIN22cLHbaOIGtHb'}, created_at=u'2014-04-25T20:09:17.814785Z', attempts_remaining=3, updated_at=u'2014-04-25T20:09:18.218504Z', deposit_status=u'succeeded', attempts=0, href=u'/verifications/BZ3KkIZuSazKfqFrFIfsrhmB', meta={}, id=u'BZ3KkIZuSazKfqFrFIfsrhmB') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/executable.py b/scenarios/bank_account_verification_show/executable.py index 0bd5010..af8c2aa 100644 --- a/scenarios/bank_account_verification_show/executable.py +++ b/scenarios/bank_account_verification_show/executable.py @@ -1,4 +1,4 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ2AZ05mk2SQsEcicjSh3UN') \ No newline at end of file +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ3KkIZuSazKfqFrFIfsrhmB') \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/python.mako b/scenarios/bank_account_verification_show/python.mako index fbb8be7..1a6c7bb 100644 --- a/scenarios/bank_account_verification_show/python.mako +++ b/scenarios/bank_account_verification_show/python.mako @@ -4,8 +4,8 @@ balanced.BankAccountVerification.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ2AZ05mk2SQsEcicjSh3UN') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ3KkIZuSazKfqFrFIfsrhmB') % elif mode == 'response': -BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BAcRGk40xmI8meZpNLB3oYp'}, created_at=u'2014-04-17T22:38:45.205941Z', attempts_remaining=3, updated_at=u'2014-04-17T22:38:45.505191Z', deposit_status=u'succeeded', attempts=0, href=u'/verifications/BZ2AZ05mk2SQsEcicjSh3UN', meta={}, id=u'BZ2AZ05mk2SQsEcicjSh3UN') +BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA3IhKG3bIN22cLHbaOIGtHb'}, created_at=u'2014-04-25T20:09:17.814785Z', attempts_remaining=3, updated_at=u'2014-04-25T20:09:18.218504Z', deposit_status=u'succeeded', attempts=0, href=u'/verifications/BZ3KkIZuSazKfqFrFIfsrhmB', meta={}, id=u'BZ3KkIZuSazKfqFrFIfsrhmB') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/executable.py b/scenarios/bank_account_verification_update/executable.py index 292aadb..4367d19 100644 --- a/scenarios/bank_account_verification_update/executable.py +++ b/scenarios/bank_account_verification_update/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ2AZ05mk2SQsEcicjSh3UN') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ3KkIZuSazKfqFrFIfsrhmB') verification.confirm(amount_1=1, amount_2=1) \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/python.mako b/scenarios/bank_account_verification_update/python.mako index b9eb4da..e54056f 100644 --- a/scenarios/bank_account_verification_update/python.mako +++ b/scenarios/bank_account_verification_update/python.mako @@ -3,10 +3,10 @@ balanced.BankAccountVerification().confirm() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ2AZ05mk2SQsEcicjSh3UN') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ3KkIZuSazKfqFrFIfsrhmB') verification.confirm(amount_1=1, amount_2=1) % elif mode == 'response': -BankAccountVerification(verification_status=u'succeeded', links={u'bank_account': u'BAcRGk40xmI8meZpNLB3oYp'}, created_at=u'2014-04-17T22:38:45.205941Z', attempts_remaining=2, updated_at=u'2014-04-17T22:38:49.126263Z', deposit_status=u'succeeded', attempts=1, href=u'/verifications/BZ2AZ05mk2SQsEcicjSh3UN', meta={}, id=u'BZ2AZ05mk2SQsEcicjSh3UN') +BankAccountVerification(verification_status=u'succeeded', links={u'bank_account': u'BA3IhKG3bIN22cLHbaOIGtHb'}, created_at=u'2014-04-25T20:09:17.814785Z', attempts_remaining=2, updated_at=u'2014-04-25T20:09:20.852682Z', deposit_status=u'succeeded', attempts=1, href=u'/verifications/BZ3KkIZuSazKfqFrFIfsrhmB', meta={}, id=u'BZ3KkIZuSazKfqFrFIfsrhmB') % endif \ No newline at end of file diff --git a/scenarios/callback_create/executable.py b/scenarios/callback_create/executable.py index 166cfa4..15ab4e1 100644 --- a/scenarios/callback_create/executable.py +++ b/scenarios/callback_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') callback = balanced.Callback( url='http://www.example.com/callback', diff --git a/scenarios/callback_create/python.mako b/scenarios/callback_create/python.mako index b7c6518..af2d5c8 100644 --- a/scenarios/callback_create/python.mako +++ b/scenarios/callback_create/python.mako @@ -3,12 +3,12 @@ balanced.Callback() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') callback = balanced.Callback( url='http://www.example.com/callback', method='post' ).save() % elif mode == 'response': -Callback(links={}, url=u'http://www.example.com/callback', id=u'CBwxLHWPLsoBqKqVyUvZRKp', href=u'/callbacks/CBwxLHWPLsoBqKqVyUvZRKp', method=u'post', revision=u'1.1') +Callback(links={}, url=u'http://www.example.com/callback', id=u'CB44XaMOcxsUnuQoA5A4VKCx', href=u'/callbacks/CB44XaMOcxsUnuQoA5A4VKCx', method=u'post', revision=u'1.1') % endif \ No newline at end of file diff --git a/scenarios/callback_delete/executable.py b/scenarios/callback_delete/executable.py index 3c04aad..4d1f5cd 100644 --- a/scenarios/callback_delete/executable.py +++ b/scenarios/callback_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -callback = balanced.Callback.fetch('/callbacks/CBwxLHWPLsoBqKqVyUvZRKp') +callback = balanced.Callback.fetch('/callbacks/CB44XaMOcxsUnuQoA5A4VKCx') callback.unstore() \ No newline at end of file diff --git a/scenarios/callback_delete/python.mako b/scenarios/callback_delete/python.mako index 9d044db..539de5c 100644 --- a/scenarios/callback_delete/python.mako +++ b/scenarios/callback_delete/python.mako @@ -3,9 +3,9 @@ balanced.Callback().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -callback = balanced.Callback.fetch('/callbacks/CBwxLHWPLsoBqKqVyUvZRKp') +callback = balanced.Callback.fetch('/callbacks/CB44XaMOcxsUnuQoA5A4VKCx') callback.unstore() % elif mode == 'response': diff --git a/scenarios/callback_list/executable.py b/scenarios/callback_list/executable.py index cfa6d34..d3813c3 100644 --- a/scenarios/callback_list/executable.py +++ b/scenarios/callback_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') callbacks = balanced.Callback.query \ No newline at end of file diff --git a/scenarios/callback_list/python.mako b/scenarios/callback_list/python.mako index dbed104..19b4e0e 100644 --- a/scenarios/callback_list/python.mako +++ b/scenarios/callback_list/python.mako @@ -4,7 +4,7 @@ balanced.Callback.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') callbacks = balanced.Callback.query % elif mode == 'response': diff --git a/scenarios/callback_show/executable.py b/scenarios/callback_show/executable.py index 8e5289d..b193521 100644 --- a/scenarios/callback_show/executable.py +++ b/scenarios/callback_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -callback = balanced.Callback.fetch('/callbacks/CBwxLHWPLsoBqKqVyUvZRKp') \ No newline at end of file +callback = balanced.Callback.fetch('/callbacks/CB44XaMOcxsUnuQoA5A4VKCx') \ No newline at end of file diff --git a/scenarios/callback_show/python.mako b/scenarios/callback_show/python.mako index 6be40ef..f28fe8b 100644 --- a/scenarios/callback_show/python.mako +++ b/scenarios/callback_show/python.mako @@ -4,9 +4,9 @@ balanced.Callback.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -callback = balanced.Callback.fetch('/callbacks/CBwxLHWPLsoBqKqVyUvZRKp') +callback = balanced.Callback.fetch('/callbacks/CB44XaMOcxsUnuQoA5A4VKCx') % elif mode == 'response': -Callback(links={}, url=u'http://www.example.com/callback', id=u'CBwxLHWPLsoBqKqVyUvZRKp', href=u'/callbacks/CBwxLHWPLsoBqKqVyUvZRKp', method=u'post', revision=u'1.1') +Callback(links={}, url=u'http://www.example.com/callback', id=u'CB44XaMOcxsUnuQoA5A4VKCx', href=u'/callbacks/CB44XaMOcxsUnuQoA5A4VKCx', method=u'post', revision=u'1.1') % endif \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/executable.py b/scenarios/card_associate_to_customer/executable.py index 5eaf2ef..764c8ed 100644 --- a/scenarios/card_associate_to_customer/executable.py +++ b/scenarios/card_associate_to_customer/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card = balanced.Card.fetch('/cards/CCVkCgaysaNhZH3ITVLmQ9X') -card.associate_to_customer('/customers/CUeXNjpejPooRtSnJLc6SRD') \ No newline at end of file +card = balanced.Card.fetch('/cards/CC4tvKLTKXcBJAgkGvPEW58N') +card.associate_to_customer('/customers/CU3VYCUIfwngJsidJWdGw2W5') \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/python.mako b/scenarios/card_associate_to_customer/python.mako index 6c71e1d..8e60ccd 100644 --- a/scenarios/card_associate_to_customer/python.mako +++ b/scenarios/card_associate_to_customer/python.mako @@ -3,10 +3,10 @@ balanced.Card().associate_to_customer() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card = balanced.Card.fetch('/cards/CCVkCgaysaNhZH3ITVLmQ9X') -card.associate_to_customer('/customers/CUeXNjpejPooRtSnJLc6SRD') +card = balanced.Card.fetch('/cards/CC4tvKLTKXcBJAgkGvPEW58N') +card.associate_to_customer('/customers/CU3VYCUIfwngJsidJWdGw2W5') % elif mode == 'response': -Card(cvv_match=u'yes', links={u'customer': u'CUeXNjpejPooRtSnJLc6SRD'}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-17T22:39:23.185879Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-17T22:39:23.629066Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CCVkCgaysaNhZH3ITVLmQ9X', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CCVkCgaysaNhZH3ITVLmQ9X', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) +Card(cvv_match=u'yes', links={u'customer': u'CU3VYCUIfwngJsidJWdGw2W5'}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-25T20:09:57.984444Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-25T20:09:58.467948Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CC4tvKLTKXcBJAgkGvPEW58N', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CC4tvKLTKXcBJAgkGvPEW58N', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) % endif \ No newline at end of file diff --git a/scenarios/card_create/executable.py b/scenarios/card_create/executable.py index 0254da6..008f312 100644 --- a/scenarios/card_create/executable.py +++ b/scenarios/card_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') card = balanced.Card( cvv='123', diff --git a/scenarios/card_create/python.mako b/scenarios/card_create/python.mako index d6af7f4..92260fd 100644 --- a/scenarios/card_create/python.mako +++ b/scenarios/card_create/python.mako @@ -3,7 +3,7 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') card = balanced.Card( cvv='123', @@ -12,5 +12,5 @@ card = balanced.Card( expiration_year='2020' ).save() % elif mode == 'response': -Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-17T22:39:23.185879Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-17T22:39:23.185881Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CCVkCgaysaNhZH3ITVLmQ9X', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CCVkCgaysaNhZH3ITVLmQ9X', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) +Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-25T20:09:57.984444Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-25T20:09:57.984446Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CC4tvKLTKXcBJAgkGvPEW58N', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CC4tvKLTKXcBJAgkGvPEW58N', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) % endif \ No newline at end of file diff --git a/scenarios/card_create_dispute/executable.py b/scenarios/card_create_dispute/executable.py index fe38d16..ceed7b5 100644 --- a/scenarios/card_create_dispute/executable.py +++ b/scenarios/card_create_dispute/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') card = balanced.Card( cvv='123', diff --git a/scenarios/card_create_dispute/python.mako b/scenarios/card_create_dispute/python.mako index 092e5f1..199776b 100644 --- a/scenarios/card_create_dispute/python.mako +++ b/scenarios/card_create_dispute/python.mako @@ -3,7 +3,7 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') card = balanced.Card( cvv='123', @@ -12,5 +12,5 @@ card = balanced.Card( expiration_year='3000' ).save() % elif mode == 'response': -Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=3000, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-17T22:39:50.334535Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx0002', updated_at=u'2014-04-17T22:39:50.334538Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CC1dQyiZY6h896UfGpBAWXOJ', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CC1dQyiZY6h896UfGpBAWXOJ', fingerprint=u'3c667a62653e187f29b5781eeb0703f26e99558080de0c0f9490b5f9c4ac2871', is_verified=True, brand=u'Discover', name=None) +Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=3000, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-25T20:10:24.900273Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx0002', updated_at=u'2014-04-25T20:10:24.900275Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CC4XMSQg2OY6rrcrkeEGtLcZ', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CC4XMSQg2OY6rrcrkeEGtLcZ', fingerprint=u'3c667a62653e187f29b5781eeb0703f26e99558080de0c0f9490b5f9c4ac2871', is_verified=True, brand=u'Discover', name=None) % endif \ No newline at end of file diff --git a/scenarios/card_debit/executable.py b/scenarios/card_debit/executable.py index bd084c4..5cf23b9 100644 --- a/scenarios/card_debit/executable.py +++ b/scenarios/card_debit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card = balanced.Card.fetch('/cards/CCVkCgaysaNhZH3ITVLmQ9X') +card = balanced.Card.fetch('/cards/CC4tvKLTKXcBJAgkGvPEW58N') card.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/card_debit/python.mako b/scenarios/card_debit/python.mako index 891f70f..6acd600 100644 --- a/scenarios/card_debit/python.mako +++ b/scenarios/card_debit/python.mako @@ -3,14 +3,14 @@ balanced.Card().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card = balanced.Card.fetch('/cards/CCVkCgaysaNhZH3ITVLmQ9X') +card = balanced.Card.fetch('/cards/CC4tvKLTKXcBJAgkGvPEW58N') card.debit( appears_on_statement_as='Statement text', amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CUeXNjpejPooRtSnJLc6SRD', u'source': u'CCVkCgaysaNhZH3ITVLmQ9X', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-17T22:39:46.207280Z', updated_at=u'2014-04-17T22:39:46.903737Z', failure_reason=None, currency=u'USD', transaction_number=u'W087-679-0746', href=u'/debits/WD19cDwPJMMJj6UWn4YI2bGZ', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD19cDwPJMMJj6UWn4YI2bGZ') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CU3VYCUIfwngJsidJWdGw2W5', u'source': u'CC4tvKLTKXcBJAgkGvPEW58N', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T20:10:20.485474Z', updated_at=u'2014-04-25T20:10:21.476140Z', failure_reason=None, currency=u'USD', transaction_number=u'W060-183-8881', href=u'/debits/WD4SOTNKiZbBFrmMk6mfszIl', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD4SOTNKiZbBFrmMk6mfszIl') % endif \ No newline at end of file diff --git a/scenarios/card_debit_dispute/executable.py b/scenarios/card_debit_dispute/executable.py index 75a048c..64dec07 100644 --- a/scenarios/card_debit_dispute/executable.py +++ b/scenarios/card_debit_dispute/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card = balanced.Card.fetch('/cards/CC1dQyiZY6h896UfGpBAWXOJ') +card = balanced.Card.fetch('/cards/CC4XMSQg2OY6rrcrkeEGtLcZ') card.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/card_debit_dispute/python.mako b/scenarios/card_debit_dispute/python.mako index 27a40c7..9ca2086 100644 --- a/scenarios/card_debit_dispute/python.mako +++ b/scenarios/card_debit_dispute/python.mako @@ -3,14 +3,14 @@ balanced.Card().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card = balanced.Card.fetch('/cards/CC1dQyiZY6h896UfGpBAWXOJ') +card = balanced.Card.fetch('/cards/CC4XMSQg2OY6rrcrkeEGtLcZ') card.debit( appears_on_statement_as='Statement text', amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC1dQyiZY6h896UfGpBAWXOJ', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-17T22:39:51.088029Z', updated_at=u'2014-04-17T22:39:52.100741Z', failure_reason=None, currency=u'USD', transaction_number=u'W303-837-3548', href=u'/debits/WD1qIcVqGE1JrqFJuHH0d1pf', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD1qIcVqGE1JrqFJuHH0d1pf') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC4XMSQg2OY6rrcrkeEGtLcZ', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T20:10:25.648099Z', updated_at=u'2014-04-25T20:10:26.775361Z', failure_reason=None, currency=u'USD', transaction_number=u'W630-477-8252', href=u'/debits/WD4YCKAyFrQBFYuFCUCRynOx', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD4YCKAyFrQBFYuFCUCRynOx') % endif \ No newline at end of file diff --git a/scenarios/card_delete/executable.py b/scenarios/card_delete/executable.py index f617c4b..111d5d3 100644 --- a/scenarios/card_delete/executable.py +++ b/scenarios/card_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card = balanced.Card.fetch('/cards/CCOeoFZJMd94AruXU0wuSI9') +card = balanced.Card.fetch('/cards/CC4mYF7dj7X6OA2K5F0Qyb4N') card.unstore() \ No newline at end of file diff --git a/scenarios/card_delete/python.mako b/scenarios/card_delete/python.mako index 6767326..45f746a 100644 --- a/scenarios/card_delete/python.mako +++ b/scenarios/card_delete/python.mako @@ -3,9 +3,9 @@ balanced.Card().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card = balanced.Card.fetch('/cards/CCOeoFZJMd94AruXU0wuSI9') +card = balanced.Card.fetch('/cards/CC4mYF7dj7X6OA2K5F0Qyb4N') card.unstore() % elif mode == 'response': diff --git a/scenarios/card_hold_capture/executable.py b/scenarios/card_hold_capture/executable.py index 03dd7a2..be03515 100644 --- a/scenarios/card_hold_capture/executable.py +++ b/scenarios/card_hold_capture/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card_hold = balanced.CardHold.fetch('/card_holds/HLqY5FcrUWcnBzMkHpKK1WB') +card_hold = balanced.CardHold.fetch('/card_holds/HL4bdnO7ELS2JfyJ2T8elYOl') debit = card_hold.capture( appears_on_statement_as='ShowsUpOnStmt', description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_capture/python.mako b/scenarios/card_hold_capture/python.mako index ec6c22a..1e96580 100644 --- a/scenarios/card_hold_capture/python.mako +++ b/scenarios/card_hold_capture/python.mako @@ -3,13 +3,13 @@ balanced.CardHold().capture() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card_hold = balanced.CardHold.fetch('/card_holds/HLqY5FcrUWcnBzMkHpKK1WB') +card_hold = balanced.CardHold.fetch('/card_holds/HL4bdnO7ELS2JfyJ2T8elYOl') debit = card_hold.capture( appears_on_statement_as='ShowsUpOnStmt', description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CU7EYury1BOjhbW83bqFKfVr', u'source': u'CCCk1CEzUN0gDA5qh8um0rv', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-17T22:39:11.899836Z', updated_at=u'2014-04-17T22:39:12.557109Z', failure_reason=None, currency=u'USD', transaction_number=u'W443-185-7401', href=u'/debits/WDIDzVvqKBTwEp0GJ4gNBu9', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, appears_on_statement_as=u'BAL*ShowsUpOnStmt', id=u'WDIDzVvqKBTwEp0GJ4gNBu9') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CU3z3rwGWGazDwwyLy0rNqfj', u'source': u'CC4auQXiAWMBxJcEUIMYeZFj', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T20:09:46.854710Z', updated_at=u'2014-04-25T20:09:47.351487Z', failure_reason=None, currency=u'USD', transaction_number=u'W815-967-5010', href=u'/debits/WD4gZDOJ1DB443FYcbwNN5EV', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, appears_on_statement_as=u'BAL*ShowsUpOnStmt', id=u'WD4gZDOJ1DB443FYcbwNN5EV') % endif \ No newline at end of file diff --git a/scenarios/card_hold_create/executable.py b/scenarios/card_hold_create/executable.py index 94c4787..86d121b 100644 --- a/scenarios/card_hold_create/executable.py +++ b/scenarios/card_hold_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card = balanced.Card.fetch('/cards/CCCk1CEzUN0gDA5qh8um0rv') +card = balanced.Card.fetch('/cards/CC4auQXiAWMBxJcEUIMYeZFj') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_create/python.mako b/scenarios/card_hold_create/python.mako index 6b097f5..9241136 100644 --- a/scenarios/card_hold_create/python.mako +++ b/scenarios/card_hold_create/python.mako @@ -3,13 +3,13 @@ balanced.Card().hold() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card = balanced.Card.fetch('/cards/CCCk1CEzUN0gDA5qh8um0rv') +card = balanced.Card.fetch('/cards/CC4auQXiAWMBxJcEUIMYeZFj') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CCCk1CEzUN0gDA5qh8um0rv', u'debit': None}, amount=5000, created_at=u'2014-04-17T22:39:13.915486Z', updated_at=u'2014-04-17T22:39:14.097528Z', expires_at=u'2014-04-24T22:39:14.014926Z', failure_reason=None, currency=u'USD', transaction_number=u'HL198-143-2621', href=u'/card_holds/HLKUg5lJJ5fQZpvaAujCWZH', meta={}, failure_reason_code=None, voided_at=None, id=u'HLKUg5lJJ5fQZpvaAujCWZH') +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC4auQXiAWMBxJcEUIMYeZFj', u'debit': None}, amount=5000, created_at=u'2014-04-25T20:09:48.990540Z', updated_at=u'2014-04-25T20:09:49.228091Z', expires_at=u'2014-05-02T20:09:49.096484Z', failure_reason=None, currency=u'USD', transaction_number=u'HL161-849-8610', href=u'/card_holds/HL4joUazeM3BJE6emmv2Q8EF', meta={}, failure_reason_code=None, voided_at=None, id=u'HL4joUazeM3BJE6emmv2Q8EF') % endif \ No newline at end of file diff --git a/scenarios/card_hold_list/executable.py b/scenarios/card_hold_list/executable.py index e2d0899..b99838d 100644 --- a/scenarios/card_hold_list/executable.py +++ b/scenarios/card_hold_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') card_holds = balanced.CardHold.query \ No newline at end of file diff --git a/scenarios/card_hold_list/python.mako b/scenarios/card_hold_list/python.mako index e40dbe2..8086958 100644 --- a/scenarios/card_hold_list/python.mako +++ b/scenarios/card_hold_list/python.mako @@ -4,7 +4,7 @@ balanced.CardHold.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') card_holds = balanced.CardHold.query % elif mode == 'response': diff --git a/scenarios/card_hold_show/executable.py b/scenarios/card_hold_show/executable.py index c4fd470..db6fc76 100644 --- a/scenarios/card_hold_show/executable.py +++ b/scenarios/card_hold_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card_hold = balanced.CardHold.fetch('/card_holds/HLqY5FcrUWcnBzMkHpKK1WB') \ No newline at end of file +card_hold = balanced.CardHold.fetch('/card_holds/HL4bdnO7ELS2JfyJ2T8elYOl') \ No newline at end of file diff --git a/scenarios/card_hold_show/python.mako b/scenarios/card_hold_show/python.mako index 5a03495..31d1dda 100644 --- a/scenarios/card_hold_show/python.mako +++ b/scenarios/card_hold_show/python.mako @@ -4,9 +4,9 @@ balanced.CardHold.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card_hold = balanced.CardHold.fetch('/card_holds/HLqY5FcrUWcnBzMkHpKK1WB') +card_hold = balanced.CardHold.fetch('/card_holds/HL4bdnO7ELS2JfyJ2T8elYOl') % elif mode == 'response': -CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CCCk1CEzUN0gDA5qh8um0rv', u'debit': None}, amount=5000, created_at=u'2014-04-17T22:39:06.875506Z', updated_at=u'2014-04-17T22:39:07.063348Z', expires_at=u'2014-04-24T22:39:06.984691Z', failure_reason=None, currency=u'USD', transaction_number=u'HL019-852-0737', href=u'/card_holds/HLqY5FcrUWcnBzMkHpKK1WB', meta={}, failure_reason_code=None, voided_at=None, id=u'HLqY5FcrUWcnBzMkHpKK1WB') +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC4auQXiAWMBxJcEUIMYeZFj', u'debit': None}, amount=5000, created_at=u'2014-04-25T20:09:41.712497Z', updated_at=u'2014-04-25T20:09:42.023214Z', expires_at=u'2014-05-02T20:09:41.878825Z', failure_reason=None, currency=u'USD', transaction_number=u'HL244-046-8353', href=u'/card_holds/HL4bdnO7ELS2JfyJ2T8elYOl', meta={}, failure_reason_code=None, voided_at=None, id=u'HL4bdnO7ELS2JfyJ2T8elYOl') % endif \ No newline at end of file diff --git a/scenarios/card_hold_update/executable.py b/scenarios/card_hold_update/executable.py index 29cb912..54bace3 100644 --- a/scenarios/card_hold_update/executable.py +++ b/scenarios/card_hold_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card_hold = balanced.CardHold.fetch('/card_holds/HLqY5FcrUWcnBzMkHpKK1WB') +card_hold = balanced.CardHold.fetch('/card_holds/HL4bdnO7ELS2JfyJ2T8elYOl') card_hold.description = 'update this description' card_hold.meta = { 'holding.for': 'user1', diff --git a/scenarios/card_hold_update/python.mako b/scenarios/card_hold_update/python.mako index dabc402..94b969b 100644 --- a/scenarios/card_hold_update/python.mako +++ b/scenarios/card_hold_update/python.mako @@ -3,9 +3,9 @@ balanced.CardHold().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card_hold = balanced.CardHold.fetch('/card_holds/HLqY5FcrUWcnBzMkHpKK1WB') +card_hold = balanced.CardHold.fetch('/card_holds/HL4bdnO7ELS2JfyJ2T8elYOl') card_hold.description = 'update this description' card_hold.meta = { 'holding.for': 'user1', @@ -13,5 +13,5 @@ card_hold.meta = { } card_hold.save() % elif mode == 'response': -CardHold(status=u'succeeded', description=u'update this description', links={u'card': u'CCCk1CEzUN0gDA5qh8um0rv', u'debit': None}, amount=5000, created_at=u'2014-04-17T22:39:06.875506Z', updated_at=u'2014-04-17T22:39:10.767779Z', expires_at=u'2014-04-24T22:39:06.984691Z', failure_reason=None, currency=u'USD', transaction_number=u'HL019-852-0737', href=u'/card_holds/HLqY5FcrUWcnBzMkHpKK1WB', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, voided_at=None, id=u'HLqY5FcrUWcnBzMkHpKK1WB') +CardHold(status=u'succeeded', description=u'update this description', links={u'card': u'CC4auQXiAWMBxJcEUIMYeZFj', u'debit': None}, amount=5000, created_at=u'2014-04-25T20:09:41.712497Z', updated_at=u'2014-04-25T20:09:45.729280Z', expires_at=u'2014-05-02T20:09:41.878825Z', failure_reason=None, currency=u'USD', transaction_number=u'HL244-046-8353', href=u'/card_holds/HL4bdnO7ELS2JfyJ2T8elYOl', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, voided_at=None, id=u'HL4bdnO7ELS2JfyJ2T8elYOl') % endif \ No newline at end of file diff --git a/scenarios/card_hold_void/executable.py b/scenarios/card_hold_void/executable.py index 7078e5e..06812ac 100644 --- a/scenarios/card_hold_void/executable.py +++ b/scenarios/card_hold_void/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card_hold = balanced.CardHold.fetch('/card_holds/HLKUg5lJJ5fQZpvaAujCWZH') +card_hold = balanced.CardHold.fetch('/card_holds/HL4joUazeM3BJE6emmv2Q8EF') card_hold.cancel() \ No newline at end of file diff --git a/scenarios/card_hold_void/python.mako b/scenarios/card_hold_void/python.mako index 5366a24..c2df5a2 100644 --- a/scenarios/card_hold_void/python.mako +++ b/scenarios/card_hold_void/python.mako @@ -3,10 +3,10 @@ balanced.CardHold().cancel() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card_hold = balanced.CardHold.fetch('/card_holds/HLKUg5lJJ5fQZpvaAujCWZH') +card_hold = balanced.CardHold.fetch('/card_holds/HL4joUazeM3BJE6emmv2Q8EF') card_hold.cancel() % elif mode == 'response': -CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CCCk1CEzUN0gDA5qh8um0rv', u'debit': None}, amount=5000, created_at=u'2014-04-17T22:39:13.915486Z', updated_at=u'2014-04-17T22:39:14.562891Z', expires_at=u'2014-04-24T22:39:14.014926Z', failure_reason=None, currency=u'USD', transaction_number=u'HL198-143-2621', href=u'/card_holds/HLKUg5lJJ5fQZpvaAujCWZH', meta={}, failure_reason_code=None, voided_at=u'2014-04-17T22:39:14.562893Z', id=u'HLKUg5lJJ5fQZpvaAujCWZH') +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC4auQXiAWMBxJcEUIMYeZFj', u'debit': None}, amount=5000, created_at=u'2014-04-25T20:09:48.990540Z', updated_at=u'2014-04-25T20:09:49.731653Z', expires_at=u'2014-05-02T20:09:49.096484Z', failure_reason=None, currency=u'USD', transaction_number=u'HL161-849-8610', href=u'/card_holds/HL4joUazeM3BJE6emmv2Q8EF', meta={}, failure_reason_code=None, voided_at=u'2014-04-25T20:09:49.731656Z', id=u'HL4joUazeM3BJE6emmv2Q8EF') % endif \ No newline at end of file diff --git a/scenarios/card_list/executable.py b/scenarios/card_list/executable.py index 9abaf24..07ef45c 100644 --- a/scenarios/card_list/executable.py +++ b/scenarios/card_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') cards = balanced.Card.query \ No newline at end of file diff --git a/scenarios/card_list/python.mako b/scenarios/card_list/python.mako index 1f8f1b9..9834db2 100644 --- a/scenarios/card_list/python.mako +++ b/scenarios/card_list/python.mako @@ -4,7 +4,7 @@ balanced.Card.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') cards = balanced.Card.query % elif mode == 'response': diff --git a/scenarios/card_show/executable.py b/scenarios/card_show/executable.py index 0b5b853..10ca896 100644 --- a/scenarios/card_show/executable.py +++ b/scenarios/card_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card = balanced.Card.fetch('/cards/CCOeoFZJMd94AruXU0wuSI9') \ No newline at end of file +card = balanced.Card.fetch('/cards/CC4mYF7dj7X6OA2K5F0Qyb4N') \ No newline at end of file diff --git a/scenarios/card_show/python.mako b/scenarios/card_show/python.mako index 8ae5e46..27ac4b6 100644 --- a/scenarios/card_show/python.mako +++ b/scenarios/card_show/python.mako @@ -3,9 +3,9 @@ balanced.Card.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card = balanced.Card.fetch('/cards/CCOeoFZJMd94AruXU0wuSI9') +card = balanced.Card.fetch('/cards/CC4mYF7dj7X6OA2K5F0Qyb4N') % elif mode == 'response': -Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-17T22:39:16.874876Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-17T22:39:16.874878Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CCOeoFZJMd94AruXU0wuSI9', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CCOeoFZJMd94AruXU0wuSI9', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) +Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-25T20:09:52.175221Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-25T20:09:52.175224Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CC4mYF7dj7X6OA2K5F0Qyb4N', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CC4mYF7dj7X6OA2K5F0Qyb4N', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) % endif \ No newline at end of file diff --git a/scenarios/card_update/executable.py b/scenarios/card_update/executable.py index f768796..936af1f 100644 --- a/scenarios/card_update/executable.py +++ b/scenarios/card_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card = balanced.Card.fetch('/cards/CCOeoFZJMd94AruXU0wuSI9') +card = balanced.Card.fetch('/cards/CC4mYF7dj7X6OA2K5F0Qyb4N') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/card_update/python.mako b/scenarios/card_update/python.mako index 2603c04..1d40f0e 100644 --- a/scenarios/card_update/python.mako +++ b/scenarios/card_update/python.mako @@ -3,9 +3,9 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card = balanced.Card.fetch('/cards/CCOeoFZJMd94AruXU0wuSI9') +card = balanced.Card.fetch('/cards/CC4mYF7dj7X6OA2K5F0Qyb4N') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', @@ -13,5 +13,5 @@ card.meta = { } card.save() % elif mode == 'response': -Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-17T22:39:16.874876Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-17T22:39:20.595781Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CCOeoFZJMd94AruXU0wuSI9', meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CCOeoFZJMd94AruXU0wuSI9', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) +Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-25T20:09:52.175221Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-25T20:09:55.802789Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CC4mYF7dj7X6OA2K5F0Qyb4N', meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CC4mYF7dj7X6OA2K5F0Qyb4N', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) % endif \ No newline at end of file diff --git a/scenarios/credit_list/executable.py b/scenarios/credit_list/executable.py index 3fdd1fe..b91fcaa 100644 --- a/scenarios/credit_list/executable.py +++ b/scenarios/credit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') credits = balanced.Credit.query \ No newline at end of file diff --git a/scenarios/credit_list/python.mako b/scenarios/credit_list/python.mako index 09ccadc..ab1d9ae 100644 --- a/scenarios/credit_list/python.mako +++ b/scenarios/credit_list/python.mako @@ -4,7 +4,7 @@ balanced.Credit.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') credits = balanced.Credit.query % elif mode == 'response': diff --git a/scenarios/credit_list_bank_account/executable.py b/scenarios/credit_list_bank_account/executable.py index 0ddcba7..c12ea2b 100644 --- a/scenarios/credit_list_bank_account/executable.py +++ b/scenarios/credit_list_bank_account/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA8MzVwjVFnkuUvfHaXmqMZ/credits') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl/credits') credits = bank_account.credits \ No newline at end of file diff --git a/scenarios/credit_list_bank_account/python.mako b/scenarios/credit_list_bank_account/python.mako index 1496516..4e633c9 100644 --- a/scenarios/credit_list_bank_account/python.mako +++ b/scenarios/credit_list_bank_account/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount().credits % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA8MzVwjVFnkuUvfHaXmqMZ/credits') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl/credits') credits = bank_account.credits % elif mode == 'response': diff --git a/scenarios/credit_show/executable.py b/scenarios/credit_show/executable.py index 9262d30..6c316dd 100644 --- a/scenarios/credit_show/executable.py +++ b/scenarios/credit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -credit = balanced.Credit.fetch('/credits/CROijU7WflyjITPTGU9GMlL') \ No newline at end of file +credit = balanced.Credit.fetch('/credits/CR4yt4sdkTWI1t3HVS16mNAV') \ No newline at end of file diff --git a/scenarios/credit_show/python.mako b/scenarios/credit_show/python.mako index 92c0226..97f4908 100644 --- a/scenarios/credit_show/python.mako +++ b/scenarios/credit_show/python.mako @@ -4,9 +4,9 @@ balanced.Credit.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -credit = balanced.Credit.fetch('/credits/CROijU7WflyjITPTGU9GMlL') +credit = balanced.Credit.fetch('/credits/CR4yt4sdkTWI1t3HVS16mNAV') % elif mode == 'response': -Credit(status=u'succeeded', description=None, links={u'customer': u'CUeXNjpejPooRtSnJLc6SRD', u'destination': u'BAscOV2erMwv3yhIb5sFTaV', u'order': None}, amount=5000, created_at=u'2014-04-17T22:39:27.622238Z', updated_at=u'2014-04-17T22:39:27.978440Z', failure_reason=None, currency=u'USD', transaction_number=u'CR574-106-7569', href=u'/credits/CROijU7WflyjITPTGU9GMlL', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CROijU7WflyjITPTGU9GMlL') +Credit(status=u'succeeded', description=None, links={u'customer': u'CU3VYCUIfwngJsidJWdGw2W5', u'destination': u'BA3Y63fK5STwlhKNMkE3Utmd', u'order': None}, amount=5000, created_at=u'2014-04-25T20:10:02.398021Z', updated_at=u'2014-04-25T20:10:03.049785Z', failure_reason=None, currency=u'USD', transaction_number=u'CR883-913-0274', href=u'/credits/CR4yt4sdkTWI1t3HVS16mNAV', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR4yt4sdkTWI1t3HVS16mNAV') % endif \ No newline at end of file diff --git a/scenarios/credit_update/executable.py b/scenarios/credit_update/executable.py index 5e6a02a..b6c6702 100644 --- a/scenarios/credit_update/executable.py +++ b/scenarios/credit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -credit = balanced.Credit.fetch('/credits/CROijU7WflyjITPTGU9GMlL') +credit = balanced.Credit.fetch('/credits/CR4yt4sdkTWI1t3HVS16mNAV') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/credit_update/python.mako b/scenarios/credit_update/python.mako index b12c8e2..1191c36 100644 --- a/scenarios/credit_update/python.mako +++ b/scenarios/credit_update/python.mako @@ -3,9 +3,9 @@ balanced.Credit().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -credit = balanced.Credit.fetch('/credits/CROijU7WflyjITPTGU9GMlL') +credit = balanced.Credit.fetch('/credits/CR4yt4sdkTWI1t3HVS16mNAV') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', @@ -13,5 +13,5 @@ credit.meta = { } credit.save() % elif mode == 'response': -Credit(status=u'succeeded', description=u'New description for credit', links={u'customer': u'CUeXNjpejPooRtSnJLc6SRD', u'destination': u'BAscOV2erMwv3yhIb5sFTaV', u'order': None}, amount=5000, created_at=u'2014-04-17T22:39:27.622238Z', updated_at=u'2014-04-17T22:39:33.204162Z', failure_reason=None, currency=u'USD', transaction_number=u'CR574-106-7569', href=u'/credits/CROijU7WflyjITPTGU9GMlL', meta={u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CROijU7WflyjITPTGU9GMlL') +Credit(status=u'succeeded', description=u'New description for credit', links={u'customer': u'CU3VYCUIfwngJsidJWdGw2W5', u'destination': u'BA3Y63fK5STwlhKNMkE3Utmd', u'order': None}, amount=5000, created_at=u'2014-04-25T20:10:02.398021Z', updated_at=u'2014-04-25T20:10:07.895933Z', failure_reason=None, currency=u'USD', transaction_number=u'CR883-913-0274', href=u'/credits/CR4yt4sdkTWI1t3HVS16mNAV', meta={u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR4yt4sdkTWI1t3HVS16mNAV') % endif \ No newline at end of file diff --git a/scenarios/customer_create/executable.py b/scenarios/customer_create/executable.py index 6b86adb..90affc6 100644 --- a/scenarios/customer_create/executable.py +++ b/scenarios/customer_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') customer = balanced.Customer( dob_year=1963, diff --git a/scenarios/customer_create/python.mako b/scenarios/customer_create/python.mako index 6d7b4f8..e1ffab3 100644 --- a/scenarios/customer_create/python.mako +++ b/scenarios/customer_create/python.mako @@ -3,7 +3,7 @@ balanced.Customer().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') customer = balanced.Customer( dob_year=1963, @@ -14,5 +14,5 @@ customer = balanced.Customer( } ).save() % elif mode == 'response': -Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-04-17T22:39:40.628341Z', dob_month=7, updated_at=u'2014-04-17T22:39:40.804922Z', phone=None, href=u'/customers/CU1eX3FIMntmCLmi2VfWA2db', meta={}, dob_year=1963, email=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU1eX3FIMntmCLmi2VfWA2db', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) +Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-04-25T20:10:14.759932Z', dob_month=7, updated_at=u'2014-04-25T20:10:15.048688Z', phone=None, href=u'/customers/CU4MnFEab304anOtUtEu5hkN', meta={}, dob_year=1963, email=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU4MnFEab304anOtUtEu5hkN', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) % endif \ No newline at end of file diff --git a/scenarios/customer_delete/executable.py b/scenarios/customer_delete/executable.py index 24fa177..1c57ef2 100644 --- a/scenarios/customer_delete/executable.py +++ b/scenarios/customer_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -customer = balanced.Customer.fetch('/customers/CU1eX3FIMntmCLmi2VfWA2db') +customer = balanced.Customer.fetch('/customers/CU4MnFEab304anOtUtEu5hkN') customer.unstore() \ No newline at end of file diff --git a/scenarios/customer_delete/python.mako b/scenarios/customer_delete/python.mako index a908a45..4e3ed52 100644 --- a/scenarios/customer_delete/python.mako +++ b/scenarios/customer_delete/python.mako @@ -3,9 +3,9 @@ balanced.Customer().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -customer = balanced.Customer.fetch('/customers/CU1eX3FIMntmCLmi2VfWA2db') +customer = balanced.Customer.fetch('/customers/CU4MnFEab304anOtUtEu5hkN') customer.unstore() % elif mode == 'response': diff --git a/scenarios/customer_list/executable.py b/scenarios/customer_list/executable.py index 33d280c..3af8496 100644 --- a/scenarios/customer_list/executable.py +++ b/scenarios/customer_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') customers = balanced.Customer.query \ No newline at end of file diff --git a/scenarios/customer_list/python.mako b/scenarios/customer_list/python.mako index fe11a9b..8372042 100644 --- a/scenarios/customer_list/python.mako +++ b/scenarios/customer_list/python.mako @@ -4,7 +4,7 @@ balanced.Customer.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') customers = balanced.Customer.query % elif mode == 'response': diff --git a/scenarios/customer_show/executable.py b/scenarios/customer_show/executable.py index a1b7741..b5dfd30 100644 --- a/scenarios/customer_show/executable.py +++ b/scenarios/customer_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -customer = balanced.Customer.fetch('/customers/CU194sQ52I1idiwicbg0mOOB') \ No newline at end of file +customer = balanced.Customer.fetch('/customers/CU4GAx8tZTDNIgAmwfV35e53') \ No newline at end of file diff --git a/scenarios/customer_show/python.mako b/scenarios/customer_show/python.mako index 0d2460c..f40cb0f 100644 --- a/scenarios/customer_show/python.mako +++ b/scenarios/customer_show/python.mako @@ -4,9 +4,9 @@ balanced.Customer.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -customer = balanced.Customer.fetch('/customers/CU194sQ52I1idiwicbg0mOOB') +customer = balanced.Customer.fetch('/customers/CU4GAx8tZTDNIgAmwfV35e53') % elif mode == 'response': -Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-04-17T22:39:35.399913Z', dob_month=7, updated_at=u'2014-04-17T22:39:35.564842Z', phone=None, href=u'/customers/CU194sQ52I1idiwicbg0mOOB', meta={}, dob_year=1963, email=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU194sQ52I1idiwicbg0mOOB', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) +Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-04-25T20:10:09.606769Z', dob_month=7, updated_at=u'2014-04-25T20:10:09.810570Z', phone=None, href=u'/customers/CU4GAx8tZTDNIgAmwfV35e53', meta={}, dob_year=1963, email=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU4GAx8tZTDNIgAmwfV35e53', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) % endif \ No newline at end of file diff --git a/scenarios/customer_update/executable.py b/scenarios/customer_update/executable.py index 530b9e0..9dda4d4 100644 --- a/scenarios/customer_update/executable.py +++ b/scenarios/customer_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -customer = balanced.Debit.fetch('/customers/CU194sQ52I1idiwicbg0mOOB') +customer = balanced.Debit.fetch('/customers/CU4GAx8tZTDNIgAmwfV35e53') customer.email = 'email@newdomain.com' customer.meta = { 'shipping-preference': 'ground' diff --git a/scenarios/customer_update/python.mako b/scenarios/customer_update/python.mako index 1d2d47a..8116c90 100644 --- a/scenarios/customer_update/python.mako +++ b/scenarios/customer_update/python.mako @@ -3,14 +3,14 @@ balanced.Customer().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -customer = balanced.Debit.fetch('/customers/CU194sQ52I1idiwicbg0mOOB') +customer = balanced.Debit.fetch('/customers/CU4GAx8tZTDNIgAmwfV35e53') customer.email = 'email@newdomain.com' customer.meta = { 'shipping-preference': 'ground' } customer.save() % elif mode == 'response': -Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-04-17T22:39:35.399913Z', dob_month=7, updated_at=u'2014-04-17T22:39:39.258231Z', phone=None, href=u'/customers/CU194sQ52I1idiwicbg0mOOB', meta={u'shipping-preference': u'ground'}, dob_year=1963, email=u'email@newdomain.com', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU194sQ52I1idiwicbg0mOOB', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) +Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-04-25T20:10:09.606769Z', dob_month=7, updated_at=u'2014-04-25T20:10:13.306289Z', phone=None, href=u'/customers/CU4GAx8tZTDNIgAmwfV35e53', meta={u'shipping-preference': u'ground'}, dob_year=1963, email=u'email@newdomain.com', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU4GAx8tZTDNIgAmwfV35e53', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) % endif \ No newline at end of file diff --git a/scenarios/debit_list/executable.py b/scenarios/debit_list/executable.py index bfc073a..d32f1d2 100644 --- a/scenarios/debit_list/executable.py +++ b/scenarios/debit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') debits = balanced.Debit.query \ No newline at end of file diff --git a/scenarios/debit_list/python.mako b/scenarios/debit_list/python.mako index c683762..f40eede 100644 --- a/scenarios/debit_list/python.mako +++ b/scenarios/debit_list/python.mako @@ -4,7 +4,7 @@ balanced.Debit.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') debits = balanced.Debit.query % elif mode == 'response': diff --git a/scenarios/debit_show/executable.py b/scenarios/debit_show/executable.py index 8d6c0e8..07dc061 100644 --- a/scenarios/debit_show/executable.py +++ b/scenarios/debit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -debit = balanced.Debit.fetch('/debits/WDLlpoutDUH8fGfp28GeT0V') \ No newline at end of file +debit = balanced.Debit.fetch('/debits/WD4vEUJj36IpPHTnLKMYzHgh') \ No newline at end of file diff --git a/scenarios/debit_show/python.mako b/scenarios/debit_show/python.mako index 72a4427..32d0bbe 100644 --- a/scenarios/debit_show/python.mako +++ b/scenarios/debit_show/python.mako @@ -4,9 +4,9 @@ balanced.Debit.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -debit = balanced.Debit.fetch('/debits/WDLlpoutDUH8fGfp28GeT0V') +debit = balanced.Debit.fetch('/debits/WD4vEUJj36IpPHTnLKMYzHgh') % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CUeXNjpejPooRtSnJLc6SRD', u'source': u'CCVkCgaysaNhZH3ITVLmQ9X', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-17T22:39:24.996837Z', updated_at=u'2014-04-17T22:39:25.992198Z', failure_reason=None, currency=u'USD', transaction_number=u'W766-065-9952', href=u'/debits/WDLlpoutDUH8fGfp28GeT0V', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WDLlpoutDUH8fGfp28GeT0V') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CU3VYCUIfwngJsidJWdGw2W5', u'source': u'CC4tvKLTKXcBJAgkGvPEW58N', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T20:09:59.895549Z', updated_at=u'2014-04-25T20:10:00.865462Z', failure_reason=None, currency=u'USD', transaction_number=u'W296-328-8320', href=u'/debits/WD4vEUJj36IpPHTnLKMYzHgh', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD4vEUJj36IpPHTnLKMYzHgh') % endif \ No newline at end of file diff --git a/scenarios/debit_update/executable.py b/scenarios/debit_update/executable.py index f2c8354..e87dd64 100644 --- a/scenarios/debit_update/executable.py +++ b/scenarios/debit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -debit = balanced.Debit.fetch('/debits/WDLlpoutDUH8fGfp28GeT0V') +debit = balanced.Debit.fetch('/debits/WD4vEUJj36IpPHTnLKMYzHgh') debit.description = 'New description for debit' debit.meta = { 'facebook.id': '1234567890', diff --git a/scenarios/debit_update/python.mako b/scenarios/debit_update/python.mako index ccf4a19..df91adf 100644 --- a/scenarios/debit_update/python.mako +++ b/scenarios/debit_update/python.mako @@ -3,9 +3,9 @@ balanced.Debit().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -debit = balanced.Debit.fetch('/debits/WDLlpoutDUH8fGfp28GeT0V') +debit = balanced.Debit.fetch('/debits/WD4vEUJj36IpPHTnLKMYzHgh') debit.description = 'New description for debit' debit.meta = { 'facebook.id': '1234567890', @@ -13,5 +13,5 @@ debit.meta = { } debit.save() % elif mode == 'response': -Debit(status=u'succeeded', description=u'New description for debit', links={u'customer': u'CUeXNjpejPooRtSnJLc6SRD', u'source': u'CCVkCgaysaNhZH3ITVLmQ9X', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-17T22:39:24.996837Z', updated_at=u'2014-04-17T22:39:44.848896Z', failure_reason=None, currency=u'USD', transaction_number=u'W766-065-9952', href=u'/debits/WDLlpoutDUH8fGfp28GeT0V', meta={u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WDLlpoutDUH8fGfp28GeT0V') +Debit(status=u'succeeded', description=u'New description for debit', links={u'customer': u'CU3VYCUIfwngJsidJWdGw2W5', u'source': u'CC4tvKLTKXcBJAgkGvPEW58N', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T20:09:59.895549Z', updated_at=u'2014-04-25T20:10:19.169392Z', failure_reason=None, currency=u'USD', transaction_number=u'W296-328-8320', href=u'/debits/WD4vEUJj36IpPHTnLKMYzHgh', meta={u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD4vEUJj36IpPHTnLKMYzHgh') % endif \ No newline at end of file diff --git a/scenarios/dispute_list/executable.py b/scenarios/dispute_list/executable.py index 182eb69..2854f7e 100644 --- a/scenarios/dispute_list/executable.py +++ b/scenarios/dispute_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') disputes = balanced.Dispute.query \ No newline at end of file diff --git a/scenarios/dispute_list/python.mako b/scenarios/dispute_list/python.mako index 84ea44a..1e02d02 100644 --- a/scenarios/dispute_list/python.mako +++ b/scenarios/dispute_list/python.mako @@ -3,7 +3,7 @@ balanced.Dispute.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') disputes = balanced.Dispute.query % elif mode == 'response': diff --git a/scenarios/dispute_show/executable.py b/scenarios/dispute_show/executable.py index f3b3504..9cdf94f 100644 --- a/scenarios/dispute_show/executable.py +++ b/scenarios/dispute_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -dispute = balanced.Dispute.fetch('/disputes/DT1yIxVolzxscHl6rGUhtTDw') \ No newline at end of file +dispute = balanced.Dispute.fetch('/disputes/DT61IA2iRqyYBLqUCJNt5XNV') \ No newline at end of file diff --git a/scenarios/dispute_show/python.mako b/scenarios/dispute_show/python.mako index e338c0a..5a174f5 100644 --- a/scenarios/dispute_show/python.mako +++ b/scenarios/dispute_show/python.mako @@ -4,9 +4,9 @@ balanced.Dispute.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -dispute = balanced.Dispute.fetch('/disputes/DT1yIxVolzxscHl6rGUhtTDw') +dispute = balanced.Dispute.fetch('/disputes/DT61IA2iRqyYBLqUCJNt5XNV') % elif mode == 'response': -Dispute(status=u'pending', links={u'transaction': u'WD1qIcVqGE1JrqFJuHH0d1pf'}, respond_by=u'2014-05-17T00:00:00Z', amount=5000, created_at=u'2014-04-17T22:39:53.381467Z', updated_at=u'2014-04-17T22:39:53.381469Z', initiated_at=u'2014-04-17T00:00:00Z', currency=u'USD', reason=u'fraud', href=u'/disputes/DT1yIxVolzxscHl6rGUhtTDw', meta={}, id=u'DT1yIxVolzxscHl6rGUhtTDw') +Dispute(status=u'pending', links={u'transaction': u'WD4YCKAyFrQBFYuFCUCRynOx'}, respond_by=u'2014-05-25T20:10:26.554061Z', amount=5000, created_at=u'2014-04-25T20:18:33.022136Z', updated_at=u'2014-04-25T20:18:33.022139Z', initiated_at=u'2014-04-25T20:10:26.554057Z', currency=u'USD', reason=u'fraud', href=u'/disputes/DT61IA2iRqyYBLqUCJNt5XNV', meta={}, id=u'DT61IA2iRqyYBLqUCJNt5XNV') % endif \ No newline at end of file diff --git a/scenarios/event_list/executable.py b/scenarios/event_list/executable.py index a1d774e..5375a86 100644 --- a/scenarios/event_list/executable.py +++ b/scenarios/event_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') events = balanced.Event.query \ No newline at end of file diff --git a/scenarios/event_list/python.mako b/scenarios/event_list/python.mako index 1b10c19..55633d6 100644 --- a/scenarios/event_list/python.mako +++ b/scenarios/event_list/python.mako @@ -4,7 +4,7 @@ balanced.Event.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') events = balanced.Event.query % elif mode == 'response': diff --git a/scenarios/event_show/executable.py b/scenarios/event_show/executable.py index 584c9ed..3ed6fb6 100644 --- a/scenarios/event_show/executable.py +++ b/scenarios/event_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -event = balanced.Event.fetch('/events/EVfbb73252c68011e3bb20061e5f402045') \ No newline at end of file +event = balanced.Event.fetch('/events/EV754ca810ccb511e3b6ef061e5f402045') \ No newline at end of file diff --git a/scenarios/event_show/python.mako b/scenarios/event_show/python.mako index 3d6df6b..3f50916 100644 --- a/scenarios/event_show/python.mako +++ b/scenarios/event_show/python.mako @@ -4,9 +4,9 @@ balanced.Event.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -event = balanced.Event.fetch('/events/EVfbb73252c68011e3bb20061e5f402045') +event = balanced.Event.fetch('/events/EV754ca810ccb511e3b6ef061e5f402045') % elif mode == 'response': -Event(links={}, occurred_at=u'2014-04-17T22:38:35.758000Z', entity={u'customers': [{u'name': u'William Henry Cavendish III', u'links': {u'source': None, u'destination': None}, u'updated_at': u'2014-04-17T22:38:35.758188Z', u'created_at': u'2014-04-17T22:38:35.705116Z', u'dob_month': 2, u'merchant_status': u'underwritten', u'id': u'CU7EYury1BOjhbW83bqFKfVr', u'phone': u'+16505551212', u'href': u'/customers/CU7EYury1BOjhbW83bqFKfVr', u'meta': {}, u'dob_year': 1947, u'address': {u'city': u'Nowhere', u'line2': None, u'line1': None, u'state': None, u'postal_code': u'90210', u'country_code': u'USA'}, u'business_name': None, u'ssn_last4': u'xxxx', u'email': u'whc@example.org', u'ein': None}], u'links': {u'customers.source': u'/resources/{customers.source}', u'customers.card_holds': u'/customers/{customers.id}/card_holds', u'customers.cards': u'/customers/{customers.id}/cards', u'customers.debits': u'/customers/{customers.id}/debits', u'customers.destination': u'/resources/{customers.destination}', u'customers.external_accounts': u'/customers/{customers.id}/external_accounts', u'customers.bank_accounts': u'/customers/{customers.id}/bank_accounts', u'customers.transactions': u'/customers/{customers.id}/transactions', u'customers.refunds': u'/customers/{customers.id}/refunds', u'customers.reversals': u'/customers/{customers.id}/reversals', u'customers.orders': u'/customers/{customers.id}/orders', u'customers.credits': u'/customers/{customers.id}/credits'}}, href=u'/events/EVfbb73252c68011e3bb20061e5f402045', callback_statuses={u'failed': 0, u'retrying': 0, u'succeeded': 0, u'pending': 0}, type=u'account.created', id=u'EVfbb73252c68011e3bb20061e5f402045') +Event(links={}, occurred_at=u'2014-04-25T20:09:08.031000Z', entity={u'bank_accounts': [{u'routing_number': u'121042882', u'bank_name': u'WELLS FARGO BANK NA', u'account_type': u'CHECKING', u'name': u'TEST-MERCHANT-BANK-ACCOUNT', u'links': {u'customer': u'CU3z3rwGWGazDwwyLy0rNqfj', u'bank_account_verification': None}, u'can_credit': True, u'created_at': u'2014-04-25T20:09:08.031387Z', u'fingerprint': u'6ybvaLUrJy07phK2EQ7pVk', u'updated_at': u'2014-04-25T20:09:08.031391Z', u'href': u'/bank_accounts/BA3z8ko53HDEFwxjmNlc998p', u'meta': {}, u'account_number': u'xxxxxxxxxxx5555', u'address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, u'can_debit': True, u'id': u'BA3z8ko53HDEFwxjmNlc998p'}], u'links': {u'bank_accounts.debits': u'/bank_accounts/{bank_accounts.id}/debits', u'bank_accounts.credits': u'/bank_accounts/{bank_accounts.id}/credits', u'bank_accounts.bank_account_verifications': u'/bank_accounts/{bank_accounts.id}/verifications', u'bank_accounts.customer': u'/customers/{bank_accounts.customer}', u'bank_accounts.bank_account_verification': u'/verifications/{bank_accounts.bank_account_verification}'}}, href=u'/events/EV754ca810ccb511e3b6ef061e5f402045', callback_statuses={u'failed': 0, u'retrying': 0, u'succeeded': 0, u'pending': 0}, type=u'bank_account.created', id=u'EV754ca810ccb511e3b6ef061e5f402045') % endif \ No newline at end of file diff --git a/scenarios/order_create/executable.py b/scenarios/order_create/executable.py index f41e8de..493b5e9 100644 --- a/scenarios/order_create/executable.py +++ b/scenarios/order_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -merchant_customer = balanced.Customer.fetch('/customers/CU1eX3FIMntmCLmi2VfWA2db') +merchant_customer = balanced.Customer.fetch('/customers/CU4MnFEab304anOtUtEu5hkN') merchant_customer.create_order( description='Order #12341234' ).save() \ No newline at end of file diff --git a/scenarios/order_create/python.mako b/scenarios/order_create/python.mako index 77203bf..9cfcb36 100644 --- a/scenarios/order_create/python.mako +++ b/scenarios/order_create/python.mako @@ -3,12 +3,12 @@ balanced.Order() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -merchant_customer = balanced.Customer.fetch('/customers/CU1eX3FIMntmCLmi2VfWA2db') +merchant_customer = balanced.Customer.fetch('/customers/CU4MnFEab304anOtUtEu5hkN') merchant_customer.create_order( description='Order #12341234' ).save() % elif mode == 'response': -Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'Order #12341234', links={u'merchant': u'CU1eX3FIMntmCLmi2VfWA2db'}, created_at=u'2014-04-17T22:40:10.393839Z', updated_at=u'2014-04-17T22:40:10.393841Z', currency=u'USD', amount=0, href=u'/orders/OR1MqLeXKqwqqW254i3GJ72F', meta={}, id=u'OR1MqLeXKqwqqW254i3GJ72F', amount_escrowed=0) +Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'Order #12341234', links={u'merchant': u'CU4MnFEab304anOtUtEu5hkN'}, created_at=u'2014-04-25T20:18:43.120760Z', updated_at=u'2014-04-25T20:18:43.120762Z', currency=u'USD', amount=0, href=u'/orders/OR6d55qbtKx5aWSURkQeodRr', meta={}, id=u'OR6d55qbtKx5aWSURkQeodRr', amount_escrowed=0) % endif \ No newline at end of file diff --git a/scenarios/order_list/executable.py b/scenarios/order_list/executable.py index 623a5b2..a9fbee1 100644 --- a/scenarios/order_list/executable.py +++ b/scenarios/order_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') orders = balanced.Order.query \ No newline at end of file diff --git a/scenarios/order_list/python.mako b/scenarios/order_list/python.mako index 5ec0f20..9552079 100644 --- a/scenarios/order_list/python.mako +++ b/scenarios/order_list/python.mako @@ -4,7 +4,7 @@ balanced.Order.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') orders = balanced.Order.query % elif mode == 'response': diff --git a/scenarios/order_show/executable.py b/scenarios/order_show/executable.py index 9e9efc2..80a2c67 100644 --- a/scenarios/order_show/executable.py +++ b/scenarios/order_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -order = balanced.Order.fetch('/orders/OR1MqLeXKqwqqW254i3GJ72F') \ No newline at end of file +order = balanced.Order.fetch('/orders/OR6d55qbtKx5aWSURkQeodRr') \ No newline at end of file diff --git a/scenarios/order_show/python.mako b/scenarios/order_show/python.mako index 49e607f..e83b830 100644 --- a/scenarios/order_show/python.mako +++ b/scenarios/order_show/python.mako @@ -4,9 +4,9 @@ balanced.Order.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -order = balanced.Order.fetch('/orders/OR1MqLeXKqwqqW254i3GJ72F') +order = balanced.Order.fetch('/orders/OR6d55qbtKx5aWSURkQeodRr') % elif mode == 'response': -Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'Order #12341234', links={u'merchant': u'CU1eX3FIMntmCLmi2VfWA2db'}, created_at=u'2014-04-17T22:40:10.393839Z', updated_at=u'2014-04-17T22:40:10.393841Z', currency=u'USD', amount=0, href=u'/orders/OR1MqLeXKqwqqW254i3GJ72F', meta={}, id=u'OR1MqLeXKqwqqW254i3GJ72F', amount_escrowed=0) +Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'Order #12341234', links={u'merchant': u'CU4MnFEab304anOtUtEu5hkN'}, created_at=u'2014-04-25T20:18:43.120760Z', updated_at=u'2014-04-25T20:18:43.120762Z', currency=u'USD', amount=0, href=u'/orders/OR6d55qbtKx5aWSURkQeodRr', meta={}, id=u'OR6d55qbtKx5aWSURkQeodRr', amount_escrowed=0) % endif \ No newline at end of file diff --git a/scenarios/order_update/executable.py b/scenarios/order_update/executable.py index 770e12a..8ef0e68 100644 --- a/scenarios/order_update/executable.py +++ b/scenarios/order_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -order = balanced.Order.fetch('/orders/OR1MqLeXKqwqqW254i3GJ72F') +order = balanced.Order.fetch('/orders/OR6d55qbtKx5aWSURkQeodRr') order.description = 'New description for order' order.meta = { 'anykey': 'valuegoeshere', diff --git a/scenarios/order_update/python.mako b/scenarios/order_update/python.mako index 3f1800f..88e102e 100644 --- a/scenarios/order_update/python.mako +++ b/scenarios/order_update/python.mako @@ -3,9 +3,9 @@ balanced.Order().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -order = balanced.Order.fetch('/orders/OR1MqLeXKqwqqW254i3GJ72F') +order = balanced.Order.fetch('/orders/OR6d55qbtKx5aWSURkQeodRr') order.description = 'New description for order' order.meta = { 'anykey': 'valuegoeshere', @@ -13,5 +13,5 @@ order.meta = { } order.save() % elif mode == 'response': -Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'New description for order', links={u'merchant': u'CU1eX3FIMntmCLmi2VfWA2db'}, created_at=u'2014-04-17T22:40:10.393839Z', updated_at=u'2014-04-17T22:40:13.722216Z', currency=u'USD', amount=0, href=u'/orders/OR1MqLeXKqwqqW254i3GJ72F', meta={u'product.id': u'1234567890', u'anykey': u'valuegoeshere'}, id=u'OR1MqLeXKqwqqW254i3GJ72F', amount_escrowed=0) +Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'New description for order', links={u'merchant': u'CU4MnFEab304anOtUtEu5hkN'}, created_at=u'2014-04-25T20:18:43.120760Z', updated_at=u'2014-04-25T20:18:46.797463Z', currency=u'USD', amount=0, href=u'/orders/OR6d55qbtKx5aWSURkQeodRr', meta={u'product.id': u'1234567890', u'anykey': u'valuegoeshere'}, id=u'OR6d55qbtKx5aWSURkQeodRr', amount_escrowed=0) % endif \ No newline at end of file diff --git a/scenarios/refund_create/executable.py b/scenarios/refund_create/executable.py index 47f3e96..a07f068 100644 --- a/scenarios/refund_create/executable.py +++ b/scenarios/refund_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -debit = balanced.Debit.fetch('/debits/WD19cDwPJMMJj6UWn4YI2bGZ') +debit = balanced.Debit.fetch('/debits/WD4SOTNKiZbBFrmMk6mfszIl') refund = debit.refund( amount=3000, description="Refund for Order #1111", diff --git a/scenarios/refund_create/python.mako b/scenarios/refund_create/python.mako index 7e5b1eb..3be636c 100644 --- a/scenarios/refund_create/python.mako +++ b/scenarios/refund_create/python.mako @@ -3,9 +3,9 @@ balanced.Debit().refund() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -debit = balanced.Debit.fetch('/debits/WD19cDwPJMMJj6UWn4YI2bGZ') +debit = balanced.Debit.fetch('/debits/WD4SOTNKiZbBFrmMk6mfszIl') refund = debit.refund( amount=3000, description="Refund for Order #1111", @@ -16,5 +16,5 @@ refund = debit.refund( } ) % elif mode == 'response': -Refund(status=u'succeeded', description=u'Refund for Order #1111', links={u'dispute': None, u'order': None, u'debit': u'WD19cDwPJMMJj6UWn4YI2bGZ'}, amount=3000, created_at=u'2014-04-17T22:39:47.779017Z', updated_at=u'2014-04-17T22:39:48.442287Z', currency=u'USD', transaction_number=u'RF938-498-8864', href=u'/refunds/RF1mYWVCnVu5NkDAl47rDgMx', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, id=u'RF1mYWVCnVu5NkDAl47rDgMx') +Refund(status=u'succeeded', description=u'Refund for Order #1111', links={u'dispute': None, u'order': None, u'debit': u'WD4SOTNKiZbBFrmMk6mfszIl'}, amount=3000, created_at=u'2014-04-25T20:10:22.593252Z', updated_at=u'2014-04-25T20:10:23.032505Z', currency=u'USD', transaction_number=u'RF854-846-2859', href=u'/refunds/RF4VbbS5LdgSxlECITkHg0Zf', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, id=u'RF4VbbS5LdgSxlECITkHg0Zf') % endif \ No newline at end of file diff --git a/scenarios/refund_list/executable.py b/scenarios/refund_list/executable.py index ac5b0f4..d7a0e43 100644 --- a/scenarios/refund_list/executable.py +++ b/scenarios/refund_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') refunds = balanced.Refund.query \ No newline at end of file diff --git a/scenarios/refund_list/python.mako b/scenarios/refund_list/python.mako index 585e700..cbf8e3d 100644 --- a/scenarios/refund_list/python.mako +++ b/scenarios/refund_list/python.mako @@ -4,7 +4,7 @@ balanced.Refund.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') refunds = balanced.Refund.query % elif mode == 'response': diff --git a/scenarios/refund_show/executable.py b/scenarios/refund_show/executable.py index c0d0a3e..05df0e7 100644 --- a/scenarios/refund_show/executable.py +++ b/scenarios/refund_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -refund = balanced.Refund.fetch('/refunds/RF1mYWVCnVu5NkDAl47rDgMx') \ No newline at end of file +refund = balanced.Refund.fetch('/refunds/RF4VbbS5LdgSxlECITkHg0Zf') \ No newline at end of file diff --git a/scenarios/refund_show/python.mako b/scenarios/refund_show/python.mako index bfe9e8a..51b27f3 100644 --- a/scenarios/refund_show/python.mako +++ b/scenarios/refund_show/python.mako @@ -4,9 +4,9 @@ balanced.Refund.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -refund = balanced.Refund.fetch('/refunds/RF1mYWVCnVu5NkDAl47rDgMx') +refund = balanced.Refund.fetch('/refunds/RF4VbbS5LdgSxlECITkHg0Zf') % elif mode == 'response': -Refund(status=u'succeeded', description=u'Refund for Order #1111', links={u'dispute': None, u'order': None, u'debit': u'WD19cDwPJMMJj6UWn4YI2bGZ'}, amount=3000, created_at=u'2014-04-17T22:39:47.779017Z', updated_at=u'2014-04-17T22:39:48.442287Z', currency=u'USD', transaction_number=u'RF938-498-8864', href=u'/refunds/RF1mYWVCnVu5NkDAl47rDgMx', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, id=u'RF1mYWVCnVu5NkDAl47rDgMx') +Refund(status=u'succeeded', description=u'Refund for Order #1111', links={u'dispute': None, u'order': None, u'debit': u'WD4SOTNKiZbBFrmMk6mfszIl'}, amount=3000, created_at=u'2014-04-25T20:10:22.593252Z', updated_at=u'2014-04-25T20:10:23.032505Z', currency=u'USD', transaction_number=u'RF854-846-2859', href=u'/refunds/RF4VbbS5LdgSxlECITkHg0Zf', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, id=u'RF4VbbS5LdgSxlECITkHg0Zf') % endif \ No newline at end of file diff --git a/scenarios/refund_update/executable.py b/scenarios/refund_update/executable.py index 1c27df7..15472a1 100644 --- a/scenarios/refund_update/executable.py +++ b/scenarios/refund_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -refund = balanced.Refund.fetch('/refunds/RF1mYWVCnVu5NkDAl47rDgMx') +refund = balanced.Refund.fetch('/refunds/RF4VbbS5LdgSxlECITkHg0Zf') refund.description = 'update this description' refund.meta = { 'user.refund.count': '3', diff --git a/scenarios/refund_update/python.mako b/scenarios/refund_update/python.mako index 0c2cbec..ea9d5fd 100644 --- a/scenarios/refund_update/python.mako +++ b/scenarios/refund_update/python.mako @@ -3,9 +3,9 @@ balanced.Refund().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -refund = balanced.Refund.fetch('/refunds/RF1mYWVCnVu5NkDAl47rDgMx') +refund = balanced.Refund.fetch('/refunds/RF4VbbS5LdgSxlECITkHg0Zf') refund.description = 'update this description' refund.meta = { 'user.refund.count': '3', @@ -14,5 +14,5 @@ refund.meta = { } refund.save() % elif mode == 'response': -Refund(status=u'succeeded', description=u'update this description', links={u'dispute': None, u'order': None, u'debit': u'WD19cDwPJMMJj6UWn4YI2bGZ'}, amount=3000, created_at=u'2014-04-17T22:39:47.779017Z', updated_at=u'2014-04-17T22:40:17.834532Z', currency=u'USD', transaction_number=u'RF938-498-8864', href=u'/refunds/RF1mYWVCnVu5NkDAl47rDgMx', meta={u'user.refund.count': u'3', u'refund.reason': u'user not happy with product', u'user.notes': u'very polite on the phone'}, id=u'RF1mYWVCnVu5NkDAl47rDgMx') +Refund(status=u'succeeded', description=u'update this description', links={u'dispute': None, u'order': None, u'debit': u'WD4SOTNKiZbBFrmMk6mfszIl'}, amount=3000, created_at=u'2014-04-25T20:10:22.593252Z', updated_at=u'2014-04-25T20:18:50.969971Z', currency=u'USD', transaction_number=u'RF854-846-2859', href=u'/refunds/RF4VbbS5LdgSxlECITkHg0Zf', meta={u'user.refund.count': u'3', u'refund.reason': u'user not happy with product', u'user.notes': u'very polite on the phone'}, id=u'RF4VbbS5LdgSxlECITkHg0Zf') % endif \ No newline at end of file diff --git a/scenarios/reversal_create/executable.py b/scenarios/reversal_create/executable.py index eacbbaf..58b448c 100644 --- a/scenarios/reversal_create/executable.py +++ b/scenarios/reversal_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -credit = balanced.Credit.fetch('/credits/CR1KskgNXcoA6e52QczoCYyF') +credit = balanced.Credit.fetch('/credits/CR6nBcaGvGc4dtflEB1bjKBP') reversal = credit.reverse( amount=3000, description="Reversal for Order #1111", diff --git a/scenarios/reversal_create/python.mako b/scenarios/reversal_create/python.mako index 67cd6cd..8568b67 100644 --- a/scenarios/reversal_create/python.mako +++ b/scenarios/reversal_create/python.mako @@ -3,9 +3,9 @@ balanced.Credit().reverse() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -credit = balanced.Credit.fetch('/credits/CR1KskgNXcoA6e52QczoCYyF') +credit = balanced.Credit.fetch('/credits/CR6nBcaGvGc4dtflEB1bjKBP') reversal = credit.reverse( amount=3000, description="Reversal for Order #1111", @@ -16,5 +16,5 @@ reversal = credit.reverse( } ) % elif mode == 'response': -Reversal(status=u'succeeded', description=u'Reversal for Order #1111', links={u'credit': u'CR1KskgNXcoA6e52QczoCYyF', u'order': None}, amount=3000, created_at=u'2014-04-17T22:40:20.199870Z', updated_at=u'2014-04-17T22:40:20.570448Z', failure_reason=None, currency=u'USD', transaction_number=u'RV365-228-5418', href=u'/reversals/RV1Lqw4ZTPoeuldngynU1z6J', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, failure_reason_code=None, id=u'RV1Lqw4ZTPoeuldngynU1z6J') +Reversal(status=u'succeeded', description=u'Reversal for Order #1111', links={u'credit': u'CR6nBcaGvGc4dtflEB1bjKBP', u'order': None}, amount=3000, created_at=u'2014-04-25T20:18:55.008280Z', updated_at=u'2014-04-25T20:18:57.393905Z', failure_reason=None, currency=u'USD', transaction_number=u'RV296-883-6069', href=u'/reversals/RV6qrEOTouLeIJuPu4s73Ra1', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, failure_reason_code=None, id=u'RV6qrEOTouLeIJuPu4s73Ra1') % endif \ No newline at end of file diff --git a/scenarios/reversal_list/executable.py b/scenarios/reversal_list/executable.py index ad39896..a80ac07 100644 --- a/scenarios/reversal_list/executable.py +++ b/scenarios/reversal_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') reversals = balanced.Reversal.query \ No newline at end of file diff --git a/scenarios/reversal_list/python.mako b/scenarios/reversal_list/python.mako index 286122f..6352fdd 100644 --- a/scenarios/reversal_list/python.mako +++ b/scenarios/reversal_list/python.mako @@ -4,7 +4,7 @@ balanced.Reversal.query() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') reversals = balanced.Reversal.query % elif mode == 'response': diff --git a/scenarios/reversal_show/executable.py b/scenarios/reversal_show/executable.py index f8c7c01..a454d94 100644 --- a/scenarios/reversal_show/executable.py +++ b/scenarios/reversal_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -refund = balanced.Reversal.fetch('/reversals/RV1Lqw4ZTPoeuldngynU1z6J') \ No newline at end of file +refund = balanced.Reversal.fetch('/reversals/RV6qrEOTouLeIJuPu4s73Ra1') \ No newline at end of file diff --git a/scenarios/reversal_show/python.mako b/scenarios/reversal_show/python.mako index 06cd7e9..1b500a4 100644 --- a/scenarios/reversal_show/python.mako +++ b/scenarios/reversal_show/python.mako @@ -4,9 +4,9 @@ balanced.Reversal.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -refund = balanced.Reversal.fetch('/reversals/RV1Lqw4ZTPoeuldngynU1z6J') +refund = balanced.Reversal.fetch('/reversals/RV6qrEOTouLeIJuPu4s73Ra1') % elif mode == 'response': -Reversal(status=u'succeeded', description=u'Reversal for Order #1111', links={u'credit': u'CR1KskgNXcoA6e52QczoCYyF', u'order': None}, amount=3000, created_at=u'2014-04-17T22:40:20.199870Z', updated_at=u'2014-04-17T22:40:20.570448Z', failure_reason=None, currency=u'USD', transaction_number=u'RV365-228-5418', href=u'/reversals/RV1Lqw4ZTPoeuldngynU1z6J', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, failure_reason_code=None, id=u'RV1Lqw4ZTPoeuldngynU1z6J') +Reversal(status=u'succeeded', description=u'Reversal for Order #1111', links={u'credit': u'CR6nBcaGvGc4dtflEB1bjKBP', u'order': None}, amount=3000, created_at=u'2014-04-25T20:18:55.008280Z', updated_at=u'2014-04-25T20:18:57.393905Z', failure_reason=None, currency=u'USD', transaction_number=u'RV296-883-6069', href=u'/reversals/RV6qrEOTouLeIJuPu4s73Ra1', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, failure_reason_code=None, id=u'RV6qrEOTouLeIJuPu4s73Ra1') % endif \ No newline at end of file diff --git a/scenarios/reversal_update/executable.py b/scenarios/reversal_update/executable.py index 3ae44f5..283eb1e 100644 --- a/scenarios/reversal_update/executable.py +++ b/scenarios/reversal_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -reversal = balanced.Reversal.fetch('/reversals/RV1Lqw4ZTPoeuldngynU1z6J') +reversal = balanced.Reversal.fetch('/reversals/RV6qrEOTouLeIJuPu4s73Ra1') reversal.description = 'update this description' reversal.meta = { 'user.refund.count': '3', diff --git a/scenarios/reversal_update/python.mako b/scenarios/reversal_update/python.mako index f94bcec..2c5be7b 100644 --- a/scenarios/reversal_update/python.mako +++ b/scenarios/reversal_update/python.mako @@ -3,9 +3,9 @@ balanced.Reversal().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1ByQgRpcQLTwmOhCBUofyIHm0r96qPm8s') +balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -reversal = balanced.Reversal.fetch('/reversals/RV1Lqw4ZTPoeuldngynU1z6J') +reversal = balanced.Reversal.fetch('/reversals/RV6qrEOTouLeIJuPu4s73Ra1') reversal.description = 'update this description' reversal.meta = { 'user.refund.count': '3', @@ -14,5 +14,5 @@ reversal.meta = { } reversal.save() % elif mode == 'response': -Reversal(status=u'succeeded', description=u'update this description', links={u'credit': u'CR1KskgNXcoA6e52QczoCYyF', u'order': None}, amount=3000, created_at=u'2014-04-17T22:40:20.199870Z', updated_at=u'2014-04-17T22:40:24.560642Z', failure_reason=None, currency=u'USD', transaction_number=u'RV365-228-5418', href=u'/reversals/RV1Lqw4ZTPoeuldngynU1z6J', meta={u'user.satisfaction': u'6', u'refund.reason': u'user not happy with product', u'user.notes': u'very polite on the phone'}, failure_reason_code=None, id=u'RV1Lqw4ZTPoeuldngynU1z6J') +Reversal(status=u'succeeded', description=u'update this description', links={u'credit': u'CR6nBcaGvGc4dtflEB1bjKBP', u'order': None}, amount=3000, created_at=u'2014-04-25T20:18:55.008280Z', updated_at=u'2014-04-25T20:19:01.228936Z', failure_reason=None, currency=u'USD', transaction_number=u'RV296-883-6069', href=u'/reversals/RV6qrEOTouLeIJuPu4s73Ra1', meta={u'user.satisfaction': u'6', u'refund.reason': u'user not happy with product', u'user.notes': u'very polite on the phone'}, failure_reason_code=None, id=u'RV6qrEOTouLeIJuPu4s73Ra1') % endif \ No newline at end of file From fc37b36f2a06ac97c6aaf715948dc46cc2174081 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Mon, 28 Apr 2014 11:01:47 -0600 Subject: [PATCH 44/93] Update CHANGELOG --- CHANGELOG.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d2bb112..9f6ee0a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ ## 1.0.2 -* Fix for query pagination +* Return None when there is actually none instead of a page object (#115) +* Fix polymorphic types coming back as resource (#114) +* Fix for query pagination (#109) +* Fix iterator (#21) + ## 1.0.1 From 6ca0bc08f9df1eb2d9f798e8ad1ebdfc0a40f714 Mon Sep 17 00:00:00 2001 From: Richard Serna Date: Tue, 29 Apr 2014 22:47:36 -0700 Subject: [PATCH 45/93] Add new scenarios for debiting and crediting orders --- scenarios/_mj/api_key_create/executable.py | 2 +- scenarios/_mj/api_key_create/python.mako | 4 ++-- scenarios/api_key_create/executable.py | 2 +- scenarios/api_key_create/python.mako | 4 ++-- scenarios/api_key_delete/executable.py | 4 ++-- scenarios/api_key_delete/python.mako | 4 ++-- scenarios/api_key_list/executable.py | 2 +- scenarios/api_key_list/python.mako | 2 +- scenarios/api_key_show/executable.py | 4 ++-- scenarios/api_key_show/python.mako | 6 +++--- .../executable.py | 6 +++--- .../bank_account_associate_to_customer/python.mako | 8 ++++---- scenarios/bank_account_create/executable.py | 2 +- scenarios/bank_account_create/python.mako | 4 ++-- scenarios/bank_account_credit/executable.py | 4 ++-- scenarios/bank_account_credit/python.mako | 6 +++--- scenarios/bank_account_debit/executable.py | 4 ++-- scenarios/bank_account_debit/python.mako | 6 +++--- scenarios/bank_account_delete/executable.py | 4 ++-- scenarios/bank_account_delete/python.mako | 4 ++-- scenarios/bank_account_list/executable.py | 2 +- scenarios/bank_account_list/python.mako | 2 +- scenarios/bank_account_show/executable.py | 4 ++-- scenarios/bank_account_show/python.mako | 6 +++--- scenarios/bank_account_update/executable.py | 4 ++-- scenarios/bank_account_update/python.mako | 6 +++--- .../bank_account_verification_create/executable.py | 4 ++-- .../bank_account_verification_create/python.mako | 6 +++--- .../bank_account_verification_show/executable.py | 4 ++-- .../bank_account_verification_show/python.mako | 6 +++--- .../bank_account_verification_update/executable.py | 4 ++-- .../bank_account_verification_update/python.mako | 6 +++--- scenarios/callback_create/executable.py | 2 +- scenarios/callback_create/python.mako | 4 ++-- scenarios/callback_delete/executable.py | 4 ++-- scenarios/callback_delete/python.mako | 4 ++-- scenarios/callback_list/executable.py | 2 +- scenarios/callback_list/python.mako | 2 +- scenarios/callback_show/executable.py | 4 ++-- scenarios/callback_show/python.mako | 6 +++--- scenarios/card_associate_to_customer/executable.py | 6 +++--- scenarios/card_associate_to_customer/python.mako | 8 ++++---- scenarios/card_create/executable.py | 2 +- scenarios/card_create/python.mako | 4 ++-- scenarios/card_create_dispute/executable.py | 2 +- scenarios/card_create_dispute/python.mako | 4 ++-- scenarios/card_debit/executable.py | 4 ++-- scenarios/card_debit/python.mako | 6 +++--- scenarios/card_debit_dispute/executable.py | 4 ++-- scenarios/card_debit_dispute/python.mako | 6 +++--- scenarios/card_delete/executable.py | 4 ++-- scenarios/card_delete/python.mako | 4 ++-- scenarios/card_hold_capture/executable.py | 4 ++-- scenarios/card_hold_capture/python.mako | 6 +++--- scenarios/card_hold_create/executable.py | 4 ++-- scenarios/card_hold_create/python.mako | 6 +++--- scenarios/card_hold_list/executable.py | 2 +- scenarios/card_hold_list/python.mako | 2 +- scenarios/card_hold_show/executable.py | 4 ++-- scenarios/card_hold_show/python.mako | 6 +++--- scenarios/card_hold_update/executable.py | 4 ++-- scenarios/card_hold_update/python.mako | 6 +++--- scenarios/card_hold_void/executable.py | 4 ++-- scenarios/card_hold_void/python.mako | 6 +++--- scenarios/card_list/executable.py | 2 +- scenarios/card_list/python.mako | 2 +- scenarios/card_show/executable.py | 4 ++-- scenarios/card_show/python.mako | 6 +++--- scenarios/card_update/executable.py | 4 ++-- scenarios/card_update/python.mako | 6 +++--- scenarios/credit_list/executable.py | 2 +- scenarios/credit_list/python.mako | 2 +- scenarios/credit_list_bank_account/executable.py | 4 ++-- scenarios/credit_list_bank_account/python.mako | 4 ++-- scenarios/credit_order/definition.mako | 1 + scenarios/credit_order/executable.py | 0 scenarios/credit_order/python.mako | 7 +++++++ scenarios/credit_order/request.mako | 8 ++++++++ scenarios/credit_show/executable.py | 4 ++-- scenarios/credit_show/python.mako | 6 +++--- scenarios/credit_update/executable.py | 4 ++-- scenarios/credit_update/python.mako | 6 +++--- scenarios/customer_create/executable.py | 2 +- scenarios/customer_create/python.mako | 4 ++-- scenarios/customer_delete/executable.py | 4 ++-- scenarios/customer_delete/python.mako | 4 ++-- scenarios/customer_list/executable.py | 2 +- scenarios/customer_list/python.mako | 2 +- scenarios/customer_show/executable.py | 4 ++-- scenarios/customer_show/python.mako | 6 +++--- scenarios/customer_update/executable.py | 4 ++-- scenarios/customer_update/python.mako | 6 +++--- scenarios/debit_dispute_show/executable.py | 4 ++-- scenarios/debit_dispute_show/python.mako | 6 +++--- scenarios/debit_list/executable.py | 2 +- scenarios/debit_list/python.mako | 2 +- scenarios/debit_order/definition.mako | 1 + scenarios/debit_order/executable.py | 0 scenarios/debit_order/python.mako | 8 ++++++++ scenarios/debit_order/request.mako | 13 +++++++++++++ scenarios/debit_show/executable.py | 4 ++-- scenarios/debit_show/python.mako | 6 +++--- scenarios/debit_update/executable.py | 4 ++-- scenarios/debit_update/python.mako | 6 +++--- scenarios/dispute_list/executable.py | 2 +- scenarios/dispute_list/python.mako | 2 +- scenarios/dispute_show/executable.py | 4 ++-- scenarios/dispute_show/python.mako | 6 +++--- scenarios/event_list/executable.py | 2 +- scenarios/event_list/python.mako | 2 +- scenarios/event_show/executable.py | 4 ++-- scenarios/event_show/python.mako | 6 +++--- scenarios/order_create/executable.py | 4 ++-- scenarios/order_create/python.mako | 6 +++--- scenarios/order_list/executable.py | 2 +- scenarios/order_list/python.mako | 2 +- scenarios/order_show/executable.py | 4 ++-- scenarios/order_show/python.mako | 6 +++--- scenarios/order_update/executable.py | 4 ++-- scenarios/order_update/python.mako | 6 +++--- scenarios/refund_create/executable.py | 4 ++-- scenarios/refund_create/python.mako | 6 +++--- scenarios/refund_list/executable.py | 2 +- scenarios/refund_list/python.mako | 2 +- scenarios/refund_show/executable.py | 4 ++-- scenarios/refund_show/python.mako | 6 +++--- scenarios/refund_update/executable.py | 4 ++-- scenarios/refund_update/python.mako | 6 +++--- scenarios/reversal_create/executable.py | 4 ++-- scenarios/reversal_create/python.mako | 6 +++--- scenarios/reversal_list/executable.py | 2 +- scenarios/reversal_list/python.mako | 2 +- scenarios/reversal_show/executable.py | 4 ++-- scenarios/reversal_show/python.mako | 6 +++--- scenarios/reversal_update/executable.py | 4 ++-- scenarios/reversal_update/python.mako | 6 +++--- 136 files changed, 303 insertions(+), 265 deletions(-) create mode 100644 scenarios/credit_order/definition.mako create mode 100644 scenarios/credit_order/executable.py create mode 100644 scenarios/credit_order/python.mako create mode 100644 scenarios/credit_order/request.mako create mode 100644 scenarios/debit_order/definition.mako create mode 100644 scenarios/debit_order/executable.py create mode 100644 scenarios/debit_order/python.mako create mode 100644 scenarios/debit_order/request.mako diff --git a/scenarios/_mj/api_key_create/executable.py b/scenarios/_mj/api_key_create/executable.py index 6f09bfb..8fda0c4 100644 --- a/scenarios/_mj/api_key_create/executable.py +++ b/scenarios/_mj/api_key_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') api_key = balanced.APIKey() api_key.save() \ No newline at end of file diff --git a/scenarios/_mj/api_key_create/python.mako b/scenarios/_mj/api_key_create/python.mako index c840c36..ab5d41f 100644 --- a/scenarios/_mj/api_key_create/python.mako +++ b/scenarios/_mj/api_key_create/python.mako @@ -4,10 +4,10 @@ balanced.APIKey % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') api_key = balanced.APIKey() api_key.save() % elif mode == 'response': -APIKey(links={}, created_at=u'2014-04-25T20:09:11.537493Z', secret=u'ak-test-2hjXn5Ny6P9aFu5jitCvkF06nNIHc3sYN', href=u'/api_keys/AK3DgZwSCD2ggxGSw1bsiyDX', meta={}, id=u'AK3DgZwSCD2ggxGSw1bsiyDX') +APIKey(links={}, created_at=u'2014-04-25T21:59:54.024155Z', secret=u'ak-test-2ouh9CXrssudvHruEZ1Ymcrna05kmigfw', href=u'/api_keys/AK7gg5FNb0Owb6hErcMm0CZ7', meta={}, id=u'AK7gg5FNb0Owb6hErcMm0CZ7') % endif \ No newline at end of file diff --git a/scenarios/api_key_create/executable.py b/scenarios/api_key_create/executable.py index 0f1e752..d504419 100644 --- a/scenarios/api_key_create/executable.py +++ b/scenarios/api_key_create/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') api_key = balanced.APIKey().save() \ No newline at end of file diff --git a/scenarios/api_key_create/python.mako b/scenarios/api_key_create/python.mako index 0bfa6d1..4c062fb 100644 --- a/scenarios/api_key_create/python.mako +++ b/scenarios/api_key_create/python.mako @@ -3,9 +3,9 @@ balanced.APIKey() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') api_key = balanced.APIKey().save() % elif mode == 'response': -APIKey(links={}, created_at=u'2014-04-25T20:09:11.537493Z', secret=u'ak-test-2hjXn5Ny6P9aFu5jitCvkF06nNIHc3sYN', href=u'/api_keys/AK3DgZwSCD2ggxGSw1bsiyDX', meta={}, id=u'AK3DgZwSCD2ggxGSw1bsiyDX') +APIKey(links={}, created_at=u'2014-04-25T21:59:54.024155Z', secret=u'ak-test-2ouh9CXrssudvHruEZ1Ymcrna05kmigfw', href=u'/api_keys/AK7gg5FNb0Owb6hErcMm0CZ7', meta={}, id=u'AK7gg5FNb0Owb6hErcMm0CZ7') % endif \ No newline at end of file diff --git a/scenarios/api_key_delete/executable.py b/scenarios/api_key_delete/executable.py index 9def46b..9ea26c0 100644 --- a/scenarios/api_key_delete/executable.py +++ b/scenarios/api_key_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -key = balanced.APIKey.fetch('/api_keys/AK3DgZwSCD2ggxGSw1bsiyDX') +key = balanced.APIKey.fetch('/api_keys/AK7gg5FNb0Owb6hErcMm0CZ7') key.delete() \ No newline at end of file diff --git a/scenarios/api_key_delete/python.mako b/scenarios/api_key_delete/python.mako index 2fd99db..2e34c58 100644 --- a/scenarios/api_key_delete/python.mako +++ b/scenarios/api_key_delete/python.mako @@ -3,9 +3,9 @@ balanced.APIKey().delete() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -key = balanced.APIKey.fetch('/api_keys/AK3DgZwSCD2ggxGSw1bsiyDX') +key = balanced.APIKey.fetch('/api_keys/AK7gg5FNb0Owb6hErcMm0CZ7') key.delete() % elif mode == 'response': diff --git a/scenarios/api_key_list/executable.py b/scenarios/api_key_list/executable.py index 096ae74..d868e55 100644 --- a/scenarios/api_key_list/executable.py +++ b/scenarios/api_key_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') keys = balanced.APIKey.query \ No newline at end of file diff --git a/scenarios/api_key_list/python.mako b/scenarios/api_key_list/python.mako index 6776e65..6258f02 100644 --- a/scenarios/api_key_list/python.mako +++ b/scenarios/api_key_list/python.mako @@ -4,7 +4,7 @@ balanced.APIKey.query % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') keys = balanced.APIKey.query % elif mode == 'response': diff --git a/scenarios/api_key_show/executable.py b/scenarios/api_key_show/executable.py index 7d7042c..3086627 100644 --- a/scenarios/api_key_show/executable.py +++ b/scenarios/api_key_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -key = balanced.APIKey.fetch('/api_keys/AK3DgZwSCD2ggxGSw1bsiyDX') \ No newline at end of file +key = balanced.APIKey.fetch('/api_keys/AK7gg5FNb0Owb6hErcMm0CZ7') \ No newline at end of file diff --git a/scenarios/api_key_show/python.mako b/scenarios/api_key_show/python.mako index 6361725..a5f89ac 100644 --- a/scenarios/api_key_show/python.mako +++ b/scenarios/api_key_show/python.mako @@ -4,9 +4,9 @@ balanced.APIKey.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -key = balanced.APIKey.fetch('/api_keys/AK3DgZwSCD2ggxGSw1bsiyDX') +key = balanced.APIKey.fetch('/api_keys/AK7gg5FNb0Owb6hErcMm0CZ7') % elif mode == 'response': -APIKey(created_at=u'2014-04-25T20:09:11.537493Z', href=u'/api_keys/AK3DgZwSCD2ggxGSw1bsiyDX', meta={}, id=u'AK3DgZwSCD2ggxGSw1bsiyDX', links={}) +APIKey(created_at=u'2014-04-25T21:59:54.024155Z', href=u'/api_keys/AK7gg5FNb0Owb6hErcMm0CZ7', meta={}, id=u'AK7gg5FNb0Owb6hErcMm0CZ7', links={}) % endif \ No newline at end of file diff --git a/scenarios/bank_account_associate_to_customer/executable.py b/scenarios/bank_account_associate_to_customer/executable.py index 78d475c..ef29c79 100644 --- a/scenarios/bank_account_associate_to_customer/executable.py +++ b/scenarios/bank_account_associate_to_customer/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card = balanced.Card.fetch('/bank_accounts/BA3Y63fK5STwlhKNMkE3Utmd') -card.associate_to_customer('/customers/CU3VYCUIfwngJsidJWdGw2W5') \ No newline at end of file +card = balanced.Card.fetch('/bank_accounts/BA7zu6QXmylsn0o6qVpS8UO9') +card.associate_to_customer('/customers/CU7yCmXG2RxyyIkcHG3SIMUF') \ No newline at end of file diff --git a/scenarios/bank_account_associate_to_customer/python.mako b/scenarios/bank_account_associate_to_customer/python.mako index 2f13d34..4610960 100644 --- a/scenarios/bank_account_associate_to_customer/python.mako +++ b/scenarios/bank_account_associate_to_customer/python.mako @@ -3,10 +3,10 @@ balanced.Card().associate_to_customer() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card = balanced.Card.fetch('/bank_accounts/BA3Y63fK5STwlhKNMkE3Utmd') -card.associate_to_customer('/customers/CU3VYCUIfwngJsidJWdGw2W5') +card = balanced.Card.fetch('/bank_accounts/BA7zu6QXmylsn0o6qVpS8UO9') +card.associate_to_customer('/customers/CU7yCmXG2RxyyIkcHG3SIMUF') % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': u'CU3VYCUIfwngJsidJWdGw2W5', u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-25T20:09:30.053834Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-25T20:09:30.667083Z', href=u'/bank_accounts/BA3Y63fK5STwlhKNMkE3Utmd', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA3Y63fK5STwlhKNMkE3Utmd') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': u'CU7yCmXG2RxyyIkcHG3SIMUF', u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-25T22:00:11.119953Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-25T22:00:11.625350Z', href=u'/bank_accounts/BA7zu6QXmylsn0o6qVpS8UO9', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA7zu6QXmylsn0o6qVpS8UO9') % endif \ No newline at end of file diff --git a/scenarios/bank_account_create/executable.py b/scenarios/bank_account_create/executable.py index d2b989e..eff4a8d 100644 --- a/scenarios/bank_account_create/executable.py +++ b/scenarios/bank_account_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') bank_account = balanced.BankAccount( routing_number='121000358', diff --git a/scenarios/bank_account_create/python.mako b/scenarios/bank_account_create/python.mako index 48e0e2e..7b3daf1 100644 --- a/scenarios/bank_account_create/python.mako +++ b/scenarios/bank_account_create/python.mako @@ -3,7 +3,7 @@ balanced.BankAccount().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') bank_account = balanced.BankAccount( routing_number='121000358', @@ -12,5 +12,5 @@ bank_account = balanced.BankAccount( name='Johann Bernoulli' ).save() % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-25T20:09:30.053834Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-25T20:09:30.053837Z', href=u'/bank_accounts/BA3Y63fK5STwlhKNMkE3Utmd', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA3Y63fK5STwlhKNMkE3Utmd') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-25T22:00:11.119953Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-25T22:00:11.119956Z', href=u'/bank_accounts/BA7zu6QXmylsn0o6qVpS8UO9', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA7zu6QXmylsn0o6qVpS8UO9') % endif \ No newline at end of file diff --git a/scenarios/bank_account_credit/executable.py b/scenarios/bank_account_credit/executable.py index b0c865b..48bb66a 100644 --- a/scenarios/bank_account_credit/executable.py +++ b/scenarios/bank_account_credit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3Y63fK5STwlhKNMkE3Utmd') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7zu6QXmylsn0o6qVpS8UO9') bank_account.credit( amount=5000 ) \ No newline at end of file diff --git a/scenarios/bank_account_credit/python.mako b/scenarios/bank_account_credit/python.mako index fd02bd8..f2f66fc 100644 --- a/scenarios/bank_account_credit/python.mako +++ b/scenarios/bank_account_credit/python.mako @@ -3,12 +3,12 @@ balanced.BankAccount().credit() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3Y63fK5STwlhKNMkE3Utmd') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7zu6QXmylsn0o6qVpS8UO9') bank_account.credit( amount=5000 ) % elif mode == 'response': -Credit(status=u'succeeded', description=None, links={u'customer': u'CU3VYCUIfwngJsidJWdGw2W5', u'destination': u'BA3Y63fK5STwlhKNMkE3Utmd', u'order': None}, amount=5000, created_at=u'2014-04-25T20:18:52.480929Z', updated_at=u'2014-04-25T20:18:54.380146Z', failure_reason=None, currency=u'USD', transaction_number=u'CR666-481-5204', href=u'/credits/CR6nBcaGvGc4dtflEB1bjKBP', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR6nBcaGvGc4dtflEB1bjKBP') +Credit(status=u'succeeded', description=None, links={u'customer': u'CU7yCmXG2RxyyIkcHG3SIMUF', u'destination': u'BA7zu6QXmylsn0o6qVpS8UO9', u'order': None}, amount=5000, created_at=u'2014-04-25T22:08:58.386422Z', updated_at=u'2014-04-25T22:08:58.659857Z', failure_reason=None, currency=u'USD', transaction_number=u'CR964-486-9546', href=u'/credits/CR1ynmPUlJGbV9EMyqkowHJP', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR1ynmPUlJGbV9EMyqkowHJP') % endif \ No newline at end of file diff --git a/scenarios/bank_account_debit/executable.py b/scenarios/bank_account_debit/executable.py index 3e64052..70763c3 100644 --- a/scenarios/bank_account_debit/executable.py +++ b/scenarios/bank_account_debit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3IhKG3bIN22cLHbaOIGtHb') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7lb2roygfhwDfbvikDLcHP') bank_account.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/bank_account_debit/python.mako b/scenarios/bank_account_debit/python.mako index 7d7ec1f..e47574a 100644 --- a/scenarios/bank_account_debit/python.mako +++ b/scenarios/bank_account_debit/python.mako @@ -3,14 +3,14 @@ balanced.BankAccount().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3IhKG3bIN22cLHbaOIGtHb') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7lb2roygfhwDfbvikDLcHP') bank_account.debit( appears_on_statement_as='Statement text', amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'BA3IhKG3bIN22cLHbaOIGtHb', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T20:09:33.925749Z', updated_at=u'2014-04-25T20:09:34.551675Z', failure_reason=None, currency=u'USD', transaction_number=u'W212-186-3238', href=u'/debits/WD42s4BBkPXvzXTxyo7CLfFj', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD42s4BBkPXvzXTxyo7CLfFj') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'BA7lb2roygfhwDfbvikDLcHP', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T22:00:13.215147Z', updated_at=u'2014-04-25T22:00:13.474988Z', failure_reason=None, currency=u'USD', transaction_number=u'W037-237-6091', href=u'/debits/WD7BQhTIsYYSdWYr3QkpTSml', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD7BQhTIsYYSdWYr3QkpTSml') % endif \ No newline at end of file diff --git a/scenarios/bank_account_delete/executable.py b/scenarios/bank_account_delete/executable.py index 2c27c69..e673077 100644 --- a/scenarios/bank_account_delete/executable.py +++ b/scenarios/bank_account_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7sojXcP7oSdQyrjUA7wXg9') bank_account.delete() \ No newline at end of file diff --git a/scenarios/bank_account_delete/python.mako b/scenarios/bank_account_delete/python.mako index e9ec7fc..ec576f4 100644 --- a/scenarios/bank_account_delete/python.mako +++ b/scenarios/bank_account_delete/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount().delete() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7sojXcP7oSdQyrjUA7wXg9') bank_account.delete() % elif mode == 'response': diff --git a/scenarios/bank_account_list/executable.py b/scenarios/bank_account_list/executable.py index d8e2a41..33d4724 100644 --- a/scenarios/bank_account_list/executable.py +++ b/scenarios/bank_account_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') bank_accounts = balanced.BankAccount.query \ No newline at end of file diff --git a/scenarios/bank_account_list/python.mako b/scenarios/bank_account_list/python.mako index 27df78f..bfb1eba 100644 --- a/scenarios/bank_account_list/python.mako +++ b/scenarios/bank_account_list/python.mako @@ -4,7 +4,7 @@ balanced.BankAccount.query % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') bank_accounts = balanced.BankAccount.query % elif mode == 'response': diff --git a/scenarios/bank_account_show/executable.py b/scenarios/bank_account_show/executable.py index 83337f6..5ad432b 100644 --- a/scenarios/bank_account_show/executable.py +++ b/scenarios/bank_account_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl') \ No newline at end of file +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7sojXcP7oSdQyrjUA7wXg9') \ No newline at end of file diff --git a/scenarios/bank_account_show/python.mako b/scenarios/bank_account_show/python.mako index c68be8b..c744c5e 100644 --- a/scenarios/bank_account_show/python.mako +++ b/scenarios/bank_account_show/python.mako @@ -4,9 +4,9 @@ balanced.BankAccount.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7sojXcP7oSdQyrjUA7wXg9') % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-25T20:09:22.528624Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-25T20:09:22.528628Z', href=u'/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA3PDwDCkdeC4OgPtPNwoCWl') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-25T22:00:04.813389Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-25T22:00:04.813391Z', href=u'/bank_accounts/BA7sojXcP7oSdQyrjUA7wXg9', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA7sojXcP7oSdQyrjUA7wXg9') % endif \ No newline at end of file diff --git a/scenarios/bank_account_update/executable.py b/scenarios/bank_account_update/executable.py index 77879f1..48b5d7b 100644 --- a/scenarios/bank_account_update/executable.py +++ b/scenarios/bank_account_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7sojXcP7oSdQyrjUA7wXg9') bank_account.meta = { 'twitter.id'='1234987650', 'facebook.user_id'='0192837465', diff --git a/scenarios/bank_account_update/python.mako b/scenarios/bank_account_update/python.mako index a506168..61ce9fa 100644 --- a/scenarios/bank_account_update/python.mako +++ b/scenarios/bank_account_update/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7sojXcP7oSdQyrjUA7wXg9') bank_account.meta = { 'twitter.id'='1234987650', 'facebook.user_id'='0192837465', @@ -13,5 +13,5 @@ bank_account.meta = { } bank_account.save() % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-25T20:09:22.528624Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-25T20:09:25.975494Z', href=u'/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl', meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA3PDwDCkdeC4OgPtPNwoCWl') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-25T22:00:04.813389Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-25T22:00:08.225025Z', href=u'/bank_accounts/BA7sojXcP7oSdQyrjUA7wXg9', meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA7sojXcP7oSdQyrjUA7wXg9') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/executable.py b/scenarios/bank_account_verification_create/executable.py index 7881bf5..34672a5 100644 --- a/scenarios/bank_account_verification_create/executable.py +++ b/scenarios/bank_account_verification_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3IhKG3bIN22cLHbaOIGtHb') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7lb2roygfhwDfbvikDLcHP') verification = bank_account.verify() \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/python.mako b/scenarios/bank_account_verification_create/python.mako index 604b1dd..deca961 100644 --- a/scenarios/bank_account_verification_create/python.mako +++ b/scenarios/bank_account_verification_create/python.mako @@ -3,10 +3,10 @@ balanced.BankAccountVerification().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3IhKG3bIN22cLHbaOIGtHb') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7lb2roygfhwDfbvikDLcHP') verification = bank_account.verify() % elif mode == 'response': -BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA3IhKG3bIN22cLHbaOIGtHb'}, created_at=u'2014-04-25T20:09:17.814785Z', attempts_remaining=3, updated_at=u'2014-04-25T20:09:18.218504Z', deposit_status=u'succeeded', attempts=0, href=u'/verifications/BZ3KkIZuSazKfqFrFIfsrhmB', meta={}, id=u'BZ3KkIZuSazKfqFrFIfsrhmB') +BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA7lb2roygfhwDfbvikDLcHP'}, created_at=u'2014-04-25T22:00:00.062125Z', attempts_remaining=3, updated_at=u'2014-04-25T22:00:00.483961Z', deposit_status=u'succeeded', attempts=0, href=u'/verifications/BZ7n38gpwYou03mkP4Vt83Cl', meta={}, id=u'BZ7n38gpwYou03mkP4Vt83Cl') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/executable.py b/scenarios/bank_account_verification_show/executable.py index af8c2aa..ba384a8 100644 --- a/scenarios/bank_account_verification_show/executable.py +++ b/scenarios/bank_account_verification_show/executable.py @@ -1,4 +1,4 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ3KkIZuSazKfqFrFIfsrhmB') \ No newline at end of file +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ7n38gpwYou03mkP4Vt83Cl') \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/python.mako b/scenarios/bank_account_verification_show/python.mako index 1a6c7bb..d8c8fbc 100644 --- a/scenarios/bank_account_verification_show/python.mako +++ b/scenarios/bank_account_verification_show/python.mako @@ -4,8 +4,8 @@ balanced.BankAccountVerification.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ3KkIZuSazKfqFrFIfsrhmB') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ7n38gpwYou03mkP4Vt83Cl') % elif mode == 'response': -BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA3IhKG3bIN22cLHbaOIGtHb'}, created_at=u'2014-04-25T20:09:17.814785Z', attempts_remaining=3, updated_at=u'2014-04-25T20:09:18.218504Z', deposit_status=u'succeeded', attempts=0, href=u'/verifications/BZ3KkIZuSazKfqFrFIfsrhmB', meta={}, id=u'BZ3KkIZuSazKfqFrFIfsrhmB') +BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA7lb2roygfhwDfbvikDLcHP'}, created_at=u'2014-04-25T22:00:00.062125Z', attempts_remaining=3, updated_at=u'2014-04-25T22:00:00.483961Z', deposit_status=u'succeeded', attempts=0, href=u'/verifications/BZ7n38gpwYou03mkP4Vt83Cl', meta={}, id=u'BZ7n38gpwYou03mkP4Vt83Cl') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/executable.py b/scenarios/bank_account_verification_update/executable.py index 4367d19..2b4f772 100644 --- a/scenarios/bank_account_verification_update/executable.py +++ b/scenarios/bank_account_verification_update/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ3KkIZuSazKfqFrFIfsrhmB') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ7n38gpwYou03mkP4Vt83Cl') verification.confirm(amount_1=1, amount_2=1) \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/python.mako b/scenarios/bank_account_verification_update/python.mako index e54056f..c774e68 100644 --- a/scenarios/bank_account_verification_update/python.mako +++ b/scenarios/bank_account_verification_update/python.mako @@ -3,10 +3,10 @@ balanced.BankAccountVerification().confirm() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ3KkIZuSazKfqFrFIfsrhmB') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ7n38gpwYou03mkP4Vt83Cl') verification.confirm(amount_1=1, amount_2=1) % elif mode == 'response': -BankAccountVerification(verification_status=u'succeeded', links={u'bank_account': u'BA3IhKG3bIN22cLHbaOIGtHb'}, created_at=u'2014-04-25T20:09:17.814785Z', attempts_remaining=2, updated_at=u'2014-04-25T20:09:20.852682Z', deposit_status=u'succeeded', attempts=1, href=u'/verifications/BZ3KkIZuSazKfqFrFIfsrhmB', meta={}, id=u'BZ3KkIZuSazKfqFrFIfsrhmB') +BankAccountVerification(verification_status=u'succeeded', links={u'bank_account': u'BA7lb2roygfhwDfbvikDLcHP'}, created_at=u'2014-04-25T22:00:00.062125Z', attempts_remaining=2, updated_at=u'2014-04-25T22:00:03.198401Z', deposit_status=u'succeeded', attempts=1, href=u'/verifications/BZ7n38gpwYou03mkP4Vt83Cl', meta={}, id=u'BZ7n38gpwYou03mkP4Vt83Cl') % endif \ No newline at end of file diff --git a/scenarios/callback_create/executable.py b/scenarios/callback_create/executable.py index 15ab4e1..0fb9dcf 100644 --- a/scenarios/callback_create/executable.py +++ b/scenarios/callback_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') callback = balanced.Callback( url='http://www.example.com/callback', diff --git a/scenarios/callback_create/python.mako b/scenarios/callback_create/python.mako index af2d5c8..9edf48b 100644 --- a/scenarios/callback_create/python.mako +++ b/scenarios/callback_create/python.mako @@ -3,12 +3,12 @@ balanced.Callback() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') callback = balanced.Callback( url='http://www.example.com/callback', method='post' ).save() % elif mode == 'response': -Callback(links={}, url=u'http://www.example.com/callback', id=u'CB44XaMOcxsUnuQoA5A4VKCx', href=u'/callbacks/CB44XaMOcxsUnuQoA5A4VKCx', method=u'post', revision=u'1.1') +Callback(links={}, url=u'http://www.example.com/callback', id=u'CB7DP9sW9wRe19dFRutynahb', href=u'/callbacks/CB7DP9sW9wRe19dFRutynahb', method=u'post', revision=u'1.1') % endif \ No newline at end of file diff --git a/scenarios/callback_delete/executable.py b/scenarios/callback_delete/executable.py index 4d1f5cd..5ab288b 100644 --- a/scenarios/callback_delete/executable.py +++ b/scenarios/callback_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -callback = balanced.Callback.fetch('/callbacks/CB44XaMOcxsUnuQoA5A4VKCx') +callback = balanced.Callback.fetch('/callbacks/CB7DP9sW9wRe19dFRutynahb') callback.unstore() \ No newline at end of file diff --git a/scenarios/callback_delete/python.mako b/scenarios/callback_delete/python.mako index 539de5c..37f73f4 100644 --- a/scenarios/callback_delete/python.mako +++ b/scenarios/callback_delete/python.mako @@ -3,9 +3,9 @@ balanced.Callback().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -callback = balanced.Callback.fetch('/callbacks/CB44XaMOcxsUnuQoA5A4VKCx') +callback = balanced.Callback.fetch('/callbacks/CB7DP9sW9wRe19dFRutynahb') callback.unstore() % elif mode == 'response': diff --git a/scenarios/callback_list/executable.py b/scenarios/callback_list/executable.py index d3813c3..79f3279 100644 --- a/scenarios/callback_list/executable.py +++ b/scenarios/callback_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') callbacks = balanced.Callback.query \ No newline at end of file diff --git a/scenarios/callback_list/python.mako b/scenarios/callback_list/python.mako index 19b4e0e..21d2b25 100644 --- a/scenarios/callback_list/python.mako +++ b/scenarios/callback_list/python.mako @@ -4,7 +4,7 @@ balanced.Callback.query % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') callbacks = balanced.Callback.query % elif mode == 'response': diff --git a/scenarios/callback_show/executable.py b/scenarios/callback_show/executable.py index b193521..70df25f 100644 --- a/scenarios/callback_show/executable.py +++ b/scenarios/callback_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -callback = balanced.Callback.fetch('/callbacks/CB44XaMOcxsUnuQoA5A4VKCx') \ No newline at end of file +callback = balanced.Callback.fetch('/callbacks/CB7DP9sW9wRe19dFRutynahb') \ No newline at end of file diff --git a/scenarios/callback_show/python.mako b/scenarios/callback_show/python.mako index f28fe8b..0a90ea7 100644 --- a/scenarios/callback_show/python.mako +++ b/scenarios/callback_show/python.mako @@ -4,9 +4,9 @@ balanced.Callback.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -callback = balanced.Callback.fetch('/callbacks/CB44XaMOcxsUnuQoA5A4VKCx') +callback = balanced.Callback.fetch('/callbacks/CB7DP9sW9wRe19dFRutynahb') % elif mode == 'response': -Callback(links={}, url=u'http://www.example.com/callback', id=u'CB44XaMOcxsUnuQoA5A4VKCx', href=u'/callbacks/CB44XaMOcxsUnuQoA5A4VKCx', method=u'post', revision=u'1.1') +Callback(links={}, url=u'http://www.example.com/callback', id=u'CB7DP9sW9wRe19dFRutynahb', href=u'/callbacks/CB7DP9sW9wRe19dFRutynahb', method=u'post', revision=u'1.1') % endif \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/executable.py b/scenarios/card_associate_to_customer/executable.py index 764c8ed..c015f6e 100644 --- a/scenarios/card_associate_to_customer/executable.py +++ b/scenarios/card_associate_to_customer/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card = balanced.Card.fetch('/cards/CC4tvKLTKXcBJAgkGvPEW58N') -card.associate_to_customer('/customers/CU3VYCUIfwngJsidJWdGw2W5') \ No newline at end of file +card = balanced.Card.fetch('/cards/CCf1fF6z2RjwvniinUVefhb') +card.associate_to_customer('/customers/CU7yCmXG2RxyyIkcHG3SIMUF') \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/python.mako b/scenarios/card_associate_to_customer/python.mako index 8e60ccd..a679481 100644 --- a/scenarios/card_associate_to_customer/python.mako +++ b/scenarios/card_associate_to_customer/python.mako @@ -3,10 +3,10 @@ balanced.Card().associate_to_customer() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card = balanced.Card.fetch('/cards/CC4tvKLTKXcBJAgkGvPEW58N') -card.associate_to_customer('/customers/CU3VYCUIfwngJsidJWdGw2W5') +card = balanced.Card.fetch('/cards/CCf1fF6z2RjwvniinUVefhb') +card.associate_to_customer('/customers/CU7yCmXG2RxyyIkcHG3SIMUF') % elif mode == 'response': -Card(cvv_match=u'yes', links={u'customer': u'CU3VYCUIfwngJsidJWdGw2W5'}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-25T20:09:57.984444Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-25T20:09:58.467948Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CC4tvKLTKXcBJAgkGvPEW58N', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CC4tvKLTKXcBJAgkGvPEW58N', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) +Card(cvv_match=u'yes', links={u'customer': u'CU7yCmXG2RxyyIkcHG3SIMUF'}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-25T22:00:36.548055Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-25T22:00:37.042031Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CCf1fF6z2RjwvniinUVefhb', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CCf1fF6z2RjwvniinUVefhb', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) % endif \ No newline at end of file diff --git a/scenarios/card_create/executable.py b/scenarios/card_create/executable.py index 008f312..5994bd2 100644 --- a/scenarios/card_create/executable.py +++ b/scenarios/card_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') card = balanced.Card( cvv='123', diff --git a/scenarios/card_create/python.mako b/scenarios/card_create/python.mako index 92260fd..413887b 100644 --- a/scenarios/card_create/python.mako +++ b/scenarios/card_create/python.mako @@ -3,7 +3,7 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') card = balanced.Card( cvv='123', @@ -12,5 +12,5 @@ card = balanced.Card( expiration_year='2020' ).save() % elif mode == 'response': -Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-25T20:09:57.984444Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-25T20:09:57.984446Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CC4tvKLTKXcBJAgkGvPEW58N', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CC4tvKLTKXcBJAgkGvPEW58N', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) +Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-25T22:00:36.548055Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-25T22:00:36.548057Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CCf1fF6z2RjwvniinUVefhb', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CCf1fF6z2RjwvniinUVefhb', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) % endif \ No newline at end of file diff --git a/scenarios/card_create_dispute/executable.py b/scenarios/card_create_dispute/executable.py index ceed7b5..6150ad3 100644 --- a/scenarios/card_create_dispute/executable.py +++ b/scenarios/card_create_dispute/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') card = balanced.Card( cvv='123', diff --git a/scenarios/card_create_dispute/python.mako b/scenarios/card_create_dispute/python.mako index 199776b..4356a06 100644 --- a/scenarios/card_create_dispute/python.mako +++ b/scenarios/card_create_dispute/python.mako @@ -3,7 +3,7 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') card = balanced.Card( cvv='123', @@ -12,5 +12,5 @@ card = balanced.Card( expiration_year='3000' ).save() % elif mode == 'response': -Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=3000, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-25T20:10:24.900273Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx0002', updated_at=u'2014-04-25T20:10:24.900275Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CC4XMSQg2OY6rrcrkeEGtLcZ', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CC4XMSQg2OY6rrcrkeEGtLcZ', fingerprint=u'3c667a62653e187f29b5781eeb0703f26e99558080de0c0f9490b5f9c4ac2871', is_verified=True, brand=u'Discover', name=None) +Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=3000, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-25T22:01:02.497846Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx0002', updated_at=u'2014-04-25T22:01:02.497848Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CCIcOaBZBsK9o6Nbqmuu7B3', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CCIcOaBZBsK9o6Nbqmuu7B3', fingerprint=u'3c667a62653e187f29b5781eeb0703f26e99558080de0c0f9490b5f9c4ac2871', is_verified=True, brand=u'Discover', name=None) % endif \ No newline at end of file diff --git a/scenarios/card_debit/executable.py b/scenarios/card_debit/executable.py index 5cf23b9..9834f7f 100644 --- a/scenarios/card_debit/executable.py +++ b/scenarios/card_debit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card = balanced.Card.fetch('/cards/CC4tvKLTKXcBJAgkGvPEW58N') +card = balanced.Card.fetch('/cards/CCf1fF6z2RjwvniinUVefhb') card.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/card_debit/python.mako b/scenarios/card_debit/python.mako index 6acd600..f3c24da 100644 --- a/scenarios/card_debit/python.mako +++ b/scenarios/card_debit/python.mako @@ -3,14 +3,14 @@ balanced.Card().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card = balanced.Card.fetch('/cards/CC4tvKLTKXcBJAgkGvPEW58N') +card = balanced.Card.fetch('/cards/CCf1fF6z2RjwvniinUVefhb') card.debit( appears_on_statement_as='Statement text', amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CU3VYCUIfwngJsidJWdGw2W5', u'source': u'CC4tvKLTKXcBJAgkGvPEW58N', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T20:10:20.485474Z', updated_at=u'2014-04-25T20:10:21.476140Z', failure_reason=None, currency=u'USD', transaction_number=u'W060-183-8881', href=u'/debits/WD4SOTNKiZbBFrmMk6mfszIl', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD4SOTNKiZbBFrmMk6mfszIl') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CU7yCmXG2RxyyIkcHG3SIMUF', u'source': u'CCf1fF6z2RjwvniinUVefhb', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T22:00:58.990911Z', updated_at=u'2014-04-25T22:00:59.631219Z', failure_reason=None, currency=u'USD', transaction_number=u'W359-587-1632', href=u'/debits/WDEg9ofx83CeAhiwI1QmA17', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WDEg9ofx83CeAhiwI1QmA17') % endif \ No newline at end of file diff --git a/scenarios/card_debit_dispute/executable.py b/scenarios/card_debit_dispute/executable.py index 64dec07..8676251 100644 --- a/scenarios/card_debit_dispute/executable.py +++ b/scenarios/card_debit_dispute/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card = balanced.Card.fetch('/cards/CC4XMSQg2OY6rrcrkeEGtLcZ') +card = balanced.Card.fetch('/cards/CCIcOaBZBsK9o6Nbqmuu7B3') card.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/card_debit_dispute/python.mako b/scenarios/card_debit_dispute/python.mako index 9ca2086..03f62fe 100644 --- a/scenarios/card_debit_dispute/python.mako +++ b/scenarios/card_debit_dispute/python.mako @@ -3,14 +3,14 @@ balanced.Card().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card = balanced.Card.fetch('/cards/CC4XMSQg2OY6rrcrkeEGtLcZ') +card = balanced.Card.fetch('/cards/CCIcOaBZBsK9o6Nbqmuu7B3') card.debit( appears_on_statement_as='Statement text', amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC4XMSQg2OY6rrcrkeEGtLcZ', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T20:10:25.648099Z', updated_at=u'2014-04-25T20:10:26.775361Z', failure_reason=None, currency=u'USD', transaction_number=u'W630-477-8252', href=u'/debits/WD4YCKAyFrQBFYuFCUCRynOx', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD4YCKAyFrQBFYuFCUCRynOx') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CCIcOaBZBsK9o6Nbqmuu7B3', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T22:01:03.293505Z', updated_at=u'2014-04-25T22:01:04.057459Z', failure_reason=None, currency=u'USD', transaction_number=u'W417-679-7417', href=u'/debits/WDJ66VlXnDyDx5AS5uplxyt', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WDJ66VlXnDyDx5AS5uplxyt') % endif \ No newline at end of file diff --git a/scenarios/card_delete/executable.py b/scenarios/card_delete/executable.py index 111d5d3..b844af3 100644 --- a/scenarios/card_delete/executable.py +++ b/scenarios/card_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card = balanced.Card.fetch('/cards/CC4mYF7dj7X6OA2K5F0Qyb4N') +card = balanced.Card.fetch('/cards/CC832pqCbRPor1ewRdxPvnv') card.unstore() \ No newline at end of file diff --git a/scenarios/card_delete/python.mako b/scenarios/card_delete/python.mako index 45f746a..37836ee 100644 --- a/scenarios/card_delete/python.mako +++ b/scenarios/card_delete/python.mako @@ -3,9 +3,9 @@ balanced.Card().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card = balanced.Card.fetch('/cards/CC4mYF7dj7X6OA2K5F0Qyb4N') +card = balanced.Card.fetch('/cards/CC832pqCbRPor1ewRdxPvnv') card.unstore() % elif mode == 'response': diff --git a/scenarios/card_hold_capture/executable.py b/scenarios/card_hold_capture/executable.py index be03515..b4ff3bc 100644 --- a/scenarios/card_hold_capture/executable.py +++ b/scenarios/card_hold_capture/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card_hold = balanced.CardHold.fetch('/card_holds/HL4bdnO7ELS2JfyJ2T8elYOl') +card_hold = balanced.CardHold.fetch('/card_holds/HL7K6mNHtWSl33Whc0WDOJ81') debit = card_hold.capture( appears_on_statement_as='ShowsUpOnStmt', description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_capture/python.mako b/scenarios/card_hold_capture/python.mako index 1e96580..f7d1686 100644 --- a/scenarios/card_hold_capture/python.mako +++ b/scenarios/card_hold_capture/python.mako @@ -3,13 +3,13 @@ balanced.CardHold().capture() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card_hold = balanced.CardHold.fetch('/card_holds/HL4bdnO7ELS2JfyJ2T8elYOl') +card_hold = balanced.CardHold.fetch('/card_holds/HL7K6mNHtWSl33Whc0WDOJ81') debit = card_hold.capture( appears_on_statement_as='ShowsUpOnStmt', description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CU3z3rwGWGazDwwyLy0rNqfj', u'source': u'CC4auQXiAWMBxJcEUIMYeZFj', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T20:09:46.854710Z', updated_at=u'2014-04-25T20:09:47.351487Z', failure_reason=None, currency=u'USD', transaction_number=u'W815-967-5010', href=u'/debits/WD4gZDOJ1DB443FYcbwNN5EV', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, appears_on_statement_as=u'BAL*ShowsUpOnStmt', id=u'WD4gZDOJ1DB443FYcbwNN5EV') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CU7c8cBtxfllT4M6zDyjbJA1', u'source': u'CC7JlMyXyZ8W3RBfE1SSlnrD', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T22:00:25.687801Z', updated_at=u'2014-04-25T22:00:26.140296Z', failure_reason=None, currency=u'USD', transaction_number=u'W113-190-1861', href=u'/debits/WD2NZluFdmQMTHhvyVjSjmp', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, appears_on_statement_as=u'BAL*ShowsUpOnStmt', id=u'WD2NZluFdmQMTHhvyVjSjmp') % endif \ No newline at end of file diff --git a/scenarios/card_hold_create/executable.py b/scenarios/card_hold_create/executable.py index 86d121b..127f67a 100644 --- a/scenarios/card_hold_create/executable.py +++ b/scenarios/card_hold_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card = balanced.Card.fetch('/cards/CC4auQXiAWMBxJcEUIMYeZFj') +card = balanced.Card.fetch('/cards/CC7JlMyXyZ8W3RBfE1SSlnrD') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_create/python.mako b/scenarios/card_hold_create/python.mako index 9241136..9eed36b 100644 --- a/scenarios/card_hold_create/python.mako +++ b/scenarios/card_hold_create/python.mako @@ -3,13 +3,13 @@ balanced.Card().hold() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card = balanced.Card.fetch('/cards/CC4auQXiAWMBxJcEUIMYeZFj') +card = balanced.Card.fetch('/cards/CC7JlMyXyZ8W3RBfE1SSlnrD') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC4auQXiAWMBxJcEUIMYeZFj', u'debit': None}, amount=5000, created_at=u'2014-04-25T20:09:48.990540Z', updated_at=u'2014-04-25T20:09:49.228091Z', expires_at=u'2014-05-02T20:09:49.096484Z', failure_reason=None, currency=u'USD', transaction_number=u'HL161-849-8610', href=u'/card_holds/HL4joUazeM3BJE6emmv2Q8EF', meta={}, failure_reason_code=None, voided_at=None, id=u'HL4joUazeM3BJE6emmv2Q8EF') +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC7JlMyXyZ8W3RBfE1SSlnrD', u'debit': None}, amount=5000, created_at=u'2014-04-25T22:00:27.337321Z', updated_at=u'2014-04-25T22:00:27.554476Z', expires_at=u'2014-05-02T22:00:27.441254Z', failure_reason=None, currency=u'USD', transaction_number=u'HL750-788-2579', href=u'/card_holds/HL4F8FdmMdyVxzE515FygGd', meta={}, failure_reason_code=None, voided_at=None, id=u'HL4F8FdmMdyVxzE515FygGd') % endif \ No newline at end of file diff --git a/scenarios/card_hold_list/executable.py b/scenarios/card_hold_list/executable.py index b99838d..47b5150 100644 --- a/scenarios/card_hold_list/executable.py +++ b/scenarios/card_hold_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') card_holds = balanced.CardHold.query \ No newline at end of file diff --git a/scenarios/card_hold_list/python.mako b/scenarios/card_hold_list/python.mako index 8086958..71e7399 100644 --- a/scenarios/card_hold_list/python.mako +++ b/scenarios/card_hold_list/python.mako @@ -4,7 +4,7 @@ balanced.CardHold.query % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') card_holds = balanced.CardHold.query % elif mode == 'response': diff --git a/scenarios/card_hold_show/executable.py b/scenarios/card_hold_show/executable.py index db6fc76..5fc0bf0 100644 --- a/scenarios/card_hold_show/executable.py +++ b/scenarios/card_hold_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card_hold = balanced.CardHold.fetch('/card_holds/HL4bdnO7ELS2JfyJ2T8elYOl') \ No newline at end of file +card_hold = balanced.CardHold.fetch('/card_holds/HL7K6mNHtWSl33Whc0WDOJ81') \ No newline at end of file diff --git a/scenarios/card_hold_show/python.mako b/scenarios/card_hold_show/python.mako index 31d1dda..01821af 100644 --- a/scenarios/card_hold_show/python.mako +++ b/scenarios/card_hold_show/python.mako @@ -4,9 +4,9 @@ balanced.CardHold.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card_hold = balanced.CardHold.fetch('/card_holds/HL4bdnO7ELS2JfyJ2T8elYOl') +card_hold = balanced.CardHold.fetch('/card_holds/HL7K6mNHtWSl33Whc0WDOJ81') % elif mode == 'response': -CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC4auQXiAWMBxJcEUIMYeZFj', u'debit': None}, amount=5000, created_at=u'2014-04-25T20:09:41.712497Z', updated_at=u'2014-04-25T20:09:42.023214Z', expires_at=u'2014-05-02T20:09:41.878825Z', failure_reason=None, currency=u'USD', transaction_number=u'HL244-046-8353', href=u'/card_holds/HL4bdnO7ELS2JfyJ2T8elYOl', meta={}, failure_reason_code=None, voided_at=None, id=u'HL4bdnO7ELS2JfyJ2T8elYOl') +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC7JlMyXyZ8W3RBfE1SSlnrD', u'debit': None}, amount=5000, created_at=u'2014-04-25T22:00:20.558033Z', updated_at=u'2014-04-25T22:00:20.741093Z', expires_at=u'2014-05-02T22:00:20.666972Z', failure_reason=None, currency=u'USD', transaction_number=u'HL046-527-6041', href=u'/card_holds/HL7K6mNHtWSl33Whc0WDOJ81', meta={}, failure_reason_code=None, voided_at=None, id=u'HL7K6mNHtWSl33Whc0WDOJ81') % endif \ No newline at end of file diff --git a/scenarios/card_hold_update/executable.py b/scenarios/card_hold_update/executable.py index 54bace3..d9f74b2 100644 --- a/scenarios/card_hold_update/executable.py +++ b/scenarios/card_hold_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card_hold = balanced.CardHold.fetch('/card_holds/HL4bdnO7ELS2JfyJ2T8elYOl') +card_hold = balanced.CardHold.fetch('/card_holds/HL7K6mNHtWSl33Whc0WDOJ81') card_hold.description = 'update this description' card_hold.meta = { 'holding.for': 'user1', diff --git a/scenarios/card_hold_update/python.mako b/scenarios/card_hold_update/python.mako index 94b969b..b5d6300 100644 --- a/scenarios/card_hold_update/python.mako +++ b/scenarios/card_hold_update/python.mako @@ -3,9 +3,9 @@ balanced.CardHold().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card_hold = balanced.CardHold.fetch('/card_holds/HL4bdnO7ELS2JfyJ2T8elYOl') +card_hold = balanced.CardHold.fetch('/card_holds/HL7K6mNHtWSl33Whc0WDOJ81') card_hold.description = 'update this description' card_hold.meta = { 'holding.for': 'user1', @@ -13,5 +13,5 @@ card_hold.meta = { } card_hold.save() % elif mode == 'response': -CardHold(status=u'succeeded', description=u'update this description', links={u'card': u'CC4auQXiAWMBxJcEUIMYeZFj', u'debit': None}, amount=5000, created_at=u'2014-04-25T20:09:41.712497Z', updated_at=u'2014-04-25T20:09:45.729280Z', expires_at=u'2014-05-02T20:09:41.878825Z', failure_reason=None, currency=u'USD', transaction_number=u'HL244-046-8353', href=u'/card_holds/HL4bdnO7ELS2JfyJ2T8elYOl', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, voided_at=None, id=u'HL4bdnO7ELS2JfyJ2T8elYOl') +CardHold(status=u'succeeded', description=u'update this description', links={u'card': u'CC7JlMyXyZ8W3RBfE1SSlnrD', u'debit': None}, amount=5000, created_at=u'2014-04-25T22:00:20.558033Z', updated_at=u'2014-04-25T22:00:24.531626Z', expires_at=u'2014-05-02T22:00:20.666972Z', failure_reason=None, currency=u'USD', transaction_number=u'HL046-527-6041', href=u'/card_holds/HL7K6mNHtWSl33Whc0WDOJ81', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, voided_at=None, id=u'HL7K6mNHtWSl33Whc0WDOJ81') % endif \ No newline at end of file diff --git a/scenarios/card_hold_void/executable.py b/scenarios/card_hold_void/executable.py index 06812ac..aa4addc 100644 --- a/scenarios/card_hold_void/executable.py +++ b/scenarios/card_hold_void/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card_hold = balanced.CardHold.fetch('/card_holds/HL4joUazeM3BJE6emmv2Q8EF') +card_hold = balanced.CardHold.fetch('/card_holds/HL4F8FdmMdyVxzE515FygGd') card_hold.cancel() \ No newline at end of file diff --git a/scenarios/card_hold_void/python.mako b/scenarios/card_hold_void/python.mako index c2df5a2..f842e38 100644 --- a/scenarios/card_hold_void/python.mako +++ b/scenarios/card_hold_void/python.mako @@ -3,10 +3,10 @@ balanced.CardHold().cancel() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card_hold = balanced.CardHold.fetch('/card_holds/HL4joUazeM3BJE6emmv2Q8EF') +card_hold = balanced.CardHold.fetch('/card_holds/HL4F8FdmMdyVxzE515FygGd') card_hold.cancel() % elif mode == 'response': -CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC4auQXiAWMBxJcEUIMYeZFj', u'debit': None}, amount=5000, created_at=u'2014-04-25T20:09:48.990540Z', updated_at=u'2014-04-25T20:09:49.731653Z', expires_at=u'2014-05-02T20:09:49.096484Z', failure_reason=None, currency=u'USD', transaction_number=u'HL161-849-8610', href=u'/card_holds/HL4joUazeM3BJE6emmv2Q8EF', meta={}, failure_reason_code=None, voided_at=u'2014-04-25T20:09:49.731656Z', id=u'HL4joUazeM3BJE6emmv2Q8EF') +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC7JlMyXyZ8W3RBfE1SSlnrD', u'debit': None}, amount=5000, created_at=u'2014-04-25T22:00:27.337321Z', updated_at=u'2014-04-25T22:00:28.055030Z', expires_at=u'2014-05-02T22:00:27.441254Z', failure_reason=None, currency=u'USD', transaction_number=u'HL750-788-2579', href=u'/card_holds/HL4F8FdmMdyVxzE515FygGd', meta={}, failure_reason_code=None, voided_at=u'2014-04-25T22:00:28.055033Z', id=u'HL4F8FdmMdyVxzE515FygGd') % endif \ No newline at end of file diff --git a/scenarios/card_list/executable.py b/scenarios/card_list/executable.py index 07ef45c..540f667 100644 --- a/scenarios/card_list/executable.py +++ b/scenarios/card_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') cards = balanced.Card.query \ No newline at end of file diff --git a/scenarios/card_list/python.mako b/scenarios/card_list/python.mako index 9834db2..4d5b411 100644 --- a/scenarios/card_list/python.mako +++ b/scenarios/card_list/python.mako @@ -4,7 +4,7 @@ balanced.Card.query % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') cards = balanced.Card.query % elif mode == 'response': diff --git a/scenarios/card_show/executable.py b/scenarios/card_show/executable.py index 10ca896..4a26076 100644 --- a/scenarios/card_show/executable.py +++ b/scenarios/card_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card = balanced.Card.fetch('/cards/CC4mYF7dj7X6OA2K5F0Qyb4N') \ No newline at end of file +card = balanced.Card.fetch('/cards/CC832pqCbRPor1ewRdxPvnv') \ No newline at end of file diff --git a/scenarios/card_show/python.mako b/scenarios/card_show/python.mako index 27ac4b6..3ee7c6e 100644 --- a/scenarios/card_show/python.mako +++ b/scenarios/card_show/python.mako @@ -3,9 +3,9 @@ balanced.Card.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card = balanced.Card.fetch('/cards/CC4mYF7dj7X6OA2K5F0Qyb4N') +card = balanced.Card.fetch('/cards/CC832pqCbRPor1ewRdxPvnv') % elif mode == 'response': -Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-25T20:09:52.175221Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-25T20:09:52.175224Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CC4mYF7dj7X6OA2K5F0Qyb4N', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CC4mYF7dj7X6OA2K5F0Qyb4N', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) +Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-25T22:00:30.351615Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-25T22:00:30.351617Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CC832pqCbRPor1ewRdxPvnv', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CC832pqCbRPor1ewRdxPvnv', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) % endif \ No newline at end of file diff --git a/scenarios/card_update/executable.py b/scenarios/card_update/executable.py index 936af1f..09f2446 100644 --- a/scenarios/card_update/executable.py +++ b/scenarios/card_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card = balanced.Card.fetch('/cards/CC4mYF7dj7X6OA2K5F0Qyb4N') +card = balanced.Card.fetch('/cards/CC832pqCbRPor1ewRdxPvnv') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/card_update/python.mako b/scenarios/card_update/python.mako index 1d40f0e..979d156 100644 --- a/scenarios/card_update/python.mako +++ b/scenarios/card_update/python.mako @@ -3,9 +3,9 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -card = balanced.Card.fetch('/cards/CC4mYF7dj7X6OA2K5F0Qyb4N') +card = balanced.Card.fetch('/cards/CC832pqCbRPor1ewRdxPvnv') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', @@ -13,5 +13,5 @@ card.meta = { } card.save() % elif mode == 'response': -Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-25T20:09:52.175221Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-25T20:09:55.802789Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CC4mYF7dj7X6OA2K5F0Qyb4N', meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CC4mYF7dj7X6OA2K5F0Qyb4N', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) +Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-25T22:00:30.351615Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-25T22:00:34.108853Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CC832pqCbRPor1ewRdxPvnv', meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CC832pqCbRPor1ewRdxPvnv', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) % endif \ No newline at end of file diff --git a/scenarios/credit_list/executable.py b/scenarios/credit_list/executable.py index b91fcaa..226dc4b 100644 --- a/scenarios/credit_list/executable.py +++ b/scenarios/credit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') credits = balanced.Credit.query \ No newline at end of file diff --git a/scenarios/credit_list/python.mako b/scenarios/credit_list/python.mako index ab1d9ae..98bebad 100644 --- a/scenarios/credit_list/python.mako +++ b/scenarios/credit_list/python.mako @@ -4,7 +4,7 @@ balanced.Credit.query % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') credits = balanced.Credit.query % elif mode == 'response': diff --git a/scenarios/credit_list_bank_account/executable.py b/scenarios/credit_list_bank_account/executable.py index c12ea2b..09cecb0 100644 --- a/scenarios/credit_list_bank_account/executable.py +++ b/scenarios/credit_list_bank_account/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl/credits') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7sojXcP7oSdQyrjUA7wXg9/credits') credits = bank_account.credits \ No newline at end of file diff --git a/scenarios/credit_list_bank_account/python.mako b/scenarios/credit_list_bank_account/python.mako index 4e633c9..83af7ec 100644 --- a/scenarios/credit_list_bank_account/python.mako +++ b/scenarios/credit_list_bank_account/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount().credits % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl/credits') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7sojXcP7oSdQyrjUA7wXg9/credits') credits = bank_account.credits % elif mode == 'response': diff --git a/scenarios/credit_order/definition.mako b/scenarios/credit_order/definition.mako new file mode 100644 index 0000000..6c894f2 --- /dev/null +++ b/scenarios/credit_order/definition.mako @@ -0,0 +1 @@ +balanced.Order().credit() \ No newline at end of file diff --git a/scenarios/credit_order/executable.py b/scenarios/credit_order/executable.py new file mode 100644 index 0000000..e69de29 diff --git a/scenarios/credit_order/python.mako b/scenarios/credit_order/python.mako new file mode 100644 index 0000000..f051953 --- /dev/null +++ b/scenarios/credit_order/python.mako @@ -0,0 +1,7 @@ +% if mode == 'definition': +balanced.Order().credit() +% elif mode == 'request': + +% elif mode == 'response': + +% endif \ No newline at end of file diff --git a/scenarios/credit_order/request.mako b/scenarios/credit_order/request.mako new file mode 100644 index 0000000..6993fbb --- /dev/null +++ b/scenarios/credit_order/request.mako @@ -0,0 +1,8 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +order = balanced.Order.fetch('${request['uri']}') +bank_account = balanced.BankAccount.fetch('${request['bank_account_href']}') +order.credit_to( +<% main.payload_expand(request['payload']) %> +) \ No newline at end of file diff --git a/scenarios/credit_show/executable.py b/scenarios/credit_show/executable.py index 6c316dd..4310983 100644 --- a/scenarios/credit_show/executable.py +++ b/scenarios/credit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -credit = balanced.Credit.fetch('/credits/CR4yt4sdkTWI1t3HVS16mNAV') \ No newline at end of file +credit = balanced.Credit.fetch('/credits/CRjCksasJ36xjkBXRYvlCh7') \ No newline at end of file diff --git a/scenarios/credit_show/python.mako b/scenarios/credit_show/python.mako index 97f4908..0de576c 100644 --- a/scenarios/credit_show/python.mako +++ b/scenarios/credit_show/python.mako @@ -4,9 +4,9 @@ balanced.Credit.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -credit = balanced.Credit.fetch('/credits/CR4yt4sdkTWI1t3HVS16mNAV') +credit = balanced.Credit.fetch('/credits/CRjCksasJ36xjkBXRYvlCh7') % elif mode == 'response': -Credit(status=u'succeeded', description=None, links={u'customer': u'CU3VYCUIfwngJsidJWdGw2W5', u'destination': u'BA3Y63fK5STwlhKNMkE3Utmd', u'order': None}, amount=5000, created_at=u'2014-04-25T20:10:02.398021Z', updated_at=u'2014-04-25T20:10:03.049785Z', failure_reason=None, currency=u'USD', transaction_number=u'CR883-913-0274', href=u'/credits/CR4yt4sdkTWI1t3HVS16mNAV', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR4yt4sdkTWI1t3HVS16mNAV') +Credit(status=u'succeeded', description=None, links={u'customer': u'CU7yCmXG2RxyyIkcHG3SIMUF', u'destination': u'BA7zu6QXmylsn0o6qVpS8UO9', u'order': None}, amount=5000, created_at=u'2014-04-25T22:00:40.640801Z', updated_at=u'2014-04-25T22:00:41.046644Z', failure_reason=None, currency=u'USD', transaction_number=u'CR574-547-8777', href=u'/credits/CRjCksasJ36xjkBXRYvlCh7', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CRjCksasJ36xjkBXRYvlCh7') % endif \ No newline at end of file diff --git a/scenarios/credit_update/executable.py b/scenarios/credit_update/executable.py index b6c6702..b4bb383 100644 --- a/scenarios/credit_update/executable.py +++ b/scenarios/credit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -credit = balanced.Credit.fetch('/credits/CR4yt4sdkTWI1t3HVS16mNAV') +credit = balanced.Credit.fetch('/credits/CRjCksasJ36xjkBXRYvlCh7') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/credit_update/python.mako b/scenarios/credit_update/python.mako index 1191c36..9944c6e 100644 --- a/scenarios/credit_update/python.mako +++ b/scenarios/credit_update/python.mako @@ -3,9 +3,9 @@ balanced.Credit().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -credit = balanced.Credit.fetch('/credits/CR4yt4sdkTWI1t3HVS16mNAV') +credit = balanced.Credit.fetch('/credits/CRjCksasJ36xjkBXRYvlCh7') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', @@ -13,5 +13,5 @@ credit.meta = { } credit.save() % elif mode == 'response': -Credit(status=u'succeeded', description=u'New description for credit', links={u'customer': u'CU3VYCUIfwngJsidJWdGw2W5', u'destination': u'BA3Y63fK5STwlhKNMkE3Utmd', u'order': None}, amount=5000, created_at=u'2014-04-25T20:10:02.398021Z', updated_at=u'2014-04-25T20:10:07.895933Z', failure_reason=None, currency=u'USD', transaction_number=u'CR883-913-0274', href=u'/credits/CR4yt4sdkTWI1t3HVS16mNAV', meta={u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR4yt4sdkTWI1t3HVS16mNAV') +Credit(status=u'succeeded', description=u'New description for credit', links={u'customer': u'CU7yCmXG2RxyyIkcHG3SIMUF', u'destination': u'BA7zu6QXmylsn0o6qVpS8UO9', u'order': None}, amount=5000, created_at=u'2014-04-25T22:00:40.640801Z', updated_at=u'2014-04-25T22:00:45.823737Z', failure_reason=None, currency=u'USD', transaction_number=u'CR574-547-8777', href=u'/credits/CRjCksasJ36xjkBXRYvlCh7', meta={u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CRjCksasJ36xjkBXRYvlCh7') % endif \ No newline at end of file diff --git a/scenarios/customer_create/executable.py b/scenarios/customer_create/executable.py index 90affc6..a8467b6 100644 --- a/scenarios/customer_create/executable.py +++ b/scenarios/customer_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') customer = balanced.Customer( dob_year=1963, diff --git a/scenarios/customer_create/python.mako b/scenarios/customer_create/python.mako index e1ffab3..6dcc2b7 100644 --- a/scenarios/customer_create/python.mako +++ b/scenarios/customer_create/python.mako @@ -3,7 +3,7 @@ balanced.Customer().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') customer = balanced.Customer( dob_year=1963, @@ -14,5 +14,5 @@ customer = balanced.Customer( } ).save() % elif mode == 'response': -Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-04-25T20:10:14.759932Z', dob_month=7, updated_at=u'2014-04-25T20:10:15.048688Z', phone=None, href=u'/customers/CU4MnFEab304anOtUtEu5hkN', meta={}, dob_year=1963, email=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU4MnFEab304anOtUtEu5hkN', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) +Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-04-25T22:00:53.236370Z', dob_month=7, updated_at=u'2014-04-25T22:00:53.428856Z', phone=None, href=u'/customers/CUxN95d3eKLokMS6CymVtIB', meta={}, dob_year=1963, email=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CUxN95d3eKLokMS6CymVtIB', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) % endif \ No newline at end of file diff --git a/scenarios/customer_delete/executable.py b/scenarios/customer_delete/executable.py index 1c57ef2..5257f8a 100644 --- a/scenarios/customer_delete/executable.py +++ b/scenarios/customer_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -customer = balanced.Customer.fetch('/customers/CU4MnFEab304anOtUtEu5hkN') +customer = balanced.Customer.fetch('/customers/CUxN95d3eKLokMS6CymVtIB') customer.unstore() \ No newline at end of file diff --git a/scenarios/customer_delete/python.mako b/scenarios/customer_delete/python.mako index 4e3ed52..638cd1b 100644 --- a/scenarios/customer_delete/python.mako +++ b/scenarios/customer_delete/python.mako @@ -3,9 +3,9 @@ balanced.Customer().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -customer = balanced.Customer.fetch('/customers/CU4MnFEab304anOtUtEu5hkN') +customer = balanced.Customer.fetch('/customers/CUxN95d3eKLokMS6CymVtIB') customer.unstore() % elif mode == 'response': diff --git a/scenarios/customer_list/executable.py b/scenarios/customer_list/executable.py index 3af8496..8255de1 100644 --- a/scenarios/customer_list/executable.py +++ b/scenarios/customer_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') customers = balanced.Customer.query \ No newline at end of file diff --git a/scenarios/customer_list/python.mako b/scenarios/customer_list/python.mako index 8372042..618260a 100644 --- a/scenarios/customer_list/python.mako +++ b/scenarios/customer_list/python.mako @@ -4,7 +4,7 @@ balanced.Customer.query % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') customers = balanced.Customer.query % elif mode == 'response': diff --git a/scenarios/customer_show/executable.py b/scenarios/customer_show/executable.py index b5dfd30..3750f8a 100644 --- a/scenarios/customer_show/executable.py +++ b/scenarios/customer_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -customer = balanced.Customer.fetch('/customers/CU4GAx8tZTDNIgAmwfV35e53') \ No newline at end of file +customer = balanced.Customer.fetch('/customers/CUrtoxuYO4XmXZi6NzXKBLL') \ No newline at end of file diff --git a/scenarios/customer_show/python.mako b/scenarios/customer_show/python.mako index f40cb0f..b2cac44 100644 --- a/scenarios/customer_show/python.mako +++ b/scenarios/customer_show/python.mako @@ -4,9 +4,9 @@ balanced.Customer.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -customer = balanced.Customer.fetch('/customers/CU4GAx8tZTDNIgAmwfV35e53') +customer = balanced.Customer.fetch('/customers/CUrtoxuYO4XmXZi6NzXKBLL') % elif mode == 'response': -Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-04-25T20:10:09.606769Z', dob_month=7, updated_at=u'2014-04-25T20:10:09.810570Z', phone=None, href=u'/customers/CU4GAx8tZTDNIgAmwfV35e53', meta={}, dob_year=1963, email=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU4GAx8tZTDNIgAmwfV35e53', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) +Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-04-25T22:00:47.619359Z', dob_month=7, updated_at=u'2014-04-25T22:00:47.810824Z', phone=None, href=u'/customers/CUrtoxuYO4XmXZi6NzXKBLL', meta={}, dob_year=1963, email=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CUrtoxuYO4XmXZi6NzXKBLL', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) % endif \ No newline at end of file diff --git a/scenarios/customer_update/executable.py b/scenarios/customer_update/executable.py index 9dda4d4..399302c 100644 --- a/scenarios/customer_update/executable.py +++ b/scenarios/customer_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -customer = balanced.Debit.fetch('/customers/CU4GAx8tZTDNIgAmwfV35e53') +customer = balanced.Debit.fetch('/customers/CUrtoxuYO4XmXZi6NzXKBLL') customer.email = 'email@newdomain.com' customer.meta = { 'shipping-preference': 'ground' diff --git a/scenarios/customer_update/python.mako b/scenarios/customer_update/python.mako index 8116c90..116ce8a 100644 --- a/scenarios/customer_update/python.mako +++ b/scenarios/customer_update/python.mako @@ -3,14 +3,14 @@ balanced.Customer().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -customer = balanced.Debit.fetch('/customers/CU4GAx8tZTDNIgAmwfV35e53') +customer = balanced.Debit.fetch('/customers/CUrtoxuYO4XmXZi6NzXKBLL') customer.email = 'email@newdomain.com' customer.meta = { 'shipping-preference': 'ground' } customer.save() % elif mode == 'response': -Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-04-25T20:10:09.606769Z', dob_month=7, updated_at=u'2014-04-25T20:10:13.306289Z', phone=None, href=u'/customers/CU4GAx8tZTDNIgAmwfV35e53', meta={u'shipping-preference': u'ground'}, dob_year=1963, email=u'email@newdomain.com', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU4GAx8tZTDNIgAmwfV35e53', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) +Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-04-25T22:00:47.619359Z', dob_month=7, updated_at=u'2014-04-25T22:00:51.859983Z', phone=None, href=u'/customers/CUrtoxuYO4XmXZi6NzXKBLL', meta={u'shipping-preference': u'ground'}, dob_year=1963, email=u'email@newdomain.com', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CUrtoxuYO4XmXZi6NzXKBLL', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) % endif \ No newline at end of file diff --git a/scenarios/debit_dispute_show/executable.py b/scenarios/debit_dispute_show/executable.py index c9b2c9a..7dd0738 100644 --- a/scenarios/debit_dispute_show/executable.py +++ b/scenarios/debit_dispute_show/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -debit = balanced.Debit.fetch('/debits/WD4YCKAyFrQBFYuFCUCRynOx') +debit = balanced.Debit.fetch('/debits/WDJ66VlXnDyDx5AS5uplxyt') dispute = debit.dispute \ No newline at end of file diff --git a/scenarios/debit_dispute_show/python.mako b/scenarios/debit_dispute_show/python.mako index fee66d8..fd6c8fd 100644 --- a/scenarios/debit_dispute_show/python.mako +++ b/scenarios/debit_dispute_show/python.mako @@ -4,10 +4,10 @@ balanced.Debit().dispute % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -debit = balanced.Debit.fetch('/debits/WD4YCKAyFrQBFYuFCUCRynOx') +debit = balanced.Debit.fetch('/debits/WDJ66VlXnDyDx5AS5uplxyt') dispute = debit.dispute % elif mode == 'response': -Dispute(status=u'pending', links={u'transaction': u'WD4YCKAyFrQBFYuFCUCRynOx'}, respond_by=u'2014-05-25T20:10:26.554061Z', amount=5000, created_at=u'2014-04-25T20:18:33.022136Z', updated_at=u'2014-04-25T20:18:33.022139Z', initiated_at=u'2014-04-25T20:10:26.554057Z', currency=u'USD', reason=u'fraud', href=u'/disputes/DT61IA2iRqyYBLqUCJNt5XNV', meta={}, id=u'DT61IA2iRqyYBLqUCJNt5XNV') +Dispute(status=u'pending', links={u'transaction': u'WDJ66VlXnDyDx5AS5uplxyt'}, respond_by=u'2014-05-25T22:01:03.776578Z', amount=5000, created_at=u'2014-04-25T22:08:34.942433Z', updated_at=u'2014-04-25T22:08:34.942442Z', initiated_at=u'2014-04-25T22:01:03.776574Z', currency=u'USD', reason=u'fraud', href=u'/disputes/DT180PABUUjnj5wdE2pcwXQD', meta={}, id=u'DT180PABUUjnj5wdE2pcwXQD') % endif \ No newline at end of file diff --git a/scenarios/debit_list/executable.py b/scenarios/debit_list/executable.py index d32f1d2..b6a5db1 100644 --- a/scenarios/debit_list/executable.py +++ b/scenarios/debit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') debits = balanced.Debit.query \ No newline at end of file diff --git a/scenarios/debit_list/python.mako b/scenarios/debit_list/python.mako index f40eede..397aaba 100644 --- a/scenarios/debit_list/python.mako +++ b/scenarios/debit_list/python.mako @@ -4,7 +4,7 @@ balanced.Debit.query % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') debits = balanced.Debit.query % elif mode == 'response': diff --git a/scenarios/debit_order/definition.mako b/scenarios/debit_order/definition.mako new file mode 100644 index 0000000..bfe62de --- /dev/null +++ b/scenarios/debit_order/definition.mako @@ -0,0 +1 @@ +balanced.Order().debit() diff --git a/scenarios/debit_order/executable.py b/scenarios/debit_order/executable.py new file mode 100644 index 0000000..e69de29 diff --git a/scenarios/debit_order/python.mako b/scenarios/debit_order/python.mako new file mode 100644 index 0000000..24c1462 --- /dev/null +++ b/scenarios/debit_order/python.mako @@ -0,0 +1,8 @@ +% if mode == 'definition': +balanced.Order().debit() + +% elif mode == 'request': + +% elif mode == 'response': + +% endif \ No newline at end of file diff --git a/scenarios/debit_order/request.mako b/scenarios/debit_order/request.mako new file mode 100644 index 0000000..c78f7f1 --- /dev/null +++ b/scenarios/debit_order/request.mako @@ -0,0 +1,13 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +debit = balanced.Debit.fetch('${request['uri']}') + +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +order = balanced.Order.fetch('${request['uri']}') +card = balanced.Card.fetch('${request['card_href']}') +order..debit_from( +<% main.payload_expand(request['payload']) %> +) diff --git a/scenarios/debit_show/executable.py b/scenarios/debit_show/executable.py index 07dc061..98f90cb 100644 --- a/scenarios/debit_show/executable.py +++ b/scenarios/debit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -debit = balanced.Debit.fetch('/debits/WD4vEUJj36IpPHTnLKMYzHgh') \ No newline at end of file +debit = balanced.Debit.fetch('/debits/WDh5j4t3Rkh7oeONR9Izy61') \ No newline at end of file diff --git a/scenarios/debit_show/python.mako b/scenarios/debit_show/python.mako index 32d0bbe..51598a8 100644 --- a/scenarios/debit_show/python.mako +++ b/scenarios/debit_show/python.mako @@ -4,9 +4,9 @@ balanced.Debit.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -debit = balanced.Debit.fetch('/debits/WD4vEUJj36IpPHTnLKMYzHgh') +debit = balanced.Debit.fetch('/debits/WDh5j4t3Rkh7oeONR9Izy61') % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CU3VYCUIfwngJsidJWdGw2W5', u'source': u'CC4tvKLTKXcBJAgkGvPEW58N', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T20:09:59.895549Z', updated_at=u'2014-04-25T20:10:00.865462Z', failure_reason=None, currency=u'USD', transaction_number=u'W296-328-8320', href=u'/debits/WD4vEUJj36IpPHTnLKMYzHgh', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD4vEUJj36IpPHTnLKMYzHgh') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CU7yCmXG2RxyyIkcHG3SIMUF', u'source': u'CCf1fF6z2RjwvniinUVefhb', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T22:00:38.385908Z', updated_at=u'2014-04-25T22:00:39.092387Z', failure_reason=None, currency=u'USD', transaction_number=u'W249-399-4192', href=u'/debits/WDh5j4t3Rkh7oeONR9Izy61', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WDh5j4t3Rkh7oeONR9Izy61') % endif \ No newline at end of file diff --git a/scenarios/debit_update/executable.py b/scenarios/debit_update/executable.py index e87dd64..b0a41aa 100644 --- a/scenarios/debit_update/executable.py +++ b/scenarios/debit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -debit = balanced.Debit.fetch('/debits/WD4vEUJj36IpPHTnLKMYzHgh') +debit = balanced.Debit.fetch('/debits/WDh5j4t3Rkh7oeONR9Izy61') debit.description = 'New description for debit' debit.meta = { 'facebook.id': '1234567890', diff --git a/scenarios/debit_update/python.mako b/scenarios/debit_update/python.mako index df91adf..8687b1a 100644 --- a/scenarios/debit_update/python.mako +++ b/scenarios/debit_update/python.mako @@ -3,9 +3,9 @@ balanced.Debit().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -debit = balanced.Debit.fetch('/debits/WD4vEUJj36IpPHTnLKMYzHgh') +debit = balanced.Debit.fetch('/debits/WDh5j4t3Rkh7oeONR9Izy61') debit.description = 'New description for debit' debit.meta = { 'facebook.id': '1234567890', @@ -13,5 +13,5 @@ debit.meta = { } debit.save() % elif mode == 'response': -Debit(status=u'succeeded', description=u'New description for debit', links={u'customer': u'CU3VYCUIfwngJsidJWdGw2W5', u'source': u'CC4tvKLTKXcBJAgkGvPEW58N', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T20:09:59.895549Z', updated_at=u'2014-04-25T20:10:19.169392Z', failure_reason=None, currency=u'USD', transaction_number=u'W296-328-8320', href=u'/debits/WD4vEUJj36IpPHTnLKMYzHgh', meta={u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD4vEUJj36IpPHTnLKMYzHgh') +Debit(status=u'succeeded', description=u'New description for debit', links={u'customer': u'CU7yCmXG2RxyyIkcHG3SIMUF', u'source': u'CCf1fF6z2RjwvniinUVefhb', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T22:00:38.385908Z', updated_at=u'2014-04-25T22:00:57.649072Z', failure_reason=None, currency=u'USD', transaction_number=u'W249-399-4192', href=u'/debits/WDh5j4t3Rkh7oeONR9Izy61', meta={u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WDh5j4t3Rkh7oeONR9Izy61') % endif \ No newline at end of file diff --git a/scenarios/dispute_list/executable.py b/scenarios/dispute_list/executable.py index 2854f7e..707bdc1 100644 --- a/scenarios/dispute_list/executable.py +++ b/scenarios/dispute_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') disputes = balanced.Dispute.query \ No newline at end of file diff --git a/scenarios/dispute_list/python.mako b/scenarios/dispute_list/python.mako index 1e02d02..8d1aa97 100644 --- a/scenarios/dispute_list/python.mako +++ b/scenarios/dispute_list/python.mako @@ -3,7 +3,7 @@ balanced.Dispute.query % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') disputes = balanced.Dispute.query % elif mode == 'response': diff --git a/scenarios/dispute_show/executable.py b/scenarios/dispute_show/executable.py index 9cdf94f..461515b 100644 --- a/scenarios/dispute_show/executable.py +++ b/scenarios/dispute_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -dispute = balanced.Dispute.fetch('/disputes/DT61IA2iRqyYBLqUCJNt5XNV') \ No newline at end of file +dispute = balanced.Dispute.fetch('/disputes/DT180PABUUjnj5wdE2pcwXQD') \ No newline at end of file diff --git a/scenarios/dispute_show/python.mako b/scenarios/dispute_show/python.mako index 5a174f5..6f24503 100644 --- a/scenarios/dispute_show/python.mako +++ b/scenarios/dispute_show/python.mako @@ -4,9 +4,9 @@ balanced.Dispute.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -dispute = balanced.Dispute.fetch('/disputes/DT61IA2iRqyYBLqUCJNt5XNV') +dispute = balanced.Dispute.fetch('/disputes/DT180PABUUjnj5wdE2pcwXQD') % elif mode == 'response': -Dispute(status=u'pending', links={u'transaction': u'WD4YCKAyFrQBFYuFCUCRynOx'}, respond_by=u'2014-05-25T20:10:26.554061Z', amount=5000, created_at=u'2014-04-25T20:18:33.022136Z', updated_at=u'2014-04-25T20:18:33.022139Z', initiated_at=u'2014-04-25T20:10:26.554057Z', currency=u'USD', reason=u'fraud', href=u'/disputes/DT61IA2iRqyYBLqUCJNt5XNV', meta={}, id=u'DT61IA2iRqyYBLqUCJNt5XNV') +Dispute(status=u'pending', links={u'transaction': u'WDJ66VlXnDyDx5AS5uplxyt'}, respond_by=u'2014-05-25T22:01:03.776578Z', amount=5000, created_at=u'2014-04-25T22:08:34.942433Z', updated_at=u'2014-04-25T22:08:34.942442Z', initiated_at=u'2014-04-25T22:01:03.776574Z', currency=u'USD', reason=u'fraud', href=u'/disputes/DT180PABUUjnj5wdE2pcwXQD', meta={}, id=u'DT180PABUUjnj5wdE2pcwXQD') % endif \ No newline at end of file diff --git a/scenarios/event_list/executable.py b/scenarios/event_list/executable.py index 5375a86..e65b50b 100644 --- a/scenarios/event_list/executable.py +++ b/scenarios/event_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') events = balanced.Event.query \ No newline at end of file diff --git a/scenarios/event_list/python.mako b/scenarios/event_list/python.mako index 55633d6..58d6b8f 100644 --- a/scenarios/event_list/python.mako +++ b/scenarios/event_list/python.mako @@ -4,7 +4,7 @@ balanced.Event.query % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') events = balanced.Event.query % elif mode == 'response': diff --git a/scenarios/event_show/executable.py b/scenarios/event_show/executable.py index 3ed6fb6..08250f4 100644 --- a/scenarios/event_show/executable.py +++ b/scenarios/event_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -event = balanced.Event.fetch('/events/EV754ca810ccb511e3b6ef061e5f402045') \ No newline at end of file +event = balanced.Event.fetch('/events/EVec6e7ac2ccc411e389ba061e5f402045') \ No newline at end of file diff --git a/scenarios/event_show/python.mako b/scenarios/event_show/python.mako index 3f50916..15de35a 100644 --- a/scenarios/event_show/python.mako +++ b/scenarios/event_show/python.mako @@ -4,9 +4,9 @@ balanced.Event.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -event = balanced.Event.fetch('/events/EV754ca810ccb511e3b6ef061e5f402045') +event = balanced.Event.fetch('/events/EVec6e7ac2ccc411e389ba061e5f402045') % elif mode == 'response': -Event(links={}, occurred_at=u'2014-04-25T20:09:08.031000Z', entity={u'bank_accounts': [{u'routing_number': u'121042882', u'bank_name': u'WELLS FARGO BANK NA', u'account_type': u'CHECKING', u'name': u'TEST-MERCHANT-BANK-ACCOUNT', u'links': {u'customer': u'CU3z3rwGWGazDwwyLy0rNqfj', u'bank_account_verification': None}, u'can_credit': True, u'created_at': u'2014-04-25T20:09:08.031387Z', u'fingerprint': u'6ybvaLUrJy07phK2EQ7pVk', u'updated_at': u'2014-04-25T20:09:08.031391Z', u'href': u'/bank_accounts/BA3z8ko53HDEFwxjmNlc998p', u'meta': {}, u'account_number': u'xxxxxxxxxxx5555', u'address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, u'can_debit': True, u'id': u'BA3z8ko53HDEFwxjmNlc998p'}], u'links': {u'bank_accounts.debits': u'/bank_accounts/{bank_accounts.id}/debits', u'bank_accounts.credits': u'/bank_accounts/{bank_accounts.id}/credits', u'bank_accounts.bank_account_verifications': u'/bank_accounts/{bank_accounts.id}/verifications', u'bank_accounts.customer': u'/customers/{bank_accounts.customer}', u'bank_accounts.bank_account_verification': u'/verifications/{bank_accounts.bank_account_verification}'}}, href=u'/events/EV754ca810ccb511e3b6ef061e5f402045', callback_statuses={u'failed': 0, u'retrying': 0, u'succeeded': 0, u'pending': 0}, type=u'bank_account.created', id=u'EV754ca810ccb511e3b6ef061e5f402045') +Event(links={}, occurred_at=u'2014-04-25T21:59:50.431000Z', entity={u'customers': [{u'name': u'William Henry Cavendish III', u'links': {u'source': None, u'destination': None}, u'updated_at': u'2014-04-25T21:59:50.431269Z', u'created_at': u'2014-04-25T21:59:50.354745Z', u'dob_month': 2, u'merchant_status': u'underwritten', u'id': u'CU7c8cBtxfllT4M6zDyjbJA1', u'phone': u'+16505551212', u'href': u'/customers/CU7c8cBtxfllT4M6zDyjbJA1', u'meta': {}, u'dob_year': 1947, u'address': {u'city': u'Nowhere', u'line2': None, u'line1': None, u'state': None, u'postal_code': u'90210', u'country_code': u'USA'}, u'business_name': None, u'ssn_last4': u'xxxx', u'email': u'whc@example.org', u'ein': None}], u'links': {u'customers.source': u'/resources/{customers.source}', u'customers.card_holds': u'/customers/{customers.id}/card_holds', u'customers.cards': u'/customers/{customers.id}/cards', u'customers.debits': u'/customers/{customers.id}/debits', u'customers.destination': u'/resources/{customers.destination}', u'customers.external_accounts': u'/customers/{customers.id}/external_accounts', u'customers.bank_accounts': u'/customers/{customers.id}/bank_accounts', u'customers.transactions': u'/customers/{customers.id}/transactions', u'customers.refunds': u'/customers/{customers.id}/refunds', u'customers.reversals': u'/customers/{customers.id}/reversals', u'customers.orders': u'/customers/{customers.id}/orders', u'customers.credits': u'/customers/{customers.id}/credits'}}, href=u'/events/EVec6e7ac2ccc411e389ba061e5f402045', callback_statuses={u'failed': 0, u'retrying': 0, u'succeeded': 0, u'pending': 0}, type=u'account.created', id=u'EVec6e7ac2ccc411e389ba061e5f402045') % endif \ No newline at end of file diff --git a/scenarios/order_create/executable.py b/scenarios/order_create/executable.py index 493b5e9..b475147 100644 --- a/scenarios/order_create/executable.py +++ b/scenarios/order_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -merchant_customer = balanced.Customer.fetch('/customers/CU4MnFEab304anOtUtEu5hkN') +merchant_customer = balanced.Customer.fetch('/customers/CUxN95d3eKLokMS6CymVtIB') merchant_customer.create_order( description='Order #12341234' ).save() \ No newline at end of file diff --git a/scenarios/order_create/python.mako b/scenarios/order_create/python.mako index 9cfcb36..81b0e10 100644 --- a/scenarios/order_create/python.mako +++ b/scenarios/order_create/python.mako @@ -3,12 +3,12 @@ balanced.Order() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -merchant_customer = balanced.Customer.fetch('/customers/CU4MnFEab304anOtUtEu5hkN') +merchant_customer = balanced.Customer.fetch('/customers/CUxN95d3eKLokMS6CymVtIB') merchant_customer.create_order( description='Order #12341234' ).save() % elif mode == 'response': -Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'Order #12341234', links={u'merchant': u'CU4MnFEab304anOtUtEu5hkN'}, created_at=u'2014-04-25T20:18:43.120760Z', updated_at=u'2014-04-25T20:18:43.120762Z', currency=u'USD', amount=0, href=u'/orders/OR6d55qbtKx5aWSURkQeodRr', meta={}, id=u'OR6d55qbtKx5aWSURkQeodRr', amount_escrowed=0) +Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'Order #12341234', links={u'merchant': u'CUxN95d3eKLokMS6CymVtIB'}, created_at=u'2014-04-25T22:08:49.530650Z', updated_at=u'2014-04-25T22:08:49.530653Z', currency=u'USD', amount=0, href=u'/orders/OR1oqq5PzdHGkB0GBJJiagNT', meta={}, id=u'OR1oqq5PzdHGkB0GBJJiagNT', amount_escrowed=0) % endif \ No newline at end of file diff --git a/scenarios/order_list/executable.py b/scenarios/order_list/executable.py index a9fbee1..9788e0f 100644 --- a/scenarios/order_list/executable.py +++ b/scenarios/order_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') orders = balanced.Order.query \ No newline at end of file diff --git a/scenarios/order_list/python.mako b/scenarios/order_list/python.mako index 9552079..843c8c7 100644 --- a/scenarios/order_list/python.mako +++ b/scenarios/order_list/python.mako @@ -4,7 +4,7 @@ balanced.Order.query % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') orders = balanced.Order.query % elif mode == 'response': diff --git a/scenarios/order_show/executable.py b/scenarios/order_show/executable.py index 80a2c67..e6e4c25 100644 --- a/scenarios/order_show/executable.py +++ b/scenarios/order_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -order = balanced.Order.fetch('/orders/OR6d55qbtKx5aWSURkQeodRr') \ No newline at end of file +order = balanced.Order.fetch('/orders/OR1oqq5PzdHGkB0GBJJiagNT') \ No newline at end of file diff --git a/scenarios/order_show/python.mako b/scenarios/order_show/python.mako index e83b830..5d0b52f 100644 --- a/scenarios/order_show/python.mako +++ b/scenarios/order_show/python.mako @@ -4,9 +4,9 @@ balanced.Order.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -order = balanced.Order.fetch('/orders/OR6d55qbtKx5aWSURkQeodRr') +order = balanced.Order.fetch('/orders/OR1oqq5PzdHGkB0GBJJiagNT') % elif mode == 'response': -Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'Order #12341234', links={u'merchant': u'CU4MnFEab304anOtUtEu5hkN'}, created_at=u'2014-04-25T20:18:43.120760Z', updated_at=u'2014-04-25T20:18:43.120762Z', currency=u'USD', amount=0, href=u'/orders/OR6d55qbtKx5aWSURkQeodRr', meta={}, id=u'OR6d55qbtKx5aWSURkQeodRr', amount_escrowed=0) +Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'Order #12341234', links={u'merchant': u'CUxN95d3eKLokMS6CymVtIB'}, created_at=u'2014-04-25T22:08:49.530650Z', updated_at=u'2014-04-25T22:08:49.530653Z', currency=u'USD', amount=0, href=u'/orders/OR1oqq5PzdHGkB0GBJJiagNT', meta={}, id=u'OR1oqq5PzdHGkB0GBJJiagNT', amount_escrowed=0) % endif \ No newline at end of file diff --git a/scenarios/order_update/executable.py b/scenarios/order_update/executable.py index 8ef0e68..a16c78e 100644 --- a/scenarios/order_update/executable.py +++ b/scenarios/order_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -order = balanced.Order.fetch('/orders/OR6d55qbtKx5aWSURkQeodRr') +order = balanced.Order.fetch('/orders/OR1oqq5PzdHGkB0GBJJiagNT') order.description = 'New description for order' order.meta = { 'anykey': 'valuegoeshere', diff --git a/scenarios/order_update/python.mako b/scenarios/order_update/python.mako index 88e102e..60c042f 100644 --- a/scenarios/order_update/python.mako +++ b/scenarios/order_update/python.mako @@ -3,9 +3,9 @@ balanced.Order().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -order = balanced.Order.fetch('/orders/OR6d55qbtKx5aWSURkQeodRr') +order = balanced.Order.fetch('/orders/OR1oqq5PzdHGkB0GBJJiagNT') order.description = 'New description for order' order.meta = { 'anykey': 'valuegoeshere', @@ -13,5 +13,5 @@ order.meta = { } order.save() % elif mode == 'response': -Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'New description for order', links={u'merchant': u'CU4MnFEab304anOtUtEu5hkN'}, created_at=u'2014-04-25T20:18:43.120760Z', updated_at=u'2014-04-25T20:18:46.797463Z', currency=u'USD', amount=0, href=u'/orders/OR6d55qbtKx5aWSURkQeodRr', meta={u'product.id': u'1234567890', u'anykey': u'valuegoeshere'}, id=u'OR6d55qbtKx5aWSURkQeodRr', amount_escrowed=0) +Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'New description for order', links={u'merchant': u'CUxN95d3eKLokMS6CymVtIB'}, created_at=u'2014-04-25T22:08:49.530650Z', updated_at=u'2014-04-25T22:08:53.050504Z', currency=u'USD', amount=0, href=u'/orders/OR1oqq5PzdHGkB0GBJJiagNT', meta={u'product.id': u'1234567890', u'anykey': u'valuegoeshere'}, id=u'OR1oqq5PzdHGkB0GBJJiagNT', amount_escrowed=0) % endif \ No newline at end of file diff --git a/scenarios/refund_create/executable.py b/scenarios/refund_create/executable.py index a07f068..a62333a 100644 --- a/scenarios/refund_create/executable.py +++ b/scenarios/refund_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -debit = balanced.Debit.fetch('/debits/WD4SOTNKiZbBFrmMk6mfszIl') +debit = balanced.Debit.fetch('/debits/WDEg9ofx83CeAhiwI1QmA17') refund = debit.refund( amount=3000, description="Refund for Order #1111", diff --git a/scenarios/refund_create/python.mako b/scenarios/refund_create/python.mako index 3be636c..e78bb01 100644 --- a/scenarios/refund_create/python.mako +++ b/scenarios/refund_create/python.mako @@ -3,9 +3,9 @@ balanced.Debit().refund() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -debit = balanced.Debit.fetch('/debits/WD4SOTNKiZbBFrmMk6mfszIl') +debit = balanced.Debit.fetch('/debits/WDEg9ofx83CeAhiwI1QmA17') refund = debit.refund( amount=3000, description="Refund for Order #1111", @@ -16,5 +16,5 @@ refund = debit.refund( } ) % elif mode == 'response': -Refund(status=u'succeeded', description=u'Refund for Order #1111', links={u'dispute': None, u'order': None, u'debit': u'WD4SOTNKiZbBFrmMk6mfszIl'}, amount=3000, created_at=u'2014-04-25T20:10:22.593252Z', updated_at=u'2014-04-25T20:10:23.032505Z', currency=u'USD', transaction_number=u'RF854-846-2859', href=u'/refunds/RF4VbbS5LdgSxlECITkHg0Zf', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, id=u'RF4VbbS5LdgSxlECITkHg0Zf') +Refund(status=u'succeeded', description=u'Refund for Order #1111', links={u'dispute': None, u'order': None, u'debit': u'WDEg9ofx83CeAhiwI1QmA17'}, amount=3000, created_at=u'2014-04-25T22:01:00.249873Z', updated_at=u'2014-04-25T22:01:00.697054Z', currency=u'USD', transaction_number=u'RF718-148-9846', href=u'/refunds/RFFFulVVpBiNWpJ2VLMto1L', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, id=u'RFFFulVVpBiNWpJ2VLMto1L') % endif \ No newline at end of file diff --git a/scenarios/refund_list/executable.py b/scenarios/refund_list/executable.py index d7a0e43..d397cbe 100644 --- a/scenarios/refund_list/executable.py +++ b/scenarios/refund_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') refunds = balanced.Refund.query \ No newline at end of file diff --git a/scenarios/refund_list/python.mako b/scenarios/refund_list/python.mako index cbf8e3d..2bd9c5c 100644 --- a/scenarios/refund_list/python.mako +++ b/scenarios/refund_list/python.mako @@ -4,7 +4,7 @@ balanced.Refund.query % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') refunds = balanced.Refund.query % elif mode == 'response': diff --git a/scenarios/refund_show/executable.py b/scenarios/refund_show/executable.py index 05df0e7..97f1972 100644 --- a/scenarios/refund_show/executable.py +++ b/scenarios/refund_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -refund = balanced.Refund.fetch('/refunds/RF4VbbS5LdgSxlECITkHg0Zf') \ No newline at end of file +refund = balanced.Refund.fetch('/refunds/RFFFulVVpBiNWpJ2VLMto1L') \ No newline at end of file diff --git a/scenarios/refund_show/python.mako b/scenarios/refund_show/python.mako index 51b27f3..36a1553 100644 --- a/scenarios/refund_show/python.mako +++ b/scenarios/refund_show/python.mako @@ -4,9 +4,9 @@ balanced.Refund.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -refund = balanced.Refund.fetch('/refunds/RF4VbbS5LdgSxlECITkHg0Zf') +refund = balanced.Refund.fetch('/refunds/RFFFulVVpBiNWpJ2VLMto1L') % elif mode == 'response': -Refund(status=u'succeeded', description=u'Refund for Order #1111', links={u'dispute': None, u'order': None, u'debit': u'WD4SOTNKiZbBFrmMk6mfszIl'}, amount=3000, created_at=u'2014-04-25T20:10:22.593252Z', updated_at=u'2014-04-25T20:10:23.032505Z', currency=u'USD', transaction_number=u'RF854-846-2859', href=u'/refunds/RF4VbbS5LdgSxlECITkHg0Zf', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, id=u'RF4VbbS5LdgSxlECITkHg0Zf') +Refund(status=u'succeeded', description=u'Refund for Order #1111', links={u'dispute': None, u'order': None, u'debit': u'WDEg9ofx83CeAhiwI1QmA17'}, amount=3000, created_at=u'2014-04-25T22:01:00.249873Z', updated_at=u'2014-04-25T22:01:00.697054Z', currency=u'USD', transaction_number=u'RF718-148-9846', href=u'/refunds/RFFFulVVpBiNWpJ2VLMto1L', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, id=u'RFFFulVVpBiNWpJ2VLMto1L') % endif \ No newline at end of file diff --git a/scenarios/refund_update/executable.py b/scenarios/refund_update/executable.py index 15472a1..5073a34 100644 --- a/scenarios/refund_update/executable.py +++ b/scenarios/refund_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -refund = balanced.Refund.fetch('/refunds/RF4VbbS5LdgSxlECITkHg0Zf') +refund = balanced.Refund.fetch('/refunds/RFFFulVVpBiNWpJ2VLMto1L') refund.description = 'update this description' refund.meta = { 'user.refund.count': '3', diff --git a/scenarios/refund_update/python.mako b/scenarios/refund_update/python.mako index ea9d5fd..2bea980 100644 --- a/scenarios/refund_update/python.mako +++ b/scenarios/refund_update/python.mako @@ -3,9 +3,9 @@ balanced.Refund().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -refund = balanced.Refund.fetch('/refunds/RF4VbbS5LdgSxlECITkHg0Zf') +refund = balanced.Refund.fetch('/refunds/RFFFulVVpBiNWpJ2VLMto1L') refund.description = 'update this description' refund.meta = { 'user.refund.count': '3', @@ -14,5 +14,5 @@ refund.meta = { } refund.save() % elif mode == 'response': -Refund(status=u'succeeded', description=u'update this description', links={u'dispute': None, u'order': None, u'debit': u'WD4SOTNKiZbBFrmMk6mfszIl'}, amount=3000, created_at=u'2014-04-25T20:10:22.593252Z', updated_at=u'2014-04-25T20:18:50.969971Z', currency=u'USD', transaction_number=u'RF854-846-2859', href=u'/refunds/RF4VbbS5LdgSxlECITkHg0Zf', meta={u'user.refund.count': u'3', u'refund.reason': u'user not happy with product', u'user.notes': u'very polite on the phone'}, id=u'RF4VbbS5LdgSxlECITkHg0Zf') +Refund(status=u'succeeded', description=u'update this description', links={u'dispute': None, u'order': None, u'debit': u'WDEg9ofx83CeAhiwI1QmA17'}, amount=3000, created_at=u'2014-04-25T22:01:00.249873Z', updated_at=u'2014-04-25T22:08:56.890917Z', currency=u'USD', transaction_number=u'RF718-148-9846', href=u'/refunds/RFFFulVVpBiNWpJ2VLMto1L', meta={u'user.refund.count': u'3', u'refund.reason': u'user not happy with product', u'user.notes': u'very polite on the phone'}, id=u'RFFFulVVpBiNWpJ2VLMto1L') % endif \ No newline at end of file diff --git a/scenarios/reversal_create/executable.py b/scenarios/reversal_create/executable.py index 58b448c..55dbefc 100644 --- a/scenarios/reversal_create/executable.py +++ b/scenarios/reversal_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -credit = balanced.Credit.fetch('/credits/CR6nBcaGvGc4dtflEB1bjKBP') +credit = balanced.Credit.fetch('/credits/CR1ynmPUlJGbV9EMyqkowHJP') reversal = credit.reverse( amount=3000, description="Reversal for Order #1111", diff --git a/scenarios/reversal_create/python.mako b/scenarios/reversal_create/python.mako index 8568b67..7bb4e45 100644 --- a/scenarios/reversal_create/python.mako +++ b/scenarios/reversal_create/python.mako @@ -3,9 +3,9 @@ balanced.Credit().reverse() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -credit = balanced.Credit.fetch('/credits/CR6nBcaGvGc4dtflEB1bjKBP') +credit = balanced.Credit.fetch('/credits/CR1ynmPUlJGbV9EMyqkowHJP') reversal = credit.reverse( amount=3000, description="Reversal for Order #1111", @@ -16,5 +16,5 @@ reversal = credit.reverse( } ) % elif mode == 'response': -Reversal(status=u'succeeded', description=u'Reversal for Order #1111', links={u'credit': u'CR6nBcaGvGc4dtflEB1bjKBP', u'order': None}, amount=3000, created_at=u'2014-04-25T20:18:55.008280Z', updated_at=u'2014-04-25T20:18:57.393905Z', failure_reason=None, currency=u'USD', transaction_number=u'RV296-883-6069', href=u'/reversals/RV6qrEOTouLeIJuPu4s73Ra1', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, failure_reason_code=None, id=u'RV6qrEOTouLeIJuPu4s73Ra1') +Reversal(status=u'succeeded', description=u'Reversal for Order #1111', links={u'credit': u'CR1ynmPUlJGbV9EMyqkowHJP', u'order': None}, amount=3000, created_at=u'2014-04-25T22:08:59.215557Z', updated_at=u'2014-04-25T22:08:59.561099Z', failure_reason=None, currency=u'USD', transaction_number=u'RV194-304-9795', href=u'/reversals/RV1zj7hidB6KZ7MxLESBXRJD', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, failure_reason_code=None, id=u'RV1zj7hidB6KZ7MxLESBXRJD') % endif \ No newline at end of file diff --git a/scenarios/reversal_list/executable.py b/scenarios/reversal_list/executable.py index a80ac07..fa08e4c 100644 --- a/scenarios/reversal_list/executable.py +++ b/scenarios/reversal_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') reversals = balanced.Reversal.query \ No newline at end of file diff --git a/scenarios/reversal_list/python.mako b/scenarios/reversal_list/python.mako index 6352fdd..94b8b21 100644 --- a/scenarios/reversal_list/python.mako +++ b/scenarios/reversal_list/python.mako @@ -4,7 +4,7 @@ balanced.Reversal.query() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') reversals = balanced.Reversal.query % elif mode == 'response': diff --git a/scenarios/reversal_show/executable.py b/scenarios/reversal_show/executable.py index a454d94..dfa3e18 100644 --- a/scenarios/reversal_show/executable.py +++ b/scenarios/reversal_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -refund = balanced.Reversal.fetch('/reversals/RV6qrEOTouLeIJuPu4s73Ra1') \ No newline at end of file +refund = balanced.Reversal.fetch('/reversals/RV1zj7hidB6KZ7MxLESBXRJD') \ No newline at end of file diff --git a/scenarios/reversal_show/python.mako b/scenarios/reversal_show/python.mako index 1b500a4..bf240f3 100644 --- a/scenarios/reversal_show/python.mako +++ b/scenarios/reversal_show/python.mako @@ -4,9 +4,9 @@ balanced.Reversal.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -refund = balanced.Reversal.fetch('/reversals/RV6qrEOTouLeIJuPu4s73Ra1') +refund = balanced.Reversal.fetch('/reversals/RV1zj7hidB6KZ7MxLESBXRJD') % elif mode == 'response': -Reversal(status=u'succeeded', description=u'Reversal for Order #1111', links={u'credit': u'CR6nBcaGvGc4dtflEB1bjKBP', u'order': None}, amount=3000, created_at=u'2014-04-25T20:18:55.008280Z', updated_at=u'2014-04-25T20:18:57.393905Z', failure_reason=None, currency=u'USD', transaction_number=u'RV296-883-6069', href=u'/reversals/RV6qrEOTouLeIJuPu4s73Ra1', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, failure_reason_code=None, id=u'RV6qrEOTouLeIJuPu4s73Ra1') +Reversal(status=u'succeeded', description=u'Reversal for Order #1111', links={u'credit': u'CR1ynmPUlJGbV9EMyqkowHJP', u'order': None}, amount=3000, created_at=u'2014-04-25T22:08:59.215557Z', updated_at=u'2014-04-25T22:08:59.561099Z', failure_reason=None, currency=u'USD', transaction_number=u'RV194-304-9795', href=u'/reversals/RV1zj7hidB6KZ7MxLESBXRJD', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, failure_reason_code=None, id=u'RV1zj7hidB6KZ7MxLESBXRJD') % endif \ No newline at end of file diff --git a/scenarios/reversal_update/executable.py b/scenarios/reversal_update/executable.py index 283eb1e..d8deab8 100644 --- a/scenarios/reversal_update/executable.py +++ b/scenarios/reversal_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -reversal = balanced.Reversal.fetch('/reversals/RV6qrEOTouLeIJuPu4s73Ra1') +reversal = balanced.Reversal.fetch('/reversals/RV1zj7hidB6KZ7MxLESBXRJD') reversal.description = 'update this description' reversal.meta = { 'user.refund.count': '3', diff --git a/scenarios/reversal_update/python.mako b/scenarios/reversal_update/python.mako index 2c5be7b..fcae941 100644 --- a/scenarios/reversal_update/python.mako +++ b/scenarios/reversal_update/python.mako @@ -3,9 +3,9 @@ balanced.Reversal().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -reversal = balanced.Reversal.fetch('/reversals/RV6qrEOTouLeIJuPu4s73Ra1') +reversal = balanced.Reversal.fetch('/reversals/RV1zj7hidB6KZ7MxLESBXRJD') reversal.description = 'update this description' reversal.meta = { 'user.refund.count': '3', @@ -14,5 +14,5 @@ reversal.meta = { } reversal.save() % elif mode == 'response': -Reversal(status=u'succeeded', description=u'update this description', links={u'credit': u'CR6nBcaGvGc4dtflEB1bjKBP', u'order': None}, amount=3000, created_at=u'2014-04-25T20:18:55.008280Z', updated_at=u'2014-04-25T20:19:01.228936Z', failure_reason=None, currency=u'USD', transaction_number=u'RV296-883-6069', href=u'/reversals/RV6qrEOTouLeIJuPu4s73Ra1', meta={u'user.satisfaction': u'6', u'refund.reason': u'user not happy with product', u'user.notes': u'very polite on the phone'}, failure_reason_code=None, id=u'RV6qrEOTouLeIJuPu4s73Ra1') +Reversal(status=u'succeeded', description=u'update this description', links={u'credit': u'CR1ynmPUlJGbV9EMyqkowHJP', u'order': None}, amount=3000, created_at=u'2014-04-25T22:08:59.215557Z', updated_at=u'2014-04-25T22:09:03.300997Z', failure_reason=None, currency=u'USD', transaction_number=u'RV194-304-9795', href=u'/reversals/RV1zj7hidB6KZ7MxLESBXRJD', meta={u'user.satisfaction': u'6', u'refund.reason': u'user not happy with product', u'user.notes': u'very polite on the phone'}, failure_reason_code=None, id=u'RV1zj7hidB6KZ7MxLESBXRJD') % endif \ No newline at end of file From 964f3c6c094586432c86b033b8146db62012c5ec Mon Sep 17 00:00:00 2001 From: Richard Serna Date: Wed, 30 Apr 2014 10:32:28 -0700 Subject: [PATCH 46/93] Reconstruct executable for new scenarios --- scenarios/credit_order/executable.py | 10 ++++++++++ scenarios/credit_order/python.mako | 11 ++++++++++- scenarios/credit_order/request.mako | 5 +++-- scenarios/debit_order/executable.py | 10 ++++++++++ scenarios/debit_order/python.mako | 11 ++++++++++- scenarios/debit_order/request.mako | 12 ++++-------- 6 files changed, 47 insertions(+), 12 deletions(-) diff --git a/scenarios/credit_order/executable.py b/scenarios/credit_order/executable.py index e69de29..e9cfd15 100644 --- a/scenarios/credit_order/executable.py +++ b/scenarios/credit_order/executable.py @@ -0,0 +1,10 @@ +import balanced + +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') + +order = balanced.Order.fetch('/orders/OR1s2WQKp0shLH9Qb0LiUfEJ') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1BnM6LmT9DLV4bZDIjUmHD') +order.credit_to( + amount=5000, + destination=bank_account +) \ No newline at end of file diff --git a/scenarios/credit_order/python.mako b/scenarios/credit_order/python.mako index f051953..8d6020a 100644 --- a/scenarios/credit_order/python.mako +++ b/scenarios/credit_order/python.mako @@ -1,7 +1,16 @@ % if mode == 'definition': balanced.Order().credit() % elif mode == 'request': +import balanced -% elif mode == 'response': +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +order = balanced.Order.fetch('/orders/OR1s2WQKp0shLH9Qb0LiUfEJ') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1BnM6LmT9DLV4bZDIjUmHD') +order.credit_to( + amount=5000, + destination=bank_account +) +% elif mode == 'response': +Credit(status=u'succeeded', description=u'Order #12341234', links={u'customer': u'CU1rvfqiY1AtduFioI0rWJvL', u'destination': u'BA1BnM6LmT9DLV4bZDIjUmHD', u'order': u'OR1s2WQKp0shLH9Qb0LiUfEJ'}, amount=5000, created_at=u'2014-04-30T04:52:18.377513Z', updated_at=u'2014-04-30T04:52:18.594666Z', failure_reason=None, currency=u'USD', transaction_number=u'CR715-275-6943', href=u'/credits/CR1C6rJsYzhOhCtxZkheExEh', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR1C6rJsYzhOhCtxZkheExEh') % endif \ No newline at end of file diff --git a/scenarios/credit_order/request.mako b/scenarios/credit_order/request.mako index 6993fbb..edbce72 100644 --- a/scenarios/credit_order/request.mako +++ b/scenarios/credit_order/request.mako @@ -1,8 +1,9 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -order = balanced.Order.fetch('${request['uri']}') +order = balanced.Order.fetch('${payload['order']}') bank_account = balanced.BankAccount.fetch('${request['bank_account_href']}') order.credit_to( -<% main.payload_expand(request['payload']) %> + amount=5000, + destination=bank_account ) \ No newline at end of file diff --git a/scenarios/debit_order/executable.py b/scenarios/debit_order/executable.py index e69de29..fe51aec 100644 --- a/scenarios/debit_order/executable.py +++ b/scenarios/debit_order/executable.py @@ -0,0 +1,10 @@ +import balanced + +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') + +order = balanced.Order.fetch('/orders/OR1s2WQKp0shLH9Qb0LiUfEJ') +card = balanced.Card.fetch('/cards/CC1r57n36Fbiglw0OcSEkUcN') +order.debit_from( + amount=5000, + source=card, +) \ No newline at end of file diff --git a/scenarios/debit_order/python.mako b/scenarios/debit_order/python.mako index 24c1462..d6debd4 100644 --- a/scenarios/debit_order/python.mako +++ b/scenarios/debit_order/python.mako @@ -2,7 +2,16 @@ balanced.Order().debit() % elif mode == 'request': +import balanced -% elif mode == 'response': +balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +order = balanced.Order.fetch('/orders/OR1s2WQKp0shLH9Qb0LiUfEJ') +card = balanced.Card.fetch('/cards/CC1r57n36Fbiglw0OcSEkUcN') +order.debit_from( + amount=5000, + source=card, +) +% elif mode == 'response': +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC1r57n36Fbiglw0OcSEkUcN', u'order': u'OR1s2WQKp0shLH9Qb0LiUfEJ', u'dispute': None}, amount=5000, created_at=u'2014-04-30T04:52:09.695985Z', updated_at=u'2014-04-30T04:52:10.318488Z', failure_reason=None, currency=u'USD', transaction_number=u'W234-839-6815', href=u'/debits/WD1skUovzVKZUpVnH2lhV965', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD1skUovzVKZUpVnH2lhV965') % endif \ No newline at end of file diff --git a/scenarios/debit_order/request.mako b/scenarios/debit_order/request.mako index c78f7f1..03c32b5 100644 --- a/scenarios/debit_order/request.mako +++ b/scenarios/debit_order/request.mako @@ -1,13 +1,9 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -debit = balanced.Debit.fetch('${request['uri']}') - -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -order = balanced.Order.fetch('${request['uri']}') +order = balanced.Order.fetch('${payload['order']}') card = balanced.Card.fetch('${request['card_href']}') -order..debit_from( -<% main.payload_expand(request['payload']) %> +order.debit_from( + amount=5000, + source=card, ) From 17d04667c9fdd458d37f2bff851948fa0c1d76b1 Mon Sep 17 00:00:00 2001 From: Richard Serna Date: Wed, 30 Apr 2014 11:31:20 -0700 Subject: [PATCH 47/93] Update order scenario request --- scenarios/credit_order/executable.py | 2 +- scenarios/credit_order/python.mako | 2 +- scenarios/credit_order/request.mako | 2 +- scenarios/debit_order/executable.py | 2 +- scenarios/debit_order/python.mako | 2 +- scenarios/debit_order/request.mako | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scenarios/credit_order/executable.py b/scenarios/credit_order/executable.py index e9cfd15..f66b623 100644 --- a/scenarios/credit_order/executable.py +++ b/scenarios/credit_order/executable.py @@ -5,6 +5,6 @@ order = balanced.Order.fetch('/orders/OR1s2WQKp0shLH9Qb0LiUfEJ') bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1BnM6LmT9DLV4bZDIjUmHD') order.credit_to( - amount=5000, + amount='5000', destination=bank_account ) \ No newline at end of file diff --git a/scenarios/credit_order/python.mako b/scenarios/credit_order/python.mako index 8d6020a..3a273fc 100644 --- a/scenarios/credit_order/python.mako +++ b/scenarios/credit_order/python.mako @@ -8,7 +8,7 @@ balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') order = balanced.Order.fetch('/orders/OR1s2WQKp0shLH9Qb0LiUfEJ') bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1BnM6LmT9DLV4bZDIjUmHD') order.credit_to( - amount=5000, + amount='5000', destination=bank_account ) % elif mode == 'response': diff --git a/scenarios/credit_order/request.mako b/scenarios/credit_order/request.mako index edbce72..11c5b1e 100644 --- a/scenarios/credit_order/request.mako +++ b/scenarios/credit_order/request.mako @@ -4,6 +4,6 @@ order = balanced.Order.fetch('${payload['order']}') bank_account = balanced.BankAccount.fetch('${request['bank_account_href']}') order.credit_to( - amount=5000, + amount='${payload['amount']}', destination=bank_account ) \ No newline at end of file diff --git a/scenarios/debit_order/executable.py b/scenarios/debit_order/executable.py index fe51aec..324ea67 100644 --- a/scenarios/debit_order/executable.py +++ b/scenarios/debit_order/executable.py @@ -5,6 +5,6 @@ order = balanced.Order.fetch('/orders/OR1s2WQKp0shLH9Qb0LiUfEJ') card = balanced.Card.fetch('/cards/CC1r57n36Fbiglw0OcSEkUcN') order.debit_from( - amount=5000, + amount='5000', source=card, ) \ No newline at end of file diff --git a/scenarios/debit_order/python.mako b/scenarios/debit_order/python.mako index d6debd4..5435800 100644 --- a/scenarios/debit_order/python.mako +++ b/scenarios/debit_order/python.mako @@ -9,7 +9,7 @@ balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') order = balanced.Order.fetch('/orders/OR1s2WQKp0shLH9Qb0LiUfEJ') card = balanced.Card.fetch('/cards/CC1r57n36Fbiglw0OcSEkUcN') order.debit_from( - amount=5000, + amount='5000', source=card, ) % elif mode == 'response': diff --git a/scenarios/debit_order/request.mako b/scenarios/debit_order/request.mako index 03c32b5..cc25101 100644 --- a/scenarios/debit_order/request.mako +++ b/scenarios/debit_order/request.mako @@ -4,6 +4,6 @@ order = balanced.Order.fetch('${payload['order']}') card = balanced.Card.fetch('${request['card_href']}') order.debit_from( - amount=5000, + amount='${payload['amount']}', source=card, ) From 9a8fcfcd7121a913b86c45bdbdf4ba2983694eda Mon Sep 17 00:00:00 2001 From: Richard Serna Date: Fri, 2 May 2014 10:17:16 -0700 Subject: [PATCH 48/93] Update definitions --- scenarios/credit_order/definition.mako | 2 +- scenarios/debit_order/definition.mako | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scenarios/credit_order/definition.mako b/scenarios/credit_order/definition.mako index 6c894f2..0f57856 100644 --- a/scenarios/credit_order/definition.mako +++ b/scenarios/credit_order/definition.mako @@ -1 +1 @@ -balanced.Order().credit() \ No newline at end of file +balanced.Order().credit_to() \ No newline at end of file diff --git a/scenarios/debit_order/definition.mako b/scenarios/debit_order/definition.mako index bfe62de..eda6428 100644 --- a/scenarios/debit_order/definition.mako +++ b/scenarios/debit_order/definition.mako @@ -1 +1 @@ -balanced.Order().debit() +balanced.Order().debit_from() From 744695785419b9a36fb3ff1247c433c568648f08 Mon Sep 17 00:00:00 2001 From: Richard Serna Date: Mon, 5 May 2014 10:23:35 -0700 Subject: [PATCH 49/93] Edit order href --- scenarios/credit_order/executable.py | 4 ++-- scenarios/credit_order/python.mako | 8 ++++---- scenarios/credit_order/request.mako | 2 +- scenarios/debit_order/executable.py | 4 ++-- scenarios/debit_order/python.mako | 8 ++++---- scenarios/debit_order/request.mako | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/scenarios/credit_order/executable.py b/scenarios/credit_order/executable.py index f66b623..b6d3412 100644 --- a/scenarios/credit_order/executable.py +++ b/scenarios/credit_order/executable.py @@ -2,8 +2,8 @@ balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -order = balanced.Order.fetch('/orders/OR1s2WQKp0shLH9Qb0LiUfEJ') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1BnM6LmT9DLV4bZDIjUmHD') +order = balanced.Order.fetch('/orders/OR5QcYnwysJXQswImokq6ZSx') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA5KLH6jhFgtVENHXOcF3Cfj/credits') order.credit_to( amount='5000', destination=bank_account diff --git a/scenarios/credit_order/python.mako b/scenarios/credit_order/python.mako index 3a273fc..a471fd5 100644 --- a/scenarios/credit_order/python.mako +++ b/scenarios/credit_order/python.mako @@ -1,16 +1,16 @@ % if mode == 'definition': -balanced.Order().credit() +balanced.Order().credit_to() % elif mode == 'request': import balanced balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -order = balanced.Order.fetch('/orders/OR1s2WQKp0shLH9Qb0LiUfEJ') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1BnM6LmT9DLV4bZDIjUmHD') +order = balanced.Order.fetch('/orders/OR5QcYnwysJXQswImokq6ZSx') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA5KLH6jhFgtVENHXOcF3Cfj/credits') order.credit_to( amount='5000', destination=bank_account ) % elif mode == 'response': -Credit(status=u'succeeded', description=u'Order #12341234', links={u'customer': u'CU1rvfqiY1AtduFioI0rWJvL', u'destination': u'BA1BnM6LmT9DLV4bZDIjUmHD', u'order': u'OR1s2WQKp0shLH9Qb0LiUfEJ'}, amount=5000, created_at=u'2014-04-30T04:52:18.377513Z', updated_at=u'2014-04-30T04:52:18.594666Z', failure_reason=None, currency=u'USD', transaction_number=u'CR715-275-6943', href=u'/credits/CR1C6rJsYzhOhCtxZkheExEh', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR1C6rJsYzhOhCtxZkheExEh') +Credit(status=u'succeeded', description=u'Order #12341234', links={u'customer': u'CU5KEQ3tk6RIfIgRg3x5ZQ1L', u'destination': u'BA5KLH6jhFgtVENHXOcF3Cfj', u'order': u'OR5QcYnwysJXQswImokq6ZSx'}, amount=5000, created_at=u'2014-05-05T16:53:39.219476Z', updated_at=u'2014-05-05T16:53:39.441985Z', failure_reason=None, currency=u'USD', transaction_number=u'CR401-971-8594', href=u'/credits/CR6hFW7Z5Rx79OVfB22BJLjr', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR6hFW7Z5Rx79OVfB22BJLjr') % endif \ No newline at end of file diff --git a/scenarios/credit_order/request.mako b/scenarios/credit_order/request.mako index 11c5b1e..d74324e 100644 --- a/scenarios/credit_order/request.mako +++ b/scenarios/credit_order/request.mako @@ -1,7 +1,7 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -order = balanced.Order.fetch('${payload['order']}') +order = balanced.Order.fetch('${request['order_href']}') bank_account = balanced.BankAccount.fetch('${request['bank_account_href']}') order.credit_to( amount='${payload['amount']}', diff --git a/scenarios/debit_order/executable.py b/scenarios/debit_order/executable.py index 324ea67..9573e8b 100644 --- a/scenarios/debit_order/executable.py +++ b/scenarios/debit_order/executable.py @@ -2,8 +2,8 @@ balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -order = balanced.Order.fetch('/orders/OR1s2WQKp0shLH9Qb0LiUfEJ') -card = balanced.Card.fetch('/cards/CC1r57n36Fbiglw0OcSEkUcN') +order = balanced.Order.fetch('/orders/OR5QcYnwysJXQswImokq6ZSx') +card = balanced.Card.fetch('/cards/CC5OD6648yiKfSzfj6z6MdXr') order.debit_from( amount='5000', source=card, diff --git a/scenarios/debit_order/python.mako b/scenarios/debit_order/python.mako index 5435800..88d5071 100644 --- a/scenarios/debit_order/python.mako +++ b/scenarios/debit_order/python.mako @@ -1,17 +1,17 @@ % if mode == 'definition': -balanced.Order().debit() +balanced.Order().debit_from() % elif mode == 'request': import balanced balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -order = balanced.Order.fetch('/orders/OR1s2WQKp0shLH9Qb0LiUfEJ') -card = balanced.Card.fetch('/cards/CC1r57n36Fbiglw0OcSEkUcN') +order = balanced.Order.fetch('/orders/OR5QcYnwysJXQswImokq6ZSx') +card = balanced.Card.fetch('/cards/CC5OD6648yiKfSzfj6z6MdXr') order.debit_from( amount='5000', source=card, ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC1r57n36Fbiglw0OcSEkUcN', u'order': u'OR1s2WQKp0shLH9Qb0LiUfEJ', u'dispute': None}, amount=5000, created_at=u'2014-04-30T04:52:09.695985Z', updated_at=u'2014-04-30T04:52:10.318488Z', failure_reason=None, currency=u'USD', transaction_number=u'W234-839-6815', href=u'/debits/WD1skUovzVKZUpVnH2lhV965', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD1skUovzVKZUpVnH2lhV965') +Debit(status=u'succeeded', description=u'Order #12341234', links={u'customer': None, u'source': u'CC5OD6648yiKfSzfj6z6MdXr', u'order': u'OR5QcYnwysJXQswImokq6ZSx', u'dispute': None}, amount=5000, created_at=u'2014-05-05T16:53:15.041569Z', updated_at=u'2014-05-05T16:53:15.911296Z', failure_reason=None, currency=u'USD', transaction_number=u'W550-229-3761', href=u'/debits/WD5QtHXAKrVhBOXjDDNCJX5b', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*example.com', id=u'WD5QtHXAKrVhBOXjDDNCJX5b') % endif \ No newline at end of file diff --git a/scenarios/debit_order/request.mako b/scenarios/debit_order/request.mako index cc25101..8de6cfe 100644 --- a/scenarios/debit_order/request.mako +++ b/scenarios/debit_order/request.mako @@ -1,7 +1,7 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -order = balanced.Order.fetch('${payload['order']}') +order = balanced.Order.fetch('${request['order_href']}') card = balanced.Card.fetch('${request['card_href']}') order.debit_from( amount='${payload['amount']}', From 810c12096aa8fd3c1fc4424c119b49e1f341da7c Mon Sep 17 00:00:00 2001 From: Richard Serna Date: Tue, 6 May 2014 10:42:35 -0700 Subject: [PATCH 50/93] Change amount to integer --- scenarios/credit_order/executable.py | 2 +- scenarios/credit_order/python.mako | 2 +- scenarios/credit_order/request.mako | 2 +- scenarios/debit_order/executable.py | 2 +- scenarios/debit_order/python.mako | 2 +- scenarios/debit_order/request.mako | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scenarios/credit_order/executable.py b/scenarios/credit_order/executable.py index b6d3412..695d5fc 100644 --- a/scenarios/credit_order/executable.py +++ b/scenarios/credit_order/executable.py @@ -5,6 +5,6 @@ order = balanced.Order.fetch('/orders/OR5QcYnwysJXQswImokq6ZSx') bank_account = balanced.BankAccount.fetch('/bank_accounts/BA5KLH6jhFgtVENHXOcF3Cfj/credits') order.credit_to( - amount='5000', + amount=5000, destination=bank_account ) \ No newline at end of file diff --git a/scenarios/credit_order/python.mako b/scenarios/credit_order/python.mako index a471fd5..c5cde34 100644 --- a/scenarios/credit_order/python.mako +++ b/scenarios/credit_order/python.mako @@ -8,7 +8,7 @@ balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') order = balanced.Order.fetch('/orders/OR5QcYnwysJXQswImokq6ZSx') bank_account = balanced.BankAccount.fetch('/bank_accounts/BA5KLH6jhFgtVENHXOcF3Cfj/credits') order.credit_to( - amount='5000', + amount=5000, destination=bank_account ) % elif mode == 'response': diff --git a/scenarios/credit_order/request.mako b/scenarios/credit_order/request.mako index d74324e..c35079c 100644 --- a/scenarios/credit_order/request.mako +++ b/scenarios/credit_order/request.mako @@ -4,6 +4,6 @@ order = balanced.Order.fetch('${request['order_href']}') bank_account = balanced.BankAccount.fetch('${request['bank_account_href']}') order.credit_to( - amount='${payload['amount']}', + amount=${payload['amount']}, destination=bank_account ) \ No newline at end of file diff --git a/scenarios/debit_order/executable.py b/scenarios/debit_order/executable.py index 9573e8b..0cf2f5a 100644 --- a/scenarios/debit_order/executable.py +++ b/scenarios/debit_order/executable.py @@ -5,6 +5,6 @@ order = balanced.Order.fetch('/orders/OR5QcYnwysJXQswImokq6ZSx') card = balanced.Card.fetch('/cards/CC5OD6648yiKfSzfj6z6MdXr') order.debit_from( - amount='5000', + amount=5000, source=card, ) \ No newline at end of file diff --git a/scenarios/debit_order/python.mako b/scenarios/debit_order/python.mako index 88d5071..80fa4cd 100644 --- a/scenarios/debit_order/python.mako +++ b/scenarios/debit_order/python.mako @@ -9,7 +9,7 @@ balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') order = balanced.Order.fetch('/orders/OR5QcYnwysJXQswImokq6ZSx') card = balanced.Card.fetch('/cards/CC5OD6648yiKfSzfj6z6MdXr') order.debit_from( - amount='5000', + amount=5000, source=card, ) % elif mode == 'response': diff --git a/scenarios/debit_order/request.mako b/scenarios/debit_order/request.mako index 8de6cfe..699e0a5 100644 --- a/scenarios/debit_order/request.mako +++ b/scenarios/debit_order/request.mako @@ -4,6 +4,6 @@ order = balanced.Order.fetch('${request['order_href']}') card = balanced.Card.fetch('${request['card_href']}') order.debit_from( - amount='${payload['amount']}', + amount=${payload['amount']}, source=card, ) From ca835cf58bcc620e8df12a45f845b802797bd1a7 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Wed, 14 May 2014 18:27:52 -0600 Subject: [PATCH 51/93] Add push to card tests --- tests/test_suite.py | 67 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/tests/test_suite.py b/tests/test_suite.py index 238f1ba..79ebf5c 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -74,6 +74,20 @@ DISPUTE_CARD = CARD.copy() DISPUTE_CARD['number'] = '6500000000000002' +CREDITABLE_CARD = { + 'name': 'Johannes Bach', + 'number': '4342561111111118', + 'expiration_month': 05, + 'expiration_year': date.today().year + 1, +} + +NON_CREDITABLE_CARD = { + 'name': 'Georg Telemann', + 'number': '4111111111111111', + 'expiration_month': 12, + 'expiration_year': date.today().year + 1, +} + INTERNATIONAL_CARD = { 'name': 'Johnny Fresh', 'number': '4444424444444440', @@ -214,6 +228,59 @@ def test_credit_a_bank_account(self): self.assertEqual(exc.exception.status_code, 409) self.assertEqual(exc.exception.category_code, 'insufficient-funds') + def test_credit_existing_card(self): + funding_card = balanced.Card(**CARD).save() + card = balanced.Card(**CREDITABLE_CARD).save() + debit = funding_card.debit(amount=250000) + credit = card.credit(amount=250000) + self.assertTrue(credit.id.startswith('CR')) + self.assertEqual(credit.href, '/credits/{}'.format(credit.id)) + self.assertEqual(credit.status, 'succeeded') + self.assertEqual(credit.amount, 250000) + + def test_credit_card_in_request(self): + funding_card = balanced.Card(**CARD).save() + debit = funding_card.debit(amount=250000) + credit = balanced.Credit( + amount=250000, + description='A sweet ride', + destination=CREDITABLE_CARD + ).save() + self.assertTrue(credit.id.startswith('CR')) + self.assertEqual(credit.href, '/credits/{}'.format(credit.id)) + self.assertEqual(credit.status, 'succeeded') + self.assertEqual(credit.amount, 250000) + self.assertEqual(credit.description, 'A sweet ride') + + def test_credit_card_can_credit_false(self): + funding_card = balanced.Card(**CARD).save() + debit = funding_card.debit(amount=250000) + card = balanced.Card(**NON_CREDITABLE_CARD).save() + with self.assertRaises(requests.HTTPError) as exc: + card.credit(amount=250000) + self.assertEqual(exc.exception.status_code, 409) + self.assertEqual(exc.exception.category_code, 'funding-destination-not-creditable') + + def test_credit_card_limit(self): + funding_card = balanced.Card(**CARD).save() + debit = funding_card.debit(amount=250005) + card = balanced.Card(**CREDITABLE_CARD).save() + with self.assertRaises(requests.HTTPError) as exc: + credit = card.credit(amount=250001) + self.assertEqual(exc.exception.status_code, 400) + self.assertEqual(exc.exception.category_code, 'amount-exceeds-limit') + + def test_credit_card_require_name(self): + funding_card = balanced.Card(**CARD).save() + debit = funding_card.debit(amount=250005) + card_payload = CREDITABLE_CARD.copy() + card_payload.pop("name") + card = balanced.Card(**card_payload).save() + with self.assertRaises(requests.HTTPError) as exc: + credit = card.credit(amount=250001) + self.assertEqual(exc.exception.status_code, 400) + self.assertEqual(exc.exception.category_code, 'request') + def test_escrow_limit(self): self.create_marketplace() # NOTE: fresh mp for escrow checks bank_account = balanced.BankAccount(**BANK_ACCOUNT).save() From ebdcd6c82fdd17529155a3f90ce53d313ee73959 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Thu, 15 May 2014 10:52:46 -0600 Subject: [PATCH 52/93] Raise FundingSourceNotCreditable when no credits link is present --- balanced/exc.py | 4 ++++ balanced/resources.py | 16 ++++++++++------ tests/test_suite.py | 6 ++---- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/balanced/exc.py b/balanced/exc.py index 8ef9656..9ec3811 100644 --- a/balanced/exc.py +++ b/balanced/exc.py @@ -27,6 +27,10 @@ class MultipleResultsFound(BalancedError): pass +class FundingSourceNotCreditable(Exception): + pass + + def convert_error(ex): if not hasattr(ex.response, 'data'): return ex diff --git a/balanced/resources.py b/balanced/resources.py index 4157007..b1dc5b9 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -426,12 +426,16 @@ def credit(self, amount, **kwargs): this FundingInstrument. :rtype: Credit - """ - return Credit( - href=self.credits.href, - amount=amount, - **kwargs - ).save() + """ + + if hasattr(self, 'credits'): + return Credit( + href=self.credits.href, + amount=amount, + **kwargs + ).save() + else: + raise exc.FundingSourceNotCreditable class BankAccount(FundingInstrument): diff --git a/tests/test_suite.py b/tests/test_suite.py index 79ebf5c..b138235 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -8,7 +8,7 @@ import requests import balanced - +from balanced import exc as bexc # fixtures @@ -256,10 +256,8 @@ def test_credit_card_can_credit_false(self): funding_card = balanced.Card(**CARD).save() debit = funding_card.debit(amount=250000) card = balanced.Card(**NON_CREDITABLE_CARD).save() - with self.assertRaises(requests.HTTPError) as exc: + with self.assertRaises(bexc.FundingSourceNotCreditable) as exc: card.credit(amount=250000) - self.assertEqual(exc.exception.status_code, 409) - self.assertEqual(exc.exception.category_code, 'funding-destination-not-creditable') def test_credit_card_limit(self): funding_card = balanced.Card(**CARD).save() From a11287212c33affb4f7d2f3598707a43ac15e7ec Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Thu, 15 May 2014 10:56:36 -0600 Subject: [PATCH 53/93] Raise if not. Remove else. --- balanced/resources.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/balanced/resources.py b/balanced/resources.py index b1dc5b9..73cbd80 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -428,14 +428,13 @@ def credit(self, amount, **kwargs): :rtype: Credit """ - if hasattr(self, 'credits'): - return Credit( - href=self.credits.href, - amount=amount, - **kwargs - ).save() - else: - raise exc.FundingSourceNotCreditable + if not hasattr(self, 'credits'): + raise exc.FundingSourceNotCreditable() + return Credit( + href=self.credits.href, + amount=amount, + **kwargs + ).save() class BankAccount(FundingInstrument): From d1d1a19f041862f2a1f6a871b971569c5cb9f1e0 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Thu, 15 May 2014 11:11:28 -0600 Subject: [PATCH 54/93] Retain indexing in string formatting --- tests/test_suite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_suite.py b/tests/test_suite.py index b138235..b3add62 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -234,7 +234,7 @@ def test_credit_existing_card(self): debit = funding_card.debit(amount=250000) credit = card.credit(amount=250000) self.assertTrue(credit.id.startswith('CR')) - self.assertEqual(credit.href, '/credits/{}'.format(credit.id)) + self.assertEqual(credit.href, '/credits/{0}'.format(credit.id)) self.assertEqual(credit.status, 'succeeded') self.assertEqual(credit.amount, 250000) @@ -247,7 +247,7 @@ def test_credit_card_in_request(self): destination=CREDITABLE_CARD ).save() self.assertTrue(credit.id.startswith('CR')) - self.assertEqual(credit.href, '/credits/{}'.format(credit.id)) + self.assertEqual(credit.href, '/credits/{0}'.format(credit.id)) self.assertEqual(credit.status, 'succeeded') self.assertEqual(credit.amount, 250000) self.assertEqual(credit.description, 'A sweet ride') From 45a6356452aaa3b961a52d18fde37158b2a963be Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Thu, 15 May 2014 13:22:53 -0600 Subject: [PATCH 55/93] Spec says to expect a 409 --- tests/test_suite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_suite.py b/tests/test_suite.py index b3add62..e92c0e6 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -265,7 +265,7 @@ def test_credit_card_limit(self): card = balanced.Card(**CREDITABLE_CARD).save() with self.assertRaises(requests.HTTPError) as exc: credit = card.credit(amount=250001) - self.assertEqual(exc.exception.status_code, 400) + self.assertEqual(exc.exception.status_code, 409) self.assertEqual(exc.exception.category_code, 'amount-exceeds-limit') def test_credit_card_require_name(self): From 498a20adea18704628de1a80113880609772e2e6 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Mon, 19 May 2014 10:02:53 -0600 Subject: [PATCH 56/93] Fix BasicUseCases.test_credit_card_limit --- tests/test_suite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_suite.py b/tests/test_suite.py index e92c0e6..74047b2 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -276,8 +276,8 @@ def test_credit_card_require_name(self): card = balanced.Card(**card_payload).save() with self.assertRaises(requests.HTTPError) as exc: credit = card.credit(amount=250001) - self.assertEqual(exc.exception.status_code, 400) - self.assertEqual(exc.exception.category_code, 'request') + self.assertEqual(exc.exception.status_code, 400) + self.assertEqual(exc.exception.category_code, 'name-required-to-credit') def test_escrow_limit(self): self.create_marketplace() # NOTE: fresh mp for escrow checks From 80c10feacb1ff0b953dc31d5c4b3c815b0b2bd47 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Mon, 19 May 2014 14:53:05 -0600 Subject: [PATCH 57/93] Add card credit scenarios --- scenarios/card_create_creditable/definition.mako | 1 + scenarios/card_create_creditable/executable.py | 10 ++++++++++ scenarios/card_create_creditable/python.mako | 16 ++++++++++++++++ scenarios/card_create_creditable/request.mako | 6 ++++++ scenarios/card_credit/definition.mako | 1 + scenarios/card_credit/executable.py | 9 +++++++++ scenarios/card_credit/python.mako | 15 +++++++++++++++ scenarios/card_credit/request.mako | 8 ++++++++ 8 files changed, 66 insertions(+) create mode 100644 scenarios/card_create_creditable/definition.mako create mode 100644 scenarios/card_create_creditable/executable.py create mode 100644 scenarios/card_create_creditable/python.mako create mode 100644 scenarios/card_create_creditable/request.mako create mode 100644 scenarios/card_credit/definition.mako create mode 100644 scenarios/card_credit/executable.py create mode 100644 scenarios/card_credit/python.mako create mode 100644 scenarios/card_credit/request.mako diff --git a/scenarios/card_create_creditable/definition.mako b/scenarios/card_create_creditable/definition.mako new file mode 100644 index 0000000..1235831 --- /dev/null +++ b/scenarios/card_create_creditable/definition.mako @@ -0,0 +1 @@ +balanced.Card().save() \ No newline at end of file diff --git a/scenarios/card_create_creditable/executable.py b/scenarios/card_create_creditable/executable.py new file mode 100644 index 0000000..d941809 --- /dev/null +++ b/scenarios/card_create_creditable/executable.py @@ -0,0 +1,10 @@ +import balanced + +balanced.configure('ak-test-2jJSjIixy2qkOMmIONPtXnawOUftBDRSK') + +card = balanced.Card( + expiration_month='05', + name='Johannes Bach', + expiration_year='2020', + number='4342561111111118' +).save() \ No newline at end of file diff --git a/scenarios/card_create_creditable/python.mako b/scenarios/card_create_creditable/python.mako new file mode 100644 index 0000000..f6dfcb9 --- /dev/null +++ b/scenarios/card_create_creditable/python.mako @@ -0,0 +1,16 @@ +% if mode == 'definition': +balanced.Card().save() +% elif mode == 'request': +import balanced + +balanced.configure('ak-test-2jJSjIixy2qkOMmIONPtXnawOUftBDRSK') + +card = balanced.Card( + expiration_month='05', + name='Johannes Bach', + expiration_year='2020', + number='4342561111111118' +).save() +% elif mode == 'response': +Card(links={u'customer': None}, cvv_result=None, number=u'xxxxxxxxxxxx1118', expiration_month=5, href=u'/cards/CC7nMc4BAti7DgvWmpGV5e6N', type=u'debit', id=u'CC7nMc4BAti7DgvWmpGV5e6N', category=u'other', is_verified=True, cvv_match=None, bank_name=u'WELLS FARGO BANK, N.A.', avs_street_match=None, brand=u'Visa', updated_at=u'2014-05-19T20:27:07.461894Z', fingerprint=u'7dc93d35b59078a1da8e0ebd2cbec65a6ca205760a1be1b90a143d7f2b00e355', can_debit=True, name=u'Johannes Bach', expiration_year=2020, cvv=None, avs_postal_match=None, avs_result=None, can_credit=True, meta={}, created_at=u'2014-05-19T20:27:07.461892Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) +% endif \ No newline at end of file diff --git a/scenarios/card_create_creditable/request.mako b/scenarios/card_create_creditable/request.mako new file mode 100644 index 0000000..bae039b --- /dev/null +++ b/scenarios/card_create_creditable/request.mako @@ -0,0 +1,6 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +card = balanced.Card( + <% main.payload_expand(request['payload']) %> +).save() \ No newline at end of file diff --git a/scenarios/card_credit/definition.mako b/scenarios/card_credit/definition.mako new file mode 100644 index 0000000..d97ded5 --- /dev/null +++ b/scenarios/card_credit/definition.mako @@ -0,0 +1 @@ +balanced.Card().credit() \ No newline at end of file diff --git a/scenarios/card_credit/executable.py b/scenarios/card_credit/executable.py new file mode 100644 index 0000000..e9dd3c2 --- /dev/null +++ b/scenarios/card_credit/executable.py @@ -0,0 +1,9 @@ +import balanced + +balanced.configure('ak-test-2jJSjIixy2qkOMmIONPtXnawOUftBDRSK') + +card = balanced.Card.fetch('/cards/CC7nMc4BAti7DgvWmpGV5e6N') +card.credit( + amount=5000, + description='Some descriptive text for the debit in the dashboard' +) \ No newline at end of file diff --git a/scenarios/card_credit/python.mako b/scenarios/card_credit/python.mako new file mode 100644 index 0000000..31f6367 --- /dev/null +++ b/scenarios/card_credit/python.mako @@ -0,0 +1,15 @@ +% if mode == 'definition': +balanced.Card().credit() +% elif mode == 'request': +import balanced + +balanced.configure('ak-test-2jJSjIixy2qkOMmIONPtXnawOUftBDRSK') + +card = balanced.Card.fetch('/cards/CC7nMc4BAti7DgvWmpGV5e6N') +card.credit( + amount=5000, + description='Some descriptive text for the debit in the dashboard' +) +% elif mode == 'response': +Credit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'destination': u'CC7nMc4BAti7DgvWmpGV5e6N', u'order': None}, amount=5000, created_at=u'2014-05-19T20:27:07.904059Z', updated_at=u'2014-05-19T20:27:08.244392Z', failure_reason=None, currency=u'USD', transaction_number=u'CR018-897-7930', href=u'/credits/CR7oh5wk2EfSuMu34r2YzT0l', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR7oh5wk2EfSuMu34r2YzT0l') +% endif \ No newline at end of file diff --git a/scenarios/card_credit/request.mako b/scenarios/card_credit/request.mako new file mode 100644 index 0000000..b4350ce --- /dev/null +++ b/scenarios/card_credit/request.mako @@ -0,0 +1,8 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +card = balanced.Card.fetch('${request['card_href']}') +card.credit( + <% main.payload_expand(request['payload']) %> +) + From cfaf29779ff0b6fd776c667fde87632744d4b94e Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Fri, 23 May 2014 11:24:18 -0600 Subject: [PATCH 58/93] Bump version to 1.1.0 --- CHANGELOG.md | 4 ++++ balanced/__init__.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f6ee0a..b1d3054 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.1.0 + +* Push to card support + ## 1.0.2 * Return None when there is actually none instead of a page object (#115) diff --git a/balanced/__init__.py b/balanced/__init__.py index 5b94768..a7890aa 100644 --- a/balanced/__init__.py +++ b/balanced/__init__.py @@ -1,6 +1,6 @@ from __future__ import unicode_literals -__version__ = '1.0.2' +__version__ = '1.1.0' from balanced.config import configure from balanced import resources From 8d7d097e088fd7d17dfc684cc871de426c974e93 Mon Sep 17 00:00:00 2001 From: Richard Serna Date: Mon, 16 Jun 2014 11:38:55 -0700 Subject: [PATCH 59/93] Edit cancel function to void holds --- balanced/resources.py | 2 +- tests/test_suite.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/balanced/resources.py b/balanced/resources.py index 73cbd80..9df6823 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -285,7 +285,7 @@ class CardHold(Resource): uri_gen = wac.URIGen('/card_holds', '{card_hold}') def cancel(self): - self.is_void = False + self.is_void = True return self.save() def capture(self, **kwargs): diff --git a/tests/test_suite.py b/tests/test_suite.py index 74047b2..5dd5edb 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -187,6 +187,7 @@ def test_create_hold_and_void_it(self): hold = card.hold(amount=1500, description='Hold me') self.assertEqual(hold.description, 'Hold me') hold.cancel() + self.assertIsNotNone(hold.voided_at) def test_create_hold_and_capture_it(self): card = balanced.Card(**CARD).save() From 014bad031910afd0ba9e95c0f4c181436b6b0777 Mon Sep 17 00:00:00 2001 From: Richard Serna Date: Tue, 17 Jun 2014 19:37:04 -0700 Subject: [PATCH 60/93] Bump version --- CHANGELOG.md | 4 ++++ balanced/__init__.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b1d3054..d8284b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.1.1 + +* Fix allowing for voiding holds + ## 1.1.0 * Push to card support diff --git a/balanced/__init__.py b/balanced/__init__.py index a7890aa..a0d0689 100644 --- a/balanced/__init__.py +++ b/balanced/__init__.py @@ -1,6 +1,6 @@ from __future__ import unicode_literals -__version__ = '1.1.0' +__version__ = '1.1.1' from balanced.config import configure from balanced import resources From b5a1fd66212fabac3e996c7ffaa9837080416bba Mon Sep 17 00:00:00 2001 From: Matthew Francis-Landau Date: Mon, 7 Jul 2014 17:57:01 -0700 Subject: [PATCH 61/93] add publish to pypi from travis --- .travis.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 83e5baa..07c01bd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,17 @@ language: python python: - - 2.6 - - 2.7 +- 2.6 +- 2.7 install: - - python setup.py develop - - pip install -r requirements.txt - - pip install -r test-requirements.txt -script: - - python setup.py test +- python setup.py develop +- pip install -r requirements.txt +- pip install -r test-requirements.txt +script: +- python setup.py test +deploy: + provider: pypi + user: balanced-butler + password: + secure: jH1XW+hl+KInnde014cvX8mH5ZRiqXsxMRflR2DEs/na5mK/1LFzFt2iwgN9XwkkmXJYLPr6LA3pSLqHTMKXs8RrHaM1uXmEckXL48jcy0YkQ0+2Cl0EKcbmS8OnqIcjY3g5xFBbsFPjuRx6uJYFksJ3QatTuxkDcY/hQOc6IZg= + on: + tags: true From c58b10b379cd0ffa7e6963236ad7b0838d272483 Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Thu, 24 Jul 2014 10:35:31 -0700 Subject: [PATCH 62/93] create a customer as part of the callbacks example --- examples/events_and_callbacks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/events_and_callbacks.py b/examples/events_and_callbacks.py index ee207e7..8597185 100644 --- a/examples/events_and_callbacks.py +++ b/examples/events_and_callbacks.py @@ -26,6 +26,9 @@ def main(): url=request_bin.callback_url, ).save() + print "let's create a customer" + balanced.Customer(name='Bob McTavish').save() + print 'let\'s create a card and associate it with a new account' card = balanced.Card( expiration_month='12', From 865be0b688be282fa84776becc9b631e222d4856 Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Tue, 29 Jul 2014 08:25:03 -0700 Subject: [PATCH 63/93] example of reversing a PENDING credit --- examples/orders.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/orders.py b/examples/orders.py index 89bc27c..95f8d34 100644 --- a/examples/orders.py +++ b/examples/orders.py @@ -59,3 +59,11 @@ print ex assert ex is not None + +# bring the money back again +reversal = credit.reverse() + +order = balanced.Order.fetch(order.href) + +# order escrow is topped up again +assert order.amount_escrowed == 100 From 37c33dfc3b5bc8de84bd5e9f37f2bd5b65a303c8 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Wed, 13 Aug 2014 13:50:56 -0600 Subject: [PATCH 64/93] Move guide snippets to repository --- examples/__init__.py | 1 - examples/accounting.py | 126 ------------------ examples/bank_account_debits.py | 59 -------- examples/events_and_callbacks.py | 78 ----------- examples/examples.py | 111 --------------- examples/helpers/__init__.py | 30 ----- examples/orders.py | 69 ---------- snippets/bank-account-create.py | 6 + snippets/bank-account-debit.py | 7 + snippets/bank-account-verification-confirm.py | 3 + snippets/bank-account-verification-create.py | 1 + snippets/callback-create.py | 4 + snippets/card-create-dispute.py | 6 + snippets/card-create.py | 6 + snippets/card-credit.py | 7 + snippets/card-debit.py | 7 + snippets/card-hold-capture.py | 6 + snippets/card-hold-create.py | 6 + snippets/card-hold-void.py | 3 + snippets/credit-create.py | 6 + snippets/credit-soft-descriptor.py | 7 + snippets/credit-split.py | 13 ++ snippets/debit-dispute-show.py | 3 + snippets/dispute-list.py | 1 + snippets/dispute-show.py | 2 + snippets/marketplace-in-escrow.py | 1 + snippets/refund-create.py | 11 ++ snippets/reversal-create.py | 11 ++ 28 files changed, 117 insertions(+), 474 deletions(-) delete mode 100644 examples/__init__.py delete mode 100644 examples/accounting.py delete mode 100644 examples/bank_account_debits.py delete mode 100644 examples/events_and_callbacks.py delete mode 100644 examples/examples.py delete mode 100644 examples/helpers/__init__.py delete mode 100644 examples/orders.py create mode 100644 snippets/bank-account-create.py create mode 100644 snippets/bank-account-debit.py create mode 100644 snippets/bank-account-verification-confirm.py create mode 100644 snippets/bank-account-verification-create.py create mode 100644 snippets/callback-create.py create mode 100644 snippets/card-create-dispute.py create mode 100644 snippets/card-create.py create mode 100644 snippets/card-credit.py create mode 100644 snippets/card-debit.py create mode 100644 snippets/card-hold-capture.py create mode 100644 snippets/card-hold-create.py create mode 100644 snippets/card-hold-void.py create mode 100644 snippets/credit-create.py create mode 100644 snippets/credit-soft-descriptor.py create mode 100644 snippets/credit-split.py create mode 100644 snippets/debit-dispute-show.py create mode 100644 snippets/dispute-list.py create mode 100644 snippets/dispute-show.py create mode 100644 snippets/marketplace-in-escrow.py create mode 100644 snippets/refund-create.py create mode 100644 snippets/reversal-create.py diff --git a/examples/__init__.py b/examples/__init__.py deleted file mode 100644 index 1b4dc46..0000000 --- a/examples/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__author__ = 'marshall' diff --git a/examples/accounting.py b/examples/accounting.py deleted file mode 100644 index e4280f5..0000000 --- a/examples/accounting.py +++ /dev/null @@ -1,126 +0,0 @@ -#!/usr/bin/env python -''' -Generate a csv report of month end transaction balances; -please ensure your RAM is commensurate with your transaction volume. - -python examples/accounting.py --api_key [Marketplace API Key] > Report.csv -python examples/accounting.py --api_key [Marketplace API Key] --use_cache > gnuplot ... - -''' - -import argparse -import calendar -import csv -from itertools import groupby -import os -import pickle -import sys - -import balanced - - -def generate_report(args): - balanced.configure(args.api_key) - marketplace = balanced.Marketplace.mine - - if args.use_cache: - credits = pickle.load(open('cache/credits.obj')) - debits = pickle.load(open('cache/debits.obj')) - refunds = pickle.load(open('cache/refunds.obj')) - - else: - if not os.path.exists('./cache'): - os.makedirs('./cache') - - print 'Downloading Debits' - debits = balanced.Debit.query.all() - - print 'Downloading Credits' - credits = balanced.Credit.query.all() - - print 'Downloading Refunds' - refunds = balanced.Refund.query.all() - - print 'Caching Transactions' - with open('cache/debits.obj', 'w') as f: - pickle.dump(debits, f) - - with open('cache/credits.obj', 'w') as f: - pickle.dump(credits, f) - - with open('cache/refunds.obj', 'w') as f: - pickle.dump(refunds, f) - - txns = sorted(credits + debits + refunds, key=lambda x: x.created_at) - - def group(xs, head, tail): - return {key: [tail(x) for x in group] - for key, group in - groupby(sorted(xs, key=head), - head)} - - # (year, month, txn) - txns_by_period = [(t.created_at.year, - t.created_at.month, - t) for t in txns] - - # {year: [(month, txn)]} - txns_by_year = group(txns_by_period, - lambda (y, m, txn): y, - lambda (y, m, txn): (m, txn)) - - group_by_month = lambda xs: group(xs, lambda (a, b): a, lambda (a, b): b) - - # {year: {month: [txn]}} - txns_by_year_by_month = {key: group_by_month(txns_by_year[key]) - for key in txns_by_year} - - headers = ['Year', 'Month', 'Debits', 'Refunds', 'Credits', - 'Credits Pending', 'Escrow Balance'] - writer = csv.DictWriter(sys.stdout, headers) - writer.writeheader() - rolling_balance = 0 - - for year in sorted(txns_by_year_by_month): - for month in sorted(txns_by_year_by_month[year]): - txns = txns_by_year_by_month[year][month] - monthly_credits = [txn for txn in txns - if type(txn) == balanced.resources.Credit] - monthly_debits = [txn for txn in txns - if type(txn) == balanced.resources.Debit] - monthly_refunds = [txn for txn in txns - if type(txn) == balanced.resources.Refund] - - credit_amount = sum([c.amount for c in monthly_credits - if c.status == 'paid']) - debit_amount = sum([d.amount for d in monthly_debits - if d.status == 'succeeded']) - refund_amount = sum([r.amount for r in monthly_refunds]) - credits_pending_amount = sum([c.amount for c in monthly_credits - if c.status == 'pending']) - - rolling_balance += debit_amount - rolling_balance -= (refund_amount + credit_amount) - - row = {} - row['Year'] = str(year) - row['Month'] = calendar.month_name[month] - row['Debits'] = debit_amount / 100.0 - row['Refunds'] = refund_amount / 100.0 - row['Credits'] = credit_amount / 100.0 - row['Credits Pending'] = credits_pending_amount / 100.0 - row['Escrow Balance'] = (rolling_balance - - credits_pending_amount) / 100.0 - writer.writerow(row) - -def main(): - arg_parser = argparse.ArgumentParser() - arg_parser.add_argument('--api_key', action='store', dest='api_key', - required=True) - arg_parser.add_argument('--use_cache', action='store_true') - args = arg_parser.parse_args() - generate_report(args) - - -if __name__ == '__main__': - main() diff --git a/examples/bank_account_debits.py b/examples/bank_account_debits.py deleted file mode 100644 index 280fea0..0000000 --- a/examples/bank_account_debits.py +++ /dev/null @@ -1,59 +0,0 @@ -''' -Learn how to verify a bank account so you can debit with it. -''' -from __future__ import unicode_literals - -import balanced - - -def init(): - key = balanced.APIKey().save() - balanced.configure(key.secret) - balanced.Marketplace().save() - - -def main(): - init() - - # create a bank account - bank_account = balanced.BankAccount( - account_number='1234567890', - routing_number='321174851', - name='Jack Q Merchant', - ).save() - customer = balanced.Customer().save() - bank_account.associate_to_customer(customer) - - print 'you can\'t debit until you authenticate' - try: - bank_account.debit(100) - except balanced.exc.HTTPError as ex: - print 'Debit failed, %s' % ex.message - - # verify - verification = bank_account.verify() - - print 'PROTIP: for TEST bank accounts the valid amount is always 1 and 1' - try: - verification.confirm(amount_1=1, amount_2=2) - except balanced.exc.BankAccountVerificationFailure as ex: - print 'Authentication error , %s' % ex.message - - # reload - verification = balanced.BankAccount.fetch( - bank_account.href - ).bank_account_verification - - if verification.confirm(1, 1).verification_status != 'succeeded': - raise Exception('unpossible') - debit = bank_account.debit(100) - - print 'debited the bank account %s for %d cents' % ( - debit.source.href, - debit.amount - ) - print 'and there you have it' - - -if __name__ == '__main__': - main() diff --git a/examples/events_and_callbacks.py b/examples/events_and_callbacks.py deleted file mode 100644 index 8597185..0000000 --- a/examples/events_and_callbacks.py +++ /dev/null @@ -1,78 +0,0 @@ -""" -Welcome weary traveller. Sick of polling for state changes? Well today have I -got good news for you. Run this example below to see how to get yourself some -callback goodness and to understand how events work. -""" -from __future__ import unicode_literals -import time - -import balanced - -from helpers import RequestBinClient - - -def init(): - key = balanced.APIKey().save() - balanced.configure(key.secret) - balanced.Marketplace().save() - - -def main(): - init() - request_bin = RequestBinClient() - - print 'let\'s create a callback' - balanced.Callback( - url=request_bin.callback_url, - ).save() - - print "let's create a customer" - balanced.Customer(name='Bob McTavish').save() - - print 'let\'s create a card and associate it with a new account' - card = balanced.Card( - expiration_month='12', - csc='123', - number='5105105105105100', - expiration_year='2020', - ).save() - - print 'generate a debit (which implicitly creates and captures a hold)' - card.debit(100) - - print 'event creation is an async operation, let\'s wait until we have ' \ - 'some events!' - while not balanced.Event.query.count(): - print 'Zzzz' - time.sleep(0) - - print 'Woop, we got some events, let us see what there is to look at' - for event in balanced.Event.query: - print 'this was a {0} event, it occurred at {1}, the callback has a ' \ - 'status of {2}'.format( - event.type, - event.occurred_at, - event.callback_statuses - ) - - print 'you can inspect each event to see the logs' - event = balanced.Event.query.first() - for callback in event.callbacks: - print 'inspecting callback to {0} for event {1}'.format( - callback.url, - event.type, - ) - for log in callback.logs: - print 'this attempt to the callback has a status "{0}"'.format( - log.status - ) - - print 'ok, let\'s check with requestb.in to see if our callbacks fired' - print 'we received {0} callbacks, you can view them at {1}'.format( - len(request_bin.get_requests()), - request_bin.view_url, - ) - - -if __name__ == '__main__': - main() diff --git a/examples/examples.py b/examples/examples.py deleted file mode 100644 index 463fcd4..0000000 --- a/examples/examples.py +++ /dev/null @@ -1,111 +0,0 @@ -from __future__ import unicode_literals - -import balanced - - -print "create our new api key" -api_key = balanced.APIKey().save() -print "Our secret is: ", api_key.secret - -print "configure with our secret " + api_key.secret -balanced.configure(api_key.secret) - -print "create our marketplace" -marketplace = balanced.Marketplace().save() - -# what's my marketplace? -if not balanced.Marketplace.my_marketplace: - raise Exception("Marketplace.my_marketplace should not be nil") -print "what's my marketplace?, easy: Marketplace.my_marketplace: {0}".format( - balanced.Marketplace.my_marketplace -) - -print "My marketplace's name is: {0}".format(marketplace.name) -print "Changing it to TestFooey" -marketplace.name = "TestFooey" -marketplace.save() -print "My marketplace name is now: {0}".format(marketplace.name) -if marketplace.name != 'TestFooey': - raise Exception("Marketplace name is NOT TestFooey!") - -print "cool! let's create a new card." -card = balanced.Card( - number="5105105105105100", - expiration_month="12", - expiration_year="2015", -).save() - -print "Our card href: " + card.href - -print "create our **buyer** account" -buyer = balanced.Customer(email="buyer@example.org", source=card).save() -print "our buyer account: " + buyer.href - -print "hold some amount of funds on the buyer, lets say 15$" -the_hold = card.hold(1500) - -print "ok, no more holds! lets just capture it (for the full amount)" -debit = the_hold.capture() - -print "hmm, how much money do i have in escrow? should equal the debit amount" -marketplace = balanced.Marketplace.my_marketplace -if marketplace.in_escrow != 1500: - raise Exception("1500 is not in escrow! this is wrong") -print "i have {0} in escrow!".format(marketplace.in_escrow) - -print "cool. now let me refund the full amount" -refund = debit.refund() # the full amount! - -print ("ok, we have a merchant that's signing up, let's create an account for " - "them first, lets create their bank account.") - -bank_account = balanced.BankAccount( - account_number="1234567890", - routing_number="321174851", - name="Jack Q Merchant", -).save() - -merchant = balanced.Customer( - email_address="merchant@example.org", - name="Billy Jones", - address={ - 'street_address': "801 High St.", - 'postal_code': "94301", - 'country': "USA", - }, - dob="1842-01", - phone_number="+16505551234", - destination=bank_account, -).save() - -print "oh our buyer is interested in buying something for 130.00$" -another_debit = card.debit(13000, appears_on_statement_as="MARKETPLACE.COM") - -print "lets credit our merchant 110.00$" -credit = bank_account.credit( - 11000, description="Buyer purchased something on MARKETPLACE.COM") - -print "lets assume the marketplace charges 15%, so it earned $20" -mp_credit = marketplace.owner_customer.bank_accounts.first().credit( - 2000, description="Our commission from MARKETPLACE.COM") - -print "ok lets invalid a card" -card.delete() - -assert buyer.cards.count() == 0 - -print "invalidating a bank account" -bank_account.delete() - -print "associate a card with an exiting customer" -card = balanced.Card( - number="5105105105105100", - expiration_month="12", - expiration_year="2015", -).save() - -card.associate_to_customer(buyer) - -assert buyer.cards.count() == 1 - -print "and there you have it :)" diff --git a/examples/helpers/__init__.py b/examples/helpers/__init__.py deleted file mode 100644 index 3018e1b..0000000 --- a/examples/helpers/__init__.py +++ /dev/null @@ -1,30 +0,0 @@ -from __future__ import unicode_literals -import simplejson as json - -import requests - - -class RequestBinClient(object): - base_url = 'http://requestb.in/api/v1' - create_url = base_url + '/bins' - - def __init__(self): - response = requests.post(self.create_url) - self.bin = json.loads(response.text) - - def get_requests(self): - response = requests.get( - self.create_url + '/{}/requests'.format(self.bin['name']) - ) - return json.loads(response.text) - - @property - def callback_url(self): - return 'http://requestb.in/{}'.format(self.bin['name']) - - @property - def view_url(self): - return self.callback_url + '?inspect' - - def __str__(self): - return str(self.bin) diff --git a/examples/orders.py b/examples/orders.py deleted file mode 100644 index 95f8d34..0000000 --- a/examples/orders.py +++ /dev/null @@ -1,69 +0,0 @@ -from __future__ import unicode_literals - -import balanced - - -key = balanced.APIKey().save() -balanced.configure(key.secret) -balanced.Marketplace().save() - -# here's the merchant customer who is going to be the recipient of the order -merchant = balanced.Customer().save() -bank_account = balanced.BankAccount( - account_number="1234567890", - routing_number="321174851", - name="Jack Q Merchant", -).save() -bank_account.associate_to_customer(merchant) - -order = merchant.create_order(description='foo order') - -card = balanced.Card( - number="5105105105105100", - expiration_month="12", - expiration_year="2015", -).save() - -# debit the card and associate with the order. -card.debit(amount=100, order=order) - -order = balanced.Order.fetch(order.href) - -# the order captured the amount of the debit -assert order.amount_escrowed == 100 - -# pay out half -credit = bank_account.credit(amount=50, order=order) - -order = balanced.Order.fetch(order.href) - -# half the money remains -assert order.amount_escrowed == 50 - -# let's try paying out to another funding instrument that is not the recipient -# of the order. -another_bank_account = balanced.BankAccount( - account_number="1234567890", - routing_number="321174851", - name="Jack Q Merchant", -).save() - -another_merchant = balanced.Customer().save() -another_bank_account.associate_to_customer(another_merchant) - -# cannot credit to a bank account which is not assigned to either the -# marketplace or the merchant associated with the order. -try: - another_credit = another_bank_account.credit(amount=50, order=order) -except balanced.exc.BalancedError as ex: - print ex - -assert ex is not None - -# bring the money back again -reversal = credit.reverse() - -order = balanced.Order.fetch(order.href) - -# order escrow is topped up again -assert order.amount_escrowed == 100 diff --git a/snippets/bank-account-create.py b/snippets/bank-account-create.py new file mode 100644 index 0000000..5c67d51 --- /dev/null +++ b/snippets/bank-account-create.py @@ -0,0 +1,6 @@ +bank_account = balanced.BankAccount( + routing_number='121000358', + type='checking', + account_number='9900000001', + name='Johann Bernoulli' +).save() \ No newline at end of file diff --git a/snippets/bank-account-debit.py b/snippets/bank-account-debit.py new file mode 100644 index 0000000..2fd6c64 --- /dev/null +++ b/snippets/bank-account-debit.py @@ -0,0 +1,7 @@ +# bank_account_href is the stored href for the BankAccount +bank_account = balanced.BankAccount.fetch(bank_account_href) +bank_account.debit( + appears_on_statement_as='Statement text', + amount=5000, + description='Some descriptive text for the debit in the dashboard' +) \ No newline at end of file diff --git a/snippets/bank-account-verification-confirm.py b/snippets/bank-account-verification-confirm.py new file mode 100644 index 0000000..09f2f24 --- /dev/null +++ b/snippets/bank-account-verification-confirm.py @@ -0,0 +1,3 @@ +# time has elapsed, so find the BankAccountVerification +verification = balanced.BankAccountVerification.find('/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG') +verification.confirm(amount_1=1, amount_2=1) \ No newline at end of file diff --git a/snippets/bank-account-verification-create.py b/snippets/bank-account-verification-create.py new file mode 100644 index 0000000..f1cc90f --- /dev/null +++ b/snippets/bank-account-verification-create.py @@ -0,0 +1 @@ +verification = bank_account.verify \ No newline at end of file diff --git a/snippets/callback-create.py b/snippets/callback-create.py new file mode 100644 index 0000000..acb3ee8 --- /dev/null +++ b/snippets/callback-create.py @@ -0,0 +1,4 @@ +callback = balanced.Callback( + url='http://www.example.com/callback', + method='post' +).save() \ No newline at end of file diff --git a/snippets/card-create-dispute.py b/snippets/card-create-dispute.py new file mode 100644 index 0000000..1291923 --- /dev/null +++ b/snippets/card-create-dispute.py @@ -0,0 +1,6 @@ +card = balanced.Card( + cvv='123', + expiration_month='12', + number='6500000000000002', + expiration_year='2020' +).save() \ No newline at end of file diff --git a/snippets/card-create.py b/snippets/card-create.py new file mode 100644 index 0000000..b02f975 --- /dev/null +++ b/snippets/card-create.py @@ -0,0 +1,6 @@ +card = balanced.Card( + expiration_month='12', + security_code='123', + number='5105105105105100', + expiration_year='2020' +).save() \ No newline at end of file diff --git a/snippets/card-credit.py b/snippets/card-credit.py new file mode 100644 index 0000000..d03ede8 --- /dev/null +++ b/snippets/card-credit.py @@ -0,0 +1,7 @@ +# card_href is the stored href for the Card +card = balanced.Card.fetch(card_href) +card.credit( + appears_on_statement_as='Some text', + amount=5000, + description='Some descriptive text for the debit in the dashboard' +) \ No newline at end of file diff --git a/snippets/card-debit.py b/snippets/card-debit.py new file mode 100644 index 0000000..d20da1b --- /dev/null +++ b/snippets/card-debit.py @@ -0,0 +1,7 @@ +# card_href is the stored href for the Card +card = balanced.Card.fetch(card_href) +card.debit( + appears_on_statement_as='Statement text', + amount=5000, + description='Some descriptive text for the debit in the dashboard' +) \ No newline at end of file diff --git a/snippets/card-hold-capture.py b/snippets/card-hold-capture.py new file mode 100644 index 0000000..545048a --- /dev/null +++ b/snippets/card-hold-capture.py @@ -0,0 +1,6 @@ +# card_hold_href is the stored href for the CardHold +card_hold = balanced.CardHold.fetch(card_hold_href) +debit = card_hold.capture( + appears_on_statement_as='ShowsUpOnStmt', + description='Some descriptive text for the debit in the dashboard' +) \ No newline at end of file diff --git a/snippets/card-hold-create.py b/snippets/card-hold-create.py new file mode 100644 index 0000000..5d833e8 --- /dev/null +++ b/snippets/card-hold-create.py @@ -0,0 +1,6 @@ +# card_href is the stored href for the Card +card = balanced.Card.fetch(card_href) +card_hold = card.hold( + amount=5000, + description='Some descriptive text for the debit in the dashboard' +) \ No newline at end of file diff --git a/snippets/card-hold-void.py b/snippets/card-hold-void.py new file mode 100644 index 0000000..0cd8dc9 --- /dev/null +++ b/snippets/card-hold-void.py @@ -0,0 +1,3 @@ +# card_hold_href is the stored href for the CardHold +card_hold = balanced.CardHold.fetch(card_hold_href) +card_hold.cancel() \ No newline at end of file diff --git a/snippets/credit-create.py b/snippets/credit-create.py new file mode 100644 index 0000000..ddfc1be --- /dev/null +++ b/snippets/credit-create.py @@ -0,0 +1,6 @@ +# bank_account_href is the stored href for the BankAccount +bank_account = balanced.BankAccount.fetch(bank_account_href) +credit = bank_account.credit( + amount=100000, + description='Payout for order #1111' +) \ No newline at end of file diff --git a/snippets/credit-soft-descriptor.py b/snippets/credit-soft-descriptor.py new file mode 100644 index 0000000..cecab2b --- /dev/null +++ b/snippets/credit-soft-descriptor.py @@ -0,0 +1,7 @@ +# bank_account_href is the stored href for the BankAccount +bank_account = balanced.BankAccount.fetch(bank_account_href) +credit = bank_account.credit( + amount=100000, + description='Payout for order #1111', + appears_on_statement_as='GoodCo #1111' +) \ No newline at end of file diff --git a/snippets/credit-split.py b/snippets/credit-split.py new file mode 100644 index 0000000..685dda4 --- /dev/null +++ b/snippets/credit-split.py @@ -0,0 +1,13 @@ +# bank_account_href_a is the stored href for the BankAccount for Person A +bank_account_person_a = balanced.BankAccount.fetch(bank_account_href_a) +credit = bank_account_person_a.credit( + amount=50000, + description='Payout for order #1111' +) + +# bank_account_href_b is the stored href for the BankAccount for Person B +bank_account_person_b = balanced.BankAccount.fetch(bank_account_href_b) +credit = bank_account_person_b.credit( + amount=50000, + description='Payout for order #1111' +) \ No newline at end of file diff --git a/snippets/debit-dispute-show.py b/snippets/debit-dispute-show.py new file mode 100644 index 0000000..538169d --- /dev/null +++ b/snippets/debit-dispute-show.py @@ -0,0 +1,3 @@ +# debit_href is the stored href of the debit +debit = balanced.Debit.fetch(debit_href) +dispute = debit.dispute \ No newline at end of file diff --git a/snippets/dispute-list.py b/snippets/dispute-list.py new file mode 100644 index 0000000..753e764 --- /dev/null +++ b/snippets/dispute-list.py @@ -0,0 +1 @@ +disputes = balanced.Dispute.query \ No newline at end of file diff --git a/snippets/dispute-show.py b/snippets/dispute-show.py new file mode 100644 index 0000000..7f66314 --- /dev/null +++ b/snippets/dispute-show.py @@ -0,0 +1,2 @@ +# dispute_href is the stored href of the dispute +dispute = balanced.Dispute.fetch(dispute_href) \ No newline at end of file diff --git a/snippets/marketplace-in-escrow.py b/snippets/marketplace-in-escrow.py new file mode 100644 index 0000000..401a4b3 --- /dev/null +++ b/snippets/marketplace-in-escrow.py @@ -0,0 +1 @@ +balanced.Marketplace.my_marketplace.in_escrow \ No newline at end of file diff --git a/snippets/refund-create.py b/snippets/refund-create.py new file mode 100644 index 0000000..2101e4a --- /dev/null +++ b/snippets/refund-create.py @@ -0,0 +1,11 @@ +# debit_href is the stored href for the Debit +debit = balanced.Debit.fetch(debit_href) +refund = debit.refund( + amount=3000, + description="Refund for Order #1111", + meta={ + "merchant.feedback": "positive", + "user.refund_reason": "not happy with product", + "fulfillment.item.condition": "OK", + } +) \ No newline at end of file diff --git a/snippets/reversal-create.py b/snippets/reversal-create.py new file mode 100644 index 0000000..de082d5 --- /dev/null +++ b/snippets/reversal-create.py @@ -0,0 +1,11 @@ +# credit_href is the stored href for the Credit +credit = balanced.Credit.fetch(credit_href) +reversal = credit.reverse( + amount=100000, + description="Reversal for order #1111", + meta={ + "merchant.feedback": "positive", + "user.refund_reason": "not happy with product", + "fulfillment.item.condition": "OK" + } +) \ No newline at end of file From 98c76987167a65220a4491c8f97ab761567b07d5 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Fri, 15 Aug 2014 16:00:25 -0600 Subject: [PATCH 65/93] Add more snippets --- snippets/create-buyer-and-card.py | 13 +++++++++++++ snippets/credit-reverse.py | 2 ++ snippets/customer-create.py | 8 ++++++++ snippets/debit-refund.py | 1 + snippets/examine-order-after-refund.py | 3 +++ snippets/examine-order-after-reversal.py | 3 +++ snippets/order-amount-escrowed.py | 3 +++ snippets/order-bank-account-create.py | 8 ++++++++ snippets/order-create.py | 1 + snippets/order-credit.py | 4 ++++ snippets/order-credits-fetch.py | 1 + snippets/order-debit.py | 4 ++++ snippets/order-debits-fetch.py | 1 + snippets/order-fetch.py | 1 + snippets/order-update.py | 5 +++++ 15 files changed, 58 insertions(+) create mode 100644 snippets/create-buyer-and-card.py create mode 100644 snippets/credit-reverse.py create mode 100644 snippets/customer-create.py create mode 100644 snippets/debit-refund.py create mode 100644 snippets/examine-order-after-refund.py create mode 100644 snippets/examine-order-after-reversal.py create mode 100644 snippets/order-amount-escrowed.py create mode 100644 snippets/order-bank-account-create.py create mode 100644 snippets/order-create.py create mode 100644 snippets/order-credit.py create mode 100644 snippets/order-credits-fetch.py create mode 100644 snippets/order-debit.py create mode 100644 snippets/order-debits-fetch.py create mode 100644 snippets/order-fetch.py create mode 100644 snippets/order-update.py diff --git a/snippets/create-buyer-and-card.py b/snippets/create-buyer-and-card.py new file mode 100644 index 0000000..8414e0c --- /dev/null +++ b/snippets/create-buyer-and-card.py @@ -0,0 +1,13 @@ +buyer = balanced.Customer( + name='John Buyer' +).save() + +card = balanced.Card( + expiration_month='12', + security_code='123', + number='5105105105105100', + expiration_year='2020', + name='John Buyer' +).save() + +card.associate_to(buyer) \ No newline at end of file diff --git a/snippets/credit-reverse.py b/snippets/credit-reverse.py new file mode 100644 index 0000000..c5d4b17 --- /dev/null +++ b/snippets/credit-reverse.py @@ -0,0 +1,2 @@ +credit = order.credits[0] +reversal = credit.reverse() \ No newline at end of file diff --git a/snippets/customer-create.py b/snippets/customer-create.py new file mode 100644 index 0000000..ca1d179 --- /dev/null +++ b/snippets/customer-create.py @@ -0,0 +1,8 @@ +merchant = balanced.Customer( + dob_year=1963, + dob_month=7, + name='Henry Ford', + address={ + 'postal_code': '48120' + } +).save() \ No newline at end of file diff --git a/snippets/debit-refund.py b/snippets/debit-refund.py new file mode 100644 index 0000000..f5eb7fb --- /dev/null +++ b/snippets/debit-refund.py @@ -0,0 +1 @@ +debit.refund() \ No newline at end of file diff --git a/snippets/examine-order-after-refund.py b/snippets/examine-order-after-refund.py new file mode 100644 index 0000000..03e46f5 --- /dev/null +++ b/snippets/examine-order-after-refund.py @@ -0,0 +1,3 @@ +order = balanced.Order.fetch(order_href) +order.amount # original order amount +order.amount_escrowed # will decrease by amount of reversed credit \ No newline at end of file diff --git a/snippets/examine-order-after-reversal.py b/snippets/examine-order-after-reversal.py new file mode 100644 index 0000000..9c0d264 --- /dev/null +++ b/snippets/examine-order-after-reversal.py @@ -0,0 +1,3 @@ +order = balanced.Order.fetch(order_href) +order.amount # original order amount +order.amount_escrowed # will increase by amount of reversed credit \ No newline at end of file diff --git a/snippets/order-amount-escrowed.py b/snippets/order-amount-escrowed.py new file mode 100644 index 0000000..9cb3b33 --- /dev/null +++ b/snippets/order-amount-escrowed.py @@ -0,0 +1,3 @@ +order.reload # reload the order to get recent changes +order.amount +order.amount_escrowed \ No newline at end of file diff --git a/snippets/order-bank-account-create.py b/snippets/order-bank-account-create.py new file mode 100644 index 0000000..350cc21 --- /dev/null +++ b/snippets/order-bank-account-create.py @@ -0,0 +1,8 @@ +bank_account = balanced.BankAccount( + routing_number='121000358', + type='checking', + account_number='9900000001', + name='Henry Ford' +).save() + +bank_account.associate_to(merchant) \ No newline at end of file diff --git a/snippets/order-create.py b/snippets/order-create.py new file mode 100644 index 0000000..a888a46 --- /dev/null +++ b/snippets/order-create.py @@ -0,0 +1 @@ +order = merchant.create_order() \ No newline at end of file diff --git a/snippets/order-credit.py b/snippets/order-credit.py new file mode 100644 index 0000000..a5a6d17 --- /dev/null +++ b/snippets/order-credit.py @@ -0,0 +1,4 @@ +order.credit_to( + destination=bank_account, + amount=8000 +) \ No newline at end of file diff --git a/snippets/order-credits-fetch.py b/snippets/order-credits-fetch.py new file mode 100644 index 0000000..1b76eef --- /dev/null +++ b/snippets/order-credits-fetch.py @@ -0,0 +1 @@ +order.credits \ No newline at end of file diff --git a/snippets/order-debit.py b/snippets/order-debit.py new file mode 100644 index 0000000..d5a76bd --- /dev/null +++ b/snippets/order-debit.py @@ -0,0 +1,4 @@ +debit = order.debit_from( + source=card, + amount=10000 +) \ No newline at end of file diff --git a/snippets/order-debits-fetch.py b/snippets/order-debits-fetch.py new file mode 100644 index 0000000..ef19236 --- /dev/null +++ b/snippets/order-debits-fetch.py @@ -0,0 +1 @@ +order.debits \ No newline at end of file diff --git a/snippets/order-fetch.py b/snippets/order-fetch.py new file mode 100644 index 0000000..809edb8 --- /dev/null +++ b/snippets/order-fetch.py @@ -0,0 +1 @@ +order = balanced.Order.fetch(order_href) \ No newline at end of file diff --git a/snippets/order-update.py b/snippets/order-update.py new file mode 100644 index 0000000..aa543ca --- /dev/null +++ b/snippets/order-update.py @@ -0,0 +1,5 @@ +order.description = 'Item description' +order.meta = { + 'item_url': 'https://neatitems.com/12342134123' +} +order.save() \ No newline at end of file From e1de5e795316fba9c0d5ff4370aeec7df986489c Mon Sep 17 00:00:00 2001 From: richie serna Date: Tue, 19 Aug 2014 20:39:39 -0700 Subject: [PATCH 66/93] escrow snippets --- snippets/credit-marketplace-escrow.py | 4 ++++ snippets/debit-marketplace-escrow.py | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 snippets/credit-marketplace-escrow.py create mode 100644 snippets/debit-marketplace-escrow.py diff --git a/snippets/credit-marketplace-escrow.py b/snippets/credit-marketplace-escrow.py new file mode 100644 index 0000000..f1e522c --- /dev/null +++ b/snippets/credit-marketplace-escrow.py @@ -0,0 +1,4 @@ +balanced.Marketplace.mine.owner_customer.bank_accounts[0].credit( + amount=2000000, + description='Credit from Balanced escrow' +) \ No newline at end of file diff --git a/snippets/debit-marketplace-escrow.py b/snippets/debit-marketplace-escrow.py new file mode 100644 index 0000000..f612b65 --- /dev/null +++ b/snippets/debit-marketplace-escrow.py @@ -0,0 +1,4 @@ +balanced.Marketplace.mine.owner_customer.bank_accounts[0].debit( + amount=2000000, + description='Pre-fund Balanced escrow' +) \ No newline at end of file From 65c1408b463312cacb4cee9c1a9d1477d3a204fd Mon Sep 17 00:00:00 2001 From: richie serna Date: Wed, 20 Aug 2014 12:46:10 -0700 Subject: [PATCH 67/93] Add order-credit-marketplace snippet --- snippets/order-credit-marketplace.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 snippets/order-credit-marketplace.py diff --git a/snippets/order-credit-marketplace.py b/snippets/order-credit-marketplace.py new file mode 100644 index 0000000..aef09ba --- /dev/null +++ b/snippets/order-credit-marketplace.py @@ -0,0 +1,4 @@ +balanced.Marketplace.mine.owner_customer.bank_accounts[0].credit( + amount=2000, + description="Credit from order escrow to marketplace bank account" +) \ No newline at end of file From 4a2329b990dfaeef133adb03886956a9acfe9c17 Mon Sep 17 00:00:00 2001 From: richie serna Date: Wed, 20 Aug 2014 14:48:29 -0700 Subject: [PATCH 68/93] Edit credit-reverse --- snippets/credit-reverse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/credit-reverse.py b/snippets/credit-reverse.py index c5d4b17..a8463fb 100644 --- a/snippets/credit-reverse.py +++ b/snippets/credit-reverse.py @@ -1,2 +1,2 @@ -credit = order.credits[0] +credit = balanced.Credit.fetch(credit_href) reversal = credit.reverse() \ No newline at end of file From f1a3b50dcd854c461312293efe613d190f74163b Mon Sep 17 00:00:00 2001 From: richie serna Date: Wed, 20 Aug 2014 15:19:20 -0700 Subject: [PATCH 69/93] Make seperate snippets for fetch --- snippets/credit-fetch.py | 1 + snippets/credit-reverse.py | 1 - snippets/debit-fetch.py | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 snippets/credit-fetch.py create mode 100644 snippets/debit-fetch.py diff --git a/snippets/credit-fetch.py b/snippets/credit-fetch.py new file mode 100644 index 0000000..3f404e7 --- /dev/null +++ b/snippets/credit-fetch.py @@ -0,0 +1 @@ +credit = balanced.Credit.fetch(credit_href) \ No newline at end of file diff --git a/snippets/credit-reverse.py b/snippets/credit-reverse.py index a8463fb..1c28d61 100644 --- a/snippets/credit-reverse.py +++ b/snippets/credit-reverse.py @@ -1,2 +1 @@ -credit = balanced.Credit.fetch(credit_href) reversal = credit.reverse() \ No newline at end of file diff --git a/snippets/debit-fetch.py b/snippets/debit-fetch.py new file mode 100644 index 0000000..3d1450b --- /dev/null +++ b/snippets/debit-fetch.py @@ -0,0 +1 @@ +debit = balanced.Debit.fetch(debit_href) \ No newline at end of file From b87b488840452cef6894b23b289dcbfc728ab957 Mon Sep 17 00:00:00 2001 From: richie serna Date: Thu, 21 Aug 2014 14:37:40 -0700 Subject: [PATCH 70/93] Add order param to credit and debit scenarios --- snippets/bank-account-debit.py | 4 +++- snippets/card-credit.py | 4 +++- snippets/card-debit.py | 4 +++- snippets/credit-create.py | 4 +++- snippets/credit-soft-descriptor.py | 4 +++- snippets/refund-create.py | 4 +++- snippets/reversal-create.py | 4 +++- 7 files changed, 21 insertions(+), 7 deletions(-) diff --git a/snippets/bank-account-debit.py b/snippets/bank-account-debit.py index 2fd6c64..4948ff7 100644 --- a/snippets/bank-account-debit.py +++ b/snippets/bank-account-debit.py @@ -1,7 +1,9 @@ # bank_account_href is the stored href for the BankAccount +# order_href is the stored href for the Order bank_account = balanced.BankAccount.fetch(bank_account_href) bank_account.debit( appears_on_statement_as='Statement text', amount=5000, - description='Some descriptive text for the debit in the dashboard' + description='Some descriptive text for the debit in the dashboard', + order=order_href ) \ No newline at end of file diff --git a/snippets/card-credit.py b/snippets/card-credit.py index d03ede8..185a1cd 100644 --- a/snippets/card-credit.py +++ b/snippets/card-credit.py @@ -1,7 +1,9 @@ # card_href is the stored href for the Card +# order_href is the stored href for the Order card = balanced.Card.fetch(card_href) card.credit( appears_on_statement_as='Some text', amount=5000, - description='Some descriptive text for the debit in the dashboard' + description='Some descriptive text for the debit in the dashboard', + order=order_href ) \ No newline at end of file diff --git a/snippets/card-debit.py b/snippets/card-debit.py index d20da1b..58ad26c 100644 --- a/snippets/card-debit.py +++ b/snippets/card-debit.py @@ -1,7 +1,9 @@ # card_href is the stored href for the Card +# order_href is the stored href for the Order card = balanced.Card.fetch(card_href) card.debit( appears_on_statement_as='Statement text', amount=5000, - description='Some descriptive text for the debit in the dashboard' + description='Some descriptive text for the debit in the dashboard', + order=order_href ) \ No newline at end of file diff --git a/snippets/credit-create.py b/snippets/credit-create.py index ddfc1be..6e1887e 100644 --- a/snippets/credit-create.py +++ b/snippets/credit-create.py @@ -1,6 +1,8 @@ # bank_account_href is the stored href for the BankAccount +# order_href is the stored href for the Order bank_account = balanced.BankAccount.fetch(bank_account_href) credit = bank_account.credit( amount=100000, - description='Payout for order #1111' + description='Payout for order #1111', + order=order_href ) \ No newline at end of file diff --git a/snippets/credit-soft-descriptor.py b/snippets/credit-soft-descriptor.py index cecab2b..abd2f79 100644 --- a/snippets/credit-soft-descriptor.py +++ b/snippets/credit-soft-descriptor.py @@ -1,7 +1,9 @@ # bank_account_href is the stored href for the BankAccount +# order_href is the stored href for the Order bank_account = balanced.BankAccount.fetch(bank_account_href) credit = bank_account.credit( amount=100000, description='Payout for order #1111', - appears_on_statement_as='GoodCo #1111' + appears_on_statement_as='GoodCo #1111', + order=order_href ) \ No newline at end of file diff --git a/snippets/refund-create.py b/snippets/refund-create.py index 2101e4a..95bad17 100644 --- a/snippets/refund-create.py +++ b/snippets/refund-create.py @@ -1,4 +1,5 @@ # debit_href is the stored href for the Debit +# order_href is the stored href for the Order debit = balanced.Debit.fetch(debit_href) refund = debit.refund( amount=3000, @@ -7,5 +8,6 @@ "merchant.feedback": "positive", "user.refund_reason": "not happy with product", "fulfillment.item.condition": "OK", - } + }, + order=order_href ) \ No newline at end of file diff --git a/snippets/reversal-create.py b/snippets/reversal-create.py index de082d5..bc175d3 100644 --- a/snippets/reversal-create.py +++ b/snippets/reversal-create.py @@ -1,4 +1,5 @@ # credit_href is the stored href for the Credit +# order_href is the stored href for the Order credit = balanced.Credit.fetch(credit_href) reversal = credit.reverse( amount=100000, @@ -7,5 +8,6 @@ "merchant.feedback": "positive", "user.refund_reason": "not happy with product", "fulfillment.item.condition": "OK" - } + }, + order=order_href ) \ No newline at end of file From 9d77106b6e8a420e6e853cc859938d653c9c5669 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Fri, 29 Aug 2014 10:58:38 -0600 Subject: [PATCH 71/93] Add card-associate-to-customer snippet --- snippets/card-associate-to-customer.py | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 snippets/card-associate-to-customer.py diff --git a/snippets/card-associate-to-customer.py b/snippets/card-associate-to-customer.py new file mode 100644 index 0000000..634ae43 --- /dev/null +++ b/snippets/card-associate-to-customer.py @@ -0,0 +1,2 @@ +card = balanced.Card.fetch(card_href) +card.associate_to_customer(customer_href) \ No newline at end of file From c0a7e707453bf0ecf729f03e3a588abaaf1826c5 Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Wed, 10 Sep 2014 16:23:42 -0700 Subject: [PATCH 72/93] restore examples --- examples/__init__.py | 1 + examples/accounting.py | 126 +++++++++++++++++++++++++++++++ examples/bank_account_debits.py | 59 +++++++++++++++ examples/events_and_callbacks.py | 78 +++++++++++++++++++ examples/examples.py | 111 +++++++++++++++++++++++++++ examples/helpers/__init__.py | 30 ++++++++ examples/orders.py | 69 +++++++++++++++++ 7 files changed, 474 insertions(+) create mode 100644 examples/__init__.py create mode 100644 examples/accounting.py create mode 100644 examples/bank_account_debits.py create mode 100644 examples/events_and_callbacks.py create mode 100644 examples/examples.py create mode 100644 examples/helpers/__init__.py create mode 100644 examples/orders.py diff --git a/examples/__init__.py b/examples/__init__.py new file mode 100644 index 0000000..1b4dc46 --- /dev/null +++ b/examples/__init__.py @@ -0,0 +1 @@ +__author__ = 'marshall' diff --git a/examples/accounting.py b/examples/accounting.py new file mode 100644 index 0000000..e4280f5 --- /dev/null +++ b/examples/accounting.py @@ -0,0 +1,126 @@ +#!/usr/bin/env python +''' +Generate a csv report of month end transaction balances; +please ensure your RAM is commensurate with your transaction volume. + +python examples/accounting.py --api_key [Marketplace API Key] > Report.csv +python examples/accounting.py --api_key [Marketplace API Key] --use_cache > gnuplot ... + +''' + +import argparse +import calendar +import csv +from itertools import groupby +import os +import pickle +import sys + +import balanced + + +def generate_report(args): + balanced.configure(args.api_key) + marketplace = balanced.Marketplace.mine + + if args.use_cache: + credits = pickle.load(open('cache/credits.obj')) + debits = pickle.load(open('cache/debits.obj')) + refunds = pickle.load(open('cache/refunds.obj')) + + else: + if not os.path.exists('./cache'): + os.makedirs('./cache') + + print 'Downloading Debits' + debits = balanced.Debit.query.all() + + print 'Downloading Credits' + credits = balanced.Credit.query.all() + + print 'Downloading Refunds' + refunds = balanced.Refund.query.all() + + print 'Caching Transactions' + with open('cache/debits.obj', 'w') as f: + pickle.dump(debits, f) + + with open('cache/credits.obj', 'w') as f: + pickle.dump(credits, f) + + with open('cache/refunds.obj', 'w') as f: + pickle.dump(refunds, f) + + txns = sorted(credits + debits + refunds, key=lambda x: x.created_at) + + def group(xs, head, tail): + return {key: [tail(x) for x in group] + for key, group in + groupby(sorted(xs, key=head), + head)} + + # (year, month, txn) + txns_by_period = [(t.created_at.year, + t.created_at.month, + t) for t in txns] + + # {year: [(month, txn)]} + txns_by_year = group(txns_by_period, + lambda (y, m, txn): y, + lambda (y, m, txn): (m, txn)) + + group_by_month = lambda xs: group(xs, lambda (a, b): a, lambda (a, b): b) + + # {year: {month: [txn]}} + txns_by_year_by_month = {key: group_by_month(txns_by_year[key]) + for key in txns_by_year} + + headers = ['Year', 'Month', 'Debits', 'Refunds', 'Credits', + 'Credits Pending', 'Escrow Balance'] + writer = csv.DictWriter(sys.stdout, headers) + writer.writeheader() + rolling_balance = 0 + + for year in sorted(txns_by_year_by_month): + for month in sorted(txns_by_year_by_month[year]): + txns = txns_by_year_by_month[year][month] + monthly_credits = [txn for txn in txns + if type(txn) == balanced.resources.Credit] + monthly_debits = [txn for txn in txns + if type(txn) == balanced.resources.Debit] + monthly_refunds = [txn for txn in txns + if type(txn) == balanced.resources.Refund] + + credit_amount = sum([c.amount for c in monthly_credits + if c.status == 'paid']) + debit_amount = sum([d.amount for d in monthly_debits + if d.status == 'succeeded']) + refund_amount = sum([r.amount for r in monthly_refunds]) + credits_pending_amount = sum([c.amount for c in monthly_credits + if c.status == 'pending']) + + rolling_balance += debit_amount + rolling_balance -= (refund_amount + credit_amount) + + row = {} + row['Year'] = str(year) + row['Month'] = calendar.month_name[month] + row['Debits'] = debit_amount / 100.0 + row['Refunds'] = refund_amount / 100.0 + row['Credits'] = credit_amount / 100.0 + row['Credits Pending'] = credits_pending_amount / 100.0 + row['Escrow Balance'] = (rolling_balance - + credits_pending_amount) / 100.0 + writer.writerow(row) + +def main(): + arg_parser = argparse.ArgumentParser() + arg_parser.add_argument('--api_key', action='store', dest='api_key', + required=True) + arg_parser.add_argument('--use_cache', action='store_true') + args = arg_parser.parse_args() + generate_report(args) + + +if __name__ == '__main__': + main() diff --git a/examples/bank_account_debits.py b/examples/bank_account_debits.py new file mode 100644 index 0000000..280fea0 --- /dev/null +++ b/examples/bank_account_debits.py @@ -0,0 +1,59 @@ +''' +Learn how to verify a bank account so you can debit with it. +''' +from __future__ import unicode_literals + +import balanced + + +def init(): + key = balanced.APIKey().save() + balanced.configure(key.secret) + balanced.Marketplace().save() + + +def main(): + init() + + # create a bank account + bank_account = balanced.BankAccount( + account_number='1234567890', + routing_number='321174851', + name='Jack Q Merchant', + ).save() + customer = balanced.Customer().save() + bank_account.associate_to_customer(customer) + + print 'you can\'t debit until you authenticate' + try: + bank_account.debit(100) + except balanced.exc.HTTPError as ex: + print 'Debit failed, %s' % ex.message + + # verify + verification = bank_account.verify() + + print 'PROTIP: for TEST bank accounts the valid amount is always 1 and 1' + try: + verification.confirm(amount_1=1, amount_2=2) + except balanced.exc.BankAccountVerificationFailure as ex: + print 'Authentication error , %s' % ex.message + + # reload + verification = balanced.BankAccount.fetch( + bank_account.href + ).bank_account_verification + + if verification.confirm(1, 1).verification_status != 'succeeded': + raise Exception('unpossible') + debit = bank_account.debit(100) + + print 'debited the bank account %s for %d cents' % ( + debit.source.href, + debit.amount + ) + print 'and there you have it' + + +if __name__ == '__main__': + main() diff --git a/examples/events_and_callbacks.py b/examples/events_and_callbacks.py new file mode 100644 index 0000000..8597185 --- /dev/null +++ b/examples/events_and_callbacks.py @@ -0,0 +1,78 @@ +""" +Welcome weary traveller. Sick of polling for state changes? Well today have I +got good news for you. Run this example below to see how to get yourself some +callback goodness and to understand how events work. +""" +from __future__ import unicode_literals +import time + +import balanced + +from helpers import RequestBinClient + + +def init(): + key = balanced.APIKey().save() + balanced.configure(key.secret) + balanced.Marketplace().save() + + +def main(): + init() + request_bin = RequestBinClient() + + print 'let\'s create a callback' + balanced.Callback( + url=request_bin.callback_url, + ).save() + + print "let's create a customer" + balanced.Customer(name='Bob McTavish').save() + + print 'let\'s create a card and associate it with a new account' + card = balanced.Card( + expiration_month='12', + csc='123', + number='5105105105105100', + expiration_year='2020', + ).save() + + print 'generate a debit (which implicitly creates and captures a hold)' + card.debit(100) + + print 'event creation is an async operation, let\'s wait until we have ' \ + 'some events!' + while not balanced.Event.query.count(): + print 'Zzzz' + time.sleep(0) + + print 'Woop, we got some events, let us see what there is to look at' + for event in balanced.Event.query: + print 'this was a {0} event, it occurred at {1}, the callback has a ' \ + 'status of {2}'.format( + event.type, + event.occurred_at, + event.callback_statuses + ) + + print 'you can inspect each event to see the logs' + event = balanced.Event.query.first() + for callback in event.callbacks: + print 'inspecting callback to {0} for event {1}'.format( + callback.url, + event.type, + ) + for log in callback.logs: + print 'this attempt to the callback has a status "{0}"'.format( + log.status + ) + + print 'ok, let\'s check with requestb.in to see if our callbacks fired' + print 'we received {0} callbacks, you can view them at {1}'.format( + len(request_bin.get_requests()), + request_bin.view_url, + ) + + +if __name__ == '__main__': + main() diff --git a/examples/examples.py b/examples/examples.py new file mode 100644 index 0000000..463fcd4 --- /dev/null +++ b/examples/examples.py @@ -0,0 +1,111 @@ +from __future__ import unicode_literals + +import balanced + + +print "create our new api key" +api_key = balanced.APIKey().save() +print "Our secret is: ", api_key.secret + +print "configure with our secret " + api_key.secret +balanced.configure(api_key.secret) + +print "create our marketplace" +marketplace = balanced.Marketplace().save() + +# what's my marketplace? +if not balanced.Marketplace.my_marketplace: + raise Exception("Marketplace.my_marketplace should not be nil") +print "what's my marketplace?, easy: Marketplace.my_marketplace: {0}".format( + balanced.Marketplace.my_marketplace +) + +print "My marketplace's name is: {0}".format(marketplace.name) +print "Changing it to TestFooey" +marketplace.name = "TestFooey" +marketplace.save() +print "My marketplace name is now: {0}".format(marketplace.name) +if marketplace.name != 'TestFooey': + raise Exception("Marketplace name is NOT TestFooey!") + +print "cool! let's create a new card." +card = balanced.Card( + number="5105105105105100", + expiration_month="12", + expiration_year="2015", +).save() + +print "Our card href: " + card.href + +print "create our **buyer** account" +buyer = balanced.Customer(email="buyer@example.org", source=card).save() +print "our buyer account: " + buyer.href + +print "hold some amount of funds on the buyer, lets say 15$" +the_hold = card.hold(1500) + +print "ok, no more holds! lets just capture it (for the full amount)" +debit = the_hold.capture() + +print "hmm, how much money do i have in escrow? should equal the debit amount" +marketplace = balanced.Marketplace.my_marketplace +if marketplace.in_escrow != 1500: + raise Exception("1500 is not in escrow! this is wrong") +print "i have {0} in escrow!".format(marketplace.in_escrow) + +print "cool. now let me refund the full amount" +refund = debit.refund() # the full amount! + +print ("ok, we have a merchant that's signing up, let's create an account for " + "them first, lets create their bank account.") + +bank_account = balanced.BankAccount( + account_number="1234567890", + routing_number="321174851", + name="Jack Q Merchant", +).save() + +merchant = balanced.Customer( + email_address="merchant@example.org", + name="Billy Jones", + address={ + 'street_address': "801 High St.", + 'postal_code': "94301", + 'country': "USA", + }, + dob="1842-01", + phone_number="+16505551234", + destination=bank_account, +).save() + +print "oh our buyer is interested in buying something for 130.00$" +another_debit = card.debit(13000, appears_on_statement_as="MARKETPLACE.COM") + +print "lets credit our merchant 110.00$" +credit = bank_account.credit( + 11000, description="Buyer purchased something on MARKETPLACE.COM") + +print "lets assume the marketplace charges 15%, so it earned $20" +mp_credit = marketplace.owner_customer.bank_accounts.first().credit( + 2000, description="Our commission from MARKETPLACE.COM") + +print "ok lets invalid a card" +card.delete() + +assert buyer.cards.count() == 0 + +print "invalidating a bank account" +bank_account.delete() + +print "associate a card with an exiting customer" +card = balanced.Card( + number="5105105105105100", + expiration_month="12", + expiration_year="2015", +).save() + +card.associate_to_customer(buyer) + +assert buyer.cards.count() == 1 + +print "and there you have it :)" diff --git a/examples/helpers/__init__.py b/examples/helpers/__init__.py new file mode 100644 index 0000000..3018e1b --- /dev/null +++ b/examples/helpers/__init__.py @@ -0,0 +1,30 @@ +from __future__ import unicode_literals +import simplejson as json + +import requests + + +class RequestBinClient(object): + base_url = 'http://requestb.in/api/v1' + create_url = base_url + '/bins' + + def __init__(self): + response = requests.post(self.create_url) + self.bin = json.loads(response.text) + + def get_requests(self): + response = requests.get( + self.create_url + '/{}/requests'.format(self.bin['name']) + ) + return json.loads(response.text) + + @property + def callback_url(self): + return 'http://requestb.in/{}'.format(self.bin['name']) + + @property + def view_url(self): + return self.callback_url + '?inspect' + + def __str__(self): + return str(self.bin) diff --git a/examples/orders.py b/examples/orders.py new file mode 100644 index 0000000..95f8d34 --- /dev/null +++ b/examples/orders.py @@ -0,0 +1,69 @@ +from __future__ import unicode_literals + +import balanced + + +key = balanced.APIKey().save() +balanced.configure(key.secret) +balanced.Marketplace().save() + +# here's the merchant customer who is going to be the recipient of the order +merchant = balanced.Customer().save() +bank_account = balanced.BankAccount( + account_number="1234567890", + routing_number="321174851", + name="Jack Q Merchant", +).save() +bank_account.associate_to_customer(merchant) + +order = merchant.create_order(description='foo order') + +card = balanced.Card( + number="5105105105105100", + expiration_month="12", + expiration_year="2015", +).save() + +# debit the card and associate with the order. +card.debit(amount=100, order=order) + +order = balanced.Order.fetch(order.href) + +# the order captured the amount of the debit +assert order.amount_escrowed == 100 + +# pay out half +credit = bank_account.credit(amount=50, order=order) + +order = balanced.Order.fetch(order.href) + +# half the money remains +assert order.amount_escrowed == 50 + +# let's try paying out to another funding instrument that is not the recipient +# of the order. +another_bank_account = balanced.BankAccount( + account_number="1234567890", + routing_number="321174851", + name="Jack Q Merchant", +).save() + +another_merchant = balanced.Customer().save() +another_bank_account.associate_to_customer(another_merchant) + +# cannot credit to a bank account which is not assigned to either the +# marketplace or the merchant associated with the order. +try: + another_credit = another_bank_account.credit(amount=50, order=order) +except balanced.exc.BalancedError as ex: + print ex + +assert ex is not None + +# bring the money back again +reversal = credit.reverse() + +order = balanced.Order.fetch(order.href) + +# order escrow is topped up again +assert order.amount_escrowed == 100 From 9e75bb61d4aeba2981ded041e0dd15ba50d278ff Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Wed, 10 Sep 2014 16:33:29 -0700 Subject: [PATCH 73/93] example of how we can demonstrate errors for balanced/balanced-docs#450 --- examples/error_handling.py | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 examples/error_handling.py diff --git a/examples/error_handling.py b/examples/error_handling.py new file mode 100644 index 0000000..9283d89 --- /dev/null +++ b/examples/error_handling.py @@ -0,0 +1,44 @@ +from __future__ import unicode_literals + +import balanced + + +api_key = balanced.APIKey().save() +balanced.configure(api_key.secret) +marketplace = balanced.Marketplace().save() + +# https://docs.balancedpayments.com/1.1/overview/resources/#test-credit-card-numbers + +declined_card = balanced.Card( + number='4444444444444448', + expiration_month='12', + expiration_year='2015', +).save() + +bank_account = balanced.BankAccount( + account_number='1234567890', + routing_number='321174851', + name='Jack Q Merchant', +).save() + +# see https://github.com/balanced/balanced-api/blob/master/fixtures/_models/error.json for all possible error codes +try: + declined_card.debit(amount=100) +except balanced.exc.BalancedError as ex: + assert ex.category_code == 'card-declined' + +try: + bank_account.credit(amount=1000) +except balanced.exc.HTTPError as ex: + assert ex.category_code == 'insufficient-funds' + +try: + balanced.Card().save() +except balanced.exc.BalancedError as ex: + # generic missing data has a category-code of request + assert ex.category_code == 'request' + # inspect extras to see the exact field that caused the error + print ex.extras + # if you want to talk to a Balanced support person about an error, give + # them the request ID + print ex.request_id From f385019456edee9a02b273e2854db6b22949b4ae Mon Sep 17 00:00:00 2001 From: richie serna Date: Mon, 15 Sep 2014 19:45:40 -0700 Subject: [PATCH 74/93] Fix scenario for bank_account_associate_to_customer --- scenarios/_mj/api_key_create/executable.py | 2 +- scenarios/api_key_create/executable.py | 2 +- scenarios/api_key_create/python.mako | 4 ++-- scenarios/api_key_delete/executable.py | 4 ++-- scenarios/api_key_delete/python.mako | 4 ++-- scenarios/api_key_list/executable.py | 2 +- scenarios/api_key_list/python.mako | 2 +- scenarios/api_key_show/executable.py | 4 ++-- scenarios/api_key_show/python.mako | 6 +++--- .../definition.mako | 2 +- .../bank_account_associate_to_customer/executable.py | 6 +++--- .../bank_account_associate_to_customer/python.mako | 10 +++++----- .../bank_account_associate_to_customer/request.mako | 4 ++-- scenarios/bank_account_create/executable.py | 2 +- scenarios/bank_account_create/python.mako | 4 ++-- scenarios/bank_account_credit/executable.py | 4 ++-- scenarios/bank_account_credit/python.mako | 6 +++--- scenarios/bank_account_debit/executable.py | 4 ++-- scenarios/bank_account_debit/python.mako | 6 +++--- scenarios/bank_account_delete/executable.py | 4 ++-- scenarios/bank_account_delete/python.mako | 4 ++-- scenarios/bank_account_list/executable.py | 2 +- scenarios/bank_account_list/python.mako | 2 +- scenarios/bank_account_show/executable.py | 4 ++-- scenarios/bank_account_show/python.mako | 6 +++--- scenarios/bank_account_update/executable.py | 4 ++-- scenarios/bank_account_update/python.mako | 6 +++--- .../bank_account_verification_create/executable.py | 4 ++-- .../bank_account_verification_create/python.mako | 6 +++--- .../bank_account_verification_show/executable.py | 4 ++-- scenarios/bank_account_verification_show/python.mako | 6 +++--- .../bank_account_verification_update/executable.py | 4 ++-- .../bank_account_verification_update/python.mako | 6 +++--- scenarios/callback_create/executable.py | 2 +- scenarios/callback_create/python.mako | 4 ++-- scenarios/callback_delete/executable.py | 4 ++-- scenarios/callback_delete/python.mako | 4 ++-- scenarios/callback_list/executable.py | 2 +- scenarios/callback_list/python.mako | 2 +- scenarios/callback_show/executable.py | 4 ++-- scenarios/callback_show/python.mako | 6 +++--- scenarios/card_associate_to_customer/executable.py | 6 +++--- scenarios/card_associate_to_customer/python.mako | 8 ++++---- scenarios/card_create/executable.py | 2 +- scenarios/card_create/python.mako | 4 ++-- scenarios/card_create_creditable/executable.py | 2 +- scenarios/card_create_creditable/python.mako | 4 ++-- scenarios/card_create_dispute/executable.py | 2 +- scenarios/card_create_dispute/python.mako | 4 ++-- scenarios/card_credit/executable.py | 4 ++-- scenarios/card_credit/python.mako | 6 +++--- scenarios/card_debit/executable.py | 4 ++-- scenarios/card_debit/python.mako | 6 +++--- scenarios/card_debit_dispute/executable.py | 4 ++-- scenarios/card_debit_dispute/python.mako | 6 +++--- scenarios/card_delete/executable.py | 4 ++-- scenarios/card_delete/python.mako | 4 ++-- scenarios/card_hold_capture/executable.py | 4 ++-- scenarios/card_hold_capture/python.mako | 6 +++--- scenarios/card_hold_create/executable.py | 4 ++-- scenarios/card_hold_create/python.mako | 6 +++--- scenarios/card_hold_list/executable.py | 2 +- scenarios/card_hold_list/python.mako | 2 +- scenarios/card_hold_show/executable.py | 4 ++-- scenarios/card_hold_show/python.mako | 6 +++--- scenarios/card_hold_update/executable.py | 4 ++-- scenarios/card_hold_update/python.mako | 6 +++--- scenarios/card_hold_void/executable.py | 4 ++-- scenarios/card_hold_void/python.mako | 6 +++--- scenarios/card_list/executable.py | 2 +- scenarios/card_list/python.mako | 2 +- scenarios/card_show/executable.py | 4 ++-- scenarios/card_show/python.mako | 6 +++--- scenarios/card_update/executable.py | 4 ++-- scenarios/card_update/python.mako | 6 +++--- scenarios/credit_list/executable.py | 2 +- scenarios/credit_list/python.mako | 2 +- scenarios/credit_list_bank_account/executable.py | 4 ++-- scenarios/credit_list_bank_account/python.mako | 12 ------------ scenarios/credit_order/executable.py | 6 +++--- scenarios/credit_show/executable.py | 4 ++-- scenarios/credit_update/executable.py | 4 ++-- scenarios/customer_create/executable.py | 2 +- scenarios/customer_delete/executable.py | 4 ++-- scenarios/customer_list/executable.py | 2 +- scenarios/customer_show/executable.py | 4 ++-- scenarios/customer_update/executable.py | 4 ++-- scenarios/debit_dispute_show/executable.py | 4 ++-- scenarios/debit_list/executable.py | 2 +- scenarios/debit_order/executable.py | 6 +++--- scenarios/debit_show/executable.py | 4 ++-- scenarios/debit_update/executable.py | 4 ++-- scenarios/dispute_list/executable.py | 2 +- scenarios/dispute_show/executable.py | 4 ++-- scenarios/event_list/executable.py | 2 +- scenarios/event_show/executable.py | 4 ++-- scenarios/order_create/executable.py | 4 ++-- scenarios/order_list/executable.py | 2 +- scenarios/order_show/executable.py | 4 ++-- scenarios/order_update/executable.py | 4 ++-- scenarios/refund_create/executable.py | 4 ++-- scenarios/refund_list/executable.py | 2 +- scenarios/refund_show/executable.py | 4 ++-- scenarios/refund_update/executable.py | 4 ++-- scenarios/reversal_create/executable.py | 4 ++-- scenarios/reversal_list/executable.py | 2 +- scenarios/reversal_show/executable.py | 4 ++-- scenarios/reversal_update/executable.py | 4 ++-- 108 files changed, 214 insertions(+), 226 deletions(-) diff --git a/scenarios/_mj/api_key_create/executable.py b/scenarios/_mj/api_key_create/executable.py index 8fda0c4..bdd39b4 100644 --- a/scenarios/_mj/api_key_create/executable.py +++ b/scenarios/_mj/api_key_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') api_key = balanced.APIKey() api_key.save() \ No newline at end of file diff --git a/scenarios/api_key_create/executable.py b/scenarios/api_key_create/executable.py index d504419..c30abb1 100644 --- a/scenarios/api_key_create/executable.py +++ b/scenarios/api_key_create/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') api_key = balanced.APIKey().save() \ No newline at end of file diff --git a/scenarios/api_key_create/python.mako b/scenarios/api_key_create/python.mako index 4c062fb..f6c161d 100644 --- a/scenarios/api_key_create/python.mako +++ b/scenarios/api_key_create/python.mako @@ -3,9 +3,9 @@ balanced.APIKey() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') api_key = balanced.APIKey().save() % elif mode == 'response': -APIKey(links={}, created_at=u'2014-04-25T21:59:54.024155Z', secret=u'ak-test-2ouh9CXrssudvHruEZ1Ymcrna05kmigfw', href=u'/api_keys/AK7gg5FNb0Owb6hErcMm0CZ7', meta={}, id=u'AK7gg5FNb0Owb6hErcMm0CZ7') +APIKey(links={}, created_at=u'2014-09-02T18:22:50.910606Z', secret=u'ak-test-12V4LX8TtvvFnoZBNaf4WkgpbZr19E9iw', href=u'/api_keys/AK19Ap0xmiz0Oau3K4keBuwg', meta={}, id=u'AK19Ap0xmiz0Oau3K4keBuwg') % endif \ No newline at end of file diff --git a/scenarios/api_key_delete/executable.py b/scenarios/api_key_delete/executable.py index 9ea26c0..0d7ebd2 100644 --- a/scenarios/api_key_delete/executable.py +++ b/scenarios/api_key_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -key = balanced.APIKey.fetch('/api_keys/AK7gg5FNb0Owb6hErcMm0CZ7') +key = balanced.APIKey.fetch('/api_keys/AK19Ap0xmiz0Oau3K4keBuwg') key.delete() \ No newline at end of file diff --git a/scenarios/api_key_delete/python.mako b/scenarios/api_key_delete/python.mako index 2e34c58..b212a45 100644 --- a/scenarios/api_key_delete/python.mako +++ b/scenarios/api_key_delete/python.mako @@ -3,9 +3,9 @@ balanced.APIKey().delete() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -key = balanced.APIKey.fetch('/api_keys/AK7gg5FNb0Owb6hErcMm0CZ7') +key = balanced.APIKey.fetch('/api_keys/AK19Ap0xmiz0Oau3K4keBuwg') key.delete() % elif mode == 'response': diff --git a/scenarios/api_key_list/executable.py b/scenarios/api_key_list/executable.py index d868e55..98a9aa6 100644 --- a/scenarios/api_key_list/executable.py +++ b/scenarios/api_key_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') keys = balanced.APIKey.query \ No newline at end of file diff --git a/scenarios/api_key_list/python.mako b/scenarios/api_key_list/python.mako index 6258f02..a957bc3 100644 --- a/scenarios/api_key_list/python.mako +++ b/scenarios/api_key_list/python.mako @@ -4,7 +4,7 @@ balanced.APIKey.query % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') keys = balanced.APIKey.query % elif mode == 'response': diff --git a/scenarios/api_key_show/executable.py b/scenarios/api_key_show/executable.py index 3086627..c9ec176 100644 --- a/scenarios/api_key_show/executable.py +++ b/scenarios/api_key_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -key = balanced.APIKey.fetch('/api_keys/AK7gg5FNb0Owb6hErcMm0CZ7') \ No newline at end of file +key = balanced.APIKey.fetch('/api_keys/AK19Ap0xmiz0Oau3K4keBuwg') \ No newline at end of file diff --git a/scenarios/api_key_show/python.mako b/scenarios/api_key_show/python.mako index a5f89ac..9da7f07 100644 --- a/scenarios/api_key_show/python.mako +++ b/scenarios/api_key_show/python.mako @@ -4,9 +4,9 @@ balanced.APIKey.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -key = balanced.APIKey.fetch('/api_keys/AK7gg5FNb0Owb6hErcMm0CZ7') +key = balanced.APIKey.fetch('/api_keys/AK19Ap0xmiz0Oau3K4keBuwg') % elif mode == 'response': -APIKey(created_at=u'2014-04-25T21:59:54.024155Z', href=u'/api_keys/AK7gg5FNb0Owb6hErcMm0CZ7', meta={}, id=u'AK7gg5FNb0Owb6hErcMm0CZ7', links={}) +APIKey(created_at=u'2014-09-02T18:22:50.910606Z', href=u'/api_keys/AK19Ap0xmiz0Oau3K4keBuwg', meta={}, id=u'AK19Ap0xmiz0Oau3K4keBuwg', links={}) % endif \ No newline at end of file diff --git a/scenarios/bank_account_associate_to_customer/definition.mako b/scenarios/bank_account_associate_to_customer/definition.mako index 2090176..e04424c 100644 --- a/scenarios/bank_account_associate_to_customer/definition.mako +++ b/scenarios/bank_account_associate_to_customer/definition.mako @@ -1 +1 @@ -balanced.Card().associate_to_customer() \ No newline at end of file +balanced.BankAccount().associate_to_customer() \ No newline at end of file diff --git a/scenarios/bank_account_associate_to_customer/executable.py b/scenarios/bank_account_associate_to_customer/executable.py index ef29c79..bbaee6d 100644 --- a/scenarios/bank_account_associate_to_customer/executable.py +++ b/scenarios/bank_account_associate_to_customer/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card = balanced.Card.fetch('/bank_accounts/BA7zu6QXmylsn0o6qVpS8UO9') -card.associate_to_customer('/customers/CU7yCmXG2RxyyIkcHG3SIMUF') \ No newline at end of file +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3bgtBxC3q4N9QvlN2jqFnL') +bank_account.associate_to_customer('/customers/CU36bqPshRNopkLNM6qBmn5e') \ No newline at end of file diff --git a/scenarios/bank_account_associate_to_customer/python.mako b/scenarios/bank_account_associate_to_customer/python.mako index 4610960..1c42048 100644 --- a/scenarios/bank_account_associate_to_customer/python.mako +++ b/scenarios/bank_account_associate_to_customer/python.mako @@ -1,12 +1,12 @@ % if mode == 'definition': -balanced.Card().associate_to_customer() +balanced.BankAccount().associate_to_customer() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card = balanced.Card.fetch('/bank_accounts/BA7zu6QXmylsn0o6qVpS8UO9') -card.associate_to_customer('/customers/CU7yCmXG2RxyyIkcHG3SIMUF') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3bgtBxC3q4N9QvlN2jqFnL') +bank_account.associate_to_customer('/customers/CU36bqPshRNopkLNM6qBmn5e') % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': u'CU7yCmXG2RxyyIkcHG3SIMUF', u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-25T22:00:11.119953Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-25T22:00:11.625350Z', href=u'/bank_accounts/BA7zu6QXmylsn0o6qVpS8UO9', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA7zu6QXmylsn0o6qVpS8UO9') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': u'CU36bqPshRNopkLNM6qBmn5e', u'bank_account_verification': None}, can_credit=True, created_at=u'2014-09-02T18:24:42.657919Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-09-02T18:24:43.444387Z', href=u'/bank_accounts/BA3bgtBxC3q4N9QvlN2jqFnL', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA3bgtBxC3q4N9QvlN2jqFnL') % endif \ No newline at end of file diff --git a/scenarios/bank_account_associate_to_customer/request.mako b/scenarios/bank_account_associate_to_customer/request.mako index 71ec07b..bafa956 100644 --- a/scenarios/bank_account_associate_to_customer/request.mako +++ b/scenarios/bank_account_associate_to_customer/request.mako @@ -1,5 +1,5 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -card = balanced.Card.fetch('${request['uri']}') -card.associate_to_customer('${request['payload']['customer']}') \ No newline at end of file +bank_account = balanced.BankAccount.fetch('${request['uri']}') +bank_account.associate_to_customer('${request['payload']['customer']}') \ No newline at end of file diff --git a/scenarios/bank_account_create/executable.py b/scenarios/bank_account_create/executable.py index eff4a8d..38d1295 100644 --- a/scenarios/bank_account_create/executable.py +++ b/scenarios/bank_account_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') bank_account = balanced.BankAccount( routing_number='121000358', diff --git a/scenarios/bank_account_create/python.mako b/scenarios/bank_account_create/python.mako index 7b3daf1..d2c3b2c 100644 --- a/scenarios/bank_account_create/python.mako +++ b/scenarios/bank_account_create/python.mako @@ -3,7 +3,7 @@ balanced.BankAccount().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') bank_account = balanced.BankAccount( routing_number='121000358', @@ -12,5 +12,5 @@ bank_account = balanced.BankAccount( name='Johann Bernoulli' ).save() % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-25T22:00:11.119953Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-25T22:00:11.119956Z', href=u'/bank_accounts/BA7zu6QXmylsn0o6qVpS8UO9', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA7zu6QXmylsn0o6qVpS8UO9') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-09-02T18:24:42.657919Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-09-02T18:24:42.657921Z', href=u'/bank_accounts/BA3bgtBxC3q4N9QvlN2jqFnL', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA3bgtBxC3q4N9QvlN2jqFnL') % endif \ No newline at end of file diff --git a/scenarios/bank_account_credit/executable.py b/scenarios/bank_account_credit/executable.py index 48bb66a..448711f 100644 --- a/scenarios/bank_account_credit/executable.py +++ b/scenarios/bank_account_credit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7zu6QXmylsn0o6qVpS8UO9') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3bgtBxC3q4N9QvlN2jqFnL') bank_account.credit( amount=5000 ) \ No newline at end of file diff --git a/scenarios/bank_account_credit/python.mako b/scenarios/bank_account_credit/python.mako index f2f66fc..92315f8 100644 --- a/scenarios/bank_account_credit/python.mako +++ b/scenarios/bank_account_credit/python.mako @@ -3,12 +3,12 @@ balanced.BankAccount().credit() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7zu6QXmylsn0o6qVpS8UO9') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3bgtBxC3q4N9QvlN2jqFnL') bank_account.credit( amount=5000 ) % elif mode == 'response': -Credit(status=u'succeeded', description=None, links={u'customer': u'CU7yCmXG2RxyyIkcHG3SIMUF', u'destination': u'BA7zu6QXmylsn0o6qVpS8UO9', u'order': None}, amount=5000, created_at=u'2014-04-25T22:08:58.386422Z', updated_at=u'2014-04-25T22:08:58.659857Z', failure_reason=None, currency=u'USD', transaction_number=u'CR964-486-9546', href=u'/credits/CR1ynmPUlJGbV9EMyqkowHJP', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR1ynmPUlJGbV9EMyqkowHJP') +Credit(status=u'pending', description=None, links={u'customer': u'CU36bqPshRNopkLNM6qBmn5e', u'destination': u'BA3bgtBxC3q4N9QvlN2jqFnL', u'order': None}, amount=5000, created_at=u'2014-09-02T18:28:47.307588Z', updated_at=u'2014-09-02T18:28:47.915602Z', failure_reason=None, currency=u'USD', transaction_number=u'CR3I1-TR1-JKT6', href=u'/credits/CR7CqCpjWl6O9BjxrQVOFi48', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR7CqCpjWl6O9BjxrQVOFi48') % endif \ No newline at end of file diff --git a/scenarios/bank_account_debit/executable.py b/scenarios/bank_account_debit/executable.py index 70763c3..6813b35 100644 --- a/scenarios/bank_account_debit/executable.py +++ b/scenarios/bank_account_debit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7lb2roygfhwDfbvikDLcHP') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1BPjHr0Gjc62pLAlkYCH1b') bank_account.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/bank_account_debit/python.mako b/scenarios/bank_account_debit/python.mako index e47574a..a43f09d 100644 --- a/scenarios/bank_account_debit/python.mako +++ b/scenarios/bank_account_debit/python.mako @@ -3,14 +3,14 @@ balanced.BankAccount().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7lb2roygfhwDfbvikDLcHP') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1BPjHr0Gjc62pLAlkYCH1b') bank_account.debit( appears_on_statement_as='Statement text', amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'BA7lb2roygfhwDfbvikDLcHP', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T22:00:13.215147Z', updated_at=u'2014-04-25T22:00:13.474988Z', failure_reason=None, currency=u'USD', transaction_number=u'W037-237-6091', href=u'/debits/WD7BQhTIsYYSdWYr3QkpTSml', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD7BQhTIsYYSdWYr3QkpTSml') +Debit(status=u'pending', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'BA1BPjHr0Gjc62pLAlkYCH1b', u'dispute': None, u'order': None, u'card_hold': None}, amount=5000, created_at=u'2014-09-02T18:24:59.115893Z', updated_at=u'2014-09-02T18:25:00.089340Z', failure_reason=None, currency=u'USD', transaction_number=u'W0KT-SJE-TDSG', href=u'/debits/WD3tMiqbzhAWHwFKTwYH7DTq', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD3tMiqbzhAWHwFKTwYH7DTq') % endif \ No newline at end of file diff --git a/scenarios/bank_account_delete/executable.py b/scenarios/bank_account_delete/executable.py index e673077..2f2ae29 100644 --- a/scenarios/bank_account_delete/executable.py +++ b/scenarios/bank_account_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7sojXcP7oSdQyrjUA7wXg9') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S') bank_account.delete() \ No newline at end of file diff --git a/scenarios/bank_account_delete/python.mako b/scenarios/bank_account_delete/python.mako index ec576f4..e032e33 100644 --- a/scenarios/bank_account_delete/python.mako +++ b/scenarios/bank_account_delete/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount().delete() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7sojXcP7oSdQyrjUA7wXg9') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S') bank_account.delete() % elif mode == 'response': diff --git a/scenarios/bank_account_list/executable.py b/scenarios/bank_account_list/executable.py index 33d4724..84daaa8 100644 --- a/scenarios/bank_account_list/executable.py +++ b/scenarios/bank_account_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') bank_accounts = balanced.BankAccount.query \ No newline at end of file diff --git a/scenarios/bank_account_list/python.mako b/scenarios/bank_account_list/python.mako index bfb1eba..0de7446 100644 --- a/scenarios/bank_account_list/python.mako +++ b/scenarios/bank_account_list/python.mako @@ -4,7 +4,7 @@ balanced.BankAccount.query % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') bank_accounts = balanced.BankAccount.query % elif mode == 'response': diff --git a/scenarios/bank_account_show/executable.py b/scenarios/bank_account_show/executable.py index 5ad432b..8c744e1 100644 --- a/scenarios/bank_account_show/executable.py +++ b/scenarios/bank_account_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7sojXcP7oSdQyrjUA7wXg9') \ No newline at end of file +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S') \ No newline at end of file diff --git a/scenarios/bank_account_show/python.mako b/scenarios/bank_account_show/python.mako index c744c5e..7c504e6 100644 --- a/scenarios/bank_account_show/python.mako +++ b/scenarios/bank_account_show/python.mako @@ -4,9 +4,9 @@ balanced.BankAccount.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7sojXcP7oSdQyrjUA7wXg9') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S') % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-25T22:00:04.813389Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-25T22:00:04.813391Z', href=u'/bank_accounts/BA7sojXcP7oSdQyrjUA7wXg9', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA7sojXcP7oSdQyrjUA7wXg9') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-09-02T18:24:02.713640Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-09-02T18:24:02.713644Z', href=u'/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA2slfzsDvZRXkfl2C3pbN9S') % endif \ No newline at end of file diff --git a/scenarios/bank_account_update/executable.py b/scenarios/bank_account_update/executable.py index 48b5d7b..32853f5 100644 --- a/scenarios/bank_account_update/executable.py +++ b/scenarios/bank_account_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7sojXcP7oSdQyrjUA7wXg9') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S') bank_account.meta = { 'twitter.id'='1234987650', 'facebook.user_id'='0192837465', diff --git a/scenarios/bank_account_update/python.mako b/scenarios/bank_account_update/python.mako index 61ce9fa..9b3fe9e 100644 --- a/scenarios/bank_account_update/python.mako +++ b/scenarios/bank_account_update/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7sojXcP7oSdQyrjUA7wXg9') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S') bank_account.meta = { 'twitter.id'='1234987650', 'facebook.user_id'='0192837465', @@ -13,5 +13,5 @@ bank_account.meta = { } bank_account.save() % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-04-25T22:00:04.813389Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-04-25T22:00:08.225025Z', href=u'/bank_accounts/BA7sojXcP7oSdQyrjUA7wXg9', meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA7sojXcP7oSdQyrjUA7wXg9') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-09-02T18:24:02.713640Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-09-02T18:24:23.144885Z', href=u'/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S', meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA2slfzsDvZRXkfl2C3pbN9S') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/executable.py b/scenarios/bank_account_verification_create/executable.py index 34672a5..b461ff4 100644 --- a/scenarios/bank_account_verification_create/executable.py +++ b/scenarios/bank_account_verification_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7lb2roygfhwDfbvikDLcHP') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1BPjHr0Gjc62pLAlkYCH1b') verification = bank_account.verify() \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/python.mako b/scenarios/bank_account_verification_create/python.mako index deca961..70e2142 100644 --- a/scenarios/bank_account_verification_create/python.mako +++ b/scenarios/bank_account_verification_create/python.mako @@ -3,10 +3,10 @@ balanced.BankAccountVerification().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7lb2roygfhwDfbvikDLcHP') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1BPjHr0Gjc62pLAlkYCH1b') verification = bank_account.verify() % elif mode == 'response': -BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA7lb2roygfhwDfbvikDLcHP'}, created_at=u'2014-04-25T22:00:00.062125Z', attempts_remaining=3, updated_at=u'2014-04-25T22:00:00.483961Z', deposit_status=u'succeeded', attempts=0, href=u'/verifications/BZ7n38gpwYou03mkP4Vt83Cl', meta={}, id=u'BZ7n38gpwYou03mkP4Vt83Cl') +BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA1BPjHr0Gjc62pLAlkYCH1b'}, created_at=u'2014-09-02T18:23:26.288399Z', attempts_remaining=3, updated_at=u'2014-09-02T18:23:26.288402Z', deposit_status=u'pending', attempts=0, href=u'/verifications/BZ1NndEHupZUuYDNPf75qXPv', meta={}, id=u'BZ1NndEHupZUuYDNPf75qXPv') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/executable.py b/scenarios/bank_account_verification_show/executable.py index ba384a8..16fa9a5 100644 --- a/scenarios/bank_account_verification_show/executable.py +++ b/scenarios/bank_account_verification_show/executable.py @@ -1,4 +1,4 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ7n38gpwYou03mkP4Vt83Cl') \ No newline at end of file +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ1NndEHupZUuYDNPf75qXPv') \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/python.mako b/scenarios/bank_account_verification_show/python.mako index d8c8fbc..cf4a2c7 100644 --- a/scenarios/bank_account_verification_show/python.mako +++ b/scenarios/bank_account_verification_show/python.mako @@ -4,8 +4,8 @@ balanced.BankAccountVerification.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ7n38gpwYou03mkP4Vt83Cl') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ1NndEHupZUuYDNPf75qXPv') % elif mode == 'response': -BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA7lb2roygfhwDfbvikDLcHP'}, created_at=u'2014-04-25T22:00:00.062125Z', attempts_remaining=3, updated_at=u'2014-04-25T22:00:00.483961Z', deposit_status=u'succeeded', attempts=0, href=u'/verifications/BZ7n38gpwYou03mkP4Vt83Cl', meta={}, id=u'BZ7n38gpwYou03mkP4Vt83Cl') +BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA1BPjHr0Gjc62pLAlkYCH1b'}, created_at=u'2014-09-02T18:23:26.288399Z', attempts_remaining=3, updated_at=u'2014-09-02T18:23:26.288402Z', deposit_status=u'pending', attempts=0, href=u'/verifications/BZ1NndEHupZUuYDNPf75qXPv', meta={}, id=u'BZ1NndEHupZUuYDNPf75qXPv') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/executable.py b/scenarios/bank_account_verification_update/executable.py index 2b4f772..578564f 100644 --- a/scenarios/bank_account_verification_update/executable.py +++ b/scenarios/bank_account_verification_update/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ7n38gpwYou03mkP4Vt83Cl') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ1NndEHupZUuYDNPf75qXPv') verification.confirm(amount_1=1, amount_2=1) \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/python.mako b/scenarios/bank_account_verification_update/python.mako index c774e68..da8e5d7 100644 --- a/scenarios/bank_account_verification_update/python.mako +++ b/scenarios/bank_account_verification_update/python.mako @@ -3,10 +3,10 @@ balanced.BankAccountVerification().confirm() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ7n38gpwYou03mkP4Vt83Cl') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ1NndEHupZUuYDNPf75qXPv') verification.confirm(amount_1=1, amount_2=1) % elif mode == 'response': -BankAccountVerification(verification_status=u'succeeded', links={u'bank_account': u'BA7lb2roygfhwDfbvikDLcHP'}, created_at=u'2014-04-25T22:00:00.062125Z', attempts_remaining=2, updated_at=u'2014-04-25T22:00:03.198401Z', deposit_status=u'succeeded', attempts=1, href=u'/verifications/BZ7n38gpwYou03mkP4Vt83Cl', meta={}, id=u'BZ7n38gpwYou03mkP4Vt83Cl') +BankAccountVerification(verification_status=u'succeeded', links={u'bank_account': u'BA1BPjHr0Gjc62pLAlkYCH1b'}, created_at=u'2014-09-02T18:23:26.288399Z', attempts_remaining=2, updated_at=u'2014-09-02T18:23:51.019250Z', deposit_status=u'succeeded', attempts=1, href=u'/verifications/BZ1NndEHupZUuYDNPf75qXPv', meta={}, id=u'BZ1NndEHupZUuYDNPf75qXPv') % endif \ No newline at end of file diff --git a/scenarios/callback_create/executable.py b/scenarios/callback_create/executable.py index 0fb9dcf..6bf3a4a 100644 --- a/scenarios/callback_create/executable.py +++ b/scenarios/callback_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') callback = balanced.Callback( url='http://www.example.com/callback', diff --git a/scenarios/callback_create/python.mako b/scenarios/callback_create/python.mako index 9edf48b..6c89ce5 100644 --- a/scenarios/callback_create/python.mako +++ b/scenarios/callback_create/python.mako @@ -3,12 +3,12 @@ balanced.Callback() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') callback = balanced.Callback( url='http://www.example.com/callback', method='post' ).save() % elif mode == 'response': -Callback(links={}, url=u'http://www.example.com/callback', id=u'CB7DP9sW9wRe19dFRutynahb', href=u'/callbacks/CB7DP9sW9wRe19dFRutynahb', method=u'post', revision=u'1.1') +Callback(links={}, url=u'http://www.example.com/callback', id=u'CB3AuHtVP5mcxGS8OwnJwSrK', href=u'/callbacks/CB3AuHtVP5mcxGS8OwnJwSrK', method=u'post', revision=u'1.1') % endif \ No newline at end of file diff --git a/scenarios/callback_delete/executable.py b/scenarios/callback_delete/executable.py index 5ab288b..1f2b75f 100644 --- a/scenarios/callback_delete/executable.py +++ b/scenarios/callback_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -callback = balanced.Callback.fetch('/callbacks/CB7DP9sW9wRe19dFRutynahb') +callback = balanced.Callback.fetch('/callbacks/CB3AuHtVP5mcxGS8OwnJwSrK') callback.unstore() \ No newline at end of file diff --git a/scenarios/callback_delete/python.mako b/scenarios/callback_delete/python.mako index 37f73f4..88571ec 100644 --- a/scenarios/callback_delete/python.mako +++ b/scenarios/callback_delete/python.mako @@ -3,9 +3,9 @@ balanced.Callback().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -callback = balanced.Callback.fetch('/callbacks/CB7DP9sW9wRe19dFRutynahb') +callback = balanced.Callback.fetch('/callbacks/CB3AuHtVP5mcxGS8OwnJwSrK') callback.unstore() % elif mode == 'response': diff --git a/scenarios/callback_list/executable.py b/scenarios/callback_list/executable.py index 79f3279..b80abd2 100644 --- a/scenarios/callback_list/executable.py +++ b/scenarios/callback_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') callbacks = balanced.Callback.query \ No newline at end of file diff --git a/scenarios/callback_list/python.mako b/scenarios/callback_list/python.mako index 21d2b25..69d2cbd 100644 --- a/scenarios/callback_list/python.mako +++ b/scenarios/callback_list/python.mako @@ -4,7 +4,7 @@ balanced.Callback.query % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') callbacks = balanced.Callback.query % elif mode == 'response': diff --git a/scenarios/callback_show/executable.py b/scenarios/callback_show/executable.py index 70df25f..87c6408 100644 --- a/scenarios/callback_show/executable.py +++ b/scenarios/callback_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -callback = balanced.Callback.fetch('/callbacks/CB7DP9sW9wRe19dFRutynahb') \ No newline at end of file +callback = balanced.Callback.fetch('/callbacks/CB3AuHtVP5mcxGS8OwnJwSrK') \ No newline at end of file diff --git a/scenarios/callback_show/python.mako b/scenarios/callback_show/python.mako index 0a90ea7..2054ed3 100644 --- a/scenarios/callback_show/python.mako +++ b/scenarios/callback_show/python.mako @@ -4,9 +4,9 @@ balanced.Callback.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -callback = balanced.Callback.fetch('/callbacks/CB7DP9sW9wRe19dFRutynahb') +callback = balanced.Callback.fetch('/callbacks/CB3AuHtVP5mcxGS8OwnJwSrK') % elif mode == 'response': -Callback(links={}, url=u'http://www.example.com/callback', id=u'CB7DP9sW9wRe19dFRutynahb', href=u'/callbacks/CB7DP9sW9wRe19dFRutynahb', method=u'post', revision=u'1.1') +Callback(links={}, url=u'http://www.example.com/callback', id=u'CB3AuHtVP5mcxGS8OwnJwSrK', href=u'/callbacks/CB3AuHtVP5mcxGS8OwnJwSrK', method=u'post', revision=u'1.1') % endif \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/executable.py b/scenarios/card_associate_to_customer/executable.py index c015f6e..25a720a 100644 --- a/scenarios/card_associate_to_customer/executable.py +++ b/scenarios/card_associate_to_customer/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card = balanced.Card.fetch('/cards/CCf1fF6z2RjwvniinUVefhb') -card.associate_to_customer('/customers/CU7yCmXG2RxyyIkcHG3SIMUF') \ No newline at end of file +card = balanced.Card.fetch('/cards/CC526JELNk4pET43bVu6rGkZ') +card.associate_to_customer('/customers/CU36bqPshRNopkLNM6qBmn5e') \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/python.mako b/scenarios/card_associate_to_customer/python.mako index a679481..8cf0282 100644 --- a/scenarios/card_associate_to_customer/python.mako +++ b/scenarios/card_associate_to_customer/python.mako @@ -3,10 +3,10 @@ balanced.Card().associate_to_customer() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card = balanced.Card.fetch('/cards/CCf1fF6z2RjwvniinUVefhb') -card.associate_to_customer('/customers/CU7yCmXG2RxyyIkcHG3SIMUF') +card = balanced.Card.fetch('/cards/CC526JELNk4pET43bVu6rGkZ') +card.associate_to_customer('/customers/CU36bqPshRNopkLNM6qBmn5e') % elif mode == 'response': -Card(cvv_match=u'yes', links={u'customer': u'CU7yCmXG2RxyyIkcHG3SIMUF'}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-25T22:00:36.548055Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-25T22:00:37.042031Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CCf1fF6z2RjwvniinUVefhb', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CCf1fF6z2RjwvniinUVefhb', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) +Card(links={u'customer': u'CU36bqPshRNopkLNM6qBmn5e'}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC526JELNk4pET43bVu6rGkZ', type=u'credit', id=u'CC526JELNk4pET43bVu6rGkZ', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2014-09-02T18:26:25.351591Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={}, created_at=u'2014-09-02T18:26:24.764778Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/card_create/executable.py b/scenarios/card_create/executable.py index 5994bd2..a57eecd 100644 --- a/scenarios/card_create/executable.py +++ b/scenarios/card_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') card = balanced.Card( cvv='123', diff --git a/scenarios/card_create/python.mako b/scenarios/card_create/python.mako index 413887b..fe1c3e2 100644 --- a/scenarios/card_create/python.mako +++ b/scenarios/card_create/python.mako @@ -3,7 +3,7 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') card = balanced.Card( cvv='123', @@ -12,5 +12,5 @@ card = balanced.Card( expiration_year='2020' ).save() % elif mode == 'response': -Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-25T22:00:36.548055Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-25T22:00:36.548057Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CCf1fF6z2RjwvniinUVefhb', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CCf1fF6z2RjwvniinUVefhb', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) +Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC526JELNk4pET43bVu6rGkZ', type=u'credit', id=u'CC526JELNk4pET43bVu6rGkZ', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2014-09-02T18:26:24.764781Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={}, created_at=u'2014-09-02T18:26:24.764778Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/card_create_creditable/executable.py b/scenarios/card_create_creditable/executable.py index d941809..6836b9c 100644 --- a/scenarios/card_create_creditable/executable.py +++ b/scenarios/card_create_creditable/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2jJSjIixy2qkOMmIONPtXnawOUftBDRSK') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') card = balanced.Card( expiration_month='05', diff --git a/scenarios/card_create_creditable/python.mako b/scenarios/card_create_creditable/python.mako index f6dfcb9..70df939 100644 --- a/scenarios/card_create_creditable/python.mako +++ b/scenarios/card_create_creditable/python.mako @@ -3,7 +3,7 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-2jJSjIixy2qkOMmIONPtXnawOUftBDRSK') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') card = balanced.Card( expiration_month='05', @@ -12,5 +12,5 @@ card = balanced.Card( number='4342561111111118' ).save() % elif mode == 'response': -Card(links={u'customer': None}, cvv_result=None, number=u'xxxxxxxxxxxx1118', expiration_month=5, href=u'/cards/CC7nMc4BAti7DgvWmpGV5e6N', type=u'debit', id=u'CC7nMc4BAti7DgvWmpGV5e6N', category=u'other', is_verified=True, cvv_match=None, bank_name=u'WELLS FARGO BANK, N.A.', avs_street_match=None, brand=u'Visa', updated_at=u'2014-05-19T20:27:07.461894Z', fingerprint=u'7dc93d35b59078a1da8e0ebd2cbec65a6ca205760a1be1b90a143d7f2b00e355', can_debit=True, name=u'Johannes Bach', expiration_year=2020, cvv=None, avs_postal_match=None, avs_result=None, can_credit=True, meta={}, created_at=u'2014-05-19T20:27:07.461892Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) +Card(links={u'customer': None}, cvv_result=None, number=u'xxxxxxxxxxxx1118', expiration_month=5, href=u'/cards/CC5uc1B6fJPQBSJUi0m58tal', type=u'debit', id=u'CC5uc1B6fJPQBSJUi0m58tal', category=u'other', is_verified=True, cvv_match=None, bank_name=u'WELLS FARGO BANK, N.A.', avs_street_match=None, brand=u'Visa', updated_at=u'2014-09-02T18:26:49.735081Z', fingerprint=u'7dc93d35b59078a1da8e0ebd2cbec65a6ca205760a1be1b90a143d7f2b00e355', can_debit=True, name=u'Johannes Bach', expiration_year=2020, cvv=None, avs_postal_match=None, avs_result=None, can_credit=True, meta={}, created_at=u'2014-09-02T18:26:49.735079Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/card_create_dispute/executable.py b/scenarios/card_create_dispute/executable.py index 6150ad3..fd7835e 100644 --- a/scenarios/card_create_dispute/executable.py +++ b/scenarios/card_create_dispute/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') card = balanced.Card( cvv='123', diff --git a/scenarios/card_create_dispute/python.mako b/scenarios/card_create_dispute/python.mako index 4356a06..4b881a1 100644 --- a/scenarios/card_create_dispute/python.mako +++ b/scenarios/card_create_dispute/python.mako @@ -3,7 +3,7 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') card = balanced.Card( cvv='123', @@ -12,5 +12,5 @@ card = balanced.Card( expiration_year='3000' ).save() % elif mode == 'response': -Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=3000, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-25T22:01:02.497846Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx0002', updated_at=u'2014-04-25T22:01:02.497848Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CCIcOaBZBsK9o6Nbqmuu7B3', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CCIcOaBZBsK9o6Nbqmuu7B3', fingerprint=u'3c667a62653e187f29b5781eeb0703f26e99558080de0c0f9490b5f9c4ac2871', is_verified=True, brand=u'Discover', name=None) +Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx0002', expiration_month=12, href=u'/cards/CC6KXqaIUXHDh6BJpY2XqRTW', type=u'debit', id=u'CC6KXqaIUXHDh6BJpY2XqRTW', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF AMERICA', avs_street_match=None, brand=u'Discover', updated_at=u'2014-09-02T18:27:59.762352Z', fingerprint=u'3c667a62653e187f29b5781eeb0703f26e99558080de0c0f9490b5f9c4ac2871', can_debit=True, name=None, expiration_year=3000, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=True, meta={}, created_at=u'2014-09-02T18:27:59.762349Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/card_credit/executable.py b/scenarios/card_credit/executable.py index e9dd3c2..631e276 100644 --- a/scenarios/card_credit/executable.py +++ b/scenarios/card_credit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2jJSjIixy2qkOMmIONPtXnawOUftBDRSK') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card = balanced.Card.fetch('/cards/CC7nMc4BAti7DgvWmpGV5e6N') +card = balanced.Card.fetch('/cards/CC5uc1B6fJPQBSJUi0m58tal') card.credit( amount=5000, description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_credit/python.mako b/scenarios/card_credit/python.mako index 31f6367..f91fba8 100644 --- a/scenarios/card_credit/python.mako +++ b/scenarios/card_credit/python.mako @@ -3,13 +3,13 @@ balanced.Card().credit() % elif mode == 'request': import balanced -balanced.configure('ak-test-2jJSjIixy2qkOMmIONPtXnawOUftBDRSK') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card = balanced.Card.fetch('/cards/CC7nMc4BAti7DgvWmpGV5e6N') +card = balanced.Card.fetch('/cards/CC5uc1B6fJPQBSJUi0m58tal') card.credit( amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Credit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'destination': u'CC7nMc4BAti7DgvWmpGV5e6N', u'order': None}, amount=5000, created_at=u'2014-05-19T20:27:07.904059Z', updated_at=u'2014-05-19T20:27:08.244392Z', failure_reason=None, currency=u'USD', transaction_number=u'CR018-897-7930', href=u'/credits/CR7oh5wk2EfSuMu34r2YzT0l', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR7oh5wk2EfSuMu34r2YzT0l') +Credit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'destination': u'CC5uc1B6fJPQBSJUi0m58tal', u'order': None}, amount=5000, created_at=u'2014-09-02T18:26:50.236855Z', updated_at=u'2014-09-02T18:26:52.375308Z', failure_reason=None, currency=u'USD', transaction_number=u'CRPMG-R6D-1BDZ', href=u'/credits/CR5uKYvRhvGBNiMQuXKBcl0Y', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR5uKYvRhvGBNiMQuXKBcl0Y') % endif \ No newline at end of file diff --git a/scenarios/card_debit/executable.py b/scenarios/card_debit/executable.py index 9834f7f..97dc30d 100644 --- a/scenarios/card_debit/executable.py +++ b/scenarios/card_debit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card = balanced.Card.fetch('/cards/CCf1fF6z2RjwvniinUVefhb') +card = balanced.Card.fetch('/cards/CC526JELNk4pET43bVu6rGkZ') card.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/card_debit/python.mako b/scenarios/card_debit/python.mako index f3c24da..c36a102 100644 --- a/scenarios/card_debit/python.mako +++ b/scenarios/card_debit/python.mako @@ -3,14 +3,14 @@ balanced.Card().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card = balanced.Card.fetch('/cards/CCf1fF6z2RjwvniinUVefhb') +card = balanced.Card.fetch('/cards/CC526JELNk4pET43bVu6rGkZ') card.debit( appears_on_statement_as='Statement text', amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CU7yCmXG2RxyyIkcHG3SIMUF', u'source': u'CCf1fF6z2RjwvniinUVefhb', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T22:00:58.990911Z', updated_at=u'2014-04-25T22:00:59.631219Z', failure_reason=None, currency=u'USD', transaction_number=u'W359-587-1632', href=u'/debits/WDEg9ofx83CeAhiwI1QmA17', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WDEg9ofx83CeAhiwI1QmA17') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CU36bqPshRNopkLNM6qBmn5e', u'source': u'CC526JELNk4pET43bVu6rGkZ', u'dispute': None, u'order': None, u'card_hold': u'HL6pxgGDopPHeblb183AnZIY'}, amount=5000, created_at=u'2014-09-02T18:27:40.732341Z', updated_at=u'2014-09-02T18:27:52.735975Z', failure_reason=None, currency=u'USD', transaction_number=u'WPVT-4X8-G9SR', href=u'/debits/WD6pxYaIfe2CHQHoDj5pA2Xu', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD6pxYaIfe2CHQHoDj5pA2Xu') % endif \ No newline at end of file diff --git a/scenarios/card_debit_dispute/executable.py b/scenarios/card_debit_dispute/executable.py index 8676251..3dd1aad 100644 --- a/scenarios/card_debit_dispute/executable.py +++ b/scenarios/card_debit_dispute/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card = balanced.Card.fetch('/cards/CCIcOaBZBsK9o6Nbqmuu7B3') +card = balanced.Card.fetch('/cards/CC6KXqaIUXHDh6BJpY2XqRTW') card.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/card_debit_dispute/python.mako b/scenarios/card_debit_dispute/python.mako index 03f62fe..d77c883 100644 --- a/scenarios/card_debit_dispute/python.mako +++ b/scenarios/card_debit_dispute/python.mako @@ -3,14 +3,14 @@ balanced.Card().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card = balanced.Card.fetch('/cards/CCIcOaBZBsK9o6Nbqmuu7B3') +card = balanced.Card.fetch('/cards/CC6KXqaIUXHDh6BJpY2XqRTW') card.debit( appears_on_statement_as='Statement text', amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CCIcOaBZBsK9o6Nbqmuu7B3', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T22:01:03.293505Z', updated_at=u'2014-04-25T22:01:04.057459Z', failure_reason=None, currency=u'USD', transaction_number=u'W417-679-7417', href=u'/debits/WDJ66VlXnDyDx5AS5uplxyt', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WDJ66VlXnDyDx5AS5uplxyt') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC6KXqaIUXHDh6BJpY2XqRTW', u'dispute': None, u'order': None, u'card_hold': u'HL6LHgk1aC5vrktgu9raaSSF'}, amount=5000, created_at=u'2014-09-02T18:28:00.469964Z', updated_at=u'2014-09-02T18:28:06.464988Z', failure_reason=None, currency=u'USD', transaction_number=u'WWKX-A69-ZXTQ', href=u'/debits/WD6LJx0cm12NrjiXBR1okKt7', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD6LJx0cm12NrjiXBR1okKt7') % endif \ No newline at end of file diff --git a/scenarios/card_delete/executable.py b/scenarios/card_delete/executable.py index b844af3..493f864 100644 --- a/scenarios/card_delete/executable.py +++ b/scenarios/card_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card = balanced.Card.fetch('/cards/CC832pqCbRPor1ewRdxPvnv') +card = balanced.Card.fetch('/cards/CC4OTo7bbk25ZWmhdQCdXkPu') card.unstore() \ No newline at end of file diff --git a/scenarios/card_delete/python.mako b/scenarios/card_delete/python.mako index 37836ee..5171add 100644 --- a/scenarios/card_delete/python.mako +++ b/scenarios/card_delete/python.mako @@ -3,9 +3,9 @@ balanced.Card().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card = balanced.Card.fetch('/cards/CC832pqCbRPor1ewRdxPvnv') +card = balanced.Card.fetch('/cards/CC4OTo7bbk25ZWmhdQCdXkPu') card.unstore() % elif mode == 'response': diff --git a/scenarios/card_hold_capture/executable.py b/scenarios/card_hold_capture/executable.py index b4ff3bc..4c5fa94 100644 --- a/scenarios/card_hold_capture/executable.py +++ b/scenarios/card_hold_capture/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card_hold = balanced.CardHold.fetch('/card_holds/HL7K6mNHtWSl33Whc0WDOJ81') +card_hold = balanced.CardHold.fetch('/card_holds/HL4io3nFmawRhnkkUWnC1Eoo') debit = card_hold.capture( appears_on_statement_as='ShowsUpOnStmt', description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_capture/python.mako b/scenarios/card_hold_capture/python.mako index f7d1686..806f30c 100644 --- a/scenarios/card_hold_capture/python.mako +++ b/scenarios/card_hold_capture/python.mako @@ -3,13 +3,13 @@ balanced.CardHold().capture() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card_hold = balanced.CardHold.fetch('/card_holds/HL7K6mNHtWSl33Whc0WDOJ81') +card_hold = balanced.CardHold.fetch('/card_holds/HL4io3nFmawRhnkkUWnC1Eoo') debit = card_hold.capture( appears_on_statement_as='ShowsUpOnStmt', description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CU7c8cBtxfllT4M6zDyjbJA1', u'source': u'CC7JlMyXyZ8W3RBfE1SSlnrD', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T22:00:25.687801Z', updated_at=u'2014-04-25T22:00:26.140296Z', failure_reason=None, currency=u'USD', transaction_number=u'W113-190-1861', href=u'/debits/WD2NZluFdmQMTHhvyVjSjmp', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, appears_on_statement_as=u'BAL*ShowsUpOnStmt', id=u'WD2NZluFdmQMTHhvyVjSjmp') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC4hAPsanjFP7QWIIAAPAwKh', u'dispute': None, u'order': None, u'card_hold': u'HL4io3nFmawRhnkkUWnC1Eoo'}, amount=5000, created_at=u'2014-09-02T18:25:51.872425Z', updated_at=u'2014-09-02T18:26:00.911999Z', failure_reason=None, currency=u'USD', transaction_number=u'WH9W-VKH-QB1V', href=u'/debits/WD4r75TJSiVaTKmiASslPIR7', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, appears_on_statement_as=u'BAL*ShowsUpOnStmt', id=u'WD4r75TJSiVaTKmiASslPIR7') % endif \ No newline at end of file diff --git a/scenarios/card_hold_create/executable.py b/scenarios/card_hold_create/executable.py index 127f67a..d4e3c9d 100644 --- a/scenarios/card_hold_create/executable.py +++ b/scenarios/card_hold_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card = balanced.Card.fetch('/cards/CC7JlMyXyZ8W3RBfE1SSlnrD') +card = balanced.Card.fetch('/cards/CC4hAPsanjFP7QWIIAAPAwKh') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_create/python.mako b/scenarios/card_hold_create/python.mako index 9eed36b..fe79a6a 100644 --- a/scenarios/card_hold_create/python.mako +++ b/scenarios/card_hold_create/python.mako @@ -3,13 +3,13 @@ balanced.Card().hold() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card = balanced.Card.fetch('/cards/CC7JlMyXyZ8W3RBfE1SSlnrD') +card = balanced.Card.fetch('/cards/CC4hAPsanjFP7QWIIAAPAwKh') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC7JlMyXyZ8W3RBfE1SSlnrD', u'debit': None}, amount=5000, created_at=u'2014-04-25T22:00:27.337321Z', updated_at=u'2014-04-25T22:00:27.554476Z', expires_at=u'2014-05-02T22:00:27.441254Z', failure_reason=None, currency=u'USD', transaction_number=u'HL750-788-2579', href=u'/card_holds/HL4F8FdmMdyVxzE515FygGd', meta={}, failure_reason_code=None, voided_at=None, id=u'HL4F8FdmMdyVxzE515FygGd') +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC4hAPsanjFP7QWIIAAPAwKh', u'debit': None}, amount=5000, created_at=u'2014-09-02T18:26:02.180272Z', updated_at=u'2014-09-02T18:26:04.062983Z', expires_at=u'2014-09-09T18:26:03.227642Z', failure_reason=None, currency=u'USD', transaction_number=u'HL3O6-J0N-LZ9C', href=u'/card_holds/HL4CIbHV4zlSfx5c6eKK1AOY', meta={}, failure_reason_code=None, voided_at=None, id=u'HL4CIbHV4zlSfx5c6eKK1AOY') % endif \ No newline at end of file diff --git a/scenarios/card_hold_list/executable.py b/scenarios/card_hold_list/executable.py index 47b5150..f00357b 100644 --- a/scenarios/card_hold_list/executable.py +++ b/scenarios/card_hold_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') card_holds = balanced.CardHold.query \ No newline at end of file diff --git a/scenarios/card_hold_list/python.mako b/scenarios/card_hold_list/python.mako index 71e7399..8cbd0f8 100644 --- a/scenarios/card_hold_list/python.mako +++ b/scenarios/card_hold_list/python.mako @@ -4,7 +4,7 @@ balanced.CardHold.query % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') card_holds = balanced.CardHold.query % elif mode == 'response': diff --git a/scenarios/card_hold_show/executable.py b/scenarios/card_hold_show/executable.py index 5fc0bf0..82eb306 100644 --- a/scenarios/card_hold_show/executable.py +++ b/scenarios/card_hold_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card_hold = balanced.CardHold.fetch('/card_holds/HL7K6mNHtWSl33Whc0WDOJ81') \ No newline at end of file +card_hold = balanced.CardHold.fetch('/card_holds/HL4io3nFmawRhnkkUWnC1Eoo') \ No newline at end of file diff --git a/scenarios/card_hold_show/python.mako b/scenarios/card_hold_show/python.mako index 01821af..c8ef2a3 100644 --- a/scenarios/card_hold_show/python.mako +++ b/scenarios/card_hold_show/python.mako @@ -4,9 +4,9 @@ balanced.CardHold.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card_hold = balanced.CardHold.fetch('/card_holds/HL7K6mNHtWSl33Whc0WDOJ81') +card_hold = balanced.CardHold.fetch('/card_holds/HL4io3nFmawRhnkkUWnC1Eoo') % elif mode == 'response': -CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC7JlMyXyZ8W3RBfE1SSlnrD', u'debit': None}, amount=5000, created_at=u'2014-04-25T22:00:20.558033Z', updated_at=u'2014-04-25T22:00:20.741093Z', expires_at=u'2014-05-02T22:00:20.666972Z', failure_reason=None, currency=u'USD', transaction_number=u'HL046-527-6041', href=u'/card_holds/HL7K6mNHtWSl33Whc0WDOJ81', meta={}, failure_reason_code=None, voided_at=None, id=u'HL7K6mNHtWSl33Whc0WDOJ81') +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC4hAPsanjFP7QWIIAAPAwKh', u'debit': None}, amount=5000, created_at=u'2014-09-02T18:25:44.114448Z', updated_at=u'2014-09-02T18:25:46.117246Z', expires_at=u'2014-09-09T18:25:44.889479Z', failure_reason=None, currency=u'USD', transaction_number=u'HLOUQ-V39-L4PE', href=u'/card_holds/HL4io3nFmawRhnkkUWnC1Eoo', meta={}, failure_reason_code=None, voided_at=None, id=u'HL4io3nFmawRhnkkUWnC1Eoo') % endif \ No newline at end of file diff --git a/scenarios/card_hold_update/executable.py b/scenarios/card_hold_update/executable.py index d9f74b2..5eee024 100644 --- a/scenarios/card_hold_update/executable.py +++ b/scenarios/card_hold_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card_hold = balanced.CardHold.fetch('/card_holds/HL7K6mNHtWSl33Whc0WDOJ81') +card_hold = balanced.CardHold.fetch('/card_holds/HL4io3nFmawRhnkkUWnC1Eoo') card_hold.description = 'update this description' card_hold.meta = { 'holding.for': 'user1', diff --git a/scenarios/card_hold_update/python.mako b/scenarios/card_hold_update/python.mako index b5d6300..815368c 100644 --- a/scenarios/card_hold_update/python.mako +++ b/scenarios/card_hold_update/python.mako @@ -3,9 +3,9 @@ balanced.CardHold().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card_hold = balanced.CardHold.fetch('/card_holds/HL7K6mNHtWSl33Whc0WDOJ81') +card_hold = balanced.CardHold.fetch('/card_holds/HL4io3nFmawRhnkkUWnC1Eoo') card_hold.description = 'update this description' card_hold.meta = { 'holding.for': 'user1', @@ -13,5 +13,5 @@ card_hold.meta = { } card_hold.save() % elif mode == 'response': -CardHold(status=u'succeeded', description=u'update this description', links={u'card': u'CC7JlMyXyZ8W3RBfE1SSlnrD', u'debit': None}, amount=5000, created_at=u'2014-04-25T22:00:20.558033Z', updated_at=u'2014-04-25T22:00:24.531626Z', expires_at=u'2014-05-02T22:00:20.666972Z', failure_reason=None, currency=u'USD', transaction_number=u'HL046-527-6041', href=u'/card_holds/HL7K6mNHtWSl33Whc0WDOJ81', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, voided_at=None, id=u'HL7K6mNHtWSl33Whc0WDOJ81') +CardHold(status=u'succeeded', description=u'update this description', links={u'card': u'CC4hAPsanjFP7QWIIAAPAwKh', u'debit': None}, amount=5000, created_at=u'2014-09-02T18:25:44.114448Z', updated_at=u'2014-09-02T18:25:50.616558Z', expires_at=u'2014-09-09T18:25:44.889479Z', failure_reason=None, currency=u'USD', transaction_number=u'HLOUQ-V39-L4PE', href=u'/card_holds/HL4io3nFmawRhnkkUWnC1Eoo', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, voided_at=None, id=u'HL4io3nFmawRhnkkUWnC1Eoo') % endif \ No newline at end of file diff --git a/scenarios/card_hold_void/executable.py b/scenarios/card_hold_void/executable.py index aa4addc..902cd97 100644 --- a/scenarios/card_hold_void/executable.py +++ b/scenarios/card_hold_void/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card_hold = balanced.CardHold.fetch('/card_holds/HL4F8FdmMdyVxzE515FygGd') +card_hold = balanced.CardHold.fetch('/card_holds/HL4CIbHV4zlSfx5c6eKK1AOY') card_hold.cancel() \ No newline at end of file diff --git a/scenarios/card_hold_void/python.mako b/scenarios/card_hold_void/python.mako index f842e38..95ec1b5 100644 --- a/scenarios/card_hold_void/python.mako +++ b/scenarios/card_hold_void/python.mako @@ -3,10 +3,10 @@ balanced.CardHold().cancel() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card_hold = balanced.CardHold.fetch('/card_holds/HL4F8FdmMdyVxzE515FygGd') +card_hold = balanced.CardHold.fetch('/card_holds/HL4CIbHV4zlSfx5c6eKK1AOY') card_hold.cancel() % elif mode == 'response': -CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC7JlMyXyZ8W3RBfE1SSlnrD', u'debit': None}, amount=5000, created_at=u'2014-04-25T22:00:27.337321Z', updated_at=u'2014-04-25T22:00:28.055030Z', expires_at=u'2014-05-02T22:00:27.441254Z', failure_reason=None, currency=u'USD', transaction_number=u'HL750-788-2579', href=u'/card_holds/HL4F8FdmMdyVxzE515FygGd', meta={}, failure_reason_code=None, voided_at=u'2014-04-25T22:00:28.055033Z', id=u'HL4F8FdmMdyVxzE515FygGd') +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC4hAPsanjFP7QWIIAAPAwKh', u'debit': None}, amount=5000, created_at=u'2014-09-02T18:26:02.180272Z', updated_at=u'2014-09-02T18:26:04.701130Z', expires_at=u'2014-09-09T18:26:03.227642Z', failure_reason=None, currency=u'USD', transaction_number=u'HL3O6-J0N-LZ9C', href=u'/card_holds/HL4CIbHV4zlSfx5c6eKK1AOY', meta={}, failure_reason_code=None, voided_at=u'2014-09-02T18:26:04.701132Z', id=u'HL4CIbHV4zlSfx5c6eKK1AOY') % endif \ No newline at end of file diff --git a/scenarios/card_list/executable.py b/scenarios/card_list/executable.py index 540f667..bcd0cec 100644 --- a/scenarios/card_list/executable.py +++ b/scenarios/card_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') cards = balanced.Card.query \ No newline at end of file diff --git a/scenarios/card_list/python.mako b/scenarios/card_list/python.mako index 4d5b411..27f469b 100644 --- a/scenarios/card_list/python.mako +++ b/scenarios/card_list/python.mako @@ -4,7 +4,7 @@ balanced.Card.query % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') cards = balanced.Card.query % elif mode == 'response': diff --git a/scenarios/card_show/executable.py b/scenarios/card_show/executable.py index 4a26076..a048123 100644 --- a/scenarios/card_show/executable.py +++ b/scenarios/card_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card = balanced.Card.fetch('/cards/CC832pqCbRPor1ewRdxPvnv') \ No newline at end of file +card = balanced.Card.fetch('/cards/CC4OTo7bbk25ZWmhdQCdXkPu') \ No newline at end of file diff --git a/scenarios/card_show/python.mako b/scenarios/card_show/python.mako index 3ee7c6e..3b76527 100644 --- a/scenarios/card_show/python.mako +++ b/scenarios/card_show/python.mako @@ -3,9 +3,9 @@ balanced.Card.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card = balanced.Card.fetch('/cards/CC832pqCbRPor1ewRdxPvnv') +card = balanced.Card.fetch('/cards/CC4OTo7bbk25ZWmhdQCdXkPu') % elif mode == 'response': -Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-25T22:00:30.351615Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-25T22:00:30.351617Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CC832pqCbRPor1ewRdxPvnv', meta={}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CC832pqCbRPor1ewRdxPvnv', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) +Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC4OTo7bbk25ZWmhdQCdXkPu', type=u'credit', id=u'CC4OTo7bbk25ZWmhdQCdXkPu', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2014-09-02T18:26:13.013304Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={}, created_at=u'2014-09-02T18:26:13.013301Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/card_update/executable.py b/scenarios/card_update/executable.py index 09f2446..b424f53 100644 --- a/scenarios/card_update/executable.py +++ b/scenarios/card_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card = balanced.Card.fetch('/cards/CC832pqCbRPor1ewRdxPvnv') +card = balanced.Card.fetch('/cards/CC4OTo7bbk25ZWmhdQCdXkPu') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/card_update/python.mako b/scenarios/card_update/python.mako index 979d156..1ff2bb3 100644 --- a/scenarios/card_update/python.mako +++ b/scenarios/card_update/python.mako @@ -3,9 +3,9 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -card = balanced.Card.fetch('/cards/CC832pqCbRPor1ewRdxPvnv') +card = balanced.Card.fetch('/cards/CC4OTo7bbk25ZWmhdQCdXkPu') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', @@ -13,5 +13,5 @@ card.meta = { } card.save() % elif mode == 'response': -Card(cvv_match=u'yes', links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-04-25T22:00:30.351615Z', cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', updated_at=u'2014-04-25T22:00:34.108853Z', expiration_month=12, cvv=u'xxx', href=u'/cards/CC832pqCbRPor1ewRdxPvnv', meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, avs_result=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, id=u'CC832pqCbRPor1ewRdxPvnv', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) +Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC4OTo7bbk25ZWmhdQCdXkPu', type=u'credit', id=u'CC4OTo7bbk25ZWmhdQCdXkPu', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2014-09-02T18:26:17.011527Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, created_at=u'2014-09-02T18:26:13.013301Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/credit_list/executable.py b/scenarios/credit_list/executable.py index 226dc4b..72d6222 100644 --- a/scenarios/credit_list/executable.py +++ b/scenarios/credit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') credits = balanced.Credit.query \ No newline at end of file diff --git a/scenarios/credit_list/python.mako b/scenarios/credit_list/python.mako index 98bebad..1e73ae2 100644 --- a/scenarios/credit_list/python.mako +++ b/scenarios/credit_list/python.mako @@ -4,7 +4,7 @@ balanced.Credit.query % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') credits = balanced.Credit.query % elif mode == 'response': diff --git a/scenarios/credit_list_bank_account/executable.py b/scenarios/credit_list_bank_account/executable.py index 09cecb0..b6ffb8b 100644 --- a/scenarios/credit_list_bank_account/executable.py +++ b/scenarios/credit_list_bank_account/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7sojXcP7oSdQyrjUA7wXg9/credits') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S/credits') credits = bank_account.credits \ No newline at end of file diff --git a/scenarios/credit_list_bank_account/python.mako b/scenarios/credit_list_bank_account/python.mako index 83af7ec..e69de29 100644 --- a/scenarios/credit_list_bank_account/python.mako +++ b/scenarios/credit_list_bank_account/python.mako @@ -1,12 +0,0 @@ -% if mode == 'definition': -balanced.BankAccount().credits -% elif mode == 'request': -import balanced - -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') - -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA7sojXcP7oSdQyrjUA7wXg9/credits') -credits = bank_account.credits -% elif mode == 'response': - -% endif \ No newline at end of file diff --git a/scenarios/credit_order/executable.py b/scenarios/credit_order/executable.py index 695d5fc..0396210 100644 --- a/scenarios/credit_order/executable.py +++ b/scenarios/credit_order/executable.py @@ -1,9 +1,9 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -order = balanced.Order.fetch('/orders/OR5QcYnwysJXQswImokq6ZSx') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA5KLH6jhFgtVENHXOcF3Cfj/credits') +order = balanced.Order.fetch('/orders/OR5EZkSOSTsmYJlJi6UlrUmp') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3bgtBxC3q4N9QvlN2jqFnL/credits') order.credit_to( amount=5000, destination=bank_account diff --git a/scenarios/credit_show/executable.py b/scenarios/credit_show/executable.py index 4310983..0231b4d 100644 --- a/scenarios/credit_show/executable.py +++ b/scenarios/credit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -credit = balanced.Credit.fetch('/credits/CRjCksasJ36xjkBXRYvlCh7') \ No newline at end of file +credit = balanced.Credit.fetch('/credits/CR5z2Z4kFI12xAe5NQhWSjvD') \ No newline at end of file diff --git a/scenarios/credit_update/executable.py b/scenarios/credit_update/executable.py index b4bb383..9db4d3f 100644 --- a/scenarios/credit_update/executable.py +++ b/scenarios/credit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -credit = balanced.Credit.fetch('/credits/CRjCksasJ36xjkBXRYvlCh7') +credit = balanced.Credit.fetch('/credits/CR5z2Z4kFI12xAe5NQhWSjvD') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/customer_create/executable.py b/scenarios/customer_create/executable.py index a8467b6..dcfe099 100644 --- a/scenarios/customer_create/executable.py +++ b/scenarios/customer_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') customer = balanced.Customer( dob_year=1963, diff --git a/scenarios/customer_delete/executable.py b/scenarios/customer_delete/executable.py index 5257f8a..e5c8030 100644 --- a/scenarios/customer_delete/executable.py +++ b/scenarios/customer_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -customer = balanced.Customer.fetch('/customers/CUxN95d3eKLokMS6CymVtIB') +customer = balanced.Customer.fetch('/customers/CU64t3pxAegzhZL0O8WMpWi9') customer.unstore() \ No newline at end of file diff --git a/scenarios/customer_list/executable.py b/scenarios/customer_list/executable.py index 8255de1..7aefd66 100644 --- a/scenarios/customer_list/executable.py +++ b/scenarios/customer_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') customers = balanced.Customer.query \ No newline at end of file diff --git a/scenarios/customer_show/executable.py b/scenarios/customer_show/executable.py index 3750f8a..22f4eb6 100644 --- a/scenarios/customer_show/executable.py +++ b/scenarios/customer_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -customer = balanced.Customer.fetch('/customers/CUrtoxuYO4XmXZi6NzXKBLL') \ No newline at end of file +customer = balanced.Customer.fetch('/customers/CU5W6C3JluP9VS1RBm2EwtQQ') \ No newline at end of file diff --git a/scenarios/customer_update/executable.py b/scenarios/customer_update/executable.py index 399302c..0fb98bb 100644 --- a/scenarios/customer_update/executable.py +++ b/scenarios/customer_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -customer = balanced.Debit.fetch('/customers/CUrtoxuYO4XmXZi6NzXKBLL') +customer = balanced.Debit.fetch('/customers/CU5W6C3JluP9VS1RBm2EwtQQ') customer.email = 'email@newdomain.com' customer.meta = { 'shipping-preference': 'ground' diff --git a/scenarios/debit_dispute_show/executable.py b/scenarios/debit_dispute_show/executable.py index 7dd0738..70a06c6 100644 --- a/scenarios/debit_dispute_show/executable.py +++ b/scenarios/debit_dispute_show/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -debit = balanced.Debit.fetch('/debits/WDJ66VlXnDyDx5AS5uplxyt') +debit = balanced.Debit.fetch('/debits/WD6LJx0cm12NrjiXBR1okKt7') dispute = debit.dispute \ No newline at end of file diff --git a/scenarios/debit_list/executable.py b/scenarios/debit_list/executable.py index b6a5db1..000a2de 100644 --- a/scenarios/debit_list/executable.py +++ b/scenarios/debit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') debits = balanced.Debit.query \ No newline at end of file diff --git a/scenarios/debit_order/executable.py b/scenarios/debit_order/executable.py index 0cf2f5a..75aa8e8 100644 --- a/scenarios/debit_order/executable.py +++ b/scenarios/debit_order/executable.py @@ -1,9 +1,9 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -order = balanced.Order.fetch('/orders/OR5QcYnwysJXQswImokq6ZSx') -card = balanced.Card.fetch('/cards/CC5OD6648yiKfSzfj6z6MdXr') +order = balanced.Order.fetch('/orders/OR5EZkSOSTsmYJlJi6UlrUmp') +card = balanced.Card.fetch('/cards/CC526JELNk4pET43bVu6rGkZ') order.debit_from( amount=5000, source=card, diff --git a/scenarios/debit_show/executable.py b/scenarios/debit_show/executable.py index 98f90cb..2466d60 100644 --- a/scenarios/debit_show/executable.py +++ b/scenarios/debit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -debit = balanced.Debit.fetch('/debits/WDh5j4t3Rkh7oeONR9Izy61') \ No newline at end of file +debit = balanced.Debit.fetch('/debits/WD55Z5kh4Onm0x0NkeuovrEs') \ No newline at end of file diff --git a/scenarios/debit_update/executable.py b/scenarios/debit_update/executable.py index b0a41aa..e6e92ca 100644 --- a/scenarios/debit_update/executable.py +++ b/scenarios/debit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -debit = balanced.Debit.fetch('/debits/WDh5j4t3Rkh7oeONR9Izy61') +debit = balanced.Debit.fetch('/debits/WD55Z5kh4Onm0x0NkeuovrEs') debit.description = 'New description for debit' debit.meta = { 'facebook.id': '1234567890', diff --git a/scenarios/dispute_list/executable.py b/scenarios/dispute_list/executable.py index 707bdc1..a958e73 100644 --- a/scenarios/dispute_list/executable.py +++ b/scenarios/dispute_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') disputes = balanced.Dispute.query \ No newline at end of file diff --git a/scenarios/dispute_show/executable.py b/scenarios/dispute_show/executable.py index 461515b..c630494 100644 --- a/scenarios/dispute_show/executable.py +++ b/scenarios/dispute_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -dispute = balanced.Dispute.fetch('/disputes/DT180PABUUjnj5wdE2pcwXQD') \ No newline at end of file +dispute = balanced.Dispute.fetch('/disputes/DT7be1ZNkz2SkA9rhBqxynrA') \ No newline at end of file diff --git a/scenarios/event_list/executable.py b/scenarios/event_list/executable.py index e65b50b..0aab70b 100644 --- a/scenarios/event_list/executable.py +++ b/scenarios/event_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') events = balanced.Event.query \ No newline at end of file diff --git a/scenarios/event_show/executable.py b/scenarios/event_show/executable.py index 08250f4..9c12593a 100644 --- a/scenarios/event_show/executable.py +++ b/scenarios/event_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -event = balanced.Event.fetch('/events/EVec6e7ac2ccc411e389ba061e5f402045') \ No newline at end of file +event = balanced.Event.fetch('/events/EVf13ffaec32ce11e48d6c0647853a3607') \ No newline at end of file diff --git a/scenarios/order_create/executable.py b/scenarios/order_create/executable.py index b475147..5e47aca 100644 --- a/scenarios/order_create/executable.py +++ b/scenarios/order_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -merchant_customer = balanced.Customer.fetch('/customers/CUxN95d3eKLokMS6CymVtIB') +merchant_customer = balanced.Customer.fetch('/customers/CU64t3pxAegzhZL0O8WMpWi9') merchant_customer.create_order( description='Order #12341234' ).save() \ No newline at end of file diff --git a/scenarios/order_list/executable.py b/scenarios/order_list/executable.py index 9788e0f..43c7c50 100644 --- a/scenarios/order_list/executable.py +++ b/scenarios/order_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') orders = balanced.Order.query \ No newline at end of file diff --git a/scenarios/order_show/executable.py b/scenarios/order_show/executable.py index e6e4c25..c02a088 100644 --- a/scenarios/order_show/executable.py +++ b/scenarios/order_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -order = balanced.Order.fetch('/orders/OR1oqq5PzdHGkB0GBJJiagNT') \ No newline at end of file +order = balanced.Order.fetch('/orders/OR7qAh5x1cFzX0U9hD628LPa') \ No newline at end of file diff --git a/scenarios/order_update/executable.py b/scenarios/order_update/executable.py index a16c78e..96fe6c7 100644 --- a/scenarios/order_update/executable.py +++ b/scenarios/order_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -order = balanced.Order.fetch('/orders/OR1oqq5PzdHGkB0GBJJiagNT') +order = balanced.Order.fetch('/orders/OR7qAh5x1cFzX0U9hD628LPa') order.description = 'New description for order' order.meta = { 'anykey': 'valuegoeshere', diff --git a/scenarios/refund_create/executable.py b/scenarios/refund_create/executable.py index a62333a..39075c0 100644 --- a/scenarios/refund_create/executable.py +++ b/scenarios/refund_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -debit = balanced.Debit.fetch('/debits/WDEg9ofx83CeAhiwI1QmA17') +debit = balanced.Debit.fetch('/debits/WD6pxYaIfe2CHQHoDj5pA2Xu') refund = debit.refund( amount=3000, description="Refund for Order #1111", diff --git a/scenarios/refund_list/executable.py b/scenarios/refund_list/executable.py index d397cbe..2a4d4a6 100644 --- a/scenarios/refund_list/executable.py +++ b/scenarios/refund_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') refunds = balanced.Refund.query \ No newline at end of file diff --git a/scenarios/refund_show/executable.py b/scenarios/refund_show/executable.py index 97f1972..fc7a746 100644 --- a/scenarios/refund_show/executable.py +++ b/scenarios/refund_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -refund = balanced.Refund.fetch('/refunds/RFFFulVVpBiNWpJ2VLMto1L') \ No newline at end of file +refund = balanced.Refund.fetch('/refunds/RF6E0QICQDqJCkJ3HSvQtvOR') \ No newline at end of file diff --git a/scenarios/refund_update/executable.py b/scenarios/refund_update/executable.py index 5073a34..34f32ee 100644 --- a/scenarios/refund_update/executable.py +++ b/scenarios/refund_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -refund = balanced.Refund.fetch('/refunds/RFFFulVVpBiNWpJ2VLMto1L') +refund = balanced.Refund.fetch('/refunds/RF6E0QICQDqJCkJ3HSvQtvOR') refund.description = 'update this description' refund.meta = { 'user.refund.count': '3', diff --git a/scenarios/reversal_create/executable.py b/scenarios/reversal_create/executable.py index 55dbefc..aa96430 100644 --- a/scenarios/reversal_create/executable.py +++ b/scenarios/reversal_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -credit = balanced.Credit.fetch('/credits/CR1ynmPUlJGbV9EMyqkowHJP') +credit = balanced.Credit.fetch('/credits/CR7CqCpjWl6O9BjxrQVOFi48') reversal = credit.reverse( amount=3000, description="Reversal for Order #1111", diff --git a/scenarios/reversal_list/executable.py b/scenarios/reversal_list/executable.py index fa08e4c..fab1866 100644 --- a/scenarios/reversal_list/executable.py +++ b/scenarios/reversal_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') reversals = balanced.Reversal.query \ No newline at end of file diff --git a/scenarios/reversal_show/executable.py b/scenarios/reversal_show/executable.py index dfa3e18..a419db7 100644 --- a/scenarios/reversal_show/executable.py +++ b/scenarios/reversal_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -refund = balanced.Reversal.fetch('/reversals/RV1zj7hidB6KZ7MxLESBXRJD') \ No newline at end of file +refund = balanced.Reversal.fetch('/reversals/RV7DQpcc6sowPOMi29WTjlOU') \ No newline at end of file diff --git a/scenarios/reversal_update/executable.py b/scenarios/reversal_update/executable.py index d8deab8..257689e 100644 --- a/scenarios/reversal_update/executable.py +++ b/scenarios/reversal_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -reversal = balanced.Reversal.fetch('/reversals/RV1zj7hidB6KZ7MxLESBXRJD') +reversal = balanced.Reversal.fetch('/reversals/RV7DQpcc6sowPOMi29WTjlOU') reversal.description = 'update this description' reversal.meta = { 'user.refund.count': '3', From 49ed46321deaaf995f191b701cb2420bcde609b3 Mon Sep 17 00:00:00 2001 From: richie serna Date: Fri, 26 Sep 2014 12:15:15 -0700 Subject: [PATCH 75/93] Edit marketplace credit scenario --- snippets/order-credit-marketplace.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/snippets/order-credit-marketplace.py b/snippets/order-credit-marketplace.py index aef09ba..29fb941 100644 --- a/snippets/order-credit-marketplace.py +++ b/snippets/order-credit-marketplace.py @@ -1,4 +1,6 @@ -balanced.Marketplace.mine.owner_customer.bank_accounts[0].credit( +marketplace_account = balanced.Marketplace.mine.owner_customer.bank_accounts[0] +order.credit_to( amount=2000, - description="Credit from order escrow to marketplace bank account" + description="Credit from order escrow to marketplace bank account", + destination=marketplace_account ) \ No newline at end of file From 4cc3cf541c1803efcfcd122331598c44eef71c61 Mon Sep 17 00:00:00 2001 From: richie serna Date: Mon, 29 Sep 2014 10:11:01 -0700 Subject: [PATCH 76/93] Change name of marketplaceBankAccount --- snippets/order-credit-marketplace.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/order-credit-marketplace.py b/snippets/order-credit-marketplace.py index 29fb941..2a7b714 100644 --- a/snippets/order-credit-marketplace.py +++ b/snippets/order-credit-marketplace.py @@ -1,6 +1,6 @@ -marketplace_account = balanced.Marketplace.mine.owner_customer.bank_accounts[0] +marketplace_bank_account = balanced.Marketplace.mine.owner_customer.bank_accounts[0] order.credit_to( amount=2000, description="Credit from order escrow to marketplace bank account", - destination=marketplace_account + destination=marketplace_bank_account ) \ No newline at end of file From 64695b45dc35d39bc9cd192509b4900f8e86b75d Mon Sep 17 00:00:00 2001 From: richie serna Date: Tue, 11 Nov 2014 17:43:03 -0800 Subject: [PATCH 77/93] Add Account resource --- balanced/__init__.py | 3 ++- balanced/resources.py | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/balanced/__init__.py b/balanced/__init__.py index a0d0689..45dfadb 100644 --- a/balanced/__init__.py +++ b/balanced/__init__.py @@ -10,12 +10,13 @@ Transaction, BankAccount, Card, Dispute, Callback, Event, EventCallback, EventCallbackLog, BankAccountVerification, Customer, Order, - ExternalAccount + ExternalAccount, Account, ) from balanced import exc __all__ = [ + Account.__name__, APIKey.__name__, BankAccount.__name__, BankAccountVerification.__name__, diff --git a/balanced/resources.py b/balanced/resources.py index 9df6823..9d2378d 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -590,3 +590,13 @@ class ExternalAccount(FundingInstrument): type = 'external_accounts' uri_gen = wac.URIGen('/external_accounts', '{external_account}') + + +class Account(FundingInstrument): + """ + An Account is a way to have a store of some kind of value. + """ + + type = 'accounts' + + uri_gen = wac.URIGen('/accounts', '{account}') From 44b53ab5652e79a933725b52955f4656571c0bfa Mon Sep 17 00:00:00 2001 From: richie serna Date: Tue, 11 Nov 2014 17:54:05 -0800 Subject: [PATCH 78/93] Add settlements resource --- balanced/__init__.py | 3 ++- balanced/resources.py | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/balanced/__init__.py b/balanced/__init__.py index 45dfadb..a48b917 100644 --- a/balanced/__init__.py +++ b/balanced/__init__.py @@ -10,7 +10,7 @@ Transaction, BankAccount, Card, Dispute, Callback, Event, EventCallback, EventCallbackLog, BankAccountVerification, Customer, Order, - ExternalAccount, Account, + ExternalAccount, Account, Settlement ) from balanced import exc @@ -35,6 +35,7 @@ Resource.__name__, Refund.__name__, Reversal.__name__, + Settlement.__name__, Transaction.__name__, ExternalAccount.__name__, str(exc.__name__.partition('.')[-1]) diff --git a/balanced/resources.py b/balanced/resources.py index 9d2378d..ca52a74 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -600,3 +600,14 @@ class Account(FundingInstrument): type = 'accounts' uri_gen = wac.URIGen('/accounts', '{account}') + + +class Settlement(Transaction): + """ + A Settlement is the action of moving money out of an Account to a + bank account. + """ + + type = 'settlements' + + uri_gen = wac.URIGen('/settlementss', '{settlements}') From e5d25ad7cd0399fa77e174e69d782260de04a04e Mon Sep 17 00:00:00 2001 From: richie serna Date: Fri, 14 Nov 2014 09:44:37 -0800 Subject: [PATCH 79/93] Add new scenarios --- .../bank_account_debit_order/definition.mako | 1 + .../bank_account_debit_order/executable.py | 10 ++++++++++ scenarios/bank_account_debit_order/python.mako | 17 +++++++++++++++++ scenarios/bank_account_debit_order/request.mako | 9 +++++++++ scenarios/card_credit_order/definition.mako | 1 + scenarios/card_credit_order/executable.py | 10 ++++++++++ scenarios/card_credit_order/python.mako | 17 +++++++++++++++++ scenarios/card_credit_order/request.mako | 9 +++++++++ scenarios/card_hold_order/definition.mako | 1 + scenarios/card_hold_order/executable.py | 11 +++++++++++ scenarios/card_hold_order/python.mako | 17 +++++++++++++++++ scenarios/card_hold_order/request.mako | 8 ++++++++ 12 files changed, 111 insertions(+) create mode 100644 scenarios/bank_account_debit_order/definition.mako create mode 100644 scenarios/bank_account_debit_order/executable.py create mode 100644 scenarios/bank_account_debit_order/python.mako create mode 100644 scenarios/bank_account_debit_order/request.mako create mode 100644 scenarios/card_credit_order/definition.mako create mode 100644 scenarios/card_credit_order/executable.py create mode 100644 scenarios/card_credit_order/python.mako create mode 100644 scenarios/card_credit_order/request.mako create mode 100644 scenarios/card_hold_order/definition.mako create mode 100644 scenarios/card_hold_order/executable.py create mode 100644 scenarios/card_hold_order/python.mako create mode 100644 scenarios/card_hold_order/request.mako diff --git a/scenarios/bank_account_debit_order/definition.mako b/scenarios/bank_account_debit_order/definition.mako new file mode 100644 index 0000000..eda6428 --- /dev/null +++ b/scenarios/bank_account_debit_order/definition.mako @@ -0,0 +1 @@ +balanced.Order().debit_from() diff --git a/scenarios/bank_account_debit_order/executable.py b/scenarios/bank_account_debit_order/executable.py new file mode 100644 index 0000000..736d3a6 --- /dev/null +++ b/scenarios/bank_account_debit_order/executable.py @@ -0,0 +1,10 @@ +import balanced + +balanced.configure('ak-test-YnjW61zGxEdhpzkBcohFZ2bZhjrdtbDW') + +order = balanced.Order.fetch('/orders/OR46RV9HyvE8esnGbLPkJKW4') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1FYgj0UJZfgydhl3X65RKR') +order.debit_from( + amount=5000, + source=bank_account, +) \ No newline at end of file diff --git a/scenarios/bank_account_debit_order/python.mako b/scenarios/bank_account_debit_order/python.mako new file mode 100644 index 0000000..86345f4 --- /dev/null +++ b/scenarios/bank_account_debit_order/python.mako @@ -0,0 +1,17 @@ +% if mode == 'definition': +balanced.Order().debit_from() + +% elif mode == 'request': +import balanced + +balanced.configure('ak-test-YnjW61zGxEdhpzkBcohFZ2bZhjrdtbDW') + +order = balanced.Order.fetch('/orders/OR46RV9HyvE8esnGbLPkJKW4') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1FYgj0UJZfgydhl3X65RKR') +order.debit_from( + amount=5000, + source=bank_account, +) +% elif mode == 'response': +Debit(status=u'pending', description=u'New description for order', links={u'customer': None, u'source': u'BA1FYgj0UJZfgydhl3X65RKR', u'dispute': None, u'order': u'OR46RV9HyvE8esnGbLPkJKW4', u'card_hold': None}, amount=5000, created_at=u'2014-11-14T00:19:23.442892Z', updated_at=u'2014-11-14T00:19:23.726157Z', failure_reason=None, currency=u'USD', transaction_number=u'W456-4OJ-WYJE', href=u'/debits/WD6k0YJIDCv2OiC6JXETZahT', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*example.com', id=u'WD6k0YJIDCv2OiC6JXETZahT') +% endif \ No newline at end of file diff --git a/scenarios/bank_account_debit_order/request.mako b/scenarios/bank_account_debit_order/request.mako new file mode 100644 index 0000000..11d3115 --- /dev/null +++ b/scenarios/bank_account_debit_order/request.mako @@ -0,0 +1,9 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +order = balanced.Order.fetch('${request['order_href']}') +bank_account = balanced.BankAccount.fetch('${request['bank_account_href']}') +order.debit_from( + amount=${payload['amount']}, + source=bank_account, +) \ No newline at end of file diff --git a/scenarios/card_credit_order/definition.mako b/scenarios/card_credit_order/definition.mako new file mode 100644 index 0000000..a389100 --- /dev/null +++ b/scenarios/card_credit_order/definition.mako @@ -0,0 +1 @@ +balanced.Order().credit_to() diff --git a/scenarios/card_credit_order/executable.py b/scenarios/card_credit_order/executable.py new file mode 100644 index 0000000..8ff6d78 --- /dev/null +++ b/scenarios/card_credit_order/executable.py @@ -0,0 +1,10 @@ +import balanced + +balanced.configure('ak-test-YnjW61zGxEdhpzkBcohFZ2bZhjrdtbDW') + +order = balanced.Order.fetch('/orders/OR46RV9HyvE8esnGbLPkJKW4') +card = balanced.Card.fetch('/cards/CC2F37Ml3zzsjgM2Wb3R7zqM/credits') +order.credit_to( + amount=5000, + source=card, +) \ No newline at end of file diff --git a/scenarios/card_credit_order/python.mako b/scenarios/card_credit_order/python.mako new file mode 100644 index 0000000..7566520 --- /dev/null +++ b/scenarios/card_credit_order/python.mako @@ -0,0 +1,17 @@ +% if mode == 'definition': +balanced.Order().credit_to() + +% elif mode == 'request': +import balanced + +balanced.configure('ak-test-YnjW61zGxEdhpzkBcohFZ2bZhjrdtbDW') + +order = balanced.Order.fetch('/orders/OR46RV9HyvE8esnGbLPkJKW4') +card = balanced.Card.fetch('/cards/CC2F37Ml3zzsjgM2Wb3R7zqM/credits') +order.credit_to( + amount=5000, + source=card, +) +% elif mode == 'response': + +% endif \ No newline at end of file diff --git a/scenarios/card_credit_order/request.mako b/scenarios/card_credit_order/request.mako new file mode 100644 index 0000000..2d14cdd --- /dev/null +++ b/scenarios/card_credit_order/request.mako @@ -0,0 +1,9 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +order = balanced.Order.fetch('${request['order_href']}') +card = balanced.Card.fetch('${request['card_href']}') +order.credit_to( + amount=${payload['amount']}, + source=card, +) \ No newline at end of file diff --git a/scenarios/card_hold_order/definition.mako b/scenarios/card_hold_order/definition.mako new file mode 100644 index 0000000..01df58f --- /dev/null +++ b/scenarios/card_hold_order/definition.mako @@ -0,0 +1 @@ +balanced.Card().hold() \ No newline at end of file diff --git a/scenarios/card_hold_order/executable.py b/scenarios/card_hold_order/executable.py new file mode 100644 index 0000000..8affb51 --- /dev/null +++ b/scenarios/card_hold_order/executable.py @@ -0,0 +1,11 @@ +import balanced + +balanced.configure('ak-test-YnjW61zGxEdhpzkBcohFZ2bZhjrdtbDW') + +order = balanced.Order.fetch('/orders/OR46RV9HyvE8esnGbLPkJKW4') +card = balanced.Card.fetch('/cards/CC2vbVLAMwrNqlLvp3km6hq0') +card_hold = card.hold( +amount=5000, + description='Some descriptive text for the debit in the dashboard', + order='/orders/OR46RV9HyvE8esnGbLPkJKW4' +) \ No newline at end of file diff --git a/scenarios/card_hold_order/python.mako b/scenarios/card_hold_order/python.mako new file mode 100644 index 0000000..4bc3cd7 --- /dev/null +++ b/scenarios/card_hold_order/python.mako @@ -0,0 +1,17 @@ +% if mode == 'definition': +balanced.Card().hold() +% elif mode == 'request': +import balanced + +balanced.configure('ak-test-YnjW61zGxEdhpzkBcohFZ2bZhjrdtbDW') + +order = balanced.Order.fetch('/orders/OR46RV9HyvE8esnGbLPkJKW4') +card = balanced.Card.fetch('/cards/CC2vbVLAMwrNqlLvp3km6hq0') +card_hold = card.hold( +amount=5000, + description='Some descriptive text for the debit in the dashboard', + order='/orders/OR46RV9HyvE8esnGbLPkJKW4' +) +% elif mode == 'response': +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'order': u'OR46RV9HyvE8esnGbLPkJKW4', u'card': u'CC2vbVLAMwrNqlLvp3km6hq0', u'debit': None}, amount=5000, created_at=u'2014-11-13T19:57:30.442727Z', updated_at=u'2014-11-13T19:57:30.726474Z', expires_at=u'2014-11-20T19:57:30.624532Z', failure_reason=None, currency=u'USD', transaction_number=u'HL654-SXW-6M8Q', href=u'/card_holds/HL1LZwQgbt3Saga2dnKeihKd', meta={}, failure_reason_code=None, voided_at=None, id=u'HL1LZwQgbt3Saga2dnKeihKd') +% endif \ No newline at end of file diff --git a/scenarios/card_hold_order/request.mako b/scenarios/card_hold_order/request.mako new file mode 100644 index 0000000..9541409 --- /dev/null +++ b/scenarios/card_hold_order/request.mako @@ -0,0 +1,8 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +order = balanced.Order.fetch('${request['order_href']}') +card = balanced.Card.fetch('${request['card_href']}') +card_hold = card.hold( +<% main.payload_expand(request['payload']) %> +) \ No newline at end of file From 96e186fbea9b36504b20498061e870b55aa4fdac Mon Sep 17 00:00:00 2001 From: richie serna Date: Fri, 14 Nov 2014 11:51:49 -0800 Subject: [PATCH 80/93] Add new scenarios --- scenarios/_mj/api_key_create/executable.py | 2 +- scenarios/api_key_create/executable.py | 2 +- scenarios/api_key_create/python.mako | 4 ++-- scenarios/api_key_delete/executable.py | 4 ++-- scenarios/api_key_delete/python.mako | 4 ++-- scenarios/api_key_list/executable.py | 2 +- scenarios/api_key_list/python.mako | 2 +- scenarios/api_key_show/executable.py | 4 ++-- scenarios/api_key_show/python.mako | 6 +++--- .../bank_account_associate_to_customer/executable.py | 6 +++--- .../bank_account_associate_to_customer/python.mako | 8 ++++---- scenarios/bank_account_create/executable.py | 2 +- scenarios/bank_account_create/python.mako | 4 ++-- scenarios/bank_account_credit/executable.py | 4 ++-- scenarios/bank_account_credit/python.mako | 6 +++--- scenarios/bank_account_debit/executable.py | 4 ++-- scenarios/bank_account_debit/python.mako | 6 +++--- scenarios/bank_account_debit_order/executable.py | 6 +++--- scenarios/bank_account_debit_order/python.mako | 8 ++++---- scenarios/bank_account_delete/executable.py | 4 ++-- scenarios/bank_account_delete/python.mako | 4 ++-- scenarios/bank_account_list/executable.py | 2 +- scenarios/bank_account_list/python.mako | 2 +- scenarios/bank_account_show/executable.py | 4 ++-- scenarios/bank_account_show/python.mako | 6 +++--- scenarios/bank_account_update/executable.py | 4 ++-- scenarios/bank_account_update/python.mako | 6 +++--- .../bank_account_verification_create/executable.py | 4 ++-- scenarios/bank_account_verification_create/python.mako | 6 +++--- scenarios/bank_account_verification_show/executable.py | 4 ++-- scenarios/bank_account_verification_show/python.mako | 6 +++--- .../bank_account_verification_update/executable.py | 4 ++-- scenarios/bank_account_verification_update/python.mako | 6 +++--- scenarios/callback_create/executable.py | 2 +- scenarios/callback_create/python.mako | 4 ++-- scenarios/callback_delete/executable.py | 4 ++-- scenarios/callback_delete/python.mako | 4 ++-- scenarios/callback_list/executable.py | 2 +- scenarios/callback_list/python.mako | 2 +- scenarios/callback_show/executable.py | 4 ++-- scenarios/callback_show/python.mako | 6 +++--- scenarios/card_associate_to_customer/executable.py | 6 +++--- scenarios/card_associate_to_customer/python.mako | 8 ++++---- scenarios/card_create/executable.py | 2 +- scenarios/card_create/python.mako | 4 ++-- scenarios/card_create_creditable/executable.py | 2 +- scenarios/card_create_creditable/python.mako | 4 ++-- scenarios/card_create_dispute/executable.py | 2 +- scenarios/card_create_dispute/python.mako | 4 ++-- scenarios/card_credit/executable.py | 4 ++-- scenarios/card_credit/python.mako | 6 +++--- scenarios/card_credit_order/executable.py | 6 +++--- scenarios/card_credit_order/python.mako | 8 ++++---- scenarios/card_debit/executable.py | 4 ++-- scenarios/card_debit/python.mako | 6 +++--- scenarios/card_debit_dispute/executable.py | 4 ++-- scenarios/card_debit_dispute/python.mako | 6 +++--- scenarios/card_delete/executable.py | 4 ++-- scenarios/card_delete/python.mako | 4 ++-- scenarios/card_hold_capture/executable.py | 4 ++-- scenarios/card_hold_capture/python.mako | 6 +++--- scenarios/card_hold_create/executable.py | 4 ++-- scenarios/card_hold_create/python.mako | 6 +++--- scenarios/card_hold_list/executable.py | 2 +- scenarios/card_hold_list/python.mako | 2 +- scenarios/card_hold_order/executable.py | 8 ++++---- scenarios/card_hold_order/python.mako | 10 +++++----- scenarios/card_hold_show/executable.py | 4 ++-- scenarios/card_hold_show/python.mako | 6 +++--- scenarios/card_hold_update/executable.py | 4 ++-- scenarios/card_hold_update/python.mako | 6 +++--- scenarios/card_hold_void/executable.py | 4 ++-- scenarios/card_hold_void/python.mako | 6 +++--- scenarios/card_list/executable.py | 2 +- scenarios/card_list/python.mako | 2 +- scenarios/card_show/executable.py | 4 ++-- scenarios/card_show/python.mako | 6 +++--- scenarios/card_update/executable.py | 4 ++-- scenarios/card_update/python.mako | 6 +++--- scenarios/credit_list/executable.py | 2 +- scenarios/credit_list/python.mako | 2 +- scenarios/credit_list_bank_account/executable.py | 4 ++-- scenarios/credit_order/executable.py | 6 +++--- scenarios/credit_show/executable.py | 4 ++-- scenarios/credit_update/executable.py | 4 ++-- scenarios/customer_create/executable.py | 2 +- scenarios/customer_delete/executable.py | 4 ++-- scenarios/customer_list/executable.py | 2 +- scenarios/customer_show/executable.py | 4 ++-- scenarios/customer_update/executable.py | 4 ++-- scenarios/debit_dispute_show/executable.py | 4 ++-- scenarios/debit_list/executable.py | 2 +- scenarios/debit_order/executable.py | 6 +++--- scenarios/debit_show/executable.py | 4 ++-- scenarios/debit_update/executable.py | 4 ++-- scenarios/dispute_list/executable.py | 2 +- scenarios/dispute_show/executable.py | 4 ++-- scenarios/event_list/executable.py | 2 +- scenarios/event_show/executable.py | 4 ++-- scenarios/order_create/executable.py | 4 ++-- scenarios/order_list/executable.py | 2 +- scenarios/order_show/executable.py | 4 ++-- scenarios/order_update/executable.py | 4 ++-- scenarios/refund_create/executable.py | 4 ++-- scenarios/refund_list/executable.py | 2 +- scenarios/refund_show/executable.py | 4 ++-- scenarios/refund_update/executable.py | 4 ++-- scenarios/reversal_create/executable.py | 4 ++-- scenarios/reversal_list/executable.py | 2 +- scenarios/reversal_show/executable.py | 4 ++-- scenarios/reversal_update/executable.py | 4 ++-- 111 files changed, 233 insertions(+), 233 deletions(-) diff --git a/scenarios/_mj/api_key_create/executable.py b/scenarios/_mj/api_key_create/executable.py index bdd39b4..20afc62 100644 --- a/scenarios/_mj/api_key_create/executable.py +++ b/scenarios/_mj/api_key_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') api_key = balanced.APIKey() api_key.save() \ No newline at end of file diff --git a/scenarios/api_key_create/executable.py b/scenarios/api_key_create/executable.py index c30abb1..91778d6 100644 --- a/scenarios/api_key_create/executable.py +++ b/scenarios/api_key_create/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') api_key = balanced.APIKey().save() \ No newline at end of file diff --git a/scenarios/api_key_create/python.mako b/scenarios/api_key_create/python.mako index f6c161d..d99d3c1 100644 --- a/scenarios/api_key_create/python.mako +++ b/scenarios/api_key_create/python.mako @@ -3,9 +3,9 @@ balanced.APIKey() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') api_key = balanced.APIKey().save() % elif mode == 'response': -APIKey(links={}, created_at=u'2014-09-02T18:22:50.910606Z', secret=u'ak-test-12V4LX8TtvvFnoZBNaf4WkgpbZr19E9iw', href=u'/api_keys/AK19Ap0xmiz0Oau3K4keBuwg', meta={}, id=u'AK19Ap0xmiz0Oau3K4keBuwg') +APIKey(links={}, created_at=u'2014-11-14T19:26:45.904618Z', secret=u'ak-test-2xP79D9WIwTI77JPABpo8uL8cqgEFq2c', href=u'/api_keys/AKJnLWedoBhUHpdhoGEOPew', meta={}, id=u'AKJnLWedoBhUHpdhoGEOPew') % endif \ No newline at end of file diff --git a/scenarios/api_key_delete/executable.py b/scenarios/api_key_delete/executable.py index 0d7ebd2..4e2ca1e 100644 --- a/scenarios/api_key_delete/executable.py +++ b/scenarios/api_key_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -key = balanced.APIKey.fetch('/api_keys/AK19Ap0xmiz0Oau3K4keBuwg') +key = balanced.APIKey.fetch('/api_keys/AKJnLWedoBhUHpdhoGEOPew') key.delete() \ No newline at end of file diff --git a/scenarios/api_key_delete/python.mako b/scenarios/api_key_delete/python.mako index b212a45..53903fa 100644 --- a/scenarios/api_key_delete/python.mako +++ b/scenarios/api_key_delete/python.mako @@ -3,9 +3,9 @@ balanced.APIKey().delete() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -key = balanced.APIKey.fetch('/api_keys/AK19Ap0xmiz0Oau3K4keBuwg') +key = balanced.APIKey.fetch('/api_keys/AKJnLWedoBhUHpdhoGEOPew') key.delete() % elif mode == 'response': diff --git a/scenarios/api_key_list/executable.py b/scenarios/api_key_list/executable.py index 98a9aa6..f677281 100644 --- a/scenarios/api_key_list/executable.py +++ b/scenarios/api_key_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') keys = balanced.APIKey.query \ No newline at end of file diff --git a/scenarios/api_key_list/python.mako b/scenarios/api_key_list/python.mako index a957bc3..79cf146 100644 --- a/scenarios/api_key_list/python.mako +++ b/scenarios/api_key_list/python.mako @@ -4,7 +4,7 @@ balanced.APIKey.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') keys = balanced.APIKey.query % elif mode == 'response': diff --git a/scenarios/api_key_show/executable.py b/scenarios/api_key_show/executable.py index c9ec176..93602c5 100644 --- a/scenarios/api_key_show/executable.py +++ b/scenarios/api_key_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -key = balanced.APIKey.fetch('/api_keys/AK19Ap0xmiz0Oau3K4keBuwg') \ No newline at end of file +key = balanced.APIKey.fetch('/api_keys/AKJnLWedoBhUHpdhoGEOPew') \ No newline at end of file diff --git a/scenarios/api_key_show/python.mako b/scenarios/api_key_show/python.mako index 9da7f07..527df76 100644 --- a/scenarios/api_key_show/python.mako +++ b/scenarios/api_key_show/python.mako @@ -4,9 +4,9 @@ balanced.APIKey.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -key = balanced.APIKey.fetch('/api_keys/AK19Ap0xmiz0Oau3K4keBuwg') +key = balanced.APIKey.fetch('/api_keys/AKJnLWedoBhUHpdhoGEOPew') % elif mode == 'response': -APIKey(created_at=u'2014-09-02T18:22:50.910606Z', href=u'/api_keys/AK19Ap0xmiz0Oau3K4keBuwg', meta={}, id=u'AK19Ap0xmiz0Oau3K4keBuwg', links={}) +APIKey(created_at=u'2014-11-14T19:26:45.904618Z', href=u'/api_keys/AKJnLWedoBhUHpdhoGEOPew', meta={}, id=u'AKJnLWedoBhUHpdhoGEOPew', links={}) % endif \ No newline at end of file diff --git a/scenarios/bank_account_associate_to_customer/executable.py b/scenarios/bank_account_associate_to_customer/executable.py index bbaee6d..909b18a 100644 --- a/scenarios/bank_account_associate_to_customer/executable.py +++ b/scenarios/bank_account_associate_to_customer/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3bgtBxC3q4N9QvlN2jqFnL') -bank_account.associate_to_customer('/customers/CU36bqPshRNopkLNM6qBmn5e') \ No newline at end of file +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2gul8YMjFWnFk0fFHXwX6g') +bank_account.associate_to_customer('/customers/CU2718cI8PkMdFyPjboZLZfn') \ No newline at end of file diff --git a/scenarios/bank_account_associate_to_customer/python.mako b/scenarios/bank_account_associate_to_customer/python.mako index 1c42048..554d46f 100644 --- a/scenarios/bank_account_associate_to_customer/python.mako +++ b/scenarios/bank_account_associate_to_customer/python.mako @@ -3,10 +3,10 @@ balanced.BankAccount().associate_to_customer() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3bgtBxC3q4N9QvlN2jqFnL') -bank_account.associate_to_customer('/customers/CU36bqPshRNopkLNM6qBmn5e') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2gul8YMjFWnFk0fFHXwX6g') +bank_account.associate_to_customer('/customers/CU2718cI8PkMdFyPjboZLZfn') % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': u'CU36bqPshRNopkLNM6qBmn5e', u'bank_account_verification': None}, can_credit=True, created_at=u'2014-09-02T18:24:42.657919Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-09-02T18:24:43.444387Z', href=u'/bank_accounts/BA3bgtBxC3q4N9QvlN2jqFnL', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA3bgtBxC3q4N9QvlN2jqFnL') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': u'CU2718cI8PkMdFyPjboZLZfn', u'bank_account_verification': None}, can_credit=True, created_at=u'2014-11-14T19:28:10.468801Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-11-14T19:28:11.068363Z', href=u'/bank_accounts/BA2gul8YMjFWnFk0fFHXwX6g', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA2gul8YMjFWnFk0fFHXwX6g') % endif \ No newline at end of file diff --git a/scenarios/bank_account_create/executable.py b/scenarios/bank_account_create/executable.py index 38d1295..8d20e9a 100644 --- a/scenarios/bank_account_create/executable.py +++ b/scenarios/bank_account_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') bank_account = balanced.BankAccount( routing_number='121000358', diff --git a/scenarios/bank_account_create/python.mako b/scenarios/bank_account_create/python.mako index d2c3b2c..93dd7d9 100644 --- a/scenarios/bank_account_create/python.mako +++ b/scenarios/bank_account_create/python.mako @@ -3,7 +3,7 @@ balanced.BankAccount().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') bank_account = balanced.BankAccount( routing_number='121000358', @@ -12,5 +12,5 @@ bank_account = balanced.BankAccount( name='Johann Bernoulli' ).save() % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-09-02T18:24:42.657919Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-09-02T18:24:42.657921Z', href=u'/bank_accounts/BA3bgtBxC3q4N9QvlN2jqFnL', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA3bgtBxC3q4N9QvlN2jqFnL') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-11-14T19:28:10.468801Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-11-14T19:28:10.468802Z', href=u'/bank_accounts/BA2gul8YMjFWnFk0fFHXwX6g', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA2gul8YMjFWnFk0fFHXwX6g') % endif \ No newline at end of file diff --git a/scenarios/bank_account_credit/executable.py b/scenarios/bank_account_credit/executable.py index 448711f..fd7f9ba 100644 --- a/scenarios/bank_account_credit/executable.py +++ b/scenarios/bank_account_credit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3bgtBxC3q4N9QvlN2jqFnL') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2gul8YMjFWnFk0fFHXwX6g') bank_account.credit( amount=5000 ) \ No newline at end of file diff --git a/scenarios/bank_account_credit/python.mako b/scenarios/bank_account_credit/python.mako index 92315f8..fd61dea 100644 --- a/scenarios/bank_account_credit/python.mako +++ b/scenarios/bank_account_credit/python.mako @@ -3,12 +3,12 @@ balanced.BankAccount().credit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3bgtBxC3q4N9QvlN2jqFnL') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2gul8YMjFWnFk0fFHXwX6g') bank_account.credit( amount=5000 ) % elif mode == 'response': -Credit(status=u'pending', description=None, links={u'customer': u'CU36bqPshRNopkLNM6qBmn5e', u'destination': u'BA3bgtBxC3q4N9QvlN2jqFnL', u'order': None}, amount=5000, created_at=u'2014-09-02T18:28:47.307588Z', updated_at=u'2014-09-02T18:28:47.915602Z', failure_reason=None, currency=u'USD', transaction_number=u'CR3I1-TR1-JKT6', href=u'/credits/CR7CqCpjWl6O9BjxrQVOFi48', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR7CqCpjWl6O9BjxrQVOFi48') +Credit(status=u'pending', description=None, links={u'customer': u'CU2718cI8PkMdFyPjboZLZfn', u'destination': u'BA2gul8YMjFWnFk0fFHXwX6g', u'order': None}, amount=5000, created_at=u'2014-11-14T19:31:16.741168Z', updated_at=u'2014-11-14T19:31:17.234505Z', failure_reason=None, currency=u'USD', transaction_number=u'CRZ2P-NW9-NTU2', href=u'/credits/CR5DQV6PdifnxDMmethpLIGN', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR5DQV6PdifnxDMmethpLIGN') % endif \ No newline at end of file diff --git a/scenarios/bank_account_debit/executable.py b/scenarios/bank_account_debit/executable.py index 6813b35..8063b1c 100644 --- a/scenarios/bank_account_debit/executable.py +++ b/scenarios/bank_account_debit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1BPjHr0Gjc62pLAlkYCH1b') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA17zYxBNrmg9isvicjz9Ae4') bank_account.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/bank_account_debit/python.mako b/scenarios/bank_account_debit/python.mako index a43f09d..b5ac10b 100644 --- a/scenarios/bank_account_debit/python.mako +++ b/scenarios/bank_account_debit/python.mako @@ -3,14 +3,14 @@ balanced.BankAccount().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1BPjHr0Gjc62pLAlkYCH1b') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA17zYxBNrmg9isvicjz9Ae4') bank_account.debit( appears_on_statement_as='Statement text', amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'pending', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'BA1BPjHr0Gjc62pLAlkYCH1b', u'dispute': None, u'order': None, u'card_hold': None}, amount=5000, created_at=u'2014-09-02T18:24:59.115893Z', updated_at=u'2014-09-02T18:25:00.089340Z', failure_reason=None, currency=u'USD', transaction_number=u'W0KT-SJE-TDSG', href=u'/debits/WD3tMiqbzhAWHwFKTwYH7DTq', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD3tMiqbzhAWHwFKTwYH7DTq') +Debit(status=u'pending', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'BA17zYxBNrmg9isvicjz9Ae4', u'dispute': None, u'order': None, u'card_hold': None}, amount=5000, created_at=u'2014-11-14T19:28:20.531858Z', updated_at=u'2014-11-14T19:28:20.985200Z', failure_reason=None, currency=u'USD', transaction_number=u'WSVJ-8FD-G2UK', href=u'/debits/WD2rNbc5IxoDIyiumypsUMtv', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD2rNbc5IxoDIyiumypsUMtv') % endif \ No newline at end of file diff --git a/scenarios/bank_account_debit_order/executable.py b/scenarios/bank_account_debit_order/executable.py index 736d3a6..f482d78 100644 --- a/scenarios/bank_account_debit_order/executable.py +++ b/scenarios/bank_account_debit_order/executable.py @@ -1,9 +1,9 @@ import balanced -balanced.configure('ak-test-YnjW61zGxEdhpzkBcohFZ2bZhjrdtbDW') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -order = balanced.Order.fetch('/orders/OR46RV9HyvE8esnGbLPkJKW4') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1FYgj0UJZfgydhl3X65RKR') +order = balanced.Order.fetch('/orders/OR5sl2RJVnbwEf45nq5eATdz') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA17zYxBNrmg9isvicjz9Ae4') order.debit_from( amount=5000, source=bank_account, diff --git a/scenarios/bank_account_debit_order/python.mako b/scenarios/bank_account_debit_order/python.mako index 86345f4..c887212 100644 --- a/scenarios/bank_account_debit_order/python.mako +++ b/scenarios/bank_account_debit_order/python.mako @@ -4,14 +4,14 @@ balanced.Order().debit_from() % elif mode == 'request': import balanced -balanced.configure('ak-test-YnjW61zGxEdhpzkBcohFZ2bZhjrdtbDW') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -order = balanced.Order.fetch('/orders/OR46RV9HyvE8esnGbLPkJKW4') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1FYgj0UJZfgydhl3X65RKR') +order = balanced.Order.fetch('/orders/OR5sl2RJVnbwEf45nq5eATdz') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA17zYxBNrmg9isvicjz9Ae4') order.debit_from( amount=5000, source=bank_account, ) % elif mode == 'response': -Debit(status=u'pending', description=u'New description for order', links={u'customer': None, u'source': u'BA1FYgj0UJZfgydhl3X65RKR', u'dispute': None, u'order': u'OR46RV9HyvE8esnGbLPkJKW4', u'card_hold': None}, amount=5000, created_at=u'2014-11-14T00:19:23.442892Z', updated_at=u'2014-11-14T00:19:23.726157Z', failure_reason=None, currency=u'USD', transaction_number=u'W456-4OJ-WYJE', href=u'/debits/WD6k0YJIDCv2OiC6JXETZahT', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*example.com', id=u'WD6k0YJIDCv2OiC6JXETZahT') +Debit(status=u'pending', description=u'New description for order', links={u'customer': None, u'source': u'BA17zYxBNrmg9isvicjz9Ae4', u'dispute': None, u'order': u'OR5sl2RJVnbwEf45nq5eATdz', u'card_hold': None}, amount=5000, created_at=u'2014-11-14T19:32:12.424415Z', updated_at=u'2014-11-14T19:32:12.989360Z', failure_reason=None, currency=u'USD', transaction_number=u'W5OI-0K3-GLCQ', href=u'/debits/WD6EB5Jvfr4PTxUJB3HFTGVn', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*example.com', id=u'WD6EB5Jvfr4PTxUJB3HFTGVn') % endif \ No newline at end of file diff --git a/scenarios/bank_account_delete/executable.py b/scenarios/bank_account_delete/executable.py index 2f2ae29..3bfd74e 100644 --- a/scenarios/bank_account_delete/executable.py +++ b/scenarios/bank_account_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1D19WqGc3j78IAhFIkasQd') bank_account.delete() \ No newline at end of file diff --git a/scenarios/bank_account_delete/python.mako b/scenarios/bank_account_delete/python.mako index e032e33..107a7b8 100644 --- a/scenarios/bank_account_delete/python.mako +++ b/scenarios/bank_account_delete/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount().delete() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1D19WqGc3j78IAhFIkasQd') bank_account.delete() % elif mode == 'response': diff --git a/scenarios/bank_account_list/executable.py b/scenarios/bank_account_list/executable.py index 84daaa8..ad3229e 100644 --- a/scenarios/bank_account_list/executable.py +++ b/scenarios/bank_account_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') bank_accounts = balanced.BankAccount.query \ No newline at end of file diff --git a/scenarios/bank_account_list/python.mako b/scenarios/bank_account_list/python.mako index 0de7446..8526838 100644 --- a/scenarios/bank_account_list/python.mako +++ b/scenarios/bank_account_list/python.mako @@ -4,7 +4,7 @@ balanced.BankAccount.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') bank_accounts = balanced.BankAccount.query % elif mode == 'response': diff --git a/scenarios/bank_account_show/executable.py b/scenarios/bank_account_show/executable.py index 8c744e1..714b6af 100644 --- a/scenarios/bank_account_show/executable.py +++ b/scenarios/bank_account_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S') \ No newline at end of file +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1D19WqGc3j78IAhFIkasQd') \ No newline at end of file diff --git a/scenarios/bank_account_show/python.mako b/scenarios/bank_account_show/python.mako index 7c504e6..caf38c3 100644 --- a/scenarios/bank_account_show/python.mako +++ b/scenarios/bank_account_show/python.mako @@ -4,9 +4,9 @@ balanced.BankAccount.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1D19WqGc3j78IAhFIkasQd') % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-09-02T18:24:02.713640Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-09-02T18:24:02.713644Z', href=u'/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA2slfzsDvZRXkfl2C3pbN9S') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-11-14T19:27:35.387609Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-11-14T19:27:35.387611Z', href=u'/bank_accounts/BA1D19WqGc3j78IAhFIkasQd', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA1D19WqGc3j78IAhFIkasQd') % endif \ No newline at end of file diff --git a/scenarios/bank_account_update/executable.py b/scenarios/bank_account_update/executable.py index 32853f5..5500b68 100644 --- a/scenarios/bank_account_update/executable.py +++ b/scenarios/bank_account_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1D19WqGc3j78IAhFIkasQd') bank_account.meta = { 'twitter.id'='1234987650', 'facebook.user_id'='0192837465', diff --git a/scenarios/bank_account_update/python.mako b/scenarios/bank_account_update/python.mako index 9b3fe9e..b72c674 100644 --- a/scenarios/bank_account_update/python.mako +++ b/scenarios/bank_account_update/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1D19WqGc3j78IAhFIkasQd') bank_account.meta = { 'twitter.id'='1234987650', 'facebook.user_id'='0192837465', @@ -13,5 +13,5 @@ bank_account.meta = { } bank_account.save() % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-09-02T18:24:02.713640Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-09-02T18:24:23.144885Z', href=u'/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S', meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA2slfzsDvZRXkfl2C3pbN9S') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-11-14T19:27:35.387609Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-11-14T19:27:50.193239Z', href=u'/bank_accounts/BA1D19WqGc3j78IAhFIkasQd', meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA1D19WqGc3j78IAhFIkasQd') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/executable.py b/scenarios/bank_account_verification_create/executable.py index b461ff4..ae579c3 100644 --- a/scenarios/bank_account_verification_create/executable.py +++ b/scenarios/bank_account_verification_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1BPjHr0Gjc62pLAlkYCH1b') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA17zYxBNrmg9isvicjz9Ae4') verification = bank_account.verify() \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/python.mako b/scenarios/bank_account_verification_create/python.mako index 70e2142..9901581 100644 --- a/scenarios/bank_account_verification_create/python.mako +++ b/scenarios/bank_account_verification_create/python.mako @@ -3,10 +3,10 @@ balanced.BankAccountVerification().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1BPjHr0Gjc62pLAlkYCH1b') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA17zYxBNrmg9isvicjz9Ae4') verification = bank_account.verify() % elif mode == 'response': -BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA1BPjHr0Gjc62pLAlkYCH1b'}, created_at=u'2014-09-02T18:23:26.288399Z', attempts_remaining=3, updated_at=u'2014-09-02T18:23:26.288402Z', deposit_status=u'pending', attempts=0, href=u'/verifications/BZ1NndEHupZUuYDNPf75qXPv', meta={}, id=u'BZ1NndEHupZUuYDNPf75qXPv') +BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA17zYxBNrmg9isvicjz9Ae4'}, created_at=u'2014-11-14T19:27:13.837146Z', attempts_remaining=3, updated_at=u'2014-11-14T19:27:13.837148Z', deposit_status=u'pending', attempts=0, href=u'/verifications/BZ1eMAsKt13lIj2SkvvHlxfT', meta={}, id=u'BZ1eMAsKt13lIj2SkvvHlxfT') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/executable.py b/scenarios/bank_account_verification_show/executable.py index 16fa9a5..52cab31 100644 --- a/scenarios/bank_account_verification_show/executable.py +++ b/scenarios/bank_account_verification_show/executable.py @@ -1,4 +1,4 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ1NndEHupZUuYDNPf75qXPv') \ No newline at end of file +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ1eMAsKt13lIj2SkvvHlxfT') \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/python.mako b/scenarios/bank_account_verification_show/python.mako index cf4a2c7..91c0e70 100644 --- a/scenarios/bank_account_verification_show/python.mako +++ b/scenarios/bank_account_verification_show/python.mako @@ -4,8 +4,8 @@ balanced.BankAccountVerification.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ1NndEHupZUuYDNPf75qXPv') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ1eMAsKt13lIj2SkvvHlxfT') % elif mode == 'response': -BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA1BPjHr0Gjc62pLAlkYCH1b'}, created_at=u'2014-09-02T18:23:26.288399Z', attempts_remaining=3, updated_at=u'2014-09-02T18:23:26.288402Z', deposit_status=u'pending', attempts=0, href=u'/verifications/BZ1NndEHupZUuYDNPf75qXPv', meta={}, id=u'BZ1NndEHupZUuYDNPf75qXPv') +BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA17zYxBNrmg9isvicjz9Ae4'}, created_at=u'2014-11-14T19:27:13.837146Z', attempts_remaining=3, updated_at=u'2014-11-14T19:27:13.837148Z', deposit_status=u'pending', attempts=0, href=u'/verifications/BZ1eMAsKt13lIj2SkvvHlxfT', meta={}, id=u'BZ1eMAsKt13lIj2SkvvHlxfT') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/executable.py b/scenarios/bank_account_verification_update/executable.py index 578564f..af3fb28 100644 --- a/scenarios/bank_account_verification_update/executable.py +++ b/scenarios/bank_account_verification_update/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ1NndEHupZUuYDNPf75qXPv') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ1eMAsKt13lIj2SkvvHlxfT') verification.confirm(amount_1=1, amount_2=1) \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/python.mako b/scenarios/bank_account_verification_update/python.mako index da8e5d7..137bd2a 100644 --- a/scenarios/bank_account_verification_update/python.mako +++ b/scenarios/bank_account_verification_update/python.mako @@ -3,10 +3,10 @@ balanced.BankAccountVerification().confirm() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ1NndEHupZUuYDNPf75qXPv') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ1eMAsKt13lIj2SkvvHlxfT') verification.confirm(amount_1=1, amount_2=1) % elif mode == 'response': -BankAccountVerification(verification_status=u'succeeded', links={u'bank_account': u'BA1BPjHr0Gjc62pLAlkYCH1b'}, created_at=u'2014-09-02T18:23:26.288399Z', attempts_remaining=2, updated_at=u'2014-09-02T18:23:51.019250Z', deposit_status=u'succeeded', attempts=1, href=u'/verifications/BZ1NndEHupZUuYDNPf75qXPv', meta={}, id=u'BZ1NndEHupZUuYDNPf75qXPv') +BankAccountVerification(verification_status=u'succeeded', links={u'bank_account': u'BA17zYxBNrmg9isvicjz9Ae4'}, created_at=u'2014-11-14T19:27:13.837146Z', attempts_remaining=2, updated_at=u'2014-11-14T19:27:24.030337Z', deposit_status=u'succeeded', attempts=1, href=u'/verifications/BZ1eMAsKt13lIj2SkvvHlxfT', meta={}, id=u'BZ1eMAsKt13lIj2SkvvHlxfT') % endif \ No newline at end of file diff --git a/scenarios/callback_create/executable.py b/scenarios/callback_create/executable.py index 6bf3a4a..39bfc79 100644 --- a/scenarios/callback_create/executable.py +++ b/scenarios/callback_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') callback = balanced.Callback( url='http://www.example.com/callback', diff --git a/scenarios/callback_create/python.mako b/scenarios/callback_create/python.mako index 6c89ce5..03dce7c 100644 --- a/scenarios/callback_create/python.mako +++ b/scenarios/callback_create/python.mako @@ -3,12 +3,12 @@ balanced.Callback() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') callback = balanced.Callback( url='http://www.example.com/callback', method='post' ).save() % elif mode == 'response': -Callback(links={}, url=u'http://www.example.com/callback', id=u'CB3AuHtVP5mcxGS8OwnJwSrK', href=u'/callbacks/CB3AuHtVP5mcxGS8OwnJwSrK', method=u'post', revision=u'1.1') +Callback(links={}, url=u'http://www.example.com/callback', id=u'CB2xCnObyAUU1V658GVuRyCI', href=u'/callbacks/CB2xCnObyAUU1V658GVuRyCI', method=u'post', revision=u'1.1') % endif \ No newline at end of file diff --git a/scenarios/callback_delete/executable.py b/scenarios/callback_delete/executable.py index 1f2b75f..e31efb4 100644 --- a/scenarios/callback_delete/executable.py +++ b/scenarios/callback_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -callback = balanced.Callback.fetch('/callbacks/CB3AuHtVP5mcxGS8OwnJwSrK') +callback = balanced.Callback.fetch('/callbacks/CB2xCnObyAUU1V658GVuRyCI') callback.unstore() \ No newline at end of file diff --git a/scenarios/callback_delete/python.mako b/scenarios/callback_delete/python.mako index 88571ec..61a6a5f 100644 --- a/scenarios/callback_delete/python.mako +++ b/scenarios/callback_delete/python.mako @@ -3,9 +3,9 @@ balanced.Callback().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -callback = balanced.Callback.fetch('/callbacks/CB3AuHtVP5mcxGS8OwnJwSrK') +callback = balanced.Callback.fetch('/callbacks/CB2xCnObyAUU1V658GVuRyCI') callback.unstore() % elif mode == 'response': diff --git a/scenarios/callback_list/executable.py b/scenarios/callback_list/executable.py index b80abd2..eb52a1a 100644 --- a/scenarios/callback_list/executable.py +++ b/scenarios/callback_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') callbacks = balanced.Callback.query \ No newline at end of file diff --git a/scenarios/callback_list/python.mako b/scenarios/callback_list/python.mako index 69d2cbd..cca6fd9 100644 --- a/scenarios/callback_list/python.mako +++ b/scenarios/callback_list/python.mako @@ -4,7 +4,7 @@ balanced.Callback.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') callbacks = balanced.Callback.query % elif mode == 'response': diff --git a/scenarios/callback_show/executable.py b/scenarios/callback_show/executable.py index 87c6408..382772f 100644 --- a/scenarios/callback_show/executable.py +++ b/scenarios/callback_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -callback = balanced.Callback.fetch('/callbacks/CB3AuHtVP5mcxGS8OwnJwSrK') \ No newline at end of file +callback = balanced.Callback.fetch('/callbacks/CB2xCnObyAUU1V658GVuRyCI') \ No newline at end of file diff --git a/scenarios/callback_show/python.mako b/scenarios/callback_show/python.mako index 2054ed3..0988e85 100644 --- a/scenarios/callback_show/python.mako +++ b/scenarios/callback_show/python.mako @@ -4,9 +4,9 @@ balanced.Callback.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -callback = balanced.Callback.fetch('/callbacks/CB3AuHtVP5mcxGS8OwnJwSrK') +callback = balanced.Callback.fetch('/callbacks/CB2xCnObyAUU1V658GVuRyCI') % elif mode == 'response': -Callback(links={}, url=u'http://www.example.com/callback', id=u'CB3AuHtVP5mcxGS8OwnJwSrK', href=u'/callbacks/CB3AuHtVP5mcxGS8OwnJwSrK', method=u'post', revision=u'1.1') +Callback(links={}, url=u'http://www.example.com/callback', id=u'CB2xCnObyAUU1V658GVuRyCI', href=u'/callbacks/CB2xCnObyAUU1V658GVuRyCI', method=u'post', revision=u'1.1') % endif \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/executable.py b/scenarios/card_associate_to_customer/executable.py index 25a720a..d622cfc 100644 --- a/scenarios/card_associate_to_customer/executable.py +++ b/scenarios/card_associate_to_customer/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card = balanced.Card.fetch('/cards/CC526JELNk4pET43bVu6rGkZ') -card.associate_to_customer('/customers/CU36bqPshRNopkLNM6qBmn5e') \ No newline at end of file +card = balanced.Card.fetch('/cards/CC3IBNr3erYpVuuZDyWNFfet') +card.associate_to_customer('/customers/CU40AyvBB6ny9u3oelCwyc3C') \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/python.mako b/scenarios/card_associate_to_customer/python.mako index 8cf0282..f5218b0 100644 --- a/scenarios/card_associate_to_customer/python.mako +++ b/scenarios/card_associate_to_customer/python.mako @@ -3,10 +3,10 @@ balanced.Card().associate_to_customer() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card = balanced.Card.fetch('/cards/CC526JELNk4pET43bVu6rGkZ') -card.associate_to_customer('/customers/CU36bqPshRNopkLNM6qBmn5e') +card = balanced.Card.fetch('/cards/CC3IBNr3erYpVuuZDyWNFfet') +card.associate_to_customer('/customers/CU40AyvBB6ny9u3oelCwyc3C') % elif mode == 'response': -Card(links={u'customer': u'CU36bqPshRNopkLNM6qBmn5e'}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC526JELNk4pET43bVu6rGkZ', type=u'credit', id=u'CC526JELNk4pET43bVu6rGkZ', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2014-09-02T18:26:25.351591Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={}, created_at=u'2014-09-02T18:26:24.764778Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) +Card(links={u'customer': u'CU40AyvBB6ny9u3oelCwyc3C'}, cvv_result=None, number=u'xxxxxxxxxxxx1118', expiration_month=5, href=u'/cards/CC3IBNr3erYpVuuZDyWNFfet', type=u'debit', id=u'CC3IBNr3erYpVuuZDyWNFfet', category=u'other', is_verified=True, cvv_match=None, bank_name=u'WELLS FARGO BANK, N.A.', avs_street_match=None, brand=u'Visa', updated_at=u'2014-11-14T19:36:40.602782Z', fingerprint=u'7dc93d35b59078a1da8e0ebd2cbec65a6ca205760a1be1b90a143d7f2b00e355', can_debit=True, name=u'Johannes Bach', expiration_year=2020, cvv=None, avs_postal_match=None, avs_result=None, can_credit=True, meta={}, created_at=u'2014-11-14T19:36:40.117365Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/card_create/executable.py b/scenarios/card_create/executable.py index a57eecd..2a3c3cc 100644 --- a/scenarios/card_create/executable.py +++ b/scenarios/card_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') card = balanced.Card( cvv='123', diff --git a/scenarios/card_create/python.mako b/scenarios/card_create/python.mako index fe1c3e2..7b315db 100644 --- a/scenarios/card_create/python.mako +++ b/scenarios/card_create/python.mako @@ -3,7 +3,7 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') card = balanced.Card( cvv='123', @@ -12,5 +12,5 @@ card = balanced.Card( expiration_year='2020' ).save() % elif mode == 'response': -Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC526JELNk4pET43bVu6rGkZ', type=u'credit', id=u'CC526JELNk4pET43bVu6rGkZ', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2014-09-02T18:26:24.764781Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={}, created_at=u'2014-09-02T18:26:24.764778Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) +Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC33DRVrekWpiHYjxSdVuqWc', type=u'credit', id=u'CC33DRVrekWpiHYjxSdVuqWc', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2014-11-14T19:28:54.173123Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={}, created_at=u'2014-11-14T19:28:54.173121Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/card_create_creditable/executable.py b/scenarios/card_create_creditable/executable.py index 6836b9c..6351813 100644 --- a/scenarios/card_create_creditable/executable.py +++ b/scenarios/card_create_creditable/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') card = balanced.Card( expiration_month='05', diff --git a/scenarios/card_create_creditable/python.mako b/scenarios/card_create_creditable/python.mako index 70df939..6be38ba 100644 --- a/scenarios/card_create_creditable/python.mako +++ b/scenarios/card_create_creditable/python.mako @@ -3,7 +3,7 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') card = balanced.Card( expiration_month='05', @@ -12,5 +12,5 @@ card = balanced.Card( number='4342561111111118' ).save() % elif mode == 'response': -Card(links={u'customer': None}, cvv_result=None, number=u'xxxxxxxxxxxx1118', expiration_month=5, href=u'/cards/CC5uc1B6fJPQBSJUi0m58tal', type=u'debit', id=u'CC5uc1B6fJPQBSJUi0m58tal', category=u'other', is_verified=True, cvv_match=None, bank_name=u'WELLS FARGO BANK, N.A.', avs_street_match=None, brand=u'Visa', updated_at=u'2014-09-02T18:26:49.735081Z', fingerprint=u'7dc93d35b59078a1da8e0ebd2cbec65a6ca205760a1be1b90a143d7f2b00e355', can_debit=True, name=u'Johannes Bach', expiration_year=2020, cvv=None, avs_postal_match=None, avs_result=None, can_credit=True, meta={}, created_at=u'2014-09-02T18:26:49.735079Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) +Card(links={u'customer': None}, cvv_result=None, number=u'xxxxxxxxxxxx1118', expiration_month=5, href=u'/cards/CC3IBNr3erYpVuuZDyWNFfet', type=u'debit', id=u'CC3IBNr3erYpVuuZDyWNFfet', category=u'other', is_verified=True, cvv_match=None, bank_name=u'WELLS FARGO BANK, N.A.', avs_street_match=None, brand=u'Visa', updated_at=u'2014-11-14T19:36:40.117367Z', fingerprint=u'7dc93d35b59078a1da8e0ebd2cbec65a6ca205760a1be1b90a143d7f2b00e355', can_debit=True, name=u'Johannes Bach', expiration_year=2020, cvv=None, avs_postal_match=None, avs_result=None, can_credit=True, meta={}, created_at=u'2014-11-14T19:36:40.117365Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/card_create_dispute/executable.py b/scenarios/card_create_dispute/executable.py index fd7835e..25ecc89 100644 --- a/scenarios/card_create_dispute/executable.py +++ b/scenarios/card_create_dispute/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') card = balanced.Card( cvv='123', diff --git a/scenarios/card_create_dispute/python.mako b/scenarios/card_create_dispute/python.mako index 4b881a1..b95465b 100644 --- a/scenarios/card_create_dispute/python.mako +++ b/scenarios/card_create_dispute/python.mako @@ -3,7 +3,7 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') card = balanced.Card( cvv='123', @@ -12,5 +12,5 @@ card = balanced.Card( expiration_year='3000' ).save() % elif mode == 'response': -Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx0002', expiration_month=12, href=u'/cards/CC6KXqaIUXHDh6BJpY2XqRTW', type=u'debit', id=u'CC6KXqaIUXHDh6BJpY2XqRTW', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF AMERICA', avs_street_match=None, brand=u'Discover', updated_at=u'2014-09-02T18:27:59.762352Z', fingerprint=u'3c667a62653e187f29b5781eeb0703f26e99558080de0c0f9490b5f9c4ac2871', can_debit=True, name=None, expiration_year=3000, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=True, meta={}, created_at=u'2014-09-02T18:27:59.762349Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) +Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx0002', expiration_month=12, href=u'/cards/CC4wj9Lfvka6iodY7jzyqSHe', type=u'debit', id=u'CC4wj9Lfvka6iodY7jzyqSHe', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF AMERICA', avs_street_match=None, brand=u'Discover', updated_at=u'2014-11-14T19:30:14.786385Z', fingerprint=u'3c667a62653e187f29b5781eeb0703f26e99558080de0c0f9490b5f9c4ac2871', can_debit=True, name=None, expiration_year=3000, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=True, meta={}, created_at=u'2014-11-14T19:30:14.786383Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/card_credit/executable.py b/scenarios/card_credit/executable.py index 631e276..e69f67a 100644 --- a/scenarios/card_credit/executable.py +++ b/scenarios/card_credit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card = balanced.Card.fetch('/cards/CC5uc1B6fJPQBSJUi0m58tal') +card = balanced.Card.fetch('/cards/CC3iCCIHprJu5HPyP7vmE92B') card.credit( amount=5000, description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_credit/python.mako b/scenarios/card_credit/python.mako index f91fba8..abbfcb1 100644 --- a/scenarios/card_credit/python.mako +++ b/scenarios/card_credit/python.mako @@ -3,13 +3,13 @@ balanced.Card().credit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card = balanced.Card.fetch('/cards/CC5uc1B6fJPQBSJUi0m58tal') +card = balanced.Card.fetch('/cards/CC3iCCIHprJu5HPyP7vmE92B') card.credit( amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Credit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'destination': u'CC5uc1B6fJPQBSJUi0m58tal', u'order': None}, amount=5000, created_at=u'2014-09-02T18:26:50.236855Z', updated_at=u'2014-09-02T18:26:52.375308Z', failure_reason=None, currency=u'USD', transaction_number=u'CRPMG-R6D-1BDZ', href=u'/credits/CR5uKYvRhvGBNiMQuXKBcl0Y', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR5uKYvRhvGBNiMQuXKBcl0Y') +Credit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CU2718cI8PkMdFyPjboZLZfn', u'destination': u'CC3iCCIHprJu5HPyP7vmE92B', u'order': None}, amount=5000, created_at=u'2014-11-14T19:29:19.110285Z', updated_at=u'2014-11-14T19:29:19.965523Z', failure_reason=None, currency=u'USD', transaction_number=u'CR6R4-4OF-RNZ7', href=u'/credits/CR3vFNFFCyqipPjs5t4eaIVO', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR3vFNFFCyqipPjs5t4eaIVO') % endif \ No newline at end of file diff --git a/scenarios/card_credit_order/executable.py b/scenarios/card_credit_order/executable.py index 8ff6d78..d1cdaba 100644 --- a/scenarios/card_credit_order/executable.py +++ b/scenarios/card_credit_order/executable.py @@ -1,9 +1,9 @@ import balanced -balanced.configure('ak-test-YnjW61zGxEdhpzkBcohFZ2bZhjrdtbDW') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -order = balanced.Order.fetch('/orders/OR46RV9HyvE8esnGbLPkJKW4') -card = balanced.Card.fetch('/cards/CC2F37Ml3zzsjgM2Wb3R7zqM/credits') +order = balanced.Order.fetch('/orders/OR2UWXCNY2nKlqIQhQhWN3Jm') +card = balanced.Card.fetch('/cards/CC3IBNr3erYpVuuZDyWNFfet') order.credit_to( amount=5000, source=card, diff --git a/scenarios/card_credit_order/python.mako b/scenarios/card_credit_order/python.mako index 7566520..4086ff9 100644 --- a/scenarios/card_credit_order/python.mako +++ b/scenarios/card_credit_order/python.mako @@ -4,14 +4,14 @@ balanced.Order().credit_to() % elif mode == 'request': import balanced -balanced.configure('ak-test-YnjW61zGxEdhpzkBcohFZ2bZhjrdtbDW') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -order = balanced.Order.fetch('/orders/OR46RV9HyvE8esnGbLPkJKW4') -card = balanced.Card.fetch('/cards/CC2F37Ml3zzsjgM2Wb3R7zqM/credits') +order = balanced.Order.fetch('/orders/OR2UWXCNY2nKlqIQhQhWN3Jm') +card = balanced.Card.fetch('/cards/CC3IBNr3erYpVuuZDyWNFfet') order.credit_to( amount=5000, source=card, ) % elif mode == 'response': - +Credit(status=u'succeeded', description=u'Order #12341234', links={u'customer': u'CU40AyvBB6ny9u3oelCwyc3C', u'destination': u'CC3IBNr3erYpVuuZDyWNFfet', u'order': u'OR2UWXCNY2nKlqIQhQhWN3Jm'}, amount=5000, created_at=u'2014-11-14T19:37:03.073567Z', updated_at=u'2014-11-14T19:37:04.037697Z', failure_reason=None, currency=u'USD', transaction_number=u'CR5YQ-F7A-Q1HF', href=u'/credits/CR48hJDhdGMcI2vvJyzUbG8w', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR48hJDhdGMcI2vvJyzUbG8w') % endif \ No newline at end of file diff --git a/scenarios/card_debit/executable.py b/scenarios/card_debit/executable.py index 97dc30d..fc4e069 100644 --- a/scenarios/card_debit/executable.py +++ b/scenarios/card_debit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card = balanced.Card.fetch('/cards/CC526JELNk4pET43bVu6rGkZ') +card = balanced.Card.fetch('/cards/CC33DRVrekWpiHYjxSdVuqWc') card.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/card_debit/python.mako b/scenarios/card_debit/python.mako index c36a102..6d3a685 100644 --- a/scenarios/card_debit/python.mako +++ b/scenarios/card_debit/python.mako @@ -3,14 +3,14 @@ balanced.Card().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card = balanced.Card.fetch('/cards/CC526JELNk4pET43bVu6rGkZ') +card = balanced.Card.fetch('/cards/CC33DRVrekWpiHYjxSdVuqWc') card.debit( appears_on_statement_as='Statement text', amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CU36bqPshRNopkLNM6qBmn5e', u'source': u'CC526JELNk4pET43bVu6rGkZ', u'dispute': None, u'order': None, u'card_hold': u'HL6pxgGDopPHeblb183AnZIY'}, amount=5000, created_at=u'2014-09-02T18:27:40.732341Z', updated_at=u'2014-09-02T18:27:52.735975Z', failure_reason=None, currency=u'USD', transaction_number=u'WPVT-4X8-G9SR', href=u'/debits/WD6pxYaIfe2CHQHoDj5pA2Xu', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD6pxYaIfe2CHQHoDj5pA2Xu') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC33DRVrekWpiHYjxSdVuqWc', u'dispute': None, u'order': None, u'card_hold': u'HL4hdpaliobeCUE5DjmVDGYZ'}, amount=5000, created_at=u'2014-11-14T19:30:01.409681Z', updated_at=u'2014-11-14T19:30:05.883019Z', failure_reason=None, currency=u'USD', transaction_number=u'WQDE-4P6-O15I', href=u'/debits/WD4heQm0HfB6IpymdvsGM8dv', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD4heQm0HfB6IpymdvsGM8dv') % endif \ No newline at end of file diff --git a/scenarios/card_debit_dispute/executable.py b/scenarios/card_debit_dispute/executable.py index 3dd1aad..ecdf8ba 100644 --- a/scenarios/card_debit_dispute/executable.py +++ b/scenarios/card_debit_dispute/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card = balanced.Card.fetch('/cards/CC6KXqaIUXHDh6BJpY2XqRTW') +card = balanced.Card.fetch('/cards/CC4wj9Lfvka6iodY7jzyqSHe') card.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/card_debit_dispute/python.mako b/scenarios/card_debit_dispute/python.mako index d77c883..963b2fc 100644 --- a/scenarios/card_debit_dispute/python.mako +++ b/scenarios/card_debit_dispute/python.mako @@ -3,14 +3,14 @@ balanced.Card().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card = balanced.Card.fetch('/cards/CC6KXqaIUXHDh6BJpY2XqRTW') +card = balanced.Card.fetch('/cards/CC4wj9Lfvka6iodY7jzyqSHe') card.debit( appears_on_statement_as='Statement text', amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC6KXqaIUXHDh6BJpY2XqRTW', u'dispute': None, u'order': None, u'card_hold': u'HL6LHgk1aC5vrktgu9raaSSF'}, amount=5000, created_at=u'2014-09-02T18:28:00.469964Z', updated_at=u'2014-09-02T18:28:06.464988Z', failure_reason=None, currency=u'USD', transaction_number=u'WWKX-A69-ZXTQ', href=u'/debits/WD6LJx0cm12NrjiXBR1okKt7', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD6LJx0cm12NrjiXBR1okKt7') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC4wj9Lfvka6iodY7jzyqSHe', u'dispute': None, u'order': None, u'card_hold': u'HL4xdJNOGHFS5KWwZUoPCUbX'}, amount=5000, created_at=u'2014-11-14T19:30:15.656004Z', updated_at=u'2014-11-14T19:30:24.023216Z', failure_reason=None, currency=u'USD', transaction_number=u'WQ3W-26G-HADQ', href=u'/debits/WD4xfFIxpeQpeRHm55Qc2xV3', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD4xfFIxpeQpeRHm55Qc2xV3') % endif \ No newline at end of file diff --git a/scenarios/card_delete/executable.py b/scenarios/card_delete/executable.py index 493f864..d9f08b8 100644 --- a/scenarios/card_delete/executable.py +++ b/scenarios/card_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card = balanced.Card.fetch('/cards/CC4OTo7bbk25ZWmhdQCdXkPu') +card = balanced.Card.fetch('/cards/CC33DRVrekWpiHYjxSdVuqWc') card.unstore() \ No newline at end of file diff --git a/scenarios/card_delete/python.mako b/scenarios/card_delete/python.mako index 5171add..22c41d0 100644 --- a/scenarios/card_delete/python.mako +++ b/scenarios/card_delete/python.mako @@ -3,9 +3,9 @@ balanced.Card().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card = balanced.Card.fetch('/cards/CC4OTo7bbk25ZWmhdQCdXkPu') +card = balanced.Card.fetch('/cards/CC33DRVrekWpiHYjxSdVuqWc') card.unstore() % elif mode == 'response': diff --git a/scenarios/card_hold_capture/executable.py b/scenarios/card_hold_capture/executable.py index 4c5fa94..f33ba76 100644 --- a/scenarios/card_hold_capture/executable.py +++ b/scenarios/card_hold_capture/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card_hold = balanced.CardHold.fetch('/card_holds/HL4io3nFmawRhnkkUWnC1Eoo') +card_hold = balanced.CardHold.fetch('/card_holds/HL2F8jlnySjVKidwfXgBYZMY') debit = card_hold.capture( appears_on_statement_as='ShowsUpOnStmt', description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_capture/python.mako b/scenarios/card_hold_capture/python.mako index 806f30c..acfbd04 100644 --- a/scenarios/card_hold_capture/python.mako +++ b/scenarios/card_hold_capture/python.mako @@ -3,13 +3,13 @@ balanced.CardHold().capture() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card_hold = balanced.CardHold.fetch('/card_holds/HL4io3nFmawRhnkkUWnC1Eoo') +card_hold = balanced.CardHold.fetch('/card_holds/HL2F8jlnySjVKidwfXgBYZMY') debit = card_hold.capture( appears_on_statement_as='ShowsUpOnStmt', description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC4hAPsanjFP7QWIIAAPAwKh', u'dispute': None, u'order': None, u'card_hold': u'HL4io3nFmawRhnkkUWnC1Eoo'}, amount=5000, created_at=u'2014-09-02T18:25:51.872425Z', updated_at=u'2014-09-02T18:26:00.911999Z', failure_reason=None, currency=u'USD', transaction_number=u'WH9W-VKH-QB1V', href=u'/debits/WD4r75TJSiVaTKmiASslPIR7', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, appears_on_statement_as=u'BAL*ShowsUpOnStmt', id=u'WD4r75TJSiVaTKmiASslPIR7') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC2E1bHjwNbYtzUcTAmH4kEM', u'dispute': None, u'order': None, u'card_hold': u'HL2F8jlnySjVKidwfXgBYZMY'}, amount=5000, created_at=u'2014-11-14T19:28:39.577643Z', updated_at=u'2014-11-14T19:28:44.346481Z', failure_reason=None, currency=u'USD', transaction_number=u'W8L2-II6-ANHK', href=u'/debits/WD2Ne8ZvXt0FRckpr1JQ1eRq', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, appears_on_statement_as=u'BAL*ShowsUpOnStmt', id=u'WD2Ne8ZvXt0FRckpr1JQ1eRq') % endif \ No newline at end of file diff --git a/scenarios/card_hold_create/executable.py b/scenarios/card_hold_create/executable.py index d4e3c9d..2a7dae2 100644 --- a/scenarios/card_hold_create/executable.py +++ b/scenarios/card_hold_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card = balanced.Card.fetch('/cards/CC4hAPsanjFP7QWIIAAPAwKh') +card = balanced.Card.fetch('/cards/CC2E1bHjwNbYtzUcTAmH4kEM') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_create/python.mako b/scenarios/card_hold_create/python.mako index fe79a6a..cb28040 100644 --- a/scenarios/card_hold_create/python.mako +++ b/scenarios/card_hold_create/python.mako @@ -3,13 +3,13 @@ balanced.Card().hold() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card = balanced.Card.fetch('/cards/CC4hAPsanjFP7QWIIAAPAwKh') +card = balanced.Card.fetch('/cards/CC2E1bHjwNbYtzUcTAmH4kEM') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC4hAPsanjFP7QWIIAAPAwKh', u'debit': None}, amount=5000, created_at=u'2014-09-02T18:26:02.180272Z', updated_at=u'2014-09-02T18:26:04.062983Z', expires_at=u'2014-09-09T18:26:03.227642Z', failure_reason=None, currency=u'USD', transaction_number=u'HL3O6-J0N-LZ9C', href=u'/card_holds/HL4CIbHV4zlSfx5c6eKK1AOY', meta={}, failure_reason_code=None, voided_at=None, id=u'HL4CIbHV4zlSfx5c6eKK1AOY') +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'order': None, u'card': u'CC2E1bHjwNbYtzUcTAmH4kEM', u'debit': None}, amount=5000, created_at=u'2014-11-14T19:28:45.612075Z', updated_at=u'2014-11-14T19:28:45.961184Z', expires_at=u'2014-11-21T19:28:45.868142Z', failure_reason=None, currency=u'USD', transaction_number=u'HLQG1-BTL-YXG4', href=u'/card_holds/HL2U14YhpFdRACfJzlQNFI7m', meta={}, failure_reason_code=None, voided_at=None, id=u'HL2U14YhpFdRACfJzlQNFI7m') % endif \ No newline at end of file diff --git a/scenarios/card_hold_list/executable.py b/scenarios/card_hold_list/executable.py index f00357b..91af8ab 100644 --- a/scenarios/card_hold_list/executable.py +++ b/scenarios/card_hold_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') card_holds = balanced.CardHold.query \ No newline at end of file diff --git a/scenarios/card_hold_list/python.mako b/scenarios/card_hold_list/python.mako index 8cbd0f8..a68f6bf 100644 --- a/scenarios/card_hold_list/python.mako +++ b/scenarios/card_hold_list/python.mako @@ -4,7 +4,7 @@ balanced.CardHold.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') card_holds = balanced.CardHold.query % elif mode == 'response': diff --git a/scenarios/card_hold_order/executable.py b/scenarios/card_hold_order/executable.py index 8affb51..9c34aa5 100644 --- a/scenarios/card_hold_order/executable.py +++ b/scenarios/card_hold_order/executable.py @@ -1,11 +1,11 @@ import balanced -balanced.configure('ak-test-YnjW61zGxEdhpzkBcohFZ2bZhjrdtbDW') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -order = balanced.Order.fetch('/orders/OR46RV9HyvE8esnGbLPkJKW4') -card = balanced.Card.fetch('/cards/CC2vbVLAMwrNqlLvp3km6hq0') +order = balanced.Order.fetch('/orders/OR5sl2RJVnbwEf45nq5eATdz') +card = balanced.Card.fetch('/cards/CC33DRVrekWpiHYjxSdVuqWc') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard', - order='/orders/OR46RV9HyvE8esnGbLPkJKW4' + order='/orders/OR5sl2RJVnbwEf45nq5eATdz' ) \ No newline at end of file diff --git a/scenarios/card_hold_order/python.mako b/scenarios/card_hold_order/python.mako index 4bc3cd7..ee4b7db 100644 --- a/scenarios/card_hold_order/python.mako +++ b/scenarios/card_hold_order/python.mako @@ -3,15 +3,15 @@ balanced.Card().hold() % elif mode == 'request': import balanced -balanced.configure('ak-test-YnjW61zGxEdhpzkBcohFZ2bZhjrdtbDW') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -order = balanced.Order.fetch('/orders/OR46RV9HyvE8esnGbLPkJKW4') -card = balanced.Card.fetch('/cards/CC2vbVLAMwrNqlLvp3km6hq0') +order = balanced.Order.fetch('/orders/OR5sl2RJVnbwEf45nq5eATdz') +card = balanced.Card.fetch('/cards/CC33DRVrekWpiHYjxSdVuqWc') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard', - order='/orders/OR46RV9HyvE8esnGbLPkJKW4' + order='/orders/OR5sl2RJVnbwEf45nq5eATdz' ) % elif mode == 'response': -CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'order': u'OR46RV9HyvE8esnGbLPkJKW4', u'card': u'CC2vbVLAMwrNqlLvp3km6hq0', u'debit': None}, amount=5000, created_at=u'2014-11-13T19:57:30.442727Z', updated_at=u'2014-11-13T19:57:30.726474Z', expires_at=u'2014-11-20T19:57:30.624532Z', failure_reason=None, currency=u'USD', transaction_number=u'HL654-SXW-6M8Q', href=u'/card_holds/HL1LZwQgbt3Saga2dnKeihKd', meta={}, failure_reason_code=None, voided_at=None, id=u'HL1LZwQgbt3Saga2dnKeihKd') +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'order': u'OR5sl2RJVnbwEf45nq5eATdz', u'card': u'CC33DRVrekWpiHYjxSdVuqWc', u'debit': None}, amount=5000, created_at=u'2014-11-14T19:33:51.879868Z', updated_at=u'2014-11-14T19:33:52.717417Z', expires_at=u'2014-11-21T19:33:52.579614Z', failure_reason=None, currency=u'USD', transaction_number=u'HLS8T-X5S-C9TP', href=u'/card_holds/HLFpnZtmuIk0mVJKtYuaWSQ', meta={}, failure_reason_code=None, voided_at=None, id=u'HLFpnZtmuIk0mVJKtYuaWSQ') % endif \ No newline at end of file diff --git a/scenarios/card_hold_show/executable.py b/scenarios/card_hold_show/executable.py index 82eb306..eb7f233 100644 --- a/scenarios/card_hold_show/executable.py +++ b/scenarios/card_hold_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card_hold = balanced.CardHold.fetch('/card_holds/HL4io3nFmawRhnkkUWnC1Eoo') \ No newline at end of file +card_hold = balanced.CardHold.fetch('/card_holds/HL2F8jlnySjVKidwfXgBYZMY') \ No newline at end of file diff --git a/scenarios/card_hold_show/python.mako b/scenarios/card_hold_show/python.mako index c8ef2a3..37fe2a3 100644 --- a/scenarios/card_hold_show/python.mako +++ b/scenarios/card_hold_show/python.mako @@ -4,9 +4,9 @@ balanced.CardHold.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card_hold = balanced.CardHold.fetch('/card_holds/HL4io3nFmawRhnkkUWnC1Eoo') +card_hold = balanced.CardHold.fetch('/card_holds/HL2F8jlnySjVKidwfXgBYZMY') % elif mode == 'response': -CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC4hAPsanjFP7QWIIAAPAwKh', u'debit': None}, amount=5000, created_at=u'2014-09-02T18:25:44.114448Z', updated_at=u'2014-09-02T18:25:46.117246Z', expires_at=u'2014-09-09T18:25:44.889479Z', failure_reason=None, currency=u'USD', transaction_number=u'HLOUQ-V39-L4PE', href=u'/card_holds/HL4io3nFmawRhnkkUWnC1Eoo', meta={}, failure_reason_code=None, voided_at=None, id=u'HL4io3nFmawRhnkkUWnC1Eoo') +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'order': None, u'card': u'CC2E1bHjwNbYtzUcTAmH4kEM', u'debit': None}, amount=5000, created_at=u'2014-11-14T19:28:32.378595Z', updated_at=u'2014-11-14T19:28:32.934510Z', expires_at=u'2014-11-21T19:28:32.843418Z', failure_reason=None, currency=u'USD', transaction_number=u'HL0SV-779-FT23', href=u'/card_holds/HL2F8jlnySjVKidwfXgBYZMY', meta={}, failure_reason_code=None, voided_at=None, id=u'HL2F8jlnySjVKidwfXgBYZMY') % endif \ No newline at end of file diff --git a/scenarios/card_hold_update/executable.py b/scenarios/card_hold_update/executable.py index 5eee024..61d64a0 100644 --- a/scenarios/card_hold_update/executable.py +++ b/scenarios/card_hold_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card_hold = balanced.CardHold.fetch('/card_holds/HL4io3nFmawRhnkkUWnC1Eoo') +card_hold = balanced.CardHold.fetch('/card_holds/HL2F8jlnySjVKidwfXgBYZMY') card_hold.description = 'update this description' card_hold.meta = { 'holding.for': 'user1', diff --git a/scenarios/card_hold_update/python.mako b/scenarios/card_hold_update/python.mako index 815368c..4c88910 100644 --- a/scenarios/card_hold_update/python.mako +++ b/scenarios/card_hold_update/python.mako @@ -3,9 +3,9 @@ balanced.CardHold().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card_hold = balanced.CardHold.fetch('/card_holds/HL4io3nFmawRhnkkUWnC1Eoo') +card_hold = balanced.CardHold.fetch('/card_holds/HL2F8jlnySjVKidwfXgBYZMY') card_hold.description = 'update this description' card_hold.meta = { 'holding.for': 'user1', @@ -13,5 +13,5 @@ card_hold.meta = { } card_hold.save() % elif mode == 'response': -CardHold(status=u'succeeded', description=u'update this description', links={u'card': u'CC4hAPsanjFP7QWIIAAPAwKh', u'debit': None}, amount=5000, created_at=u'2014-09-02T18:25:44.114448Z', updated_at=u'2014-09-02T18:25:50.616558Z', expires_at=u'2014-09-09T18:25:44.889479Z', failure_reason=None, currency=u'USD', transaction_number=u'HLOUQ-V39-L4PE', href=u'/card_holds/HL4io3nFmawRhnkkUWnC1Eoo', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, voided_at=None, id=u'HL4io3nFmawRhnkkUWnC1Eoo') +CardHold(status=u'succeeded', description=u'update this description', links={u'order': None, u'card': u'CC2E1bHjwNbYtzUcTAmH4kEM', u'debit': None}, amount=5000, created_at=u'2014-11-14T19:28:32.378595Z', updated_at=u'2014-11-14T19:28:38.296215Z', expires_at=u'2014-11-21T19:28:32.843418Z', failure_reason=None, currency=u'USD', transaction_number=u'HL0SV-779-FT23', href=u'/card_holds/HL2F8jlnySjVKidwfXgBYZMY', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, voided_at=None, id=u'HL2F8jlnySjVKidwfXgBYZMY') % endif \ No newline at end of file diff --git a/scenarios/card_hold_void/executable.py b/scenarios/card_hold_void/executable.py index 902cd97..4d2a613 100644 --- a/scenarios/card_hold_void/executable.py +++ b/scenarios/card_hold_void/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card_hold = balanced.CardHold.fetch('/card_holds/HL4CIbHV4zlSfx5c6eKK1AOY') +card_hold = balanced.CardHold.fetch('/card_holds/HL2U14YhpFdRACfJzlQNFI7m') card_hold.cancel() \ No newline at end of file diff --git a/scenarios/card_hold_void/python.mako b/scenarios/card_hold_void/python.mako index 95ec1b5..31c4077 100644 --- a/scenarios/card_hold_void/python.mako +++ b/scenarios/card_hold_void/python.mako @@ -3,10 +3,10 @@ balanced.CardHold().cancel() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card_hold = balanced.CardHold.fetch('/card_holds/HL4CIbHV4zlSfx5c6eKK1AOY') +card_hold = balanced.CardHold.fetch('/card_holds/HL2U14YhpFdRACfJzlQNFI7m') card_hold.cancel() % elif mode == 'response': -CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC4hAPsanjFP7QWIIAAPAwKh', u'debit': None}, amount=5000, created_at=u'2014-09-02T18:26:02.180272Z', updated_at=u'2014-09-02T18:26:04.701130Z', expires_at=u'2014-09-09T18:26:03.227642Z', failure_reason=None, currency=u'USD', transaction_number=u'HL3O6-J0N-LZ9C', href=u'/card_holds/HL4CIbHV4zlSfx5c6eKK1AOY', meta={}, failure_reason_code=None, voided_at=u'2014-09-02T18:26:04.701132Z', id=u'HL4CIbHV4zlSfx5c6eKK1AOY') +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'order': None, u'card': u'CC2E1bHjwNbYtzUcTAmH4kEM', u'debit': None}, amount=5000, created_at=u'2014-11-14T19:28:45.612075Z', updated_at=u'2014-11-14T19:28:46.396890Z', expires_at=u'2014-11-21T19:28:45.868142Z', failure_reason=None, currency=u'USD', transaction_number=u'HLQG1-BTL-YXG4', href=u'/card_holds/HL2U14YhpFdRACfJzlQNFI7m', meta={}, failure_reason_code=None, voided_at=u'2014-11-14T19:28:46.396893Z', id=u'HL2U14YhpFdRACfJzlQNFI7m') % endif \ No newline at end of file diff --git a/scenarios/card_list/executable.py b/scenarios/card_list/executable.py index bcd0cec..2368e26 100644 --- a/scenarios/card_list/executable.py +++ b/scenarios/card_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') cards = balanced.Card.query \ No newline at end of file diff --git a/scenarios/card_list/python.mako b/scenarios/card_list/python.mako index 27f469b..1d44e19 100644 --- a/scenarios/card_list/python.mako +++ b/scenarios/card_list/python.mako @@ -4,7 +4,7 @@ balanced.Card.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') cards = balanced.Card.query % elif mode == 'response': diff --git a/scenarios/card_show/executable.py b/scenarios/card_show/executable.py index a048123..a99e798 100644 --- a/scenarios/card_show/executable.py +++ b/scenarios/card_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card = balanced.Card.fetch('/cards/CC4OTo7bbk25ZWmhdQCdXkPu') \ No newline at end of file +card = balanced.Card.fetch('/cards/CC33DRVrekWpiHYjxSdVuqWc') \ No newline at end of file diff --git a/scenarios/card_show/python.mako b/scenarios/card_show/python.mako index 3b76527..bb14d13 100644 --- a/scenarios/card_show/python.mako +++ b/scenarios/card_show/python.mako @@ -3,9 +3,9 @@ balanced.Card.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card = balanced.Card.fetch('/cards/CC4OTo7bbk25ZWmhdQCdXkPu') +card = balanced.Card.fetch('/cards/CC33DRVrekWpiHYjxSdVuqWc') % elif mode == 'response': -Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC4OTo7bbk25ZWmhdQCdXkPu', type=u'credit', id=u'CC4OTo7bbk25ZWmhdQCdXkPu', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2014-09-02T18:26:13.013304Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={}, created_at=u'2014-09-02T18:26:13.013301Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) +Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC33DRVrekWpiHYjxSdVuqWc', type=u'credit', id=u'CC33DRVrekWpiHYjxSdVuqWc', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2014-11-14T19:28:54.173123Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={}, created_at=u'2014-11-14T19:28:54.173121Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/card_update/executable.py b/scenarios/card_update/executable.py index b424f53..5ce466c 100644 --- a/scenarios/card_update/executable.py +++ b/scenarios/card_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card = balanced.Card.fetch('/cards/CC4OTo7bbk25ZWmhdQCdXkPu') +card = balanced.Card.fetch('/cards/CC33DRVrekWpiHYjxSdVuqWc') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/card_update/python.mako b/scenarios/card_update/python.mako index 1ff2bb3..1dcfc1d 100644 --- a/scenarios/card_update/python.mako +++ b/scenarios/card_update/python.mako @@ -3,9 +3,9 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -card = balanced.Card.fetch('/cards/CC4OTo7bbk25ZWmhdQCdXkPu') +card = balanced.Card.fetch('/cards/CC33DRVrekWpiHYjxSdVuqWc') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', @@ -13,5 +13,5 @@ card.meta = { } card.save() % elif mode == 'response': -Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC4OTo7bbk25ZWmhdQCdXkPu', type=u'credit', id=u'CC4OTo7bbk25ZWmhdQCdXkPu', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2014-09-02T18:26:17.011527Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, created_at=u'2014-09-02T18:26:13.013301Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) +Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC33DRVrekWpiHYjxSdVuqWc', type=u'credit', id=u'CC33DRVrekWpiHYjxSdVuqWc', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2014-11-14T19:28:59.213581Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, created_at=u'2014-11-14T19:28:54.173121Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/credit_list/executable.py b/scenarios/credit_list/executable.py index 72d6222..86d63d8 100644 --- a/scenarios/credit_list/executable.py +++ b/scenarios/credit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') credits = balanced.Credit.query \ No newline at end of file diff --git a/scenarios/credit_list/python.mako b/scenarios/credit_list/python.mako index 1e73ae2..b4fda8c 100644 --- a/scenarios/credit_list/python.mako +++ b/scenarios/credit_list/python.mako @@ -4,7 +4,7 @@ balanced.Credit.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') credits = balanced.Credit.query % elif mode == 'response': diff --git a/scenarios/credit_list_bank_account/executable.py b/scenarios/credit_list_bank_account/executable.py index b6ffb8b..643a7f1 100644 --- a/scenarios/credit_list_bank_account/executable.py +++ b/scenarios/credit_list_bank_account/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S/credits') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1D19WqGc3j78IAhFIkasQd/credits') credits = bank_account.credits \ No newline at end of file diff --git a/scenarios/credit_order/executable.py b/scenarios/credit_order/executable.py index 0396210..23af348 100644 --- a/scenarios/credit_order/executable.py +++ b/scenarios/credit_order/executable.py @@ -1,9 +1,9 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -order = balanced.Order.fetch('/orders/OR5EZkSOSTsmYJlJi6UlrUmp') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3bgtBxC3q4N9QvlN2jqFnL/credits') +order = balanced.Order.fetch('/orders/OR3BXTqXewuSy1Cu3g6N2Sjj') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2gul8YMjFWnFk0fFHXwX6g/credits') order.credit_to( amount=5000, destination=bank_account diff --git a/scenarios/credit_show/executable.py b/scenarios/credit_show/executable.py index 0231b4d..b153581 100644 --- a/scenarios/credit_show/executable.py +++ b/scenarios/credit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -credit = balanced.Credit.fetch('/credits/CR5z2Z4kFI12xAe5NQhWSjvD') \ No newline at end of file +credit = balanced.Credit.fetch('/credits/CR3yvp1R6162kK7MozoHmSkg') \ No newline at end of file diff --git a/scenarios/credit_update/executable.py b/scenarios/credit_update/executable.py index 9db4d3f..9ec9fe1 100644 --- a/scenarios/credit_update/executable.py +++ b/scenarios/credit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -credit = balanced.Credit.fetch('/credits/CR5z2Z4kFI12xAe5NQhWSjvD') +credit = balanced.Credit.fetch('/credits/CR3yvp1R6162kK7MozoHmSkg') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/customer_create/executable.py b/scenarios/customer_create/executable.py index dcfe099..a3d49af 100644 --- a/scenarios/customer_create/executable.py +++ b/scenarios/customer_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') customer = balanced.Customer( dob_year=1963, diff --git a/scenarios/customer_delete/executable.py b/scenarios/customer_delete/executable.py index e5c8030..4cc5302 100644 --- a/scenarios/customer_delete/executable.py +++ b/scenarios/customer_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -customer = balanced.Customer.fetch('/customers/CU64t3pxAegzhZL0O8WMpWi9') +customer = balanced.Customer.fetch('/customers/CU40AyvBB6ny9u3oelCwyc3C') customer.unstore() \ No newline at end of file diff --git a/scenarios/customer_list/executable.py b/scenarios/customer_list/executable.py index 7aefd66..185e673 100644 --- a/scenarios/customer_list/executable.py +++ b/scenarios/customer_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') customers = balanced.Customer.query \ No newline at end of file diff --git a/scenarios/customer_show/executable.py b/scenarios/customer_show/executable.py index 22f4eb6..fb4b0b4 100644 --- a/scenarios/customer_show/executable.py +++ b/scenarios/customer_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -customer = balanced.Customer.fetch('/customers/CU5W6C3JluP9VS1RBm2EwtQQ') \ No newline at end of file +customer = balanced.Customer.fetch('/customers/CU3SSJgvA5Z69kt05MusbPeE') \ No newline at end of file diff --git a/scenarios/customer_update/executable.py b/scenarios/customer_update/executable.py index 0fb98bb..4b5e497 100644 --- a/scenarios/customer_update/executable.py +++ b/scenarios/customer_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -customer = balanced.Debit.fetch('/customers/CU5W6C3JluP9VS1RBm2EwtQQ') +customer = balanced.Debit.fetch('/customers/CU3SSJgvA5Z69kt05MusbPeE') customer.email = 'email@newdomain.com' customer.meta = { 'shipping-preference': 'ground' diff --git a/scenarios/debit_dispute_show/executable.py b/scenarios/debit_dispute_show/executable.py index 70a06c6..ad46ce2 100644 --- a/scenarios/debit_dispute_show/executable.py +++ b/scenarios/debit_dispute_show/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -debit = balanced.Debit.fetch('/debits/WD6LJx0cm12NrjiXBR1okKt7') +debit = balanced.Debit.fetch('/debits/WD4xfFIxpeQpeRHm55Qc2xV3') dispute = debit.dispute \ No newline at end of file diff --git a/scenarios/debit_list/executable.py b/scenarios/debit_list/executable.py index 000a2de..375e684 100644 --- a/scenarios/debit_list/executable.py +++ b/scenarios/debit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') debits = balanced.Debit.query \ No newline at end of file diff --git a/scenarios/debit_order/executable.py b/scenarios/debit_order/executable.py index 75aa8e8..79484c4 100644 --- a/scenarios/debit_order/executable.py +++ b/scenarios/debit_order/executable.py @@ -1,9 +1,9 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -order = balanced.Order.fetch('/orders/OR5EZkSOSTsmYJlJi6UlrUmp') -card = balanced.Card.fetch('/cards/CC526JELNk4pET43bVu6rGkZ') +order = balanced.Order.fetch('/orders/OR2UWXCNY2nKlqIQhQhWN3Jm') +card = balanced.Card.fetch('/cards/CC33DRVrekWpiHYjxSdVuqWc') order.debit_from( amount=5000, source=card, diff --git a/scenarios/debit_show/executable.py b/scenarios/debit_show/executable.py index 2466d60..4ee2740 100644 --- a/scenarios/debit_show/executable.py +++ b/scenarios/debit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -debit = balanced.Debit.fetch('/debits/WD55Z5kh4Onm0x0NkeuovrEs') \ No newline at end of file +debit = balanced.Debit.fetch('/debits/WD3nVmuDYvCWCox0YECGc6b3') \ No newline at end of file diff --git a/scenarios/debit_update/executable.py b/scenarios/debit_update/executable.py index e6e92ca..5a3dc7a 100644 --- a/scenarios/debit_update/executable.py +++ b/scenarios/debit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -debit = balanced.Debit.fetch('/debits/WD55Z5kh4Onm0x0NkeuovrEs') +debit = balanced.Debit.fetch('/debits/WD3nVmuDYvCWCox0YECGc6b3') debit.description = 'New description for debit' debit.meta = { 'facebook.id': '1234567890', diff --git a/scenarios/dispute_list/executable.py b/scenarios/dispute_list/executable.py index a958e73..ce28afc 100644 --- a/scenarios/dispute_list/executable.py +++ b/scenarios/dispute_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') disputes = balanced.Dispute.query \ No newline at end of file diff --git a/scenarios/dispute_show/executable.py b/scenarios/dispute_show/executable.py index c630494..8623dff 100644 --- a/scenarios/dispute_show/executable.py +++ b/scenarios/dispute_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -dispute = balanced.Dispute.fetch('/disputes/DT7be1ZNkz2SkA9rhBqxynrA') \ No newline at end of file +dispute = balanced.Dispute.fetch('/disputes/DT5bIvcPoUL541jY893QHQNB') \ No newline at end of file diff --git a/scenarios/event_list/executable.py b/scenarios/event_list/executable.py index 0aab70b..a841ade 100644 --- a/scenarios/event_list/executable.py +++ b/scenarios/event_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') events = balanced.Event.query \ No newline at end of file diff --git a/scenarios/event_show/executable.py b/scenarios/event_show/executable.py index 9c12593a..c136244 100644 --- a/scenarios/event_show/executable.py +++ b/scenarios/event_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -event = balanced.Event.fetch('/events/EVf13ffaec32ce11e48d6c0647853a3607') \ No newline at end of file +event = balanced.Event.fetch('/events/EVac079fda6c3411e49b2c020fe4ae3568') \ No newline at end of file diff --git a/scenarios/order_create/executable.py b/scenarios/order_create/executable.py index 5e47aca..f3919b1 100644 --- a/scenarios/order_create/executable.py +++ b/scenarios/order_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -merchant_customer = balanced.Customer.fetch('/customers/CU64t3pxAegzhZL0O8WMpWi9') +merchant_customer = balanced.Customer.fetch('/customers/CU40AyvBB6ny9u3oelCwyc3C') merchant_customer.create_order( description='Order #12341234' ).save() \ No newline at end of file diff --git a/scenarios/order_list/executable.py b/scenarios/order_list/executable.py index 43c7c50..b6a90ff 100644 --- a/scenarios/order_list/executable.py +++ b/scenarios/order_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') orders = balanced.Order.query \ No newline at end of file diff --git a/scenarios/order_show/executable.py b/scenarios/order_show/executable.py index c02a088..1d9238c 100644 --- a/scenarios/order_show/executable.py +++ b/scenarios/order_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -order = balanced.Order.fetch('/orders/OR7qAh5x1cFzX0U9hD628LPa') \ No newline at end of file +order = balanced.Order.fetch('/orders/OR5sl2RJVnbwEf45nq5eATdz') \ No newline at end of file diff --git a/scenarios/order_update/executable.py b/scenarios/order_update/executable.py index 96fe6c7..e47312f 100644 --- a/scenarios/order_update/executable.py +++ b/scenarios/order_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -order = balanced.Order.fetch('/orders/OR7qAh5x1cFzX0U9hD628LPa') +order = balanced.Order.fetch('/orders/OR5sl2RJVnbwEf45nq5eATdz') order.description = 'New description for order' order.meta = { 'anykey': 'valuegoeshere', diff --git a/scenarios/refund_create/executable.py b/scenarios/refund_create/executable.py index 39075c0..700ec8c 100644 --- a/scenarios/refund_create/executable.py +++ b/scenarios/refund_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -debit = balanced.Debit.fetch('/debits/WD6pxYaIfe2CHQHoDj5pA2Xu') +debit = balanced.Debit.fetch('/debits/WD4heQm0HfB6IpymdvsGM8dv') refund = debit.refund( amount=3000, description="Refund for Order #1111", diff --git a/scenarios/refund_list/executable.py b/scenarios/refund_list/executable.py index 2a4d4a6..8a3dfdf 100644 --- a/scenarios/refund_list/executable.py +++ b/scenarios/refund_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') refunds = balanced.Refund.query \ No newline at end of file diff --git a/scenarios/refund_show/executable.py b/scenarios/refund_show/executable.py index fc7a746..e952a45 100644 --- a/scenarios/refund_show/executable.py +++ b/scenarios/refund_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -refund = balanced.Refund.fetch('/refunds/RF6E0QICQDqJCkJ3HSvQtvOR') \ No newline at end of file +refund = balanced.Refund.fetch('/refunds/RF4n5AfJ8MRB55oTzVWTRoVa') \ No newline at end of file diff --git a/scenarios/refund_update/executable.py b/scenarios/refund_update/executable.py index 34f32ee..506d515 100644 --- a/scenarios/refund_update/executable.py +++ b/scenarios/refund_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -refund = balanced.Refund.fetch('/refunds/RF6E0QICQDqJCkJ3HSvQtvOR') +refund = balanced.Refund.fetch('/refunds/RF4n5AfJ8MRB55oTzVWTRoVa') refund.description = 'update this description' refund.meta = { 'user.refund.count': '3', diff --git a/scenarios/reversal_create/executable.py b/scenarios/reversal_create/executable.py index aa96430..851ceb2 100644 --- a/scenarios/reversal_create/executable.py +++ b/scenarios/reversal_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -credit = balanced.Credit.fetch('/credits/CR7CqCpjWl6O9BjxrQVOFi48') +credit = balanced.Credit.fetch('/credits/CR5DQV6PdifnxDMmethpLIGN') reversal = credit.reverse( amount=3000, description="Reversal for Order #1111", diff --git a/scenarios/reversal_list/executable.py b/scenarios/reversal_list/executable.py index fab1866..e72da2c 100644 --- a/scenarios/reversal_list/executable.py +++ b/scenarios/reversal_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') reversals = balanced.Reversal.query \ No newline at end of file diff --git a/scenarios/reversal_show/executable.py b/scenarios/reversal_show/executable.py index a419db7..fb06674 100644 --- a/scenarios/reversal_show/executable.py +++ b/scenarios/reversal_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -refund = balanced.Reversal.fetch('/reversals/RV7DQpcc6sowPOMi29WTjlOU') \ No newline at end of file +refund = balanced.Reversal.fetch('/reversals/RV5Fc1aJCtoFdUKBVdErGJed') \ No newline at end of file diff --git a/scenarios/reversal_update/executable.py b/scenarios/reversal_update/executable.py index 257689e..ac912e3 100644 --- a/scenarios/reversal_update/executable.py +++ b/scenarios/reversal_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') -reversal = balanced.Reversal.fetch('/reversals/RV7DQpcc6sowPOMi29WTjlOU') +reversal = balanced.Reversal.fetch('/reversals/RV5Fc1aJCtoFdUKBVdErGJed') reversal.description = 'update this description' reversal.meta = { 'user.refund.count': '3', From 912966f35a19af4b56782f9e6622f8ba05185347 Mon Sep 17 00:00:00 2001 From: richie serna Date: Thu, 20 Nov 2014 15:52:18 -0800 Subject: [PATCH 81/93] Add settle method to accounts --- balanced/resources.py | 10 +++++++- tests/test_suite.py | 54 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 1 deletion(-) diff --git a/balanced/resources.py b/balanced/resources.py index ca52a74..6ec75d0 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -594,13 +594,21 @@ class ExternalAccount(FundingInstrument): class Account(FundingInstrument): """ - An Account is a way to have a store of some kind of value. + An Account is a way to transfer funds from multiple Orders into one place, + which can later be bulk credited out. """ type = 'accounts' uri_gen = wac.URIGen('/accounts', '{account}') + def settle(self, destination, **kwargs): + return Settlement( + href=self.settlements.href, + destination=destination, + **kwargs + ) + class Settlement(Transaction): """ diff --git a/tests/test_suite.py b/tests/test_suite.py index 5dd5edb..1583ebe 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -505,6 +505,60 @@ def test_get_none_for_none(self): self.assertIsNotNone(card.customer) self.assertTrue(isinstance(card.customer, balanced.Customer)) + def test_accounts_transfer(self): + merchant = balanced.Customer().save() + order = merchant.create_order() + card = balanced.Card(**INTERNATIONAL_CARD).save() + + order.debit_from(source=card, amount=1234) + sweep_account = merchant.account + account_credit = sweep_account.credit(amount=1234, order=order.href, + appears_on_statement_as='Payout') + self.assertEqual(account_credit.status, 'succeeded') + self.assertEqual(sweep_account.balance, 1234) + self.assertEqual(account_credit.account_credit, 'Payout') + + def test_accounts_transfer_from_multiple_orders(self): + merchant = balanced.Customer().save() + card = balanced.Card(**INTERNATIONAL_CARD).save() + sweep_account = merchant.account + amount = 1234 + + order_one = merchant.create_order() + order_one.debit_from(source=card, amount=amount) + account_credit_one = sweep_account.credit(amount=amount, + order=order_one.href) + order_two = merchant.create_order() + order_two.debit_from(source=card, amount=amount) + account_credit_two = sweep_account.credit(amount=amount, + order=order_two.href) + self.assertEqual(sweep_account.balance, amount*2) + + def test_settlement(self): + merchant = balanced.Customer().save() + order = merchant.create_order() + card = balanced.Card(**INTERNATIONAL_CARD).save() + + order.debit_from(source=card, amount=1234) + sweep_account = merchant.account + account_credit = sweep_account.credit(amount=1234, order=order.href, + appears_on_statement_as='Payout') + bank_account = balanced.BankAccount( + account_number='1234567890', + routing_number='321174851', + name='Someone', + ).save() + bank_account.associate_to_customer(merchant) + + settlement = sweep_account.settle( + destination=bank_account.href, + appears_on_statement_as="Settlement Oct", + description="Settlement for payouts from October") + self.assertEqual(settlement.amount, 1234) + self.assertEqual(settlement.appears_on_statement_as, "Settlement Oct") + self.assertEqual(settlement.description, + "Settlement for payouts from October") + class Rev0URIBasicUseCases(unittest.TestCase): """This test case ensures all revision 0 URIs can work without a problem From 673530580f3587f0c1a9f8655f34ff6f5010ef87 Mon Sep 17 00:00:00 2001 From: richie serna Date: Thu, 20 Nov 2014 16:30:18 -0800 Subject: [PATCH 82/93] edit tests for settlements --- balanced/resources.py | 4 +-- tests/test_suite.py | 68 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 69 insertions(+), 3 deletions(-) diff --git a/balanced/resources.py b/balanced/resources.py index 6ec75d0..b203e15 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -602,10 +602,10 @@ class Account(FundingInstrument): uri_gen = wac.URIGen('/accounts', '{account}') - def settle(self, destination, **kwargs): + def settle(self, funding_instrument, **kwargs): return Settlement( href=self.settlements.href, - destination=destination, + funding_instrument=funding_instrument, **kwargs ) diff --git a/tests/test_suite.py b/tests/test_suite.py index 1583ebe..6dc8e46 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -512,6 +512,7 @@ def test_accounts_transfer(self): order.debit_from(source=card, amount=1234) sweep_account = merchant.account + self.assertEqual(sweep_account.balance, 0) account_credit = sweep_account.credit(amount=1234, order=order.href, appears_on_statement_as='Payout') self.assertEqual(account_credit.status, 'succeeded') @@ -522,12 +523,14 @@ def test_accounts_transfer_from_multiple_orders(self): merchant = balanced.Customer().save() card = balanced.Card(**INTERNATIONAL_CARD).save() sweep_account = merchant.account + self.assertEqual(sweep_account.balance, 0) amount = 1234 order_one = merchant.create_order() order_one.debit_from(source=card, amount=amount) account_credit_one = sweep_account.credit(amount=amount, order=order_one.href) + self.assertEqual(sweep_account.balance, amount) order_two = merchant.create_order() order_two.debit_from(source=card, amount=amount) account_credit_two = sweep_account.credit(amount=amount, @@ -543,6 +546,7 @@ def test_settlement(self): sweep_account = merchant.account account_credit = sweep_account.credit(amount=1234, order=order.href, appears_on_statement_as='Payout') + self.assertEqual(sweep_account.balance, 1234) bank_account = balanced.BankAccount( account_number='1234567890', routing_number='321174851', @@ -551,13 +555,75 @@ def test_settlement(self): bank_account.associate_to_customer(merchant) settlement = sweep_account.settle( - destination=bank_account.href, + funding_instrument=bank_account.href, appears_on_statement_as="Settlement Oct", description="Settlement for payouts from October") self.assertEqual(settlement.amount, 1234) self.assertEqual(settlement.appears_on_statement_as, "Settlement Oct") self.assertEqual(settlement.description, "Settlement for payouts from October") + self.assertEqual(sweep_account.balance, 0) + + def test_reverse_settlement(self): + merchant = balanced.Customer().save() + order = merchant.create_order() + card = balanced.Card(**INTERNATIONAL_CARD).save() + + order.debit_from(source=card, amount=1234) + sweep_account = merchant.account + account_credit = sweep_account.credit(amount=1234, order=order.href, + appears_on_statement_as='Payout') + self.assertEqual(sweep_account.balance, 1234) + + bank_account = balanced.BankAccount( + account_number='1234567890', + routing_number='321174851', + name='Someone', + ).save() + bank_account.associate_to_customer(merchant) + + settlement = sweep_account.settle( + funding_instrument=bank_account.href, + appears_on_statement_as="Settlement Oct", + description="Settlement for payouts from October") + self.assertEqual(sweep_account.balance, 0) + + credit_from_escrow = sweep_account.credit(amount=1234) + self.assertEqual(sweep_account.balance, 1234) + + account_credit.reverse(amount=1234) + self.assertEqual(sweep_account.balance, 0) + + def test_reverse_settlement_with_negative_account_balance(self): + merchant = balanced.Customer().save() + order = merchant.create_order() + card = balanced.Card(**INTERNATIONAL_CARD).save() + + order.debit_from(source=card, amount=1234) + sweep_account = merchant.account + account_credit = sweep_account.credit(amount=1234, order=order.href, + appears_on_statement_as='Payout') + bank_account = balanced.BankAccount( + account_number='1234567890', + routing_number='321174851', + name='Someone', + ).save() + bank_account.associate_to_customer(merchant) + + settlement = sweep_account.settle( + funding_instrument=bank_account.href, + appears_on_statement_as="Settlement Oct", + description="Settlement for payouts from October") + self.assertEqual(sweep_account.balance, 0) + + account_credit.reverse(amount=1234) + self.assertEqual(sweep_account.balance, -1234) + + settlement = sweep_account.settle( + funding_instrument=bank_account.href, + appears_on_statement_as="Settlement Oct", + description="Settlement for payouts from October") + self.assertEqual(sweep_account.balance, 0) class Rev0URIBasicUseCases(unittest.TestCase): From 7e093cd08dc5dc0581991b3409550ad9e4fe798b Mon Sep 17 00:00:00 2001 From: richie serna Date: Fri, 21 Nov 2014 11:34:58 -0800 Subject: [PATCH 83/93] Edit account to sweep_account --- tests/test_suite.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_suite.py b/tests/test_suite.py index 6dc8e46..8ab74db 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -511,7 +511,7 @@ def test_accounts_transfer(self): card = balanced.Card(**INTERNATIONAL_CARD).save() order.debit_from(source=card, amount=1234) - sweep_account = merchant.account + sweep_account = merchant.sweep_account self.assertEqual(sweep_account.balance, 0) account_credit = sweep_account.credit(amount=1234, order=order.href, appears_on_statement_as='Payout') @@ -522,7 +522,7 @@ def test_accounts_transfer(self): def test_accounts_transfer_from_multiple_orders(self): merchant = balanced.Customer().save() card = balanced.Card(**INTERNATIONAL_CARD).save() - sweep_account = merchant.account + sweep_account = merchant.sweep_account self.assertEqual(sweep_account.balance, 0) amount = 1234 @@ -543,7 +543,7 @@ def test_settlement(self): card = balanced.Card(**INTERNATIONAL_CARD).save() order.debit_from(source=card, amount=1234) - sweep_account = merchant.account + sweep_account = merchant.sweep_account account_credit = sweep_account.credit(amount=1234, order=order.href, appears_on_statement_as='Payout') self.assertEqual(sweep_account.balance, 1234) @@ -570,7 +570,7 @@ def test_reverse_settlement(self): card = balanced.Card(**INTERNATIONAL_CARD).save() order.debit_from(source=card, amount=1234) - sweep_account = merchant.account + sweep_account = merchant.sweep_account account_credit = sweep_account.credit(amount=1234, order=order.href, appears_on_statement_as='Payout') self.assertEqual(sweep_account.balance, 1234) @@ -600,7 +600,7 @@ def test_reverse_settlement_with_negative_account_balance(self): card = balanced.Card(**INTERNATIONAL_CARD).save() order.debit_from(source=card, amount=1234) - sweep_account = merchant.account + sweep_account = merchant.sweep_account account_credit = sweep_account.credit(amount=1234, order=order.href, appears_on_statement_as='Payout') bank_account = balanced.BankAccount( From e2f29938b7b9a8b9112236f3fafdd9c931d3cac5 Mon Sep 17 00:00:00 2001 From: richie serna Date: Fri, 21 Nov 2014 12:19:07 -0800 Subject: [PATCH 84/93] Edit name of sweep account to payable_account --- balanced/resources.py | 6 ++++- tests/test_suite.py | 60 +++++++++++++++++++++---------------------- 2 files changed, 35 insertions(+), 31 deletions(-) diff --git a/balanced/resources.py b/balanced/resources.py index b203e15..41e688a 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -505,6 +505,10 @@ class Customer(Resource): def create_order(self, **kwargs): return Order(href=self.orders.href, **kwargs).save() + @property + def payable_account(self): + return self.accounts.filter(type="payable").first() + class Order(Resource): """ @@ -618,4 +622,4 @@ class Settlement(Transaction): type = 'settlements' - uri_gen = wac.URIGen('/settlementss', '{settlements}') + uri_gen = wac.URIGen('/settlements', '{settlements}') diff --git a/tests/test_suite.py b/tests/test_suite.py index 8ab74db..436d86e 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -511,31 +511,31 @@ def test_accounts_transfer(self): card = balanced.Card(**INTERNATIONAL_CARD).save() order.debit_from(source=card, amount=1234) - sweep_account = merchant.sweep_account - self.assertEqual(sweep_account.balance, 0) - account_credit = sweep_account.credit(amount=1234, order=order.href, + payable_account = merchant.payable_account + self.assertEqual(payable_account.balance, 0) + account_credit = payable_account.credit(amount=1234, order=order.href, appears_on_statement_as='Payout') self.assertEqual(account_credit.status, 'succeeded') - self.assertEqual(sweep_account.balance, 1234) + self.assertEqual(payable_account.balance, 1234) self.assertEqual(account_credit.account_credit, 'Payout') def test_accounts_transfer_from_multiple_orders(self): merchant = balanced.Customer().save() card = balanced.Card(**INTERNATIONAL_CARD).save() - sweep_account = merchant.sweep_account - self.assertEqual(sweep_account.balance, 0) + payable_account = merchant.payable_account + self.assertEqual(payable_account.balance, 0) amount = 1234 order_one = merchant.create_order() order_one.debit_from(source=card, amount=amount) - account_credit_one = sweep_account.credit(amount=amount, + account_credit_one = payable_account.credit(amount=amount, order=order_one.href) - self.assertEqual(sweep_account.balance, amount) + self.assertEqual(payable_account.balance, amount) order_two = merchant.create_order() order_two.debit_from(source=card, amount=amount) - account_credit_two = sweep_account.credit(amount=amount, + account_credit_two = payable_account.credit(amount=amount, order=order_two.href) - self.assertEqual(sweep_account.balance, amount*2) + self.assertEqual(payable_account.balance, amount*2) def test_settlement(self): merchant = balanced.Customer().save() @@ -543,10 +543,10 @@ def test_settlement(self): card = balanced.Card(**INTERNATIONAL_CARD).save() order.debit_from(source=card, amount=1234) - sweep_account = merchant.sweep_account - account_credit = sweep_account.credit(amount=1234, order=order.href, + payable_account = merchant.payable_account + account_credit = payable_account.credit(amount=1234, order=order.href, appears_on_statement_as='Payout') - self.assertEqual(sweep_account.balance, 1234) + self.assertEqual(payable_account.balance, 1234) bank_account = balanced.BankAccount( account_number='1234567890', routing_number='321174851', @@ -554,7 +554,7 @@ def test_settlement(self): ).save() bank_account.associate_to_customer(merchant) - settlement = sweep_account.settle( + settlement = payable_account.settle( funding_instrument=bank_account.href, appears_on_statement_as="Settlement Oct", description="Settlement for payouts from October") @@ -562,7 +562,7 @@ def test_settlement(self): self.assertEqual(settlement.appears_on_statement_as, "Settlement Oct") self.assertEqual(settlement.description, "Settlement for payouts from October") - self.assertEqual(sweep_account.balance, 0) + self.assertEqual(payable_account.balance, 0) def test_reverse_settlement(self): merchant = balanced.Customer().save() @@ -570,10 +570,10 @@ def test_reverse_settlement(self): card = balanced.Card(**INTERNATIONAL_CARD).save() order.debit_from(source=card, amount=1234) - sweep_account = merchant.sweep_account - account_credit = sweep_account.credit(amount=1234, order=order.href, + payable_account = merchant.payable_account + account_credit = payable_account.credit(amount=1234, order=order.href, appears_on_statement_as='Payout') - self.assertEqual(sweep_account.balance, 1234) + self.assertEqual(payable_account.balance, 1234) bank_account = balanced.BankAccount( account_number='1234567890', @@ -582,17 +582,17 @@ def test_reverse_settlement(self): ).save() bank_account.associate_to_customer(merchant) - settlement = sweep_account.settle( + settlement = payable_account.settle( funding_instrument=bank_account.href, appears_on_statement_as="Settlement Oct", description="Settlement for payouts from October") - self.assertEqual(sweep_account.balance, 0) + self.assertEqual(payable_account.balance, 0) - credit_from_escrow = sweep_account.credit(amount=1234) - self.assertEqual(sweep_account.balance, 1234) + credit_from_escrow = payable_account.credit(amount=1234) + self.assertEqual(payable_account.balance, 1234) account_credit.reverse(amount=1234) - self.assertEqual(sweep_account.balance, 0) + self.assertEqual(payable_account.balance, 0) def test_reverse_settlement_with_negative_account_balance(self): merchant = balanced.Customer().save() @@ -600,8 +600,8 @@ def test_reverse_settlement_with_negative_account_balance(self): card = balanced.Card(**INTERNATIONAL_CARD).save() order.debit_from(source=card, amount=1234) - sweep_account = merchant.sweep_account - account_credit = sweep_account.credit(amount=1234, order=order.href, + payable_account = merchant.payable_account + account_credit = payable_account.credit(amount=1234, order=order.href, appears_on_statement_as='Payout') bank_account = balanced.BankAccount( account_number='1234567890', @@ -610,20 +610,20 @@ def test_reverse_settlement_with_negative_account_balance(self): ).save() bank_account.associate_to_customer(merchant) - settlement = sweep_account.settle( + settlement = payable_account.settle( funding_instrument=bank_account.href, appears_on_statement_as="Settlement Oct", description="Settlement for payouts from October") - self.assertEqual(sweep_account.balance, 0) + self.assertEqual(payable_account.balance, 0) account_credit.reverse(amount=1234) - self.assertEqual(sweep_account.balance, -1234) + self.assertEqual(payable_account.balance, -1234) - settlement = sweep_account.settle( + settlement = payable_account.settle( funding_instrument=bank_account.href, appears_on_statement_as="Settlement Oct", description="Settlement for payouts from October") - self.assertEqual(sweep_account.balance, 0) + self.assertEqual(payable_account.balance, 0) class Rev0URIBasicUseCases(unittest.TestCase): From 5961ca16d91c9ddfcdfa7c6399b5d45535580978 Mon Sep 17 00:00:00 2001 From: richie serna Date: Mon, 24 Nov 2014 17:05:43 -0800 Subject: [PATCH 85/93] Edit account resource to save settlement and update tests --- balanced/resources.py | 4 ++-- tests/test_suite.py | 31 ++++++++++++++++++++++++------- 2 files changed, 26 insertions(+), 9 deletions(-) diff --git a/balanced/resources.py b/balanced/resources.py index 41e688a..4a0b806 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -507,7 +507,7 @@ def create_order(self, **kwargs): @property def payable_account(self): - return self.accounts.filter(type="payable").first() + return self.accounts.filter(account_type="payable").first() class Order(Resource): @@ -611,7 +611,7 @@ def settle(self, funding_instrument, **kwargs): href=self.settlements.href, funding_instrument=funding_instrument, **kwargs - ) + ).save() class Settlement(Transaction): diff --git a/tests/test_suite.py b/tests/test_suite.py index 436d86e..7d2db8c 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -513,11 +513,13 @@ def test_accounts_transfer(self): order.debit_from(source=card, amount=1234) payable_account = merchant.payable_account self.assertEqual(payable_account.balance, 0) - account_credit = payable_account.credit(amount=1234, order=order.href, - appears_on_statement_as='Payout') + account_credit = payable_account.credit( + amount=1234, order=order.href, + appears_on_statement_as='Payout') + payable_account = merchant.payable_account self.assertEqual(account_credit.status, 'succeeded') self.assertEqual(payable_account.balance, 1234) - self.assertEqual(account_credit.account_credit, 'Payout') + self.assertEqual(account_credit.appears_on_statement_as, 'Payout') def test_accounts_transfer_from_multiple_orders(self): merchant = balanced.Customer().save() @@ -530,11 +532,13 @@ def test_accounts_transfer_from_multiple_orders(self): order_one.debit_from(source=card, amount=amount) account_credit_one = payable_account.credit(amount=amount, order=order_one.href) + payable_account = merchant.payable_account self.assertEqual(payable_account.balance, amount) order_two = merchant.create_order() order_two.debit_from(source=card, amount=amount) account_credit_two = payable_account.credit(amount=amount, order=order_two.href) + payable_account = merchant.payable_account self.assertEqual(payable_account.balance, amount*2) def test_settlement(self): @@ -544,8 +548,9 @@ def test_settlement(self): order.debit_from(source=card, amount=1234) payable_account = merchant.payable_account - account_credit = payable_account.credit(amount=1234, order=order.href, - appears_on_statement_as='Payout') + account_credit = payable_account.credit( + amount=1234, order=order.href, appears_on_statement_as='Payout') + payable_account = merchant.payable_account self.assertEqual(payable_account.balance, 1234) bank_account = balanced.BankAccount( account_number='1234567890', @@ -559,9 +564,10 @@ def test_settlement(self): appears_on_statement_as="Settlement Oct", description="Settlement for payouts from October") self.assertEqual(settlement.amount, 1234) - self.assertEqual(settlement.appears_on_statement_as, "Settlement Oct") + self.assertEqual(settlement.appears_on_statement_as, "BAL*Settlement Oct") self.assertEqual(settlement.description, "Settlement for payouts from October") + payable_account = merchant.payable_account self.assertEqual(payable_account.balance, 0) def test_reverse_settlement(self): @@ -573,6 +579,7 @@ def test_reverse_settlement(self): payable_account = merchant.payable_account account_credit = payable_account.credit(amount=1234, order=order.href, appears_on_statement_as='Payout') + payable_account = merchant.payable_account self.assertEqual(payable_account.balance, 1234) bank_account = balanced.BankAccount( @@ -586,12 +593,19 @@ def test_reverse_settlement(self): funding_instrument=bank_account.href, appears_on_statement_as="Settlement Oct", description="Settlement for payouts from October") + payable_account = merchant.payable_account self.assertEqual(payable_account.balance, 0) - credit_from_escrow = payable_account.credit(amount=1234) + order_two = merchant.create_order() + order_two.debit_from(source=card, amount=1234) + account_credit_two = payable_account.credit(amount=1234, + order=order_two.href) + + payable_account = merchant.payable_account self.assertEqual(payable_account.balance, 1234) account_credit.reverse(amount=1234) + payable_account = merchant.payable_account self.assertEqual(payable_account.balance, 0) def test_reverse_settlement_with_negative_account_balance(self): @@ -614,15 +628,18 @@ def test_reverse_settlement_with_negative_account_balance(self): funding_instrument=bank_account.href, appears_on_statement_as="Settlement Oct", description="Settlement for payouts from October") + payable_account = merchant.payable_account self.assertEqual(payable_account.balance, 0) account_credit.reverse(amount=1234) + payable_account = merchant.payable_account self.assertEqual(payable_account.balance, -1234) settlement = payable_account.settle( funding_instrument=bank_account.href, appears_on_statement_as="Settlement Oct", description="Settlement for payouts from October") + payable_account = merchant.payable_account self.assertEqual(payable_account.balance, 0) From d63e93915d25b0439503c3cb0684251359fdfaaa Mon Sep 17 00:00:00 2001 From: richie serna Date: Thu, 11 Dec 2014 12:22:32 -0800 Subject: [PATCH 86/93] change customer helper method to type rather than account_type for payable account --- balanced/resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/balanced/resources.py b/balanced/resources.py index 4a0b806..a4671bf 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -507,7 +507,7 @@ def create_order(self, **kwargs): @property def payable_account(self): - return self.accounts.filter(account_type="payable").first() + return self.accounts.filter(type="payable").first() class Order(Resource): From d203dee2c1f4f90d1cf4ed52f62bb33794ea69ce Mon Sep 17 00:00:00 2001 From: areski Date: Sat, 13 Dec 2014 01:12:54 +0100 Subject: [PATCH 87/93] Add PyPI Pins to readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9774e1b..e710576 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Online Marketplace Payments -[![Build Status](https://secure.travis-ci.org/balanced/balanced-python.png?branch=master)](http://travis-ci.org/balanced/balanced-python) +[![Build Status](https://secure.travis-ci.org/balanced/balanced-python.png?branch=master)](http://travis-ci.org/balanced/balanced-python) [![Latest Version](https://pypip.in/version/balanced/badge.svg)](https://pypi.python.org/pypi/balanced/) [![Downloads](https://pypip.in/download/balanced/badge.svg)](https://pypi.python.org/pypi/balanced/) [![Supported Python versions](https://pypip.in/py_versions/balanced/badge.svg)](https://pypi.python.org/pypi/balanced/) [![License](https://pypip.in/license/balanced/badge.svg)](https://pypi.python.org/pypi/balanced/) **v1.x requires Balanced API 1.1. Use [v0.x](https://github.com/balanced/balanced-python/tree/rev0) for Balanced API 1.0.** From b1a8b3921d16128d00a5359d5771e850e8aa06e7 Mon Sep 17 00:00:00 2001 From: areski Date: Sat, 13 Dec 2014 01:15:11 +0100 Subject: [PATCH 88/93] Fix License to MIT --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 2f66fc3..2215162 100644 --- a/setup.py +++ b/setup.py @@ -67,7 +67,7 @@ def parse_dependency_links(file_name): name='balanced', version=VERSION, url='https://balancedpayments.com/', - license='BSD', + license='MIT License', author='Balanced', author_email='dev@balancedpayments.com', description='Payments platform for marketplaces', @@ -78,7 +78,7 @@ def parse_dependency_links(file_name): dependency_links=parse_dependency_links('requirements.txt'), classifiers=[ 'Intended Audience :: Developers', - 'License :: OSI Approved :: BSD License', + 'License :: OSI Approved :: MIT License', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], From 6bda1208599e72d55dfd09992f8dca2e28152ecb Mon Sep 17 00:00:00 2001 From: richie serna Date: Tue, 16 Dec 2014 20:18:53 -0800 Subject: [PATCH 89/93] PEP8 --- tests/test_suite.py | 37 +++++++++++++++++-------------------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/tests/test_suite.py b/tests/test_suite.py index 7d2db8c..17f6361 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -476,7 +476,6 @@ def test_dispute(self): self.assertEqual(dispute.reason, 'fraud') self.assertEqual(dispute.transaction.id, debit.id) - def test_external_accounts(self): external_account = balanced.ExternalAccount( token='123123123', @@ -505,7 +504,7 @@ def test_get_none_for_none(self): self.assertIsNotNone(card.customer) self.assertTrue(isinstance(card.customer, balanced.Customer)) - def test_accounts_transfer(self): + def test_accounts_credit(self): merchant = balanced.Customer().save() order = merchant.create_order() card = balanced.Card(**INTERNATIONAL_CARD).save() @@ -521,7 +520,7 @@ def test_accounts_transfer(self): self.assertEqual(payable_account.balance, 1234) self.assertEqual(account_credit.appears_on_statement_as, 'Payout') - def test_accounts_transfer_from_multiple_orders(self): + def test_accounts_credit_from_multiple_orders(self): merchant = balanced.Customer().save() card = balanced.Card(**INTERNATIONAL_CARD).save() payable_account = merchant.payable_account @@ -530,14 +529,12 @@ def test_accounts_transfer_from_multiple_orders(self): order_one = merchant.create_order() order_one.debit_from(source=card, amount=amount) - account_credit_one = payable_account.credit(amount=amount, - order=order_one.href) + payable_account.credit(amount=amount, order=order_one.href) payable_account = merchant.payable_account self.assertEqual(payable_account.balance, amount) order_two = merchant.create_order() order_two.debit_from(source=card, amount=amount) - account_credit_two = payable_account.credit(amount=amount, - order=order_two.href) + payable_account.credit(amount=amount, order=order_two.href) payable_account = merchant.payable_account self.assertEqual(payable_account.balance, amount*2) @@ -548,7 +545,7 @@ def test_settlement(self): order.debit_from(source=card, amount=1234) payable_account = merchant.payable_account - account_credit = payable_account.credit( + payable_account.credit( amount=1234, order=order.href, appears_on_statement_as='Payout') payable_account = merchant.payable_account self.assertEqual(payable_account.balance, 1234) @@ -564,21 +561,22 @@ def test_settlement(self): appears_on_statement_as="Settlement Oct", description="Settlement for payouts from October") self.assertEqual(settlement.amount, 1234) - self.assertEqual(settlement.appears_on_statement_as, "BAL*Settlement Oct") + self.assertEqual(settlement.appears_on_statement_as, + "BAL*Settlement Oct") self.assertEqual(settlement.description, "Settlement for payouts from October") payable_account = merchant.payable_account self.assertEqual(payable_account.balance, 0) - def test_reverse_settlement(self): + def test_settle_reverse_account_credit(self): merchant = balanced.Customer().save() order = merchant.create_order() card = balanced.Card(**INTERNATIONAL_CARD).save() order.debit_from(source=card, amount=1234) payable_account = merchant.payable_account - account_credit = payable_account.credit(amount=1234, order=order.href, - appears_on_statement_as='Payout') + account_credit = payable_account.credit( + amount=1234, order=order.href, appears_on_statement_as='Payout') payable_account = merchant.payable_account self.assertEqual(payable_account.balance, 1234) @@ -589,7 +587,7 @@ def test_reverse_settlement(self): ).save() bank_account.associate_to_customer(merchant) - settlement = payable_account.settle( + payable_account.settle( funding_instrument=bank_account.href, appears_on_statement_as="Settlement Oct", description="Settlement for payouts from October") @@ -598,8 +596,7 @@ def test_reverse_settlement(self): order_two = merchant.create_order() order_two.debit_from(source=card, amount=1234) - account_credit_two = payable_account.credit(amount=1234, - order=order_two.href) + payable_account.credit(amount=1234, order=order_two.href) payable_account = merchant.payable_account self.assertEqual(payable_account.balance, 1234) @@ -608,15 +605,15 @@ def test_reverse_settlement(self): payable_account = merchant.payable_account self.assertEqual(payable_account.balance, 0) - def test_reverse_settlement_with_negative_account_balance(self): + def test_settle_account_negative_balance(self): merchant = balanced.Customer().save() order = merchant.create_order() card = balanced.Card(**INTERNATIONAL_CARD).save() order.debit_from(source=card, amount=1234) payable_account = merchant.payable_account - account_credit = payable_account.credit(amount=1234, order=order.href, - appears_on_statement_as='Payout') + account_credit = payable_account.credit( + amount=1234, order=order.href, appears_on_statement_as='Payout') bank_account = balanced.BankAccount( account_number='1234567890', routing_number='321174851', @@ -624,7 +621,7 @@ def test_reverse_settlement_with_negative_account_balance(self): ).save() bank_account.associate_to_customer(merchant) - settlement = payable_account.settle( + payable_account.settle( funding_instrument=bank_account.href, appears_on_statement_as="Settlement Oct", description="Settlement for payouts from October") @@ -635,7 +632,7 @@ def test_reverse_settlement_with_negative_account_balance(self): payable_account = merchant.payable_account self.assertEqual(payable_account.balance, -1234) - settlement = payable_account.settle( + payable_account.settle( funding_instrument=bank_account.href, appears_on_statement_as="Settlement Oct", description="Settlement for payouts from October") From b4bc81e4132d85047a9c1ee9de7d4c91067728d7 Mon Sep 17 00:00:00 2001 From: richie serna Date: Thu, 18 Dec 2014 14:38:03 -0800 Subject: [PATCH 90/93] Add scenarios for accounts and settlements --- scenarios/_mj/api_key_create/executable.py | 2 +- scenarios/_mj/api_key_create/python.mako | 4 ++-- scenarios/account_credit/definition.mako | 1 + scenarios/account_credit/executable.py | 11 +++++++++++ scenarios/account_credit/python.mako | 17 +++++++++++++++++ scenarios/account_credit/request.mako | 7 +++++++ scenarios/account_list/definition.mako | 1 + scenarios/account_list/executable.py | 5 +++++ scenarios/account_list/python.mako | 12 ++++++++++++ scenarios/account_list/request.mako | 4 ++++ scenarios/account_list_customer/definition.mako | 1 + scenarios/account_list_customer/executable.py | 6 ++++++ scenarios/account_list_customer/python.mako | 13 +++++++++++++ scenarios/account_list_customer/request.mako | 5 +++++ scenarios/account_show/definition.mako | 1 + scenarios/account_show/executable.py | 5 +++++ scenarios/account_show/python.mako | 12 ++++++++++++ scenarios/account_show/request.mako | 4 ++++ scenarios/api_key_create/executable.py | 2 +- scenarios/api_key_create/python.mako | 4 ++-- scenarios/api_key_delete/executable.py | 4 ++-- scenarios/api_key_delete/python.mako | 4 ++-- scenarios/api_key_list/executable.py | 2 +- scenarios/api_key_list/python.mako | 2 +- scenarios/api_key_show/executable.py | 4 ++-- scenarios/api_key_show/python.mako | 6 +++--- .../executable.py | 6 +++--- .../python.mako | 8 ++++---- scenarios/bank_account_create/executable.py | 2 +- scenarios/bank_account_create/python.mako | 4 ++-- scenarios/bank_account_credit/executable.py | 4 ++-- scenarios/bank_account_credit/python.mako | 6 +++--- scenarios/bank_account_debit/executable.py | 10 ---------- scenarios/bank_account_debit/python.mako | 11 +---------- scenarios/bank_account_delete/executable.py | 4 ++-- scenarios/bank_account_delete/python.mako | 4 ++-- scenarios/bank_account_list/executable.py | 2 +- scenarios/bank_account_list/python.mako | 2 +- scenarios/bank_account_show/executable.py | 4 ++-- scenarios/bank_account_show/python.mako | 6 +++--- scenarios/bank_account_update/executable.py | 4 ++-- scenarios/bank_account_update/python.mako | 6 +++--- .../executable.py | 4 ++-- .../python.mako | 6 +++--- .../executable.py | 4 ++-- .../bank_account_verification_show/python.mako | 6 +++--- .../executable.py | 4 ++-- .../python.mako | 6 +++--- scenarios/callback_create/executable.py | 2 +- scenarios/callback_create/python.mako | 4 ++-- scenarios/callback_delete/executable.py | 4 ++-- scenarios/callback_delete/python.mako | 4 ++-- scenarios/callback_list/executable.py | 2 +- scenarios/callback_list/python.mako | 2 +- scenarios/callback_show/executable.py | 4 ++-- scenarios/callback_show/python.mako | 6 +++--- .../card_associate_to_customer/executable.py | 6 +++--- .../card_associate_to_customer/python.mako | 8 ++++---- scenarios/card_create/executable.py | 2 +- scenarios/card_create/python.mako | 4 ++-- scenarios/card_create_creditable/executable.py | 2 +- scenarios/card_create_creditable/python.mako | 4 ++-- scenarios/card_create_dispute/executable.py | 2 +- scenarios/card_create_dispute/python.mako | 4 ++-- scenarios/card_credit/executable.py | 9 --------- scenarios/card_credit/python.mako | 10 +--------- scenarios/card_debit/executable.py | 4 ++-- scenarios/card_debit/python.mako | 6 +++--- scenarios/card_debit_dispute/executable.py | 4 ++-- scenarios/card_debit_dispute/python.mako | 6 +++--- scenarios/card_delete/executable.py | 4 ++-- scenarios/card_delete/python.mako | 4 ++-- scenarios/card_hold_capture/executable.py | 4 ++-- scenarios/card_hold_capture/python.mako | 6 +++--- scenarios/card_hold_create/executable.py | 4 ++-- scenarios/card_hold_create/python.mako | 6 +++--- scenarios/card_hold_list/executable.py | 2 +- scenarios/card_hold_list/python.mako | 2 +- scenarios/card_hold_show/executable.py | 4 ++-- scenarios/card_hold_show/python.mako | 6 +++--- scenarios/card_hold_update/executable.py | 4 ++-- scenarios/card_hold_update/python.mako | 6 +++--- scenarios/card_hold_void/executable.py | 4 ++-- scenarios/card_hold_void/python.mako | 6 +++--- scenarios/card_list/executable.py | 2 +- scenarios/card_list/python.mako | 2 +- scenarios/card_show/executable.py | 4 ++-- scenarios/card_show/python.mako | 6 +++--- scenarios/card_update/executable.py | 4 ++-- scenarios/card_update/python.mako | 6 +++--- scenarios/credit_list/executable.py | 2 +- scenarios/credit_list/python.mako | 2 +- .../credit_list_bank_account/definition.mako | 2 +- .../credit_list_bank_account/executable.py | 4 ++-- scenarios/credit_list_bank_account/python.mako | 12 ++++++++++++ scenarios/credit_list_bank_account/request.mako | 2 +- scenarios/credit_order/executable.py | 6 +++--- scenarios/credit_order/python.mako | 8 ++++---- scenarios/credit_show/executable.py | 4 ++-- scenarios/credit_show/python.mako | 6 +++--- scenarios/credit_update/executable.py | 4 ++-- scenarios/credit_update/python.mako | 6 +++--- scenarios/customer_create/executable.py | 2 +- scenarios/customer_create/python.mako | 4 ++-- scenarios/customer_delete/executable.py | 4 ++-- scenarios/customer_delete/python.mako | 4 ++-- scenarios/customer_list/executable.py | 2 +- scenarios/customer_list/python.mako | 2 +- scenarios/customer_show/executable.py | 4 ++-- scenarios/customer_show/python.mako | 6 +++--- scenarios/customer_update/executable.py | 4 ++-- scenarios/customer_update/python.mako | 6 +++--- scenarios/debit_dispute_show/executable.py | 4 ++-- scenarios/debit_dispute_show/python.mako | 6 +++--- scenarios/debit_list/executable.py | 2 +- scenarios/debit_list/python.mako | 2 +- scenarios/debit_order/executable.py | 6 +++--- scenarios/debit_order/python.mako | 8 ++++---- scenarios/debit_show/executable.py | 4 ++-- scenarios/debit_show/python.mako | 6 +++--- scenarios/debit_update/executable.py | 4 ++-- scenarios/debit_update/python.mako | 6 +++--- scenarios/dispute_list/executable.py | 2 +- scenarios/dispute_list/python.mako | 2 +- scenarios/dispute_show/executable.py | 4 ++-- scenarios/dispute_show/python.mako | 6 +++--- scenarios/event_list/executable.py | 2 +- scenarios/event_list/python.mako | 2 +- scenarios/event_show/executable.py | 4 ++-- scenarios/event_show/python.mako | 6 +++--- scenarios/order_create/executable.py | 4 ++-- scenarios/order_create/python.mako | 6 +++--- scenarios/order_list/executable.py | 2 +- scenarios/order_list/python.mako | 2 +- scenarios/order_show/executable.py | 4 ++-- scenarios/order_show/python.mako | 6 +++--- scenarios/order_update/executable.py | 4 ++-- scenarios/order_update/python.mako | 6 +++--- scenarios/refund_create/executable.py | 4 ++-- scenarios/refund_create/python.mako | 6 +++--- scenarios/refund_list/executable.py | 2 +- scenarios/refund_list/python.mako | 2 +- scenarios/refund_show/executable.py | 4 ++-- scenarios/refund_show/python.mako | 6 +++--- scenarios/refund_update/executable.py | 4 ++-- scenarios/refund_update/python.mako | 6 +++--- scenarios/reversal_create/executable.py | 4 ++-- scenarios/reversal_create/python.mako | 6 +++--- scenarios/reversal_list/executable.py | 2 +- scenarios/reversal_list/python.mako | 2 +- scenarios/reversal_show/executable.py | 4 ++-- scenarios/reversal_show/python.mako | 6 +++--- scenarios/reversal_update/executable.py | 4 ++-- scenarios/reversal_update/python.mako | 6 +++--- scenarios/settlement_create/definition.mako | 1 + scenarios/settlement_create/executable.py | 10 ++++++++++ scenarios/settlement_create/python.mako | 16 ++++++++++++++++ scenarios/settlement_create/request.mako | 7 +++++++ scenarios/settlement_list/definition.mako | 1 + scenarios/settlement_list/executable.py | 5 +++++ scenarios/settlement_list/python.mako | 12 ++++++++++++ scenarios/settlement_list/request.mako | 4 ++++ .../settlement_list_account/definition.mako | 1 + scenarios/settlement_list_account/executable.py | 6 ++++++ scenarios/settlement_list_account/python.mako | 13 +++++++++++++ scenarios/settlement_list_account/request.mako | 5 +++++ scenarios/settlement_show/definition.mako | 1 + scenarios/settlement_show/executable.py | 5 +++++ scenarios/settlement_show/python.mako | 12 ++++++++++++ scenarios/settlement_show/request.mako | 4 ++++ 170 files changed, 499 insertions(+), 315 deletions(-) create mode 100644 scenarios/account_credit/definition.mako create mode 100644 scenarios/account_credit/executable.py create mode 100644 scenarios/account_credit/python.mako create mode 100644 scenarios/account_credit/request.mako create mode 100644 scenarios/account_list/definition.mako create mode 100644 scenarios/account_list/executable.py create mode 100644 scenarios/account_list/python.mako create mode 100644 scenarios/account_list/request.mako create mode 100644 scenarios/account_list_customer/definition.mako create mode 100644 scenarios/account_list_customer/executable.py create mode 100644 scenarios/account_list_customer/python.mako create mode 100644 scenarios/account_list_customer/request.mako create mode 100644 scenarios/account_show/definition.mako create mode 100644 scenarios/account_show/executable.py create mode 100644 scenarios/account_show/python.mako create mode 100644 scenarios/account_show/request.mako create mode 100644 scenarios/settlement_create/definition.mako create mode 100644 scenarios/settlement_create/executable.py create mode 100644 scenarios/settlement_create/python.mako create mode 100644 scenarios/settlement_create/request.mako create mode 100644 scenarios/settlement_list/definition.mako create mode 100644 scenarios/settlement_list/executable.py create mode 100644 scenarios/settlement_list/python.mako create mode 100644 scenarios/settlement_list/request.mako create mode 100644 scenarios/settlement_list_account/definition.mako create mode 100644 scenarios/settlement_list_account/executable.py create mode 100644 scenarios/settlement_list_account/python.mako create mode 100644 scenarios/settlement_list_account/request.mako create mode 100644 scenarios/settlement_show/definition.mako create mode 100644 scenarios/settlement_show/executable.py create mode 100644 scenarios/settlement_show/python.mako create mode 100644 scenarios/settlement_show/request.mako diff --git a/scenarios/_mj/api_key_create/executable.py b/scenarios/_mj/api_key_create/executable.py index bdd39b4..82bfe84 100644 --- a/scenarios/_mj/api_key_create/executable.py +++ b/scenarios/_mj/api_key_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') api_key = balanced.APIKey() api_key.save() \ No newline at end of file diff --git a/scenarios/_mj/api_key_create/python.mako b/scenarios/_mj/api_key_create/python.mako index ab5d41f..105e2ff 100644 --- a/scenarios/_mj/api_key_create/python.mako +++ b/scenarios/_mj/api_key_create/python.mako @@ -4,10 +4,10 @@ balanced.APIKey % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') api_key = balanced.APIKey() api_key.save() % elif mode == 'response': -APIKey(links={}, created_at=u'2014-04-25T21:59:54.024155Z', secret=u'ak-test-2ouh9CXrssudvHruEZ1Ymcrna05kmigfw', href=u'/api_keys/AK7gg5FNb0Owb6hErcMm0CZ7', meta={}, id=u'AK7gg5FNb0Owb6hErcMm0CZ7') +APIKey(links={}, created_at=u'2014-12-17T00:36:44.621325Z', secret=u'ak-test-2zkVyNvJLrBn4mc1udeR9S2CFXCQvzWKN', href=u'/api_keys/AK4e2JjsmVYES9oUwqRYg8hy', meta={}, id=u'AK4e2JjsmVYES9oUwqRYg8hy') % endif \ No newline at end of file diff --git a/scenarios/account_credit/definition.mako b/scenarios/account_credit/definition.mako new file mode 100644 index 0000000..08eadf0 --- /dev/null +++ b/scenarios/account_credit/definition.mako @@ -0,0 +1 @@ +balanced.Account.credit() \ No newline at end of file diff --git a/scenarios/account_credit/executable.py b/scenarios/account_credit/executable.py new file mode 100644 index 0000000..edbff3d --- /dev/null +++ b/scenarios/account_credit/executable.py @@ -0,0 +1,11 @@ +import balanced + +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') + +payable_account = balanced.Account.fetch('/accounts/AT43cMKrvwKEJnV5qX8wCqY0') +payable_account.credit( + appears_on_statement_as='ThingsCo', + amount=1000, + description='A simple credit', + order='/orders/OR483MoeOnJEXwkxqoPdnDF3'meta[rating]=8, +) \ No newline at end of file diff --git a/scenarios/account_credit/python.mako b/scenarios/account_credit/python.mako new file mode 100644 index 0000000..9b8d779 --- /dev/null +++ b/scenarios/account_credit/python.mako @@ -0,0 +1,17 @@ +% if mode == 'definition': +balanced.Account.credit() +% elif mode == 'request': +import balanced + +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') + +payable_account = balanced.Account.fetch('/accounts/AT43cMKrvwKEJnV5qX8wCqY0') +payable_account.credit( + appears_on_statement_as='ThingsCo', + amount=1000, + description='A simple credit', + order='/orders/OR483MoeOnJEXwkxqoPdnDF3'meta[rating]=8, +) +% elif mode == 'response': +Credit(status=u'succeeded', description=u'A simple credit', links={u'customer': u'CU42QGL6X08UHbQnRqgCNtKg', u'destination': u'AT43cMKrvwKEJnV5qX8wCqY0', u'order': u'OR483MoeOnJEXwkxqoPdnDF3'}, amount=1000, created_at=u'2014-12-18T18:37:17.500080Z', updated_at=u'2014-12-18T18:37:17.620931Z', failure_reason=None, currency=u'USD', transaction_number=u'CRA2V-TJP-CBO8', href=u'/credits/CR54cX9URL7OXgy3jOxCdgPe', meta={u'rating': u'8'}, failure_reason_code=None, appears_on_statement_as=u'ThingsCo', id=u'CR54cX9URL7OXgy3jOxCdgPe') +% endif \ No newline at end of file diff --git a/scenarios/account_credit/request.mako b/scenarios/account_credit/request.mako new file mode 100644 index 0000000..9f35037 --- /dev/null +++ b/scenarios/account_credit/request.mako @@ -0,0 +1,7 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +payable_account = balanced.Account.fetch('${request['href']}') +payable_account.credit( + <% main.payload_expand(request['payload']) %> +) \ No newline at end of file diff --git a/scenarios/account_list/definition.mako b/scenarios/account_list/definition.mako new file mode 100644 index 0000000..19b3dfe --- /dev/null +++ b/scenarios/account_list/definition.mako @@ -0,0 +1 @@ +balanced.Account.query diff --git a/scenarios/account_list/executable.py b/scenarios/account_list/executable.py new file mode 100644 index 0000000..931dad5 --- /dev/null +++ b/scenarios/account_list/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') + +accounts = balanced.Account.query \ No newline at end of file diff --git a/scenarios/account_list/python.mako b/scenarios/account_list/python.mako new file mode 100644 index 0000000..e92b75f --- /dev/null +++ b/scenarios/account_list/python.mako @@ -0,0 +1,12 @@ +% if mode == 'definition': +balanced.Account.query + +% elif mode == 'request': +import balanced + +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') + +accounts = balanced.Account.query +% elif mode == 'response': + +% endif \ No newline at end of file diff --git a/scenarios/account_list/request.mako b/scenarios/account_list/request.mako new file mode 100644 index 0000000..41d29a7 --- /dev/null +++ b/scenarios/account_list/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +accounts = balanced.Account.query \ No newline at end of file diff --git a/scenarios/account_list_customer/definition.mako b/scenarios/account_list_customer/definition.mako new file mode 100644 index 0000000..19b3dfe --- /dev/null +++ b/scenarios/account_list_customer/definition.mako @@ -0,0 +1 @@ +balanced.Account.query diff --git a/scenarios/account_list_customer/executable.py b/scenarios/account_list_customer/executable.py new file mode 100644 index 0000000..6d8f84e --- /dev/null +++ b/scenarios/account_list_customer/executable.py @@ -0,0 +1,6 @@ +import balanced + +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') + +customer = balanced.Customer.fetch('/customers/CU6sIkS1KUtHVoPUBM1Gf72B') +customer.accounts \ No newline at end of file diff --git a/scenarios/account_list_customer/python.mako b/scenarios/account_list_customer/python.mako new file mode 100644 index 0000000..9e43fab --- /dev/null +++ b/scenarios/account_list_customer/python.mako @@ -0,0 +1,13 @@ +% if mode == 'definition': +balanced.Account.query + +% elif mode == 'request': +import balanced + +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') + +customer = balanced.Customer.fetch('/customers/CU6sIkS1KUtHVoPUBM1Gf72B') +customer.accounts +% elif mode == 'response': + +% endif \ No newline at end of file diff --git a/scenarios/account_list_customer/request.mako b/scenarios/account_list_customer/request.mako new file mode 100644 index 0000000..e3e2227 --- /dev/null +++ b/scenarios/account_list_customer/request.mako @@ -0,0 +1,5 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +customer = balanced.Customer.fetch('${request['customer_href']}') +customer.accounts \ No newline at end of file diff --git a/scenarios/account_show/definition.mako b/scenarios/account_show/definition.mako new file mode 100644 index 0000000..ddf0947 --- /dev/null +++ b/scenarios/account_show/definition.mako @@ -0,0 +1 @@ +balanced.Account.fetch() diff --git a/scenarios/account_show/executable.py b/scenarios/account_show/executable.py new file mode 100644 index 0000000..b34a100 --- /dev/null +++ b/scenarios/account_show/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') + +account = balanced.Account.fetch('/accounts/AT3Se8weBm42ATmTA2bXjm73') \ No newline at end of file diff --git a/scenarios/account_show/python.mako b/scenarios/account_show/python.mako new file mode 100644 index 0000000..d78fc64 --- /dev/null +++ b/scenarios/account_show/python.mako @@ -0,0 +1,12 @@ +% if mode == 'definition': +balanced.Account.fetch() + +% elif mode == 'request': +import balanced + +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') + +account = balanced.Account.fetch('/accounts/AT3Se8weBm42ATmTA2bXjm73') +% elif mode == 'response': +Account(links={u'customer': u'CU3S7fOsPFkXduxLsRZgF57D'}, can_credit=True, can_debit=True, created_at=u'2014-12-17T00:36:25.254068Z', updated_at=u'2014-12-17T00:36:25.254070Z', currency=u'USD', href=u'/accounts/AT3Se8weBm42ATmTA2bXjm73', meta={}, balance=0, type=u'payable', id=u'AT3Se8weBm42ATmTA2bXjm73') +% endif \ No newline at end of file diff --git a/scenarios/account_show/request.mako b/scenarios/account_show/request.mako new file mode 100644 index 0000000..ac0e000 --- /dev/null +++ b/scenarios/account_show/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +account = balanced.Account.fetch('${request['uri']}') \ No newline at end of file diff --git a/scenarios/api_key_create/executable.py b/scenarios/api_key_create/executable.py index c30abb1..e471ee3 100644 --- a/scenarios/api_key_create/executable.py +++ b/scenarios/api_key_create/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') api_key = balanced.APIKey().save() \ No newline at end of file diff --git a/scenarios/api_key_create/python.mako b/scenarios/api_key_create/python.mako index f6c161d..b13ae08 100644 --- a/scenarios/api_key_create/python.mako +++ b/scenarios/api_key_create/python.mako @@ -3,9 +3,9 @@ balanced.APIKey() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') api_key = balanced.APIKey().save() % elif mode == 'response': -APIKey(links={}, created_at=u'2014-09-02T18:22:50.910606Z', secret=u'ak-test-12V4LX8TtvvFnoZBNaf4WkgpbZr19E9iw', href=u'/api_keys/AK19Ap0xmiz0Oau3K4keBuwg', meta={}, id=u'AK19Ap0xmiz0Oau3K4keBuwg') +APIKey(links={}, created_at=u'2014-12-17T00:36:44.621325Z', secret=u'ak-test-2zkVyNvJLrBn4mc1udeR9S2CFXCQvzWKN', href=u'/api_keys/AK4e2JjsmVYES9oUwqRYg8hy', meta={}, id=u'AK4e2JjsmVYES9oUwqRYg8hy') % endif \ No newline at end of file diff --git a/scenarios/api_key_delete/executable.py b/scenarios/api_key_delete/executable.py index 0d7ebd2..43f607e 100644 --- a/scenarios/api_key_delete/executable.py +++ b/scenarios/api_key_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -key = balanced.APIKey.fetch('/api_keys/AK19Ap0xmiz0Oau3K4keBuwg') +key = balanced.APIKey.fetch('/api_keys/AK4e2JjsmVYES9oUwqRYg8hy') key.delete() \ No newline at end of file diff --git a/scenarios/api_key_delete/python.mako b/scenarios/api_key_delete/python.mako index b212a45..c47c8e0 100644 --- a/scenarios/api_key_delete/python.mako +++ b/scenarios/api_key_delete/python.mako @@ -3,9 +3,9 @@ balanced.APIKey().delete() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -key = balanced.APIKey.fetch('/api_keys/AK19Ap0xmiz0Oau3K4keBuwg') +key = balanced.APIKey.fetch('/api_keys/AK4e2JjsmVYES9oUwqRYg8hy') key.delete() % elif mode == 'response': diff --git a/scenarios/api_key_list/executable.py b/scenarios/api_key_list/executable.py index 98a9aa6..5367c8c 100644 --- a/scenarios/api_key_list/executable.py +++ b/scenarios/api_key_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') keys = balanced.APIKey.query \ No newline at end of file diff --git a/scenarios/api_key_list/python.mako b/scenarios/api_key_list/python.mako index a957bc3..ddf17dc 100644 --- a/scenarios/api_key_list/python.mako +++ b/scenarios/api_key_list/python.mako @@ -4,7 +4,7 @@ balanced.APIKey.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') keys = balanced.APIKey.query % elif mode == 'response': diff --git a/scenarios/api_key_show/executable.py b/scenarios/api_key_show/executable.py index c9ec176..0e0cfb7 100644 --- a/scenarios/api_key_show/executable.py +++ b/scenarios/api_key_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -key = balanced.APIKey.fetch('/api_keys/AK19Ap0xmiz0Oau3K4keBuwg') \ No newline at end of file +key = balanced.APIKey.fetch('/api_keys/AK4e2JjsmVYES9oUwqRYg8hy') \ No newline at end of file diff --git a/scenarios/api_key_show/python.mako b/scenarios/api_key_show/python.mako index 9da7f07..3415717 100644 --- a/scenarios/api_key_show/python.mako +++ b/scenarios/api_key_show/python.mako @@ -4,9 +4,9 @@ balanced.APIKey.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -key = balanced.APIKey.fetch('/api_keys/AK19Ap0xmiz0Oau3K4keBuwg') +key = balanced.APIKey.fetch('/api_keys/AK4e2JjsmVYES9oUwqRYg8hy') % elif mode == 'response': -APIKey(created_at=u'2014-09-02T18:22:50.910606Z', href=u'/api_keys/AK19Ap0xmiz0Oau3K4keBuwg', meta={}, id=u'AK19Ap0xmiz0Oau3K4keBuwg', links={}) +APIKey(created_at=u'2014-12-17T00:36:44.621325Z', href=u'/api_keys/AK4e2JjsmVYES9oUwqRYg8hy', meta={}, id=u'AK4e2JjsmVYES9oUwqRYg8hy', links={}) % endif \ No newline at end of file diff --git a/scenarios/bank_account_associate_to_customer/executable.py b/scenarios/bank_account_associate_to_customer/executable.py index bbaee6d..1118cb5 100644 --- a/scenarios/bank_account_associate_to_customer/executable.py +++ b/scenarios/bank_account_associate_to_customer/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3bgtBxC3q4N9QvlN2jqFnL') -bank_account.associate_to_customer('/customers/CU36bqPshRNopkLNM6qBmn5e') \ No newline at end of file +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA4UZsYXpf2BX97v5WPaT57O') +bank_account.associate_to_customer('/customers/CU42QGL6X08UHbQnRqgCNtKg') \ No newline at end of file diff --git a/scenarios/bank_account_associate_to_customer/python.mako b/scenarios/bank_account_associate_to_customer/python.mako index 1c42048..75aa1f8 100644 --- a/scenarios/bank_account_associate_to_customer/python.mako +++ b/scenarios/bank_account_associate_to_customer/python.mako @@ -3,10 +3,10 @@ balanced.BankAccount().associate_to_customer() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3bgtBxC3q4N9QvlN2jqFnL') -bank_account.associate_to_customer('/customers/CU36bqPshRNopkLNM6qBmn5e') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA4UZsYXpf2BX97v5WPaT57O') +bank_account.associate_to_customer('/customers/CU42QGL6X08UHbQnRqgCNtKg') % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': u'CU36bqPshRNopkLNM6qBmn5e', u'bank_account_verification': None}, can_credit=True, created_at=u'2014-09-02T18:24:42.657919Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-09-02T18:24:43.444387Z', href=u'/bank_accounts/BA3bgtBxC3q4N9QvlN2jqFnL', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA3bgtBxC3q4N9QvlN2jqFnL') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': u'CU42QGL6X08UHbQnRqgCNtKg', u'bank_account_verification': None}, can_credit=True, created_at=u'2014-12-17T00:37:22.811241Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-12-17T00:37:23.326001Z', href=u'/bank_accounts/BA4UZsYXpf2BX97v5WPaT57O', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA4UZsYXpf2BX97v5WPaT57O') % endif \ No newline at end of file diff --git a/scenarios/bank_account_create/executable.py b/scenarios/bank_account_create/executable.py index 38d1295..a613747 100644 --- a/scenarios/bank_account_create/executable.py +++ b/scenarios/bank_account_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') bank_account = balanced.BankAccount( routing_number='121000358', diff --git a/scenarios/bank_account_create/python.mako b/scenarios/bank_account_create/python.mako index d2c3b2c..04ca6c6 100644 --- a/scenarios/bank_account_create/python.mako +++ b/scenarios/bank_account_create/python.mako @@ -3,7 +3,7 @@ balanced.BankAccount().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') bank_account = balanced.BankAccount( routing_number='121000358', @@ -12,5 +12,5 @@ bank_account = balanced.BankAccount( name='Johann Bernoulli' ).save() % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-09-02T18:24:42.657919Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-09-02T18:24:42.657921Z', href=u'/bank_accounts/BA3bgtBxC3q4N9QvlN2jqFnL', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA3bgtBxC3q4N9QvlN2jqFnL') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-12-17T00:37:22.811241Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-12-17T00:37:22.811243Z', href=u'/bank_accounts/BA4UZsYXpf2BX97v5WPaT57O', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA4UZsYXpf2BX97v5WPaT57O') % endif \ No newline at end of file diff --git a/scenarios/bank_account_credit/executable.py b/scenarios/bank_account_credit/executable.py index 448711f..58ea8a4 100644 --- a/scenarios/bank_account_credit/executable.py +++ b/scenarios/bank_account_credit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3bgtBxC3q4N9QvlN2jqFnL') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA4UZsYXpf2BX97v5WPaT57O') bank_account.credit( amount=5000 ) \ No newline at end of file diff --git a/scenarios/bank_account_credit/python.mako b/scenarios/bank_account_credit/python.mako index 92315f8..8f48ecc 100644 --- a/scenarios/bank_account_credit/python.mako +++ b/scenarios/bank_account_credit/python.mako @@ -3,12 +3,12 @@ balanced.BankAccount().credit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3bgtBxC3q4N9QvlN2jqFnL') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA4UZsYXpf2BX97v5WPaT57O') bank_account.credit( amount=5000 ) % elif mode == 'response': -Credit(status=u'pending', description=None, links={u'customer': u'CU36bqPshRNopkLNM6qBmn5e', u'destination': u'BA3bgtBxC3q4N9QvlN2jqFnL', u'order': None}, amount=5000, created_at=u'2014-09-02T18:28:47.307588Z', updated_at=u'2014-09-02T18:28:47.915602Z', failure_reason=None, currency=u'USD', transaction_number=u'CR3I1-TR1-JKT6', href=u'/credits/CR7CqCpjWl6O9BjxrQVOFi48', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR7CqCpjWl6O9BjxrQVOFi48') +Credit(status=u'pending', description=None, links={u'customer': u'CU42QGL6X08UHbQnRqgCNtKg', u'destination': u'BA4UZsYXpf2BX97v5WPaT57O', u'order': None}, amount=5000, created_at=u'2014-12-18T22:01:01.124567Z', updated_at=u'2014-12-18T22:01:01.453779Z', failure_reason=None, currency=u'USD', transaction_number=u'CRPNY-QIO-LQPD', href=u'/credits/CRRbC5ykVZmhoTfpZq6gy2s', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CRRbC5ykVZmhoTfpZq6gy2s') % endif \ No newline at end of file diff --git a/scenarios/bank_account_debit/executable.py b/scenarios/bank_account_debit/executable.py index 6813b35..e69de29 100644 --- a/scenarios/bank_account_debit/executable.py +++ b/scenarios/bank_account_debit/executable.py @@ -1,10 +0,0 @@ -import balanced - -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') - -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1BPjHr0Gjc62pLAlkYCH1b') -bank_account.debit( - appears_on_statement_as='Statement text', - amount=5000, - description='Some descriptive text for the debit in the dashboard' -) \ No newline at end of file diff --git a/scenarios/bank_account_debit/python.mako b/scenarios/bank_account_debit/python.mako index a43f09d..a0f10b5 100644 --- a/scenarios/bank_account_debit/python.mako +++ b/scenarios/bank_account_debit/python.mako @@ -1,16 +1,7 @@ % if mode == 'definition': balanced.BankAccount().debit() % elif mode == 'request': -import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') - -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1BPjHr0Gjc62pLAlkYCH1b') -bank_account.debit( - appears_on_statement_as='Statement text', - amount=5000, - description='Some descriptive text for the debit in the dashboard' -) % elif mode == 'response': -Debit(status=u'pending', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'BA1BPjHr0Gjc62pLAlkYCH1b', u'dispute': None, u'order': None, u'card_hold': None}, amount=5000, created_at=u'2014-09-02T18:24:59.115893Z', updated_at=u'2014-09-02T18:25:00.089340Z', failure_reason=None, currency=u'USD', transaction_number=u'W0KT-SJE-TDSG', href=u'/debits/WD3tMiqbzhAWHwFKTwYH7DTq', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD3tMiqbzhAWHwFKTwYH7DTq') + % endif \ No newline at end of file diff --git a/scenarios/bank_account_delete/executable.py b/scenarios/bank_account_delete/executable.py index 2f2ae29..72a2016 100644 --- a/scenarios/bank_account_delete/executable.py +++ b/scenarios/bank_account_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA4GVxlUHmn8y0CjAUEcW6Kp') bank_account.delete() \ No newline at end of file diff --git a/scenarios/bank_account_delete/python.mako b/scenarios/bank_account_delete/python.mako index e032e33..94a8cb6 100644 --- a/scenarios/bank_account_delete/python.mako +++ b/scenarios/bank_account_delete/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount().delete() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA4GVxlUHmn8y0CjAUEcW6Kp') bank_account.delete() % elif mode == 'response': diff --git a/scenarios/bank_account_list/executable.py b/scenarios/bank_account_list/executable.py index 84daaa8..ba8449b 100644 --- a/scenarios/bank_account_list/executable.py +++ b/scenarios/bank_account_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') bank_accounts = balanced.BankAccount.query \ No newline at end of file diff --git a/scenarios/bank_account_list/python.mako b/scenarios/bank_account_list/python.mako index 0de7446..7d319c4 100644 --- a/scenarios/bank_account_list/python.mako +++ b/scenarios/bank_account_list/python.mako @@ -4,7 +4,7 @@ balanced.BankAccount.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') bank_accounts = balanced.BankAccount.query % elif mode == 'response': diff --git a/scenarios/bank_account_show/executable.py b/scenarios/bank_account_show/executable.py index 8c744e1..c88ee29 100644 --- a/scenarios/bank_account_show/executable.py +++ b/scenarios/bank_account_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S') \ No newline at end of file +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA4GVxlUHmn8y0CjAUEcW6Kp') \ No newline at end of file diff --git a/scenarios/bank_account_show/python.mako b/scenarios/bank_account_show/python.mako index 7c504e6..7ab9411 100644 --- a/scenarios/bank_account_show/python.mako +++ b/scenarios/bank_account_show/python.mako @@ -4,9 +4,9 @@ balanced.BankAccount.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA4GVxlUHmn8y0CjAUEcW6Kp') % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-09-02T18:24:02.713640Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-09-02T18:24:02.713644Z', href=u'/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA2slfzsDvZRXkfl2C3pbN9S') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-12-17T00:37:10.306239Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-12-17T00:37:10.306241Z', href=u'/bank_accounts/BA4GVxlUHmn8y0CjAUEcW6Kp', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA4GVxlUHmn8y0CjAUEcW6Kp') % endif \ No newline at end of file diff --git a/scenarios/bank_account_update/executable.py b/scenarios/bank_account_update/executable.py index 32853f5..a0abfdb 100644 --- a/scenarios/bank_account_update/executable.py +++ b/scenarios/bank_account_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA4GVxlUHmn8y0CjAUEcW6Kp') bank_account.meta = { 'twitter.id'='1234987650', 'facebook.user_id'='0192837465', diff --git a/scenarios/bank_account_update/python.mako b/scenarios/bank_account_update/python.mako index 9b3fe9e..2ee5df1 100644 --- a/scenarios/bank_account_update/python.mako +++ b/scenarios/bank_account_update/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA4GVxlUHmn8y0CjAUEcW6Kp') bank_account.meta = { 'twitter.id'='1234987650', 'facebook.user_id'='0192837465', @@ -13,5 +13,5 @@ bank_account.meta = { } bank_account.save() % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-09-02T18:24:02.713640Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-09-02T18:24:23.144885Z', href=u'/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S', meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA2slfzsDvZRXkfl2C3pbN9S') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-12-17T00:37:10.306239Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-12-17T00:37:18.149569Z', href=u'/bank_accounts/BA4GVxlUHmn8y0CjAUEcW6Kp', meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA4GVxlUHmn8y0CjAUEcW6Kp') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/executable.py b/scenarios/bank_account_verification_create/executable.py index b461ff4..6735b79 100644 --- a/scenarios/bank_account_verification_create/executable.py +++ b/scenarios/bank_account_verification_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1BPjHr0Gjc62pLAlkYCH1b') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA4plzFRTGgaoZftGcIJH3Py') verification = bank_account.verify() \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/python.mako b/scenarios/bank_account_verification_create/python.mako index 70e2142..7dfe4a4 100644 --- a/scenarios/bank_account_verification_create/python.mako +++ b/scenarios/bank_account_verification_create/python.mako @@ -3,10 +3,10 @@ balanced.BankAccountVerification().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1BPjHr0Gjc62pLAlkYCH1b') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA4plzFRTGgaoZftGcIJH3Py') verification = bank_account.verify() % elif mode == 'response': -BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA1BPjHr0Gjc62pLAlkYCH1b'}, created_at=u'2014-09-02T18:23:26.288399Z', attempts_remaining=3, updated_at=u'2014-09-02T18:23:26.288402Z', deposit_status=u'pending', attempts=0, href=u'/verifications/BZ1NndEHupZUuYDNPf75qXPv', meta={}, id=u'BZ1NndEHupZUuYDNPf75qXPv') +BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA4plzFRTGgaoZftGcIJH3Py'}, created_at=u'2014-12-17T00:37:01.526181Z', attempts_remaining=3, updated_at=u'2014-12-17T00:37:01.526182Z', deposit_status=u'pending', attempts=0, href=u'/verifications/BZ4x3kqJ5rTrM8LL0WmP4GUZ', meta={}, id=u'BZ4x3kqJ5rTrM8LL0WmP4GUZ') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/executable.py b/scenarios/bank_account_verification_show/executable.py index 16fa9a5..56c3571 100644 --- a/scenarios/bank_account_verification_show/executable.py +++ b/scenarios/bank_account_verification_show/executable.py @@ -1,4 +1,4 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ1NndEHupZUuYDNPf75qXPv') \ No newline at end of file +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ4x3kqJ5rTrM8LL0WmP4GUZ') \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/python.mako b/scenarios/bank_account_verification_show/python.mako index cf4a2c7..90b8b71 100644 --- a/scenarios/bank_account_verification_show/python.mako +++ b/scenarios/bank_account_verification_show/python.mako @@ -4,8 +4,8 @@ balanced.BankAccountVerification.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ1NndEHupZUuYDNPf75qXPv') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ4x3kqJ5rTrM8LL0WmP4GUZ') % elif mode == 'response': -BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA1BPjHr0Gjc62pLAlkYCH1b'}, created_at=u'2014-09-02T18:23:26.288399Z', attempts_remaining=3, updated_at=u'2014-09-02T18:23:26.288402Z', deposit_status=u'pending', attempts=0, href=u'/verifications/BZ1NndEHupZUuYDNPf75qXPv', meta={}, id=u'BZ1NndEHupZUuYDNPf75qXPv') +BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA4plzFRTGgaoZftGcIJH3Py'}, created_at=u'2014-12-17T00:37:01.526181Z', attempts_remaining=3, updated_at=u'2014-12-17T00:37:01.526182Z', deposit_status=u'pending', attempts=0, href=u'/verifications/BZ4x3kqJ5rTrM8LL0WmP4GUZ', meta={}, id=u'BZ4x3kqJ5rTrM8LL0WmP4GUZ') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/executable.py b/scenarios/bank_account_verification_update/executable.py index 578564f..5525413 100644 --- a/scenarios/bank_account_verification_update/executable.py +++ b/scenarios/bank_account_verification_update/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ1NndEHupZUuYDNPf75qXPv') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ4x3kqJ5rTrM8LL0WmP4GUZ') verification.confirm(amount_1=1, amount_2=1) \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/python.mako b/scenarios/bank_account_verification_update/python.mako index da8e5d7..8736359 100644 --- a/scenarios/bank_account_verification_update/python.mako +++ b/scenarios/bank_account_verification_update/python.mako @@ -3,10 +3,10 @@ balanced.BankAccountVerification().confirm() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ1NndEHupZUuYDNPf75qXPv') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ4x3kqJ5rTrM8LL0WmP4GUZ') verification.confirm(amount_1=1, amount_2=1) % elif mode == 'response': -BankAccountVerification(verification_status=u'succeeded', links={u'bank_account': u'BA1BPjHr0Gjc62pLAlkYCH1b'}, created_at=u'2014-09-02T18:23:26.288399Z', attempts_remaining=2, updated_at=u'2014-09-02T18:23:51.019250Z', deposit_status=u'succeeded', attempts=1, href=u'/verifications/BZ1NndEHupZUuYDNPf75qXPv', meta={}, id=u'BZ1NndEHupZUuYDNPf75qXPv') +BankAccountVerification(verification_status=u'succeeded', links={u'bank_account': u'BA4plzFRTGgaoZftGcIJH3Py'}, created_at=u'2014-12-17T00:37:01.526181Z', attempts_remaining=2, updated_at=u'2014-12-17T00:37:07.367632Z', deposit_status=u'succeeded', attempts=1, href=u'/verifications/BZ4x3kqJ5rTrM8LL0WmP4GUZ', meta={}, id=u'BZ4x3kqJ5rTrM8LL0WmP4GUZ') % endif \ No newline at end of file diff --git a/scenarios/callback_create/executable.py b/scenarios/callback_create/executable.py index 6bf3a4a..21612cf 100644 --- a/scenarios/callback_create/executable.py +++ b/scenarios/callback_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') callback = balanced.Callback( url='http://www.example.com/callback', diff --git a/scenarios/callback_create/python.mako b/scenarios/callback_create/python.mako index 6c89ce5..f7c57e1 100644 --- a/scenarios/callback_create/python.mako +++ b/scenarios/callback_create/python.mako @@ -3,12 +3,12 @@ balanced.Callback() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') callback = balanced.Callback( url='http://www.example.com/callback', method='post' ).save() % elif mode == 'response': -Callback(links={}, url=u'http://www.example.com/callback', id=u'CB3AuHtVP5mcxGS8OwnJwSrK', href=u'/callbacks/CB3AuHtVP5mcxGS8OwnJwSrK', method=u'post', revision=u'1.1') +Callback(links={}, url=u'http://www.example.com/callback', id=u'CB52j36ilEVeALiL9ABZ0Jl6', href=u'/callbacks/CB52j36ilEVeALiL9ABZ0Jl6', method=u'post', revision=u'1.1') % endif \ No newline at end of file diff --git a/scenarios/callback_delete/executable.py b/scenarios/callback_delete/executable.py index 1f2b75f..59c12a5 100644 --- a/scenarios/callback_delete/executable.py +++ b/scenarios/callback_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -callback = balanced.Callback.fetch('/callbacks/CB3AuHtVP5mcxGS8OwnJwSrK') +callback = balanced.Callback.fetch('/callbacks/CB52j36ilEVeALiL9ABZ0Jl6') callback.unstore() \ No newline at end of file diff --git a/scenarios/callback_delete/python.mako b/scenarios/callback_delete/python.mako index 88571ec..94c1a88 100644 --- a/scenarios/callback_delete/python.mako +++ b/scenarios/callback_delete/python.mako @@ -3,9 +3,9 @@ balanced.Callback().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -callback = balanced.Callback.fetch('/callbacks/CB3AuHtVP5mcxGS8OwnJwSrK') +callback = balanced.Callback.fetch('/callbacks/CB52j36ilEVeALiL9ABZ0Jl6') callback.unstore() % elif mode == 'response': diff --git a/scenarios/callback_list/executable.py b/scenarios/callback_list/executable.py index b80abd2..ba580cb 100644 --- a/scenarios/callback_list/executable.py +++ b/scenarios/callback_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') callbacks = balanced.Callback.query \ No newline at end of file diff --git a/scenarios/callback_list/python.mako b/scenarios/callback_list/python.mako index 69d2cbd..c1a9b1a 100644 --- a/scenarios/callback_list/python.mako +++ b/scenarios/callback_list/python.mako @@ -4,7 +4,7 @@ balanced.Callback.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') callbacks = balanced.Callback.query % elif mode == 'response': diff --git a/scenarios/callback_show/executable.py b/scenarios/callback_show/executable.py index 87c6408..f1a403c 100644 --- a/scenarios/callback_show/executable.py +++ b/scenarios/callback_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -callback = balanced.Callback.fetch('/callbacks/CB3AuHtVP5mcxGS8OwnJwSrK') \ No newline at end of file +callback = balanced.Callback.fetch('/callbacks/CB52j36ilEVeALiL9ABZ0Jl6') \ No newline at end of file diff --git a/scenarios/callback_show/python.mako b/scenarios/callback_show/python.mako index 2054ed3..f6406d0 100644 --- a/scenarios/callback_show/python.mako +++ b/scenarios/callback_show/python.mako @@ -4,9 +4,9 @@ balanced.Callback.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -callback = balanced.Callback.fetch('/callbacks/CB3AuHtVP5mcxGS8OwnJwSrK') +callback = balanced.Callback.fetch('/callbacks/CB52j36ilEVeALiL9ABZ0Jl6') % elif mode == 'response': -Callback(links={}, url=u'http://www.example.com/callback', id=u'CB3AuHtVP5mcxGS8OwnJwSrK', href=u'/callbacks/CB3AuHtVP5mcxGS8OwnJwSrK', method=u'post', revision=u'1.1') +Callback(links={}, url=u'http://www.example.com/callback', id=u'CB52j36ilEVeALiL9ABZ0Jl6', href=u'/callbacks/CB52j36ilEVeALiL9ABZ0Jl6', method=u'post', revision=u'1.1') % endif \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/executable.py b/scenarios/card_associate_to_customer/executable.py index 25a720a..c455c75 100644 --- a/scenarios/card_associate_to_customer/executable.py +++ b/scenarios/card_associate_to_customer/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -card = balanced.Card.fetch('/cards/CC526JELNk4pET43bVu6rGkZ') -card.associate_to_customer('/customers/CU36bqPshRNopkLNM6qBmn5e') \ No newline at end of file +card = balanced.Card.fetch('/cards/CC5OFIKHlTTxx8uysB8woICs') +card.associate_to_customer('/customers/CU42QGL6X08UHbQnRqgCNtKg') \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/python.mako b/scenarios/card_associate_to_customer/python.mako index 8cf0282..6a595cb 100644 --- a/scenarios/card_associate_to_customer/python.mako +++ b/scenarios/card_associate_to_customer/python.mako @@ -3,10 +3,10 @@ balanced.Card().associate_to_customer() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -card = balanced.Card.fetch('/cards/CC526JELNk4pET43bVu6rGkZ') -card.associate_to_customer('/customers/CU36bqPshRNopkLNM6qBmn5e') +card = balanced.Card.fetch('/cards/CC5OFIKHlTTxx8uysB8woICs') +card.associate_to_customer('/customers/CU42QGL6X08UHbQnRqgCNtKg') % elif mode == 'response': -Card(links={u'customer': u'CU36bqPshRNopkLNM6qBmn5e'}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC526JELNk4pET43bVu6rGkZ', type=u'credit', id=u'CC526JELNk4pET43bVu6rGkZ', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2014-09-02T18:26:25.351591Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={}, created_at=u'2014-09-02T18:26:24.764778Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) +Card(links={u'customer': u'CU42QGL6X08UHbQnRqgCNtKg'}, cvv_result=None, number=u'xxxxxxxxxxxx1118', expiration_month=5, href=u'/cards/CC5OFIKHlTTxx8uysB8woICs', type=u'debit', id=u'CC5OFIKHlTTxx8uysB8woICs', category=u'other', is_verified=True, cvv_match=None, bank_name=u'WELLS FARGO BANK, N.A.', avs_street_match=None, brand=u'Visa', updated_at=u'2014-12-17T00:38:12.795115Z', fingerprint=u'7dc93d35b59078a1da8e0ebd2cbec65a6ca205760a1be1b90a143d7f2b00e355', can_debit=True, name=u'Johannes Bach', expiration_year=2020, cvv=None, avs_postal_match=None, avs_result=None, can_credit=True, meta={}, created_at=u'2014-12-17T00:38:12.316774Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/card_create/executable.py b/scenarios/card_create/executable.py index a57eecd..29eef65 100644 --- a/scenarios/card_create/executable.py +++ b/scenarios/card_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') card = balanced.Card( cvv='123', diff --git a/scenarios/card_create/python.mako b/scenarios/card_create/python.mako index fe1c3e2..8bbc6de 100644 --- a/scenarios/card_create/python.mako +++ b/scenarios/card_create/python.mako @@ -3,7 +3,7 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') card = balanced.Card( cvv='123', @@ -12,5 +12,5 @@ card = balanced.Card( expiration_year='2020' ).save() % elif mode == 'response': -Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC526JELNk4pET43bVu6rGkZ', type=u'credit', id=u'CC526JELNk4pET43bVu6rGkZ', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2014-09-02T18:26:24.764781Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={}, created_at=u'2014-09-02T18:26:24.764778Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) +Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC5zxUdioIB0Dc2rjM1PK3Cw', type=u'credit', id=u'CC5zxUdioIB0Dc2rjM1PK3Cw', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2014-12-17T00:37:58.867812Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={}, created_at=u'2014-12-17T00:37:58.867810Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/card_create_creditable/executable.py b/scenarios/card_create_creditable/executable.py index 6836b9c..9ede2d1 100644 --- a/scenarios/card_create_creditable/executable.py +++ b/scenarios/card_create_creditable/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') card = balanced.Card( expiration_month='05', diff --git a/scenarios/card_create_creditable/python.mako b/scenarios/card_create_creditable/python.mako index 70df939..a430ee8 100644 --- a/scenarios/card_create_creditable/python.mako +++ b/scenarios/card_create_creditable/python.mako @@ -3,7 +3,7 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') card = balanced.Card( expiration_month='05', @@ -12,5 +12,5 @@ card = balanced.Card( number='4342561111111118' ).save() % elif mode == 'response': -Card(links={u'customer': None}, cvv_result=None, number=u'xxxxxxxxxxxx1118', expiration_month=5, href=u'/cards/CC5uc1B6fJPQBSJUi0m58tal', type=u'debit', id=u'CC5uc1B6fJPQBSJUi0m58tal', category=u'other', is_verified=True, cvv_match=None, bank_name=u'WELLS FARGO BANK, N.A.', avs_street_match=None, brand=u'Visa', updated_at=u'2014-09-02T18:26:49.735081Z', fingerprint=u'7dc93d35b59078a1da8e0ebd2cbec65a6ca205760a1be1b90a143d7f2b00e355', can_debit=True, name=u'Johannes Bach', expiration_year=2020, cvv=None, avs_postal_match=None, avs_result=None, can_credit=True, meta={}, created_at=u'2014-09-02T18:26:49.735079Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) +Card(links={u'customer': None}, cvv_result=None, number=u'xxxxxxxxxxxx1118', expiration_month=5, href=u'/cards/CC5OFIKHlTTxx8uysB8woICs', type=u'debit', id=u'CC5OFIKHlTTxx8uysB8woICs', category=u'other', is_verified=True, cvv_match=None, bank_name=u'WELLS FARGO BANK, N.A.', avs_street_match=None, brand=u'Visa', updated_at=u'2014-12-17T00:38:12.316776Z', fingerprint=u'7dc93d35b59078a1da8e0ebd2cbec65a6ca205760a1be1b90a143d7f2b00e355', can_debit=True, name=u'Johannes Bach', expiration_year=2020, cvv=None, avs_postal_match=None, avs_result=None, can_credit=True, meta={}, created_at=u'2014-12-17T00:38:12.316774Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/card_create_dispute/executable.py b/scenarios/card_create_dispute/executable.py index fd7835e..5e6fc3b 100644 --- a/scenarios/card_create_dispute/executable.py +++ b/scenarios/card_create_dispute/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') card = balanced.Card( cvv='123', diff --git a/scenarios/card_create_dispute/python.mako b/scenarios/card_create_dispute/python.mako index 4b881a1..b819a58 100644 --- a/scenarios/card_create_dispute/python.mako +++ b/scenarios/card_create_dispute/python.mako @@ -3,7 +3,7 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') card = balanced.Card( cvv='123', @@ -12,5 +12,5 @@ card = balanced.Card( expiration_year='3000' ).save() % elif mode == 'response': -Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx0002', expiration_month=12, href=u'/cards/CC6KXqaIUXHDh6BJpY2XqRTW', type=u'debit', id=u'CC6KXqaIUXHDh6BJpY2XqRTW', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF AMERICA', avs_street_match=None, brand=u'Discover', updated_at=u'2014-09-02T18:27:59.762352Z', fingerprint=u'3c667a62653e187f29b5781eeb0703f26e99558080de0c0f9490b5f9c4ac2871', can_debit=True, name=None, expiration_year=3000, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=True, meta={}, created_at=u'2014-09-02T18:27:59.762349Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) +Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx0002', expiration_month=12, href=u'/cards/CC6NqHMgvYPDq4zOrvsZceJO', type=u'debit', id=u'CC6NqHMgvYPDq4zOrvsZceJO', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF AMERICA', avs_street_match=None, brand=u'Discover', updated_at=u'2014-12-17T00:39:06.338382Z', fingerprint=u'3c667a62653e187f29b5781eeb0703f26e99558080de0c0f9490b5f9c4ac2871', can_debit=True, name=None, expiration_year=3000, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=True, meta={}, created_at=u'2014-12-17T00:39:06.338380Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/card_credit/executable.py b/scenarios/card_credit/executable.py index 631e276..e69de29 100644 --- a/scenarios/card_credit/executable.py +++ b/scenarios/card_credit/executable.py @@ -1,9 +0,0 @@ -import balanced - -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') - -card = balanced.Card.fetch('/cards/CC5uc1B6fJPQBSJUi0m58tal') -card.credit( - amount=5000, - description='Some descriptive text for the debit in the dashboard' -) \ No newline at end of file diff --git a/scenarios/card_credit/python.mako b/scenarios/card_credit/python.mako index f91fba8..b8a2fa8 100644 --- a/scenarios/card_credit/python.mako +++ b/scenarios/card_credit/python.mako @@ -1,15 +1,7 @@ % if mode == 'definition': balanced.Card().credit() % elif mode == 'request': -import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') - -card = balanced.Card.fetch('/cards/CC5uc1B6fJPQBSJUi0m58tal') -card.credit( - amount=5000, - description='Some descriptive text for the debit in the dashboard' -) % elif mode == 'response': -Credit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'destination': u'CC5uc1B6fJPQBSJUi0m58tal', u'order': None}, amount=5000, created_at=u'2014-09-02T18:26:50.236855Z', updated_at=u'2014-09-02T18:26:52.375308Z', failure_reason=None, currency=u'USD', transaction_number=u'CRPMG-R6D-1BDZ', href=u'/credits/CR5uKYvRhvGBNiMQuXKBcl0Y', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR5uKYvRhvGBNiMQuXKBcl0Y') + % endif \ No newline at end of file diff --git a/scenarios/card_debit/executable.py b/scenarios/card_debit/executable.py index 97dc30d..b2392bc 100644 --- a/scenarios/card_debit/executable.py +++ b/scenarios/card_debit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -card = balanced.Card.fetch('/cards/CC526JELNk4pET43bVu6rGkZ') +card = balanced.Card.fetch('/cards/CC5zxUdioIB0Dc2rjM1PK3Cw') card.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/card_debit/python.mako b/scenarios/card_debit/python.mako index c36a102..9cbfea5 100644 --- a/scenarios/card_debit/python.mako +++ b/scenarios/card_debit/python.mako @@ -3,14 +3,14 @@ balanced.Card().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -card = balanced.Card.fetch('/cards/CC526JELNk4pET43bVu6rGkZ') +card = balanced.Card.fetch('/cards/CC5zxUdioIB0Dc2rjM1PK3Cw') card.debit( appears_on_statement_as='Statement text', amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CU36bqPshRNopkLNM6qBmn5e', u'source': u'CC526JELNk4pET43bVu6rGkZ', u'dispute': None, u'order': None, u'card_hold': u'HL6pxgGDopPHeblb183AnZIY'}, amount=5000, created_at=u'2014-09-02T18:27:40.732341Z', updated_at=u'2014-09-02T18:27:52.735975Z', failure_reason=None, currency=u'USD', transaction_number=u'WPVT-4X8-G9SR', href=u'/debits/WD6pxYaIfe2CHQHoDj5pA2Xu', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD6pxYaIfe2CHQHoDj5pA2Xu') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC5zxUdioIB0Dc2rjM1PK3Cw', u'dispute': None, u'order': None, u'card_hold': u'HL6GXbGLBKjI5enx0SZEm37i'}, amount=5000, created_at=u'2014-12-17T00:39:00.612523Z', updated_at=u'2014-12-17T00:39:01.290623Z', failure_reason=None, currency=u'USD', transaction_number=u'W7B3-LI7-IJ9V', href=u'/debits/WD6GYJu1hYxqJrpXspjFtKSI', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD6GYJu1hYxqJrpXspjFtKSI') % endif \ No newline at end of file diff --git a/scenarios/card_debit_dispute/executable.py b/scenarios/card_debit_dispute/executable.py index 3dd1aad..6bf2c93 100644 --- a/scenarios/card_debit_dispute/executable.py +++ b/scenarios/card_debit_dispute/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -card = balanced.Card.fetch('/cards/CC6KXqaIUXHDh6BJpY2XqRTW') +card = balanced.Card.fetch('/cards/CC6NqHMgvYPDq4zOrvsZceJO') card.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/card_debit_dispute/python.mako b/scenarios/card_debit_dispute/python.mako index d77c883..8e10b3c 100644 --- a/scenarios/card_debit_dispute/python.mako +++ b/scenarios/card_debit_dispute/python.mako @@ -3,14 +3,14 @@ balanced.Card().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -card = balanced.Card.fetch('/cards/CC6KXqaIUXHDh6BJpY2XqRTW') +card = balanced.Card.fetch('/cards/CC6NqHMgvYPDq4zOrvsZceJO') card.debit( appears_on_statement_as='Statement text', amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC6KXqaIUXHDh6BJpY2XqRTW', u'dispute': None, u'order': None, u'card_hold': u'HL6LHgk1aC5vrktgu9raaSSF'}, amount=5000, created_at=u'2014-09-02T18:28:00.469964Z', updated_at=u'2014-09-02T18:28:06.464988Z', failure_reason=None, currency=u'USD', transaction_number=u'WWKX-A69-ZXTQ', href=u'/debits/WD6LJx0cm12NrjiXBR1okKt7', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD6LJx0cm12NrjiXBR1okKt7') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC6NqHMgvYPDq4zOrvsZceJO', u'dispute': None, u'order': None, u'card_hold': u'HL6NXjsQRz4WyaxCIojECnVH'}, amount=5000, created_at=u'2014-12-17T00:39:06.826185Z', updated_at=u'2014-12-17T00:39:07.661749Z', failure_reason=None, currency=u'USD', transaction_number=u'W3A5-IA0-BUY1', href=u'/debits/WD6NY7W6uBFngNyBLqyhPBPv', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD6NY7W6uBFngNyBLqyhPBPv') % endif \ No newline at end of file diff --git a/scenarios/card_delete/executable.py b/scenarios/card_delete/executable.py index 493f864..7d062e0 100644 --- a/scenarios/card_delete/executable.py +++ b/scenarios/card_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -card = balanced.Card.fetch('/cards/CC4OTo7bbk25ZWmhdQCdXkPu') +card = balanced.Card.fetch('/cards/CC5zxUdioIB0Dc2rjM1PK3Cw') card.unstore() \ No newline at end of file diff --git a/scenarios/card_delete/python.mako b/scenarios/card_delete/python.mako index 5171add..4a9bbf7 100644 --- a/scenarios/card_delete/python.mako +++ b/scenarios/card_delete/python.mako @@ -3,9 +3,9 @@ balanced.Card().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -card = balanced.Card.fetch('/cards/CC4OTo7bbk25ZWmhdQCdXkPu') +card = balanced.Card.fetch('/cards/CC5zxUdioIB0Dc2rjM1PK3Cw') card.unstore() % elif mode == 'response': diff --git a/scenarios/card_hold_capture/executable.py b/scenarios/card_hold_capture/executable.py index 4c5fa94..14c54e0 100644 --- a/scenarios/card_hold_capture/executable.py +++ b/scenarios/card_hold_capture/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -card_hold = balanced.CardHold.fetch('/card_holds/HL4io3nFmawRhnkkUWnC1Eoo') +card_hold = balanced.CardHold.fetch('/card_holds/HL5gGjFGvSfw0pkPB93SnYze') debit = card_hold.capture( appears_on_statement_as='ShowsUpOnStmt', description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_capture/python.mako b/scenarios/card_hold_capture/python.mako index 806f30c..7316cd4 100644 --- a/scenarios/card_hold_capture/python.mako +++ b/scenarios/card_hold_capture/python.mako @@ -3,13 +3,13 @@ balanced.CardHold().capture() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -card_hold = balanced.CardHold.fetch('/card_holds/HL4io3nFmawRhnkkUWnC1Eoo') +card_hold = balanced.CardHold.fetch('/card_holds/HL5gGjFGvSfw0pkPB93SnYze') debit = card_hold.capture( appears_on_statement_as='ShowsUpOnStmt', description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC4hAPsanjFP7QWIIAAPAwKh', u'dispute': None, u'order': None, u'card_hold': u'HL4io3nFmawRhnkkUWnC1Eoo'}, amount=5000, created_at=u'2014-09-02T18:25:51.872425Z', updated_at=u'2014-09-02T18:26:00.911999Z', failure_reason=None, currency=u'USD', transaction_number=u'WH9W-VKH-QB1V', href=u'/debits/WD4r75TJSiVaTKmiASslPIR7', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, appears_on_statement_as=u'BAL*ShowsUpOnStmt', id=u'WD4r75TJSiVaTKmiASslPIR7') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC47wPIfNkploi0BbLRDqEYo', u'dispute': None, u'order': None, u'card_hold': u'HL5gGjFGvSfw0pkPB93SnYze'}, amount=5000, created_at=u'2014-12-17T00:37:51.402494Z', updated_at=u'2014-12-17T00:37:51.900143Z', failure_reason=None, currency=u'USD', transaction_number=u'WL8F-R9A-EFI1', href=u'/debits/WD5r9kEqaHO5t4u36XZ87gbK', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, appears_on_statement_as=u'BAL*ShowsUpOnStmt', id=u'WD5r9kEqaHO5t4u36XZ87gbK') % endif \ No newline at end of file diff --git a/scenarios/card_hold_create/executable.py b/scenarios/card_hold_create/executable.py index d4e3c9d..e0a8a3d 100644 --- a/scenarios/card_hold_create/executable.py +++ b/scenarios/card_hold_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -card = balanced.Card.fetch('/cards/CC4hAPsanjFP7QWIIAAPAwKh') +card = balanced.Card.fetch('/cards/CC47wPIfNkploi0BbLRDqEYo') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_create/python.mako b/scenarios/card_hold_create/python.mako index fe79a6a..39f1d63 100644 --- a/scenarios/card_hold_create/python.mako +++ b/scenarios/card_hold_create/python.mako @@ -3,13 +3,13 @@ balanced.Card().hold() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -card = balanced.Card.fetch('/cards/CC4hAPsanjFP7QWIIAAPAwKh') +card = balanced.Card.fetch('/cards/CC47wPIfNkploi0BbLRDqEYo') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC4hAPsanjFP7QWIIAAPAwKh', u'debit': None}, amount=5000, created_at=u'2014-09-02T18:26:02.180272Z', updated_at=u'2014-09-02T18:26:04.062983Z', expires_at=u'2014-09-09T18:26:03.227642Z', failure_reason=None, currency=u'USD', transaction_number=u'HL3O6-J0N-LZ9C', href=u'/card_holds/HL4CIbHV4zlSfx5c6eKK1AOY', meta={}, failure_reason_code=None, voided_at=None, id=u'HL4CIbHV4zlSfx5c6eKK1AOY') +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'order': None, u'card': u'CC47wPIfNkploi0BbLRDqEYo', u'debit': None}, amount=5000, created_at=u'2014-12-17T00:37:54.353032Z', updated_at=u'2014-12-17T00:37:54.622345Z', expires_at=u'2014-12-24T00:37:54.509183Z', failure_reason=None, currency=u'USD', transaction_number=u'HLMN4-VY4-SQ2M', href=u'/card_holds/HL5usZqQ94C25Cv0kmFDJYZD', meta={}, failure_reason_code=None, voided_at=None, id=u'HL5usZqQ94C25Cv0kmFDJYZD') % endif \ No newline at end of file diff --git a/scenarios/card_hold_list/executable.py b/scenarios/card_hold_list/executable.py index f00357b..cefcf37 100644 --- a/scenarios/card_hold_list/executable.py +++ b/scenarios/card_hold_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') card_holds = balanced.CardHold.query \ No newline at end of file diff --git a/scenarios/card_hold_list/python.mako b/scenarios/card_hold_list/python.mako index 8cbd0f8..7f01cee 100644 --- a/scenarios/card_hold_list/python.mako +++ b/scenarios/card_hold_list/python.mako @@ -4,7 +4,7 @@ balanced.CardHold.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') card_holds = balanced.CardHold.query % elif mode == 'response': diff --git a/scenarios/card_hold_show/executable.py b/scenarios/card_hold_show/executable.py index 82eb306..9349c96 100644 --- a/scenarios/card_hold_show/executable.py +++ b/scenarios/card_hold_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -card_hold = balanced.CardHold.fetch('/card_holds/HL4io3nFmawRhnkkUWnC1Eoo') \ No newline at end of file +card_hold = balanced.CardHold.fetch('/card_holds/HL5gGjFGvSfw0pkPB93SnYze') \ No newline at end of file diff --git a/scenarios/card_hold_show/python.mako b/scenarios/card_hold_show/python.mako index c8ef2a3..573b114 100644 --- a/scenarios/card_hold_show/python.mako +++ b/scenarios/card_hold_show/python.mako @@ -4,9 +4,9 @@ balanced.CardHold.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -card_hold = balanced.CardHold.fetch('/card_holds/HL4io3nFmawRhnkkUWnC1Eoo') +card_hold = balanced.CardHold.fetch('/card_holds/HL5gGjFGvSfw0pkPB93SnYze') % elif mode == 'response': -CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC4hAPsanjFP7QWIIAAPAwKh', u'debit': None}, amount=5000, created_at=u'2014-09-02T18:25:44.114448Z', updated_at=u'2014-09-02T18:25:46.117246Z', expires_at=u'2014-09-09T18:25:44.889479Z', failure_reason=None, currency=u'USD', transaction_number=u'HLOUQ-V39-L4PE', href=u'/card_holds/HL4io3nFmawRhnkkUWnC1Eoo', meta={}, failure_reason_code=None, voided_at=None, id=u'HL4io3nFmawRhnkkUWnC1Eoo') +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'order': None, u'card': u'CC47wPIfNkploi0BbLRDqEYo', u'debit': None}, amount=5000, created_at=u'2014-12-17T00:37:42.094383Z', updated_at=u'2014-12-17T00:37:42.426800Z', expires_at=u'2014-12-24T00:37:42.323001Z', failure_reason=None, currency=u'USD', transaction_number=u'HLQJA-8RL-50JI', href=u'/card_holds/HL5gGjFGvSfw0pkPB93SnYze', meta={}, failure_reason_code=None, voided_at=None, id=u'HL5gGjFGvSfw0pkPB93SnYze') % endif \ No newline at end of file diff --git a/scenarios/card_hold_update/executable.py b/scenarios/card_hold_update/executable.py index 5eee024..2d9928f 100644 --- a/scenarios/card_hold_update/executable.py +++ b/scenarios/card_hold_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -card_hold = balanced.CardHold.fetch('/card_holds/HL4io3nFmawRhnkkUWnC1Eoo') +card_hold = balanced.CardHold.fetch('/card_holds/HL5gGjFGvSfw0pkPB93SnYze') card_hold.description = 'update this description' card_hold.meta = { 'holding.for': 'user1', diff --git a/scenarios/card_hold_update/python.mako b/scenarios/card_hold_update/python.mako index 815368c..2348189 100644 --- a/scenarios/card_hold_update/python.mako +++ b/scenarios/card_hold_update/python.mako @@ -3,9 +3,9 @@ balanced.CardHold().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -card_hold = balanced.CardHold.fetch('/card_holds/HL4io3nFmawRhnkkUWnC1Eoo') +card_hold = balanced.CardHold.fetch('/card_holds/HL5gGjFGvSfw0pkPB93SnYze') card_hold.description = 'update this description' card_hold.meta = { 'holding.for': 'user1', @@ -13,5 +13,5 @@ card_hold.meta = { } card_hold.save() % elif mode == 'response': -CardHold(status=u'succeeded', description=u'update this description', links={u'card': u'CC4hAPsanjFP7QWIIAAPAwKh', u'debit': None}, amount=5000, created_at=u'2014-09-02T18:25:44.114448Z', updated_at=u'2014-09-02T18:25:50.616558Z', expires_at=u'2014-09-09T18:25:44.889479Z', failure_reason=None, currency=u'USD', transaction_number=u'HLOUQ-V39-L4PE', href=u'/card_holds/HL4io3nFmawRhnkkUWnC1Eoo', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, voided_at=None, id=u'HL4io3nFmawRhnkkUWnC1Eoo') +CardHold(status=u'succeeded', description=u'update this description', links={u'order': None, u'card': u'CC47wPIfNkploi0BbLRDqEYo', u'debit': None}, amount=5000, created_at=u'2014-12-17T00:37:42.094383Z', updated_at=u'2014-12-17T00:37:48.967489Z', expires_at=u'2014-12-24T00:37:42.323001Z', failure_reason=None, currency=u'USD', transaction_number=u'HLQJA-8RL-50JI', href=u'/card_holds/HL5gGjFGvSfw0pkPB93SnYze', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, voided_at=None, id=u'HL5gGjFGvSfw0pkPB93SnYze') % endif \ No newline at end of file diff --git a/scenarios/card_hold_void/executable.py b/scenarios/card_hold_void/executable.py index 902cd97..e95fee7 100644 --- a/scenarios/card_hold_void/executable.py +++ b/scenarios/card_hold_void/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -card_hold = balanced.CardHold.fetch('/card_holds/HL4CIbHV4zlSfx5c6eKK1AOY') +card_hold = balanced.CardHold.fetch('/card_holds/HL5usZqQ94C25Cv0kmFDJYZD') card_hold.cancel() \ No newline at end of file diff --git a/scenarios/card_hold_void/python.mako b/scenarios/card_hold_void/python.mako index 95ec1b5..7086e3d 100644 --- a/scenarios/card_hold_void/python.mako +++ b/scenarios/card_hold_void/python.mako @@ -3,10 +3,10 @@ balanced.CardHold().cancel() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -card_hold = balanced.CardHold.fetch('/card_holds/HL4CIbHV4zlSfx5c6eKK1AOY') +card_hold = balanced.CardHold.fetch('/card_holds/HL5usZqQ94C25Cv0kmFDJYZD') card_hold.cancel() % elif mode == 'response': -CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC4hAPsanjFP7QWIIAAPAwKh', u'debit': None}, amount=5000, created_at=u'2014-09-02T18:26:02.180272Z', updated_at=u'2014-09-02T18:26:04.701130Z', expires_at=u'2014-09-09T18:26:03.227642Z', failure_reason=None, currency=u'USD', transaction_number=u'HL3O6-J0N-LZ9C', href=u'/card_holds/HL4CIbHV4zlSfx5c6eKK1AOY', meta={}, failure_reason_code=None, voided_at=u'2014-09-02T18:26:04.701132Z', id=u'HL4CIbHV4zlSfx5c6eKK1AOY') +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'order': None, u'card': u'CC47wPIfNkploi0BbLRDqEYo', u'debit': None}, amount=5000, created_at=u'2014-12-17T00:37:54.353032Z', updated_at=u'2014-12-17T00:37:55.512113Z', expires_at=u'2014-12-24T00:37:54.509183Z', failure_reason=None, currency=u'USD', transaction_number=u'HLMN4-VY4-SQ2M', href=u'/card_holds/HL5usZqQ94C25Cv0kmFDJYZD', meta={}, failure_reason_code=None, voided_at=u'2014-12-17T00:37:55.156072Z', id=u'HL5usZqQ94C25Cv0kmFDJYZD') % endif \ No newline at end of file diff --git a/scenarios/card_list/executable.py b/scenarios/card_list/executable.py index bcd0cec..06246ba 100644 --- a/scenarios/card_list/executable.py +++ b/scenarios/card_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') cards = balanced.Card.query \ No newline at end of file diff --git a/scenarios/card_list/python.mako b/scenarios/card_list/python.mako index 27f469b..bc05d69 100644 --- a/scenarios/card_list/python.mako +++ b/scenarios/card_list/python.mako @@ -4,7 +4,7 @@ balanced.Card.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') cards = balanced.Card.query % elif mode == 'response': diff --git a/scenarios/card_show/executable.py b/scenarios/card_show/executable.py index a048123..824119c 100644 --- a/scenarios/card_show/executable.py +++ b/scenarios/card_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -card = balanced.Card.fetch('/cards/CC4OTo7bbk25ZWmhdQCdXkPu') \ No newline at end of file +card = balanced.Card.fetch('/cards/CC5zxUdioIB0Dc2rjM1PK3Cw') \ No newline at end of file diff --git a/scenarios/card_show/python.mako b/scenarios/card_show/python.mako index 3b76527..e210205 100644 --- a/scenarios/card_show/python.mako +++ b/scenarios/card_show/python.mako @@ -3,9 +3,9 @@ balanced.Card.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -card = balanced.Card.fetch('/cards/CC4OTo7bbk25ZWmhdQCdXkPu') +card = balanced.Card.fetch('/cards/CC5zxUdioIB0Dc2rjM1PK3Cw') % elif mode == 'response': -Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC4OTo7bbk25ZWmhdQCdXkPu', type=u'credit', id=u'CC4OTo7bbk25ZWmhdQCdXkPu', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2014-09-02T18:26:13.013304Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={}, created_at=u'2014-09-02T18:26:13.013301Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) +Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC5zxUdioIB0Dc2rjM1PK3Cw', type=u'credit', id=u'CC5zxUdioIB0Dc2rjM1PK3Cw', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2014-12-17T00:37:58.867812Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={}, created_at=u'2014-12-17T00:37:58.867810Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/card_update/executable.py b/scenarios/card_update/executable.py index b424f53..9640b58 100644 --- a/scenarios/card_update/executable.py +++ b/scenarios/card_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -card = balanced.Card.fetch('/cards/CC4OTo7bbk25ZWmhdQCdXkPu') +card = balanced.Card.fetch('/cards/CC5zxUdioIB0Dc2rjM1PK3Cw') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/card_update/python.mako b/scenarios/card_update/python.mako index 1ff2bb3..d9eb457 100644 --- a/scenarios/card_update/python.mako +++ b/scenarios/card_update/python.mako @@ -3,9 +3,9 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -card = balanced.Card.fetch('/cards/CC4OTo7bbk25ZWmhdQCdXkPu') +card = balanced.Card.fetch('/cards/CC5zxUdioIB0Dc2rjM1PK3Cw') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', @@ -13,5 +13,5 @@ card.meta = { } card.save() % elif mode == 'response': -Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC4OTo7bbk25ZWmhdQCdXkPu', type=u'credit', id=u'CC4OTo7bbk25ZWmhdQCdXkPu', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2014-09-02T18:26:17.011527Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, created_at=u'2014-09-02T18:26:13.013301Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) +Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC5zxUdioIB0Dc2rjM1PK3Cw', type=u'credit', id=u'CC5zxUdioIB0Dc2rjM1PK3Cw', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2014-12-17T00:38:07.329032Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, created_at=u'2014-12-17T00:37:58.867810Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/credit_list/executable.py b/scenarios/credit_list/executable.py index 72d6222..8b2b3b2 100644 --- a/scenarios/credit_list/executable.py +++ b/scenarios/credit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') credits = balanced.Credit.query \ No newline at end of file diff --git a/scenarios/credit_list/python.mako b/scenarios/credit_list/python.mako index 1e73ae2..c821457 100644 --- a/scenarios/credit_list/python.mako +++ b/scenarios/credit_list/python.mako @@ -4,7 +4,7 @@ balanced.Credit.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') credits = balanced.Credit.query % elif mode == 'response': diff --git a/scenarios/credit_list_bank_account/definition.mako b/scenarios/credit_list_bank_account/definition.mako index 5cfd639..8dd38f7 100644 --- a/scenarios/credit_list_bank_account/definition.mako +++ b/scenarios/credit_list_bank_account/definition.mako @@ -1 +1 @@ -balanced.BankAccount().credits \ No newline at end of file +balanced.BankAccount.credits() \ No newline at end of file diff --git a/scenarios/credit_list_bank_account/executable.py b/scenarios/credit_list_bank_account/executable.py index b6ffb8b..9278050 100644 --- a/scenarios/credit_list_bank_account/executable.py +++ b/scenarios/credit_list_bank_account/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2slfzsDvZRXkfl2C3pbN9S/credits') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA4UZsYXpf2BX97v5WPaT57O') credits = bank_account.credits \ No newline at end of file diff --git a/scenarios/credit_list_bank_account/python.mako b/scenarios/credit_list_bank_account/python.mako index e69de29..9dc2189 100644 --- a/scenarios/credit_list_bank_account/python.mako +++ b/scenarios/credit_list_bank_account/python.mako @@ -0,0 +1,12 @@ +% if mode == 'definition': +balanced.BankAccount.credits() +% elif mode == 'request': +import balanced + +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') + +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA4UZsYXpf2BX97v5WPaT57O') +credits = bank_account.credits +% elif mode == 'response': + +% endif \ No newline at end of file diff --git a/scenarios/credit_list_bank_account/request.mako b/scenarios/credit_list_bank_account/request.mako index 1043ffc..53542ea 100644 --- a/scenarios/credit_list_bank_account/request.mako +++ b/scenarios/credit_list_bank_account/request.mako @@ -1,5 +1,5 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -bank_account = balanced.BankAccount.fetch('${request['uri']}') +bank_account = balanced.BankAccount.fetch('${request['bank_account_href']}') credits = bank_account.credits \ No newline at end of file diff --git a/scenarios/credit_order/executable.py b/scenarios/credit_order/executable.py index 0396210..1f89d07 100644 --- a/scenarios/credit_order/executable.py +++ b/scenarios/credit_order/executable.py @@ -1,9 +1,9 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -order = balanced.Order.fetch('/orders/OR5EZkSOSTsmYJlJi6UlrUmp') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3bgtBxC3q4N9QvlN2jqFnL/credits') +order = balanced.Order.fetch('/orders/OR483MoeOnJEXwkxqoPdnDF3') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA4UZsYXpf2BX97v5WPaT57O/credits') order.credit_to( amount=5000, destination=bank_account diff --git a/scenarios/credit_order/python.mako b/scenarios/credit_order/python.mako index c5cde34..5e97379 100644 --- a/scenarios/credit_order/python.mako +++ b/scenarios/credit_order/python.mako @@ -3,14 +3,14 @@ balanced.Order().credit_to() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -order = balanced.Order.fetch('/orders/OR5QcYnwysJXQswImokq6ZSx') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA5KLH6jhFgtVENHXOcF3Cfj/credits') +order = balanced.Order.fetch('/orders/OR483MoeOnJEXwkxqoPdnDF3') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA4UZsYXpf2BX97v5WPaT57O/credits') order.credit_to( amount=5000, destination=bank_account ) % elif mode == 'response': -Credit(status=u'succeeded', description=u'Order #12341234', links={u'customer': u'CU5KEQ3tk6RIfIgRg3x5ZQ1L', u'destination': u'BA5KLH6jhFgtVENHXOcF3Cfj', u'order': u'OR5QcYnwysJXQswImokq6ZSx'}, amount=5000, created_at=u'2014-05-05T16:53:39.219476Z', updated_at=u'2014-05-05T16:53:39.441985Z', failure_reason=None, currency=u'USD', transaction_number=u'CR401-971-8594', href=u'/credits/CR6hFW7Z5Rx79OVfB22BJLjr', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR6hFW7Z5Rx79OVfB22BJLjr') + % endif \ No newline at end of file diff --git a/scenarios/credit_show/executable.py b/scenarios/credit_show/executable.py index 0231b4d..2caaa9f 100644 --- a/scenarios/credit_show/executable.py +++ b/scenarios/credit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -credit = balanced.Credit.fetch('/credits/CR5z2Z4kFI12xAe5NQhWSjvD') \ No newline at end of file +credit = balanced.Credit.fetch('/credits/CR63lfosmGuD9LlV7hGlBZYx') \ No newline at end of file diff --git a/scenarios/credit_show/python.mako b/scenarios/credit_show/python.mako index 0de576c..9602fc8 100644 --- a/scenarios/credit_show/python.mako +++ b/scenarios/credit_show/python.mako @@ -4,9 +4,9 @@ balanced.Credit.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -credit = balanced.Credit.fetch('/credits/CRjCksasJ36xjkBXRYvlCh7') +credit = balanced.Credit.fetch('/credits/CR63lfosmGuD9LlV7hGlBZYx') % elif mode == 'response': -Credit(status=u'succeeded', description=None, links={u'customer': u'CU7yCmXG2RxyyIkcHG3SIMUF', u'destination': u'BA7zu6QXmylsn0o6qVpS8UO9', u'order': None}, amount=5000, created_at=u'2014-04-25T22:00:40.640801Z', updated_at=u'2014-04-25T22:00:41.046644Z', failure_reason=None, currency=u'USD', transaction_number=u'CR574-547-8777', href=u'/credits/CRjCksasJ36xjkBXRYvlCh7', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CRjCksasJ36xjkBXRYvlCh7') +Credit(status=u'pending', description=None, links={u'customer': u'CU42QGL6X08UHbQnRqgCNtKg', u'destination': u'BA4UZsYXpf2BX97v5WPaT57O', u'order': None}, amount=5000, created_at=u'2014-12-17T00:38:25.378523Z', updated_at=u'2014-12-17T00:38:25.732021Z', failure_reason=None, currency=u'USD', transaction_number=u'CRPWV-R3X-ZOZK', href=u'/credits/CR63lfosmGuD9LlV7hGlBZYx', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR63lfosmGuD9LlV7hGlBZYx') % endif \ No newline at end of file diff --git a/scenarios/credit_update/executable.py b/scenarios/credit_update/executable.py index 9db4d3f..d75f1ea 100644 --- a/scenarios/credit_update/executable.py +++ b/scenarios/credit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -credit = balanced.Credit.fetch('/credits/CR5z2Z4kFI12xAe5NQhWSjvD') +credit = balanced.Credit.fetch('/credits/CR63lfosmGuD9LlV7hGlBZYx') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/credit_update/python.mako b/scenarios/credit_update/python.mako index 9944c6e..748e4c1 100644 --- a/scenarios/credit_update/python.mako +++ b/scenarios/credit_update/python.mako @@ -3,9 +3,9 @@ balanced.Credit().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -credit = balanced.Credit.fetch('/credits/CRjCksasJ36xjkBXRYvlCh7') +credit = balanced.Credit.fetch('/credits/CR63lfosmGuD9LlV7hGlBZYx') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', @@ -13,5 +13,5 @@ credit.meta = { } credit.save() % elif mode == 'response': -Credit(status=u'succeeded', description=u'New description for credit', links={u'customer': u'CU7yCmXG2RxyyIkcHG3SIMUF', u'destination': u'BA7zu6QXmylsn0o6qVpS8UO9', u'order': None}, amount=5000, created_at=u'2014-04-25T22:00:40.640801Z', updated_at=u'2014-04-25T22:00:45.823737Z', failure_reason=None, currency=u'USD', transaction_number=u'CR574-547-8777', href=u'/credits/CRjCksasJ36xjkBXRYvlCh7', meta={u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CRjCksasJ36xjkBXRYvlCh7') +Credit(status=u'pending', description=u'New description for credit', links={u'customer': u'CU42QGL6X08UHbQnRqgCNtKg', u'destination': u'BA4UZsYXpf2BX97v5WPaT57O', u'order': None}, amount=5000, created_at=u'2014-12-17T00:38:25.378523Z', updated_at=u'2014-12-17T00:38:33.905118Z', failure_reason=None, currency=u'USD', transaction_number=u'CRPWV-R3X-ZOZK', href=u'/credits/CR63lfosmGuD9LlV7hGlBZYx', meta={u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR63lfosmGuD9LlV7hGlBZYx') % endif \ No newline at end of file diff --git a/scenarios/customer_create/executable.py b/scenarios/customer_create/executable.py index dcfe099..9eb43e8 100644 --- a/scenarios/customer_create/executable.py +++ b/scenarios/customer_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') customer = balanced.Customer( dob_year=1963, diff --git a/scenarios/customer_create/python.mako b/scenarios/customer_create/python.mako index 6dcc2b7..0f733ff 100644 --- a/scenarios/customer_create/python.mako +++ b/scenarios/customer_create/python.mako @@ -3,7 +3,7 @@ balanced.Customer().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') customer = balanced.Customer( dob_year=1963, @@ -14,5 +14,5 @@ customer = balanced.Customer( } ).save() % elif mode == 'response': -Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-04-25T22:00:53.236370Z', dob_month=7, updated_at=u'2014-04-25T22:00:53.428856Z', phone=None, href=u'/customers/CUxN95d3eKLokMS6CymVtIB', meta={}, dob_year=1963, email=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CUxN95d3eKLokMS6CymVtIB', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) +Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-12-17T00:38:47.920760Z', dob_month=7, updated_at=u'2014-12-17T00:38:48.183246Z', phone=None, href=u'/customers/CU6sIkS1KUtHVoPUBM1Gf72B', meta={}, dob_year=1963, email=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU6sIkS1KUtHVoPUBM1Gf72B', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) % endif \ No newline at end of file diff --git a/scenarios/customer_delete/executable.py b/scenarios/customer_delete/executable.py index e5c8030..e2583de 100644 --- a/scenarios/customer_delete/executable.py +++ b/scenarios/customer_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -customer = balanced.Customer.fetch('/customers/CU64t3pxAegzhZL0O8WMpWi9') +customer = balanced.Customer.fetch('/customers/CU6sIkS1KUtHVoPUBM1Gf72B') customer.unstore() \ No newline at end of file diff --git a/scenarios/customer_delete/python.mako b/scenarios/customer_delete/python.mako index 638cd1b..1262fb1 100644 --- a/scenarios/customer_delete/python.mako +++ b/scenarios/customer_delete/python.mako @@ -3,9 +3,9 @@ balanced.Customer().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -customer = balanced.Customer.fetch('/customers/CUxN95d3eKLokMS6CymVtIB') +customer = balanced.Customer.fetch('/customers/CU6sIkS1KUtHVoPUBM1Gf72B') customer.unstore() % elif mode == 'response': diff --git a/scenarios/customer_list/executable.py b/scenarios/customer_list/executable.py index 7aefd66..4c8e42d 100644 --- a/scenarios/customer_list/executable.py +++ b/scenarios/customer_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') customers = balanced.Customer.query \ No newline at end of file diff --git a/scenarios/customer_list/python.mako b/scenarios/customer_list/python.mako index 618260a..e0d1dcd 100644 --- a/scenarios/customer_list/python.mako +++ b/scenarios/customer_list/python.mako @@ -4,7 +4,7 @@ balanced.Customer.query % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') customers = balanced.Customer.query % elif mode == 'response': diff --git a/scenarios/customer_show/executable.py b/scenarios/customer_show/executable.py index 22f4eb6..6a833d5 100644 --- a/scenarios/customer_show/executable.py +++ b/scenarios/customer_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -customer = balanced.Customer.fetch('/customers/CU5W6C3JluP9VS1RBm2EwtQQ') \ No newline at end of file +customer = balanced.Customer.fetch('/customers/CU6gruzuRsaAGeHQFU4YweON') \ No newline at end of file diff --git a/scenarios/customer_show/python.mako b/scenarios/customer_show/python.mako index b2cac44..a258bbe 100644 --- a/scenarios/customer_show/python.mako +++ b/scenarios/customer_show/python.mako @@ -4,9 +4,9 @@ balanced.Customer.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -customer = balanced.Customer.fetch('/customers/CUrtoxuYO4XmXZi6NzXKBLL') +customer = balanced.Customer.fetch('/customers/CU6gruzuRsaAGeHQFU4YweON') % elif mode == 'response': -Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-04-25T22:00:47.619359Z', dob_month=7, updated_at=u'2014-04-25T22:00:47.810824Z', phone=None, href=u'/customers/CUrtoxuYO4XmXZi6NzXKBLL', meta={}, dob_year=1963, email=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CUrtoxuYO4XmXZi6NzXKBLL', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) +Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-12-17T00:38:37.009629Z', dob_month=7, updated_at=u'2014-12-17T00:38:37.211850Z', phone=None, href=u'/customers/CU6gruzuRsaAGeHQFU4YweON', meta={}, dob_year=1963, email=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU6gruzuRsaAGeHQFU4YweON', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) % endif \ No newline at end of file diff --git a/scenarios/customer_update/executable.py b/scenarios/customer_update/executable.py index 0fb98bb..c2cc827 100644 --- a/scenarios/customer_update/executable.py +++ b/scenarios/customer_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -customer = balanced.Debit.fetch('/customers/CU5W6C3JluP9VS1RBm2EwtQQ') +customer = balanced.Debit.fetch('/customers/CU6gruzuRsaAGeHQFU4YweON') customer.email = 'email@newdomain.com' customer.meta = { 'shipping-preference': 'ground' diff --git a/scenarios/customer_update/python.mako b/scenarios/customer_update/python.mako index 116ce8a..57e6cd7 100644 --- a/scenarios/customer_update/python.mako +++ b/scenarios/customer_update/python.mako @@ -3,14 +3,14 @@ balanced.Customer().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -customer = balanced.Debit.fetch('/customers/CUrtoxuYO4XmXZi6NzXKBLL') +customer = balanced.Debit.fetch('/customers/CU6gruzuRsaAGeHQFU4YweON') customer.email = 'email@newdomain.com' customer.meta = { 'shipping-preference': 'ground' } customer.save() % elif mode == 'response': -Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-04-25T22:00:47.619359Z', dob_month=7, updated_at=u'2014-04-25T22:00:51.859983Z', phone=None, href=u'/customers/CUrtoxuYO4XmXZi6NzXKBLL', meta={u'shipping-preference': u'ground'}, dob_year=1963, email=u'email@newdomain.com', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CUrtoxuYO4XmXZi6NzXKBLL', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) +Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-12-17T00:38:37.009629Z', dob_month=7, updated_at=u'2014-12-17T00:38:45.097470Z', phone=None, href=u'/customers/CU6gruzuRsaAGeHQFU4YweON', meta={u'shipping-preference': u'ground'}, dob_year=1963, email=u'email@newdomain.com', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU6gruzuRsaAGeHQFU4YweON', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) % endif \ No newline at end of file diff --git a/scenarios/debit_dispute_show/executable.py b/scenarios/debit_dispute_show/executable.py index 70a06c6..b8b9d99 100644 --- a/scenarios/debit_dispute_show/executable.py +++ b/scenarios/debit_dispute_show/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -debit = balanced.Debit.fetch('/debits/WD6LJx0cm12NrjiXBR1okKt7') +debit = balanced.Debit.fetch('/debits/WD6NY7W6uBFngNyBLqyhPBPv') dispute = debit.dispute \ No newline at end of file diff --git a/scenarios/debit_dispute_show/python.mako b/scenarios/debit_dispute_show/python.mako index fd6c8fd..ce64c28 100644 --- a/scenarios/debit_dispute_show/python.mako +++ b/scenarios/debit_dispute_show/python.mako @@ -4,10 +4,10 @@ balanced.Debit().dispute % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -debit = balanced.Debit.fetch('/debits/WDJ66VlXnDyDx5AS5uplxyt') +debit = balanced.Debit.fetch('/debits/WD6NY7W6uBFngNyBLqyhPBPv') dispute = debit.dispute % elif mode == 'response': -Dispute(status=u'pending', links={u'transaction': u'WDJ66VlXnDyDx5AS5uplxyt'}, respond_by=u'2014-05-25T22:01:03.776578Z', amount=5000, created_at=u'2014-04-25T22:08:34.942433Z', updated_at=u'2014-04-25T22:08:34.942442Z', initiated_at=u'2014-04-25T22:01:03.776574Z', currency=u'USD', reason=u'fraud', href=u'/disputes/DT180PABUUjnj5wdE2pcwXQD', meta={}, id=u'DT180PABUUjnj5wdE2pcwXQD') +Dispute(status=u'pending', links={u'transaction': u'WD6NY7W6uBFngNyBLqyhPBPv'}, respond_by=u'2015-01-16T00:37:26.830823Z', amount=5000, created_at=u'2014-12-17T00:39:24.356634Z', updated_at=u'2014-12-17T00:39:24.356636Z', initiated_at=u'2014-12-17T00:37:26.830821Z', currency=u'USD', reason=u'fraud', href=u'/disputes/DT77EXjNYPh6qd8xErxOhHao', meta={}, id=u'DT77EXjNYPh6qd8xErxOhHao') % endif \ No newline at end of file diff --git a/scenarios/debit_list/executable.py b/scenarios/debit_list/executable.py index 000a2de..fd2eb9e 100644 --- a/scenarios/debit_list/executable.py +++ b/scenarios/debit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') debits = balanced.Debit.query \ No newline at end of file diff --git a/scenarios/debit_list/python.mako b/scenarios/debit_list/python.mako index 397aaba..4b20dbf 100644 --- a/scenarios/debit_list/python.mako +++ b/scenarios/debit_list/python.mako @@ -4,7 +4,7 @@ balanced.Debit.query % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') debits = balanced.Debit.query % elif mode == 'response': diff --git a/scenarios/debit_order/executable.py b/scenarios/debit_order/executable.py index 75aa8e8..04ef863 100644 --- a/scenarios/debit_order/executable.py +++ b/scenarios/debit_order/executable.py @@ -1,9 +1,9 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -order = balanced.Order.fetch('/orders/OR5EZkSOSTsmYJlJi6UlrUmp') -card = balanced.Card.fetch('/cards/CC526JELNk4pET43bVu6rGkZ') +order = balanced.Order.fetch('/orders/OR483MoeOnJEXwkxqoPdnDF3') +card = balanced.Card.fetch('/cards/CC5zxUdioIB0Dc2rjM1PK3Cw') order.debit_from( amount=5000, source=card, diff --git a/scenarios/debit_order/python.mako b/scenarios/debit_order/python.mako index 80fa4cd..92d6d27 100644 --- a/scenarios/debit_order/python.mako +++ b/scenarios/debit_order/python.mako @@ -4,14 +4,14 @@ balanced.Order().debit_from() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -order = balanced.Order.fetch('/orders/OR5QcYnwysJXQswImokq6ZSx') -card = balanced.Card.fetch('/cards/CC5OD6648yiKfSzfj6z6MdXr') +order = balanced.Order.fetch('/orders/OR483MoeOnJEXwkxqoPdnDF3') +card = balanced.Card.fetch('/cards/CC5zxUdioIB0Dc2rjM1PK3Cw') order.debit_from( amount=5000, source=card, ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Order #12341234', links={u'customer': None, u'source': u'CC5OD6648yiKfSzfj6z6MdXr', u'order': u'OR5QcYnwysJXQswImokq6ZSx', u'dispute': None}, amount=5000, created_at=u'2014-05-05T16:53:15.041569Z', updated_at=u'2014-05-05T16:53:15.911296Z', failure_reason=None, currency=u'USD', transaction_number=u'W550-229-3761', href=u'/debits/WD5QtHXAKrVhBOXjDDNCJX5b', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*example.com', id=u'WD5QtHXAKrVhBOXjDDNCJX5b') +Debit(status=u'succeeded', description=u'Order #12341234', links={u'customer': None, u'source': u'CC5zxUdioIB0Dc2rjM1PK3Cw', u'dispute': None, u'order': u'OR483MoeOnJEXwkxqoPdnDF3', u'card_hold': u'HL5Sd0V9skzsm1LglischYLX'}, amount=5000, created_at=u'2014-12-17T00:38:15.489464Z', updated_at=u'2014-12-17T00:38:16.229973Z', failure_reason=None, currency=u'USD', transaction_number=u'WKJ4-LNU-03RJ', href=u'/debits/WD5SdO3j6yweD0aSWoilNR3L', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*example.com', id=u'WD5SdO3j6yweD0aSWoilNR3L') % endif \ No newline at end of file diff --git a/scenarios/debit_show/executable.py b/scenarios/debit_show/executable.py index 2466d60..2e842bd 100644 --- a/scenarios/debit_show/executable.py +++ b/scenarios/debit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -debit = balanced.Debit.fetch('/debits/WD55Z5kh4Onm0x0NkeuovrEs') \ No newline at end of file +debit = balanced.Debit.fetch('/debits/WD6wpBAzwRyTIEdqkKgUSLHa') \ No newline at end of file diff --git a/scenarios/debit_show/python.mako b/scenarios/debit_show/python.mako index 51598a8..f1807eb 100644 --- a/scenarios/debit_show/python.mako +++ b/scenarios/debit_show/python.mako @@ -4,9 +4,9 @@ balanced.Debit.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -debit = balanced.Debit.fetch('/debits/WDh5j4t3Rkh7oeONR9Izy61') +debit = balanced.Debit.fetch('/debits/WD6wpBAzwRyTIEdqkKgUSLHa') % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CU7yCmXG2RxyyIkcHG3SIMUF', u'source': u'CCf1fF6z2RjwvniinUVefhb', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T22:00:38.385908Z', updated_at=u'2014-04-25T22:00:39.092387Z', failure_reason=None, currency=u'USD', transaction_number=u'W249-399-4192', href=u'/debits/WDh5j4t3Rkh7oeONR9Izy61', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WDh5j4t3Rkh7oeONR9Izy61') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC5zxUdioIB0Dc2rjM1PK3Cw', u'dispute': None, u'order': None, u'card_hold': u'HL6wornOIcZRjXMzqcuVFcjK'}, amount=5000, created_at=u'2014-12-17T00:38:51.217173Z', updated_at=u'2014-12-17T00:38:51.957850Z', failure_reason=None, currency=u'USD', transaction_number=u'WJF4-1ZO-S4E2', href=u'/debits/WD6wpBAzwRyTIEdqkKgUSLHa', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD6wpBAzwRyTIEdqkKgUSLHa') % endif \ No newline at end of file diff --git a/scenarios/debit_update/executable.py b/scenarios/debit_update/executable.py index e6e92ca..154f4d9 100644 --- a/scenarios/debit_update/executable.py +++ b/scenarios/debit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -debit = balanced.Debit.fetch('/debits/WD55Z5kh4Onm0x0NkeuovrEs') +debit = balanced.Debit.fetch('/debits/WD6wpBAzwRyTIEdqkKgUSLHa') debit.description = 'New description for debit' debit.meta = { 'facebook.id': '1234567890', diff --git a/scenarios/debit_update/python.mako b/scenarios/debit_update/python.mako index 8687b1a..78e75fa 100644 --- a/scenarios/debit_update/python.mako +++ b/scenarios/debit_update/python.mako @@ -3,9 +3,9 @@ balanced.Debit().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -debit = balanced.Debit.fetch('/debits/WDh5j4t3Rkh7oeONR9Izy61') +debit = balanced.Debit.fetch('/debits/WD6wpBAzwRyTIEdqkKgUSLHa') debit.description = 'New description for debit' debit.meta = { 'facebook.id': '1234567890', @@ -13,5 +13,5 @@ debit.meta = { } debit.save() % elif mode == 'response': -Debit(status=u'succeeded', description=u'New description for debit', links={u'customer': u'CU7yCmXG2RxyyIkcHG3SIMUF', u'source': u'CCf1fF6z2RjwvniinUVefhb', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-04-25T22:00:38.385908Z', updated_at=u'2014-04-25T22:00:57.649072Z', failure_reason=None, currency=u'USD', transaction_number=u'W249-399-4192', href=u'/debits/WDh5j4t3Rkh7oeONR9Izy61', meta={u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WDh5j4t3Rkh7oeONR9Izy61') +Debit(status=u'succeeded', description=u'New description for debit', links={u'customer': None, u'source': u'CC5zxUdioIB0Dc2rjM1PK3Cw', u'dispute': None, u'order': None, u'card_hold': u'HL6wornOIcZRjXMzqcuVFcjK'}, amount=5000, created_at=u'2014-12-17T00:38:51.217173Z', updated_at=u'2014-12-17T00:38:57.811744Z', failure_reason=None, currency=u'USD', transaction_number=u'WJF4-1ZO-S4E2', href=u'/debits/WD6wpBAzwRyTIEdqkKgUSLHa', meta={u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD6wpBAzwRyTIEdqkKgUSLHa') % endif \ No newline at end of file diff --git a/scenarios/dispute_list/executable.py b/scenarios/dispute_list/executable.py index a958e73..967b3cc 100644 --- a/scenarios/dispute_list/executable.py +++ b/scenarios/dispute_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') disputes = balanced.Dispute.query \ No newline at end of file diff --git a/scenarios/dispute_list/python.mako b/scenarios/dispute_list/python.mako index 8d1aa97..796df5f 100644 --- a/scenarios/dispute_list/python.mako +++ b/scenarios/dispute_list/python.mako @@ -3,7 +3,7 @@ balanced.Dispute.query % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') disputes = balanced.Dispute.query % elif mode == 'response': diff --git a/scenarios/dispute_show/executable.py b/scenarios/dispute_show/executable.py index c630494..68db11d 100644 --- a/scenarios/dispute_show/executable.py +++ b/scenarios/dispute_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -dispute = balanced.Dispute.fetch('/disputes/DT7be1ZNkz2SkA9rhBqxynrA') \ No newline at end of file +dispute = balanced.Dispute.fetch('/disputes/DT77EXjNYPh6qd8xErxOhHao') \ No newline at end of file diff --git a/scenarios/dispute_show/python.mako b/scenarios/dispute_show/python.mako index 6f24503..c4f1997 100644 --- a/scenarios/dispute_show/python.mako +++ b/scenarios/dispute_show/python.mako @@ -4,9 +4,9 @@ balanced.Dispute.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -dispute = balanced.Dispute.fetch('/disputes/DT180PABUUjnj5wdE2pcwXQD') +dispute = balanced.Dispute.fetch('/disputes/DT77EXjNYPh6qd8xErxOhHao') % elif mode == 'response': -Dispute(status=u'pending', links={u'transaction': u'WDJ66VlXnDyDx5AS5uplxyt'}, respond_by=u'2014-05-25T22:01:03.776578Z', amount=5000, created_at=u'2014-04-25T22:08:34.942433Z', updated_at=u'2014-04-25T22:08:34.942442Z', initiated_at=u'2014-04-25T22:01:03.776574Z', currency=u'USD', reason=u'fraud', href=u'/disputes/DT180PABUUjnj5wdE2pcwXQD', meta={}, id=u'DT180PABUUjnj5wdE2pcwXQD') +Dispute(status=u'pending', links={u'transaction': u'WD6NY7W6uBFngNyBLqyhPBPv'}, respond_by=u'2015-01-16T00:37:26.830823Z', amount=5000, created_at=u'2014-12-17T00:39:24.356634Z', updated_at=u'2014-12-17T00:39:24.356636Z', initiated_at=u'2014-12-17T00:37:26.830821Z', currency=u'USD', reason=u'fraud', href=u'/disputes/DT77EXjNYPh6qd8xErxOhHao', meta={}, id=u'DT77EXjNYPh6qd8xErxOhHao') % endif \ No newline at end of file diff --git a/scenarios/event_list/executable.py b/scenarios/event_list/executable.py index 0aab70b..d38ba4d 100644 --- a/scenarios/event_list/executable.py +++ b/scenarios/event_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') events = balanced.Event.query \ No newline at end of file diff --git a/scenarios/event_list/python.mako b/scenarios/event_list/python.mako index 58d6b8f..6cc1de2 100644 --- a/scenarios/event_list/python.mako +++ b/scenarios/event_list/python.mako @@ -4,7 +4,7 @@ balanced.Event.query % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') events = balanced.Event.query % elif mode == 'response': diff --git a/scenarios/event_show/executable.py b/scenarios/event_show/executable.py index 9c12593a..7156399 100644 --- a/scenarios/event_show/executable.py +++ b/scenarios/event_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -event = balanced.Event.fetch('/events/EVf13ffaec32ce11e48d6c0647853a3607') \ No newline at end of file +event = balanced.Event.fetch('/events/EV8099fafa858411e4b4d3061e5f402045') \ No newline at end of file diff --git a/scenarios/event_show/python.mako b/scenarios/event_show/python.mako index 15de35a..4545161 100644 --- a/scenarios/event_show/python.mako +++ b/scenarios/event_show/python.mako @@ -4,9 +4,9 @@ balanced.Event.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -event = balanced.Event.fetch('/events/EVec6e7ac2ccc411e389ba061e5f402045') +event = balanced.Event.fetch('/events/EV8099fafa858411e4b4d3061e5f402045') % elif mode == 'response': -Event(links={}, occurred_at=u'2014-04-25T21:59:50.431000Z', entity={u'customers': [{u'name': u'William Henry Cavendish III', u'links': {u'source': None, u'destination': None}, u'updated_at': u'2014-04-25T21:59:50.431269Z', u'created_at': u'2014-04-25T21:59:50.354745Z', u'dob_month': 2, u'merchant_status': u'underwritten', u'id': u'CU7c8cBtxfllT4M6zDyjbJA1', u'phone': u'+16505551212', u'href': u'/customers/CU7c8cBtxfllT4M6zDyjbJA1', u'meta': {}, u'dob_year': 1947, u'address': {u'city': u'Nowhere', u'line2': None, u'line1': None, u'state': None, u'postal_code': u'90210', u'country_code': u'USA'}, u'business_name': None, u'ssn_last4': u'xxxx', u'email': u'whc@example.org', u'ein': None}], u'links': {u'customers.source': u'/resources/{customers.source}', u'customers.card_holds': u'/customers/{customers.id}/card_holds', u'customers.cards': u'/customers/{customers.id}/cards', u'customers.debits': u'/customers/{customers.id}/debits', u'customers.destination': u'/resources/{customers.destination}', u'customers.external_accounts': u'/customers/{customers.id}/external_accounts', u'customers.bank_accounts': u'/customers/{customers.id}/bank_accounts', u'customers.transactions': u'/customers/{customers.id}/transactions', u'customers.refunds': u'/customers/{customers.id}/refunds', u'customers.reversals': u'/customers/{customers.id}/reversals', u'customers.orders': u'/customers/{customers.id}/orders', u'customers.credits': u'/customers/{customers.id}/credits'}}, href=u'/events/EVec6e7ac2ccc411e389ba061e5f402045', callback_statuses={u'failed': 0, u'retrying': 0, u'succeeded': 0, u'pending': 0}, type=u'account.created', id=u'EVec6e7ac2ccc411e389ba061e5f402045') +Event(links={}, occurred_at=u'2014-12-17T00:36:27.823872Z', entity={u'card_holds': [{u'status': u'succeeded', u'description': None, u'links': {u'order': None, u'card': u'CC3Tqdf2yJVN6yAyU0yyCqSp', u'debit': u'WD3Ugq3inzt4NmATDCnE4GS9'}, u'updated_at': u'2014-12-17T00:36:27.823872Z', u'created_at': u'2014-12-17T00:36:27.014576Z', u'transaction_number': u'HL7UY-6EB-QGLI', u'expires_at': u'2014-12-24T00:36:27.304908Z', u'failure_reason': None, u'currency': u'USD', u'amount': 10000000, u'href': u'/card_holds/HL3UeNb51Pj3QkER6bIQnGbH', u'meta': {}, u'failure_reason_code': None, u'voided_at': None, u'id': u'HL3UeNb51Pj3QkER6bIQnGbH'}], u'links': {u'card_holds.order': u'/orders/{card_holds.order}', u'card_holds.events': u'/card_holds/{card_holds.id}/events', u'card_holds.card': u'/cards/{card_holds.card}', u'card_holds.debit': u'/debits/{card_holds.debit}', u'card_holds.debits': u'/card_holds/{card_holds.id}/debits'}}, href=u'/events/EV8099fafa858411e4b4d3061e5f402045', callback_statuses={u'failed': 0, u'retrying': 0, u'succeeded': 0, u'pending': 0}, type=u'hold.updated', id=u'EV8099fafa858411e4b4d3061e5f402045') % endif \ No newline at end of file diff --git a/scenarios/order_create/executable.py b/scenarios/order_create/executable.py index 5e47aca..af3a473 100644 --- a/scenarios/order_create/executable.py +++ b/scenarios/order_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -merchant_customer = balanced.Customer.fetch('/customers/CU64t3pxAegzhZL0O8WMpWi9') +merchant_customer = balanced.Customer.fetch('/customers/CU6sIkS1KUtHVoPUBM1Gf72B') merchant_customer.create_order( description='Order #12341234' ).save() \ No newline at end of file diff --git a/scenarios/order_create/python.mako b/scenarios/order_create/python.mako index 81b0e10..9c08646 100644 --- a/scenarios/order_create/python.mako +++ b/scenarios/order_create/python.mako @@ -3,12 +3,12 @@ balanced.Order() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -merchant_customer = balanced.Customer.fetch('/customers/CUxN95d3eKLokMS6CymVtIB') +merchant_customer = balanced.Customer.fetch('/customers/CU6sIkS1KUtHVoPUBM1Gf72B') merchant_customer.create_order( description='Order #12341234' ).save() % elif mode == 'response': -Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'Order #12341234', links={u'merchant': u'CUxN95d3eKLokMS6CymVtIB'}, created_at=u'2014-04-25T22:08:49.530650Z', updated_at=u'2014-04-25T22:08:49.530653Z', currency=u'USD', amount=0, href=u'/orders/OR1oqq5PzdHGkB0GBJJiagNT', meta={}, id=u'OR1oqq5PzdHGkB0GBJJiagNT', amount_escrowed=0) +Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'Order #12341234', links={u'merchant': u'CU6sIkS1KUtHVoPUBM1Gf72B'}, created_at=u'2014-12-17T00:41:23.181803Z', updated_at=u'2014-12-17T00:41:23.181805Z', currency=u'USD', amount=0, href=u'/orders/OR1ugPYIQ94wAaS439i25QVL', meta={}, id=u'OR1ugPYIQ94wAaS439i25QVL', amount_escrowed=0) % endif \ No newline at end of file diff --git a/scenarios/order_list/executable.py b/scenarios/order_list/executable.py index 43c7c50..0f9de26 100644 --- a/scenarios/order_list/executable.py +++ b/scenarios/order_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') orders = balanced.Order.query \ No newline at end of file diff --git a/scenarios/order_list/python.mako b/scenarios/order_list/python.mako index 843c8c7..4f32a7e 100644 --- a/scenarios/order_list/python.mako +++ b/scenarios/order_list/python.mako @@ -4,7 +4,7 @@ balanced.Order.query % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') orders = balanced.Order.query % elif mode == 'response': diff --git a/scenarios/order_show/executable.py b/scenarios/order_show/executable.py index c02a088..9eaf068 100644 --- a/scenarios/order_show/executable.py +++ b/scenarios/order_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -order = balanced.Order.fetch('/orders/OR7qAh5x1cFzX0U9hD628LPa') \ No newline at end of file +order = balanced.Order.fetch('/orders/OR1ugPYIQ94wAaS439i25QVL') \ No newline at end of file diff --git a/scenarios/order_show/python.mako b/scenarios/order_show/python.mako index 5d0b52f..e2fdb2a 100644 --- a/scenarios/order_show/python.mako +++ b/scenarios/order_show/python.mako @@ -4,9 +4,9 @@ balanced.Order.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -order = balanced.Order.fetch('/orders/OR1oqq5PzdHGkB0GBJJiagNT') +order = balanced.Order.fetch('/orders/OR1ugPYIQ94wAaS439i25QVL') % elif mode == 'response': -Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'Order #12341234', links={u'merchant': u'CUxN95d3eKLokMS6CymVtIB'}, created_at=u'2014-04-25T22:08:49.530650Z', updated_at=u'2014-04-25T22:08:49.530653Z', currency=u'USD', amount=0, href=u'/orders/OR1oqq5PzdHGkB0GBJJiagNT', meta={}, id=u'OR1oqq5PzdHGkB0GBJJiagNT', amount_escrowed=0) +Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'Order #12341234', links={u'merchant': u'CU6sIkS1KUtHVoPUBM1Gf72B'}, created_at=u'2014-12-17T00:41:23.181803Z', updated_at=u'2014-12-17T00:41:23.181805Z', currency=u'USD', amount=0, href=u'/orders/OR1ugPYIQ94wAaS439i25QVL', meta={}, id=u'OR1ugPYIQ94wAaS439i25QVL', amount_escrowed=0) % endif \ No newline at end of file diff --git a/scenarios/order_update/executable.py b/scenarios/order_update/executable.py index 96fe6c7..f765bd7 100644 --- a/scenarios/order_update/executable.py +++ b/scenarios/order_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -order = balanced.Order.fetch('/orders/OR7qAh5x1cFzX0U9hD628LPa') +order = balanced.Order.fetch('/orders/OR1ugPYIQ94wAaS439i25QVL') order.description = 'New description for order' order.meta = { 'anykey': 'valuegoeshere', diff --git a/scenarios/order_update/python.mako b/scenarios/order_update/python.mako index 60c042f..e89b33a 100644 --- a/scenarios/order_update/python.mako +++ b/scenarios/order_update/python.mako @@ -3,9 +3,9 @@ balanced.Order().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -order = balanced.Order.fetch('/orders/OR1oqq5PzdHGkB0GBJJiagNT') +order = balanced.Order.fetch('/orders/OR1ugPYIQ94wAaS439i25QVL') order.description = 'New description for order' order.meta = { 'anykey': 'valuegoeshere', @@ -13,5 +13,5 @@ order.meta = { } order.save() % elif mode == 'response': -Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'New description for order', links={u'merchant': u'CUxN95d3eKLokMS6CymVtIB'}, created_at=u'2014-04-25T22:08:49.530650Z', updated_at=u'2014-04-25T22:08:53.050504Z', currency=u'USD', amount=0, href=u'/orders/OR1oqq5PzdHGkB0GBJJiagNT', meta={u'product.id': u'1234567890', u'anykey': u'valuegoeshere'}, id=u'OR1oqq5PzdHGkB0GBJJiagNT', amount_escrowed=0) +Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'New description for order', links={u'merchant': u'CU6sIkS1KUtHVoPUBM1Gf72B'}, created_at=u'2014-12-17T00:41:23.181803Z', updated_at=u'2014-12-17T00:41:30.733809Z', currency=u'USD', amount=0, href=u'/orders/OR1ugPYIQ94wAaS439i25QVL', meta={u'product.id': u'1234567890', u'anykey': u'valuegoeshere'}, id=u'OR1ugPYIQ94wAaS439i25QVL', amount_escrowed=0) % endif \ No newline at end of file diff --git a/scenarios/refund_create/executable.py b/scenarios/refund_create/executable.py index 39075c0..675ebfd 100644 --- a/scenarios/refund_create/executable.py +++ b/scenarios/refund_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -debit = balanced.Debit.fetch('/debits/WD6pxYaIfe2CHQHoDj5pA2Xu') +debit = balanced.Debit.fetch('/debits/WD6GYJu1hYxqJrpXspjFtKSI') refund = debit.refund( amount=3000, description="Refund for Order #1111", diff --git a/scenarios/refund_create/python.mako b/scenarios/refund_create/python.mako index e78bb01..fd7fd54 100644 --- a/scenarios/refund_create/python.mako +++ b/scenarios/refund_create/python.mako @@ -3,9 +3,9 @@ balanced.Debit().refund() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -debit = balanced.Debit.fetch('/debits/WDEg9ofx83CeAhiwI1QmA17') +debit = balanced.Debit.fetch('/debits/WD6GYJu1hYxqJrpXspjFtKSI') refund = debit.refund( amount=3000, description="Refund for Order #1111", @@ -16,5 +16,5 @@ refund = debit.refund( } ) % elif mode == 'response': -Refund(status=u'succeeded', description=u'Refund for Order #1111', links={u'dispute': None, u'order': None, u'debit': u'WDEg9ofx83CeAhiwI1QmA17'}, amount=3000, created_at=u'2014-04-25T22:01:00.249873Z', updated_at=u'2014-04-25T22:01:00.697054Z', currency=u'USD', transaction_number=u'RF718-148-9846', href=u'/refunds/RFFFulVVpBiNWpJ2VLMto1L', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, id=u'RFFFulVVpBiNWpJ2VLMto1L') +Refund(status=u'succeeded', description=u'Refund for Order #1111', links={u'dispute': None, u'order': None, u'debit': u'WD6GYJu1hYxqJrpXspjFtKSI'}, amount=3000, created_at=u'2014-12-17T00:39:01.856475Z', updated_at=u'2014-12-17T00:39:02.247236Z', currency=u'USD', transaction_number=u'RFQY1-JNA-NGXR', href=u'/refunds/RF6InibH83VMbodkun32mfyU', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, id=u'RF6InibH83VMbodkun32mfyU') % endif \ No newline at end of file diff --git a/scenarios/refund_list/executable.py b/scenarios/refund_list/executable.py index 2a4d4a6..0667f5b 100644 --- a/scenarios/refund_list/executable.py +++ b/scenarios/refund_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') refunds = balanced.Refund.query \ No newline at end of file diff --git a/scenarios/refund_list/python.mako b/scenarios/refund_list/python.mako index 2bd9c5c..9e61324 100644 --- a/scenarios/refund_list/python.mako +++ b/scenarios/refund_list/python.mako @@ -4,7 +4,7 @@ balanced.Refund.query % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') refunds = balanced.Refund.query % elif mode == 'response': diff --git a/scenarios/refund_show/executable.py b/scenarios/refund_show/executable.py index fc7a746..9ef1b4a 100644 --- a/scenarios/refund_show/executable.py +++ b/scenarios/refund_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -refund = balanced.Refund.fetch('/refunds/RF6E0QICQDqJCkJ3HSvQtvOR') \ No newline at end of file +refund = balanced.Refund.fetch('/refunds/RF6InibH83VMbodkun32mfyU') \ No newline at end of file diff --git a/scenarios/refund_show/python.mako b/scenarios/refund_show/python.mako index 36a1553..f30b5bb 100644 --- a/scenarios/refund_show/python.mako +++ b/scenarios/refund_show/python.mako @@ -4,9 +4,9 @@ balanced.Refund.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -refund = balanced.Refund.fetch('/refunds/RFFFulVVpBiNWpJ2VLMto1L') +refund = balanced.Refund.fetch('/refunds/RF6InibH83VMbodkun32mfyU') % elif mode == 'response': -Refund(status=u'succeeded', description=u'Refund for Order #1111', links={u'dispute': None, u'order': None, u'debit': u'WDEg9ofx83CeAhiwI1QmA17'}, amount=3000, created_at=u'2014-04-25T22:01:00.249873Z', updated_at=u'2014-04-25T22:01:00.697054Z', currency=u'USD', transaction_number=u'RF718-148-9846', href=u'/refunds/RFFFulVVpBiNWpJ2VLMto1L', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, id=u'RFFFulVVpBiNWpJ2VLMto1L') +Refund(status=u'succeeded', description=u'Refund for Order #1111', links={u'dispute': None, u'order': None, u'debit': u'WD6GYJu1hYxqJrpXspjFtKSI'}, amount=3000, created_at=u'2014-12-17T00:39:01.856475Z', updated_at=u'2014-12-17T00:39:02.247236Z', currency=u'USD', transaction_number=u'RFQY1-JNA-NGXR', href=u'/refunds/RF6InibH83VMbodkun32mfyU', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, id=u'RF6InibH83VMbodkun32mfyU') % endif \ No newline at end of file diff --git a/scenarios/refund_update/executable.py b/scenarios/refund_update/executable.py index 34f32ee..fafda9f 100644 --- a/scenarios/refund_update/executable.py +++ b/scenarios/refund_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -refund = balanced.Refund.fetch('/refunds/RF6E0QICQDqJCkJ3HSvQtvOR') +refund = balanced.Refund.fetch('/refunds/RF6InibH83VMbodkun32mfyU') refund.description = 'update this description' refund.meta = { 'user.refund.count': '3', diff --git a/scenarios/refund_update/python.mako b/scenarios/refund_update/python.mako index 2bea980..e6748b2 100644 --- a/scenarios/refund_update/python.mako +++ b/scenarios/refund_update/python.mako @@ -3,9 +3,9 @@ balanced.Refund().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -refund = balanced.Refund.fetch('/refunds/RFFFulVVpBiNWpJ2VLMto1L') +refund = balanced.Refund.fetch('/refunds/RF6InibH83VMbodkun32mfyU') refund.description = 'update this description' refund.meta = { 'user.refund.count': '3', @@ -14,5 +14,5 @@ refund.meta = { } refund.save() % elif mode == 'response': -Refund(status=u'succeeded', description=u'update this description', links={u'dispute': None, u'order': None, u'debit': u'WDEg9ofx83CeAhiwI1QmA17'}, amount=3000, created_at=u'2014-04-25T22:01:00.249873Z', updated_at=u'2014-04-25T22:08:56.890917Z', currency=u'USD', transaction_number=u'RF718-148-9846', href=u'/refunds/RFFFulVVpBiNWpJ2VLMto1L', meta={u'user.refund.count': u'3', u'refund.reason': u'user not happy with product', u'user.notes': u'very polite on the phone'}, id=u'RFFFulVVpBiNWpJ2VLMto1L') +Refund(status=u'succeeded', description=u'update this description', links={u'dispute': None, u'order': None, u'debit': u'WD6GYJu1hYxqJrpXspjFtKSI'}, amount=3000, created_at=u'2014-12-17T00:39:01.856475Z', updated_at=u'2014-12-17T00:41:37.492977Z', currency=u'USD', transaction_number=u'RFQY1-JNA-NGXR', href=u'/refunds/RF6InibH83VMbodkun32mfyU', meta={u'user.refund.count': u'3', u'refund.reason': u'user not happy with product', u'user.notes': u'very polite on the phone'}, id=u'RF6InibH83VMbodkun32mfyU') % endif \ No newline at end of file diff --git a/scenarios/reversal_create/executable.py b/scenarios/reversal_create/executable.py index aa96430..a47bf37 100644 --- a/scenarios/reversal_create/executable.py +++ b/scenarios/reversal_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -credit = balanced.Credit.fetch('/credits/CR7CqCpjWl6O9BjxrQVOFi48') +credit = balanced.Credit.fetch('/credits/CR1McWlTSms6PWdGk0HHFdNH') reversal = credit.reverse( amount=3000, description="Reversal for Order #1111", diff --git a/scenarios/reversal_create/python.mako b/scenarios/reversal_create/python.mako index 7bb4e45..ded4a9d 100644 --- a/scenarios/reversal_create/python.mako +++ b/scenarios/reversal_create/python.mako @@ -3,9 +3,9 @@ balanced.Credit().reverse() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -credit = balanced.Credit.fetch('/credits/CR1ynmPUlJGbV9EMyqkowHJP') +credit = balanced.Credit.fetch('/credits/CR1McWlTSms6PWdGk0HHFdNH') reversal = credit.reverse( amount=3000, description="Reversal for Order #1111", @@ -16,5 +16,5 @@ reversal = credit.reverse( } ) % elif mode == 'response': -Reversal(status=u'succeeded', description=u'Reversal for Order #1111', links={u'credit': u'CR1ynmPUlJGbV9EMyqkowHJP', u'order': None}, amount=3000, created_at=u'2014-04-25T22:08:59.215557Z', updated_at=u'2014-04-25T22:08:59.561099Z', failure_reason=None, currency=u'USD', transaction_number=u'RV194-304-9795', href=u'/reversals/RV1zj7hidB6KZ7MxLESBXRJD', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, failure_reason_code=None, id=u'RV1zj7hidB6KZ7MxLESBXRJD') +Reversal(status=u'pending', description=u'Reversal for Order #1111', links={u'credit': u'CR1McWlTSms6PWdGk0HHFdNH', u'order': None}, amount=3000, created_at=u'2014-12-17T00:41:39.980954Z', updated_at=u'2014-12-17T00:41:40.252934Z', failure_reason=None, currency=u'USD', transaction_number=u'RVMQC-O8G-WHER', href=u'/reversals/RV1N9oslZhbE86nYOnfJHzHO', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, failure_reason_code=None, id=u'RV1N9oslZhbE86nYOnfJHzHO') % endif \ No newline at end of file diff --git a/scenarios/reversal_list/executable.py b/scenarios/reversal_list/executable.py index fab1866..21ae0f4 100644 --- a/scenarios/reversal_list/executable.py +++ b/scenarios/reversal_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') reversals = balanced.Reversal.query \ No newline at end of file diff --git a/scenarios/reversal_list/python.mako b/scenarios/reversal_list/python.mako index 94b8b21..885b1f3 100644 --- a/scenarios/reversal_list/python.mako +++ b/scenarios/reversal_list/python.mako @@ -4,7 +4,7 @@ balanced.Reversal.query() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') reversals = balanced.Reversal.query % elif mode == 'response': diff --git a/scenarios/reversal_show/executable.py b/scenarios/reversal_show/executable.py index a419db7..213c0bf 100644 --- a/scenarios/reversal_show/executable.py +++ b/scenarios/reversal_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -refund = balanced.Reversal.fetch('/reversals/RV7DQpcc6sowPOMi29WTjlOU') \ No newline at end of file +refund = balanced.Reversal.fetch('/reversals/RV1N9oslZhbE86nYOnfJHzHO') \ No newline at end of file diff --git a/scenarios/reversal_show/python.mako b/scenarios/reversal_show/python.mako index bf240f3..0520b34 100644 --- a/scenarios/reversal_show/python.mako +++ b/scenarios/reversal_show/python.mako @@ -4,9 +4,9 @@ balanced.Reversal.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -refund = balanced.Reversal.fetch('/reversals/RV1zj7hidB6KZ7MxLESBXRJD') +refund = balanced.Reversal.fetch('/reversals/RV1N9oslZhbE86nYOnfJHzHO') % elif mode == 'response': -Reversal(status=u'succeeded', description=u'Reversal for Order #1111', links={u'credit': u'CR1ynmPUlJGbV9EMyqkowHJP', u'order': None}, amount=3000, created_at=u'2014-04-25T22:08:59.215557Z', updated_at=u'2014-04-25T22:08:59.561099Z', failure_reason=None, currency=u'USD', transaction_number=u'RV194-304-9795', href=u'/reversals/RV1zj7hidB6KZ7MxLESBXRJD', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, failure_reason_code=None, id=u'RV1zj7hidB6KZ7MxLESBXRJD') +Reversal(status=u'pending', description=u'Reversal for Order #1111', links={u'credit': u'CR1McWlTSms6PWdGk0HHFdNH', u'order': None}, amount=3000, created_at=u'2014-12-17T00:41:39.980954Z', updated_at=u'2014-12-17T00:41:40.252934Z', failure_reason=None, currency=u'USD', transaction_number=u'RVMQC-O8G-WHER', href=u'/reversals/RV1N9oslZhbE86nYOnfJHzHO', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, failure_reason_code=None, id=u'RV1N9oslZhbE86nYOnfJHzHO') % endif \ No newline at end of file diff --git a/scenarios/reversal_update/executable.py b/scenarios/reversal_update/executable.py index 257689e..5a0f38c 100644 --- a/scenarios/reversal_update/executable.py +++ b/scenarios/reversal_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -reversal = balanced.Reversal.fetch('/reversals/RV7DQpcc6sowPOMi29WTjlOU') +reversal = balanced.Reversal.fetch('/reversals/RV1N9oslZhbE86nYOnfJHzHO') reversal.description = 'update this description' reversal.meta = { 'user.refund.count': '3', diff --git a/scenarios/reversal_update/python.mako b/scenarios/reversal_update/python.mako index fcae941..86196ff 100644 --- a/scenarios/reversal_update/python.mako +++ b/scenarios/reversal_update/python.mako @@ -3,9 +3,9 @@ balanced.Reversal().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq') +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') -reversal = balanced.Reversal.fetch('/reversals/RV1zj7hidB6KZ7MxLESBXRJD') +reversal = balanced.Reversal.fetch('/reversals/RV1N9oslZhbE86nYOnfJHzHO') reversal.description = 'update this description' reversal.meta = { 'user.refund.count': '3', @@ -14,5 +14,5 @@ reversal.meta = { } reversal.save() % elif mode == 'response': -Reversal(status=u'succeeded', description=u'update this description', links={u'credit': u'CR1ynmPUlJGbV9EMyqkowHJP', u'order': None}, amount=3000, created_at=u'2014-04-25T22:08:59.215557Z', updated_at=u'2014-04-25T22:09:03.300997Z', failure_reason=None, currency=u'USD', transaction_number=u'RV194-304-9795', href=u'/reversals/RV1zj7hidB6KZ7MxLESBXRJD', meta={u'user.satisfaction': u'6', u'refund.reason': u'user not happy with product', u'user.notes': u'very polite on the phone'}, failure_reason_code=None, id=u'RV1zj7hidB6KZ7MxLESBXRJD') +Reversal(status=u'pending', description=u'update this description', links={u'credit': u'CR1McWlTSms6PWdGk0HHFdNH', u'order': None}, amount=3000, created_at=u'2014-12-17T00:41:39.980954Z', updated_at=u'2014-12-17T00:41:44.834604Z', failure_reason=None, currency=u'USD', transaction_number=u'RVMQC-O8G-WHER', href=u'/reversals/RV1N9oslZhbE86nYOnfJHzHO', meta={u'user.satisfaction': u'6', u'refund.reason': u'user not happy with product', u'user.notes': u'very polite on the phone'}, failure_reason_code=None, id=u'RV1N9oslZhbE86nYOnfJHzHO') % endif \ No newline at end of file diff --git a/scenarios/settlement_create/definition.mako b/scenarios/settlement_create/definition.mako new file mode 100644 index 0000000..29abd05 --- /dev/null +++ b/scenarios/settlement_create/definition.mako @@ -0,0 +1 @@ +balanced.Account.settle() \ No newline at end of file diff --git a/scenarios/settlement_create/executable.py b/scenarios/settlement_create/executable.py new file mode 100644 index 0000000..2afc32d --- /dev/null +++ b/scenarios/settlement_create/executable.py @@ -0,0 +1,10 @@ +import balanced + +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') + +payable_account = balanced.Account.fetch('/accounts/AT43cMKrvwKEJnV5qX8wCqY0') +payable_account.settle( + appears_on_statement_as='ThingsCo', + funding_instrument='/bank_accounts/BA4UZsYXpf2BX97v5WPaT57O', + description='Payout A'meta[group]='alpha', +) \ No newline at end of file diff --git a/scenarios/settlement_create/python.mako b/scenarios/settlement_create/python.mako new file mode 100644 index 0000000..1f0bbb7 --- /dev/null +++ b/scenarios/settlement_create/python.mako @@ -0,0 +1,16 @@ +% if mode == 'definition': +balanced.Account.settle() +% elif mode == 'request': +import balanced + +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') + +payable_account = balanced.Account.fetch('/accounts/AT43cMKrvwKEJnV5qX8wCqY0') +payable_account.settle( + appears_on_statement_as='ThingsCo', + funding_instrument='/bank_accounts/BA4UZsYXpf2BX97v5WPaT57O', + description='Payout A'meta[group]='alpha', +) +% elif mode == 'response': +Settlement(status=u'pending', description=u'Payout A', links={u'source': u'AT43cMKrvwKEJnV5qX8wCqY0', u'destination': u'BA4UZsYXpf2BX97v5WPaT57O'}, amount=1000, created_at=u'2014-12-18T19:02:18.268642Z', updated_at=u'2014-12-18T19:02:18.588079Z', failure_reason=None, currency=u'USD', transaction_number=u'SCDO2-8TC-H435', href=u'/settlements/ST17PSrKoKYCwmQMKJW3iTcs', meta={u'group': u'alpha'}, failure_reason_code=None, appears_on_statement_as=u'BAL*ThingsCo', id=u'ST17PSrKoKYCwmQMKJW3iTcs') +% endif \ No newline at end of file diff --git a/scenarios/settlement_create/request.mako b/scenarios/settlement_create/request.mako new file mode 100644 index 0000000..e104dc2 --- /dev/null +++ b/scenarios/settlement_create/request.mako @@ -0,0 +1,7 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +payable_account = balanced.Account.fetch('${request['href']}') +payable_account.settle( + <% main.payload_expand(request['payload']) %> +) \ No newline at end of file diff --git a/scenarios/settlement_list/definition.mako b/scenarios/settlement_list/definition.mako new file mode 100644 index 0000000..03d6fd8 --- /dev/null +++ b/scenarios/settlement_list/definition.mako @@ -0,0 +1 @@ +balanced.Settlement.query diff --git a/scenarios/settlement_list/executable.py b/scenarios/settlement_list/executable.py new file mode 100644 index 0000000..80f69b3 --- /dev/null +++ b/scenarios/settlement_list/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') + +settlements = balanced.Settlement.query \ No newline at end of file diff --git a/scenarios/settlement_list/python.mako b/scenarios/settlement_list/python.mako new file mode 100644 index 0000000..7142609 --- /dev/null +++ b/scenarios/settlement_list/python.mako @@ -0,0 +1,12 @@ +% if mode == 'definition': +balanced.Settlement.query + +% elif mode == 'request': +import balanced + +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') + +settlements = balanced.Settlement.query +% elif mode == 'response': + +% endif \ No newline at end of file diff --git a/scenarios/settlement_list/request.mako b/scenarios/settlement_list/request.mako new file mode 100644 index 0000000..257a2d8 --- /dev/null +++ b/scenarios/settlement_list/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +settlements = balanced.Settlement.query \ No newline at end of file diff --git a/scenarios/settlement_list_account/definition.mako b/scenarios/settlement_list_account/definition.mako new file mode 100644 index 0000000..03d6fd8 --- /dev/null +++ b/scenarios/settlement_list_account/definition.mako @@ -0,0 +1 @@ +balanced.Settlement.query diff --git a/scenarios/settlement_list_account/executable.py b/scenarios/settlement_list_account/executable.py new file mode 100644 index 0000000..79656bb --- /dev/null +++ b/scenarios/settlement_list_account/executable.py @@ -0,0 +1,6 @@ +import balanced + +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') + +account = balanced.Account.fetch('/accounts/AT43cMKrvwKEJnV5qX8wCqY0') +account.settlements \ No newline at end of file diff --git a/scenarios/settlement_list_account/python.mako b/scenarios/settlement_list_account/python.mako new file mode 100644 index 0000000..812f706 --- /dev/null +++ b/scenarios/settlement_list_account/python.mako @@ -0,0 +1,13 @@ +% if mode == 'definition': +balanced.Settlement.query + +% elif mode == 'request': +import balanced + +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') + +account = balanced.Account.fetch('/accounts/AT43cMKrvwKEJnV5qX8wCqY0') +account.settlements +% elif mode == 'response': + +% endif \ No newline at end of file diff --git a/scenarios/settlement_list_account/request.mako b/scenarios/settlement_list_account/request.mako new file mode 100644 index 0000000..3e696f4 --- /dev/null +++ b/scenarios/settlement_list_account/request.mako @@ -0,0 +1,5 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +account = balanced.Account.fetch('${request['href']}') +account.settlements \ No newline at end of file diff --git a/scenarios/settlement_show/definition.mako b/scenarios/settlement_show/definition.mako new file mode 100644 index 0000000..633208d --- /dev/null +++ b/scenarios/settlement_show/definition.mako @@ -0,0 +1 @@ +balanced.Settlement.fetch() diff --git a/scenarios/settlement_show/executable.py b/scenarios/settlement_show/executable.py new file mode 100644 index 0000000..037b47a --- /dev/null +++ b/scenarios/settlement_show/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') + +account = balanced.Settlement.fetch('/settlements/ST1VhpiMiUv5BrcvJW2G1RgV') \ No newline at end of file diff --git a/scenarios/settlement_show/python.mako b/scenarios/settlement_show/python.mako new file mode 100644 index 0000000..d60512d --- /dev/null +++ b/scenarios/settlement_show/python.mako @@ -0,0 +1,12 @@ +% if mode == 'definition': +balanced.Settlement.fetch() + +% elif mode == 'request': +import balanced + +balanced.configure('ak-test-2wIOi20ITgc1u1Lw6UM3y5ZZjZ66M8HMf') + +account = balanced.Settlement.fetch('/settlements/ST1VhpiMiUv5BrcvJW2G1RgV') +% elif mode == 'response': +Settlement(status=u'pending', description=u'Payout A', links={u'source': u'AT43cMKrvwKEJnV5qX8wCqY0', u'destination': u'BA4UZsYXpf2BX97v5WPaT57O'}, amount=1000, created_at=u'2014-12-17T00:41:47.217019Z', updated_at=u'2014-12-17T00:41:47.572024Z', failure_reason=None, currency=u'USD', transaction_number=u'SCS5W-R1T-GNLH', href=u'/settlements/ST1VhpiMiUv5BrcvJW2G1RgV', meta={u'group': u'alpha'}, failure_reason_code=None, appears_on_statement_as=u'BAL*ThingsCo', id=u'ST1VhpiMiUv5BrcvJW2G1RgV') +% endif \ No newline at end of file diff --git a/scenarios/settlement_show/request.mako b/scenarios/settlement_show/request.mako new file mode 100644 index 0000000..f5cc4bc --- /dev/null +++ b/scenarios/settlement_show/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +account = balanced.Settlement.fetch('${request['uri']}') \ No newline at end of file From cae9318b7623122fc4bb6221d15ba477578124b4 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Fri, 19 Dec 2014 11:51:03 -0700 Subject: [PATCH 91/93] Account and Settlement guide snippets --- snippets/account-balance.py | 1 + snippets/merchant-payable-account-fetch.py | 2 ++ snippets/order-credit-merchant-payable-account.py | 4 ++++ snippets/order-credit.py | 2 +- snippets/settlement-create.py | 5 +++++ 5 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 snippets/account-balance.py create mode 100644 snippets/merchant-payable-account-fetch.py create mode 100644 snippets/order-credit-merchant-payable-account.py create mode 100644 snippets/settlement-create.py diff --git a/snippets/account-balance.py b/snippets/account-balance.py new file mode 100644 index 0000000..059adb9 --- /dev/null +++ b/snippets/account-balance.py @@ -0,0 +1 @@ +account.balance \ No newline at end of file diff --git a/snippets/merchant-payable-account-fetch.py b/snippets/merchant-payable-account-fetch.py new file mode 100644 index 0000000..07f461f --- /dev/null +++ b/snippets/merchant-payable-account-fetch.py @@ -0,0 +1,2 @@ +# merchant is a Customer instance +merchant.payable_account \ No newline at end of file diff --git a/snippets/order-credit-merchant-payable-account.py b/snippets/order-credit-merchant-payable-account.py new file mode 100644 index 0000000..6264dfb --- /dev/null +++ b/snippets/order-credit-merchant-payable-account.py @@ -0,0 +1,4 @@ +order.credit_to( + destination=account_href, + amount=8000 +) \ No newline at end of file diff --git a/snippets/order-credit.py b/snippets/order-credit.py index a5a6d17..19a6dba 100644 --- a/snippets/order-credit.py +++ b/snippets/order-credit.py @@ -1,4 +1,4 @@ order.credit_to( - destination=bank_account, + destination=bank_account_href, amount=8000 ) \ No newline at end of file diff --git a/snippets/settlement-create.py b/snippets/settlement-create.py new file mode 100644 index 0000000..e3d5294 --- /dev/null +++ b/snippets/settlement-create.py @@ -0,0 +1,5 @@ +account.settle( + appears_on_statement_as='ThingsCo', + description='A simple description', + funding_instrument=bank_account_href +) \ No newline at end of file From bf874b35b5af9b3d4b533b1e630d4d2f78296f1b Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Fri, 19 Dec 2014 15:17:57 -0700 Subject: [PATCH 92/93] 1.2 --- CHANGELOG.md | 4 ++++ balanced/__init__.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d8284b5..ed98d26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.2 + +* Account and Settlement support + ## 1.1.1 * Fix allowing for voiding holds diff --git a/balanced/__init__.py b/balanced/__init__.py index a48b917..ccc88e3 100644 --- a/balanced/__init__.py +++ b/balanced/__init__.py @@ -1,6 +1,6 @@ from __future__ import unicode_literals -__version__ = '1.1.1' +__version__ = '1.2' from balanced.config import configure from balanced import resources From bbd4d144edb36db9e40975da74f565b732841160 Mon Sep 17 00:00:00 2001 From: richie serna Date: Fri, 9 Jan 2015 15:04:29 -0800 Subject: [PATCH 93/93] Fix scenario formatting --- scenarios/_mj/api_key_create/executable.py | 2 +- scenarios/_mj/api_key_create/python.mako | 4 ++-- scenarios/account_credit/executable.py | 9 ++++++--- scenarios/account_credit/python.mako | 11 +++++++---- scenarios/account_credit/request.mako | 8 +++++++- scenarios/account_list/executable.py | 2 +- scenarios/account_list/python.mako | 2 +- scenarios/account_list_customer/executable.py | 4 ++-- scenarios/account_list_customer/python.mako | 4 ++-- scenarios/account_show/executable.py | 4 ++-- scenarios/account_show/python.mako | 6 +++--- scenarios/api_key_create/executable.py | 2 +- scenarios/api_key_create/python.mako | 4 ++-- scenarios/api_key_delete/executable.py | 4 ++-- scenarios/api_key_delete/python.mako | 4 ++-- scenarios/api_key_list/executable.py | 2 +- scenarios/api_key_list/python.mako | 2 +- scenarios/api_key_show/executable.py | 4 ++-- scenarios/api_key_show/python.mako | 6 +++--- .../executable.py | 6 +++--- .../bank_account_associate_to_customer/python.mako | 8 ++++---- scenarios/bank_account_create/executable.py | 2 +- scenarios/bank_account_create/python.mako | 4 ++-- scenarios/bank_account_credit/executable.py | 4 ++-- scenarios/bank_account_credit/python.mako | 6 +++--- scenarios/bank_account_debit_order/executable.py | 6 +++--- scenarios/bank_account_debit_order/python.mako | 8 ++++---- scenarios/bank_account_delete/executable.py | 4 ++-- scenarios/bank_account_delete/python.mako | 4 ++-- scenarios/bank_account_list/executable.py | 2 +- scenarios/bank_account_list/python.mako | 2 +- scenarios/bank_account_show/executable.py | 4 ++-- scenarios/bank_account_show/python.mako | 6 +++--- scenarios/bank_account_update/executable.py | 4 ++-- scenarios/bank_account_update/python.mako | 6 +++--- .../bank_account_verification_create/executable.py | 4 ++-- .../bank_account_verification_create/python.mako | 6 +++--- .../bank_account_verification_show/executable.py | 4 ++-- .../bank_account_verification_show/python.mako | 6 +++--- .../bank_account_verification_update/executable.py | 4 ++-- .../bank_account_verification_update/python.mako | 6 +++--- scenarios/callback_create/executable.py | 4 ++-- scenarios/callback_create/python.mako | 6 +++--- scenarios/callback_delete/executable.py | 4 ++-- scenarios/callback_delete/python.mako | 4 ++-- scenarios/callback_list/executable.py | 2 +- scenarios/callback_list/python.mako | 2 +- scenarios/callback_show/executable.py | 4 ++-- scenarios/callback_show/python.mako | 6 +++--- scenarios/card_associate_to_customer/executable.py | 6 +++--- scenarios/card_associate_to_customer/python.mako | 8 ++++---- scenarios/card_create/executable.py | 2 +- scenarios/card_create/python.mako | 4 ++-- scenarios/card_create_creditable/executable.py | 2 +- scenarios/card_create_creditable/python.mako | 4 ++-- scenarios/card_create_dispute/executable.py | 2 +- scenarios/card_create_dispute/python.mako | 4 ++-- scenarios/card_credit_order/executable.py | 6 +++--- scenarios/card_credit_order/python.mako | 8 ++++---- scenarios/card_debit/executable.py | 4 ++-- scenarios/card_debit/python.mako | 6 +++--- scenarios/card_debit_dispute/executable.py | 4 ++-- scenarios/card_debit_dispute/python.mako | 6 +++--- scenarios/card_delete/executable.py | 4 ++-- scenarios/card_delete/python.mako | 4 ++-- scenarios/card_hold_capture/executable.py | 4 ++-- scenarios/card_hold_capture/python.mako | 6 +++--- scenarios/card_hold_create/executable.py | 4 ++-- scenarios/card_hold_create/python.mako | 6 +++--- scenarios/card_hold_list/executable.py | 2 +- scenarios/card_hold_list/python.mako | 2 +- scenarios/card_hold_order/executable.py | 8 ++++---- scenarios/card_hold_order/python.mako | 10 +++++----- scenarios/card_hold_show/executable.py | 4 ++-- scenarios/card_hold_show/python.mako | 6 +++--- scenarios/card_hold_update/executable.py | 4 ++-- scenarios/card_hold_update/python.mako | 6 +++--- scenarios/card_hold_void/executable.py | 4 ++-- scenarios/card_hold_void/python.mako | 6 +++--- scenarios/card_list/executable.py | 2 +- scenarios/card_list/python.mako | 2 +- scenarios/card_show/executable.py | 4 ++-- scenarios/card_show/python.mako | 6 +++--- scenarios/card_update/executable.py | 4 ++-- scenarios/card_update/python.mako | 6 +++--- scenarios/credit_list/executable.py | 2 +- scenarios/credit_list/python.mako | 2 +- scenarios/credit_list_bank_account/executable.py | 4 ++-- scenarios/credit_list_bank_account/python.mako | 4 ++-- scenarios/credit_order/executable.py | 6 +++--- scenarios/credit_order/python.mako | 6 +++--- scenarios/credit_show/executable.py | 4 ++-- scenarios/credit_show/python.mako | 6 +++--- scenarios/credit_update/executable.py | 4 ++-- scenarios/credit_update/python.mako | 6 +++--- scenarios/customer_create/executable.py | 2 +- scenarios/customer_create/python.mako | 4 ++-- scenarios/customer_delete/executable.py | 4 ++-- scenarios/customer_delete/python.mako | 4 ++-- scenarios/customer_list/executable.py | 2 +- scenarios/customer_list/python.mako | 2 +- scenarios/customer_show/executable.py | 4 ++-- scenarios/customer_show/python.mako | 6 +++--- scenarios/customer_update/executable.py | 4 ++-- scenarios/customer_update/python.mako | 6 +++--- scenarios/debit_dispute_show/executable.py | 4 ++-- scenarios/debit_dispute_show/python.mako | 6 +++--- scenarios/debit_list/executable.py | 2 +- scenarios/debit_list/python.mako | 2 +- scenarios/debit_order/executable.py | 6 +++--- scenarios/debit_order/python.mako | 8 ++++---- scenarios/debit_show/executable.py | 4 ++-- scenarios/debit_show/python.mako | 6 +++--- scenarios/debit_update/executable.py | 4 ++-- scenarios/debit_update/python.mako | 6 +++--- scenarios/dispute_list/executable.py | 2 +- scenarios/dispute_list/python.mako | 2 +- scenarios/dispute_show/executable.py | 4 ++-- scenarios/dispute_show/python.mako | 6 +++--- scenarios/event_list/executable.py | 2 +- scenarios/event_list/python.mako | 2 +- scenarios/event_show/executable.py | 4 ++-- scenarios/event_show/python.mako | 6 +++--- scenarios/order_create/executable.py | 4 ++-- scenarios/order_create/python.mako | 6 +++--- scenarios/order_list/executable.py | 2 +- scenarios/order_list/python.mako | 2 +- scenarios/order_show/executable.py | 4 ++-- scenarios/order_show/python.mako | 6 +++--- scenarios/order_update/executable.py | 4 ++-- scenarios/order_update/python.mako | 6 +++--- scenarios/refund_create/executable.py | 4 ++-- scenarios/refund_create/python.mako | 6 +++--- scenarios/refund_list/executable.py | 2 +- scenarios/refund_list/python.mako | 2 +- scenarios/refund_show/executable.py | 4 ++-- scenarios/refund_show/python.mako | 6 +++--- scenarios/refund_update/executable.py | 4 ++-- scenarios/refund_update/python.mako | 6 +++--- scenarios/reversal_create/executable.py | 4 ++-- scenarios/reversal_create/python.mako | 6 +++--- scenarios/reversal_list/executable.py | 2 +- scenarios/reversal_list/python.mako | 2 +- scenarios/reversal_show/executable.py | 4 ++-- scenarios/reversal_show/python.mako | 6 +++--- scenarios/reversal_update/executable.py | 4 ++-- scenarios/reversal_update/python.mako | 6 +++--- scenarios/settlement_create/executable.py | 12 ++++++++---- scenarios/settlement_create/python.mako | 14 +++++++++----- scenarios/settlement_create/request.mako | 8 +++++++- scenarios/settlement_list/executable.py | 2 +- scenarios/settlement_list/python.mako | 2 +- scenarios/settlement_list_account/executable.py | 4 ++-- scenarios/settlement_list_account/python.mako | 4 ++-- scenarios/settlement_show/executable.py | 4 ++-- scenarios/settlement_show/python.mako | 6 +++--- scenarios/settlement_show/request.mako | 2 +- 157 files changed, 368 insertions(+), 342 deletions(-) diff --git a/scenarios/_mj/api_key_create/executable.py b/scenarios/_mj/api_key_create/executable.py index 6ad237d..4295a5a 100644 --- a/scenarios/_mj/api_key_create/executable.py +++ b/scenarios/_mj/api_key_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') api_key = balanced.APIKey() api_key.save() \ No newline at end of file diff --git a/scenarios/_mj/api_key_create/python.mako b/scenarios/_mj/api_key_create/python.mako index 8b011ce..ecd59c2 100644 --- a/scenarios/_mj/api_key_create/python.mako +++ b/scenarios/_mj/api_key_create/python.mako @@ -4,10 +4,10 @@ balanced.APIKey % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') api_key = balanced.APIKey() api_key.save() % elif mode == 'response': -APIKey(links={}, created_at=u'2014-12-18T18:20:54.950589Z', secret=u'ak-test-2s6vMXj5TtFJzMDptyJufa0QObbpZkWqf', href=u'/api_keys/AK2Phglc8FZEbSJWy3H7UeB7', meta={}, id=u'AK2Phglc8FZEbSJWy3H7UeB7') +APIKey(links={}, created_at=u'2015-01-09T03:23:00.061959Z', secret=u'ak-test-2i4j501b699lmRiGiCcIg45CM0bBI0JAQ', href=u'/api_keys/AK3DQGzROuoRYulKXMQdHBxX', meta={}, id=u'AK3DQGzROuoRYulKXMQdHBxX') % endif \ No newline at end of file diff --git a/scenarios/account_credit/executable.py b/scenarios/account_credit/executable.py index add7f9c..c832bbd 100644 --- a/scenarios/account_credit/executable.py +++ b/scenarios/account_credit/executable.py @@ -1,11 +1,14 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -payable_account = balanced.Account.fetch('/accounts/AT2E6Ju62P9AnTJwe0fL5kOI') +payable_account = balanced.Account.fetch('/accounts/AT3ogJE07IErLJYR510QO6sM') payable_account.credit( appears_on_statement_as='ThingsCo', amount=1000, description='A simple credit', - order='/orders/OR2JfBYxYlDAF3L48u9DtIEU'meta[rating]=8, + order='/orders/OR3vURGwVtqDnnkRS9fgH41G', + meta={ + 'rating': '8' + } ) \ No newline at end of file diff --git a/scenarios/account_credit/python.mako b/scenarios/account_credit/python.mako index 1888076..c2d2fa3 100644 --- a/scenarios/account_credit/python.mako +++ b/scenarios/account_credit/python.mako @@ -3,15 +3,18 @@ balanced.Account.credit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -payable_account = balanced.Account.fetch('/accounts/AT2E6Ju62P9AnTJwe0fL5kOI') +payable_account = balanced.Account.fetch('/accounts/AT3ogJE07IErLJYR510QO6sM') payable_account.credit( appears_on_statement_as='ThingsCo', amount=1000, description='A simple credit', - order='/orders/OR2JfBYxYlDAF3L48u9DtIEU'meta[rating]=8, + order='/orders/OR3vURGwVtqDnnkRS9fgH41G', + meta={ + 'rating': '8' + } ) % elif mode == 'response': -Credit(status=u'succeeded', description=u'A simple credit', links={u'customer': u'CU2DRnwOXfbxBlKb5CUWwWJi', u'destination': u'AT2E6Ju62P9AnTJwe0fL5kOI', u'order': u'OR2JfBYxYlDAF3L48u9DtIEU'}, amount=1000, created_at=u'2014-12-19T19:33:31.202845Z', updated_at=u'2014-12-19T19:33:31.295273Z', failure_reason=None, currency=u'USD', transaction_number=u'CR77S-5TO-YRYQ', href=u'/credits/CR5bM6mv38qwW1NEo0ssJTiR', meta={u'rating': u'8'}, failure_reason_code=None, appears_on_statement_as=u'ThingsCo', id=u'CR5bM6mv38qwW1NEo0ssJTiR') +Credit(status=u'succeeded', description=u'A simple credit', links={u'customer': u'CU3o1ZAd8Gtxz6ZTIFK9YmsM', u'destination': u'AT3ogJE07IErLJYR510QO6sM', u'order': u'OR3vURGwVtqDnnkRS9fgH41G'}, amount=1000, created_at=u'2015-01-09T03:22:56.285894Z', updated_at=u'2015-01-09T03:22:56.407717Z', failure_reason=None, currency=u'USD', transaction_number=u'CRMJJ-XQI-MUMX', href=u'/credits/CR3zAL8gnvuDGGTqr1UqehlS', meta={u'rating': u'8'}, failure_reason_code=None, appears_on_statement_as=u'ThingsCo', id=u'CR3zAL8gnvuDGGTqr1UqehlS') % endif \ No newline at end of file diff --git a/scenarios/account_credit/request.mako b/scenarios/account_credit/request.mako index 9f35037..e251c32 100644 --- a/scenarios/account_credit/request.mako +++ b/scenarios/account_credit/request.mako @@ -3,5 +3,11 @@ payable_account = balanced.Account.fetch('${request['href']}') payable_account.credit( - <% main.payload_expand(request['payload']) %> + appears_on_statement_as='${request['payload']['appears_on_statement_as']}', + amount=${request['payload']['amount']}, + description='${request['payload']['description']}', + order='${request['payload']['order']}', + meta={ + 'rating': '${request['payload']['meta']['rating']}' + } ) \ No newline at end of file diff --git a/scenarios/account_list/executable.py b/scenarios/account_list/executable.py index 67a8e9d..f45e35d 100644 --- a/scenarios/account_list/executable.py +++ b/scenarios/account_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') accounts = balanced.Account.query \ No newline at end of file diff --git a/scenarios/account_list/python.mako b/scenarios/account_list/python.mako index 5944bb5..d042f18 100644 --- a/scenarios/account_list/python.mako +++ b/scenarios/account_list/python.mako @@ -4,7 +4,7 @@ balanced.Account.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') accounts = balanced.Account.query % elif mode == 'response': diff --git a/scenarios/account_list_customer/executable.py b/scenarios/account_list_customer/executable.py index 46149a9..1bcc290 100644 --- a/scenarios/account_list_customer/executable.py +++ b/scenarios/account_list_customer/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -customer = balanced.Customer.fetch('/customers/CU4CZc7Xjn8gGJXl1LyzZk7S') +customer = balanced.Customer.fetch('/customers/CU3o1ZAd8Gtxz6ZTIFK9YmsM') customer.accounts \ No newline at end of file diff --git a/scenarios/account_list_customer/python.mako b/scenarios/account_list_customer/python.mako index d189fc8..9c6ecbc 100644 --- a/scenarios/account_list_customer/python.mako +++ b/scenarios/account_list_customer/python.mako @@ -4,9 +4,9 @@ balanced.Account.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -customer = balanced.Customer.fetch('/customers/CU4CZc7Xjn8gGJXl1LyzZk7S') +customer = balanced.Customer.fetch('/customers/CU3o1ZAd8Gtxz6ZTIFK9YmsM') customer.accounts % elif mode == 'response': diff --git a/scenarios/account_show/executable.py b/scenarios/account_show/executable.py index 2126d59..237e2de 100644 --- a/scenarios/account_show/executable.py +++ b/scenarios/account_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -account = balanced.Account.fetch('/accounts/AT2t2NS6otEMnPT0jVuRAE6Y') \ No newline at end of file +account = balanced.Account.fetch('/accounts/AT2V7l4MoUJH8xDse641Xqog') \ No newline at end of file diff --git a/scenarios/account_show/python.mako b/scenarios/account_show/python.mako index b133234..c0b1833 100644 --- a/scenarios/account_show/python.mako +++ b/scenarios/account_show/python.mako @@ -4,9 +4,9 @@ balanced.Account.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -account = balanced.Account.fetch('/accounts/AT2t2NS6otEMnPT0jVuRAE6Y') +account = balanced.Account.fetch('/accounts/AT2V7l4MoUJH8xDse641Xqog') % elif mode == 'response': -Account(links={u'customer': u'CU2sWdT0agfxWIbJN2W5LR0k'}, can_credit=True, can_debit=True, created_at=u'2014-12-18T18:20:35.215938Z', updated_at=u'2014-12-18T18:20:35.215939Z', currency=u'USD', href=u'/accounts/AT2t2NS6otEMnPT0jVuRAE6Y', meta={}, balance=0, type=u'payable', id=u'AT2t2NS6otEMnPT0jVuRAE6Y') +Account(links={u'customer': u'CU2V0zJeFwPUCzJsaK48Ly3S'}, can_credit=True, can_debit=True, created_at=u'2015-01-09T03:22:20.308375Z', updated_at=u'2015-01-09T03:22:20.308376Z', currency=u'USD', href=u'/accounts/AT2V7l4MoUJH8xDse641Xqog', meta={}, balance=0, type=u'payable', id=u'AT2V7l4MoUJH8xDse641Xqog') % endif \ No newline at end of file diff --git a/scenarios/api_key_create/executable.py b/scenarios/api_key_create/executable.py index 4ffacbf..4b934a1 100644 --- a/scenarios/api_key_create/executable.py +++ b/scenarios/api_key_create/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') api_key = balanced.APIKey().save() \ No newline at end of file diff --git a/scenarios/api_key_create/python.mako b/scenarios/api_key_create/python.mako index f4aff11..d50a576 100644 --- a/scenarios/api_key_create/python.mako +++ b/scenarios/api_key_create/python.mako @@ -3,9 +3,9 @@ balanced.APIKey() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') api_key = balanced.APIKey().save() % elif mode == 'response': -APIKey(links={}, created_at=u'2014-12-18T18:20:54.950589Z', secret=u'ak-test-2s6vMXj5TtFJzMDptyJufa0QObbpZkWqf', href=u'/api_keys/AK2Phglc8FZEbSJWy3H7UeB7', meta={}, id=u'AK2Phglc8FZEbSJWy3H7UeB7') +APIKey(links={}, created_at=u'2015-01-09T03:23:00.061959Z', secret=u'ak-test-2i4j501b699lmRiGiCcIg45CM0bBI0JAQ', href=u'/api_keys/AK3DQGzROuoRYulKXMQdHBxX', meta={}, id=u'AK3DQGzROuoRYulKXMQdHBxX') % endif \ No newline at end of file diff --git a/scenarios/api_key_delete/executable.py b/scenarios/api_key_delete/executable.py index 74d3680..f726841 100644 --- a/scenarios/api_key_delete/executable.py +++ b/scenarios/api_key_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -key = balanced.APIKey.fetch('/api_keys/AK2Phglc8FZEbSJWy3H7UeB7') +key = balanced.APIKey.fetch('/api_keys/AK3DQGzROuoRYulKXMQdHBxX') key.delete() \ No newline at end of file diff --git a/scenarios/api_key_delete/python.mako b/scenarios/api_key_delete/python.mako index 9e5530b..5bf8c9f 100644 --- a/scenarios/api_key_delete/python.mako +++ b/scenarios/api_key_delete/python.mako @@ -3,9 +3,9 @@ balanced.APIKey().delete() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -key = balanced.APIKey.fetch('/api_keys/AK2Phglc8FZEbSJWy3H7UeB7') +key = balanced.APIKey.fetch('/api_keys/AK3DQGzROuoRYulKXMQdHBxX') key.delete() % elif mode == 'response': diff --git a/scenarios/api_key_list/executable.py b/scenarios/api_key_list/executable.py index ae6f74e..84c6874 100644 --- a/scenarios/api_key_list/executable.py +++ b/scenarios/api_key_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') keys = balanced.APIKey.query \ No newline at end of file diff --git a/scenarios/api_key_list/python.mako b/scenarios/api_key_list/python.mako index 8c7a7e1..b5c9132 100644 --- a/scenarios/api_key_list/python.mako +++ b/scenarios/api_key_list/python.mako @@ -4,7 +4,7 @@ balanced.APIKey.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') keys = balanced.APIKey.query % elif mode == 'response': diff --git a/scenarios/api_key_show/executable.py b/scenarios/api_key_show/executable.py index aa0ec15..50596bf 100644 --- a/scenarios/api_key_show/executable.py +++ b/scenarios/api_key_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -key = balanced.APIKey.fetch('/api_keys/AK2Phglc8FZEbSJWy3H7UeB7') \ No newline at end of file +key = balanced.APIKey.fetch('/api_keys/AK3DQGzROuoRYulKXMQdHBxX') \ No newline at end of file diff --git a/scenarios/api_key_show/python.mako b/scenarios/api_key_show/python.mako index 6478ab3..41a278d 100644 --- a/scenarios/api_key_show/python.mako +++ b/scenarios/api_key_show/python.mako @@ -4,9 +4,9 @@ balanced.APIKey.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -key = balanced.APIKey.fetch('/api_keys/AK2Phglc8FZEbSJWy3H7UeB7') +key = balanced.APIKey.fetch('/api_keys/AK3DQGzROuoRYulKXMQdHBxX') % elif mode == 'response': -APIKey(created_at=u'2014-12-18T18:20:54.950589Z', href=u'/api_keys/AK2Phglc8FZEbSJWy3H7UeB7', meta={}, id=u'AK2Phglc8FZEbSJWy3H7UeB7', links={}) +APIKey(created_at=u'2015-01-09T03:23:00.061959Z', href=u'/api_keys/AK3DQGzROuoRYulKXMQdHBxX', meta={}, id=u'AK3DQGzROuoRYulKXMQdHBxX', links={}) % endif \ No newline at end of file diff --git a/scenarios/bank_account_associate_to_customer/executable.py b/scenarios/bank_account_associate_to_customer/executable.py index 922ded1..56ac6eb 100644 --- a/scenarios/bank_account_associate_to_customer/executable.py +++ b/scenarios/bank_account_associate_to_customer/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3uzbngfVXy1SGg25Et7iKY') -bank_account.associate_to_customer('/customers/CU2DRnwOXfbxBlKb5CUWwWJi') \ No newline at end of file +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA45anEaEr8g0lOhzhcE9VAN') +bank_account.associate_to_customer('/customers/CU3o1ZAd8Gtxz6ZTIFK9YmsM') \ No newline at end of file diff --git a/scenarios/bank_account_associate_to_customer/python.mako b/scenarios/bank_account_associate_to_customer/python.mako index 8b0f310..e2ed620 100644 --- a/scenarios/bank_account_associate_to_customer/python.mako +++ b/scenarios/bank_account_associate_to_customer/python.mako @@ -3,10 +3,10 @@ balanced.BankAccount().associate_to_customer() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3uzbngfVXy1SGg25Et7iKY') -bank_account.associate_to_customer('/customers/CU2DRnwOXfbxBlKb5CUWwWJi') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA45anEaEr8g0lOhzhcE9VAN') +bank_account.associate_to_customer('/customers/CU3o1ZAd8Gtxz6ZTIFK9YmsM') % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': u'CU2DRnwOXfbxBlKb5CUWwWJi', u'bank_account_verification': None}, can_credit=True, created_at=u'2014-12-18T18:21:31.663217Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-12-18T18:21:32.166444Z', href=u'/bank_accounts/BA3uzbngfVXy1SGg25Et7iKY', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA3uzbngfVXy1SGg25Et7iKY') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': u'CU3o1ZAd8Gtxz6ZTIFK9YmsM', u'bank_account_verification': None}, can_credit=True, created_at=u'2015-01-09T03:23:24.352488Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2015-01-09T03:23:25.100561Z', href=u'/bank_accounts/BA45anEaEr8g0lOhzhcE9VAN', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA45anEaEr8g0lOhzhcE9VAN') % endif \ No newline at end of file diff --git a/scenarios/bank_account_create/executable.py b/scenarios/bank_account_create/executable.py index 43895af..2fd0e6a 100644 --- a/scenarios/bank_account_create/executable.py +++ b/scenarios/bank_account_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') bank_account = balanced.BankAccount( routing_number='121000358', diff --git a/scenarios/bank_account_create/python.mako b/scenarios/bank_account_create/python.mako index 4f6cbac..383873d 100644 --- a/scenarios/bank_account_create/python.mako +++ b/scenarios/bank_account_create/python.mako @@ -3,7 +3,7 @@ balanced.BankAccount().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') bank_account = balanced.BankAccount( routing_number='121000358', @@ -12,5 +12,5 @@ bank_account = balanced.BankAccount( name='Johann Bernoulli' ).save() % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-12-18T18:21:31.663217Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-12-18T18:21:31.663218Z', href=u'/bank_accounts/BA3uzbngfVXy1SGg25Et7iKY', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA3uzbngfVXy1SGg25Et7iKY') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2015-01-09T03:23:24.352488Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2015-01-09T03:23:24.352490Z', href=u'/bank_accounts/BA45anEaEr8g0lOhzhcE9VAN', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA45anEaEr8g0lOhzhcE9VAN') % endif \ No newline at end of file diff --git a/scenarios/bank_account_credit/executable.py b/scenarios/bank_account_credit/executable.py index 8b1b377..6231551 100644 --- a/scenarios/bank_account_credit/executable.py +++ b/scenarios/bank_account_credit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3uzbngfVXy1SGg25Et7iKY') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA45anEaEr8g0lOhzhcE9VAN') bank_account.credit( amount=5000 ) \ No newline at end of file diff --git a/scenarios/bank_account_credit/python.mako b/scenarios/bank_account_credit/python.mako index 55fab09..c6abea0 100644 --- a/scenarios/bank_account_credit/python.mako +++ b/scenarios/bank_account_credit/python.mako @@ -3,12 +3,12 @@ balanced.BankAccount().credit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3uzbngfVXy1SGg25Et7iKY') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA45anEaEr8g0lOhzhcE9VAN') bank_account.credit( amount=5000 ) % elif mode == 'response': -Credit(status=u'pending', description=None, links={u'customer': u'CU2DRnwOXfbxBlKb5CUWwWJi', u'destination': u'BA3uzbngfVXy1SGg25Et7iKY', u'order': None}, amount=5000, created_at=u'2014-12-18T18:23:17.134381Z', updated_at=u'2014-12-18T18:23:17.459321Z', failure_reason=None, currency=u'USD', transaction_number=u'CRMY6-6AZ-YV3J', href=u'/credits/CR5pb9ux8RYVNTwcJ3jdVF84', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR5pb9ux8RYVNTwcJ3jdVF84') +Credit(status=u'pending', description=None, links={u'customer': u'CU3o1ZAd8Gtxz6ZTIFK9YmsM', u'destination': u'BA45anEaEr8g0lOhzhcE9VAN', u'order': None}, amount=5000, created_at=u'2015-01-09T03:25:41.350099Z', updated_at=u'2015-01-09T03:25:41.727056Z', failure_reason=None, currency=u'USD', transaction_number=u'CR6XX-6KR-7GSZ', href=u'/credits/CR6zeufmfv0u1KHrUBCQtAgU', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR6zeufmfv0u1KHrUBCQtAgU') % endif \ No newline at end of file diff --git a/scenarios/bank_account_debit_order/executable.py b/scenarios/bank_account_debit_order/executable.py index 6b3f326..7fc5acf 100644 --- a/scenarios/bank_account_debit_order/executable.py +++ b/scenarios/bank_account_debit_order/executable.py @@ -1,9 +1,9 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -order = balanced.Order.fetch('/orders/OR2JfBYxYlDAF3L48u9DtIEU') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA305R4Vwumo1KjT9kwVrdfT') +order = balanced.Order.fetch('/orders/OR3vURGwVtqDnnkRS9fgH41G') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3LVXVgJLrzkmB3vUntKJ6t') order.debit_from( amount=5000, source=bank_account, diff --git a/scenarios/bank_account_debit_order/python.mako b/scenarios/bank_account_debit_order/python.mako index 7c19833..accb4ae 100644 --- a/scenarios/bank_account_debit_order/python.mako +++ b/scenarios/bank_account_debit_order/python.mako @@ -4,14 +4,14 @@ balanced.Order().debit_from() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -order = balanced.Order.fetch('/orders/OR2JfBYxYlDAF3L48u9DtIEU') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA305R4Vwumo1KjT9kwVrdfT') +order = balanced.Order.fetch('/orders/OR3vURGwVtqDnnkRS9fgH41G') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3LVXVgJLrzkmB3vUntKJ6t') order.debit_from( amount=5000, source=bank_account, ) % elif mode == 'response': -Debit(status=u'pending', description=u'Order #12341234', links={u'customer': None, u'source': u'BA305R4Vwumo1KjT9kwVrdfT', u'dispute': None, u'order': u'OR2JfBYxYlDAF3L48u9DtIEU', u'card_hold': None}, amount=5000, created_at=u'2014-12-18T18:21:34.869249Z', updated_at=u'2014-12-18T18:21:35.142979Z', failure_reason=None, currency=u'USD', transaction_number=u'WQUD-1BL-3KIM', href=u'/debits/WD3yawZGsngL3dLqW0YpEEcE', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*example.com', id=u'WD3yawZGsngL3dLqW0YpEEcE') +Debit(status=u'pending', description=u'Order #12341234', links={u'customer': None, u'source': u'BA3LVXVgJLrzkmB3vUntKJ6t', u'dispute': None, u'order': u'OR3vURGwVtqDnnkRS9fgH41G', u'card_hold': None}, amount=5000, created_at=u'2015-01-09T03:23:26.676705Z', updated_at=u'2015-01-09T03:23:26.949357Z', failure_reason=None, currency=u'USD', transaction_number=u'WULC-EFN-JTW0', href=u'/debits/WD47MlpITdspMYF3lZSxmGtT', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*example.com', id=u'WD47MlpITdspMYF3lZSxmGtT') % endif \ No newline at end of file diff --git a/scenarios/bank_account_delete/executable.py b/scenarios/bank_account_delete/executable.py index 56433c0..919fe06 100644 --- a/scenarios/bank_account_delete/executable.py +++ b/scenarios/bank_account_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3gt4RLskm2w09aXHPDaCb3') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3Ya2sAlEQE14O1iS17FN0Q') bank_account.delete() \ No newline at end of file diff --git a/scenarios/bank_account_delete/python.mako b/scenarios/bank_account_delete/python.mako index ab94ca3..330cde6 100644 --- a/scenarios/bank_account_delete/python.mako +++ b/scenarios/bank_account_delete/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount().delete() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3gt4RLskm2w09aXHPDaCb3') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3Ya2sAlEQE14O1iS17FN0Q') bank_account.delete() % elif mode == 'response': diff --git a/scenarios/bank_account_list/executable.py b/scenarios/bank_account_list/executable.py index 28cd97f..965db18 100644 --- a/scenarios/bank_account_list/executable.py +++ b/scenarios/bank_account_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') bank_accounts = balanced.BankAccount.query \ No newline at end of file diff --git a/scenarios/bank_account_list/python.mako b/scenarios/bank_account_list/python.mako index 71f1026..f260642 100644 --- a/scenarios/bank_account_list/python.mako +++ b/scenarios/bank_account_list/python.mako @@ -4,7 +4,7 @@ balanced.BankAccount.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') bank_accounts = balanced.BankAccount.query % elif mode == 'response': diff --git a/scenarios/bank_account_show/executable.py b/scenarios/bank_account_show/executable.py index 35782dd..d55a090 100644 --- a/scenarios/bank_account_show/executable.py +++ b/scenarios/bank_account_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3gt4RLskm2w09aXHPDaCb3') \ No newline at end of file +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3Ya2sAlEQE14O1iS17FN0Q') \ No newline at end of file diff --git a/scenarios/bank_account_show/python.mako b/scenarios/bank_account_show/python.mako index c3684b6..9b2f347 100644 --- a/scenarios/bank_account_show/python.mako +++ b/scenarios/bank_account_show/python.mako @@ -4,9 +4,9 @@ balanced.BankAccount.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3gt4RLskm2w09aXHPDaCb3') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3Ya2sAlEQE14O1iS17FN0Q') % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-12-18T18:21:19.129483Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-12-18T18:21:19.129485Z', href=u'/bank_accounts/BA3gt4RLskm2w09aXHPDaCb3', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA3gt4RLskm2w09aXHPDaCb3') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2015-01-09T03:23:18.120531Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2015-01-09T03:23:18.120532Z', href=u'/bank_accounts/BA3Ya2sAlEQE14O1iS17FN0Q', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA3Ya2sAlEQE14O1iS17FN0Q') % endif \ No newline at end of file diff --git a/scenarios/bank_account_update/executable.py b/scenarios/bank_account_update/executable.py index d563a30..bce9e1a 100644 --- a/scenarios/bank_account_update/executable.py +++ b/scenarios/bank_account_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3gt4RLskm2w09aXHPDaCb3') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3Ya2sAlEQE14O1iS17FN0Q') bank_account.meta = { 'twitter.id'='1234987650', 'facebook.user_id'='0192837465', diff --git a/scenarios/bank_account_update/python.mako b/scenarios/bank_account_update/python.mako index f186f61..af118a7 100644 --- a/scenarios/bank_account_update/python.mako +++ b/scenarios/bank_account_update/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3gt4RLskm2w09aXHPDaCb3') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3Ya2sAlEQE14O1iS17FN0Q') bank_account.meta = { 'twitter.id'='1234987650', 'facebook.user_id'='0192837465', @@ -13,5 +13,5 @@ bank_account.meta = { } bank_account.save() % elif mode == 'response': -BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2014-12-18T18:21:19.129483Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2014-12-18T18:21:26.907937Z', href=u'/bank_accounts/BA3gt4RLskm2w09aXHPDaCb3', meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA3gt4RLskm2w09aXHPDaCb3') +BankAccount(routing_number=u'121000358', bank_name=u'BANK OF AMERICA, N.A.', account_type=u'checking', name=u'Johann Bernoulli', links={u'customer': None, u'bank_account_verification': None}, can_credit=True, created_at=u'2015-01-09T03:23:18.120531Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, updated_at=u'2015-01-09T03:23:22.310587Z', href=u'/bank_accounts/BA3Ya2sAlEQE14O1iS17FN0Q', meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA3Ya2sAlEQE14O1iS17FN0Q') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/executable.py b/scenarios/bank_account_verification_create/executable.py index 3427085..6f99a8d 100644 --- a/scenarios/bank_account_verification_create/executable.py +++ b/scenarios/bank_account_verification_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA305R4Vwumo1KjT9kwVrdfT') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3LVXVgJLrzkmB3vUntKJ6t') verification = bank_account.verify() \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/python.mako b/scenarios/bank_account_verification_create/python.mako index 26895b2..6b25b0f 100644 --- a/scenarios/bank_account_verification_create/python.mako +++ b/scenarios/bank_account_verification_create/python.mako @@ -3,10 +3,10 @@ balanced.BankAccountVerification().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA305R4Vwumo1KjT9kwVrdfT') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3LVXVgJLrzkmB3vUntKJ6t') verification = bank_account.verify() % elif mode == 'response': -BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA305R4Vwumo1KjT9kwVrdfT'}, created_at=u'2014-12-18T18:21:10.883036Z', attempts_remaining=3, updated_at=u'2014-12-18T18:21:10.883038Z', deposit_status=u'pending', attempts=0, href=u'/verifications/BZ37ck8caI06gKMmpz70Zt6w', meta={}, id=u'BZ37ck8caI06gKMmpz70Zt6w') +BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA3LVXVgJLrzkmB3vUntKJ6t'}, created_at=u'2015-01-09T03:23:13.465191Z', attempts_remaining=3, updated_at=u'2015-01-09T03:23:13.465192Z', deposit_status=u'pending', attempts=0, href=u'/verifications/BZ3SVvXTx85CrYo8045tr2cU', meta={}, id=u'BZ3SVvXTx85CrYo8045tr2cU') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/executable.py b/scenarios/bank_account_verification_show/executable.py index f2e2587..1004d0b 100644 --- a/scenarios/bank_account_verification_show/executable.py +++ b/scenarios/bank_account_verification_show/executable.py @@ -1,4 +1,4 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ37ck8caI06gKMmpz70Zt6w') \ No newline at end of file +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ3SVvXTx85CrYo8045tr2cU') \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/python.mako b/scenarios/bank_account_verification_show/python.mako index 66d1031..49b5b9d 100644 --- a/scenarios/bank_account_verification_show/python.mako +++ b/scenarios/bank_account_verification_show/python.mako @@ -4,8 +4,8 @@ balanced.BankAccountVerification.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ37ck8caI06gKMmpz70Zt6w') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ3SVvXTx85CrYo8045tr2cU') % elif mode == 'response': -BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA305R4Vwumo1KjT9kwVrdfT'}, created_at=u'2014-12-18T18:21:10.883036Z', attempts_remaining=3, updated_at=u'2014-12-18T18:21:10.883038Z', deposit_status=u'pending', attempts=0, href=u'/verifications/BZ37ck8caI06gKMmpz70Zt6w', meta={}, id=u'BZ37ck8caI06gKMmpz70Zt6w') +BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA3LVXVgJLrzkmB3vUntKJ6t'}, created_at=u'2015-01-09T03:23:13.465191Z', attempts_remaining=3, updated_at=u'2015-01-09T03:23:13.465192Z', deposit_status=u'pending', attempts=0, href=u'/verifications/BZ3SVvXTx85CrYo8045tr2cU', meta={}, id=u'BZ3SVvXTx85CrYo8045tr2cU') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/executable.py b/scenarios/bank_account_verification_update/executable.py index 786acd1..1e3c80a 100644 --- a/scenarios/bank_account_verification_update/executable.py +++ b/scenarios/bank_account_verification_update/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ37ck8caI06gKMmpz70Zt6w') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ3SVvXTx85CrYo8045tr2cU') verification.confirm(amount_1=1, amount_2=1) \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/python.mako b/scenarios/bank_account_verification_update/python.mako index 87c15d5..afaefe0 100644 --- a/scenarios/bank_account_verification_update/python.mako +++ b/scenarios/bank_account_verification_update/python.mako @@ -3,10 +3,10 @@ balanced.BankAccountVerification().confirm() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ37ck8caI06gKMmpz70Zt6w') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ3SVvXTx85CrYo8045tr2cU') verification.confirm(amount_1=1, amount_2=1) % elif mode == 'response': -BankAccountVerification(verification_status=u'succeeded', links={u'bank_account': u'BA305R4Vwumo1KjT9kwVrdfT'}, created_at=u'2014-12-18T18:21:10.883036Z', attempts_remaining=2, updated_at=u'2014-12-18T18:21:16.298025Z', deposit_status=u'succeeded', attempts=1, href=u'/verifications/BZ37ck8caI06gKMmpz70Zt6w', meta={}, id=u'BZ37ck8caI06gKMmpz70Zt6w') +BankAccountVerification(verification_status=u'succeeded', links={u'bank_account': u'BA3LVXVgJLrzkmB3vUntKJ6t'}, created_at=u'2015-01-09T03:23:13.465191Z', attempts_remaining=2, updated_at=u'2015-01-09T03:23:16.381292Z', deposit_status=u'succeeded', attempts=1, href=u'/verifications/BZ3SVvXTx85CrYo8045tr2cU', meta={}, id=u'BZ3SVvXTx85CrYo8045tr2cU') % endif \ No newline at end of file diff --git a/scenarios/callback_create/executable.py b/scenarios/callback_create/executable.py index 6572c78..050574b 100644 --- a/scenarios/callback_create/executable.py +++ b/scenarios/callback_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') callback = balanced.Callback( - url='http://www.example.com/callback', + url='http://www.example.com/callback_test', method='post' ).save() \ No newline at end of file diff --git a/scenarios/callback_create/python.mako b/scenarios/callback_create/python.mako index 322d0d8..6be8c1a 100644 --- a/scenarios/callback_create/python.mako +++ b/scenarios/callback_create/python.mako @@ -3,12 +3,12 @@ balanced.Callback() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') callback = balanced.Callback( - url='http://www.example.com/callback', + url='http://www.example.com/callback_test', method='post' ).save() % elif mode == 'response': -Callback(links={}, url=u'http://www.example.com/callback', id=u'CB3BP8jjVy8RBUFdb2fYw0mh', href=u'/callbacks/CB3BP8jjVy8RBUFdb2fYw0mh', method=u'post', revision=u'1.1') +Callback(links={}, url=u'http://www.example.com/callback_test', id=u'CB4a7Q7HSdJJgMVHwPsarIw8', href=u'/callbacks/CB4a7Q7HSdJJgMVHwPsarIw8', method=u'post', revision=u'1.1') % endif \ No newline at end of file diff --git a/scenarios/callback_delete/executable.py b/scenarios/callback_delete/executable.py index c6a3de8..927a678 100644 --- a/scenarios/callback_delete/executable.py +++ b/scenarios/callback_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -callback = balanced.Callback.fetch('/callbacks/CB3BP8jjVy8RBUFdb2fYw0mh') +callback = balanced.Callback.fetch('/callbacks/CB4a7Q7HSdJJgMVHwPsarIw8') callback.unstore() \ No newline at end of file diff --git a/scenarios/callback_delete/python.mako b/scenarios/callback_delete/python.mako index 604c8b2..359fbca 100644 --- a/scenarios/callback_delete/python.mako +++ b/scenarios/callback_delete/python.mako @@ -3,9 +3,9 @@ balanced.Callback().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -callback = balanced.Callback.fetch('/callbacks/CB3BP8jjVy8RBUFdb2fYw0mh') +callback = balanced.Callback.fetch('/callbacks/CB4a7Q7HSdJJgMVHwPsarIw8') callback.unstore() % elif mode == 'response': diff --git a/scenarios/callback_list/executable.py b/scenarios/callback_list/executable.py index 6418308..986e0da 100644 --- a/scenarios/callback_list/executable.py +++ b/scenarios/callback_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') callbacks = balanced.Callback.query \ No newline at end of file diff --git a/scenarios/callback_list/python.mako b/scenarios/callback_list/python.mako index cae8a85..24fa6e3 100644 --- a/scenarios/callback_list/python.mako +++ b/scenarios/callback_list/python.mako @@ -4,7 +4,7 @@ balanced.Callback.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') callbacks = balanced.Callback.query % elif mode == 'response': diff --git a/scenarios/callback_show/executable.py b/scenarios/callback_show/executable.py index ee53c5a..b267af9 100644 --- a/scenarios/callback_show/executable.py +++ b/scenarios/callback_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -callback = balanced.Callback.fetch('/callbacks/CB3BP8jjVy8RBUFdb2fYw0mh') \ No newline at end of file +callback = balanced.Callback.fetch('/callbacks/CB4a7Q7HSdJJgMVHwPsarIw8') \ No newline at end of file diff --git a/scenarios/callback_show/python.mako b/scenarios/callback_show/python.mako index 8a58aba..2513875 100644 --- a/scenarios/callback_show/python.mako +++ b/scenarios/callback_show/python.mako @@ -4,9 +4,9 @@ balanced.Callback.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -callback = balanced.Callback.fetch('/callbacks/CB3BP8jjVy8RBUFdb2fYw0mh') +callback = balanced.Callback.fetch('/callbacks/CB4a7Q7HSdJJgMVHwPsarIw8') % elif mode == 'response': -Callback(links={}, url=u'http://www.example.com/callback', id=u'CB3BP8jjVy8RBUFdb2fYw0mh', href=u'/callbacks/CB3BP8jjVy8RBUFdb2fYw0mh', method=u'post', revision=u'1.1') +Callback(links={}, url=u'http://www.example.com/callback_test', id=u'CB4a7Q7HSdJJgMVHwPsarIw8', href=u'/callbacks/CB4a7Q7HSdJJgMVHwPsarIw8', method=u'post', revision=u'1.1') % endif \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/executable.py b/scenarios/card_associate_to_customer/executable.py index bb18975..b2f4245 100644 --- a/scenarios/card_associate_to_customer/executable.py +++ b/scenarios/card_associate_to_customer/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -card = balanced.Card.fetch('/cards/CC4fWSr1PpCAh6mlDzNfr0Gs') -card.associate_to_customer('/customers/CU2DRnwOXfbxBlKb5CUWwWJi') \ No newline at end of file +card = balanced.Card.fetch('/cards/CC4HDcgvzIltvwv6GSjBVbji') +card.associate_to_customer('/customers/CU3o1ZAd8Gtxz6ZTIFK9YmsM') \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/python.mako b/scenarios/card_associate_to_customer/python.mako index 3595273..465a99e 100644 --- a/scenarios/card_associate_to_customer/python.mako +++ b/scenarios/card_associate_to_customer/python.mako @@ -3,10 +3,10 @@ balanced.Card().associate_to_customer() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -card = balanced.Card.fetch('/cards/CC4fWSr1PpCAh6mlDzNfr0Gs') -card.associate_to_customer('/customers/CU2DRnwOXfbxBlKb5CUWwWJi') +card = balanced.Card.fetch('/cards/CC4HDcgvzIltvwv6GSjBVbji') +card.associate_to_customer('/customers/CU3o1ZAd8Gtxz6ZTIFK9YmsM') % elif mode == 'response': -Card(links={u'customer': u'CU2DRnwOXfbxBlKb5CUWwWJi'}, cvv_result=None, number=u'xxxxxxxxxxxx1118', expiration_month=5, href=u'/cards/CC4fWSr1PpCAh6mlDzNfr0Gs', type=u'debit', id=u'CC4fWSr1PpCAh6mlDzNfr0Gs', category=u'other', is_verified=True, cvv_match=None, bank_name=u'WELLS FARGO BANK, N.A.', avs_street_match=None, brand=u'Visa', updated_at=u'2014-12-18T18:22:14.281161Z', fingerprint=u'7dc93d35b59078a1da8e0ebd2cbec65a6ca205760a1be1b90a143d7f2b00e355', can_debit=True, name=u'Johannes Bach', expiration_year=2020, cvv=None, avs_postal_match=None, avs_result=None, can_credit=True, meta={}, created_at=u'2014-12-18T18:22:13.790907Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) +Card(links={u'customer': u'CU3o1ZAd8Gtxz6ZTIFK9YmsM'}, cvv_result=None, number=u'xxxxxxxxxxxx1118', expiration_month=5, href=u'/cards/CC4HDcgvzIltvwv6GSjBVbji', type=u'debit', id=u'CC4HDcgvzIltvwv6GSjBVbji', category=u'other', is_verified=True, cvv_match=None, bank_name=u'WELLS FARGO BANK, N.A.', avs_street_match=None, brand=u'Visa', updated_at=u'2015-01-09T03:23:59.133903Z', fingerprint=u'7dc93d35b59078a1da8e0ebd2cbec65a6ca205760a1be1b90a143d7f2b00e355', can_debit=True, name=u'Johannes Bach', expiration_year=2020, cvv=None, avs_postal_match=None, avs_result=None, can_credit=True, meta={}, created_at=u'2015-01-09T03:23:58.549644Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/card_create/executable.py b/scenarios/card_create/executable.py index 674219b..84e7b87 100644 --- a/scenarios/card_create/executable.py +++ b/scenarios/card_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') card = balanced.Card( cvv='123', diff --git a/scenarios/card_create/python.mako b/scenarios/card_create/python.mako index f2f8e48..98c9693 100644 --- a/scenarios/card_create/python.mako +++ b/scenarios/card_create/python.mako @@ -3,7 +3,7 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') card = balanced.Card( cvv='123', @@ -12,5 +12,5 @@ card = balanced.Card( expiration_year='2020' ).save() % elif mode == 'response': -Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC48j1De9eVYELLivrgDeCM8', type=u'credit', id=u'CC48j1De9eVYELLivrgDeCM8', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2014-12-18T18:22:06.996162Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={}, created_at=u'2014-12-18T18:22:06.996160Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) +Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC4zyuNpxY0A0eAf87SeULCR', type=u'credit', id=u'CC4zyuNpxY0A0eAf87SeULCR', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2015-01-09T03:23:51.373359Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={}, created_at=u'2015-01-09T03:23:51.373358Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/card_create_creditable/executable.py b/scenarios/card_create_creditable/executable.py index 1bc8dce..11d1569 100644 --- a/scenarios/card_create_creditable/executable.py +++ b/scenarios/card_create_creditable/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') card = balanced.Card( expiration_month='05', diff --git a/scenarios/card_create_creditable/python.mako b/scenarios/card_create_creditable/python.mako index 210130e..5b74317 100644 --- a/scenarios/card_create_creditable/python.mako +++ b/scenarios/card_create_creditable/python.mako @@ -3,7 +3,7 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') card = balanced.Card( expiration_month='05', @@ -12,5 +12,5 @@ card = balanced.Card( number='4342561111111118' ).save() % elif mode == 'response': -Card(links={u'customer': None}, cvv_result=None, number=u'xxxxxxxxxxxx1118', expiration_month=5, href=u'/cards/CC4fWSr1PpCAh6mlDzNfr0Gs', type=u'debit', id=u'CC4fWSr1PpCAh6mlDzNfr0Gs', category=u'other', is_verified=True, cvv_match=None, bank_name=u'WELLS FARGO BANK, N.A.', avs_street_match=None, brand=u'Visa', updated_at=u'2014-12-18T18:22:13.790909Z', fingerprint=u'7dc93d35b59078a1da8e0ebd2cbec65a6ca205760a1be1b90a143d7f2b00e355', can_debit=True, name=u'Johannes Bach', expiration_year=2020, cvv=None, avs_postal_match=None, avs_result=None, can_credit=True, meta={}, created_at=u'2014-12-18T18:22:13.790907Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) +Card(links={u'customer': None}, cvv_result=None, number=u'xxxxxxxxxxxx1118', expiration_month=5, href=u'/cards/CC4HDcgvzIltvwv6GSjBVbji', type=u'debit', id=u'CC4HDcgvzIltvwv6GSjBVbji', category=u'other', is_verified=True, cvv_match=None, bank_name=u'WELLS FARGO BANK, N.A.', avs_street_match=None, brand=u'Visa', updated_at=u'2015-01-09T03:23:58.549645Z', fingerprint=u'7dc93d35b59078a1da8e0ebd2cbec65a6ca205760a1be1b90a143d7f2b00e355', can_debit=True, name=u'Johannes Bach', expiration_year=2020, cvv=None, avs_postal_match=None, avs_result=None, can_credit=True, meta={}, created_at=u'2015-01-09T03:23:58.549644Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/card_create_dispute/executable.py b/scenarios/card_create_dispute/executable.py index ca098ec..068e3fd 100644 --- a/scenarios/card_create_dispute/executable.py +++ b/scenarios/card_create_dispute/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') card = balanced.Card( cvv='123', diff --git a/scenarios/card_create_dispute/python.mako b/scenarios/card_create_dispute/python.mako index a33a3ce..3b4099f 100644 --- a/scenarios/card_create_dispute/python.mako +++ b/scenarios/card_create_dispute/python.mako @@ -3,7 +3,7 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') card = balanced.Card( cvv='123', @@ -12,5 +12,5 @@ card = balanced.Card( expiration_year='3000' ).save() % elif mode == 'response': -Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx0002', expiration_month=12, href=u'/cards/CC4PUCBUQfNqecW8QDsjnOfz', type=u'debit', id=u'CC4PUCBUQfNqecW8QDsjnOfz', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF AMERICA', avs_street_match=None, brand=u'Discover', updated_at=u'2014-12-18T18:22:45.770279Z', fingerprint=u'3c667a62653e187f29b5781eeb0703f26e99558080de0c0f9490b5f9c4ac2871', can_debit=True, name=None, expiration_year=3000, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=True, meta={}, created_at=u'2014-12-18T18:22:45.770276Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) +Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx0002', expiration_month=12, href=u'/cards/CC5RRvpnZIg0PWdSphR8xxPa', type=u'debit', id=u'CC5RRvpnZIg0PWdSphR8xxPa', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF AMERICA', avs_street_match=None, brand=u'Discover', updated_at=u'2015-01-09T03:25:02.773172Z', fingerprint=u'3c667a62653e187f29b5781eeb0703f26e99558080de0c0f9490b5f9c4ac2871', can_debit=True, name=None, expiration_year=3000, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=True, meta={}, created_at=u'2015-01-09T03:25:02.773170Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/card_credit_order/executable.py b/scenarios/card_credit_order/executable.py index 1ff8030..ca620d5 100644 --- a/scenarios/card_credit_order/executable.py +++ b/scenarios/card_credit_order/executable.py @@ -1,9 +1,9 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -order = balanced.Order.fetch('/orders/OR2JfBYxYlDAF3L48u9DtIEU') -card = balanced.Card.fetch('/cards/CC4fWSr1PpCAh6mlDzNfr0Gs') +order = balanced.Order.fetch('/orders/OR3vURGwVtqDnnkRS9fgH41G') +card = balanced.Card.fetch('/cards/CC4HDcgvzIltvwv6GSjBVbji') order.credit_to( amount=5000, source=card, diff --git a/scenarios/card_credit_order/python.mako b/scenarios/card_credit_order/python.mako index 65d744e..5ee0022 100644 --- a/scenarios/card_credit_order/python.mako +++ b/scenarios/card_credit_order/python.mako @@ -4,14 +4,14 @@ balanced.Order().credit_to() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -order = balanced.Order.fetch('/orders/OR2JfBYxYlDAF3L48u9DtIEU') -card = balanced.Card.fetch('/cards/CC4fWSr1PpCAh6mlDzNfr0Gs') +order = balanced.Order.fetch('/orders/OR3vURGwVtqDnnkRS9fgH41G') +card = balanced.Card.fetch('/cards/CC4HDcgvzIltvwv6GSjBVbji') order.credit_to( amount=5000, source=card, ) % elif mode == 'response': -Credit(status=u'succeeded', description=u'Order #12341234', links={u'customer': u'CU2DRnwOXfbxBlKb5CUWwWJi', u'destination': u'CC4fWSr1PpCAh6mlDzNfr0Gs', u'order': u'OR2JfBYxYlDAF3L48u9DtIEU'}, amount=5000, created_at=u'2014-12-18T18:22:17.797221Z', updated_at=u'2014-12-18T18:22:18.204253Z', failure_reason=None, currency=u'USD', transaction_number=u'CRR6E-4XF-2GH9', href=u'/credits/CR4kroVx1o71Jz6177919e1y', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR4kroVx1o71Jz6177919e1y') +Credit(status=u'succeeded', description=u'Order #12341234', links={u'customer': u'CU3o1ZAd8Gtxz6ZTIFK9YmsM', u'destination': u'CC4HDcgvzIltvwv6GSjBVbji', u'order': u'OR3vURGwVtqDnnkRS9fgH41G'}, amount=5000, created_at=u'2015-01-09T03:24:02.493888Z', updated_at=u'2015-01-09T03:24:02.893852Z', failure_reason=None, currency=u'USD', transaction_number=u'CROCY-7EY-ZRI2', href=u'/credits/CR4M2HpYdKDcG8nh4d5HrKJL', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR4M2HpYdKDcG8nh4d5HrKJL') % endif \ No newline at end of file diff --git a/scenarios/card_debit/executable.py b/scenarios/card_debit/executable.py index dc73cba..7ee7acc 100644 --- a/scenarios/card_debit/executable.py +++ b/scenarios/card_debit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -card = balanced.Card.fetch('/cards/CC48j1De9eVYELLivrgDeCM8') +card = balanced.Card.fetch('/cards/CC4zyuNpxY0A0eAf87SeULCR') card.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/card_debit/python.mako b/scenarios/card_debit/python.mako index 8639a26..9dccea6 100644 --- a/scenarios/card_debit/python.mako +++ b/scenarios/card_debit/python.mako @@ -3,14 +3,14 @@ balanced.Card().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -card = balanced.Card.fetch('/cards/CC48j1De9eVYELLivrgDeCM8') +card = balanced.Card.fetch('/cards/CC4zyuNpxY0A0eAf87SeULCR') card.debit( appears_on_statement_as='Statement text', amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC48j1De9eVYELLivrgDeCM8', u'dispute': None, u'order': None, u'card_hold': u'HL4LRP1apzEYSWNEnnW4XMqc'}, amount=5000, created_at=u'2014-12-18T18:22:42.195559Z', updated_at=u'2014-12-18T18:22:42.878756Z', failure_reason=None, currency=u'USD', transaction_number=u'W8P3-G0O-CJGY', href=u'/debits/WD4LT3ghEgoGK9z4wUQCsKUU', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD4LT3ghEgoGK9z4wUQCsKUU') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC4zyuNpxY0A0eAf87SeULCR', u'dispute': None, u'order': None, u'card_hold': u'HL5NbQRZSxbr0o64QWu7szni'}, amount=5000, created_at=u'2015-01-09T03:24:58.643499Z', updated_at=u'2015-01-09T03:24:59.368094Z', failure_reason=None, currency=u'USD', transaction_number=u'WS4G-1FI-AT4Z', href=u'/debits/WD5Nd61WpdlRk6D39YVNFAEo', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD5Nd61WpdlRk6D39YVNFAEo') % endif \ No newline at end of file diff --git a/scenarios/card_debit_dispute/executable.py b/scenarios/card_debit_dispute/executable.py index 2a75cd7..eb7fee8 100644 --- a/scenarios/card_debit_dispute/executable.py +++ b/scenarios/card_debit_dispute/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -card = balanced.Card.fetch('/cards/CC4PUCBUQfNqecW8QDsjnOfz') +card = balanced.Card.fetch('/cards/CC5RRvpnZIg0PWdSphR8xxPa') card.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/card_debit_dispute/python.mako b/scenarios/card_debit_dispute/python.mako index 7567a51..a2c95d4 100644 --- a/scenarios/card_debit_dispute/python.mako +++ b/scenarios/card_debit_dispute/python.mako @@ -3,14 +3,14 @@ balanced.Card().debit() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -card = balanced.Card.fetch('/cards/CC4PUCBUQfNqecW8QDsjnOfz') +card = balanced.Card.fetch('/cards/CC5RRvpnZIg0PWdSphR8xxPa') card.debit( appears_on_statement_as='Statement text', amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC4PUCBUQfNqecW8QDsjnOfz', u'dispute': None, u'order': None, u'card_hold': u'HL4QCbGmW3oDABqXFLQI5yi9'}, amount=5000, created_at=u'2014-12-18T18:22:46.432674Z', updated_at=u'2014-12-18T18:22:47.274383Z', failure_reason=None, currency=u'USD', transaction_number=u'WQM2-IOR-S6S0', href=u'/debits/WD4QE0i532v0eWQ6mCWCASc5', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD4QE0i532v0eWQ6mCWCASc5') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC5RRvpnZIg0PWdSphR8xxPa', u'dispute': None, u'order': None, u'card_hold': u'HL5Svbmw6nDDP5HO2RblsBCJ'}, amount=5000, created_at=u'2015-01-09T03:25:03.383375Z', updated_at=u'2015-01-09T03:25:04.090381Z', failure_reason=None, currency=u'USD', transaction_number=u'WA4K-D44-O5DR', href=u'/debits/WD5SwXr9jcCfCmmjTH5MCMFD', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD5SwXr9jcCfCmmjTH5MCMFD') % endif \ No newline at end of file diff --git a/scenarios/card_delete/executable.py b/scenarios/card_delete/executable.py index 2a84a8e..4c1bb19 100644 --- a/scenarios/card_delete/executable.py +++ b/scenarios/card_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -card = balanced.Card.fetch('/cards/CC48j1De9eVYELLivrgDeCM8') +card = balanced.Card.fetch('/cards/CC4zyuNpxY0A0eAf87SeULCR') card.unstore() \ No newline at end of file diff --git a/scenarios/card_delete/python.mako b/scenarios/card_delete/python.mako index c6138d8..24f9f5e 100644 --- a/scenarios/card_delete/python.mako +++ b/scenarios/card_delete/python.mako @@ -3,9 +3,9 @@ balanced.Card().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -card = balanced.Card.fetch('/cards/CC48j1De9eVYELLivrgDeCM8') +card = balanced.Card.fetch('/cards/CC4zyuNpxY0A0eAf87SeULCR') card.unstore() % elif mode == 'response': diff --git a/scenarios/card_hold_capture/executable.py b/scenarios/card_hold_capture/executable.py index e7ae821..190b743 100644 --- a/scenarios/card_hold_capture/executable.py +++ b/scenarios/card_hold_capture/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -card_hold = balanced.CardHold.fetch('/card_holds/HL3QlUen3sZjc3dPbgK40F7G') +card_hold = balanced.CardHold.fetch('/card_holds/HL4iHX8OBNW7nVsu6MqyjnQ9') debit = card_hold.capture( appears_on_statement_as='ShowsUpOnStmt', description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_capture/python.mako b/scenarios/card_hold_capture/python.mako index d4183e2..22e5dd4 100644 --- a/scenarios/card_hold_capture/python.mako +++ b/scenarios/card_hold_capture/python.mako @@ -3,13 +3,13 @@ balanced.CardHold().capture() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -card_hold = balanced.CardHold.fetch('/card_holds/HL3QlUen3sZjc3dPbgK40F7G') +card_hold = balanced.CardHold.fetch('/card_holds/HL4iHX8OBNW7nVsu6MqyjnQ9') debit = card_hold.capture( appears_on_statement_as='ShowsUpOnStmt', description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC2IDFuWSoETEIxLBJ73fXgs', u'dispute': None, u'order': None, u'card_hold': u'HL3QlUen3sZjc3dPbgK40F7G'}, amount=5000, created_at=u'2014-12-18T18:22:00.112797Z', updated_at=u'2014-12-18T18:22:00.567201Z', failure_reason=None, currency=u'USD', transaction_number=u'WNAL-WT0-4MAN', href=u'/debits/WD40z3S2aPc8buLNd8kYg4hi', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, appears_on_statement_as=u'BAL*ShowsUpOnStmt', id=u'WD40z3S2aPc8buLNd8kYg4hi') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC3vhL91rWtwtHcOBl0ITshG', u'dispute': None, u'order': None, u'card_hold': u'HL4iHX8OBNW7nVsu6MqyjnQ9'}, amount=5000, created_at=u'2015-01-09T03:23:43.969240Z', updated_at=u'2015-01-09T03:23:44.454341Z', failure_reason=None, currency=u'USD', transaction_number=u'W456-5GN-9ECN', href=u'/debits/WD4relmrBWDQmtlKKKmKLi7z', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, appears_on_statement_as=u'BAL*ShowsUpOnStmt', id=u'WD4relmrBWDQmtlKKKmKLi7z') % endif \ No newline at end of file diff --git a/scenarios/card_hold_create/executable.py b/scenarios/card_hold_create/executable.py index 56a5958..a2b2fce 100644 --- a/scenarios/card_hold_create/executable.py +++ b/scenarios/card_hold_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -card = balanced.Card.fetch('/cards/CC2IDFuWSoETEIxLBJ73fXgs') +card = balanced.Card.fetch('/cards/CC3vhL91rWtwtHcOBl0ITshG') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_create/python.mako b/scenarios/card_hold_create/python.mako index 9ce1b1b..b48c2e4 100644 --- a/scenarios/card_hold_create/python.mako +++ b/scenarios/card_hold_create/python.mako @@ -3,13 +3,13 @@ balanced.Card().hold() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -card = balanced.Card.fetch('/cards/CC2IDFuWSoETEIxLBJ73fXgs') +card = balanced.Card.fetch('/cards/CC3vhL91rWtwtHcOBl0ITshG') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'order': None, u'card': u'CC2IDFuWSoETEIxLBJ73fXgs', u'debit': None}, amount=5000, created_at=u'2014-12-18T18:22:03.540762Z', updated_at=u'2014-12-18T18:22:03.888248Z', expires_at=u'2014-12-25T18:22:03.686049Z', failure_reason=None, currency=u'USD', transaction_number=u'HLPWM-ZXJ-40YT', href=u'/card_holds/HL44qbPoom3uVlTlEGBZV7z2', meta={}, failure_reason_code=None, voided_at=None, id=u'HL44qbPoom3uVlTlEGBZV7z2') +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'order': None, u'card': u'CC3vhL91rWtwtHcOBl0ITshG', u'debit': None}, amount=5000, created_at=u'2015-01-09T03:23:46.500278Z', updated_at=u'2015-01-09T03:23:46.803224Z', expires_at=u'2015-01-16T03:23:46.699907Z', failure_reason=None, currency=u'USD', transaction_number=u'HL07I-F9N-OVPO', href=u'/card_holds/HL4u4T2877PfgYwnbhD2XweV', meta={}, failure_reason_code=None, voided_at=None, id=u'HL4u4T2877PfgYwnbhD2XweV') % endif \ No newline at end of file diff --git a/scenarios/card_hold_list/executable.py b/scenarios/card_hold_list/executable.py index ba0a016..8fc7d17 100644 --- a/scenarios/card_hold_list/executable.py +++ b/scenarios/card_hold_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') card_holds = balanced.CardHold.query \ No newline at end of file diff --git a/scenarios/card_hold_list/python.mako b/scenarios/card_hold_list/python.mako index 2de7716..5dc8559 100644 --- a/scenarios/card_hold_list/python.mako +++ b/scenarios/card_hold_list/python.mako @@ -4,7 +4,7 @@ balanced.CardHold.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') card_holds = balanced.CardHold.query % elif mode == 'response': diff --git a/scenarios/card_hold_order/executable.py b/scenarios/card_hold_order/executable.py index 20aac3d..4218600 100644 --- a/scenarios/card_hold_order/executable.py +++ b/scenarios/card_hold_order/executable.py @@ -1,11 +1,11 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -order = balanced.Order.fetch('/orders/OR2JfBYxYlDAF3L48u9DtIEU') -card = balanced.Card.fetch('/cards/CC2IDFuWSoETEIxLBJ73fXgs') +order = balanced.Order.fetch('/orders/OR3vURGwVtqDnnkRS9fgH41G') +card = balanced.Card.fetch('/cards/CC3vhL91rWtwtHcOBl0ITshG') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard', - order='/orders/OR2JfBYxYlDAF3L48u9DtIEU' + order='/orders/OR3vURGwVtqDnnkRS9fgH41G' ) \ No newline at end of file diff --git a/scenarios/card_hold_order/python.mako b/scenarios/card_hold_order/python.mako index 800910d..fbb6bc7 100644 --- a/scenarios/card_hold_order/python.mako +++ b/scenarios/card_hold_order/python.mako @@ -3,15 +3,15 @@ balanced.Card().hold() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -order = balanced.Order.fetch('/orders/OR2JfBYxYlDAF3L48u9DtIEU') -card = balanced.Card.fetch('/cards/CC2IDFuWSoETEIxLBJ73fXgs') +order = balanced.Order.fetch('/orders/OR3vURGwVtqDnnkRS9fgH41G') +card = balanced.Card.fetch('/cards/CC3vhL91rWtwtHcOBl0ITshG') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard', - order='/orders/OR2JfBYxYlDAF3L48u9DtIEU' + order='/orders/OR3vURGwVtqDnnkRS9fgH41G' ) % elif mode == 'response': -CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'order': u'OR2JfBYxYlDAF3L48u9DtIEU', u'card': u'CC2IDFuWSoETEIxLBJ73fXgs', u'debit': None}, amount=5000, created_at=u'2014-12-18T18:21:48.126971Z', updated_at=u'2014-12-18T18:21:48.423243Z', expires_at=u'2014-12-25T18:21:48.337520Z', failure_reason=None, currency=u'USD', transaction_number=u'HLPGD-NVZ-MUDC', href=u'/card_holds/HL3N5iKVsnaRMt2H4LXOBACF', meta={}, failure_reason_code=None, voided_at=None, id=u'HL3N5iKVsnaRMt2H4LXOBACF') +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'order': u'OR3vURGwVtqDnnkRS9fgH41G', u'card': u'CC3vhL91rWtwtHcOBl0ITshG', u'debit': None}, amount=5000, created_at=u'2015-01-09T03:23:34.413652Z', updated_at=u'2015-01-09T03:23:34.713108Z', expires_at=u'2015-01-16T03:23:34.647009Z', failure_reason=None, currency=u'USD', transaction_number=u'HLVKB-4MF-JL5N', href=u'/card_holds/HL4gu3SX4Z5LEPYtYhg6HOOp', meta={}, failure_reason_code=None, voided_at=None, id=u'HL4gu3SX4Z5LEPYtYhg6HOOp') % endif \ No newline at end of file diff --git a/scenarios/card_hold_show/executable.py b/scenarios/card_hold_show/executable.py index ab3e4e0..9f58fcd 100644 --- a/scenarios/card_hold_show/executable.py +++ b/scenarios/card_hold_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -card_hold = balanced.CardHold.fetch('/card_holds/HL3QlUen3sZjc3dPbgK40F7G') \ No newline at end of file +card_hold = balanced.CardHold.fetch('/card_holds/HL4iHX8OBNW7nVsu6MqyjnQ9') \ No newline at end of file diff --git a/scenarios/card_hold_show/python.mako b/scenarios/card_hold_show/python.mako index b8be62d..0f45e0c 100644 --- a/scenarios/card_hold_show/python.mako +++ b/scenarios/card_hold_show/python.mako @@ -4,9 +4,9 @@ balanced.CardHold.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -card_hold = balanced.CardHold.fetch('/card_holds/HL3QlUen3sZjc3dPbgK40F7G') +card_hold = balanced.CardHold.fetch('/card_holds/HL4iHX8OBNW7nVsu6MqyjnQ9') % elif mode == 'response': -CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'order': None, u'card': u'CC2IDFuWSoETEIxLBJ73fXgs', u'debit': None}, amount=5000, created_at=u'2014-12-18T18:21:51.031249Z', updated_at=u'2014-12-18T18:21:51.273554Z', expires_at=u'2014-12-25T18:21:51.188658Z', failure_reason=None, currency=u'USD', transaction_number=u'HLJUR-14S-IVEC', href=u'/card_holds/HL3QlUen3sZjc3dPbgK40F7G', meta={}, failure_reason_code=None, voided_at=None, id=u'HL3QlUen3sZjc3dPbgK40F7G') +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'order': None, u'card': u'CC3vhL91rWtwtHcOBl0ITshG', u'debit': None}, amount=5000, created_at=u'2015-01-09T03:23:36.391121Z', updated_at=u'2015-01-09T03:23:36.674542Z', expires_at=u'2015-01-16T03:23:36.585031Z', failure_reason=None, currency=u'USD', transaction_number=u'HLI6T-T0A-HGZI', href=u'/card_holds/HL4iHX8OBNW7nVsu6MqyjnQ9', meta={}, failure_reason_code=None, voided_at=None, id=u'HL4iHX8OBNW7nVsu6MqyjnQ9') % endif \ No newline at end of file diff --git a/scenarios/card_hold_update/executable.py b/scenarios/card_hold_update/executable.py index 2899b04..3979709 100644 --- a/scenarios/card_hold_update/executable.py +++ b/scenarios/card_hold_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -card_hold = balanced.CardHold.fetch('/card_holds/HL3QlUen3sZjc3dPbgK40F7G') +card_hold = balanced.CardHold.fetch('/card_holds/HL4iHX8OBNW7nVsu6MqyjnQ9') card_hold.description = 'update this description' card_hold.meta = { 'holding.for': 'user1', diff --git a/scenarios/card_hold_update/python.mako b/scenarios/card_hold_update/python.mako index 3f2c946..eb74e48 100644 --- a/scenarios/card_hold_update/python.mako +++ b/scenarios/card_hold_update/python.mako @@ -3,9 +3,9 @@ balanced.CardHold().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -card_hold = balanced.CardHold.fetch('/card_holds/HL3QlUen3sZjc3dPbgK40F7G') +card_hold = balanced.CardHold.fetch('/card_holds/HL4iHX8OBNW7nVsu6MqyjnQ9') card_hold.description = 'update this description' card_hold.meta = { 'holding.for': 'user1', @@ -13,5 +13,5 @@ card_hold.meta = { } card_hold.save() % elif mode == 'response': -CardHold(status=u'succeeded', description=u'update this description', links={u'order': None, u'card': u'CC2IDFuWSoETEIxLBJ73fXgs', u'debit': None}, amount=5000, created_at=u'2014-12-18T18:21:51.031249Z', updated_at=u'2014-12-18T18:21:57.707589Z', expires_at=u'2014-12-25T18:21:51.188658Z', failure_reason=None, currency=u'USD', transaction_number=u'HLJUR-14S-IVEC', href=u'/card_holds/HL3QlUen3sZjc3dPbgK40F7G', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, voided_at=None, id=u'HL3QlUen3sZjc3dPbgK40F7G') +CardHold(status=u'succeeded', description=u'update this description', links={u'order': None, u'card': u'CC3vhL91rWtwtHcOBl0ITshG', u'debit': None}, amount=5000, created_at=u'2015-01-09T03:23:36.391121Z', updated_at=u'2015-01-09T03:23:42.106452Z', expires_at=u'2015-01-16T03:23:36.585031Z', failure_reason=None, currency=u'USD', transaction_number=u'HLI6T-T0A-HGZI', href=u'/card_holds/HL4iHX8OBNW7nVsu6MqyjnQ9', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, voided_at=None, id=u'HL4iHX8OBNW7nVsu6MqyjnQ9') % endif \ No newline at end of file diff --git a/scenarios/card_hold_void/executable.py b/scenarios/card_hold_void/executable.py index b9d1194..6e1f701 100644 --- a/scenarios/card_hold_void/executable.py +++ b/scenarios/card_hold_void/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -card_hold = balanced.CardHold.fetch('/card_holds/HL44qbPoom3uVlTlEGBZV7z2') +card_hold = balanced.CardHold.fetch('/card_holds/HL4u4T2877PfgYwnbhD2XweV') card_hold.cancel() \ No newline at end of file diff --git a/scenarios/card_hold_void/python.mako b/scenarios/card_hold_void/python.mako index 4406178..7a730b3 100644 --- a/scenarios/card_hold_void/python.mako +++ b/scenarios/card_hold_void/python.mako @@ -3,10 +3,10 @@ balanced.CardHold().cancel() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -card_hold = balanced.CardHold.fetch('/card_holds/HL44qbPoom3uVlTlEGBZV7z2') +card_hold = balanced.CardHold.fetch('/card_holds/HL4u4T2877PfgYwnbhD2XweV') card_hold.cancel() % elif mode == 'response': -CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'order': None, u'card': u'CC2IDFuWSoETEIxLBJ73fXgs', u'debit': None}, amount=5000, created_at=u'2014-12-18T18:22:03.540762Z', updated_at=u'2014-12-18T18:22:04.740464Z', expires_at=u'2014-12-25T18:22:03.686049Z', failure_reason=None, currency=u'USD', transaction_number=u'HLPWM-ZXJ-40YT', href=u'/card_holds/HL44qbPoom3uVlTlEGBZV7z2', meta={}, failure_reason_code=None, voided_at=u'2014-12-18T18:22:04.430089Z', id=u'HL44qbPoom3uVlTlEGBZV7z2') +CardHold(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'order': None, u'card': u'CC3vhL91rWtwtHcOBl0ITshG', u'debit': None}, amount=5000, created_at=u'2015-01-09T03:23:46.500278Z', updated_at=u'2015-01-09T03:23:47.578727Z', expires_at=u'2015-01-16T03:23:46.699907Z', failure_reason=None, currency=u'USD', transaction_number=u'HL07I-F9N-OVPO', href=u'/card_holds/HL4u4T2877PfgYwnbhD2XweV', meta={}, failure_reason_code=None, voided_at=u'2015-01-09T03:23:47.257558Z', id=u'HL4u4T2877PfgYwnbhD2XweV') % endif \ No newline at end of file diff --git a/scenarios/card_list/executable.py b/scenarios/card_list/executable.py index 9bf5acd..abc2c37 100644 --- a/scenarios/card_list/executable.py +++ b/scenarios/card_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') cards = balanced.Card.query \ No newline at end of file diff --git a/scenarios/card_list/python.mako b/scenarios/card_list/python.mako index e6556a2..a0411a3 100644 --- a/scenarios/card_list/python.mako +++ b/scenarios/card_list/python.mako @@ -4,7 +4,7 @@ balanced.Card.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') cards = balanced.Card.query % elif mode == 'response': diff --git a/scenarios/card_show/executable.py b/scenarios/card_show/executable.py index e8215b5..5e6f1cc 100644 --- a/scenarios/card_show/executable.py +++ b/scenarios/card_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -card = balanced.Card.fetch('/cards/CC48j1De9eVYELLivrgDeCM8') \ No newline at end of file +card = balanced.Card.fetch('/cards/CC4zyuNpxY0A0eAf87SeULCR') \ No newline at end of file diff --git a/scenarios/card_show/python.mako b/scenarios/card_show/python.mako index 1ca5346..24fede7 100644 --- a/scenarios/card_show/python.mako +++ b/scenarios/card_show/python.mako @@ -3,9 +3,9 @@ balanced.Card.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -card = balanced.Card.fetch('/cards/CC48j1De9eVYELLivrgDeCM8') +card = balanced.Card.fetch('/cards/CC4zyuNpxY0A0eAf87SeULCR') % elif mode == 'response': -Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC48j1De9eVYELLivrgDeCM8', type=u'credit', id=u'CC48j1De9eVYELLivrgDeCM8', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2014-12-18T18:22:06.996162Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={}, created_at=u'2014-12-18T18:22:06.996160Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) +Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC4zyuNpxY0A0eAf87SeULCR', type=u'credit', id=u'CC4zyuNpxY0A0eAf87SeULCR', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2015-01-09T03:23:51.373359Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={}, created_at=u'2015-01-09T03:23:51.373358Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/card_update/executable.py b/scenarios/card_update/executable.py index 2d4eda3..be60c95 100644 --- a/scenarios/card_update/executable.py +++ b/scenarios/card_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -card = balanced.Card.fetch('/cards/CC48j1De9eVYELLivrgDeCM8') +card = balanced.Card.fetch('/cards/CC4zyuNpxY0A0eAf87SeULCR') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/card_update/python.mako b/scenarios/card_update/python.mako index a155d3a..bbd6122 100644 --- a/scenarios/card_update/python.mako +++ b/scenarios/card_update/python.mako @@ -3,9 +3,9 @@ balanced.Card().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -card = balanced.Card.fetch('/cards/CC48j1De9eVYELLivrgDeCM8') +card = balanced.Card.fetch('/cards/CC4zyuNpxY0A0eAf87SeULCR') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', @@ -13,5 +13,5 @@ card.meta = { } card.save() % elif mode == 'response': -Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC48j1De9eVYELLivrgDeCM8', type=u'credit', id=u'CC48j1De9eVYELLivrgDeCM8', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2014-12-18T18:22:11.106493Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, created_at=u'2014-12-18T18:22:06.996160Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) +Card(links={u'customer': None}, cvv_result=u'Match', number=u'xxxxxxxxxxxx5100', expiration_month=12, href=u'/cards/CC4zyuNpxY0A0eAf87SeULCR', type=u'credit', id=u'CC4zyuNpxY0A0eAf87SeULCR', category=u'other', is_verified=True, cvv_match=u'yes', bank_name=u'BANK OF HAWAII', avs_street_match=None, brand=u'MasterCard', updated_at=u'2015-01-09T03:23:56.070888Z', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', can_debit=True, name=None, expiration_year=2020, cvv=u'xxx', avs_postal_match=None, avs_result=None, can_credit=False, meta={u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, created_at=u'2015-01-09T03:23:51.373358Z', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}) % endif \ No newline at end of file diff --git a/scenarios/credit_list/executable.py b/scenarios/credit_list/executable.py index 5e54a05..673ce94 100644 --- a/scenarios/credit_list/executable.py +++ b/scenarios/credit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') credits = balanced.Credit.query \ No newline at end of file diff --git a/scenarios/credit_list/python.mako b/scenarios/credit_list/python.mako index 6eb0b32..c58eafd 100644 --- a/scenarios/credit_list/python.mako +++ b/scenarios/credit_list/python.mako @@ -4,7 +4,7 @@ balanced.Credit.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') credits = balanced.Credit.query % elif mode == 'response': diff --git a/scenarios/credit_list_bank_account/executable.py b/scenarios/credit_list_bank_account/executable.py index 48d1a68..e57530c 100644 --- a/scenarios/credit_list_bank_account/executable.py +++ b/scenarios/credit_list_bank_account/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3uzbngfVXy1SGg25Et7iKY') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA45anEaEr8g0lOhzhcE9VAN') credits = bank_account.credits \ No newline at end of file diff --git a/scenarios/credit_list_bank_account/python.mako b/scenarios/credit_list_bank_account/python.mako index 799ef47..df7dafa 100644 --- a/scenarios/credit_list_bank_account/python.mako +++ b/scenarios/credit_list_bank_account/python.mako @@ -3,9 +3,9 @@ balanced.BankAccount.credits() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3uzbngfVXy1SGg25Et7iKY') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA45anEaEr8g0lOhzhcE9VAN') credits = bank_account.credits % elif mode == 'response': diff --git a/scenarios/credit_order/executable.py b/scenarios/credit_order/executable.py index d0149c5..eb07a69 100644 --- a/scenarios/credit_order/executable.py +++ b/scenarios/credit_order/executable.py @@ -1,9 +1,9 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -order = balanced.Order.fetch('/orders/OR2JfBYxYlDAF3L48u9DtIEU') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3uzbngfVXy1SGg25Et7iKY/credits') +order = balanced.Order.fetch('/orders/OR3vURGwVtqDnnkRS9fgH41G') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA45anEaEr8g0lOhzhcE9VAN/credits') order.credit_to( amount=5000, destination=bank_account diff --git a/scenarios/credit_order/python.mako b/scenarios/credit_order/python.mako index a379ca7..bf5dc4c 100644 --- a/scenarios/credit_order/python.mako +++ b/scenarios/credit_order/python.mako @@ -3,10 +3,10 @@ balanced.Order().credit_to() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -order = balanced.Order.fetch('/orders/OR2JfBYxYlDAF3L48u9DtIEU') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3uzbngfVXy1SGg25Et7iKY/credits') +order = balanced.Order.fetch('/orders/OR3vURGwVtqDnnkRS9fgH41G') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA45anEaEr8g0lOhzhcE9VAN/credits') order.credit_to( amount=5000, destination=bank_account diff --git a/scenarios/credit_show/executable.py b/scenarios/credit_show/executable.py index a08bf70..0a7f6af 100644 --- a/scenarios/credit_show/executable.py +++ b/scenarios/credit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -credit = balanced.Credit.fetch('/credits/CR4ooRjxfFr0h6ubhNyETByJ') \ No newline at end of file +credit = balanced.Credit.fetch('/credits/CR4RdgCoOqYhr4sjPdcDjf3T') \ No newline at end of file diff --git a/scenarios/credit_show/python.mako b/scenarios/credit_show/python.mako index fcaa1de..e3ee829 100644 --- a/scenarios/credit_show/python.mako +++ b/scenarios/credit_show/python.mako @@ -4,9 +4,9 @@ balanced.Credit.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -credit = balanced.Credit.fetch('/credits/CR4ooRjxfFr0h6ubhNyETByJ') +credit = balanced.Credit.fetch('/credits/CR4RdgCoOqYhr4sjPdcDjf3T') % elif mode == 'response': -Credit(status=u'pending', description=None, links={u'customer': u'CU2DRnwOXfbxBlKb5CUWwWJi', u'destination': u'BA3uzbngfVXy1SGg25Et7iKY', u'order': None}, amount=5000, created_at=u'2014-12-18T18:22:21.314604Z', updated_at=u'2014-12-18T18:22:21.629175Z', failure_reason=None, currency=u'USD', transaction_number=u'CRGZQ-ZHQ-EZOK', href=u'/credits/CR4ooRjxfFr0h6ubhNyETByJ', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR4ooRjxfFr0h6ubhNyETByJ') +Credit(status=u'pending', description=None, links={u'customer': u'CU3o1ZAd8Gtxz6ZTIFK9YmsM', u'destination': u'BA45anEaEr8g0lOhzhcE9VAN', u'order': None}, amount=5000, created_at=u'2015-01-09T03:24:07.078171Z', updated_at=u'2015-01-09T03:24:07.425391Z', failure_reason=None, currency=u'USD', transaction_number=u'CRGY7-P5M-OXHO', href=u'/credits/CR4RdgCoOqYhr4sjPdcDjf3T', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR4RdgCoOqYhr4sjPdcDjf3T') % endif \ No newline at end of file diff --git a/scenarios/credit_update/executable.py b/scenarios/credit_update/executable.py index d61697b..b51240c 100644 --- a/scenarios/credit_update/executable.py +++ b/scenarios/credit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -credit = balanced.Credit.fetch('/credits/CR4ooRjxfFr0h6ubhNyETByJ') +credit = balanced.Credit.fetch('/credits/CR4RdgCoOqYhr4sjPdcDjf3T') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/credit_update/python.mako b/scenarios/credit_update/python.mako index 86f5465..465064c 100644 --- a/scenarios/credit_update/python.mako +++ b/scenarios/credit_update/python.mako @@ -3,9 +3,9 @@ balanced.Credit().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -credit = balanced.Credit.fetch('/credits/CR4ooRjxfFr0h6ubhNyETByJ') +credit = balanced.Credit.fetch('/credits/CR4RdgCoOqYhr4sjPdcDjf3T') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', @@ -13,5 +13,5 @@ credit.meta = { } credit.save() % elif mode == 'response': -Credit(status=u'pending', description=u'New description for credit', links={u'customer': u'CU2DRnwOXfbxBlKb5CUWwWJi', u'destination': u'BA3uzbngfVXy1SGg25Et7iKY', u'order': None}, amount=5000, created_at=u'2014-12-18T18:22:21.314604Z', updated_at=u'2014-12-18T18:22:26.624161Z', failure_reason=None, currency=u'USD', transaction_number=u'CRGZQ-ZHQ-EZOK', href=u'/credits/CR4ooRjxfFr0h6ubhNyETByJ', meta={u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR4ooRjxfFr0h6ubhNyETByJ') +Credit(status=u'pending', description=u'New description for credit', links={u'customer': u'CU3o1ZAd8Gtxz6ZTIFK9YmsM', u'destination': u'BA45anEaEr8g0lOhzhcE9VAN', u'order': None}, amount=5000, created_at=u'2015-01-09T03:24:07.078171Z', updated_at=u'2015-01-09T03:24:15.880088Z', failure_reason=None, currency=u'USD', transaction_number=u'CRGY7-P5M-OXHO', href=u'/credits/CR4RdgCoOqYhr4sjPdcDjf3T', meta={u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR4RdgCoOqYhr4sjPdcDjf3T') % endif \ No newline at end of file diff --git a/scenarios/customer_create/executable.py b/scenarios/customer_create/executable.py index b393f53..d67d79e 100644 --- a/scenarios/customer_create/executable.py +++ b/scenarios/customer_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') customer = balanced.Customer( dob_year=1963, diff --git a/scenarios/customer_create/python.mako b/scenarios/customer_create/python.mako index 3052897..55ac777 100644 --- a/scenarios/customer_create/python.mako +++ b/scenarios/customer_create/python.mako @@ -3,7 +3,7 @@ balanced.Customer().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') customer = balanced.Customer( dob_year=1963, @@ -14,5 +14,5 @@ customer = balanced.Customer( } ).save() % elif mode == 'response': -Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-12-18T18:22:34.272892Z', dob_month=7, updated_at=u'2014-12-18T18:22:34.461736Z', phone=None, href=u'/customers/CU4CZc7Xjn8gGJXl1LyzZk7S', meta={}, dob_year=1963, email=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU4CZc7Xjn8gGJXl1LyzZk7S', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) +Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2015-01-09T03:24:47.364051Z', dob_month=7, updated_at=u'2015-01-09T03:24:47.598887Z', phone=None, href=u'/customers/CU5AxbQrjAcjsbquafnvwaas', meta={}, dob_year=1963, email=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU5AxbQrjAcjsbquafnvwaas', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) % endif \ No newline at end of file diff --git a/scenarios/customer_delete/executable.py b/scenarios/customer_delete/executable.py index 0058dea..0418f8b 100644 --- a/scenarios/customer_delete/executable.py +++ b/scenarios/customer_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -customer = balanced.Customer.fetch('/customers/CU4CZc7Xjn8gGJXl1LyzZk7S') +customer = balanced.Customer.fetch('/customers/CU5AxbQrjAcjsbquafnvwaas') customer.unstore() \ No newline at end of file diff --git a/scenarios/customer_delete/python.mako b/scenarios/customer_delete/python.mako index 03c7030..05dde83 100644 --- a/scenarios/customer_delete/python.mako +++ b/scenarios/customer_delete/python.mako @@ -3,9 +3,9 @@ balanced.Customer().unstore() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -customer = balanced.Customer.fetch('/customers/CU4CZc7Xjn8gGJXl1LyzZk7S') +customer = balanced.Customer.fetch('/customers/CU5AxbQrjAcjsbquafnvwaas') customer.unstore() % elif mode == 'response': diff --git a/scenarios/customer_list/executable.py b/scenarios/customer_list/executable.py index 72be53c..d347509 100644 --- a/scenarios/customer_list/executable.py +++ b/scenarios/customer_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') customers = balanced.Customer.query \ No newline at end of file diff --git a/scenarios/customer_list/python.mako b/scenarios/customer_list/python.mako index 4493545..70572e1 100644 --- a/scenarios/customer_list/python.mako +++ b/scenarios/customer_list/python.mako @@ -4,7 +4,7 @@ balanced.Customer.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') customers = balanced.Customer.query % elif mode == 'response': diff --git a/scenarios/customer_show/executable.py b/scenarios/customer_show/executable.py index bbe37c3..caa72fe 100644 --- a/scenarios/customer_show/executable.py +++ b/scenarios/customer_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -customer = balanced.Customer.fetch('/customers/CU4wBFaFMi043nnBgRNrgTXa') \ No newline at end of file +customer = balanced.Customer.fetch('/customers/CU5aACCvYYfV6mcWJL4TEcK1') \ No newline at end of file diff --git a/scenarios/customer_show/python.mako b/scenarios/customer_show/python.mako index b3599bc..d37dd56 100644 --- a/scenarios/customer_show/python.mako +++ b/scenarios/customer_show/python.mako @@ -4,9 +4,9 @@ balanced.Customer.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -customer = balanced.Customer.fetch('/customers/CU4wBFaFMi043nnBgRNrgTXa') +customer = balanced.Customer.fetch('/customers/CU5aACCvYYfV6mcWJL4TEcK1') % elif mode == 'response': -Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-12-18T18:22:28.601538Z', dob_month=7, updated_at=u'2014-12-18T18:22:28.847829Z', phone=None, href=u'/customers/CU4wBFaFMi043nnBgRNrgTXa', meta={}, dob_year=1963, email=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU4wBFaFMi043nnBgRNrgTXa', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) +Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2015-01-09T03:24:24.298841Z', dob_month=7, updated_at=u'2015-01-09T03:24:24.504781Z', phone=None, href=u'/customers/CU5aACCvYYfV6mcWJL4TEcK1', meta={}, dob_year=1963, email=None, address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU5aACCvYYfV6mcWJL4TEcK1', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) % endif \ No newline at end of file diff --git a/scenarios/customer_update/executable.py b/scenarios/customer_update/executable.py index 819477a..118e5af 100644 --- a/scenarios/customer_update/executable.py +++ b/scenarios/customer_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -customer = balanced.Debit.fetch('/customers/CU4wBFaFMi043nnBgRNrgTXa') +customer = balanced.Debit.fetch('/customers/CU5aACCvYYfV6mcWJL4TEcK1') customer.email = 'email@newdomain.com' customer.meta = { 'shipping-preference': 'ground' diff --git a/scenarios/customer_update/python.mako b/scenarios/customer_update/python.mako index 9587ef6..9739721 100644 --- a/scenarios/customer_update/python.mako +++ b/scenarios/customer_update/python.mako @@ -3,14 +3,14 @@ balanced.Customer().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -customer = balanced.Debit.fetch('/customers/CU4wBFaFMi043nnBgRNrgTXa') +customer = balanced.Debit.fetch('/customers/CU5aACCvYYfV6mcWJL4TEcK1') customer.email = 'email@newdomain.com' customer.meta = { 'shipping-preference': 'ground' } customer.save() % elif mode == 'response': -Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-12-18T18:22:28.601538Z', dob_month=7, updated_at=u'2014-12-18T18:22:32.685501Z', phone=None, href=u'/customers/CU4wBFaFMi043nnBgRNrgTXa', meta={u'shipping-preference': u'ground'}, dob_year=1963, email=u'email@newdomain.com', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU4wBFaFMi043nnBgRNrgTXa', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) +Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2015-01-09T03:24:24.298841Z', dob_month=7, updated_at=u'2015-01-09T03:24:42.621096Z', phone=None, href=u'/customers/CU5aACCvYYfV6mcWJL4TEcK1', meta={u'shipping-preference': u'ground'}, dob_year=1963, email=u'email@newdomain.com', address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, id=u'CU5aACCvYYfV6mcWJL4TEcK1', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) % endif \ No newline at end of file diff --git a/scenarios/debit_dispute_show/executable.py b/scenarios/debit_dispute_show/executable.py index 3b0d18c..5a01719 100644 --- a/scenarios/debit_dispute_show/executable.py +++ b/scenarios/debit_dispute_show/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -debit = balanced.Debit.fetch('/debits/WD4QE0i532v0eWQ6mCWCASc5') +debit = balanced.Debit.fetch('/debits/WD5SwXr9jcCfCmmjTH5MCMFD') dispute = debit.dispute \ No newline at end of file diff --git a/scenarios/debit_dispute_show/python.mako b/scenarios/debit_dispute_show/python.mako index 4c06578..6be7f8f 100644 --- a/scenarios/debit_dispute_show/python.mako +++ b/scenarios/debit_dispute_show/python.mako @@ -4,10 +4,10 @@ balanced.Debit().dispute % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -debit = balanced.Debit.fetch('/debits/WD4QE0i532v0eWQ6mCWCASc5') +debit = balanced.Debit.fetch('/debits/WD5SwXr9jcCfCmmjTH5MCMFD') dispute = debit.dispute % elif mode == 'response': -Dispute(status=u'pending', links={u'transaction': u'WD4QE0i532v0eWQ6mCWCASc5'}, respond_by=u'2015-01-17T18:21:02.819478Z', amount=5000, created_at=u'2014-12-18T18:22:52.051775Z', updated_at=u'2014-12-18T18:22:52.051777Z', initiated_at=u'2014-12-18T18:21:02.819475Z', currency=u'USD', reason=u'fraud', href=u'/disputes/DT4WXjGGzPSsqYuPfWaKHDsf', meta={}, id=u'DT4WXjGGzPSsqYuPfWaKHDsf') +Dispute(status=u'pending', links={u'transaction': u'WD5SwXr9jcCfCmmjTH5MCMFD'}, respond_by=u'2015-02-08T03:22:35.440841Z', amount=5000, created_at=u'2015-01-09T03:25:14.170586Z', updated_at=u'2015-01-09T03:25:14.170588Z', initiated_at=u'2015-01-09T03:22:35.440838Z', currency=u'USD', reason=u'fraud', href=u'/disputes/DT64FIXm5agnVqfCMHZVe8dR', meta={}, id=u'DT64FIXm5agnVqfCMHZVe8dR') % endif \ No newline at end of file diff --git a/scenarios/debit_list/executable.py b/scenarios/debit_list/executable.py index eb48667..e2c9191 100644 --- a/scenarios/debit_list/executable.py +++ b/scenarios/debit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') debits = balanced.Debit.query \ No newline at end of file diff --git a/scenarios/debit_list/python.mako b/scenarios/debit_list/python.mako index 91afc9d..f62fb57 100644 --- a/scenarios/debit_list/python.mako +++ b/scenarios/debit_list/python.mako @@ -4,7 +4,7 @@ balanced.Debit.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') debits = balanced.Debit.query % elif mode == 'response': diff --git a/scenarios/debit_order/executable.py b/scenarios/debit_order/executable.py index 8edcf3e..7f34819 100644 --- a/scenarios/debit_order/executable.py +++ b/scenarios/debit_order/executable.py @@ -1,9 +1,9 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -order = balanced.Order.fetch('/orders/OR2JfBYxYlDAF3L48u9DtIEU') -card = balanced.Card.fetch('/cards/CC48j1De9eVYELLivrgDeCM8') +order = balanced.Order.fetch('/orders/OR3vURGwVtqDnnkRS9fgH41G') +card = balanced.Card.fetch('/cards/CC4zyuNpxY0A0eAf87SeULCR') order.debit_from( amount=5000, source=card, diff --git a/scenarios/debit_order/python.mako b/scenarios/debit_order/python.mako index 712e29d..90b478a 100644 --- a/scenarios/debit_order/python.mako +++ b/scenarios/debit_order/python.mako @@ -4,14 +4,14 @@ balanced.Order().debit_from() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -order = balanced.Order.fetch('/orders/OR2JfBYxYlDAF3L48u9DtIEU') -card = balanced.Card.fetch('/cards/CC48j1De9eVYELLivrgDeCM8') +order = balanced.Order.fetch('/orders/OR3vURGwVtqDnnkRS9fgH41G') +card = balanced.Card.fetch('/cards/CC4zyuNpxY0A0eAf87SeULCR') order.debit_from( amount=5000, source=card, ) % elif mode == 'response': -Debit(status=u'succeeded', description=u'Order #12341234', links={u'customer': None, u'source': u'CC48j1De9eVYELLivrgDeCM8', u'dispute': None, u'order': u'OR2JfBYxYlDAF3L48u9DtIEU', u'card_hold': u'HL4icG3nKxolIaqbhvFrBFgp'}, amount=5000, created_at=u'2014-12-18T18:22:15.820449Z', updated_at=u'2014-12-18T18:22:16.471734Z', failure_reason=None, currency=u'USD', transaction_number=u'WEX2-E7W-CK3J', href=u'/debits/WD4idxjgcIMm3rMMzopJjK3X', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*example.com', id=u'WD4idxjgcIMm3rMMzopJjK3X') +Debit(status=u'succeeded', description=u'Order #12341234', links={u'customer': None, u'source': u'CC4zyuNpxY0A0eAf87SeULCR', u'dispute': None, u'order': u'OR3vURGwVtqDnnkRS9fgH41G', u'card_hold': u'HL4JLr6FnToEyeoEdOCOTpC5'}, amount=5000, created_at=u'2015-01-09T03:24:00.472796Z', updated_at=u'2015-01-09T03:24:01.120118Z', failure_reason=None, currency=u'USD', transaction_number=u'W2W2-G3K-YCMU', href=u'/debits/WD4JMhEQTuXpqzpBvpgDo633', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*example.com', id=u'WD4JMhEQTuXpqzpBvpgDo633') % endif \ No newline at end of file diff --git a/scenarios/debit_show/executable.py b/scenarios/debit_show/executable.py index 129cddd..213731c 100644 --- a/scenarios/debit_show/executable.py +++ b/scenarios/debit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -debit = balanced.Debit.fetch('/debits/WD4FfxxWRRcrlCsGEPti58RT') \ No newline at end of file +debit = balanced.Debit.fetch('/debits/WD5EW7vbyXlTsudIGF5AkrEA') \ No newline at end of file diff --git a/scenarios/debit_show/python.mako b/scenarios/debit_show/python.mako index 75d71aa..0c27f46 100644 --- a/scenarios/debit_show/python.mako +++ b/scenarios/debit_show/python.mako @@ -4,9 +4,9 @@ balanced.Debit.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -debit = balanced.Debit.fetch('/debits/WD4FfxxWRRcrlCsGEPti58RT') +debit = balanced.Debit.fetch('/debits/WD5EW7vbyXlTsudIGF5AkrEA') % elif mode == 'response': -Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC48j1De9eVYELLivrgDeCM8', u'dispute': None, u'order': None, u'card_hold': u'HL4FeDF5SNigtHsO8xNowrGd'}, amount=5000, created_at=u'2014-12-18T18:22:36.294585Z', updated_at=u'2014-12-18T18:22:36.982061Z', failure_reason=None, currency=u'USD', transaction_number=u'W6BJ-PUQ-8JDC', href=u'/debits/WD4FfxxWRRcrlCsGEPti58RT', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD4FfxxWRRcrlCsGEPti58RT') +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC4zyuNpxY0A0eAf87SeULCR', u'dispute': None, u'order': None, u'card_hold': u'HL5EUR5M3MniPMPUQM0hDdeg'}, amount=5000, created_at=u'2015-01-09T03:24:51.290112Z', updated_at=u'2015-01-09T03:24:52.004949Z', failure_reason=None, currency=u'USD', transaction_number=u'WMBW-XBR-0C9N', href=u'/debits/WD5EW7vbyXlTsudIGF5AkrEA', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD5EW7vbyXlTsudIGF5AkrEA') % endif \ No newline at end of file diff --git a/scenarios/debit_update/executable.py b/scenarios/debit_update/executable.py index 8122970..685698a 100644 --- a/scenarios/debit_update/executable.py +++ b/scenarios/debit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -debit = balanced.Debit.fetch('/debits/WD4FfxxWRRcrlCsGEPti58RT') +debit = balanced.Debit.fetch('/debits/WD5EW7vbyXlTsudIGF5AkrEA') debit.description = 'New description for debit' debit.meta = { 'facebook.id': '1234567890', diff --git a/scenarios/debit_update/python.mako b/scenarios/debit_update/python.mako index dc95896..c026387 100644 --- a/scenarios/debit_update/python.mako +++ b/scenarios/debit_update/python.mako @@ -3,9 +3,9 @@ balanced.Debit().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -debit = balanced.Debit.fetch('/debits/WD4FfxxWRRcrlCsGEPti58RT') +debit = balanced.Debit.fetch('/debits/WD5EW7vbyXlTsudIGF5AkrEA') debit.description = 'New description for debit' debit.meta = { 'facebook.id': '1234567890', @@ -13,5 +13,5 @@ debit.meta = { } debit.save() % elif mode == 'response': -Debit(status=u'succeeded', description=u'New description for debit', links={u'customer': None, u'source': u'CC48j1De9eVYELLivrgDeCM8', u'dispute': None, u'order': None, u'card_hold': u'HL4FeDF5SNigtHsO8xNowrGd'}, amount=5000, created_at=u'2014-12-18T18:22:36.294585Z', updated_at=u'2014-12-18T18:22:40.688348Z', failure_reason=None, currency=u'USD', transaction_number=u'W6BJ-PUQ-8JDC', href=u'/debits/WD4FfxxWRRcrlCsGEPti58RT', meta={u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD4FfxxWRRcrlCsGEPti58RT') +Debit(status=u'succeeded', description=u'New description for debit', links={u'customer': None, u'source': u'CC4zyuNpxY0A0eAf87SeULCR', u'dispute': None, u'order': None, u'card_hold': u'HL5EUR5M3MniPMPUQM0hDdeg'}, amount=5000, created_at=u'2015-01-09T03:24:51.290112Z', updated_at=u'2015-01-09T03:24:56.837641Z', failure_reason=None, currency=u'USD', transaction_number=u'WMBW-XBR-0C9N', href=u'/debits/WD5EW7vbyXlTsudIGF5AkrEA', meta={u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD5EW7vbyXlTsudIGF5AkrEA') % endif \ No newline at end of file diff --git a/scenarios/dispute_list/executable.py b/scenarios/dispute_list/executable.py index 155ea0c..5a9ca78 100644 --- a/scenarios/dispute_list/executable.py +++ b/scenarios/dispute_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') disputes = balanced.Dispute.query \ No newline at end of file diff --git a/scenarios/dispute_list/python.mako b/scenarios/dispute_list/python.mako index c3e2b26..cb5ece1 100644 --- a/scenarios/dispute_list/python.mako +++ b/scenarios/dispute_list/python.mako @@ -3,7 +3,7 @@ balanced.Dispute.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') disputes = balanced.Dispute.query % elif mode == 'response': diff --git a/scenarios/dispute_show/executable.py b/scenarios/dispute_show/executable.py index 63432ab..3987715 100644 --- a/scenarios/dispute_show/executable.py +++ b/scenarios/dispute_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -dispute = balanced.Dispute.fetch('/disputes/DT4WXjGGzPSsqYuPfWaKHDsf') \ No newline at end of file +dispute = balanced.Dispute.fetch('/disputes/DT64FIXm5agnVqfCMHZVe8dR') \ No newline at end of file diff --git a/scenarios/dispute_show/python.mako b/scenarios/dispute_show/python.mako index 4866884..a2e607f 100644 --- a/scenarios/dispute_show/python.mako +++ b/scenarios/dispute_show/python.mako @@ -4,9 +4,9 @@ balanced.Dispute.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -dispute = balanced.Dispute.fetch('/disputes/DT4WXjGGzPSsqYuPfWaKHDsf') +dispute = balanced.Dispute.fetch('/disputes/DT64FIXm5agnVqfCMHZVe8dR') % elif mode == 'response': -Dispute(status=u'pending', links={u'transaction': u'WD4QE0i532v0eWQ6mCWCASc5'}, respond_by=u'2015-01-17T18:21:02.819478Z', amount=5000, created_at=u'2014-12-18T18:22:52.051775Z', updated_at=u'2014-12-18T18:22:52.051777Z', initiated_at=u'2014-12-18T18:21:02.819475Z', currency=u'USD', reason=u'fraud', href=u'/disputes/DT4WXjGGzPSsqYuPfWaKHDsf', meta={}, id=u'DT4WXjGGzPSsqYuPfWaKHDsf') +Dispute(status=u'pending', links={u'transaction': u'WD5SwXr9jcCfCmmjTH5MCMFD'}, respond_by=u'2015-02-08T03:22:35.440841Z', amount=5000, created_at=u'2015-01-09T03:25:14.170586Z', updated_at=u'2015-01-09T03:25:14.170588Z', initiated_at=u'2015-01-09T03:22:35.440838Z', currency=u'USD', reason=u'fraud', href=u'/disputes/DT64FIXm5agnVqfCMHZVe8dR', meta={}, id=u'DT64FIXm5agnVqfCMHZVe8dR') % endif \ No newline at end of file diff --git a/scenarios/event_list/executable.py b/scenarios/event_list/executable.py index dff768d..a5be556 100644 --- a/scenarios/event_list/executable.py +++ b/scenarios/event_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') events = balanced.Event.query \ No newline at end of file diff --git a/scenarios/event_list/python.mako b/scenarios/event_list/python.mako index e3c249d..2704919 100644 --- a/scenarios/event_list/python.mako +++ b/scenarios/event_list/python.mako @@ -4,7 +4,7 @@ balanced.Event.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') events = balanced.Event.query % elif mode == 'response': diff --git a/scenarios/event_show/executable.py b/scenarios/event_show/executable.py index 4c70893..8c898bb 100644 --- a/scenarios/event_show/executable.py +++ b/scenarios/event_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -event = balanced.Event.fetch('/events/EV81a73c0a86e211e496f002e66206bf80') \ No newline at end of file +event = balanced.Event.fetch('/events/EVc7cbc12497ae11e48e4606debca797bb') \ No newline at end of file diff --git a/scenarios/event_show/python.mako b/scenarios/event_show/python.mako index 401ba06..1ed1bc6 100644 --- a/scenarios/event_show/python.mako +++ b/scenarios/event_show/python.mako @@ -4,9 +4,9 @@ balanced.Event.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -event = balanced.Event.fetch('/events/EV81a73c0a86e211e496f002e66206bf80') +event = balanced.Event.fetch('/events/EVc7cbc12497ae11e48e4606debca797bb') % elif mode == 'response': -Event(links={}, occurred_at=u'2014-12-18T18:21:57.034130Z', entity={u'debits': [{u'status': u'succeeded', u'description': None, u'links': {u'customer': u'CU2sWdT0agfxWIbJN2W5LR0k', u'source': u'CC2u8eJDeFlT9Cw2t9IBN1lz', u'dispute': None, u'order': None, u'card_hold': u'HL3WaWNMhbQ2dPNYkY2GlaUg'}, u'href': u'/debits/WD3Wcqqml6qjXXs5TvAv0Woo', u'created_at': u'2014-12-18T18:21:56.238975Z', u'transaction_number': u'WQKG-WID-ZHC9', u'failure_reason': None, u'updated_at': u'2014-12-18T18:21:57.034130Z', u'currency': u'USD', u'amount': 10000000, u'failure_reason_code': None, u'meta': {}, u'appears_on_statement_as': u'BAL*example.com', u'id': u'WD3Wcqqml6qjXXs5TvAv0Woo'}], u'links': {u'debits.customer': u'/customers/{debits.customer}', u'debits.dispute': u'/disputes/{debits.dispute}', u'debits.card_hold': u'/holds/{debits.card_hold}', u'debits.source': u'/resources/{debits.source}', u'debits.order': u'/orders/{debits.order}', u'debits.refunds': u'/debits/{debits.id}/refunds', u'debits.events': u'/debits/{debits.id}/events'}}, href=u'/events/EV81a73c0a86e211e496f002e66206bf80', callback_statuses={u'failed': 0, u'retrying': 0, u'succeeded': 0, u'pending': 1}, type=u'debit.created', id=u'EV81a73c0a86e211e496f002e66206bf80') +Event(links={}, occurred_at=u'2015-01-09T03:25:04.090381Z', entity={u'debits': [{u'status': u'succeeded', u'description': u'Some descriptive text for the debit in the dashboard', u'links': {u'customer': None, u'source': u'CC5RRvpnZIg0PWdSphR8xxPa', u'dispute': u'DT64FIXm5agnVqfCMHZVe8dR', u'order': None, u'card_hold': u'HL5Svbmw6nDDP5HO2RblsBCJ'}, u'href': u'/debits/WD5SwXr9jcCfCmmjTH5MCMFD', u'created_at': u'2015-01-09T03:25:03.383375Z', u'transaction_number': u'WA4K-D44-O5DR', u'failure_reason': None, u'updated_at': u'2015-01-09T03:25:04.090381Z', u'currency': u'USD', u'amount': 5000, u'failure_reason_code': None, u'meta': {}, u'appears_on_statement_as': u'BAL*Statement text', u'id': u'WD5SwXr9jcCfCmmjTH5MCMFD'}], u'links': {u'debits.customer': u'/customers/{debits.customer}', u'debits.dispute': u'/disputes/{debits.dispute}', u'debits.card_hold': u'/holds/{debits.card_hold}', u'debits.source': u'/resources/{debits.source}', u'debits.order': u'/orders/{debits.order}', u'debits.refunds': u'/debits/{debits.id}/refunds', u'debits.events': u'/debits/{debits.id}/events'}}, href=u'/events/EVc7cbc12497ae11e48e4606debca797bb', callback_statuses={u'failed': 0, u'retrying': 0, u'succeeded': 0, u'pending': 1}, type=u'debit.succeeded', id=u'EVc7cbc12497ae11e48e4606debca797bb') % endif \ No newline at end of file diff --git a/scenarios/order_create/executable.py b/scenarios/order_create/executable.py index c427dab..ec309db 100644 --- a/scenarios/order_create/executable.py +++ b/scenarios/order_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -merchant_customer = balanced.Customer.fetch('/customers/CU4CZc7Xjn8gGJXl1LyzZk7S') +merchant_customer = balanced.Customer.fetch('/customers/CU5AxbQrjAcjsbquafnvwaas') merchant_customer.create_order( description='Order #12341234' ).save() \ No newline at end of file diff --git a/scenarios/order_create/python.mako b/scenarios/order_create/python.mako index e1cd75b..0a2d64b 100644 --- a/scenarios/order_create/python.mako +++ b/scenarios/order_create/python.mako @@ -3,12 +3,12 @@ balanced.Order() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -merchant_customer = balanced.Customer.fetch('/customers/CU4CZc7Xjn8gGJXl1LyzZk7S') +merchant_customer = balanced.Customer.fetch('/customers/CU5AxbQrjAcjsbquafnvwaas') merchant_customer.create_order( description='Order #12341234' ).save() % elif mode == 'response': -Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'Order #12341234', links={u'merchant': u'CU4CZc7Xjn8gGJXl1LyzZk7S'}, created_at=u'2014-12-18T18:23:07.277803Z', updated_at=u'2014-12-18T18:23:07.277804Z', currency=u'USD', amount=0, href=u'/orders/OR5e6wrps4tp9QarDxWa01O5', meta={}, id=u'OR5e6wrps4tp9QarDxWa01O5', amount_escrowed=0) +Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'Order #12341234', links={u'merchant': u'CU5AxbQrjAcjsbquafnvwaas'}, created_at=u'2015-01-09T03:25:31.087736Z', updated_at=u'2015-01-09T03:25:31.087737Z', currency=u'USD', amount=0, href=u'/orders/OR6nHTLOYehaSU5SoxqQE5WB', meta={}, id=u'OR6nHTLOYehaSU5SoxqQE5WB', amount_escrowed=0) % endif \ No newline at end of file diff --git a/scenarios/order_list/executable.py b/scenarios/order_list/executable.py index d4ff2e9..92d5d98 100644 --- a/scenarios/order_list/executable.py +++ b/scenarios/order_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') orders = balanced.Order.query \ No newline at end of file diff --git a/scenarios/order_list/python.mako b/scenarios/order_list/python.mako index 28414c8..8379c57 100644 --- a/scenarios/order_list/python.mako +++ b/scenarios/order_list/python.mako @@ -4,7 +4,7 @@ balanced.Order.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') orders = balanced.Order.query % elif mode == 'response': diff --git a/scenarios/order_show/executable.py b/scenarios/order_show/executable.py index c102952..b3ac814 100644 --- a/scenarios/order_show/executable.py +++ b/scenarios/order_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -order = balanced.Order.fetch('/orders/OR5e6wrps4tp9QarDxWa01O5') \ No newline at end of file +order = balanced.Order.fetch('/orders/OR6nHTLOYehaSU5SoxqQE5WB') \ No newline at end of file diff --git a/scenarios/order_show/python.mako b/scenarios/order_show/python.mako index a24aca3..36436db 100644 --- a/scenarios/order_show/python.mako +++ b/scenarios/order_show/python.mako @@ -4,9 +4,9 @@ balanced.Order.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -order = balanced.Order.fetch('/orders/OR5e6wrps4tp9QarDxWa01O5') +order = balanced.Order.fetch('/orders/OR6nHTLOYehaSU5SoxqQE5WB') % elif mode == 'response': -Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'Order #12341234', links={u'merchant': u'CU4CZc7Xjn8gGJXl1LyzZk7S'}, created_at=u'2014-12-18T18:23:07.277803Z', updated_at=u'2014-12-18T18:23:07.277804Z', currency=u'USD', amount=0, href=u'/orders/OR5e6wrps4tp9QarDxWa01O5', meta={}, id=u'OR5e6wrps4tp9QarDxWa01O5', amount_escrowed=0) +Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'Order #12341234', links={u'merchant': u'CU5AxbQrjAcjsbquafnvwaas'}, created_at=u'2015-01-09T03:25:31.087736Z', updated_at=u'2015-01-09T03:25:31.087737Z', currency=u'USD', amount=0, href=u'/orders/OR6nHTLOYehaSU5SoxqQE5WB', meta={}, id=u'OR6nHTLOYehaSU5SoxqQE5WB', amount_escrowed=0) % endif \ No newline at end of file diff --git a/scenarios/order_update/executable.py b/scenarios/order_update/executable.py index 4951d72..90b2372 100644 --- a/scenarios/order_update/executable.py +++ b/scenarios/order_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -order = balanced.Order.fetch('/orders/OR5e6wrps4tp9QarDxWa01O5') +order = balanced.Order.fetch('/orders/OR6nHTLOYehaSU5SoxqQE5WB') order.description = 'New description for order' order.meta = { 'anykey': 'valuegoeshere', diff --git a/scenarios/order_update/python.mako b/scenarios/order_update/python.mako index 0e34f22..67be965 100644 --- a/scenarios/order_update/python.mako +++ b/scenarios/order_update/python.mako @@ -3,9 +3,9 @@ balanced.Order().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -order = balanced.Order.fetch('/orders/OR5e6wrps4tp9QarDxWa01O5') +order = balanced.Order.fetch('/orders/OR6nHTLOYehaSU5SoxqQE5WB') order.description = 'New description for order' order.meta = { 'anykey': 'valuegoeshere', @@ -13,5 +13,5 @@ order.meta = { } order.save() % elif mode == 'response': -Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'New description for order', links={u'merchant': u'CU4CZc7Xjn8gGJXl1LyzZk7S'}, created_at=u'2014-12-18T18:23:07.277803Z', updated_at=u'2014-12-18T18:23:11.123898Z', currency=u'USD', amount=0, href=u'/orders/OR5e6wrps4tp9QarDxWa01O5', meta={u'product.id': u'1234567890', u'anykey': u'valuegoeshere'}, id=u'OR5e6wrps4tp9QarDxWa01O5', amount_escrowed=0) +Order(delivery_address={u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, description=u'New description for order', links={u'merchant': u'CU5AxbQrjAcjsbquafnvwaas'}, created_at=u'2015-01-09T03:25:31.087736Z', updated_at=u'2015-01-09T03:25:34.898356Z', currency=u'USD', amount=0, href=u'/orders/OR6nHTLOYehaSU5SoxqQE5WB', meta={u'product.id': u'1234567890', u'anykey': u'valuegoeshere'}, id=u'OR6nHTLOYehaSU5SoxqQE5WB', amount_escrowed=0) % endif \ No newline at end of file diff --git a/scenarios/refund_create/executable.py b/scenarios/refund_create/executable.py index 44ae4f8..545c010 100644 --- a/scenarios/refund_create/executable.py +++ b/scenarios/refund_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -debit = balanced.Debit.fetch('/debits/WD4LT3ghEgoGK9z4wUQCsKUU') +debit = balanced.Debit.fetch('/debits/WD5Nd61WpdlRk6D39YVNFAEo') refund = debit.refund( amount=3000, description="Refund for Order #1111", diff --git a/scenarios/refund_create/python.mako b/scenarios/refund_create/python.mako index 29bef23..3965138 100644 --- a/scenarios/refund_create/python.mako +++ b/scenarios/refund_create/python.mako @@ -3,9 +3,9 @@ balanced.Debit().refund() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -debit = balanced.Debit.fetch('/debits/WD4LT3ghEgoGK9z4wUQCsKUU') +debit = balanced.Debit.fetch('/debits/WD5Nd61WpdlRk6D39YVNFAEo') refund = debit.refund( amount=3000, description="Refund for Order #1111", @@ -16,5 +16,5 @@ refund = debit.refund( } ) % elif mode == 'response': -Refund(status=u'succeeded', description=u'Refund for Order #1111', links={u'dispute': None, u'order': None, u'debit': u'WD4LT3ghEgoGK9z4wUQCsKUU'}, amount=3000, created_at=u'2014-12-18T18:22:43.409054Z', updated_at=u'2014-12-18T18:22:43.784433Z', currency=u'USD', transaction_number=u'RF8NW-96D-RK5Z', href=u'/refunds/RF4NfnDkA4JBeXex8N3ZDhMA', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, id=u'RF4NfnDkA4JBeXex8N3ZDhMA') +Refund(status=u'succeeded', description=u'Refund for Order #1111', links={u'dispute': None, u'order': None, u'debit': u'WD5Nd61WpdlRk6D39YVNFAEo'}, amount=3000, created_at=u'2015-01-09T03:25:00.202596Z', updated_at=u'2015-01-09T03:25:00.686907Z', currency=u'USD', transaction_number=u'RFN4R-7JB-96UV', href=u'/refunds/RF5OXw4w1a9g2GsPqQ2Hg9hj', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, id=u'RF5OXw4w1a9g2GsPqQ2Hg9hj') % endif \ No newline at end of file diff --git a/scenarios/refund_list/executable.py b/scenarios/refund_list/executable.py index 841e31a..cff31bf 100644 --- a/scenarios/refund_list/executable.py +++ b/scenarios/refund_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') refunds = balanced.Refund.query \ No newline at end of file diff --git a/scenarios/refund_list/python.mako b/scenarios/refund_list/python.mako index 9db7039..002da20 100644 --- a/scenarios/refund_list/python.mako +++ b/scenarios/refund_list/python.mako @@ -4,7 +4,7 @@ balanced.Refund.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') refunds = balanced.Refund.query % elif mode == 'response': diff --git a/scenarios/refund_show/executable.py b/scenarios/refund_show/executable.py index 6d445f1..43e47b1 100644 --- a/scenarios/refund_show/executable.py +++ b/scenarios/refund_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -refund = balanced.Refund.fetch('/refunds/RF4NfnDkA4JBeXex8N3ZDhMA') \ No newline at end of file +refund = balanced.Refund.fetch('/refunds/RF5OXw4w1a9g2GsPqQ2Hg9hj') \ No newline at end of file diff --git a/scenarios/refund_show/python.mako b/scenarios/refund_show/python.mako index d589c38..29bd36a 100644 --- a/scenarios/refund_show/python.mako +++ b/scenarios/refund_show/python.mako @@ -4,9 +4,9 @@ balanced.Refund.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -refund = balanced.Refund.fetch('/refunds/RF4NfnDkA4JBeXex8N3ZDhMA') +refund = balanced.Refund.fetch('/refunds/RF5OXw4w1a9g2GsPqQ2Hg9hj') % elif mode == 'response': -Refund(status=u'succeeded', description=u'Refund for Order #1111', links={u'dispute': None, u'order': None, u'debit': u'WD4LT3ghEgoGK9z4wUQCsKUU'}, amount=3000, created_at=u'2014-12-18T18:22:43.409054Z', updated_at=u'2014-12-18T18:22:43.784433Z', currency=u'USD', transaction_number=u'RF8NW-96D-RK5Z', href=u'/refunds/RF4NfnDkA4JBeXex8N3ZDhMA', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, id=u'RF4NfnDkA4JBeXex8N3ZDhMA') +Refund(status=u'succeeded', description=u'Refund for Order #1111', links={u'dispute': None, u'order': None, u'debit': u'WD5Nd61WpdlRk6D39YVNFAEo'}, amount=3000, created_at=u'2015-01-09T03:25:00.202596Z', updated_at=u'2015-01-09T03:25:00.686907Z', currency=u'USD', transaction_number=u'RFN4R-7JB-96UV', href=u'/refunds/RF5OXw4w1a9g2GsPqQ2Hg9hj', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, id=u'RF5OXw4w1a9g2GsPqQ2Hg9hj') % endif \ No newline at end of file diff --git a/scenarios/refund_update/executable.py b/scenarios/refund_update/executable.py index 821030e..113fbde 100644 --- a/scenarios/refund_update/executable.py +++ b/scenarios/refund_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -refund = balanced.Refund.fetch('/refunds/RF4NfnDkA4JBeXex8N3ZDhMA') +refund = balanced.Refund.fetch('/refunds/RF5OXw4w1a9g2GsPqQ2Hg9hj') refund.description = 'update this description' refund.meta = { 'user.refund.count': '3', diff --git a/scenarios/refund_update/python.mako b/scenarios/refund_update/python.mako index 992ba79..35912a7 100644 --- a/scenarios/refund_update/python.mako +++ b/scenarios/refund_update/python.mako @@ -3,9 +3,9 @@ balanced.Refund().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -refund = balanced.Refund.fetch('/refunds/RF4NfnDkA4JBeXex8N3ZDhMA') +refund = balanced.Refund.fetch('/refunds/RF5OXw4w1a9g2GsPqQ2Hg9hj') refund.description = 'update this description' refund.meta = { 'user.refund.count': '3', @@ -14,5 +14,5 @@ refund.meta = { } refund.save() % elif mode == 'response': -Refund(status=u'succeeded', description=u'update this description', links={u'dispute': None, u'order': None, u'debit': u'WD4LT3ghEgoGK9z4wUQCsKUU'}, amount=3000, created_at=u'2014-12-18T18:22:43.409054Z', updated_at=u'2014-12-18T18:23:15.459974Z', currency=u'USD', transaction_number=u'RF8NW-96D-RK5Z', href=u'/refunds/RF4NfnDkA4JBeXex8N3ZDhMA', meta={u'user.refund.count': u'3', u'refund.reason': u'user not happy with product', u'user.notes': u'very polite on the phone'}, id=u'RF4NfnDkA4JBeXex8N3ZDhMA') +Refund(status=u'succeeded', description=u'update this description', links={u'dispute': None, u'order': None, u'debit': u'WD5Nd61WpdlRk6D39YVNFAEo'}, amount=3000, created_at=u'2015-01-09T03:25:00.202596Z', updated_at=u'2015-01-09T03:25:39.570204Z', currency=u'USD', transaction_number=u'RFN4R-7JB-96UV', href=u'/refunds/RF5OXw4w1a9g2GsPqQ2Hg9hj', meta={u'user.refund.count': u'3', u'refund.reason': u'user not happy with product', u'user.notes': u'very polite on the phone'}, id=u'RF5OXw4w1a9g2GsPqQ2Hg9hj') % endif \ No newline at end of file diff --git a/scenarios/reversal_create/executable.py b/scenarios/reversal_create/executable.py index ff11291..ea10993 100644 --- a/scenarios/reversal_create/executable.py +++ b/scenarios/reversal_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -credit = balanced.Credit.fetch('/credits/CR5pb9ux8RYVNTwcJ3jdVF84') +credit = balanced.Credit.fetch('/credits/CR6zeufmfv0u1KHrUBCQtAgU') reversal = credit.reverse( amount=3000, description="Reversal for Order #1111", diff --git a/scenarios/reversal_create/python.mako b/scenarios/reversal_create/python.mako index d20faeb..cd11f05 100644 --- a/scenarios/reversal_create/python.mako +++ b/scenarios/reversal_create/python.mako @@ -3,9 +3,9 @@ balanced.Credit().reverse() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -credit = balanced.Credit.fetch('/credits/CR5pb9ux8RYVNTwcJ3jdVF84') +credit = balanced.Credit.fetch('/credits/CR6zeufmfv0u1KHrUBCQtAgU') reversal = credit.reverse( amount=3000, description="Reversal for Order #1111", @@ -16,5 +16,5 @@ reversal = credit.reverse( } ) % elif mode == 'response': -Reversal(status=u'pending', description=u'Reversal for Order #1111', links={u'credit': u'CR5pb9ux8RYVNTwcJ3jdVF84', u'order': None}, amount=3000, created_at=u'2014-12-18T18:23:17.985164Z', updated_at=u'2014-12-18T18:23:18.261789Z', failure_reason=None, currency=u'USD', transaction_number=u'RVJS6-KNY-IVGE', href=u'/reversals/RV5q7RVGWz47dsBoZGU5OceI', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, failure_reason_code=None, id=u'RV5q7RVGWz47dsBoZGU5OceI') +Reversal(status=u'pending', description=u'Reversal for Order #1111', links={u'credit': u'CR6zeufmfv0u1KHrUBCQtAgU', u'order': None}, amount=3000, created_at=u'2015-01-09T03:25:42.331343Z', updated_at=u'2015-01-09T03:25:42.672661Z', failure_reason=None, currency=u'USD', transaction_number=u'RVYWS-BLM-PY8J', href=u'/reversals/RV6AleFrrhNHBDpr9W9ozGmY', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, failure_reason_code=None, id=u'RV6AleFrrhNHBDpr9W9ozGmY') % endif \ No newline at end of file diff --git a/scenarios/reversal_list/executable.py b/scenarios/reversal_list/executable.py index 3333281..66c2a9e 100644 --- a/scenarios/reversal_list/executable.py +++ b/scenarios/reversal_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') reversals = balanced.Reversal.query \ No newline at end of file diff --git a/scenarios/reversal_list/python.mako b/scenarios/reversal_list/python.mako index ed6a121..fe33c78 100644 --- a/scenarios/reversal_list/python.mako +++ b/scenarios/reversal_list/python.mako @@ -4,7 +4,7 @@ balanced.Reversal.query() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') reversals = balanced.Reversal.query % elif mode == 'response': diff --git a/scenarios/reversal_show/executable.py b/scenarios/reversal_show/executable.py index 7124a78..4ae5290 100644 --- a/scenarios/reversal_show/executable.py +++ b/scenarios/reversal_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -refund = balanced.Reversal.fetch('/reversals/RV5q7RVGWz47dsBoZGU5OceI') \ No newline at end of file +refund = balanced.Reversal.fetch('/reversals/RV6AleFrrhNHBDpr9W9ozGmY') \ No newline at end of file diff --git a/scenarios/reversal_show/python.mako b/scenarios/reversal_show/python.mako index f4cec43..9fea217 100644 --- a/scenarios/reversal_show/python.mako +++ b/scenarios/reversal_show/python.mako @@ -4,9 +4,9 @@ balanced.Reversal.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -refund = balanced.Reversal.fetch('/reversals/RV5q7RVGWz47dsBoZGU5OceI') +refund = balanced.Reversal.fetch('/reversals/RV6AleFrrhNHBDpr9W9ozGmY') % elif mode == 'response': -Reversal(status=u'pending', description=u'Reversal for Order #1111', links={u'credit': u'CR5pb9ux8RYVNTwcJ3jdVF84', u'order': None}, amount=3000, created_at=u'2014-12-18T18:23:17.985164Z', updated_at=u'2014-12-18T18:23:18.261789Z', failure_reason=None, currency=u'USD', transaction_number=u'RVJS6-KNY-IVGE', href=u'/reversals/RV5q7RVGWz47dsBoZGU5OceI', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, failure_reason_code=None, id=u'RV5q7RVGWz47dsBoZGU5OceI') +Reversal(status=u'pending', description=u'Reversal for Order #1111', links={u'credit': u'CR6zeufmfv0u1KHrUBCQtAgU', u'order': None}, amount=3000, created_at=u'2015-01-09T03:25:42.331343Z', updated_at=u'2015-01-09T03:25:42.672661Z', failure_reason=None, currency=u'USD', transaction_number=u'RVYWS-BLM-PY8J', href=u'/reversals/RV6AleFrrhNHBDpr9W9ozGmY', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, failure_reason_code=None, id=u'RV6AleFrrhNHBDpr9W9ozGmY') % endif \ No newline at end of file diff --git a/scenarios/reversal_update/executable.py b/scenarios/reversal_update/executable.py index 1d87bcb..134927a 100644 --- a/scenarios/reversal_update/executable.py +++ b/scenarios/reversal_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -reversal = balanced.Reversal.fetch('/reversals/RV5q7RVGWz47dsBoZGU5OceI') +reversal = balanced.Reversal.fetch('/reversals/RV6AleFrrhNHBDpr9W9ozGmY') reversal.description = 'update this description' reversal.meta = { 'user.refund.count': '3', diff --git a/scenarios/reversal_update/python.mako b/scenarios/reversal_update/python.mako index 020cb22..c2147c8 100644 --- a/scenarios/reversal_update/python.mako +++ b/scenarios/reversal_update/python.mako @@ -3,9 +3,9 @@ balanced.Reversal().save() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -reversal = balanced.Reversal.fetch('/reversals/RV5q7RVGWz47dsBoZGU5OceI') +reversal = balanced.Reversal.fetch('/reversals/RV6AleFrrhNHBDpr9W9ozGmY') reversal.description = 'update this description' reversal.meta = { 'user.refund.count': '3', @@ -14,5 +14,5 @@ reversal.meta = { } reversal.save() % elif mode == 'response': -Reversal(status=u'pending', description=u'update this description', links={u'credit': u'CR5pb9ux8RYVNTwcJ3jdVF84', u'order': None}, amount=3000, created_at=u'2014-12-18T18:23:17.985164Z', updated_at=u'2014-12-18T18:23:22.449374Z', failure_reason=None, currency=u'USD', transaction_number=u'RVJS6-KNY-IVGE', href=u'/reversals/RV5q7RVGWz47dsBoZGU5OceI', meta={u'user.satisfaction': u'6', u'refund.reason': u'user not happy with product', u'user.notes': u'very polite on the phone'}, failure_reason_code=None, id=u'RV5q7RVGWz47dsBoZGU5OceI') +Reversal(status=u'pending', description=u'update this description', links={u'credit': u'CR6zeufmfv0u1KHrUBCQtAgU', u'order': None}, amount=3000, created_at=u'2015-01-09T03:25:42.331343Z', updated_at=u'2015-01-09T03:25:46.424201Z', failure_reason=None, currency=u'USD', transaction_number=u'RVYWS-BLM-PY8J', href=u'/reversals/RV6AleFrrhNHBDpr9W9ozGmY', meta={u'user.satisfaction': u'6', u'refund.reason': u'user not happy with product', u'user.notes': u'very polite on the phone'}, failure_reason_code=None, id=u'RV6AleFrrhNHBDpr9W9ozGmY') % endif \ No newline at end of file diff --git a/scenarios/settlement_create/executable.py b/scenarios/settlement_create/executable.py index 8c64002..267ee37 100644 --- a/scenarios/settlement_create/executable.py +++ b/scenarios/settlement_create/executable.py @@ -1,10 +1,14 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -payable_account = balanced.Account.fetch('/accounts/AT2E6Ju62P9AnTJwe0fL5kOI') +payable_account = balanced.Account.fetch('/accounts/AT3ogJE07IErLJYR510QO6sM') payable_account.settle( appears_on_statement_as='ThingsCo', - funding_instrument='/bank_accounts/BA3uzbngfVXy1SGg25Et7iKY', - description='Payout A'meta[group]='alpha', + funding_instrument='/bank_accounts/BA45anEaEr8g0lOhzhcE9VAN', + description='Payout A', + meta={ + 'group': 'alpha' + } +) ) \ No newline at end of file diff --git a/scenarios/settlement_create/python.mako b/scenarios/settlement_create/python.mako index 0267624..c659e2e 100644 --- a/scenarios/settlement_create/python.mako +++ b/scenarios/settlement_create/python.mako @@ -3,14 +3,18 @@ balanced.Account.settle() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -payable_account = balanced.Account.fetch('/accounts/AT2E6Ju62P9AnTJwe0fL5kOI') +payable_account = balanced.Account.fetch('/accounts/AT3ogJE07IErLJYR510QO6sM') payable_account.settle( appears_on_statement_as='ThingsCo', - funding_instrument='/bank_accounts/BA3uzbngfVXy1SGg25Et7iKY', - description='Payout A'meta[group]='alpha', + funding_instrument='/bank_accounts/BA45anEaEr8g0lOhzhcE9VAN', + description='Payout A', + meta={ + 'group': 'alpha' + } +) ) % elif mode == 'response': -Settlement(status=u'pending', description=u'Payout A', links={u'source': u'AT2E6Ju62P9AnTJwe0fL5kOI', u'destination': u'BA3uzbngfVXy1SGg25Et7iKY'}, amount=2000, created_at=u'2014-12-19T19:33:49.449170Z', updated_at=u'2014-12-19T19:33:49.876379Z', failure_reason=None, currency=u'USD', transaction_number=u'SCJZG-O1U-9EMP', href=u'/settlements/ST5wi3VdOdaA9HrMpFsJnabr', meta={u'group': u'alpha'}, failure_reason_code=None, appears_on_statement_as=u'BAL*ThingsCo', id=u'ST5wi3VdOdaA9HrMpFsJnabr') +Settlement(status=u'pending', description=u'Payout A', links={u'source': u'AT3ogJE07IErLJYR510QO6sM', u'destination': u'BA45anEaEr8g0lOhzhcE9VAN'}, amount=1000, created_at=u'2015-01-09T03:25:48.587751Z', updated_at=u'2015-01-09T03:25:48.946792Z', failure_reason=None, currency=u'USD', transaction_number=u'SCRGN-RWP-FFSL', href=u'/settlements/ST6HmBuLJSEa82oUwId1AShW', meta={u'group': u'alpha'}, failure_reason_code=None, appears_on_statement_as=u'BAL*ThingsCo', id=u'ST6HmBuLJSEa82oUwId1AShW') % endif \ No newline at end of file diff --git a/scenarios/settlement_create/request.mako b/scenarios/settlement_create/request.mako index e104dc2..2cee79d 100644 --- a/scenarios/settlement_create/request.mako +++ b/scenarios/settlement_create/request.mako @@ -3,5 +3,11 @@ payable_account = balanced.Account.fetch('${request['href']}') payable_account.settle( - <% main.payload_expand(request['payload']) %> + appears_on_statement_as='${request['payload']['appears_on_statement_as']}', + funding_instrument='${request['payload']['funding_instrument']}', + description='${request['payload']['description']}', + meta={ + 'group': '${request['payload']['meta']['group']}' + } +) ) \ No newline at end of file diff --git a/scenarios/settlement_list/executable.py b/scenarios/settlement_list/executable.py index 05c19ce..7d9c1b4 100644 --- a/scenarios/settlement_list/executable.py +++ b/scenarios/settlement_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') settlements = balanced.Settlement.query \ No newline at end of file diff --git a/scenarios/settlement_list/python.mako b/scenarios/settlement_list/python.mako index e6559a8..113ba98 100644 --- a/scenarios/settlement_list/python.mako +++ b/scenarios/settlement_list/python.mako @@ -4,7 +4,7 @@ balanced.Settlement.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') settlements = balanced.Settlement.query % elif mode == 'response': diff --git a/scenarios/settlement_list_account/executable.py b/scenarios/settlement_list_account/executable.py index a26e54f..91bac2a 100644 --- a/scenarios/settlement_list_account/executable.py +++ b/scenarios/settlement_list_account/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -account = balanced.Account.fetch('/accounts/AT2E6Ju62P9AnTJwe0fL5kOI') +account = balanced.Account.fetch('/accounts/AT3ogJE07IErLJYR510QO6sM') account.settlements \ No newline at end of file diff --git a/scenarios/settlement_list_account/python.mako b/scenarios/settlement_list_account/python.mako index 833bea5..ca953e1 100644 --- a/scenarios/settlement_list_account/python.mako +++ b/scenarios/settlement_list_account/python.mako @@ -4,9 +4,9 @@ balanced.Settlement.query % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -account = balanced.Account.fetch('/accounts/AT2E6Ju62P9AnTJwe0fL5kOI') +account = balanced.Account.fetch('/accounts/AT3ogJE07IErLJYR510QO6sM') account.settlements % elif mode == 'response': diff --git a/scenarios/settlement_show/executable.py b/scenarios/settlement_show/executable.py index c2b983d..b0a772e 100644 --- a/scenarios/settlement_show/executable.py +++ b/scenarios/settlement_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -account = balanced.Settlement.fetch('/settlements/ST5xMBEiT3t2Stt2ia4Svl2d') \ No newline at end of file +settlement = balanced.Settlement.fetch('/settlements/ST6HmBuLJSEa82oUwId1AShW') \ No newline at end of file diff --git a/scenarios/settlement_show/python.mako b/scenarios/settlement_show/python.mako index 5a78dee..4c1b287 100644 --- a/scenarios/settlement_show/python.mako +++ b/scenarios/settlement_show/python.mako @@ -4,9 +4,9 @@ balanced.Settlement.fetch() % elif mode == 'request': import balanced -balanced.configure('ak-test-1xLFE6RLC1W3P4ePiQDI4UVpRwtKcdfqL') +balanced.configure('ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY') -account = balanced.Settlement.fetch('/settlements/ST5xMBEiT3t2Stt2ia4Svl2d') +settlement = balanced.Settlement.fetch('/settlements/ST6HmBuLJSEa82oUwId1AShW') % elif mode == 'response': -Settlement(status=u'pending', description=u'Payout A', links={u'source': u'AT2E6Ju62P9AnTJwe0fL5kOI', u'destination': u'BA3uzbngfVXy1SGg25Et7iKY'}, amount=1000, created_at=u'2014-12-18T18:23:24.786699Z', updated_at=u'2014-12-18T18:23:25.117077Z', failure_reason=None, currency=u'USD', transaction_number=u'SCJUK-XJN-S1O5', href=u'/settlements/ST5xMBEiT3t2Stt2ia4Svl2d', meta={u'group': u'alpha'}, failure_reason_code=None, appears_on_statement_as=u'BAL*ThingsCo', id=u'ST5xMBEiT3t2Stt2ia4Svl2d') +Settlement(status=u'pending', description=u'Payout A', links={u'source': u'AT3ogJE07IErLJYR510QO6sM', u'destination': u'BA45anEaEr8g0lOhzhcE9VAN'}, amount=1000, created_at=u'2015-01-09T03:25:48.587751Z', updated_at=u'2015-01-09T03:25:48.946792Z', failure_reason=None, currency=u'USD', transaction_number=u'SCRGN-RWP-FFSL', href=u'/settlements/ST6HmBuLJSEa82oUwId1AShW', meta={u'group': u'alpha'}, failure_reason_code=None, appears_on_statement_as=u'BAL*ThingsCo', id=u'ST6HmBuLJSEa82oUwId1AShW') % endif \ No newline at end of file diff --git a/scenarios/settlement_show/request.mako b/scenarios/settlement_show/request.mako index f5cc4bc..69a0d4c 100644 --- a/scenarios/settlement_show/request.mako +++ b/scenarios/settlement_show/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -account = balanced.Settlement.fetch('${request['uri']}') \ No newline at end of file +settlement = balanced.Settlement.fetch('${request['uri']}') \ No newline at end of file