From b8a60851c780fe1aaf743caa6d1ac53f734ccaf2 Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Mon, 23 Dec 2013 15:13:44 -0700 Subject: [PATCH 001/146] initial commit. kinda, sorta works --- balanced/__init__.py | 70 +- balanced/_http_client.py | 186 --- balanced/config.py | 115 +- balanced/exc.py | 46 +- balanced/resources.py | 1450 ++------------------ balanced/utils.py | 287 +--- requirements-docs.txt | 2 - requirements.txt | 7 +- setup.py | 53 +- test-requirements.txt | 5 +- tests/_responses/__init__.py | 12 - tests/_responses/accounts.py | 21 - tests/_responses/marketplaces.py | 92 -- tests/_responses/merchants.py | 9 - tests/_responses/merchants1.json | 46 - tests/_responses/transactions.py | 13 - tests/_responses/transactions1.json | 248 ---- tests/_responses/transactions2.json | 179 --- tests/fixtures/__init__.py | 17 + tests/fixtures/bank_accounts.py | 5 - tests/fixtures/cards.py | 78 -- tests/fixtures/merchants.py | 31 - tests/fixtures/resources.py | 17 - tests/fixtures/resources/api_keys.json | 13 + tests/fixtures/resources/marketplaces.json | 35 + tests/test_balanced.py | 8 +- tests/test_client.py | 173 --- tests/test_resource.py | 151 +- tests/utils.py | 8 +- 29 files changed, 369 insertions(+), 3008 deletions(-) delete mode 100644 balanced/_http_client.py delete mode 100644 requirements-docs.txt delete mode 100644 tests/_responses/__init__.py delete mode 100644 tests/_responses/accounts.py delete mode 100644 tests/_responses/marketplaces.py delete mode 100644 tests/_responses/merchants.py delete mode 100644 tests/_responses/merchants1.json delete mode 100644 tests/_responses/transactions.py delete mode 100644 tests/_responses/transactions1.json delete mode 100644 tests/_responses/transactions2.json delete mode 100644 tests/fixtures/bank_accounts.py delete mode 100644 tests/fixtures/cards.py delete mode 100644 tests/fixtures/merchants.py delete mode 100644 tests/fixtures/resources.py create mode 100644 tests/fixtures/resources/api_keys.json create mode 100644 tests/fixtures/resources/marketplaces.json delete mode 100644 tests/test_client.py diff --git a/balanced/__init__.py b/balanced/__init__.py index e72bb36..80f8da0 100644 --- a/balanced/__init__.py +++ b/balanced/__init__.py @@ -1,68 +1,34 @@ -__version__ = '0.11.14' -from collections import defaultdict -import contextlib +from __future__ import unicode_literals -from balanced._http_client import HTTPClient +__version__ = '1.1.0pre' + +from balanced.config import configure from balanced.resources import ( - Resource, Marketplace, Account, APIKey, - Hold, Credit, Debit, Refund, - Merchant, Transaction, BankAccount, Card, + Resource, Marketplace, APIKey, + CardHold, Credit, Debit, Refund, Reversal, + Transaction, BankAccount, Card, Callback, Event, EventCallback, EventCallbackLog, BankAccountVerification, Customer, ) from balanced import exc - __all__ = [ - Resource.__name__, - Marketplace.__name__, - Account.__name__, APIKey.__name__, - Hold.__name__, - Credit.__name__, - Debit.__name__, - Refund.__name__, - Merchant.__name__, - Transaction.__name__, - Card.__name__, BankAccount.__name__, + BankAccountVerification.__name__, Callback.__name__, + Card.__name__, + CardHold.__name__, + Credit.__name__, + Customer.__name__, + Debit.__name__, Event.__name__, EventCallback.__name__, EventCallbackLog.__name__, - BankAccountVerification.__name__, - Customer.__name__, + Marketplace.__name__, + Resource.__name__, + Refund.__name__, + Reversal.__name__, + Transaction.__name__, exc.__name__.partition('.')[-1], ] - -# See https://github.com/balanced/balanced-python/issues/44 re: naming. -http_client = HTTPClient() -config = http_client.config - - -CACHE = defaultdict(dict) - - -def bust_cache(): - CACHE.clear() - - -def configure(api_key_secret): - config.api_key_secret = api_key_secret - - -def is_configured(): - return bool(config.api_key_secret) - - -Resource.http_client = http_client - - -@contextlib.contextmanager -def key_switcher(the_new_api_key_secret): - old_api_key = config.api_key_secret - config.api_key_secret = the_new_api_key_secret - try: - yield - finally: - config.api_key_secret = old_api_key diff --git a/balanced/_http_client.py b/balanced/_http_client.py deleted file mode 100644 index a125c7b..0000000 --- a/balanced/_http_client.py +++ /dev/null @@ -1,186 +0,0 @@ -import json -import threading - -import requests -from requests.sessions import REDIRECT_STATI - -from balanced import exc -from balanced.config import Config -from balanced.utils import to_json, urljoin - -serializers = { - 'application/json': to_json -} - - -deserializers = { - 'application/json': json.loads -} - - -REDIRECT_STATI = list(REDIRECT_STATI) -REDIRECT_STATI.append(300) - - -before_request_hooks = [] - - -def wrap_raise_for_status(http_client): - - def handle_exception(response): - deserialized = http_client.deserialize( - response - ) - response.deserialized = deserialized - extra = deserialized.get('additional') or '' - if extra: - extra = ' -- {0}.'.format(extra) - error_msg = '{name}: {code}: {msg} {extra}'.format( - name=deserialized['status'], - code=deserialized['status_code'], - msg=deserialized['description'].encode('utf8'), - extra=extra.encode('utf8'), - ) - category_code = deserialized.get('category_code', None) - error_cls = exc.category_code_map.get( - category_code, exc.HTTPError) - http_error = error_cls(error_msg) - for error, value in deserialized.iteritems(): - setattr(http_error, error, value) - raise http_error - - def handle_redirect(response): - reason = '%s Client Error: %s' % ( - response.status_code, - response.reason, - ) - redirection = exc.MoreInformationRequiredError(reason) - redirection.status_code = response.status_code - redirection.response = response - redirection.redirect_uri = response.headers['Location'] - raise redirection - - def wrapper(response, **kwargs): - - try: - response.raise_for_status() - except requests.HTTPError: - handle_exception(response) - else: - if response.status_code in REDIRECT_STATI: - handle_redirect(response) - - return wrapper - - -# requests does define a 'pre_request' hook but we want to get in there before -# it does the encoding of authorization headers etc. -def _before_request(*args): - for hook in before_request_hooks: - hook(*args) - - -def munge_request(http_op): - - # follows the spec for requests. - def transform_into_absolute_url(config, url): - if url.startswith(config.uri): - return url - url = url.lstrip('/') - if url.startswith(config.version): - url = urljoin(config.root_uri, url) - else: - url = urljoin(config.uri, url) - return url - - def prepend_version(config, url): - url = url.lstrip('/') - if not url.startswith(config.version): - url = urljoin(config.version, url) - return url - - def make_absolute_url(client, url, **kwargs): - url = transform_into_absolute_url(client.config, url) - request_body = kwargs.get('data', {}) - fixed_up_body = {} - for key, value in request_body.iteritems(): - if key.endswith('_uri') and value: - fixed_up_body[key] = prepend_version(client.config, value) - request_body.update(fixed_up_body) - kwargs['data'] = request_body - # TODO: merge config dictionaries if it exists. - headers = kwargs.pop('headers', {}) - headers.update(client.config.requests['base_headers']) - kwargs['headers'] = headers - kwargs['allow_redirects'] = False - - kwargs['hooks'] = { - 'response': wrap_raise_for_status(client) - } - - if client.config.api_key_secret: - kwargs['auth'] = (client.config.api_key_secret, None) - - _before_request(client, http_op, url, kwargs) - - return http_op(client, url, **kwargs) - - return make_absolute_url - - -class HTTPClient(threading.local, object): - - config = Config() - _before_request_hooks = before_request_hooks - - def __init__(self, keep_alive=True, *args, **kwargs): - super(HTTPClient, self).__init__(*args, **kwargs) - self.interface = requests.session() if keep_alive else requests - - # we don't use the requests hook here because we want to expose - # that for any developer to access it directly. - # - # maybe eventually we should include requests configuration in the - # config? - @munge_request - def get(self, uri, **kwargs): - kwargs = self.serialize(kwargs.copy()) - resp = self.interface.get(uri, **kwargs) - resp.deserialized = self.deserialize(resp) - return resp - - @munge_request - def post(self, uri, data=None, **kwargs): - data = self.serialize({'data': data}).pop('data') - resp = self.interface.post(uri, data=data, **kwargs) - resp.deserialized = self.deserialize(resp) - return resp - - @munge_request - def put(self, uri, data=None, **kwargs): - data = self.serialize({'data': data}).pop('data') - resp = self.interface.put(uri, data=data, **kwargs) - resp.deserialized = self.deserialize(resp) - return resp - - @munge_request - def delete(self, uri, **kwargs): - kwargs = self.serialize(kwargs.copy()) - resp = self.interface.delete(uri, **kwargs) - if resp.status_code != 204: - resp.deserialized = self.deserialize(resp) - return resp - - def deserialize(self, resp): - try: - return deserializers[resp.headers['Content-Type']](resp.content) - except KeyError: - raise exc.BalancedError('Invalid content type "{0}": {1}'.format( - resp.headers['Content-Type'], resp.content, - )) - - def serialize(self, kwargs): - content_type = self.config.requests['base_headers']['Content-Type'] - data = kwargs.pop('data', None) - kwargs['data'] = serializers[content_type](data) if data else data - return kwargs diff --git a/balanced/config.py b/balanced/config.py index 2f20b70..be6af86 100644 --- a/balanced/config.py +++ b/balanced/config.py @@ -1,34 +1,87 @@ -from balanced import __version__ -from balanced.utils import urljoin - - -def _make_user_agent(): - return 'balanced-python/' + __version__ - - -class Config(object): - - def __init__(self): - super(Config, self).__init__() - self.api_key_secret = None - self.api_version = '1' - self.root_uri = 'https://api.balancedpayments.com' - # this is requests' config that get passed down on - # every http operation. - # - # see: http://docs.python-requests.org/en/v0.10.4/api/#configurations - self.requests = { - 'base_headers': { - 'Accept': 'application/json', - 'Content-Type': 'application/json', - 'User-agent': _make_user_agent(), - }, +from __future__ import unicode_literals +from datetime import datetime + +import simplejson as json +from iso8601 import iso8601 +import wac + +from balanced import exc +from . import __version__ + + +API_ROOT = 'https://api.balancedpayments.com' + +# config +def configure( + user=None, + root_url=API_ROOT, + api_revision='1.1', + user_agent='balanced-python/' + __version__, + **kwargs +): + # http + kwargs['client_agent'] = 'knox-client/' + __version__ + if 'headers' not in kwargs: + kwargs['headers'] = { + 'accept': 'application/vnd.api+json;revision=' + api_revision } + kwargs['headers']['Accept-Type'] = 'application/json' + if 'error_cls' not in kwargs: + kwargs['error_cls'] = exc.HTTPError + if user: + kwargs['auth'] = (user, None) + # apply + Client.config = Config(root_url, user_agent=user_agent, **kwargs) + + +class Config(wac.Config): + + api_revision = None + + user_agent = None + + +default_config = Config(API_ROOT) + + +# client + +class Client(wac.Client): + + config = default_config + + @staticmethod + def _default_serialize(o): + if isinstance(o, datetime): + return o.isoformat() + 'Z' + raise TypeError( + 'Object of type {} with value of {} is not JSON serializable' + .format(type(o), repr(o))) + + def _serialize(self, data): + data = json.dumps(data, default=self._default_serialize) + return 'application/json', data + + @staticmethod + def _parse_deserialized(e): + if isinstance(e, dict): + for k in e.iterkeys(): + if k.endswith('_at') and isinstance(e[k], basestring): + e[k] = iso8601.parse_date(e[k]) + return e + + def _deserialize(self, response): + if response.headers['Content-Type'] != 'application/json': + raise Exception("Unsupported content-type '{}'".format( + response.headers['Content-Type'] + )) + if not response.content: + return None + data = json.loads(response.content) + return self._parse_deserialized(data) + + +configure() - @property - def uri(self): - return urljoin(self.root_uri, self.version) +client = Client() - @property - def version(self): - return 'v' + self.api_version diff --git a/balanced/exc.py b/balanced/exc.py index b0b97ac..58f55a3 100644 --- a/balanced/exc.py +++ b/balanced/exc.py @@ -1,4 +1,6 @@ -import requests +from __future__ import unicode_literals + +import wac class BalancedError(Exception): @@ -17,30 +19,36 @@ class MultipleResultsFound(BalancedError): pass -class HTTPError(BalancedError, requests.HTTPError): - """ - Baseclass for all HTTP exceptions. - """ - status_code = None +class HTTPError(BalancedError, wac.Error): + class __metaclass__(type): -class MoreInformationRequiredError(HTTPError): - redirect_uri = None + def __new__(meta_cls, name, bases, dikt): + cls = type.__new__(meta_cls, name, bases, dikt) + cls.types = [ + getattr(cls, k) + for k in dir(cls) + if k.isupper() and isinstance(getattr(cls, k), basestring) + ] + cls.type_to_error.update(zip(cls.types, [cls] * len(cls.types))) + return cls + @classmethod + def from_response(cls, r): + if not hasattr(r, 'data') or 'type' not in r.data: + exc = wac.Error + else: + exc = cls.type_to_error.get(r.data['type'], HTTPError) + return exc(r) -class FundingInstrumentVerificationFailure(HTTPError): - pass + type_to_error = {} -class BankAccountVerificationFailure(FundingInstrumentVerificationFailure): +class FundingInstrumentVerificationFailure(HTTPError): pass -category_code_map = { - 'bank-account-authentication-not-pending': - BankAccountVerificationFailure, - 'bank-account-authentication-failed': - BankAccountVerificationFailure, - 'bank-account-authentication-already-exists': - BankAccountVerificationFailure, -} +class BankAccountVerificationFailure(FundingInstrumentVerificationFailure): + AUTH_NOT_PENDING = 'bank-account-authentication-not-pending' + AUTH_FAILED = 'bank-account-authentication-failed' + AUTH_DUPLICATED = 'bank-account-authentication-already-exists' diff --git a/balanced/resources.py b/balanced/resources.py index b848279..63dcc18 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -1,1392 +1,240 @@ -import functools -import itertools -import logging -import urlparse -import warnings - -import iso8601 - -from balanced.utils import ( - cached_property, url_encode, classproperty, requires_participant, -) -from balanced.exc import ( - NoResultFound, MultipleResultsFound, ResourceError, -) - - -LOGGER = logging.getLogger(__name__) - - -class _ResourceRegistry(dict): - - def add(self, resource_class): - self[resource_class.__name__] = resource_class - self[resource_class.RESOURCE['singular']] = resource_class - self[resource_class.RESOURCE['collection']] = resource_class - if resource_class.RESOURCE['nested_under']: - # nested_as = ['marketplaces', 'events'] - # collection = 'logs' - # store nested_under as |marketplaces/events/logs - nested_under = self._as_nested( - resource_class.RESOURCE['nested_under'] + [ - resource_class.RESOURCE['collection'] - ] - ) - self[nested_under] = resource_class - - def from_uri(self, uri): - if not uri: - return None - - split_uri = urlparse.urlsplit(uri.rstrip('/')) - # split_uri.path == '/v1/marketplaces/M123/events/E123' - # url == ['', 'v1', 'marketplaces', 'M123', 'events', 'E123'] - url = split_uri.path.split('/') # pylint: disable-msg=E1103 - - resource = self._from_nested(url) or self._from_url(url) - - return resource - - def _from_url(self, url_parts): - if url_parts[-1] in self: - resource = self[url_parts[-1]] - else: - resource = self[url_parts[-2]] - return resource - - def _from_nested(self, url_parts): - # ['marketplaces', 'events'] - parts = url_parts[2::2] - # we have a possible nested resource, check if it's specifically nested - if len(parts) > 1: - nested = self._as_nested(parts) - if nested in self: - resource = self[nested] - return resource - return None - - def _as_nested(self, parts): - """ - >>> _ResourceRegistry()._as_nested(['marketplaces', 'events']) - '|marketplaces/events' - :param parts: list of parts to turn into a nested resource - :return: munged fungible - """ - return '|' + '/'.join(parts) - - -_RESOURCES = _ResourceRegistry() - - -class Page(object): - - def __init__(self, uri): - self.uri = uri - self.qs = {} - - def __getitem__(self, item): - if isinstance(item, slice): - start, stop, step = item.start, item.stop, item.step - - # can't use all() here because it doesnt - # fail fast. - if (isinstance(stop, int) and - isinstance(start, int) and - stop - start <= 0): - return [] +from __future__ import unicode_literals - elif any((isinstance(start, int) and start < 0, - isinstance(stop, int) and stop < 0)): - return self.all()[item] - - res = self._slice(start, stop) - if step is not None: - return list(res)[None:None:item.step] - else: - return list(res) - else: - # negative index - if item < 0: - # e.g. let len(self) = 3 and item = -1 - # self[length of collection - item : length of collection] - # self[3 - 1: 3] - length = len(self) - return list(self[length + item:length])[0] - # positive index - # let item = 2 - # self[2:3][0] - return list(self[item:item + 1])[0] - - def _slice(self, start, stop): - if start is not None and stop is not None: - self.qs['offset'] = (self.offset or 0) + start - self.qs['limit'] = stop - start - elif stop is not None: - self.qs['limit'] = stop - elif start is not None: - self.qs['offset'] = (self.offset or 0) + start - return itertools.islice(self, start, stop) - - def __len__(self): - return self.total - - def __iter__(self): - if self.next_page is not None: - for resource in itertools.chain(self.items, self.next_page): - yield resource - else: - # New-style, no pagination - for resource in self.items: - yield resource - - @classmethod - def from_uri_and_params(cls, uri, params): - parsed_uri = urlparse.urlparse(uri) - parsed_qs = urlparse.parse_qs(parsed_uri.query) - if params and isinstance(params, (dict, )): - parsed_qs.update(params) - uri = parsed_uri.path - if parsed_qs: - uri = uri + '?' + url_encode(parsed_qs) - return cls(uri) - - @classmethod - def from_response(cls, uri, **kwargs): - instance = cls.from_uri_and_params(uri, None) - setattr(instance, '_lazy_loaded', kwargs) - return instance - - def __repr__(self): - _resource = _RESOURCES.from_uri(self.uri) - return ''.format(_resource, self.qs) - - def all(self): - return list(self) - - def one(self): - ret = list(self[0:2]) - - if len(ret) == 1: - return ret[0] - elif not len(ret): - raise NoResultFound( - 'Nothing found for one(). Make sure balanced.configure() ' - 'is invoked with your API key secret') - else: - raise MultipleResultsFound('Multiple items were found for one()') - - @cached_property - def _lazy_loaded(self): - page = self._fetch(self.uri) - response = Resource.http_client.get(page.uri) - return response.deserialized - - def _fetch(self, uri): - if not uri: - return [] - return Page.from_uri_and_params(uri, self.qs) - - @property - def items(self): - for item in self._lazy_loaded['items']: - _resource = _RESOURCES.from_uri(item['uri']) - yield _resource(**item) +import uritemplate +import wac - @property - def total(self): - return self._lazy_loaded['total'] +from balanced import exc, config - def count(self): - copied_dict = self.qs.copy() - copied_dict['offset'] = 0 - copied_dict['limit'] = 1 - return Page.from_uri_and_params(self.uri, copied_dict).total - @property - def offset(self): - return self._lazy_loaded['offset'] +registry = wac.ResourceRegistry(route_prefix='/') - @property - def limit(self): - return self._lazy_loaded['limit'] - @property - def next_page(self): - if 'next_uri' in self._lazy_loaded: - uri = self._lazy_loaded['next_uri'] - return self._fetch(uri) - return None +class JSONSchemaCollection(wac.ResourceCollection): + pass - @property - def last_page(self): - uri = self._lazy_loaded['last_uri'] - return self._fetch(uri) - @property - def first_page(self): - uri = self._lazy_loaded['first_uri'] - return self._fetch(uri) +class ObjectifyMixin(wac._ObjectifyMixin): - @property - def previous_page(self): - uri = self._lazy_loaded['previous_uri'] - return self._fetch(uri) + def _objectify(self, resource_cls, **fields): + self._construct_from_response(**fields) - def filter(self, *args, **kwargs): - """ - Allows query string filters to be passed down as keyword arguments - for easier filtering: + def _construct_from_response(self, **payload): + payload = self._hydrate(payload) + meta = payload.pop('meta', None) - credits = marketplace.credits.filter(limit=10) - for c in credits: - .... + if isinstance(self, wac.Page): + for key, value in meta.iteritems(): + setattr(self, key, value) - """ - query_arguments = {} - for expression in args: - if not isinstance(expression, FilterExpression): - raise ValueError('"{0}" is not a FilterExpression'.format( - expression)) - if expression.op == '=': - f = '{0}'.format(expression.field.name) + # the remaining keys here are just hypermedia resources + for _type, resources in payload.iteritems(): + # Singular resources are represented as JSON objects. However, + # they are still wrapped inside an array: + cls = Resource.registry[_type] + # if we couldn't determine the type of this object we use a + # generic resource object, target that instead. + if isinstance(self, (cls, Resource)): + # we are loading onto our self, self is the target + target = self else: - f = '{0}[{1}]'.format(expression.field.name, expression.op) - values = expression.value - if not isinstance(values, (list, tuple)): - values = [values] - query_arguments[f] = ','.join(str(v) for v in values) - for k, values in kwargs.iteritems(): - f = '{0}'.format(k) - if not isinstance(values, (list, tuple)): - values = [values] - v = ','.join(str(v) for v in values) - query_arguments[f] = v - qs = self.qs.copy() - qs.update(query_arguments) - return Page.from_uri_and_params(self.uri, qs) - - def sort(self, *args): - sorts = [] - for expression in args: - if not isinstance(expression, SortExpression): - raise ValueError('"{0}" is not a SortExpression'.format( - expression)) - v = '{0},{1}'.format( - expression.field.name, - 'asc' if expression.ascending else 'desc') - sorts.append(v) - if 'sort' in self.qs: - self.qs['sort'].extend(sorts) - else: - self.qs['sort'] = sorts - return self - - -class Resource(object): - - #: http_client is the class variable representing a - #: :class:`~balanced.http_client.HTTPClient` - http_client = None - - def __repr__(self): - attrs = ', '.join(['%s=%s' % (k, repr(v)) for k, v in - self.__dict__.iteritems()]) - return '%s(%s)' % (self.__class__.__name__, attrs) - - @classproperty - def query(cls): - uri = uri_discovery(cls) - return Page.from_uri_and_params(uri, params=None) - - @classmethod - def find(cls, uri, **kwargs): - resp = cls.http_client.get(uri, **kwargs) - return cls(**resp.deserialized) - - def save(self): - instance_attributes = self.__dict__.copy() - - uri = instance_attributes.pop('uri', None) - if not uri: - uri = self.RESOURCE['collection'] - - for key, value in instance_attributes.items(): - if isinstance(value, Resource): - instance_attributes.pop(key) - - http_method = 'put' if self.id else 'post' - method = getattr(self.http_client, http_method) - - resource = method(uri, data=instance_attributes) - new_klass = self.__class__(**resource.deserialized) - self.__dict__.clear() - self.__dict__.update(new_klass.__dict__) - return self + target = cls(**payload) - def delete(self): - self.http_client.delete(self.uri) + for resource_body in resources: + for key, value in resource_body.iteritems(): + if key in ('links',): + continue + setattr(target, key, value) - def unstore(self): - self.delete() - - -def uri_discovery(resource): - uri = resource.RESOURCE['collection'] - if resource.RESOURCE['resides_under_marketplace']: - uri = '{0}/{1}'.format( - Marketplace.my_marketplace.uri, - resource.RESOURCE['collection'] - ) - return uri - - -def is_collection(uri): - uri = urlparse.urlparse(uri).path - _, _, end_identifier = uri.rstrip('/').rpartition('/') - return end_identifier in _RESOURCES - - -def from_uri(uri, **kwargs): - resource = _RESOURCES.from_uri(uri) - if is_collection(uri): - return Page.from_uri_and_params(uri, params=kwargs) - else: - return resource.find(uri, **kwargs) - - -def is_subresource(value): - return isinstance(value, dict) and 'uri' in value - - -def is_date(value): - return ( - value and - isinstance(value, basestring) and - 'Z' in value - ) - - -def is_uri(key): - return isinstance(key, basestring) and key.endswith('_uri') + # if loading into a collection + if target != self: + # ensure that we have a collection to hold this item + if not hasattr(self, _type): + setattr(self, _type, []) + getattr(self, _type).append(target) + @classmethod + def _hydrate(cls, payload): + """ + Construct links for objects + """ + links = payload.pop('links', {}) + for key, uri in links.iteritems(): + variables = uritemplate.variables(uri) + # marketplaces.card_holds + collection, resource_type = key.split('.') + item_attribute = item_property = resource_type + # if parsed from uri then retrieve. e.g. customer.id + for v in variables: + collection, item_attribute = v.split('.') + + for item in payload[collection]: + # find type, fallback to Resource if we can't determine the + # type e.g. marketplace.owner_customer + collection_type = Resource.registry.get(resource_type, Resource) + if item_attribute in item['links']: + # singular + uri_value = item['links'][item_attribute] + parsed_link = uritemplate.expand( + uri, {key: uri_value} + ) + if uri_value: + item_property += '_href' + lazy_href = parsed_link + else: + lazy_href = None + else: + # collection + uri_value = item.get(item_attribute, None) + parsed_link = uritemplate.expand( + uri, {'.'.join([collection, item_attribute]): uri_value} + ) + lazy_href = JSONSchemaCollection( + collection_type, parsed_link) + item.setdefault(item_property, lazy_href) + return payload -class _LazyURIDescriptor(object): - def __init__(self, key): - self.key = key +class JSONSchemaPage(wac.Page, ObjectifyMixin): - def __get__(self, obj, objtype=None): - if obj is None: - return self - uri = getattr(obj, self.key) - if uri is None: - return None - return from_uri(uri) + @property + def items(self): + return getattr(self, self.resource_cls.type) -def make_constructors(): - """Makes an initializer constructor that decends - recursively into all schema specified for sub resources. +class JSONSchemaResource(wac.Resource, ObjectifyMixin): - """ + collection_cls = JSONSchemaCollection - # these keys have key/value data but it should not be expanded into a - # resource. - NON_EXPANDABLE_KEYS = ['meta'] + page_cls = JSONSchemaPage - def the_new(cls, **kwargs): - for key in kwargs.iterkeys(): + def __getattr__(self, item): + if isinstance(item, basestring): + suffix = '_href' + href = getattr(self, item + suffix, None) + if href: + setattr(self, item, Resource.get(href)) + return getattr(self, item) - if not is_uri(key): - continue - new_key = key.replace('_uri', '') +class Resource(JSONSchemaResource): - if hasattr(cls, new_key): - continue + client = config.client - setattr(cls, new_key, _LazyURIDescriptor(key)) + registry = registry - return object.__new__(cls, **kwargs) + uri_gen = wac.URIGen('/resources', '{resource}') - def the_init(self, **kwargs): - self.id = None - # iterate through the schema that comes back - for key, value in kwargs.iteritems(): - if key not in NON_EXPANDABLE_KEYS and is_subresource(value): - # sub resources have a uri in them - uri = value['uri'] - try: - resource = _RESOURCES.from_uri(uri) - except KeyError: - LOGGER.warning( - "Unknown resource '%s'. Make sure it is " - "added in resources.py. Defaulting to dictionary " - "based access", key) - else: - if is_collection(uri): - value = Page.from_response(**value) - else: - value = resource(**value) - elif key.endswith('_at') and is_date(value): - value = iso8601.parse_date(value) - setattr(self, key, value) +class Marketplace(Resource): - if not hasattr(self, 'uri'): - self.uri = uri_discovery(self) + type = 'marketplaces' - return the_init, the_new + uri_gen = wac.URIGen('/marketplaces', '{marketplace}') + @classmethod + def mine(cls): + """ + Returns an instance representing the marketplace associated with the + current API key used for this request. + """ + return cls.query.one() -class _ResourceField(object): - def __init__(self, name): - self.name = name +class APIKey(Resource): - def __getattr__(self, name): - return _ResourceField('{0}.{1}'.format(self.name, name)) + type = 'api_keys' - def asc(self): - return SortExpression(self, ascending=True) + uri_gen = wac.URIGen('/api_keys', '{api_key}') - def desc(self): - return SortExpression(self, ascending=False) - def in_(self, *args): - return FilterExpression(self, 'in', args, '!in') - - def startswith(self, prefix): - if not isinstance(prefix, basestring): - raise ValueError('"startswith" prefix must be a string') - return FilterExpression(self, 'startswith', prefix, None) - - def endswith(self, suffix): - if not isinstance(suffix, basestring): - raise ValueError('"endswith" suffix must be a string') - return FilterExpression(self, 'endswith', suffix, None) - - def contains(self, fragment): - if not isinstance(fragment, basestring): - raise ValueError('"contains" fragment must be a string') - return FilterExpression(self, 'contains', fragment, '!contains') - - def __lt__(self, other): - if isinstance(other, (list, tuple)): - raise ValueError('"<" operand must be a single value') - return FilterExpression(self, '<', other, '>=') - - def __le__(self, other): - if isinstance(other, (list, tuple)): - raise ValueError('"<=" operand must be a single value') - return FilterExpression(self, '<=', other, '>') - - def __eq__(self, other): - if isinstance(other, (list, tuple)): - raise ValueError('"==" operand must be a single value') - return FilterExpression(self, '=', other, '!=') - - def __ne__(self, other): - if isinstance(other, (list, tuple)): - raise ValueError('"!=" operand must be a single value') - return FilterExpression(self, '!=', other, '=') - - def __gt__(self, other): - if isinstance(other, (list, tuple)): - raise ValueError('">" operand must be a single value') - return FilterExpression(self, '>', other, '<=') - - def __ge__(self, other): - if isinstance(other, (list, tuple)): - raise ValueError('">=" operand must be a single value') - return FilterExpression(self, '>=', other, '<') - - -class _ResourceFields(object): - - def __getattr__(self, name): - field = _ResourceField(name) - setattr(self, name, field) - return field - - -def resource_base(singular=None, - collection=None, - metadata=None, - resides_under_marketplace=True, - nested_under=None): - - class Base(type): - - def __new__(mcs, classname, bases, clsdict): - the_init, the_new = make_constructors() - - fields = _ResourceFields() - clsdict.update({ - 'RESOURCE': metadata or { - 'singular': singular or classname.lower(), - 'collection': collection, - 'resides_under_marketplace': resides_under_marketplace, - 'nested_under': nested_under, - }, - '__init__': the_init, - '__new__': the_new, - 'fields': fields, - 'f': fields, - }) - - the_class = type.__new__(mcs, classname, bases, clsdict) - _RESOURCES.add(the_class) - return the_class - - return Base - - -class Account(Resource): - """ - An Account represents a user within your Marketplace. An Account can have - two `roles`. If the Account has the `buyer` role then you may create - Debits using this Account. If they have the `merchant` role then you may - create Credits to transfer funds to this Account. - """ - __metaclass__ = resource_base(collection='accounts') - - def debit(self, - amount=None, - appears_on_statement_as=None, - hold_uri=None, - meta=None, - description=None, - source_uri=None, - merchant_uri=None, - on_behalf_of=None): - """ - :rtype: A `Debit` representing a flow of money from this Account to - your Marketplace's escrow account. - :param amount: Amount to hold in cents, must be >= 50 - :param appears_on_statement_as: description of the payment as it needs - to appear on customers card statement - :param meta: Key/value collection - :param description: Human readable description - :param source_uri: A specific funding source such as a `Card` - associated with this account. If not specified the `Card` most - recently added to this `Account` is used. - :param merchant_uri: merchant providing service or delivering product. - (deprecated - use on_behalf_of instead) - :param on_behalf_of: the account uri of whomever is providing the - service or delivering the product. - """ - if not any((amount, hold_uri)): - raise ResourceError('Must have an amount or hold uri') - if all([hold_uri, source_uri]): - raise ResourceError('Must specify either hold_uri OR source_uri') - - if merchant_uri and not on_behalf_of: - warnings.warn( - 'merchant_uri is DEPRECATED - use the on_behalf_of ' - 'parameter', - UserWarning, - stacklevel=2 - ) - merchant_uri = None - on_behalf_of = merchant_uri - - if on_behalf_of: - - if hasattr(on_behalf_of, 'uri'): - on_behalf_of = on_behalf_of.uri - - if not isinstance(on_behalf_of, basestring): - raise ValueError( - 'The on_behalf_of parameter needs to be an account uri' - ) - - if on_behalf_of == self.uri: - raise ValueError( - 'The on_behalf_of parameter MAY NOT be the same account' - ' as the account you are debiting!' - ) - - meta = meta or {} - return Debit( - uri=self.debits_uri, - amount=amount, - appears_on_statement_as=appears_on_statement_as, - hold_uri=hold_uri, - meta=meta, - description=description, - source_uri=source_uri, - merchant_uri=merchant_uri, - on_behalf_of_uri=on_behalf_of, - ).save() - - def hold(self, amount, description=None, meta=None, source_uri=None, - appears_on_statement_as=None): - """ - Creates a new Hold that represents a reservation of money on this - Account which can be transferred via a Debit to your Marketplace - up to 7 days later. - - :param amount: Amount to hold in cents, must be >= 50 - :param description: Human readable description - :param source_uri: A specific funding source such as a `Card` - associated with this account. If not specified the `Card` most - recently added to this `Account` is used. - :param meta: Key/value collection - - :rtype: A `Hold` representing the reservation of funds from this - Account to your Marketplace. - """ - meta = meta or {} - return Hold( - uri=self.holds_uri, - amount=amount, - meta=meta, - description=description, - source_uri=source_uri, - appears_on_statement_as=appears_on_statement_as, - ).save() - - def credit(self, - amount, - description=None, - meta=None, - destination_uri=None, - appears_on_statement_as=None, - debit_uri=None): - """ - Returns a new Credit representing a transfer of funds from your - Marketplace's escrow account to this Account. - - :param amount: Amount to hold in cents - :param description: Human readable description - :param meta: Key/value collection - :param destination_uri: A specific funding destination such as a - `BankAccount` associated with this account. - :param appears_on_statement_as: description of the payment as it needs - :param debit_uri: the debit corresponding to this particular credit - - Returns: - A `Credit` representing the transfer of funds from your - Marketplace's escrow account to this Account. - """ - meta = meta or {} - return Credit( - uri=self.credits_uri, - amount=amount, - meta=meta, - description=description, - appears_on_statement_as=appears_on_statement_as, - destination_uri=destination_uri, - debit_uri=debit_uri, - ).save() - - def add_card(self, card_uri): - """ - Associates the `Card` represented by `card_uri` with this `Account`. - """ - self.card_uri = card_uri - self.save() +class CardHold(Resource): - def add_bank_account(self, bank_account_uri): - """ - Associates the BankAccount represented by `bank_account_uri` with this - Account. - """ - self.bank_account_uri = bank_account_uri - self.save() + type = 'card_holds' - def promote_to_merchant(self, merchant): - """ - Underwrites this account as a merchant. The `merchant` parameter can - be either a dictionary of merchant data, or a URI. - """ - if isinstance(merchant, basestring): - self.merchant_uri = merchant - else: - self.merchant = merchant - self.save() - def add_merchant(self, merchant): - """ - Deprecated alias of `promote_to_merchant` method. - """ - warnings.warn('The add_merchant method will be deprecated in the ' - 'next minor version of balanced-python, use the ' - 'promote_to_merchant method instead', - UserWarning) - self.promote_to_merchant(merchant) - - -def cached_per_api_key(bust_cache=False): - def cacher(f): - @functools.wraps(f) - def wrapped(*args, **kwargs): - from balanced import config, CACHE - cached = CACHE[config.api_key_secret].get(f.__name__) - if bust_cache or not cached: - cached = f(*args, **kwargs) - CACHE[config.api_key_secret][f.__name__] = cached - return cached - - return wrapped - return cacher - - -class Merchant(Resource): - """ - - """ - __metaclass__ = resource_base( - collection='merchants', - resides_under_marketplace=False) - - @classproperty - @cached_per_api_key() - def me(cls): - """ - Returns the Merchant associated with your Marketplace. - :rtype: `Merchant` - """ - return cls.query.one() +class Transaction(Resource): - @cached_per_api_key(bust_cache=True) - def save(self): - return super(Merchant, self).save() + type = 'transactions' + def refund(self, **kwargs): + raise NotImplementedError() -class Marketplace(Resource): - """ - - """ - __metaclass__ = resource_base( - collection='marketplaces', - resides_under_marketplace=False) - - def create_card(self, - name, - card_number, - expiration_month, - expiration_year, - security_code=None, - street_address=None, - city=None, - region=None, - postal_code=None, - country_code=None, - phone_number=None, - ): - """ - Tokenizes a `Card` which can then be associated with an Account. + def reverse(self, **kwargs): + raise NotImplementedError() - :rtype: `Card` - """ - if region: - warnings.warn('The region parameter will be deprecated in the ' - 'next minor version of balanced-python', - UserWarning) - - return Card( - card_number=card_number, - expiration_month=expiration_month, - expiration_year=expiration_year, - name=name, - security_code=security_code, - street_address=street_address, - postal_code=postal_code, - city=city, - region=region, - country_code=country_code, - phone_number=phone_number, - ).save() - - def create_bank_account(self, - name, - account_number, - bank_code, - ): - """ - Tokenizes a `BankAccount` which can then be associated with an Account. +class Credit(Transaction): - :rtype: `BankAccount` - """ - return BankAccount( - uri=self.bank_accounts_uri, - name=name, - account_number=account_number, - bank_code=bank_code, - ).save() - - def create_buyer(self, email_address, card_uri, name=None, meta=None): - """ - Create a buyer Account associated with this Marketplace. - """ - meta = meta or {} - return Account( - uri=self.accounts_uri, - email_address=email_address, - card_uri=card_uri, - name=name, - meta=meta, - ).save() - - def create_merchant(self, email_address, merchant=None, - bank_account_uri=None, name=None, meta=None, - merchant_uri=None): - """ - Creates an Account associated with this Marketplace with the role - `merchant`. + type = 'credits' - This method may return 300 if you have not supplied enough information - for Balanced to identify the Merchant. You may re-submit the request - with more information, or redirect the Merchant to the supplied url - so they may manually sign up. - When you receive a `merchant_uri` from balanced, pass it in: +class Debit(Transaction): - Account.create_merchant('mrch@example.com', - merchant_uri='/v1/TEST-MRxxxx') + type = 'debits' - :rtype: Account - :raises: balanced.exc.HTTPError - Check the `status_code` and `category_code` properties of the - exception. +class Refund(Transaction): - """ - if not any([merchant, merchant_uri]): - raise ResourceError('Must have merchant or merchant_uri') - meta = meta or {} - return Account( - uri=self.accounts_uri, - email_address=email_address, - merchant=merchant, - merchant_uri=merchant_uri, - bank_account_uri=bank_account_uri, - name=name, - meta=meta, - ).save() - - @staticmethod - def create_customer(**kwargs): - """ - Creates a Customer under the marketplace associated with the current - API key used for this request. + type = 'refunds' - :rtype: Customer - :raises: balanced.exc.HTTPError - Check the `status_code` and `category_code` properties of the - exception. +class Reversal(Transaction): - """ - kwargs['resides_under_marketplace'] = True - return Customer(**kwargs).save() + type = 'reversals' - @classproperty - @cached_per_api_key() - def my_marketplace(cls): - """ - Returns an instance representing the marketplace associated with the - current API key used for this request. - """ - return cls.query.one() - mine = my_marketplace +class FundingInstrument(Resource): - @cached_per_api_key(bust_cache=True) - def save(self): - return super(Marketplace, self).save() + type = 'funding_instruments' + def associate_to(self, customer): + raise NotImplementedError() -class Debit(Resource): - """ - A Debit represents a transfer of funds from a buyer's Account to your - Marketplace's escrow account. + def debit(self, **kwargs): + raise NotImplementedError() - A Debit may be created directly, or it will be created as a side-effect - of capturing a Hold. If you create a Debit directly it will implicitly - create the associated Hold if the funding source supports this. + def credit(self, **kwargs): + raise NotImplementedError() - If no Hold is specified, the Debit will by default be created using the - most recently added funding source associated with the Account. You - cannot change the funding source between creating a Hold and capturing - it. - """ - __metaclass__ = resource_base(collection='debits') - def refund(self, amount=None, description=None, meta=None): - """ - Refunds this Debit. If no amount is specified it will refund the entire - amount of the Debit, you may create many Refunds up to the sum total - of the original Debit's amount. +class BankAccount(FundingInstrument): - :rtype: Refund - """ - meta = meta or {} - return Refund( - uri=self.refunds_uri, - debit_uri=self.uri, - amount=amount, - description=description, - meta=meta, - ).save() + type = 'bank_accounts' -class Transaction(Resource): - """ - Any transfer, or potential transfer of, funds from or to, your Marketplace. - E.g. a Credit, Debit, Refund, or Hold. - """ - __metaclass__ = resource_base(collection='transactions') - - -class Credit(Resource): - """ - A Credit represents a transfer of funds from your Marketplace's - escrow account to a Merchant's Account within your Marketplace. - - By default, a Credit is sent to the most recently added funding - destination associated with an Account. You may specify a specific - funding source. - """ - __metaclass__ = resource_base(collection='credits', - resides_under_marketplace=False) - - def reverse(self, amount=None, description=None, meta=None): - """ - Reverse a Credit. If no amount is specified it will reverse the entire - amount of the Credit, you may create many Reversals up to the sum of the - total of the original Credit amount. +class BankAccountVerification(Resource): - :rtype: Reversal - """ - meta = meta or {} - return Reversal( - uri=self.reversals_uri, - credits_uri=self.uri, - amount=amount, - description=description, - meta=meta, - ).save() - - -class Refund(Resource): - """ - A Refund represents a reversal of funds from a Debit. A Debit can have - many Refunds associated with it up to the total amount of the original - Debit. Funds are returned to your Marketplace's Merchant Account - proportional to the amount of the Refund. - """ - __metaclass__ = resource_base(collection='refunds') - -class Reversal(Resource): - """ - A Reverse represents a reversal of funds from a Credit. A Credit can have - many Reverses associated with it up to the total amount of the original - Credit. Funds are returned to your Marketplace's Merchant Account - proportional to the amount of the Refund. - """ - __metaclass__ = resource_base(collection='reversals') - -class Hold(Resource): - """ - A Hold is a reservation of funds on a funding source such as a Card. This - reservation is guaranteed until the `expires_at` date. You may capture - the Hold at any time before then which will create a Debit and transfer - the funds to your Marketplace. If you do not capture the Hold it will - be marked as invalid which is represented by the `is_void` field being - set to `True`. - - By default a Hold is created using the most recently added funding source - on the Account. You may specify a specific funding source such as a `Card` - or `BankAccount`. - - """ - __metaclass__ = resource_base(collection='holds') - - def void(self): - """ - Cancels an active Hold. - """ - self.is_void = True - self.save() + type = 'bank_account_verifications' - def capture(self, **kwargs): - """ - Captures a valid Hold and returns a Debit representing the transfer of - funds from the buyer's Account to your Marketplace. - :rtype: Debit - """ - participant = getattr(self, 'account', None) or self.customer - return participant.debit(hold_uri=self.uri, **kwargs) +class Card(FundingInstrument): + type = 'cards' -class APIKey(Resource): - """ - Your ApiKey is used to authenticate when performing operations on the - Balanced API. - - **NOTE:** Never give out or expose your ApiKey. You may POST to this - endpoint to create new ApiKeys and then DELETE any old keys. - """ - __metaclass__ = resource_base( - singular='api_key', - collection='api_keys', - resides_under_marketplace=False) - - -class Card(Resource): - """ - A card represents a source of funds for an Account. You may Hold or Debit - funds from the account associated with the Card. - """ - __metaclass__ = resource_base(collection='cards') - - @requires_participant - def debit(self, amount=None, appears_on_statement_as=None, - hold_uri=None, meta=None, description=None): - """ - Creates a Debit of funds from this Card to your Marketplace's escrow - account. - If `appears_on_statement_as` is nil, then Balanced will use the - `domain_name` property from your Marketplace. +class Customer(Resource): - :rtype: Debit - """ - if not any((amount, hold_uri)): - raise ResourceError('Must have amount or hold_uri') - - meta = meta or {} - participant = getattr(self, 'account', None) or self.customer - return Debit( - uri=participant.debits_uri, - amount=amount, - appears_on_statement_as=appears_on_statement_as, - hold_uri=hold_uri, - meta=meta, - description=description, - source_uri=self.uri, - ).save() - - @requires_participant - def hold(self, amount, meta=None, description=None): - """ - Creates a Hold of funds from this Card to your Marketplace. + type = 'customers' - :rtype: Hold - """ - meta = meta or {} - participant = getattr(self, 'account', None) or self.customer - return Hold( - uri=participant.holds_uri, - amount=amount, - meta=meta, - description=description, - source_uri=self.uri, - ).save() - - -class BankAccount(Resource): - """ - A BankAccount is both a source, and a destination of, funds. You may - create Debits and Credits to and from, this funding source. - - *NOTE:* The BankAccount resource does not support creating a Hold. - """ - __metaclass__ = resource_base(collection='bank_accounts', - resides_under_marketplace=False) - - @requires_participant - def debit(self, amount, appears_on_statement_as=None, - meta=None, description=None): - """ - Creates a Debit of funds from this BankAccount to your Marketplace's - escrow account. - :param appears_on_statement_as: If None then Balanced will use the - `domain_name` property from your Marketplace. - :rtype: Debit - """ - if not amount or amount <= 0: - raise ResourceError('Must have an amount') - meta = meta or {} - participant = getattr(self, 'account', None) or self.customer - return Debit( - uri=participant.debits_uri, - amount=amount, - appears_on_statement_as=appears_on_statement_as, - meta=meta, - description=description, - source_uri=self.uri, - ).save() - - def credit(self, amount, description=None, meta=None): - """ - Creates a Credit of funds from your Marketplace's escrow account to - this BankAccount. +class Order(Resource): - :rtype: Credit - """ - if not amount or amount <= 0: - raise ResourceError('Must have an amount') - - meta = meta or {} - - if getattr(self, 'account', None): - uri = self.account.credits_uri - elif getattr(self, 'customer', None): - uri = self.customer.credits_uri - else: - uri = self.credits_uri - destination_uri = self.uri - - credit = Credit( - uri=uri, - amount=amount, - description=description, - meta=meta, - destination_uri=destination_uri, - ) - credit.save() - return credit - - def save(self): - # default type to 'checking' on create since it was not always required - if not getattr(self, 'id', None) and not hasattr(self, 'type'): - self.type = 'checking' - return super(BankAccount, self).save() - - def verify(self): - return BankAccountVerification( - uri=self.verifications_uri, - ).save() + type = 'orders' -class BankAccountVerification(Resource): - """ - Represents an attempt to authenticate a funding instrument so it can - perform verified operations. - """ - __metaclass__ = resource_base(collection='verifications', - nested_under=['bank_accounts'], - resides_under_marketplace=False) +class Callback(Resource): - def confirm(self, amount_1, amount_2): - self.amount_1 = amount_1 - self.amount_2 = amount_2 - return self.save() + type = 'callbacks' class Event(Resource): - """ - An Event is a snapshot of another resource at a point in time when - something significant occurred. Events are created when resources are - created, updated, deleted or otherwise change state such as a Credit being - marked as failed. - """ - __metaclass__ = resource_base(collection='events', - resides_under_marketplace=False) + + type = 'events' class EventCallback(Resource): - """ - Represents a single event being sent to a callback. - """ - __metaclass__ = resource_base(collection='callbacks', - nested_under=['events'], - resides_under_marketplace=False) + pass class EventCallbackLog(Resource): - """ - Represents a request and response from single attempt to notify a callback - of an event. - """ - __metaclass__ = resource_base(collection='logs', - nested_under=['events', 'callbacks'], - resides_under_marketplace=False) - - -class Callback(Resource): - """ - A Callback is a publicly accessible location that can receive POSTed JSON - data whenever an Event is generated. - """ - __metaclass__ = resource_base(collection='callbacks', - resides_under_marketplace=True) - - -class Customer(Resource): - """ - A customer represents a business or person within your Marketplace. A - customer can have many funding instruments such as cards and bank accounts - associated to them. - """ - __metaclass__ = resource_base(collection='customers', - resides_under_marketplace=False) - - def add_card(self, card): - """ - Associates the `Card` represented by `card` with this `Customer`. - """ - if isinstance(card, basestring): - self.card_uri = card - elif hasattr(card, 'uri'): - self.card_uri = card.uri - else: - self.card = card - self.save() - - def add_bank_account(self, bank_account): - """ - Associates the `BankAccount` represented by `bank_account` with this - `Customer`. - """ - if isinstance(bank_account, basestring): - self.bank_account_uri = bank_account - elif hasattr(bank_account, 'uri'): - self.bank_account_uri = bank_account.uri - else: - self.bank_account = bank_account - self.save() - - def debit(self, - amount=None, - appears_on_statement_as=None, - hold_uri=None, - meta=None, - description=None, - source_uri=None, - merchant_uri=None, - on_behalf_of=None, - **kwargs): - """ - :rtype: A `Debit` representing a flow of money from this Customer to - your Marketplace's escrow account. - :param amount: Amount to debit in cents, must be >= 50 - :param appears_on_statement_as: description of the payment as it needs - to appear on this customer's card statement - :param meta: Key/value collection - :param description: Human readable description - :param source_uri: A specific funding source such as a `Card` - associated with this customer. If not specified the `Card` most - recently added to this `Customer` is used. - :param on_behalf_of: the customer uri of whomever is providing the - service or delivering the product. - """ - if not any((amount, hold_uri)): - raise ResourceError('Must have an amount or hold uri') - if all([hold_uri, source_uri]): - raise ResourceError( - 'Must specify only one of hold_uri OR source_uri') - - if on_behalf_of: - - if hasattr(on_behalf_of, 'uri'): - on_behalf_of = on_behalf_of.uri - - if not isinstance(on_behalf_of, basestring): - raise ValueError( - 'The on_behalf_of parameter should to be a customer uri' - ) - - if on_behalf_of == self.uri: - raise ValueError( - 'The on_behalf_of parameter MAY NOT be the same customer' - ' as the account you are debiting!' - ) - - meta = meta or {} - return Debit( - uri=self.debits_uri, - amount=amount, - appears_on_statement_as=appears_on_statement_as, - hold_uri=hold_uri, - meta=meta, - description=description, - source_uri=source_uri, - merchant_uri=merchant_uri, - on_behalf_of_uri=on_behalf_of, - **kwargs - ).save() - - def credit(self, - amount, - description=None, - meta=None, - destination_uri=None, - appears_on_statement_as=None, - debit_uri=None, - **kwargs): - """ - Returns a new Credit representing a transfer of funds from your - Marketplace's escrow account to this Customer. - - :param amount: Amount to hold in cents - :param description: Human readable description - :param meta: Key/value collection - :param destination_uri: A specific funding destination such as a - `BankAccount` associated with this customer. - :param appears_on_statement_as: description of the payment as it needs - :param debit_uri: the debit corresponding to this particular credit - - Returns: - A `Credit` representing the transfer of funds from your - Marketplace's escrow account to this Customer. - """ - meta = meta or {} - return Credit( - uri=self.credits_uri, - amount=amount, - description=description, - meta=meta, - destination_uri=destination_uri, - appears_on_statement_as=appears_on_statement_as, - debit_uri=debit_uri, - **kwargs - ).save() - - @property - def active_card(self): - if isinstance(self.source, Card): - return self.source - cards = self.cards.filter(is_valid=True, sort='created_at,desc') - return cards[0] if cards else None - - @property - def active_bank_account(self): - if isinstance(self.destination, BankAccount): - return self.destination - bank_accounts = self.bank_accounts.filter(is_valid=True, - sort='created_at,desc') - return bank_accounts[0] if bank_accounts else None - - -class FilterExpression(object): - def __init__(self, field, op, value, inv_op): - self.field = field - self.op = op - self.value = value - self.inv_op = inv_op - - def __invert__(self): - if self.inv_op is None: - raise TypeError('"{0}" cannot be inverted', self) - return FilterExpression(self.field, self.inv_op, self.value, self.op) - - def __str__(self): - return '{0} {1} {2}'.format( - self.field.name, self.field.op, self.field.values) - - -class SortExpression(object): - def __init__(self, field, ascending): - self.field = field - self.ascending = ascending - - def __invert__(self): - return SortExpression(self.field, not self.ascending) + pass diff --git a/balanced/utils.py b/balanced/utils.py index 3201fa7..baffc48 100644 --- a/balanced/utils.py +++ b/balanced/utils.py @@ -1,286 +1 @@ -"""pretty much ripped off from Werkzeug with logic to hack around MultiDict - -Copyright: (c) 2011 by the Werkzeug Team. - -""" -import base64 -import hashlib -import hmac -import inspect - -from balanced.exc import ResourceError - - -try: - import simplejson as json -except ImportError: - import json - - -_JSON_ERROR_MSG = ( - 'Object of type {0} with value of {1} is not JSON serializable' -) - - -def iter_multi_items(mapping): - """Iterates over the items of a mapping yielding keys and values - without dropping any from more complex structures. - - """ - # do this hack to avoid importing MultiDict from werkzeug - # -- mahmoud - if hasattr(mapping, 'iteritems'): - try: - argspec = inspect.getargspec(mapping.iteritems) - except TypeError: - if isinstance(mapping, dict): - for key, value in mapping.iteritems(): - if isinstance(value, (tuple, list)): - for value in value: - yield key, value - else: - yield key, value - else: - if 'multi' in argspec.args: - for item in mapping.iteritems(multi=True): - yield item - else: - for item in mapping: - yield item - - -#: list of characters that are always safe in URLs. -_always_safe = ('ABCDEFGHIJKLMNOPQRSTUVWXYZ' - 'abcdefghijklmnopqrstuvwxyz' - '0123456789_.-') -_safe_map = dict((c, c) for c in _always_safe) -for i in xrange(0x80): - c = chr(i) - if c not in _safe_map: - _safe_map[c] = '%%%02X' % i -_safe_map.update((chr(i), '%%%02X' % i) for i in xrange(0x80, 0x100)) -_safemaps = {} - - -def _quote(s, safe='/', _join=''.join): - assert isinstance(s, str), 'quote only works on bytes' - if not s or not s.rstrip(_always_safe + safe): - return s - try: - quoter = _safemaps[safe] - except KeyError: - safe_map = _safe_map.copy() - safe_map.update([(c, c) for c in safe]) - _safemaps[safe] = quoter = safe_map.__getitem__ - return _join(map(quoter, s)) - - -def _quote_plus(s, safe=''): - if ' ' in s: - return _quote(s, safe + ' ').replace(' ', '+') - return _quote(s, safe) - - -def url_encode(obj, charset='utf-8', encode_keys=False, sort=False, key=None, - separator='&'): - """URL encode a dict/`MultiDict`. If a value is `None` it will not appear - in the result string. Per default only values are encoded into the target - charset strings. If `encode_keys` is set to ``True`` unicode keys are - supported too. - - If `sort` is set to `True` the items are sorted by `key` or the default - sorting algorithm. - - .. versionadded:: 0.5 - `sort`, `key`, and `separator` were added. - - :param obj: the object to encode into a query string. - :param charset: the charset of the query string. - :param encode_keys: set to `True` if you have unicode keys. - :param sort: set to `True` if you want parameters to be sorted by `key`. - :param separator: the separator to be used for the pairs. - :param key: an optional function to be used for sorting. For more details - check out the :func:`sorted` documentation. - """ - iterable = iter_multi_items(obj) - if sort: - iterable = sorted(iterable, key=key) - tmp = [] - for key, value in iterable: - if value is None: - continue - if encode_keys and isinstance(key, unicode): - key = key.encode(charset) - else: - key = str(key) - if isinstance(value, unicode): - value = value.encode(charset) - else: - value = str(value) - tmp.append('%s=%s' % (_quote(key), - _quote_plus(value))) - return separator.join(tmp) - - -def calculate_callback_signature(url, auh_token, params={}): - """Calculates the expected signature for a callback based on - the callback url, developer auth token and request parameters. - - :param url: the callback url. - :param auth_token: your developer auth token. - :param params: parameters passed to your callback url as a dictionary. - """ - data = url - for key in sorted(params.keys()): - data += '{0}{1}'.format(key, params[key]) - signature = hmac.new(auh_token, data, hashlib.sha1).digest() - return base64.b64encode(signature) - - -class _Missing(object): - - def __repr__(self): - return 'no value' - - def __reduce__(self): - return '_missing' - -_missing = _Missing() - - -class cached_property(object): - """A decorator that converts a function into a lazy property. The - function wrapped is called the first time to retrieve the result - and then that calculated result is used the next time you access - the value:: - - class Foo(object): - - @cached_property - def foo(self): - # calculate something important here - return 42 - - The class has to have a `__dict__` in order for this property to - work. - - .. versionchanged:: 0.6 - the `writeable` attribute and parameter was deprecated. If a - cached property is writeable or not has to be documented now. - For performance reasons the implementation does not honor the - writeable setting and will always make the property writeable. - """ - - # implementation detail: this property is implemented as non-data - # descriptor. non-data descriptors are only invoked if there is - # no entry with the same name in the instance's __dict__. - # this allows us to completely get rid of the access function call - # overhead. If one choses to invoke __get__ by hand the property - # will still work as expected because the lookup logic is replicated - # in __get__ for manual invocation. - - def __init__(self, func, name=None, doc=None): - self.__name__ = name or func.__name__ - self.__module__ = func.__module__ - self.__doc__ = doc or func.__doc__ - self.func = func - - def __get__(self, obj, type=None): - if obj is None: - return self - value = obj.__dict__.get(self.__name__, _missing) - if value is _missing: - value = self.func(obj) - obj.__dict__[self.__name__] = value - return value - - -class ClassPropertyDescriptor(object): - - def __init__(self, fget, fset=None): - self.fget = fget - self.fset = fset - - def __get__(self, obj, klass=None): - if klass is None: - klass = type(obj) - return self.fget.__get__(obj, klass)() - - def __set__(self, obj, value): - if not self.fset: - raise AttributeError("can't set attribute") - type_ = type(obj) - return self.fset.__get__(obj, type_)(value) - - def setter(self, func): - if not isinstance(func, (classmethod, staticmethod)): - func = classmethod(func) - self.fset = func - return self - - -def classproperty(func): - if not isinstance(func, (classmethod, staticmethod)): - func = classmethod(func) - - return ClassPropertyDescriptor(func) - - -class BalancedJSONSerializer(object): - - def __init__(self, explicit_none_check=False): - self.serialization_chain = [] - self.explicit_none_check = explicit_none_check - - def add(self, callable_serializer): - self.serialization_chain.append(callable_serializer) - return self - - def __call__(self, serializable): - for serializer in self.serialization_chain: - result = serializer(serializable) - if ((not self.explicit_none_check and result) or - (self.explicit_none_check and result is not None)): - return result - - error_msg = _JSON_ERROR_MSG.format(type(serializable), - repr(serializable)) - raise TypeError(error_msg) - - -def handle_datetime(serializable): - if hasattr(serializable, 'isoformat'): - # Serialize DateTime objects to RFC3339 protocol. - # http://www.ietf.org/rfc/rfc3339.txt - return serializable.isoformat() + 'Z' - - -# should be a singleton -json_serializer = BalancedJSONSerializer() -json_serializer.add(handle_datetime) - - -def to_json(*args, **kwargs): - return json.dumps(dict(*args, **kwargs), - use_decimal=True, - default=json_serializer) - - -def urljoin(*args): - return '/'.join(map(lambda x: str(x).strip('/'), args)) - - -def requires_participant(func): - - def wrapper(self, *args, **kwargs): - - if not any([getattr(self, 'account', None), - getattr(self, 'customer', None)]): - raise ResourceError( - '{} must be associated with an account or customer'.format( - self) - ) - - return func(self, *args, **kwargs) - - return wrapper +from __future__ import unicode_literals diff --git a/requirements-docs.txt b/requirements-docs.txt deleted file mode 100644 index 2d4f176..0000000 --- a/requirements-docs.txt +++ /dev/null @@ -1,2 +0,0 @@ -Sphinx -boto diff --git a/requirements.txt b/requirements.txt index d16e568..556ea63 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,3 @@ -certifi==0.0.8 -chardet==1.0.1 -simplejson==2.3.2 +wac==0.22 iso8601==0.1.4 -requests==1.2.3 -mock>=0.8,<0.9 +uritemplate==0.6 diff --git a/setup.py b/setup.py index 635a0e5..f52c72c 100644 --- a/setup.py +++ b/setup.py @@ -4,10 +4,7 @@ See ``README.md`` for usage advice. """ import os -import pickle import re -import subprocess -from distutils.core import Command try: import setuptools @@ -19,49 +16,6 @@ setup = setuptools.setup -class DocumentationCommand(Command): - description = 'build documentation and upload to s3' - path_to_pickled_file = 'docs/build/pickle/api_reference.fpickle' - destination_file = 'docs/build/python_api_reference.html' - user_options = [] - - def initialize_options(self): - pass - - def finalize_options(self): - pass - - def run(self): - self._build_docs() - self._upload_to_s3(self._unpickle(), - 'justice.web', - 'docs/python_api_reference.html') - - def _build_docs(self): - p = subprocess.Popen('make clean'.split(), cwd='docs') - p.wait() - p = subprocess.Popen('make pickle'.split(), cwd='docs') - p.wait() - - def _unpickle(self): - with open(self.path_to_pickled_file) as f: - pickled = f.read() - unpickled = pickle.loads(pickled) - return unpickled['body'] - - def _upload_to_s3(self, data, bucket, key_name): - from boto.s3.connection import S3Connection - from boto.s3.key import Key - - conn = S3Connection() - bucket = conn.get_bucket(bucket) - - key = Key(bucket) - key.key = key_name - key.set_contents_from_string(data) - key.set_acl('public-read') - - def _get_version(): path = os.path.join(PATH_TO_FILE, 'balanced', '__init__.py') version_re = r".*__version__ = '(.*?)'" @@ -113,8 +67,8 @@ def parse_dependency_links(file_name): version=VERSION, url='https://balancedpayments.com/', license='BSD', - author='Mahmoud Abdelkader', - author_email='support@balancedpayments.com', + author='Balanced', + author_email='dev@balancedpayments.com', description='Payments platform for marketplaces', long_description=LONG_DESCRIPTION, packages=['balanced'], @@ -127,7 +81,4 @@ def parse_dependency_links(file_name): 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], - cmdclass={ - 'docs': DocumentationCommand, - } ) diff --git a/test-requirements.txt b/test-requirements.txt index ac41c4b..e824df9 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,5 +1,4 @@ -nose==1.1.2 -bottle==0.10.9 +nose nose-setenv -mock==0.8.0 +mock unittest2 diff --git a/tests/_responses/__init__.py b/tests/_responses/__init__.py deleted file mode 100644 index 433f6ca..0000000 --- a/tests/_responses/__init__.py +++ /dev/null @@ -1,12 +0,0 @@ -import marketplaces -import merchants -import transactions -import accounts - - -__all__ = [ - marketplaces.__name__, - merchants.__name__, - transactions.__name__, - accounts.__name__, - ] diff --git a/tests/_responses/accounts.py b/tests/_responses/accounts.py deleted file mode 100644 index e7a16fc..0000000 --- a/tests/_responses/accounts.py +++ /dev/null @@ -1,21 +0,0 @@ - - -def show(marketplace_eid, account_eid): - mp_uri = '/v1/marketplaces/' + marketplace_eid - ac_uri = mp_uri + '/accounts/' + account_eid - - return { - 'transactions_uri': ac_uri + '/transactions', - 'name': 'Nicolaas Bloembergen', - 'roles': [ - 'buyer' - ], - 'created_at': '2012-03-27T11:11:34.104277Z', - 'holds_uri': ac_uri + '/holds', - 'uri': ac_uri, - 'refunds_uri': ac_uri + '/refunds', - 'meta': {}, - 'debits_uri': ac_uri + '/debits', - 'email_address': 'nicolaas.bloembergen214@hotmail.web', - 'credits_uri': ac_uri + '/credits' - } diff --git a/tests/_responses/marketplaces.py b/tests/_responses/marketplaces.py deleted file mode 100644 index 9472f12..0000000 --- a/tests/_responses/marketplaces.py +++ /dev/null @@ -1,92 +0,0 @@ -import random -import urllib - - -def anonymous_create(): - return { - 'uri': '/v1/marketplaces/TEST-M123-456-7890', - 'name': 'Test Marketplace', - 'support_email_address': 'support@example.com', - 'support_phone_number': '+16505551234', - 'domain_url': 'example.com', - 'in_escrow': 0, - 'account': { - 'uri': ('/v1/marketplaces/TEST-M123-456-7890' - '/accounts/A123-456-7890'), - 'api_key': 'd8e7d4406a1e11e193bee4ce8f4a4f46', - }, - 'debits_uri': '/v1/marketplaces/M123-456-7890/debits', - 'credits_uri': '/v1/marketplaces/M123-456-7890/credits', - 'refunds_uri': '/v1/marketplaces/M123-456-7890/refunds', - 'accounts_uri': '/v1/marketplaces/M123-456-7890/accounts', - 'holds_uri': '/v1/marketplaces/M123-456-7890/holds', - 'api_keys_uri': '/v1/marketplaces/TEST-M123-456-7890/api_keys', - 'meta': {} - } - - -def index(limit=10, offset=0, num=1, pages=1): - params = { - 'limit': limit, - 'offset': offset, - 'num': num, - } - - pages -= 1 - qs = urllib.urlencode(params.copy()) - params.update({ - 'offset': params['limit'] + params['offset'], - 'pages': pages, - }) - - response = { - 'total': num, - 'offset': offset, - 'limit': limit, - 'first_uri': '/v1/marketplaces?' + qs, - 'last_uri': '/v1/marketplaces?' + qs, - 'next_uri': None, - 'previous_uri': None, - 'uri': '/v1/marketplaces?' + qs, - } - - if pages: - qs_next = urllib.urlencode(params) - response['next_uri'] = '/v1/marketplaces?' + qs_next - - items = [] - for _ in xrange(num): - rand = int(random.random() * 10000) - mp_uri = '/v1/marketplaces/TEST-MP-123-456-{0}'.format(rand) - rand = int(random.random() * 10000) - ac_uri = mp_uri + '/accounts/AC123-456-{0}'.format(rand) - - items.append({ - 'uri': mp_uri, - 'name': 'Test Marketplace', - 'support_email_address': 'support@example.com', - 'support_phone_number': '+16505551234', - 'domain_url': 'example.com', - 'in_escrow': 0, - 'account': { - 'uri': ac_uri, - 'name': 'Test Business', - 'email_address': 'owner@example.com', - 'roles': ['merchant'], - 'balance': 0, - 'debits_uri': ac_uri + '/debits', - 'credits_uri': ac_uri + '/credits', - 'holds_uri': 'ac_uri' + '/holds', - 'meta': {} - }, - 'debits_uri': mp_uri + '/debits', - 'credits_uri': mp_uri + '/credits', - 'refunds_uri': mp_uri + '/refunds', - 'accounts_uri': mp_uri + '/accounts', - 'holds_uri': mp_uri + '/holds', - 'api_keys_uri': mp_uri + '/api_keys', - 'meta': {} - }) - - response['items'] = items - return response diff --git a/tests/_responses/merchants.py b/tests/_responses/merchants.py deleted file mode 100644 index eb0576c..0000000 --- a/tests/_responses/merchants.py +++ /dev/null @@ -1,9 +0,0 @@ -import os -import json - -FILE_PATH = os.path.dirname(__file__) - - -def index(): - path = os.path.join(FILE_PATH, 'merchants1.json') - return json.loads(open(path).read()) diff --git a/tests/_responses/merchants1.json b/tests/_responses/merchants1.json deleted file mode 100644 index 87bbbbb..0000000 --- a/tests/_responses/merchants1.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "first_uri": "/v1/merchants?limit=10&offset=0", - "items": [ - { - "phone_number": "+16505551212", - "city": null, - "marketplace": { - "domain_url": "http://www.balancedpayments.com", - "name": "Planet Profit", - "owner_account_uri": "/v1/marketplaces/TEST-MP318-823-1966/accounts/AC360-823-8847", - "holds_uri": "/v1/marketplaces/TEST-MP318-823-1966/holds", - "support_email_address": "marshall@poundpay.com", - "uri": "/v1/marketplaces/TEST-MP318-823-1966", - "in_escrow": -743778, - "accounts_uri": "/v1/marketplaces/TEST-MP318-823-1966/accounts", - "support_phone_number": "+16505551234", - "refunds_uri": "/v1/marketplaces/TEST-MP318-823-1966/refunds", - "meta": {}, - "debits_uri": "/v1/marketplaces/TEST-MP318-823-1966/debits", - "transactions_uri": "/v1/marketplaces/TEST-MP318-823-1966/transactions", - "credits_uri": "/v1/marketplaces/TEST-MP318-823-1966/credits" - }, - "name": "William Henry Cavendish III", - "email_address": "whc@example.org", - "created_at": "2012-03-27T12:27:01.972216Z", - "uri": "/v1/merchants/TEST-MR733-635-0109", - "accounts_uri": "/v1/merchants/TEST-MR733-635-0109/accounts", - "meta": { - "meta data": "goes here" - }, - "postal_code": "90210", - "country_code": "USA", - "type": "PERSON", - "balance": -2518, - "api_keys_uri": "/v1/merchants/TEST-MR733-635-0109/api_keys", - "street_address": "123 Fake St" - } - ], - "previous_uri": null, - "uri": "/v1/merchants?limit=10&offset=0", - "limit": 10, - "offset": 0, - "total": 1, - "next_uri": null, - "last_uri": "/v1/merchants?limit=10&offset=0" -} diff --git a/tests/_responses/transactions.py b/tests/_responses/transactions.py deleted file mode 100644 index 1986a61..0000000 --- a/tests/_responses/transactions.py +++ /dev/null @@ -1,13 +0,0 @@ -import os -import json - -FILE_PATH = os.path.dirname(__file__) - - -def index(limit=10, offset=0): - if not offset: - path = os.path.join(FILE_PATH, 'transactions1.json') - return json.loads(open(path).read()) - else: - path = os.path.join(FILE_PATH, 'transactions2.json') - return json.loads(open(path).read()) diff --git a/tests/_responses/transactions1.json b/tests/_responses/transactions1.json deleted file mode 100644 index 27fd4d7..0000000 --- a/tests/_responses/transactions1.json +++ /dev/null @@ -1,248 +0,0 @@ -{ - "first_uri": "/v1/marketplaces/TEST-MP778-071-6386/transactions?limit=10&offset=0", - "items": [ - { - "account": { - "transactions_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC435-398-8011/transactions", - "name": "Nicolaas Bloembergen", - "roles": [ - "buyer" - ], - "created_at": "2012-03-27T11:11:34.104277Z", - "holds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC435-398-8011/holds", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC435-398-8011", - "refunds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC435-398-8011/refunds", - "meta": {}, - "debits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC435-398-8011/debits", - "email_address": "nicolaas.bloembergen214@hotmail.web", - "credits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC435-398-8011/credits" - }, - "fee": 163, - "description": null, - "created_at": "2012-03-27T11:11:34.297546Z", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/debits/W563-141-3004", - "refunds_uri": "/v1/marketplaces/TEST-MP778-071-6386/debits/W563-141-3004/refunds", - "amount": 4674, - "meta": {}, - "appears_on_statement_as": "http://www.balancedpay", - "hold": { - "fee": 35, - "description": null, - "created_at": "2012-03-27T11:11:34.236943Z", - "is_void": false, - "expires_at": "2012-04-03T18:11:34.232401Z", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/debits/W563-141-3004/holds/HL195-571-1604", - "amount": 4674, - "meta": {}, - "debits_uri": "/v1/marketplaces/TEST-MP778-071-6386/holds/HL195-571-1604/debits", - "account_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC435-398-8011" - } - }, - { - "account": { - "transactions_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC758-484-9314/transactions", - "name": "Cherry Jul", - "roles": [ - "merchant", - "buyer" - ], - "created_at": "2012-03-27T11:11:35.171392Z", - "holds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC758-484-9314/holds", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC758-484-9314", - "refunds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC758-484-9314/refunds", - "meta": {}, - "debits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC758-484-9314/debits", - "email_address": "cherry.jul76@gmail.web", - "credits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC758-484-9314/credits" - }, - "description": "", - "created_at": "2012-03-27T11:11:35.272886Z", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/credits/CR438-257-9455", - "amount": 6904, - "meta": {} - }, - { - "account": { - "transactions_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC038-775-8140/transactions", - "name": "Heather Gables", - "roles": [ - "merchant", - "buyer" - ], - "created_at": "2012-03-27T11:11:35.444929Z", - "holds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC038-775-8140/holds", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC038-775-8140", - "refunds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC038-775-8140/refunds", - "meta": {}, - "debits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC038-775-8140/debits", - "email_address": "heather.gables986@yahoo.web", - "credits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC038-775-8140/credits" - }, - "description": "", - "created_at": "2012-03-27T11:11:35.489474Z", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/credits/CR797-952-5783", - "amount": 7533, - "meta": {} - }, - { - "account": { - "transactions_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC435-398-8011/transactions", - "name": "Nicolaas Bloembergen", - "roles": [ - "buyer" - ], - "created_at": "2012-03-27T11:11:34.104277Z", - "holds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC435-398-8011/holds", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC435-398-8011", - "refunds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC435-398-8011/refunds", - "meta": {}, - "debits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC435-398-8011/debits", - "email_address": "nicolaas.bloembergen214@hotmail.web", - "credits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC435-398-8011/credits" - }, - "fee": 11, - "description": "", - "created_at": "2012-03-27T11:11:34.162925Z", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/debits/W366-099-0509", - "refunds_uri": "/v1/marketplaces/TEST-MP778-071-6386/debits/W366-099-0509/refunds", - "amount": 330, - "meta": {}, - "appears_on_statement_as": "http://www.balancedpay", - "hold": { - "fee": 35, - "description": null, - "created_at": "2012-03-27T11:11:34.151807Z", - "is_void": false, - "expires_at": "2012-04-03T18:11:34.145562Z", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/debits/W366-099-0509/holds/HL995-212-1155", - "amount": 330, - "meta": {}, - "debits_uri": "/v1/marketplaces/TEST-MP778-071-6386/holds/HL995-212-1155/debits", - "account_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC435-398-8011" - } - }, - { - "account": { - "transactions_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC767-701-1063/transactions", - "name": "Ashlynn Brooke", - "roles": [ - "merchant", - "buyer" - ], - "created_at": "2012-03-27T11:11:34.909828Z", - "holds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC767-701-1063/holds", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC767-701-1063", - "refunds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC767-701-1063/refunds", - "meta": {}, - "debits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC767-701-1063/debits", - "email_address": "ashlynn.brooke627@example.com", - "credits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC767-701-1063/credits" - }, - "description": "", - "created_at": "2012-03-27T11:11:35.008982Z", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/credits/CR518-800-6309", - "amount": 761, - "meta": {} - }, - { - "account": { - "transactions_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC796-303-9468/transactions", - "name": "Specific Appraisals", - "roles": [ - "merchant", - "buyer" - ], - "created_at": "2012-03-27T11:11:35.336394Z", - "holds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC796-303-9468/holds", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC796-303-9468", - "refunds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC796-303-9468/refunds", - "meta": {}, - "debits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC796-303-9468/debits", - "email_address": "eve.angel899@example.org", - "credits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC796-303-9468/credits" - }, - "description": "", - "created_at": "2012-03-27T11:11:35.386199Z", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/credits/CR909-215-5732", - "amount": 6625, - "meta": {} - }, - { - "fee": 35, - "description": null, - "created_at": "2012-03-27T11:11:34.617509Z", - "is_void": false, - "expires_at": "2012-04-03T18:11:34.613124Z", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/debits/W985-622-9570/holds/HL299-190-9129", - "amount": 2930, - "meta": {}, - "debits_uri": "/v1/marketplaces/TEST-MP778-071-6386/holds/HL299-190-9129/debits", - "account_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC737-627-5712" - }, - { - "account": { - "transactions_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC038-775-8140/transactions", - "name": "Heather Gables", - "roles": [ - "merchant", - "buyer" - ], - "created_at": "2012-03-27T11:11:35.444929Z", - "holds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC038-775-8140/holds", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC038-775-8140", - "refunds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC038-775-8140/refunds", - "meta": {}, - "debits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC038-775-8140/debits", - "email_address": "heather.gables986@yahoo.web", - "credits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC038-775-8140/credits" - }, - "description": "", - "created_at": "2012-03-27T11:11:35.543397Z", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/credits/CR431-061-7325", - "amount": 7982, - "meta": {} - }, - { - "fee": 35, - "description": null, - "created_at": "2012-03-27T11:11:34.413653Z", - "is_void": false, - "expires_at": "2012-04-03T18:11:34.409482Z", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/debits/W181-120-0761/holds/HL352-452-3508", - "amount": 5868, - "meta": {}, - "debits_uri": "/v1/marketplaces/TEST-MP778-071-6386/holds/HL352-452-3508/debits", - "account_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC988-845-0622" - }, - { - "account": { - "transactions_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC758-484-9314/transactions", - "name": "Cherry Jul", - "roles": [ - "merchant", - "buyer" - ], - "created_at": "2012-03-27T11:11:35.171392Z", - "holds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC758-484-9314/holds", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC758-484-9314", - "refunds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC758-484-9314/refunds", - "meta": {}, - "debits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC758-484-9314/debits", - "email_address": "cherry.jul76@gmail.web", - "credits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC758-484-9314/credits" - }, - "description": "", - "created_at": "2012-03-27T11:11:35.215111Z", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/credits/CR297-614-9921", - "amount": 7873, - "meta": {} - } - ], - "previous_uri": null, - "uri": "/v1/marketplaces/TEST-MP778-071-6386/transactions?limit=10&offset=0", - "limit": 10, - "offset": 0, - "total": 17, - "next_uri": "/v1/marketplaces/TEST-MP778-071-6386/transactions?limit=10&offset=10", - "last_uri": "/v1/marketplaces/TEST-MP778-071-6386/transactions?limit=10&offset=10" -} diff --git a/tests/_responses/transactions2.json b/tests/_responses/transactions2.json deleted file mode 100644 index 571ce27..0000000 --- a/tests/_responses/transactions2.json +++ /dev/null @@ -1,179 +0,0 @@ -{ - "first_uri": "/v1/marketplaces/TEST-MP778-071-6386/transactions?limit=10&offset=0", - "items": [ - { - "account": { - "transactions_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC988-845-0622/transactions", - "name": "Samuel King Allison", - "roles": [ - "buyer" - ], - "created_at": "2012-03-27T11:11:34.368584Z", - "holds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC988-845-0622/holds", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC988-845-0622", - "refunds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC988-845-0622/refunds", - "meta": {}, - "debits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC988-845-0622/debits", - "email_address": "samuel.king.allison461@gmail.web", - "credits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC988-845-0622/credits" - }, - "fee": 205, - "description": "", - "created_at": "2012-03-27T11:11:34.421526Z", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/debits/W181-120-0761", - "refunds_uri": "/v1/marketplaces/TEST-MP778-071-6386/debits/W181-120-0761/refunds", - "amount": 5868, - "meta": {}, - "appears_on_statement_as": "http://www.balancedpay", - "hold": { - "fee": 35, - "description": null, - "created_at": "2012-03-27T11:11:34.413653Z", - "is_void": false, - "expires_at": "2012-04-03T18:11:34.409482Z", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/debits/W181-120-0761/holds/HL352-452-3508", - "amount": 5868, - "meta": {}, - "debits_uri": "/v1/marketplaces/TEST-MP778-071-6386/holds/HL352-452-3508/debits", - "account_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC988-845-0622" - } - }, - { - "account": { - "transactions_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC812-716-3408/transactions", - "name": "Chargepal", - "roles": [ - "merchant", - "buyer" - ], - "created_at": "2012-03-27T11:11:34.751693Z", - "holds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC812-716-3408/holds", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC812-716-3408", - "refunds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC812-716-3408/refunds", - "meta": {}, - "debits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC812-716-3408/debits", - "email_address": "ava.devine219@hotmail.web", - "credits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC812-716-3408/credits" - }, - "description": "", - "created_at": "2012-03-27T11:11:34.796144Z", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/credits/CR929-148-2468", - "amount": 6831, - "meta": {} - }, - { - "account": { - "transactions_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC737-627-5712/transactions", - "name": "Aleksandr Mikhailovich Lyapunov", - "roles": [ - "buyer" - ], - "created_at": "2012-03-27T11:11:34.574993Z", - "holds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC737-627-5712/holds", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC737-627-5712", - "refunds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC737-627-5712/refunds", - "meta": {}, - "debits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC737-627-5712/debits", - "email_address": "aleksandr.mikhailovich.lyapunov847@msn.web", - "credits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC737-627-5712/credits" - }, - "fee": 102, - "description": "", - "created_at": "2012-03-27T11:11:34.626011Z", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/debits/W985-622-9570", - "refunds_uri": "/v1/marketplaces/TEST-MP778-071-6386/debits/W985-622-9570/refunds", - "amount": 2930, - "meta": {}, - "appears_on_statement_as": "http://www.balancedpay", - "hold": { - "fee": 35, - "description": null, - "created_at": "2012-03-27T11:11:34.617509Z", - "is_void": false, - "expires_at": "2012-04-03T18:11:34.613124Z", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/debits/W985-622-9570/holds/HL299-190-9129", - "amount": 2930, - "meta": {}, - "debits_uri": "/v1/marketplaces/TEST-MP778-071-6386/holds/HL299-190-9129/debits", - "account_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC737-627-5712" - } - }, - { - "fee": 35, - "description": null, - "created_at": "2012-03-27T11:11:34.151807Z", - "is_void": false, - "expires_at": "2012-04-03T18:11:34.145562Z", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/debits/W366-099-0509/holds/HL995-212-1155", - "amount": 330, - "meta": {}, - "debits_uri": "/v1/marketplaces/TEST-MP778-071-6386/holds/HL995-212-1155/debits", - "account_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC435-398-8011" - }, - { - "account": { - "transactions_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC767-701-1063/transactions", - "name": "Ashlynn Brooke", - "roles": [ - "merchant", - "buyer" - ], - "created_at": "2012-03-27T11:11:34.909828Z", - "holds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC767-701-1063/holds", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC767-701-1063", - "refunds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC767-701-1063/refunds", - "meta": {}, - "debits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC767-701-1063/debits", - "email_address": "ashlynn.brooke627@example.com", - "credits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC767-701-1063/credits" - }, - "description": "", - "created_at": "2012-03-27T11:11:34.955274Z", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/credits/CR881-320-0396", - "amount": 8928, - "meta": {} - }, - { - "fee": 35, - "description": null, - "created_at": "2012-03-27T11:11:34.236943Z", - "is_void": false, - "expires_at": "2012-04-03T18:11:34.232401Z", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/debits/W563-141-3004/holds/HL195-571-1604", - "amount": 4674, - "meta": {}, - "debits_uri": "/v1/marketplaces/TEST-MP778-071-6386/holds/HL195-571-1604/debits", - "account_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC435-398-8011" - }, - { - "account": { - "transactions_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC360-287-8313/transactions", - "name": "Aki Tomosaki", - "roles": [ - "merchant", - "buyer" - ], - "created_at": "2012-03-27T11:11:35.067431Z", - "holds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC360-287-8313/holds", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC360-287-8313", - "refunds_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC360-287-8313/refunds", - "meta": {}, - "debits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC360-287-8313/debits", - "email_address": "aki.tomosaki643@msn.web", - "credits_uri": "/v1/marketplaces/TEST-MP778-071-6386/accounts/AC360-287-8313/credits" - }, - "description": "", - "created_at": "2012-03-27T11:11:35.111038Z", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/credits/CR088-182-3641", - "amount": 5787, - "meta": {} - } - ], - "previous_uri": "/v1/marketplaces/TEST-MP778-071-6386/transactions?limit=10&offset=0", - "uri": "/v1/marketplaces/TEST-MP778-071-6386/transactions?limit=10&offset=10", - "limit": 10, - "offset": 10, - "total": 17, - "next_uri": null, - "last_uri": "/v1/marketplaces/TEST-MP778-071-6386/transactions?limit=10&offset=10" -} diff --git a/tests/fixtures/__init__.py b/tests/fixtures/__init__.py index e69de29..3e3c840 100644 --- a/tests/fixtures/__init__.py +++ b/tests/fixtures/__init__.py @@ -0,0 +1,17 @@ +from __future__ import unicode_literals +import os + +import simplejson as json + + +class ResourceMeta(type): + + def __getattr__(cls, item): + return json.load(open(os.path.join( + os.path.dirname(os.path.abspath(__file__)), + 'resources/{}.json'.format(item)) + )) + + +class Resources(object): + __metaclass__ = ResourceMeta diff --git a/tests/fixtures/bank_accounts.py b/tests/fixtures/bank_accounts.py deleted file mode 100644 index 8999d4e..0000000 --- a/tests/fixtures/bank_accounts.py +++ /dev/null @@ -1,5 +0,0 @@ -BANK_ACCOUNT = { - 'name': 'Homer Jay', - 'account_number': '112233a', - 'bank_code': '121042882', - } diff --git a/tests/fixtures/cards.py b/tests/fixtures/cards.py deleted file mode 100644 index caf33ac..0000000 --- a/tests/fixtures/cards.py +++ /dev/null @@ -1,78 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -AUTH_INVALID_CARD = '4444444444444448' - -VERIFY_FAILED_CARD_NUMBER = '4222222222222220' - -TEST_CARDS = { - 'visa': [ - '4112344112344113', - '4110144110144115', - '4114360123456785', - '4061724061724061', - ], - 'mastercard': [ - '5111005111051128', - '5112345112345114', - '5115915115915118', - '5116601234567894', - ], - 'amex': [ - '371144371144376', - '341134113411347', - ], - 'discover': [ - '6011016011016011', - '6559906559906557', - ] -} - - -def generate_international_card_payloads(): - cards = [ - { - 'street_address': '田原3ー8ー1', - 'city': '都留市', - 'region': '山梨県', - 'postal_code': '4020054', - 'country_code': 'JPN', - 'name': '徳川家康', - 'card_number': '4' + '1' * 15, - 'expiration_month': 12, - 'expiration_year': 2014, - }, - { - 'street_address': 'Malmö högskola', - 'city': 'Malmö', - 'region': '', - 'postal_code': '205 06', - 'country_code': 'SWE', - 'name': 'Dolph Lundgren', - 'card_number': '4' + '1' * 15, - 'expiration_month': 12, - 'expiration_year': 2014, - }, - ] - - for card in cards: - yield card - -CARD = { - 'street_address': '801 High Street', - 'city': 'Palo Alto', - 'region': 'CA', - 'postal_code': '94301', - 'name': 'Johnny Fresh', - 'card_number': '4444424444444440', - 'expiration_month': 12, - 'expiration_year': 2013, - } - - -CARD_NO_ADDRESS = { - 'name': 'Johnny Fresh', - 'card_number': '4444424444444440', - 'expiration_month': 12, - 'expiration_year': 2013, - } diff --git a/tests/fixtures/merchants.py b/tests/fixtures/merchants.py deleted file mode 100644 index dccab43..0000000 --- a/tests/fixtures/merchants.py +++ /dev/null @@ -1,31 +0,0 @@ -PERSON_MERCHANT = { - 'type': 'person', - 'name': 'William James', - 'tax_id': '393-48-3992', # Should work w/ and w/o dashes - 'street_address': '167 West 74th Street', - 'postal_code': '10023', - 'dob': '1842-01-01', - 'phone_number': '+16505551234', - 'country_code': 'USA', -} - -BUSINESS_PRINCIPAL = { - 'name': 'William James', - 'tax_id': '393483992', - 'street_address': '167 West 74th Street', - 'postal_code': '10023', - 'dob': '1842-01-01', - 'phone_number': '+16505551234', - 'country_code': 'USA', -} - -BUSINESS_MERCHANT = { - 'type': 'business', - 'name': 'Levain Bakery', - 'tax_id': '253912384', - 'street_address': '167 West 74th Street', - 'postal_code': '10023', - 'phone_number': '+16505551234', - 'country_code': 'USA', - 'person': BUSINESS_PRINCIPAL, -} diff --git a/tests/fixtures/resources.py b/tests/fixtures/resources.py deleted file mode 100644 index fe438d0..0000000 --- a/tests/fixtures/resources.py +++ /dev/null @@ -1,17 +0,0 @@ -from __future__ import unicode_literals - - -INVOICES = { - "first_uri": - "/v1/invoices/IV4UKpZTjLHdhiayymMsrHKe/holds?limit=10&offset=0", - "items": [], - "previous_uri": None, - "uri": "/v1/invoices/IV4UKpZTjLHdhiayymMsrHKe/holds?limit=10&offset=0", - "limit": 10, - "offset": 0, - "total": 72, - "next_uri": - "/v1/invoices/IV4UKpZTjLHdhiayymMsrHKe/holds?limit=10&offset=10", - "last_uri": - "/v1/invoices/IV4UKpZTjLHdhiayymMsrHKe/holds?limit=10&offset=70" -} diff --git a/tests/fixtures/resources/api_keys.json b/tests/fixtures/resources/api_keys.json new file mode 100644 index 0000000..6c687bb --- /dev/null +++ b/tests/fixtures/resources/api_keys.json @@ -0,0 +1,13 @@ +{ + "links": {}, + "api_keys": [ + { + "links": {}, + "created_at": "2013-12-23T19:11:49.250551Z", + "secret": "ak-test-DUiuVXnHrQkxy7VfDv84DhnLHr3uSCR6", + "href": "/api_keys/AKztNL7Ly2W5nhpj53pw3vE", + "meta": {}, + "id": "AKztNL7Ly2W5nhpj53pw3vE" + } + ] +} diff --git a/tests/fixtures/resources/marketplaces.json b/tests/fixtures/resources/marketplaces.json new file mode 100644 index 0000000..979be82 --- /dev/null +++ b/tests/fixtures/resources/marketplaces.json @@ -0,0 +1,35 @@ +{ + "marketplaces": [ + { + "in_escrow": 0, + "domain_url": "example.com", + "name": "Test Marketplace", + "links": { + "owner_customer": "CUWXtKGXXgqQbJao7PiZ36g" + }, + "href": "/marketplaces/TEST-MPWWcI92W2mLFdLzSrh6cuQ", + "created_at": "2013-12-23T19:12:10.100302Z", + "support_email_address": "support@example.com", + "updated_at": "2013-12-23T19:12:10.620980Z", + "support_phone_number": "+16505551234", + "production": false, + "meta": {}, + "unsettled_fees": 0, + "id": "TEST-MPWWcI92W2mLFdLzSrh6cuQ" + } + ], + "links": { + "marketplaces.debits": "/debits", + "marketplaces.reversals": "/reversals", + "marketplaces.customers": "/customers", + "marketplaces.credits": "/credits", + "marketplaces.cards": "/cards", + "marketplaces.card_holds": "/card_holds", + "marketplaces.refunds": "/refunds", + "marketplaces.owner_customer": "/customers/{marketplaces.owner_customer}", + "marketplaces.transactions": "/transactions", + "marketplaces.bank_accounts": "/bank_accounts", + "marketplaces.callbacks": "/callbacks", + "marketplaces.events": "/events" + } +} diff --git a/tests/test_balanced.py b/tests/test_balanced.py index 0e1b17e..3c7e978 100644 --- a/tests/test_balanced.py +++ b/tests/test_balanced.py @@ -1,7 +1,9 @@ -import unittest2 as unittest +from __future__ import unicode_literals +from tests.utils import TestCase -class TestBalancedImportStar(unittest.TestCase): + +class TestBalancedImportStar(TestCase): def test_import_star(self): # not sure who uses import * any more, but we should @@ -11,5 +13,5 @@ def test_import_star(self): # and doing a "from balanced import *" generates an # unsupressable SyntaxWarning. exec "from balanced import *" # pylint: disable-msg=W0122 - except Exception, exc: + except Exception as exc: raise ImportError("%s" % exc) diff --git a/tests/test_client.py b/tests/test_client.py deleted file mode 100644 index d28aca3..0000000 --- a/tests/test_client.py +++ /dev/null @@ -1,173 +0,0 @@ -# -*- coding: utf-8 -*- -import unittest2 as unittest - -import balanced -from balanced._http_client import wrap_raise_for_status, before_request_hooks -import mock - -import threading - - -class TestConfig(unittest.TestCase): - def test_default_config(self): - config = balanced.config.__class__() - # this is here because it tests that if you add anything new - # then you should test it here..it's not really all encompassing though - # for example, it won't detect any @property methods.. - self.assertItemsEqual( - config.__dict__.keys(), - ['api_key_secret', 'api_version', 'root_uri', 'requests'] - ) - self.assertEqual(config.root_uri, 'https://api.balancedpayments.com') - self.assertEqual(config.api_version, '1') - self.assertIsNone(config.api_key_secret) - self.assertEqual(config.uri, 'https://api.balancedpayments.com/v1') - self.assertEqual(config.version, 'v1') - - -def no_hook(client, http_op, url, kwargs): - kwargs.pop('hooks', None) - - -class TestClient(unittest.TestCase): - - def setUp(self): - before_request_hooks.append(no_hook) - - def tearDown(self): - while before_request_hooks: - before_request_hooks.pop() - - def test_http_operations(self): - - ops = ['get', 'post', 'put', 'delete'] - for op in ops: - response = getattr(balanced.http_client, op)( - 'hithere', - ) - self.assertEqual(response.request.method, op.upper()) - self.assertEqual( - response.url, 'https://api.balancedpayments.com/v1/hithere' - ) - - def test_client_reference_config(self): - the_config = balanced.config - self.assertIsNone(balanced.http_client.config.api_key_secret) - the_config.api_key_secret = 'khalkhalash' - self.assertEqual( - balanced.http_client.config.api_key_secret, 'khalkhalash' - ) - - def test_client_key_switch(self): - the_config = balanced.config - current_key = the_config.api_key_secret - with balanced.key_switcher('new_key'): - self.assertEqual(the_config.api_key_secret, 'new_key') - self.assertEqual(the_config.api_key_secret, current_key) - - def test_before_request_hook(self): - momo = mock.Mock() - - before_request_hooks.append(no_hook) - before_request_hooks.append(momo) - - balanced.http_client.get( - 'hithere', - ) - self.assertEqual(momo.call_count, 1) - args, _ = momo.call_args - self.assertEqual(args[0], balanced.http_client) - self.assertIn('hithere', args[2]) - - -class TestHTTPClient(unittest.TestCase): - def test_deserialization(self): - resp = mock.Mock() - resp.headers = { - 'Content-Type': 'text/html', - } - resp.content = 'Unhandled Exception' - client = balanced.HTTPClient() - with self.assertRaises(balanced.exc.BalancedError): - client.deserialize(resp) - resp.headers['Content-Type'] = 'application/json' - resp.content = '{"hi": "world"}' - deserialized = client.deserialize(resp) - self.assertDictEqual(deserialized, {u'hi': u'world'}) - - def test_deserialization_unicode(self): - resp = mock.Mock() - resp.headers = { - 'Content-Type': 'text/html', - } - resp.content = 'Unhandled Exception' - client = balanced.HTTPClient() - with self.assertRaises(balanced.exc.BalancedError): - client.deserialize(resp) - resp.headers['Content-Type'] = 'application/json' - resp.content = ('{"\\uc800\\uac74 \\ub610 \\ubb50\\uc57c": "second", ' - '"third": "\\u06a9\\u0647 \\u0686\\u0647 ' - '\\u06a9\\u062b\\u0627\\u0641\\u062a\\u06cc"}') - deserialized = client.deserialize(resp) - self.assertDictEqual(deserialized, { - u'third': (u'\u06a9\u0647 \u0686\u0647 ' - u'\u06a9\u062b\u0627\u0641\u062a\u06cc'), - u'\uc800\uac74 \ub610 \ubb50\uc57c': u'second'}) - - def test_wrap_raise_for_status(self): - api_response = {'additional': ('Valid email address formats may be ' - 'found at http://tools.ietf.org/html' - '/rfc2822#section-3.4'), - 'description': (u'"s\xf8ren.kierkegaard216@yahoo.web" ' - u'must be a valid email address as ' - u'specified by rfc2822 for email_add'), - 'status': 'Bad Request', - 'status_code': 400} - client = mock.Mock() - client.deserialize.return_value = api_response - ex = balanced.exc.HTTPError('Ooops') - setattr(ex, 'response', mock.Mock()) - ex.response.status_code = 400 - response = mock.Mock() - response.raise_for_status.side_effect = ex - - wrapped = wrap_raise_for_status(client) - - with self.assertRaises(balanced.exc.HTTPError) as ex: - wrapped(response) - self.assertEqual(ex.exception.description, api_response['description']) - - -class TestConfigThread(threading.Thread): - def __init__(self): - threading.Thread.__init__(self) - self.key = False - - def run(self): - print balanced.config.api_key_secret, balanced.config - self.key = balanced.config.api_key_secret == 'test' - - -class MultiThreadedUserCases(unittest.TestCase): - def setUp(self): - balanced.configure('not-test') - - def tearDown(self): - balanced.configure(None) - - def test_config_does_not_change_across_threads(self): - threads = [] - - for _ in xrange(2): - t = TestConfigThread() - threads.append(t) - - # change configuration once the threads are created - balanced.configure('test') - - for t in threads: - t.start() - - for t in threads: - t.join(len(threads)) - self.assertTrue(t.key) diff --git a/tests/test_resource.py b/tests/test_resource.py index 7f8f5ad..acb97ab 100644 --- a/tests/test_resource.py +++ b/tests/test_resource.py @@ -1,153 +1,16 @@ from __future__ import unicode_literals -import datetime -import unittest2 as unittest -import urlparse -import warnings -import mock import balanced -from balanced.resources import _RESOURCES as resource_registry -from .application import app -from .utils import WSGIServerTest -from .fixtures import resources +from . import fixtures, utils -class TestResourceConstruction(WSGIServerTest): + +class TestResourceConstruction(utils.TestCase): def setUp(self): super(TestResourceConstruction, self).setUp() - balanced.config.root_uri = 'http://localhost:31337' - - def test_property_conversion_from_uri_task_3833(self): - with self.start_server(app): - txns = [ - t for t in balanced.Transaction.query - if 'TEST-MP778-071-6386/debits/W985-622-9570' in t.uri] - self.assertEqual(txns[0].account_uri, txns[0].account.uri) - - def test_implicit_conversion_to_datetime(self): - with self.start_server(app): - for txn in balanced.Transaction.query: - if isinstance(txn, balanced.Debit): - break - self.assertIsInstance(txn.created_at, datetime.datetime) - - def test_redirects(self): - with self.start_server(app): - with self.assertRaises(balanced.exc.HTTPError) as exc: - balanced.APIKey().save() - exception = exc.exception - self.assertEqual(exception.response.status_code, 302) - self.assertEqual( - exception.response.headers['location'], - '/v1/your-mom' - ) - - def test_does_not_parse_meta(self): - payload = { - 'uri': '/v1/yo-momma', - 'meta': { - 'uri': 'None', - } - } - - balanced.Account(**payload) - - -class TestPage(unittest.TestCase): - - def test_filter2(self): - query = balanced.Marketplace.query - query = query.filter(balanced.Marketplace.f.a == 'b') - query = query.filter(balanced.Marketplace.f.a != '101') - query = query.filter(balanced.Marketplace.f.b < 4) - query = query.filter(balanced.Marketplace.f.b <= 5) - query = query.filter(balanced.Marketplace.f.c > 123) - query = query.filter(balanced.Marketplace.f.c >= 44) - query = query.filter(balanced.Marketplace.f.d.in_(1, 2, 3)) - query = query.filter(~balanced.Marketplace.f.d.in_(6, 33, 55)) - query = query.filter(balanced.Marketplace.f.e.contains('it')) - query = query.filter(~balanced.Marketplace.f.e.contains('soda')) - query = query.filter(balanced.Marketplace.f.f.startswith('la')) - query = query.filter(balanced.Marketplace.f.f.endswith('lo')) - query = query.filter(g=12) - - parsed_uri = urlparse.urlparse(query.uri) - parsed_qs = urlparse.parse_qsl(parsed_uri.query) - - self.assertDictEqual( - dict(parsed_qs), - { - 'a': 'b', - 'a[!=]': '101', - 'b[<=]': '5', - 'b[<]': '4', - 'c[>=]': '44', - 'c[>]': '123', - 'd[!in]': '6,33,55', - 'd[in]': '1,2,3', - 'e[!contains]': 'soda', - 'e[contains]': 'it', - 'f[endswith]': 'lo', - 'f[startswith]': 'la', - 'g': '12', - } - ) - - def test_sort(self): - q = balanced.Marketplace.query - q.sort(balanced.Marketplace.f.me.asc()) - self.assertDictEqual(q.qs, {'sort': ['me,asc']}) - q.sort(balanced.Marketplace.f.u.desc()) - self.assertDictEqual(q.qs, {'sort': ['me,asc', 'u,desc']}) - - def test_from_uri_and_dict(self): - expected = resources.INVOICES.copy() - expected.pop('uri') - page = balanced.resources.Page.from_response(**resources.INVOICES) - self.assertDictEqual(page._lazy_loaded, expected) - - -class TestMarketplace(unittest.TestCase): - - @mock.patch('balanced.resources.Card') - def test_region_deprecation(self, _card): - mkt = balanced.Marketplace() - with warnings.catch_warnings(record=True) as w: - mkt.create_card( - 'John Name', '341111111111111', '12', '2020', - region='CA' - ) - self.assertEqual(len(w), 1) - warning_ = w[0] - self.assertEqual( - warning_.message.message, - ('The region parameter will be deprecated in the ' - 'next minor version of balanced-python') - ) - self.assertTrue(isinstance(warning_.message, UserWarning)) - - -class TestResourceIdentification(unittest.TestCase): - def test_resource(self): - uris = [ - # marketplace - (balanced.Marketplace, '/v1/marketplaces/MP123'), - (balanced.Marketplace, '/v1/marketplaces'), - # nested under marketplace - (balanced.Credit, '/v1/marketplaces/credits'), - (balanced.Credit, '/v1/marketplaces/credits/C1'), - # root - (balanced.Event, '/v1/events'), - (balanced.Event, '/v1/events/E1'), - # nested under events - (balanced.EventCallback, '/v1/events/E1/callbacks'), - (balanced.EventCallback, '/v1/events/E1/callbacks/C1'), - # nested under events and callbacks - (balanced.EventCallbackLog, '/v1/events/E1/callbacks/C1/logs'), - (balanced.EventCallbackLog, '/v1/events/E1/callbacks/C1/logs/L1'), - ] - for expected_type, uri in uris: - derived_type = resource_registry.from_uri(uri) - self.assertEqual(expected_type, derived_type) + def test_load_resource(self): + resp = fixtures.Resources.marketplaces + marketplace = balanced.Marketplace(**resp) + self.assertIsNotNone(marketplace.debits) diff --git a/tests/utils.py b/tests/utils.py index d8b2a17..1948ebc 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1,3 +1,5 @@ +from __future__ import unicode_literals + import contextlib import multiprocessing import unittest2 as unittest @@ -5,7 +7,11 @@ from wsgiref.simple_server import make_server -class WSGIServerTest(unittest.TestCase): +class TestCase(unittest.TestCase): + pass + + +class WSGIServerTest(TestCase): def setUp(self): self.server_process = None From 26180b03d7f5080eed161405f09980e368aa0fe1 Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Mon, 23 Dec 2013 15:14:59 -0700 Subject: [PATCH 002/146] pep8 --- balanced/config.py | 7 ++++--- balanced/resources.py | 6 ++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/balanced/config.py b/balanced/config.py index be6af86..9fde1fe 100644 --- a/balanced/config.py +++ b/balanced/config.py @@ -11,6 +11,7 @@ API_ROOT = 'https://api.balancedpayments.com' + # config def configure( user=None, @@ -55,8 +56,9 @@ def _default_serialize(o): if isinstance(o, datetime): return o.isoformat() + 'Z' raise TypeError( - 'Object of type {} with value of {} is not JSON serializable' - .format(type(o), repr(o))) + 'Object of type {} with value of {} is not ' + 'JSON serializable'.format(type(o), repr(o)) + ) def _serialize(self, data): data = json.dumps(data, default=self._default_serialize) @@ -84,4 +86,3 @@ def _deserialize(self, response): configure() client = Client() - diff --git a/balanced/resources.py b/balanced/resources.py index 63dcc18..1604abd 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -70,7 +70,8 @@ def _hydrate(cls, payload): for item in payload[collection]: # find type, fallback to Resource if we can't determine the # type e.g. marketplace.owner_customer - collection_type = Resource.registry.get(resource_type, Resource) + collection_type = Resource.registry.get(resource_type, + Resource) if item_attribute in item['links']: # singular uri_value = item['links'][item_attribute] @@ -86,7 +87,8 @@ def _hydrate(cls, payload): # collection uri_value = item.get(item_attribute, None) parsed_link = uritemplate.expand( - uri, {'.'.join([collection, item_attribute]): uri_value} + uri, + {'.'.join([collection, item_attribute]): uri_value} ) lazy_href = JSONSchemaCollection( collection_type, parsed_link) From 1e78a4d8f09e4d9e9477e7e4557f0353c184e89f Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Mon, 23 Dec 2013 17:21:33 -0700 Subject: [PATCH 003/146] got a simple example working, filled in transaction methods, filled in funding instrument methods --- balanced/resources.py | 146 ++++++++++++++++++++++++++++++++++++------ balanced/utils.py | 39 +++++++++++ examples/examples.py | 85 +++++++++--------------- 3 files changed, 195 insertions(+), 75 deletions(-) diff --git a/balanced/resources.py b/balanced/resources.py index 1604abd..ebdd01e 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -3,20 +3,27 @@ import uritemplate import wac -from balanced import exc, config +from balanced import exc, config, utils registry = wac.ResourceRegistry(route_prefix='/') class JSONSchemaCollection(wac.ResourceCollection): - pass + + @property + def href(self): + return self.uri class ObjectifyMixin(wac._ObjectifyMixin): def _objectify(self, resource_cls, **fields): - self._construct_from_response(**fields) + if 'links' not in fields: + for key, value in fields.iteritems(): + setattr(self, key, value) + else: + self._construct_from_response(**fields) def _construct_from_response(self, **payload): payload = self._hydrate(payload) @@ -109,13 +116,53 @@ class JSONSchemaResource(wac.Resource, ObjectifyMixin): page_cls = JSONSchemaPage + def save(self): + cls = type(self) + attrs = self.__dict__.copy() + href = attrs.pop('href', None) + + if not href: + if not cls.uri_gen or not cls.uri_gen.root_uri: + raise TypeError( + 'Unable to create {0} resources directly'.format( + cls.__name__ + ) + ) + href = cls.uri_gen.root_uri + + method = cls.client.put if 'id' in attrs else cls.client.post + + attrs = dict( + (k, v.href if isinstance(v, Resource) else v) + for k, v in attrs.iteritems() + if not isinstance(v, (cls.collection_cls)) + ) + + resp = method(href, data=attrs) + + instance = self.__class__(**resp.data) + self.__dict__.clear() + self.__dict__.update(instance.__dict__) + + return self + + def delete(self): + self.client.delete(self.href) + + def __dir__(self): + return self.__dict__.keys() + def __getattr__(self, item): if isinstance(item, basestring): suffix = '_href' - href = getattr(self, item + suffix, None) - if href: - setattr(self, item, Resource.get(href)) - return getattr(self, item) + if suffix not in item: + href = getattr(self, item + suffix, None) + if href: + setattr(self, item, Resource.get(href)) + return getattr(self, item) + raise AttributeError( + "'{}' has no attribute '{}'".format(self.__class__.__name__, item) + ) class Resource(JSONSchemaResource): @@ -133,7 +180,7 @@ class Marketplace(Resource): uri_gen = wac.URIGen('/marketplaces', '{marketplace}') - @classmethod + @utils.classproperty def mine(cls): """ Returns an instance representing the marketplace associated with the @@ -141,6 +188,8 @@ def mine(cls): """ return cls.query.one() + my_marketplace = mine + class APIKey(Resource): @@ -153,56 +202,96 @@ class CardHold(Resource): type = 'card_holds' + uri_gen = wac.URIGen('/card_holds', '{card_hold}') -class Transaction(Resource): + def cancel(self): + self.is_valid = False + return self.save() - type = 'transactions' + def capture(self, **kwargs): + return Debit( + href=self.debits.href, + **kwargs + ).save() - def refund(self, **kwargs): - raise NotImplementedError() - def reverse(self, **kwargs): - raise NotImplementedError() +class Transaction(Resource): + + type = 'transactions' class Credit(Transaction): type = 'credits' + uri_gen = wac.URIGen('/credits', '{credit}') + + def reverse(self, **kwargs): + return Reversal( + href=self.reversals.href + ) + class Debit(Transaction): type = 'debits' + uri_gen = wac.URIGen('/debits', '{debit}') + + def refund(self, **kwargs): + return Refund( + href=self.refunds.href, + **kwargs + ).save() + class Refund(Transaction): type = 'refunds' + uri_gen = wac.URIGen('/refunds', '{refund}') + class Reversal(Transaction): type = 'reversals' + uri_gen = wac.URIGen('/reversals', '{reversal}') + class FundingInstrument(Resource): type = 'funding_instruments' def associate_to(self, customer): - raise NotImplementedError() - - def debit(self, **kwargs): - raise NotImplementedError() - - def credit(self, **kwargs): - raise NotImplementedError() + try: + self.links + except AttributeError: + self.links = {} + self.links['customer'] = utils.extract_href_from_object(customer) + self.save() + + def debit(self, amount, **kwargs): + return Debit( + href=self.debits.href, + amount=amount, + **kwargs + ) + + def credit(self, amount, **kwargs): + return Credit( + href=self.credits.href, + amount=amount, + **kwargs + ) class BankAccount(FundingInstrument): type = 'bank_accounts' + uri_gen = wac.URIGen('/bank_accounts', '{bank_account}') + class BankAccountVerification(Resource): @@ -213,21 +302,36 @@ class Card(FundingInstrument): type = 'cards' + uri_gen = wac.URIGen('/cards', '{card}') + + def hold(self, amount, **kwargs): + return CardHold( + href=self.card_holds.href, + amount=amount, + **kwargs + ).save() + class Customer(Resource): type = 'customers' + uri_gen = wac.URIGen('/customers', '{customer}') + class Order(Resource): type = 'orders' + uri_gen = wac.URIGen('/orders', '{order}') + class Callback(Resource): type = 'callbacks' + uri_gen = wac.URIGen('/callbacks', '{callback}') + class Event(Resource): diff --git a/balanced/utils.py b/balanced/utils.py index baffc48..cba22c1 100644 --- a/balanced/utils.py +++ b/balanced/utils.py @@ -1 +1,40 @@ from __future__ import unicode_literals + + +class ClassPropertyDescriptor(object): + + def __init__(self, fget, fset=None): + self.fget = fget + self.fset = fset + + def __get__(self, obj, klass=None): + if klass is None: + klass = type(obj) + return self.fget.__get__(obj, klass)() + + def __set__(self, obj, value): + if not self.fset: + raise AttributeError("can't set attribute") + type_ = type(obj) + return self.fset.__get__(obj, type_)(value) + + def setter(self, func): + if not isinstance(func, (classmethod, staticmethod)): + func = classmethod(func) + self.fset = func + return self + + +def classproperty(func): + if not isinstance(func, (classmethod, staticmethod)): + func = classmethod(func) + + return ClassPropertyDescriptor(func) + + +def extract_href_from_object(obj): + if isinstance(obj, basestring): + return obj + if isinstance(obj, dict): + return obj['href'] + return obj.href diff --git a/examples/examples.py b/examples/examples.py index 1f58ae7..cd5bd4e 100644 --- a/examples/examples.py +++ b/examples/examples.py @@ -4,15 +4,6 @@ import balanced -host = os.environ.get('BALANCED_HOST') -options = {} -if host: - options['scheme'] = 'http' - options['host'] = host - options['port'] = 5000 - -balanced.configure(options) - print "create our new api key" api_key = balanced.APIKey().save() print "Our secret is: ", api_key.secret @@ -23,10 +14,6 @@ print "create our marketplace" marketplace = balanced.Marketplace().save() -if not balanced.Merchant.me: - raise Exception("Merchant.me should not be nil") -print "what's my merchant?, easy: Merchant.me: ", balanced.Merchant.me - # what's my marketplace? if not balanced.Marketplace.my_marketplace: raise Exception("Marketplace.my_marketplace should not be nil") @@ -44,24 +31,24 @@ print "cool! let's create a new card." card = balanced.Card( - card_number="5105105105105100", + number="5105105105105100", expiration_month="12", expiration_year="2015", ).save() -print "Our card uri: " + card.uri + +print "Our card href: " + card.href print "create our **buyer** account" -buyer = marketplace.create_buyer("buyer@example.org", card.uri) -print "our buyer account: " + buyer.uri +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 = buyer.hold(1500) +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" -balanced.bust_cache() marketplace = balanced.Marketplace.my_marketplace if marketplace.in_escrow != 1500: raise Exception("1500 is not in escrow! this is wrong") @@ -75,59 +62,49 @@ bank_account = balanced.BankAccount( account_number="1234567890", - bank_code="321174851", + routing_number="321174851", name="Jack Q Merchant", ).save() -merchant = marketplace.create_merchant( - "merchant@example.org", - { - 'type': "person", - 'name': "Billy Jones", +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", - }, - bank_account.uri, - "Jack Q Merchant", - ) + }, + dob="1842-01", + phone_number="+16505551234", + destination=bank_account, +).save() print "oh our buyer is interested in buying something for 130.00$" -another_debit = buyer.debit(13000, "MARKETPLACE.COM") +another_debit = card.debit(13000, appears_on_statement_as="MARKETPLACE.COM") print "lets credit our merchant 110.00$" -credit = merchant.credit(11000, "Buyer purchased something on MARKETPLACE.COM") +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_account.credit(2000, - "Our commission from MARKETPLACE" - ".COM") +mp_credit = marketplace.owner_customer.bank_accounts.first().credit( + 2000, description="Our commission from MARKETPLACE.COM") print "ok lets invalid a card" -card.is_valid = False -card.save() - -if hasattr(card, 'is_valid') and card.is_valid: - raise Exception("This card is INCORRECTLY VALID") +card.delete() print "invalidating a bank account" bank_account.delete() -# a little filtering -merchants = balanced.Account.query.filter(roles='merchant') -buyers = balanced.Account.query.filter(roles='buyer') -print ( - 'we have {0} accounts, {1} with the role "buyer", ' - 'and {2} with the role "merchant"'.format( - balanced.Account.query.count(), - buyers.count(), - merchants.count(), - ) -) +print "associate a card with an exiting customer" +card = balanced.Card( + number="5105105105105100", + expiration_month="12", + expiration_year="2015", +).save() + +card.associate_to(buyer) -print 'here are our merchants: {0}'.format([a.name for a in merchants]) -print 'here are our buyers: {0}'.format([a.name for a in buyers]) +assert buyer.cards.count() == 2 print "and there you have it :)" From daf30998e9366323f618597a1fb766d245ec21ca Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Mon, 23 Dec 2013 17:27:53 -0700 Subject: [PATCH 004/146] remove old scenarios --- scenarios/account_add_card/definition.mako | 1 - scenarios/account_add_card/executable.py | 6 ---- scenarios/account_add_card/python.mako | 10 ------ scenarios/account_add_card/request.mako | 5 --- scenarios/account_create/definition.mako | 1 - scenarios/account_create/executable.py | 5 --- scenarios/account_create/python.mako | 9 ----- scenarios/account_create/request.mako | 4 --- .../account_create_buyer/definition.mako | 1 - scenarios/account_create_buyer/executable.py | 7 ---- scenarios/account_create_buyer/python.mako | 11 ------ scenarios/account_create_buyer/request.mako | 6 ---- .../account_create_merchant/definition.mako | 1 - .../account_create_merchant/executable.py | 6 ---- scenarios/account_create_merchant/python.mako | 10 ------ .../account_create_merchant/request.mako | 5 --- .../definition.mako | 1 - .../account_underwrite_business/executable.py | 30 ---------------- .../account_underwrite_business/python.mako | 34 ------------------- .../account_underwrite_business/request.mako | 16 --------- .../account_underwrite_person/definition.mako | 1 - .../account_underwrite_person/executable.py | 23 ------------- .../account_underwrite_person/python.mako | 27 --------------- .../account_underwrite_person/request.mako | 16 --------- scenarios/bank_account_create/definition.mako | 1 - scenarios/bank_account_create/executable.py | 10 ------ scenarios/bank_account_create/python.mako | 14 -------- scenarios/bank_account_create/request.mako | 6 ---- scenarios/bank_account_delete/definition.mako | 1 - scenarios/bank_account_delete/executable.py | 6 ---- scenarios/bank_account_delete/python.mako | 10 ------ scenarios/bank_account_delete/request.mako | 5 --- .../definition.mako | 1 - .../executable.py | 17 ---------- .../python.mako | 21 ------------ .../request.mako | 13 ------- scenarios/bank_account_list/definition.mako | 1 - scenarios/bank_account_list/executable.py | 5 --- scenarios/bank_account_list/python.mako | 9 ----- scenarios/bank_account_list/request.mako | 4 --- scenarios/bank_account_show/definition.mako | 1 - scenarios/bank_account_show/executable.py | 5 --- scenarios/bank_account_show/python.mako | 9 ----- scenarios/bank_account_show/request.mako | 4 --- .../definition.mako | 1 - .../executable.py | 6 ---- .../python.mako | 10 ------ .../request.mako | 5 --- .../definition.mako | 1 - .../executable.py | 4 --- .../python.mako | 8 ----- .../request.mako | 3 -- .../definition.mako | 1 - .../executable.py | 7 ---- .../python.mako | 11 ------ .../request.mako | 6 ---- scenarios/callback_create/definition.mako | 1 - scenarios/callback_create/executable.py | 7 ---- scenarios/callback_create/python.mako | 11 ------ scenarios/callback_create/request.mako | 6 ---- scenarios/callback_delete/definition.mako | 1 - scenarios/callback_delete/executable.py | 6 ---- scenarios/callback_delete/python.mako | 10 ------ scenarios/callback_delete/request.mako | 5 --- scenarios/callback_list/definition.mako | 1 - scenarios/callback_list/executable.py | 5 --- scenarios/callback_list/python.mako | 9 ----- scenarios/callback_list/request.mako | 4 --- scenarios/callback_show/definition.mako | 1 - scenarios/callback_show/executable.py | 5 --- scenarios/callback_show/python.mako | 9 ----- scenarios/callback_show/request.mako | 4 --- scenarios/card_create/definition.mako | 1 - scenarios/card_create/executable.py | 10 ------ scenarios/card_create/python.mako | 14 -------- scenarios/card_create/request.mako | 6 ---- scenarios/card_delete/definition.mako | 1 - scenarios/card_delete/executable.py | 6 ---- scenarios/card_delete/python.mako | 10 ------ scenarios/card_delete/request.mako | 5 --- scenarios/card_invalidate/definition.mako | 1 - scenarios/card_invalidate/executable.py | 7 ---- scenarios/card_invalidate/python.mako | 11 ------ scenarios/card_invalidate/request.mako | 6 ---- scenarios/card_list/definition.mako | 1 - scenarios/card_list/executable.py | 5 --- scenarios/card_list/python.mako | 9 ----- scenarios/card_list/request.mako | 4 --- scenarios/card_show/definition.mako | 1 - scenarios/card_show/executable.py | 5 --- scenarios/card_show/python.mako | 9 ----- scenarios/card_show/request.mako | 4 --- scenarios/card_update/definition.mako | 1 - scenarios/card_update/executable.py | 11 ------ scenarios/card_update/python.mako | 15 -------- scenarios/card_update/request.mako | 10 ------ scenarios/credit_account_list/definition.mako | 1 - scenarios/credit_account_list/executable.py | 0 scenarios/credit_account_list/python.mako | 5 --- scenarios/credit_account_list/request.mako | 0 .../definition.mako | 1 - .../executable.py | 0 .../python.mako | 5 --- .../request.mako | 0 .../credit_bank_account_list/definition.mako | 1 - .../credit_bank_account_list/executable.py | 6 ---- .../credit_bank_account_list/python.mako | 10 ------ .../credit_bank_account_list/request.mako | 5 --- .../definition.mako | 1 - .../executable.py | 6 ---- .../python.mako | 10 ------ .../request.mako | 5 --- .../definition.mako | 1 - .../executable.py | 15 -------- .../python.mako | 19 ----------- .../request.mako | 10 ------ .../credit_customer_list/definition.mako | 1 - scenarios/credit_customer_list/executable.py | 6 ---- scenarios/credit_customer_list/python.mako | 10 ------ scenarios/credit_customer_list/request.mako | 5 --- scenarios/credit_failed_state/definition.mako | 1 - scenarios/credit_failed_state/executable.py | 15 -------- scenarios/credit_failed_state/python.mako | 19 ----------- scenarios/credit_failed_state/request.mako | 10 ------ scenarios/credit_list/definition.mako | 1 - scenarios/credit_list/executable.py | 5 --- scenarios/credit_list/python.mako | 9 ----- scenarios/credit_list/request.mako | 4 --- scenarios/credit_paid_state/definition.mako | 1 - scenarios/credit_paid_state/executable.py | 15 -------- scenarios/credit_paid_state/python.mako | 19 ----------- scenarios/credit_paid_state/request.mako | 10 ------ .../credit_pending_state/definition.mako | 1 - scenarios/credit_pending_state/executable.py | 15 -------- scenarios/credit_pending_state/python.mako | 19 ----------- scenarios/credit_pending_state/request.mako | 10 ------ scenarios/credit_show/definition.mako | 1 - scenarios/credit_show/executable.py | 5 --- scenarios/credit_show/python.mako | 9 ----- scenarios/credit_show/request.mako | 4 --- .../customer_add_bank_account/definition.mako | 1 - .../customer_add_bank_account/executable.py | 6 ---- .../customer_add_bank_account/python.mako | 10 ------ .../customer_add_bank_account/request.mako | 5 --- scenarios/customer_add_card/definition.mako | 1 - scenarios/customer_add_card/executable.py | 6 ---- scenarios/customer_add_card/python.mako | 10 ------ scenarios/customer_add_card/request.mako | 5 --- scenarios/customer_create/definition.mako | 1 - scenarios/customer_create/executable.py | 5 --- scenarios/customer_create/python.mako | 9 ----- scenarios/customer_create/request.mako | 4 --- .../customer_create_debit/definition.mako | 1 - scenarios/customer_create_debit/executable.py | 6 ---- scenarios/customer_create_debit/python.mako | 10 ------ scenarios/customer_create_debit/request.mako | 5 --- scenarios/customer_credit/definition.mako | 1 - scenarios/customer_credit/executable.py | 6 ---- scenarios/customer_credit/python.mako | 10 ------ scenarios/customer_credit/request.mako | 5 --- scenarios/customer_delete/definition.mako | 1 - scenarios/customer_delete/executable.py | 6 ---- scenarios/customer_delete/python.mako | 10 ------ scenarios/customer_delete/request.mako | 5 --- scenarios/debit_account_list/definition.mako | 1 - scenarios/debit_account_list/executable.py | 0 scenarios/debit_account_list/python.mako | 5 --- scenarios/debit_account_list/request.mako | 0 scenarios/debit_create/definition.mako | 1 - scenarios/debit_create/executable.py | 10 ------ scenarios/debit_create/python.mako | 14 -------- scenarios/debit_create/request.mako | 7 ---- scenarios/debit_customer_list/definition.mako | 1 - scenarios/debit_customer_list/executable.py | 6 ---- scenarios/debit_customer_list/python.mako | 10 ------ scenarios/debit_customer_list/request.mako | 5 --- scenarios/debit_list/definition.mako | 1 - scenarios/debit_list/executable.py | 5 --- scenarios/debit_list/python.mako | 9 ----- scenarios/debit_list/request.mako | 4 --- scenarios/debit_refund/definition.mako | 1 - scenarios/debit_refund/executable.py | 6 ---- scenarios/debit_refund/python.mako | 10 ------ scenarios/debit_refund/request.mako | 5 --- scenarios/debit_show/definition.mako | 1 - scenarios/debit_show/executable.py | 5 --- scenarios/debit_show/python.mako | 9 ----- scenarios/debit_show/request.mako | 4 --- scenarios/debit_update/definition.mako | 1 - scenarios/debit_update/executable.py | 11 ------ scenarios/debit_update/python.mako | 15 -------- scenarios/debit_update/request.mako | 10 ------ scenarios/event_list/definition.mako | 1 - scenarios/event_list/executable.py | 5 --- scenarios/event_list/python.mako | 9 ----- scenarios/event_list/request.mako | 4 --- scenarios/event_replay/definition.mako | 0 scenarios/event_replay/executable.py | 0 scenarios/event_replay/python.mako | 5 --- scenarios/event_replay/request.mako | 0 scenarios/event_show/definition.mako | 1 - scenarios/event_show/executable.py | 5 --- scenarios/event_show/python.mako | 9 ----- scenarios/event_show/request.mako | 4 --- scenarios/hold_account_list/definition.mako | 1 - scenarios/hold_account_list/executable.py | 0 scenarios/hold_account_list/python.mako | 5 --- scenarios/hold_account_list/request.mako | 0 scenarios/hold_capture/definition.mako | 1 - scenarios/hold_capture/executable.py | 9 ----- scenarios/hold_capture/python.mako | 13 ------- scenarios/hold_capture/request.mako | 7 ---- scenarios/hold_create/definition.mako | 1 - scenarios/hold_create/executable.py | 9 ----- scenarios/hold_create/python.mako | 13 ------- scenarios/hold_create/request.mako | 6 ---- scenarios/hold_customer_list/definition.mako | 1 - scenarios/hold_customer_list/executable.py | 6 ---- scenarios/hold_customer_list/python.mako | 10 ------ scenarios/hold_customer_list/request.mako | 5 --- scenarios/hold_list/definition.mako | 1 - scenarios/hold_list/executable.py | 5 --- scenarios/hold_list/python.mako | 9 ----- scenarios/hold_list/request.mako | 4 --- scenarios/hold_show/definition.mako | 1 - scenarios/hold_show/executable.py | 5 --- scenarios/hold_show/python.mako | 9 ----- scenarios/hold_show/request.mako | 4 --- scenarios/hold_update/definition.mako | 1 - scenarios/hold_update/executable.py | 11 ------ scenarios/hold_update/python.mako | 15 -------- scenarios/hold_update/request.mako | 10 ------ scenarios/hold_void/definition.mako | 1 - scenarios/hold_void/executable.py | 6 ---- scenarios/hold_void/python.mako | 10 ------ scenarios/hold_void/request.mako | 5 --- scenarios/refund_account_list/definition.mako | 1 - scenarios/refund_account_list/executable.py | 0 scenarios/refund_account_list/python.mako | 5 --- scenarios/refund_account_list/request.mako | 0 scenarios/refund_create/definition.mako | 1 - scenarios/refund_create/executable.py | 13 ------- scenarios/refund_create/python.mako | 17 ---------- scenarios/refund_create/request.mako | 12 ------- .../refund_customer_list/definition.mako | 1 - scenarios/refund_customer_list/executable.py | 6 ---- scenarios/refund_customer_list/python.mako | 10 ------ scenarios/refund_customer_list/request.mako | 5 --- scenarios/refund_list/definition.mako | 1 - scenarios/refund_list/executable.py | 5 --- scenarios/refund_list/python.mako | 9 ----- scenarios/refund_list/request.mako | 4 --- scenarios/refund_show/definition.mako | 1 - scenarios/refund_show/executable.py | 5 --- scenarios/refund_show/python.mako | 9 ----- scenarios/refund_show/request.mako | 4 --- scenarios/refund_update/definition.mako | 1 - scenarios/refund_update/executable.py | 12 ------- scenarios/refund_update/python.mako | 16 --------- scenarios/refund_update/request.mako | 11 ------ 260 files changed, 1638 deletions(-) delete mode 100644 scenarios/account_add_card/definition.mako delete mode 100644 scenarios/account_add_card/executable.py delete mode 100644 scenarios/account_add_card/python.mako delete mode 100644 scenarios/account_add_card/request.mako delete mode 100644 scenarios/account_create/definition.mako delete mode 100644 scenarios/account_create/executable.py delete mode 100644 scenarios/account_create/python.mako delete mode 100644 scenarios/account_create/request.mako delete mode 100644 scenarios/account_create_buyer/definition.mako delete mode 100644 scenarios/account_create_buyer/executable.py delete mode 100644 scenarios/account_create_buyer/python.mako delete mode 100644 scenarios/account_create_buyer/request.mako delete mode 100644 scenarios/account_create_merchant/definition.mako delete mode 100644 scenarios/account_create_merchant/executable.py delete mode 100644 scenarios/account_create_merchant/python.mako delete mode 100644 scenarios/account_create_merchant/request.mako delete mode 100644 scenarios/account_underwrite_business/definition.mako delete mode 100644 scenarios/account_underwrite_business/executable.py delete mode 100644 scenarios/account_underwrite_business/python.mako delete mode 100644 scenarios/account_underwrite_business/request.mako delete mode 100644 scenarios/account_underwrite_person/definition.mako delete mode 100644 scenarios/account_underwrite_person/executable.py delete mode 100644 scenarios/account_underwrite_person/python.mako delete mode 100644 scenarios/account_underwrite_person/request.mako delete mode 100644 scenarios/bank_account_create/definition.mako delete mode 100644 scenarios/bank_account_create/executable.py delete mode 100644 scenarios/bank_account_create/python.mako delete mode 100644 scenarios/bank_account_create/request.mako delete mode 100644 scenarios/bank_account_delete/definition.mako delete mode 100644 scenarios/bank_account_delete/executable.py delete mode 100644 scenarios/bank_account_delete/python.mako delete mode 100644 scenarios/bank_account_delete/request.mako delete mode 100644 scenarios/bank_account_invalid_routing_number/definition.mako delete mode 100644 scenarios/bank_account_invalid_routing_number/executable.py delete mode 100644 scenarios/bank_account_invalid_routing_number/python.mako delete mode 100644 scenarios/bank_account_invalid_routing_number/request.mako delete mode 100644 scenarios/bank_account_list/definition.mako delete mode 100644 scenarios/bank_account_list/executable.py delete mode 100644 scenarios/bank_account_list/python.mako delete mode 100644 scenarios/bank_account_list/request.mako delete mode 100644 scenarios/bank_account_show/definition.mako delete mode 100644 scenarios/bank_account_show/executable.py delete mode 100644 scenarios/bank_account_show/python.mako delete mode 100644 scenarios/bank_account_show/request.mako delete mode 100644 scenarios/bank_account_verification_create/definition.mako delete mode 100644 scenarios/bank_account_verification_create/executable.py delete mode 100644 scenarios/bank_account_verification_create/python.mako delete mode 100644 scenarios/bank_account_verification_create/request.mako delete mode 100644 scenarios/bank_account_verification_show/definition.mako delete mode 100644 scenarios/bank_account_verification_show/executable.py delete mode 100644 scenarios/bank_account_verification_show/python.mako delete mode 100644 scenarios/bank_account_verification_show/request.mako delete mode 100644 scenarios/bank_account_verification_update/definition.mako delete mode 100644 scenarios/bank_account_verification_update/executable.py delete mode 100644 scenarios/bank_account_verification_update/python.mako delete mode 100644 scenarios/bank_account_verification_update/request.mako delete mode 100644 scenarios/callback_create/definition.mako delete mode 100644 scenarios/callback_create/executable.py delete mode 100644 scenarios/callback_create/python.mako delete mode 100644 scenarios/callback_create/request.mako delete mode 100644 scenarios/callback_delete/definition.mako delete mode 100644 scenarios/callback_delete/executable.py delete mode 100644 scenarios/callback_delete/python.mako delete mode 100644 scenarios/callback_delete/request.mako delete mode 100644 scenarios/callback_list/definition.mako delete mode 100644 scenarios/callback_list/executable.py delete mode 100644 scenarios/callback_list/python.mako delete mode 100644 scenarios/callback_list/request.mako delete mode 100644 scenarios/callback_show/definition.mako delete mode 100644 scenarios/callback_show/executable.py delete mode 100644 scenarios/callback_show/python.mako delete mode 100644 scenarios/callback_show/request.mako delete mode 100644 scenarios/card_create/definition.mako delete mode 100644 scenarios/card_create/executable.py delete mode 100644 scenarios/card_create/python.mako delete mode 100644 scenarios/card_create/request.mako delete mode 100644 scenarios/card_delete/definition.mako delete mode 100644 scenarios/card_delete/executable.py delete mode 100644 scenarios/card_delete/python.mako delete mode 100644 scenarios/card_delete/request.mako delete mode 100644 scenarios/card_invalidate/definition.mako delete mode 100644 scenarios/card_invalidate/executable.py delete mode 100644 scenarios/card_invalidate/python.mako delete mode 100644 scenarios/card_invalidate/request.mako delete mode 100644 scenarios/card_list/definition.mako delete mode 100644 scenarios/card_list/executable.py delete mode 100644 scenarios/card_list/python.mako delete mode 100644 scenarios/card_list/request.mako delete mode 100644 scenarios/card_show/definition.mako delete mode 100644 scenarios/card_show/executable.py delete mode 100644 scenarios/card_show/python.mako delete mode 100644 scenarios/card_show/request.mako delete mode 100644 scenarios/card_update/definition.mako delete mode 100644 scenarios/card_update/executable.py delete mode 100644 scenarios/card_update/python.mako delete mode 100644 scenarios/card_update/request.mako delete mode 100644 scenarios/credit_account_list/definition.mako delete mode 100644 scenarios/credit_account_list/executable.py delete mode 100644 scenarios/credit_account_list/python.mako delete mode 100644 scenarios/credit_account_list/request.mako delete mode 100644 scenarios/credit_account_merchant_create/definition.mako delete mode 100644 scenarios/credit_account_merchant_create/executable.py delete mode 100644 scenarios/credit_account_merchant_create/python.mako delete mode 100644 scenarios/credit_account_merchant_create/request.mako delete mode 100644 scenarios/credit_bank_account_list/definition.mako delete mode 100644 scenarios/credit_bank_account_list/executable.py delete mode 100644 scenarios/credit_bank_account_list/python.mako delete mode 100644 scenarios/credit_bank_account_list/request.mako delete mode 100644 scenarios/credit_create_existing_bank_account/definition.mako delete mode 100644 scenarios/credit_create_existing_bank_account/executable.py delete mode 100644 scenarios/credit_create_existing_bank_account/python.mako delete mode 100644 scenarios/credit_create_existing_bank_account/request.mako delete mode 100644 scenarios/credit_create_new_bank_account/definition.mako delete mode 100644 scenarios/credit_create_new_bank_account/executable.py delete mode 100644 scenarios/credit_create_new_bank_account/python.mako delete mode 100644 scenarios/credit_create_new_bank_account/request.mako delete mode 100644 scenarios/credit_customer_list/definition.mako delete mode 100644 scenarios/credit_customer_list/executable.py delete mode 100644 scenarios/credit_customer_list/python.mako delete mode 100644 scenarios/credit_customer_list/request.mako delete mode 100644 scenarios/credit_failed_state/definition.mako delete mode 100644 scenarios/credit_failed_state/executable.py delete mode 100644 scenarios/credit_failed_state/python.mako delete mode 100644 scenarios/credit_failed_state/request.mako delete mode 100644 scenarios/credit_list/definition.mako delete mode 100644 scenarios/credit_list/executable.py delete mode 100644 scenarios/credit_list/python.mako delete mode 100644 scenarios/credit_list/request.mako delete mode 100644 scenarios/credit_paid_state/definition.mako delete mode 100644 scenarios/credit_paid_state/executable.py delete mode 100644 scenarios/credit_paid_state/python.mako delete mode 100644 scenarios/credit_paid_state/request.mako delete mode 100644 scenarios/credit_pending_state/definition.mako delete mode 100644 scenarios/credit_pending_state/executable.py delete mode 100644 scenarios/credit_pending_state/python.mako delete mode 100644 scenarios/credit_pending_state/request.mako delete mode 100644 scenarios/credit_show/definition.mako delete mode 100644 scenarios/credit_show/executable.py delete mode 100644 scenarios/credit_show/python.mako delete mode 100644 scenarios/credit_show/request.mako delete mode 100644 scenarios/customer_add_bank_account/definition.mako delete mode 100644 scenarios/customer_add_bank_account/executable.py delete mode 100644 scenarios/customer_add_bank_account/python.mako delete mode 100644 scenarios/customer_add_bank_account/request.mako delete mode 100644 scenarios/customer_add_card/definition.mako delete mode 100644 scenarios/customer_add_card/executable.py delete mode 100644 scenarios/customer_add_card/python.mako delete mode 100644 scenarios/customer_add_card/request.mako delete mode 100644 scenarios/customer_create/definition.mako delete mode 100644 scenarios/customer_create/executable.py delete mode 100644 scenarios/customer_create/python.mako delete mode 100644 scenarios/customer_create/request.mako delete mode 100644 scenarios/customer_create_debit/definition.mako delete mode 100644 scenarios/customer_create_debit/executable.py delete mode 100644 scenarios/customer_create_debit/python.mako delete mode 100644 scenarios/customer_create_debit/request.mako delete mode 100644 scenarios/customer_credit/definition.mako delete mode 100644 scenarios/customer_credit/executable.py delete mode 100644 scenarios/customer_credit/python.mako delete mode 100644 scenarios/customer_credit/request.mako delete mode 100644 scenarios/customer_delete/definition.mako delete mode 100644 scenarios/customer_delete/executable.py delete mode 100644 scenarios/customer_delete/python.mako delete mode 100644 scenarios/customer_delete/request.mako delete mode 100644 scenarios/debit_account_list/definition.mako delete mode 100644 scenarios/debit_account_list/executable.py delete mode 100644 scenarios/debit_account_list/python.mako delete mode 100644 scenarios/debit_account_list/request.mako delete mode 100644 scenarios/debit_create/definition.mako delete mode 100644 scenarios/debit_create/executable.py delete mode 100644 scenarios/debit_create/python.mako delete mode 100644 scenarios/debit_create/request.mako delete mode 100644 scenarios/debit_customer_list/definition.mako delete mode 100644 scenarios/debit_customer_list/executable.py delete mode 100644 scenarios/debit_customer_list/python.mako delete mode 100644 scenarios/debit_customer_list/request.mako delete mode 100644 scenarios/debit_list/definition.mako delete mode 100644 scenarios/debit_list/executable.py delete mode 100644 scenarios/debit_list/python.mako delete mode 100644 scenarios/debit_list/request.mako delete mode 100644 scenarios/debit_refund/definition.mako delete mode 100644 scenarios/debit_refund/executable.py delete mode 100644 scenarios/debit_refund/python.mako delete mode 100644 scenarios/debit_refund/request.mako delete mode 100644 scenarios/debit_show/definition.mako delete mode 100644 scenarios/debit_show/executable.py delete mode 100644 scenarios/debit_show/python.mako delete mode 100644 scenarios/debit_show/request.mako delete mode 100644 scenarios/debit_update/definition.mako delete mode 100644 scenarios/debit_update/executable.py delete mode 100644 scenarios/debit_update/python.mako delete mode 100644 scenarios/debit_update/request.mako delete mode 100644 scenarios/event_list/definition.mako delete mode 100644 scenarios/event_list/executable.py delete mode 100644 scenarios/event_list/python.mako delete mode 100644 scenarios/event_list/request.mako delete mode 100644 scenarios/event_replay/definition.mako delete mode 100644 scenarios/event_replay/executable.py delete mode 100644 scenarios/event_replay/python.mako delete mode 100644 scenarios/event_replay/request.mako delete mode 100644 scenarios/event_show/definition.mako delete mode 100644 scenarios/event_show/executable.py delete mode 100644 scenarios/event_show/python.mako delete mode 100644 scenarios/event_show/request.mako delete mode 100644 scenarios/hold_account_list/definition.mako delete mode 100644 scenarios/hold_account_list/executable.py delete mode 100644 scenarios/hold_account_list/python.mako delete mode 100644 scenarios/hold_account_list/request.mako delete mode 100644 scenarios/hold_capture/definition.mako delete mode 100644 scenarios/hold_capture/executable.py delete mode 100644 scenarios/hold_capture/python.mako delete mode 100644 scenarios/hold_capture/request.mako delete mode 100644 scenarios/hold_create/definition.mako delete mode 100644 scenarios/hold_create/executable.py delete mode 100644 scenarios/hold_create/python.mako delete mode 100644 scenarios/hold_create/request.mako delete mode 100644 scenarios/hold_customer_list/definition.mako delete mode 100644 scenarios/hold_customer_list/executable.py delete mode 100644 scenarios/hold_customer_list/python.mako delete mode 100644 scenarios/hold_customer_list/request.mako delete mode 100644 scenarios/hold_list/definition.mako delete mode 100644 scenarios/hold_list/executable.py delete mode 100644 scenarios/hold_list/python.mako delete mode 100644 scenarios/hold_list/request.mako delete mode 100644 scenarios/hold_show/definition.mako delete mode 100644 scenarios/hold_show/executable.py delete mode 100644 scenarios/hold_show/python.mako delete mode 100644 scenarios/hold_show/request.mako delete mode 100644 scenarios/hold_update/definition.mako delete mode 100644 scenarios/hold_update/executable.py delete mode 100644 scenarios/hold_update/python.mako delete mode 100644 scenarios/hold_update/request.mako delete mode 100644 scenarios/hold_void/definition.mako delete mode 100644 scenarios/hold_void/executable.py delete mode 100644 scenarios/hold_void/python.mako delete mode 100644 scenarios/hold_void/request.mako delete mode 100644 scenarios/refund_account_list/definition.mako delete mode 100644 scenarios/refund_account_list/executable.py delete mode 100644 scenarios/refund_account_list/python.mako delete mode 100644 scenarios/refund_account_list/request.mako delete mode 100644 scenarios/refund_create/definition.mako delete mode 100644 scenarios/refund_create/executable.py delete mode 100644 scenarios/refund_create/python.mako delete mode 100644 scenarios/refund_create/request.mako delete mode 100644 scenarios/refund_customer_list/definition.mako delete mode 100644 scenarios/refund_customer_list/executable.py delete mode 100644 scenarios/refund_customer_list/python.mako delete mode 100644 scenarios/refund_customer_list/request.mako delete mode 100644 scenarios/refund_list/definition.mako delete mode 100644 scenarios/refund_list/executable.py delete mode 100644 scenarios/refund_list/python.mako delete mode 100644 scenarios/refund_list/request.mako delete mode 100644 scenarios/refund_show/definition.mako delete mode 100644 scenarios/refund_show/executable.py delete mode 100644 scenarios/refund_show/python.mako delete mode 100644 scenarios/refund_show/request.mako delete mode 100644 scenarios/refund_update/definition.mako delete mode 100644 scenarios/refund_update/executable.py delete mode 100644 scenarios/refund_update/python.mako delete mode 100644 scenarios/refund_update/request.mako diff --git a/scenarios/account_add_card/definition.mako b/scenarios/account_add_card/definition.mako deleted file mode 100644 index 28e5caf..0000000 --- a/scenarios/account_add_card/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Account.add_card \ No newline at end of file diff --git a/scenarios/account_add_card/executable.py b/scenarios/account_add_card/executable.py deleted file mode 100644 index e17c97a..0000000 --- a/scenarios/account_add_card/executable.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -account = balanced.Account.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/accounts/CUhWPVv3F9tVZoGd1GPo2zQ') -account.add_card('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/cards/CCjOJKFuXZJlQm9oKtqVZwW') \ No newline at end of file diff --git a/scenarios/account_add_card/python.mako b/scenarios/account_add_card/python.mako deleted file mode 100644 index d0870be..0000000 --- a/scenarios/account_add_card/python.mako +++ /dev/null @@ -1,10 +0,0 @@ -% if mode == 'definition': -balanced.Account.add_card -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -account = balanced.Account.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/accounts/CUhWPVv3F9tVZoGd1GPo2zQ') -account.add_card('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/cards/CCjOJKFuXZJlQm9oKtqVZwW') -% endif \ No newline at end of file diff --git a/scenarios/account_add_card/request.mako b/scenarios/account_add_card/request.mako deleted file mode 100644 index 120970d..0000000 --- a/scenarios/account_add_card/request.mako +++ /dev/null @@ -1,5 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -account = balanced.Account.find('${request['uri']}') -account.add_card('${request['payload']['card_uri']}') \ No newline at end of file diff --git a/scenarios/account_create/definition.mako b/scenarios/account_create/definition.mako deleted file mode 100644 index 5c073b2..0000000 --- a/scenarios/account_create/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Account(...).save() \ No newline at end of file diff --git a/scenarios/account_create/executable.py b/scenarios/account_create/executable.py deleted file mode 100644 index 10e51e0..0000000 --- a/scenarios/account_create/executable.py +++ /dev/null @@ -1,5 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -account = balanced.Account().save() \ No newline at end of file diff --git a/scenarios/account_create/python.mako b/scenarios/account_create/python.mako deleted file mode 100644 index 5e724a3..0000000 --- a/scenarios/account_create/python.mako +++ /dev/null @@ -1,9 +0,0 @@ -% if mode == 'definition': -balanced.Account(...).save() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -account = balanced.Account().save() -% endif \ No newline at end of file diff --git a/scenarios/account_create/request.mako b/scenarios/account_create/request.mako deleted file mode 100644 index cb7388d..0000000 --- a/scenarios/account_create/request.mako +++ /dev/null @@ -1,4 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -account = balanced.Account().save() \ No newline at end of file diff --git a/scenarios/account_create_buyer/definition.mako b/scenarios/account_create_buyer/definition.mako deleted file mode 100644 index 5c073b2..0000000 --- a/scenarios/account_create_buyer/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Account(...).save() \ No newline at end of file diff --git a/scenarios/account_create_buyer/executable.py b/scenarios/account_create_buyer/executable.py deleted file mode 100644 index 28a265e..0000000 --- a/scenarios/account_create_buyer/executable.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -buyer = balanced.Marketplace.my_marketplace.create_buyer( - card_uri='/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/cards/CChliMH1lqlupiVghuXsWRq' -) \ No newline at end of file diff --git a/scenarios/account_create_buyer/python.mako b/scenarios/account_create_buyer/python.mako deleted file mode 100644 index 6defa82..0000000 --- a/scenarios/account_create_buyer/python.mako +++ /dev/null @@ -1,11 +0,0 @@ -% if mode == 'definition': -balanced.Account(...).save() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -buyer = balanced.Marketplace.my_marketplace.create_buyer( - card_uri='/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/cards/CChliMH1lqlupiVghuXsWRq' -) -% endif \ No newline at end of file diff --git a/scenarios/account_create_buyer/request.mako b/scenarios/account_create_buyer/request.mako deleted file mode 100644 index 2ff4127..0000000 --- a/scenarios/account_create_buyer/request.mako +++ /dev/null @@ -1,6 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -buyer = balanced.Marketplace.my_marketplace.create_buyer( - <% main.payload_expand(request['payload']) %> -) \ No newline at end of file diff --git a/scenarios/account_create_merchant/definition.mako b/scenarios/account_create_merchant/definition.mako deleted file mode 100644 index 8ec7951..0000000 --- a/scenarios/account_create_merchant/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Account.add_bank_account \ No newline at end of file diff --git a/scenarios/account_create_merchant/executable.py b/scenarios/account_create_merchant/executable.py deleted file mode 100644 index 9c46dbf..0000000 --- a/scenarios/account_create_merchant/executable.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -account = balanced.Account.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/accounts/CUhWPVv3F9tVZoGd1GPo2zQ') -account.add_bank_account('/v1/bank_accounts/BAoA1GvbhUuFXyRKiVv76M0') \ No newline at end of file diff --git a/scenarios/account_create_merchant/python.mako b/scenarios/account_create_merchant/python.mako deleted file mode 100644 index 9950538..0000000 --- a/scenarios/account_create_merchant/python.mako +++ /dev/null @@ -1,10 +0,0 @@ -% if mode == 'definition': -balanced.Account.add_bank_account -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -account = balanced.Account.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/accounts/CUhWPVv3F9tVZoGd1GPo2zQ') -account.add_bank_account('/v1/bank_accounts/BAoA1GvbhUuFXyRKiVv76M0') -% endif \ No newline at end of file diff --git a/scenarios/account_create_merchant/request.mako b/scenarios/account_create_merchant/request.mako deleted file mode 100644 index 6e05e2f..0000000 --- a/scenarios/account_create_merchant/request.mako +++ /dev/null @@ -1,5 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -account = balanced.Account.find('${request['uri']}') -account.add_bank_account('${request['payload']['bank_account_uri']}') \ No newline at end of file diff --git a/scenarios/account_underwrite_business/definition.mako b/scenarios/account_underwrite_business/definition.mako deleted file mode 100644 index 032aa08..0000000 --- a/scenarios/account_underwrite_business/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Marketplace.create_merchant() \ No newline at end of file diff --git a/scenarios/account_underwrite_business/executable.py b/scenarios/account_underwrite_business/executable.py deleted file mode 100644 index 322c5ae..0000000 --- a/scenarios/account_underwrite_business/executable.py +++ /dev/null @@ -1,30 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -merchant_data = { - "phone_number": "+140899188155", - "name": "Skripts4Kids", - "person": { - "dob": "1989-12", - "phone_number": "+14089999999", - "postal_code": "94110", - "name": "Timmy Q. CopyPasta", - "street_address": "121 Skriptkid Row" - }, - "postal_code": "91111", - "type": "business", - "street_address": "555 VoidMain Road", - "tax_id": "211111111" -} - -account = balanced.Account().save() - -try: - account.add_merchant(merchant_data) -except balanced.exc.MoreInformationRequiredError as ex: - # could not identify this account. - print 'redirect merchant to:', ex.redirect_uri -except balanced.exc.HTTPError as error: - # TODO: handle 400 and 409 exceptions as required - raise \ No newline at end of file diff --git a/scenarios/account_underwrite_business/python.mako b/scenarios/account_underwrite_business/python.mako deleted file mode 100644 index 3136030..0000000 --- a/scenarios/account_underwrite_business/python.mako +++ /dev/null @@ -1,34 +0,0 @@ -% if mode == 'definition': -balanced.Marketplace.create_merchant() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -merchant_data = { - "phone_number": "+140899188155", - "name": "Skripts4Kids", - "person": { - "dob": "1989-12", - "phone_number": "+14089999999", - "postal_code": "94110", - "name": "Timmy Q. CopyPasta", - "street_address": "121 Skriptkid Row" - }, - "postal_code": "91111", - "type": "business", - "street_address": "555 VoidMain Road", - "tax_id": "211111111" -} - -account = balanced.Account().save() - -try: - account.add_merchant(merchant_data) -except balanced.exc.MoreInformationRequiredError as ex: - # could not identify this account. - print 'redirect merchant to:', ex.redirect_uri -except balanced.exc.HTTPError as error: - # TODO: handle 400 and 409 exceptions as required - raise -% endif \ No newline at end of file diff --git a/scenarios/account_underwrite_business/request.mako b/scenarios/account_underwrite_business/request.mako deleted file mode 100644 index d9fd5c8..0000000 --- a/scenarios/account_underwrite_business/request.mako +++ /dev/null @@ -1,16 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> -<% import json %> -merchant_data = \ -${json.dumps(request['payload']['merchant'], indent=4)} - -account = balanced.Account().save() - -try: - account.add_merchant(merchant_data) -except balanced.exc.MoreInformationRequiredError as ex: - # could not identify this account. - print 'redirect merchant to:', ex.redirect_uri -except balanced.exc.HTTPError as error: - # TODO: handle 400 and 409 exceptions as required - raise \ No newline at end of file diff --git a/scenarios/account_underwrite_person/definition.mako b/scenarios/account_underwrite_person/definition.mako deleted file mode 100644 index 032aa08..0000000 --- a/scenarios/account_underwrite_person/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Marketplace.create_merchant() \ No newline at end of file diff --git a/scenarios/account_underwrite_person/executable.py b/scenarios/account_underwrite_person/executable.py deleted file mode 100644 index ed83c8b..0000000 --- a/scenarios/account_underwrite_person/executable.py +++ /dev/null @@ -1,23 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -merchant_data = { - "phone_number": "+14089999999", - "name": "Timmy Q. CopyPasta", - "dob": "1989-12", - "postal_code": "94110", - "type": "person", - "street_address": "121 Skriptkid Row" -} - -account = balanced.Account().save() - -try: - account.add_merchant(merchant_data) -except balanced.exc.MoreInformationRequiredError as ex: - # could not identify this account. - print 'redirect merchant to:', ex.redirect_uri -except balanced.exc.HTTPError as error: - # TODO: handle 400 and 409 exceptions as required - raise \ No newline at end of file diff --git a/scenarios/account_underwrite_person/python.mako b/scenarios/account_underwrite_person/python.mako deleted file mode 100644 index 921faa7..0000000 --- a/scenarios/account_underwrite_person/python.mako +++ /dev/null @@ -1,27 +0,0 @@ -% if mode == 'definition': -balanced.Marketplace.create_merchant() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -merchant_data = { - "phone_number": "+14089999999", - "name": "Timmy Q. CopyPasta", - "dob": "1989-12", - "postal_code": "94110", - "type": "person", - "street_address": "121 Skriptkid Row" -} - -account = balanced.Account().save() - -try: - account.add_merchant(merchant_data) -except balanced.exc.MoreInformationRequiredError as ex: - # could not identify this account. - print 'redirect merchant to:', ex.redirect_uri -except balanced.exc.HTTPError as error: - # TODO: handle 400 and 409 exceptions as required - raise -% endif \ No newline at end of file diff --git a/scenarios/account_underwrite_person/request.mako b/scenarios/account_underwrite_person/request.mako deleted file mode 100644 index d9fd5c8..0000000 --- a/scenarios/account_underwrite_person/request.mako +++ /dev/null @@ -1,16 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> -<% import json %> -merchant_data = \ -${json.dumps(request['payload']['merchant'], indent=4)} - -account = balanced.Account().save() - -try: - account.add_merchant(merchant_data) -except balanced.exc.MoreInformationRequiredError as ex: - # could not identify this account. - print 'redirect merchant to:', ex.redirect_uri -except balanced.exc.HTTPError as error: - # TODO: handle 400 and 409 exceptions as required - raise \ No newline at end of file diff --git a/scenarios/bank_account_create/definition.mako b/scenarios/bank_account_create/definition.mako deleted file mode 100644 index 3091be6..0000000 --- a/scenarios/bank_account_create/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.BankAccount.save() \ No newline at end of file diff --git a/scenarios/bank_account_create/executable.py b/scenarios/bank_account_create/executable.py deleted file mode 100644 index 648a442..0000000 --- a/scenarios/bank_account_create/executable.py +++ /dev/null @@ -1,10 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -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/scenarios/bank_account_create/python.mako b/scenarios/bank_account_create/python.mako deleted file mode 100644 index 562ab34..0000000 --- a/scenarios/bank_account_create/python.mako +++ /dev/null @@ -1,14 +0,0 @@ -% if mode == 'definition': -balanced.BankAccount.save() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -bank_account = balanced.BankAccount( - routing_number='121000358', - type='checking', - account_number='9900000001', - name='Johann Bernoulli' -).save() -% endif \ No newline at end of file diff --git a/scenarios/bank_account_create/request.mako b/scenarios/bank_account_create/request.mako deleted file mode 100644 index 0907906..0000000 --- a/scenarios/bank_account_create/request.mako +++ /dev/null @@ -1,6 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -bank_account = balanced.BankAccount( - <% main.payload_expand(request['payload']) %> -).save() \ No newline at end of file diff --git a/scenarios/bank_account_delete/definition.mako b/scenarios/bank_account_delete/definition.mako deleted file mode 100644 index 8923a9b..0000000 --- a/scenarios/bank_account_delete/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.BankAccount.delete() \ No newline at end of file diff --git a/scenarios/bank_account_delete/executable.py b/scenarios/bank_account_delete/executable.py deleted file mode 100644 index 1a18852..0000000 --- a/scenarios/bank_account_delete/executable.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -bank_account = balanced.BankAccount.find('/v1/bank_accounts/BARHVIjybOf6v3uQsYOnAYE') -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 deleted file mode 100644 index a398980..0000000 --- a/scenarios/bank_account_delete/python.mako +++ /dev/null @@ -1,10 +0,0 @@ -% if mode == 'definition': -balanced.BankAccount.delete() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -bank_account = balanced.BankAccount.find('/v1/bank_accounts/BARHVIjybOf6v3uQsYOnAYE') -bank_account.delete() -% endif \ No newline at end of file diff --git a/scenarios/bank_account_delete/request.mako b/scenarios/bank_account_delete/request.mako deleted file mode 100644 index 3a0a10c..0000000 --- a/scenarios/bank_account_delete/request.mako +++ /dev/null @@ -1,5 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -bank_account = balanced.BankAccount.find('${request['uri']}') -bank_account.delete() \ No newline at end of file diff --git a/scenarios/bank_account_invalid_routing_number/definition.mako b/scenarios/bank_account_invalid_routing_number/definition.mako deleted file mode 100644 index 89c684e..0000000 --- a/scenarios/bank_account_invalid_routing_number/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.exc.HTTPError \ No newline at end of file diff --git a/scenarios/bank_account_invalid_routing_number/executable.py b/scenarios/bank_account_invalid_routing_number/executable.py deleted file mode 100644 index f2ac3ca..0000000 --- a/scenarios/bank_account_invalid_routing_number/executable.py +++ /dev/null @@ -1,17 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -bank_account = balanced.BankAccount( - routing_number='111111118', - type='checking', - account_number='9900000001', - name='Johann Bernoulli' -) - -try: - bank_account.save() -except balanced.exc.HTTPError, ex: - assert ex.status_code == 400 - assert 'Routing number is invalid' in ex.description - assert ex.request_id is not None \ No newline at end of file diff --git a/scenarios/bank_account_invalid_routing_number/python.mako b/scenarios/bank_account_invalid_routing_number/python.mako deleted file mode 100644 index 6232912..0000000 --- a/scenarios/bank_account_invalid_routing_number/python.mako +++ /dev/null @@ -1,21 +0,0 @@ -% if mode == 'definition': -balanced.exc.HTTPError -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -bank_account = balanced.BankAccount( - routing_number='111111118', - type='checking', - account_number='9900000001', - name='Johann Bernoulli' -) - -try: - bank_account.save() -except balanced.exc.HTTPError, ex: - assert ex.status_code == 400 - assert 'Routing number is invalid' in ex.description - assert ex.request_id is not None -% endif \ No newline at end of file diff --git a/scenarios/bank_account_invalid_routing_number/request.mako b/scenarios/bank_account_invalid_routing_number/request.mako deleted file mode 100644 index f2ebb31..0000000 --- a/scenarios/bank_account_invalid_routing_number/request.mako +++ /dev/null @@ -1,13 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -bank_account = balanced.BankAccount( - <% main.payload_expand(request['payload']) %> -) - -try: - bank_account.save() -except balanced.exc.HTTPError, ex: - assert ex.status_code == 400 - assert 'Routing number is invalid' in ex.description - assert ex.request_id is not None \ No newline at end of file diff --git a/scenarios/bank_account_list/definition.mako b/scenarios/bank_account_list/definition.mako deleted file mode 100644 index ed40953..0000000 --- a/scenarios/bank_account_list/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.BankAccount.query() \ No newline at end of file diff --git a/scenarios/bank_account_list/executable.py b/scenarios/bank_account_list/executable.py deleted file mode 100644 index 0e45b78..0000000 --- a/scenarios/bank_account_list/executable.py +++ /dev/null @@ -1,5 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -bank_accounts = balanced.BankAccount.query.all() \ No newline at end of file diff --git a/scenarios/bank_account_list/python.mako b/scenarios/bank_account_list/python.mako deleted file mode 100644 index a1f2823..0000000 --- a/scenarios/bank_account_list/python.mako +++ /dev/null @@ -1,9 +0,0 @@ -% if mode == 'definition': -balanced.BankAccount.query() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -bank_accounts = balanced.BankAccount.query.all() -% endif \ No newline at end of file diff --git a/scenarios/bank_account_list/request.mako b/scenarios/bank_account_list/request.mako deleted file mode 100644 index c5cd06e..0000000 --- a/scenarios/bank_account_list/request.mako +++ /dev/null @@ -1,4 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -bank_accounts = balanced.BankAccount.query.all() \ No newline at end of file diff --git a/scenarios/bank_account_show/definition.mako b/scenarios/bank_account_show/definition.mako deleted file mode 100644 index d531c20..0000000 --- a/scenarios/bank_account_show/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.BankAccount.find \ No newline at end of file diff --git a/scenarios/bank_account_show/executable.py b/scenarios/bank_account_show/executable.py deleted file mode 100644 index 8821c63..0000000 --- a/scenarios/bank_account_show/executable.py +++ /dev/null @@ -1,5 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -bank_account = balanced.BankAccount.find('/v1/bank_accounts/BAYBae39daGLlFYzJtGPTvw') \ No newline at end of file diff --git a/scenarios/bank_account_show/python.mako b/scenarios/bank_account_show/python.mako deleted file mode 100644 index 921bda9..0000000 --- a/scenarios/bank_account_show/python.mako +++ /dev/null @@ -1,9 +0,0 @@ -% if mode == 'definition': -balanced.BankAccount.find -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -bank_account = balanced.BankAccount.find('/v1/bank_accounts/BAYBae39daGLlFYzJtGPTvw') -% endif \ No newline at end of file diff --git a/scenarios/bank_account_show/request.mako b/scenarios/bank_account_show/request.mako deleted file mode 100644 index 24daabe..0000000 --- a/scenarios/bank_account_show/request.mako +++ /dev/null @@ -1,4 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -bank_account = balanced.BankAccount.find('${request['uri']}') \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/definition.mako b/scenarios/bank_account_verification_create/definition.mako deleted file mode 100644 index 93abd48..0000000 --- a/scenarios/bank_account_verification_create/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Verification().save() \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/executable.py b/scenarios/bank_account_verification_create/executable.py deleted file mode 100644 index b4f11cd..0000000 --- a/scenarios/bank_account_verification_create/executable.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -bank_account = balanced.BankAccount.find('/v1/bank_accounts/BAA31STlZw3eRtjJHyyr0aC') -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 deleted file mode 100644 index fb055c3..0000000 --- a/scenarios/bank_account_verification_create/python.mako +++ /dev/null @@ -1,10 +0,0 @@ -% if mode == 'definition': -balanced.Verification().save() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -bank_account = balanced.BankAccount.find('/v1/bank_accounts/BAA31STlZw3eRtjJHyyr0aC') -verification = bank_account.verify() -% endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/request.mako b/scenarios/bank_account_verification_create/request.mako deleted file mode 100644 index 6df8918..0000000 --- a/scenarios/bank_account_verification_create/request.mako +++ /dev/null @@ -1,5 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -bank_account = balanced.BankAccount.find('${request['bank_account_uri']}') -verification = bank_account.verify() \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/definition.mako b/scenarios/bank_account_verification_show/definition.mako deleted file mode 100644 index 97e1efb..0000000 --- a/scenarios/bank_account_verification_show/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Verification.find \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/executable.py b/scenarios/bank_account_verification_show/executable.py deleted file mode 100644 index 6aae174..0000000 --- a/scenarios/bank_account_verification_show/executable.py +++ /dev/null @@ -1,4 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') -verification = balanced.BankAccountVerification.find('/v1/bank_accounts/BAH8CyjUCJzGtnlG7jvGDHy/verifications/BZJPjdW217PPcBBBy1g3RBk') \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/python.mako b/scenarios/bank_account_verification_show/python.mako deleted file mode 100644 index cfb5d69..0000000 --- a/scenarios/bank_account_verification_show/python.mako +++ /dev/null @@ -1,8 +0,0 @@ -% if mode == 'definition': -balanced.Verification.find -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') -verification = balanced.BankAccountVerification.find('/v1/bank_accounts/BAH8CyjUCJzGtnlG7jvGDHy/verifications/BZJPjdW217PPcBBBy1g3RBk') -% endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/request.mako b/scenarios/bank_account_verification_show/request.mako deleted file mode 100644 index a358fe7..0000000 --- a/scenarios/bank_account_verification_show/request.mako +++ /dev/null @@ -1,3 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> -verification = balanced.BankAccountVerification.find('${request['uri']}') \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/definition.mako b/scenarios/bank_account_verification_update/definition.mako deleted file mode 100644 index 985e18f..0000000 --- a/scenarios/bank_account_verification_update/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Verification.save \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/executable.py b/scenarios/bank_account_verification_update/executable.py deleted file mode 100644 index 7c2b0ca..0000000 --- a/scenarios/bank_account_verification_update/executable.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') -verification = balanced.BankAccountVerification.find('/v1/bank_accounts/BARHVIjybOf6v3uQsYOnAYE/verifications/BZTEkn24x0fcao764SiSGTC') -verification.amount_1 = 1 -verification.amount_2 = 1 -verification.save \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/python.mako b/scenarios/bank_account_verification_update/python.mako deleted file mode 100644 index e191733..0000000 --- a/scenarios/bank_account_verification_update/python.mako +++ /dev/null @@ -1,11 +0,0 @@ -% if mode == 'definition': -balanced.Verification.save -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') -verification = balanced.BankAccountVerification.find('/v1/bank_accounts/BARHVIjybOf6v3uQsYOnAYE/verifications/BZTEkn24x0fcao764SiSGTC') -verification.amount_1 = 1 -verification.amount_2 = 1 -verification.save -% endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/request.mako b/scenarios/bank_account_verification_update/request.mako deleted file mode 100644 index 4834e6e..0000000 --- a/scenarios/bank_account_verification_update/request.mako +++ /dev/null @@ -1,6 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> -verification = balanced.BankAccountVerification.find('${request['uri']}') -verification.amount_1 = 1 -verification.amount_2 = 1 -verification.save \ No newline at end of file diff --git a/scenarios/callback_create/definition.mako b/scenarios/callback_create/definition.mako deleted file mode 100644 index b00979e..0000000 --- a/scenarios/callback_create/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Callback \ No newline at end of file diff --git a/scenarios/callback_create/executable.py b/scenarios/callback_create/executable.py deleted file mode 100644 index 1041103..0000000 --- a/scenarios/callback_create/executable.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -callback = balanced.Callback( - url='http://www.example.com/callback' -).save() \ No newline at end of file diff --git a/scenarios/callback_create/python.mako b/scenarios/callback_create/python.mako deleted file mode 100644 index 2c9f789..0000000 --- a/scenarios/callback_create/python.mako +++ /dev/null @@ -1,11 +0,0 @@ -% if mode == 'definition': -balanced.Callback -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -callback = balanced.Callback( - url='http://www.example.com/callback' -).save() -% endif \ No newline at end of file diff --git a/scenarios/callback_create/request.mako b/scenarios/callback_create/request.mako deleted file mode 100644 index 931797d..0000000 --- a/scenarios/callback_create/request.mako +++ /dev/null @@ -1,6 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -callback = balanced.Callback( - <% main.payload_expand(request['payload']) %> -).save() \ No newline at end of file diff --git a/scenarios/callback_delete/definition.mako b/scenarios/callback_delete/definition.mako deleted file mode 100644 index a1ab3b4..0000000 --- a/scenarios/callback_delete/definition.mako +++ /dev/null @@ -1 +0,0 @@ -Callback.unstore \ No newline at end of file diff --git a/scenarios/callback_delete/executable.py b/scenarios/callback_delete/executable.py deleted file mode 100644 index 647205c..0000000 --- a/scenarios/callback_delete/executable.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -callback = balanced.Callback.find('/v1/callbacks/CB18dXR1zGLZeawfMBIOPVYs') -callback.unstore() \ No newline at end of file diff --git a/scenarios/callback_delete/python.mako b/scenarios/callback_delete/python.mako deleted file mode 100644 index f705cde..0000000 --- a/scenarios/callback_delete/python.mako +++ /dev/null @@ -1,10 +0,0 @@ -% if mode == 'definition': -Callback.unstore -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -callback = balanced.Callback.find('/v1/callbacks/CB18dXR1zGLZeawfMBIOPVYs') -callback.unstore() -% endif \ No newline at end of file diff --git a/scenarios/callback_delete/request.mako b/scenarios/callback_delete/request.mako deleted file mode 100644 index 3000856..0000000 --- a/scenarios/callback_delete/request.mako +++ /dev/null @@ -1,5 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -callback = balanced.Callback.find('${request['uri']}') -callback.unstore() \ No newline at end of file diff --git a/scenarios/callback_list/definition.mako b/scenarios/callback_list/definition.mako deleted file mode 100644 index f8ea1c2..0000000 --- a/scenarios/callback_list/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Callback.query.all \ No newline at end of file diff --git a/scenarios/callback_list/executable.py b/scenarios/callback_list/executable.py deleted file mode 100644 index dd3ff25..0000000 --- a/scenarios/callback_list/executable.py +++ /dev/null @@ -1,5 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -callback = balanced.Callback.query.all() \ No newline at end of file diff --git a/scenarios/callback_list/python.mako b/scenarios/callback_list/python.mako deleted file mode 100644 index ee9e3e6..0000000 --- a/scenarios/callback_list/python.mako +++ /dev/null @@ -1,9 +0,0 @@ -% if mode == 'definition': -balanced.Callback.query.all -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -callback = balanced.Callback.query.all() -% endif \ No newline at end of file diff --git a/scenarios/callback_list/request.mako b/scenarios/callback_list/request.mako deleted file mode 100644 index 3ada641..0000000 --- a/scenarios/callback_list/request.mako +++ /dev/null @@ -1,4 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -callback = balanced.Callback.query.all() \ No newline at end of file diff --git a/scenarios/callback_show/definition.mako b/scenarios/callback_show/definition.mako deleted file mode 100644 index 6f75e8f..0000000 --- a/scenarios/callback_show/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Callback.find \ No newline at end of file diff --git a/scenarios/callback_show/executable.py b/scenarios/callback_show/executable.py deleted file mode 100644 index f00f411..0000000 --- a/scenarios/callback_show/executable.py +++ /dev/null @@ -1,5 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -callback = balanced.Callback.find('/v1/callbacks/CB18dXR1zGLZeawfMBIOPVYs') \ No newline at end of file diff --git a/scenarios/callback_show/python.mako b/scenarios/callback_show/python.mako deleted file mode 100644 index b625f9e..0000000 --- a/scenarios/callback_show/python.mako +++ /dev/null @@ -1,9 +0,0 @@ -% if mode == 'definition': -balanced.Callback.find -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -callback = balanced.Callback.find('/v1/callbacks/CB18dXR1zGLZeawfMBIOPVYs') -% endif \ No newline at end of file diff --git a/scenarios/callback_show/request.mako b/scenarios/callback_show/request.mako deleted file mode 100644 index 77f5c5e..0000000 --- a/scenarios/callback_show/request.mako +++ /dev/null @@ -1,4 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -callback = balanced.Callback.find('${request['uri']}') \ No newline at end of file diff --git a/scenarios/card_create/definition.mako b/scenarios/card_create/definition.mako deleted file mode 100644 index 638c1d2..0000000 --- a/scenarios/card_create/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Card.save() \ No newline at end of file diff --git a/scenarios/card_create/executable.py b/scenarios/card_create/executable.py deleted file mode 100644 index 32ba2e0..0000000 --- a/scenarios/card_create/executable.py +++ /dev/null @@ -1,10 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -card = balanced.Card( - expiration_month='12', - security_code='123', - card_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 deleted file mode 100644 index 3a8fd95..0000000 --- a/scenarios/card_create/python.mako +++ /dev/null @@ -1,14 +0,0 @@ -% if mode == 'definition': -balanced.Card.save() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -card = balanced.Card( - expiration_month='12', - security_code='123', - card_number='5105105105105100', - expiration_year='2020' -).save() -% endif \ No newline at end of file diff --git a/scenarios/card_create/request.mako b/scenarios/card_create/request.mako deleted file mode 100644 index bae039b..0000000 --- a/scenarios/card_create/request.mako +++ /dev/null @@ -1,6 +0,0 @@ -<%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_delete/definition.mako b/scenarios/card_delete/definition.mako deleted file mode 100644 index 52e2dee..0000000 --- a/scenarios/card_delete/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Card.unstore() \ No newline at end of file diff --git a/scenarios/card_delete/executable.py b/scenarios/card_delete/executable.py deleted file mode 100644 index 423b7a8..0000000 --- a/scenarios/card_delete/executable.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -card = balanced.Card.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/cards/CC1i5vMNFo69BmOfBWcx5iZM') -card.unstore() \ No newline at end of file diff --git a/scenarios/card_delete/python.mako b/scenarios/card_delete/python.mako deleted file mode 100644 index 52c9205..0000000 --- a/scenarios/card_delete/python.mako +++ /dev/null @@ -1,10 +0,0 @@ -% if mode == 'definition': -balanced.Card.unstore() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -card = balanced.Card.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/cards/CC1i5vMNFo69BmOfBWcx5iZM') -card.unstore() -% endif \ No newline at end of file diff --git a/scenarios/card_delete/request.mako b/scenarios/card_delete/request.mako deleted file mode 100644 index 19db77d..0000000 --- a/scenarios/card_delete/request.mako +++ /dev/null @@ -1,5 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -card = balanced.Card.find('${request['uri']}') -card.unstore() \ No newline at end of file diff --git a/scenarios/card_invalidate/definition.mako b/scenarios/card_invalidate/definition.mako deleted file mode 100644 index 638c1d2..0000000 --- a/scenarios/card_invalidate/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Card.save() \ No newline at end of file diff --git a/scenarios/card_invalidate/executable.py b/scenarios/card_invalidate/executable.py deleted file mode 100644 index 00c430d..0000000 --- a/scenarios/card_invalidate/executable.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -card = balanced.Card.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/cards/CC1i5vMNFo69BmOfBWcx5iZM') -card.is_valid = False -card.save() \ No newline at end of file diff --git a/scenarios/card_invalidate/python.mako b/scenarios/card_invalidate/python.mako deleted file mode 100644 index dadd61e..0000000 --- a/scenarios/card_invalidate/python.mako +++ /dev/null @@ -1,11 +0,0 @@ -% if mode == 'definition': -balanced.Card.save() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -card = balanced.Card.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/cards/CC1i5vMNFo69BmOfBWcx5iZM') -card.is_valid = False -card.save() -% endif \ No newline at end of file diff --git a/scenarios/card_invalidate/request.mako b/scenarios/card_invalidate/request.mako deleted file mode 100644 index df63314..0000000 --- a/scenarios/card_invalidate/request.mako +++ /dev/null @@ -1,6 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -card = balanced.Card.find('${request['uri']}') -card.is_valid = False -card.save() \ No newline at end of file diff --git a/scenarios/card_list/definition.mako b/scenarios/card_list/definition.mako deleted file mode 100644 index 967ae52..0000000 --- a/scenarios/card_list/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Card.query() \ No newline at end of file diff --git a/scenarios/card_list/executable.py b/scenarios/card_list/executable.py deleted file mode 100644 index a43f83f..0000000 --- a/scenarios/card_list/executable.py +++ /dev/null @@ -1,5 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -cards = balanced.Card.query.all(); \ No newline at end of file diff --git a/scenarios/card_list/python.mako b/scenarios/card_list/python.mako deleted file mode 100644 index 31d72e0..0000000 --- a/scenarios/card_list/python.mako +++ /dev/null @@ -1,9 +0,0 @@ -% if mode == 'definition': -balanced.Card.query() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -cards = balanced.Card.query.all(); -% endif \ No newline at end of file diff --git a/scenarios/card_list/request.mako b/scenarios/card_list/request.mako deleted file mode 100644 index f8fea8d..0000000 --- a/scenarios/card_list/request.mako +++ /dev/null @@ -1,4 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -cards = balanced.Card.query.all(); \ No newline at end of file diff --git a/scenarios/card_show/definition.mako b/scenarios/card_show/definition.mako deleted file mode 100644 index e761ee6..0000000 --- a/scenarios/card_show/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Card.find \ No newline at end of file diff --git a/scenarios/card_show/executable.py b/scenarios/card_show/executable.py deleted file mode 100644 index 1f8d162..0000000 --- a/scenarios/card_show/executable.py +++ /dev/null @@ -1,5 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -card = balanced.Card.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/cards/CC1i5vMNFo69BmOfBWcx5iZM') \ No newline at end of file diff --git a/scenarios/card_show/python.mako b/scenarios/card_show/python.mako deleted file mode 100644 index e86f3b9..0000000 --- a/scenarios/card_show/python.mako +++ /dev/null @@ -1,9 +0,0 @@ -% if mode == 'definition': -balanced.Card.find -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -card = balanced.Card.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/cards/CC1i5vMNFo69BmOfBWcx5iZM') -% endif \ No newline at end of file diff --git a/scenarios/card_show/request.mako b/scenarios/card_show/request.mako deleted file mode 100644 index 3821f1f..0000000 --- a/scenarios/card_show/request.mako +++ /dev/null @@ -1,4 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -card = balanced.Card.find('${request['uri']}') \ No newline at end of file diff --git a/scenarios/card_update/definition.mako b/scenarios/card_update/definition.mako deleted file mode 100644 index 638c1d2..0000000 --- a/scenarios/card_update/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Card.save() \ No newline at end of file diff --git a/scenarios/card_update/executable.py b/scenarios/card_update/executable.py deleted file mode 100644 index 0908992..0000000 --- a/scenarios/card_update/executable.py +++ /dev/null @@ -1,11 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -card = balanced.Card.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/cards/CC1i5vMNFo69BmOfBWcx5iZM') -card.meta = { - 'twitter.id': '1234987650', - 'facebook.user_id': '0192837465', - 'my-own-customer-id': '12345', -} -card.save() \ No newline at end of file diff --git a/scenarios/card_update/python.mako b/scenarios/card_update/python.mako deleted file mode 100644 index 1f6e2c8..0000000 --- a/scenarios/card_update/python.mako +++ /dev/null @@ -1,15 +0,0 @@ -% if mode == 'definition': -balanced.Card.save() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -card = balanced.Card.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/cards/CC1i5vMNFo69BmOfBWcx5iZM') -card.meta = { - 'twitter.id': '1234987650', - 'facebook.user_id': '0192837465', - 'my-own-customer-id': '12345', -} -card.save() -% endif \ No newline at end of file diff --git a/scenarios/card_update/request.mako b/scenarios/card_update/request.mako deleted file mode 100644 index 788f839..0000000 --- a/scenarios/card_update/request.mako +++ /dev/null @@ -1,10 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -card = balanced.Card.find('${request['uri']}') -card.meta = { - 'twitter.id': '1234987650', - 'facebook.user_id': '0192837465', - 'my-own-customer-id': '12345', -} -card.save() \ No newline at end of file diff --git a/scenarios/credit_account_list/definition.mako b/scenarios/credit_account_list/definition.mako deleted file mode 100644 index ff01458..0000000 --- a/scenarios/credit_account_list/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Account.credits \ No newline at end of file diff --git a/scenarios/credit_account_list/executable.py b/scenarios/credit_account_list/executable.py deleted file mode 100644 index e69de29..0000000 diff --git a/scenarios/credit_account_list/python.mako b/scenarios/credit_account_list/python.mako deleted file mode 100644 index c80e1b6..0000000 --- a/scenarios/credit_account_list/python.mako +++ /dev/null @@ -1,5 +0,0 @@ -% if mode == 'definition': -balanced.Account.credits -% else: - -% endif \ No newline at end of file diff --git a/scenarios/credit_account_list/request.mako b/scenarios/credit_account_list/request.mako deleted file mode 100644 index e69de29..0000000 diff --git a/scenarios/credit_account_merchant_create/definition.mako b/scenarios/credit_account_merchant_create/definition.mako deleted file mode 100644 index 08eadf0..0000000 --- a/scenarios/credit_account_merchant_create/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Account.credit() \ No newline at end of file diff --git a/scenarios/credit_account_merchant_create/executable.py b/scenarios/credit_account_merchant_create/executable.py deleted file mode 100644 index e69de29..0000000 diff --git a/scenarios/credit_account_merchant_create/python.mako b/scenarios/credit_account_merchant_create/python.mako deleted file mode 100644 index faed00d..0000000 --- a/scenarios/credit_account_merchant_create/python.mako +++ /dev/null @@ -1,5 +0,0 @@ -% if mode == 'definition': -balanced.Account.credit() -% else: - -% endif \ No newline at end of file diff --git a/scenarios/credit_account_merchant_create/request.mako b/scenarios/credit_account_merchant_create/request.mako deleted file mode 100644 index e69de29..0000000 diff --git a/scenarios/credit_bank_account_list/definition.mako b/scenarios/credit_bank_account_list/definition.mako deleted file mode 100644 index 9ea8870..0000000 --- a/scenarios/credit_bank_account_list/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.BankAccount.credits \ No newline at end of file diff --git a/scenarios/credit_bank_account_list/executable.py b/scenarios/credit_bank_account_list/executable.py deleted file mode 100644 index 727abfb..0000000 --- a/scenarios/credit_bank_account_list/executable.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -bank_account = balanced.BankAccount.find('/v1/bank_accounts/BAYBae39daGLlFYzJtGPTvw') -credits = bank_account.credits.all() \ No newline at end of file diff --git a/scenarios/credit_bank_account_list/python.mako b/scenarios/credit_bank_account_list/python.mako deleted file mode 100644 index 889e0c1..0000000 --- a/scenarios/credit_bank_account_list/python.mako +++ /dev/null @@ -1,10 +0,0 @@ -% if mode == 'definition': -balanced.BankAccount.credits -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -bank_account = balanced.BankAccount.find('/v1/bank_accounts/BAYBae39daGLlFYzJtGPTvw') -credits = bank_account.credits.all() -% endif \ No newline at end of file diff --git a/scenarios/credit_bank_account_list/request.mako b/scenarios/credit_bank_account_list/request.mako deleted file mode 100644 index b2a213f..0000000 --- a/scenarios/credit_bank_account_list/request.mako +++ /dev/null @@ -1,5 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -bank_account = balanced.BankAccount.find('${request['uri']}') -credits = bank_account.credits.all() \ No newline at end of file diff --git a/scenarios/credit_create_existing_bank_account/definition.mako b/scenarios/credit_create_existing_bank_account/definition.mako deleted file mode 100644 index ee4199a..0000000 --- a/scenarios/credit_create_existing_bank_account/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.BankAccount.credit() \ No newline at end of file diff --git a/scenarios/credit_create_existing_bank_account/executable.py b/scenarios/credit_create_existing_bank_account/executable.py deleted file mode 100644 index c117eb1..0000000 --- a/scenarios/credit_create_existing_bank_account/executable.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -bank_account = balanced.BankAccount.find('/v1/bank_accounts/BAYBae39daGLlFYzJtGPTvw') -credit = bank_account.credit(amount=10000) \ No newline at end of file diff --git a/scenarios/credit_create_existing_bank_account/python.mako b/scenarios/credit_create_existing_bank_account/python.mako deleted file mode 100644 index 2b161c9..0000000 --- a/scenarios/credit_create_existing_bank_account/python.mako +++ /dev/null @@ -1,10 +0,0 @@ -% if mode == 'definition': -balanced.BankAccount.credit() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -bank_account = balanced.BankAccount.find('/v1/bank_accounts/BAYBae39daGLlFYzJtGPTvw') -credit = bank_account.credit(amount=10000) -% endif \ No newline at end of file diff --git a/scenarios/credit_create_existing_bank_account/request.mako b/scenarios/credit_create_existing_bank_account/request.mako deleted file mode 100644 index 8968dc8..0000000 --- a/scenarios/credit_create_existing_bank_account/request.mako +++ /dev/null @@ -1,5 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -bank_account = balanced.BankAccount.find('${request['uri']}') -credit = bank_account.credit(amount=${request['payload']['amount']}) \ No newline at end of file diff --git a/scenarios/credit_create_new_bank_account/definition.mako b/scenarios/credit_create_new_bank_account/definition.mako deleted file mode 100644 index 67abe6c..0000000 --- a/scenarios/credit_create_new_bank_account/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Credit.save() \ No newline at end of file diff --git a/scenarios/credit_create_new_bank_account/executable.py b/scenarios/credit_create_new_bank_account/executable.py deleted file mode 100644 index 51507e8..0000000 --- a/scenarios/credit_create_new_bank_account/executable.py +++ /dev/null @@ -1,15 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -bank_account_info = { - "routing_number": "121000358", - "type": "checking", - "account_number": "9900000001", - "name": "Johann Bernoulli" -} - -credit = balanced.Credit( - amount=10000, - bank_account=bank_account_info -).save() \ No newline at end of file diff --git a/scenarios/credit_create_new_bank_account/python.mako b/scenarios/credit_create_new_bank_account/python.mako deleted file mode 100644 index 0a73abb..0000000 --- a/scenarios/credit_create_new_bank_account/python.mako +++ /dev/null @@ -1,19 +0,0 @@ -% if mode == 'definition': -balanced.Credit.save() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -bank_account_info = { - "routing_number": "121000358", - "type": "checking", - "account_number": "9900000001", - "name": "Johann Bernoulli" -} - -credit = balanced.Credit( - amount=10000, - bank_account=bank_account_info -).save() -% endif \ No newline at end of file diff --git a/scenarios/credit_create_new_bank_account/request.mako b/scenarios/credit_create_new_bank_account/request.mako deleted file mode 100644 index 2b4ee0e..0000000 --- a/scenarios/credit_create_new_bank_account/request.mako +++ /dev/null @@ -1,10 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> -<% import json %> -bank_account_info = \ -${json.dumps(request['payload']['bank_account'], indent=4)} - -credit = balanced.Credit( - amount=${request['payload']['amount']}, - bank_account=bank_account_info -).save() \ No newline at end of file diff --git a/scenarios/credit_customer_list/definition.mako b/scenarios/credit_customer_list/definition.mako deleted file mode 100644 index ea1513c..0000000 --- a/scenarios/credit_customer_list/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Customer.credits \ No newline at end of file diff --git a/scenarios/credit_customer_list/executable.py b/scenarios/credit_customer_list/executable.py deleted file mode 100644 index bbe2655..0000000 --- a/scenarios/credit_customer_list/executable.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -customer = balanced.Customer.find('/v1/customers/CUyABeNYx8vHAaP4KRsd1j4') -credits = customer.credits.all() \ No newline at end of file diff --git a/scenarios/credit_customer_list/python.mako b/scenarios/credit_customer_list/python.mako deleted file mode 100644 index e5b046c..0000000 --- a/scenarios/credit_customer_list/python.mako +++ /dev/null @@ -1,10 +0,0 @@ -% if mode == 'definition': -balanced.Customer.credits -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -customer = balanced.Customer.find('/v1/customers/CUyABeNYx8vHAaP4KRsd1j4') -credits = customer.credits.all() -% endif \ No newline at end of file diff --git a/scenarios/credit_customer_list/request.mako b/scenarios/credit_customer_list/request.mako deleted file mode 100644 index d4f50d9..0000000 --- a/scenarios/credit_customer_list/request.mako +++ /dev/null @@ -1,5 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -customer = balanced.Customer.find('${request['customer_uri']}') -credits = customer.credits.all() \ No newline at end of file diff --git a/scenarios/credit_failed_state/definition.mako b/scenarios/credit_failed_state/definition.mako deleted file mode 100644 index 67abe6c..0000000 --- a/scenarios/credit_failed_state/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Credit.save() \ No newline at end of file diff --git a/scenarios/credit_failed_state/executable.py b/scenarios/credit_failed_state/executable.py deleted file mode 100644 index 1a8ba56..0000000 --- a/scenarios/credit_failed_state/executable.py +++ /dev/null @@ -1,15 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -bank_account_info = { - "routing_number": "121000358", - "type": "checking", - "account_number": "9900000004", - "name": "Johann Bernoulli" -} - -credit = balanced.Credit( - amount=10000, - bank_account=bank_account_info -).save() \ No newline at end of file diff --git a/scenarios/credit_failed_state/python.mako b/scenarios/credit_failed_state/python.mako deleted file mode 100644 index f78f364..0000000 --- a/scenarios/credit_failed_state/python.mako +++ /dev/null @@ -1,19 +0,0 @@ -% if mode == 'definition': -balanced.Credit.save() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -bank_account_info = { - "routing_number": "121000358", - "type": "checking", - "account_number": "9900000004", - "name": "Johann Bernoulli" -} - -credit = balanced.Credit( - amount=10000, - bank_account=bank_account_info -).save() -% endif \ No newline at end of file diff --git a/scenarios/credit_failed_state/request.mako b/scenarios/credit_failed_state/request.mako deleted file mode 100644 index 2b4ee0e..0000000 --- a/scenarios/credit_failed_state/request.mako +++ /dev/null @@ -1,10 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> -<% import json %> -bank_account_info = \ -${json.dumps(request['payload']['bank_account'], indent=4)} - -credit = balanced.Credit( - amount=${request['payload']['amount']}, - bank_account=bank_account_info -).save() \ No newline at end of file diff --git a/scenarios/credit_list/definition.mako b/scenarios/credit_list/definition.mako deleted file mode 100644 index 25d1921..0000000 --- a/scenarios/credit_list/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Credit.query \ No newline at end of file diff --git a/scenarios/credit_list/executable.py b/scenarios/credit_list/executable.py deleted file mode 100644 index 66318fe..0000000 --- a/scenarios/credit_list/executable.py +++ /dev/null @@ -1,5 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -credits = balanced.Credit.query.all() \ No newline at end of file diff --git a/scenarios/credit_list/python.mako b/scenarios/credit_list/python.mako deleted file mode 100644 index d75dc7f..0000000 --- a/scenarios/credit_list/python.mako +++ /dev/null @@ -1,9 +0,0 @@ -% if mode == 'definition': -balanced.Credit.query -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -credits = balanced.Credit.query.all() -% endif \ No newline at end of file diff --git a/scenarios/credit_list/request.mako b/scenarios/credit_list/request.mako deleted file mode 100644 index 55eb938..0000000 --- a/scenarios/credit_list/request.mako +++ /dev/null @@ -1,4 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -credits = balanced.Credit.query.all() \ No newline at end of file diff --git a/scenarios/credit_paid_state/definition.mako b/scenarios/credit_paid_state/definition.mako deleted file mode 100644 index 67abe6c..0000000 --- a/scenarios/credit_paid_state/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Credit.save() \ No newline at end of file diff --git a/scenarios/credit_paid_state/executable.py b/scenarios/credit_paid_state/executable.py deleted file mode 100644 index ab888d6..0000000 --- a/scenarios/credit_paid_state/executable.py +++ /dev/null @@ -1,15 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -bank_account_info = { - "routing_number": "121000358", - "type": "checking", - "account_number": "9900000003", - "name": "Johann Bernoulli" -} - -credit = balanced.Credit( - amount=10000, - bank_account=bank_account_info -).save() \ No newline at end of file diff --git a/scenarios/credit_paid_state/python.mako b/scenarios/credit_paid_state/python.mako deleted file mode 100644 index 71fb35a..0000000 --- a/scenarios/credit_paid_state/python.mako +++ /dev/null @@ -1,19 +0,0 @@ -% if mode == 'definition': -balanced.Credit.save() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -bank_account_info = { - "routing_number": "121000358", - "type": "checking", - "account_number": "9900000003", - "name": "Johann Bernoulli" -} - -credit = balanced.Credit( - amount=10000, - bank_account=bank_account_info -).save() -% endif \ No newline at end of file diff --git a/scenarios/credit_paid_state/request.mako b/scenarios/credit_paid_state/request.mako deleted file mode 100644 index 0344b43..0000000 --- a/scenarios/credit_paid_state/request.mako +++ /dev/null @@ -1,10 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> -<% import json %> -bank_account_info = \ -${json.dumps(request['payload']['bank_account'], indent=4)} - -credit = balanced.Credit( - amount=${request['payload']['amount']}, - bank_account=bank_account_info -).save() diff --git a/scenarios/credit_pending_state/definition.mako b/scenarios/credit_pending_state/definition.mako deleted file mode 100644 index 67abe6c..0000000 --- a/scenarios/credit_pending_state/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Credit.save() \ No newline at end of file diff --git a/scenarios/credit_pending_state/executable.py b/scenarios/credit_pending_state/executable.py deleted file mode 100644 index e74a41c..0000000 --- a/scenarios/credit_pending_state/executable.py +++ /dev/null @@ -1,15 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -bank_account_info = { - "routing_number": "121000358", - "type": "checking", - "account_number": "9900000000", - "name": "Johann Bernoulli" -} - -credit = balanced.Credit( - amount=10000, - bank_account=bank_account_info -).save() \ No newline at end of file diff --git a/scenarios/credit_pending_state/python.mako b/scenarios/credit_pending_state/python.mako deleted file mode 100644 index 797ddb7..0000000 --- a/scenarios/credit_pending_state/python.mako +++ /dev/null @@ -1,19 +0,0 @@ -% if mode == 'definition': -balanced.Credit.save() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -bank_account_info = { - "routing_number": "121000358", - "type": "checking", - "account_number": "9900000000", - "name": "Johann Bernoulli" -} - -credit = balanced.Credit( - amount=10000, - bank_account=bank_account_info -).save() -% endif \ No newline at end of file diff --git a/scenarios/credit_pending_state/request.mako b/scenarios/credit_pending_state/request.mako deleted file mode 100644 index 2b4ee0e..0000000 --- a/scenarios/credit_pending_state/request.mako +++ /dev/null @@ -1,10 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> -<% import json %> -bank_account_info = \ -${json.dumps(request['payload']['bank_account'], indent=4)} - -credit = balanced.Credit( - amount=${request['payload']['amount']}, - bank_account=bank_account_info -).save() \ No newline at end of file diff --git a/scenarios/credit_show/definition.mako b/scenarios/credit_show/definition.mako deleted file mode 100644 index 816c212..0000000 --- a/scenarios/credit_show/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Credit.find() \ No newline at end of file diff --git a/scenarios/credit_show/executable.py b/scenarios/credit_show/executable.py deleted file mode 100644 index 73d37e0..0000000 --- a/scenarios/credit_show/executable.py +++ /dev/null @@ -1,5 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -credit = balanced.Credit.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/credits/CR1xunmvDnFBo3fynM1KnuUm') \ No newline at end of file diff --git a/scenarios/credit_show/python.mako b/scenarios/credit_show/python.mako deleted file mode 100644 index 4b033ca..0000000 --- a/scenarios/credit_show/python.mako +++ /dev/null @@ -1,9 +0,0 @@ -% if mode == 'definition': -balanced.Credit.find() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -credit = balanced.Credit.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/credits/CR1xunmvDnFBo3fynM1KnuUm') -% endif \ No newline at end of file diff --git a/scenarios/credit_show/request.mako b/scenarios/credit_show/request.mako deleted file mode 100644 index aeb0587..0000000 --- a/scenarios/credit_show/request.mako +++ /dev/null @@ -1,4 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -credit = balanced.Credit.find('${request['uri']}') \ No newline at end of file diff --git a/scenarios/customer_add_bank_account/definition.mako b/scenarios/customer_add_bank_account/definition.mako deleted file mode 100644 index fbba3a2..0000000 --- a/scenarios/customer_add_bank_account/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Customer.add_bank_account \ No newline at end of file diff --git a/scenarios/customer_add_bank_account/executable.py b/scenarios/customer_add_bank_account/executable.py deleted file mode 100644 index b078188..0000000 --- a/scenarios/customer_add_bank_account/executable.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -customer = balanced.Customer.find('/v1/customers/CU22xHvLbgGKfzamLW8IZJsr') -customer.add_bank_account('/v1/bank_accounts/BA24Zc2jo1moflunJDxKrCrB') \ No newline at end of file diff --git a/scenarios/customer_add_bank_account/python.mako b/scenarios/customer_add_bank_account/python.mako deleted file mode 100644 index 8aaa3e1..0000000 --- a/scenarios/customer_add_bank_account/python.mako +++ /dev/null @@ -1,10 +0,0 @@ -% if mode == 'definition': -balanced.Customer.add_bank_account -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -customer = balanced.Customer.find('/v1/customers/CU22xHvLbgGKfzamLW8IZJsr') -customer.add_bank_account('/v1/bank_accounts/BA24Zc2jo1moflunJDxKrCrB') -% endif \ No newline at end of file diff --git a/scenarios/customer_add_bank_account/request.mako b/scenarios/customer_add_bank_account/request.mako deleted file mode 100644 index 4069b5b..0000000 --- a/scenarios/customer_add_bank_account/request.mako +++ /dev/null @@ -1,5 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -customer = balanced.Customer.find('${request['uri']}') -customer.add_bank_account('${request['payload']['bank_account_uri']}') \ No newline at end of file diff --git a/scenarios/customer_add_card/definition.mako b/scenarios/customer_add_card/definition.mako deleted file mode 100644 index 69aafcb..0000000 --- a/scenarios/customer_add_card/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Customer.add_card \ No newline at end of file diff --git a/scenarios/customer_add_card/executable.py b/scenarios/customer_add_card/executable.py deleted file mode 100644 index 3605af4..0000000 --- a/scenarios/customer_add_card/executable.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -customer = balanced.Customer.find('/v1/customers/CU3yqhHviPZ4ZbpHMcaa3SKH') -customer.add_card('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/cards/CC3AiMy0KEP1PhwnffMk32RF') \ No newline at end of file diff --git a/scenarios/customer_add_card/python.mako b/scenarios/customer_add_card/python.mako deleted file mode 100644 index a57dd38..0000000 --- a/scenarios/customer_add_card/python.mako +++ /dev/null @@ -1,10 +0,0 @@ -% if mode == 'definition': -balanced.Customer.add_card -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -customer = balanced.Customer.find('/v1/customers/CU3yqhHviPZ4ZbpHMcaa3SKH') -customer.add_card('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/cards/CC3AiMy0KEP1PhwnffMk32RF') -% endif \ No newline at end of file diff --git a/scenarios/customer_add_card/request.mako b/scenarios/customer_add_card/request.mako deleted file mode 100644 index 6578636..0000000 --- a/scenarios/customer_add_card/request.mako +++ /dev/null @@ -1,5 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -customer = balanced.Customer.find('${request['uri']}') -customer.add_card('${request['payload']['card_uri']}') \ No newline at end of file diff --git a/scenarios/customer_create/definition.mako b/scenarios/customer_create/definition.mako deleted file mode 100644 index cd27a6f..0000000 --- a/scenarios/customer_create/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Customer(...).save() \ No newline at end of file diff --git a/scenarios/customer_create/executable.py b/scenarios/customer_create/executable.py deleted file mode 100644 index c53e345..0000000 --- a/scenarios/customer_create/executable.py +++ /dev/null @@ -1,5 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -customer = balanced.Customer().save() \ No newline at end of file diff --git a/scenarios/customer_create/python.mako b/scenarios/customer_create/python.mako deleted file mode 100644 index 6f66262..0000000 --- a/scenarios/customer_create/python.mako +++ /dev/null @@ -1,9 +0,0 @@ -% if mode == 'definition': -balanced.Customer(...).save() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -customer = balanced.Customer().save() -% endif \ No newline at end of file diff --git a/scenarios/customer_create/request.mako b/scenarios/customer_create/request.mako deleted file mode 100644 index 7ac8c2d..0000000 --- a/scenarios/customer_create/request.mako +++ /dev/null @@ -1,4 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -customer = balanced.Customer().save() \ No newline at end of file diff --git a/scenarios/customer_create_debit/definition.mako b/scenarios/customer_create_debit/definition.mako deleted file mode 100644 index a75cd4c..0000000 --- a/scenarios/customer_create_debit/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Customer.debit() \ No newline at end of file diff --git a/scenarios/customer_create_debit/executable.py b/scenarios/customer_create_debit/executable.py deleted file mode 100644 index 997d154..0000000 --- a/scenarios/customer_create_debit/executable.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -customer = balanced.Customer.find('/v1/customers/CU2dUh4jpUihIQsHFbTwuDAc') -customer.debit(amount=5000) \ No newline at end of file diff --git a/scenarios/customer_create_debit/python.mako b/scenarios/customer_create_debit/python.mako deleted file mode 100644 index a9c9d92..0000000 --- a/scenarios/customer_create_debit/python.mako +++ /dev/null @@ -1,10 +0,0 @@ -% if mode == 'definition': -balanced.Customer.debit() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -customer = balanced.Customer.find('/v1/customers/CU2dUh4jpUihIQsHFbTwuDAc') -customer.debit(amount=5000) -% endif \ No newline at end of file diff --git a/scenarios/customer_create_debit/request.mako b/scenarios/customer_create_debit/request.mako deleted file mode 100644 index a6038e4..0000000 --- a/scenarios/customer_create_debit/request.mako +++ /dev/null @@ -1,5 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -customer = balanced.Customer.find('${request['customer_uri']}') -customer.debit(amount=${request['payload']['amount']}) \ No newline at end of file diff --git a/scenarios/customer_credit/definition.mako b/scenarios/customer_credit/definition.mako deleted file mode 100644 index 3dac8ae..0000000 --- a/scenarios/customer_credit/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Customer.credit() \ No newline at end of file diff --git a/scenarios/customer_credit/executable.py b/scenarios/customer_credit/executable.py deleted file mode 100644 index 040e4b8..0000000 --- a/scenarios/customer_credit/executable.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -customer = balanced.Customer.find('/v1/customers/CUyABeNYx8vHAaP4KRsd1j4/credits') -customer.credit(amount=100) \ No newline at end of file diff --git a/scenarios/customer_credit/python.mako b/scenarios/customer_credit/python.mako deleted file mode 100644 index d6f97f9..0000000 --- a/scenarios/customer_credit/python.mako +++ /dev/null @@ -1,10 +0,0 @@ -% if mode == 'definition': -balanced.Customer.credit() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -customer = balanced.Customer.find('/v1/customers/CUyABeNYx8vHAaP4KRsd1j4/credits') -customer.credit(amount=100) -% endif \ No newline at end of file diff --git a/scenarios/customer_credit/request.mako b/scenarios/customer_credit/request.mako deleted file mode 100644 index 5f4d2e2..0000000 --- a/scenarios/customer_credit/request.mako +++ /dev/null @@ -1,5 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -customer = balanced.Customer.find('${request['uri']}') -customer.credit(amount=${request['payload']['amount']}) \ No newline at end of file diff --git a/scenarios/customer_delete/definition.mako b/scenarios/customer_delete/definition.mako deleted file mode 100644 index c19541c..0000000 --- a/scenarios/customer_delete/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Customer(...).unstore() \ No newline at end of file diff --git a/scenarios/customer_delete/executable.py b/scenarios/customer_delete/executable.py deleted file mode 100644 index 8c89db8..0000000 --- a/scenarios/customer_delete/executable.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -customer = balanced.Customer.find('/v1/customers/CU29FAMV807phGkX4wGIuymW') -customer.unstore() \ No newline at end of file diff --git a/scenarios/customer_delete/python.mako b/scenarios/customer_delete/python.mako deleted file mode 100644 index f8c07ae..0000000 --- a/scenarios/customer_delete/python.mako +++ /dev/null @@ -1,10 +0,0 @@ -% if mode == 'definition': -balanced.Customer(...).unstore() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -customer = balanced.Customer.find('/v1/customers/CU29FAMV807phGkX4wGIuymW') -customer.unstore() -% endif \ No newline at end of file diff --git a/scenarios/customer_delete/request.mako b/scenarios/customer_delete/request.mako deleted file mode 100644 index 801c438..0000000 --- a/scenarios/customer_delete/request.mako +++ /dev/null @@ -1,5 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -customer = balanced.Customer.find('${request['uri']}') -customer.unstore() \ No newline at end of file diff --git a/scenarios/debit_account_list/definition.mako b/scenarios/debit_account_list/definition.mako deleted file mode 100644 index 9f18600..0000000 --- a/scenarios/debit_account_list/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Account.debits \ No newline at end of file diff --git a/scenarios/debit_account_list/executable.py b/scenarios/debit_account_list/executable.py deleted file mode 100644 index e69de29..0000000 diff --git a/scenarios/debit_account_list/python.mako b/scenarios/debit_account_list/python.mako deleted file mode 100644 index b4c0cb0..0000000 --- a/scenarios/debit_account_list/python.mako +++ /dev/null @@ -1,5 +0,0 @@ -% if mode == 'definition': -balanced.Account.debits -% else: - -% endif \ No newline at end of file diff --git a/scenarios/debit_account_list/request.mako b/scenarios/debit_account_list/request.mako deleted file mode 100644 index e69de29..0000000 diff --git a/scenarios/debit_create/definition.mako b/scenarios/debit_create/definition.mako deleted file mode 100644 index b1c724b..0000000 --- a/scenarios/debit_create/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Customer.debit(...) \ No newline at end of file diff --git a/scenarios/debit_create/executable.py b/scenarios/debit_create/executable.py deleted file mode 100644 index 778d27a..0000000 --- a/scenarios/debit_create/executable.py +++ /dev/null @@ -1,10 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -customer = balanced.Customer.find('/v1/customers/CU35rlJBXqlvD9LC26PWu0cy') -customer.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/debit_create/python.mako b/scenarios/debit_create/python.mako deleted file mode 100644 index 3ef246c..0000000 --- a/scenarios/debit_create/python.mako +++ /dev/null @@ -1,14 +0,0 @@ -% if mode == 'definition': -balanced.Customer.debit(...) -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -customer = balanced.Customer.find('/v1/customers/CU35rlJBXqlvD9LC26PWu0cy') -customer.debit( - appears_on_statement_as='Statement text', - amount=5000, - description='Some descriptive text for the debit in the dashboard' -) -% endif \ No newline at end of file diff --git a/scenarios/debit_create/request.mako b/scenarios/debit_create/request.mako deleted file mode 100644 index a659d1c..0000000 --- a/scenarios/debit_create/request.mako +++ /dev/null @@ -1,7 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -customer = balanced.Customer.find('${request['customer_uri']}') -customer.debit( - <% main.payload_expand(request['payload']) %> -) \ No newline at end of file diff --git a/scenarios/debit_customer_list/definition.mako b/scenarios/debit_customer_list/definition.mako deleted file mode 100644 index fee5ae3..0000000 --- a/scenarios/debit_customer_list/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Customer.debits \ No newline at end of file diff --git a/scenarios/debit_customer_list/executable.py b/scenarios/debit_customer_list/executable.py deleted file mode 100644 index b1ba6bf..0000000 --- a/scenarios/debit_customer_list/executable.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -customer = balanced.Customer.find('/v1/customers/CU2dUh4jpUihIQsHFbTwuDAc') -debits = customer.debits.all() \ No newline at end of file diff --git a/scenarios/debit_customer_list/python.mako b/scenarios/debit_customer_list/python.mako deleted file mode 100644 index e18ce55..0000000 --- a/scenarios/debit_customer_list/python.mako +++ /dev/null @@ -1,10 +0,0 @@ -% if mode == 'definition': -balanced.Customer.debits -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -customer = balanced.Customer.find('/v1/customers/CU2dUh4jpUihIQsHFbTwuDAc') -debits = customer.debits.all() -% endif \ No newline at end of file diff --git a/scenarios/debit_customer_list/request.mako b/scenarios/debit_customer_list/request.mako deleted file mode 100644 index c262455..0000000 --- a/scenarios/debit_customer_list/request.mako +++ /dev/null @@ -1,5 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -customer = balanced.Customer.find('${request['uri']}') -debits = customer.debits.all() \ No newline at end of file diff --git a/scenarios/debit_list/definition.mako b/scenarios/debit_list/definition.mako deleted file mode 100644 index debf1ff..0000000 --- a/scenarios/debit_list/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Debit.query() \ No newline at end of file diff --git a/scenarios/debit_list/executable.py b/scenarios/debit_list/executable.py deleted file mode 100644 index 16c21b3..0000000 --- a/scenarios/debit_list/executable.py +++ /dev/null @@ -1,5 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -debits = balanced.Debit.query.all(); \ No newline at end of file diff --git a/scenarios/debit_list/python.mako b/scenarios/debit_list/python.mako deleted file mode 100644 index 68d62a1..0000000 --- a/scenarios/debit_list/python.mako +++ /dev/null @@ -1,9 +0,0 @@ -% if mode == 'definition': -balanced.Debit.query() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -debits = balanced.Debit.query.all(); -% endif \ No newline at end of file diff --git a/scenarios/debit_list/request.mako b/scenarios/debit_list/request.mako deleted file mode 100644 index a10d29b..0000000 --- a/scenarios/debit_list/request.mako +++ /dev/null @@ -1,4 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -debits = balanced.Debit.query.all(); \ No newline at end of file diff --git a/scenarios/debit_refund/definition.mako b/scenarios/debit_refund/definition.mako deleted file mode 100644 index a5321df..0000000 --- a/scenarios/debit_refund/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Debit.refund() \ No newline at end of file diff --git a/scenarios/debit_refund/executable.py b/scenarios/debit_refund/executable.py deleted file mode 100644 index ea27048..0000000 --- a/scenarios/debit_refund/executable.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -debit = balanced.Debit.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/debits/WD2za3rLGBUpINViqUGbY5XW') -debit.refund() \ No newline at end of file diff --git a/scenarios/debit_refund/python.mako b/scenarios/debit_refund/python.mako deleted file mode 100644 index 38ddc01..0000000 --- a/scenarios/debit_refund/python.mako +++ /dev/null @@ -1,10 +0,0 @@ -% if mode == 'definition': -balanced.Debit.refund() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -debit = balanced.Debit.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/debits/WD2za3rLGBUpINViqUGbY5XW') -debit.refund() -% endif \ No newline at end of file diff --git a/scenarios/debit_refund/request.mako b/scenarios/debit_refund/request.mako deleted file mode 100644 index 565e9cd..0000000 --- a/scenarios/debit_refund/request.mako +++ /dev/null @@ -1,5 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -debit = balanced.Debit.find('${request['debit_uri']}') -debit.refund() \ No newline at end of file diff --git a/scenarios/debit_show/definition.mako b/scenarios/debit_show/definition.mako deleted file mode 100644 index 1fc6ab5..0000000 --- a/scenarios/debit_show/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Debit.find \ No newline at end of file diff --git a/scenarios/debit_show/executable.py b/scenarios/debit_show/executable.py deleted file mode 100644 index 0ee5c59..0000000 --- a/scenarios/debit_show/executable.py +++ /dev/null @@ -1,5 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -debit = balanced.Debit.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/debits/WD2lQO6cFyxyTWj6mLQ6zFDO') \ No newline at end of file diff --git a/scenarios/debit_show/python.mako b/scenarios/debit_show/python.mako deleted file mode 100644 index 796ea08..0000000 --- a/scenarios/debit_show/python.mako +++ /dev/null @@ -1,9 +0,0 @@ -% if mode == 'definition': -balanced.Debit.find -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -debit = balanced.Debit.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/debits/WD2lQO6cFyxyTWj6mLQ6zFDO') -% endif \ No newline at end of file diff --git a/scenarios/debit_show/request.mako b/scenarios/debit_show/request.mako deleted file mode 100644 index bf2c349..0000000 --- a/scenarios/debit_show/request.mako +++ /dev/null @@ -1,4 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -debit = balanced.Debit.find('${request['uri']}') \ No newline at end of file diff --git a/scenarios/debit_update/definition.mako b/scenarios/debit_update/definition.mako deleted file mode 100644 index 01fec2c..0000000 --- a/scenarios/debit_update/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Debit.save() \ No newline at end of file diff --git a/scenarios/debit_update/executable.py b/scenarios/debit_update/executable.py deleted file mode 100644 index 162ed97..0000000 --- a/scenarios/debit_update/executable.py +++ /dev/null @@ -1,11 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -debit = balanced.Debit.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/debits/WD2lQO6cFyxyTWj6mLQ6zFDO') -debit.description = 'New description for debit' -debit.meta = { - 'facebook.id': '1234567890', - 'anykey': 'valuegoeshere', -} -debit.save() \ No newline at end of file diff --git a/scenarios/debit_update/python.mako b/scenarios/debit_update/python.mako deleted file mode 100644 index 60a3d4e..0000000 --- a/scenarios/debit_update/python.mako +++ /dev/null @@ -1,15 +0,0 @@ -% if mode == 'definition': -balanced.Debit.save() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -debit = balanced.Debit.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/debits/WD2lQO6cFyxyTWj6mLQ6zFDO') -debit.description = 'New description for debit' -debit.meta = { - 'facebook.id': '1234567890', - 'anykey': 'valuegoeshere', -} -debit.save() -% endif \ No newline at end of file diff --git a/scenarios/debit_update/request.mako b/scenarios/debit_update/request.mako deleted file mode 100644 index d33bc4a..0000000 --- a/scenarios/debit_update/request.mako +++ /dev/null @@ -1,10 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -debit = balanced.Debit.find('${request['uri']}') -debit.description = '${request['payload']['description']}' -debit.meta = { - 'facebook.id': '1234567890', - 'anykey': 'valuegoeshere', -} -debit.save() \ No newline at end of file diff --git a/scenarios/event_list/definition.mako b/scenarios/event_list/definition.mako deleted file mode 100644 index 9bb7484..0000000 --- a/scenarios/event_list/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Event.query \ No newline at end of file diff --git a/scenarios/event_list/executable.py b/scenarios/event_list/executable.py deleted file mode 100644 index 731312e..0000000 --- a/scenarios/event_list/executable.py +++ /dev/null @@ -1,5 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -events = balanced.Event.query.all(); \ No newline at end of file diff --git a/scenarios/event_list/python.mako b/scenarios/event_list/python.mako deleted file mode 100644 index c5924e3..0000000 --- a/scenarios/event_list/python.mako +++ /dev/null @@ -1,9 +0,0 @@ -% if mode == 'definition': -balanced.Event.query -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -events = balanced.Event.query.all(); -% endif \ No newline at end of file diff --git a/scenarios/event_list/request.mako b/scenarios/event_list/request.mako deleted file mode 100644 index 135a735..0000000 --- a/scenarios/event_list/request.mako +++ /dev/null @@ -1,4 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -events = balanced.Event.query.all(); \ No newline at end of file diff --git a/scenarios/event_replay/definition.mako b/scenarios/event_replay/definition.mako deleted file mode 100644 index e69de29..0000000 diff --git a/scenarios/event_replay/executable.py b/scenarios/event_replay/executable.py deleted file mode 100644 index e69de29..0000000 diff --git a/scenarios/event_replay/python.mako b/scenarios/event_replay/python.mako deleted file mode 100644 index b3d0a94..0000000 --- a/scenarios/event_replay/python.mako +++ /dev/null @@ -1,5 +0,0 @@ -% if mode == 'definition': - -% else: - -% endif \ No newline at end of file diff --git a/scenarios/event_replay/request.mako b/scenarios/event_replay/request.mako deleted file mode 100644 index e69de29..0000000 diff --git a/scenarios/event_show/definition.mako b/scenarios/event_show/definition.mako deleted file mode 100644 index 05086e3..0000000 --- a/scenarios/event_show/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Event.find \ No newline at end of file diff --git a/scenarios/event_show/executable.py b/scenarios/event_show/executable.py deleted file mode 100644 index b3afc8f..0000000 --- a/scenarios/event_show/executable.py +++ /dev/null @@ -1,5 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -event = balanced.Event.find('/v1/events/EV02f1fad84d4711e384a9026ba7d31e6f') \ No newline at end of file diff --git a/scenarios/event_show/python.mako b/scenarios/event_show/python.mako deleted file mode 100644 index 445682b..0000000 --- a/scenarios/event_show/python.mako +++ /dev/null @@ -1,9 +0,0 @@ -% if mode == 'definition': -balanced.Event.find -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -event = balanced.Event.find('/v1/events/EV02f1fad84d4711e384a9026ba7d31e6f') -% endif \ No newline at end of file diff --git a/scenarios/event_show/request.mako b/scenarios/event_show/request.mako deleted file mode 100644 index 9a20ccd..0000000 --- a/scenarios/event_show/request.mako +++ /dev/null @@ -1,4 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -event = balanced.Event.find('${request['uri']}') \ No newline at end of file diff --git a/scenarios/hold_account_list/definition.mako b/scenarios/hold_account_list/definition.mako deleted file mode 100644 index 696f9d2..0000000 --- a/scenarios/hold_account_list/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Account.holds \ No newline at end of file diff --git a/scenarios/hold_account_list/executable.py b/scenarios/hold_account_list/executable.py deleted file mode 100644 index e69de29..0000000 diff --git a/scenarios/hold_account_list/python.mako b/scenarios/hold_account_list/python.mako deleted file mode 100644 index 6c147bd..0000000 --- a/scenarios/hold_account_list/python.mako +++ /dev/null @@ -1,5 +0,0 @@ -% if mode == 'definition': -balanced.Account.holds -% else: - -% endif \ No newline at end of file diff --git a/scenarios/hold_account_list/request.mako b/scenarios/hold_account_list/request.mako deleted file mode 100644 index e69de29..0000000 diff --git a/scenarios/hold_capture/definition.mako b/scenarios/hold_capture/definition.mako deleted file mode 100644 index 57957cd..0000000 --- a/scenarios/hold_capture/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Hold.capture(...) \ No newline at end of file diff --git a/scenarios/hold_capture/executable.py b/scenarios/hold_capture/executable.py deleted file mode 100644 index 739f5d7..0000000 --- a/scenarios/hold_capture/executable.py +++ /dev/null @@ -1,9 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -hold = balanced.Hold.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/holds/HL3CgDhSRS2YOwbR7Uj0eXtU') -debit = 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/scenarios/hold_capture/python.mako b/scenarios/hold_capture/python.mako deleted file mode 100644 index 4251df2..0000000 --- a/scenarios/hold_capture/python.mako +++ /dev/null @@ -1,13 +0,0 @@ -% if mode == 'definition': -balanced.Hold.capture(...) -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -hold = balanced.Hold.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/holds/HL3CgDhSRS2YOwbR7Uj0eXtU') -debit = hold.capture( - appears_on_statement_as='ShowsUpOnStmt', - description='Some descriptive text for the debit in the dashboard' -) -% endif \ No newline at end of file diff --git a/scenarios/hold_capture/request.mako b/scenarios/hold_capture/request.mako deleted file mode 100644 index 5590711..0000000 --- a/scenarios/hold_capture/request.mako +++ /dev/null @@ -1,7 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -hold = balanced.Hold.find('${request['hold_uri']}') -debit = hold.capture( - <% main.payload_expand(request['payload']) %> -) \ No newline at end of file diff --git a/scenarios/hold_create/definition.mako b/scenarios/hold_create/definition.mako deleted file mode 100644 index 6af1b0f..0000000 --- a/scenarios/hold_create/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Hold(...) \ No newline at end of file diff --git a/scenarios/hold_create/executable.py b/scenarios/hold_create/executable.py deleted file mode 100644 index 92549ee..0000000 --- a/scenarios/hold_create/executable.py +++ /dev/null @@ -1,9 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -hold = balanced.Hold( - source_uri='/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/cards/CC3AiMy0KEP1PhwnffMk32RF', - amount=5000, - description='Some descriptive text for the debit in the dashboard' -) \ No newline at end of file diff --git a/scenarios/hold_create/python.mako b/scenarios/hold_create/python.mako deleted file mode 100644 index 23b0c8a..0000000 --- a/scenarios/hold_create/python.mako +++ /dev/null @@ -1,13 +0,0 @@ -% if mode == 'definition': -balanced.Hold(...) -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -hold = balanced.Hold( - source_uri='/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/cards/CC3AiMy0KEP1PhwnffMk32RF', - amount=5000, - description='Some descriptive text for the debit in the dashboard' -) -% endif \ No newline at end of file diff --git a/scenarios/hold_create/request.mako b/scenarios/hold_create/request.mako deleted file mode 100644 index 0e663e8..0000000 --- a/scenarios/hold_create/request.mako +++ /dev/null @@ -1,6 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -hold = balanced.Hold( - <% main.payload_expand(request['payload']) %> -) \ No newline at end of file diff --git a/scenarios/hold_customer_list/definition.mako b/scenarios/hold_customer_list/definition.mako deleted file mode 100644 index 194ed53..0000000 --- a/scenarios/hold_customer_list/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Customer.holds \ No newline at end of file diff --git a/scenarios/hold_customer_list/executable.py b/scenarios/hold_customer_list/executable.py deleted file mode 100644 index c318afe..0000000 --- a/scenarios/hold_customer_list/executable.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -customer = balanced.Customer.find('/v1/customers/CU2L1UERNEH5anL0rl1gAgW4/holds') -holds = customer.holds.all() \ No newline at end of file diff --git a/scenarios/hold_customer_list/python.mako b/scenarios/hold_customer_list/python.mako deleted file mode 100644 index bc3aa33..0000000 --- a/scenarios/hold_customer_list/python.mako +++ /dev/null @@ -1,10 +0,0 @@ -% if mode == 'definition': -balanced.Customer.holds -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -customer = balanced.Customer.find('/v1/customers/CU2L1UERNEH5anL0rl1gAgW4/holds') -holds = customer.holds.all() -% endif \ No newline at end of file diff --git a/scenarios/hold_customer_list/request.mako b/scenarios/hold_customer_list/request.mako deleted file mode 100644 index aafe91e..0000000 --- a/scenarios/hold_customer_list/request.mako +++ /dev/null @@ -1,5 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -customer = balanced.Customer.find('${request['uri']}') -holds = customer.holds.all() \ No newline at end of file diff --git a/scenarios/hold_list/definition.mako b/scenarios/hold_list/definition.mako deleted file mode 100644 index 2becc11..0000000 --- a/scenarios/hold_list/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Hold.query() \ No newline at end of file diff --git a/scenarios/hold_list/executable.py b/scenarios/hold_list/executable.py deleted file mode 100644 index 2b8d57a..0000000 --- a/scenarios/hold_list/executable.py +++ /dev/null @@ -1,5 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -holds = balanced.Hold.query.all(); \ No newline at end of file diff --git a/scenarios/hold_list/python.mako b/scenarios/hold_list/python.mako deleted file mode 100644 index 19a67af..0000000 --- a/scenarios/hold_list/python.mako +++ /dev/null @@ -1,9 +0,0 @@ -% if mode == 'definition': -balanced.Hold.query() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -holds = balanced.Hold.query.all(); -% endif \ No newline at end of file diff --git a/scenarios/hold_list/request.mako b/scenarios/hold_list/request.mako deleted file mode 100644 index 8049907..0000000 --- a/scenarios/hold_list/request.mako +++ /dev/null @@ -1,4 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -holds = balanced.Hold.query.all(); \ No newline at end of file diff --git a/scenarios/hold_show/definition.mako b/scenarios/hold_show/definition.mako deleted file mode 100644 index 063f416..0000000 --- a/scenarios/hold_show/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Hold.find \ No newline at end of file diff --git a/scenarios/hold_show/executable.py b/scenarios/hold_show/executable.py deleted file mode 100644 index 0b5e9d1..0000000 --- a/scenarios/hold_show/executable.py +++ /dev/null @@ -1,5 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -hold = balanced.Hold.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/holds/HL2PtUrw5zStavbcn933ZsmW') \ No newline at end of file diff --git a/scenarios/hold_show/python.mako b/scenarios/hold_show/python.mako deleted file mode 100644 index 9eed585..0000000 --- a/scenarios/hold_show/python.mako +++ /dev/null @@ -1,9 +0,0 @@ -% if mode == 'definition': -balanced.Hold.find -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -hold = balanced.Hold.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/holds/HL2PtUrw5zStavbcn933ZsmW') -% endif \ No newline at end of file diff --git a/scenarios/hold_show/request.mako b/scenarios/hold_show/request.mako deleted file mode 100644 index afc7654..0000000 --- a/scenarios/hold_show/request.mako +++ /dev/null @@ -1,4 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -hold = balanced.Hold.find('${request['uri']}') \ No newline at end of file diff --git a/scenarios/hold_update/definition.mako b/scenarios/hold_update/definition.mako deleted file mode 100644 index 74eeb28..0000000 --- a/scenarios/hold_update/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Hold.save() \ No newline at end of file diff --git a/scenarios/hold_update/executable.py b/scenarios/hold_update/executable.py deleted file mode 100644 index 43a7839..0000000 --- a/scenarios/hold_update/executable.py +++ /dev/null @@ -1,11 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -hold = balanced.Hold.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/holds/HL2PtUrw5zStavbcn933ZsmW') -hold.description = 'update this description' -hold.meta = { - 'holding.for': 'user1', - 'meaningful.key': 'some.value', -} -hold.save() \ No newline at end of file diff --git a/scenarios/hold_update/python.mako b/scenarios/hold_update/python.mako deleted file mode 100644 index 0ebe446..0000000 --- a/scenarios/hold_update/python.mako +++ /dev/null @@ -1,15 +0,0 @@ -% if mode == 'definition': -balanced.Hold.save() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -hold = balanced.Hold.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/holds/HL2PtUrw5zStavbcn933ZsmW') -hold.description = 'update this description' -hold.meta = { - 'holding.for': 'user1', - 'meaningful.key': 'some.value', -} -hold.save() -% endif \ No newline at end of file diff --git a/scenarios/hold_update/request.mako b/scenarios/hold_update/request.mako deleted file mode 100644 index f06f5b2..0000000 --- a/scenarios/hold_update/request.mako +++ /dev/null @@ -1,10 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -hold = balanced.Hold.find('${request['uri']}') -hold.description = '${request['payload']['description']}' -hold.meta = { - 'holding.for': 'user1', - 'meaningful.key': 'some.value', -} -hold.save() \ No newline at end of file diff --git a/scenarios/hold_void/definition.mako b/scenarios/hold_void/definition.mako deleted file mode 100644 index 8292a5c..0000000 --- a/scenarios/hold_void/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Hold.void() \ No newline at end of file diff --git a/scenarios/hold_void/executable.py b/scenarios/hold_void/executable.py deleted file mode 100644 index 6dcf5d7..0000000 --- a/scenarios/hold_void/executable.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -hold = balanced.Hold.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/holds/HL39pZ8ec317eN4fi57TpmUU') -hold.void() \ No newline at end of file diff --git a/scenarios/hold_void/python.mako b/scenarios/hold_void/python.mako deleted file mode 100644 index fddc7d7..0000000 --- a/scenarios/hold_void/python.mako +++ /dev/null @@ -1,10 +0,0 @@ -% if mode == 'definition': -balanced.Hold.void() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -hold = balanced.Hold.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/holds/HL39pZ8ec317eN4fi57TpmUU') -hold.void() -% endif \ No newline at end of file diff --git a/scenarios/hold_void/request.mako b/scenarios/hold_void/request.mako deleted file mode 100644 index d9908d5..0000000 --- a/scenarios/hold_void/request.mako +++ /dev/null @@ -1,5 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -hold = balanced.Hold.find('${request['uri']}') -hold.void() \ No newline at end of file diff --git a/scenarios/refund_account_list/definition.mako b/scenarios/refund_account_list/definition.mako deleted file mode 100644 index 8549ea4..0000000 --- a/scenarios/refund_account_list/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Account.refunds \ No newline at end of file diff --git a/scenarios/refund_account_list/executable.py b/scenarios/refund_account_list/executable.py deleted file mode 100644 index e69de29..0000000 diff --git a/scenarios/refund_account_list/python.mako b/scenarios/refund_account_list/python.mako deleted file mode 100644 index dc0f653..0000000 --- a/scenarios/refund_account_list/python.mako +++ /dev/null @@ -1,5 +0,0 @@ -% if mode == 'definition': -balanced.Account.refunds -% else: - -% endif \ No newline at end of file diff --git a/scenarios/refund_account_list/request.mako b/scenarios/refund_account_list/request.mako deleted file mode 100644 index e69de29..0000000 diff --git a/scenarios/refund_create/definition.mako b/scenarios/refund_create/definition.mako deleted file mode 100644 index a5321df..0000000 --- a/scenarios/refund_create/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Debit.refund() \ No newline at end of file diff --git a/scenarios/refund_create/executable.py b/scenarios/refund_create/executable.py deleted file mode 100644 index 4634e3e..0000000 --- a/scenarios/refund_create/executable.py +++ /dev/null @@ -1,13 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -debit = balanced.Debit.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/debits/WD3dI1cfIvXo7p2f9tNMNSc2') -debit.refund( - description='Refund for Order #1111', - meta={ - 'fulfillment.item.condition': 'OK', - 'user.refund_reason': 'not happy with product', - 'merchant.feedback': 'positive', - }, -) \ No newline at end of file diff --git a/scenarios/refund_create/python.mako b/scenarios/refund_create/python.mako deleted file mode 100644 index 9eb1146..0000000 --- a/scenarios/refund_create/python.mako +++ /dev/null @@ -1,17 +0,0 @@ -% if mode == 'definition': -balanced.Debit.refund() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -debit = balanced.Debit.find('/v1/marketplaces/TEST-MP52IlCmywk6hGbgS75QSlN/debits/WD3dI1cfIvXo7p2f9tNMNSc2') -debit.refund( - description='Refund for Order #1111', - meta={ - 'fulfillment.item.condition': 'OK', - 'user.refund_reason': 'not happy with product', - 'merchant.feedback': 'positive', - }, -) -% endif \ No newline at end of file diff --git a/scenarios/refund_create/request.mako b/scenarios/refund_create/request.mako deleted file mode 100644 index b52ac6f..0000000 --- a/scenarios/refund_create/request.mako +++ /dev/null @@ -1,12 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -debit = balanced.Debit.find('${request['debit_uri']}') -debit.refund( - description='${request['payload']['description']}', - meta={ - 'fulfillment.item.condition': 'OK', - 'user.refund_reason': 'not happy with product', - 'merchant.feedback': 'positive', - }, -) \ No newline at end of file diff --git a/scenarios/refund_customer_list/definition.mako b/scenarios/refund_customer_list/definition.mako deleted file mode 100644 index 2d52a91..0000000 --- a/scenarios/refund_customer_list/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Customer.refunds \ No newline at end of file diff --git a/scenarios/refund_customer_list/executable.py b/scenarios/refund_customer_list/executable.py deleted file mode 100644 index 020e492..0000000 --- a/scenarios/refund_customer_list/executable.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -customer = balanced.Customer.find('/v1/customers/CU35rlJBXqlvD9LC26PWu0cy') -refunds = customer.refunds.all() \ No newline at end of file diff --git a/scenarios/refund_customer_list/python.mako b/scenarios/refund_customer_list/python.mako deleted file mode 100644 index dc46965..0000000 --- a/scenarios/refund_customer_list/python.mako +++ /dev/null @@ -1,10 +0,0 @@ -% if mode == 'definition': -balanced.Customer.refunds -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -customer = balanced.Customer.find('/v1/customers/CU35rlJBXqlvD9LC26PWu0cy') -refunds = customer.refunds.all() -% endif \ No newline at end of file diff --git a/scenarios/refund_customer_list/request.mako b/scenarios/refund_customer_list/request.mako deleted file mode 100644 index 590bed0..0000000 --- a/scenarios/refund_customer_list/request.mako +++ /dev/null @@ -1,5 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -customer = balanced.Customer.find('${request['customer_uri']}') -refunds = customer.refunds.all() \ No newline at end of file diff --git a/scenarios/refund_list/definition.mako b/scenarios/refund_list/definition.mako deleted file mode 100644 index cd0fc3c..0000000 --- a/scenarios/refund_list/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Refund.query() \ No newline at end of file diff --git a/scenarios/refund_list/executable.py b/scenarios/refund_list/executable.py deleted file mode 100644 index d836829..0000000 --- a/scenarios/refund_list/executable.py +++ /dev/null @@ -1,5 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -refunds = balanced.Refund.query.all(); \ No newline at end of file diff --git a/scenarios/refund_list/python.mako b/scenarios/refund_list/python.mako deleted file mode 100644 index e23df58..0000000 --- a/scenarios/refund_list/python.mako +++ /dev/null @@ -1,9 +0,0 @@ -% if mode == 'definition': -balanced.Refund.query() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -refunds = balanced.Refund.query.all(); -% endif \ No newline at end of file diff --git a/scenarios/refund_list/request.mako b/scenarios/refund_list/request.mako deleted file mode 100644 index ef7a16f..0000000 --- a/scenarios/refund_list/request.mako +++ /dev/null @@ -1,4 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -refunds = balanced.Refund.query.all(); \ No newline at end of file diff --git a/scenarios/refund_show/definition.mako b/scenarios/refund_show/definition.mako deleted file mode 100644 index 29a6b61..0000000 --- a/scenarios/refund_show/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Refund.find \ No newline at end of file diff --git a/scenarios/refund_show/executable.py b/scenarios/refund_show/executable.py deleted file mode 100644 index 916875b..0000000 --- a/scenarios/refund_show/executable.py +++ /dev/null @@ -1,5 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -refund = balanced.Refund.find('/v1/customers/CU35rlJBXqlvD9LC26PWu0cy/refunds/RF3fVPCag0ppfvvWLSc2oQ4O') \ No newline at end of file diff --git a/scenarios/refund_show/python.mako b/scenarios/refund_show/python.mako deleted file mode 100644 index 925dae3..0000000 --- a/scenarios/refund_show/python.mako +++ /dev/null @@ -1,9 +0,0 @@ -% if mode == 'definition': -balanced.Refund.find -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -refund = balanced.Refund.find('/v1/customers/CU35rlJBXqlvD9LC26PWu0cy/refunds/RF3fVPCag0ppfvvWLSc2oQ4O') -% endif \ No newline at end of file diff --git a/scenarios/refund_show/request.mako b/scenarios/refund_show/request.mako deleted file mode 100644 index f0b89cc..0000000 --- a/scenarios/refund_show/request.mako +++ /dev/null @@ -1,4 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -refund = balanced.Refund.find('${request['uri']}') \ No newline at end of file diff --git a/scenarios/refund_update/definition.mako b/scenarios/refund_update/definition.mako deleted file mode 100644 index 18cd86d..0000000 --- a/scenarios/refund_update/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Refund.save() \ No newline at end of file diff --git a/scenarios/refund_update/executable.py b/scenarios/refund_update/executable.py deleted file mode 100644 index 08479c1..0000000 --- a/scenarios/refund_update/executable.py +++ /dev/null @@ -1,12 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -refund = balanced.Refund.find('/v1/customers/CU35rlJBXqlvD9LC26PWu0cy/refunds/RF3fVPCag0ppfvvWLSc2oQ4O') -refund.description = 'update this description' -refund.meta = { - 'user.refund.count': '3', - 'refund.reason': 'user not happy with product', - 'user.notes': 'very polite on the phone', -} -refund.save() \ No newline at end of file diff --git a/scenarios/refund_update/python.mako b/scenarios/refund_update/python.mako deleted file mode 100644 index 2dae174..0000000 --- a/scenarios/refund_update/python.mako +++ /dev/null @@ -1,16 +0,0 @@ -% if mode == 'definition': -balanced.Refund.save() -% else: -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -refund = balanced.Refund.find('/v1/customers/CU35rlJBXqlvD9LC26PWu0cy/refunds/RF3fVPCag0ppfvvWLSc2oQ4O') -refund.description = 'update this description' -refund.meta = { - 'user.refund.count': '3', - 'refund.reason': 'user not happy with product', - 'user.notes': 'very polite on the phone', -} -refund.save() -% endif \ No newline at end of file diff --git a/scenarios/refund_update/request.mako b/scenarios/refund_update/request.mako deleted file mode 100644 index e45ac6c..0000000 --- a/scenarios/refund_update/request.mako +++ /dev/null @@ -1,11 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -refund = balanced.Refund.find('${request['uri']}') -refund.description = '${request['payload']['description']}' -refund.meta = { - 'user.refund.count': '3', - 'refund.reason': 'user not happy with product', - 'user.notes': 'very polite on the phone', -} -refund.save() \ No newline at end of file From ef3876bc1bd3f6741a2f712860ef57d920d951c8 Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Mon, 23 Dec 2013 18:07:08 -0700 Subject: [PATCH 005/146] more robust link parsing, get events working (with a small hack) --- balanced/resources.py | 62 +++++++++++++++++++++----------- examples/events_and_callbacks.py | 11 +++--- examples/examples.py | 5 +-- 3 files changed, 48 insertions(+), 30 deletions(-) diff --git a/balanced/resources.py b/balanced/resources.py index ebdd01e..d039153 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -71,32 +71,44 @@ def _hydrate(cls, payload): collection, resource_type = key.split('.') item_attribute = item_property = resource_type # if parsed from uri then retrieve. e.g. customer.id - for v in variables: - collection, item_attribute = v.split('.') - for item in payload[collection]: # find type, fallback to Resource if we can't determine the # type e.g. marketplace.owner_customer collection_type = Resource.registry.get(resource_type, Resource) - if item_attribute in item['links']: + + def extract_variables_from_item(item, variables): + for v in variables: + _, item_attribute = v.split('.') + # HACK: https://github.com/PoundPay/balanced/issues/184 + if item_attribute == 'self': + item_attribute = 'id' + item_value = item['links'].get( + item_attribute, item.get(item_attribute) + ) + if item_value: + yield v, item_value + + item_variables = dict( + extract_variables_from_item(item, variables)) + + # expand variables if we have them, else this is a link like + # /debits + if item_variables: + parsed_link = uritemplate.expand(uri, item_variables) + else: + parsed_link = uri + + # check if this is a collection or a singular item + if any( + parsed_link.endswith(value) + for value in item_variables.itervalues() + ): # singular - uri_value = item['links'][item_attribute] - parsed_link = uritemplate.expand( - uri, {key: uri_value} - ) - if uri_value: - item_property += '_href' - lazy_href = parsed_link - else: - lazy_href = None + item_property += '_href' + lazy_href = parsed_link else: # collection - uri_value = item.get(item_attribute, None) - parsed_link = uritemplate.expand( - uri, - {'.'.join([collection, item_attribute]): uri_value} - ) lazy_href = JSONSchemaCollection( collection_type, parsed_link) item.setdefault(item_property, lazy_href) @@ -107,7 +119,11 @@ class JSONSchemaPage(wac.Page, ObjectifyMixin): @property def items(self): - 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 class JSONSchemaResource(wac.Resource, ObjectifyMixin): @@ -337,10 +353,14 @@ class Event(Resource): type = 'events' + uri_gen = wac.URIGen('/events', '{event}') + class EventCallback(Resource): - pass + + type = 'event_callbacks' class EventCallbackLog(Resource): - pass + + type = 'event_callback_logs' diff --git a/examples/events_and_callbacks.py b/examples/events_and_callbacks.py index 40947b1..ee207e7 100644 --- a/examples/events_and_callbacks.py +++ b/examples/events_and_callbacks.py @@ -29,16 +29,13 @@ def main(): print 'let\'s create a card and associate it with a new account' card = balanced.Card( expiration_month='12', - security_code='123', - card_number='5105105105105100', + csc='123', + number='5105105105105100', expiration_year='2020', ).save() - buyer = balanced.Account( - card_uri=card.uri, - ).save() print 'generate a debit (which implicitly creates and captures a hold)' - buyer.debit(100) + card.debit(100) print 'event creation is an async operation, let\'s wait until we have ' \ 'some events!' @@ -56,7 +53,7 @@ def main(): ) print 'you can inspect each event to see the logs' - event = balanced.Event.query[0] + event = balanced.Event.query.first() for callback in event.callbacks: print 'inspecting callback to {0} for event {1}'.format( callback.url, diff --git a/examples/examples.py b/examples/examples.py index cd5bd4e..3b9a09f 100644 --- a/examples/examples.py +++ b/examples/examples.py @@ -1,5 +1,4 @@ from __future__ import unicode_literals -import os import balanced @@ -93,6 +92,8 @@ print "ok lets invalid a card" card.delete() +assert buyer.cards.count() == 0 + print "invalidating a bank account" bank_account.delete() @@ -105,6 +106,6 @@ card.associate_to(buyer) -assert buyer.cards.count() == 2 +assert buyer.cards.count() == 1 print "and there you have it :)" From c4e7e80527a250a31c43079cc7f1e53fab9b0954 Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Tue, 24 Dec 2013 09:30:14 -0700 Subject: [PATCH 006/146] more examples, fix error mapping --- balanced/config.py | 2 +- balanced/exc.py | 40 ++++++++++++++++++++++++++++----- balanced/resources.py | 14 ++++++++++-- examples/bank_account_debits.py | 10 ++++----- 4 files changed, 52 insertions(+), 14 deletions(-) diff --git a/balanced/config.py b/balanced/config.py index 9fde1fe..d83402f 100644 --- a/balanced/config.py +++ b/balanced/config.py @@ -28,7 +28,7 @@ def configure( } kwargs['headers']['Accept-Type'] = 'application/json' if 'error_cls' not in kwargs: - kwargs['error_cls'] = exc.HTTPError + kwargs['error_cls'] = exc.convert_error if user: kwargs['auth'] = (user, None) # apply diff --git a/balanced/exc.py b/balanced/exc.py index 58f55a3..2594bed 100644 --- a/balanced/exc.py +++ b/balanced/exc.py @@ -1,5 +1,7 @@ from __future__ import unicode_literals +import httplib + import wac @@ -19,6 +21,12 @@ class MultipleResultsFound(BalancedError): pass +def convert_error(ex): + if not hasattr(ex.response, 'data'): + return ex + return HTTPError.from_response(**ex.response.data)(ex) + + class HTTPError(BalancedError, wac.Error): class __metaclass__(type): @@ -33,13 +41,33 @@ def __new__(meta_cls, name, bases, dikt): cls.type_to_error.update(zip(cls.types, [cls] * len(cls.types))) return cls + def __init__(self, requests_ex): + super(wac.Error, self).__init__(requests_ex) + self.status_code = requests_ex.response.status_code + data = getattr(requests_ex.response, 'data', {}) + for k, v in data.get('errors', [{}])[0].iteritems(): + setattr(self, k, v) + + @classmethod + def format_message(cls, requests_ex): + data = getattr(requests_ex.response, 'data', {}) + status = httplib.responses[requests_ex.response.status_code] + error = data['errors'][0] + status = error.pop('status', status) + status_code = error.pop('status_code', + requests_ex.response.status_code) + desc = error.pop('description', None) + message = ': '.join(str(v) for v in [status, status_code, desc] if v) + return message + @classmethod - def from_response(cls, r): - if not hasattr(r, 'data') or 'type' not in r.data: - exc = wac.Error - else: - exc = cls.type_to_error.get(r.data['type'], HTTPError) - return exc(r) + def from_response(cls, **data): + try: + err = data['errors'][0] + exc = cls.type_to_error.get(err['category_code'], HTTPError) + except: + exc = HTTPError + return exc type_to_error = {} diff --git a/balanced/resources.py b/balanced/resources.py index d039153..94d4b18 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -292,14 +292,14 @@ def debit(self, amount, **kwargs): href=self.debits.href, amount=amount, **kwargs - ) + ).save() def credit(self, amount, **kwargs): return Credit( href=self.credits.href, amount=amount, **kwargs - ) + ).save() class BankAccount(FundingInstrument): @@ -308,11 +308,21 @@ class BankAccount(FundingInstrument): uri_gen = wac.URIGen('/bank_accounts', '{bank_account}') + def verify(self): + return BankAccountVerification( + href=self.bank_account_verifications.href + ).save() + class BankAccountVerification(Resource): type = 'bank_account_verifications' + def confirm(self, amount_1, amount_2): + self.amount_1 = amount_1 + self.amount_2 = amount_2 + return self.save() + class Card(FundingInstrument): diff --git a/examples/bank_account_debits.py b/examples/bank_account_debits.py index 7e53c07..8da25da 100644 --- a/examples/bank_account_debits.py +++ b/examples/bank_account_debits.py @@ -18,12 +18,11 @@ def main(): # create a bank account bank_account = balanced.BankAccount( account_number='1234567890', - bank_code='321174851', + routing_number='321174851', name='Jack Q Merchant', ).save() customer = balanced.Customer().save() - customer.add_bank_account(bank_account) - bank_account = customer.bank_accounts[0] + bank_account.associate_to(customer) print 'you can\'t debit until you authenticate' try: @@ -40,11 +39,12 @@ def main(): except balanced.exc.BankAccountVerificationFailure as ex: print 'Authentication error , %s' % ex.message - if verification.confirm(1, 1).state != 'verified': + 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.uri, + debit.source.href, debit.amount ) print 'and there you have it' From 313376271c92c037df2dd3c82f796f27f2e74bf3 Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Mon, 30 Dec 2013 17:00:40 -0700 Subject: [PATCH 007/146] suite tests --- balanced/__init__.py | 5 +- balanced/resources.py | 10 +- tests/application.py | 92 ------ tests/suite.py | 677 ------------------------------------------ tests/test_suite.py | 271 +++++++++++++++++ 5 files changed, 281 insertions(+), 774 deletions(-) delete mode 100644 tests/application.py delete mode 100644 tests/suite.py create mode 100644 tests/test_suite.py diff --git a/balanced/__init__.py b/balanced/__init__.py index 80f8da0..c6d9f5a 100644 --- a/balanced/__init__.py +++ b/balanced/__init__.py @@ -1,6 +1,6 @@ from __future__ import unicode_literals -__version__ = '1.1.0pre' +__version__ = '1.1.0dev' from balanced.config import configure from balanced.resources import ( @@ -12,6 +12,7 @@ ) from balanced import exc + __all__ = [ APIKey.__name__, BankAccount.__name__, @@ -30,5 +31,5 @@ Refund.__name__, Reversal.__name__, Transaction.__name__, - exc.__name__.partition('.')[-1], + str(exc.__name__.partition('.')[-1]) ] diff --git a/balanced/resources.py b/balanced/resources.py index 94d4b18..431b125 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -189,6 +189,9 @@ class Resource(JSONSchemaResource): uri_gen = wac.URIGen('/resources', '{resource}') + def unstore(self): + return self.delete() + class Marketplace(Resource): @@ -221,7 +224,7 @@ class CardHold(Resource): uri_gen = wac.URIGen('/card_holds', '{card_hold}') def cancel(self): - self.is_valid = False + self.is_void = False return self.save() def capture(self, **kwargs): @@ -244,8 +247,9 @@ class Credit(Transaction): def reverse(self, **kwargs): return Reversal( - href=self.reversals.href - ) + href=self.reversals.href, + **kwargs + ).save() class Debit(Transaction): diff --git a/tests/application.py b/tests/application.py deleted file mode 100644 index 767ab99..0000000 --- a/tests/application.py +++ /dev/null @@ -1,92 +0,0 @@ -import json - -import bottle - -import _responses - - -SERIALIZERS = { - 'application/json': json.dumps, - } - - -app = bottle.Bottle() - - -@app.get('/marketplaces//accounts/') -def marketplace_accounts(mp_eid, ac_eid): - bottle.response.content_type = ( - bottle.request.headers.get('Accept', 'application/json')) - serializer = SERIALIZERS[bottle.response.content_type] - the_response = _responses.accounts.show(mp_eid, ac_eid) - bottle.response.body = serializer(the_response) - return bottle.response - - -@app.get('/merchants') -def merchants_index(): - bottle.response.content_type = ( - bottle.request.headers.get('Accept', 'application/json')) - serializer = SERIALIZERS[bottle.response.content_type] - the_response = _responses.merchants.index() - bottle.response.body = serializer(the_response) - return bottle.response - - -@app.get('/marketplaces') -def marketplaces_index(): - bottle.response.content_type = ( - bottle.request.headers.get('Accept', 'application/json')) - serializer = SERIALIZERS[bottle.response.content_type] - limit = int(bottle.request.query.limit or 10) - offset = int(bottle.request.query.offset or 0) - num = int(bottle.request.query.num or 1) - pages = int(bottle.request.query.pages or 1) - the_response = _responses.marketplaces.index(limit, offset, num, pages) - bottle.response.body = serializer(the_response) - return bottle.response - - -@app.post('/marketplaces') -def marketplaces_create(): - bottle.response.status = 201 - bottle.response.content_type = ( - bottle.request.headers.get('Accept', 'application/json')) - serializer = SERIALIZERS[bottle.response.content_type] - if not bottle.request.auth: - the_response = _responses.marketplaces.anonymous_create() - else: - the_response = _responses.marketplaces.anonymous_create() - - bottle.response.body = serializer(the_response) - return bottle.response - - -@app.put('/marketplaces/<_eid>') -def marketplaces_put(_eid): - return marketplaces_create() - - -@app.post('/api_keys') -def api_keys(): - bottle.response.status = 302 - bottle.response.content_type = ( - bottle.request.headers.get('Accept', 'application/json')) - bottle.response.set_header('Location', '/v1/your-mom') - bottle.response.body = json.dumps('') - return bottle.response - - -@app.get('/marketplaces/<_eid>/transactions') -def marketplaces_transactions(_eid): - bottle.response.content_type = ( - bottle.request.headers.get('Accept', 'application/json')) - serializer = SERIALIZERS[bottle.response.content_type] - limit = int(bottle.request.query.limit or 10) - offset = int(bottle.request.query.offset or 0) - the_response = _responses.transactions.index(limit, offset) - bottle.response.body = serializer(the_response) - return bottle.response - - -app.mount('/v1', app) diff --git a/tests/suite.py b/tests/suite.py deleted file mode 100644 index 331c89e..0000000 --- a/tests/suite.py +++ /dev/null @@ -1,677 +0,0 @@ -# -*- coding: utf-8 -*- - -from __future__ import unicode_literals -import mock -import warnings -import re - -import unittest2 as unittest -import requests - -import balanced -from balanced.exc import NoResultFound, MoreInformationRequiredError - - -# fixtures - -TEST_CARDS = { - 'visa': [ - '4112344112344113', - '4110144110144115', - '4114360123456785', - '4061724061724061', - ], - 'mastercard': [ - '5111005111051128' - '5112345112345114' - '5115915115915118' - '5116601234567894' - ], - 'amex': [ - '371144371144376', - '341134113411347', - ], - 'discover': [ - '6011016011016011', - '6559906559906557', - ] -} - -PERSON_MERCHANT = { - 'type': 'person', - 'name': 'William James', - 'tax_id': '393-48-3992', # Should work w/ and w/o dashes - 'street_address': '167 West 74th Street', - 'postal_code': '10023', - 'dob': '1842-01-01', - 'phone_number': '+16505551234', - 'country_code': 'USA', -} - -BUSINESS_PRINCIPAL = { - 'name': 'William James', - 'tax_id': '393483992', - 'street_address': '167 West 74th Street', - 'postal_code': '10023', - 'dob': '1842-01-01', - 'phone_number': '+16505551234', - 'country_code': 'USA', -} - -BUSINESS_MERCHANT = { - 'type': 'business', - 'name': 'Levain Bakery', - 'tax_id': '253912384', - 'street_address': '167 West 74th Street', - 'postal_code': '10023', - 'phone_number': '+16505551234', - 'country_code': 'USA', - 'person': BUSINESS_PRINCIPAL, -} - -CARD = { - 'street_address': '123 Fake Street', - 'city': 'Jollywood', - 'region': 'CA', - 'postal_code': '90210', - 'name': 'Johnny Fresh', - 'card_number': '4444424444444440', - 'expiration_month': 12, - 'expiration_year': 2013, -} - -INTERNATIONAL_CARD = { - 'street_address': '田原3ー8ー1', - 'city': '都留市', - 'region': '山梨県', - 'postal_code': '4020054', - 'country_code': 'JPN', - 'name': 'Johnny Fresh', - 'card_number': '4444424444444440', - 'expiration_month': 12, - 'expiration_year': 2014, -} - -BANK_ACCOUNT = { - 'name': 'Homer Jay', - 'account_number': '112233a', - 'bank_code': '121042882', -} - -PERSON_FAILING_KYC = { - 'type': 'person', - 'name': 'William James', - 'dob': '1842-01-01', - 'phone_number': '+16505551234', - 'street_address': '801 High St', - 'postal_code': '99999', - 'region': 'EX', - 'country_code': 'USA', -} - -BANK_ACCOUNT_W_TYPE = { - 'name': 'Homer Jay', - 'account_number': '112233a', - 'routing_number': '121042882', - 'type': 'checking' -} - -CREDIT = { - 'amount': 9876, - 'description': 'I love money', -} - - -# tests - -class BasicUseCases(unittest.TestCase): - - @classmethod - def setUpClass(cls): - balanced.config.root_uri = 'http://127.0.0.1:5000/' - if not balanced.config.api_key_secret: - api_key = balanced.APIKey().save() - balanced.configure(api_key.secret) - cls.merchant = api_key.merchant - - def test_00_merchant_expectations(self): - self.assertFalse(hasattr(self.merchant, 'principal')) - self.assertFalse(hasattr(self.merchant, 'payout_method')) - self.assertTrue(self.merchant.id.startswith('TEST-MR')) - - def test_01_create_marketplace(self): - self.assertTrue(self.merchant.accounts_uri.endswith('/accounts')) - self.assertIsNotNone(balanced.config.api_key_secret) - marketplace = balanced.Marketplace().save() - self.assertTrue(marketplace.id.startswith('TEST-MP')) - self.merchant = balanced.Merchant.find(self.merchant.uri) - self.assertEqual(marketplace.in_escrow, 0) - - def test_02_create_a_second_marketplace_should_fail(self): - self.assertIsNotNone(balanced.config.api_key_secret) - with self.assertRaises(requests.HTTPError) as exc: - balanced.Marketplace().save() - the_exception = exc.exception - self.assertEqual(the_exception.status_code, 409) - - def test_03_index_the_marketplaces(self): - self.assertIsNotNone(balanced.config.api_key_secret) - mps = balanced.Marketplace.query.all() - self.assertEqual(len(mps), 1) - - def _create_marketplace(self): - try: - return balanced.Marketplace.query.one() - except NoResultFound: - return balanced.Marketplace().save() - - def _find_marketplace(self): - return balanced.Marketplace.query.one() - - def test_04_create_a_buyer(self): - self.assertIsNotNone(balanced.config.api_key_secret) - - card_number = TEST_CARDS['visa'][0] - buyer_name = 'khalkhalash onastick' - card_payload = { - 'street_address': '123 Fake Street', - 'city': 'Jollywood', - 'state': 'CA', - 'postal_code': '90210', - 'name': buyer_name, - 'card_number': card_number, - 'expiration_month': 12, - 'expiration_year': 2013, - } - card = balanced.Card(**card_payload).save() - card_uri = card.uri - mp = self._find_marketplace() - - buyer = mp.create_buyer(email_address='m@poundpay.com', - card_uri=card_uri, - meta={'test#': 'test_d'} - ) - self.assertEqual(buyer.name, 'khalkhalash onastick') - self.assertEqual(buyer.roles, ['buyer']) - self.assertIsNotNone(buyer.created_at) - self.assertDictEqual(buyer.meta, {'test#': 'test_d'}) - self.assertIsNotNone(buyer.uri) - self.assertTrue(buyer.uri.startswith(mp.uri + '/accounts')) - - def _find_account(self, role, owner=False, all_accounts=False): - mp = self._find_marketplace() - accounts = list(mp.accounts) - if all_accounts: - return accounts - accounts = [account for account in accounts if role in account.roles] - if not owner: - for account in accounts: - if account.email_address == 'support@example.com': - continue - if 'merchant' in account.roles and role == 'buyer': - continue - break - accounts = [account] - - return accounts[0] - - def test_05_index_accounts(self): - accounts = self._find_account(None, all_accounts=True) - self.assertEqual(len(accounts), 2) - account = self._find_account('buyer') - self.assertEqual(account.name, 'khalkhalash onastick') - self.assertEqual(account.roles, ['buyer']) - self.assertIsNotNone(account.created_at) - self.assertDictEqual(account.meta, {'test#': 'test_d'}) - self.assertIsNotNone(account.uri) - - def test_06_debit_buyer_account_and_refund(self): - account = self._find_account('buyer') - debit = account.debit( - amount=1000, - appears_on_statement_as='atest', - meta={'fraud': 'yes'}, - description='Descripty') - self.assertTrue(debit.id.startswith('W')) - self.assertIsInstance(debit.account, balanced.Account) - self.assertIsInstance(debit.hold, balanced.Hold) - self.assertEqual(debit.description, 'Descripty') - self.assertIsNone(debit.fee) - self.assertEqual(debit.appears_on_statement_as, 'atest') - - refund = debit.refund(amount=100) - self.assertTrue(refund.id.startswith('RF')) - self.assertEqual(refund.debit.uri, debit.uri) - self.assertIsNone(refund.fee) - - another_debit = account.debit( - amount=1000, - meta={'fraud': 'yes'}) - self.assertEqual(another_debit.appears_on_statement_as, 'example.com') - - another_debit.refund() - - def test_07_create_hold_and_void_it(self): - account = self._find_account('buyer') - hold = account.hold(amount=1500, description='Hold me') - self.assertIsNone(hold.fee) - self.assertEqual(hold.account.uri, account.uri) - self.assertFalse(hold.is_void) - self.assertEqual(hold.description, 'Hold me') - hold.void() - self.assertTrue(hold.is_void) - self.assertIsNone(hold.fee) - - def test_08_create_hold_and_debit_it(self): - account = self._find_account('buyer') - hold = account.hold(amount=1500) - self.assertTrue(hold.id.startswith('HL')) - debit = hold.capture() - self.assertIsNone(debit.fee) - - def test_09_create_a_person_merchant(self): - mp = self._find_marketplace() - merchant = mp.create_merchant('mahmoud@poundpay.com', - merchant=PERSON_MERCHANT) - self.assertEqual(merchant.roles, ['merchant']) - - def test_10_create_a_business_merchant(self): - mp = self._create_marketplace() - payload = { - "name": "Levain Bakery LLC", - "account_number": "28304871049", - "bank_code": "121042882", - } - bank_account = balanced.BankAccount(**payload).save() - merchant = mp.create_merchant( - 'mahmoud+khalkhalash@poundpay.com', - merchant=BUSINESS_MERCHANT, - bank_account_uri=bank_account.uri, - ) - self.assertItemsEqual(merchant.roles, ['merchant']) - - def test_11_create_a_business_merchant_with_existing_email_addr(self): - mp = self._find_marketplace() - with self.assertRaises(requests.HTTPError) as exc: - mp.create_merchant('mahmoud@poundpay.com', - merchant=PERSON_MERCHANT) - the_exception = exc.exception - self.assertEqual(the_exception.status_code, 409) - self.assertIn( - 'Account with email address "mahmoud@poundpay.com" already exists', - the_exception.description) - - def test_12_get_business_merchant_for_crediting(self): - buyer = self._find_account('buyer') - buyer.debit(amount=10000) - self.merchant = self.merchant.find(self.merchant.uri) - marketplace = self.merchant.marketplace - original_balance = marketplace.in_escrow - merchants = list(marketplace.accounts.filter( - email_address='mahmoud+khalkhalash@poundpay.com' - )) - merchant = merchants[0] - credit = merchant.credit(amount=1000) - self.assertTrue(credit.id.startswith('CR')) - self.assertEqual(credit.amount, 1000) - marketplace = marketplace.find(marketplace.uri) - self.assertEqual( - marketplace.in_escrow, - original_balance - credit.amount) - - def test_13_credit_more_than_the_escrow_balance_should_fail(self): - buyer = self._find_account('buyer') - buyer.debit(amount=10000) - self.merchant = self.merchant.find(self.merchant.uri) - marketplace = self.merchant.marketplace - original_balance = marketplace.in_escrow - merchant = self._find_account('merchant') - with self.assertRaises(requests.HTTPError) as exc: - merchant.credit(amount=original_balance + 1000) - the_exception = exc.exception - self.assertEqual(the_exception.status_code, 409) - print the_exception - - def test_15_debits_without_an_account(self): - with self.assertRaises(requests.HTTPError) as exc: - balanced.Debit().save() - the_exception = exc.exception - self.assertEqual(the_exception.status_code, 400) - print the_exception - - def test_16_slice_syntax(self): - total_debit = balanced.Debit.query.count() - self.assertNotEqual(total_debit, 2) - self.assertEqual(len(balanced.Debit.query), total_debit) - sliced_debits = balanced.Debit.query[:2] - self.assertEqual(len(sliced_debits), 2) - for debit in sliced_debits: - self.assertIsInstance(debit, balanced.Debit) - all_debits = balanced.Debit.query.all() - last = total_debit * - 1 - for index, debit in enumerate(all_debits): - self.assertEqual(debit.uri, - balanced.Debit.query[last + index].uri) - - def test_17_test_merchant_cache_busting(self): - # cache it. - a_merchant = self.merchant.me - a_merchant.bank_account = { - 'account_number': '112233a', - 'name': 'hald', - 'bank_code': '121042882', - } - self.assertTrue(hasattr(self.merchant.me, 'bank_account')) - a_merchant.save() - self.assertFalse(hasattr(a_merchant, 'bank_account')) - - def test_18_create_and_associate_card(self): - try: - mp = balanced.Marketplace.query.one() - except NoResultFound: - mp = balanced.Marketplace().save() - card = mp.create_card(**CARD) - self.assertTrue(card.id.startswith('CC')) - account = mp.create_merchant('randy@pandy.com', - merchant=PERSON_MERCHANT) - account.add_card(card.uri) - - def test_19_create_and_associate_bank_account(self): - try: - mp = balanced.Marketplace.query.one() - except NoResultFound: - mp = balanced.Marketplace().save() - bank_account = mp.create_bank_account(**BANK_ACCOUNT) - self.assertTrue(bank_account.id.startswith('BA')) - account = mp.create_merchant('free@example.com', - merchant=PERSON_MERCHANT) - account.add_bank_account(bank_account.uri) - - def test_20_test_filter_and_sort(self): - try: - self._find_marketplace() - except balanced.exc.NoResultFound: - balanced.Marketplace().save() - - buyer = self._find_account('buyer') - deb1 = buyer.debit(amount=1122, meta={'tag': '1'}) - deb2 = buyer.debit(amount=3322, meta={'tag': '1'}) - deb3 = buyer.debit(amount=2211, meta={'tag': '2'}) - - debs = (balanced.Debit.query - .filter(balanced.Debit.f.meta.tag == '1') - .all()) - self.assertItemsEqual([deb.id for deb in debs], [deb1.id, deb2.id]) - - debs = (balanced.Debit.query - .filter(balanced.Debit.f.meta.tag == '2') - .all()) - self.assertItemsEqual([deb.id for deb in debs], [deb3.id]) - - debs = (balanced.Debit.query - .filter(balanced.Debit.f.meta.contains('tag')) - .sort(balanced.Debit.f.amount.asc()) - .all()) - self.assertEqual(len(debs), 3) - self.assertEqual([deb.id for deb in debs], [deb1.id, deb3.id, deb2.id]) - - debs = (balanced.Debit.query - .filter(balanced.Debit.f.meta.contains('tag')) - .sort(balanced.Debit.f.amount.desc()) - .all()) - self.assertEqual(len(debs), 3) - self.assertEqual([deb.id for deb in debs], [deb2.id, deb3.id, deb1.id]) - - def test_21_mask_bank_account(self): - mp = self._create_marketplace() - payload = BANK_ACCOUNT.copy() - payload['account_number'] = '1212121-110-019' - bank_account = mp.create_bank_account(**payload) - self.assertEqual(bank_account.last_four, '0019') - - def test_22_create_international_card(self): - mp = self._create_marketplace() - card = mp.create_card(**INTERNATIONAL_CARD) - self.assertTrue(card.id.startswith('CC')) - self.assertEqual(card.street_address, - INTERNATIONAL_CARD['street_address']) - - def test_23_kyc_redirect(self): - mp = self._create_marketplace() - - redirect_pattern = ('https://www.balancedpayments.com' - '/marketplaces/(.*)/kyc') - - with self.assertRaises(MoreInformationRequiredError) as ex: - mp.create_merchant('marshall@poundpay.com', PERSON_FAILING_KYC) - - redirect_uri = ex.exception.redirect_uri - result = re.search(redirect_pattern, redirect_uri) - self.assertTrue(result) - - def test_24_toplevel_bank_account(self): - self._create_marketplace() - count = balanced.BankAccount.query.count() - payload = BANK_ACCOUNT_W_TYPE.copy() - bank_account = balanced.BankAccount(**payload).save() - self.assertFalse(hasattr(bank_account, 'last_four')) - self.assertFalse(hasattr(bank_account, 'bank_code')) - self.assertTrue(hasattr(bank_account, 'routing_number')) - self.assertEqual(bank_account.routing_number, - payload['routing_number']) - self.assertEqual(payload['account_number'][-4:], - bank_account.account_number[-4:]) - self.assertIsNotNone(bank_account.credits_uri) - self.assertEqual(balanced.BankAccount.query.count(), count + 1) - - def test_25_index_toplevel_bank_accounts(self): - self._create_marketplace() - count = balanced.BankAccount.query.count() - bas = balanced.BankAccount.query.all() - self.assertEqual(len(bas), count) - self.assertGreater(count, 0) - - def test_26_toplevel_bank_account_credit(self): - self._create_marketplace() - buyer = self._find_account('buyer') - card = balanced.Marketplace.my_marketplace.create_card(**CARD) - buyer.add_card(card.uri) - buyer.debit(1212121) - - payload = BANK_ACCOUNT_W_TYPE.copy() - bank_account = balanced.BankAccount(**payload).save() - cr = bank_account.credit(50) - self.assertEqual(cr.amount, 50) - - def test_27_toplevel_credit(self): - self._create_marketplace() - buyer = self._find_account('buyer') - card = balanced.Marketplace.my_marketplace.create_card(**CARD) - buyer.add_card(card.uri) - buyer.debit(1212121) - - payload = CREDIT.copy() - payload['bank_account'] = BANK_ACCOUNT_W_TYPE.copy() - credit = balanced.Credit(**payload).save() - self.assertEqual(credit.amount, payload['amount']) - self.assertEqual(credit.description, payload['description']) - self.assertNotIn('id', credit.bank_account) - self.assertNotIn('uri', credit.bank_account) - self.assertNotIn('created_at', credit.bank_account) - - def test_28_on_behalf_of(self): - mp = self._create_marketplace() - buyer = self._find_account('buyer') - merchant = mp.create_merchant('mahmoud2@poundpay.com', - merchant=PERSON_MERCHANT) - - card = balanced.Marketplace.my_marketplace.create_card(**CARD) - buyer.add_card(card.uri) - - self.assertIsNotNone(buyer.debit(2222, on_behalf_of=merchant.uri)) - - with warnings.catch_warnings(record=True) as w: - self.assertIsNotNone(buyer.debit(1111, merchant_uri=merchant.uri)) - self.assertEqual(len(w), 1) - - # test that we extract the uri if you pass the object - with mock.patch('balanced.resources.Debit') as debit: - buyer.debit(2222, on_behalf_of=merchant) - self.assertEqual( - debit.call_args[1]['on_behalf_of_uri'], - merchant.uri) - - # test that we throw an exception if the uri of the merchant is the - # same as the account uri - with self.assertRaises(ValueError) as exc: - buyer.debit(2222, on_behalf_of=buyer) - self.assertEqual( - exc.exception.args[0], - 'The on_behalf_of parameter MAY NOT be the same account as ' - 'the account you are debiting!' - ) - - # test that you can't pass in a bunch of shit - with self.assertRaises(ValueError) as exc: - buyer.debit(2222, on_behalf_of=15) - self.assertEqual( - exc.exception.args[0], - 'The on_behalf_of parameter needs to be an account uri' - ) - - def test_29_customers(self): - mp = self._create_marketplace() - customer = balanced.Customer().save() - - self.assertIsNone(customer.source) - card = mp.create_card(**CARD) - customer.add_card(card.uri) - card = mp.create_card(**CARD) - customer.add_card(card) - customer.add_card(CARD) - self.assertIsNotNone(customer.source) - self.assertEqual(customer.source.id, customer.active_card.id) - - self.assertIsNone(customer.destination) - bank_account = mp.create_bank_account(**BANK_ACCOUNT) - customer.add_bank_account(bank_account.uri) - bank_account = mp.create_bank_account(**BANK_ACCOUNT) - customer.add_bank_account(bank_account) - customer.add_bank_account(BANK_ACCOUNT) - self.assertIsNotNone(customer.destination) - self.assertEqual(customer.destination.id, - customer.active_bank_account.id) - - debit = customer.debit(100) - self.assertEqual(customer.active_card.id, debit.source.id) - - credit = customer.credit(100) - self.assertEqual(customer.active_bank_account.id, - credit.destination.id) - - def test_30_customer_transactions(self): - mp = self._create_marketplace() - customer = balanced.Customer().save() - - self.assertIsNone(customer.source) - card = mp.create_card(**CARD) - bank_account = mp.create_bank_account(**BANK_ACCOUNT) - - with self.assertRaises(balanced.exc.ResourceError): - card.hold(amount=100) - - with self.assertRaises(balanced.exc.ResourceError): - card.debit(amount=100) - - with self.assertRaises(balanced.exc.ResourceError): - bank_account.debit(amount=100) - - customer.add_card(card.uri) - customer.source.hold(amount=100) - customer.source.debit(amount=100) - customer.add_bank_account(bank_account.uri) - customer.destination.credit(amount=100) - - def test_marketplace_customer_helper(self): - mp = self._create_marketplace() - customer = mp.create_customer() - - self.assertIsNone(customer.source) - card = mp.create_card(**CARD) - bank_account = mp.create_bank_account(**BANK_ACCOUNT) - - with self.assertRaises(balanced.exc.ResourceError): - card.hold(amount=100) - - with self.assertRaises(balanced.exc.ResourceError): - card.debit(amount=100) - - with self.assertRaises(balanced.exc.ResourceError): - bank_account.debit(amount=100) - - customer.add_card(card.uri) - customer.source.hold(amount=100) - customer.source.debit(amount=100) - customer.add_bank_account(bank_account.uri) - customer.destination.credit(amount=100) - - hold = customer.source.hold(amount=100) - hold.capture() - - def test_31_reverse(self): - self._create_marketplace() - buyer = self._find_account('buyer') - card = balanced.Marketplace.my_marketplace.create_card(**CARD) - buyer.add_card(card.uri) - buyer.debit(100000) - # create bank account where transactions will switched to payed - merchant = balanced.Customer().save() - ba = balanced.BankAccount( - routing_number="021000021", - account_number="9900000002", - name="lolz ftw", - ).save() - merchant.add_bank_account(ba) - merchant.save() - credit = merchant.credit(amount=5000) - reverse = credit.reverse() - self.assertEqual(reverse.amount, 5000) - self.assertIn('reversal', reverse.uri) - self.assertIn(credit.id, reverse.credit.uri) - - def test_32_delete_bank_account(self): - mp = self._create_marketplace() - customer = balanced.Customer().save() - bank_account = mp.create_bank_account(**BANK_ACCOUNT) - customer.add_bank_account(bank_account) - bank_account.unstore() - - def test_33_delete_card(self): - mp = self._create_marketplace() - customer = balanced.Customer().save() - card = mp.create_card(**CARD) - customer.add_card(card) - card.unstore() - - def test_34_create_merchant_with_attributes(self): - marketplace = self._create_marketplace() - merchant_attributes = { - 'type': 'person', - 'name': 'Billy Jones', - 'street_address': '801 High St.', - 'postal_code': '94301', - 'country': 'USA', - 'dob': '1842-01', - 'phone_number': '+16505551234' - } - bank_account = marketplace.create_bank_account(**BANK_ACCOUNT) - merchant = balanced.Account( - uri=marketplace.accounts_uri, - email_address='merchant@example.org', - merchant=merchant_attributes, - bank_account_uri=bank_account.uri, - name='Jack Q Merchant' - ).save() - self.assertEqual(merchant.email_address, 'merchant@example.org') - self.assertIn('merchant', merchant.roles) - self.assertEqual(merchant.name, 'Jack Q Merchant') diff --git a/tests/test_suite.py b/tests/test_suite.py new file mode 100644 index 0000000..92896e3 --- /dev/null +++ b/tests/test_suite.py @@ -0,0 +1,271 @@ +# -*- coding: utf-8 -*- + +from __future__ import unicode_literals + +import unittest2 as unittest +import requests + +import balanced + + +# fixtures + +TEST_CARDS = { + 'visa': [ + '4112344112344113', + '4110144110144115', + '4114360123456785', + '4061724061724061', + ], + 'mastercard': [ + '5111005111051128' + '5112345112345114' + '5115915115915118' + '5116601234567894' + ], + 'amex': [ + '371144371144376', + '341134113411347', + ], + 'discover': [ + '6011016011016011', + '6559906559906557', + ] +} + +PERSON = { + 'name': 'William James', + 'address': { + 'line1': '167 West 74th Street', + 'line2': 'Apt 7', + 'state': 'NY', + 'city': 'NYC', + 'postal_code': '10023', + 'country_code': 'USA', + }, + 'dob': '1842-12', + 'phone': '+16505551234', + 'email': 'python-client@example.org', +} + +BUSINESS = PERSON.copy() +BUSINESS['ein'] = '123456789' +BUSINESS['business_name'] = 'Foo corp' + +CARD = { + 'name': 'Johnny Fresh', + 'number': '4444424444444440', + 'expiration_month': 12, + 'expiration_year': 2013, + 'csc': '123', + 'address': { + 'line1': '123 Fake Street', + 'line2': 'Apt 7', + 'city': 'Jollywood', + 'state': 'CA', + 'postal_code': '90210', + 'country_code': 'US', + } +} + +INTERNATIONAL_CARD = { + 'name': 'Johnny Fresh', + 'number': '4444424444444440', + 'expiration_month': 12, + 'expiration_year': 2014, + 'address': { + 'street_address': '田原3ー8ー1', + 'city': '都留市', + 'state': '山梨県', + 'postal_code': '4020054', + 'country_code': 'JPN', + } +} + +BANK_ACCOUNT = { + 'name': 'Homer Jay', + 'account_number': '112233a', + 'routing_number': '121042882', +} + +BANK_ACCOUNT_W_TYPE = { + 'name': 'Homer Jay', + 'account_number': '112233a', + 'routing_number': '121042882', + 'type': 'checking' +} + + +class BasicUseCases(unittest.TestCase): + + @classmethod + def setUpClass(cls): + api_key = balanced.APIKey().save() + balanced.configure(api_key.secret) + cls.marketplace = balanced.Marketplace().save() + + def test_create_a_second_marketplace_should_fail(self): + with self.assertRaises(requests.HTTPError) as exc: + balanced.Marketplace().save() + the_exception = exc.exception + self.assertEqual(the_exception.status_code, 409) + + def test_index_the_marketplaces(self): + self.assertEqual(balanced.Marketplace.query.count(), 1) + + def test_create_a_customer(self): + meta = {'test#': 'test_d'} + card = balanced.Card(**CARD).save() + buyer = balanced.Customer( + source=card, + meta=meta, + **PERSON + ).save() + self.assertEqual(buyer.name, PERSON['name']) + self.assertIsNotNone(buyer.created_at) + self.assertIsNotNone(buyer.href) + + def test_debit_a_card_and_refund(self): + card = balanced.Card(**CARD).save() + debit = card.debit( + amount=1000, + appears_on_statement_as='atest', + meta={'fraud': 'yes'}, + description='Descripty') + self.assertTrue(debit.id.startswith('W')) + self.assertEqual(debit.description, 'Descripty') + self.assertEqual(debit.appears_on_statement_as, 'BAL*atest') + + refund = debit.refund(amount=100) + self.assertTrue(refund.id.startswith('RF')) + self.assertEqual(refund.debit.href, debit.href) + + another_debit = card.debit( + amount=1000, + meta={'fraud': 'yes'}) + self.assertEqual(another_debit.appears_on_statement_as, + 'BAL*example.com') + + another_debit.refund() + + def test_create_hold_and_void_it(self): + card = balanced.Card(**CARD).save() + hold = card.hold(amount=1500, description='Hold me') + self.assertEqual(hold.description, 'Hold me') + hold.cancel() + + def test_create_hold_and_capture_it(self): + card = balanced.Card(**CARD).save() + hold = card.hold(amount=1500) + self.assertTrue(hold.id.startswith('HL')) + debit = hold.capture() + self.assertEqual(debit.amount, 1500) + + def test_create_a_person_customer(self): + customer = balanced.Customer(**PERSON).save() + for key, value in PERSON.iteritems(): + if key == 'dob': + continue + if isinstance(value, dict): + self.assertDictEqual(getattr(customer, key), value) + else: + self.assertEqual(getattr(customer, key), value) + + def test_create_a_business_customer(self): + customer = balanced.Customer(**BUSINESS).save() + for key, value in BUSINESS.iteritems(): + if key == 'dob': + continue + if isinstance(value, dict): + self.assertDictEqual(getattr(customer, key), value) + else: + self.assertEqual(getattr(customer, key), value) + + def test_credit_a_bank_account(self): + card = balanced.Card(**INTERNATIONAL_CARD).save() + bank_account = balanced.BankAccount(**BANK_ACCOUNT).save() + card.debit(amount=10000) + original_balance = balanced.Marketplace.mine.in_escrow + 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) + + def test_escrow_limit(self): + bank_account = balanced.BankAccount(**BANK_ACCOUNT).save() + original_balance = balanced.Marketplace.mine.in_escrow + 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) + + def test_slice_syntax(self): + total_debit = balanced.Debit.query.count() + self.assertNotEqual(total_debit, 2) + self.assertEqual(len(balanced.Debit.query), total_debit) + sliced_debits = balanced.Debit.query[:2] + self.assertEqual(len(sliced_debits), 2) + for debit in sliced_debits: + self.assertIsInstance(debit, balanced.Debit) + all_debits = balanced.Debit.query.all() + last = total_debit * - 1 + for index, debit in enumerate(all_debits): + self.assertEqual(debit.href, + balanced.Debit.query[last + index].href) + + def test_filter_and_sort(self): + card = balanced.Card(**INTERNATIONAL_CARD).save() + debits = [ + card.debit(amount=1122, meta={'tag': meta}) + for meta in ('1', '1', '2') + ] + + for meta in ('1', '2'): + debs = balanced.Debit.query.filter( + balanced.Debit.f.meta.tag == meta + ) + self.assertItemsEqual( + [deb.id for deb in debs], + [deb.id for deb in debits if deb.meta['tag'] == meta] + ) + + debs = balanced.Debit.query.filter( + balanced.Debit.f.meta.contains('tag') + ).sort(balanced.Debit.f.amount.asc()) + self.assertEqual(len(debs), 3) + self.assertItemsEqual([deb.id for deb in debs], + [deb.id for deb in debits]) + + def test_create_international_card(self): + card = balanced.Card(**INTERNATIONAL_CARD).save() + self.assertTrue(card.id.startswith('CC')) + + def test_credit_bank_account(self): + card = balanced.Card(**INTERNATIONAL_CARD).save() + card.debit(50) + bank_account = balanced.BankAccount(**BANK_ACCOUNT_W_TYPE).save() + cr = bank_account.credit(50) + self.assertEqual(cr.amount, 50) + + def test_reverse_a_credit(self): + card = balanced.Card(**INTERNATIONAL_CARD).save() + card.debit(5000) + bank_account = balanced.BankAccount(**BANK_ACCOUNT_W_TYPE).save() + credit = bank_account.credit(amount=5000) + reversal = credit.reverse() + self.assertEqual(reversal.amount, 5000) + self.assertIn(credit.id, reversal.credit.href) + + def test_delete_bank_account(self): + customer = balanced.Customer().save() + bank_account = balanced.BankAccount(**BANK_ACCOUNT_W_TYPE).save() + bank_account.associate_to(customer) + bank_account.unstore() + + def test_delete_card(self): + customer = balanced.Customer().save() + card = balanced.Card(**CARD).save() + card.associate_to(customer) + card.unstore() From 36ec22eb2ce41d61f8d7cede885a4f326e243f7d Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Mon, 30 Dec 2013 17:22:19 -0700 Subject: [PATCH 008/146] tests find bugs, yay --- balanced/resources.py | 18 ++++++++++-------- tests/test_suite.py | 2 ++ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/balanced/resources.py b/balanced/resources.py index 431b125..8532a14 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -19,6 +19,7 @@ def href(self): class ObjectifyMixin(wac._ObjectifyMixin): def _objectify(self, resource_cls, **fields): + # setting values locally, not from server if 'links' not in fields: for key, value in fields.iteritems(): setattr(self, key, value) @@ -38,15 +39,15 @@ def _construct_from_response(self, **payload): # Singular resources are represented as JSON objects. However, # they are still wrapped inside an array: cls = Resource.registry[_type] - # if we couldn't determine the type of this object we use a - # generic resource object, target that instead. - if isinstance(self, (cls, Resource)): - # we are loading onto our self, self is the target - target = self - else: - target = cls(**payload) for resource_body in resources: + # if we couldn't determine the type of this object we use a + # generic resource object, target that instead. + if isinstance(self, (cls, Resource)): + # we are loading onto our self, self is the target + target = self + else: + target = cls() for key, value in resource_body.iteritems(): if key in ('links',): continue @@ -105,7 +106,8 @@ def extract_variables_from_item(item, variables): for value in item_variables.itervalues() ): # singular - item_property += '_href' + if not item_property.endswith('_href'): + item_property += '_href' lazy_href = parsed_link else: # collection diff --git a/tests/test_suite.py b/tests/test_suite.py index 92896e3..7a5b0ec 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -124,6 +124,8 @@ def test_create_a_customer(self): self.assertEqual(buyer.name, PERSON['name']) self.assertIsNotNone(buyer.created_at) self.assertIsNotNone(buyer.href) + self.assertEqual(buyer.cards.count(), 1) + self.assertEqual(buyer.cards.first().id, card.id) def test_debit_a_card_and_refund(self): card = balanced.Card(**CARD).save() From 3f219129d511327d09b52095bc0c018b38a60bdc Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Mon, 30 Dec 2013 17:25:15 -0700 Subject: [PATCH 009/146] for python 2.6 --- tests/fixtures/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fixtures/__init__.py b/tests/fixtures/__init__.py index 3e3c840..b20e256 100644 --- a/tests/fixtures/__init__.py +++ b/tests/fixtures/__init__.py @@ -9,7 +9,7 @@ class ResourceMeta(type): def __getattr__(cls, item): return json.load(open(os.path.join( os.path.dirname(os.path.abspath(__file__)), - 'resources/{}.json'.format(item)) + 'resources/{0}.json'.format(item)) )) From ed48ed36b4be2ce838bb1f6ab52b0e21c360157f Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Mon, 30 Dec 2013 17:25:55 -0700 Subject: [PATCH 010/146] for python 2.6 --- balanced/resources.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/balanced/resources.py b/balanced/resources.py index 8532a14..27cbe05 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -179,7 +179,9 @@ def __getattr__(self, item): setattr(self, item, Resource.get(href)) return getattr(self, item) raise AttributeError( - "'{}' has no attribute '{}'".format(self.__class__.__name__, item) + "'{0}' has no attribute '{1}'".format( + self.__class__.__name__, item + ) ) From cc3533f83bb666bf496e329b4db80f2869a1cf2c Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Tue, 31 Dec 2013 09:52:01 -0700 Subject: [PATCH 011/146] docs --- balanced/resources.py | 133 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 133 insertions(+) diff --git a/balanced/resources.py b/balanced/resources.py index 27cbe05..9cea5a4 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -198,6 +198,19 @@ def unstore(self): class Marketplace(Resource): + """ + A Marketplace represents your central broker for all operations on the + Balanced API. + + A Marketplace has a single `owner_customer` which represents your person or + business. + + All Resources apart from APIKeys are associated with a Marketplace. + + A Marketplace has an escrow account which receives all funds from Debits + that are not associated with Orders. The sum of the escrow (`in_escrow`) is + (Debits - Refunds + Reversals - Credits). + """ type = 'marketplaces' @@ -215,7 +228,13 @@ def mine(cls): class APIKey(Resource): + """ + Your APIKey is used to authenticate when performing operations on the + Balanced API. You must create an APIKey before you create a Marketplace. + **NOTE:** Never give out or expose your APIKey. You may POST to this + endpoint to create new APIKeys and then DELETE any old keys. + """ type = 'api_keys' uri_gen = wac.URIGen('/api_keys', '{api_key}') @@ -239,17 +258,38 @@ def capture(self, **kwargs): class Transaction(Resource): + """ + Any transfer, funds from or to, your Marketplace's escrow account or the + escrow account of an Order associated with your Marketplace. + E.g. a Credit, Debit, Refund, or Reversal. + + If the Transaction is associated with an Order then it will be applied to + the Order's escrow account, not to the Marketplace's escrow account. + """ type = 'transactions' class Credit(Transaction): + """ + A Credit represents a transfer of funds from your Marketplace's + escrow account to a FundingInstrument. + + Credits are created by calling the `credit` method on a FundingInstrument. + """ type = 'credits' uri_gen = wac.URIGen('/credits', '{credit}') def reverse(self, **kwargs): + """ + Reverse a Credit. If no amount is specified it will reverse the entire + amount of the Credit, you may create many Reversals up to the sum of + the total amount of the original Credit. + + :rtype: Reversal + """ return Reversal( href=self.reversals.href, **kwargs @@ -257,12 +297,27 @@ def reverse(self, **kwargs): class Debit(Transaction): + """ + A Debit represents a transfer of funds from a FundingInstrument to your + Marketplace's escrow account. + + A Debit may be created directly, or it will be created as a side-effect + of capturing a CardHold. If you create a Debit directly it will implicitly + create the associated CardHold if the FundingInstrument supports this. + """ type = 'debits' uri_gen = wac.URIGen('/debits', '{debit}') def refund(self, **kwargs): + """ + Refunds this Debit. If no amount is specified it will refund the entire + amount of the Debit, you may create many Refunds up to the sum total + of the original Debit's amount. + + :rtype: Refund + """ return Refund( href=self.refunds.href, **kwargs @@ -270,6 +325,12 @@ def refund(self, **kwargs): class Refund(Transaction): + """ + A Refund represents a reversal of funds from a Debit. A Debit can have + many Refunds associated with it up to the total amount of the original + Debit. Funds are returned to your Marketplace's escrow account + proportional to the amount of the Refund. + """ type = 'refunds' @@ -277,6 +338,12 @@ class Refund(Transaction): class Reversal(Transaction): + """ + A Reversal represents a reversal of funds from a Credit. A Credit can have + many Reversal associated with it up to the total amount of the original + Credit. Funds are returned to your Marketplace's escrow account + proportional to the amount of the Reversal. + """ type = 'reversals' @@ -284,6 +351,11 @@ class Reversal(Transaction): class FundingInstrument(Resource): + """ + A FundingInstrument is either (or both) a source or destination of funds. + You may perform `debit` or `credit` operations on a FundingInstrument to + transfer funds to or from your Marketplace's escrow. + """ type = 'funding_instruments' @@ -296,6 +368,14 @@ def associate_to(self, customer): self.save() def debit(self, amount, **kwargs): + """ + Creates a Debit of funds from this FundingInstrument to your + Marketplace's escrow account. + + :param appears_on_statement_as: If None then Balanced will use the + `domain_name` property from your Marketplace. + :rtype: Debit + """ return Debit( href=self.debits.href, amount=amount, @@ -303,6 +383,12 @@ def debit(self, amount, **kwargs): ).save() def credit(self, amount, **kwargs): + """ + Creates a Credit of funds from your Marketplace's escrow account to + this FundingInstrument. + + :rtype: Credit + """ return Credit( href=self.credits.href, amount=amount, @@ -311,18 +397,32 @@ def credit(self, amount, **kwargs): class BankAccount(FundingInstrument): + """ + A BankAccount is both a source, and a destination of, funds. You may + create Debits and Credits to and from, this funding instrument. + """ type = 'bank_accounts' uri_gen = wac.URIGen('/bank_accounts', '{bank_account}') def verify(self): + """ + Creates a verification of the associated BankAccount so it can + perform verified operations (debits). + + :rtype: BankAccountVerification + """ return BankAccountVerification( href=self.bank_account_verifications.href ).save() class BankAccountVerification(Resource): + """ + Represents an attempt to verify the associated BankAccount so it can + perform verified operations (debits). + """ type = 'bank_account_verifications' @@ -333,6 +433,9 @@ def confirm(self, amount_1, amount_2): class Card(FundingInstrument): + """ + A card represents a source of funds. You may Debit funds from the Card. + """ type = 'cards' @@ -347,6 +450,12 @@ def hold(self, amount, **kwargs): class Customer(Resource): + """ + A Customer represents a business or person within your Marketplace. A + Customer can have many funding instruments such as cards and bank accounts + associated to them. Customers are logical grouping constructs for + associating many Transactions and FundingInstruments. + """ type = 'customers' @@ -354,6 +463,13 @@ class Customer(Resource): class Order(Resource): + """ + An Order is a logical construct for grouping Transactions. + + An Order may have 0:n Transactions associated with it so long as the sum + (`amount_escrowed`) which is calculated as + (Debits - Refunds - Credits + Reversals), is always >= 0. + """ type = 'orders' @@ -361,6 +477,10 @@ class Order(Resource): class Callback(Resource): + """ + A Callback is a publicly accessible location that can receive POSTed JSON + data whenever an Event is generated. + """ type = 'callbacks' @@ -368,6 +488,12 @@ class Callback(Resource): class Event(Resource): + """ + An Event is a snapshot of another resource at a point in time when + something significant occurred. Events are created when resources are + created, updated, deleted or otherwise change state such as a Credit being + marked as failed. + """ type = 'events' @@ -375,10 +501,17 @@ class Event(Resource): class EventCallback(Resource): + """ + Represents a single event being sent to a callback. + """ type = 'event_callbacks' class EventCallbackLog(Resource): + """ + Represents a request and response from single attempt to notify a callback + of an event. + """ type = 'event_callback_logs' From 3a58154c5f28289c36d12ba9a20dd86af3eeac3a Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Fri, 3 Jan 2014 13:57:05 -0700 Subject: [PATCH 012/146] y2k + 14 --- tests/test_suite.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_suite.py b/tests/test_suite.py index 7a5b0ec..7f63af8 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals +from datetime import date import unittest2 as unittest import requests @@ -56,7 +57,7 @@ 'name': 'Johnny Fresh', 'number': '4444424444444440', 'expiration_month': 12, - 'expiration_year': 2013, + 'expiration_year': date.today().year + 1, 'csc': '123', 'address': { 'line1': '123 Fake Street', @@ -72,7 +73,7 @@ 'name': 'Johnny Fresh', 'number': '4444424444444440', 'expiration_month': 12, - 'expiration_year': 2014, + 'expiration_year': date.today().year + 1, 'address': { 'street_address': '田原3ー8ー1', 'city': '都留市', From 61bd5901119f5b8017795d992bf2aca9570da55d Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Mon, 6 Jan 2014 10:23:05 -0800 Subject: [PATCH 013/146] quick util to create scenarios. not finished, requires templates to be populated. --- balanced/__init__.py | 4 +- scenarios/_main.mako | 5 +- scenarios/api_key_create/definition.mako | 1 + scenarios/api_key_create/executable.py | 4 ++ scenarios/api_key_create/python.mako | 6 ++ scenarios/api_key_create/request.mako | 5 ++ scenarios/manage | 74 ++++++++++++++++++++++++ 7 files changed, 96 insertions(+), 3 deletions(-) create mode 100644 scenarios/api_key_create/definition.mako create mode 100644 scenarios/api_key_create/executable.py create mode 100644 scenarios/api_key_create/python.mako create mode 100644 scenarios/api_key_create/request.mako create mode 100755 scenarios/manage diff --git a/balanced/__init__.py b/balanced/__init__.py index c6d9f5a..2434777 100644 --- a/balanced/__init__.py +++ b/balanced/__init__.py @@ -3,12 +3,13 @@ __version__ = '1.1.0dev' from balanced.config import configure +from balanced import resources from balanced.resources import ( Resource, Marketplace, APIKey, CardHold, Credit, Debit, Refund, Reversal, Transaction, BankAccount, Card, Callback, Event, EventCallback, EventCallbackLog, - BankAccountVerification, Customer, + BankAccountVerification, Customer, Order ) from balanced import exc @@ -27,6 +28,7 @@ EventCallback.__name__, EventCallbackLog.__name__, Marketplace.__name__, + Order.__name__, Resource.__name__, Refund.__name__, Reversal.__name__, diff --git a/scenarios/_main.mako b/scenarios/_main.mako index 650f5b8..69bfcc9 100644 --- a/scenarios/_main.mako +++ b/scenarios/_main.mako @@ -34,9 +34,10 @@ import balanced %if api_location: -balanced.config.root_uri = ${api_location}' -%endif +balanced.configure('${api_key}', root_url='${api_location}') +%else: balanced.configure('${api_key}') +%endif diff --git a/scenarios/api_key_create/definition.mako b/scenarios/api_key_create/definition.mako new file mode 100644 index 0000000..a66f6d1 --- /dev/null +++ b/scenarios/api_key_create/definition.mako @@ -0,0 +1 @@ +balanced.APIKey diff --git a/scenarios/api_key_create/executable.py b/scenarios/api_key_create/executable.py new file mode 100644 index 0000000..7f08b19 --- /dev/null +++ b/scenarios/api_key_create/executable.py @@ -0,0 +1,4 @@ +import balanced + +api_key = balanced.APIKey() +api_key.save() diff --git a/scenarios/api_key_create/python.mako b/scenarios/api_key_create/python.mako new file mode 100644 index 0000000..1df496c --- /dev/null +++ b/scenarios/api_key_create/python.mako @@ -0,0 +1,6 @@ +% if mode == 'definition': +balanced.APIKey + +% else: + +% endif \ No newline at end of file diff --git a/scenarios/api_key_create/request.mako b/scenarios/api_key_create/request.mako new file mode 100644 index 0000000..014e90c --- /dev/null +++ b/scenarios/api_key_create/request.mako @@ -0,0 +1,5 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +api_key = balanced.APIKey() +api_key.save() diff --git a/scenarios/manage b/scenarios/manage new file mode 100755 index 0000000..013eaed --- /dev/null +++ b/scenarios/manage @@ -0,0 +1,74 @@ +#!/usr/bin/env python +from __future__ import unicode_literals +import argparse +import fileinput +import os +import re +import shutil +import sys + + +def convert(name): + s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', name) + return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower() + + +def get_file_paths(directory): + for root, directories, files in os.walk(directory): + + for filename in files: + + # Join the two strings in order to form the full filepath. + filepath = os.path.join(root, filename) + + yield filepath + + +def main(parser): + args = parser.parse_args() + args.command(args) + + +def create(args): + resource = args.resource + try: + exec('from balanced import ' + resource) + except ImportError: + print 'Sorry, we cannot import the resource {} from balanced.'.format( + resource + ) + sys.exit(1) + variable = convert(resource) + print resource, variable + file_root = os.path.dirname(os.path.abspath(__file__)) + for op in ('create', 'delete', 'list', 'retrieve', 'update'): + # copy + + src = os.path.join(file_root, '_template', '_' + op) + dst = os.path.join(file_root, '{}_{}'.format(variable, op)) + try: + shutil.copytree(src, dst) + except OSError: + pass # already exists? + # replace + for file in get_file_paths(dst): + # TODO: write back to file + for line in fileinput.input(file, inplace=True): + line.replace('VARIABLE', variable) + line.replace('RESOURCE', resource) + + +if __name__ == '__main__': + parser = argparse.ArgumentParser(add_help=False) + parents = [parser] + root_parser = argparse.ArgumentParser(parents=parents) + sub_parsers = root_parser.add_subparsers(title='sub-commands') + + sub_parser = sub_parsers.add_parser( + 'create', + description='Create a new set of scenarios', + parents=parents) + sub_parser.add_argument('resource') + sub_parser.set_defaults(command=create) + + main(root_parser) From 6cd533645eeff0272972761e98e956f3c1d980d5 Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Tue, 7 Jan 2014 10:04:19 -0800 Subject: [PATCH 014/146] missing scenario templates --- scenarios/_template/_create/definition.mako | 1 + scenarios/_template/_create/executable.py | 6 ++++++ scenarios/_template/_create/python.mako | 10 ++++++++++ scenarios/_template/_create/request.mako | 5 +++++ scenarios/_template/_delete/definition.mako | 0 scenarios/_template/_delete/executable.py | 0 scenarios/_template/_delete/python.mako | 0 scenarios/_template/_delete/request.mako | 0 scenarios/_template/_list/definition.mako | 0 scenarios/_template/_list/executable.py | 0 scenarios/_template/_list/python.mako | 0 scenarios/_template/_list/request.mako | 0 scenarios/_template/_retrieve/definition.mako | 0 scenarios/_template/_retrieve/executable.py | 0 scenarios/_template/_retrieve/python.mako | 0 scenarios/_template/_retrieve/request.mako | 0 scenarios/_template/_update/definition.mako | 0 scenarios/_template/_update/executable.py | 0 scenarios/_template/_update/python.mako | 0 scenarios/_template/_update/request.mako | 0 20 files changed, 22 insertions(+) create mode 100644 scenarios/_template/_create/definition.mako create mode 100644 scenarios/_template/_create/executable.py create mode 100644 scenarios/_template/_create/python.mako create mode 100644 scenarios/_template/_create/request.mako create mode 100644 scenarios/_template/_delete/definition.mako create mode 100644 scenarios/_template/_delete/executable.py create mode 100644 scenarios/_template/_delete/python.mako create mode 100644 scenarios/_template/_delete/request.mako create mode 100644 scenarios/_template/_list/definition.mako create mode 100644 scenarios/_template/_list/executable.py create mode 100644 scenarios/_template/_list/python.mako create mode 100644 scenarios/_template/_list/request.mako create mode 100644 scenarios/_template/_retrieve/definition.mako create mode 100644 scenarios/_template/_retrieve/executable.py create mode 100644 scenarios/_template/_retrieve/python.mako create mode 100644 scenarios/_template/_retrieve/request.mako create mode 100644 scenarios/_template/_update/definition.mako create mode 100644 scenarios/_template/_update/executable.py create mode 100644 scenarios/_template/_update/python.mako create mode 100644 scenarios/_template/_update/request.mako diff --git a/scenarios/_template/_create/definition.mako b/scenarios/_template/_create/definition.mako new file mode 100644 index 0000000..4e8b7a1 --- /dev/null +++ b/scenarios/_template/_create/definition.mako @@ -0,0 +1 @@ +balanced.RESOURCE diff --git a/scenarios/_template/_create/executable.py b/scenarios/_template/_create/executable.py new file mode 100644 index 0000000..b54e07d --- /dev/null +++ b/scenarios/_template/_create/executable.py @@ -0,0 +1,6 @@ +import balanced + +balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') + +VARIABLE = balanced.RESOURCE() +VARIABLE.save() diff --git a/scenarios/_template/_create/python.mako b/scenarios/_template/_create/python.mako new file mode 100644 index 0000000..15a7699 --- /dev/null +++ b/scenarios/_template/_create/python.mako @@ -0,0 +1,10 @@ +% if mode == 'definition': + balanced.RESOURCE().save() +% else: + import balanced + + balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') + + VARIABLE = balanced.RESOURCE() + VARIABLE.save() +% endif diff --git a/scenarios/_template/_create/request.mako b/scenarios/_template/_create/request.mako new file mode 100644 index 0000000..f7fc6da --- /dev/null +++ b/scenarios/_template/_create/request.mako @@ -0,0 +1,5 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +VARIABLE = balanced.RESOURCE() +VARIABLE.save() diff --git a/scenarios/_template/_delete/definition.mako b/scenarios/_template/_delete/definition.mako new file mode 100644 index 0000000..e69de29 diff --git a/scenarios/_template/_delete/executable.py b/scenarios/_template/_delete/executable.py new file mode 100644 index 0000000..e69de29 diff --git a/scenarios/_template/_delete/python.mako b/scenarios/_template/_delete/python.mako new file mode 100644 index 0000000..e69de29 diff --git a/scenarios/_template/_delete/request.mako b/scenarios/_template/_delete/request.mako new file mode 100644 index 0000000..e69de29 diff --git a/scenarios/_template/_list/definition.mako b/scenarios/_template/_list/definition.mako new file mode 100644 index 0000000..e69de29 diff --git a/scenarios/_template/_list/executable.py b/scenarios/_template/_list/executable.py new file mode 100644 index 0000000..e69de29 diff --git a/scenarios/_template/_list/python.mako b/scenarios/_template/_list/python.mako new file mode 100644 index 0000000..e69de29 diff --git a/scenarios/_template/_list/request.mako b/scenarios/_template/_list/request.mako new file mode 100644 index 0000000..e69de29 diff --git a/scenarios/_template/_retrieve/definition.mako b/scenarios/_template/_retrieve/definition.mako new file mode 100644 index 0000000..e69de29 diff --git a/scenarios/_template/_retrieve/executable.py b/scenarios/_template/_retrieve/executable.py new file mode 100644 index 0000000..e69de29 diff --git a/scenarios/_template/_retrieve/python.mako b/scenarios/_template/_retrieve/python.mako new file mode 100644 index 0000000..e69de29 diff --git a/scenarios/_template/_retrieve/request.mako b/scenarios/_template/_retrieve/request.mako new file mode 100644 index 0000000..e69de29 diff --git a/scenarios/_template/_update/definition.mako b/scenarios/_template/_update/definition.mako new file mode 100644 index 0000000..e69de29 diff --git a/scenarios/_template/_update/executable.py b/scenarios/_template/_update/executable.py new file mode 100644 index 0000000..e69de29 diff --git a/scenarios/_template/_update/python.mako b/scenarios/_template/_update/python.mako new file mode 100644 index 0000000..e69de29 diff --git a/scenarios/_template/_update/request.mako b/scenarios/_template/_update/request.mako new file mode 100644 index 0000000..e69de29 From 33eccce1a701acdd5c1aae565fb6e97dd5c687f0 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Tue, 7 Jan 2014 14:04:59 -0700 Subject: [PATCH 015/146] 1.1 base scenarios complete --- scenario.cache | 682 ++++++++++-------- scenarios/_main.mako | 5 +- .../_template/_create/definition.mako | 0 .../_template/_create}/executable.py | 0 scenarios/_mj/_template/_create/python.mako | 6 + .../{ => _mj}/_template/_create/request.mako | 0 .../_template/_delete/definition.mako | 0 .../_template/_delete}/executable.py | 0 scenarios/_mj/_template/_delete/python.mako | 5 + .../{ => _mj}/_template/_delete/request.mako | 0 .../{ => _mj}/_template/_list/definition.mako | 0 .../_template/_list}/executable.py | 0 scenarios/_mj/_template/_list/python.mako | 5 + .../{ => _mj}/_template/_list/request.mako | 0 .../_template/_retrieve/definition.mako | 0 .../_template/_retrieve}/executable.py | 0 scenarios/_mj/_template/_retrieve/python.mako | 5 + .../_template/_retrieve/request.mako | 0 .../_template/_update/definition.mako | 0 .../_template/_update/executable.py} | 0 scenarios/_mj/_template/_update/python.mako | 5 + .../{ => _mj}/_template/_update/request.mako | 0 scenarios/_mj/api_key_create/definition.mako | 1 + scenarios/_mj/api_key_create/executable.py | 6 + scenarios/_mj/api_key_create/python.mako | 11 + scenarios/_mj/api_key_create/request.mako | 5 + scenarios/{ => _mj}/manage | 0 scenarios/_template/_create/executable.py | 6 - scenarios/_template/_create/python.mako | 10 - scenarios/_template/_list/python.mako | 0 scenarios/_template/_retrieve/python.mako | 0 scenarios/_template/_update/python.mako | 0 scenarios/api_key_create/definition.mako | 2 +- scenarios/api_key_create/executable.py | 5 +- scenarios/api_key_create/python.mako | 7 +- scenarios/api_key_create/request.mako | 3 +- scenarios/api_key_delete/definition.mako | 1 + scenarios/api_key_delete/executable.py | 6 + scenarios/api_key_delete/python.mako | 10 + scenarios/api_key_delete/request.mako | 5 + scenarios/api_key_list/definition.mako | 1 + scenarios/api_key_list/executable.py | 5 + scenarios/api_key_list/python.mako | 9 + scenarios/api_key_list/request.mako | 4 + scenarios/api_key_show/definition.mako | 1 + scenarios/api_key_show/executable.py | 5 + scenarios/api_key_show/python.mako | 9 + scenarios/api_key_show/request.mako | 4 + scenarios/bank_account_create/definition.mako | 1 + scenarios/bank_account_create/executable.py | 10 + scenarios/bank_account_create/python.mako | 14 + scenarios/bank_account_create/request.mako | 6 + scenarios/bank_account_credit/definition.mako | 1 + scenarios/bank_account_credit/executable.py | 8 + scenarios/bank_account_credit/python.mako | 12 + scenarios/bank_account_credit/request.mako | 7 + scenarios/bank_account_debit/definition.mako | 1 + scenarios/bank_account_debit/executable.py | 10 + scenarios/bank_account_debit/python.mako | 14 + scenarios/bank_account_debit/request.mako | 7 + scenarios/bank_account_delete/definition.mako | 1 + scenarios/bank_account_delete/executable.py | 6 + scenarios/bank_account_delete/python.mako | 10 + scenarios/bank_account_delete/request.mako | 5 + scenarios/bank_account_list/definition.mako | 1 + scenarios/bank_account_list/executable.py | 5 + scenarios/bank_account_list/python.mako | 9 + scenarios/bank_account_list/request.mako | 4 + scenarios/bank_account_show/definition.mako | 1 + scenarios/bank_account_show/executable.py | 5 + scenarios/bank_account_show/python.mako | 9 + scenarios/bank_account_show/request.mako | 4 + scenarios/bank_account_update/definition.mako | 1 + scenarios/bank_account_update/executable.py | 11 + scenarios/bank_account_update/python.mako | 15 + scenarios/bank_account_update/request.mako | 10 + .../definition.mako | 1 + .../executable.py | 6 + .../python.mako | 10 + .../request.mako | 5 + .../definition.mako | 1 + .../executable.py | 4 + .../python.mako | 8 + .../request.mako | 3 + .../definition.mako | 1 + .../executable.py | 7 + .../python.mako | 11 + .../request.mako | 6 + scenarios/callback_create/definition.mako | 1 + scenarios/callback_create/executable.py | 7 + scenarios/callback_create/python.mako | 11 + scenarios/callback_create/request.mako | 6 + scenarios/callback_delete/definition.mako | 1 + scenarios/callback_delete/executable.py | 6 + scenarios/callback_delete/python.mako | 10 + scenarios/callback_delete/request.mako | 5 + scenarios/callback_list/definition.mako | 1 + scenarios/callback_list/executable.py | 5 + scenarios/callback_list/python.mako | 9 + scenarios/callback_list/request.mako | 4 + scenarios/callback_show/definition.mako | 1 + scenarios/callback_show/executable.py | 5 + scenarios/callback_show/python.mako | 9 + scenarios/callback_show/request.mako | 4 + scenarios/card_create/definition.mako | 1 + scenarios/card_create/executable.py | 10 + scenarios/card_create/python.mako | 14 + scenarios/card_create/request.mako | 6 + scenarios/card_debit/definition.mako | 1 + scenarios/card_debit/executable.py | 10 + scenarios/card_debit/python.mako | 14 + scenarios/card_debit/request.mako | 7 + scenarios/card_delete/definition.mako | 1 + scenarios/card_delete/executable.py | 6 + scenarios/card_delete/python.mako | 10 + scenarios/card_delete/request.mako | 5 + scenarios/card_hold_capture/definition.mako | 1 + scenarios/card_hold_capture/executable.py | 9 + scenarios/card_hold_capture/python.mako | 13 + scenarios/card_hold_capture/request.mako | 7 + scenarios/card_hold_create/definition.mako | 1 + scenarios/card_hold_create/executable.py | 9 + scenarios/card_hold_create/python.mako | 13 + scenarios/card_hold_create/request.mako | 7 + scenarios/card_hold_list/definition.mako | 1 + scenarios/card_hold_list/executable.py | 5 + scenarios/card_hold_list/python.mako | 9 + scenarios/card_hold_list/request.mako | 4 + scenarios/card_hold_show/definition.mako | 1 + scenarios/card_hold_show/executable.py | 5 + scenarios/card_hold_show/python.mako | 9 + scenarios/card_hold_show/request.mako | 4 + scenarios/card_hold_update/definition.mako | 1 + scenarios/card_hold_update/executable.py | 11 + scenarios/card_hold_update/python.mako | 15 + scenarios/card_hold_update/request.mako | 10 + scenarios/card_hold_void/definition.mako | 1 + scenarios/card_hold_void/executable.py | 6 + scenarios/card_hold_void/python.mako | 10 + scenarios/card_hold_void/request.mako | 5 + scenarios/card_list/definition.mako | 1 + scenarios/card_list/executable.py | 5 + scenarios/card_list/python.mako | 9 + scenarios/card_list/request.mako | 4 + scenarios/card_show/definition.mako | 1 + scenarios/card_show/executable.py | 5 + scenarios/card_show/python.mako | 9 + scenarios/card_show/request.mako | 4 + scenarios/card_update/definition.mako | 1 + scenarios/card_update/executable.py | 11 + scenarios/card_update/python.mako | 15 + scenarios/card_update/request.mako | 10 + scenarios/credit_list/definition.mako | 1 + scenarios/credit_list/executable.py | 5 + scenarios/credit_list/python.mako | 9 + scenarios/credit_list/request.mako | 4 + .../credit_list_bank_account/definition.mako | 1 + .../credit_list_bank_account/executable.py | 6 + .../credit_list_bank_account/python.mako | 10 + .../credit_list_bank_account/request.mako | 5 + scenarios/credit_show/definition.mako | 1 + scenarios/credit_show/executable.py | 5 + scenarios/credit_show/python.mako | 9 + scenarios/credit_show/request.mako | 4 + scenarios/credit_update/definition.mako | 1 + scenarios/credit_update/executable.py | 11 + scenarios/credit_update/python.mako | 15 + scenarios/credit_update/request.mako | 10 + .../customer_add_bank_account/definition.mako | 1 + .../customer_add_bank_account/executable.py | 6 + .../customer_add_bank_account/python.mako | 10 + .../customer_add_bank_account/request.mako | 5 + scenarios/customer_add_card/definition.mako | 1 + scenarios/customer_add_card/executable.py | 6 + scenarios/customer_add_card/python.mako | 10 + scenarios/customer_add_card/request.mako | 5 + scenarios/customer_create/definition.mako | 1 + scenarios/customer_create/executable.py | 10 + scenarios/customer_create/python.mako | 14 + scenarios/customer_create/request.mako | 6 + scenarios/customer_delete/definition.mako | 1 + scenarios/customer_delete/executable.py | 6 + scenarios/customer_delete/python.mako | 10 + scenarios/customer_delete/request.mako | 5 + scenarios/customer_list/definition.mako | 1 + scenarios/customer_list/executable.py | 5 + scenarios/customer_list/python.mako | 9 + scenarios/customer_list/request.mako | 4 + scenarios/customer_show/definition.mako | 1 + scenarios/customer_show/executable.py | 5 + scenarios/customer_show/python.mako | 9 + scenarios/customer_show/request.mako | 4 + scenarios/customer_update/definition.mako | 1 + scenarios/customer_update/executable.py | 10 + scenarios/customer_update/python.mako | 14 + scenarios/customer_update/request.mako | 9 + scenarios/debit_list/definition.mako | 1 + scenarios/debit_list/executable.py | 5 + scenarios/debit_list/python.mako | 9 + scenarios/debit_list/request.mako | 4 + scenarios/debit_show/definition.mako | 1 + scenarios/debit_show/executable.py | 5 + scenarios/debit_show/python.mako | 9 + scenarios/debit_show/request.mako | 4 + scenarios/debit_update/definition.mako | 1 + scenarios/debit_update/executable.py | 11 + scenarios/debit_update/python.mako | 15 + scenarios/debit_update/request.mako | 10 + scenarios/event_list/definition.mako | 1 + scenarios/event_list/executable.py | 5 + scenarios/event_list/python.mako | 9 + scenarios/event_list/request.mako | 4 + scenarios/event_show/definition.mako | 1 + scenarios/event_show/executable.py | 5 + scenarios/event_show/python.mako | 9 + scenarios/event_show/request.mako | 4 + scenarios/order_create/definition.mako | 1 + scenarios/order_create/executable.py | 7 + scenarios/order_create/python.mako | 11 + scenarios/order_create/request.mako | 6 + scenarios/order_list/definition.mako | 1 + scenarios/order_list/executable.py | 5 + scenarios/order_list/python.mako | 9 + scenarios/order_list/request.mako | 4 + scenarios/order_show/definition.mako | 1 + scenarios/order_show/executable.py | 5 + scenarios/order_show/python.mako | 9 + scenarios/order_show/request.mako | 4 + scenarios/order_update/definition.mako | 1 + scenarios/order_update/executable.py | 11 + scenarios/order_update/python.mako | 15 + scenarios/order_update/request.mako | 10 + scenarios/refund_create/definition.mako | 1 + scenarios/refund_create/executable.py | 6 + scenarios/refund_create/python.mako | 10 + scenarios/refund_create/request.mako | 5 + scenarios/refund_list/definition.mako | 1 + scenarios/refund_list/executable.py | 5 + scenarios/refund_list/python.mako | 9 + scenarios/refund_list/request.mako | 4 + scenarios/refund_show/definition.mako | 1 + scenarios/refund_show/executable.py | 5 + scenarios/refund_show/python.mako | 9 + scenarios/refund_show/request.mako | 4 + scenarios/refund_update/definition.mako | 1 + scenarios/refund_update/executable.py | 12 + scenarios/refund_update/python.mako | 16 + scenarios/refund_update/request.mako | 11 + scenarios/reversal_create/definition.mako | 1 + scenarios/reversal_create/executable.py | 6 + scenarios/reversal_create/python.mako | 10 + scenarios/reversal_create/request.mako | 5 + scenarios/reversal_list/definition.mako | 1 + scenarios/reversal_list/executable.py | 5 + scenarios/reversal_list/python.mako | 9 + scenarios/reversal_list/request.mako | 4 + scenarios/reversal_show/definition.mako | 1 + scenarios/reversal_show/executable.py | 5 + scenarios/reversal_show/python.mako | 9 + scenarios/reversal_show/request.mako | 4 + scenarios/reversal_update/definition.mako | 1 + scenarios/reversal_update/executable.py | 12 + scenarios/reversal_update/python.mako | 16 + scenarios/reversal_update/request.mako | 11 + 264 files changed, 1825 insertions(+), 336 deletions(-) rename scenarios/{ => _mj}/_template/_create/definition.mako (100%) rename scenarios/{_template/_delete => _mj/_template/_create}/executable.py (100%) create mode 100644 scenarios/_mj/_template/_create/python.mako rename scenarios/{ => _mj}/_template/_create/request.mako (100%) rename scenarios/{ => _mj}/_template/_delete/definition.mako (100%) rename scenarios/{_template/_list => _mj/_template/_delete}/executable.py (100%) create mode 100644 scenarios/_mj/_template/_delete/python.mako rename scenarios/{ => _mj}/_template/_delete/request.mako (100%) rename scenarios/{ => _mj}/_template/_list/definition.mako (100%) rename scenarios/{_template/_retrieve => _mj/_template/_list}/executable.py (100%) create mode 100644 scenarios/_mj/_template/_list/python.mako rename scenarios/{ => _mj}/_template/_list/request.mako (100%) rename scenarios/{ => _mj}/_template/_retrieve/definition.mako (100%) rename scenarios/{_template/_update => _mj/_template/_retrieve}/executable.py (100%) create mode 100644 scenarios/_mj/_template/_retrieve/python.mako rename scenarios/{ => _mj}/_template/_retrieve/request.mako (100%) rename scenarios/{ => _mj}/_template/_update/definition.mako (100%) rename scenarios/{_template/_delete/python.mako => _mj/_template/_update/executable.py} (100%) create mode 100644 scenarios/_mj/_template/_update/python.mako rename scenarios/{ => _mj}/_template/_update/request.mako (100%) create mode 100644 scenarios/_mj/api_key_create/definition.mako create mode 100644 scenarios/_mj/api_key_create/executable.py create mode 100644 scenarios/_mj/api_key_create/python.mako create mode 100644 scenarios/_mj/api_key_create/request.mako rename scenarios/{ => _mj}/manage (100%) delete mode 100644 scenarios/_template/_create/executable.py delete mode 100644 scenarios/_template/_create/python.mako delete mode 100644 scenarios/_template/_list/python.mako delete mode 100644 scenarios/_template/_retrieve/python.mako delete mode 100644 scenarios/_template/_update/python.mako create mode 100644 scenarios/api_key_delete/definition.mako create mode 100644 scenarios/api_key_delete/executable.py create mode 100644 scenarios/api_key_delete/python.mako create mode 100644 scenarios/api_key_delete/request.mako create mode 100644 scenarios/api_key_list/definition.mako create mode 100644 scenarios/api_key_list/executable.py create mode 100644 scenarios/api_key_list/python.mako create mode 100644 scenarios/api_key_list/request.mako create mode 100644 scenarios/api_key_show/definition.mako create mode 100644 scenarios/api_key_show/executable.py create mode 100644 scenarios/api_key_show/python.mako create mode 100644 scenarios/api_key_show/request.mako create mode 100644 scenarios/bank_account_create/definition.mako create mode 100644 scenarios/bank_account_create/executable.py create mode 100644 scenarios/bank_account_create/python.mako create mode 100644 scenarios/bank_account_create/request.mako create mode 100644 scenarios/bank_account_credit/definition.mako create mode 100644 scenarios/bank_account_credit/executable.py create mode 100644 scenarios/bank_account_credit/python.mako create mode 100644 scenarios/bank_account_credit/request.mako create mode 100644 scenarios/bank_account_debit/definition.mako create mode 100644 scenarios/bank_account_debit/executable.py create mode 100644 scenarios/bank_account_debit/python.mako create mode 100644 scenarios/bank_account_debit/request.mako create mode 100644 scenarios/bank_account_delete/definition.mako create mode 100644 scenarios/bank_account_delete/executable.py create mode 100644 scenarios/bank_account_delete/python.mako create mode 100644 scenarios/bank_account_delete/request.mako create mode 100644 scenarios/bank_account_list/definition.mako create mode 100644 scenarios/bank_account_list/executable.py create mode 100644 scenarios/bank_account_list/python.mako create mode 100644 scenarios/bank_account_list/request.mako create mode 100644 scenarios/bank_account_show/definition.mako create mode 100644 scenarios/bank_account_show/executable.py create mode 100644 scenarios/bank_account_show/python.mako create mode 100644 scenarios/bank_account_show/request.mako create mode 100644 scenarios/bank_account_update/definition.mako create mode 100644 scenarios/bank_account_update/executable.py create mode 100644 scenarios/bank_account_update/python.mako create mode 100644 scenarios/bank_account_update/request.mako create mode 100644 scenarios/bank_account_verification_create/definition.mako create mode 100644 scenarios/bank_account_verification_create/executable.py create mode 100644 scenarios/bank_account_verification_create/python.mako create mode 100644 scenarios/bank_account_verification_create/request.mako create mode 100644 scenarios/bank_account_verification_show/definition.mako create mode 100644 scenarios/bank_account_verification_show/executable.py create mode 100644 scenarios/bank_account_verification_show/python.mako create mode 100644 scenarios/bank_account_verification_show/request.mako create mode 100644 scenarios/bank_account_verification_update/definition.mako create mode 100644 scenarios/bank_account_verification_update/executable.py create mode 100644 scenarios/bank_account_verification_update/python.mako create mode 100644 scenarios/bank_account_verification_update/request.mako create mode 100644 scenarios/callback_create/definition.mako create mode 100644 scenarios/callback_create/executable.py create mode 100644 scenarios/callback_create/python.mako create mode 100644 scenarios/callback_create/request.mako create mode 100644 scenarios/callback_delete/definition.mako create mode 100644 scenarios/callback_delete/executable.py create mode 100644 scenarios/callback_delete/python.mako create mode 100644 scenarios/callback_delete/request.mako create mode 100644 scenarios/callback_list/definition.mako create mode 100644 scenarios/callback_list/executable.py create mode 100644 scenarios/callback_list/python.mako create mode 100644 scenarios/callback_list/request.mako create mode 100644 scenarios/callback_show/definition.mako create mode 100644 scenarios/callback_show/executable.py create mode 100644 scenarios/callback_show/python.mako create mode 100644 scenarios/callback_show/request.mako create mode 100644 scenarios/card_create/definition.mako create mode 100644 scenarios/card_create/executable.py create mode 100644 scenarios/card_create/python.mako create mode 100644 scenarios/card_create/request.mako create mode 100644 scenarios/card_debit/definition.mako create mode 100644 scenarios/card_debit/executable.py create mode 100644 scenarios/card_debit/python.mako create mode 100644 scenarios/card_debit/request.mako create mode 100644 scenarios/card_delete/definition.mako create mode 100644 scenarios/card_delete/executable.py create mode 100644 scenarios/card_delete/python.mako create mode 100644 scenarios/card_delete/request.mako create mode 100644 scenarios/card_hold_capture/definition.mako create mode 100644 scenarios/card_hold_capture/executable.py create mode 100644 scenarios/card_hold_capture/python.mako create mode 100644 scenarios/card_hold_capture/request.mako create mode 100644 scenarios/card_hold_create/definition.mako create mode 100644 scenarios/card_hold_create/executable.py create mode 100644 scenarios/card_hold_create/python.mako create mode 100644 scenarios/card_hold_create/request.mako create mode 100644 scenarios/card_hold_list/definition.mako create mode 100644 scenarios/card_hold_list/executable.py create mode 100644 scenarios/card_hold_list/python.mako create mode 100644 scenarios/card_hold_list/request.mako create mode 100644 scenarios/card_hold_show/definition.mako create mode 100644 scenarios/card_hold_show/executable.py create mode 100644 scenarios/card_hold_show/python.mako create mode 100644 scenarios/card_hold_show/request.mako create mode 100644 scenarios/card_hold_update/definition.mako create mode 100644 scenarios/card_hold_update/executable.py create mode 100644 scenarios/card_hold_update/python.mako create mode 100644 scenarios/card_hold_update/request.mako create mode 100644 scenarios/card_hold_void/definition.mako create mode 100644 scenarios/card_hold_void/executable.py create mode 100644 scenarios/card_hold_void/python.mako create mode 100644 scenarios/card_hold_void/request.mako create mode 100644 scenarios/card_list/definition.mako create mode 100644 scenarios/card_list/executable.py create mode 100644 scenarios/card_list/python.mako create mode 100644 scenarios/card_list/request.mako create mode 100644 scenarios/card_show/definition.mako create mode 100644 scenarios/card_show/executable.py create mode 100644 scenarios/card_show/python.mako create mode 100644 scenarios/card_show/request.mako create mode 100644 scenarios/card_update/definition.mako create mode 100644 scenarios/card_update/executable.py create mode 100644 scenarios/card_update/python.mako create mode 100644 scenarios/card_update/request.mako create mode 100644 scenarios/credit_list/definition.mako create mode 100644 scenarios/credit_list/executable.py create mode 100644 scenarios/credit_list/python.mako create mode 100644 scenarios/credit_list/request.mako create mode 100644 scenarios/credit_list_bank_account/definition.mako create mode 100644 scenarios/credit_list_bank_account/executable.py create mode 100644 scenarios/credit_list_bank_account/python.mako create mode 100644 scenarios/credit_list_bank_account/request.mako create mode 100644 scenarios/credit_show/definition.mako create mode 100644 scenarios/credit_show/executable.py create mode 100644 scenarios/credit_show/python.mako create mode 100644 scenarios/credit_show/request.mako create mode 100644 scenarios/credit_update/definition.mako create mode 100644 scenarios/credit_update/executable.py create mode 100644 scenarios/credit_update/python.mako create mode 100644 scenarios/credit_update/request.mako create mode 100644 scenarios/customer_add_bank_account/definition.mako create mode 100644 scenarios/customer_add_bank_account/executable.py create mode 100644 scenarios/customer_add_bank_account/python.mako create mode 100644 scenarios/customer_add_bank_account/request.mako create mode 100644 scenarios/customer_add_card/definition.mako create mode 100644 scenarios/customer_add_card/executable.py create mode 100644 scenarios/customer_add_card/python.mako create mode 100644 scenarios/customer_add_card/request.mako create mode 100644 scenarios/customer_create/definition.mako create mode 100644 scenarios/customer_create/executable.py create mode 100644 scenarios/customer_create/python.mako create mode 100644 scenarios/customer_create/request.mako create mode 100644 scenarios/customer_delete/definition.mako create mode 100644 scenarios/customer_delete/executable.py create mode 100644 scenarios/customer_delete/python.mako create mode 100644 scenarios/customer_delete/request.mako create mode 100644 scenarios/customer_list/definition.mako create mode 100644 scenarios/customer_list/executable.py create mode 100644 scenarios/customer_list/python.mako create mode 100644 scenarios/customer_list/request.mako create mode 100644 scenarios/customer_show/definition.mako create mode 100644 scenarios/customer_show/executable.py create mode 100644 scenarios/customer_show/python.mako create mode 100644 scenarios/customer_show/request.mako create mode 100644 scenarios/customer_update/definition.mako create mode 100644 scenarios/customer_update/executable.py create mode 100644 scenarios/customer_update/python.mako create mode 100644 scenarios/customer_update/request.mako create mode 100644 scenarios/debit_list/definition.mako create mode 100644 scenarios/debit_list/executable.py create mode 100644 scenarios/debit_list/python.mako create mode 100644 scenarios/debit_list/request.mako create mode 100644 scenarios/debit_show/definition.mako create mode 100644 scenarios/debit_show/executable.py create mode 100644 scenarios/debit_show/python.mako create mode 100644 scenarios/debit_show/request.mako create mode 100644 scenarios/debit_update/definition.mako create mode 100644 scenarios/debit_update/executable.py create mode 100644 scenarios/debit_update/python.mako create mode 100644 scenarios/debit_update/request.mako create mode 100644 scenarios/event_list/definition.mako create mode 100644 scenarios/event_list/executable.py create mode 100644 scenarios/event_list/python.mako create mode 100644 scenarios/event_list/request.mako create mode 100644 scenarios/event_show/definition.mako create mode 100644 scenarios/event_show/executable.py create mode 100644 scenarios/event_show/python.mako create mode 100644 scenarios/event_show/request.mako create mode 100644 scenarios/order_create/definition.mako create mode 100644 scenarios/order_create/executable.py create mode 100644 scenarios/order_create/python.mako create mode 100644 scenarios/order_create/request.mako create mode 100644 scenarios/order_list/definition.mako create mode 100644 scenarios/order_list/executable.py create mode 100644 scenarios/order_list/python.mako create mode 100644 scenarios/order_list/request.mako create mode 100644 scenarios/order_show/definition.mako create mode 100644 scenarios/order_show/executable.py create mode 100644 scenarios/order_show/python.mako create mode 100644 scenarios/order_show/request.mako create mode 100644 scenarios/order_update/definition.mako create mode 100644 scenarios/order_update/executable.py create mode 100644 scenarios/order_update/python.mako create mode 100644 scenarios/order_update/request.mako create mode 100644 scenarios/refund_create/definition.mako create mode 100644 scenarios/refund_create/executable.py create mode 100644 scenarios/refund_create/python.mako create mode 100644 scenarios/refund_create/request.mako create mode 100644 scenarios/refund_list/definition.mako create mode 100644 scenarios/refund_list/executable.py create mode 100644 scenarios/refund_list/python.mako create mode 100644 scenarios/refund_list/request.mako create mode 100644 scenarios/refund_show/definition.mako create mode 100644 scenarios/refund_show/executable.py create mode 100644 scenarios/refund_show/python.mako create mode 100644 scenarios/refund_show/request.mako create mode 100644 scenarios/refund_update/definition.mako create mode 100644 scenarios/refund_update/executable.py create mode 100644 scenarios/refund_update/python.mako create mode 100644 scenarios/refund_update/request.mako create mode 100644 scenarios/reversal_create/definition.mako create mode 100644 scenarios/reversal_create/executable.py create mode 100644 scenarios/reversal_create/python.mako create mode 100644 scenarios/reversal_create/request.mako create mode 100644 scenarios/reversal_list/definition.mako create mode 100644 scenarios/reversal_list/executable.py create mode 100644 scenarios/reversal_list/python.mako create mode 100644 scenarios/reversal_list/request.mako create mode 100644 scenarios/reversal_show/definition.mako create mode 100644 scenarios/reversal_show/executable.py create mode 100644 scenarios/reversal_show/python.mako create mode 100644 scenarios/reversal_show/request.mako create mode 100644 scenarios/reversal_update/definition.mako create mode 100644 scenarios/reversal_update/executable.py create mode 100644 scenarios/reversal_update/python.mako create mode 100644 scenarios/reversal_update/request.mako diff --git a/scenario.cache b/scenario.cache index 8f3ce7c..0cb2927 100644 --- a/scenario.cache +++ b/scenario.cache @@ -1,78 +1,31 @@ { - "account_add_card": { + "accept_type": "application/vnd.api+json;revision=1.1", + "api_key": "ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl", + "api_key_create": { "request": { - "payload": { - "card_uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/cards/CC4Zor9L2DEKXy0LJJ8PtkMM" - }, - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3" - }, - "response": "{\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/cards\", \n \"created_at\": \"2013-11-14T16:20:11.280063Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/credits\", \n \"customer_uri\": \"/v1/customers/CU4WT2fC14gzGQIEcMKs5gm3\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/holds\", \n \"id\": \"CU4WT2fC14gzGQIEcMKs5gm3\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3\"\n}" - }, - "account_create": { - "request": { - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts" + "uri": "/api_keys" }, - "response": "{\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4S5l8l03hjVGvqrJNY0mqA/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4S5l8l03hjVGvqrJNY0mqA/cards\", \n \"created_at\": \"2013-11-14T16:20:07.018999Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4S5l8l03hjVGvqrJNY0mqA/credits\", \n \"customer_uri\": \"/v1/customers/CU4S5l8l03hjVGvqrJNY0mqA\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4S5l8l03hjVGvqrJNY0mqA/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4S5l8l03hjVGvqrJNY0mqA/holds\", \n \"id\": \"CU4S5l8l03hjVGvqrJNY0mqA\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4S5l8l03hjVGvqrJNY0mqA/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4S5l8l03hjVGvqrJNY0mqA/reversals\", \n \"roles\": [], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4S5l8l03hjVGvqrJNY0mqA/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4S5l8l03hjVGvqrJNY0mqA\"\n}" + "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-01-07T18:30:28.767596Z\", \n \"href\": \"/api_keys/AK66nZtNPbPw0Vnt3tmdVXpC\", \n \"id\": \"AK66nZtNPbPw0Vnt3tmdVXpC\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-lf7B2arRoV5PFcQaWli91HHZerxGsmUj\"\n }\n ], \n \"links\": {}\n}" }, - "account_create_buyer": { + "api_key_delete": { "request": { - "payload": { - "card_uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/cards/CC4WeeR0OUiQh9vvqNQvMl1o" - }, - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts" - }, - "response": "{\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/cards\", \n \"created_at\": \"2013-11-14T16:20:11.280063Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/credits\", \n \"customer_uri\": \"/v1/customers/CU4WT2fC14gzGQIEcMKs5gm3\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/holds\", \n \"id\": \"CU4WT2fC14gzGQIEcMKs5gm3\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3\"\n}" - }, - "account_create_merchant": { - "request": { - "payload": { - "bank_account_uri": "/v1/bank_accounts/BA53NVwHAXYx7fo98SdK41dg" - }, - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3" - }, - "response": "{\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/cards\", \n \"created_at\": \"2013-11-14T16:20:11.280063Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/credits\", \n \"customer_uri\": \"/v1/customers/CU4WT2fC14gzGQIEcMKs5gm3\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/holds\", \n \"id\": \"CU4WT2fC14gzGQIEcMKs5gm3\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3\"\n}" + "uri": "/api_keys/AK66nZtNPbPw0Vnt3tmdVXpC" + } }, - "account_underwrite_business": { + "api_key_list": { "request": { - "accounts_uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts", - "payload": { - "merchant": { - "name": "Skripts4Kids", - "person": { - "dob": "1989-12", - "name": "Timmy Q. CopyPasta", - "phone_number": "+14089999999", - "postal_code": "94110", - "street_address": "121 Skriptkid Row" - }, - "phone_number": "+140899188155", - "postal_code": "91111", - "street_address": "555 VoidMain Road", - "tax_id": "211111111", - "type": "business" - } - } + "uri": "/api_keys" }, - "response": "{\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU5brkNgZQFhaaVoBuaGTGm2/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU5brkNgZQFhaaVoBuaGTGm2/cards\", \n \"created_at\": \"2013-11-14T16:20:24.232747Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU5brkNgZQFhaaVoBuaGTGm2/credits\", \n \"customer_uri\": \"/v1/customers/CU5brkNgZQFhaaVoBuaGTGm2\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU5brkNgZQFhaaVoBuaGTGm2/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU5brkNgZQFhaaVoBuaGTGm2/holds\", \n \"id\": \"CU5brkNgZQFhaaVoBuaGTGm2\", \n \"meta\": {}, \n \"name\": \"Timmy Q. CopyPasta\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU5brkNgZQFhaaVoBuaGTGm2/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU5brkNgZQFhaaVoBuaGTGm2/reversals\", \n \"roles\": [\n \"merchant\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU5brkNgZQFhaaVoBuaGTGm2/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU5brkNgZQFhaaVoBuaGTGm2\"\n}" + "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-01-07T18:30:28.767596Z\", \n \"href\": \"/api_keys/AK66nZtNPbPw0Vnt3tmdVXpC\", \n \"id\": \"AK66nZtNPbPw0Vnt3tmdVXpC\", \n \"links\": {}, \n \"meta\": {}\n }, \n {\n \"created_at\": \"2014-01-07T18:30:22.469779Z\", \n \"href\": \"/api_keys/AK5ZiXwzzvMbIJDGff1JTnOw\", \n \"id\": \"AK5ZiXwzzvMbIJDGff1JTnOw\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl\"\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}" }, - "account_underwrite_person": { + "api_key_show": { "request": { - "accounts_uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts", - "payload": { - "merchant": { - "dob": "1989-12", - "name": "Timmy Q. CopyPasta", - "phone_number": "+14089999999", - "postal_code": "94110", - "street_address": "121 Skriptkid Row", - "type": "person" - } - } + "uri": "/api_keys/AK66nZtNPbPw0Vnt3tmdVXpC" }, - "response": "{\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU58OQXiQbnSls6eAaDfeLzp/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU58OQXiQbnSls6eAaDfeLzp/cards\", \n \"created_at\": \"2013-11-14T16:20:21.889378Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU58OQXiQbnSls6eAaDfeLzp/credits\", \n \"customer_uri\": \"/v1/customers/CU58OQXiQbnSls6eAaDfeLzp\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU58OQXiQbnSls6eAaDfeLzp/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU58OQXiQbnSls6eAaDfeLzp/holds\", \n \"id\": \"CU58OQXiQbnSls6eAaDfeLzp\", \n \"meta\": {}, \n \"name\": \"Timmy Q. CopyPasta\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU58OQXiQbnSls6eAaDfeLzp/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU58OQXiQbnSls6eAaDfeLzp/reversals\", \n \"roles\": [\n \"merchant\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU58OQXiQbnSls6eAaDfeLzp/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU58OQXiQbnSls6eAaDfeLzp\"\n}" + "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-01-07T18:30:28.767596Z\", \n \"href\": \"/api_keys/AK66nZtNPbPw0Vnt3tmdVXpC\", \n \"id\": \"AK66nZtNPbPw0Vnt3tmdVXpC\", \n \"links\": {}, \n \"meta\": {}\n }\n ], \n \"links\": {}\n}" }, - "api_key": "ak-test-2KZfoLyijij3Y6OyhDAvFRF9tXzelBLpD", "api_location": "https://api.balancedpayments.com", + "api_rev": "rev1", "bank_account_create": { "request": { "payload": { @@ -81,333 +34,422 @@ "routing_number": "121000358", "type": "checking" }, - "uri": "/v1/bank_accounts" + "uri": "/bank_accounts" }, - "response": "{\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-11-14T16:21:31.019599Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA6oxYWJXxeM63vMorgtSIhI/credits\", \n \"customer\": null, \n \"debits_uri\": \"/v1/bank_accounts/BA6oxYWJXxeM63vMorgtSIhI/debits\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"id\": \"BA6oxYWJXxeM63vMorgtSIhI\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA6oxYWJXxeM63vMorgtSIhI\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA6oxYWJXxeM63vMorgtSIhI/verifications\"\n}" + "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-01-07T18:30:40.393633Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS\", \n \"id\": \"BA6jsxwAXYrt4sLjYUw1a1gS\", \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-07T18:30:40.393636Z\"\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_delete": { + "bank_account_credit": { "request": { - "uri": "/v1/bank_accounts/BA5uvDqG8xk4bGmwX3JTbIee" - } + "bank_account_href": "/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS", + "payload": { + "amount": 2000 + }, + "uri": "/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS/credits" + }, + "response": "{\n \"credits\": [\n {\n \"amount\": 2000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-07T18:31:57.083009Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR7HIdtAm4eFX1weOgiaRGQM\", \n \"id\": \"CR7HIdtAm4eFX1weOgiaRGQM\", \n \"links\": {\n \"customer\": null, \n \"destination\": \"BA6jsxwAXYrt4sLjYUw1a1gS\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR520-035-3723\", \n \"updated_at\": \"2014-01-07T18:31:57.484537Z\"\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_invalid_routing_number": { + "bank_account_debit": { "request": { + "bank_account_href": "/bank_accounts/BA6b9fFSyfhg5xK51iCmPjNZ/debits", "payload": { - "account_number": "9900000001", - "name": "Johann Bernoulli", - "routing_number": "100000007", - "type": "checking" + "amount": 5000, + "appears_on_statement_as": "Statement text", + "description": "Some descriptive text for the debit in the dashboard" }, - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/bank_accounts" + "uri": "/bank_accounts/BA6b9fFSyfhg5xK51iCmPjNZ/debits" }, - "response": "{\n \"_uris\": {}, \n \"additional\": null, \n \"category_code\": \"invalid-routing-number\", \n \"category_type\": \"request\", \n \"description\": \"Routing number is invalid. Your request id is OHMea3158084d4c11e38a5302a1fe52a36c.\", \n \"extras\": {\n \"routing_number\": \"Routing number is invalid.\"\n }, \n \"request_id\": \"OHMea3158084d4c11e38a5302a1fe52a36c\", \n \"status\": \"Bad Request\", \n \"status_code\": 400\n}" + "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-07T18:30:46.833042Z\", \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/WD6qHGmsgCu9ynchKt6YvscM\", \n \"id\": \"WD6qHGmsgCu9ynchKt6YvscM\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"BA6b9fFSyfhg5xK51iCmPjNZ\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W773-596-6299\", \n \"updated_at\": \"2014-01-07T18:30:47.357301Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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/BA6jsxwAXYrt4sLjYUw1a1gS" + } }, "bank_account_list": { "request": { - "uri": "/v1/bank_accounts" + "uri": "/bank_accounts" }, - "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/bank_accounts?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-11-14T16:20:46.183358Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW/credits\", \n \"customer\": null, \n \"debits_uri\": \"/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW/debits\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"id\": \"BA5A8YcoSCEPQyCaPCTvmFnW\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW/verifications\"\n }, \n {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"verification_uri\": {\n \"_type\": \"bank_account_authentication\", \n \"key\": \"verification\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"bank_name\": \"SAN MATEO CREDIT UNION\", \n \"can_debit\": true, \n \"created_at\": \"2013-11-14T16:20:41.178834Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA5uvDqG8xk4bGmwX3JTbIee/credits\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"destination_uri\": {\n \"_type\": \"bank_account\", \n \"key\": \"destination\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"bank_account\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {\n \"country_code\": \"USA\"\n }, \n \"bank_accounts_uri\": \"/v1/customers/CU5uQkLqcmDGZtSV5BITGri0/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU5uQkLqcmDGZtSV5BITGri0/cards\", \n \"created_at\": \"2013-11-14T16:20:41.479001Z\", \n \"credits_uri\": \"/v1/customers/CU5uQkLqcmDGZtSV5BITGri0/credits\", \n \"debits_uri\": \"/v1/customers/CU5uQkLqcmDGZtSV5BITGri0/debits\", \n \"destination_uri\": \"/v1/customers/CU5uQkLqcmDGZtSV5BITGri0/bank_accounts/BA5uvDqG8xk4bGmwX3JTbIee\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU5uQkLqcmDGZtSV5BITGri0/holds\", \n \"id\": \"CU5uQkLqcmDGZtSV5BITGri0\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU5uQkLqcmDGZtSV5BITGri0/refunds\", \n \"reversals_uri\": \"/v1/customers/CU5uQkLqcmDGZtSV5BITGri0/reversals\", \n \"source_uri\": \"/v1/customers/CU5uQkLqcmDGZtSV5BITGri0/bank_accounts/BA5uvDqG8xk4bGmwX3JTbIee\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU5uQkLqcmDGZtSV5BITGri0/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU5uQkLqcmDGZtSV5BITGri0\"\n }, \n \"debits_uri\": \"/v1/bank_accounts/BA5uvDqG8xk4bGmwX3JTbIee/debits\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"id\": \"BA5uvDqG8xk4bGmwX3JTbIee\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"321174851\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA5uvDqG8xk4bGmwX3JTbIee\", \n \"verification_uri\": \"/v1/bank_accounts/BA5uvDqG8xk4bGmwX3JTbIee/verifications/BZ5wpXXDTZxqLCHiX6V4XXvA\", \n \"verifications_uri\": \"/v1/bank_accounts/BA5uvDqG8xk4bGmwX3JTbIee/verifications\"\n }\n ], \n \"last_uri\": \"/v1/bank_accounts?limit=2&offset=4\", \n \"limit\": 2, \n \"next_uri\": \"/v1/bank_accounts?limit=2&offset=2\", \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 6, \n \"uri\": \"/v1/bank_accounts?limit=2&offset=0\"\n}" + "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-01-07T18:30:40.393633Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS\", \n \"id\": \"BA6jsxwAXYrt4sLjYUw1a1gS\", \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-07T18:30:43.034793Z\"\n }, \n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-01-07T18:30:33.019771Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA6b9fFSyfhg5xK51iCmPjNZ\", \n \"id\": \"BA6b9fFSyfhg5xK51iCmPjNZ\", \n \"links\": {\n \"bank_account_verification\": \"BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-01-07T18:30:38.717066Z\"\n }, \n {\n \"account_number\": \"xxxxxxxxxxx5555\", \n \"account_type\": \"checking\", \n \"bank_name\": \"WELLS FARGO BANK NA\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-01-07T18:30:23.358044Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA601YfDWXDusJexVptKWNG8\", \n \"id\": \"BA601YfDWXDusJexVptKWNG8\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU5ZMOZDIYeIFMVbi9Zgavm8\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-01-07T18:30:23.358047Z\"\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": "/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW" + "uri": "/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS" }, - "response": "{\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-11-14T16:20:46.183358Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW/credits\", \n \"customer\": null, \n \"debits_uri\": \"/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW/debits\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"id\": \"BA5A8YcoSCEPQyCaPCTvmFnW\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW/verifications\"\n}" + "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-01-07T18:30:40.393633Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS\", \n \"id\": \"BA6jsxwAXYrt4sLjYUw1a1gS\", \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-07T18:30:40.393636Z\"\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/BA6jsxwAXYrt4sLjYUw1a1gS" + }, + "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-01-07T18:30:40.393633Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS\", \n \"id\": \"BA6jsxwAXYrt4sLjYUw1a1gS\", \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-07T18:30:43.034793Z\"\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": "/v1/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO", - "uri": "/v1/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO/verifications" + "bank_account_uri": "/bank_accounts/BA6b9fFSyfhg5xK51iCmPjNZ", + "uri": "/bank_accounts/BA6b9fFSyfhg5xK51iCmPjNZ/verifications" }, - "response": "{\n \"_type\": \"bank_account_authentication\", \n \"_uris\": {}, \n \"attempts\": 0, \n \"created_at\": \"2013-11-14T16:20:32.104822Z\", \n \"id\": \"BZ5kihRbLIgd64iMWFkWesdw\", \n \"remaining_attempts\": 3, \n \"state\": \"deposit_succeeded\", \n \"updated_at\": \"2013-11-14T16:20:32.600599Z\", \n \"uri\": \"/v1/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO/verifications/BZ5kihRbLIgd64iMWFkWesdw\"\n}" + "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-07T18:30:34.329884Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"id\": \"BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"links\": {\n \"bank_account\": \"BA6b9fFSyfhg5xK51iCmPjNZ\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-07T18:30:34.996365Z\", \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": { - "bank_account_uri": "/v1/bank_accounts/BA5nW8SMsXjaU3GVWdhR9d60", - "uri": "/v1/bank_accounts/BA5nW8SMsXjaU3GVWdhR9d60/verifications/BZ5rcuNvebC49kZyTGAaJu2A" + "uri": "/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg" }, - "response": "{\n \"_type\": \"bank_account_authentication\", \n \"_uris\": {}, \n \"attempts\": 0, \n \"created_at\": \"2013-11-14T16:20:38.229597Z\", \n \"id\": \"BZ5rcuNvebC49kZyTGAaJu2A\", \n \"remaining_attempts\": 3, \n \"state\": \"deposit_succeeded\", \n \"updated_at\": \"2013-11-14T16:20:38.546816Z\", \n \"uri\": \"/v1/bank_accounts/BA5nW8SMsXjaU3GVWdhR9d60/verifications/BZ5rcuNvebC49kZyTGAaJu2A\"\n}" + "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-07T18:30:34.329884Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"id\": \"BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"links\": {\n \"bank_account\": \"BA6b9fFSyfhg5xK51iCmPjNZ\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-07T18:30:34.996365Z\", \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": { - "bank_account_uri": "/v1/bank_accounts/BA5uvDqG8xk4bGmwX3JTbIee", "payload": { "amount_1": 1, "amount_2": 1 }, - "uri": "/v1/bank_accounts/BA5uvDqG8xk4bGmwX3JTbIee/verifications/BZ5wpXXDTZxqLCHiX6V4XXvA" + "uri": "/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg" }, - "response": "{\n \"_type\": \"bank_account_authentication\", \n \"_uris\": {}, \n \"attempts\": 1, \n \"created_at\": \"2013-11-14T16:20:42.870606Z\", \n \"id\": \"BZ5wpXXDTZxqLCHiX6V4XXvA\", \n \"remaining_attempts\": 2, \n \"state\": \"verified\", \n \"updated_at\": \"2013-11-14T16:20:44.324057Z\", \n \"uri\": \"/v1/bank_accounts/BA5uvDqG8xk4bGmwX3JTbIee/verifications/BZ5wpXXDTZxqLCHiX6V4XXvA\"\n}" + "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-07T18:30:34.329884Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"id\": \"BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"links\": {\n \"bank_account\": \"BA6b9fFSyfhg5xK51iCmPjNZ\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-07T18:30:38.719502Z\", \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": { "url": "http://www.example.com/callback" }, - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/callbacks" + "uri": "/callbacks" }, - "response": "{\n \"_type\": \"callback\", \n \"_uris\": {}, \n \"id\": \"CB5GFgGfugkhbKueLUJL6hAa\", \n \"method\": \"post\", \n \"uri\": \"/v1/callbacks/CB5GFgGfugkhbKueLUJL6hAa\", \n \"url\": \"http://www.example.com/callback\"\n}" + "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB6sQjFwENynxbStHgUUWign\", \n \"id\": \"CB6sQjFwENynxbStHgUUWign\", \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": "/v1/callbacks/CB5GFgGfugkhbKueLUJL6hAa" + "uri": "/callbacks/CB6sQjFwENynxbStHgUUWign" } }, "callback_list": { "request": { - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/callbacks" + "uri": "/callbacks" }, - "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/callbacks?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"callback\", \n \"_uris\": {}, \n \"id\": \"CB5GFgGfugkhbKueLUJL6hAa\", \n \"method\": \"post\", \n \"uri\": \"/v1/callbacks/CB5GFgGfugkhbKueLUJL6hAa\", \n \"url\": \"http://www.example.com/callback\"\n }\n ], \n \"last_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/callbacks?limit=2&offset=0\", \n \"limit\": 2, \n \"next_uri\": null, \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 1, \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/callbacks?limit=2&offset=0\"\n}" + "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB6sQjFwENynxbStHgUUWign\", \n \"id\": \"CB6sQjFwENynxbStHgUUWign\", \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": "/v1/callbacks/CB5GFgGfugkhbKueLUJL6hAa" - }, - "response": "{\n \"_type\": \"callback\", \n \"_uris\": {}, \n \"id\": \"CB5GFgGfugkhbKueLUJL6hAa\", \n \"method\": \"post\", \n \"uri\": \"/v1/callbacks/CB5GFgGfugkhbKueLUJL6hAa\", \n \"url\": \"http://www.example.com/callback\"\n}" + "uri": "/callbacks/CB6sQjFwENynxbStHgUUWign" + }, + "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB6sQjFwENynxbStHgUUWign\", \n \"id\": \"CB6sQjFwENynxbStHgUUWign\", \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": "", + "line2": null, + "postal_code": "10023", + "state": "CA" + }, + "avs_postal_match": "yes", + "avs_result": "Postal code matches, but street address not verified.", + "avs_street_match": "yes", + "brand": "Visa", + "created_at": "2014-01-07T18:30:25.673599Z", + "cvv": null, + "cvv_match": null, + "cvv_result": null, + "expiration_month": 4, + "expiration_year": 2016, + "fingerprint": "979a26c05f2fb1c7ae38656312b176da2c9be1d938d442040bc79539caac6c0d", + "href": "/cards/CC62Tbejbh69uIgWGddr944o", + "id": "CC62Tbejbh69uIgWGddr944o", + "is_verified": true, + "links": { + "customer": "CU60ZRsWjBEcimeAsXeaYJWC" + }, + "meta": { + "client_ip_address": "107.20.69.114" + }, + "name": "Benny Riemann", + "number": "xxxxxxxxxxxx1111", + "updated_at": "2014-01-07T18:30:25.673602Z" }, "card_create": { "request": { "payload": { - "card_number": "5105105105105100", "expiration_month": "12", "expiration_year": "2020", + "number": "5105105105105100", "security_code": "123" }, - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/cards" + "uri": "/cards" + }, + "response": "{\n \"cards\": [\n {\n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-07T18:31:06.535568Z\", \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/CC6MQlq1xIGRLEMBWQcD4Dcr\", \n \"id\": \"CC6MQlq1xIGRLEMBWQcD4Dcr\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {\n \"client_ip_address\": \"54.211.86.23\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-07T18:31:06.535571Z\"\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/CC6MQlq1xIGRLEMBWQcD4Dcr", + "payload": { + "amount": 5000, + "appears_on_statement_as": "Statement text", + "description": "Some descriptive text for the debit in the dashboard" + }, + "uri": "/cards/CC6MQlq1xIGRLEMBWQcD4Dcr/debits" }, - "response": "{\n \"_type\": \"card\", \n \"_uris\": {}, \n \"account\": null, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-11-14T16:50:44.333724Z\", \n \"customer\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC72hXVwWbCJsozvJoRELzIc\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"unknown\", \n \"security_code_check\": \"passed\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/cards/CC72hXVwWbCJsozvJoRELzIc\"\n}" + "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-07T18:31:49.211352Z\", \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/WD7yQnigdgrO2Bkc7vLIdkeW\", \n \"id\": \"WD7yQnigdgrO2Bkc7vLIdkeW\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"CC6MQlq1xIGRLEMBWQcD4Dcr\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W916-923-8871\", \n \"updated_at\": \"2014-01-07T18:31:50.106476Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/cards/CC5N3HHUDrAyvhNwQOoUd3UX" + "uri": "/cards/CC6MQlq1xIGRLEMBWQcD4Dcr" } }, - "card_id": "CC4MhLvXQPH3q8EAMDUKa57i", - "card_invalidate": { + "card_hold_capture": { "request": { + "card_hold_href": "/card_holds/HL6za54jlFLUAvEqDEULOwXC", "payload": { - "is_valid": "false" + "appears_on_statement_as": "ShowsUpOnStmt", + "description": "Some descriptive text for the debit in the dashboard" }, - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/cards/CC5N3HHUDrAyvhNwQOoUd3UX" + "uri": "/card_holds/HL6za54jlFLUAvEqDEULOwXC/debits" }, - "response": "{\n \"_type\": \"card\", \n \"_uris\": {}, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"last_four\": \"5100\", \n \"meta\": {\n \"facebook.user_id\": \"0192837465\", \n \"my-own-customer-id\": \"12345\", \n \"twitter.id\": \"1234987650\"\n }, \n \"name\": null\n}" + "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-01-07T18:31:00.137405Z\", \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/WD6FFij85tByvU4xTL3pctOW\", \n \"id\": \"WD6FFij85tByvU4xTL3pctOW\", \n \"links\": {\n \"customer\": \"CU5ZMOZDIYeIFMVbi9Zgavm8\", \n \"order\": null, \n \"source\": \"CC6y7qpkXsrutTV0z1p4SbhI\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W801-499-4652\", \n \"updated_at\": \"2014-01-07T18:31:00.872816Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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_list": { + "card_hold_create": { "request": { - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/cards" + "card_href": "/cards/CC6y7qpkXsrutTV0z1p4SbhI", + "payload": { + "amount": 5000, + "description": "Some descriptive text for the debit in the dashboard" + }, + "uri": "/cards/CC6y7qpkXsrutTV0z1p4SbhI/card_holds" }, - "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/cards?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"card\", \n \"_uris\": {}, \n \"account\": null, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-11-14T16:20:57.668888Z\", \n \"customer\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC5N3HHUDrAyvhNwQOoUd3UX\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"unknown\", \n \"security_code_check\": \"passed\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/cards/CC5N3HHUDrAyvhNwQOoUd3UX\"\n }, \n {\n \"_type\": \"card\", \n \"_uris\": {}, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/cards\", \n \"created_at\": \"2013-11-14T16:20:11.280063Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/credits\", \n \"customer_uri\": \"/v1/customers/CU4WT2fC14gzGQIEcMKs5gm3\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/holds\", \n \"id\": \"CU4WT2fC14gzGQIEcMKs5gm3\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3\"\n }, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-11-14T16:20:13.522503Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"destination_uri\": {\n \"_type\": \"bank_account\", \n \"key\": \"destination\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU4WT2fC14gzGQIEcMKs5gm3/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4WT2fC14gzGQIEcMKs5gm3/cards\", \n \"created_at\": \"2013-11-14T16:20:11.280063Z\", \n \"credits_uri\": \"/v1/customers/CU4WT2fC14gzGQIEcMKs5gm3/credits\", \n \"debits_uri\": \"/v1/customers/CU4WT2fC14gzGQIEcMKs5gm3/debits\", \n \"destination_uri\": \"/v1/customers/CU4WT2fC14gzGQIEcMKs5gm3/bank_accounts/BA53NVwHAXYx7fo98SdK41dg\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4WT2fC14gzGQIEcMKs5gm3/holds\", \n \"id\": \"CU4WT2fC14gzGQIEcMKs5gm3\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4WT2fC14gzGQIEcMKs5gm3/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4WT2fC14gzGQIEcMKs5gm3/reversals\", \n \"source_uri\": \"/v1/customers/CU4WT2fC14gzGQIEcMKs5gm3/cards/CC4Zor9L2DEKXy0LJJ8PtkMM\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4WT2fC14gzGQIEcMKs5gm3/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4WT2fC14gzGQIEcMKs5gm3\"\n }, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC4Zor9L2DEKXy0LJJ8PtkMM\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"unknown\", \n \"security_code_check\": \"passed\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4WT2fC14gzGQIEcMKs5gm3/cards/CC4Zor9L2DEKXy0LJJ8PtkMM\"\n }\n ], \n \"last_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/cards?limit=2&offset=2\", \n \"limit\": 2, \n \"next_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/cards?limit=2&offset=2\", \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 4, \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/cards?limit=2&offset=0\"\n}" + "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-07T18:31:02.416767Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-01-14T18:31:02.751345Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL6IeshtYufyq1dm9nnEdRHA\", \n \"id\": \"HL6IeshtYufyq1dm9nnEdRHA\", \n \"links\": {\n \"card\": \"CC6y7qpkXsrutTV0z1p4SbhI\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL124-378-2611\", \n \"updated_at\": \"2014-01-07T18:31:03.012916Z\"\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}" }, - "card_show": { + "card_hold_list": { "request": { - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/cards/CC5N3HHUDrAyvhNwQOoUd3UX" + "uri": "/card_holds" }, - "response": "{\n \"_type\": \"card\", \n \"_uris\": {}, \n \"account\": null, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-11-14T16:20:57.668888Z\", \n \"customer\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC5N3HHUDrAyvhNwQOoUd3UX\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"unknown\", \n \"security_code_check\": \"passed\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/cards/CC5N3HHUDrAyvhNwQOoUd3UX\"\n}" + "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-07T18:30:54.350468Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"expires_at\": \"2014-01-14T18:30:54.467794Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL6za54jlFLUAvEqDEULOwXC\", \n \"id\": \"HL6za54jlFLUAvEqDEULOwXC\", \n \"links\": {\n \"card\": \"CC6y7qpkXsrutTV0z1p4SbhI\", \n \"debit\": null\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"transaction_number\": \"HL409-241-1136\", \n \"updated_at\": \"2014-01-07T18:30:57.288709Z\"\n }, \n {\n \"amount\": 10000000, \n \"created_at\": \"2014-01-07T18:30:26.659557Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-01-14T18:30:27.214669Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL640YgYWOkR1BGodbUFCFg4\", \n \"id\": \"HL640YgYWOkR1BGodbUFCFg4\", \n \"links\": {\n \"card\": \"CC62Tbejbh69uIgWGddr944o\", \n \"debit\": \"WD647OpNtyZGPHQ3bj0VRpUc\"\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL366-206-5236\", \n \"updated_at\": \"2014-01-07T18:30:28.093044Z\"\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}" }, - "card_update": { + "card_hold_show": { + "request": { + "uri": "/card_holds/HL6za54jlFLUAvEqDEULOwXC" + }, + "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-07T18:30:54.350468Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-01-14T18:30:54.467794Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL6za54jlFLUAvEqDEULOwXC\", \n \"id\": \"HL6za54jlFLUAvEqDEULOwXC\", \n \"links\": {\n \"card\": \"CC6y7qpkXsrutTV0z1p4SbhI\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL409-241-1136\", \n \"updated_at\": \"2014-01-07T18:30:54.596696Z\"\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}" + }, + "card_hold_update": { "request": { "payload": { + "description": "update this description", "meta": { - "facebook.user_id": "0192837465", - "my-own-customer-id": "12345", - "twitter.id": "1234987650" + "holding.for": "user1", + "meaningful.key": "some.value" } }, - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/cards/CC5N3HHUDrAyvhNwQOoUd3UX" - }, - "response": "{\n \"_type\": \"card\", \n \"_uris\": {}, \n \"account\": null, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-11-14T16:20:57.668888Z\", \n \"customer\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC5N3HHUDrAyvhNwQOoUd3UX\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {\n \"facebook.user_id\": \"0192837465\", \n \"my-own-customer-id\": \"12345\", \n \"twitter.id\": \"1234987650\"\n }, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"unknown\", \n \"security_code_check\": \"passed\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/cards/CC5N3HHUDrAyvhNwQOoUd3UX\"\n}" - }, - "card_uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/cards/CC4MhLvXQPH3q8EAMDUKa57i", - "credit_bank_account_list": { - "request": { - "id": "BA5A8YcoSCEPQyCaPCTvmFnW", - "uri": "/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW" + "uri": "/card_holds/HL6za54jlFLUAvEqDEULOwXC" }, - "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW/credits?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"credit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }\n }, \n \"amount\": 10000, \n \"appears_on_statement_as\": \"example.com\", \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-11-14T16:20:46.183358Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW/credits\", \n \"customer_uri\": null, \n \"debits_uri\": \"/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW/debits\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"id\": \"BA5A8YcoSCEPQyCaPCTvmFnW\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW/verifications\"\n }, \n \"created_at\": \"2013-11-14T16:21:10.756688Z\", \n \"description\": null, \n \"events_uri\": \"/v1/credits/CR61MbRIN0QG26HfN20Rbeb0/events\", \n \"id\": \"CR61MbRIN0QG26HfN20Rbeb0\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/credits/CR61MbRIN0QG26HfN20Rbeb0/reversals\", \n \"status\": \"paid\", \n \"uri\": \"/v1/credits/CR61MbRIN0QG26HfN20Rbeb0\"\n }\n ], \n \"last_uri\": \"/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW/credits?limit=2&offset=0\", \n \"limit\": 2, \n \"next_uri\": null, \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 1, \n \"uri\": \"/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW/credits?limit=2&offset=0\"\n}" + "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-07T18:30:54.350468Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"expires_at\": \"2014-01-14T18:30:54.467794Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL6za54jlFLUAvEqDEULOwXC\", \n \"id\": \"HL6za54jlFLUAvEqDEULOwXC\", \n \"links\": {\n \"card\": \"CC6y7qpkXsrutTV0z1p4SbhI\", \n \"debit\": null\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"transaction_number\": \"HL409-241-1136\", \n \"updated_at\": \"2014-01-07T18:30:57.288709Z\"\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}" }, - "credit_create_existing_bank_account": { + "card_hold_void": { "request": { - "id": "BA5A8YcoSCEPQyCaPCTvmFnW", "payload": { - "amount": 10000 + "is_void": "true" }, - "uri": "/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW" + "uri": "/card_holds/HL6IeshtYufyq1dm9nnEdRHA" }, - "response": "{\n \"_type\": \"credit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }\n }, \n \"amount\": 10000, \n \"appears_on_statement_as\": \"example.com\", \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-11-14T16:20:46.183358Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW/credits\", \n \"customer_uri\": null, \n \"debits_uri\": \"/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW/debits\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"id\": \"BA5A8YcoSCEPQyCaPCTvmFnW\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW/verifications\"\n }, \n \"created_at\": \"2013-11-14T16:21:10.756688Z\", \n \"description\": null, \n \"events_uri\": \"/v1/credits/CR61MbRIN0QG26HfN20Rbeb0/events\", \n \"id\": \"CR61MbRIN0QG26HfN20Rbeb0\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/credits/CR61MbRIN0QG26HfN20Rbeb0/reversals\", \n \"status\": \"paid\", \n \"uri\": \"/v1/credits/CR61MbRIN0QG26HfN20Rbeb0\"\n}" + "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-07T18:31:02.416767Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-01-14T18:31:02.751345Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL6IeshtYufyq1dm9nnEdRHA\", \n \"id\": \"HL6IeshtYufyq1dm9nnEdRHA\", \n \"links\": {\n \"card\": \"CC6y7qpkXsrutTV0z1p4SbhI\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL124-378-2611\", \n \"updated_at\": \"2014-01-07T18:31:03.684754Z\"\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}" }, - "credit_create_new_bank_account": { + "card_id": "CC62Tbejbh69uIgWGddr944o", + "card_list": { "request": { - "payload": { - "amount": 10000, - "bank_account": { - "account_number": "9900000001", - "name": "Johann Bernoulli", - "routing_number": "121000358", - "type": "checking" - } - }, - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/credits" + "uri": "/cards" }, - "response": "{\n \"_type\": \"credit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }\n }, \n \"account\": null, \n \"amount\": 10000, \n \"appears_on_statement_as\": \"example.com\", \n \"available_at\": null, \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {}, \n \"account_number\": \"xxxxxx0001\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\"\n }, \n \"created_at\": \"2013-11-14T16:21:08.065371Z\", \n \"customer\": null, \n \"description\": null, \n \"destination\": {\n \"_type\": \"bank_account\", \n \"_uris\": {}, \n \"account_number\": \"xxxxxx0001\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\"\n }, \n \"events_uri\": \"/v1/credits/CR5YK26rTyl5vlFK928nhxUI/events\", \n \"fee\": null, \n \"id\": \"CR5YK26rTyl5vlFK928nhxUI\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/credits/CR5YK26rTyl5vlFK928nhxUI/reversals\", \n \"state\": \"pending\", \n \"status\": \"pending\", \n \"transaction_number\": \"CR297-882-8786\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/credits/CR5YK26rTyl5vlFK928nhxUI\"\n}" + "response": "{\n \"cards\": [\n {\n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-07T18:31:06.535568Z\", \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/CC6MQlq1xIGRLEMBWQcD4Dcr\", \n \"id\": \"CC6MQlq1xIGRLEMBWQcD4Dcr\", \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-07T18:31:08.877871Z\"\n }, \n {\n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-07T18:30:53.438853Z\", \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/CC6y7qpkXsrutTV0z1p4SbhI\", \n \"id\": \"CC6y7qpkXsrutTV0z1p4SbhI\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU5ZMOZDIYeIFMVbi9Zgavm8\"\n }, \n \"meta\": {\n \"client_ip_address\": \"107.20.69.114\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-07T18:30:54.345648Z\"\n }, \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-01-07T18:30:25.673599Z\", \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/CC62Tbejbh69uIgWGddr944o\", \n \"id\": \"CC62Tbejbh69uIgWGddr944o\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU60ZRsWjBEcimeAsXeaYJWC\"\n }, \n \"meta\": {\n \"client_ip_address\": \"107.20.69.114\"\n }, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-01-07T18:30:25.673602Z\"\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}" }, - "credit_customer_list": { + "card_show": { "request": { - "customer_uri": "/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo", - "payload": { - "amount": 100 - }, - "uri": "/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/credits" + "uri": "/cards/CC6MQlq1xIGRLEMBWQcD4Dcr" }, - "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/credits?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"credit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }\n }, \n \"amount\": 100, \n \"appears_on_statement_as\": \"example.com\", \n \"available_at\": \"2013-11-14T16:21:18.584003Z\", \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"verification_uri\": {\n \"_type\": \"bank_account_authentication\", \n \"key\": \"verification\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"bank_code\": \"121000358\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-11-14T16:20:28.771031Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO/credits\", \n \"customer_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo\", \n \"debits_uri\": \"/v1/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO/debits\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"id\": \"BA5gy1b8X8dIGaBWFuoWvkxO\", \n \"is_valid\": true, \n \"last_four\": \"0001\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO\", \n \"verification_uri\": \"/v1/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO/verifications/BZ5kihRbLIgd64iMWFkWesdw\", \n \"verifications_uri\": \"/v1/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO/verifications\"\n }, \n \"created_at\": \"2013-11-14T16:21:18.267102Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"destination_uri\": {\n \"_type\": \"bank_account\", \n \"key\": \"destination\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/cards\", \n \"created_at\": \"2013-11-14T16:20:27.468419Z\", \n \"credits_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/credits\", \n \"debits_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/debits\", \n \"destination_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/holds\", \n \"id\": \"CU5f64LhFMO8cf7N1sQSRVOo\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/refunds\", \n \"reversals_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/reversals\", \n \"source_uri\": null, \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo\"\n }, \n \"description\": null, \n \"destination\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"verification_uri\": {\n \"_type\": \"bank_account_authentication\", \n \"key\": \"verification\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"bank_code\": \"121000358\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-11-14T16:20:28.771031Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO/credits\", \n \"customer_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo\", \n \"debits_uri\": \"/v1/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO/debits\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"id\": \"BA5gy1b8X8dIGaBWFuoWvkxO\", \n \"is_valid\": true, \n \"last_four\": \"0001\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO\", \n \"verification_uri\": \"/v1/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO/verifications/BZ5kihRbLIgd64iMWFkWesdw\", \n \"verifications_uri\": \"/v1/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO/verifications\"\n }, \n \"events_uri\": \"/v1/credits/CR6admOtZKuECF3I9UlCiWzm/events\", \n \"fee\": null, \n \"id\": \"CR6admOtZKuECF3I9UlCiWzm\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/credits/CR6admOtZKuECF3I9UlCiWzm/reversals\", \n \"state\": \"cleared\", \n \"status\": \"paid\", \n \"transaction_number\": \"CR004-468-9882\", \n \"uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/credits/CR6admOtZKuECF3I9UlCiWzm\"\n }\n ], \n \"last_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/credits?limit=2&offset=0\", \n \"limit\": 2, \n \"next_uri\": null, \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 1, \n \"uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/credits?limit=2&offset=0\"\n}" + "response": "{\n \"cards\": [\n {\n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-07T18:31:06.535568Z\", \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/CC6MQlq1xIGRLEMBWQcD4Dcr\", \n \"id\": \"CC6MQlq1xIGRLEMBWQcD4Dcr\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {\n \"client_ip_address\": \"54.211.86.23\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-07T18:31:06.535571Z\"\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}" }, - "credit_failed_state": { + "card_update": { "request": { "payload": { - "amount": 10000, - "bank_account": { - "account_number": "9900000004", - "name": "Johann Bernoulli", - "routing_number": "121000358", - "type": "checking" + "meta": { + "facebook.user_id": "0192837465", + "my-own-customer-id": "12345", + "twitter.id": "1234987650" } }, - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/credits" + "uri": "/cards/CC6MQlq1xIGRLEMBWQcD4Dcr" }, - "response": "{\n \"_type\": \"credit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }\n }, \n \"account\": null, \n \"amount\": 10000, \n \"appears_on_statement_as\": \"example.com\", \n \"available_at\": \"2013-11-14T16:50:56.446903Z\", \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {}, \n \"account_number\": \"xxxxxx0004\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"fingerprint\": \"67GbCVK8LlYAZ13WbmDQT9_fd\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\"\n }, \n \"created_at\": \"2013-11-14T16:50:56.132757Z\", \n \"customer\": null, \n \"description\": null, \n \"destination\": {\n \"_type\": \"bank_account\", \n \"_uris\": {}, \n \"account_number\": \"xxxxxx0004\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"fingerprint\": \"67GbCVK8LlYAZ13WbmDQT9_fd\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\"\n }, \n \"events_uri\": \"/v1/credits/CR7fyJUrLr9NSnvr2gt8CVra/events\", \n \"fee\": null, \n \"id\": \"CR7fyJUrLr9NSnvr2gt8CVra\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/credits/CR7fyJUrLr9NSnvr2gt8CVra/reversals\", \n \"state\": \"rejected\", \n \"status\": \"failed\", \n \"transaction_number\": \"CR468-698-5178\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/credits/CR7fyJUrLr9NSnvr2gt8CVra\"\n}" + "response": "{\n \"cards\": [\n {\n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-07T18:31:06.535568Z\", \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/CC6MQlq1xIGRLEMBWQcD4Dcr\", \n \"id\": \"CC6MQlq1xIGRLEMBWQcD4Dcr\", \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-07T18:31:08.877871Z\"\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/CC62Tbejbh69uIgWGddr944o", + "cards_uri": "/customers/CU60ZRsWjBEcimeAsXeaYJWC/cards", "credit_list": { - "request": {}, - "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/credits?limit=10&offset=0\", \n \"items\": [\n {\n \"_type\": \"credit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }\n }, \n \"amount\": 10000, \n \"appears_on_statement_as\": \"example.com\", \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-11-14T16:20:46.183358Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW/credits\", \n \"customer_uri\": null, \n \"debits_uri\": \"/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW/debits\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"id\": \"BA5A8YcoSCEPQyCaPCTvmFnW\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA5A8YcoSCEPQyCaPCTvmFnW/verifications\"\n }, \n \"created_at\": \"2013-11-14T16:21:10.756688Z\", \n \"description\": null, \n \"events_uri\": \"/v1/credits/CR61MbRIN0QG26HfN20Rbeb0/events\", \n \"id\": \"CR61MbRIN0QG26HfN20Rbeb0\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/credits/CR61MbRIN0QG26HfN20Rbeb0/reversals\", \n \"status\": \"paid\", \n \"uri\": \"/v1/credits/CR61MbRIN0QG26HfN20Rbeb0\"\n }, \n {\n \"_type\": \"credit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }\n }, \n \"amount\": 10000, \n \"appears_on_statement_as\": \"example.com\", \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {}, \n \"account_number\": \"xxxxxx0001\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\"\n }, \n \"created_at\": \"2013-11-14T16:21:08.065371Z\", \n \"description\": null, \n \"events_uri\": \"/v1/credits/CR5YK26rTyl5vlFK928nhxUI/events\", \n \"id\": \"CR5YK26rTyl5vlFK928nhxUI\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/credits/CR5YK26rTyl5vlFK928nhxUI/reversals\", \n \"status\": \"pending\", \n \"uri\": \"/v1/credits/CR5YK26rTyl5vlFK928nhxUI\"\n }\n ], \n \"last_uri\": \"/v1/credits?limit=10&offset=0\", \n \"limit\": 10, \n \"next_uri\": null, \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 2, \n \"uri\": \"/v1/credits?limit=10&offset=0\"\n}" - }, - "credit_paid_state": { "request": { - "payload": { - "amount": 10000, - "bank_account": { - "account_number": "9900000003", - "name": "Johann Bernoulli", - "routing_number": "121000358", - "type": "checking" - } - }, - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/credits" + "uri": "/credits" }, - "response": "{\n \"_type\": \"credit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }\n }, \n \"account\": null, \n \"amount\": 10000, \n \"appears_on_statement_as\": \"example.com\", \n \"available_at\": \"2013-11-14T16:50:54.322108Z\", \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {}, \n \"account_number\": \"xxxxxx0003\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"fingerprint\": \"2voYRuvBfmMa5e098L7Rpd_pd\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\"\n }, \n \"created_at\": \"2013-11-14T16:50:53.934354Z\", \n \"customer\": null, \n \"description\": null, \n \"destination\": {\n \"_type\": \"bank_account\", \n \"_uris\": {}, \n \"account_number\": \"xxxxxx0003\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"fingerprint\": \"2voYRuvBfmMa5e098L7Rpd_pd\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\"\n }, \n \"events_uri\": \"/v1/credits/CR7d6lwEhZXyc0pQPtL1GRTa/events\", \n \"fee\": null, \n \"id\": \"CR7d6lwEhZXyc0pQPtL1GRTa\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/credits/CR7d6lwEhZXyc0pQPtL1GRTa/reversals\", \n \"state\": \"cleared\", \n \"status\": \"paid\", \n \"transaction_number\": \"CR454-866-1422\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/credits/CR7d6lwEhZXyc0pQPtL1GRTa\"\n}" + "response": "{\n \"credits\": [\n {\n \"amount\": 2000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-07T18:31:17.241661Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for credit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR6YTbjFOeoK78NdjiGsCgxo\", \n \"id\": \"CR6YTbjFOeoK78NdjiGsCgxo\", \n \"links\": {\n \"customer\": null, \n \"destination\": \"BA6jsxwAXYrt4sLjYUw1a1gS\", \n \"order\": null\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR803-383-3835\", \n \"updated_at\": \"2014-01-07T18:31:20.187169Z\"\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_pending_state": { + "credit_list_bank_account": { "request": { - "payload": { - "amount": 10000, - "bank_account": { - "account_number": "9900000000", - "name": "Johann Bernoulli", - "routing_number": "121000358", - "type": "checking" - } - }, - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/credits" + "bank_account_href": "/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS", + "uri": "/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS/credits" }, - "response": "{\n \"_type\": \"credit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }\n }, \n \"account\": null, \n \"amount\": 10000, \n \"appears_on_statement_as\": \"example.com\", \n \"available_at\": null, \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {}, \n \"account_number\": \"xxxxxx0000\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"fingerprint\": \"1Y1Iq2DIr9MUiY8poVBAlf_pn\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\"\n }, \n \"created_at\": \"2013-11-14T16:50:51.375357Z\", \n \"customer\": null, \n \"description\": null, \n \"destination\": {\n \"_type\": \"bank_account\", \n \"_uris\": {}, \n \"account_number\": \"xxxxxx0000\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"fingerprint\": \"1Y1Iq2DIr9MUiY8poVBAlf_pn\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\"\n }, \n \"events_uri\": \"/v1/credits/CR7acqrh4TCVQPYuNcfvLYHQ/events\", \n \"fee\": null, \n \"id\": \"CR7acqrh4TCVQPYuNcfvLYHQ\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/credits/CR7acqrh4TCVQPYuNcfvLYHQ/reversals\", \n \"state\": \"pending\", \n \"status\": \"pending\", \n \"transaction_number\": \"CR399-334-5977\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/credits/CR7acqrh4TCVQPYuNcfvLYHQ\"\n}" + "response": "{\n \"credits\": [\n {\n \"amount\": 2000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-07T18:31:17.241661Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for credit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR6YTbjFOeoK78NdjiGsCgxo\", \n \"id\": \"CR6YTbjFOeoK78NdjiGsCgxo\", \n \"links\": {\n \"customer\": null, \n \"destination\": \"BA6jsxwAXYrt4sLjYUw1a1gS\", \n \"order\": null\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR803-383-3835\", \n \"updated_at\": \"2014-01-07T18:31:20.187169Z\"\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\": \"/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS/credits?limit=10&offset=0\", \n \"href\": \"/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS/credits?limit=10&offset=0\", \n \"last\": \"/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS/credits?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }\n}" }, "credit_show": { "request": { - "id": "CR5YK26rTyl5vlFK928nhxUI", - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/credits/CR5YK26rTyl5vlFK928nhxUI" + "uri": "/credits/CR6YTbjFOeoK78NdjiGsCgxo" }, - "response": "{\n \"_type\": \"credit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }\n }, \n \"amount\": 10000, \n \"appears_on_statement_as\": \"example.com\", \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {}, \n \"account_number\": \"xxxxxx0001\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\"\n }, \n \"created_at\": \"2013-11-14T16:21:08.065371Z\", \n \"description\": null, \n \"events_uri\": \"/v1/credits/CR5YK26rTyl5vlFK928nhxUI/events\", \n \"id\": \"CR5YK26rTyl5vlFK928nhxUI\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/credits/CR5YK26rTyl5vlFK928nhxUI/reversals\", \n \"status\": \"pending\", \n \"uri\": \"/v1/credits/CR5YK26rTyl5vlFK928nhxUI\"\n}" + "response": "{\n \"credits\": [\n {\n \"amount\": 2000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-07T18:31:17.241661Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR6YTbjFOeoK78NdjiGsCgxo\", \n \"id\": \"CR6YTbjFOeoK78NdjiGsCgxo\", \n \"links\": {\n \"customer\": null, \n \"destination\": \"BA6jsxwAXYrt4sLjYUw1a1gS\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR803-383-3835\", \n \"updated_at\": \"2014-01-07T18:31:17.663477Z\"\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_add_bank_account": { + "credit_update": { "request": { - "bank_account_verifications_uri": "/v1/bank_accounts/BA6oxYWJXxeM63vMorgtSIhI/verifications", "payload": { - "bank_account_uri": "/v1/bank_accounts/BA6oxYWJXxeM63vMorgtSIhI" + "description": "New description for credit", + "meta": { + "anykey": "valuegoeshere", + "facebook.id": "1234567890" + } }, - "uri": "/v1/customers/CU6n0viWQoT86ttbkCsPgV0Y" - }, - "response": "{\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"destination_uri\": {\n \"_type\": \"bank_account\", \n \"key\": \"destination\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU6n0viWQoT86ttbkCsPgV0Y/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6n0viWQoT86ttbkCsPgV0Y/cards\", \n \"created_at\": \"2013-11-14T16:21:29.626033Z\", \n \"credits_uri\": \"/v1/customers/CU6n0viWQoT86ttbkCsPgV0Y/credits\", \n \"debits_uri\": \"/v1/customers/CU6n0viWQoT86ttbkCsPgV0Y/debits\", \n \"destination_uri\": \"/v1/customers/CU6n0viWQoT86ttbkCsPgV0Y/bank_accounts/BA6oxYWJXxeM63vMorgtSIhI\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6n0viWQoT86ttbkCsPgV0Y/holds\", \n \"id\": \"CU6n0viWQoT86ttbkCsPgV0Y\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6n0viWQoT86ttbkCsPgV0Y/refunds\", \n \"reversals_uri\": \"/v1/customers/CU6n0viWQoT86ttbkCsPgV0Y/reversals\", \n \"source_uri\": null, \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6n0viWQoT86ttbkCsPgV0Y/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6n0viWQoT86ttbkCsPgV0Y\"\n}" + "uri": "/credits/CR6YTbjFOeoK78NdjiGsCgxo" + }, + "response": "{\n \"credits\": [\n {\n \"amount\": 2000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-07T18:31:17.241661Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for credit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR6YTbjFOeoK78NdjiGsCgxo\", \n \"id\": \"CR6YTbjFOeoK78NdjiGsCgxo\", \n \"links\": {\n \"customer\": null, \n \"destination\": \"BA6jsxwAXYrt4sLjYUw1a1gS\", \n \"order\": null\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR803-383-3835\", \n \"updated_at\": \"2014-01-07T18:31:20.187169Z\"\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-01-07T18:30:23.987305Z", + "dob_month": null, + "dob_year": null, + "ein": null, + "email": null, + "href": "/customers/CU60ZRsWjBEcimeAsXeaYJWC", + "id": "CU60ZRsWjBEcimeAsXeaYJWC", + "links": { + "destination": null, + "source": null + }, + "merchant_status": "no-match", + "meta": {}, + "name": null, + "phone": null, + "ssn_last4": null, + "updated_at": "2014-01-07T18:30:24.209739Z" }, - "customer_add_card": { + "customer_add_bank_account": { "request": { - "card_uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/cards/CC72hXVwWbCJsozvJoRELzIc", + "customer_href": "/customers/CU7cMba1Uu9Dz2DHguDKcxao", "payload": { - "card_uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/cards/CC72hXVwWbCJsozvJoRELzIc" + "bank_account_href": "/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS" }, - "uri": "/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb" - }, - "response": "{\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/cards\", \n \"created_at\": \"2013-11-14T16:50:42.841208Z\", \n \"credits_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/credits\", \n \"debits_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/holds\", \n \"id\": \"CU70CIWA2NrZwwMQqjBuWFUb\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/refunds\", \n \"reversals_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/reversals\", \n \"source_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/cards/CC72hXVwWbCJsozvJoRELzIc\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb\"\n}" - }, - "customer_create": { - "request": { - "email": "william@example.com", - "name": "William Henry Cavendish III", - "uri": "/v1/customers" + "uri": "/customers/CU7cMba1Uu9Dz2DHguDKcxao" }, - "response": "{\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/cards\", \n \"created_at\": \"2013-11-14T16:50:42.841208Z\", \n \"credits_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/credits\", \n \"debits_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/holds\", \n \"id\": \"CU70CIWA2NrZwwMQqjBuWFUb\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/refunds\", \n \"reversals_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/reversals\", \n \"source_uri\": null, \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb\"\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-01-07T18:31:29.573857Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU7cMba1Uu9Dz2DHguDKcxao\", \n \"id\": \"CU7cMba1Uu9Dz2DHguDKcxao\", \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-07T18:31:30.056892Z\"\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}" }, - "customer_create_debit": { + "customer_add_card": { "request": { - "customer_uri": "/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS", "payload": { - "amount": 5000, - "appears_on_statement_as": "Statement text", - "description": "Some descriptive text for the debit in the dashboard" + "card_href": "/cards/CC6MQlq1xIGRLEMBWQcD4Dcr" }, - "uri": "/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/debits" + "uri": "/customers/CU73cQkqN6IUi8D4qBEsOPK" }, - "response": "{\n \"_type\": \"debit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-11-14T16:21:40.856280Z\", \n \"created_at\": \"2013-11-14T16:21:40.047691Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/cards\", \n \"created_at\": \"2013-11-14T16:21:37.144218Z\", \n \"credits_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/credits\", \n \"debits_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/holds\", \n \"id\": \"CU6vs1tjxBtifgTuzKjCGtVS\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/refunds\", \n \"reversals_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/reversals\", \n \"source_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC6xbFPglEtPRSEA65a5Bd60\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/debits/WD6yIHxqPrzb1apVYERuB72G/events\", \n \"fee\": null, \n \"hold\": {\n \"_type\": \"hold\", \n \"_uris\": {\n \"debit_uri\": {\n \"_type\": \"debit\", \n \"key\": \"debit\"\n }, \n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-11-14T16:21:39.991162Z\", \n \"customer_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6yIHxqPrzb1apVYERuB72G\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/holds/HL6yF80ERpTXcYkszqKCUlHY/events\", \n \"expires_at\": \"2013-11-21T16:21:40.450966Z\", \n \"fee\": null, \n \"id\": \"HL6yF80ERpTXcYkszqKCUlHY\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC6xbFPglEtPRSEA65a5Bd60\", \n \"transaction_number\": \"HL560-602-3542\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL6yF80ERpTXcYkszqKCUlHY\"\n }, \n \"id\": \"WD6yIHxqPrzb1apVYERuB72G\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6yIHxqPrzb1apVYERuB72G/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {}, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-11-14T16:21:38.681465Z\", \n \"customer_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC6xbFPglEtPRSEA65a5Bd60\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"unknown\", \n \"security_code_check\": \"passed\", \n \"street_address\": null, \n \"uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC6xbFPglEtPRSEA65a5Bd60\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W597-916-7221\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6yIHxqPrzb1apVYERuB72G\"\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-01-07T18:32:08.105830Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU73cQkqN6IUi8D4qBEsOPK\", \n \"id\": \"CU73cQkqN6IUi8D4qBEsOPK\", \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-07T18:32:08.549452Z\"\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}" }, - "customer_credit": { + "customer_create": { "request": { - "customer_uri": "/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo", "payload": { - "amount": 100 + "address": { + "postal_code": "48120" + }, + "dob_month": 7, + "dob_year": 1963, + "name": "Henry Ford" }, - "uri": "/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/credits" + "uri": "/customers" }, - "response": "{\n \"_type\": \"credit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }\n }, \n \"amount\": 100, \n \"appears_on_statement_as\": \"example.com\", \n \"available_at\": \"2013-11-14T16:21:18.584003Z\", \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"verification_uri\": {\n \"_type\": \"bank_account_authentication\", \n \"key\": \"verification\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"bank_code\": \"121000358\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-11-14T16:20:28.771031Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO/credits\", \n \"customer_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo\", \n \"debits_uri\": \"/v1/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO/debits\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"id\": \"BA5gy1b8X8dIGaBWFuoWvkxO\", \n \"is_valid\": true, \n \"last_four\": \"0001\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO\", \n \"verification_uri\": \"/v1/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO/verifications/BZ5kihRbLIgd64iMWFkWesdw\", \n \"verifications_uri\": \"/v1/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO/verifications\"\n }, \n \"created_at\": \"2013-11-14T16:21:18.267102Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"destination_uri\": {\n \"_type\": \"bank_account\", \n \"key\": \"destination\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/cards\", \n \"created_at\": \"2013-11-14T16:20:27.468419Z\", \n \"credits_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/credits\", \n \"debits_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/debits\", \n \"destination_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/holds\", \n \"id\": \"CU5f64LhFMO8cf7N1sQSRVOo\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/refunds\", \n \"reversals_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/reversals\", \n \"source_uri\": null, \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo\"\n }, \n \"description\": null, \n \"destination\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"verification_uri\": {\n \"_type\": \"bank_account_authentication\", \n \"key\": \"verification\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"bank_code\": \"121000358\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-11-14T16:20:28.771031Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO/credits\", \n \"customer_uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo\", \n \"debits_uri\": \"/v1/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO/debits\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"id\": \"BA5gy1b8X8dIGaBWFuoWvkxO\", \n \"is_valid\": true, \n \"last_four\": \"0001\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO\", \n \"verification_uri\": \"/v1/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO/verifications/BZ5kihRbLIgd64iMWFkWesdw\", \n \"verifications_uri\": \"/v1/bank_accounts/BA5gy1b8X8dIGaBWFuoWvkxO/verifications\"\n }, \n \"events_uri\": \"/v1/credits/CR6admOtZKuECF3I9UlCiWzm/events\", \n \"fee\": null, \n \"id\": \"CR6admOtZKuECF3I9UlCiWzm\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/credits/CR6admOtZKuECF3I9UlCiWzm/reversals\", \n \"state\": \"cleared\", \n \"status\": \"paid\", \n \"transaction_number\": \"CR004-468-9882\", \n \"uri\": \"/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo/credits/CR6admOtZKuECF3I9UlCiWzm\"\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-01-07T18:32:08.105830Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU73cQkqN6IUi8D4qBEsOPK\", \n \"id\": \"CU73cQkqN6IUi8D4qBEsOPK\", \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-07T18:32:08.549452Z\"\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}" }, "customer_delete": { "request": { - "uri": "/v1/customers/CU6sqf8CB3M3l6VeSsBqVHhC" + "uri": "/customers/CU7cMba1Uu9Dz2DHguDKcxao" } }, - "debit_create": { + "customer_list": { "request": { - "customer_uri": "/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS", - "debits_uri": "/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/debits", - "payload": { - "amount": 5000, - "appears_on_statement_as": "Statement text", - "description": "Some descriptive text for the debit in the dashboard" - } + "uri": "/customers" }, - "response": "{\n \"_type\": \"debit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-11-14T16:22:26.746556Z\", \n \"created_at\": \"2013-11-14T16:22:25.975814Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/cards\", \n \"created_at\": \"2013-11-14T16:22:19.231687Z\", \n \"credits_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/credits\", \n \"debits_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/holds\", \n \"id\": \"CU7gMTGKh2yGHYn1lUxH9STS\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/refunds\", \n \"reversals_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/reversals\", \n \"source_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/cards/CC7iFRCb5AvLuZ9qzIF0VMmA\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/debits/WD7omMnm45N2JcPZ6fcaRRgY/events\", \n \"fee\": null, \n \"hold\": {\n \"_type\": \"hold\", \n \"_uris\": {\n \"debit_uri\": {\n \"_type\": \"debit\", \n \"key\": \"debit\"\n }, \n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-11-14T16:22:25.945916Z\", \n \"customer_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD7omMnm45N2JcPZ6fcaRRgY\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/holds/HL7ol64Qezs7DVaup1KqTHn2/events\", \n \"expires_at\": \"2013-11-21T16:22:26.324832Z\", \n \"fee\": null, \n \"id\": \"HL7ol64Qezs7DVaup1KqTHn2\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/cards/CC7iFRCb5AvLuZ9qzIF0VMmA\", \n \"transaction_number\": \"HL750-344-1146\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL7ol64Qezs7DVaup1KqTHn2\"\n }, \n \"id\": \"WD7omMnm45N2JcPZ6fcaRRgY\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD7omMnm45N2JcPZ6fcaRRgY/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {}, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-11-14T16:22:20.900440Z\", \n \"customer_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC7iFRCb5AvLuZ9qzIF0VMmA\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"unknown\", \n \"security_code_check\": \"passed\", \n \"street_address\": null, \n \"uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/cards/CC7iFRCb5AvLuZ9qzIF0VMmA\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W109-369-8530\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD7omMnm45N2JcPZ6fcaRRgY\"\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-01-07T18:31:29.573857Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU7cMba1Uu9Dz2DHguDKcxao\", \n \"id\": \"CU7cMba1Uu9Dz2DHguDKcxao\", \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-07T18:31:30.056892Z\"\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-07T18:31:24.663004Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": \"email@newdomain.com\", \n \"href\": \"/customers/CU77fJ0bjn9xBZYlzIYkpUQU\", \n \"id\": \"CU77fJ0bjn9xBZYlzIYkpUQU\", \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-07T18:31:27.824273Z\"\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-07T18:31:15.659369Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU6X7675eXqsP8aPymQ5fISa\", \n \"id\": \"CU6X7675eXqsP8aPymQ5fISa\", \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-07T18:31:16.095484Z\"\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-07T18:30:23.987305Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU60ZRsWjBEcimeAsXeaYJWC\", \n \"id\": \"CU60ZRsWjBEcimeAsXeaYJWC\", \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-07T18:30:24.209739Z\"\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-07T18:30:22.900047Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU5ZMOZDIYeIFMVbi9Zgavm8\", \n \"id\": \"CU5ZMOZDIYeIFMVbi9Zgavm8\", \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-07T18:30:23.088283Z\"\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\": 5\n }\n}" }, - "debit_customer_list": { + "customer_show": { "request": { - "debits_uri": "/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/debits", - "uri": "/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS" + "uri": "/customers/CU77fJ0bjn9xBZYlzIYkpUQU" }, - "response": "{\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/cards\", \n \"created_at\": \"2013-11-14T16:21:37.144218Z\", \n \"credits_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/credits\", \n \"debits_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/holds\", \n \"id\": \"CU6vs1tjxBtifgTuzKjCGtVS\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/refunds\", \n \"reversals_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/reversals\", \n \"source_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC6xbFPglEtPRSEA65a5Bd60\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\"\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-01-07T18:31:24.663004Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU77fJ0bjn9xBZYlzIYkpUQU\", \n \"id\": \"CU77fJ0bjn9xBZYlzIYkpUQU\", \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-07T18:31:25.214593Z\"\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}" }, - "debit_list": { + "customer_update": { "request": { - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits" - }, - "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"debit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/cards\", \n \"created_at\": \"2013-11-14T16:21:37.144218Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/credits\", \n \"customer_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/holds\", \n \"id\": \"CU6vs1tjxBtifgTuzKjCGtVS\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-11-14T16:21:43.776719Z\", \n \"created_at\": \"2013-11-14T16:21:43.104998Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/cards\", \n \"created_at\": \"2013-11-14T16:21:37.144218Z\", \n \"credits_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/credits\", \n \"debits_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/holds\", \n \"id\": \"CU6vs1tjxBtifgTuzKjCGtVS\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/refunds\", \n \"reversals_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/reversals\", \n \"source_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC6xbFPglEtPRSEA65a5Bd60\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/debits/WD6Ca1z3nrRRCdiYT1evN19S/events\", \n \"fee\": null, \n \"hold\": {\n \"_type\": \"hold\", \n \"_uris\": {\n \"debit_uri\": {\n \"_type\": \"debit\", \n \"key\": \"debit\"\n }, \n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"amount\": 5000, \n \"created_at\": \"2013-11-14T16:21:43.080028Z\", \n \"customer_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6Ca1z3nrRRCdiYT1evN19S\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/holds/HL6C8GKLqXoEYiAu7LZdXPLa/events\", \n \"expires_at\": \"2013-11-21T16:21:43.420514Z\", \n \"fee\": null, \n \"id\": \"HL6C8GKLqXoEYiAu7LZdXPLa\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC6xbFPglEtPRSEA65a5Bd60\", \n \"transaction_number\": \"HL927-455-6133\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL6C8GKLqXoEYiAu7LZdXPLa\"\n }, \n \"id\": \"WD6Ca1z3nrRRCdiYT1evN19S\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6Ca1z3nrRRCdiYT1evN19S/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"customer\", \n \"key\": \"account\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-11-14T16:21:38.681465Z\", \n \"customer_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC6xbFPglEtPRSEA65a5Bd60\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"unknown\", \n \"security_code_check\": \"passed\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC6xbFPglEtPRSEA65a5Bd60\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W402-648-3361\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6Ca1z3nrRRCdiYT1evN19S\"\n }, \n {\n \"_type\": \"debit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/cards\", \n \"created_at\": \"2013-11-14T16:21:37.144218Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/credits\", \n \"customer_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/holds\", \n \"id\": \"CU6vs1tjxBtifgTuzKjCGtVS\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-11-14T16:21:40.856280Z\", \n \"created_at\": \"2013-11-14T16:21:40.047691Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/cards\", \n \"created_at\": \"2013-11-14T16:21:37.144218Z\", \n \"credits_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/credits\", \n \"debits_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/holds\", \n \"id\": \"CU6vs1tjxBtifgTuzKjCGtVS\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/refunds\", \n \"reversals_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/reversals\", \n \"source_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC6xbFPglEtPRSEA65a5Bd60\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/debits/WD6yIHxqPrzb1apVYERuB72G/events\", \n \"fee\": null, \n \"hold\": {\n \"_type\": \"hold\", \n \"_uris\": {\n \"debit_uri\": {\n \"_type\": \"debit\", \n \"key\": \"debit\"\n }, \n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"amount\": 5000, \n \"created_at\": \"2013-11-14T16:21:39.991162Z\", \n \"customer_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6yIHxqPrzb1apVYERuB72G\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/holds/HL6yF80ERpTXcYkszqKCUlHY/events\", \n \"expires_at\": \"2013-11-21T16:21:40.450966Z\", \n \"fee\": null, \n \"id\": \"HL6yF80ERpTXcYkszqKCUlHY\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC6xbFPglEtPRSEA65a5Bd60\", \n \"transaction_number\": \"HL560-602-3542\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL6yF80ERpTXcYkszqKCUlHY\"\n }, \n \"id\": \"WD6yIHxqPrzb1apVYERuB72G\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6yIHxqPrzb1apVYERuB72G/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"customer\", \n \"key\": \"account\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-11-14T16:21:38.681465Z\", \n \"customer_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC6xbFPglEtPRSEA65a5Bd60\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"unknown\", \n \"security_code_check\": \"passed\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC6xbFPglEtPRSEA65a5Bd60\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W597-916-7221\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6yIHxqPrzb1apVYERuB72G\"\n }\n ], \n \"last_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits?limit=2&offset=2\", \n \"limit\": 2, \n \"next_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits?limit=2&offset=2\", \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 3, \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits?limit=2&offset=0\"\n}" + "payload": { + "email": "email@newdomain.com", + "meta": { + "shipping-preference": "ground" + } + }, + "uri": "/customers/CU77fJ0bjn9xBZYlzIYkpUQU" + }, + "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-07T18:31:24.663004Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": \"email@newdomain.com\", \n \"href\": \"/customers/CU77fJ0bjn9xBZYlzIYkpUQU\", \n \"id\": \"CU77fJ0bjn9xBZYlzIYkpUQU\", \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-07T18:31:27.824273Z\"\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}" + }, + "customers_uri": "/customers", + "debit": { + "debits": [ + { + "amount": 10000000, + "appears_on_statement_as": "BAL*example.com", + "created_at": "2014-01-07T18:30:26.763039Z", + "currency": "USD", + "description": null, + "failure_reason": null, + "failure_reason_code": null, + "href": "/debits/WD647OpNtyZGPHQ3bj0VRpUc", + "id": "WD647OpNtyZGPHQ3bj0VRpUc", + "links": { + "customer": "CU60ZRsWjBEcimeAsXeaYJWC", + "order": null, + "source": "CC62Tbejbh69uIgWGddr944o" + }, + "meta": {}, + "status": "succeeded", + "transaction_number": "W813-750-2902", + "updated_at": "2014-01-07T18:30:28.090574Z" + } + ], + "links": { + "debits.customer": "/customers/{debits.customer}", + "debits.events": "/debits/{debits.id}/events", + "debits.order": "/orders/{debits.order}", + "debits.refunds": "/debits/{debits.id}/refunds", + "debits.source": "/resources/{debits.source}" + } }, - "debit_refund": { + "debit_list": { "request": { - "debit_uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6MTAHor9FhO4G2nvZwaXvi", - "refunds_uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6MTAHor9FhO4G2nvZwaXvi/refunds" + "uri": "/debits" }, - "response": "{\n \"_type\": \"refund\", \n \"_uris\": {}, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/cards\", \n \"created_at\": \"2013-11-14T16:21:37.144218Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/credits\", \n \"customer_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/holds\", \n \"id\": \"CU6vs1tjxBtifgTuzKjCGtVS\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-11-14T16:21:54.905713Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/cards\", \n \"created_at\": \"2013-11-14T16:21:37.144218Z\", \n \"credits_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/credits\", \n \"debits_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/holds\", \n \"id\": \"CU6vs1tjxBtifgTuzKjCGtVS\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/refunds\", \n \"reversals_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/reversals\", \n \"source_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC6xbFPglEtPRSEA65a5Bd60\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\"\n }, \n \"debit\": {\n \"_type\": \"debit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"hold_uri\": {\n \"_type\": \"hold\", \n \"key\": \"hold\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-11-14T16:21:54.005354Z\", \n \"created_at\": \"2013-11-14T16:21:52.648535Z\", \n \"customer_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/debits/WD6MTAHor9FhO4G2nvZwaXvi/events\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL6MSFloTodCzP9beAgM2IBW\", \n \"id\": \"WD6MTAHor9FhO4G2nvZwaXvi\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6MTAHor9FhO4G2nvZwaXvi/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC6xbFPglEtPRSEA65a5Bd60\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W409-412-6948\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6MTAHor9FhO4G2nvZwaXvi\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/refunds/RF6PpVmJdJsmaBdtMDwtVd4Q/events\", \n \"fee\": null, \n \"id\": \"RF6PpVmJdJsmaBdtMDwtVd4Q\", \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF480-493-3185\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/refunds/RF6PpVmJdJsmaBdtMDwtVd4Q\"\n}" + "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-07T18:31:12.543211Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for debit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD6TAVProqNixngz5tRCO52C\", \n \"id\": \"WD6TAVProqNixngz5tRCO52C\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"CC6MQlq1xIGRLEMBWQcD4Dcr\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W431-946-7500\", \n \"updated_at\": \"2014-01-07T18:31:36.164178Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-01-07T18:31:00.137405Z\", \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/WD6FFij85tByvU4xTL3pctOW\", \n \"id\": \"WD6FFij85tByvU4xTL3pctOW\", \n \"links\": {\n \"customer\": \"CU5ZMOZDIYeIFMVbi9Zgavm8\", \n \"order\": null, \n \"source\": \"CC6y7qpkXsrutTV0z1p4SbhI\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W801-499-4652\", \n \"updated_at\": \"2014-01-07T18:31:00.872816Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-07T18:30:46.833042Z\", \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/WD6qHGmsgCu9ynchKt6YvscM\", \n \"id\": \"WD6qHGmsgCu9ynchKt6YvscM\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"BA6b9fFSyfhg5xK51iCmPjNZ\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W773-596-6299\", \n \"updated_at\": \"2014-01-07T18:30:47.357301Z\"\n }, \n {\n \"amount\": 10000000, \n \"appears_on_statement_as\": \"BAL*example.com\", \n \"created_at\": \"2014-01-07T18:30:26.763039Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD647OpNtyZGPHQ3bj0VRpUc\", \n \"id\": \"WD647OpNtyZGPHQ3bj0VRpUc\", \n \"links\": {\n \"customer\": \"CU60ZRsWjBEcimeAsXeaYJWC\", \n \"order\": null, \n \"source\": \"CC62Tbejbh69uIgWGddr944o\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W813-750-2902\", \n \"updated_at\": \"2014-01-07T18:30:28.090574Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6Ca1z3nrRRCdiYT1evN19S" + "uri": "/debits/WD6TAVProqNixngz5tRCO52C" }, - "response": "{\n \"_type\": \"debit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/cards\", \n \"created_at\": \"2013-11-14T16:21:37.144218Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/credits\", \n \"customer_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/holds\", \n \"id\": \"CU6vs1tjxBtifgTuzKjCGtVS\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-11-14T16:21:43.776719Z\", \n \"created_at\": \"2013-11-14T16:21:43.104998Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/cards\", \n \"created_at\": \"2013-11-14T16:21:37.144218Z\", \n \"credits_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/credits\", \n \"debits_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/holds\", \n \"id\": \"CU6vs1tjxBtifgTuzKjCGtVS\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/refunds\", \n \"reversals_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/reversals\", \n \"source_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC6xbFPglEtPRSEA65a5Bd60\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/debits/WD6Ca1z3nrRRCdiYT1evN19S/events\", \n \"fee\": null, \n \"hold\": {\n \"_type\": \"hold\", \n \"_uris\": {\n \"debit_uri\": {\n \"_type\": \"debit\", \n \"key\": \"debit\"\n }, \n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"amount\": 5000, \n \"created_at\": \"2013-11-14T16:21:43.080028Z\", \n \"customer_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6Ca1z3nrRRCdiYT1evN19S\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/holds/HL6C8GKLqXoEYiAu7LZdXPLa/events\", \n \"expires_at\": \"2013-11-21T16:21:43.420514Z\", \n \"fee\": null, \n \"id\": \"HL6C8GKLqXoEYiAu7LZdXPLa\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC6xbFPglEtPRSEA65a5Bd60\", \n \"transaction_number\": \"HL927-455-6133\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL6C8GKLqXoEYiAu7LZdXPLa\"\n }, \n \"id\": \"WD6Ca1z3nrRRCdiYT1evN19S\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6Ca1z3nrRRCdiYT1evN19S/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"customer\", \n \"key\": \"account\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-11-14T16:21:38.681465Z\", \n \"customer_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC6xbFPglEtPRSEA65a5Bd60\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"unknown\", \n \"security_code_check\": \"passed\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC6xbFPglEtPRSEA65a5Bd60\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W402-648-3361\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6Ca1z3nrRRCdiYT1evN19S\"\n}" + "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-07T18:31:12.543211Z\", \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/WD6TAVProqNixngz5tRCO52C\", \n \"id\": \"WD6TAVProqNixngz5tRCO52C\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"CC6MQlq1xIGRLEMBWQcD4Dcr\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W431-946-7500\", \n \"updated_at\": \"2014-01-07T18:31:13.703399Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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": { @@ -418,125 +460,144 @@ "facebook.id": "1234567890" } }, - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6Ca1z3nrRRCdiYT1evN19S" + "uri": "/debits/WD6TAVProqNixngz5tRCO52C" }, - "response": "{\n \"_type\": \"debit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/cards\", \n \"created_at\": \"2013-11-14T16:21:37.144218Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/credits\", \n \"customer_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/holds\", \n \"id\": \"CU6vs1tjxBtifgTuzKjCGtVS\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-11-14T16:21:43.776719Z\", \n \"created_at\": \"2013-11-14T16:21:43.104998Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/cards\", \n \"created_at\": \"2013-11-14T16:21:37.144218Z\", \n \"credits_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/credits\", \n \"debits_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/holds\", \n \"id\": \"CU6vs1tjxBtifgTuzKjCGtVS\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/refunds\", \n \"reversals_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/reversals\", \n \"source_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC6xbFPglEtPRSEA65a5Bd60\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\"\n }, \n \"description\": \"New description for debit\", \n \"events_uri\": \"/v1/debits/WD6Ca1z3nrRRCdiYT1evN19S/events\", \n \"fee\": null, \n \"hold\": {\n \"_type\": \"hold\", \n \"_uris\": {\n \"debit_uri\": {\n \"_type\": \"debit\", \n \"key\": \"debit\"\n }, \n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"amount\": 5000, \n \"created_at\": \"2013-11-14T16:21:43.080028Z\", \n \"customer_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6Ca1z3nrRRCdiYT1evN19S\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/holds/HL6C8GKLqXoEYiAu7LZdXPLa/events\", \n \"expires_at\": \"2013-11-21T16:21:43.420514Z\", \n \"fee\": null, \n \"id\": \"HL6C8GKLqXoEYiAu7LZdXPLa\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC6xbFPglEtPRSEA65a5Bd60\", \n \"transaction_number\": \"HL927-455-6133\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL6C8GKLqXoEYiAu7LZdXPLa\"\n }, \n \"id\": \"WD6Ca1z3nrRRCdiYT1evN19S\", \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6Ca1z3nrRRCdiYT1evN19S/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"customer\", \n \"key\": \"account\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-11-14T16:21:38.681465Z\", \n \"customer_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC6xbFPglEtPRSEA65a5Bd60\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"unknown\", \n \"security_code_check\": \"passed\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC6xbFPglEtPRSEA65a5Bd60\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W402-648-3361\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6Ca1z3nrRRCdiYT1evN19S\"\n}" + "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-07T18:31:12.543211Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for debit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD6TAVProqNixngz5tRCO52C\", \n \"id\": \"WD6TAVProqNixngz5tRCO52C\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"CC6MQlq1xIGRLEMBWQcD4Dcr\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W431-946-7500\", \n \"updated_at\": \"2014-01-07T18:31:36.164178Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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": "/v1/events" + "uri": "/events" }, - "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/events?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"event\", \n \"_uris\": {\n \"callbacks_uri\": {\n \"_type\": \"page\", \n \"key\": \"callbacks\"\n }\n }, \n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"callbacks_uri\": \"/v1/events/EV9be5771e4d4811e38afd026ba7d31e6f/callbacks\", \n \"entity\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4K8uglOjNRpZ8JgnSKNCuX/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4K8uglOjNRpZ8JgnSKNCuX/cards\", \n \"created_at\": \"2013-11-14T16:19:59.943199Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4K8uglOjNRpZ8JgnSKNCuX/credits\", \n \"customer_uri\": \"/v1/customers/CU4K8uglOjNRpZ8JgnSKNCuX\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4K8uglOjNRpZ8JgnSKNCuX/debits\", \n \"email_address\": \"whc@example.org\", \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4K8uglOjNRpZ8JgnSKNCuX/holds\", \n \"id\": \"CU4K8uglOjNRpZ8JgnSKNCuX\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4K8uglOjNRpZ8JgnSKNCuX/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4K8uglOjNRpZ8JgnSKNCuX/reversals\", \n \"roles\": [\n \"merchant\", \n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4K8uglOjNRpZ8JgnSKNCuX/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4K8uglOjNRpZ8JgnSKNCuX\"\n }, \n \"id\": \"EV9be5771e4d4811e38afd026ba7d31e6f\", \n \"occurred_at\": \"2013-11-14T16:20:00.110000Z\", \n \"type\": \"account.created\", \n \"uri\": \"/v1/events/EV9be5771e4d4811e38afd026ba7d31e6f\"\n }, \n {\n \"_type\": \"event\", \n \"_uris\": {\n \"callbacks_uri\": {\n \"_type\": \"page\", \n \"key\": \"callbacks\"\n }\n }, \n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"callbacks_uri\": \"/v1/events/EV9c39c6704d4811e38afd026ba7d31e6f/callbacks\", \n \"entity\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"customer\", \n \"key\": \"account\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxxxxxxx5555\", \n \"account_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4K8uglOjNRpZ8JgnSKNCuX\", \n \"bank_code\": \"121042882\", \n \"bank_name\": \"WELLS FARGO BANK NA\", \n \"can_debit\": true, \n \"created_at\": \"2013-11-14T16:20:00.469540Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA4Kmu7splqbtDnER3r9nypx/credits\", \n \"customer_uri\": \"/v1/customers/CU4K8uglOjNRpZ8JgnSKNCuX\", \n \"debits_uri\": \"/v1/bank_accounts/BA4Kmu7splqbtDnER3r9nypx/debits\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"id\": \"BA4Kmu7splqbtDnER3r9nypx\", \n \"is_valid\": true, \n \"last_four\": \"5555\", \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"type\": \"CHECKING\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4K8uglOjNRpZ8JgnSKNCuX/bank_accounts/BA4Kmu7splqbtDnER3r9nypx\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA4Kmu7splqbtDnER3r9nypx/verifications\"\n }, \n \"id\": \"EV9c39c6704d4811e38afd026ba7d31e6f\", \n \"occurred_at\": \"2013-11-14T16:20:00.469000Z\", \n \"type\": \"bank_account.created\", \n \"uri\": \"/v1/events/EV9c39c6704d4811e38afd026ba7d31e6f\"\n }\n ], \n \"last_uri\": \"/v1/events?limit=2&offset=86\", \n \"limit\": 2, \n \"next_uri\": \"/v1/events?limit=2&offset=2\", \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 87, \n \"uri\": \"/v1/events?limit=2&offset=0\"\n}" + "response": "{\n \"events\": [\n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-07T18:30:34.329884Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"id\": \"BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"links\": {\n \"bank_account\": \"BA6b9fFSyfhg5xK51iCmPjNZ\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-07T18:30:38.719502Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EVce72c4ba77c911e3a3be026ba7cac9da\", \n \"id\": \"EVce72c4ba77c911e3a3be026ba7cac9da\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-07T18:30:38.719000Z\", \n \"type\": \"bank_account_verification.updated\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-07T18:30:34.329884Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"id\": \"BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"links\": {\n \"bank_account\": \"BA6b9fFSyfhg5xK51iCmPjNZ\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-07T18:30:34.996365Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EVcbd5d8b477c911e39576026ba7c1aba6\", \n \"id\": \"EVcbd5d8b477c911e39576026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-07T18:30:34.996000Z\", \n \"type\": \"bank_account_verification.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-07T18:30:34.329884Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"id\": \"BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"links\": {\n \"bank_account\": \"BA6b9fFSyfhg5xK51iCmPjNZ\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-07T18:30:38.719502Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EVceb8e31477c911e393a1026ba7cac9da\", \n \"id\": \"EVceb8e31477c911e393a1026ba7cac9da\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-07T18:30:38.719000Z\", \n \"type\": \"bank_account_verification.verified\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-07T18:30:34.329884Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"id\": \"BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"links\": {\n \"bank_account\": \"BA6b9fFSyfhg5xK51iCmPjNZ\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-07T18:30:34.996365Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EVcd3e9c0477c911e39baf026ba7d31e6f\", \n \"id\": \"EVcd3e9c0477c911e39baf026ba7d31e6f\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-07T18:30:34.996000Z\", \n \"type\": \"bank_account_verification.deposited\"\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\": \"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-07T18:30:22.900047Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU5ZMOZDIYeIFMVbi9Zgavm8\", \n \"id\": \"CU5ZMOZDIYeIFMVbi9Zgavm8\", \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-07T18:30:23.088283Z\"\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/EVc50ef79077c911e3b958026ba7f8ec28\", \n \"id\": \"EVc50ef79077c911e3b958026ba7f8ec28\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-07T18:30:23.088000Z\", \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 \"bank_name\": \"WELLS FARGO BANK NA\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-01-07T18:30:23.358044Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA601YfDWXDusJexVptKWNG8\", \n \"id\": \"BA601YfDWXDusJexVptKWNG8\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU5ZMOZDIYeIFMVbi9Zgavm8\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-01-07T18:30:23.358047Z\"\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/EVc54dc01077c911e3b958026ba7f8ec28\", \n \"id\": \"EVc54dc01077c911e3b958026ba7f8ec28\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-07T18:30:23.358000Z\", \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-01-07T18:30:23.987305Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU60ZRsWjBEcimeAsXeaYJWC\", \n \"id\": \"CU60ZRsWjBEcimeAsXeaYJWC\", \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-07T18:30:24.209739Z\"\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/EVc5aca10c77c911e3bb9d026ba7c1aba6\", \n \"id\": \"EVc5aca10c77c911e3bb9d026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-07T18:30:24.209000Z\", \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 \"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-01-07T18:30:25.673599Z\", \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/CC62Tbejbh69uIgWGddr944o\", \n \"id\": \"CC62Tbejbh69uIgWGddr944o\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU60ZRsWjBEcimeAsXeaYJWC\"\n }, \n \"meta\": {\n \"client_ip_address\": \"107.20.69.114\"\n }, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-01-07T18:30:25.673602Z\"\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/EVc6b0593677c911e3a81e026ba7f8ec28\", \n \"id\": \"EVc6b0593677c911e3a81e026ba7f8ec28\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-07T18:30:25.673000Z\", \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-01-07T18:30:26.659557Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL640YgYWOkR1BGodbUFCFg4\", \n \"id\": \"HL640YgYWOkR1BGodbUFCFg4\", \n \"links\": {\n \"card\": \"CC62Tbejbh69uIgWGddr944o\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL366-206-5236\", \n \"updated_at\": \"2014-01-07T18:30:26.659561Z\"\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 }, \n \"href\": \"/events/EVc74c472e77c911e3a81e026ba7f8ec28\", \n \"id\": \"EVc74c472e77c911e3a81e026ba7f8ec28\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-07T18:30:26.659000Z\", \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-01-07T18:30:26.659557Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-01-14T18:30:27.214669Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL640YgYWOkR1BGodbUFCFg4\", \n \"id\": \"HL640YgYWOkR1BGodbUFCFg4\", \n \"links\": {\n \"card\": \"CC62Tbejbh69uIgWGddr944o\", \n \"debit\": \"WD647OpNtyZGPHQ3bj0VRpUc\"\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL366-206-5236\", \n \"updated_at\": \"2014-01-07T18:30:28.093044Z\"\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 }, \n \"href\": \"/events/EVc7b6b67c77c911e3a81e026ba7f8ec28\", \n \"id\": \"EVc7b6b67c77c911e3a81e026ba7f8ec28\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-07T18:30:28.093000Z\", \n \"type\": \"hold.updated\"\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\": 51\n }\n}" }, "event_show": { "request": { - "uri": "/v1/events/EV9be5771e4d4811e38afd026ba7d31e6f" + "uri": "/events/EVce72c4ba77c911e3a3be026ba7cac9da" }, - "response": "{\n \"_type\": \"event\", \n \"_uris\": {\n \"callbacks_uri\": {\n \"_type\": \"page\", \n \"key\": \"callbacks\"\n }\n }, \n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"callbacks_uri\": \"/v1/events/EV9be5771e4d4811e38afd026ba7d31e6f/callbacks\", \n \"entity\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4K8uglOjNRpZ8JgnSKNCuX/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4K8uglOjNRpZ8JgnSKNCuX/cards\", \n \"created_at\": \"2013-11-14T16:19:59.943199Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4K8uglOjNRpZ8JgnSKNCuX/credits\", \n \"customer_uri\": \"/v1/customers/CU4K8uglOjNRpZ8JgnSKNCuX\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4K8uglOjNRpZ8JgnSKNCuX/debits\", \n \"email_address\": \"whc@example.org\", \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4K8uglOjNRpZ8JgnSKNCuX/holds\", \n \"id\": \"CU4K8uglOjNRpZ8JgnSKNCuX\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4K8uglOjNRpZ8JgnSKNCuX/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4K8uglOjNRpZ8JgnSKNCuX/reversals\", \n \"roles\": [\n \"merchant\", \n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4K8uglOjNRpZ8JgnSKNCuX/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU4K8uglOjNRpZ8JgnSKNCuX\"\n }, \n \"id\": \"EV9be5771e4d4811e38afd026ba7d31e6f\", \n \"occurred_at\": \"2013-11-14T16:20:00.110000Z\", \n \"type\": \"account.created\", \n \"uri\": \"/v1/events/EV9be5771e4d4811e38afd026ba7d31e6f\"\n}" + "response": "{\n \"events\": [\n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-07T18:30:34.329884Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"id\": \"BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"links\": {\n \"bank_account\": \"BA6b9fFSyfhg5xK51iCmPjNZ\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-07T18:30:38.719502Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EVce72c4ba77c911e3a3be026ba7cac9da\", \n \"id\": \"EVce72c4ba77c911e3a3be026ba7cac9da\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-07T18:30:38.719000Z\", \n \"type\": \"bank_account_verification.updated\"\n }\n ], \n \"links\": {\n \"events.callbacks\": \"/events/{events.self}/callbacks\"\n }\n}" }, - "hold_capture": { - "request": { - "debits_uri": "/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/debits", - "hold_uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL743q4NqJPc0cxbidCj1WGk", - "payload": { - "appears_on_statement_as": "ShowsUpOnStmt", - "description": "Some descriptive text for the debit in the dashboard" - } + "marketplace": { + "created_at": "2014-01-07T18:30:22.869769Z", + "domain_url": "example.com", + "href": "/marketplaces/TEST-MP5ZKfY6SyYiSTm6GpKnUIWY", + "id": "TEST-MP5ZKfY6SyYiSTm6GpKnUIWY", + "in_escrow": 0, + "links": { + "owner_customer": "CU5ZMOZDIYeIFMVbi9Zgavm8" }, - "response": "{\n \"_uris\": {}, \n \"additional\": null, \n \"category_code\": \"request\", \n \"category_type\": \"request\", \n \"description\": \"Missing required field [amount] Your request id is OHMe956b8424d4c11e3b9de026ba7cd33d0.\", \n \"extras\": {\n \"amount\": \"Missing required field [amount]\"\n }, \n \"request_id\": \"OHMe956b8424d4c11e3b9de026ba7cd33d0\", \n \"status\": \"Bad Request\", \n \"status_code\": 400\n}" + "meta": {}, + "name": "Test Marketplace", + "production": false, + "support_email_address": "support@example.com", + "support_phone_number": "+16505551234", + "unsettled_fees": 0, + "updated_at": "2014-01-07T18:30:23.346339Z" }, - "hold_create": { + "marketplace_id": "TEST-MP5ZKfY6SyYiSTm6GpKnUIWY", + "marketplace_uri": "/marketplaces/TEST-MP5ZKfY6SyYiSTm6GpKnUIWY", + "order_create": { "request": { - "customer_uri": "/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb", - "debits_uri": "/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/debits", "payload": { - "amount": 5000, - "description": "Some descriptive text for the debit in the dashboard", - "source_uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/cards/CC72hXVwWbCJsozvJoRELzIc" + "description": "Order #12341234" }, - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds" + "uri": "/customers/CU7cMba1Uu9Dz2DHguDKcxao/orders" }, - "response": "{\n \"_type\": \"hold\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }\n }, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU70CIWA2NrZwwMQqjBuWFUb/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU70CIWA2NrZwwMQqjBuWFUb/cards\", \n \"created_at\": \"2013-11-14T16:50:42.841208Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU70CIWA2NrZwwMQqjBuWFUb/credits\", \n \"customer_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU70CIWA2NrZwwMQqjBuWFUb/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU70CIWA2NrZwwMQqjBuWFUb/holds\", \n \"id\": \"CU70CIWA2NrZwwMQqjBuWFUb\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU70CIWA2NrZwwMQqjBuWFUb/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU70CIWA2NrZwwMQqjBuWFUb/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU70CIWA2NrZwwMQqjBuWFUb/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU70CIWA2NrZwwMQqjBuWFUb\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-11-14T16:50:45.885960Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/cards\", \n \"created_at\": \"2013-11-14T16:50:42.841208Z\", \n \"credits_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/credits\", \n \"debits_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/holds\", \n \"id\": \"CU70CIWA2NrZwwMQqjBuWFUb\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/refunds\", \n \"reversals_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/reversals\", \n \"source_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/cards/CC72hXVwWbCJsozvJoRELzIc\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb\"\n }, \n \"debit\": null, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/holds/HL743q4NqJPc0cxbidCj1WGk/events\", \n \"expires_at\": \"2013-11-21T16:50:46.060543Z\", \n \"fee\": null, \n \"id\": \"HL743q4NqJPc0cxbidCj1WGk\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"customer\", \n \"key\": \"account\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU70CIWA2NrZwwMQqjBuWFUb\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-11-14T16:50:44.333724Z\", \n \"customer_uri\": \"/v1/customers/CU70CIWA2NrZwwMQqjBuWFUb\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC72hXVwWbCJsozvJoRELzIc\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"unknown\", \n \"security_code_check\": \"passed\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU70CIWA2NrZwwMQqjBuWFUb/cards/CC72hXVwWbCJsozvJoRELzIc\"\n }, \n \"transaction_number\": \"HL886-578-0900\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL743q4NqJPc0cxbidCj1WGk\"\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-01-07T18:31:44.183542Z\", \n \"currency\": \"USD\", \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR7tbUrFlrIwYwE4iCuhtq0v\", \n \"id\": \"OR7tbUrFlrIwYwE4iCuhtq0v\", \n \"links\": {\n \"merchant\": \"CU7cMba1Uu9Dz2DHguDKcxao\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-07T18:31:44.183546Z\"\n }\n ]\n}" }, - "hold_customer_list": { + "order_list": { "request": { - "customer_uri": "/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe", - "uri": "/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/holds" + "uri": "/orders" }, - "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/holds?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"hold\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-11-14T16:22:08.051562Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/cards\", \n \"created_at\": \"2013-11-14T16:22:04.139451Z\", \n \"credits_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/credits\", \n \"debits_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/holds\", \n \"id\": \"CU6ZO6HM8Hf8NMQRMm3ZlCAe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/refunds\", \n \"reversals_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/reversals\", \n \"source_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/cards/CC720AgbiWsOVlGJ0n9KYp6K\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe\"\n }, \n \"debit\": null, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/holds/HL74dRg2HWc5vQwX0kQ9XQfM/events\", \n \"expires_at\": \"2013-11-21T16:22:08.270146Z\", \n \"fee\": null, \n \"id\": \"HL74dRg2HWc5vQwX0kQ9XQfM\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {}, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-11-14T16:22:06.098768Z\", \n \"customer_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC720AgbiWsOVlGJ0n9KYp6K\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"unknown\", \n \"security_code_check\": \"passed\", \n \"street_address\": null, \n \"uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/cards/CC720AgbiWsOVlGJ0n9KYp6K\"\n }, \n \"transaction_number\": \"HL274-121-5099\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL74dRg2HWc5vQwX0kQ9XQfM\"\n }\n ], \n \"last_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/holds?limit=2&offset=0\", \n \"limit\": 2, \n \"next_uri\": null, \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 1, \n \"uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/holds?limit=2&offset=0\"\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-01-07T18:31:44.183542Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for order\", \n \"href\": \"/orders/OR7tbUrFlrIwYwE4iCuhtq0v\", \n \"id\": \"OR7tbUrFlrIwYwE4iCuhtq0v\", \n \"links\": {\n \"merchant\": \"CU7cMba1Uu9Dz2DHguDKcxao\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"product.id\": \"1234567890\"\n }, \n \"updated_at\": \"2014-01-07T18:31:46.598343Z\"\n }\n ]\n}" }, - "hold_list": { + "order_show": { "request": { - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds" + "uri": "/orders/OR7tbUrFlrIwYwE4iCuhtq0v" }, - "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"hold\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }\n }, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/cards\", \n \"created_at\": \"2013-11-14T16:22:04.139451Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/credits\", \n \"customer_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/holds\", \n \"id\": \"CU6ZO6HM8Hf8NMQRMm3ZlCAe\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-11-14T16:22:08.051562Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/cards\", \n \"created_at\": \"2013-11-14T16:22:04.139451Z\", \n \"credits_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/credits\", \n \"debits_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/holds\", \n \"id\": \"CU6ZO6HM8Hf8NMQRMm3ZlCAe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/refunds\", \n \"reversals_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/reversals\", \n \"source_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/cards/CC720AgbiWsOVlGJ0n9KYp6K\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe\"\n }, \n \"debit\": null, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/holds/HL74dRg2HWc5vQwX0kQ9XQfM/events\", \n \"expires_at\": \"2013-11-21T16:22:08.270146Z\", \n \"fee\": null, \n \"id\": \"HL74dRg2HWc5vQwX0kQ9XQfM\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"customer\", \n \"key\": \"account\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-11-14T16:22:06.098768Z\", \n \"customer_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC720AgbiWsOVlGJ0n9KYp6K\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"unknown\", \n \"security_code_check\": \"passed\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/cards/CC720AgbiWsOVlGJ0n9KYp6K\"\n }, \n \"transaction_number\": \"HL274-121-5099\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL74dRg2HWc5vQwX0kQ9XQfM\"\n }, \n {\n \"_type\": \"hold\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }\n }, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/cards\", \n \"created_at\": \"2013-11-14T16:21:37.144218Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/credits\", \n \"customer_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/holds\", \n \"id\": \"CU6vs1tjxBtifgTuzKjCGtVS\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-11-14T16:21:52.630344Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/cards\", \n \"created_at\": \"2013-11-14T16:21:37.144218Z\", \n \"credits_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/credits\", \n \"debits_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/holds\", \n \"id\": \"CU6vs1tjxBtifgTuzKjCGtVS\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/refunds\", \n \"reversals_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/reversals\", \n \"source_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC6xbFPglEtPRSEA65a5Bd60\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\"\n }, \n \"debit\": {\n \"_type\": \"debit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"hold_uri\": {\n \"_type\": \"hold\", \n \"key\": \"hold\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-11-14T16:21:54.005354Z\", \n \"created_at\": \"2013-11-14T16:21:52.648535Z\", \n \"customer_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/debits/WD6MTAHor9FhO4G2nvZwaXvi/events\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL6MSFloTodCzP9beAgM2IBW\", \n \"id\": \"WD6MTAHor9FhO4G2nvZwaXvi\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6MTAHor9FhO4G2nvZwaXvi/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC6xbFPglEtPRSEA65a5Bd60\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W409-412-6948\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6MTAHor9FhO4G2nvZwaXvi\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/holds/HL6MSFloTodCzP9beAgM2IBW/events\", \n \"expires_at\": \"2013-11-21T16:21:52.937144Z\", \n \"fee\": null, \n \"id\": \"HL6MSFloTodCzP9beAgM2IBW\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"customer\", \n \"key\": \"account\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-11-14T16:21:38.681465Z\", \n \"customer_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC6xbFPglEtPRSEA65a5Bd60\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"unknown\", \n \"security_code_check\": \"passed\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC6xbFPglEtPRSEA65a5Bd60\"\n }, \n \"transaction_number\": \"HL391-682-9054\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL6MSFloTodCzP9beAgM2IBW\"\n }\n ], \n \"last_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds?limit=2&offset=4\", \n \"limit\": 2, \n \"next_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds?limit=2&offset=2\", \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 5, \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds?limit=2&offset=0\"\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-01-07T18:31:44.183542Z\", \n \"currency\": \"USD\", \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR7tbUrFlrIwYwE4iCuhtq0v\", \n \"id\": \"OR7tbUrFlrIwYwE4iCuhtq0v\", \n \"links\": {\n \"merchant\": \"CU7cMba1Uu9Dz2DHguDKcxao\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-07T18:31:44.183546Z\"\n }\n ]\n}" }, - "hold_show": { + "order_update": { "request": { - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL74dRg2HWc5vQwX0kQ9XQfM" + "payload": { + "description": "New description for order", + "meta": { + "anykey": "valuegoeshere", + "product.id": "1234567890" + } + }, + "uri": "/orders/OR7tbUrFlrIwYwE4iCuhtq0v" }, - "response": "{\n \"_type\": \"hold\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }\n }, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/cards\", \n \"created_at\": \"2013-11-14T16:22:04.139451Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/credits\", \n \"customer_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/holds\", \n \"id\": \"CU6ZO6HM8Hf8NMQRMm3ZlCAe\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-11-14T16:22:08.051562Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/cards\", \n \"created_at\": \"2013-11-14T16:22:04.139451Z\", \n \"credits_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/credits\", \n \"debits_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/holds\", \n \"id\": \"CU6ZO6HM8Hf8NMQRMm3ZlCAe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/refunds\", \n \"reversals_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/reversals\", \n \"source_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/cards/CC720AgbiWsOVlGJ0n9KYp6K\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe\"\n }, \n \"debit\": null, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/holds/HL74dRg2HWc5vQwX0kQ9XQfM/events\", \n \"expires_at\": \"2013-11-21T16:22:08.270146Z\", \n \"fee\": null, \n \"id\": \"HL74dRg2HWc5vQwX0kQ9XQfM\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"customer\", \n \"key\": \"account\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-11-14T16:22:06.098768Z\", \n \"customer_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC720AgbiWsOVlGJ0n9KYp6K\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"unknown\", \n \"security_code_check\": \"passed\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/cards/CC720AgbiWsOVlGJ0n9KYp6K\"\n }, \n \"transaction_number\": \"HL274-121-5099\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL74dRg2HWc5vQwX0kQ9XQfM\"\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-01-07T18:31:44.183542Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for order\", \n \"href\": \"/orders/OR7tbUrFlrIwYwE4iCuhtq0v\", \n \"id\": \"OR7tbUrFlrIwYwE4iCuhtq0v\", \n \"links\": {\n \"merchant\": \"CU7cMba1Uu9Dz2DHguDKcxao\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"product.id\": \"1234567890\"\n }, \n \"updated_at\": \"2014-01-07T18:31:46.598343Z\"\n }\n ]\n}" }, - "hold_update": { + "refund_create": { "request": { + "debit_href": "/debits/WD7yQnigdgrO2Bkc7vLIdkeW", "payload": { - "description": "update this description", + "description": "Refund for Order #1111", "meta": { - "holding.for": "user1", - "meaningful.key": "some.value" + "fulfillment.item.condition": "OK", + "merchant.feedback": "positive", + "user.refund_reason": "not happy with product" } }, - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL74dRg2HWc5vQwX0kQ9XQfM" + "uri": "/debits/WD7yQnigdgrO2Bkc7vLIdkeW/refunds" + }, + "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-07T18:31:50.725959Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF7AxY5iLVIl7a3QtcoVZocS\", \n \"id\": \"RF7AxY5iLVIl7a3QtcoVZocS\", \n \"links\": {\n \"debit\": \"WD7yQnigdgrO2Bkc7vLIdkeW\", \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\": \"RF139-747-7963\", \n \"updated_at\": \"2014-01-07T18:31:51.387911Z\"\n }\n ]\n}" + }, + "refund_list": { + "request": { + "uri": "/refunds" }, - "response": "{\n \"_type\": \"hold\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }\n }, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/cards\", \n \"created_at\": \"2013-11-14T16:22:04.139451Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/credits\", \n \"customer_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/holds\", \n \"id\": \"CU6ZO6HM8Hf8NMQRMm3ZlCAe\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-11-14T16:22:08.051562Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/cards\", \n \"created_at\": \"2013-11-14T16:22:04.139451Z\", \n \"credits_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/credits\", \n \"debits_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/holds\", \n \"id\": \"CU6ZO6HM8Hf8NMQRMm3ZlCAe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/refunds\", \n \"reversals_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/reversals\", \n \"source_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/cards/CC720AgbiWsOVlGJ0n9KYp6K\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe\"\n }, \n \"debit\": null, \n \"description\": \"update this description\", \n \"events_uri\": \"/v1/holds/HL74dRg2HWc5vQwX0kQ9XQfM/events\", \n \"expires_at\": \"2013-11-21T16:22:08.270146Z\", \n \"fee\": null, \n \"id\": \"HL74dRg2HWc5vQwX0kQ9XQfM\", \n \"is_void\": false, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"customer\", \n \"key\": \"account\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-11-14T16:22:06.098768Z\", \n \"customer_uri\": \"/v1/customers/CU6ZO6HM8Hf8NMQRMm3ZlCAe\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC720AgbiWsOVlGJ0n9KYp6K\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"unknown\", \n \"security_code_check\": \"passed\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6ZO6HM8Hf8NMQRMm3ZlCAe/cards/CC720AgbiWsOVlGJ0n9KYp6K\"\n }, \n \"transaction_number\": \"HL274-121-5099\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL74dRg2HWc5vQwX0kQ9XQfM\"\n}" + "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \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\": 5000, \n \"created_at\": \"2014-01-07T18:31:50.725959Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"href\": \"/refunds/RF7AxY5iLVIl7a3QtcoVZocS\", \n \"id\": \"RF7AxY5iLVIl7a3QtcoVZocS\", \n \"links\": {\n \"debit\": \"WD7yQnigdgrO2Bkc7vLIdkeW\", \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\": \"RF139-747-7963\", \n \"updated_at\": \"2014-01-07T18:31:53.868388Z\"\n }\n ]\n}" }, - "hold_void": { + "refund_show": { + "request": { + "uri": "/refunds/RF7AxY5iLVIl7a3QtcoVZocS" + }, + "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-07T18:31:50.725959Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF7AxY5iLVIl7a3QtcoVZocS\", \n \"id\": \"RF7AxY5iLVIl7a3QtcoVZocS\", \n \"links\": {\n \"debit\": \"WD7yQnigdgrO2Bkc7vLIdkeW\", \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\": \"RF139-747-7963\", \n \"updated_at\": \"2014-01-07T18:31:51.387911Z\"\n }\n ]\n}" + }, + "refund_update": { "request": { "payload": { - "is_void": "true" + "description": "update this description", + "meta": { + "refund.reason": "user not happy with product", + "user.notes": "very polite on the phone", + "user.refund.count": "3" + } }, - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL7kzlIJiVvhAmp8xFTMmMPB" + "uri": "/refunds/RF7AxY5iLVIl7a3QtcoVZocS" }, - "response": "{\n \"_type\": \"hold\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }\n }, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/cards\", \n \"created_at\": \"2013-11-14T16:22:19.231687Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/credits\", \n \"customer_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/holds\", \n \"id\": \"CU7gMTGKh2yGHYn1lUxH9STS\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-11-14T16:22:22.585825Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/cards\", \n \"created_at\": \"2013-11-14T16:22:19.231687Z\", \n \"credits_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/credits\", \n \"debits_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/holds\", \n \"id\": \"CU7gMTGKh2yGHYn1lUxH9STS\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/refunds\", \n \"reversals_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/reversals\", \n \"source_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/cards/CC7iFRCb5AvLuZ9qzIF0VMmA\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS\"\n }, \n \"debit\": null, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/holds/HL7kzlIJiVvhAmp8xFTMmMPB/events\", \n \"expires_at\": \"2013-11-21T16:22:22.788253Z\", \n \"fee\": null, \n \"id\": \"HL7kzlIJiVvhAmp8xFTMmMPB\", \n \"is_void\": true, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"customer\", \n \"key\": \"account\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-11-14T16:22:20.900440Z\", \n \"customer_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC7iFRCb5AvLuZ9qzIF0VMmA\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"unknown\", \n \"security_code_check\": \"passed\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/cards/CC7iFRCb5AvLuZ9qzIF0VMmA\"\n }, \n \"transaction_number\": \"HL161-334-3152\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL7kzlIJiVvhAmp8xFTMmMPB\"\n}" + "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-07T18:31:50.725959Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"href\": \"/refunds/RF7AxY5iLVIl7a3QtcoVZocS\", \n \"id\": \"RF7AxY5iLVIl7a3QtcoVZocS\", \n \"links\": {\n \"debit\": \"WD7yQnigdgrO2Bkc7vLIdkeW\", \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\": \"RF139-747-7963\", \n \"updated_at\": \"2014-01-07T18:31:53.868388Z\"\n }\n ]\n}" }, - "marketplace_id": "TEST-MP4K6K0PWGyPtXL4LZ42sQSb", - "marketplace_uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb", - "refund_create": { + "reversal_create": { "request": { - "debit_uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD7omMnm45N2JcPZ6fcaRRgY", + "credit_href": "/credits/CR7HIdtAm4eFX1weOgiaRGQM", "payload": { - "debit_uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD7omMnm45N2JcPZ6fcaRRgY", - "description": "Refund for Order #1111", + "description": "Reversal for Order #1111", "meta": { "fulfillment.item.condition": "OK", "merchant.feedback": "positive", "user.refund_reason": "not happy with product" } }, - "uri": "/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/refunds" - }, - "response": "{\n \"_type\": \"refund\", \n \"_uris\": {}, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-11-14T16:22:27.894146Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/cards\", \n \"created_at\": \"2013-11-14T16:22:19.231687Z\", \n \"credits_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/credits\", \n \"debits_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/holds\", \n \"id\": \"CU7gMTGKh2yGHYn1lUxH9STS\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/refunds\", \n \"reversals_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/reversals\", \n \"source_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/cards/CC7iFRCb5AvLuZ9qzIF0VMmA\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS\"\n }, \n \"debit\": {\n \"_type\": \"debit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"hold_uri\": {\n \"_type\": \"hold\", \n \"key\": \"hold\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-11-14T16:22:26.746556Z\", \n \"created_at\": \"2013-11-14T16:22:25.975814Z\", \n \"customer_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/debits/WD7omMnm45N2JcPZ6fcaRRgY/events\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL7ol64Qezs7DVaup1KqTHn2\", \n \"id\": \"WD7omMnm45N2JcPZ6fcaRRgY\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD7omMnm45N2JcPZ6fcaRRgY/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/cards/CC7iFRCb5AvLuZ9qzIF0VMmA\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W109-369-8530\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD7omMnm45N2JcPZ6fcaRRgY\"\n }, \n \"description\": \"Refund for Order #1111\", \n \"events_uri\": \"/v1/refunds/RF7qwuLxprQJuVGf7sTAdwKc/events\", \n \"fee\": null, \n \"id\": \"RF7qwuLxprQJuVGf7sTAdwKc\", \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\": \"RF442-144-9327\", \n \"uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/refunds/RF7qwuLxprQJuVGf7sTAdwKc\"\n}" - }, - "refund_customer_list": { - "request": { - "customer_uri": "/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS", - "uri": "/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/refunds" + "uri": "/credits/CR7HIdtAm4eFX1weOgiaRGQM/reversals" }, - "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/refunds?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"refund\", \n \"_uris\": {}, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-11-14T16:22:27.894146Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/cards\", \n \"created_at\": \"2013-11-14T16:22:19.231687Z\", \n \"credits_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/credits\", \n \"debits_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/holds\", \n \"id\": \"CU7gMTGKh2yGHYn1lUxH9STS\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/refunds\", \n \"reversals_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/reversals\", \n \"source_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/cards/CC7iFRCb5AvLuZ9qzIF0VMmA\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS\"\n }, \n \"debit\": {\n \"_type\": \"debit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"hold_uri\": {\n \"_type\": \"hold\", \n \"key\": \"hold\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-11-14T16:22:26.746556Z\", \n \"created_at\": \"2013-11-14T16:22:25.975814Z\", \n \"customer_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/debits/WD7omMnm45N2JcPZ6fcaRRgY/events\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL7ol64Qezs7DVaup1KqTHn2\", \n \"id\": \"WD7omMnm45N2JcPZ6fcaRRgY\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD7omMnm45N2JcPZ6fcaRRgY/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/cards/CC7iFRCb5AvLuZ9qzIF0VMmA\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W109-369-8530\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD7omMnm45N2JcPZ6fcaRRgY\"\n }, \n \"description\": \"Refund for Order #1111\", \n \"events_uri\": \"/v1/refunds/RF7qwuLxprQJuVGf7sTAdwKc/events\", \n \"fee\": null, \n \"id\": \"RF7qwuLxprQJuVGf7sTAdwKc\", \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\": \"RF442-144-9327\", \n \"uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/refunds/RF7qwuLxprQJuVGf7sTAdwKc\"\n }\n ], \n \"last_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/refunds?limit=2&offset=0\", \n \"limit\": 2, \n \"next_uri\": null, \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 1, \n \"uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/refunds?limit=2&offset=0\"\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\": 2000, \n \"created_at\": \"2014-01-07T18:31:58.059107Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV7IMMa8PGy8obFm8g5fnvP1\", \n \"id\": \"RV7IMMa8PGy8obFm8g5fnvP1\", \n \"links\": {\n \"credit\": \"CR7HIdtAm4eFX1weOgiaRGQM\", \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\": \"RV172-960-7625\", \n \"updated_at\": \"2014-01-07T18:31:58.612077Z\"\n }\n ]\n}" }, - "refund_list": { + "reversal_list": { "request": { - "uri": "/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/refunds" + "uri": "/reversals" }, - "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/refunds?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"refund\", \n \"_uris\": {}, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/cards\", \n \"created_at\": \"2013-11-14T16:22:19.231687Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/credits\", \n \"customer_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/holds\", \n \"id\": \"CU7gMTGKh2yGHYn1lUxH9STS\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-11-14T16:22:27.894146Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/cards\", \n \"created_at\": \"2013-11-14T16:22:19.231687Z\", \n \"credits_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/credits\", \n \"debits_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/holds\", \n \"id\": \"CU7gMTGKh2yGHYn1lUxH9STS\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/refunds\", \n \"reversals_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/reversals\", \n \"source_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/cards/CC7iFRCb5AvLuZ9qzIF0VMmA\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS\"\n }, \n \"debit\": {\n \"_type\": \"debit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"hold_uri\": {\n \"_type\": \"hold\", \n \"key\": \"hold\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-11-14T16:22:26.746556Z\", \n \"created_at\": \"2013-11-14T16:22:25.975814Z\", \n \"customer_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/debits/WD7omMnm45N2JcPZ6fcaRRgY/events\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL7ol64Qezs7DVaup1KqTHn2\", \n \"id\": \"WD7omMnm45N2JcPZ6fcaRRgY\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD7omMnm45N2JcPZ6fcaRRgY/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/cards/CC7iFRCb5AvLuZ9qzIF0VMmA\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W109-369-8530\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD7omMnm45N2JcPZ6fcaRRgY\"\n }, \n \"description\": \"Refund for Order #1111\", \n \"events_uri\": \"/v1/refunds/RF7qwuLxprQJuVGf7sTAdwKc/events\", \n \"fee\": null, \n \"id\": \"RF7qwuLxprQJuVGf7sTAdwKc\", \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\": \"RF442-144-9327\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/refunds/RF7qwuLxprQJuVGf7sTAdwKc\"\n }, \n {\n \"_type\": \"refund\", \n \"_uris\": {}, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/cards\", \n \"created_at\": \"2013-11-14T16:21:37.144218Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/credits\", \n \"customer_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/holds\", \n \"id\": \"CU6vs1tjxBtifgTuzKjCGtVS\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-11-14T16:21:54.905713Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/cards\", \n \"created_at\": \"2013-11-14T16:21:37.144218Z\", \n \"credits_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/credits\", \n \"debits_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/holds\", \n \"id\": \"CU6vs1tjxBtifgTuzKjCGtVS\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/refunds\", \n \"reversals_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/reversals\", \n \"source_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC6xbFPglEtPRSEA65a5Bd60\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\"\n }, \n \"debit\": {\n \"_type\": \"debit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"hold_uri\": {\n \"_type\": \"hold\", \n \"key\": \"hold\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-11-14T16:21:54.005354Z\", \n \"created_at\": \"2013-11-14T16:21:52.648535Z\", \n \"customer_uri\": \"/v1/customers/CU6vs1tjxBtifgTuzKjCGtVS\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/debits/WD6MTAHor9FhO4G2nvZwaXvi/events\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL6MSFloTodCzP9beAgM2IBW\", \n \"id\": \"WD6MTAHor9FhO4G2nvZwaXvi\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6MTAHor9FhO4G2nvZwaXvi/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU6vs1tjxBtifgTuzKjCGtVS/cards/CC6xbFPglEtPRSEA65a5Bd60\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W409-412-6948\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD6MTAHor9FhO4G2nvZwaXvi\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/refunds/RF6PpVmJdJsmaBdtMDwtVd4Q/events\", \n \"fee\": null, \n \"id\": \"RF6PpVmJdJsmaBdtMDwtVd4Q\", \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF480-493-3185\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/refunds/RF6PpVmJdJsmaBdtMDwtVd4Q\"\n }\n ], \n \"last_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/refunds?limit=2&offset=0\", \n \"limit\": 2, \n \"next_uri\": null, \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 2, \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/refunds?limit=2&offset=0\"\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\": 2000, \n \"created_at\": \"2014-01-07T18:31:58.059107Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV7IMMa8PGy8obFm8g5fnvP1\", \n \"id\": \"RV7IMMa8PGy8obFm8g5fnvP1\", \n \"links\": {\n \"credit\": \"CR7HIdtAm4eFX1weOgiaRGQM\", \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\": \"RV172-960-7625\", \n \"updated_at\": \"2014-01-07T18:32:01.149860Z\"\n }\n ]\n}" }, - "refund_show": { + "reversal_show": { "request": { - "uri": "/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/refunds/RF7qwuLxprQJuVGf7sTAdwKc" + "uri": "/reversals/RV7IMMa8PGy8obFm8g5fnvP1" }, - "response": "{\n \"_type\": \"refund\", \n \"_uris\": {}, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/cards\", \n \"created_at\": \"2013-11-14T16:22:19.231687Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/credits\", \n \"customer_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/holds\", \n \"id\": \"CU7gMTGKh2yGHYn1lUxH9STS\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-11-14T16:22:27.894146Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/cards\", \n \"created_at\": \"2013-11-14T16:22:19.231687Z\", \n \"credits_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/credits\", \n \"debits_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/holds\", \n \"id\": \"CU7gMTGKh2yGHYn1lUxH9STS\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/refunds\", \n \"reversals_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/reversals\", \n \"source_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/cards/CC7iFRCb5AvLuZ9qzIF0VMmA\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS\"\n }, \n \"debit\": {\n \"_type\": \"debit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"hold_uri\": {\n \"_type\": \"hold\", \n \"key\": \"hold\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-11-14T16:22:26.746556Z\", \n \"created_at\": \"2013-11-14T16:22:25.975814Z\", \n \"customer_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/debits/WD7omMnm45N2JcPZ6fcaRRgY/events\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL7ol64Qezs7DVaup1KqTHn2\", \n \"id\": \"WD7omMnm45N2JcPZ6fcaRRgY\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD7omMnm45N2JcPZ6fcaRRgY/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/cards/CC7iFRCb5AvLuZ9qzIF0VMmA\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W109-369-8530\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD7omMnm45N2JcPZ6fcaRRgY\"\n }, \n \"description\": \"Refund for Order #1111\", \n \"events_uri\": \"/v1/refunds/RF7qwuLxprQJuVGf7sTAdwKc/events\", \n \"fee\": null, \n \"id\": \"RF7qwuLxprQJuVGf7sTAdwKc\", \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\": \"RF442-144-9327\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/refunds/RF7qwuLxprQJuVGf7sTAdwKc\"\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\": 2000, \n \"created_at\": \"2014-01-07T18:31:58.059107Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV7IMMa8PGy8obFm8g5fnvP1\", \n \"id\": \"RV7IMMa8PGy8obFm8g5fnvP1\", \n \"links\": {\n \"credit\": \"CR7HIdtAm4eFX1weOgiaRGQM\", \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\": \"RV172-960-7625\", \n \"updated_at\": \"2014-01-07T18:31:58.612077Z\"\n }\n ]\n}" }, - "refund_update": { + "reversal_update": { "request": { "payload": { "description": "update this description", @@ -546,8 +607,9 @@ "user.refund.count": "3" } }, - "uri": "/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/refunds/RF7qwuLxprQJuVGf7sTAdwKc" + "uri": "/reversals/RV7IMMa8PGy8obFm8g5fnvP1" }, - "response": "{\n \"_type\": \"refund\", \n \"_uris\": {}, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/cards\", \n \"created_at\": \"2013-11-14T16:22:19.231687Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/credits\", \n \"customer_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/holds\", \n \"id\": \"CU7gMTGKh2yGHYn1lUxH9STS\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-11-14T16:22:27.894146Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/cards\", \n \"created_at\": \"2013-11-14T16:22:19.231687Z\", \n \"credits_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/credits\", \n \"debits_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/holds\", \n \"id\": \"CU7gMTGKh2yGHYn1lUxH9STS\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/refunds\", \n \"reversals_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/reversals\", \n \"source_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/cards/CC7iFRCb5AvLuZ9qzIF0VMmA\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS\"\n }, \n \"debit\": {\n \"_type\": \"debit\", \n \"_uris\": {\n \"events_uri\": {\n \"_type\": \"page\", \n \"key\": \"events\"\n }, \n \"hold_uri\": {\n \"_type\": \"hold\", \n \"key\": \"hold\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-11-14T16:22:26.746556Z\", \n \"created_at\": \"2013-11-14T16:22:25.975814Z\", \n \"customer_uri\": \"/v1/customers/CU7gMTGKh2yGHYn1lUxH9STS\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"events_uri\": \"/v1/debits/WD7omMnm45N2JcPZ6fcaRRgY/events\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/holds/HL7ol64Qezs7DVaup1KqTHn2\", \n \"id\": \"WD7omMnm45N2JcPZ6fcaRRgY\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD7omMnm45N2JcPZ6fcaRRgY/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/accounts/CU7gMTGKh2yGHYn1lUxH9STS/cards/CC7iFRCb5AvLuZ9qzIF0VMmA\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W109-369-8530\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/debits/WD7omMnm45N2JcPZ6fcaRRgY\"\n }, \n \"description\": \"update this description\", \n \"events_uri\": \"/v1/refunds/RF7qwuLxprQJuVGf7sTAdwKc/events\", \n \"fee\": null, \n \"id\": \"RF7qwuLxprQJuVGf7sTAdwKc\", \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\": \"RF442-144-9327\", \n \"uri\": \"/v1/marketplaces/TEST-MP4K6K0PWGyPtXL4LZ42sQSb/refunds/RF7qwuLxprQJuVGf7sTAdwKc\"\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\": 2000, \n \"created_at\": \"2014-01-07T18:31:58.059107Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV7IMMa8PGy8obFm8g5fnvP1\", \n \"id\": \"RV7IMMa8PGy8obFm8g5fnvP1\", \n \"links\": {\n \"credit\": \"CR7HIdtAm4eFX1weOgiaRGQM\", \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\": \"RV172-960-7625\", \n \"updated_at\": \"2014-01-07T18:32:01.149860Z\"\n }\n ]\n}" + }, + "secret": "ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl" } \ No newline at end of file diff --git a/scenarios/_main.mako b/scenarios/_main.mako index 69bfcc9..650f5b8 100644 --- a/scenarios/_main.mako +++ b/scenarios/_main.mako @@ -34,10 +34,9 @@ import balanced %if api_location: -balanced.configure('${api_key}', root_url='${api_location}') -%else: -balanced.configure('${api_key}') +balanced.config.root_uri = ${api_location}' %endif +balanced.configure('${api_key}') diff --git a/scenarios/_template/_create/definition.mako b/scenarios/_mj/_template/_create/definition.mako similarity index 100% rename from scenarios/_template/_create/definition.mako rename to scenarios/_mj/_template/_create/definition.mako diff --git a/scenarios/_template/_delete/executable.py b/scenarios/_mj/_template/_create/executable.py similarity index 100% rename from scenarios/_template/_delete/executable.py rename to scenarios/_mj/_template/_create/executable.py diff --git a/scenarios/_mj/_template/_create/python.mako b/scenarios/_mj/_template/_create/python.mako new file mode 100644 index 0000000..b6d35ef --- /dev/null +++ b/scenarios/_mj/_template/_create/python.mako @@ -0,0 +1,6 @@ +% if mode == 'definition': +balanced.RESOURCE + +% else: + +% endif \ No newline at end of file diff --git a/scenarios/_template/_create/request.mako b/scenarios/_mj/_template/_create/request.mako similarity index 100% rename from scenarios/_template/_create/request.mako rename to scenarios/_mj/_template/_create/request.mako diff --git a/scenarios/_template/_delete/definition.mako b/scenarios/_mj/_template/_delete/definition.mako similarity index 100% rename from scenarios/_template/_delete/definition.mako rename to scenarios/_mj/_template/_delete/definition.mako diff --git a/scenarios/_template/_list/executable.py b/scenarios/_mj/_template/_delete/executable.py similarity index 100% rename from scenarios/_template/_list/executable.py rename to scenarios/_mj/_template/_delete/executable.py diff --git a/scenarios/_mj/_template/_delete/python.mako b/scenarios/_mj/_template/_delete/python.mako new file mode 100644 index 0000000..b3d0a94 --- /dev/null +++ b/scenarios/_mj/_template/_delete/python.mako @@ -0,0 +1,5 @@ +% if mode == 'definition': + +% else: + +% endif \ No newline at end of file diff --git a/scenarios/_template/_delete/request.mako b/scenarios/_mj/_template/_delete/request.mako similarity index 100% rename from scenarios/_template/_delete/request.mako rename to scenarios/_mj/_template/_delete/request.mako diff --git a/scenarios/_template/_list/definition.mako b/scenarios/_mj/_template/_list/definition.mako similarity index 100% rename from scenarios/_template/_list/definition.mako rename to scenarios/_mj/_template/_list/definition.mako diff --git a/scenarios/_template/_retrieve/executable.py b/scenarios/_mj/_template/_list/executable.py similarity index 100% rename from scenarios/_template/_retrieve/executable.py rename to scenarios/_mj/_template/_list/executable.py diff --git a/scenarios/_mj/_template/_list/python.mako b/scenarios/_mj/_template/_list/python.mako new file mode 100644 index 0000000..b3d0a94 --- /dev/null +++ b/scenarios/_mj/_template/_list/python.mako @@ -0,0 +1,5 @@ +% if mode == 'definition': + +% else: + +% endif \ No newline at end of file diff --git a/scenarios/_template/_list/request.mako b/scenarios/_mj/_template/_list/request.mako similarity index 100% rename from scenarios/_template/_list/request.mako rename to scenarios/_mj/_template/_list/request.mako diff --git a/scenarios/_template/_retrieve/definition.mako b/scenarios/_mj/_template/_retrieve/definition.mako similarity index 100% rename from scenarios/_template/_retrieve/definition.mako rename to scenarios/_mj/_template/_retrieve/definition.mako diff --git a/scenarios/_template/_update/executable.py b/scenarios/_mj/_template/_retrieve/executable.py similarity index 100% rename from scenarios/_template/_update/executable.py rename to scenarios/_mj/_template/_retrieve/executable.py diff --git a/scenarios/_mj/_template/_retrieve/python.mako b/scenarios/_mj/_template/_retrieve/python.mako new file mode 100644 index 0000000..b3d0a94 --- /dev/null +++ b/scenarios/_mj/_template/_retrieve/python.mako @@ -0,0 +1,5 @@ +% if mode == 'definition': + +% else: + +% endif \ No newline at end of file diff --git a/scenarios/_template/_retrieve/request.mako b/scenarios/_mj/_template/_retrieve/request.mako similarity index 100% rename from scenarios/_template/_retrieve/request.mako rename to scenarios/_mj/_template/_retrieve/request.mako diff --git a/scenarios/_template/_update/definition.mako b/scenarios/_mj/_template/_update/definition.mako similarity index 100% rename from scenarios/_template/_update/definition.mako rename to scenarios/_mj/_template/_update/definition.mako diff --git a/scenarios/_template/_delete/python.mako b/scenarios/_mj/_template/_update/executable.py similarity index 100% rename from scenarios/_template/_delete/python.mako rename to scenarios/_mj/_template/_update/executable.py diff --git a/scenarios/_mj/_template/_update/python.mako b/scenarios/_mj/_template/_update/python.mako new file mode 100644 index 0000000..b3d0a94 --- /dev/null +++ b/scenarios/_mj/_template/_update/python.mako @@ -0,0 +1,5 @@ +% if mode == 'definition': + +% else: + +% endif \ No newline at end of file diff --git a/scenarios/_template/_update/request.mako b/scenarios/_mj/_template/_update/request.mako similarity index 100% rename from scenarios/_template/_update/request.mako rename to scenarios/_mj/_template/_update/request.mako diff --git a/scenarios/_mj/api_key_create/definition.mako b/scenarios/_mj/api_key_create/definition.mako new file mode 100644 index 0000000..a66f6d1 --- /dev/null +++ b/scenarios/_mj/api_key_create/definition.mako @@ -0,0 +1 @@ +balanced.APIKey diff --git a/scenarios/_mj/api_key_create/executable.py b/scenarios/_mj/api_key_create/executable.py new file mode 100644 index 0000000..1682777 --- /dev/null +++ b/scenarios/_mj/api_key_create/executable.py @@ -0,0 +1,6 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +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 new file mode 100644 index 0000000..1726d56 --- /dev/null +++ b/scenarios/_mj/api_key_create/python.mako @@ -0,0 +1,11 @@ +% if mode == 'definition': +balanced.APIKey + +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +api_key = balanced.APIKey() +api_key.save() +% endif \ No newline at end of file diff --git a/scenarios/_mj/api_key_create/request.mako b/scenarios/_mj/api_key_create/request.mako new file mode 100644 index 0000000..014e90c --- /dev/null +++ b/scenarios/_mj/api_key_create/request.mako @@ -0,0 +1,5 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +api_key = balanced.APIKey() +api_key.save() diff --git a/scenarios/manage b/scenarios/_mj/manage similarity index 100% rename from scenarios/manage rename to scenarios/_mj/manage diff --git a/scenarios/_template/_create/executable.py b/scenarios/_template/_create/executable.py deleted file mode 100644 index b54e07d..0000000 --- a/scenarios/_template/_create/executable.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - -VARIABLE = balanced.RESOURCE() -VARIABLE.save() diff --git a/scenarios/_template/_create/python.mako b/scenarios/_template/_create/python.mako deleted file mode 100644 index 15a7699..0000000 --- a/scenarios/_template/_create/python.mako +++ /dev/null @@ -1,10 +0,0 @@ -% if mode == 'definition': - balanced.RESOURCE().save() -% else: - import balanced - - balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') - - VARIABLE = balanced.RESOURCE() - VARIABLE.save() -% endif diff --git a/scenarios/_template/_list/python.mako b/scenarios/_template/_list/python.mako deleted file mode 100644 index e69de29..0000000 diff --git a/scenarios/_template/_retrieve/python.mako b/scenarios/_template/_retrieve/python.mako deleted file mode 100644 index e69de29..0000000 diff --git a/scenarios/_template/_update/python.mako b/scenarios/_template/_update/python.mako deleted file mode 100644 index e69de29..0000000 diff --git a/scenarios/api_key_create/definition.mako b/scenarios/api_key_create/definition.mako index a66f6d1..fb01ec3 100644 --- a/scenarios/api_key_create/definition.mako +++ b/scenarios/api_key_create/definition.mako @@ -1 +1 @@ -balanced.APIKey +balanced.APIKey() \ No newline at end of file diff --git a/scenarios/api_key_create/executable.py b/scenarios/api_key_create/executable.py index 7f08b19..0d3999e 100644 --- a/scenarios/api_key_create/executable.py +++ b/scenarios/api_key_create/executable.py @@ -1,4 +1,5 @@ import balanced -api_key = balanced.APIKey() -api_key.save() +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +bank_account = 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 1df496c..77bdb9d 100644 --- a/scenarios/api_key_create/python.mako +++ b/scenarios/api_key_create/python.mako @@ -1,6 +1,9 @@ % if mode == 'definition': -balanced.APIKey - +balanced.APIKey() % else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +bank_account = balanced.APIKey().save() % endif \ No newline at end of file diff --git a/scenarios/api_key_create/request.mako b/scenarios/api_key_create/request.mako index 014e90c..4267d3f 100644 --- a/scenarios/api_key_create/request.mako +++ b/scenarios/api_key_create/request.mako @@ -1,5 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -api_key = balanced.APIKey() -api_key.save() +bank_account = balanced.APIKey().save() \ No newline at end of file diff --git a/scenarios/api_key_delete/definition.mako b/scenarios/api_key_delete/definition.mako new file mode 100644 index 0000000..5de1bd5 --- /dev/null +++ b/scenarios/api_key_delete/definition.mako @@ -0,0 +1 @@ +balanced.APIKey.delete() \ No newline at end of file diff --git a/scenarios/api_key_delete/executable.py b/scenarios/api_key_delete/executable.py new file mode 100644 index 0000000..6128386 --- /dev/null +++ b/scenarios/api_key_delete/executable.py @@ -0,0 +1,6 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +key = balanced.APIKey.find('/api_keys/AK66nZtNPbPw0Vnt3tmdVXpC') +key.delete() \ No newline at end of file diff --git a/scenarios/api_key_delete/python.mako b/scenarios/api_key_delete/python.mako new file mode 100644 index 0000000..241ada4 --- /dev/null +++ b/scenarios/api_key_delete/python.mako @@ -0,0 +1,10 @@ +% if mode == 'definition': +balanced.APIKey.delete() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +key = balanced.APIKey.find('/api_keys/AK66nZtNPbPw0Vnt3tmdVXpC') +key.delete() +% endif \ No newline at end of file diff --git a/scenarios/api_key_delete/request.mako b/scenarios/api_key_delete/request.mako new file mode 100644 index 0000000..1a7d6f0 --- /dev/null +++ b/scenarios/api_key_delete/request.mako @@ -0,0 +1,5 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +key = balanced.APIKey.find('${request['uri']}') +key.delete() \ No newline at end of file diff --git a/scenarios/api_key_list/definition.mako b/scenarios/api_key_list/definition.mako new file mode 100644 index 0000000..60b7721 --- /dev/null +++ b/scenarios/api_key_list/definition.mako @@ -0,0 +1 @@ +balanced.APIKey.query() \ No newline at end of file diff --git a/scenarios/api_key_list/executable.py b/scenarios/api_key_list/executable.py new file mode 100644 index 0000000..94481ca --- /dev/null +++ b/scenarios/api_key_list/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +keys = balanced.APIKey.query.all() \ No newline at end of file diff --git a/scenarios/api_key_list/python.mako b/scenarios/api_key_list/python.mako new file mode 100644 index 0000000..86ddff4 --- /dev/null +++ b/scenarios/api_key_list/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.APIKey.query() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +keys = balanced.APIKey.query.all() +% endif \ No newline at end of file diff --git a/scenarios/api_key_list/request.mako b/scenarios/api_key_list/request.mako new file mode 100644 index 0000000..e52ba61 --- /dev/null +++ b/scenarios/api_key_list/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +keys = balanced.APIKey.query.all() \ No newline at end of file diff --git a/scenarios/api_key_show/definition.mako b/scenarios/api_key_show/definition.mako new file mode 100644 index 0000000..c082965 --- /dev/null +++ b/scenarios/api_key_show/definition.mako @@ -0,0 +1 @@ +balanced.APIKey.find \ No newline at end of file diff --git a/scenarios/api_key_show/executable.py b/scenarios/api_key_show/executable.py new file mode 100644 index 0000000..6324e2e --- /dev/null +++ b/scenarios/api_key_show/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +key = balanced.APIKey.find('/api_keys/AK66nZtNPbPw0Vnt3tmdVXpC') \ No newline at end of file diff --git a/scenarios/api_key_show/python.mako b/scenarios/api_key_show/python.mako new file mode 100644 index 0000000..29dff91 --- /dev/null +++ b/scenarios/api_key_show/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.APIKey.find +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +key = balanced.APIKey.find('/api_keys/AK66nZtNPbPw0Vnt3tmdVXpC') +% endif \ No newline at end of file diff --git a/scenarios/api_key_show/request.mako b/scenarios/api_key_show/request.mako new file mode 100644 index 0000000..a5a8f8b --- /dev/null +++ b/scenarios/api_key_show/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +key = balanced.APIKey.find('${request['uri']}') \ No newline at end of file diff --git a/scenarios/bank_account_create/definition.mako b/scenarios/bank_account_create/definition.mako new file mode 100644 index 0000000..3091be6 --- /dev/null +++ b/scenarios/bank_account_create/definition.mako @@ -0,0 +1 @@ +balanced.BankAccount.save() \ No newline at end of file diff --git a/scenarios/bank_account_create/executable.py b/scenarios/bank_account_create/executable.py new file mode 100644 index 0000000..aeb2550 --- /dev/null +++ b/scenarios/bank_account_create/executable.py @@ -0,0 +1,10 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +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/scenarios/bank_account_create/python.mako b/scenarios/bank_account_create/python.mako new file mode 100644 index 0000000..38fd489 --- /dev/null +++ b/scenarios/bank_account_create/python.mako @@ -0,0 +1,14 @@ +% if mode == 'definition': +balanced.BankAccount.save() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +bank_account = balanced.BankAccount( + routing_number='121000358', + type='checking', + account_number='9900000001', + name='Johann Bernoulli' +).save() +% endif \ No newline at end of file diff --git a/scenarios/bank_account_create/request.mako b/scenarios/bank_account_create/request.mako new file mode 100644 index 0000000..0907906 --- /dev/null +++ b/scenarios/bank_account_create/request.mako @@ -0,0 +1,6 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +bank_account = balanced.BankAccount( + <% main.payload_expand(request['payload']) %> +).save() \ No newline at end of file diff --git a/scenarios/bank_account_credit/definition.mako b/scenarios/bank_account_credit/definition.mako new file mode 100644 index 0000000..ee4199a --- /dev/null +++ b/scenarios/bank_account_credit/definition.mako @@ -0,0 +1 @@ +balanced.BankAccount.credit() \ No newline at end of file diff --git a/scenarios/bank_account_credit/executable.py b/scenarios/bank_account_credit/executable.py new file mode 100644 index 0000000..6b68e3c --- /dev/null +++ b/scenarios/bank_account_credit/executable.py @@ -0,0 +1,8 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +bank_account = balanced.BankAccount.find('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS') +bank_account.credit( + amount=2000 +) \ No newline at end of file diff --git a/scenarios/bank_account_credit/python.mako b/scenarios/bank_account_credit/python.mako new file mode 100644 index 0000000..fc9e73d --- /dev/null +++ b/scenarios/bank_account_credit/python.mako @@ -0,0 +1,12 @@ +% if mode == 'definition': +balanced.BankAccount.credit() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +bank_account = balanced.BankAccount.find('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS') +bank_account.credit( + amount=2000 +) +% endif \ No newline at end of file diff --git a/scenarios/bank_account_credit/request.mako b/scenarios/bank_account_credit/request.mako new file mode 100644 index 0000000..5a6d0b1 --- /dev/null +++ b/scenarios/bank_account_credit/request.mako @@ -0,0 +1,7 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +bank_account = balanced.BankAccount.find('${request['bank_account_href']}') +bank_account.credit( + <% main.payload_expand(request['payload']) %> +) \ No newline at end of file diff --git a/scenarios/bank_account_debit/definition.mako b/scenarios/bank_account_debit/definition.mako new file mode 100644 index 0000000..f6b5ae2 --- /dev/null +++ b/scenarios/bank_account_debit/definition.mako @@ -0,0 +1 @@ +balanced.BankAccount.debit() \ No newline at end of file diff --git a/scenarios/bank_account_debit/executable.py b/scenarios/bank_account_debit/executable.py new file mode 100644 index 0000000..45eba13 --- /dev/null +++ b/scenarios/bank_account_debit/executable.py @@ -0,0 +1,10 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +bank_account = balanced.BankAccount.find('/bank_accounts/BA6b9fFSyfhg5xK51iCmPjNZ/debits') +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 new file mode 100644 index 0000000..00306ab --- /dev/null +++ b/scenarios/bank_account_debit/python.mako @@ -0,0 +1,14 @@ +% if mode == 'definition': +balanced.BankAccount.debit() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +bank_account = balanced.BankAccount.find('/bank_accounts/BA6b9fFSyfhg5xK51iCmPjNZ/debits') +bank_account.debit( + appears_on_statement_as='Statement text', + amount=5000, + description='Some descriptive text for the debit in the dashboard' +) +% endif \ No newline at end of file diff --git a/scenarios/bank_account_debit/request.mako b/scenarios/bank_account_debit/request.mako new file mode 100644 index 0000000..e2f20fa --- /dev/null +++ b/scenarios/bank_account_debit/request.mako @@ -0,0 +1,7 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +bank_account = balanced.BankAccount.find('${request['bank_account_href']}') +bank_account.debit( + <% main.payload_expand(request['payload']) %> +) \ No newline at end of file diff --git a/scenarios/bank_account_delete/definition.mako b/scenarios/bank_account_delete/definition.mako new file mode 100644 index 0000000..8923a9b --- /dev/null +++ b/scenarios/bank_account_delete/definition.mako @@ -0,0 +1 @@ +balanced.BankAccount.delete() \ No newline at end of file diff --git a/scenarios/bank_account_delete/executable.py b/scenarios/bank_account_delete/executable.py new file mode 100644 index 0000000..1aec771 --- /dev/null +++ b/scenarios/bank_account_delete/executable.py @@ -0,0 +1,6 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +bank_account = balanced.BankAccount.find('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS') +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 new file mode 100644 index 0000000..be5db9a --- /dev/null +++ b/scenarios/bank_account_delete/python.mako @@ -0,0 +1,10 @@ +% if mode == 'definition': +balanced.BankAccount.delete() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +bank_account = balanced.BankAccount.find('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS') +bank_account.delete() +% endif \ No newline at end of file diff --git a/scenarios/bank_account_delete/request.mako b/scenarios/bank_account_delete/request.mako new file mode 100644 index 0000000..3a0a10c --- /dev/null +++ b/scenarios/bank_account_delete/request.mako @@ -0,0 +1,5 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +bank_account = balanced.BankAccount.find('${request['uri']}') +bank_account.delete() \ No newline at end of file diff --git a/scenarios/bank_account_list/definition.mako b/scenarios/bank_account_list/definition.mako new file mode 100644 index 0000000..ed40953 --- /dev/null +++ b/scenarios/bank_account_list/definition.mako @@ -0,0 +1 @@ +balanced.BankAccount.query() \ No newline at end of file diff --git a/scenarios/bank_account_list/executable.py b/scenarios/bank_account_list/executable.py new file mode 100644 index 0000000..7d57131 --- /dev/null +++ b/scenarios/bank_account_list/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +bank_accounts = balanced.BankAccount.query.all() \ No newline at end of file diff --git a/scenarios/bank_account_list/python.mako b/scenarios/bank_account_list/python.mako new file mode 100644 index 0000000..95bd8c2 --- /dev/null +++ b/scenarios/bank_account_list/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.BankAccount.query() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +bank_accounts = balanced.BankAccount.query.all() +% endif \ No newline at end of file diff --git a/scenarios/bank_account_list/request.mako b/scenarios/bank_account_list/request.mako new file mode 100644 index 0000000..c5cd06e --- /dev/null +++ b/scenarios/bank_account_list/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +bank_accounts = balanced.BankAccount.query.all() \ No newline at end of file diff --git a/scenarios/bank_account_show/definition.mako b/scenarios/bank_account_show/definition.mako new file mode 100644 index 0000000..d531c20 --- /dev/null +++ b/scenarios/bank_account_show/definition.mako @@ -0,0 +1 @@ +balanced.BankAccount.find \ No newline at end of file diff --git a/scenarios/bank_account_show/executable.py b/scenarios/bank_account_show/executable.py new file mode 100644 index 0000000..3a031e9 --- /dev/null +++ b/scenarios/bank_account_show/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +bank_account = balanced.BankAccount.find('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS') \ No newline at end of file diff --git a/scenarios/bank_account_show/python.mako b/scenarios/bank_account_show/python.mako new file mode 100644 index 0000000..d9c58b1 --- /dev/null +++ b/scenarios/bank_account_show/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.BankAccount.find +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +bank_account = balanced.BankAccount.find('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS') +% endif \ No newline at end of file diff --git a/scenarios/bank_account_show/request.mako b/scenarios/bank_account_show/request.mako new file mode 100644 index 0000000..24daabe --- /dev/null +++ b/scenarios/bank_account_show/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +bank_account = balanced.BankAccount.find('${request['uri']}') \ No newline at end of file diff --git a/scenarios/bank_account_update/definition.mako b/scenarios/bank_account_update/definition.mako new file mode 100644 index 0000000..f6b5ae2 --- /dev/null +++ b/scenarios/bank_account_update/definition.mako @@ -0,0 +1 @@ +balanced.BankAccount.debit() \ No newline at end of file diff --git a/scenarios/bank_account_update/executable.py b/scenarios/bank_account_update/executable.py new file mode 100644 index 0000000..cd0645f --- /dev/null +++ b/scenarios/bank_account_update/executable.py @@ -0,0 +1,11 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +bank_account = balanced.BankAccount.find('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS') +bank_account.meta = { + 'twitter.id'='1234987650', + 'facebook.user_id'='0192837465', + 'my-own-customer-id'='12345' +} +bank_account.save() \ No newline at end of file diff --git a/scenarios/bank_account_update/python.mako b/scenarios/bank_account_update/python.mako new file mode 100644 index 0000000..7fcf459 --- /dev/null +++ b/scenarios/bank_account_update/python.mako @@ -0,0 +1,15 @@ +% if mode == 'definition': +balanced.BankAccount.debit() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +bank_account = balanced.BankAccount.find('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS') +bank_account.meta = { + 'twitter.id'='1234987650', + 'facebook.user_id'='0192837465', + 'my-own-customer-id'='12345' +} +bank_account.save() +% endif \ No newline at end of file diff --git a/scenarios/bank_account_update/request.mako b/scenarios/bank_account_update/request.mako new file mode 100644 index 0000000..a97d15b --- /dev/null +++ b/scenarios/bank_account_update/request.mako @@ -0,0 +1,10 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +bank_account = balanced.BankAccount.find('${request['uri']}') +bank_account.meta = { + 'twitter.id'='1234987650', + 'facebook.user_id'='0192837465', + 'my-own-customer-id'='12345' +} +bank_account.save() \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/definition.mako b/scenarios/bank_account_verification_create/definition.mako new file mode 100644 index 0000000..93abd48 --- /dev/null +++ b/scenarios/bank_account_verification_create/definition.mako @@ -0,0 +1 @@ +balanced.Verification().save() \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/executable.py b/scenarios/bank_account_verification_create/executable.py new file mode 100644 index 0000000..eb82825 --- /dev/null +++ b/scenarios/bank_account_verification_create/executable.py @@ -0,0 +1,6 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +bank_account = balanced.BankAccount.find('/bank_accounts/BA6b9fFSyfhg5xK51iCmPjNZ') +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 new file mode 100644 index 0000000..8daeb78 --- /dev/null +++ b/scenarios/bank_account_verification_create/python.mako @@ -0,0 +1,10 @@ +% if mode == 'definition': +balanced.Verification().save() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +bank_account = balanced.BankAccount.find('/bank_accounts/BA6b9fFSyfhg5xK51iCmPjNZ') +verification = bank_account.verify() +% endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/request.mako b/scenarios/bank_account_verification_create/request.mako new file mode 100644 index 0000000..6df8918 --- /dev/null +++ b/scenarios/bank_account_verification_create/request.mako @@ -0,0 +1,5 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +bank_account = balanced.BankAccount.find('${request['bank_account_uri']}') +verification = bank_account.verify() \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/definition.mako b/scenarios/bank_account_verification_show/definition.mako new file mode 100644 index 0000000..97e1efb --- /dev/null +++ b/scenarios/bank_account_verification_show/definition.mako @@ -0,0 +1 @@ +balanced.Verification.find \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/executable.py b/scenarios/bank_account_verification_show/executable.py new file mode 100644 index 0000000..dc0bdea --- /dev/null +++ b/scenarios/bank_account_verification_show/executable.py @@ -0,0 +1,4 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +verification = balanced.BankAccountVerification.find('/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg') \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/python.mako b/scenarios/bank_account_verification_show/python.mako new file mode 100644 index 0000000..df86874 --- /dev/null +++ b/scenarios/bank_account_verification_show/python.mako @@ -0,0 +1,8 @@ +% if mode == 'definition': +balanced.Verification.find +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +verification = balanced.BankAccountVerification.find('/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg') +% endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/request.mako b/scenarios/bank_account_verification_show/request.mako new file mode 100644 index 0000000..a358fe7 --- /dev/null +++ b/scenarios/bank_account_verification_show/request.mako @@ -0,0 +1,3 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> +verification = balanced.BankAccountVerification.find('${request['uri']}') \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/definition.mako b/scenarios/bank_account_verification_update/definition.mako new file mode 100644 index 0000000..985e18f --- /dev/null +++ b/scenarios/bank_account_verification_update/definition.mako @@ -0,0 +1 @@ +balanced.Verification.save \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/executable.py b/scenarios/bank_account_verification_update/executable.py new file mode 100644 index 0000000..fa183a9 --- /dev/null +++ b/scenarios/bank_account_verification_update/executable.py @@ -0,0 +1,7 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +verification = balanced.BankAccountVerification.find('/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg') +verification.amount_1 = 1 +verification.amount_2 = 1 +verification.save \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/python.mako b/scenarios/bank_account_verification_update/python.mako new file mode 100644 index 0000000..89dcac3 --- /dev/null +++ b/scenarios/bank_account_verification_update/python.mako @@ -0,0 +1,11 @@ +% if mode == 'definition': +balanced.Verification.save +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +verification = balanced.BankAccountVerification.find('/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg') +verification.amount_1 = 1 +verification.amount_2 = 1 +verification.save +% endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/request.mako b/scenarios/bank_account_verification_update/request.mako new file mode 100644 index 0000000..4834e6e --- /dev/null +++ b/scenarios/bank_account_verification_update/request.mako @@ -0,0 +1,6 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> +verification = balanced.BankAccountVerification.find('${request['uri']}') +verification.amount_1 = 1 +verification.amount_2 = 1 +verification.save \ No newline at end of file diff --git a/scenarios/callback_create/definition.mako b/scenarios/callback_create/definition.mako new file mode 100644 index 0000000..b00979e --- /dev/null +++ b/scenarios/callback_create/definition.mako @@ -0,0 +1 @@ +balanced.Callback \ No newline at end of file diff --git a/scenarios/callback_create/executable.py b/scenarios/callback_create/executable.py new file mode 100644 index 0000000..1177f28 --- /dev/null +++ b/scenarios/callback_create/executable.py @@ -0,0 +1,7 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +callback = balanced.Callback( + url='http://www.example.com/callback' +).save() \ No newline at end of file diff --git a/scenarios/callback_create/python.mako b/scenarios/callback_create/python.mako new file mode 100644 index 0000000..3df66c4 --- /dev/null +++ b/scenarios/callback_create/python.mako @@ -0,0 +1,11 @@ +% if mode == 'definition': +balanced.Callback +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +callback = balanced.Callback( + url='http://www.example.com/callback' +).save() +% endif \ No newline at end of file diff --git a/scenarios/callback_create/request.mako b/scenarios/callback_create/request.mako new file mode 100644 index 0000000..931797d --- /dev/null +++ b/scenarios/callback_create/request.mako @@ -0,0 +1,6 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +callback = balanced.Callback( + <% main.payload_expand(request['payload']) %> +).save() \ No newline at end of file diff --git a/scenarios/callback_delete/definition.mako b/scenarios/callback_delete/definition.mako new file mode 100644 index 0000000..a1ab3b4 --- /dev/null +++ b/scenarios/callback_delete/definition.mako @@ -0,0 +1 @@ +Callback.unstore \ No newline at end of file diff --git a/scenarios/callback_delete/executable.py b/scenarios/callback_delete/executable.py new file mode 100644 index 0000000..8cba691 --- /dev/null +++ b/scenarios/callback_delete/executable.py @@ -0,0 +1,6 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +callback = balanced.Callback.find('/callbacks/CB6sQjFwENynxbStHgUUWign') +callback.unstore() \ No newline at end of file diff --git a/scenarios/callback_delete/python.mako b/scenarios/callback_delete/python.mako new file mode 100644 index 0000000..ecd813c --- /dev/null +++ b/scenarios/callback_delete/python.mako @@ -0,0 +1,10 @@ +% if mode == 'definition': +Callback.unstore +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +callback = balanced.Callback.find('/callbacks/CB6sQjFwENynxbStHgUUWign') +callback.unstore() +% endif \ No newline at end of file diff --git a/scenarios/callback_delete/request.mako b/scenarios/callback_delete/request.mako new file mode 100644 index 0000000..3000856 --- /dev/null +++ b/scenarios/callback_delete/request.mako @@ -0,0 +1,5 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +callback = balanced.Callback.find('${request['uri']}') +callback.unstore() \ No newline at end of file diff --git a/scenarios/callback_list/definition.mako b/scenarios/callback_list/definition.mako new file mode 100644 index 0000000..f8ea1c2 --- /dev/null +++ b/scenarios/callback_list/definition.mako @@ -0,0 +1 @@ +balanced.Callback.query.all \ No newline at end of file diff --git a/scenarios/callback_list/executable.py b/scenarios/callback_list/executable.py new file mode 100644 index 0000000..115239f --- /dev/null +++ b/scenarios/callback_list/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +callbacks = balanced.Callback.query.all() \ No newline at end of file diff --git a/scenarios/callback_list/python.mako b/scenarios/callback_list/python.mako new file mode 100644 index 0000000..98cc522 --- /dev/null +++ b/scenarios/callback_list/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.Callback.query.all +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +callbacks = balanced.Callback.query.all() +% endif \ No newline at end of file diff --git a/scenarios/callback_list/request.mako b/scenarios/callback_list/request.mako new file mode 100644 index 0000000..1a5e343 --- /dev/null +++ b/scenarios/callback_list/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +callbacks = balanced.Callback.query.all() \ No newline at end of file diff --git a/scenarios/callback_show/definition.mako b/scenarios/callback_show/definition.mako new file mode 100644 index 0000000..6f75e8f --- /dev/null +++ b/scenarios/callback_show/definition.mako @@ -0,0 +1 @@ +balanced.Callback.find \ No newline at end of file diff --git a/scenarios/callback_show/executable.py b/scenarios/callback_show/executable.py new file mode 100644 index 0000000..7c24789 --- /dev/null +++ b/scenarios/callback_show/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +callback = balanced.Callback.find('/callbacks/CB6sQjFwENynxbStHgUUWign') \ No newline at end of file diff --git a/scenarios/callback_show/python.mako b/scenarios/callback_show/python.mako new file mode 100644 index 0000000..37f5afd --- /dev/null +++ b/scenarios/callback_show/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.Callback.find +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +callback = balanced.Callback.find('/callbacks/CB6sQjFwENynxbStHgUUWign') +% endif \ No newline at end of file diff --git a/scenarios/callback_show/request.mako b/scenarios/callback_show/request.mako new file mode 100644 index 0000000..77f5c5e --- /dev/null +++ b/scenarios/callback_show/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +callback = balanced.Callback.find('${request['uri']}') \ No newline at end of file diff --git a/scenarios/card_create/definition.mako b/scenarios/card_create/definition.mako new file mode 100644 index 0000000..638c1d2 --- /dev/null +++ b/scenarios/card_create/definition.mako @@ -0,0 +1 @@ +balanced.Card.save() \ No newline at end of file diff --git a/scenarios/card_create/executable.py b/scenarios/card_create/executable.py new file mode 100644 index 0000000..980b7a6 --- /dev/null +++ b/scenarios/card_create/executable.py @@ -0,0 +1,10 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +card = balanced.Card( + 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 new file mode 100644 index 0000000..3ac087a --- /dev/null +++ b/scenarios/card_create/python.mako @@ -0,0 +1,14 @@ +% if mode == 'definition': +balanced.Card.save() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +card = balanced.Card( + expiration_month='12', + security_code='123', + number='5105105105105100', + expiration_year='2020' +).save() +% endif \ No newline at end of file diff --git a/scenarios/card_create/request.mako b/scenarios/card_create/request.mako new file mode 100644 index 0000000..bae039b --- /dev/null +++ b/scenarios/card_create/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/definition.mako b/scenarios/card_debit/definition.mako new file mode 100644 index 0000000..575ab4d --- /dev/null +++ b/scenarios/card_debit/definition.mako @@ -0,0 +1 @@ +balanced.Card.debit() \ No newline at end of file diff --git a/scenarios/card_debit/executable.py b/scenarios/card_debit/executable.py new file mode 100644 index 0000000..87a9e3c --- /dev/null +++ b/scenarios/card_debit/executable.py @@ -0,0 +1,10 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +card = balanced.Card.find('/cards/CC6MQlq1xIGRLEMBWQcD4Dcr') +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/python.mako b/scenarios/card_debit/python.mako new file mode 100644 index 0000000..8c787e9 --- /dev/null +++ b/scenarios/card_debit/python.mako @@ -0,0 +1,14 @@ +% if mode == 'definition': +balanced.Card.debit() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +card = balanced.Card.find('/cards/CC6MQlq1xIGRLEMBWQcD4Dcr') +card.debit( + appears_on_statement_as='Statement text', + amount=5000, + description='Some descriptive text for the debit in the dashboard' +) +% endif \ No newline at end of file diff --git a/scenarios/card_debit/request.mako b/scenarios/card_debit/request.mako new file mode 100644 index 0000000..82c9b4e --- /dev/null +++ b/scenarios/card_debit/request.mako @@ -0,0 +1,7 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +card = balanced.Card.find('${request['card_href']}') +card.debit( + <% main.payload_expand(request['payload']) %> +) \ No newline at end of file diff --git a/scenarios/card_delete/definition.mako b/scenarios/card_delete/definition.mako new file mode 100644 index 0000000..52e2dee --- /dev/null +++ b/scenarios/card_delete/definition.mako @@ -0,0 +1 @@ +balanced.Card.unstore() \ No newline at end of file diff --git a/scenarios/card_delete/executable.py b/scenarios/card_delete/executable.py new file mode 100644 index 0000000..8f2087f --- /dev/null +++ b/scenarios/card_delete/executable.py @@ -0,0 +1,6 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +card = balanced.Card.find('/cards/CC6MQlq1xIGRLEMBWQcD4Dcr') +card.unstore() \ No newline at end of file diff --git a/scenarios/card_delete/python.mako b/scenarios/card_delete/python.mako new file mode 100644 index 0000000..013904f --- /dev/null +++ b/scenarios/card_delete/python.mako @@ -0,0 +1,10 @@ +% if mode == 'definition': +balanced.Card.unstore() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +card = balanced.Card.find('/cards/CC6MQlq1xIGRLEMBWQcD4Dcr') +card.unstore() +% endif \ No newline at end of file diff --git a/scenarios/card_delete/request.mako b/scenarios/card_delete/request.mako new file mode 100644 index 0000000..19db77d --- /dev/null +++ b/scenarios/card_delete/request.mako @@ -0,0 +1,5 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +card = balanced.Card.find('${request['uri']}') +card.unstore() \ No newline at end of file diff --git a/scenarios/card_hold_capture/definition.mako b/scenarios/card_hold_capture/definition.mako new file mode 100644 index 0000000..06f7ceb --- /dev/null +++ b/scenarios/card_hold_capture/definition.mako @@ -0,0 +1 @@ +balanced.CardHold.capture() \ No newline at end of file diff --git a/scenarios/card_hold_capture/executable.py b/scenarios/card_hold_capture/executable.py new file mode 100644 index 0000000..1f640c2 --- /dev/null +++ b/scenarios/card_hold_capture/executable.py @@ -0,0 +1,9 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +card_hold = balanced.CardHold.find('/card_holds/HL6za54jlFLUAvEqDEULOwXC') +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/scenarios/card_hold_capture/python.mako b/scenarios/card_hold_capture/python.mako new file mode 100644 index 0000000..116d79c --- /dev/null +++ b/scenarios/card_hold_capture/python.mako @@ -0,0 +1,13 @@ +% if mode == 'definition': +balanced.CardHold.capture() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +card_hold = balanced.CardHold.find('/card_holds/HL6za54jlFLUAvEqDEULOwXC') +debit = card_hold.capture( + appears_on_statement_as='ShowsUpOnStmt', + description='Some descriptive text for the debit in the dashboard' +) +% endif \ No newline at end of file diff --git a/scenarios/card_hold_capture/request.mako b/scenarios/card_hold_capture/request.mako new file mode 100644 index 0000000..a74db3c --- /dev/null +++ b/scenarios/card_hold_capture/request.mako @@ -0,0 +1,7 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +card_hold = balanced.CardHold.find('${request['card_hold_href']}') +debit = card_hold.capture( + <% main.payload_expand(request['payload']) %> +) \ No newline at end of file diff --git a/scenarios/card_hold_create/definition.mako b/scenarios/card_hold_create/definition.mako new file mode 100644 index 0000000..02481cd --- /dev/null +++ b/scenarios/card_hold_create/definition.mako @@ -0,0 +1 @@ +balanced.Card.hold() \ No newline at end of file diff --git a/scenarios/card_hold_create/executable.py b/scenarios/card_hold_create/executable.py new file mode 100644 index 0000000..a5ada33 --- /dev/null +++ b/scenarios/card_hold_create/executable.py @@ -0,0 +1,9 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +card = balanced.Card.find('/cards/CC6y7qpkXsrutTV0z1p4SbhI') +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/scenarios/card_hold_create/python.mako b/scenarios/card_hold_create/python.mako new file mode 100644 index 0000000..911fdb8 --- /dev/null +++ b/scenarios/card_hold_create/python.mako @@ -0,0 +1,13 @@ +% if mode == 'definition': +balanced.Card.hold() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +card = balanced.Card.find('/cards/CC6y7qpkXsrutTV0z1p4SbhI') +card_hold = card.hold( + amount=5000, + description='Some descriptive text for the debit in the dashboard' +) +% endif \ No newline at end of file diff --git a/scenarios/card_hold_create/request.mako b/scenarios/card_hold_create/request.mako new file mode 100644 index 0000000..bdf5d9e --- /dev/null +++ b/scenarios/card_hold_create/request.mako @@ -0,0 +1,7 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +card = balanced.Card.find('${request['card_href']}') +card_hold = card.hold( + <% main.payload_expand(request['payload']) %> +) \ No newline at end of file diff --git a/scenarios/card_hold_list/definition.mako b/scenarios/card_hold_list/definition.mako new file mode 100644 index 0000000..5bd3cba --- /dev/null +++ b/scenarios/card_hold_list/definition.mako @@ -0,0 +1 @@ +balanced.CardHold.query() \ No newline at end of file diff --git a/scenarios/card_hold_list/executable.py b/scenarios/card_hold_list/executable.py new file mode 100644 index 0000000..0c5f44d --- /dev/null +++ b/scenarios/card_hold_list/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +card_holds = balanced.CardHold.query.all() \ No newline at end of file diff --git a/scenarios/card_hold_list/python.mako b/scenarios/card_hold_list/python.mako new file mode 100644 index 0000000..0d92915 --- /dev/null +++ b/scenarios/card_hold_list/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.CardHold.query() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +card_holds = balanced.CardHold.query.all() +% endif \ No newline at end of file diff --git a/scenarios/card_hold_list/request.mako b/scenarios/card_hold_list/request.mako new file mode 100644 index 0000000..97a3d0e --- /dev/null +++ b/scenarios/card_hold_list/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +card_holds = balanced.CardHold.query.all() \ No newline at end of file diff --git a/scenarios/card_hold_show/definition.mako b/scenarios/card_hold_show/definition.mako new file mode 100644 index 0000000..6d5c209 --- /dev/null +++ b/scenarios/card_hold_show/definition.mako @@ -0,0 +1 @@ +balanced.CardHold.find \ No newline at end of file diff --git a/scenarios/card_hold_show/executable.py b/scenarios/card_hold_show/executable.py new file mode 100644 index 0000000..fd73f6f --- /dev/null +++ b/scenarios/card_hold_show/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +card_hold = balanced.CardHold.find('/card_holds/HL6za54jlFLUAvEqDEULOwXC') \ No newline at end of file diff --git a/scenarios/card_hold_show/python.mako b/scenarios/card_hold_show/python.mako new file mode 100644 index 0000000..e027c6f --- /dev/null +++ b/scenarios/card_hold_show/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.CardHold.find +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +card_hold = balanced.CardHold.find('/card_holds/HL6za54jlFLUAvEqDEULOwXC') +% endif \ No newline at end of file diff --git a/scenarios/card_hold_show/request.mako b/scenarios/card_hold_show/request.mako new file mode 100644 index 0000000..83fb7cf --- /dev/null +++ b/scenarios/card_hold_show/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +card_hold = balanced.CardHold.find('${request['uri']}') \ No newline at end of file diff --git a/scenarios/card_hold_update/definition.mako b/scenarios/card_hold_update/definition.mako new file mode 100644 index 0000000..29da25d --- /dev/null +++ b/scenarios/card_hold_update/definition.mako @@ -0,0 +1 @@ +balanced.CardHold.save() \ No newline at end of file diff --git a/scenarios/card_hold_update/executable.py b/scenarios/card_hold_update/executable.py new file mode 100644 index 0000000..87a14ac --- /dev/null +++ b/scenarios/card_hold_update/executable.py @@ -0,0 +1,11 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +card_hold = balanced.CardHold.find('/card_holds/HL6za54jlFLUAvEqDEULOwXC') +card_hold.description = 'update this description' +card_hold.meta = { + 'holding.for': 'user1', + 'meaningful.key': 'some.value', +} +card_hold.save() \ No newline at end of file diff --git a/scenarios/card_hold_update/python.mako b/scenarios/card_hold_update/python.mako new file mode 100644 index 0000000..17901d0 --- /dev/null +++ b/scenarios/card_hold_update/python.mako @@ -0,0 +1,15 @@ +% if mode == 'definition': +balanced.CardHold.save() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +card_hold = balanced.CardHold.find('/card_holds/HL6za54jlFLUAvEqDEULOwXC') +card_hold.description = 'update this description' +card_hold.meta = { + 'holding.for': 'user1', + 'meaningful.key': 'some.value', +} +card_hold.save() +% endif \ No newline at end of file diff --git a/scenarios/card_hold_update/request.mako b/scenarios/card_hold_update/request.mako new file mode 100644 index 0000000..0192eb5 --- /dev/null +++ b/scenarios/card_hold_update/request.mako @@ -0,0 +1,10 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +card_hold = balanced.CardHold.find('${request['uri']}') +card_hold.description = '${request['payload']['description']}' +card_hold.meta = { + 'holding.for': 'user1', + 'meaningful.key': 'some.value', +} +card_hold.save() \ No newline at end of file diff --git a/scenarios/card_hold_void/definition.mako b/scenarios/card_hold_void/definition.mako new file mode 100644 index 0000000..8198cc7 --- /dev/null +++ b/scenarios/card_hold_void/definition.mako @@ -0,0 +1 @@ +balanced.CardHold.void() \ No newline at end of file diff --git a/scenarios/card_hold_void/executable.py b/scenarios/card_hold_void/executable.py new file mode 100644 index 0000000..f02cc48 --- /dev/null +++ b/scenarios/card_hold_void/executable.py @@ -0,0 +1,6 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +card_hold = balanced.CardHold.find('/card_holds/HL6IeshtYufyq1dm9nnEdRHA') +card_hold.void() \ No newline at end of file diff --git a/scenarios/card_hold_void/python.mako b/scenarios/card_hold_void/python.mako new file mode 100644 index 0000000..cbfc50c --- /dev/null +++ b/scenarios/card_hold_void/python.mako @@ -0,0 +1,10 @@ +% if mode == 'definition': +balanced.CardHold.void() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +card_hold = balanced.CardHold.find('/card_holds/HL6IeshtYufyq1dm9nnEdRHA') +card_hold.void() +% endif \ No newline at end of file diff --git a/scenarios/card_hold_void/request.mako b/scenarios/card_hold_void/request.mako new file mode 100644 index 0000000..a087d5d --- /dev/null +++ b/scenarios/card_hold_void/request.mako @@ -0,0 +1,5 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +card_hold = balanced.CardHold.find('${request['uri']}') +card_hold.void() \ No newline at end of file diff --git a/scenarios/card_list/definition.mako b/scenarios/card_list/definition.mako new file mode 100644 index 0000000..967ae52 --- /dev/null +++ b/scenarios/card_list/definition.mako @@ -0,0 +1 @@ +balanced.Card.query() \ No newline at end of file diff --git a/scenarios/card_list/executable.py b/scenarios/card_list/executable.py new file mode 100644 index 0000000..219c3a2 --- /dev/null +++ b/scenarios/card_list/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +cards = balanced.Card.query.all(); \ No newline at end of file diff --git a/scenarios/card_list/python.mako b/scenarios/card_list/python.mako new file mode 100644 index 0000000..a5afebb --- /dev/null +++ b/scenarios/card_list/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.Card.query() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +cards = balanced.Card.query.all(); +% endif \ No newline at end of file diff --git a/scenarios/card_list/request.mako b/scenarios/card_list/request.mako new file mode 100644 index 0000000..f8fea8d --- /dev/null +++ b/scenarios/card_list/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +cards = balanced.Card.query.all(); \ No newline at end of file diff --git a/scenarios/card_show/definition.mako b/scenarios/card_show/definition.mako new file mode 100644 index 0000000..e761ee6 --- /dev/null +++ b/scenarios/card_show/definition.mako @@ -0,0 +1 @@ +balanced.Card.find \ No newline at end of file diff --git a/scenarios/card_show/executable.py b/scenarios/card_show/executable.py new file mode 100644 index 0000000..fe87d55 --- /dev/null +++ b/scenarios/card_show/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +card = balanced.Card.find('/cards/CC6MQlq1xIGRLEMBWQcD4Dcr') \ No newline at end of file diff --git a/scenarios/card_show/python.mako b/scenarios/card_show/python.mako new file mode 100644 index 0000000..5e72320 --- /dev/null +++ b/scenarios/card_show/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.Card.find +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +card = balanced.Card.find('/cards/CC6MQlq1xIGRLEMBWQcD4Dcr') +% endif \ No newline at end of file diff --git a/scenarios/card_show/request.mako b/scenarios/card_show/request.mako new file mode 100644 index 0000000..3821f1f --- /dev/null +++ b/scenarios/card_show/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +card = balanced.Card.find('${request['uri']}') \ No newline at end of file diff --git a/scenarios/card_update/definition.mako b/scenarios/card_update/definition.mako new file mode 100644 index 0000000..638c1d2 --- /dev/null +++ b/scenarios/card_update/definition.mako @@ -0,0 +1 @@ +balanced.Card.save() \ No newline at end of file diff --git a/scenarios/card_update/executable.py b/scenarios/card_update/executable.py new file mode 100644 index 0000000..caa02fe --- /dev/null +++ b/scenarios/card_update/executable.py @@ -0,0 +1,11 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +card = balanced.Card.find('/cards/CC6MQlq1xIGRLEMBWQcD4Dcr') +card.meta = { + 'twitter.id': '1234987650', + 'facebook.user_id': '0192837465', + 'my-own-customer-id': '12345' +} +card.save() \ No newline at end of file diff --git a/scenarios/card_update/python.mako b/scenarios/card_update/python.mako new file mode 100644 index 0000000..7e7d462 --- /dev/null +++ b/scenarios/card_update/python.mako @@ -0,0 +1,15 @@ +% if mode == 'definition': +balanced.Card.save() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +card = balanced.Card.find('/cards/CC6MQlq1xIGRLEMBWQcD4Dcr') +card.meta = { + 'twitter.id': '1234987650', + 'facebook.user_id': '0192837465', + 'my-own-customer-id': '12345' +} +card.save() +% endif \ No newline at end of file diff --git a/scenarios/card_update/request.mako b/scenarios/card_update/request.mako new file mode 100644 index 0000000..5dfade6 --- /dev/null +++ b/scenarios/card_update/request.mako @@ -0,0 +1,10 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +card = balanced.Card.find('${request['uri']}') +card.meta = { + 'twitter.id': '1234987650', + 'facebook.user_id': '0192837465', + 'my-own-customer-id': '12345' +} +card.save() \ No newline at end of file diff --git a/scenarios/credit_list/definition.mako b/scenarios/credit_list/definition.mako new file mode 100644 index 0000000..e70700d --- /dev/null +++ b/scenarios/credit_list/definition.mako @@ -0,0 +1 @@ +balanced.Credit.query() \ No newline at end of file diff --git a/scenarios/credit_list/executable.py b/scenarios/credit_list/executable.py new file mode 100644 index 0000000..f6b31cc --- /dev/null +++ b/scenarios/credit_list/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +credits = balanced.Credit.query.all() \ No newline at end of file diff --git a/scenarios/credit_list/python.mako b/scenarios/credit_list/python.mako new file mode 100644 index 0000000..0eeb162 --- /dev/null +++ b/scenarios/credit_list/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.Credit.query() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +credits = balanced.Credit.query.all() +% endif \ No newline at end of file diff --git a/scenarios/credit_list/request.mako b/scenarios/credit_list/request.mako new file mode 100644 index 0000000..55eb938 --- /dev/null +++ b/scenarios/credit_list/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +credits = balanced.Credit.query.all() \ No newline at end of file diff --git a/scenarios/credit_list_bank_account/definition.mako b/scenarios/credit_list_bank_account/definition.mako new file mode 100644 index 0000000..9ea8870 --- /dev/null +++ b/scenarios/credit_list_bank_account/definition.mako @@ -0,0 +1 @@ +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 new file mode 100644 index 0000000..5e49301 --- /dev/null +++ b/scenarios/credit_list_bank_account/executable.py @@ -0,0 +1,6 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +bank_account = balanced.BankAccount.find('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS/credits') +credits = bank_account.credits.all() \ No newline at end of file diff --git a/scenarios/credit_list_bank_account/python.mako b/scenarios/credit_list_bank_account/python.mako new file mode 100644 index 0000000..4a0eac7 --- /dev/null +++ b/scenarios/credit_list_bank_account/python.mako @@ -0,0 +1,10 @@ +% if mode == 'definition': +balanced.BankAccount.credits +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +bank_account = balanced.BankAccount.find('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS/credits') +credits = bank_account.credits.all() +% 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 new file mode 100644 index 0000000..b2a213f --- /dev/null +++ b/scenarios/credit_list_bank_account/request.mako @@ -0,0 +1,5 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +bank_account = balanced.BankAccount.find('${request['uri']}') +credits = bank_account.credits.all() \ No newline at end of file diff --git a/scenarios/credit_show/definition.mako b/scenarios/credit_show/definition.mako new file mode 100644 index 0000000..816c212 --- /dev/null +++ b/scenarios/credit_show/definition.mako @@ -0,0 +1 @@ +balanced.Credit.find() \ No newline at end of file diff --git a/scenarios/credit_show/executable.py b/scenarios/credit_show/executable.py new file mode 100644 index 0000000..eae3573 --- /dev/null +++ b/scenarios/credit_show/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +credit = balanced.Credit.find('/credits/CR6YTbjFOeoK78NdjiGsCgxo') \ No newline at end of file diff --git a/scenarios/credit_show/python.mako b/scenarios/credit_show/python.mako new file mode 100644 index 0000000..53afd90 --- /dev/null +++ b/scenarios/credit_show/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.Credit.find() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +credit = balanced.Credit.find('/credits/CR6YTbjFOeoK78NdjiGsCgxo') +% endif \ No newline at end of file diff --git a/scenarios/credit_show/request.mako b/scenarios/credit_show/request.mako new file mode 100644 index 0000000..aeb0587 --- /dev/null +++ b/scenarios/credit_show/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +credit = balanced.Credit.find('${request['uri']}') \ No newline at end of file diff --git a/scenarios/credit_update/definition.mako b/scenarios/credit_update/definition.mako new file mode 100644 index 0000000..67abe6c --- /dev/null +++ b/scenarios/credit_update/definition.mako @@ -0,0 +1 @@ +balanced.Credit.save() \ No newline at end of file diff --git a/scenarios/credit_update/executable.py b/scenarios/credit_update/executable.py new file mode 100644 index 0000000..ad98d19 --- /dev/null +++ b/scenarios/credit_update/executable.py @@ -0,0 +1,11 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +credit = balanced.Credit.find('/credits/CR6YTbjFOeoK78NdjiGsCgxo') +credit.meta = { + 'twitter.id': '1234987650', + 'facebook.user_id': '0192837465', + 'my-own-customer-id': '12345' +} +credit.save() \ No newline at end of file diff --git a/scenarios/credit_update/python.mako b/scenarios/credit_update/python.mako new file mode 100644 index 0000000..cbc12a2 --- /dev/null +++ b/scenarios/credit_update/python.mako @@ -0,0 +1,15 @@ +% if mode == 'definition': +balanced.Credit.save() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +credit = balanced.Credit.find('/credits/CR6YTbjFOeoK78NdjiGsCgxo') +credit.meta = { + 'twitter.id': '1234987650', + 'facebook.user_id': '0192837465', + 'my-own-customer-id': '12345' +} +credit.save() +% endif \ No newline at end of file diff --git a/scenarios/credit_update/request.mako b/scenarios/credit_update/request.mako new file mode 100644 index 0000000..2c55142 --- /dev/null +++ b/scenarios/credit_update/request.mako @@ -0,0 +1,10 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +credit = balanced.Credit.find('${request['uri']}') +credit.meta = { + 'twitter.id': '1234987650', + 'facebook.user_id': '0192837465', + 'my-own-customer-id': '12345' +} +credit.save() \ No newline at end of file diff --git a/scenarios/customer_add_bank_account/definition.mako b/scenarios/customer_add_bank_account/definition.mako new file mode 100644 index 0000000..fbba3a2 --- /dev/null +++ b/scenarios/customer_add_bank_account/definition.mako @@ -0,0 +1 @@ +balanced.Customer.add_bank_account \ No newline at end of file diff --git a/scenarios/customer_add_bank_account/executable.py b/scenarios/customer_add_bank_account/executable.py new file mode 100644 index 0000000..79ce09f --- /dev/null +++ b/scenarios/customer_add_bank_account/executable.py @@ -0,0 +1,6 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +customer = balanced.Customer.find('/customers/CU7cMba1Uu9Dz2DHguDKcxao') +customer.add_bank_account('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS') \ No newline at end of file diff --git a/scenarios/customer_add_bank_account/python.mako b/scenarios/customer_add_bank_account/python.mako new file mode 100644 index 0000000..d8cbc94 --- /dev/null +++ b/scenarios/customer_add_bank_account/python.mako @@ -0,0 +1,10 @@ +% if mode == 'definition': +balanced.Customer.add_bank_account +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +customer = balanced.Customer.find('/customers/CU7cMba1Uu9Dz2DHguDKcxao') +customer.add_bank_account('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS') +% endif \ No newline at end of file diff --git a/scenarios/customer_add_bank_account/request.mako b/scenarios/customer_add_bank_account/request.mako new file mode 100644 index 0000000..1472d18 --- /dev/null +++ b/scenarios/customer_add_bank_account/request.mako @@ -0,0 +1,5 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +customer = balanced.Customer.find('${request['uri']}') +customer.add_bank_account('${request['payload']['bank_account_href']}') \ No newline at end of file diff --git a/scenarios/customer_add_card/definition.mako b/scenarios/customer_add_card/definition.mako new file mode 100644 index 0000000..69aafcb --- /dev/null +++ b/scenarios/customer_add_card/definition.mako @@ -0,0 +1 @@ +balanced.Customer.add_card \ No newline at end of file diff --git a/scenarios/customer_add_card/executable.py b/scenarios/customer_add_card/executable.py new file mode 100644 index 0000000..03d106e --- /dev/null +++ b/scenarios/customer_add_card/executable.py @@ -0,0 +1,6 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +customer = balanced.Customer.find('/customers/CU73cQkqN6IUi8D4qBEsOPK') +customer.add_card('/cards/CC6MQlq1xIGRLEMBWQcD4Dcr') \ No newline at end of file diff --git a/scenarios/customer_add_card/python.mako b/scenarios/customer_add_card/python.mako new file mode 100644 index 0000000..b3de98f --- /dev/null +++ b/scenarios/customer_add_card/python.mako @@ -0,0 +1,10 @@ +% if mode == 'definition': +balanced.Customer.add_card +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +customer = balanced.Customer.find('/customers/CU73cQkqN6IUi8D4qBEsOPK') +customer.add_card('/cards/CC6MQlq1xIGRLEMBWQcD4Dcr') +% endif \ No newline at end of file diff --git a/scenarios/customer_add_card/request.mako b/scenarios/customer_add_card/request.mako new file mode 100644 index 0000000..b1e0b07 --- /dev/null +++ b/scenarios/customer_add_card/request.mako @@ -0,0 +1,5 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +customer = balanced.Customer.find('${request['uri']}') +customer.add_card('${request['payload']['card_href']}') \ No newline at end of file diff --git a/scenarios/customer_create/definition.mako b/scenarios/customer_create/definition.mako new file mode 100644 index 0000000..6c42d41 --- /dev/null +++ b/scenarios/customer_create/definition.mako @@ -0,0 +1 @@ +balanced.Customer.save() \ No newline at end of file diff --git a/scenarios/customer_create/executable.py b/scenarios/customer_create/executable.py new file mode 100644 index 0000000..6766442 --- /dev/null +++ b/scenarios/customer_create/executable.py @@ -0,0 +1,10 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +customer = 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/scenarios/customer_create/python.mako b/scenarios/customer_create/python.mako new file mode 100644 index 0000000..975dec4 --- /dev/null +++ b/scenarios/customer_create/python.mako @@ -0,0 +1,14 @@ +% if mode == 'definition': +balanced.Customer.save() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +customer = balanced.Customer( + dob_year=1963, + dob_month=7, + name='Henry Ford', + address[postal_code]='48120', +).save() +% endif \ No newline at end of file diff --git a/scenarios/customer_create/request.mako b/scenarios/customer_create/request.mako new file mode 100644 index 0000000..f31310c --- /dev/null +++ b/scenarios/customer_create/request.mako @@ -0,0 +1,6 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +customer = balanced.Customer( + <% main.payload_expand(request['payload']) %> +).save() \ No newline at end of file diff --git a/scenarios/customer_delete/definition.mako b/scenarios/customer_delete/definition.mako new file mode 100644 index 0000000..d211b55 --- /dev/null +++ b/scenarios/customer_delete/definition.mako @@ -0,0 +1 @@ +balanced.Customer.unstore() \ No newline at end of file diff --git a/scenarios/customer_delete/executable.py b/scenarios/customer_delete/executable.py new file mode 100644 index 0000000..0102e7e --- /dev/null +++ b/scenarios/customer_delete/executable.py @@ -0,0 +1,6 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +customer = balanced.Customer.find('/customers/CU7cMba1Uu9Dz2DHguDKcxao') +customer.unstore() \ No newline at end of file diff --git a/scenarios/customer_delete/python.mako b/scenarios/customer_delete/python.mako new file mode 100644 index 0000000..3884591 --- /dev/null +++ b/scenarios/customer_delete/python.mako @@ -0,0 +1,10 @@ +% if mode == 'definition': +balanced.Customer.unstore() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +customer = balanced.Customer.find('/customers/CU7cMba1Uu9Dz2DHguDKcxao') +customer.unstore() +% endif \ No newline at end of file diff --git a/scenarios/customer_delete/request.mako b/scenarios/customer_delete/request.mako new file mode 100644 index 0000000..801c438 --- /dev/null +++ b/scenarios/customer_delete/request.mako @@ -0,0 +1,5 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +customer = balanced.Customer.find('${request['uri']}') +customer.unstore() \ No newline at end of file diff --git a/scenarios/customer_list/definition.mako b/scenarios/customer_list/definition.mako new file mode 100644 index 0000000..083dee4 --- /dev/null +++ b/scenarios/customer_list/definition.mako @@ -0,0 +1 @@ +balanced.Customer.query() \ No newline at end of file diff --git a/scenarios/customer_list/executable.py b/scenarios/customer_list/executable.py new file mode 100644 index 0000000..ab52db0 --- /dev/null +++ b/scenarios/customer_list/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +customers = balanced.Customer.query.all() \ No newline at end of file diff --git a/scenarios/customer_list/python.mako b/scenarios/customer_list/python.mako new file mode 100644 index 0000000..d3bb280 --- /dev/null +++ b/scenarios/customer_list/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.Customer.query() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +customers = balanced.Customer.query.all() +% endif \ No newline at end of file diff --git a/scenarios/customer_list/request.mako b/scenarios/customer_list/request.mako new file mode 100644 index 0000000..67cbb5b --- /dev/null +++ b/scenarios/customer_list/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +customers = balanced.Customer.query.all() \ No newline at end of file diff --git a/scenarios/customer_show/definition.mako b/scenarios/customer_show/definition.mako new file mode 100644 index 0000000..ab10cdb --- /dev/null +++ b/scenarios/customer_show/definition.mako @@ -0,0 +1 @@ +balanced.Customer.find \ No newline at end of file diff --git a/scenarios/customer_show/executable.py b/scenarios/customer_show/executable.py new file mode 100644 index 0000000..91116a1 --- /dev/null +++ b/scenarios/customer_show/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +customer = balanced.Customer.find('/customers/CU77fJ0bjn9xBZYlzIYkpUQU') \ No newline at end of file diff --git a/scenarios/customer_show/python.mako b/scenarios/customer_show/python.mako new file mode 100644 index 0000000..eec1069 --- /dev/null +++ b/scenarios/customer_show/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.Customer.find +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +customer = balanced.Customer.find('/customers/CU77fJ0bjn9xBZYlzIYkpUQU') +% endif \ No newline at end of file diff --git a/scenarios/customer_show/request.mako b/scenarios/customer_show/request.mako new file mode 100644 index 0000000..5b91827 --- /dev/null +++ b/scenarios/customer_show/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +customer = balanced.Customer.find('${request['uri']}') \ No newline at end of file diff --git a/scenarios/customer_update/definition.mako b/scenarios/customer_update/definition.mako new file mode 100644 index 0000000..6c42d41 --- /dev/null +++ b/scenarios/customer_update/definition.mako @@ -0,0 +1 @@ +balanced.Customer.save() \ No newline at end of file diff --git a/scenarios/customer_update/executable.py b/scenarios/customer_update/executable.py new file mode 100644 index 0000000..393421d --- /dev/null +++ b/scenarios/customer_update/executable.py @@ -0,0 +1,10 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +customer = balanced.Debit.find('/customers/CU77fJ0bjn9xBZYlzIYkpUQU') +customer.email = 'email@newdomain.com' +customer.meta = { + 'shipping-preference': 'ground' +} +customer.save() \ No newline at end of file diff --git a/scenarios/customer_update/python.mako b/scenarios/customer_update/python.mako new file mode 100644 index 0000000..62c8051 --- /dev/null +++ b/scenarios/customer_update/python.mako @@ -0,0 +1,14 @@ +% if mode == 'definition': +balanced.Customer.save() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +customer = balanced.Debit.find('/customers/CU77fJ0bjn9xBZYlzIYkpUQU') +customer.email = 'email@newdomain.com' +customer.meta = { + 'shipping-preference': 'ground' +} +customer.save() +% endif \ No newline at end of file diff --git a/scenarios/customer_update/request.mako b/scenarios/customer_update/request.mako new file mode 100644 index 0000000..63f6d8a --- /dev/null +++ b/scenarios/customer_update/request.mako @@ -0,0 +1,9 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +customer = balanced.Debit.find('${request['uri']}') +customer.email = '${request['payload']['email']}' +customer.meta = { + 'shipping-preference': 'ground' +} +customer.save() \ No newline at end of file diff --git a/scenarios/debit_list/definition.mako b/scenarios/debit_list/definition.mako new file mode 100644 index 0000000..debf1ff --- /dev/null +++ b/scenarios/debit_list/definition.mako @@ -0,0 +1 @@ +balanced.Debit.query() \ No newline at end of file diff --git a/scenarios/debit_list/executable.py b/scenarios/debit_list/executable.py new file mode 100644 index 0000000..819b87b --- /dev/null +++ b/scenarios/debit_list/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +debits = balanced.Debit.query.all() \ No newline at end of file diff --git a/scenarios/debit_list/python.mako b/scenarios/debit_list/python.mako new file mode 100644 index 0000000..22a5e44 --- /dev/null +++ b/scenarios/debit_list/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.Debit.query() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +debits = balanced.Debit.query.all() +% endif \ No newline at end of file diff --git a/scenarios/debit_list/request.mako b/scenarios/debit_list/request.mako new file mode 100644 index 0000000..855eb8f --- /dev/null +++ b/scenarios/debit_list/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +debits = balanced.Debit.query.all() \ No newline at end of file diff --git a/scenarios/debit_show/definition.mako b/scenarios/debit_show/definition.mako new file mode 100644 index 0000000..1fc6ab5 --- /dev/null +++ b/scenarios/debit_show/definition.mako @@ -0,0 +1 @@ +balanced.Debit.find \ No newline at end of file diff --git a/scenarios/debit_show/executable.py b/scenarios/debit_show/executable.py new file mode 100644 index 0000000..19ca137 --- /dev/null +++ b/scenarios/debit_show/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +debit = balanced.Debit.find('/debits/WD6TAVProqNixngz5tRCO52C') \ No newline at end of file diff --git a/scenarios/debit_show/python.mako b/scenarios/debit_show/python.mako new file mode 100644 index 0000000..f631ae5 --- /dev/null +++ b/scenarios/debit_show/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.Debit.find +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +debit = balanced.Debit.find('/debits/WD6TAVProqNixngz5tRCO52C') +% endif \ No newline at end of file diff --git a/scenarios/debit_show/request.mako b/scenarios/debit_show/request.mako new file mode 100644 index 0000000..bf2c349 --- /dev/null +++ b/scenarios/debit_show/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +debit = balanced.Debit.find('${request['uri']}') \ No newline at end of file diff --git a/scenarios/debit_update/definition.mako b/scenarios/debit_update/definition.mako new file mode 100644 index 0000000..01fec2c --- /dev/null +++ b/scenarios/debit_update/definition.mako @@ -0,0 +1 @@ +balanced.Debit.save() \ No newline at end of file diff --git a/scenarios/debit_update/executable.py b/scenarios/debit_update/executable.py new file mode 100644 index 0000000..36a87b6 --- /dev/null +++ b/scenarios/debit_update/executable.py @@ -0,0 +1,11 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +debit = balanced.Debit.find('/debits/WD6TAVProqNixngz5tRCO52C') +debit.description = 'New description for debit' +debit.meta = { + 'facebook.id': '1234567890', + 'anykey': 'valuegoeshere', +} +debit.save() \ No newline at end of file diff --git a/scenarios/debit_update/python.mako b/scenarios/debit_update/python.mako new file mode 100644 index 0000000..e9e996b --- /dev/null +++ b/scenarios/debit_update/python.mako @@ -0,0 +1,15 @@ +% if mode == 'definition': +balanced.Debit.save() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +debit = balanced.Debit.find('/debits/WD6TAVProqNixngz5tRCO52C') +debit.description = 'New description for debit' +debit.meta = { + 'facebook.id': '1234567890', + 'anykey': 'valuegoeshere', +} +debit.save() +% endif \ No newline at end of file diff --git a/scenarios/debit_update/request.mako b/scenarios/debit_update/request.mako new file mode 100644 index 0000000..d33bc4a --- /dev/null +++ b/scenarios/debit_update/request.mako @@ -0,0 +1,10 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +debit = balanced.Debit.find('${request['uri']}') +debit.description = '${request['payload']['description']}' +debit.meta = { + 'facebook.id': '1234567890', + 'anykey': 'valuegoeshere', +} +debit.save() \ No newline at end of file diff --git a/scenarios/event_list/definition.mako b/scenarios/event_list/definition.mako new file mode 100644 index 0000000..c0e940e --- /dev/null +++ b/scenarios/event_list/definition.mako @@ -0,0 +1 @@ +balanced.Event.query() \ No newline at end of file diff --git a/scenarios/event_list/executable.py b/scenarios/event_list/executable.py new file mode 100644 index 0000000..a987bb2 --- /dev/null +++ b/scenarios/event_list/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +events = balanced.Event.query.all() \ No newline at end of file diff --git a/scenarios/event_list/python.mako b/scenarios/event_list/python.mako new file mode 100644 index 0000000..db0f12b --- /dev/null +++ b/scenarios/event_list/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.Event.query() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +events = balanced.Event.query.all() +% endif \ No newline at end of file diff --git a/scenarios/event_list/request.mako b/scenarios/event_list/request.mako new file mode 100644 index 0000000..eb938fa --- /dev/null +++ b/scenarios/event_list/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +events = balanced.Event.query.all() \ No newline at end of file diff --git a/scenarios/event_show/definition.mako b/scenarios/event_show/definition.mako new file mode 100644 index 0000000..31545a5 --- /dev/null +++ b/scenarios/event_show/definition.mako @@ -0,0 +1 @@ +balanced.Event.find() \ No newline at end of file diff --git a/scenarios/event_show/executable.py b/scenarios/event_show/executable.py new file mode 100644 index 0000000..bfb4724 --- /dev/null +++ b/scenarios/event_show/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +event = balanced.Event.find('/events/EVce72c4ba77c911e3a3be026ba7cac9da') \ No newline at end of file diff --git a/scenarios/event_show/python.mako b/scenarios/event_show/python.mako new file mode 100644 index 0000000..9d28c67 --- /dev/null +++ b/scenarios/event_show/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.Event.find() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +event = balanced.Event.find('/events/EVce72c4ba77c911e3a3be026ba7cac9da') +% endif \ No newline at end of file diff --git a/scenarios/event_show/request.mako b/scenarios/event_show/request.mako new file mode 100644 index 0000000..9a20ccd --- /dev/null +++ b/scenarios/event_show/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +event = balanced.Event.find('${request['uri']}') \ No newline at end of file diff --git a/scenarios/order_create/definition.mako b/scenarios/order_create/definition.mako new file mode 100644 index 0000000..f91c106 --- /dev/null +++ b/scenarios/order_create/definition.mako @@ -0,0 +1 @@ +balanced.Order() \ No newline at end of file diff --git a/scenarios/order_create/executable.py b/scenarios/order_create/executable.py new file mode 100644 index 0000000..5289092 --- /dev/null +++ b/scenarios/order_create/executable.py @@ -0,0 +1,7 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +order = balanced.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 new file mode 100644 index 0000000..74e7080 --- /dev/null +++ b/scenarios/order_create/python.mako @@ -0,0 +1,11 @@ +% if mode == 'definition': +balanced.Order() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +order = balanced.Order( + description='Order #12341234' +).save() +% endif \ No newline at end of file diff --git a/scenarios/order_create/request.mako b/scenarios/order_create/request.mako new file mode 100644 index 0000000..aef5490 --- /dev/null +++ b/scenarios/order_create/request.mako @@ -0,0 +1,6 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +order = balanced.Order( + <% main.payload_expand(request['payload']) %> +).save() \ No newline at end of file diff --git a/scenarios/order_list/definition.mako b/scenarios/order_list/definition.mako new file mode 100644 index 0000000..4495d99 --- /dev/null +++ b/scenarios/order_list/definition.mako @@ -0,0 +1 @@ +balanced.Order.query() \ No newline at end of file diff --git a/scenarios/order_list/executable.py b/scenarios/order_list/executable.py new file mode 100644 index 0000000..5e97cc9 --- /dev/null +++ b/scenarios/order_list/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +orders = balanced.Order.query.all() \ No newline at end of file diff --git a/scenarios/order_list/python.mako b/scenarios/order_list/python.mako new file mode 100644 index 0000000..fea3dbb --- /dev/null +++ b/scenarios/order_list/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.Order.query() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +orders = balanced.Order.query.all() +% endif \ No newline at end of file diff --git a/scenarios/order_list/request.mako b/scenarios/order_list/request.mako new file mode 100644 index 0000000..3ffc352 --- /dev/null +++ b/scenarios/order_list/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +orders = balanced.Order.query.all() \ No newline at end of file diff --git a/scenarios/order_show/definition.mako b/scenarios/order_show/definition.mako new file mode 100644 index 0000000..e9574b6 --- /dev/null +++ b/scenarios/order_show/definition.mako @@ -0,0 +1 @@ +balanced.Order.find \ No newline at end of file diff --git a/scenarios/order_show/executable.py b/scenarios/order_show/executable.py new file mode 100644 index 0000000..07f8fbb --- /dev/null +++ b/scenarios/order_show/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +order = balanced.Order.find('/orders/OR7tbUrFlrIwYwE4iCuhtq0v') \ No newline at end of file diff --git a/scenarios/order_show/python.mako b/scenarios/order_show/python.mako new file mode 100644 index 0000000..0ec65fd --- /dev/null +++ b/scenarios/order_show/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.Order.find +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +order = balanced.Order.find('/orders/OR7tbUrFlrIwYwE4iCuhtq0v') +% endif \ No newline at end of file diff --git a/scenarios/order_show/request.mako b/scenarios/order_show/request.mako new file mode 100644 index 0000000..141c801 --- /dev/null +++ b/scenarios/order_show/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +order = balanced.Order.find('${request['uri']}') \ No newline at end of file diff --git a/scenarios/order_update/definition.mako b/scenarios/order_update/definition.mako new file mode 100644 index 0000000..79049ad --- /dev/null +++ b/scenarios/order_update/definition.mako @@ -0,0 +1 @@ +balanced.Order.save() \ No newline at end of file diff --git a/scenarios/order_update/executable.py b/scenarios/order_update/executable.py new file mode 100644 index 0000000..b17a1cb --- /dev/null +++ b/scenarios/order_update/executable.py @@ -0,0 +1,11 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +order = balanced.Order.find('/orders/OR7tbUrFlrIwYwE4iCuhtq0v') +order.description = 'New description for order' +order.meta = { + 'anykey' => 'valuegoeshere', + 'product.id' => '1234567890' +} +order.save() \ No newline at end of file diff --git a/scenarios/order_update/python.mako b/scenarios/order_update/python.mako new file mode 100644 index 0000000..3fdf64d --- /dev/null +++ b/scenarios/order_update/python.mako @@ -0,0 +1,15 @@ +% if mode == 'definition': +balanced.Order.save() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +order = balanced.Order.find('/orders/OR7tbUrFlrIwYwE4iCuhtq0v') +order.description = 'New description for order' +order.meta = { + 'anykey' => 'valuegoeshere', + 'product.id' => '1234567890' +} +order.save() +% endif \ No newline at end of file diff --git a/scenarios/order_update/request.mako b/scenarios/order_update/request.mako new file mode 100644 index 0000000..0852728 --- /dev/null +++ b/scenarios/order_update/request.mako @@ -0,0 +1,10 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +order = balanced.Order.find('${request['uri']}') +order.description = '${request['payload']['description']}' +order.meta = { + 'anykey' => 'valuegoeshere', + 'product.id' => '1234567890' +} +order.save() \ No newline at end of file diff --git a/scenarios/refund_create/definition.mako b/scenarios/refund_create/definition.mako new file mode 100644 index 0000000..a5321df --- /dev/null +++ b/scenarios/refund_create/definition.mako @@ -0,0 +1 @@ +balanced.Debit.refund() \ No newline at end of file diff --git a/scenarios/refund_create/executable.py b/scenarios/refund_create/executable.py new file mode 100644 index 0000000..984245a --- /dev/null +++ b/scenarios/refund_create/executable.py @@ -0,0 +1,6 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +debit = balanced.Debit.find('/debits/WD7yQnigdgrO2Bkc7vLIdkeW') +refund = debit.refund() \ No newline at end of file diff --git a/scenarios/refund_create/python.mako b/scenarios/refund_create/python.mako new file mode 100644 index 0000000..f3da8b9 --- /dev/null +++ b/scenarios/refund_create/python.mako @@ -0,0 +1,10 @@ +% if mode == 'definition': +balanced.Debit.refund() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +debit = balanced.Debit.find('/debits/WD7yQnigdgrO2Bkc7vLIdkeW') +refund = debit.refund() +% endif \ No newline at end of file diff --git a/scenarios/refund_create/request.mako b/scenarios/refund_create/request.mako new file mode 100644 index 0000000..37476e9 --- /dev/null +++ b/scenarios/refund_create/request.mako @@ -0,0 +1,5 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +debit = balanced.Debit.find('${request['debit_href']}') +refund = debit.refund() \ No newline at end of file diff --git a/scenarios/refund_list/definition.mako b/scenarios/refund_list/definition.mako new file mode 100644 index 0000000..cd0fc3c --- /dev/null +++ b/scenarios/refund_list/definition.mako @@ -0,0 +1 @@ +balanced.Refund.query() \ No newline at end of file diff --git a/scenarios/refund_list/executable.py b/scenarios/refund_list/executable.py new file mode 100644 index 0000000..dd1ca02 --- /dev/null +++ b/scenarios/refund_list/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +refunds = balanced.Refund.query.all() \ No newline at end of file diff --git a/scenarios/refund_list/python.mako b/scenarios/refund_list/python.mako new file mode 100644 index 0000000..61efbbd --- /dev/null +++ b/scenarios/refund_list/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.Refund.query() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +refunds = balanced.Refund.query.all() +% endif \ No newline at end of file diff --git a/scenarios/refund_list/request.mako b/scenarios/refund_list/request.mako new file mode 100644 index 0000000..ada25b8 --- /dev/null +++ b/scenarios/refund_list/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +refunds = balanced.Refund.query.all() \ No newline at end of file diff --git a/scenarios/refund_show/definition.mako b/scenarios/refund_show/definition.mako new file mode 100644 index 0000000..afb4221 --- /dev/null +++ b/scenarios/refund_show/definition.mako @@ -0,0 +1 @@ +balanced.Refund.find() \ No newline at end of file diff --git a/scenarios/refund_show/executable.py b/scenarios/refund_show/executable.py new file mode 100644 index 0000000..fea93a2 --- /dev/null +++ b/scenarios/refund_show/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +refund = balanced.Refund.find('/refunds/RF7AxY5iLVIl7a3QtcoVZocS') \ No newline at end of file diff --git a/scenarios/refund_show/python.mako b/scenarios/refund_show/python.mako new file mode 100644 index 0000000..c491f01 --- /dev/null +++ b/scenarios/refund_show/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.Refund.find() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +refund = balanced.Refund.find('/refunds/RF7AxY5iLVIl7a3QtcoVZocS') +% endif \ No newline at end of file diff --git a/scenarios/refund_show/request.mako b/scenarios/refund_show/request.mako new file mode 100644 index 0000000..f0b89cc --- /dev/null +++ b/scenarios/refund_show/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +refund = balanced.Refund.find('${request['uri']}') \ No newline at end of file diff --git a/scenarios/refund_update/definition.mako b/scenarios/refund_update/definition.mako new file mode 100644 index 0000000..18cd86d --- /dev/null +++ b/scenarios/refund_update/definition.mako @@ -0,0 +1 @@ +balanced.Refund.save() \ No newline at end of file diff --git a/scenarios/refund_update/executable.py b/scenarios/refund_update/executable.py new file mode 100644 index 0000000..ae8842d --- /dev/null +++ b/scenarios/refund_update/executable.py @@ -0,0 +1,12 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +refund = balanced.Refund.find('/refunds/RF7AxY5iLVIl7a3QtcoVZocS') +refund.description = 'update this description' +refund.meta = { + 'user.refund.count': '3', + 'refund.reason': 'user not happy with product', + 'user.notes': 'very polite on the phone', +} +refund.save() \ No newline at end of file diff --git a/scenarios/refund_update/python.mako b/scenarios/refund_update/python.mako new file mode 100644 index 0000000..1b2a6ed --- /dev/null +++ b/scenarios/refund_update/python.mako @@ -0,0 +1,16 @@ +% if mode == 'definition': +balanced.Refund.save() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +refund = balanced.Refund.find('/refunds/RF7AxY5iLVIl7a3QtcoVZocS') +refund.description = 'update this description' +refund.meta = { + 'user.refund.count': '3', + 'refund.reason': 'user not happy with product', + 'user.notes': 'very polite on the phone', +} +refund.save() +% endif \ No newline at end of file diff --git a/scenarios/refund_update/request.mako b/scenarios/refund_update/request.mako new file mode 100644 index 0000000..e45ac6c --- /dev/null +++ b/scenarios/refund_update/request.mako @@ -0,0 +1,11 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +refund = balanced.Refund.find('${request['uri']}') +refund.description = '${request['payload']['description']}' +refund.meta = { + 'user.refund.count': '3', + 'refund.reason': 'user not happy with product', + 'user.notes': 'very polite on the phone', +} +refund.save() \ No newline at end of file diff --git a/scenarios/reversal_create/definition.mako b/scenarios/reversal_create/definition.mako new file mode 100644 index 0000000..ab5189f --- /dev/null +++ b/scenarios/reversal_create/definition.mako @@ -0,0 +1 @@ +balanced.Credit.reverse() \ No newline at end of file diff --git a/scenarios/reversal_create/executable.py b/scenarios/reversal_create/executable.py new file mode 100644 index 0000000..c3d9492 --- /dev/null +++ b/scenarios/reversal_create/executable.py @@ -0,0 +1,6 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +credit = balanced.Credit.find('/credits/CR7HIdtAm4eFX1weOgiaRGQM') +reversal = credit.reverse() \ No newline at end of file diff --git a/scenarios/reversal_create/python.mako b/scenarios/reversal_create/python.mako new file mode 100644 index 0000000..8275124 --- /dev/null +++ b/scenarios/reversal_create/python.mako @@ -0,0 +1,10 @@ +% if mode == 'definition': +balanced.Credit.reverse() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +credit = balanced.Credit.find('/credits/CR7HIdtAm4eFX1weOgiaRGQM') +reversal = credit.reverse() +% endif \ No newline at end of file diff --git a/scenarios/reversal_create/request.mako b/scenarios/reversal_create/request.mako new file mode 100644 index 0000000..f3d9e13 --- /dev/null +++ b/scenarios/reversal_create/request.mako @@ -0,0 +1,5 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +credit = balanced.Credit.find('${request['credit_href']}') +reversal = credit.reverse() \ No newline at end of file diff --git a/scenarios/reversal_list/definition.mako b/scenarios/reversal_list/definition.mako new file mode 100644 index 0000000..52fb77a --- /dev/null +++ b/scenarios/reversal_list/definition.mako @@ -0,0 +1 @@ +balanced.Reversal.query() \ No newline at end of file diff --git a/scenarios/reversal_list/executable.py b/scenarios/reversal_list/executable.py new file mode 100644 index 0000000..9c2b8e5 --- /dev/null +++ b/scenarios/reversal_list/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +reversals = balanced.Reversal.query.all() \ No newline at end of file diff --git a/scenarios/reversal_list/python.mako b/scenarios/reversal_list/python.mako new file mode 100644 index 0000000..eecfcb8 --- /dev/null +++ b/scenarios/reversal_list/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.Reversal.query() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +reversals = balanced.Reversal.query.all() +% endif \ No newline at end of file diff --git a/scenarios/reversal_list/request.mako b/scenarios/reversal_list/request.mako new file mode 100644 index 0000000..14c0a78 --- /dev/null +++ b/scenarios/reversal_list/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +reversals = balanced.Reversal.query.all() \ No newline at end of file diff --git a/scenarios/reversal_show/definition.mako b/scenarios/reversal_show/definition.mako new file mode 100644 index 0000000..05898b7 --- /dev/null +++ b/scenarios/reversal_show/definition.mako @@ -0,0 +1 @@ +balanced.Reversal.find() \ No newline at end of file diff --git a/scenarios/reversal_show/executable.py b/scenarios/reversal_show/executable.py new file mode 100644 index 0000000..317ca04 --- /dev/null +++ b/scenarios/reversal_show/executable.py @@ -0,0 +1,5 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +refund = balanced.Reversal.find('/reversals/RV7IMMa8PGy8obFm8g5fnvP1') \ No newline at end of file diff --git a/scenarios/reversal_show/python.mako b/scenarios/reversal_show/python.mako new file mode 100644 index 0000000..fd8500d --- /dev/null +++ b/scenarios/reversal_show/python.mako @@ -0,0 +1,9 @@ +% if mode == 'definition': +balanced.Reversal.find() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +refund = balanced.Reversal.find('/reversals/RV7IMMa8PGy8obFm8g5fnvP1') +% endif \ No newline at end of file diff --git a/scenarios/reversal_show/request.mako b/scenarios/reversal_show/request.mako new file mode 100644 index 0000000..33a6b93 --- /dev/null +++ b/scenarios/reversal_show/request.mako @@ -0,0 +1,4 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +refund = balanced.Reversal.find('${request['uri']}') \ No newline at end of file diff --git a/scenarios/reversal_update/definition.mako b/scenarios/reversal_update/definition.mako new file mode 100644 index 0000000..0ba268e --- /dev/null +++ b/scenarios/reversal_update/definition.mako @@ -0,0 +1 @@ +balanced.Reversal.save() \ No newline at end of file diff --git a/scenarios/reversal_update/executable.py b/scenarios/reversal_update/executable.py new file mode 100644 index 0000000..e23943a --- /dev/null +++ b/scenarios/reversal_update/executable.py @@ -0,0 +1,12 @@ +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +reversal = balanced.Reversal.find('/reversals/RV7IMMa8PGy8obFm8g5fnvP1') +reversal.description = 'update this description' +reversal.meta = { + 'user.refund.count': '3', + 'refund.reason': 'user not happy with product', + 'user.notes': 'very polite on the phone', +} +reversal.save() \ No newline at end of file diff --git a/scenarios/reversal_update/python.mako b/scenarios/reversal_update/python.mako new file mode 100644 index 0000000..50e9041 --- /dev/null +++ b/scenarios/reversal_update/python.mako @@ -0,0 +1,16 @@ +% if mode == 'definition': +balanced.Reversal.save() +% else: +import balanced + +balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') + +reversal = balanced.Reversal.find('/reversals/RV7IMMa8PGy8obFm8g5fnvP1') +reversal.description = 'update this description' +reversal.meta = { + 'user.refund.count': '3', + 'refund.reason': 'user not happy with product', + 'user.notes': 'very polite on the phone', +} +reversal.save() +% endif \ No newline at end of file diff --git a/scenarios/reversal_update/request.mako b/scenarios/reversal_update/request.mako new file mode 100644 index 0000000..ff70863 --- /dev/null +++ b/scenarios/reversal_update/request.mako @@ -0,0 +1,11 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +reversal = balanced.Reversal.find('${request['uri']}') +reversal.description = '${request['payload']['description']}' +reversal.meta = { + 'user.refund.count': '3', + 'refund.reason': 'user not happy with product', + 'user.notes': 'very polite on the phone', +} +reversal.save() \ No newline at end of file From 3171c34e05b0785bcdfe2782269bdf6434a202d0 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Wed, 8 Jan 2014 09:30:00 -0700 Subject: [PATCH 016/146] Second pass for 1.1 scenarios --- scenario.cache | 294 +++++++++--------- scenarios/_main.mako | 6 +- scenarios/_mj/api_key_create/executable.py | 2 +- scenarios/_mj/api_key_create/python.mako | 2 +- scenarios/api_key_create/executable.py | 4 +- scenarios/api_key_create/python.mako | 4 +- scenarios/api_key_create/request.mako | 2 +- scenarios/api_key_delete/definition.mako | 2 +- scenarios/api_key_delete/executable.py | 4 +- scenarios/api_key_delete/python.mako | 6 +- scenarios/api_key_list/definition.mako | 2 +- scenarios/api_key_list/executable.py | 4 +- scenarios/api_key_list/python.mako | 6 +- scenarios/api_key_list/request.mako | 2 +- scenarios/api_key_show/definition.mako | 2 +- scenarios/api_key_show/executable.py | 4 +- scenarios/api_key_show/python.mako | 6 +- .../definition.mako | 1 + .../executable.py | 6 + .../python.mako | 10 + .../request.mako | 5 + scenarios/bank_account_create/definition.mako | 2 +- scenarios/bank_account_create/executable.py | 2 +- scenarios/bank_account_create/python.mako | 4 +- scenarios/bank_account_credit/definition.mako | 2 +- scenarios/bank_account_credit/executable.py | 4 +- scenarios/bank_account_credit/python.mako | 6 +- scenarios/bank_account_debit/definition.mako | 2 +- scenarios/bank_account_debit/executable.py | 4 +- scenarios/bank_account_debit/python.mako | 6 +- scenarios/bank_account_delete/definition.mako | 2 +- scenarios/bank_account_delete/executable.py | 4 +- scenarios/bank_account_delete/python.mako | 6 +- scenarios/bank_account_list/definition.mako | 2 +- scenarios/bank_account_list/executable.py | 2 +- scenarios/bank_account_list/python.mako | 4 +- scenarios/bank_account_show/definition.mako | 2 +- scenarios/bank_account_show/executable.py | 4 +- scenarios/bank_account_show/python.mako | 6 +- scenarios/bank_account_update/definition.mako | 2 +- scenarios/bank_account_update/executable.py | 4 +- scenarios/bank_account_update/python.mako | 6 +- .../definition.mako | 2 +- .../executable.py | 4 +- .../python.mako | 6 +- .../definition.mako | 2 +- .../executable.py | 4 +- .../python.mako | 6 +- .../definition.mako | 2 +- .../executable.py | 9 +- .../python.mako | 11 +- .../request.mako | 5 +- scenarios/callback_create/definition.mako | 2 +- scenarios/callback_create/executable.py | 2 +- scenarios/callback_create/python.mako | 4 +- scenarios/callback_delete/definition.mako | 2 +- scenarios/callback_delete/executable.py | 4 +- scenarios/callback_delete/python.mako | 6 +- scenarios/callback_list/definition.mako | 2 +- scenarios/callback_list/executable.py | 2 +- scenarios/callback_list/python.mako | 4 +- scenarios/callback_show/definition.mako | 2 +- scenarios/callback_show/executable.py | 4 +- scenarios/callback_show/python.mako | 6 +- .../definition.mako | 1 + .../card_associate_to_customer/executable.py | 6 + .../card_associate_to_customer/python.mako | 10 + .../card_associate_to_customer/request.mako | 5 + scenarios/card_create/definition.mako | 2 +- scenarios/card_create/executable.py | 2 +- scenarios/card_create/python.mako | 4 +- scenarios/card_debit/definition.mako | 2 +- scenarios/card_debit/executable.py | 4 +- scenarios/card_debit/python.mako | 6 +- scenarios/card_delete/definition.mako | 2 +- scenarios/card_delete/executable.py | 4 +- scenarios/card_delete/python.mako | 6 +- scenarios/card_hold_capture/definition.mako | 2 +- scenarios/card_hold_capture/executable.py | 4 +- scenarios/card_hold_capture/python.mako | 6 +- scenarios/card_hold_create/definition.mako | 2 +- scenarios/card_hold_create/executable.py | 4 +- scenarios/card_hold_create/python.mako | 6 +- scenarios/card_hold_list/definition.mako | 2 +- scenarios/card_hold_list/executable.py | 2 +- scenarios/card_hold_list/python.mako | 4 +- scenarios/card_hold_show/definition.mako | 2 +- scenarios/card_hold_show/executable.py | 4 +- scenarios/card_hold_show/python.mako | 6 +- scenarios/card_hold_update/definition.mako | 2 +- scenarios/card_hold_update/executable.py | 4 +- scenarios/card_hold_update/python.mako | 6 +- scenarios/card_hold_void/definition.mako | 2 +- scenarios/card_hold_void/executable.py | 6 +- scenarios/card_hold_void/python.mako | 8 +- scenarios/card_hold_void/request.mako | 2 +- scenarios/card_list/definition.mako | 2 +- scenarios/card_list/executable.py | 4 +- scenarios/card_list/python.mako | 6 +- scenarios/card_list/request.mako | 2 +- scenarios/card_show/definition.mako | 2 +- scenarios/card_show/executable.py | 4 +- scenarios/card_show/python.mako | 6 +- scenarios/card_update/definition.mako | 2 +- scenarios/card_update/executable.py | 4 +- scenarios/card_update/python.mako | 6 +- scenarios/credit_list/definition.mako | 2 +- scenarios/credit_list/executable.py | 2 +- scenarios/credit_list/python.mako | 4 +- .../credit_list_bank_account/definition.mako | 2 +- .../credit_list_bank_account/executable.py | 4 +- .../credit_list_bank_account/python.mako | 6 +- scenarios/credit_show/definition.mako | 2 +- scenarios/credit_show/executable.py | 4 +- scenarios/credit_show/python.mako | 6 +- scenarios/credit_update/definition.mako | 2 +- scenarios/credit_update/executable.py | 4 +- scenarios/credit_update/python.mako | 6 +- .../customer_add_bank_account/definition.mako | 1 - .../customer_add_bank_account/executable.py | 6 - .../customer_add_bank_account/python.mako | 10 - .../customer_add_bank_account/request.mako | 5 - scenarios/customer_add_card/definition.mako | 1 - scenarios/customer_add_card/executable.py | 6 - scenarios/customer_add_card/python.mako | 10 - scenarios/customer_add_card/request.mako | 5 - scenarios/customer_create/definition.mako | 2 +- scenarios/customer_create/executable.py | 2 +- scenarios/customer_create/python.mako | 4 +- scenarios/customer_delete/definition.mako | 2 +- scenarios/customer_delete/executable.py | 4 +- scenarios/customer_delete/python.mako | 6 +- scenarios/customer_list/definition.mako | 2 +- scenarios/customer_list/executable.py | 2 +- scenarios/customer_list/python.mako | 4 +- scenarios/customer_show/definition.mako | 2 +- scenarios/customer_show/executable.py | 4 +- scenarios/customer_show/python.mako | 6 +- scenarios/customer_update/definition.mako | 2 +- scenarios/customer_update/executable.py | 4 +- scenarios/customer_update/python.mako | 6 +- scenarios/debit_list/definition.mako | 2 +- scenarios/debit_list/executable.py | 2 +- scenarios/debit_list/python.mako | 4 +- scenarios/debit_show/definition.mako | 2 +- scenarios/debit_show/executable.py | 4 +- scenarios/debit_show/python.mako | 6 +- scenarios/debit_update/definition.mako | 2 +- scenarios/debit_update/executable.py | 4 +- scenarios/debit_update/python.mako | 6 +- scenarios/event_list/definition.mako | 2 +- scenarios/event_list/executable.py | 2 +- scenarios/event_list/python.mako | 4 +- scenarios/event_show/definition.mako | 2 +- scenarios/event_show/executable.py | 4 +- scenarios/event_show/python.mako | 6 +- scenarios/order_create/executable.py | 2 +- scenarios/order_create/python.mako | 2 +- scenarios/order_list/definition.mako | 2 +- scenarios/order_list/executable.py | 2 +- scenarios/order_list/python.mako | 4 +- scenarios/order_show/definition.mako | 2 +- scenarios/order_show/executable.py | 4 +- scenarios/order_show/python.mako | 6 +- scenarios/order_update/definition.mako | 2 +- scenarios/order_update/executable.py | 4 +- scenarios/order_update/python.mako | 6 +- scenarios/refund_create/definition.mako | 2 +- scenarios/refund_create/executable.py | 4 +- scenarios/refund_create/python.mako | 6 +- scenarios/refund_list/definition.mako | 2 +- scenarios/refund_list/executable.py | 2 +- scenarios/refund_list/python.mako | 4 +- scenarios/refund_show/definition.mako | 2 +- scenarios/refund_show/executable.py | 4 +- scenarios/refund_show/python.mako | 6 +- scenarios/refund_update/definition.mako | 2 +- scenarios/refund_update/executable.py | 4 +- scenarios/refund_update/python.mako | 6 +- scenarios/reversal_create/definition.mako | 2 +- scenarios/reversal_create/executable.py | 4 +- scenarios/reversal_create/python.mako | 6 +- scenarios/reversal_list/definition.mako | 2 +- scenarios/reversal_list/executable.py | 2 +- scenarios/reversal_list/python.mako | 4 +- scenarios/reversal_show/definition.mako | 2 +- scenarios/reversal_show/executable.py | 4 +- scenarios/reversal_show/python.mako | 6 +- scenarios/reversal_update/definition.mako | 2 +- scenarios/reversal_update/executable.py | 4 +- scenarios/reversal_update/python.mako | 6 +- 191 files changed, 510 insertions(+), 513 deletions(-) create mode 100644 scenarios/bank_account_associate_to_customer/definition.mako create mode 100644 scenarios/bank_account_associate_to_customer/executable.py create mode 100644 scenarios/bank_account_associate_to_customer/python.mako create mode 100644 scenarios/bank_account_associate_to_customer/request.mako create mode 100644 scenarios/card_associate_to_customer/definition.mako create mode 100644 scenarios/card_associate_to_customer/executable.py create mode 100644 scenarios/card_associate_to_customer/python.mako create mode 100644 scenarios/card_associate_to_customer/request.mako delete mode 100644 scenarios/customer_add_bank_account/definition.mako delete mode 100644 scenarios/customer_add_bank_account/executable.py delete mode 100644 scenarios/customer_add_bank_account/python.mako delete mode 100644 scenarios/customer_add_bank_account/request.mako delete mode 100644 scenarios/customer_add_card/definition.mako delete mode 100644 scenarios/customer_add_card/executable.py delete mode 100644 scenarios/customer_add_card/python.mako delete mode 100644 scenarios/customer_add_card/request.mako diff --git a/scenario.cache b/scenario.cache index 0cb2927..a1a2dca 100644 --- a/scenario.cache +++ b/scenario.cache @@ -1,31 +1,41 @@ { "accept_type": "application/vnd.api+json;revision=1.1", - "api_key": "ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl", + "api_key": "ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P", "api_key_create": { "request": { "uri": "/api_keys" }, - "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-01-07T18:30:28.767596Z\", \n \"href\": \"/api_keys/AK66nZtNPbPw0Vnt3tmdVXpC\", \n \"id\": \"AK66nZtNPbPw0Vnt3tmdVXpC\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-lf7B2arRoV5PFcQaWli91HHZerxGsmUj\"\n }\n ], \n \"links\": {}\n}" + "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-01-08T16:24:33.304190Z\", \n \"href\": \"/api_keys/AK2MIAdNHBolYbbacv2OSosg\", \n \"id\": \"AK2MIAdNHBolYbbacv2OSosg\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-umEAkQCc7T9oZZtUG4x4lvxJT5EkCoAv\"\n }\n ], \n \"links\": {}\n}" }, "api_key_delete": { "request": { - "uri": "/api_keys/AK66nZtNPbPw0Vnt3tmdVXpC" + "uri": "/api_keys/AK2MIAdNHBolYbbacv2OSosg" } }, "api_key_list": { "request": { "uri": "/api_keys" }, - "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-01-07T18:30:28.767596Z\", \n \"href\": \"/api_keys/AK66nZtNPbPw0Vnt3tmdVXpC\", \n \"id\": \"AK66nZtNPbPw0Vnt3tmdVXpC\", \n \"links\": {}, \n \"meta\": {}\n }, \n {\n \"created_at\": \"2014-01-07T18:30:22.469779Z\", \n \"href\": \"/api_keys/AK5ZiXwzzvMbIJDGff1JTnOw\", \n \"id\": \"AK5ZiXwzzvMbIJDGff1JTnOw\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl\"\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-01-08T16:24:33.304190Z\", \n \"href\": \"/api_keys/AK2MIAdNHBolYbbacv2OSosg\", \n \"id\": \"AK2MIAdNHBolYbbacv2OSosg\", \n \"links\": {}, \n \"meta\": {}\n }, \n {\n \"created_at\": \"2014-01-08T16:24:27.301395Z\", \n \"href\": \"/api_keys/AK2FXZJPk9I9bkra06deIZjW\", \n \"id\": \"AK2FXZJPk9I9bkra06deIZjW\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P\"\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/AK66nZtNPbPw0Vnt3tmdVXpC" + "uri": "/api_keys/AK2MIAdNHBolYbbacv2OSosg" }, - "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-01-07T18:30:28.767596Z\", \n \"href\": \"/api_keys/AK66nZtNPbPw0Vnt3tmdVXpC\", \n \"id\": \"AK66nZtNPbPw0Vnt3tmdVXpC\", \n \"links\": {}, \n \"meta\": {}\n }\n ], \n \"links\": {}\n}" + "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-01-08T16:24:33.304190Z\", \n \"href\": \"/api_keys/AK2MIAdNHBolYbbacv2OSosg\", \n \"id\": \"AK2MIAdNHBolYbbacv2OSosg\", \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/CU3QDD1R3iMoGbwiCnoHfd6W", + "payload": { + "customer": "/customers/CU3QDD1R3iMoGbwiCnoHfd6W" + }, + "uri": "/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w" + }, + "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-01-08T16:25:36.390233Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w\", \n \"id\": \"BA3VFGbCg9X5lAzg2FdMhr5w\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU3QDD1R3iMoGbwiCnoHfd6W\"\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-01-08T16:25:36.975500Z\"\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": { @@ -36,46 +46,46 @@ }, "uri": "/bank_accounts" }, - "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-01-07T18:30:40.393633Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS\", \n \"id\": \"BA6jsxwAXYrt4sLjYUw1a1gS\", \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-07T18:30:40.393636Z\"\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 \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-01-08T16:25:36.390233Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w\", \n \"id\": \"BA3VFGbCg9X5lAzg2FdMhr5w\", \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-08T16:25:36.390237Z\"\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/BA6jsxwAXYrt4sLjYUw1a1gS", + "bank_account_href": "/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w", "payload": { "amount": 2000 }, - "uri": "/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS/credits" + "uri": "/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w/credits" }, - "response": "{\n \"credits\": [\n {\n \"amount\": 2000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-07T18:31:57.083009Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR7HIdtAm4eFX1weOgiaRGQM\", \n \"id\": \"CR7HIdtAm4eFX1weOgiaRGQM\", \n \"links\": {\n \"customer\": null, \n \"destination\": \"BA6jsxwAXYrt4sLjYUw1a1gS\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR520-035-3723\", \n \"updated_at\": \"2014-01-07T18:31:57.484537Z\"\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\": 2000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-08T16:25:59.313761Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR4lqO3NwBWdLYGvMAUeKt7g\", \n \"id\": \"CR4lqO3NwBWdLYGvMAUeKt7g\", \n \"links\": {\n \"customer\": \"CU3QDD1R3iMoGbwiCnoHfd6W\", \n \"destination\": \"BA3VFGbCg9X5lAzg2FdMhr5w\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR096-906-8613\", \n \"updated_at\": \"2014-01-08T16:25:59.670993Z\"\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/BA6b9fFSyfhg5xK51iCmPjNZ/debits", + "bank_account_href": "/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s/debits", "payload": { "amount": 5000, "appears_on_statement_as": "Statement text", "description": "Some descriptive text for the debit in the dashboard" }, - "uri": "/bank_accounts/BA6b9fFSyfhg5xK51iCmPjNZ/debits" + "uri": "/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s/debits" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-07T18:30:46.833042Z\", \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/WD6qHGmsgCu9ynchKt6YvscM\", \n \"id\": \"WD6qHGmsgCu9ynchKt6YvscM\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"BA6b9fFSyfhg5xK51iCmPjNZ\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W773-596-6299\", \n \"updated_at\": \"2014-01-07T18:30:47.357301Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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-01-08T16:24:49.579494Z\", \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/WD3517obkMeMT5TW6dKF8grS\", \n \"id\": \"WD3517obkMeMT5TW6dKF8grS\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"BA2RfTVAgg4CdTJrVc7RPw7s\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W713-507-0277\", \n \"updated_at\": \"2014-01-08T16:24:50.103188Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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/BA6jsxwAXYrt4sLjYUw1a1gS" + "uri": "/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi" } }, "bank_account_list": { "request": { "uri": "/bank_accounts" }, - "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-01-07T18:30:40.393633Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS\", \n \"id\": \"BA6jsxwAXYrt4sLjYUw1a1gS\", \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-07T18:30:43.034793Z\"\n }, \n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-01-07T18:30:33.019771Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA6b9fFSyfhg5xK51iCmPjNZ\", \n \"id\": \"BA6b9fFSyfhg5xK51iCmPjNZ\", \n \"links\": {\n \"bank_account_verification\": \"BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-01-07T18:30:38.717066Z\"\n }, \n {\n \"account_number\": \"xxxxxxxxxxx5555\", \n \"account_type\": \"checking\", \n \"bank_name\": \"WELLS FARGO BANK NA\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-01-07T18:30:23.358044Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA601YfDWXDusJexVptKWNG8\", \n \"id\": \"BA601YfDWXDusJexVptKWNG8\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU5ZMOZDIYeIFMVbi9Zgavm8\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-01-07T18:30:23.358047Z\"\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 \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-01-08T16:24:43.640077Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi\", \n \"id\": \"BA2Yl8BXIiDIdRGu75Ef2mhi\", \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-08T16:24:45.928315Z\"\n }, \n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-01-08T16:24:37.355370Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s\", \n \"id\": \"BA2RfTVAgg4CdTJrVc7RPw7s\", \n \"links\": {\n \"bank_account_verification\": \"BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-01-08T16:24:42.099887Z\"\n }, \n {\n \"account_number\": \"xxxxxxxxxxx5555\", \n \"account_type\": \"checking\", \n \"bank_name\": \"WELLS FARGO BANK NA\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-01-08T16:24:28.324431Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA2GHRJ2MbwnNstKgjQXJPS7\", \n \"id\": \"BA2GHRJ2MbwnNstKgjQXJPS7\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU2GrtqkKdaf0OaF4RBjJH9J\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-01-08T16:24:28.324433Z\"\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/BA6jsxwAXYrt4sLjYUw1a1gS" + "uri": "/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi" }, - "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-01-07T18:30:40.393633Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS\", \n \"id\": \"BA6jsxwAXYrt4sLjYUw1a1gS\", \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-07T18:30:40.393636Z\"\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 \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-01-08T16:24:43.640077Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi\", \n \"id\": \"BA2Yl8BXIiDIdRGu75Ef2mhi\", \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-08T16:24:43.640080Z\"\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": { @@ -86,22 +96,22 @@ "twitter.id": "1234987650" } }, - "uri": "/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS" + "uri": "/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi" }, - "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-01-07T18:30:40.393633Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS\", \n \"id\": \"BA6jsxwAXYrt4sLjYUw1a1gS\", \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-07T18:30:43.034793Z\"\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 \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-01-08T16:24:43.640077Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi\", \n \"id\": \"BA2Yl8BXIiDIdRGu75Ef2mhi\", \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-08T16:24:45.928315Z\"\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/BA6b9fFSyfhg5xK51iCmPjNZ", - "uri": "/bank_accounts/BA6b9fFSyfhg5xK51iCmPjNZ/verifications" + "bank_account_uri": "/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s", + "uri": "/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s/verifications" }, - "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-07T18:30:34.329884Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"id\": \"BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"links\": {\n \"bank_account\": \"BA6b9fFSyfhg5xK51iCmPjNZ\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-07T18:30:34.996365Z\", \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-01-08T16:24:38.489735Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"id\": \"BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"links\": {\n \"bank_account\": \"BA2RfTVAgg4CdTJrVc7RPw7s\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-08T16:24:39.037490Z\", \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/BZ6cD5IVyWprD3AJTwfi8Bvg" + "uri": "/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG" }, - "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-07T18:30:34.329884Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"id\": \"BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"links\": {\n \"bank_account\": \"BA6b9fFSyfhg5xK51iCmPjNZ\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-07T18:30:34.996365Z\", \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-01-08T16:24:38.489735Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"id\": \"BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"links\": {\n \"bank_account\": \"BA2RfTVAgg4CdTJrVc7RPw7s\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-08T16:24:39.037490Z\", \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": { @@ -109,9 +119,9 @@ "amount_1": 1, "amount_2": 1 }, - "uri": "/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg" + "uri": "/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG" }, - "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-07T18:30:34.329884Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"id\": \"BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"links\": {\n \"bank_account\": \"BA6b9fFSyfhg5xK51iCmPjNZ\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-07T18:30:38.719502Z\", \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-01-08T16:24:38.489735Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"id\": \"BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"links\": {\n \"bank_account\": \"BA2RfTVAgg4CdTJrVc7RPw7s\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-08T16:24:42.101542Z\", \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": { @@ -120,24 +130,24 @@ }, "uri": "/callbacks" }, - "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB6sQjFwENynxbStHgUUWign\", \n \"id\": \"CB6sQjFwENynxbStHgUUWign\", \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/CB37kedWD88LFkipaugpfZ9w\", \n \"id\": \"CB37kedWD88LFkipaugpfZ9w\", \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/CB6sQjFwENynxbStHgUUWign" + "uri": "/callbacks/CB37kedWD88LFkipaugpfZ9w" } }, "callback_list": { "request": { "uri": "/callbacks" }, - "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB6sQjFwENynxbStHgUUWign\", \n \"id\": \"CB6sQjFwENynxbStHgUUWign\", \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/CB37kedWD88LFkipaugpfZ9w\", \n \"id\": \"CB37kedWD88LFkipaugpfZ9w\", \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/CB6sQjFwENynxbStHgUUWign" + "uri": "/callbacks/CB37kedWD88LFkipaugpfZ9w" }, - "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB6sQjFwENynxbStHgUUWign\", \n \"id\": \"CB6sQjFwENynxbStHgUUWign\", \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/CB37kedWD88LFkipaugpfZ9w\", \n \"id\": \"CB37kedWD88LFkipaugpfZ9w\", \n \"links\": {}, \n \"method\": \"post\", \n \"revision\": \"1.1\", \n \"url\": \"http://www.example.com/callback\"\n }\n ], \n \"links\": {}\n}" }, "card": { "address": { @@ -152,25 +162,34 @@ "avs_result": "Postal code matches, but street address not verified.", "avs_street_match": "yes", "brand": "Visa", - "created_at": "2014-01-07T18:30:25.673599Z", + "created_at": "2014-01-08T16:24:30.073714Z", "cvv": null, "cvv_match": null, "cvv_result": null, "expiration_month": 4, "expiration_year": 2016, "fingerprint": "979a26c05f2fb1c7ae38656312b176da2c9be1d938d442040bc79539caac6c0d", - "href": "/cards/CC62Tbejbh69uIgWGddr944o", - "id": "CC62Tbejbh69uIgWGddr944o", + "href": "/cards/CC2J52o6314nVoT909VCYEHM", + "id": "CC2J52o6314nVoT909VCYEHM", "is_verified": true, "links": { - "customer": "CU60ZRsWjBEcimeAsXeaYJWC" + "customer": "CU2HJMVaG8CTt8d8CRHN0aeG" }, "meta": { - "client_ip_address": "107.20.69.114" + "client_ip_address": "54.197.124.124" }, "name": "Benny Riemann", "number": "xxxxxxxxxxxx1111", - "updated_at": "2014-01-07T18:30:25.673602Z" + "updated_at": "2014-01-08T16:24:30.073716Z" + }, + "card_associate_to_customer": { + "request": { + "payload": { + "customer": "/customers/CU4xIyjtjtamnhjJ0E6iW3Kq" + }, + "uri": "/cards/CC3q6xpE6zCz8OZTHcXYvHtS" + }, + "response": "{\n \"errors\": [\n {\n \"additional\": null, \n \"category_code\": \"card-already-funding-src\", \n \"category_type\": \"logical\", \n \"description\": \"Card has already been associated with an account. Your request id is OHM96739c16788111e3a83e026ba7d31e6f.\", \n \"extras\": {}, \n \"request_id\": \"OHM96739c16788111e3a83e026ba7d31e6f\", \n \"status\": \"Conflict\", \n \"status_code\": 409\n }\n ]\n}" }, "card_create": { "request": { @@ -182,58 +201,58 @@ }, "uri": "/cards" }, - "response": "{\n \"cards\": [\n {\n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-07T18:31:06.535568Z\", \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/CC6MQlq1xIGRLEMBWQcD4Dcr\", \n \"id\": \"CC6MQlq1xIGRLEMBWQcD4Dcr\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {\n \"client_ip_address\": \"54.211.86.23\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-07T18:31:06.535571Z\"\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 \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-08T16:25:08.328458Z\", \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/CC3q6xpE6zCz8OZTHcXYvHtS\", \n \"id\": \"CC3q6xpE6zCz8OZTHcXYvHtS\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {\n \"client_ip_address\": \"54.211.94.113\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-08T16:25:08.328462Z\"\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/CC6MQlq1xIGRLEMBWQcD4Dcr", + "card_href": "/cards/CC3q6xpE6zCz8OZTHcXYvHtS", "payload": { "amount": 5000, "appears_on_statement_as": "Statement text", "description": "Some descriptive text for the debit in the dashboard" }, - "uri": "/cards/CC6MQlq1xIGRLEMBWQcD4Dcr/debits" + "uri": "/cards/CC3q6xpE6zCz8OZTHcXYvHtS/debits" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-07T18:31:49.211352Z\", \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/WD7yQnigdgrO2Bkc7vLIdkeW\", \n \"id\": \"WD7yQnigdgrO2Bkc7vLIdkeW\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"CC6MQlq1xIGRLEMBWQcD4Dcr\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W916-923-8871\", \n \"updated_at\": \"2014-01-07T18:31:50.106476Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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-01-08T16:25:51.949507Z\", \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/WD4d9CgVjg8lX8g8l1638Bor\", \n \"id\": \"WD4d9CgVjg8lX8g8l1638Bor\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"CC3q6xpE6zCz8OZTHcXYvHtS\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W594-588-5857\", \n \"updated_at\": \"2014-01-08T16:25:52.907457Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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/CC6MQlq1xIGRLEMBWQcD4Dcr" + "uri": "/cards/CC3q6xpE6zCz8OZTHcXYvHtS" } }, "card_hold_capture": { "request": { - "card_hold_href": "/card_holds/HL6za54jlFLUAvEqDEULOwXC", + "card_hold_href": "/card_holds/HL3dgrKQhecdILFZKW0FQLYs", "payload": { "appears_on_statement_as": "ShowsUpOnStmt", "description": "Some descriptive text for the debit in the dashboard" }, - "uri": "/card_holds/HL6za54jlFLUAvEqDEULOwXC/debits" + "uri": "/card_holds/HL3dgrKQhecdILFZKW0FQLYs/debits" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-01-07T18:31:00.137405Z\", \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/WD6FFij85tByvU4xTL3pctOW\", \n \"id\": \"WD6FFij85tByvU4xTL3pctOW\", \n \"links\": {\n \"customer\": \"CU5ZMOZDIYeIFMVbi9Zgavm8\", \n \"order\": null, \n \"source\": \"CC6y7qpkXsrutTV0z1p4SbhI\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W801-499-4652\", \n \"updated_at\": \"2014-01-07T18:31:00.872816Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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-01-08T16:25:02.374035Z\", \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/WD3jpnHUfhnuulXK7SJAoN3h\", \n \"id\": \"WD3jpnHUfhnuulXK7SJAoN3h\", \n \"links\": {\n \"customer\": \"CU2GrtqkKdaf0OaF4RBjJH9J\", \n \"order\": null, \n \"source\": \"CC3cqYicdXFN8T1nX3frfRCW\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W342-270-4226\", \n \"updated_at\": \"2014-01-08T16:25:03.442254Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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/CC6y7qpkXsrutTV0z1p4SbhI", + "card_href": "/cards/CC3cqYicdXFN8T1nX3frfRCW", "payload": { "amount": 5000, "description": "Some descriptive text for the debit in the dashboard" }, - "uri": "/cards/CC6y7qpkXsrutTV0z1p4SbhI/card_holds" + "uri": "/cards/CC3cqYicdXFN8T1nX3frfRCW/card_holds" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-07T18:31:02.416767Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-01-14T18:31:02.751345Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL6IeshtYufyq1dm9nnEdRHA\", \n \"id\": \"HL6IeshtYufyq1dm9nnEdRHA\", \n \"links\": {\n \"card\": \"CC6y7qpkXsrutTV0z1p4SbhI\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL124-378-2611\", \n \"updated_at\": \"2014-01-07T18:31:03.012916Z\"\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-01-08T16:25:05.037915Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-01-15T16:25:05.244548Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3mplcWSeG79TTxpFyHlxTh\", \n \"id\": \"HL3mplcWSeG79TTxpFyHlxTh\", \n \"links\": {\n \"card\": \"CC3cqYicdXFN8T1nX3frfRCW\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL881-957-8308\", \n \"updated_at\": \"2014-01-08T16:25:05.338948Z\"\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}" }, "card_hold_list": { "request": { "uri": "/card_holds" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-07T18:30:54.350468Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"expires_at\": \"2014-01-14T18:30:54.467794Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL6za54jlFLUAvEqDEULOwXC\", \n \"id\": \"HL6za54jlFLUAvEqDEULOwXC\", \n \"links\": {\n \"card\": \"CC6y7qpkXsrutTV0z1p4SbhI\", \n \"debit\": null\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"transaction_number\": \"HL409-241-1136\", \n \"updated_at\": \"2014-01-07T18:30:57.288709Z\"\n }, \n {\n \"amount\": 10000000, \n \"created_at\": \"2014-01-07T18:30:26.659557Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-01-14T18:30:27.214669Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL640YgYWOkR1BGodbUFCFg4\", \n \"id\": \"HL640YgYWOkR1BGodbUFCFg4\", \n \"links\": {\n \"card\": \"CC62Tbejbh69uIgWGddr944o\", \n \"debit\": \"WD647OpNtyZGPHQ3bj0VRpUc\"\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL366-206-5236\", \n \"updated_at\": \"2014-01-07T18:30:28.093044Z\"\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-01-08T16:24:56.908685Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"expires_at\": \"2014-01-15T16:24:57.033508Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3dgrKQhecdILFZKW0FQLYs\", \n \"id\": \"HL3dgrKQhecdILFZKW0FQLYs\", \n \"links\": {\n \"card\": \"CC3cqYicdXFN8T1nX3frfRCW\", \n \"debit\": null\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"transaction_number\": \"HL958-453-4543\", \n \"updated_at\": \"2014-01-08T16:24:59.540261Z\"\n }, \n {\n \"amount\": 10000000, \n \"created_at\": \"2014-01-08T16:24:30.859829Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-01-15T16:24:31.793887Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL2JX83i7SVfbN33531LfF5Q\", \n \"id\": \"HL2JX83i7SVfbN33531LfF5Q\", \n \"links\": {\n \"card\": \"CC2J52o6314nVoT909VCYEHM\", \n \"debit\": \"WD2K4gAFKoEl9tvxcGE18poy\"\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL909-624-9311\", \n \"updated_at\": \"2014-01-08T16:24:32.597409Z\"\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}" }, "card_hold_show": { "request": { - "uri": "/card_holds/HL6za54jlFLUAvEqDEULOwXC" + "uri": "/card_holds/HL3dgrKQhecdILFZKW0FQLYs" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-07T18:30:54.350468Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-01-14T18:30:54.467794Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL6za54jlFLUAvEqDEULOwXC\", \n \"id\": \"HL6za54jlFLUAvEqDEULOwXC\", \n \"links\": {\n \"card\": \"CC6y7qpkXsrutTV0z1p4SbhI\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL409-241-1136\", \n \"updated_at\": \"2014-01-07T18:30:54.596696Z\"\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-01-08T16:24:56.908685Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-01-15T16:24:57.033508Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3dgrKQhecdILFZKW0FQLYs\", \n \"id\": \"HL3dgrKQhecdILFZKW0FQLYs\", \n \"links\": {\n \"card\": \"CC3cqYicdXFN8T1nX3frfRCW\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL958-453-4543\", \n \"updated_at\": \"2014-01-08T16:24:57.129171Z\"\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}" }, "card_hold_update": { "request": { @@ -244,31 +263,31 @@ "meaningful.key": "some.value" } }, - "uri": "/card_holds/HL6za54jlFLUAvEqDEULOwXC" + "uri": "/card_holds/HL3dgrKQhecdILFZKW0FQLYs" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-07T18:30:54.350468Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"expires_at\": \"2014-01-14T18:30:54.467794Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL6za54jlFLUAvEqDEULOwXC\", \n \"id\": \"HL6za54jlFLUAvEqDEULOwXC\", \n \"links\": {\n \"card\": \"CC6y7qpkXsrutTV0z1p4SbhI\", \n \"debit\": null\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"transaction_number\": \"HL409-241-1136\", \n \"updated_at\": \"2014-01-07T18:30:57.288709Z\"\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-01-08T16:24:56.908685Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"expires_at\": \"2014-01-15T16:24:57.033508Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3dgrKQhecdILFZKW0FQLYs\", \n \"id\": \"HL3dgrKQhecdILFZKW0FQLYs\", \n \"links\": {\n \"card\": \"CC3cqYicdXFN8T1nX3frfRCW\", \n \"debit\": null\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"transaction_number\": \"HL958-453-4543\", \n \"updated_at\": \"2014-01-08T16:24:59.540261Z\"\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}" }, "card_hold_void": { "request": { "payload": { "is_void": "true" }, - "uri": "/card_holds/HL6IeshtYufyq1dm9nnEdRHA" + "uri": "/card_holds/HL3mplcWSeG79TTxpFyHlxTh" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-07T18:31:02.416767Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-01-14T18:31:02.751345Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL6IeshtYufyq1dm9nnEdRHA\", \n \"id\": \"HL6IeshtYufyq1dm9nnEdRHA\", \n \"links\": {\n \"card\": \"CC6y7qpkXsrutTV0z1p4SbhI\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL124-378-2611\", \n \"updated_at\": \"2014-01-07T18:31:03.684754Z\"\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-01-08T16:25:05.037915Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-01-15T16:25:05.244548Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3mplcWSeG79TTxpFyHlxTh\", \n \"id\": \"HL3mplcWSeG79TTxpFyHlxTh\", \n \"links\": {\n \"card\": \"CC3cqYicdXFN8T1nX3frfRCW\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL881-957-8308\", \n \"updated_at\": \"2014-01-08T16:25:05.954328Z\"\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}" }, - "card_id": "CC62Tbejbh69uIgWGddr944o", + "card_id": "CC2J52o6314nVoT909VCYEHM", "card_list": { "request": { "uri": "/cards" }, - "response": "{\n \"cards\": [\n {\n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-07T18:31:06.535568Z\", \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/CC6MQlq1xIGRLEMBWQcD4Dcr\", \n \"id\": \"CC6MQlq1xIGRLEMBWQcD4Dcr\", \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-07T18:31:08.877871Z\"\n }, \n {\n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-07T18:30:53.438853Z\", \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/CC6y7qpkXsrutTV0z1p4SbhI\", \n \"id\": \"CC6y7qpkXsrutTV0z1p4SbhI\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU5ZMOZDIYeIFMVbi9Zgavm8\"\n }, \n \"meta\": {\n \"client_ip_address\": \"107.20.69.114\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-07T18:30:54.345648Z\"\n }, \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-01-07T18:30:25.673599Z\", \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/CC62Tbejbh69uIgWGddr944o\", \n \"id\": \"CC62Tbejbh69uIgWGddr944o\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU60ZRsWjBEcimeAsXeaYJWC\"\n }, \n \"meta\": {\n \"client_ip_address\": \"107.20.69.114\"\n }, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-01-07T18:30:25.673602Z\"\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 \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-08T16:25:08.328458Z\", \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/CC3q6xpE6zCz8OZTHcXYvHtS\", \n \"id\": \"CC3q6xpE6zCz8OZTHcXYvHtS\", \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-08T16:25:10.653745Z\"\n }, \n {\n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-08T16:24:56.169481Z\", \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/CC3cqYicdXFN8T1nX3frfRCW\", \n \"id\": \"CC3cqYicdXFN8T1nX3frfRCW\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU2GrtqkKdaf0OaF4RBjJH9J\"\n }, \n \"meta\": {\n \"client_ip_address\": \"54.211.94.113\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-08T16:24:56.903782Z\"\n }, \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-01-08T16:24:30.073714Z\", \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/CC2J52o6314nVoT909VCYEHM\", \n \"id\": \"CC2J52o6314nVoT909VCYEHM\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU2HJMVaG8CTt8d8CRHN0aeG\"\n }, \n \"meta\": {\n \"client_ip_address\": \"54.197.124.124\"\n }, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-01-08T16:24:30.073716Z\"\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/CC6MQlq1xIGRLEMBWQcD4Dcr" + "uri": "/cards/CC3q6xpE6zCz8OZTHcXYvHtS" }, - "response": "{\n \"cards\": [\n {\n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-07T18:31:06.535568Z\", \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/CC6MQlq1xIGRLEMBWQcD4Dcr\", \n \"id\": \"CC6MQlq1xIGRLEMBWQcD4Dcr\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {\n \"client_ip_address\": \"54.211.86.23\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-07T18:31:06.535571Z\"\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 \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-08T16:25:08.328458Z\", \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/CC3q6xpE6zCz8OZTHcXYvHtS\", \n \"id\": \"CC3q6xpE6zCz8OZTHcXYvHtS\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {\n \"client_ip_address\": \"54.211.94.113\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-08T16:25:08.328462Z\"\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": { @@ -279,30 +298,30 @@ "twitter.id": "1234987650" } }, - "uri": "/cards/CC6MQlq1xIGRLEMBWQcD4Dcr" + "uri": "/cards/CC3q6xpE6zCz8OZTHcXYvHtS" }, - "response": "{\n \"cards\": [\n {\n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-07T18:31:06.535568Z\", \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/CC6MQlq1xIGRLEMBWQcD4Dcr\", \n \"id\": \"CC6MQlq1xIGRLEMBWQcD4Dcr\", \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-07T18:31:08.877871Z\"\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 \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-08T16:25:08.328458Z\", \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/CC3q6xpE6zCz8OZTHcXYvHtS\", \n \"id\": \"CC3q6xpE6zCz8OZTHcXYvHtS\", \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-08T16:25:10.653745Z\"\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/CC62Tbejbh69uIgWGddr944o", - "cards_uri": "/customers/CU60ZRsWjBEcimeAsXeaYJWC/cards", + "card_uri": "/cards/CC2J52o6314nVoT909VCYEHM", + "cards_uri": "/customers/CU2HJMVaG8CTt8d8CRHN0aeG/cards", "credit_list": { "request": { "uri": "/credits" }, - "response": "{\n \"credits\": [\n {\n \"amount\": 2000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-07T18:31:17.241661Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for credit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR6YTbjFOeoK78NdjiGsCgxo\", \n \"id\": \"CR6YTbjFOeoK78NdjiGsCgxo\", \n \"links\": {\n \"customer\": null, \n \"destination\": \"BA6jsxwAXYrt4sLjYUw1a1gS\", \n \"order\": null\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR803-383-3835\", \n \"updated_at\": \"2014-01-07T18:31:20.187169Z\"\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\": 2000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-08T16:25:20.495800Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for credit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR3DLTIjMve5idvjBrXNKBHE\", \n \"id\": \"CR3DLTIjMve5idvjBrXNKBHE\", \n \"links\": {\n \"customer\": \"CU3ArYxYGBjmbAssgNWhzcmG\", \n \"destination\": \"BA3C8lXvROvLuM9glu6on2UM\", \n \"order\": null\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR931-215-5003\", \n \"updated_at\": \"2014-01-08T16:25:23.542299Z\"\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/BA6jsxwAXYrt4sLjYUw1a1gS", - "uri": "/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS/credits" + "bank_account_href": "/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi", + "uri": "/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi/credits" }, - "response": "{\n \"credits\": [\n {\n \"amount\": 2000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-07T18:31:17.241661Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for credit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR6YTbjFOeoK78NdjiGsCgxo\", \n \"id\": \"CR6YTbjFOeoK78NdjiGsCgxo\", \n \"links\": {\n \"customer\": null, \n \"destination\": \"BA6jsxwAXYrt4sLjYUw1a1gS\", \n \"order\": null\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR803-383-3835\", \n \"updated_at\": \"2014-01-07T18:31:20.187169Z\"\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\": \"/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS/credits?limit=10&offset=0\", \n \"href\": \"/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS/credits?limit=10&offset=0\", \n \"last\": \"/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS/credits?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }\n}" + "response": "{\n \"links\": {}, \n \"meta\": {\n \"first\": \"/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi/credits?limit=10&offset=0\", \n \"href\": \"/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi/credits?limit=10&offset=0\", \n \"last\": \"/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi/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/CR6YTbjFOeoK78NdjiGsCgxo" + "uri": "/credits/CR3DLTIjMve5idvjBrXNKBHE" }, - "response": "{\n \"credits\": [\n {\n \"amount\": 2000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-07T18:31:17.241661Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR6YTbjFOeoK78NdjiGsCgxo\", \n \"id\": \"CR6YTbjFOeoK78NdjiGsCgxo\", \n \"links\": {\n \"customer\": null, \n \"destination\": \"BA6jsxwAXYrt4sLjYUw1a1gS\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR803-383-3835\", \n \"updated_at\": \"2014-01-07T18:31:17.663477Z\"\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\": 2000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-08T16:25:20.495800Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR3DLTIjMve5idvjBrXNKBHE\", \n \"id\": \"CR3DLTIjMve5idvjBrXNKBHE\", \n \"links\": {\n \"customer\": \"CU3ArYxYGBjmbAssgNWhzcmG\", \n \"destination\": \"BA3C8lXvROvLuM9glu6on2UM\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR931-215-5003\", \n \"updated_at\": \"2014-01-08T16:25:21.003521Z\"\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": { @@ -313,9 +332,9 @@ "facebook.id": "1234567890" } }, - "uri": "/credits/CR6YTbjFOeoK78NdjiGsCgxo" + "uri": "/credits/CR3DLTIjMve5idvjBrXNKBHE" }, - "response": "{\n \"credits\": [\n {\n \"amount\": 2000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-07T18:31:17.241661Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for credit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR6YTbjFOeoK78NdjiGsCgxo\", \n \"id\": \"CR6YTbjFOeoK78NdjiGsCgxo\", \n \"links\": {\n \"customer\": null, \n \"destination\": \"BA6jsxwAXYrt4sLjYUw1a1gS\", \n \"order\": null\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR803-383-3835\", \n \"updated_at\": \"2014-01-07T18:31:20.187169Z\"\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\": 2000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-08T16:25:20.495800Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for credit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR3DLTIjMve5idvjBrXNKBHE\", \n \"id\": \"CR3DLTIjMve5idvjBrXNKBHE\", \n \"links\": {\n \"customer\": \"CU3ArYxYGBjmbAssgNWhzcmG\", \n \"destination\": \"BA3C8lXvROvLuM9glu6on2UM\", \n \"order\": null\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR931-215-5003\", \n \"updated_at\": \"2014-01-08T16:25:23.542299Z\"\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": { @@ -327,13 +346,13 @@ "state": null }, "business_name": null, - "created_at": "2014-01-07T18:30:23.987305Z", + "created_at": "2014-01-08T16:24:28.890274Z", "dob_month": null, "dob_year": null, "ein": null, "email": null, - "href": "/customers/CU60ZRsWjBEcimeAsXeaYJWC", - "id": "CU60ZRsWjBEcimeAsXeaYJWC", + "href": "/customers/CU2HJMVaG8CTt8d8CRHN0aeG", + "id": "CU2HJMVaG8CTt8d8CRHN0aeG", "links": { "destination": null, "source": null @@ -343,26 +362,7 @@ "name": null, "phone": null, "ssn_last4": null, - "updated_at": "2014-01-07T18:30:24.209739Z" - }, - "customer_add_bank_account": { - "request": { - "customer_href": "/customers/CU7cMba1Uu9Dz2DHguDKcxao", - "payload": { - "bank_account_href": "/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS" - }, - "uri": "/customers/CU7cMba1Uu9Dz2DHguDKcxao" - }, - "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-07T18:31:29.573857Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU7cMba1Uu9Dz2DHguDKcxao\", \n \"id\": \"CU7cMba1Uu9Dz2DHguDKcxao\", \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-07T18:31:30.056892Z\"\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}" - }, - "customer_add_card": { - "request": { - "payload": { - "card_href": "/cards/CC6MQlq1xIGRLEMBWQcD4Dcr" - }, - "uri": "/customers/CU73cQkqN6IUi8D4qBEsOPK" - }, - "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-07T18:32:08.105830Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU73cQkqN6IUi8D4qBEsOPK\", \n \"id\": \"CU73cQkqN6IUi8D4qBEsOPK\", \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-07T18:32:08.549452Z\"\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}" + "updated_at": "2014-01-08T16:24:29.045393Z" }, "customer_create": { "request": { @@ -376,24 +376,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-07T18:32:08.105830Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU73cQkqN6IUi8D4qBEsOPK\", \n \"id\": \"CU73cQkqN6IUi8D4qBEsOPK\", \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-07T18:32:08.549452Z\"\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-01-08T16:26:10.215045Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU4xIyjtjtamnhjJ0E6iW3Kq\", \n \"id\": \"CU4xIyjtjtamnhjJ0E6iW3Kq\", \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-08T16:26:10.686132Z\"\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}" }, "customer_delete": { "request": { - "uri": "/customers/CU7cMba1Uu9Dz2DHguDKcxao" + "uri": "/customers/CU3QDD1R3iMoGbwiCnoHfd6W" } }, "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-07T18:31:29.573857Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU7cMba1Uu9Dz2DHguDKcxao\", \n \"id\": \"CU7cMba1Uu9Dz2DHguDKcxao\", \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-07T18:31:30.056892Z\"\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-07T18:31:24.663004Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": \"email@newdomain.com\", \n \"href\": \"/customers/CU77fJ0bjn9xBZYlzIYkpUQU\", \n \"id\": \"CU77fJ0bjn9xBZYlzIYkpUQU\", \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-07T18:31:27.824273Z\"\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-07T18:31:15.659369Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU6X7675eXqsP8aPymQ5fISa\", \n \"id\": \"CU6X7675eXqsP8aPymQ5fISa\", \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-07T18:31:16.095484Z\"\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-07T18:30:23.987305Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU60ZRsWjBEcimeAsXeaYJWC\", \n \"id\": \"CU60ZRsWjBEcimeAsXeaYJWC\", \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-07T18:30:24.209739Z\"\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-07T18:30:22.900047Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU5ZMOZDIYeIFMVbi9Zgavm8\", \n \"id\": \"CU5ZMOZDIYeIFMVbi9Zgavm8\", \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-07T18:30:23.088283Z\"\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\": 5\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-01-08T16:25:31.912751Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU3QDD1R3iMoGbwiCnoHfd6W\", \n \"id\": \"CU3QDD1R3iMoGbwiCnoHfd6W\", \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-08T16:25:32.355483Z\"\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-08T16:25:27.612886Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": \"email@newdomain.com\", \n \"href\": \"/customers/CU3LNFIXs33DopZuksrfp0KY\", \n \"id\": \"CU3LNFIXs33DopZuksrfp0KY\", \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-08T16:25:30.462003Z\"\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-08T16:25:17.535866Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU3ArYxYGBjmbAssgNWhzcmG\", \n \"id\": \"CU3ArYxYGBjmbAssgNWhzcmG\", \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-08T16:25:18.083207Z\"\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-08T16:24:28.890274Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU2HJMVaG8CTt8d8CRHN0aeG\", \n \"id\": \"CU2HJMVaG8CTt8d8CRHN0aeG\", \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-08T16:24:29.045393Z\"\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-08T16:24:27.725658Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU2GrtqkKdaf0OaF4RBjJH9J\", \n \"id\": \"CU2GrtqkKdaf0OaF4RBjJH9J\", \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-08T16:24:27.902201Z\"\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\": 5\n }\n}" }, "customer_show": { "request": { - "uri": "/customers/CU77fJ0bjn9xBZYlzIYkpUQU" + "uri": "/customers/CU3LNFIXs33DopZuksrfp0KY" }, - "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-07T18:31:24.663004Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU77fJ0bjn9xBZYlzIYkpUQU\", \n \"id\": \"CU77fJ0bjn9xBZYlzIYkpUQU\", \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-07T18:31:25.214593Z\"\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-01-08T16:25:27.612886Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU3LNFIXs33DopZuksrfp0KY\", \n \"id\": \"CU3LNFIXs33DopZuksrfp0KY\", \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-08T16:25:28.143257Z\"\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}" }, "customer_update": { "request": { @@ -403,9 +403,9 @@ "shipping-preference": "ground" } }, - "uri": "/customers/CU77fJ0bjn9xBZYlzIYkpUQU" + "uri": "/customers/CU3LNFIXs33DopZuksrfp0KY" }, - "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-07T18:31:24.663004Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": \"email@newdomain.com\", \n \"href\": \"/customers/CU77fJ0bjn9xBZYlzIYkpUQU\", \n \"id\": \"CU77fJ0bjn9xBZYlzIYkpUQU\", \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-07T18:31:27.824273Z\"\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-01-08T16:25:27.612886Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": \"email@newdomain.com\", \n \"href\": \"/customers/CU3LNFIXs33DopZuksrfp0KY\", \n \"id\": \"CU3LNFIXs33DopZuksrfp0KY\", \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-08T16:25:30.462003Z\"\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}" }, "customers_uri": "/customers", "debit": { @@ -413,22 +413,22 @@ { "amount": 10000000, "appears_on_statement_as": "BAL*example.com", - "created_at": "2014-01-07T18:30:26.763039Z", + "created_at": "2014-01-08T16:24:30.968298Z", "currency": "USD", "description": null, "failure_reason": null, "failure_reason_code": null, - "href": "/debits/WD647OpNtyZGPHQ3bj0VRpUc", - "id": "WD647OpNtyZGPHQ3bj0VRpUc", + "href": "/debits/WD2K4gAFKoEl9tvxcGE18poy", + "id": "WD2K4gAFKoEl9tvxcGE18poy", "links": { - "customer": "CU60ZRsWjBEcimeAsXeaYJWC", + "customer": "CU2HJMVaG8CTt8d8CRHN0aeG", "order": null, - "source": "CC62Tbejbh69uIgWGddr944o" + "source": "CC2J52o6314nVoT909VCYEHM" }, "meta": {}, "status": "succeeded", - "transaction_number": "W813-750-2902", - "updated_at": "2014-01-07T18:30:28.090574Z" + "transaction_number": "W305-959-9887", + "updated_at": "2014-01-08T16:24:32.580731Z" } ], "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-07T18:31:12.543211Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for debit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD6TAVProqNixngz5tRCO52C\", \n \"id\": \"WD6TAVProqNixngz5tRCO52C\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"CC6MQlq1xIGRLEMBWQcD4Dcr\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W431-946-7500\", \n \"updated_at\": \"2014-01-07T18:31:36.164178Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-01-07T18:31:00.137405Z\", \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/WD6FFij85tByvU4xTL3pctOW\", \n \"id\": \"WD6FFij85tByvU4xTL3pctOW\", \n \"links\": {\n \"customer\": \"CU5ZMOZDIYeIFMVbi9Zgavm8\", \n \"order\": null, \n \"source\": \"CC6y7qpkXsrutTV0z1p4SbhI\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W801-499-4652\", \n \"updated_at\": \"2014-01-07T18:31:00.872816Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-07T18:30:46.833042Z\", \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/WD6qHGmsgCu9ynchKt6YvscM\", \n \"id\": \"WD6qHGmsgCu9ynchKt6YvscM\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"BA6b9fFSyfhg5xK51iCmPjNZ\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W773-596-6299\", \n \"updated_at\": \"2014-01-07T18:30:47.357301Z\"\n }, \n {\n \"amount\": 10000000, \n \"appears_on_statement_as\": \"BAL*example.com\", \n \"created_at\": \"2014-01-07T18:30:26.763039Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD647OpNtyZGPHQ3bj0VRpUc\", \n \"id\": \"WD647OpNtyZGPHQ3bj0VRpUc\", \n \"links\": {\n \"customer\": \"CU60ZRsWjBEcimeAsXeaYJWC\", \n \"order\": null, \n \"source\": \"CC62Tbejbh69uIgWGddr944o\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W813-750-2902\", \n \"updated_at\": \"2014-01-07T18:30:28.090574Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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-01-08T16:25:14.691858Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for debit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD3xghyI3uMTgjRP5aJugoQy\", \n \"id\": \"WD3xghyI3uMTgjRP5aJugoQy\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"CC3q6xpE6zCz8OZTHcXYvHtS\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W965-129-3442\", \n \"updated_at\": \"2014-01-08T16:25:39.649054Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-01-08T16:25:02.374035Z\", \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/WD3jpnHUfhnuulXK7SJAoN3h\", \n \"id\": \"WD3jpnHUfhnuulXK7SJAoN3h\", \n \"links\": {\n \"customer\": \"CU2GrtqkKdaf0OaF4RBjJH9J\", \n \"order\": null, \n \"source\": \"CC3cqYicdXFN8T1nX3frfRCW\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W342-270-4226\", \n \"updated_at\": \"2014-01-08T16:25:03.442254Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-08T16:24:49.579494Z\", \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/WD3517obkMeMT5TW6dKF8grS\", \n \"id\": \"WD3517obkMeMT5TW6dKF8grS\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"BA2RfTVAgg4CdTJrVc7RPw7s\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W713-507-0277\", \n \"updated_at\": \"2014-01-08T16:24:50.103188Z\"\n }, \n {\n \"amount\": 10000000, \n \"appears_on_statement_as\": \"BAL*example.com\", \n \"created_at\": \"2014-01-08T16:24:30.968298Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD2K4gAFKoEl9tvxcGE18poy\", \n \"id\": \"WD2K4gAFKoEl9tvxcGE18poy\", \n \"links\": {\n \"customer\": \"CU2HJMVaG8CTt8d8CRHN0aeG\", \n \"order\": null, \n \"source\": \"CC2J52o6314nVoT909VCYEHM\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W305-959-9887\", \n \"updated_at\": \"2014-01-08T16:24:32.580731Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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/WD6TAVProqNixngz5tRCO52C" + "uri": "/debits/WD3xghyI3uMTgjRP5aJugoQy" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-07T18:31:12.543211Z\", \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/WD6TAVProqNixngz5tRCO52C\", \n \"id\": \"WD6TAVProqNixngz5tRCO52C\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"CC6MQlq1xIGRLEMBWQcD4Dcr\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W431-946-7500\", \n \"updated_at\": \"2014-01-07T18:31:13.703399Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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-01-08T16:25:14.691858Z\", \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/WD3xghyI3uMTgjRP5aJugoQy\", \n \"id\": \"WD3xghyI3uMTgjRP5aJugoQy\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"CC3q6xpE6zCz8OZTHcXYvHtS\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W965-129-3442\", \n \"updated_at\": \"2014-01-08T16:25:15.830670Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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/WD6TAVProqNixngz5tRCO52C" + "uri": "/debits/WD3xghyI3uMTgjRP5aJugoQy" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-07T18:31:12.543211Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for debit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD6TAVProqNixngz5tRCO52C\", \n \"id\": \"WD6TAVProqNixngz5tRCO52C\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"CC6MQlq1xIGRLEMBWQcD4Dcr\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W431-946-7500\", \n \"updated_at\": \"2014-01-07T18:31:36.164178Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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-01-08T16:25:14.691858Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for debit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD3xghyI3uMTgjRP5aJugoQy\", \n \"id\": \"WD3xghyI3uMTgjRP5aJugoQy\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"CC3q6xpE6zCz8OZTHcXYvHtS\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W965-129-3442\", \n \"updated_at\": \"2014-01-08T16:25:39.649054Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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 \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-07T18:30:34.329884Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"id\": \"BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"links\": {\n \"bank_account\": \"BA6b9fFSyfhg5xK51iCmPjNZ\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-07T18:30:38.719502Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EVce72c4ba77c911e3a3be026ba7cac9da\", \n \"id\": \"EVce72c4ba77c911e3a3be026ba7cac9da\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-07T18:30:38.719000Z\", \n \"type\": \"bank_account_verification.updated\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-07T18:30:34.329884Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"id\": \"BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"links\": {\n \"bank_account\": \"BA6b9fFSyfhg5xK51iCmPjNZ\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-07T18:30:34.996365Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EVcbd5d8b477c911e39576026ba7c1aba6\", \n \"id\": \"EVcbd5d8b477c911e39576026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-07T18:30:34.996000Z\", \n \"type\": \"bank_account_verification.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-07T18:30:34.329884Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"id\": \"BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"links\": {\n \"bank_account\": \"BA6b9fFSyfhg5xK51iCmPjNZ\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-07T18:30:38.719502Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EVceb8e31477c911e393a1026ba7cac9da\", \n \"id\": \"EVceb8e31477c911e393a1026ba7cac9da\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-07T18:30:38.719000Z\", \n \"type\": \"bank_account_verification.verified\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-07T18:30:34.329884Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"id\": \"BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"links\": {\n \"bank_account\": \"BA6b9fFSyfhg5xK51iCmPjNZ\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-07T18:30:34.996365Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EVcd3e9c0477c911e39baf026ba7d31e6f\", \n \"id\": \"EVcd3e9c0477c911e39baf026ba7d31e6f\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-07T18:30:34.996000Z\", \n \"type\": \"bank_account_verification.deposited\"\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\": \"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-07T18:30:22.900047Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU5ZMOZDIYeIFMVbi9Zgavm8\", \n \"id\": \"CU5ZMOZDIYeIFMVbi9Zgavm8\", \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-07T18:30:23.088283Z\"\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/EVc50ef79077c911e3b958026ba7f8ec28\", \n \"id\": \"EVc50ef79077c911e3b958026ba7f8ec28\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-07T18:30:23.088000Z\", \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 \"bank_name\": \"WELLS FARGO BANK NA\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-01-07T18:30:23.358044Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA601YfDWXDusJexVptKWNG8\", \n \"id\": \"BA601YfDWXDusJexVptKWNG8\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU5ZMOZDIYeIFMVbi9Zgavm8\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-01-07T18:30:23.358047Z\"\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/EVc54dc01077c911e3b958026ba7f8ec28\", \n \"id\": \"EVc54dc01077c911e3b958026ba7f8ec28\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-07T18:30:23.358000Z\", \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-01-07T18:30:23.987305Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU60ZRsWjBEcimeAsXeaYJWC\", \n \"id\": \"CU60ZRsWjBEcimeAsXeaYJWC\", \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-07T18:30:24.209739Z\"\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/EVc5aca10c77c911e3bb9d026ba7c1aba6\", \n \"id\": \"EVc5aca10c77c911e3bb9d026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-07T18:30:24.209000Z\", \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 \"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-01-07T18:30:25.673599Z\", \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/CC62Tbejbh69uIgWGddr944o\", \n \"id\": \"CC62Tbejbh69uIgWGddr944o\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU60ZRsWjBEcimeAsXeaYJWC\"\n }, \n \"meta\": {\n \"client_ip_address\": \"107.20.69.114\"\n }, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-01-07T18:30:25.673602Z\"\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/EVc6b0593677c911e3a81e026ba7f8ec28\", \n \"id\": \"EVc6b0593677c911e3a81e026ba7f8ec28\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-07T18:30:25.673000Z\", \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-01-07T18:30:26.659557Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL640YgYWOkR1BGodbUFCFg4\", \n \"id\": \"HL640YgYWOkR1BGodbUFCFg4\", \n \"links\": {\n \"card\": \"CC62Tbejbh69uIgWGddr944o\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL366-206-5236\", \n \"updated_at\": \"2014-01-07T18:30:26.659561Z\"\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 }, \n \"href\": \"/events/EVc74c472e77c911e3a81e026ba7f8ec28\", \n \"id\": \"EVc74c472e77c911e3a81e026ba7f8ec28\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-07T18:30:26.659000Z\", \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-01-07T18:30:26.659557Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-01-14T18:30:27.214669Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL640YgYWOkR1BGodbUFCFg4\", \n \"id\": \"HL640YgYWOkR1BGodbUFCFg4\", \n \"links\": {\n \"card\": \"CC62Tbejbh69uIgWGddr944o\", \n \"debit\": \"WD647OpNtyZGPHQ3bj0VRpUc\"\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL366-206-5236\", \n \"updated_at\": \"2014-01-07T18:30:28.093044Z\"\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 }, \n \"href\": \"/events/EVc7b6b67c77c911e3a81e026ba7f8ec28\", \n \"id\": \"EVc7b6b67c77c911e3a81e026ba7f8ec28\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-07T18:30:28.093000Z\", \n \"type\": \"hold.updated\"\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\": 51\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 \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-08T16:24:38.489735Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"id\": \"BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"links\": {\n \"bank_account\": \"BA2RfTVAgg4CdTJrVc7RPw7s\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-08T16:24:42.101542Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EV610bd3fe788111e3b3e8026ba7cd33d0\", \n \"id\": \"EV610bd3fe788111e3b3e8026ba7cd33d0\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-08T16:24:42.101000Z\", \n \"type\": \"bank_account_verification.verified\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-08T16:24:38.489735Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"id\": \"BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"links\": {\n \"bank_account\": \"BA2RfTVAgg4CdTJrVc7RPw7s\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-08T16:24:42.101542Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EV60c34c24788111e3920a026ba7d31e6f\", \n \"id\": \"EV60c34c24788111e3920a026ba7d31e6f\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-08T16:24:42.101000Z\", \n \"type\": \"bank_account_verification.updated\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-08T16:24:38.489735Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"id\": \"BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"links\": {\n \"bank_account\": \"BA2RfTVAgg4CdTJrVc7RPw7s\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-08T16:24:39.037490Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EV5e9f918c788111e3bd8d026ba7cd33d0\", \n \"id\": \"EV5e9f918c788111e3bd8d026ba7cd33d0\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-08T16:24:39.037000Z\", \n \"type\": \"bank_account_verification.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-08T16:24:38.489735Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"id\": \"BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"links\": {\n \"bank_account\": \"BA2RfTVAgg4CdTJrVc7RPw7s\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-08T16:24:39.037490Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EV5fa3344e788111e399ae026ba7d31e6f\", \n \"id\": \"EV5fa3344e788111e399ae026ba7d31e6f\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-08T16:24:39.037000Z\", \n \"type\": \"bank_account_verification.deposited\"\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\": \"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-08T16:24:27.725658Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU2GrtqkKdaf0OaF4RBjJH9J\", \n \"id\": \"CU2GrtqkKdaf0OaF4RBjJH9J\", \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-08T16:24:27.902201Z\"\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/EV583b98f4788111e3a892026ba7d31e6f\", \n \"id\": \"EV583b98f4788111e3a892026ba7d31e6f\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-08T16:24:27.902000Z\", \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 \"bank_name\": \"WELLS FARGO BANK NA\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-01-08T16:24:28.324431Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA2GHRJ2MbwnNstKgjQXJPS7\", \n \"id\": \"BA2GHRJ2MbwnNstKgjQXJPS7\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU2GrtqkKdaf0OaF4RBjJH9J\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-01-08T16:24:28.324433Z\"\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/EV5892552c788111e3a892026ba7d31e6f\", \n \"id\": \"EV5892552c788111e3a892026ba7d31e6f\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-08T16:24:28.324000Z\", \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-01-08T16:24:28.890274Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU2HJMVaG8CTt8d8CRHN0aeG\", \n \"id\": \"CU2HJMVaG8CTt8d8CRHN0aeG\", \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-08T16:24:29.045393Z\"\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/EV58e4c456788111e38fec026ba7c1aba6\", \n \"id\": \"EV58e4c456788111e38fec026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-08T16:24:29.045000Z\", \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 \"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-01-08T16:24:30.073714Z\", \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/CC2J52o6314nVoT909VCYEHM\", \n \"id\": \"CC2J52o6314nVoT909VCYEHM\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU2HJMVaG8CTt8d8CRHN0aeG\"\n }, \n \"meta\": {\n \"client_ip_address\": \"54.197.124.124\"\n }, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-01-08T16:24:30.073716Z\"\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/EV599c3730788111e382b4026ba7cac9da\", \n \"id\": \"EV599c3730788111e382b4026ba7cac9da\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-08T16:24:30.073000Z\", \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-01-08T16:24:30.859829Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL2JX83i7SVfbN33531LfF5Q\", \n \"id\": \"HL2JX83i7SVfbN33531LfF5Q\", \n \"links\": {\n \"card\": \"CC2J52o6314nVoT909VCYEHM\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL909-624-9311\", \n \"updated_at\": \"2014-01-08T16:24:30.859832Z\"\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 }, \n \"href\": \"/events/EV5a1b9584788111e3b9bf026ba7c1aba6\", \n \"id\": \"EV5a1b9584788111e3b9bf026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-08T16:24:30.859000Z\", \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-01-08T16:24:30.859829Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-01-15T16:24:31.793887Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL2JX83i7SVfbN33531LfF5Q\", \n \"id\": \"HL2JX83i7SVfbN33531LfF5Q\", \n \"links\": {\n \"card\": \"CC2J52o6314nVoT909VCYEHM\", \n \"debit\": \"WD2K4gAFKoEl9tvxcGE18poy\"\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL909-624-9311\", \n \"updated_at\": \"2014-01-08T16:24:32.597409Z\"\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 }, \n \"href\": \"/events/EV5abfab60788111e3b9bf026ba7c1aba6\", \n \"id\": \"EV5abfab60788111e3b9bf026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-08T16:24:32.597000Z\", \n \"type\": \"hold.updated\"\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\": 55\n }\n}" }, "event_show": { "request": { - "uri": "/events/EVce72c4ba77c911e3a3be026ba7cac9da" + "uri": "/events/EV610bd3fe788111e3b3e8026ba7cd33d0" }, - "response": "{\n \"events\": [\n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-07T18:30:34.329884Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"id\": \"BZ6cD5IVyWprD3AJTwfi8Bvg\", \n \"links\": {\n \"bank_account\": \"BA6b9fFSyfhg5xK51iCmPjNZ\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-07T18:30:38.719502Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EVce72c4ba77c911e3a3be026ba7cac9da\", \n \"id\": \"EVce72c4ba77c911e3a3be026ba7cac9da\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-07T18:30:38.719000Z\", \n \"type\": \"bank_account_verification.updated\"\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 \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-08T16:24:38.489735Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"id\": \"BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"links\": {\n \"bank_account\": \"BA2RfTVAgg4CdTJrVc7RPw7s\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-08T16:24:42.101542Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EV610bd3fe788111e3b3e8026ba7cd33d0\", \n \"id\": \"EV610bd3fe788111e3b3e8026ba7cd33d0\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-08T16:24:42.101000Z\", \n \"type\": \"bank_account_verification.verified\"\n }\n ], \n \"links\": {\n \"events.callbacks\": \"/events/{events.self}/callbacks\"\n }\n}" }, "marketplace": { - "created_at": "2014-01-07T18:30:22.869769Z", + "created_at": "2014-01-08T16:24:27.690253Z", "domain_url": "example.com", - "href": "/marketplaces/TEST-MP5ZKfY6SyYiSTm6GpKnUIWY", - "id": "TEST-MP5ZKfY6SyYiSTm6GpKnUIWY", + "href": "/marketplaces/TEST-MP2GooVnrAGDot6beW1A1Vcb", + "id": "TEST-MP2GooVnrAGDot6beW1A1Vcb", "in_escrow": 0, "links": { - "owner_customer": "CU5ZMOZDIYeIFMVbi9Zgavm8" + "owner_customer": "CU2GrtqkKdaf0OaF4RBjJH9J" }, "meta": {}, "name": "Test Marketplace", @@ -491,30 +491,30 @@ "support_email_address": "support@example.com", "support_phone_number": "+16505551234", "unsettled_fees": 0, - "updated_at": "2014-01-07T18:30:23.346339Z" + "updated_at": "2014-01-08T16:24:28.339038Z" }, - "marketplace_id": "TEST-MP5ZKfY6SyYiSTm6GpKnUIWY", - "marketplace_uri": "/marketplaces/TEST-MP5ZKfY6SyYiSTm6GpKnUIWY", + "marketplace_id": "TEST-MP2GooVnrAGDot6beW1A1Vcb", + "marketplace_uri": "/marketplaces/TEST-MP2GooVnrAGDot6beW1A1Vcb", "order_create": { "request": { "payload": { "description": "Order #12341234" }, - "uri": "/customers/CU7cMba1Uu9Dz2DHguDKcxao/orders" + "uri": "/customers/CU3QDD1R3iMoGbwiCnoHfd6W/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-07T18:31:44.183542Z\", \n \"currency\": \"USD\", \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR7tbUrFlrIwYwE4iCuhtq0v\", \n \"id\": \"OR7tbUrFlrIwYwE4iCuhtq0v\", \n \"links\": {\n \"merchant\": \"CU7cMba1Uu9Dz2DHguDKcxao\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-07T18:31:44.183546Z\"\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-01-08T16:25:46.862586Z\", \n \"currency\": \"USD\", \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR47s8iZqDt662LdYa5My3oK\", \n \"id\": \"OR47s8iZqDt662LdYa5My3oK\", \n \"links\": {\n \"merchant\": \"CU3QDD1R3iMoGbwiCnoHfd6W\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-08T16:25:46.862589Z\"\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-07T18:31:44.183542Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for order\", \n \"href\": \"/orders/OR7tbUrFlrIwYwE4iCuhtq0v\", \n \"id\": \"OR7tbUrFlrIwYwE4iCuhtq0v\", \n \"links\": {\n \"merchant\": \"CU7cMba1Uu9Dz2DHguDKcxao\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"product.id\": \"1234567890\"\n }, \n \"updated_at\": \"2014-01-07T18:31:46.598343Z\"\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-01-08T16:25:46.862586Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for order\", \n \"href\": \"/orders/OR47s8iZqDt662LdYa5My3oK\", \n \"id\": \"OR47s8iZqDt662LdYa5My3oK\", \n \"links\": {\n \"merchant\": \"CU3QDD1R3iMoGbwiCnoHfd6W\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"product.id\": \"1234567890\"\n }, \n \"updated_at\": \"2014-01-08T16:25:49.318827Z\"\n }\n ]\n}" }, "order_show": { "request": { - "uri": "/orders/OR7tbUrFlrIwYwE4iCuhtq0v" + "uri": "/orders/OR47s8iZqDt662LdYa5My3oK" }, - "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-07T18:31:44.183542Z\", \n \"currency\": \"USD\", \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR7tbUrFlrIwYwE4iCuhtq0v\", \n \"id\": \"OR7tbUrFlrIwYwE4iCuhtq0v\", \n \"links\": {\n \"merchant\": \"CU7cMba1Uu9Dz2DHguDKcxao\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-07T18:31:44.183546Z\"\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-01-08T16:25:46.862586Z\", \n \"currency\": \"USD\", \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR47s8iZqDt662LdYa5My3oK\", \n \"id\": \"OR47s8iZqDt662LdYa5My3oK\", \n \"links\": {\n \"merchant\": \"CU3QDD1R3iMoGbwiCnoHfd6W\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-08T16:25:46.862589Z\"\n }\n ]\n}" }, "order_update": { "request": { @@ -525,13 +525,13 @@ "product.id": "1234567890" } }, - "uri": "/orders/OR7tbUrFlrIwYwE4iCuhtq0v" + "uri": "/orders/OR47s8iZqDt662LdYa5My3oK" }, - "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-07T18:31:44.183542Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for order\", \n \"href\": \"/orders/OR7tbUrFlrIwYwE4iCuhtq0v\", \n \"id\": \"OR7tbUrFlrIwYwE4iCuhtq0v\", \n \"links\": {\n \"merchant\": \"CU7cMba1Uu9Dz2DHguDKcxao\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"product.id\": \"1234567890\"\n }, \n \"updated_at\": \"2014-01-07T18:31:46.598343Z\"\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-01-08T16:25:46.862586Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for order\", \n \"href\": \"/orders/OR47s8iZqDt662LdYa5My3oK\", \n \"id\": \"OR47s8iZqDt662LdYa5My3oK\", \n \"links\": {\n \"merchant\": \"CU3QDD1R3iMoGbwiCnoHfd6W\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"product.id\": \"1234567890\"\n }, \n \"updated_at\": \"2014-01-08T16:25:49.318827Z\"\n }\n ]\n}" }, "refund_create": { "request": { - "debit_href": "/debits/WD7yQnigdgrO2Bkc7vLIdkeW", + "debit_href": "/debits/WD4d9CgVjg8lX8g8l1638Bor", "payload": { "description": "Refund for Order #1111", "meta": { @@ -540,21 +540,21 @@ "user.refund_reason": "not happy with product" } }, - "uri": "/debits/WD7yQnigdgrO2Bkc7vLIdkeW/refunds" + "uri": "/debits/WD4d9CgVjg8lX8g8l1638Bor/refunds" }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-07T18:31:50.725959Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF7AxY5iLVIl7a3QtcoVZocS\", \n \"id\": \"RF7AxY5iLVIl7a3QtcoVZocS\", \n \"links\": {\n \"debit\": \"WD7yQnigdgrO2Bkc7vLIdkeW\", \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\": \"RF139-747-7963\", \n \"updated_at\": \"2014-01-07T18:31:51.387911Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-08T16:25:53.545355Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF4eXqVaytz4vN4NwOAfFHXO\", \n \"id\": \"RF4eXqVaytz4vN4NwOAfFHXO\", \n \"links\": {\n \"debit\": \"WD4d9CgVjg8lX8g8l1638Bor\", \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\": \"RF863-018-9348\", \n \"updated_at\": \"2014-01-08T16:25:54.276790Z\"\n }\n ]\n}" }, "refund_list": { "request": { "uri": "/refunds" }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \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\": 5000, \n \"created_at\": \"2014-01-07T18:31:50.725959Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"href\": \"/refunds/RF7AxY5iLVIl7a3QtcoVZocS\", \n \"id\": \"RF7AxY5iLVIl7a3QtcoVZocS\", \n \"links\": {\n \"debit\": \"WD7yQnigdgrO2Bkc7vLIdkeW\", \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\": \"RF139-747-7963\", \n \"updated_at\": \"2014-01-07T18:31:53.868388Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \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\": 5000, \n \"created_at\": \"2014-01-08T16:25:53.545355Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"href\": \"/refunds/RF4eXqVaytz4vN4NwOAfFHXO\", \n \"id\": \"RF4eXqVaytz4vN4NwOAfFHXO\", \n \"links\": {\n \"debit\": \"WD4d9CgVjg8lX8g8l1638Bor\", \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\": \"RF863-018-9348\", \n \"updated_at\": \"2014-01-08T16:25:56.568285Z\"\n }\n ]\n}" }, "refund_show": { "request": { - "uri": "/refunds/RF7AxY5iLVIl7a3QtcoVZocS" + "uri": "/refunds/RF4eXqVaytz4vN4NwOAfFHXO" }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-07T18:31:50.725959Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF7AxY5iLVIl7a3QtcoVZocS\", \n \"id\": \"RF7AxY5iLVIl7a3QtcoVZocS\", \n \"links\": {\n \"debit\": \"WD7yQnigdgrO2Bkc7vLIdkeW\", \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\": \"RF139-747-7963\", \n \"updated_at\": \"2014-01-07T18:31:51.387911Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-08T16:25:53.545355Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF4eXqVaytz4vN4NwOAfFHXO\", \n \"id\": \"RF4eXqVaytz4vN4NwOAfFHXO\", \n \"links\": {\n \"debit\": \"WD4d9CgVjg8lX8g8l1638Bor\", \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\": \"RF863-018-9348\", \n \"updated_at\": \"2014-01-08T16:25:54.276790Z\"\n }\n ]\n}" }, "refund_update": { "request": { @@ -566,13 +566,13 @@ "user.refund.count": "3" } }, - "uri": "/refunds/RF7AxY5iLVIl7a3QtcoVZocS" + "uri": "/refunds/RF4eXqVaytz4vN4NwOAfFHXO" }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-07T18:31:50.725959Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"href\": \"/refunds/RF7AxY5iLVIl7a3QtcoVZocS\", \n \"id\": \"RF7AxY5iLVIl7a3QtcoVZocS\", \n \"links\": {\n \"debit\": \"WD7yQnigdgrO2Bkc7vLIdkeW\", \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\": \"RF139-747-7963\", \n \"updated_at\": \"2014-01-07T18:31:53.868388Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-08T16:25:53.545355Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"href\": \"/refunds/RF4eXqVaytz4vN4NwOAfFHXO\", \n \"id\": \"RF4eXqVaytz4vN4NwOAfFHXO\", \n \"links\": {\n \"debit\": \"WD4d9CgVjg8lX8g8l1638Bor\", \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\": \"RF863-018-9348\", \n \"updated_at\": \"2014-01-08T16:25:56.568285Z\"\n }\n ]\n}" }, "reversal_create": { "request": { - "credit_href": "/credits/CR7HIdtAm4eFX1weOgiaRGQM", + "credit_href": "/credits/CR4lqO3NwBWdLYGvMAUeKt7g", "payload": { "description": "Reversal for Order #1111", "meta": { @@ -581,21 +581,21 @@ "user.refund_reason": "not happy with product" } }, - "uri": "/credits/CR7HIdtAm4eFX1weOgiaRGQM/reversals" + "uri": "/credits/CR4lqO3NwBWdLYGvMAUeKt7g/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\": 2000, \n \"created_at\": \"2014-01-07T18:31:58.059107Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV7IMMa8PGy8obFm8g5fnvP1\", \n \"id\": \"RV7IMMa8PGy8obFm8g5fnvP1\", \n \"links\": {\n \"credit\": \"CR7HIdtAm4eFX1weOgiaRGQM\", \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\": \"RV172-960-7625\", \n \"updated_at\": \"2014-01-07T18:31:58.612077Z\"\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\": 2000, \n \"created_at\": \"2014-01-08T16:26:00.258268Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV4mvdReJFZTySZXe8IyQ8Bi\", \n \"id\": \"RV4mvdReJFZTySZXe8IyQ8Bi\", \n \"links\": {\n \"credit\": \"CR4lqO3NwBWdLYGvMAUeKt7g\", \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\": \"RV058-395-8197\", \n \"updated_at\": \"2014-01-08T16:26:01.071587Z\"\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\": 2000, \n \"created_at\": \"2014-01-07T18:31:58.059107Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV7IMMa8PGy8obFm8g5fnvP1\", \n \"id\": \"RV7IMMa8PGy8obFm8g5fnvP1\", \n \"links\": {\n \"credit\": \"CR7HIdtAm4eFX1weOgiaRGQM\", \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\": \"RV172-960-7625\", \n \"updated_at\": \"2014-01-07T18:32:01.149860Z\"\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\": 2000, \n \"created_at\": \"2014-01-08T16:26:00.258268Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV4mvdReJFZTySZXe8IyQ8Bi\", \n \"id\": \"RV4mvdReJFZTySZXe8IyQ8Bi\", \n \"links\": {\n \"credit\": \"CR4lqO3NwBWdLYGvMAUeKt7g\", \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\": \"RV058-395-8197\", \n \"updated_at\": \"2014-01-08T16:26:03.657643Z\"\n }\n ]\n}" }, "reversal_show": { "request": { - "uri": "/reversals/RV7IMMa8PGy8obFm8g5fnvP1" + "uri": "/reversals/RV4mvdReJFZTySZXe8IyQ8Bi" }, - "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\": 2000, \n \"created_at\": \"2014-01-07T18:31:58.059107Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV7IMMa8PGy8obFm8g5fnvP1\", \n \"id\": \"RV7IMMa8PGy8obFm8g5fnvP1\", \n \"links\": {\n \"credit\": \"CR7HIdtAm4eFX1weOgiaRGQM\", \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\": \"RV172-960-7625\", \n \"updated_at\": \"2014-01-07T18:31:58.612077Z\"\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\": 2000, \n \"created_at\": \"2014-01-08T16:26:00.258268Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV4mvdReJFZTySZXe8IyQ8Bi\", \n \"id\": \"RV4mvdReJFZTySZXe8IyQ8Bi\", \n \"links\": {\n \"credit\": \"CR4lqO3NwBWdLYGvMAUeKt7g\", \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\": \"RV058-395-8197\", \n \"updated_at\": \"2014-01-08T16:26:01.071587Z\"\n }\n ]\n}" }, "reversal_update": { "request": { @@ -607,9 +607,9 @@ "user.refund.count": "3" } }, - "uri": "/reversals/RV7IMMa8PGy8obFm8g5fnvP1" + "uri": "/reversals/RV4mvdReJFZTySZXe8IyQ8Bi" }, - "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\": 2000, \n \"created_at\": \"2014-01-07T18:31:58.059107Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV7IMMa8PGy8obFm8g5fnvP1\", \n \"id\": \"RV7IMMa8PGy8obFm8g5fnvP1\", \n \"links\": {\n \"credit\": \"CR7HIdtAm4eFX1weOgiaRGQM\", \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\": \"RV172-960-7625\", \n \"updated_at\": \"2014-01-07T18:32:01.149860Z\"\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\": 2000, \n \"created_at\": \"2014-01-08T16:26:00.258268Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV4mvdReJFZTySZXe8IyQ8Bi\", \n \"id\": \"RV4mvdReJFZTySZXe8IyQ8Bi\", \n \"links\": {\n \"credit\": \"CR4lqO3NwBWdLYGvMAUeKt7g\", \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\": \"RV058-395-8197\", \n \"updated_at\": \"2014-01-08T16:26:03.657643Z\"\n }\n ]\n}" }, - "secret": "ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl" + "secret": "ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P" } \ No newline at end of file diff --git a/scenarios/_main.mako b/scenarios/_main.mako index 650f5b8..858a2a3 100644 --- a/scenarios/_main.mako +++ b/scenarios/_main.mako @@ -34,9 +34,10 @@ import balanced %if api_location: -balanced.config.root_uri = ${api_location}' -%endif +balanced.configure('${api_key}', root_url='${api_location}') +%else: balanced.configure('${api_key}') +%endif @@ -60,4 +61,3 @@ balanced.configure('${api_key}') %> ${reindent(formatted_payload, 2)} - diff --git a/scenarios/_mj/api_key_create/executable.py b/scenarios/_mj/api_key_create/executable.py index 1682777..250f641 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-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') 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 1726d56..db4e51c 100644 --- a/scenarios/_mj/api_key_create/python.mako +++ b/scenarios/_mj/api_key_create/python.mako @@ -4,7 +4,7 @@ balanced.APIKey % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') api_key = balanced.APIKey() api_key.save() diff --git a/scenarios/api_key_create/executable.py b/scenarios/api_key_create/executable.py index 0d3999e..eb30434 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-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.APIKey().save() \ No newline at end of file +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 77bdb9d..b984609 100644 --- a/scenarios/api_key_create/python.mako +++ b/scenarios/api_key_create/python.mako @@ -3,7 +3,7 @@ balanced.APIKey() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.APIKey().save() +api_key = balanced.APIKey().save() % endif \ No newline at end of file diff --git a/scenarios/api_key_create/request.mako b/scenarios/api_key_create/request.mako index 4267d3f..18ae28b 100644 --- a/scenarios/api_key_create/request.mako +++ b/scenarios/api_key_create/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -bank_account = balanced.APIKey().save() \ No newline at end of file +api_key = balanced.APIKey().save() \ No newline at end of file diff --git a/scenarios/api_key_delete/definition.mako b/scenarios/api_key_delete/definition.mako index 5de1bd5..02482ff 100644 --- a/scenarios/api_key_delete/definition.mako +++ b/scenarios/api_key_delete/definition.mako @@ -1 +1 @@ -balanced.APIKey.delete() \ No newline at end of file +balanced.APIKey().delete() \ No newline at end of file diff --git a/scenarios/api_key_delete/executable.py b/scenarios/api_key_delete/executable.py index 6128386..1096cd1 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-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -key = balanced.APIKey.find('/api_keys/AK66nZtNPbPw0Vnt3tmdVXpC') +key = balanced.APIKey.find('/api_keys/AK2MIAdNHBolYbbacv2OSosg') 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 241ada4..2392564 100644 --- a/scenarios/api_key_delete/python.mako +++ b/scenarios/api_key_delete/python.mako @@ -1,10 +1,10 @@ % if mode == 'definition': -balanced.APIKey.delete() +balanced.APIKey().delete() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -key = balanced.APIKey.find('/api_keys/AK66nZtNPbPw0Vnt3tmdVXpC') +key = balanced.APIKey.find('/api_keys/AK2MIAdNHBolYbbacv2OSosg') key.delete() % endif \ No newline at end of file diff --git a/scenarios/api_key_list/definition.mako b/scenarios/api_key_list/definition.mako index 60b7721..7330f78 100644 --- a/scenarios/api_key_list/definition.mako +++ b/scenarios/api_key_list/definition.mako @@ -1 +1 @@ -balanced.APIKey.query() \ No newline at end of file +balanced.APIKey().query \ No newline at end of file diff --git a/scenarios/api_key_list/executable.py b/scenarios/api_key_list/executable.py index 94481ca..35b128e 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-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -keys = balanced.APIKey.query.all() \ No newline at end of file +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 86ddff4..a6f5e99 100644 --- a/scenarios/api_key_list/python.mako +++ b/scenarios/api_key_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.APIKey.query() +balanced.APIKey().query % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -keys = balanced.APIKey.query.all() +keys = balanced.APIKey.query % endif \ No newline at end of file diff --git a/scenarios/api_key_list/request.mako b/scenarios/api_key_list/request.mako index e52ba61..8d74d4c 100644 --- a/scenarios/api_key_list/request.mako +++ b/scenarios/api_key_list/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -keys = balanced.APIKey.query.all() \ No newline at end of file +keys = balanced.APIKey.query \ No newline at end of file diff --git a/scenarios/api_key_show/definition.mako b/scenarios/api_key_show/definition.mako index c082965..16169ca 100644 --- a/scenarios/api_key_show/definition.mako +++ b/scenarios/api_key_show/definition.mako @@ -1 +1 @@ -balanced.APIKey.find \ No newline at end of file +balanced.APIKey().find() \ No newline at end of file diff --git a/scenarios/api_key_show/executable.py b/scenarios/api_key_show/executable.py index 6324e2e..6c5264a 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-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -key = balanced.APIKey.find('/api_keys/AK66nZtNPbPw0Vnt3tmdVXpC') \ No newline at end of file +key = balanced.APIKey.find('/api_keys/AK2MIAdNHBolYbbacv2OSosg') \ No newline at end of file diff --git a/scenarios/api_key_show/python.mako b/scenarios/api_key_show/python.mako index 29dff91..278d50b 100644 --- a/scenarios/api_key_show/python.mako +++ b/scenarios/api_key_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.APIKey.find +balanced.APIKey().find() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -key = balanced.APIKey.find('/api_keys/AK66nZtNPbPw0Vnt3tmdVXpC') +key = balanced.APIKey.find('/api_keys/AK2MIAdNHBolYbbacv2OSosg') % 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 new file mode 100644 index 0000000..43972c9 --- /dev/null +++ b/scenarios/bank_account_associate_to_customer/definition.mako @@ -0,0 +1 @@ +balanced.Customer().add_bank_account \ 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 new file mode 100644 index 0000000..170f001 --- /dev/null +++ b/scenarios/bank_account_associate_to_customer/executable.py @@ -0,0 +1,6 @@ +import balanced + +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') + +card = balanced.Card.find('/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w') +card.associate_to('/customers/CU3QDD1R3iMoGbwiCnoHfd6W') \ 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 new file mode 100644 index 0000000..96bb29e --- /dev/null +++ b/scenarios/bank_account_associate_to_customer/python.mako @@ -0,0 +1,10 @@ +% if mode == 'definition': +balanced.Customer().add_bank_account +% else: +import balanced + +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') + +card = balanced.Card.find('/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w') +card.associate_to('/customers/CU3QDD1R3iMoGbwiCnoHfd6W') +% 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 new file mode 100644 index 0000000..b6d960f --- /dev/null +++ b/scenarios/bank_account_associate_to_customer/request.mako @@ -0,0 +1,5 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +card = balanced.Card.find('${request['uri']}') +card.associate_to('${request['payload']['customer']}') \ No newline at end of file diff --git a/scenarios/bank_account_create/definition.mako b/scenarios/bank_account_create/definition.mako index 3091be6..a843950 100644 --- a/scenarios/bank_account_create/definition.mako +++ b/scenarios/bank_account_create/definition.mako @@ -1 +1 @@ -balanced.BankAccount.save() \ No newline at end of file +balanced.BankAccount().save() \ No newline at end of file diff --git a/scenarios/bank_account_create/executable.py b/scenarios/bank_account_create/executable.py index aeb2550..32effce 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-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') bank_account = balanced.BankAccount( routing_number='121000358', diff --git a/scenarios/bank_account_create/python.mako b/scenarios/bank_account_create/python.mako index 38fd489..40388ca 100644 --- a/scenarios/bank_account_create/python.mako +++ b/scenarios/bank_account_create/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.BankAccount.save() +balanced.BankAccount().save() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') bank_account = balanced.BankAccount( routing_number='121000358', diff --git a/scenarios/bank_account_credit/definition.mako b/scenarios/bank_account_credit/definition.mako index ee4199a..ba5c951 100644 --- a/scenarios/bank_account_credit/definition.mako +++ b/scenarios/bank_account_credit/definition.mako @@ -1 +1 @@ -balanced.BankAccount.credit() \ No newline at end of file +balanced.BankAccount().credit() \ No newline at end of file diff --git a/scenarios/bank_account_credit/executable.py b/scenarios/bank_account_credit/executable.py index 6b68e3c..fffd01c 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-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS') +bank_account = balanced.BankAccount.find('/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w') bank_account.credit( amount=2000 ) \ No newline at end of file diff --git a/scenarios/bank_account_credit/python.mako b/scenarios/bank_account_credit/python.mako index fc9e73d..3954f99 100644 --- a/scenarios/bank_account_credit/python.mako +++ b/scenarios/bank_account_credit/python.mako @@ -1,11 +1,11 @@ % if mode == 'definition': -balanced.BankAccount.credit() +balanced.BankAccount().credit() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS') +bank_account = balanced.BankAccount.find('/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w') bank_account.credit( amount=2000 ) diff --git a/scenarios/bank_account_debit/definition.mako b/scenarios/bank_account_debit/definition.mako index f6b5ae2..67d2161 100644 --- a/scenarios/bank_account_debit/definition.mako +++ b/scenarios/bank_account_debit/definition.mako @@ -1 +1 @@ -balanced.BankAccount.debit() \ No newline at end of file +balanced.BankAccount().debit() \ No newline at end of file diff --git a/scenarios/bank_account_debit/executable.py b/scenarios/bank_account_debit/executable.py index 45eba13..9bb98e4 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-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA6b9fFSyfhg5xK51iCmPjNZ/debits') +bank_account = balanced.BankAccount.find('/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s/debits') 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 00306ab..39517c4 100644 --- a/scenarios/bank_account_debit/python.mako +++ b/scenarios/bank_account_debit/python.mako @@ -1,11 +1,11 @@ % if mode == 'definition': -balanced.BankAccount.debit() +balanced.BankAccount().debit() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA6b9fFSyfhg5xK51iCmPjNZ/debits') +bank_account = balanced.BankAccount.find('/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s/debits') bank_account.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/bank_account_delete/definition.mako b/scenarios/bank_account_delete/definition.mako index 8923a9b..ecb3e1f 100644 --- a/scenarios/bank_account_delete/definition.mako +++ b/scenarios/bank_account_delete/definition.mako @@ -1 +1 @@ -balanced.BankAccount.delete() \ No newline at end of file +balanced.BankAccount().delete() \ No newline at end of file diff --git a/scenarios/bank_account_delete/executable.py b/scenarios/bank_account_delete/executable.py index 1aec771..426143f 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-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS') +bank_account = balanced.BankAccount.find('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') 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 be5db9a..6cf16f3 100644 --- a/scenarios/bank_account_delete/python.mako +++ b/scenarios/bank_account_delete/python.mako @@ -1,10 +1,10 @@ % if mode == 'definition': -balanced.BankAccount.delete() +balanced.BankAccount().delete() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS') +bank_account = balanced.BankAccount.find('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') bank_account.delete() % endif \ No newline at end of file diff --git a/scenarios/bank_account_list/definition.mako b/scenarios/bank_account_list/definition.mako index ed40953..03b0a44 100644 --- a/scenarios/bank_account_list/definition.mako +++ b/scenarios/bank_account_list/definition.mako @@ -1 +1 @@ -balanced.BankAccount.query() \ No newline at end of file +balanced.BankAccount().query \ No newline at end of file diff --git a/scenarios/bank_account_list/executable.py b/scenarios/bank_account_list/executable.py index 7d57131..95eb657 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-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') bank_accounts = balanced.BankAccount.query.all() \ No newline at end of file diff --git a/scenarios/bank_account_list/python.mako b/scenarios/bank_account_list/python.mako index 95bd8c2..524ffae 100644 --- a/scenarios/bank_account_list/python.mako +++ b/scenarios/bank_account_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.BankAccount.query() +balanced.BankAccount().query % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') bank_accounts = balanced.BankAccount.query.all() % endif \ No newline at end of file diff --git a/scenarios/bank_account_show/definition.mako b/scenarios/bank_account_show/definition.mako index d531c20..7c83be0 100644 --- a/scenarios/bank_account_show/definition.mako +++ b/scenarios/bank_account_show/definition.mako @@ -1 +1 @@ -balanced.BankAccount.find \ No newline at end of file +balanced.BankAccount().find() \ No newline at end of file diff --git a/scenarios/bank_account_show/executable.py b/scenarios/bank_account_show/executable.py index 3a031e9..c171bfa 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-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS') \ No newline at end of file +bank_account = balanced.BankAccount.find('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') \ No newline at end of file diff --git a/scenarios/bank_account_show/python.mako b/scenarios/bank_account_show/python.mako index d9c58b1..41b368c 100644 --- a/scenarios/bank_account_show/python.mako +++ b/scenarios/bank_account_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.BankAccount.find +balanced.BankAccount().find() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS') +bank_account = balanced.BankAccount.find('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') % endif \ No newline at end of file diff --git a/scenarios/bank_account_update/definition.mako b/scenarios/bank_account_update/definition.mako index f6b5ae2..67d2161 100644 --- a/scenarios/bank_account_update/definition.mako +++ b/scenarios/bank_account_update/definition.mako @@ -1 +1 @@ -balanced.BankAccount.debit() \ No newline at end of file +balanced.BankAccount().debit() \ No newline at end of file diff --git a/scenarios/bank_account_update/executable.py b/scenarios/bank_account_update/executable.py index cd0645f..3e92f71 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-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS') +bank_account = balanced.BankAccount.find('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') 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 7fcf459..5c8dce3 100644 --- a/scenarios/bank_account_update/python.mako +++ b/scenarios/bank_account_update/python.mako @@ -1,11 +1,11 @@ % if mode == 'definition': -balanced.BankAccount.debit() +balanced.BankAccount().debit() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS') +bank_account = balanced.BankAccount.find('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') bank_account.meta = { 'twitter.id'='1234987650', 'facebook.user_id'='0192837465', diff --git a/scenarios/bank_account_verification_create/definition.mako b/scenarios/bank_account_verification_create/definition.mako index 93abd48..864f40a 100644 --- a/scenarios/bank_account_verification_create/definition.mako +++ b/scenarios/bank_account_verification_create/definition.mako @@ -1 +1 @@ -balanced.Verification().save() \ No newline at end of file +balanced.BankAccountVerification().save() \ 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 eb82825..7e52893 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-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA6b9fFSyfhg5xK51iCmPjNZ') +bank_account = balanced.BankAccount.find('/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s') 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 8daeb78..d1e4264 100644 --- a/scenarios/bank_account_verification_create/python.mako +++ b/scenarios/bank_account_verification_create/python.mako @@ -1,10 +1,10 @@ % if mode == 'definition': -balanced.Verification().save() +balanced.BankAccountVerification().save() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA6b9fFSyfhg5xK51iCmPjNZ') +bank_account = balanced.BankAccount.find('/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s') verification = bank_account.verify() % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/definition.mako b/scenarios/bank_account_verification_show/definition.mako index 97e1efb..e85e076 100644 --- a/scenarios/bank_account_verification_show/definition.mako +++ b/scenarios/bank_account_verification_show/definition.mako @@ -1 +1 @@ -balanced.Verification.find \ No newline at end of file +balanced.BankAccountVerification().find() \ 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 dc0bdea..0b4b728 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-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') -verification = balanced.BankAccountVerification.find('/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg') \ No newline at end of file +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +verification = balanced.BankAccountVerification.find('/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG') \ 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 df86874..81c9579 100644 --- a/scenarios/bank_account_verification_show/python.mako +++ b/scenarios/bank_account_verification_show/python.mako @@ -1,8 +1,8 @@ % if mode == 'definition': -balanced.Verification.find +balanced.BankAccountVerification().find() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') -verification = balanced.BankAccountVerification.find('/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +verification = balanced.BankAccountVerification.find('/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/definition.mako b/scenarios/bank_account_verification_update/definition.mako index 985e18f..864f40a 100644 --- a/scenarios/bank_account_verification_update/definition.mako +++ b/scenarios/bank_account_verification_update/definition.mako @@ -1 +1 @@ -balanced.Verification.save \ No newline at end of file +balanced.BankAccountVerification().save() \ 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 fa183a9..b7b6167 100644 --- a/scenarios/bank_account_verification_update/executable.py +++ b/scenarios/bank_account_verification_update/executable.py @@ -1,7 +1,6 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') -verification = balanced.BankAccountVerification.find('/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg') -verification.amount_1 = 1 -verification.amount_2 = 1 -verification.save \ No newline at end of file +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') + +verification = balanced.BankAccountVerification.find('/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG') +verification.verify(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 89dcac3..25b4fce 100644 --- a/scenarios/bank_account_verification_update/python.mako +++ b/scenarios/bank_account_verification_update/python.mako @@ -1,11 +1,10 @@ % if mode == 'definition': -balanced.Verification.save +balanced.BankAccountVerification().save() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') -verification = balanced.BankAccountVerification.find('/verifications/BZ6cD5IVyWprD3AJTwfi8Bvg') -verification.amount_1 = 1 -verification.amount_2 = 1 -verification.save +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') + +verification = balanced.BankAccountVerification.find('/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG') +verification.verify(amount_1=1, amount_2=1) % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/request.mako b/scenarios/bank_account_verification_update/request.mako index 4834e6e..f937297 100644 --- a/scenarios/bank_account_verification_update/request.mako +++ b/scenarios/bank_account_verification_update/request.mako @@ -1,6 +1,5 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> + verification = balanced.BankAccountVerification.find('${request['uri']}') -verification.amount_1 = 1 -verification.amount_2 = 1 -verification.save \ No newline at end of file +verification.verify(amount_1=1, amount_2=1) \ No newline at end of file diff --git a/scenarios/callback_create/definition.mako b/scenarios/callback_create/definition.mako index b00979e..ab352d3 100644 --- a/scenarios/callback_create/definition.mako +++ b/scenarios/callback_create/definition.mako @@ -1 +1 @@ -balanced.Callback \ No newline at end of file +balanced.Callback() \ No newline at end of file diff --git a/scenarios/callback_create/executable.py b/scenarios/callback_create/executable.py index 1177f28..3d244b0 100644 --- a/scenarios/callback_create/executable.py +++ b/scenarios/callback_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') callback = balanced.Callback( url='http://www.example.com/callback' diff --git a/scenarios/callback_create/python.mako b/scenarios/callback_create/python.mako index 3df66c4..08027a1 100644 --- a/scenarios/callback_create/python.mako +++ b/scenarios/callback_create/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Callback +balanced.Callback() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') callback = balanced.Callback( url='http://www.example.com/callback' diff --git a/scenarios/callback_delete/definition.mako b/scenarios/callback_delete/definition.mako index a1ab3b4..a60e731 100644 --- a/scenarios/callback_delete/definition.mako +++ b/scenarios/callback_delete/definition.mako @@ -1 +1 @@ -Callback.unstore \ No newline at end of file +balanced.Callback().unstore() \ No newline at end of file diff --git a/scenarios/callback_delete/executable.py b/scenarios/callback_delete/executable.py index 8cba691..7e584a8 100644 --- a/scenarios/callback_delete/executable.py +++ b/scenarios/callback_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -callback = balanced.Callback.find('/callbacks/CB6sQjFwENynxbStHgUUWign') +callback = balanced.Callback.find('/callbacks/CB37kedWD88LFkipaugpfZ9w') callback.unstore() \ No newline at end of file diff --git a/scenarios/callback_delete/python.mako b/scenarios/callback_delete/python.mako index ecd813c..4c6e8a0 100644 --- a/scenarios/callback_delete/python.mako +++ b/scenarios/callback_delete/python.mako @@ -1,10 +1,10 @@ % if mode == 'definition': -Callback.unstore +balanced.Callback().unstore() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -callback = balanced.Callback.find('/callbacks/CB6sQjFwENynxbStHgUUWign') +callback = balanced.Callback.find('/callbacks/CB37kedWD88LFkipaugpfZ9w') callback.unstore() % endif \ No newline at end of file diff --git a/scenarios/callback_list/definition.mako b/scenarios/callback_list/definition.mako index f8ea1c2..693d524 100644 --- a/scenarios/callback_list/definition.mako +++ b/scenarios/callback_list/definition.mako @@ -1 +1 @@ -balanced.Callback.query.all \ No newline at end of file +balanced.Callback().query \ No newline at end of file diff --git a/scenarios/callback_list/executable.py b/scenarios/callback_list/executable.py index 115239f..6768cac 100644 --- a/scenarios/callback_list/executable.py +++ b/scenarios/callback_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') callbacks = balanced.Callback.query.all() \ No newline at end of file diff --git a/scenarios/callback_list/python.mako b/scenarios/callback_list/python.mako index 98cc522..30eae05 100644 --- a/scenarios/callback_list/python.mako +++ b/scenarios/callback_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Callback.query.all +balanced.Callback().query % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') callbacks = balanced.Callback.query.all() % endif \ No newline at end of file diff --git a/scenarios/callback_show/definition.mako b/scenarios/callback_show/definition.mako index 6f75e8f..4d93cb8 100644 --- a/scenarios/callback_show/definition.mako +++ b/scenarios/callback_show/definition.mako @@ -1 +1 @@ -balanced.Callback.find \ No newline at end of file +balanced.Callback().find() \ No newline at end of file diff --git a/scenarios/callback_show/executable.py b/scenarios/callback_show/executable.py index 7c24789..043db9f 100644 --- a/scenarios/callback_show/executable.py +++ b/scenarios/callback_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -callback = balanced.Callback.find('/callbacks/CB6sQjFwENynxbStHgUUWign') \ No newline at end of file +callback = balanced.Callback.find('/callbacks/CB37kedWD88LFkipaugpfZ9w') \ No newline at end of file diff --git a/scenarios/callback_show/python.mako b/scenarios/callback_show/python.mako index 37f5afd..cd12e95 100644 --- a/scenarios/callback_show/python.mako +++ b/scenarios/callback_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Callback.find +balanced.Callback().find() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -callback = balanced.Callback.find('/callbacks/CB6sQjFwENynxbStHgUUWign') +callback = balanced.Callback.find('/callbacks/CB37kedWD88LFkipaugpfZ9w') % endif \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/definition.mako b/scenarios/card_associate_to_customer/definition.mako new file mode 100644 index 0000000..0710c3e --- /dev/null +++ b/scenarios/card_associate_to_customer/definition.mako @@ -0,0 +1 @@ +balanced.Customer().add_card \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/executable.py b/scenarios/card_associate_to_customer/executable.py new file mode 100644 index 0000000..e1495c3 --- /dev/null +++ b/scenarios/card_associate_to_customer/executable.py @@ -0,0 +1,6 @@ +import balanced + +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') + +card = balanced.Card.find('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') +card.associate_to('/customers/CU4xIyjtjtamnhjJ0E6iW3Kq') \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/python.mako b/scenarios/card_associate_to_customer/python.mako new file mode 100644 index 0000000..3da2f44 --- /dev/null +++ b/scenarios/card_associate_to_customer/python.mako @@ -0,0 +1,10 @@ +% if mode == 'definition': +balanced.Customer().add_card +% else: +import balanced + +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') + +card = balanced.Card.find('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') +card.associate_to('/customers/CU4xIyjtjtamnhjJ0E6iW3Kq') +% endif \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/request.mako b/scenarios/card_associate_to_customer/request.mako new file mode 100644 index 0000000..b6d960f --- /dev/null +++ b/scenarios/card_associate_to_customer/request.mako @@ -0,0 +1,5 @@ +<%namespace file='/_main.mako' name='main'/> +<% main.python_boilerplate() %> + +card = balanced.Card.find('${request['uri']}') +card.associate_to('${request['payload']['customer']}') \ No newline at end of file diff --git a/scenarios/card_create/definition.mako b/scenarios/card_create/definition.mako index 638c1d2..1235831 100644 --- a/scenarios/card_create/definition.mako +++ b/scenarios/card_create/definition.mako @@ -1 +1 @@ -balanced.Card.save() \ No newline at end of file +balanced.Card().save() \ No newline at end of file diff --git a/scenarios/card_create/executable.py b/scenarios/card_create/executable.py index 980b7a6..d2e4368 100644 --- a/scenarios/card_create/executable.py +++ b/scenarios/card_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') card = balanced.Card( expiration_month='12', diff --git a/scenarios/card_create/python.mako b/scenarios/card_create/python.mako index 3ac087a..3fdd1bf 100644 --- a/scenarios/card_create/python.mako +++ b/scenarios/card_create/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Card.save() +balanced.Card().save() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') card = balanced.Card( expiration_month='12', diff --git a/scenarios/card_debit/definition.mako b/scenarios/card_debit/definition.mako index 575ab4d..91d7e5b 100644 --- a/scenarios/card_debit/definition.mako +++ b/scenarios/card_debit/definition.mako @@ -1 +1 @@ -balanced.Card.debit() \ No newline at end of file +balanced.Card().debit() \ No newline at end of file diff --git a/scenarios/card_debit/executable.py b/scenarios/card_debit/executable.py index 87a9e3c..49f2bad 100644 --- a/scenarios/card_debit/executable.py +++ b/scenarios/card_debit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/cards/CC6MQlq1xIGRLEMBWQcD4Dcr') +card = balanced.Card.find('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') 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 8c787e9..28ad2f8 100644 --- a/scenarios/card_debit/python.mako +++ b/scenarios/card_debit/python.mako @@ -1,11 +1,11 @@ % if mode == 'definition': -balanced.Card.debit() +balanced.Card().debit() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/cards/CC6MQlq1xIGRLEMBWQcD4Dcr') +card = balanced.Card.find('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') card.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/card_delete/definition.mako b/scenarios/card_delete/definition.mako index 52e2dee..489ff5d 100644 --- a/scenarios/card_delete/definition.mako +++ b/scenarios/card_delete/definition.mako @@ -1 +1 @@ -balanced.Card.unstore() \ No newline at end of file +balanced.Card().unstore() \ No newline at end of file diff --git a/scenarios/card_delete/executable.py b/scenarios/card_delete/executable.py index 8f2087f..a26d18c 100644 --- a/scenarios/card_delete/executable.py +++ b/scenarios/card_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/cards/CC6MQlq1xIGRLEMBWQcD4Dcr') +card = balanced.Card.find('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') card.unstore() \ No newline at end of file diff --git a/scenarios/card_delete/python.mako b/scenarios/card_delete/python.mako index 013904f..f17a634 100644 --- a/scenarios/card_delete/python.mako +++ b/scenarios/card_delete/python.mako @@ -1,10 +1,10 @@ % if mode == 'definition': -balanced.Card.unstore() +balanced.Card().unstore() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/cards/CC6MQlq1xIGRLEMBWQcD4Dcr') +card = balanced.Card.find('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') card.unstore() % endif \ No newline at end of file diff --git a/scenarios/card_hold_capture/definition.mako b/scenarios/card_hold_capture/definition.mako index 06f7ceb..b4fbac6 100644 --- a/scenarios/card_hold_capture/definition.mako +++ b/scenarios/card_hold_capture/definition.mako @@ -1 +1 @@ -balanced.CardHold.capture() \ No newline at end of file +balanced.CardHold().capture() \ No newline at end of file diff --git a/scenarios/card_hold_capture/executable.py b/scenarios/card_hold_capture/executable.py index 1f640c2..35a7b3f 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-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card_hold = balanced.CardHold.find('/card_holds/HL6za54jlFLUAvEqDEULOwXC') +card_hold = balanced.CardHold.find('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') 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 116d79c..2f49067 100644 --- a/scenarios/card_hold_capture/python.mako +++ b/scenarios/card_hold_capture/python.mako @@ -1,11 +1,11 @@ % if mode == 'definition': -balanced.CardHold.capture() +balanced.CardHold().capture() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card_hold = balanced.CardHold.find('/card_holds/HL6za54jlFLUAvEqDEULOwXC') +card_hold = balanced.CardHold.find('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') 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/definition.mako b/scenarios/card_hold_create/definition.mako index 02481cd..01df58f 100644 --- a/scenarios/card_hold_create/definition.mako +++ b/scenarios/card_hold_create/definition.mako @@ -1 +1 @@ -balanced.Card.hold() \ No newline at end of file +balanced.Card().hold() \ No newline at end of file diff --git a/scenarios/card_hold_create/executable.py b/scenarios/card_hold_create/executable.py index a5ada33..99f70f0 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-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/cards/CC6y7qpkXsrutTV0z1p4SbhI') +card = balanced.Card.find('/cards/CC3cqYicdXFN8T1nX3frfRCW') 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 911fdb8..f08ad0e 100644 --- a/scenarios/card_hold_create/python.mako +++ b/scenarios/card_hold_create/python.mako @@ -1,11 +1,11 @@ % if mode == 'definition': -balanced.Card.hold() +balanced.Card().hold() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/cards/CC6y7qpkXsrutTV0z1p4SbhI') +card = balanced.Card.find('/cards/CC3cqYicdXFN8T1nX3frfRCW') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_list/definition.mako b/scenarios/card_hold_list/definition.mako index 5bd3cba..ea0d9de 100644 --- a/scenarios/card_hold_list/definition.mako +++ b/scenarios/card_hold_list/definition.mako @@ -1 +1 @@ -balanced.CardHold.query() \ No newline at end of file +balanced.CardHold().query \ No newline at end of file diff --git a/scenarios/card_hold_list/executable.py b/scenarios/card_hold_list/executable.py index 0c5f44d..fc8046c 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-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') card_holds = balanced.CardHold.query.all() \ No newline at end of file diff --git a/scenarios/card_hold_list/python.mako b/scenarios/card_hold_list/python.mako index 0d92915..208b2d4 100644 --- a/scenarios/card_hold_list/python.mako +++ b/scenarios/card_hold_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.CardHold.query() +balanced.CardHold().query % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') card_holds = balanced.CardHold.query.all() % endif \ No newline at end of file diff --git a/scenarios/card_hold_show/definition.mako b/scenarios/card_hold_show/definition.mako index 6d5c209..e8a0955 100644 --- a/scenarios/card_hold_show/definition.mako +++ b/scenarios/card_hold_show/definition.mako @@ -1 +1 @@ -balanced.CardHold.find \ No newline at end of file +balanced.CardHold().find() \ No newline at end of file diff --git a/scenarios/card_hold_show/executable.py b/scenarios/card_hold_show/executable.py index fd73f6f..d7c2e06 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-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card_hold = balanced.CardHold.find('/card_holds/HL6za54jlFLUAvEqDEULOwXC') \ No newline at end of file +card_hold = balanced.CardHold.find('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') \ No newline at end of file diff --git a/scenarios/card_hold_show/python.mako b/scenarios/card_hold_show/python.mako index e027c6f..cad35cb 100644 --- a/scenarios/card_hold_show/python.mako +++ b/scenarios/card_hold_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.CardHold.find +balanced.CardHold().find() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card_hold = balanced.CardHold.find('/card_holds/HL6za54jlFLUAvEqDEULOwXC') +card_hold = balanced.CardHold.find('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') % endif \ No newline at end of file diff --git a/scenarios/card_hold_update/definition.mako b/scenarios/card_hold_update/definition.mako index 29da25d..9dfe4f8 100644 --- a/scenarios/card_hold_update/definition.mako +++ b/scenarios/card_hold_update/definition.mako @@ -1 +1 @@ -balanced.CardHold.save() \ No newline at end of file +balanced.CardHold().save() \ No newline at end of file diff --git a/scenarios/card_hold_update/executable.py b/scenarios/card_hold_update/executable.py index 87a14ac..14c5f5e 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-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card_hold = balanced.CardHold.find('/card_holds/HL6za54jlFLUAvEqDEULOwXC') +card_hold = balanced.CardHold.find('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') 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 17901d0..5a00c3d 100644 --- a/scenarios/card_hold_update/python.mako +++ b/scenarios/card_hold_update/python.mako @@ -1,11 +1,11 @@ % if mode == 'definition': -balanced.CardHold.save() +balanced.CardHold().save() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card_hold = balanced.CardHold.find('/card_holds/HL6za54jlFLUAvEqDEULOwXC') +card_hold = balanced.CardHold.find('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') card_hold.description = 'update this description' card_hold.meta = { 'holding.for': 'user1', diff --git a/scenarios/card_hold_void/definition.mako b/scenarios/card_hold_void/definition.mako index 8198cc7..725336e 100644 --- a/scenarios/card_hold_void/definition.mako +++ b/scenarios/card_hold_void/definition.mako @@ -1 +1 @@ -balanced.CardHold.void() \ No newline at end of file +balanced.CardHold().cancel() \ No newline at end of file diff --git a/scenarios/card_hold_void/executable.py b/scenarios/card_hold_void/executable.py index f02cc48..9fc41ff 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-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card_hold = balanced.CardHold.find('/card_holds/HL6IeshtYufyq1dm9nnEdRHA') -card_hold.void() \ No newline at end of file +card_hold = balanced.CardHold.find('/card_holds/HL3mplcWSeG79TTxpFyHlxTh') +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 cbfc50c..4995953 100644 --- a/scenarios/card_hold_void/python.mako +++ b/scenarios/card_hold_void/python.mako @@ -1,10 +1,10 @@ % if mode == 'definition': -balanced.CardHold.void() +balanced.CardHold().cancel() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card_hold = balanced.CardHold.find('/card_holds/HL6IeshtYufyq1dm9nnEdRHA') -card_hold.void() +card_hold = balanced.CardHold.find('/card_holds/HL3mplcWSeG79TTxpFyHlxTh') +card_hold.cancel() % endif \ No newline at end of file diff --git a/scenarios/card_hold_void/request.mako b/scenarios/card_hold_void/request.mako index a087d5d..1d20e49 100644 --- a/scenarios/card_hold_void/request.mako +++ b/scenarios/card_hold_void/request.mako @@ -2,4 +2,4 @@ <% main.python_boilerplate() %> card_hold = balanced.CardHold.find('${request['uri']}') -card_hold.void() \ No newline at end of file +card_hold.cancel() \ No newline at end of file diff --git a/scenarios/card_list/definition.mako b/scenarios/card_list/definition.mako index 967ae52..f12d2e6 100644 --- a/scenarios/card_list/definition.mako +++ b/scenarios/card_list/definition.mako @@ -1 +1 @@ -balanced.Card.query() \ No newline at end of file +balanced.Card().query \ No newline at end of file diff --git a/scenarios/card_list/executable.py b/scenarios/card_list/executable.py index 219c3a2..9cc19dd 100644 --- a/scenarios/card_list/executable.py +++ b/scenarios/card_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -cards = balanced.Card.query.all(); \ No newline at end of file +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 a5afebb..6bf0cc6 100644 --- a/scenarios/card_list/python.mako +++ b/scenarios/card_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Card.query() +balanced.Card().query % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -cards = balanced.Card.query.all(); +cards = balanced.Card.query % endif \ No newline at end of file diff --git a/scenarios/card_list/request.mako b/scenarios/card_list/request.mako index f8fea8d..2d54dd7 100644 --- a/scenarios/card_list/request.mako +++ b/scenarios/card_list/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -cards = balanced.Card.query.all(); \ No newline at end of file +cards = balanced.Card.query \ No newline at end of file diff --git a/scenarios/card_show/definition.mako b/scenarios/card_show/definition.mako index e761ee6..3742d7f 100644 --- a/scenarios/card_show/definition.mako +++ b/scenarios/card_show/definition.mako @@ -1 +1 @@ -balanced.Card.find \ No newline at end of file +balanced.Card().find() \ No newline at end of file diff --git a/scenarios/card_show/executable.py b/scenarios/card_show/executable.py index fe87d55..423f295 100644 --- a/scenarios/card_show/executable.py +++ b/scenarios/card_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/cards/CC6MQlq1xIGRLEMBWQcD4Dcr') \ No newline at end of file +card = balanced.Card.find('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') \ No newline at end of file diff --git a/scenarios/card_show/python.mako b/scenarios/card_show/python.mako index 5e72320..11a3f54 100644 --- a/scenarios/card_show/python.mako +++ b/scenarios/card_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Card.find +balanced.Card().find() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/cards/CC6MQlq1xIGRLEMBWQcD4Dcr') +card = balanced.Card.find('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') % endif \ No newline at end of file diff --git a/scenarios/card_update/definition.mako b/scenarios/card_update/definition.mako index 638c1d2..1235831 100644 --- a/scenarios/card_update/definition.mako +++ b/scenarios/card_update/definition.mako @@ -1 +1 @@ -balanced.Card.save() \ No newline at end of file +balanced.Card().save() \ No newline at end of file diff --git a/scenarios/card_update/executable.py b/scenarios/card_update/executable.py index caa02fe..6c3f197 100644 --- a/scenarios/card_update/executable.py +++ b/scenarios/card_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/cards/CC6MQlq1xIGRLEMBWQcD4Dcr') +card = balanced.Card.find('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/card_update/python.mako b/scenarios/card_update/python.mako index 7e7d462..8d016af 100644 --- a/scenarios/card_update/python.mako +++ b/scenarios/card_update/python.mako @@ -1,11 +1,11 @@ % if mode == 'definition': -balanced.Card.save() +balanced.Card().save() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/cards/CC6MQlq1xIGRLEMBWQcD4Dcr') +card = balanced.Card.find('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/credit_list/definition.mako b/scenarios/credit_list/definition.mako index e70700d..0c54561 100644 --- a/scenarios/credit_list/definition.mako +++ b/scenarios/credit_list/definition.mako @@ -1 +1 @@ -balanced.Credit.query() \ No newline at end of file +balanced.Credit().query \ No newline at end of file diff --git a/scenarios/credit_list/executable.py b/scenarios/credit_list/executable.py index f6b31cc..f8e2f07 100644 --- a/scenarios/credit_list/executable.py +++ b/scenarios/credit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') credits = balanced.Credit.query.all() \ No newline at end of file diff --git a/scenarios/credit_list/python.mako b/scenarios/credit_list/python.mako index 0eeb162..153900d 100644 --- a/scenarios/credit_list/python.mako +++ b/scenarios/credit_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Credit.query() +balanced.Credit().query % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') credits = balanced.Credit.query.all() % endif \ No newline at end of file diff --git a/scenarios/credit_list_bank_account/definition.mako b/scenarios/credit_list_bank_account/definition.mako index 9ea8870..5cfd639 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 5e49301..e5b8c70 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-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS/credits') +bank_account = balanced.BankAccount.find('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi/credits') credits = bank_account.credits.all() \ 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 4a0eac7..702fdcc 100644 --- a/scenarios/credit_list_bank_account/python.mako +++ b/scenarios/credit_list_bank_account/python.mako @@ -1,10 +1,10 @@ % if mode == 'definition': -balanced.BankAccount.credits +balanced.BankAccount().credits % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS/credits') +bank_account = balanced.BankAccount.find('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi/credits') credits = bank_account.credits.all() % endif \ No newline at end of file diff --git a/scenarios/credit_show/definition.mako b/scenarios/credit_show/definition.mako index 816c212..4bd405a 100644 --- a/scenarios/credit_show/definition.mako +++ b/scenarios/credit_show/definition.mako @@ -1 +1 @@ -balanced.Credit.find() \ No newline at end of file +balanced.Credit().find() \ No newline at end of file diff --git a/scenarios/credit_show/executable.py b/scenarios/credit_show/executable.py index eae3573..bd40f13 100644 --- a/scenarios/credit_show/executable.py +++ b/scenarios/credit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -credit = balanced.Credit.find('/credits/CR6YTbjFOeoK78NdjiGsCgxo') \ No newline at end of file +credit = balanced.Credit.find('/credits/CR3DLTIjMve5idvjBrXNKBHE') \ No newline at end of file diff --git a/scenarios/credit_show/python.mako b/scenarios/credit_show/python.mako index 53afd90..9f69532 100644 --- a/scenarios/credit_show/python.mako +++ b/scenarios/credit_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Credit.find() +balanced.Credit().find() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -credit = balanced.Credit.find('/credits/CR6YTbjFOeoK78NdjiGsCgxo') +credit = balanced.Credit.find('/credits/CR3DLTIjMve5idvjBrXNKBHE') % endif \ No newline at end of file diff --git a/scenarios/credit_update/definition.mako b/scenarios/credit_update/definition.mako index 67abe6c..34fa36d 100644 --- a/scenarios/credit_update/definition.mako +++ b/scenarios/credit_update/definition.mako @@ -1 +1 @@ -balanced.Credit.save() \ No newline at end of file +balanced.Credit().save() \ No newline at end of file diff --git a/scenarios/credit_update/executable.py b/scenarios/credit_update/executable.py index ad98d19..125c80e 100644 --- a/scenarios/credit_update/executable.py +++ b/scenarios/credit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -credit = balanced.Credit.find('/credits/CR6YTbjFOeoK78NdjiGsCgxo') +credit = balanced.Credit.find('/credits/CR3DLTIjMve5idvjBrXNKBHE') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/credit_update/python.mako b/scenarios/credit_update/python.mako index cbc12a2..39eec34 100644 --- a/scenarios/credit_update/python.mako +++ b/scenarios/credit_update/python.mako @@ -1,11 +1,11 @@ % if mode == 'definition': -balanced.Credit.save() +balanced.Credit().save() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -credit = balanced.Credit.find('/credits/CR6YTbjFOeoK78NdjiGsCgxo') +credit = balanced.Credit.find('/credits/CR3DLTIjMve5idvjBrXNKBHE') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/customer_add_bank_account/definition.mako b/scenarios/customer_add_bank_account/definition.mako deleted file mode 100644 index fbba3a2..0000000 --- a/scenarios/customer_add_bank_account/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Customer.add_bank_account \ No newline at end of file diff --git a/scenarios/customer_add_bank_account/executable.py b/scenarios/customer_add_bank_account/executable.py deleted file mode 100644 index 79ce09f..0000000 --- a/scenarios/customer_add_bank_account/executable.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') - -customer = balanced.Customer.find('/customers/CU7cMba1Uu9Dz2DHguDKcxao') -customer.add_bank_account('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS') \ No newline at end of file diff --git a/scenarios/customer_add_bank_account/python.mako b/scenarios/customer_add_bank_account/python.mako deleted file mode 100644 index d8cbc94..0000000 --- a/scenarios/customer_add_bank_account/python.mako +++ /dev/null @@ -1,10 +0,0 @@ -% if mode == 'definition': -balanced.Customer.add_bank_account -% else: -import balanced - -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') - -customer = balanced.Customer.find('/customers/CU7cMba1Uu9Dz2DHguDKcxao') -customer.add_bank_account('/bank_accounts/BA6jsxwAXYrt4sLjYUw1a1gS') -% endif \ No newline at end of file diff --git a/scenarios/customer_add_bank_account/request.mako b/scenarios/customer_add_bank_account/request.mako deleted file mode 100644 index 1472d18..0000000 --- a/scenarios/customer_add_bank_account/request.mako +++ /dev/null @@ -1,5 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -customer = balanced.Customer.find('${request['uri']}') -customer.add_bank_account('${request['payload']['bank_account_href']}') \ No newline at end of file diff --git a/scenarios/customer_add_card/definition.mako b/scenarios/customer_add_card/definition.mako deleted file mode 100644 index 69aafcb..0000000 --- a/scenarios/customer_add_card/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Customer.add_card \ No newline at end of file diff --git a/scenarios/customer_add_card/executable.py b/scenarios/customer_add_card/executable.py deleted file mode 100644 index 03d106e..0000000 --- a/scenarios/customer_add_card/executable.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') - -customer = balanced.Customer.find('/customers/CU73cQkqN6IUi8D4qBEsOPK') -customer.add_card('/cards/CC6MQlq1xIGRLEMBWQcD4Dcr') \ No newline at end of file diff --git a/scenarios/customer_add_card/python.mako b/scenarios/customer_add_card/python.mako deleted file mode 100644 index b3de98f..0000000 --- a/scenarios/customer_add_card/python.mako +++ /dev/null @@ -1,10 +0,0 @@ -% if mode == 'definition': -balanced.Customer.add_card -% else: -import balanced - -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') - -customer = balanced.Customer.find('/customers/CU73cQkqN6IUi8D4qBEsOPK') -customer.add_card('/cards/CC6MQlq1xIGRLEMBWQcD4Dcr') -% endif \ No newline at end of file diff --git a/scenarios/customer_add_card/request.mako b/scenarios/customer_add_card/request.mako deleted file mode 100644 index b1e0b07..0000000 --- a/scenarios/customer_add_card/request.mako +++ /dev/null @@ -1,5 +0,0 @@ -<%namespace file='/_main.mako' name='main'/> -<% main.python_boilerplate() %> - -customer = balanced.Customer.find('${request['uri']}') -customer.add_card('${request['payload']['card_href']}') \ No newline at end of file diff --git a/scenarios/customer_create/definition.mako b/scenarios/customer_create/definition.mako index 6c42d41..5e58f65 100644 --- a/scenarios/customer_create/definition.mako +++ b/scenarios/customer_create/definition.mako @@ -1 +1 @@ -balanced.Customer.save() \ No newline at end of file +balanced.Customer().save() \ No newline at end of file diff --git a/scenarios/customer_create/executable.py b/scenarios/customer_create/executable.py index 6766442..0093238 100644 --- a/scenarios/customer_create/executable.py +++ b/scenarios/customer_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') customer = balanced.Customer( dob_year=1963, diff --git a/scenarios/customer_create/python.mako b/scenarios/customer_create/python.mako index 975dec4..047f545 100644 --- a/scenarios/customer_create/python.mako +++ b/scenarios/customer_create/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Customer.save() +balanced.Customer().save() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') customer = balanced.Customer( dob_year=1963, diff --git a/scenarios/customer_delete/definition.mako b/scenarios/customer_delete/definition.mako index d211b55..63219d0 100644 --- a/scenarios/customer_delete/definition.mako +++ b/scenarios/customer_delete/definition.mako @@ -1 +1 @@ -balanced.Customer.unstore() \ No newline at end of file +balanced.Customer().unstore() \ No newline at end of file diff --git a/scenarios/customer_delete/executable.py b/scenarios/customer_delete/executable.py index 0102e7e..a6ab10e 100644 --- a/scenarios/customer_delete/executable.py +++ b/scenarios/customer_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -customer = balanced.Customer.find('/customers/CU7cMba1Uu9Dz2DHguDKcxao') +customer = balanced.Customer.find('/customers/CU3QDD1R3iMoGbwiCnoHfd6W') customer.unstore() \ No newline at end of file diff --git a/scenarios/customer_delete/python.mako b/scenarios/customer_delete/python.mako index 3884591..7ddb949 100644 --- a/scenarios/customer_delete/python.mako +++ b/scenarios/customer_delete/python.mako @@ -1,10 +1,10 @@ % if mode == 'definition': -balanced.Customer.unstore() +balanced.Customer().unstore() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -customer = balanced.Customer.find('/customers/CU7cMba1Uu9Dz2DHguDKcxao') +customer = balanced.Customer.find('/customers/CU3QDD1R3iMoGbwiCnoHfd6W') customer.unstore() % endif \ No newline at end of file diff --git a/scenarios/customer_list/definition.mako b/scenarios/customer_list/definition.mako index 083dee4..de314eb 100644 --- a/scenarios/customer_list/definition.mako +++ b/scenarios/customer_list/definition.mako @@ -1 +1 @@ -balanced.Customer.query() \ No newline at end of file +balanced.Customer().query \ No newline at end of file diff --git a/scenarios/customer_list/executable.py b/scenarios/customer_list/executable.py index ab52db0..d1a495b 100644 --- a/scenarios/customer_list/executable.py +++ b/scenarios/customer_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') customers = balanced.Customer.query.all() \ No newline at end of file diff --git a/scenarios/customer_list/python.mako b/scenarios/customer_list/python.mako index d3bb280..64e3b4f 100644 --- a/scenarios/customer_list/python.mako +++ b/scenarios/customer_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Customer.query() +balanced.Customer().query % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') customers = balanced.Customer.query.all() % endif \ No newline at end of file diff --git a/scenarios/customer_show/definition.mako b/scenarios/customer_show/definition.mako index ab10cdb..1adbb0c 100644 --- a/scenarios/customer_show/definition.mako +++ b/scenarios/customer_show/definition.mako @@ -1 +1 @@ -balanced.Customer.find \ No newline at end of file +balanced.Customer().find() \ No newline at end of file diff --git a/scenarios/customer_show/executable.py b/scenarios/customer_show/executable.py index 91116a1..1b75ccc 100644 --- a/scenarios/customer_show/executable.py +++ b/scenarios/customer_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -customer = balanced.Customer.find('/customers/CU77fJ0bjn9xBZYlzIYkpUQU') \ No newline at end of file +customer = balanced.Customer.find('/customers/CU3LNFIXs33DopZuksrfp0KY') \ No newline at end of file diff --git a/scenarios/customer_show/python.mako b/scenarios/customer_show/python.mako index eec1069..ae38911 100644 --- a/scenarios/customer_show/python.mako +++ b/scenarios/customer_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Customer.find +balanced.Customer().find() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -customer = balanced.Customer.find('/customers/CU77fJ0bjn9xBZYlzIYkpUQU') +customer = balanced.Customer.find('/customers/CU3LNFIXs33DopZuksrfp0KY') % endif \ No newline at end of file diff --git a/scenarios/customer_update/definition.mako b/scenarios/customer_update/definition.mako index 6c42d41..5e58f65 100644 --- a/scenarios/customer_update/definition.mako +++ b/scenarios/customer_update/definition.mako @@ -1 +1 @@ -balanced.Customer.save() \ No newline at end of file +balanced.Customer().save() \ No newline at end of file diff --git a/scenarios/customer_update/executable.py b/scenarios/customer_update/executable.py index 393421d..1a4c07a 100644 --- a/scenarios/customer_update/executable.py +++ b/scenarios/customer_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -customer = balanced.Debit.find('/customers/CU77fJ0bjn9xBZYlzIYkpUQU') +customer = balanced.Debit.find('/customers/CU3LNFIXs33DopZuksrfp0KY') 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 62c8051..39de815 100644 --- a/scenarios/customer_update/python.mako +++ b/scenarios/customer_update/python.mako @@ -1,11 +1,11 @@ % if mode == 'definition': -balanced.Customer.save() +balanced.Customer().save() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -customer = balanced.Debit.find('/customers/CU77fJ0bjn9xBZYlzIYkpUQU') +customer = balanced.Debit.find('/customers/CU3LNFIXs33DopZuksrfp0KY') customer.email = 'email@newdomain.com' customer.meta = { 'shipping-preference': 'ground' diff --git a/scenarios/debit_list/definition.mako b/scenarios/debit_list/definition.mako index debf1ff..e7db4af 100644 --- a/scenarios/debit_list/definition.mako +++ b/scenarios/debit_list/definition.mako @@ -1 +1 @@ -balanced.Debit.query() \ No newline at end of file +balanced.Debit().query \ No newline at end of file diff --git a/scenarios/debit_list/executable.py b/scenarios/debit_list/executable.py index 819b87b..1145fc9 100644 --- a/scenarios/debit_list/executable.py +++ b/scenarios/debit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') debits = balanced.Debit.query.all() \ No newline at end of file diff --git a/scenarios/debit_list/python.mako b/scenarios/debit_list/python.mako index 22a5e44..d6cffb9 100644 --- a/scenarios/debit_list/python.mako +++ b/scenarios/debit_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Debit.query() +balanced.Debit().query % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') debits = balanced.Debit.query.all() % endif \ No newline at end of file diff --git a/scenarios/debit_show/definition.mako b/scenarios/debit_show/definition.mako index 1fc6ab5..f6f7dee 100644 --- a/scenarios/debit_show/definition.mako +++ b/scenarios/debit_show/definition.mako @@ -1 +1 @@ -balanced.Debit.find \ No newline at end of file +balanced.Debit().find() \ No newline at end of file diff --git a/scenarios/debit_show/executable.py b/scenarios/debit_show/executable.py index 19ca137..ef9c065 100644 --- a/scenarios/debit_show/executable.py +++ b/scenarios/debit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -debit = balanced.Debit.find('/debits/WD6TAVProqNixngz5tRCO52C') \ No newline at end of file +debit = balanced.Debit.find('/debits/WD3xghyI3uMTgjRP5aJugoQy') \ No newline at end of file diff --git a/scenarios/debit_show/python.mako b/scenarios/debit_show/python.mako index f631ae5..2e0d91e 100644 --- a/scenarios/debit_show/python.mako +++ b/scenarios/debit_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Debit.find +balanced.Debit().find() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -debit = balanced.Debit.find('/debits/WD6TAVProqNixngz5tRCO52C') +debit = balanced.Debit.find('/debits/WD3xghyI3uMTgjRP5aJugoQy') % endif \ No newline at end of file diff --git a/scenarios/debit_update/definition.mako b/scenarios/debit_update/definition.mako index 01fec2c..7c5d008 100644 --- a/scenarios/debit_update/definition.mako +++ b/scenarios/debit_update/definition.mako @@ -1 +1 @@ -balanced.Debit.save() \ No newline at end of file +balanced.Debit().save() \ No newline at end of file diff --git a/scenarios/debit_update/executable.py b/scenarios/debit_update/executable.py index 36a87b6..33b1b78 100644 --- a/scenarios/debit_update/executable.py +++ b/scenarios/debit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -debit = balanced.Debit.find('/debits/WD6TAVProqNixngz5tRCO52C') +debit = balanced.Debit.find('/debits/WD3xghyI3uMTgjRP5aJugoQy') 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 e9e996b..20a6e04 100644 --- a/scenarios/debit_update/python.mako +++ b/scenarios/debit_update/python.mako @@ -1,11 +1,11 @@ % if mode == 'definition': -balanced.Debit.save() +balanced.Debit().save() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -debit = balanced.Debit.find('/debits/WD6TAVProqNixngz5tRCO52C') +debit = balanced.Debit.find('/debits/WD3xghyI3uMTgjRP5aJugoQy') debit.description = 'New description for debit' debit.meta = { 'facebook.id': '1234567890', diff --git a/scenarios/event_list/definition.mako b/scenarios/event_list/definition.mako index c0e940e..6aaf033 100644 --- a/scenarios/event_list/definition.mako +++ b/scenarios/event_list/definition.mako @@ -1 +1 @@ -balanced.Event.query() \ No newline at end of file +balanced.Event().query \ No newline at end of file diff --git a/scenarios/event_list/executable.py b/scenarios/event_list/executable.py index a987bb2..a500b5d 100644 --- a/scenarios/event_list/executable.py +++ b/scenarios/event_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') events = balanced.Event.query.all() \ No newline at end of file diff --git a/scenarios/event_list/python.mako b/scenarios/event_list/python.mako index db0f12b..f7ba975 100644 --- a/scenarios/event_list/python.mako +++ b/scenarios/event_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Event.query() +balanced.Event().query % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') events = balanced.Event.query.all() % endif \ No newline at end of file diff --git a/scenarios/event_show/definition.mako b/scenarios/event_show/definition.mako index 31545a5..137a1dd 100644 --- a/scenarios/event_show/definition.mako +++ b/scenarios/event_show/definition.mako @@ -1 +1 @@ -balanced.Event.find() \ No newline at end of file +balanced.Event().find() \ No newline at end of file diff --git a/scenarios/event_show/executable.py b/scenarios/event_show/executable.py index bfb4724..9632f85 100644 --- a/scenarios/event_show/executable.py +++ b/scenarios/event_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -event = balanced.Event.find('/events/EVce72c4ba77c911e3a3be026ba7cac9da') \ No newline at end of file +event = balanced.Event.find('/events/EV610bd3fe788111e3b3e8026ba7cd33d0') \ No newline at end of file diff --git a/scenarios/event_show/python.mako b/scenarios/event_show/python.mako index 9d28c67..2d0555f 100644 --- a/scenarios/event_show/python.mako +++ b/scenarios/event_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Event.find() +balanced.Event().find() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -event = balanced.Event.find('/events/EVce72c4ba77c911e3a3be026ba7cac9da') +event = balanced.Event.find('/events/EV610bd3fe788111e3b3e8026ba7cd33d0') % endif \ No newline at end of file diff --git a/scenarios/order_create/executable.py b/scenarios/order_create/executable.py index 5289092..7492118 100644 --- a/scenarios/order_create/executable.py +++ b/scenarios/order_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') order = balanced.Order( description='Order #12341234' diff --git a/scenarios/order_create/python.mako b/scenarios/order_create/python.mako index 74e7080..4096bf2 100644 --- a/scenarios/order_create/python.mako +++ b/scenarios/order_create/python.mako @@ -3,7 +3,7 @@ balanced.Order() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') order = balanced.Order( description='Order #12341234' diff --git a/scenarios/order_list/definition.mako b/scenarios/order_list/definition.mako index 4495d99..165046d 100644 --- a/scenarios/order_list/definition.mako +++ b/scenarios/order_list/definition.mako @@ -1 +1 @@ -balanced.Order.query() \ No newline at end of file +balanced.Order().query \ No newline at end of file diff --git a/scenarios/order_list/executable.py b/scenarios/order_list/executable.py index 5e97cc9..3458275 100644 --- a/scenarios/order_list/executable.py +++ b/scenarios/order_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') orders = balanced.Order.query.all() \ No newline at end of file diff --git a/scenarios/order_list/python.mako b/scenarios/order_list/python.mako index fea3dbb..29dd59f 100644 --- a/scenarios/order_list/python.mako +++ b/scenarios/order_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Order.query() +balanced.Order().query % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') orders = balanced.Order.query.all() % endif \ No newline at end of file diff --git a/scenarios/order_show/definition.mako b/scenarios/order_show/definition.mako index e9574b6..40f9694 100644 --- a/scenarios/order_show/definition.mako +++ b/scenarios/order_show/definition.mako @@ -1 +1 @@ -balanced.Order.find \ No newline at end of file +balanced.Order().find() \ No newline at end of file diff --git a/scenarios/order_show/executable.py b/scenarios/order_show/executable.py index 07f8fbb..6ae5482 100644 --- a/scenarios/order_show/executable.py +++ b/scenarios/order_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -order = balanced.Order.find('/orders/OR7tbUrFlrIwYwE4iCuhtq0v') \ No newline at end of file +order = balanced.Order.find('/orders/OR47s8iZqDt662LdYa5My3oK') \ No newline at end of file diff --git a/scenarios/order_show/python.mako b/scenarios/order_show/python.mako index 0ec65fd..7159db7 100644 --- a/scenarios/order_show/python.mako +++ b/scenarios/order_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Order.find +balanced.Order().find() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -order = balanced.Order.find('/orders/OR7tbUrFlrIwYwE4iCuhtq0v') +order = balanced.Order.find('/orders/OR47s8iZqDt662LdYa5My3oK') % endif \ No newline at end of file diff --git a/scenarios/order_update/definition.mako b/scenarios/order_update/definition.mako index 79049ad..ed8a494 100644 --- a/scenarios/order_update/definition.mako +++ b/scenarios/order_update/definition.mako @@ -1 +1 @@ -balanced.Order.save() \ No newline at end of file +balanced.Order().save() \ No newline at end of file diff --git a/scenarios/order_update/executable.py b/scenarios/order_update/executable.py index b17a1cb..7675d9e 100644 --- a/scenarios/order_update/executable.py +++ b/scenarios/order_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -order = balanced.Order.find('/orders/OR7tbUrFlrIwYwE4iCuhtq0v') +order = balanced.Order.find('/orders/OR47s8iZqDt662LdYa5My3oK') 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 3fdf64d..380f21a 100644 --- a/scenarios/order_update/python.mako +++ b/scenarios/order_update/python.mako @@ -1,11 +1,11 @@ % if mode == 'definition': -balanced.Order.save() +balanced.Order().save() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -order = balanced.Order.find('/orders/OR7tbUrFlrIwYwE4iCuhtq0v') +order = balanced.Order.find('/orders/OR47s8iZqDt662LdYa5My3oK') order.description = 'New description for order' order.meta = { 'anykey' => 'valuegoeshere', diff --git a/scenarios/refund_create/definition.mako b/scenarios/refund_create/definition.mako index a5321df..991e687 100644 --- a/scenarios/refund_create/definition.mako +++ b/scenarios/refund_create/definition.mako @@ -1 +1 @@ -balanced.Debit.refund() \ No newline at end of file +balanced.Debit().refund() \ No newline at end of file diff --git a/scenarios/refund_create/executable.py b/scenarios/refund_create/executable.py index 984245a..228e3ad 100644 --- a/scenarios/refund_create/executable.py +++ b/scenarios/refund_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -debit = balanced.Debit.find('/debits/WD7yQnigdgrO2Bkc7vLIdkeW') +debit = balanced.Debit.find('/debits/WD4d9CgVjg8lX8g8l1638Bor') refund = debit.refund() \ No newline at end of file diff --git a/scenarios/refund_create/python.mako b/scenarios/refund_create/python.mako index f3da8b9..9fb5d74 100644 --- a/scenarios/refund_create/python.mako +++ b/scenarios/refund_create/python.mako @@ -1,10 +1,10 @@ % if mode == 'definition': -balanced.Debit.refund() +balanced.Debit().refund() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -debit = balanced.Debit.find('/debits/WD7yQnigdgrO2Bkc7vLIdkeW') +debit = balanced.Debit.find('/debits/WD4d9CgVjg8lX8g8l1638Bor') refund = debit.refund() % endif \ No newline at end of file diff --git a/scenarios/refund_list/definition.mako b/scenarios/refund_list/definition.mako index cd0fc3c..0156deb 100644 --- a/scenarios/refund_list/definition.mako +++ b/scenarios/refund_list/definition.mako @@ -1 +1 @@ -balanced.Refund.query() \ No newline at end of file +balanced.Refund().query \ No newline at end of file diff --git a/scenarios/refund_list/executable.py b/scenarios/refund_list/executable.py index dd1ca02..81e6ac7 100644 --- a/scenarios/refund_list/executable.py +++ b/scenarios/refund_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') refunds = balanced.Refund.query.all() \ No newline at end of file diff --git a/scenarios/refund_list/python.mako b/scenarios/refund_list/python.mako index 61efbbd..12544b6 100644 --- a/scenarios/refund_list/python.mako +++ b/scenarios/refund_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Refund.query() +balanced.Refund().query % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') refunds = balanced.Refund.query.all() % endif \ No newline at end of file diff --git a/scenarios/refund_show/definition.mako b/scenarios/refund_show/definition.mako index afb4221..1ac0bb2 100644 --- a/scenarios/refund_show/definition.mako +++ b/scenarios/refund_show/definition.mako @@ -1 +1 @@ -balanced.Refund.find() \ No newline at end of file +balanced.Refund().find() \ No newline at end of file diff --git a/scenarios/refund_show/executable.py b/scenarios/refund_show/executable.py index fea93a2..c94d5f6 100644 --- a/scenarios/refund_show/executable.py +++ b/scenarios/refund_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -refund = balanced.Refund.find('/refunds/RF7AxY5iLVIl7a3QtcoVZocS') \ No newline at end of file +refund = balanced.Refund.find('/refunds/RF4eXqVaytz4vN4NwOAfFHXO') \ No newline at end of file diff --git a/scenarios/refund_show/python.mako b/scenarios/refund_show/python.mako index c491f01..a18ea0f 100644 --- a/scenarios/refund_show/python.mako +++ b/scenarios/refund_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Refund.find() +balanced.Refund().find() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -refund = balanced.Refund.find('/refunds/RF7AxY5iLVIl7a3QtcoVZocS') +refund = balanced.Refund.find('/refunds/RF4eXqVaytz4vN4NwOAfFHXO') % endif \ No newline at end of file diff --git a/scenarios/refund_update/definition.mako b/scenarios/refund_update/definition.mako index 18cd86d..a0f7693 100644 --- a/scenarios/refund_update/definition.mako +++ b/scenarios/refund_update/definition.mako @@ -1 +1 @@ -balanced.Refund.save() \ No newline at end of file +balanced.Refund().save() \ No newline at end of file diff --git a/scenarios/refund_update/executable.py b/scenarios/refund_update/executable.py index ae8842d..722dc46 100644 --- a/scenarios/refund_update/executable.py +++ b/scenarios/refund_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -refund = balanced.Refund.find('/refunds/RF7AxY5iLVIl7a3QtcoVZocS') +refund = balanced.Refund.find('/refunds/RF4eXqVaytz4vN4NwOAfFHXO') 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 1b2a6ed..6a7c8dd 100644 --- a/scenarios/refund_update/python.mako +++ b/scenarios/refund_update/python.mako @@ -1,11 +1,11 @@ % if mode == 'definition': -balanced.Refund.save() +balanced.Refund().save() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -refund = balanced.Refund.find('/refunds/RF7AxY5iLVIl7a3QtcoVZocS') +refund = balanced.Refund.find('/refunds/RF4eXqVaytz4vN4NwOAfFHXO') refund.description = 'update this description' refund.meta = { 'user.refund.count': '3', diff --git a/scenarios/reversal_create/definition.mako b/scenarios/reversal_create/definition.mako index ab5189f..41e8774 100644 --- a/scenarios/reversal_create/definition.mako +++ b/scenarios/reversal_create/definition.mako @@ -1 +1 @@ -balanced.Credit.reverse() \ No newline at end of file +balanced.Credit().reverse() \ No newline at end of file diff --git a/scenarios/reversal_create/executable.py b/scenarios/reversal_create/executable.py index c3d9492..7a1de65 100644 --- a/scenarios/reversal_create/executable.py +++ b/scenarios/reversal_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -credit = balanced.Credit.find('/credits/CR7HIdtAm4eFX1weOgiaRGQM') +credit = balanced.Credit.find('/credits/CR4lqO3NwBWdLYGvMAUeKt7g') reversal = credit.reverse() \ No newline at end of file diff --git a/scenarios/reversal_create/python.mako b/scenarios/reversal_create/python.mako index 8275124..ba00e45 100644 --- a/scenarios/reversal_create/python.mako +++ b/scenarios/reversal_create/python.mako @@ -1,10 +1,10 @@ % if mode == 'definition': -balanced.Credit.reverse() +balanced.Credit().reverse() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -credit = balanced.Credit.find('/credits/CR7HIdtAm4eFX1weOgiaRGQM') +credit = balanced.Credit.find('/credits/CR4lqO3NwBWdLYGvMAUeKt7g') reversal = credit.reverse() % endif \ No newline at end of file diff --git a/scenarios/reversal_list/definition.mako b/scenarios/reversal_list/definition.mako index 52fb77a..2954300 100644 --- a/scenarios/reversal_list/definition.mako +++ b/scenarios/reversal_list/definition.mako @@ -1 +1 @@ -balanced.Reversal.query() \ No newline at end of file +balanced.Reversal().query() \ No newline at end of file diff --git a/scenarios/reversal_list/executable.py b/scenarios/reversal_list/executable.py index 9c2b8e5..3f0ddaa 100644 --- a/scenarios/reversal_list/executable.py +++ b/scenarios/reversal_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') reversals = balanced.Reversal.query.all() \ No newline at end of file diff --git a/scenarios/reversal_list/python.mako b/scenarios/reversal_list/python.mako index eecfcb8..1faa4d3 100644 --- a/scenarios/reversal_list/python.mako +++ b/scenarios/reversal_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Reversal.query() +balanced.Reversal().query() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') reversals = balanced.Reversal.query.all() % endif \ No newline at end of file diff --git a/scenarios/reversal_show/definition.mako b/scenarios/reversal_show/definition.mako index 05898b7..b46d8dc 100644 --- a/scenarios/reversal_show/definition.mako +++ b/scenarios/reversal_show/definition.mako @@ -1 +1 @@ -balanced.Reversal.find() \ No newline at end of file +balanced.Reversal().find() \ No newline at end of file diff --git a/scenarios/reversal_show/executable.py b/scenarios/reversal_show/executable.py index 317ca04..9fd5b19 100644 --- a/scenarios/reversal_show/executable.py +++ b/scenarios/reversal_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -refund = balanced.Reversal.find('/reversals/RV7IMMa8PGy8obFm8g5fnvP1') \ No newline at end of file +refund = balanced.Reversal.find('/reversals/RV4mvdReJFZTySZXe8IyQ8Bi') \ No newline at end of file diff --git a/scenarios/reversal_show/python.mako b/scenarios/reversal_show/python.mako index fd8500d..8ae46fd 100644 --- a/scenarios/reversal_show/python.mako +++ b/scenarios/reversal_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Reversal.find() +balanced.Reversal().find() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -refund = balanced.Reversal.find('/reversals/RV7IMMa8PGy8obFm8g5fnvP1') +refund = balanced.Reversal.find('/reversals/RV4mvdReJFZTySZXe8IyQ8Bi') % endif \ No newline at end of file diff --git a/scenarios/reversal_update/definition.mako b/scenarios/reversal_update/definition.mako index 0ba268e..26bc384 100644 --- a/scenarios/reversal_update/definition.mako +++ b/scenarios/reversal_update/definition.mako @@ -1 +1 @@ -balanced.Reversal.save() \ No newline at end of file +balanced.Reversal().save() \ No newline at end of file diff --git a/scenarios/reversal_update/executable.py b/scenarios/reversal_update/executable.py index e23943a..5ae760b 100644 --- a/scenarios/reversal_update/executable.py +++ b/scenarios/reversal_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -reversal = balanced.Reversal.find('/reversals/RV7IMMa8PGy8obFm8g5fnvP1') +reversal = balanced.Reversal.find('/reversals/RV4mvdReJFZTySZXe8IyQ8Bi') 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 50e9041..ef87165 100644 --- a/scenarios/reversal_update/python.mako +++ b/scenarios/reversal_update/python.mako @@ -1,11 +1,11 @@ % if mode == 'definition': -balanced.Reversal.save() +balanced.Reversal().save() % else: import balanced -balanced.configure('ak-test-1tUen2a604QT05iGc6p4pbPjTqsAPMFCl') +balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -reversal = balanced.Reversal.find('/reversals/RV7IMMa8PGy8obFm8g5fnvP1') +reversal = balanced.Reversal.find('/reversals/RV4mvdReJFZTySZXe8IyQ8Bi') reversal.description = 'update this description' reversal.meta = { 'user.refund.count': '3', From 03fd96fcf871e8e3a400f06934090b3578c22ac8 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Wed, 8 Jan 2014 09:31:34 -0700 Subject: [PATCH 017/146] Fixed card and bank account scenario definitions --- scenarios/bank_account_associate_to_customer/definition.mako | 2 +- scenarios/bank_account_associate_to_customer/python.mako | 2 +- scenarios/card_associate_to_customer/definition.mako | 2 +- scenarios/card_associate_to_customer/python.mako | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scenarios/bank_account_associate_to_customer/definition.mako b/scenarios/bank_account_associate_to_customer/definition.mako index 43972c9..03152a2 100644 --- a/scenarios/bank_account_associate_to_customer/definition.mako +++ b/scenarios/bank_account_associate_to_customer/definition.mako @@ -1 +1 @@ -balanced.Customer().add_bank_account \ No newline at end of file +balanced.Card().associate_to() \ 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 96bb29e..7fc8abd 100644 --- a/scenarios/bank_account_associate_to_customer/python.mako +++ b/scenarios/bank_account_associate_to_customer/python.mako @@ -1,5 +1,5 @@ % if mode == 'definition': -balanced.Customer().add_bank_account +balanced.Card().associate_to() % else: import balanced diff --git a/scenarios/card_associate_to_customer/definition.mako b/scenarios/card_associate_to_customer/definition.mako index 0710c3e..03152a2 100644 --- a/scenarios/card_associate_to_customer/definition.mako +++ b/scenarios/card_associate_to_customer/definition.mako @@ -1 +1 @@ -balanced.Customer().add_card \ No newline at end of file +balanced.Card().associate_to() \ 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 3da2f44..ac4c9cd 100644 --- a/scenarios/card_associate_to_customer/python.mako +++ b/scenarios/card_associate_to_customer/python.mako @@ -1,5 +1,5 @@ % if mode == 'definition': -balanced.Customer().add_card +balanced.Card().associate_to() % else: import balanced From 3d2d3b000bf2d13353b8affcd2d9bf7615772fec Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Wed, 8 Jan 2014 09:48:20 -0700 Subject: [PATCH 018/146] Use lazy loading query in scenarios --- scenarios/bank_account_list/executable.py | 2 +- scenarios/bank_account_list/python.mako | 2 +- scenarios/bank_account_list/request.mako | 2 +- scenarios/callback_list/executable.py | 2 +- scenarios/callback_list/python.mako | 2 +- scenarios/callback_list/request.mako | 2 +- scenarios/card_hold_list/executable.py | 2 +- scenarios/card_hold_list/python.mako | 2 +- scenarios/card_hold_list/request.mako | 2 +- scenarios/credit_list/executable.py | 2 +- scenarios/credit_list/python.mako | 2 +- scenarios/credit_list/request.mako | 2 +- scenarios/credit_list_bank_account/executable.py | 2 +- scenarios/credit_list_bank_account/python.mako | 2 +- scenarios/credit_list_bank_account/request.mako | 2 +- scenarios/customer_list/executable.py | 2 +- scenarios/customer_list/python.mako | 2 +- scenarios/customer_list/request.mako | 2 +- scenarios/debit_list/executable.py | 2 +- scenarios/debit_list/python.mako | 2 +- scenarios/debit_list/request.mako | 2 +- scenarios/event_list/executable.py | 2 +- scenarios/event_list/python.mako | 2 +- scenarios/event_list/request.mako | 2 +- scenarios/order_list/executable.py | 2 +- scenarios/order_list/python.mako | 2 +- scenarios/order_list/request.mako | 2 +- scenarios/refund_list/executable.py | 2 +- scenarios/refund_list/python.mako | 2 +- scenarios/refund_list/request.mako | 2 +- scenarios/reversal_list/executable.py | 2 +- scenarios/reversal_list/python.mako | 2 +- scenarios/reversal_list/request.mako | 2 +- 33 files changed, 33 insertions(+), 33 deletions(-) diff --git a/scenarios/bank_account_list/executable.py b/scenarios/bank_account_list/executable.py index 95eb657..c92ea7e 100644 --- a/scenarios/bank_account_list/executable.py +++ b/scenarios/bank_account_list/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_accounts = balanced.BankAccount.query.all() \ No newline at end of file +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 524ffae..188edfd 100644 --- a/scenarios/bank_account_list/python.mako +++ b/scenarios/bank_account_list/python.mako @@ -5,5 +5,5 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_accounts = balanced.BankAccount.query.all() +bank_accounts = balanced.BankAccount.query % endif \ No newline at end of file diff --git a/scenarios/bank_account_list/request.mako b/scenarios/bank_account_list/request.mako index c5cd06e..eefa756 100644 --- a/scenarios/bank_account_list/request.mako +++ b/scenarios/bank_account_list/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -bank_accounts = balanced.BankAccount.query.all() \ No newline at end of file +bank_accounts = balanced.BankAccount.query \ No newline at end of file diff --git a/scenarios/callback_list/executable.py b/scenarios/callback_list/executable.py index 6768cac..3376ee5 100644 --- a/scenarios/callback_list/executable.py +++ b/scenarios/callback_list/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -callbacks = balanced.Callback.query.all() \ No newline at end of file +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 30eae05..e274ab3 100644 --- a/scenarios/callback_list/python.mako +++ b/scenarios/callback_list/python.mako @@ -5,5 +5,5 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -callbacks = balanced.Callback.query.all() +callbacks = balanced.Callback.query % endif \ No newline at end of file diff --git a/scenarios/callback_list/request.mako b/scenarios/callback_list/request.mako index 1a5e343..f04f7b2 100644 --- a/scenarios/callback_list/request.mako +++ b/scenarios/callback_list/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -callbacks = balanced.Callback.query.all() \ No newline at end of file +callbacks = balanced.Callback.query \ No newline at end of file diff --git a/scenarios/card_hold_list/executable.py b/scenarios/card_hold_list/executable.py index fc8046c..ba6e1d3 100644 --- a/scenarios/card_hold_list/executable.py +++ b/scenarios/card_hold_list/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card_holds = balanced.CardHold.query.all() \ No newline at end of file +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 208b2d4..9adc8be 100644 --- a/scenarios/card_hold_list/python.mako +++ b/scenarios/card_hold_list/python.mako @@ -5,5 +5,5 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card_holds = balanced.CardHold.query.all() +card_holds = balanced.CardHold.query % endif \ No newline at end of file diff --git a/scenarios/card_hold_list/request.mako b/scenarios/card_hold_list/request.mako index 97a3d0e..a5eef2c 100644 --- a/scenarios/card_hold_list/request.mako +++ b/scenarios/card_hold_list/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -card_holds = balanced.CardHold.query.all() \ No newline at end of file +card_holds = balanced.CardHold.query \ No newline at end of file diff --git a/scenarios/credit_list/executable.py b/scenarios/credit_list/executable.py index f8e2f07..4d2cb01 100644 --- a/scenarios/credit_list/executable.py +++ b/scenarios/credit_list/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -credits = balanced.Credit.query.all() \ No newline at end of file +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 153900d..350396e 100644 --- a/scenarios/credit_list/python.mako +++ b/scenarios/credit_list/python.mako @@ -5,5 +5,5 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -credits = balanced.Credit.query.all() +credits = balanced.Credit.query % endif \ No newline at end of file diff --git a/scenarios/credit_list/request.mako b/scenarios/credit_list/request.mako index 55eb938..d980ca6 100644 --- a/scenarios/credit_list/request.mako +++ b/scenarios/credit_list/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -credits = balanced.Credit.query.all() \ No newline at end of file +credits = balanced.Credit.query \ 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 e5b8c70..118dc4f 100644 --- a/scenarios/credit_list_bank_account/executable.py +++ b/scenarios/credit_list_bank_account/executable.py @@ -3,4 +3,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') bank_account = balanced.BankAccount.find('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi/credits') -credits = bank_account.credits.all() \ No newline at end of file +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 702fdcc..cb9d4c2 100644 --- a/scenarios/credit_list_bank_account/python.mako +++ b/scenarios/credit_list_bank_account/python.mako @@ -6,5 +6,5 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') bank_account = balanced.BankAccount.find('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi/credits') -credits = bank_account.credits.all() +credits = bank_account.credits % 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 b2a213f..f2d70e4 100644 --- a/scenarios/credit_list_bank_account/request.mako +++ b/scenarios/credit_list_bank_account/request.mako @@ -2,4 +2,4 @@ <% main.python_boilerplate() %> bank_account = balanced.BankAccount.find('${request['uri']}') -credits = bank_account.credits.all() \ No newline at end of file +credits = bank_account.credits \ No newline at end of file diff --git a/scenarios/customer_list/executable.py b/scenarios/customer_list/executable.py index d1a495b..25ce6bc 100644 --- a/scenarios/customer_list/executable.py +++ b/scenarios/customer_list/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -customers = balanced.Customer.query.all() \ No newline at end of file +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 64e3b4f..ba0fffc 100644 --- a/scenarios/customer_list/python.mako +++ b/scenarios/customer_list/python.mako @@ -5,5 +5,5 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -customers = balanced.Customer.query.all() +customers = balanced.Customer.query % endif \ No newline at end of file diff --git a/scenarios/customer_list/request.mako b/scenarios/customer_list/request.mako index 67cbb5b..b6ab4f2 100644 --- a/scenarios/customer_list/request.mako +++ b/scenarios/customer_list/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -customers = balanced.Customer.query.all() \ No newline at end of file +customers = balanced.Customer.query \ No newline at end of file diff --git a/scenarios/debit_list/executable.py b/scenarios/debit_list/executable.py index 1145fc9..e057b1a 100644 --- a/scenarios/debit_list/executable.py +++ b/scenarios/debit_list/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -debits = balanced.Debit.query.all() \ No newline at end of file +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 d6cffb9..c95977b 100644 --- a/scenarios/debit_list/python.mako +++ b/scenarios/debit_list/python.mako @@ -5,5 +5,5 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -debits = balanced.Debit.query.all() +debits = balanced.Debit.query % endif \ No newline at end of file diff --git a/scenarios/debit_list/request.mako b/scenarios/debit_list/request.mako index 855eb8f..5ff7d93 100644 --- a/scenarios/debit_list/request.mako +++ b/scenarios/debit_list/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -debits = balanced.Debit.query.all() \ No newline at end of file +debits = balanced.Debit.query \ No newline at end of file diff --git a/scenarios/event_list/executable.py b/scenarios/event_list/executable.py index a500b5d..761235b 100644 --- a/scenarios/event_list/executable.py +++ b/scenarios/event_list/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -events = balanced.Event.query.all() \ No newline at end of file +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 f7ba975..021b419 100644 --- a/scenarios/event_list/python.mako +++ b/scenarios/event_list/python.mako @@ -5,5 +5,5 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -events = balanced.Event.query.all() +events = balanced.Event.query % endif \ No newline at end of file diff --git a/scenarios/event_list/request.mako b/scenarios/event_list/request.mako index eb938fa..a471a52 100644 --- a/scenarios/event_list/request.mako +++ b/scenarios/event_list/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -events = balanced.Event.query.all() \ No newline at end of file +events = balanced.Event.query \ No newline at end of file diff --git a/scenarios/order_list/executable.py b/scenarios/order_list/executable.py index 3458275..458d7ae 100644 --- a/scenarios/order_list/executable.py +++ b/scenarios/order_list/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -orders = balanced.Order.query.all() \ No newline at end of file +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 29dd59f..52e9353 100644 --- a/scenarios/order_list/python.mako +++ b/scenarios/order_list/python.mako @@ -5,5 +5,5 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -orders = balanced.Order.query.all() +orders = balanced.Order.query % endif \ No newline at end of file diff --git a/scenarios/order_list/request.mako b/scenarios/order_list/request.mako index 3ffc352..45c59b2 100644 --- a/scenarios/order_list/request.mako +++ b/scenarios/order_list/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -orders = balanced.Order.query.all() \ No newline at end of file +orders = balanced.Order.query \ No newline at end of file diff --git a/scenarios/refund_list/executable.py b/scenarios/refund_list/executable.py index 81e6ac7..a693f50 100644 --- a/scenarios/refund_list/executable.py +++ b/scenarios/refund_list/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -refunds = balanced.Refund.query.all() \ No newline at end of file +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 12544b6..533f5c3 100644 --- a/scenarios/refund_list/python.mako +++ b/scenarios/refund_list/python.mako @@ -5,5 +5,5 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -refunds = balanced.Refund.query.all() +refunds = balanced.Refund.query % endif \ No newline at end of file diff --git a/scenarios/refund_list/request.mako b/scenarios/refund_list/request.mako index ada25b8..02bf364 100644 --- a/scenarios/refund_list/request.mako +++ b/scenarios/refund_list/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -refunds = balanced.Refund.query.all() \ No newline at end of file +refunds = balanced.Refund.query \ No newline at end of file diff --git a/scenarios/reversal_list/executable.py b/scenarios/reversal_list/executable.py index 3f0ddaa..a5343b5 100644 --- a/scenarios/reversal_list/executable.py +++ b/scenarios/reversal_list/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -reversals = balanced.Reversal.query.all() \ No newline at end of file +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 1faa4d3..f0f0247 100644 --- a/scenarios/reversal_list/python.mako +++ b/scenarios/reversal_list/python.mako @@ -5,5 +5,5 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -reversals = balanced.Reversal.query.all() +reversals = balanced.Reversal.query % endif \ No newline at end of file diff --git a/scenarios/reversal_list/request.mako b/scenarios/reversal_list/request.mako index 14c0a78..1b30130 100644 --- a/scenarios/reversal_list/request.mako +++ b/scenarios/reversal_list/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -reversals = balanced.Reversal.query.all() \ No newline at end of file +reversals = balanced.Reversal.query \ No newline at end of file From cb49d4874d82449c589771348cbe4d85976bd751 Mon Sep 17 00:00:00 2001 From: Isaac Cook Date: Mon, 13 Jan 2014 20:17:48 -0600 Subject: [PATCH 019/146] Fixed incorrect method name from v1 to v1.1 changeover --- scenarios/card_show/definition.mako | 2 +- scenarios/card_show/executable.py | 2 +- scenarios/card_show/python.mako | 6 +++--- scenarios/card_show/request.mako | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scenarios/card_show/definition.mako b/scenarios/card_show/definition.mako index 3742d7f..d812b4e 100644 --- a/scenarios/card_show/definition.mako +++ b/scenarios/card_show/definition.mako @@ -1 +1 @@ -balanced.Card().find() \ No newline at end of file +balanced.Card().get() \ No newline at end of file diff --git a/scenarios/card_show/executable.py b/scenarios/card_show/executable.py index 423f295..4b4ffb1 100644 --- a/scenarios/card_show/executable.py +++ b/scenarios/card_show/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') \ No newline at end of file +card = balanced.Card.get('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') diff --git a/scenarios/card_show/python.mako b/scenarios/card_show/python.mako index 11a3f54..5ac50c3 100644 --- a/scenarios/card_show/python.mako +++ b/scenarios/card_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Card().find() +balanced.Card().get() % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') -% endif \ No newline at end of file +card = balanced.Card.get('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') +% endif diff --git a/scenarios/card_show/request.mako b/scenarios/card_show/request.mako index 3821f1f..069c131 100644 --- a/scenarios/card_show/request.mako +++ b/scenarios/card_show/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -card = balanced.Card.find('${request['uri']}') \ No newline at end of file +card = balanced.Card.get('${request['uri']}') From 0a78a5b8d5e85776f57a9fb04f597e0bc06016ed Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Tue, 14 Jan 2014 13:32:01 -0800 Subject: [PATCH 020/146] fixes #79 --- balanced/resources.py | 4 ++++ tests/test_suite.py | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/balanced/resources.py b/balanced/resources.py index 9cea5a4..7465421 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -196,6 +196,10 @@ class Resource(JSONSchemaResource): def unstore(self): return self.delete() + @classmethod + def fetch(cls, uri): + return cls.get(uri) + class Marketplace(Resource): """ diff --git a/tests/test_suite.py b/tests/test_suite.py index 7f63af8..e5d033d 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -272,3 +272,12 @@ def test_delete_card(self): card = balanced.Card(**CARD).save() card.associate_to(customer) card.unstore() + + def test_fetch_resource(self): + customer = balanced.Customer().save() + customer2 = balanced.Customer.fetch(customer.href) + for prop in ('id', 'href', 'name', 'created_at'): + self.assertEqual( + getattr(customer, prop), + getattr(customer2, prop), + ) From 0970a57841d25ad046678c87e6c745b6c5828524 Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Tue, 14 Jan 2014 13:42:22 -0800 Subject: [PATCH 021/146] fix static and instance method issues. change everything to use instead of . --- scenarios/api_key_list/definition.mako | 2 +- scenarios/api_key_list/python.mako | 4 ++-- scenarios/api_key_show/definition.mako | 2 +- scenarios/api_key_show/python.mako | 4 ++-- scenarios/bank_account_list/definition.mako | 2 +- scenarios/bank_account_list/python.mako | 4 ++-- scenarios/bank_account_show/definition.mako | 2 +- scenarios/bank_account_show/python.mako | 4 ++-- scenarios/bank_account_verification_show/definition.mako | 2 +- scenarios/bank_account_verification_show/python.mako | 4 ++-- scenarios/callback_list/definition.mako | 2 +- scenarios/callback_list/python.mako | 4 ++-- scenarios/callback_show/definition.mako | 2 +- scenarios/callback_show/python.mako | 4 ++-- scenarios/card_hold_list/definition.mako | 2 +- scenarios/card_hold_list/python.mako | 4 ++-- scenarios/card_hold_show/definition.mako | 2 +- scenarios/card_hold_show/python.mako | 4 ++-- scenarios/card_list/definition.mako | 2 +- scenarios/card_list/python.mako | 4 ++-- scenarios/card_show/definition.mako | 2 +- scenarios/card_show/executable.py | 2 +- scenarios/card_show/python.mako | 4 ++-- scenarios/card_show/request.mako | 2 +- scenarios/credit_list/definition.mako | 2 +- scenarios/credit_list/python.mako | 4 ++-- scenarios/credit_show/definition.mako | 2 +- scenarios/credit_show/python.mako | 4 ++-- scenarios/customer_list/definition.mako | 2 +- scenarios/customer_list/python.mako | 4 ++-- scenarios/customer_show/definition.mako | 2 +- scenarios/customer_show/python.mako | 4 ++-- scenarios/debit_list/definition.mako | 2 +- scenarios/debit_list/python.mako | 4 ++-- scenarios/debit_show/definition.mako | 2 +- scenarios/debit_show/python.mako | 4 ++-- scenarios/event_list/definition.mako | 2 +- scenarios/event_list/python.mako | 4 ++-- scenarios/event_show/definition.mako | 2 +- scenarios/event_show/python.mako | 4 ++-- scenarios/order_list/definition.mako | 2 +- scenarios/order_list/python.mako | 4 ++-- scenarios/order_show/definition.mako | 2 +- scenarios/order_show/python.mako | 4 ++-- scenarios/refund_list/definition.mako | 2 +- scenarios/refund_list/python.mako | 4 ++-- scenarios/refund_show/definition.mako | 2 +- scenarios/refund_show/python.mako | 4 ++-- scenarios/reversal_list/definition.mako | 2 +- scenarios/reversal_list/python.mako | 4 ++-- scenarios/reversal_show/definition.mako | 2 +- scenarios/reversal_show/python.mako | 4 ++-- 52 files changed, 77 insertions(+), 77 deletions(-) diff --git a/scenarios/api_key_list/definition.mako b/scenarios/api_key_list/definition.mako index 7330f78..96c40c8 100644 --- a/scenarios/api_key_list/definition.mako +++ b/scenarios/api_key_list/definition.mako @@ -1 +1 @@ -balanced.APIKey().query \ No newline at end of file +balanced.APIKey.query diff --git a/scenarios/api_key_list/python.mako b/scenarios/api_key_list/python.mako index a6f5e99..51ee921 100644 --- a/scenarios/api_key_list/python.mako +++ b/scenarios/api_key_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.APIKey().query +balanced.APIKey.query % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') keys = balanced.APIKey.query -% endif \ No newline at end of file +% endif diff --git a/scenarios/api_key_show/definition.mako b/scenarios/api_key_show/definition.mako index 16169ca..5f4442d 100644 --- a/scenarios/api_key_show/definition.mako +++ b/scenarios/api_key_show/definition.mako @@ -1 +1 @@ -balanced.APIKey().find() \ No newline at end of file +balanced.APIKey.fetch() diff --git a/scenarios/api_key_show/python.mako b/scenarios/api_key_show/python.mako index 278d50b..d0b0db9 100644 --- a/scenarios/api_key_show/python.mako +++ b/scenarios/api_key_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.APIKey().find() +balanced.APIKey.fetch() % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') key = balanced.APIKey.find('/api_keys/AK2MIAdNHBolYbbacv2OSosg') -% endif \ No newline at end of file +% endif diff --git a/scenarios/bank_account_list/definition.mako b/scenarios/bank_account_list/definition.mako index 03b0a44..6e1d1bb 100644 --- a/scenarios/bank_account_list/definition.mako +++ b/scenarios/bank_account_list/definition.mako @@ -1 +1 @@ -balanced.BankAccount().query \ No newline at end of file +balanced.BankAccount.query diff --git a/scenarios/bank_account_list/python.mako b/scenarios/bank_account_list/python.mako index 188edfd..f8e37c2 100644 --- a/scenarios/bank_account_list/python.mako +++ b/scenarios/bank_account_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.BankAccount().query +balanced.BankAccount.query % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') bank_accounts = balanced.BankAccount.query -% endif \ No newline at end of file +% endif diff --git a/scenarios/bank_account_show/definition.mako b/scenarios/bank_account_show/definition.mako index 7c83be0..f47a3bb 100644 --- a/scenarios/bank_account_show/definition.mako +++ b/scenarios/bank_account_show/definition.mako @@ -1 +1 @@ -balanced.BankAccount().find() \ No newline at end of file +balanced.BankAccount.fetch() diff --git a/scenarios/bank_account_show/python.mako b/scenarios/bank_account_show/python.mako index 41b368c..c07f110 100644 --- a/scenarios/bank_account_show/python.mako +++ b/scenarios/bank_account_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.BankAccount().find() +balanced.BankAccount.fetch() % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') bank_account = balanced.BankAccount.find('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') -% endif \ No newline at end of file +% endif diff --git a/scenarios/bank_account_verification_show/definition.mako b/scenarios/bank_account_verification_show/definition.mako index e85e076..7dd75ca 100644 --- a/scenarios/bank_account_verification_show/definition.mako +++ b/scenarios/bank_account_verification_show/definition.mako @@ -1 +1 @@ -balanced.BankAccountVerification().find() \ No newline at end of file +balanced.BankAccountVerification.fetch() diff --git a/scenarios/bank_account_verification_show/python.mako b/scenarios/bank_account_verification_show/python.mako index 81c9579..4cb56b3 100644 --- a/scenarios/bank_account_verification_show/python.mako +++ b/scenarios/bank_account_verification_show/python.mako @@ -1,8 +1,8 @@ % if mode == 'definition': -balanced.BankAccountVerification().find() +balanced.BankAccountVerification.fetch() % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') verification = balanced.BankAccountVerification.find('/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG') -% endif \ No newline at end of file +% endif diff --git a/scenarios/callback_list/definition.mako b/scenarios/callback_list/definition.mako index 693d524..b6d0a3b 100644 --- a/scenarios/callback_list/definition.mako +++ b/scenarios/callback_list/definition.mako @@ -1 +1 @@ -balanced.Callback().query \ No newline at end of file +balanced.Callback.query diff --git a/scenarios/callback_list/python.mako b/scenarios/callback_list/python.mako index e274ab3..d60a65b 100644 --- a/scenarios/callback_list/python.mako +++ b/scenarios/callback_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Callback().query +balanced.Callback.query % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') callbacks = balanced.Callback.query -% endif \ No newline at end of file +% endif diff --git a/scenarios/callback_show/definition.mako b/scenarios/callback_show/definition.mako index 4d93cb8..e14fb92 100644 --- a/scenarios/callback_show/definition.mako +++ b/scenarios/callback_show/definition.mako @@ -1 +1 @@ -balanced.Callback().find() \ No newline at end of file +balanced.Callback.fetch() diff --git a/scenarios/callback_show/python.mako b/scenarios/callback_show/python.mako index cd12e95..e76c904 100644 --- a/scenarios/callback_show/python.mako +++ b/scenarios/callback_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Callback().find() +balanced.Callback.fetch() % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') callback = balanced.Callback.find('/callbacks/CB37kedWD88LFkipaugpfZ9w') -% endif \ No newline at end of file +% endif diff --git a/scenarios/card_hold_list/definition.mako b/scenarios/card_hold_list/definition.mako index ea0d9de..0acf33a 100644 --- a/scenarios/card_hold_list/definition.mako +++ b/scenarios/card_hold_list/definition.mako @@ -1 +1 @@ -balanced.CardHold().query \ No newline at end of file +balanced.CardHold.query diff --git a/scenarios/card_hold_list/python.mako b/scenarios/card_hold_list/python.mako index 9adc8be..e646ba5 100644 --- a/scenarios/card_hold_list/python.mako +++ b/scenarios/card_hold_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.CardHold().query +balanced.CardHold.query % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') card_holds = balanced.CardHold.query -% endif \ No newline at end of file +% endif diff --git a/scenarios/card_hold_show/definition.mako b/scenarios/card_hold_show/definition.mako index e8a0955..53d51dd 100644 --- a/scenarios/card_hold_show/definition.mako +++ b/scenarios/card_hold_show/definition.mako @@ -1 +1 @@ -balanced.CardHold().find() \ No newline at end of file +balanced.CardHold.fetch() diff --git a/scenarios/card_hold_show/python.mako b/scenarios/card_hold_show/python.mako index cad35cb..a4f3389 100644 --- a/scenarios/card_hold_show/python.mako +++ b/scenarios/card_hold_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.CardHold().find() +balanced.CardHold.fetch() % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') card_hold = balanced.CardHold.find('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') -% endif \ No newline at end of file +% endif diff --git a/scenarios/card_list/definition.mako b/scenarios/card_list/definition.mako index f12d2e6..d5c620b 100644 --- a/scenarios/card_list/definition.mako +++ b/scenarios/card_list/definition.mako @@ -1 +1 @@ -balanced.Card().query \ No newline at end of file +balanced.Card.query diff --git a/scenarios/card_list/python.mako b/scenarios/card_list/python.mako index 6bf0cc6..acc6533 100644 --- a/scenarios/card_list/python.mako +++ b/scenarios/card_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Card().query +balanced.Card.query % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') cards = balanced.Card.query -% endif \ No newline at end of file +% endif diff --git a/scenarios/card_show/definition.mako b/scenarios/card_show/definition.mako index d812b4e..42577f2 100644 --- a/scenarios/card_show/definition.mako +++ b/scenarios/card_show/definition.mako @@ -1 +1 @@ -balanced.Card().get() \ No newline at end of file +balanced.Card.fetch() \ No newline at end of file diff --git a/scenarios/card_show/executable.py b/scenarios/card_show/executable.py index 4b4ffb1..c030515 100644 --- a/scenarios/card_show/executable.py +++ b/scenarios/card_show/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.get('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') +card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') diff --git a/scenarios/card_show/python.mako b/scenarios/card_show/python.mako index 5ac50c3..5aa978c 100644 --- a/scenarios/card_show/python.mako +++ b/scenarios/card_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Card().get() +balanced.Card.get() % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.get('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') +card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') % endif diff --git a/scenarios/card_show/request.mako b/scenarios/card_show/request.mako index 069c131..0871aec 100644 --- a/scenarios/card_show/request.mako +++ b/scenarios/card_show/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -card = balanced.Card.get('${request['uri']}') +card = balanced.Card.fetch('${request['uri']}') diff --git a/scenarios/credit_list/definition.mako b/scenarios/credit_list/definition.mako index 0c54561..c04e473 100644 --- a/scenarios/credit_list/definition.mako +++ b/scenarios/credit_list/definition.mako @@ -1 +1 @@ -balanced.Credit().query \ No newline at end of file +balanced.Credit.query diff --git a/scenarios/credit_list/python.mako b/scenarios/credit_list/python.mako index 350396e..a2252c9 100644 --- a/scenarios/credit_list/python.mako +++ b/scenarios/credit_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Credit().query +balanced.Credit.query % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') credits = balanced.Credit.query -% endif \ No newline at end of file +% endif diff --git a/scenarios/credit_show/definition.mako b/scenarios/credit_show/definition.mako index 4bd405a..9a3d2e7 100644 --- a/scenarios/credit_show/definition.mako +++ b/scenarios/credit_show/definition.mako @@ -1 +1 @@ -balanced.Credit().find() \ No newline at end of file +balanced.Credit.fetch() diff --git a/scenarios/credit_show/python.mako b/scenarios/credit_show/python.mako index 9f69532..68ea1d0 100644 --- a/scenarios/credit_show/python.mako +++ b/scenarios/credit_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Credit().find() +balanced.Credit.fetch() % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') credit = balanced.Credit.find('/credits/CR3DLTIjMve5idvjBrXNKBHE') -% endif \ No newline at end of file +% endif diff --git a/scenarios/customer_list/definition.mako b/scenarios/customer_list/definition.mako index de314eb..c27241d 100644 --- a/scenarios/customer_list/definition.mako +++ b/scenarios/customer_list/definition.mako @@ -1 +1 @@ -balanced.Customer().query \ No newline at end of file +balanced.Customer.query diff --git a/scenarios/customer_list/python.mako b/scenarios/customer_list/python.mako index ba0fffc..fb32680 100644 --- a/scenarios/customer_list/python.mako +++ b/scenarios/customer_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Customer().query +balanced.Customer.query % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') customers = balanced.Customer.query -% endif \ No newline at end of file +% endif diff --git a/scenarios/customer_show/definition.mako b/scenarios/customer_show/definition.mako index 1adbb0c..8db9ee3 100644 --- a/scenarios/customer_show/definition.mako +++ b/scenarios/customer_show/definition.mako @@ -1 +1 @@ -balanced.Customer().find() \ No newline at end of file +balanced.Customer.fetch() diff --git a/scenarios/customer_show/python.mako b/scenarios/customer_show/python.mako index ae38911..2ed8284 100644 --- a/scenarios/customer_show/python.mako +++ b/scenarios/customer_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Customer().find() +balanced.Customer.fetch() % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') customer = balanced.Customer.find('/customers/CU3LNFIXs33DopZuksrfp0KY') -% endif \ No newline at end of file +% endif diff --git a/scenarios/debit_list/definition.mako b/scenarios/debit_list/definition.mako index e7db4af..389fecf 100644 --- a/scenarios/debit_list/definition.mako +++ b/scenarios/debit_list/definition.mako @@ -1 +1 @@ -balanced.Debit().query \ No newline at end of file +balanced.Debit.query diff --git a/scenarios/debit_list/python.mako b/scenarios/debit_list/python.mako index c95977b..312c599 100644 --- a/scenarios/debit_list/python.mako +++ b/scenarios/debit_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Debit().query +balanced.Debit.query % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') debits = balanced.Debit.query -% endif \ No newline at end of file +% endif diff --git a/scenarios/debit_show/definition.mako b/scenarios/debit_show/definition.mako index f6f7dee..ae0f43c 100644 --- a/scenarios/debit_show/definition.mako +++ b/scenarios/debit_show/definition.mako @@ -1 +1 @@ -balanced.Debit().find() \ No newline at end of file +balanced.Debit.fetch() diff --git a/scenarios/debit_show/python.mako b/scenarios/debit_show/python.mako index 2e0d91e..c283123 100644 --- a/scenarios/debit_show/python.mako +++ b/scenarios/debit_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Debit().find() +balanced.Debit.fetch() % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') debit = balanced.Debit.find('/debits/WD3xghyI3uMTgjRP5aJugoQy') -% endif \ No newline at end of file +% endif diff --git a/scenarios/event_list/definition.mako b/scenarios/event_list/definition.mako index 6aaf033..4b78ca8 100644 --- a/scenarios/event_list/definition.mako +++ b/scenarios/event_list/definition.mako @@ -1 +1 @@ -balanced.Event().query \ No newline at end of file +balanced.Event.query diff --git a/scenarios/event_list/python.mako b/scenarios/event_list/python.mako index 021b419..ef7e719 100644 --- a/scenarios/event_list/python.mako +++ b/scenarios/event_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Event().query +balanced.Event.query % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') events = balanced.Event.query -% endif \ No newline at end of file +% endif diff --git a/scenarios/event_show/definition.mako b/scenarios/event_show/definition.mako index 137a1dd..c0f29dd 100644 --- a/scenarios/event_show/definition.mako +++ b/scenarios/event_show/definition.mako @@ -1 +1 @@ -balanced.Event().find() \ No newline at end of file +balanced.Event.fetch() diff --git a/scenarios/event_show/python.mako b/scenarios/event_show/python.mako index 2d0555f..2d0383e 100644 --- a/scenarios/event_show/python.mako +++ b/scenarios/event_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Event().find() +balanced.Event.fetch() % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') event = balanced.Event.find('/events/EV610bd3fe788111e3b3e8026ba7cd33d0') -% endif \ No newline at end of file +% endif diff --git a/scenarios/order_list/definition.mako b/scenarios/order_list/definition.mako index 165046d..5121d41 100644 --- a/scenarios/order_list/definition.mako +++ b/scenarios/order_list/definition.mako @@ -1 +1 @@ -balanced.Order().query \ No newline at end of file +balanced.Order.query diff --git a/scenarios/order_list/python.mako b/scenarios/order_list/python.mako index 52e9353..39f8d24 100644 --- a/scenarios/order_list/python.mako +++ b/scenarios/order_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Order().query +balanced.Order.query % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') orders = balanced.Order.query -% endif \ No newline at end of file +% endif diff --git a/scenarios/order_show/definition.mako b/scenarios/order_show/definition.mako index 40f9694..cd568b8 100644 --- a/scenarios/order_show/definition.mako +++ b/scenarios/order_show/definition.mako @@ -1 +1 @@ -balanced.Order().find() \ No newline at end of file +balanced.Order.fetch() diff --git a/scenarios/order_show/python.mako b/scenarios/order_show/python.mako index 7159db7..456a8dc 100644 --- a/scenarios/order_show/python.mako +++ b/scenarios/order_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Order().find() +balanced.Order.fetch() % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') order = balanced.Order.find('/orders/OR47s8iZqDt662LdYa5My3oK') -% endif \ No newline at end of file +% endif diff --git a/scenarios/refund_list/definition.mako b/scenarios/refund_list/definition.mako index 0156deb..30e82b5 100644 --- a/scenarios/refund_list/definition.mako +++ b/scenarios/refund_list/definition.mako @@ -1 +1 @@ -balanced.Refund().query \ No newline at end of file +balanced.Refund.query diff --git a/scenarios/refund_list/python.mako b/scenarios/refund_list/python.mako index 533f5c3..e99534a 100644 --- a/scenarios/refund_list/python.mako +++ b/scenarios/refund_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Refund().query +balanced.Refund.query % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') refunds = balanced.Refund.query -% endif \ No newline at end of file +% endif diff --git a/scenarios/refund_show/definition.mako b/scenarios/refund_show/definition.mako index 1ac0bb2..bcf8615 100644 --- a/scenarios/refund_show/definition.mako +++ b/scenarios/refund_show/definition.mako @@ -1 +1 @@ -balanced.Refund().find() \ No newline at end of file +balanced.Refund.fetch() diff --git a/scenarios/refund_show/python.mako b/scenarios/refund_show/python.mako index a18ea0f..33903e8 100644 --- a/scenarios/refund_show/python.mako +++ b/scenarios/refund_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Refund().find() +balanced.Refund.fetch() % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') refund = balanced.Refund.find('/refunds/RF4eXqVaytz4vN4NwOAfFHXO') -% endif \ No newline at end of file +% endif diff --git a/scenarios/reversal_list/definition.mako b/scenarios/reversal_list/definition.mako index 2954300..afb3218 100644 --- a/scenarios/reversal_list/definition.mako +++ b/scenarios/reversal_list/definition.mako @@ -1 +1 @@ -balanced.Reversal().query() \ No newline at end of file +balanced.Reversal.query() diff --git a/scenarios/reversal_list/python.mako b/scenarios/reversal_list/python.mako index f0f0247..0b044d5 100644 --- a/scenarios/reversal_list/python.mako +++ b/scenarios/reversal_list/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Reversal().query() +balanced.Reversal.query() % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') reversals = balanced.Reversal.query -% endif \ No newline at end of file +% endif diff --git a/scenarios/reversal_show/definition.mako b/scenarios/reversal_show/definition.mako index b46d8dc..78df43c 100644 --- a/scenarios/reversal_show/definition.mako +++ b/scenarios/reversal_show/definition.mako @@ -1 +1 @@ -balanced.Reversal().find() \ No newline at end of file +balanced.Reversal.fetch() diff --git a/scenarios/reversal_show/python.mako b/scenarios/reversal_show/python.mako index 8ae46fd..6bdc4ce 100644 --- a/scenarios/reversal_show/python.mako +++ b/scenarios/reversal_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Reversal().find() +balanced.Reversal.fetch() % else: import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') refund = balanced.Reversal.find('/reversals/RV4mvdReJFZTySZXe8IyQ8Bi') -% endif \ No newline at end of file +% endif From 840f1e2a46bd328fb108f9755c456f5cf1028461 Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Tue, 14 Jan 2014 14:49:54 -0800 Subject: [PATCH 022/146] add a example showing how orders work --- balanced/resources.py | 7 +++-- examples/orders.py | 62 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 examples/orders.py diff --git a/balanced/resources.py b/balanced/resources.py index 7465421..a9d4d0e 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -197,8 +197,8 @@ def unstore(self): return self.delete() @classmethod - def fetch(cls, uri): - return cls.get(uri) + def fetch(cls, href): + return cls.get(href) class Marketplace(Resource): @@ -465,6 +465,9 @@ class Customer(Resource): uri_gen = wac.URIGen('/customers', '{customer}') + def create_order(self, **kwargs): + return Order(href=self.orders.href, **kwargs).save() + class Order(Resource): """ diff --git a/examples/orders.py b/examples/orders.py new file mode 100644 index 0000000..c558e3e --- /dev/null +++ b/examples/orders.py @@ -0,0 +1,62 @@ +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(merchant) + +# TODO: merchant.create_order(description=foo +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(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 From c94f1f8ab5b4ae9fb10afca8be3e00d05be6e6c1 Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Tue, 14 Jan 2014 14:56:24 -0800 Subject: [PATCH 023/146] add an example for orders, add a test to verify the behavior --- examples/orders.py | 1 - tests/test_suite.py | 54 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 1 deletion(-) diff --git a/examples/orders.py b/examples/orders.py index c558e3e..2d5e9b3 100644 --- a/examples/orders.py +++ b/examples/orders.py @@ -16,7 +16,6 @@ ).save() bank_account.associate_to(merchant) -# TODO: merchant.create_order(description=foo order = merchant.create_order(description='foo order') card = balanced.Card( diff --git a/tests/test_suite.py b/tests/test_suite.py index e5d033d..2595031 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -281,3 +281,57 @@ def test_fetch_resource(self): getattr(customer, prop), getattr(customer2, prop), ) + + def test_order(self): + merchant = balanced.Customer().save() + bank_account = balanced.BankAccount(**BANK_ACCOUNT).save() + bank_account.associate_to(merchant) + + order = merchant.create_order(description='foo order') + + card = balanced.Card(**INTERNATIONAL_CARD).save() + + # debit to increment escrow + card.debit(amount=1000) + + # 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 + self.assertEqual(order.amount_escrowed, 100) + + # pay out half + credit = bank_account.credit(amount=50, order=order) + + self.assertEqual(credit.order.href, order.href) + + order = balanced.Order.fetch(order.href) + + # half the money remains + self.assertEqual(order.amount_escrowed, 50) + + # not enough money in the order to pay out + with self.assertRaises(balanced.exc.BalancedError): + bank_account.credit(amount=150, order=order) + + def test_order_restrictions(self): + merchant = balanced.Customer().save() + + order = merchant.create_order(description='foo order') + + card = balanced.Card(**INTERNATIONAL_CARD).save() + + # debit the card and associate with the order. + card.debit(amount=100, order=order) + + another_bank_account = balanced.BankAccount( + account_number="1234567890", + routing_number="321174851", + name="Jack Q Merchant", + ).save() + + # not associated with the order + with self.assertRaises(balanced.exc.BalancedError): + another_bank_account.credit(amount=50, order=order) From 7d7bb3a9b244a993cf0591a5fd072fd8959f716e Mon Sep 17 00:00:00 2001 From: Richie Date: Mon, 20 Jan 2014 12:17:11 -0800 Subject: [PATCH 024/146] Add partial reversal scenario --- scenarios/reversal_create/executable.py | 10 +++++++++- scenarios/reversal_create/python.mako | 10 +++++++++- scenarios/reversal_create/request.mako | 10 +++++++++- 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/scenarios/reversal_create/executable.py b/scenarios/reversal_create/executable.py index 7a1de65..f8ead77 100644 --- a/scenarios/reversal_create/executable.py +++ b/scenarios/reversal_create/executable.py @@ -3,4 +3,12 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') credit = balanced.Credit.find('/credits/CR4lqO3NwBWdLYGvMAUeKt7g') -reversal = credit.reverse() \ No newline at end of file +reversal = credit.reverse( + amount = 3000, + 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 diff --git a/scenarios/reversal_create/python.mako b/scenarios/reversal_create/python.mako index ba00e45..ef48e7c 100644 --- a/scenarios/reversal_create/python.mako +++ b/scenarios/reversal_create/python.mako @@ -6,5 +6,13 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') credit = balanced.Credit.find('/credits/CR4lqO3NwBWdLYGvMAUeKt7g') -reversal = credit.reverse() +reversal = credit.reverse( + amount = 3000, + description = "Reversal for Order #1111", + meta = { + "merchant.feedback": "positive", + "user.refund_reason": "not happy with product", + "fulfillment.item.condition": "OK", + } +) % endif \ No newline at end of file diff --git a/scenarios/reversal_create/request.mako b/scenarios/reversal_create/request.mako index f3d9e13..36fa8e2 100644 --- a/scenarios/reversal_create/request.mako +++ b/scenarios/reversal_create/request.mako @@ -2,4 +2,12 @@ <% main.python_boilerplate() %> credit = balanced.Credit.find('${request['credit_href']}') -reversal = credit.reverse() \ No newline at end of file +reversal = credit.reverse( + amount = 3000, + 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 4b027c7a4485af8775ed3c068547c83f477e0811 Mon Sep 17 00:00:00 2001 From: Richie Date: Mon, 20 Jan 2014 12:44:56 -0800 Subject: [PATCH 025/146] Add partial refund scenario --- scenarios/refund_create/executable.py | 10 +++++++++- scenarios/refund_create/python.mako | 10 +++++++++- scenarios/refund_create/request.mako | 10 +++++++++- 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/scenarios/refund_create/executable.py b/scenarios/refund_create/executable.py index 228e3ad..ca55551 100644 --- a/scenarios/refund_create/executable.py +++ b/scenarios/refund_create/executable.py @@ -3,4 +3,12 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') debit = balanced.Debit.find('/debits/WD4d9CgVjg8lX8g8l1638Bor') -refund = debit.refund() \ No newline at end of file +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/scenarios/refund_create/python.mako b/scenarios/refund_create/python.mako index 9fb5d74..4a507a5 100644 --- a/scenarios/refund_create/python.mako +++ b/scenarios/refund_create/python.mako @@ -6,5 +6,13 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') debit = balanced.Debit.find('/debits/WD4d9CgVjg8lX8g8l1638Bor') -refund = debit.refund() +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", + } +) % endif \ No newline at end of file diff --git a/scenarios/refund_create/request.mako b/scenarios/refund_create/request.mako index 37476e9..44c53a4 100644 --- a/scenarios/refund_create/request.mako +++ b/scenarios/refund_create/request.mako @@ -2,4 +2,12 @@ <% main.python_boilerplate() %> debit = balanced.Debit.find('${request['debit_href']}') -refund = debit.refund() \ No newline at end of file +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 From 6e8f799db0d661fe6ce5ceaa390fe5aee49adc53 Mon Sep 17 00:00:00 2001 From: Richie Date: Mon, 20 Jan 2014 12:52:38 -0800 Subject: [PATCH 026/146] Fix formating --- scenarios/refund_create/request.mako | 2 +- scenarios/reversal_create/request.mako | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scenarios/refund_create/request.mako b/scenarios/refund_create/request.mako index 44c53a4..1cefa23 100644 --- a/scenarios/refund_create/request.mako +++ b/scenarios/refund_create/request.mako @@ -10,4 +10,4 @@ refund = debit.refund( "user.refund_reason": "not happy with product", "fulfillment.item.condition": "OK", } -) \ No newline at end of file +) diff --git a/scenarios/reversal_create/request.mako b/scenarios/reversal_create/request.mako index 36fa8e2..c5108a9 100644 --- a/scenarios/reversal_create/request.mako +++ b/scenarios/reversal_create/request.mako @@ -10,4 +10,4 @@ reversal = credit.reverse( "user.refund_reason": "not happy with product", "fulfillment.item.condition": "OK", } -) \ No newline at end of file +) From bd4035de5c4e29573249e4761eb64e42c694571b Mon Sep 17 00:00:00 2001 From: Richie Date: Mon, 20 Jan 2014 18:36:17 -0800 Subject: [PATCH 027/146] Format for pep8 --- scenarios/order_update/executable.py | 4 ++-- scenarios/order_update/python.mako | 4 ++-- scenarios/order_update/request.mako | 4 ++-- scenarios/refund_create/executable.py | 6 +++--- scenarios/refund_create/python.mako | 6 +++--- scenarios/refund_create/request.mako | 6 +++--- scenarios/reversal_create/executable.py | 6 +++--- scenarios/reversal_create/python.mako | 6 +++--- scenarios/reversal_create/request.mako | 6 +++--- 9 files changed, 24 insertions(+), 24 deletions(-) diff --git a/scenarios/order_update/executable.py b/scenarios/order_update/executable.py index 7675d9e..610399d 100644 --- a/scenarios/order_update/executable.py +++ b/scenarios/order_update/executable.py @@ -5,7 +5,7 @@ order = balanced.Order.find('/orders/OR47s8iZqDt662LdYa5My3oK') order.description = 'New description for order' order.meta = { - 'anykey' => 'valuegoeshere', - 'product.id' => '1234567890' + 'anykey': 'valuegoeshere', + 'product.id': '1234567890' } order.save() \ No newline at end of file diff --git a/scenarios/order_update/python.mako b/scenarios/order_update/python.mako index 380f21a..8b0d643 100644 --- a/scenarios/order_update/python.mako +++ b/scenarios/order_update/python.mako @@ -8,8 +8,8 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') order = balanced.Order.find('/orders/OR47s8iZqDt662LdYa5My3oK') order.description = 'New description for order' order.meta = { - 'anykey' => 'valuegoeshere', - 'product.id' => '1234567890' + 'anykey': 'valuegoeshere', + 'product.id': '1234567890' } order.save() % endif \ No newline at end of file diff --git a/scenarios/order_update/request.mako b/scenarios/order_update/request.mako index 0852728..d6a4ec8 100644 --- a/scenarios/order_update/request.mako +++ b/scenarios/order_update/request.mako @@ -4,7 +4,7 @@ order = balanced.Order.find('${request['uri']}') order.description = '${request['payload']['description']}' order.meta = { - 'anykey' => 'valuegoeshere', - 'product.id' => '1234567890' + 'anykey': 'valuegoeshere', + 'product.id': '1234567890' } order.save() \ No newline at end of file diff --git a/scenarios/refund_create/executable.py b/scenarios/refund_create/executable.py index ca55551..d179a0c 100644 --- a/scenarios/refund_create/executable.py +++ b/scenarios/refund_create/executable.py @@ -4,9 +4,9 @@ debit = balanced.Debit.find('/debits/WD4d9CgVjg8lX8g8l1638Bor') refund = debit.refund( - amount = 3000, - description = "Refund for Order #1111", - meta = { + amount=3000, + description="Refund for Order #1111", + meta={ "merchant.feedback": "positive", "user.refund_reason": "not happy with product", "fulfillment.item.condition": "OK", diff --git a/scenarios/refund_create/python.mako b/scenarios/refund_create/python.mako index 4a507a5..74a7624 100644 --- a/scenarios/refund_create/python.mako +++ b/scenarios/refund_create/python.mako @@ -7,9 +7,9 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') debit = balanced.Debit.find('/debits/WD4d9CgVjg8lX8g8l1638Bor') refund = debit.refund( - amount = 3000, - description = "Refund for Order #1111", - meta = { + amount=3000, + description="Refund for Order #1111", + meta={ "merchant.feedback": "positive", "user.refund_reason": "not happy with product", "fulfillment.item.condition": "OK", diff --git a/scenarios/refund_create/request.mako b/scenarios/refund_create/request.mako index 1cefa23..d7aa643 100644 --- a/scenarios/refund_create/request.mako +++ b/scenarios/refund_create/request.mako @@ -3,9 +3,9 @@ debit = balanced.Debit.find('${request['debit_href']}') refund = debit.refund( - amount = 3000, - description = "Refund for Order #1111", - meta = { + amount=3000, + description="Refund for Order #1111", + meta={ "merchant.feedback": "positive", "user.refund_reason": "not happy with product", "fulfillment.item.condition": "OK", diff --git a/scenarios/reversal_create/executable.py b/scenarios/reversal_create/executable.py index f8ead77..42326c4 100644 --- a/scenarios/reversal_create/executable.py +++ b/scenarios/reversal_create/executable.py @@ -4,9 +4,9 @@ credit = balanced.Credit.find('/credits/CR4lqO3NwBWdLYGvMAUeKt7g') reversal = credit.reverse( - amount = 3000, - description = "Reversal for Order #1111", - meta = { + amount=3000, + description="Reversal for Order #1111", + meta={ "merchant.feedback": "positive", "user.refund_reason": "not happy with product", "fulfillment.item.condition": "OK", diff --git a/scenarios/reversal_create/python.mako b/scenarios/reversal_create/python.mako index ef48e7c..6407884 100644 --- a/scenarios/reversal_create/python.mako +++ b/scenarios/reversal_create/python.mako @@ -7,9 +7,9 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') credit = balanced.Credit.find('/credits/CR4lqO3NwBWdLYGvMAUeKt7g') reversal = credit.reverse( - amount = 3000, - description = "Reversal for Order #1111", - meta = { + amount=3000, + description="Reversal for Order #1111", + meta={ "merchant.feedback": "positive", "user.refund_reason": "not happy with product", "fulfillment.item.condition": "OK", diff --git a/scenarios/reversal_create/request.mako b/scenarios/reversal_create/request.mako index c5108a9..152acc0 100644 --- a/scenarios/reversal_create/request.mako +++ b/scenarios/reversal_create/request.mako @@ -3,9 +3,9 @@ credit = balanced.Credit.find('${request['credit_href']}') reversal = credit.reverse( - amount = 3000, - description = "Reversal for Order #1111", - meta = { + amount=3000, + description="Reversal for Order #1111", + meta={ "merchant.feedback": "positive", "user.refund_reason": "not happy with product", "fulfillment.item.condition": "OK", From d4dc9bb52dafd1c23c83cc3e8e6cc8b6adbc95f6 Mon Sep 17 00:00:00 2001 From: Richie Date: Mon, 20 Jan 2014 19:00:22 -0800 Subject: [PATCH 028/146] Update customer_create --- scenarios/customer_create/executable.py | 10 ++++++---- scenarios/customer_create/python.mako | 10 ++++++---- scenarios/customer_create/request.mako | 7 ++++++- 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/scenarios/customer_create/executable.py b/scenarios/customer_create/executable.py index 0093238..e269fdb 100644 --- a/scenarios/customer_create/executable.py +++ b/scenarios/customer_create/executable.py @@ -3,8 +3,10 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') customer = balanced.Customer( - dob_year=1963, - dob_month=7, - name='Henry Ford', - address[postal_code]='48120', + dob_year=1963, + dob_month=7, + name='Henry Ford', + address={ + 'postal_code': '48120' + } ).save() \ No newline at end of file diff --git a/scenarios/customer_create/python.mako b/scenarios/customer_create/python.mako index 047f545..8465750 100644 --- a/scenarios/customer_create/python.mako +++ b/scenarios/customer_create/python.mako @@ -6,9 +6,11 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') customer = balanced.Customer( - dob_year=1963, - dob_month=7, - name='Henry Ford', - address[postal_code]='48120', + dob_year=1963, + dob_month=7, + name='Henry Ford', + address={ + 'postal_code': '48120' + } ).save() % endif \ No newline at end of file diff --git a/scenarios/customer_create/request.mako b/scenarios/customer_create/request.mako index f31310c..b480892 100644 --- a/scenarios/customer_create/request.mako +++ b/scenarios/customer_create/request.mako @@ -2,5 +2,10 @@ <% main.python_boilerplate() %> customer = balanced.Customer( - <% main.payload_expand(request['payload']) %> + dob_year=1963, + dob_month=7, + name='Henry Ford', + address={ + 'postal_code': '48120' + } ).save() \ No newline at end of file From 48271ce2c9d2802df57b56697748036b4ef39985 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Mon, 20 Jan 2014 20:54:17 -0700 Subject: [PATCH 029/146] Add request mode to scenarios --- render_scenarios.py | 8 ++++---- scenarios/_mj/_template/_create/python.mako | 2 +- scenarios/_mj/_template/_delete/python.mako | 2 +- scenarios/_mj/_template/_list/python.mako | 2 +- scenarios/_mj/_template/_retrieve/python.mako | 2 +- scenarios/_mj/_template/_update/python.mako | 2 +- scenarios/_mj/api_key_create/python.mako | 2 +- scenarios/api_key_create/python.mako | 2 +- scenarios/api_key_delete/python.mako | 2 +- scenarios/api_key_list/python.mako | 5 +++-- scenarios/api_key_show/python.mako | 5 +++-- scenarios/bank_account_associate_to_customer/python.mako | 2 +- scenarios/bank_account_create/python.mako | 2 +- scenarios/bank_account_credit/python.mako | 2 +- scenarios/bank_account_debit/python.mako | 2 +- scenarios/bank_account_delete/python.mako | 2 +- scenarios/bank_account_list/python.mako | 5 +++-- scenarios/bank_account_show/python.mako | 5 +++-- scenarios/bank_account_update/python.mako | 2 +- scenarios/bank_account_verification_create/python.mako | 2 +- scenarios/bank_account_verification_show/python.mako | 5 +++-- scenarios/bank_account_verification_update/python.mako | 2 +- scenarios/callback_create/python.mako | 2 +- scenarios/callback_delete/python.mako | 2 +- scenarios/callback_list/python.mako | 5 +++-- scenarios/callback_show/python.mako | 5 +++-- scenarios/card_associate_to_customer/python.mako | 2 +- scenarios/card_create/python.mako | 2 +- scenarios/card_debit/python.mako | 2 +- scenarios/card_delete/python.mako | 2 +- scenarios/card_hold_capture/python.mako | 2 +- scenarios/card_hold_create/python.mako | 2 +- scenarios/card_hold_list/python.mako | 5 +++-- scenarios/card_hold_show/python.mako | 5 +++-- scenarios/card_hold_update/python.mako | 2 +- scenarios/card_hold_void/python.mako | 2 +- scenarios/card_list/python.mako | 5 +++-- scenarios/card_show/executable.py | 2 +- scenarios/card_show/python.mako | 6 +++--- scenarios/card_update/python.mako | 2 +- scenarios/credit_list/python.mako | 5 +++-- scenarios/credit_list_bank_account/python.mako | 2 +- scenarios/credit_show/python.mako | 5 +++-- scenarios/credit_update/python.mako | 2 +- scenarios/customer_create/python.mako | 2 +- scenarios/customer_delete/python.mako | 2 +- scenarios/customer_list/python.mako | 5 +++-- scenarios/customer_show/python.mako | 5 +++-- scenarios/customer_update/python.mako | 2 +- scenarios/debit_list/python.mako | 5 +++-- scenarios/debit_show/python.mako | 5 +++-- scenarios/debit_update/python.mako | 2 +- scenarios/event_list/python.mako | 5 +++-- scenarios/event_show/python.mako | 5 +++-- scenarios/order_create/python.mako | 2 +- scenarios/order_list/python.mako | 5 +++-- scenarios/order_show/python.mako | 5 +++-- scenarios/order_update/python.mako | 2 +- scenarios/refund_create/python.mako | 2 +- scenarios/refund_list/python.mako | 5 +++-- scenarios/refund_show/python.mako | 5 +++-- scenarios/refund_update/python.mako | 2 +- scenarios/reversal_create/python.mako | 2 +- scenarios/reversal_list/python.mako | 5 +++-- scenarios/reversal_show/python.mako | 5 +++-- scenarios/reversal_update/python.mako | 2 +- 66 files changed, 119 insertions(+), 95 deletions(-) diff --git a/render_scenarios.py b/render_scenarios.py index b41aa79..1393b68 100644 --- a/render_scenarios.py +++ b/render_scenarios.py @@ -29,10 +29,10 @@ def render_mako(): for path in glob2.glob('./scenarios/**/request.mako'): dir = os.path.dirname(path) with open(os.path.join(dir, 'python.mako'), 'w+b') as wfile: - top = open(os.path.join(dir, 'definition.mako'),'r').read() - bottom = open(os.path.join(dir, 'executable.py'),'r').read() - body = "% if mode == 'definition':\n{}".format(top) + "\n% " \ - "else:\n" + bottom + "\n% endif" + definition = open(os.path.join(dir, 'definition.mako'),'r').read() + request = open(os.path.join(dir, 'executable.py'),'r').read() + body = "% if mode == 'definition':\n{}".format(definition) + "\n" \ + "% elif mode == 'request':\n" + request + "\n% endif" wfile.write(body) def issue_no_mako_warnings(): diff --git a/scenarios/_mj/_template/_create/python.mako b/scenarios/_mj/_template/_create/python.mako index b6d35ef..c88d7bf 100644 --- a/scenarios/_mj/_template/_create/python.mako +++ b/scenarios/_mj/_template/_create/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.RESOURCE -% else: +% elif mode == 'request': % endif \ No newline at end of file diff --git a/scenarios/_mj/_template/_delete/python.mako b/scenarios/_mj/_template/_delete/python.mako index b3d0a94..d1dbb85 100644 --- a/scenarios/_mj/_template/_delete/python.mako +++ b/scenarios/_mj/_template/_delete/python.mako @@ -1,5 +1,5 @@ % if mode == 'definition': -% else: +% elif mode == 'request': % endif \ No newline at end of file diff --git a/scenarios/_mj/_template/_list/python.mako b/scenarios/_mj/_template/_list/python.mako index b3d0a94..d1dbb85 100644 --- a/scenarios/_mj/_template/_list/python.mako +++ b/scenarios/_mj/_template/_list/python.mako @@ -1,5 +1,5 @@ % if mode == 'definition': -% else: +% elif mode == 'request': % endif \ No newline at end of file diff --git a/scenarios/_mj/_template/_retrieve/python.mako b/scenarios/_mj/_template/_retrieve/python.mako index b3d0a94..d1dbb85 100644 --- a/scenarios/_mj/_template/_retrieve/python.mako +++ b/scenarios/_mj/_template/_retrieve/python.mako @@ -1,5 +1,5 @@ % if mode == 'definition': -% else: +% elif mode == 'request': % endif \ No newline at end of file diff --git a/scenarios/_mj/_template/_update/python.mako b/scenarios/_mj/_template/_update/python.mako index b3d0a94..d1dbb85 100644 --- a/scenarios/_mj/_template/_update/python.mako +++ b/scenarios/_mj/_template/_update/python.mako @@ -1,5 +1,5 @@ % if mode == 'definition': -% else: +% elif mode == 'request': % endif \ 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 db4e51c..7e3578c 100644 --- a/scenarios/_mj/api_key_create/python.mako +++ b/scenarios/_mj/api_key_create/python.mako @@ -1,7 +1,7 @@ % if mode == 'definition': balanced.APIKey -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/api_key_create/python.mako b/scenarios/api_key_create/python.mako index b984609..030b86b 100644 --- a/scenarios/api_key_create/python.mako +++ b/scenarios/api_key_create/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.APIKey() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/api_key_delete/python.mako b/scenarios/api_key_delete/python.mako index 2392564..74fe7a9 100644 --- a/scenarios/api_key_delete/python.mako +++ b/scenarios/api_key_delete/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.APIKey().delete() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/api_key_list/python.mako b/scenarios/api_key_list/python.mako index 51ee921..bb8a0e5 100644 --- a/scenarios/api_key_list/python.mako +++ b/scenarios/api_key_list/python.mako @@ -1,9 +1,10 @@ % if mode == 'definition': balanced.APIKey.query -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') keys = balanced.APIKey.query -% endif +% endif \ No newline at end of file diff --git a/scenarios/api_key_show/python.mako b/scenarios/api_key_show/python.mako index d0b0db9..52d6d95 100644 --- a/scenarios/api_key_show/python.mako +++ b/scenarios/api_key_show/python.mako @@ -1,9 +1,10 @@ % if mode == 'definition': balanced.APIKey.fetch() -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') key = balanced.APIKey.find('/api_keys/AK2MIAdNHBolYbbacv2OSosg') -% endif +% endif \ 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 7fc8abd..a1d80bc 100644 --- a/scenarios/bank_account_associate_to_customer/python.mako +++ b/scenarios/bank_account_associate_to_customer/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.Card().associate_to() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/bank_account_create/python.mako b/scenarios/bank_account_create/python.mako index 40388ca..6124dbd 100644 --- a/scenarios/bank_account_create/python.mako +++ b/scenarios/bank_account_create/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.BankAccount().save() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/bank_account_credit/python.mako b/scenarios/bank_account_credit/python.mako index 3954f99..dfe829a 100644 --- a/scenarios/bank_account_credit/python.mako +++ b/scenarios/bank_account_credit/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.BankAccount().credit() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/bank_account_debit/python.mako b/scenarios/bank_account_debit/python.mako index 39517c4..fe3cae7 100644 --- a/scenarios/bank_account_debit/python.mako +++ b/scenarios/bank_account_debit/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.BankAccount().debit() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/bank_account_delete/python.mako b/scenarios/bank_account_delete/python.mako index 6cf16f3..59c917c 100644 --- a/scenarios/bank_account_delete/python.mako +++ b/scenarios/bank_account_delete/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.BankAccount().delete() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/bank_account_list/python.mako b/scenarios/bank_account_list/python.mako index f8e37c2..a989654 100644 --- a/scenarios/bank_account_list/python.mako +++ b/scenarios/bank_account_list/python.mako @@ -1,9 +1,10 @@ % if mode == 'definition': balanced.BankAccount.query -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') bank_accounts = balanced.BankAccount.query -% endif +% endif \ No newline at end of file diff --git a/scenarios/bank_account_show/python.mako b/scenarios/bank_account_show/python.mako index c07f110..c1f011c 100644 --- a/scenarios/bank_account_show/python.mako +++ b/scenarios/bank_account_show/python.mako @@ -1,9 +1,10 @@ % if mode == 'definition': balanced.BankAccount.fetch() -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') bank_account = balanced.BankAccount.find('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') -% endif +% endif \ No newline at end of file diff --git a/scenarios/bank_account_update/python.mako b/scenarios/bank_account_update/python.mako index 5c8dce3..4c7b2a8 100644 --- a/scenarios/bank_account_update/python.mako +++ b/scenarios/bank_account_update/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.BankAccount().debit() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/bank_account_verification_create/python.mako b/scenarios/bank_account_verification_create/python.mako index d1e4264..1a6eaf5 100644 --- a/scenarios/bank_account_verification_create/python.mako +++ b/scenarios/bank_account_verification_create/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.BankAccountVerification().save() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/bank_account_verification_show/python.mako b/scenarios/bank_account_verification_show/python.mako index 4cb56b3..f358482 100644 --- a/scenarios/bank_account_verification_show/python.mako +++ b/scenarios/bank_account_verification_show/python.mako @@ -1,8 +1,9 @@ % if mode == 'definition': balanced.BankAccountVerification.fetch() -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') verification = balanced.BankAccountVerification.find('/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG') -% endif +% endif \ 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 25b4fce..dc51c1c 100644 --- a/scenarios/bank_account_verification_update/python.mako +++ b/scenarios/bank_account_verification_update/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.BankAccountVerification().save() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/callback_create/python.mako b/scenarios/callback_create/python.mako index 08027a1..ea1284f 100644 --- a/scenarios/callback_create/python.mako +++ b/scenarios/callback_create/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.Callback() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/callback_delete/python.mako b/scenarios/callback_delete/python.mako index 4c6e8a0..66078d8 100644 --- a/scenarios/callback_delete/python.mako +++ b/scenarios/callback_delete/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.Callback().unstore() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/callback_list/python.mako b/scenarios/callback_list/python.mako index d60a65b..2d93335 100644 --- a/scenarios/callback_list/python.mako +++ b/scenarios/callback_list/python.mako @@ -1,9 +1,10 @@ % if mode == 'definition': balanced.Callback.query -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') callbacks = balanced.Callback.query -% endif +% endif \ No newline at end of file diff --git a/scenarios/callback_show/python.mako b/scenarios/callback_show/python.mako index e76c904..78bda0f 100644 --- a/scenarios/callback_show/python.mako +++ b/scenarios/callback_show/python.mako @@ -1,9 +1,10 @@ % if mode == 'definition': balanced.Callback.fetch() -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') callback = balanced.Callback.find('/callbacks/CB37kedWD88LFkipaugpfZ9w') -% endif +% endif \ 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 ac4c9cd..39ce8f0 100644 --- a/scenarios/card_associate_to_customer/python.mako +++ b/scenarios/card_associate_to_customer/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.Card().associate_to() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/card_create/python.mako b/scenarios/card_create/python.mako index 3fdd1bf..e56cf75 100644 --- a/scenarios/card_create/python.mako +++ b/scenarios/card_create/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.Card().save() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/card_debit/python.mako b/scenarios/card_debit/python.mako index 28ad2f8..1b0568d 100644 --- a/scenarios/card_debit/python.mako +++ b/scenarios/card_debit/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.Card().debit() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/card_delete/python.mako b/scenarios/card_delete/python.mako index f17a634..e14bb7a 100644 --- a/scenarios/card_delete/python.mako +++ b/scenarios/card_delete/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.Card().unstore() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/card_hold_capture/python.mako b/scenarios/card_hold_capture/python.mako index 2f49067..a413c48 100644 --- a/scenarios/card_hold_capture/python.mako +++ b/scenarios/card_hold_capture/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.CardHold().capture() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/card_hold_create/python.mako b/scenarios/card_hold_create/python.mako index f08ad0e..1f08059 100644 --- a/scenarios/card_hold_create/python.mako +++ b/scenarios/card_hold_create/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.Card().hold() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/card_hold_list/python.mako b/scenarios/card_hold_list/python.mako index e646ba5..6095a9a 100644 --- a/scenarios/card_hold_list/python.mako +++ b/scenarios/card_hold_list/python.mako @@ -1,9 +1,10 @@ % if mode == 'definition': balanced.CardHold.query -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') card_holds = balanced.CardHold.query -% endif +% endif \ No newline at end of file diff --git a/scenarios/card_hold_show/python.mako b/scenarios/card_hold_show/python.mako index a4f3389..d4fa7ba 100644 --- a/scenarios/card_hold_show/python.mako +++ b/scenarios/card_hold_show/python.mako @@ -1,9 +1,10 @@ % if mode == 'definition': balanced.CardHold.fetch() -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') card_hold = balanced.CardHold.find('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') -% endif +% endif \ No newline at end of file diff --git a/scenarios/card_hold_update/python.mako b/scenarios/card_hold_update/python.mako index 5a00c3d..8f3f25c 100644 --- a/scenarios/card_hold_update/python.mako +++ b/scenarios/card_hold_update/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.CardHold().save() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/card_hold_void/python.mako b/scenarios/card_hold_void/python.mako index 4995953..5cef7f9 100644 --- a/scenarios/card_hold_void/python.mako +++ b/scenarios/card_hold_void/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.CardHold().cancel() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/card_list/python.mako b/scenarios/card_list/python.mako index acc6533..53f04d9 100644 --- a/scenarios/card_list/python.mako +++ b/scenarios/card_list/python.mako @@ -1,9 +1,10 @@ % if mode == 'definition': balanced.Card.query -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') cards = balanced.Card.query -% endif +% endif \ No newline at end of file diff --git a/scenarios/card_show/executable.py b/scenarios/card_show/executable.py index c030515..59ccc4b 100644 --- a/scenarios/card_show/executable.py +++ b/scenarios/card_show/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') +card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') \ No newline at end of file diff --git a/scenarios/card_show/python.mako b/scenarios/card_show/python.mako index 5aa978c..bb39d83 100644 --- a/scenarios/card_show/python.mako +++ b/scenarios/card_show/python.mako @@ -1,9 +1,9 @@ % if mode == 'definition': -balanced.Card.get() -% else: +balanced.Card.fetch() +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') -% endif +% endif \ No newline at end of file diff --git a/scenarios/card_update/python.mako b/scenarios/card_update/python.mako index 8d016af..3a8e5e4 100644 --- a/scenarios/card_update/python.mako +++ b/scenarios/card_update/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.Card().save() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/credit_list/python.mako b/scenarios/credit_list/python.mako index a2252c9..ec4f4a3 100644 --- a/scenarios/credit_list/python.mako +++ b/scenarios/credit_list/python.mako @@ -1,9 +1,10 @@ % if mode == 'definition': balanced.Credit.query -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') credits = balanced.Credit.query -% endif +% endif \ 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 cb9d4c2..45abcd3 100644 --- a/scenarios/credit_list_bank_account/python.mako +++ b/scenarios/credit_list_bank_account/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.BankAccount().credits -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/credit_show/python.mako b/scenarios/credit_show/python.mako index 68ea1d0..518401e 100644 --- a/scenarios/credit_show/python.mako +++ b/scenarios/credit_show/python.mako @@ -1,9 +1,10 @@ % if mode == 'definition': balanced.Credit.fetch() -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') credit = balanced.Credit.find('/credits/CR3DLTIjMve5idvjBrXNKBHE') -% endif +% endif \ No newline at end of file diff --git a/scenarios/credit_update/python.mako b/scenarios/credit_update/python.mako index 39eec34..ce8561c 100644 --- a/scenarios/credit_update/python.mako +++ b/scenarios/credit_update/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.Credit().save() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/customer_create/python.mako b/scenarios/customer_create/python.mako index 8465750..6e5fc68 100644 --- a/scenarios/customer_create/python.mako +++ b/scenarios/customer_create/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.Customer().save() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/customer_delete/python.mako b/scenarios/customer_delete/python.mako index 7ddb949..de68c86 100644 --- a/scenarios/customer_delete/python.mako +++ b/scenarios/customer_delete/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.Customer().unstore() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/customer_list/python.mako b/scenarios/customer_list/python.mako index fb32680..95cefa8 100644 --- a/scenarios/customer_list/python.mako +++ b/scenarios/customer_list/python.mako @@ -1,9 +1,10 @@ % if mode == 'definition': balanced.Customer.query -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') customers = balanced.Customer.query -% endif +% endif \ No newline at end of file diff --git a/scenarios/customer_show/python.mako b/scenarios/customer_show/python.mako index 2ed8284..3427d6f 100644 --- a/scenarios/customer_show/python.mako +++ b/scenarios/customer_show/python.mako @@ -1,9 +1,10 @@ % if mode == 'definition': balanced.Customer.fetch() -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') customer = balanced.Customer.find('/customers/CU3LNFIXs33DopZuksrfp0KY') -% endif +% endif \ No newline at end of file diff --git a/scenarios/customer_update/python.mako b/scenarios/customer_update/python.mako index 39de815..448a1e6 100644 --- a/scenarios/customer_update/python.mako +++ b/scenarios/customer_update/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.Customer().save() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/debit_list/python.mako b/scenarios/debit_list/python.mako index 312c599..56f794c 100644 --- a/scenarios/debit_list/python.mako +++ b/scenarios/debit_list/python.mako @@ -1,9 +1,10 @@ % if mode == 'definition': balanced.Debit.query -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') debits = balanced.Debit.query -% endif +% endif \ No newline at end of file diff --git a/scenarios/debit_show/python.mako b/scenarios/debit_show/python.mako index c283123..9d02364 100644 --- a/scenarios/debit_show/python.mako +++ b/scenarios/debit_show/python.mako @@ -1,9 +1,10 @@ % if mode == 'definition': balanced.Debit.fetch() -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') debit = balanced.Debit.find('/debits/WD3xghyI3uMTgjRP5aJugoQy') -% endif +% endif \ No newline at end of file diff --git a/scenarios/debit_update/python.mako b/scenarios/debit_update/python.mako index 20a6e04..b83888f 100644 --- a/scenarios/debit_update/python.mako +++ b/scenarios/debit_update/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.Debit().save() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/event_list/python.mako b/scenarios/event_list/python.mako index ef7e719..7ed8010 100644 --- a/scenarios/event_list/python.mako +++ b/scenarios/event_list/python.mako @@ -1,9 +1,10 @@ % if mode == 'definition': balanced.Event.query -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') events = balanced.Event.query -% endif +% endif \ No newline at end of file diff --git a/scenarios/event_show/python.mako b/scenarios/event_show/python.mako index 2d0383e..ec5a23a 100644 --- a/scenarios/event_show/python.mako +++ b/scenarios/event_show/python.mako @@ -1,9 +1,10 @@ % if mode == 'definition': balanced.Event.fetch() -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') event = balanced.Event.find('/events/EV610bd3fe788111e3b3e8026ba7cd33d0') -% endif +% endif \ No newline at end of file diff --git a/scenarios/order_create/python.mako b/scenarios/order_create/python.mako index 4096bf2..85a34cf 100644 --- a/scenarios/order_create/python.mako +++ b/scenarios/order_create/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.Order() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/order_list/python.mako b/scenarios/order_list/python.mako index 39f8d24..13978a4 100644 --- a/scenarios/order_list/python.mako +++ b/scenarios/order_list/python.mako @@ -1,9 +1,10 @@ % if mode == 'definition': balanced.Order.query -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') orders = balanced.Order.query -% endif +% endif \ No newline at end of file diff --git a/scenarios/order_show/python.mako b/scenarios/order_show/python.mako index 456a8dc..7fb009c 100644 --- a/scenarios/order_show/python.mako +++ b/scenarios/order_show/python.mako @@ -1,9 +1,10 @@ % if mode == 'definition': balanced.Order.fetch() -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') order = balanced.Order.find('/orders/OR47s8iZqDt662LdYa5My3oK') -% endif +% endif \ No newline at end of file diff --git a/scenarios/order_update/python.mako b/scenarios/order_update/python.mako index 8b0d643..1e45b1f 100644 --- a/scenarios/order_update/python.mako +++ b/scenarios/order_update/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.Order().save() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/refund_create/python.mako b/scenarios/refund_create/python.mako index 74a7624..d57bc34 100644 --- a/scenarios/refund_create/python.mako +++ b/scenarios/refund_create/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.Debit().refund() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/refund_list/python.mako b/scenarios/refund_list/python.mako index e99534a..b410c2c 100644 --- a/scenarios/refund_list/python.mako +++ b/scenarios/refund_list/python.mako @@ -1,9 +1,10 @@ % if mode == 'definition': balanced.Refund.query -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') refunds = balanced.Refund.query -% endif +% endif \ No newline at end of file diff --git a/scenarios/refund_show/python.mako b/scenarios/refund_show/python.mako index 33903e8..b385251 100644 --- a/scenarios/refund_show/python.mako +++ b/scenarios/refund_show/python.mako @@ -1,9 +1,10 @@ % if mode == 'definition': balanced.Refund.fetch() -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') refund = balanced.Refund.find('/refunds/RF4eXqVaytz4vN4NwOAfFHXO') -% endif +% endif \ No newline at end of file diff --git a/scenarios/refund_update/python.mako b/scenarios/refund_update/python.mako index 6a7c8dd..f7067bc 100644 --- a/scenarios/refund_update/python.mako +++ b/scenarios/refund_update/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.Refund().save() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/reversal_create/python.mako b/scenarios/reversal_create/python.mako index 6407884..7dcbcb9 100644 --- a/scenarios/reversal_create/python.mako +++ b/scenarios/reversal_create/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.Credit().reverse() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') diff --git a/scenarios/reversal_list/python.mako b/scenarios/reversal_list/python.mako index 0b044d5..7907444 100644 --- a/scenarios/reversal_list/python.mako +++ b/scenarios/reversal_list/python.mako @@ -1,9 +1,10 @@ % if mode == 'definition': balanced.Reversal.query() -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') reversals = balanced.Reversal.query -% endif +% endif \ No newline at end of file diff --git a/scenarios/reversal_show/python.mako b/scenarios/reversal_show/python.mako index 6bdc4ce..b56c96b 100644 --- a/scenarios/reversal_show/python.mako +++ b/scenarios/reversal_show/python.mako @@ -1,9 +1,10 @@ % if mode == 'definition': balanced.Reversal.fetch() -% else: + +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') refund = balanced.Reversal.find('/reversals/RV4mvdReJFZTySZXe8IyQ8Bi') -% endif +% endif \ No newline at end of file diff --git a/scenarios/reversal_update/python.mako b/scenarios/reversal_update/python.mako index ef87165..8734fe2 100644 --- a/scenarios/reversal_update/python.mako +++ b/scenarios/reversal_update/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': balanced.Reversal().save() -% else: +% elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') From 941468ad0efb15c746cd87bb9652444109aa3dda Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Mon, 20 Jan 2014 21:37:16 -0700 Subject: [PATCH 030/146] fetch --- scenarios/api_key_delete/executable.py | 2 +- scenarios/api_key_delete/python.mako | 2 +- scenarios/api_key_delete/request.mako | 2 +- scenarios/api_key_show/executable.py | 2 +- scenarios/api_key_show/python.mako | 2 +- scenarios/api_key_show/request.mako | 2 +- scenarios/bank_account_associate_to_customer/executable.py | 2 +- scenarios/bank_account_associate_to_customer/python.mako | 2 +- scenarios/bank_account_associate_to_customer/request.mako | 2 +- scenarios/bank_account_credit/executable.py | 2 +- scenarios/bank_account_credit/python.mako | 2 +- scenarios/bank_account_credit/request.mako | 2 +- scenarios/bank_account_debit/executable.py | 2 +- scenarios/bank_account_debit/python.mako | 2 +- scenarios/bank_account_debit/request.mako | 2 +- scenarios/bank_account_delete/executable.py | 2 +- scenarios/bank_account_delete/python.mako | 2 +- scenarios/bank_account_delete/request.mako | 2 +- scenarios/bank_account_show/executable.py | 2 +- scenarios/bank_account_show/python.mako | 2 +- scenarios/bank_account_show/request.mako | 2 +- scenarios/bank_account_update/executable.py | 2 +- scenarios/bank_account_update/python.mako | 2 +- scenarios/bank_account_update/request.mako | 2 +- scenarios/bank_account_verification_create/executable.py | 2 +- scenarios/bank_account_verification_create/python.mako | 2 +- scenarios/bank_account_verification_create/request.mako | 2 +- scenarios/bank_account_verification_show/executable.py | 2 +- scenarios/bank_account_verification_show/python.mako | 2 +- scenarios/bank_account_verification_show/request.mako | 2 +- scenarios/bank_account_verification_update/executable.py | 2 +- scenarios/bank_account_verification_update/python.mako | 2 +- scenarios/bank_account_verification_update/request.mako | 2 +- scenarios/callback_delete/executable.py | 2 +- scenarios/callback_delete/python.mako | 2 +- scenarios/callback_delete/request.mako | 2 +- scenarios/callback_show/executable.py | 2 +- scenarios/callback_show/python.mako | 2 +- scenarios/callback_show/request.mako | 2 +- scenarios/card_associate_to_customer/executable.py | 2 +- scenarios/card_associate_to_customer/python.mako | 2 +- scenarios/card_associate_to_customer/request.mako | 2 +- scenarios/card_debit/executable.py | 2 +- scenarios/card_debit/python.mako | 2 +- scenarios/card_debit/request.mako | 2 +- scenarios/card_delete/executable.py | 2 +- scenarios/card_delete/python.mako | 2 +- scenarios/card_delete/request.mako | 2 +- scenarios/card_hold_capture/executable.py | 2 +- scenarios/card_hold_capture/python.mako | 2 +- scenarios/card_hold_capture/request.mako | 2 +- scenarios/card_hold_create/executable.py | 2 +- scenarios/card_hold_create/python.mako | 2 +- scenarios/card_hold_create/request.mako | 2 +- scenarios/card_hold_show/executable.py | 2 +- scenarios/card_hold_show/python.mako | 2 +- scenarios/card_hold_show/request.mako | 2 +- scenarios/card_hold_update/executable.py | 2 +- scenarios/card_hold_update/python.mako | 2 +- scenarios/card_hold_update/request.mako | 2 +- scenarios/card_hold_void/executable.py | 2 +- scenarios/card_hold_void/python.mako | 2 +- scenarios/card_hold_void/request.mako | 2 +- scenarios/card_update/executable.py | 2 +- scenarios/card_update/python.mako | 2 +- scenarios/card_update/request.mako | 2 +- scenarios/credit_list_bank_account/executable.py | 2 +- scenarios/credit_list_bank_account/python.mako | 2 +- scenarios/credit_list_bank_account/request.mako | 2 +- scenarios/credit_show/executable.py | 2 +- scenarios/credit_show/python.mako | 2 +- scenarios/credit_show/request.mako | 2 +- scenarios/credit_update/executable.py | 2 +- scenarios/credit_update/python.mako | 2 +- scenarios/credit_update/request.mako | 2 +- scenarios/customer_delete/executable.py | 2 +- scenarios/customer_delete/python.mako | 2 +- scenarios/customer_delete/request.mako | 2 +- scenarios/customer_show/executable.py | 2 +- scenarios/customer_show/python.mako | 2 +- scenarios/customer_show/request.mako | 2 +- scenarios/customer_update/executable.py | 2 +- scenarios/customer_update/python.mako | 2 +- scenarios/customer_update/request.mako | 2 +- scenarios/debit_show/executable.py | 2 +- scenarios/debit_show/python.mako | 2 +- scenarios/debit_show/request.mako | 2 +- scenarios/debit_update/executable.py | 2 +- scenarios/debit_update/python.mako | 2 +- scenarios/debit_update/request.mako | 2 +- scenarios/event_show/executable.py | 2 +- scenarios/event_show/python.mako | 2 +- scenarios/event_show/request.mako | 2 +- scenarios/order_show/executable.py | 2 +- scenarios/order_show/python.mako | 2 +- scenarios/order_show/request.mako | 2 +- scenarios/order_update/executable.py | 2 +- scenarios/order_update/python.mako | 2 +- scenarios/order_update/request.mako | 2 +- scenarios/refund_create/executable.py | 2 +- scenarios/refund_create/python.mako | 2 +- scenarios/refund_create/request.mako | 2 +- scenarios/refund_show/executable.py | 2 +- scenarios/refund_show/python.mako | 2 +- scenarios/refund_show/request.mako | 2 +- scenarios/refund_update/executable.py | 2 +- scenarios/refund_update/python.mako | 2 +- scenarios/refund_update/request.mako | 2 +- scenarios/reversal_create/executable.py | 2 +- scenarios/reversal_create/python.mako | 2 +- scenarios/reversal_create/request.mako | 2 +- scenarios/reversal_show/executable.py | 2 +- scenarios/reversal_show/python.mako | 2 +- scenarios/reversal_show/request.mako | 2 +- scenarios/reversal_update/executable.py | 2 +- scenarios/reversal_update/python.mako | 2 +- scenarios/reversal_update/request.mako | 2 +- 117 files changed, 117 insertions(+), 117 deletions(-) diff --git a/scenarios/api_key_delete/executable.py b/scenarios/api_key_delete/executable.py index 1096cd1..a463f54 100644 --- a/scenarios/api_key_delete/executable.py +++ b/scenarios/api_key_delete/executable.py @@ -2,5 +2,5 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -key = balanced.APIKey.find('/api_keys/AK2MIAdNHBolYbbacv2OSosg') +key = balanced.APIKey.fetch('/api_keys/AK2MIAdNHBolYbbacv2OSosg') 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 74fe7a9..09ac768 100644 --- a/scenarios/api_key_delete/python.mako +++ b/scenarios/api_key_delete/python.mako @@ -5,6 +5,6 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -key = balanced.APIKey.find('/api_keys/AK2MIAdNHBolYbbacv2OSosg') +key = balanced.APIKey.fetch('/api_keys/AK2MIAdNHBolYbbacv2OSosg') key.delete() % endif \ No newline at end of file diff --git a/scenarios/api_key_delete/request.mako b/scenarios/api_key_delete/request.mako index 1a7d6f0..90e410a 100644 --- a/scenarios/api_key_delete/request.mako +++ b/scenarios/api_key_delete/request.mako @@ -1,5 +1,5 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -key = balanced.APIKey.find('${request['uri']}') +key = balanced.APIKey.fetch('${request['uri']}') key.delete() \ No newline at end of file diff --git a/scenarios/api_key_show/executable.py b/scenarios/api_key_show/executable.py index 6c5264a..cb45303 100644 --- a/scenarios/api_key_show/executable.py +++ b/scenarios/api_key_show/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -key = balanced.APIKey.find('/api_keys/AK2MIAdNHBolYbbacv2OSosg') \ No newline at end of file +key = balanced.APIKey.fetch('/api_keys/AK2MIAdNHBolYbbacv2OSosg') \ No newline at end of file diff --git a/scenarios/api_key_show/python.mako b/scenarios/api_key_show/python.mako index 52d6d95..1635c3b 100644 --- a/scenarios/api_key_show/python.mako +++ b/scenarios/api_key_show/python.mako @@ -6,5 +6,5 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -key = balanced.APIKey.find('/api_keys/AK2MIAdNHBolYbbacv2OSosg') +key = balanced.APIKey.fetch('/api_keys/AK2MIAdNHBolYbbacv2OSosg') % endif \ No newline at end of file diff --git a/scenarios/api_key_show/request.mako b/scenarios/api_key_show/request.mako index a5a8f8b..9c71180 100644 --- a/scenarios/api_key_show/request.mako +++ b/scenarios/api_key_show/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -key = balanced.APIKey.find('${request['uri']}') \ No newline at end of file +key = balanced.APIKey.fetch('${request['uri']}') \ 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 170f001..821b09e 100644 --- a/scenarios/bank_account_associate_to_customer/executable.py +++ b/scenarios/bank_account_associate_to_customer/executable.py @@ -2,5 +2,5 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w') +card = balanced.Card.fetch('/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w') card.associate_to('/customers/CU3QDD1R3iMoGbwiCnoHfd6W') \ 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 a1d80bc..efc3569 100644 --- a/scenarios/bank_account_associate_to_customer/python.mako +++ b/scenarios/bank_account_associate_to_customer/python.mako @@ -5,6 +5,6 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w') +card = balanced.Card.fetch('/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w') card.associate_to('/customers/CU3QDD1R3iMoGbwiCnoHfd6W') % 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 b6d960f..cf7a170 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.find('${request['uri']}') +card = balanced.Card.fetch('${request['uri']}') card.associate_to('${request['payload']['customer']}') \ No newline at end of file diff --git a/scenarios/bank_account_credit/executable.py b/scenarios/bank_account_credit/executable.py index fffd01c..18b90f4 100644 --- a/scenarios/bank_account_credit/executable.py +++ b/scenarios/bank_account_credit/executable.py @@ -2,7 +2,7 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w') bank_account.credit( amount=2000 ) \ No newline at end of file diff --git a/scenarios/bank_account_credit/python.mako b/scenarios/bank_account_credit/python.mako index dfe829a..fc7833c 100644 --- a/scenarios/bank_account_credit/python.mako +++ b/scenarios/bank_account_credit/python.mako @@ -5,7 +5,7 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w') bank_account.credit( amount=2000 ) diff --git a/scenarios/bank_account_credit/request.mako b/scenarios/bank_account_credit/request.mako index 5a6d0b1..bcbd55a 100644 --- a/scenarios/bank_account_credit/request.mako +++ b/scenarios/bank_account_credit/request.mako @@ -1,7 +1,7 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -bank_account = balanced.BankAccount.find('${request['bank_account_href']}') +bank_account = balanced.BankAccount.fetch('${request['bank_account_href']}') bank_account.credit( <% main.payload_expand(request['payload']) %> ) \ No newline at end of file diff --git a/scenarios/bank_account_debit/executable.py b/scenarios/bank_account_debit/executable.py index 9bb98e4..733a630 100644 --- a/scenarios/bank_account_debit/executable.py +++ b/scenarios/bank_account_debit/executable.py @@ -2,7 +2,7 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s/debits') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s/debits') 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 fe3cae7..503f96f 100644 --- a/scenarios/bank_account_debit/python.mako +++ b/scenarios/bank_account_debit/python.mako @@ -5,7 +5,7 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s/debits') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s/debits') bank_account.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/bank_account_debit/request.mako b/scenarios/bank_account_debit/request.mako index e2f20fa..e38c3f0 100644 --- a/scenarios/bank_account_debit/request.mako +++ b/scenarios/bank_account_debit/request.mako @@ -1,7 +1,7 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -bank_account = balanced.BankAccount.find('${request['bank_account_href']}') +bank_account = balanced.BankAccount.fetch('${request['bank_account_href']}') bank_account.debit( <% main.payload_expand(request['payload']) %> ) \ No newline at end of file diff --git a/scenarios/bank_account_delete/executable.py b/scenarios/bank_account_delete/executable.py index 426143f..99466e2 100644 --- a/scenarios/bank_account_delete/executable.py +++ b/scenarios/bank_account_delete/executable.py @@ -2,5 +2,5 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') 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 59c917c..f9c48e8 100644 --- a/scenarios/bank_account_delete/python.mako +++ b/scenarios/bank_account_delete/python.mako @@ -5,6 +5,6 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') bank_account.delete() % endif \ No newline at end of file diff --git a/scenarios/bank_account_delete/request.mako b/scenarios/bank_account_delete/request.mako index 3a0a10c..cb00128 100644 --- a/scenarios/bank_account_delete/request.mako +++ b/scenarios/bank_account_delete/request.mako @@ -1,5 +1,5 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -bank_account = balanced.BankAccount.find('${request['uri']}') +bank_account = balanced.BankAccount.fetch('${request['uri']}') bank_account.delete() \ No newline at end of file diff --git a/scenarios/bank_account_show/executable.py b/scenarios/bank_account_show/executable.py index c171bfa..2e267ac 100644 --- a/scenarios/bank_account_show/executable.py +++ b/scenarios/bank_account_show/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') \ No newline at end of file +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') \ No newline at end of file diff --git a/scenarios/bank_account_show/python.mako b/scenarios/bank_account_show/python.mako index c1f011c..2331bb6 100644 --- a/scenarios/bank_account_show/python.mako +++ b/scenarios/bank_account_show/python.mako @@ -6,5 +6,5 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') % endif \ No newline at end of file diff --git a/scenarios/bank_account_show/request.mako b/scenarios/bank_account_show/request.mako index 24daabe..2047ceb 100644 --- a/scenarios/bank_account_show/request.mako +++ b/scenarios/bank_account_show/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -bank_account = balanced.BankAccount.find('${request['uri']}') \ No newline at end of file +bank_account = balanced.BankAccount.fetch('${request['uri']}') \ No newline at end of file diff --git a/scenarios/bank_account_update/executable.py b/scenarios/bank_account_update/executable.py index 3e92f71..8c5b602 100644 --- a/scenarios/bank_account_update/executable.py +++ b/scenarios/bank_account_update/executable.py @@ -2,7 +2,7 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') 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 4c7b2a8..751a1a0 100644 --- a/scenarios/bank_account_update/python.mako +++ b/scenarios/bank_account_update/python.mako @@ -5,7 +5,7 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') bank_account.meta = { 'twitter.id'='1234987650', 'facebook.user_id'='0192837465', diff --git a/scenarios/bank_account_update/request.mako b/scenarios/bank_account_update/request.mako index a97d15b..5ab3526 100644 --- a/scenarios/bank_account_update/request.mako +++ b/scenarios/bank_account_update/request.mako @@ -1,7 +1,7 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -bank_account = balanced.BankAccount.find('${request['uri']}') +bank_account = balanced.BankAccount.fetch('${request['uri']}') 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 7e52893..275bb3d 100644 --- a/scenarios/bank_account_verification_create/executable.py +++ b/scenarios/bank_account_verification_create/executable.py @@ -2,5 +2,5 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s') 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 1a6eaf5..295756f 100644 --- a/scenarios/bank_account_verification_create/python.mako +++ b/scenarios/bank_account_verification_create/python.mako @@ -5,6 +5,6 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s') verification = bank_account.verify() % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/request.mako b/scenarios/bank_account_verification_create/request.mako index 6df8918..17ae4f4 100644 --- a/scenarios/bank_account_verification_create/request.mako +++ b/scenarios/bank_account_verification_create/request.mako @@ -1,5 +1,5 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -bank_account = balanced.BankAccount.find('${request['bank_account_uri']}') +bank_account = balanced.BankAccount.fetch('${request['bank_account_uri']}') verification = bank_account.verify() \ 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 0b4b728..33b9b38 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -verification = balanced.BankAccountVerification.find('/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG') \ No newline at end of file +verification = balanced.BankAccountVerification.fetch('/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG') \ 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 f358482..6d535ee 100644 --- a/scenarios/bank_account_verification_show/python.mako +++ b/scenarios/bank_account_verification_show/python.mako @@ -5,5 +5,5 @@ balanced.BankAccountVerification.fetch() import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -verification = balanced.BankAccountVerification.find('/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG') % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/request.mako b/scenarios/bank_account_verification_show/request.mako index a358fe7..f8ac54d 100644 --- a/scenarios/bank_account_verification_show/request.mako +++ b/scenarios/bank_account_verification_show/request.mako @@ -1,3 +1,3 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -verification = balanced.BankAccountVerification.find('${request['uri']}') \ No newline at end of file +verification = balanced.BankAccountVerification.fetch('${request['uri']}') \ 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 b7b6167..3410ad7 100644 --- a/scenarios/bank_account_verification_update/executable.py +++ b/scenarios/bank_account_verification_update/executable.py @@ -2,5 +2,5 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -verification = balanced.BankAccountVerification.find('/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG') verification.verify(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 dc51c1c..84e0a95 100644 --- a/scenarios/bank_account_verification_update/python.mako +++ b/scenarios/bank_account_verification_update/python.mako @@ -5,6 +5,6 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -verification = balanced.BankAccountVerification.find('/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG') verification.verify(amount_1=1, amount_2=1) % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/request.mako b/scenarios/bank_account_verification_update/request.mako index f937297..0bcc45a 100644 --- a/scenarios/bank_account_verification_update/request.mako +++ b/scenarios/bank_account_verification_update/request.mako @@ -1,5 +1,5 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -verification = balanced.BankAccountVerification.find('${request['uri']}') +verification = balanced.BankAccountVerification.fetch('${request['uri']}') verification.verify(amount_1=1, amount_2=1) \ No newline at end of file diff --git a/scenarios/callback_delete/executable.py b/scenarios/callback_delete/executable.py index 7e584a8..faef6bb 100644 --- a/scenarios/callback_delete/executable.py +++ b/scenarios/callback_delete/executable.py @@ -2,5 +2,5 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -callback = balanced.Callback.find('/callbacks/CB37kedWD88LFkipaugpfZ9w') +callback = balanced.Callback.fetch('/callbacks/CB37kedWD88LFkipaugpfZ9w') callback.unstore() \ No newline at end of file diff --git a/scenarios/callback_delete/python.mako b/scenarios/callback_delete/python.mako index 66078d8..915f497 100644 --- a/scenarios/callback_delete/python.mako +++ b/scenarios/callback_delete/python.mako @@ -5,6 +5,6 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -callback = balanced.Callback.find('/callbacks/CB37kedWD88LFkipaugpfZ9w') +callback = balanced.Callback.fetch('/callbacks/CB37kedWD88LFkipaugpfZ9w') callback.unstore() % endif \ No newline at end of file diff --git a/scenarios/callback_delete/request.mako b/scenarios/callback_delete/request.mako index 3000856..a427748 100644 --- a/scenarios/callback_delete/request.mako +++ b/scenarios/callback_delete/request.mako @@ -1,5 +1,5 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -callback = balanced.Callback.find('${request['uri']}') +callback = balanced.Callback.fetch('${request['uri']}') callback.unstore() \ No newline at end of file diff --git a/scenarios/callback_show/executable.py b/scenarios/callback_show/executable.py index 043db9f..6f606ca 100644 --- a/scenarios/callback_show/executable.py +++ b/scenarios/callback_show/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -callback = balanced.Callback.find('/callbacks/CB37kedWD88LFkipaugpfZ9w') \ No newline at end of file +callback = balanced.Callback.fetch('/callbacks/CB37kedWD88LFkipaugpfZ9w') \ No newline at end of file diff --git a/scenarios/callback_show/python.mako b/scenarios/callback_show/python.mako index 78bda0f..11be290 100644 --- a/scenarios/callback_show/python.mako +++ b/scenarios/callback_show/python.mako @@ -6,5 +6,5 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -callback = balanced.Callback.find('/callbacks/CB37kedWD88LFkipaugpfZ9w') +callback = balanced.Callback.fetch('/callbacks/CB37kedWD88LFkipaugpfZ9w') % endif \ No newline at end of file diff --git a/scenarios/callback_show/request.mako b/scenarios/callback_show/request.mako index 77f5c5e..b296241 100644 --- a/scenarios/callback_show/request.mako +++ b/scenarios/callback_show/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -callback = balanced.Callback.find('${request['uri']}') \ No newline at end of file +callback = balanced.Callback.fetch('${request['uri']}') \ 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 e1495c3..a76b7cd 100644 --- a/scenarios/card_associate_to_customer/executable.py +++ b/scenarios/card_associate_to_customer/executable.py @@ -2,5 +2,5 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') +card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') card.associate_to('/customers/CU4xIyjtjtamnhjJ0E6iW3Kq') \ 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 39ce8f0..1bc20af 100644 --- a/scenarios/card_associate_to_customer/python.mako +++ b/scenarios/card_associate_to_customer/python.mako @@ -5,6 +5,6 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') +card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') card.associate_to('/customers/CU4xIyjtjtamnhjJ0E6iW3Kq') % endif \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/request.mako b/scenarios/card_associate_to_customer/request.mako index b6d960f..cf7a170 100644 --- a/scenarios/card_associate_to_customer/request.mako +++ b/scenarios/card_associate_to_customer/request.mako @@ -1,5 +1,5 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -card = balanced.Card.find('${request['uri']}') +card = balanced.Card.fetch('${request['uri']}') card.associate_to('${request['payload']['customer']}') \ No newline at end of file diff --git a/scenarios/card_debit/executable.py b/scenarios/card_debit/executable.py index 49f2bad..1db24d2 100644 --- a/scenarios/card_debit/executable.py +++ b/scenarios/card_debit/executable.py @@ -2,7 +2,7 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') +card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') 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 1b0568d..a11a75c 100644 --- a/scenarios/card_debit/python.mako +++ b/scenarios/card_debit/python.mako @@ -5,7 +5,7 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') +card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') card.debit( appears_on_statement_as='Statement text', amount=5000, diff --git a/scenarios/card_debit/request.mako b/scenarios/card_debit/request.mako index 82c9b4e..9d93a0d 100644 --- a/scenarios/card_debit/request.mako +++ b/scenarios/card_debit/request.mako @@ -1,7 +1,7 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -card = balanced.Card.find('${request['card_href']}') +card = balanced.Card.fetch('${request['card_href']}') card.debit( <% main.payload_expand(request['payload']) %> ) \ No newline at end of file diff --git a/scenarios/card_delete/executable.py b/scenarios/card_delete/executable.py index a26d18c..6c1c0ed 100644 --- a/scenarios/card_delete/executable.py +++ b/scenarios/card_delete/executable.py @@ -2,5 +2,5 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') +card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') card.unstore() \ No newline at end of file diff --git a/scenarios/card_delete/python.mako b/scenarios/card_delete/python.mako index e14bb7a..9e1a46f 100644 --- a/scenarios/card_delete/python.mako +++ b/scenarios/card_delete/python.mako @@ -5,6 +5,6 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') +card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') card.unstore() % endif \ No newline at end of file diff --git a/scenarios/card_delete/request.mako b/scenarios/card_delete/request.mako index 19db77d..43cdd7e 100644 --- a/scenarios/card_delete/request.mako +++ b/scenarios/card_delete/request.mako @@ -1,5 +1,5 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -card = balanced.Card.find('${request['uri']}') +card = balanced.Card.fetch('${request['uri']}') card.unstore() \ No newline at end of file diff --git a/scenarios/card_hold_capture/executable.py b/scenarios/card_hold_capture/executable.py index 35a7b3f..81766b3 100644 --- a/scenarios/card_hold_capture/executable.py +++ b/scenarios/card_hold_capture/executable.py @@ -2,7 +2,7 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card_hold = balanced.CardHold.find('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') +card_hold = balanced.CardHold.fetch('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') 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 a413c48..ceacddc 100644 --- a/scenarios/card_hold_capture/python.mako +++ b/scenarios/card_hold_capture/python.mako @@ -5,7 +5,7 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card_hold = balanced.CardHold.find('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') +card_hold = balanced.CardHold.fetch('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') 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/request.mako b/scenarios/card_hold_capture/request.mako index a74db3c..d41ce8c 100644 --- a/scenarios/card_hold_capture/request.mako +++ b/scenarios/card_hold_capture/request.mako @@ -1,7 +1,7 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -card_hold = balanced.CardHold.find('${request['card_hold_href']}') +card_hold = balanced.CardHold.fetch('${request['card_hold_href']}') debit = card_hold.capture( <% main.payload_expand(request['payload']) %> ) \ No newline at end of file diff --git a/scenarios/card_hold_create/executable.py b/scenarios/card_hold_create/executable.py index 99f70f0..e3cb524 100644 --- a/scenarios/card_hold_create/executable.py +++ b/scenarios/card_hold_create/executable.py @@ -2,7 +2,7 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/cards/CC3cqYicdXFN8T1nX3frfRCW') +card = balanced.Card.fetch('/cards/CC3cqYicdXFN8T1nX3frfRCW') 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 1f08059..858cb1d 100644 --- a/scenarios/card_hold_create/python.mako +++ b/scenarios/card_hold_create/python.mako @@ -5,7 +5,7 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/cards/CC3cqYicdXFN8T1nX3frfRCW') +card = balanced.Card.fetch('/cards/CC3cqYicdXFN8T1nX3frfRCW') card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard' diff --git a/scenarios/card_hold_create/request.mako b/scenarios/card_hold_create/request.mako index bdf5d9e..6c2a820 100644 --- a/scenarios/card_hold_create/request.mako +++ b/scenarios/card_hold_create/request.mako @@ -1,7 +1,7 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -card = balanced.Card.find('${request['card_href']}') +card = balanced.Card.fetch('${request['card_href']}') card_hold = card.hold( <% main.payload_expand(request['payload']) %> ) \ No newline at end of file diff --git a/scenarios/card_hold_show/executable.py b/scenarios/card_hold_show/executable.py index d7c2e06..91b296b 100644 --- a/scenarios/card_hold_show/executable.py +++ b/scenarios/card_hold_show/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card_hold = balanced.CardHold.find('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') \ No newline at end of file +card_hold = balanced.CardHold.fetch('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') \ No newline at end of file diff --git a/scenarios/card_hold_show/python.mako b/scenarios/card_hold_show/python.mako index d4fa7ba..8e83fc9 100644 --- a/scenarios/card_hold_show/python.mako +++ b/scenarios/card_hold_show/python.mako @@ -6,5 +6,5 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card_hold = balanced.CardHold.find('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') +card_hold = balanced.CardHold.fetch('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') % endif \ No newline at end of file diff --git a/scenarios/card_hold_show/request.mako b/scenarios/card_hold_show/request.mako index 83fb7cf..91394e6 100644 --- a/scenarios/card_hold_show/request.mako +++ b/scenarios/card_hold_show/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -card_hold = balanced.CardHold.find('${request['uri']}') \ No newline at end of file +card_hold = balanced.CardHold.fetch('${request['uri']}') \ No newline at end of file diff --git a/scenarios/card_hold_update/executable.py b/scenarios/card_hold_update/executable.py index 14c5f5e..b5ccb40 100644 --- a/scenarios/card_hold_update/executable.py +++ b/scenarios/card_hold_update/executable.py @@ -2,7 +2,7 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card_hold = balanced.CardHold.find('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') +card_hold = balanced.CardHold.fetch('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') 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 8f3f25c..003e059 100644 --- a/scenarios/card_hold_update/python.mako +++ b/scenarios/card_hold_update/python.mako @@ -5,7 +5,7 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card_hold = balanced.CardHold.find('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') +card_hold = balanced.CardHold.fetch('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') card_hold.description = 'update this description' card_hold.meta = { 'holding.for': 'user1', diff --git a/scenarios/card_hold_update/request.mako b/scenarios/card_hold_update/request.mako index 0192eb5..248fc91 100644 --- a/scenarios/card_hold_update/request.mako +++ b/scenarios/card_hold_update/request.mako @@ -1,7 +1,7 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -card_hold = balanced.CardHold.find('${request['uri']}') +card_hold = balanced.CardHold.fetch('${request['uri']}') card_hold.description = '${request['payload']['description']}' card_hold.meta = { 'holding.for': 'user1', diff --git a/scenarios/card_hold_void/executable.py b/scenarios/card_hold_void/executable.py index 9fc41ff..117ca86 100644 --- a/scenarios/card_hold_void/executable.py +++ b/scenarios/card_hold_void/executable.py @@ -2,5 +2,5 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card_hold = balanced.CardHold.find('/card_holds/HL3mplcWSeG79TTxpFyHlxTh') +card_hold = balanced.CardHold.fetch('/card_holds/HL3mplcWSeG79TTxpFyHlxTh') 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 5cef7f9..f6fdaa4 100644 --- a/scenarios/card_hold_void/python.mako +++ b/scenarios/card_hold_void/python.mako @@ -5,6 +5,6 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card_hold = balanced.CardHold.find('/card_holds/HL3mplcWSeG79TTxpFyHlxTh') +card_hold = balanced.CardHold.fetch('/card_holds/HL3mplcWSeG79TTxpFyHlxTh') card_hold.cancel() % endif \ No newline at end of file diff --git a/scenarios/card_hold_void/request.mako b/scenarios/card_hold_void/request.mako index 1d20e49..3f09752 100644 --- a/scenarios/card_hold_void/request.mako +++ b/scenarios/card_hold_void/request.mako @@ -1,5 +1,5 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -card_hold = balanced.CardHold.find('${request['uri']}') +card_hold = balanced.CardHold.fetch('${request['uri']}') card_hold.cancel() \ No newline at end of file diff --git a/scenarios/card_update/executable.py b/scenarios/card_update/executable.py index 6c3f197..20b28f4 100644 --- a/scenarios/card_update/executable.py +++ b/scenarios/card_update/executable.py @@ -2,7 +2,7 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') +card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/card_update/python.mako b/scenarios/card_update/python.mako index 3a8e5e4..647453b 100644 --- a/scenarios/card_update/python.mako +++ b/scenarios/card_update/python.mako @@ -5,7 +5,7 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -card = balanced.Card.find('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') +card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/card_update/request.mako b/scenarios/card_update/request.mako index 5dfade6..2478ff1 100644 --- a/scenarios/card_update/request.mako +++ b/scenarios/card_update/request.mako @@ -1,7 +1,7 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -card = balanced.Card.find('${request['uri']}') +card = balanced.Card.fetch('${request['uri']}') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/credit_list_bank_account/executable.py b/scenarios/credit_list_bank_account/executable.py index 118dc4f..e7bc892 100644 --- a/scenarios/credit_list_bank_account/executable.py +++ b/scenarios/credit_list_bank_account/executable.py @@ -2,5 +2,5 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi/credits') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi/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 45abcd3..064056e 100644 --- a/scenarios/credit_list_bank_account/python.mako +++ b/scenarios/credit_list_bank_account/python.mako @@ -5,6 +5,6 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.find('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi/credits') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi/credits') credits = bank_account.credits % 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 f2d70e4..1043ffc 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.find('${request['uri']}') +bank_account = balanced.BankAccount.fetch('${request['uri']}') credits = bank_account.credits \ No newline at end of file diff --git a/scenarios/credit_show/executable.py b/scenarios/credit_show/executable.py index bd40f13..1899786 100644 --- a/scenarios/credit_show/executable.py +++ b/scenarios/credit_show/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -credit = balanced.Credit.find('/credits/CR3DLTIjMve5idvjBrXNKBHE') \ No newline at end of file +credit = balanced.Credit.fetch('/credits/CR3DLTIjMve5idvjBrXNKBHE') \ No newline at end of file diff --git a/scenarios/credit_show/python.mako b/scenarios/credit_show/python.mako index 518401e..23318bb 100644 --- a/scenarios/credit_show/python.mako +++ b/scenarios/credit_show/python.mako @@ -6,5 +6,5 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -credit = balanced.Credit.find('/credits/CR3DLTIjMve5idvjBrXNKBHE') +credit = balanced.Credit.fetch('/credits/CR3DLTIjMve5idvjBrXNKBHE') % endif \ No newline at end of file diff --git a/scenarios/credit_show/request.mako b/scenarios/credit_show/request.mako index aeb0587..609801a 100644 --- a/scenarios/credit_show/request.mako +++ b/scenarios/credit_show/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -credit = balanced.Credit.find('${request['uri']}') \ No newline at end of file +credit = balanced.Credit.fetch('${request['uri']}') \ No newline at end of file diff --git a/scenarios/credit_update/executable.py b/scenarios/credit_update/executable.py index 125c80e..612a13a 100644 --- a/scenarios/credit_update/executable.py +++ b/scenarios/credit_update/executable.py @@ -2,7 +2,7 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -credit = balanced.Credit.find('/credits/CR3DLTIjMve5idvjBrXNKBHE') +credit = balanced.Credit.fetch('/credits/CR3DLTIjMve5idvjBrXNKBHE') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/credit_update/python.mako b/scenarios/credit_update/python.mako index ce8561c..fcf9176 100644 --- a/scenarios/credit_update/python.mako +++ b/scenarios/credit_update/python.mako @@ -5,7 +5,7 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -credit = balanced.Credit.find('/credits/CR3DLTIjMve5idvjBrXNKBHE') +credit = balanced.Credit.fetch('/credits/CR3DLTIjMve5idvjBrXNKBHE') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/credit_update/request.mako b/scenarios/credit_update/request.mako index 2c55142..c4de179 100644 --- a/scenarios/credit_update/request.mako +++ b/scenarios/credit_update/request.mako @@ -1,7 +1,7 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -credit = balanced.Credit.find('${request['uri']}') +credit = balanced.Credit.fetch('${request['uri']}') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/customer_delete/executable.py b/scenarios/customer_delete/executable.py index a6ab10e..8a643c4 100644 --- a/scenarios/customer_delete/executable.py +++ b/scenarios/customer_delete/executable.py @@ -2,5 +2,5 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -customer = balanced.Customer.find('/customers/CU3QDD1R3iMoGbwiCnoHfd6W') +customer = balanced.Customer.fetch('/customers/CU3QDD1R3iMoGbwiCnoHfd6W') customer.unstore() \ No newline at end of file diff --git a/scenarios/customer_delete/python.mako b/scenarios/customer_delete/python.mako index de68c86..df3bbd7 100644 --- a/scenarios/customer_delete/python.mako +++ b/scenarios/customer_delete/python.mako @@ -5,6 +5,6 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -customer = balanced.Customer.find('/customers/CU3QDD1R3iMoGbwiCnoHfd6W') +customer = balanced.Customer.fetch('/customers/CU3QDD1R3iMoGbwiCnoHfd6W') customer.unstore() % endif \ No newline at end of file diff --git a/scenarios/customer_delete/request.mako b/scenarios/customer_delete/request.mako index 801c438..d23457d 100644 --- a/scenarios/customer_delete/request.mako +++ b/scenarios/customer_delete/request.mako @@ -1,5 +1,5 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -customer = balanced.Customer.find('${request['uri']}') +customer = balanced.Customer.fetch('${request['uri']}') customer.unstore() \ No newline at end of file diff --git a/scenarios/customer_show/executable.py b/scenarios/customer_show/executable.py index 1b75ccc..5795af1 100644 --- a/scenarios/customer_show/executable.py +++ b/scenarios/customer_show/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -customer = balanced.Customer.find('/customers/CU3LNFIXs33DopZuksrfp0KY') \ No newline at end of file +customer = balanced.Customer.fetch('/customers/CU3LNFIXs33DopZuksrfp0KY') \ No newline at end of file diff --git a/scenarios/customer_show/python.mako b/scenarios/customer_show/python.mako index 3427d6f..82fafe5 100644 --- a/scenarios/customer_show/python.mako +++ b/scenarios/customer_show/python.mako @@ -6,5 +6,5 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -customer = balanced.Customer.find('/customers/CU3LNFIXs33DopZuksrfp0KY') +customer = balanced.Customer.fetch('/customers/CU3LNFIXs33DopZuksrfp0KY') % endif \ No newline at end of file diff --git a/scenarios/customer_show/request.mako b/scenarios/customer_show/request.mako index 5b91827..d3f8f70 100644 --- a/scenarios/customer_show/request.mako +++ b/scenarios/customer_show/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -customer = balanced.Customer.find('${request['uri']}') \ No newline at end of file +customer = balanced.Customer.fetch('${request['uri']}') \ No newline at end of file diff --git a/scenarios/customer_update/executable.py b/scenarios/customer_update/executable.py index 1a4c07a..19ec9ea 100644 --- a/scenarios/customer_update/executable.py +++ b/scenarios/customer_update/executable.py @@ -2,7 +2,7 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -customer = balanced.Debit.find('/customers/CU3LNFIXs33DopZuksrfp0KY') +customer = balanced.Debit.fetch('/customers/CU3LNFIXs33DopZuksrfp0KY') 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 448a1e6..88316cb 100644 --- a/scenarios/customer_update/python.mako +++ b/scenarios/customer_update/python.mako @@ -5,7 +5,7 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -customer = balanced.Debit.find('/customers/CU3LNFIXs33DopZuksrfp0KY') +customer = balanced.Debit.fetch('/customers/CU3LNFIXs33DopZuksrfp0KY') customer.email = 'email@newdomain.com' customer.meta = { 'shipping-preference': 'ground' diff --git a/scenarios/customer_update/request.mako b/scenarios/customer_update/request.mako index 63f6d8a..8ab3f58 100644 --- a/scenarios/customer_update/request.mako +++ b/scenarios/customer_update/request.mako @@ -1,7 +1,7 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -customer = balanced.Debit.find('${request['uri']}') +customer = balanced.Debit.fetch('${request['uri']}') customer.email = '${request['payload']['email']}' customer.meta = { 'shipping-preference': 'ground' diff --git a/scenarios/debit_show/executable.py b/scenarios/debit_show/executable.py index ef9c065..10deebe 100644 --- a/scenarios/debit_show/executable.py +++ b/scenarios/debit_show/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -debit = balanced.Debit.find('/debits/WD3xghyI3uMTgjRP5aJugoQy') \ No newline at end of file +debit = balanced.Debit.fetch('/debits/WD3xghyI3uMTgjRP5aJugoQy') \ No newline at end of file diff --git a/scenarios/debit_show/python.mako b/scenarios/debit_show/python.mako index 9d02364..b92fe37 100644 --- a/scenarios/debit_show/python.mako +++ b/scenarios/debit_show/python.mako @@ -6,5 +6,5 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -debit = balanced.Debit.find('/debits/WD3xghyI3uMTgjRP5aJugoQy') +debit = balanced.Debit.fetch('/debits/WD3xghyI3uMTgjRP5aJugoQy') % endif \ No newline at end of file diff --git a/scenarios/debit_show/request.mako b/scenarios/debit_show/request.mako index bf2c349..ea00307 100644 --- a/scenarios/debit_show/request.mako +++ b/scenarios/debit_show/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -debit = balanced.Debit.find('${request['uri']}') \ No newline at end of file +debit = balanced.Debit.fetch('${request['uri']}') \ No newline at end of file diff --git a/scenarios/debit_update/executable.py b/scenarios/debit_update/executable.py index 33b1b78..fd88fbb 100644 --- a/scenarios/debit_update/executable.py +++ b/scenarios/debit_update/executable.py @@ -2,7 +2,7 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -debit = balanced.Debit.find('/debits/WD3xghyI3uMTgjRP5aJugoQy') +debit = balanced.Debit.fetch('/debits/WD3xghyI3uMTgjRP5aJugoQy') 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 b83888f..9a45020 100644 --- a/scenarios/debit_update/python.mako +++ b/scenarios/debit_update/python.mako @@ -5,7 +5,7 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -debit = balanced.Debit.find('/debits/WD3xghyI3uMTgjRP5aJugoQy') +debit = balanced.Debit.fetch('/debits/WD3xghyI3uMTgjRP5aJugoQy') debit.description = 'New description for debit' debit.meta = { 'facebook.id': '1234567890', diff --git a/scenarios/debit_update/request.mako b/scenarios/debit_update/request.mako index d33bc4a..987414c 100644 --- a/scenarios/debit_update/request.mako +++ b/scenarios/debit_update/request.mako @@ -1,7 +1,7 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -debit = balanced.Debit.find('${request['uri']}') +debit = balanced.Debit.fetch('${request['uri']}') debit.description = '${request['payload']['description']}' debit.meta = { 'facebook.id': '1234567890', diff --git a/scenarios/event_show/executable.py b/scenarios/event_show/executable.py index 9632f85..4bb6bdb 100644 --- a/scenarios/event_show/executable.py +++ b/scenarios/event_show/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -event = balanced.Event.find('/events/EV610bd3fe788111e3b3e8026ba7cd33d0') \ No newline at end of file +event = balanced.Event.fetch('/events/EV610bd3fe788111e3b3e8026ba7cd33d0') \ No newline at end of file diff --git a/scenarios/event_show/python.mako b/scenarios/event_show/python.mako index ec5a23a..268994d 100644 --- a/scenarios/event_show/python.mako +++ b/scenarios/event_show/python.mako @@ -6,5 +6,5 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -event = balanced.Event.find('/events/EV610bd3fe788111e3b3e8026ba7cd33d0') +event = balanced.Event.fetch('/events/EV610bd3fe788111e3b3e8026ba7cd33d0') % endif \ No newline at end of file diff --git a/scenarios/event_show/request.mako b/scenarios/event_show/request.mako index 9a20ccd..09f63e5 100644 --- a/scenarios/event_show/request.mako +++ b/scenarios/event_show/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -event = balanced.Event.find('${request['uri']}') \ No newline at end of file +event = balanced.Event.fetch('${request['uri']}') \ No newline at end of file diff --git a/scenarios/order_show/executable.py b/scenarios/order_show/executable.py index 6ae5482..c8e4e14 100644 --- a/scenarios/order_show/executable.py +++ b/scenarios/order_show/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -order = balanced.Order.find('/orders/OR47s8iZqDt662LdYa5My3oK') \ No newline at end of file +order = balanced.Order.fetch('/orders/OR47s8iZqDt662LdYa5My3oK') \ No newline at end of file diff --git a/scenarios/order_show/python.mako b/scenarios/order_show/python.mako index 7fb009c..3eaaec1 100644 --- a/scenarios/order_show/python.mako +++ b/scenarios/order_show/python.mako @@ -6,5 +6,5 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -order = balanced.Order.find('/orders/OR47s8iZqDt662LdYa5My3oK') +order = balanced.Order.fetch('/orders/OR47s8iZqDt662LdYa5My3oK') % endif \ No newline at end of file diff --git a/scenarios/order_show/request.mako b/scenarios/order_show/request.mako index 141c801..c48f518 100644 --- a/scenarios/order_show/request.mako +++ b/scenarios/order_show/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -order = balanced.Order.find('${request['uri']}') \ No newline at end of file +order = balanced.Order.fetch('${request['uri']}') \ No newline at end of file diff --git a/scenarios/order_update/executable.py b/scenarios/order_update/executable.py index 610399d..0556b10 100644 --- a/scenarios/order_update/executable.py +++ b/scenarios/order_update/executable.py @@ -2,7 +2,7 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -order = balanced.Order.find('/orders/OR47s8iZqDt662LdYa5My3oK') +order = balanced.Order.fetch('/orders/OR47s8iZqDt662LdYa5My3oK') 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 1e45b1f..65454ef 100644 --- a/scenarios/order_update/python.mako +++ b/scenarios/order_update/python.mako @@ -5,7 +5,7 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -order = balanced.Order.find('/orders/OR47s8iZqDt662LdYa5My3oK') +order = balanced.Order.fetch('/orders/OR47s8iZqDt662LdYa5My3oK') order.description = 'New description for order' order.meta = { 'anykey': 'valuegoeshere', diff --git a/scenarios/order_update/request.mako b/scenarios/order_update/request.mako index d6a4ec8..ba1759d 100644 --- a/scenarios/order_update/request.mako +++ b/scenarios/order_update/request.mako @@ -1,7 +1,7 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -order = balanced.Order.find('${request['uri']}') +order = balanced.Order.fetch('${request['uri']}') order.description = '${request['payload']['description']}' order.meta = { 'anykey': 'valuegoeshere', diff --git a/scenarios/refund_create/executable.py b/scenarios/refund_create/executable.py index d179a0c..af90d2e 100644 --- a/scenarios/refund_create/executable.py +++ b/scenarios/refund_create/executable.py @@ -2,7 +2,7 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -debit = balanced.Debit.find('/debits/WD4d9CgVjg8lX8g8l1638Bor') +debit = balanced.Debit.fetch('/debits/WD4d9CgVjg8lX8g8l1638Bor') 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 d57bc34..ed1dc34 100644 --- a/scenarios/refund_create/python.mako +++ b/scenarios/refund_create/python.mako @@ -5,7 +5,7 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -debit = balanced.Debit.find('/debits/WD4d9CgVjg8lX8g8l1638Bor') +debit = balanced.Debit.fetch('/debits/WD4d9CgVjg8lX8g8l1638Bor') refund = debit.refund( amount=3000, description="Refund for Order #1111", diff --git a/scenarios/refund_create/request.mako b/scenarios/refund_create/request.mako index d7aa643..1dc7289 100644 --- a/scenarios/refund_create/request.mako +++ b/scenarios/refund_create/request.mako @@ -1,7 +1,7 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -debit = balanced.Debit.find('${request['debit_href']}') +debit = balanced.Debit.fetch('${request['debit_href']}') refund = debit.refund( amount=3000, description="Refund for Order #1111", diff --git a/scenarios/refund_show/executable.py b/scenarios/refund_show/executable.py index c94d5f6..8428c3a 100644 --- a/scenarios/refund_show/executable.py +++ b/scenarios/refund_show/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -refund = balanced.Refund.find('/refunds/RF4eXqVaytz4vN4NwOAfFHXO') \ No newline at end of file +refund = balanced.Refund.fetch('/refunds/RF4eXqVaytz4vN4NwOAfFHXO') \ No newline at end of file diff --git a/scenarios/refund_show/python.mako b/scenarios/refund_show/python.mako index b385251..ab7cca8 100644 --- a/scenarios/refund_show/python.mako +++ b/scenarios/refund_show/python.mako @@ -6,5 +6,5 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -refund = balanced.Refund.find('/refunds/RF4eXqVaytz4vN4NwOAfFHXO') +refund = balanced.Refund.fetch('/refunds/RF4eXqVaytz4vN4NwOAfFHXO') % endif \ No newline at end of file diff --git a/scenarios/refund_show/request.mako b/scenarios/refund_show/request.mako index f0b89cc..c351064 100644 --- a/scenarios/refund_show/request.mako +++ b/scenarios/refund_show/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -refund = balanced.Refund.find('${request['uri']}') \ No newline at end of file +refund = balanced.Refund.fetch('${request['uri']}') \ No newline at end of file diff --git a/scenarios/refund_update/executable.py b/scenarios/refund_update/executable.py index 722dc46..4766507 100644 --- a/scenarios/refund_update/executable.py +++ b/scenarios/refund_update/executable.py @@ -2,7 +2,7 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -refund = balanced.Refund.find('/refunds/RF4eXqVaytz4vN4NwOAfFHXO') +refund = balanced.Refund.fetch('/refunds/RF4eXqVaytz4vN4NwOAfFHXO') 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 f7067bc..9ecc93d 100644 --- a/scenarios/refund_update/python.mako +++ b/scenarios/refund_update/python.mako @@ -5,7 +5,7 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -refund = balanced.Refund.find('/refunds/RF4eXqVaytz4vN4NwOAfFHXO') +refund = balanced.Refund.fetch('/refunds/RF4eXqVaytz4vN4NwOAfFHXO') refund.description = 'update this description' refund.meta = { 'user.refund.count': '3', diff --git a/scenarios/refund_update/request.mako b/scenarios/refund_update/request.mako index e45ac6c..575eaf4 100644 --- a/scenarios/refund_update/request.mako +++ b/scenarios/refund_update/request.mako @@ -1,7 +1,7 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -refund = balanced.Refund.find('${request['uri']}') +refund = balanced.Refund.fetch('${request['uri']}') refund.description = '${request['payload']['description']}' refund.meta = { 'user.refund.count': '3', diff --git a/scenarios/reversal_create/executable.py b/scenarios/reversal_create/executable.py index 42326c4..fbb4916 100644 --- a/scenarios/reversal_create/executable.py +++ b/scenarios/reversal_create/executable.py @@ -2,7 +2,7 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -credit = balanced.Credit.find('/credits/CR4lqO3NwBWdLYGvMAUeKt7g') +credit = balanced.Credit.fetch('/credits/CR4lqO3NwBWdLYGvMAUeKt7g') 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 7dcbcb9..2c6fd33 100644 --- a/scenarios/reversal_create/python.mako +++ b/scenarios/reversal_create/python.mako @@ -5,7 +5,7 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -credit = balanced.Credit.find('/credits/CR4lqO3NwBWdLYGvMAUeKt7g') +credit = balanced.Credit.fetch('/credits/CR4lqO3NwBWdLYGvMAUeKt7g') reversal = credit.reverse( amount=3000, description="Reversal for Order #1111", diff --git a/scenarios/reversal_create/request.mako b/scenarios/reversal_create/request.mako index 152acc0..624b86a 100644 --- a/scenarios/reversal_create/request.mako +++ b/scenarios/reversal_create/request.mako @@ -1,7 +1,7 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -credit = balanced.Credit.find('${request['credit_href']}') +credit = balanced.Credit.fetch('${request['credit_href']}') reversal = credit.reverse( amount=3000, description="Reversal for Order #1111", diff --git a/scenarios/reversal_show/executable.py b/scenarios/reversal_show/executable.py index 9fd5b19..52ddeba 100644 --- a/scenarios/reversal_show/executable.py +++ b/scenarios/reversal_show/executable.py @@ -2,4 +2,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -refund = balanced.Reversal.find('/reversals/RV4mvdReJFZTySZXe8IyQ8Bi') \ No newline at end of file +refund = balanced.Reversal.fetch('/reversals/RV4mvdReJFZTySZXe8IyQ8Bi') \ No newline at end of file diff --git a/scenarios/reversal_show/python.mako b/scenarios/reversal_show/python.mako index b56c96b..ce52896 100644 --- a/scenarios/reversal_show/python.mako +++ b/scenarios/reversal_show/python.mako @@ -6,5 +6,5 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -refund = balanced.Reversal.find('/reversals/RV4mvdReJFZTySZXe8IyQ8Bi') +refund = balanced.Reversal.fetch('/reversals/RV4mvdReJFZTySZXe8IyQ8Bi') % endif \ No newline at end of file diff --git a/scenarios/reversal_show/request.mako b/scenarios/reversal_show/request.mako index 33a6b93..1dfac86 100644 --- a/scenarios/reversal_show/request.mako +++ b/scenarios/reversal_show/request.mako @@ -1,4 +1,4 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -refund = balanced.Reversal.find('${request['uri']}') \ No newline at end of file +refund = balanced.Reversal.fetch('${request['uri']}') \ No newline at end of file diff --git a/scenarios/reversal_update/executable.py b/scenarios/reversal_update/executable.py index 5ae760b..1f78272 100644 --- a/scenarios/reversal_update/executable.py +++ b/scenarios/reversal_update/executable.py @@ -2,7 +2,7 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -reversal = balanced.Reversal.find('/reversals/RV4mvdReJFZTySZXe8IyQ8Bi') +reversal = balanced.Reversal.fetch('/reversals/RV4mvdReJFZTySZXe8IyQ8Bi') 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 8734fe2..7a065e9 100644 --- a/scenarios/reversal_update/python.mako +++ b/scenarios/reversal_update/python.mako @@ -5,7 +5,7 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -reversal = balanced.Reversal.find('/reversals/RV4mvdReJFZTySZXe8IyQ8Bi') +reversal = balanced.Reversal.fetch('/reversals/RV4mvdReJFZTySZXe8IyQ8Bi') reversal.description = 'update this description' reversal.meta = { 'user.refund.count': '3', diff --git a/scenarios/reversal_update/request.mako b/scenarios/reversal_update/request.mako index ff70863..8a4f508 100644 --- a/scenarios/reversal_update/request.mako +++ b/scenarios/reversal_update/request.mako @@ -1,7 +1,7 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -reversal = balanced.Reversal.find('${request['uri']}') +reversal = balanced.Reversal.fetch('${request['uri']}') reversal.description = '${request['payload']['description']}' reversal.meta = { 'user.refund.count': '3', From 105a8ed98f18e7255460bcb0fa8ca944667568d8 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Tue, 21 Jan 2014 17:30:08 -0700 Subject: [PATCH 031/146] Rename associate_to to associate_to_customer --- balanced/resources.py | 2 +- examples/bank_account_debits.py | 2 +- examples/examples.py | 2 +- examples/orders.py | 4 ++-- .../bank_account_associate_to_customer/definition.mako | 2 +- scenarios/bank_account_associate_to_customer/executable.py | 2 +- scenarios/bank_account_associate_to_customer/python.mako | 4 ++-- scenarios/bank_account_associate_to_customer/request.mako | 2 +- scenarios/card_associate_to_customer/definition.mako | 2 +- scenarios/card_associate_to_customer/executable.py | 2 +- scenarios/card_associate_to_customer/python.mako | 4 ++-- scenarios/card_associate_to_customer/request.mako | 2 +- tests/test_suite.py | 6 +++--- 13 files changed, 18 insertions(+), 18 deletions(-) diff --git a/balanced/resources.py b/balanced/resources.py index a9d4d0e..6219f10 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -363,7 +363,7 @@ class FundingInstrument(Resource): type = 'funding_instruments' - def associate_to(self, customer): + def associate_to_customer(self, customer): try: self.links except AttributeError: diff --git a/examples/bank_account_debits.py b/examples/bank_account_debits.py index 8da25da..2535582 100644 --- a/examples/bank_account_debits.py +++ b/examples/bank_account_debits.py @@ -22,7 +22,7 @@ def main(): name='Jack Q Merchant', ).save() customer = balanced.Customer().save() - bank_account.associate_to(customer) + bank_account.associate_to_customer(customer) print 'you can\'t debit until you authenticate' try: diff --git a/examples/examples.py b/examples/examples.py index 3b9a09f..463fcd4 100644 --- a/examples/examples.py +++ b/examples/examples.py @@ -104,7 +104,7 @@ expiration_year="2015", ).save() -card.associate_to(buyer) +card.associate_to_customer(buyer) assert buyer.cards.count() == 1 diff --git a/examples/orders.py b/examples/orders.py index 2d5e9b3..89bc27c 100644 --- a/examples/orders.py +++ b/examples/orders.py @@ -14,7 +14,7 @@ routing_number="321174851", name="Jack Q Merchant", ).save() -bank_account.associate_to(merchant) +bank_account.associate_to_customer(merchant) order = merchant.create_order(description='foo order') @@ -49,7 +49,7 @@ ).save() another_merchant = balanced.Customer().save() -another_bank_account.associate_to(another_merchant) +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. diff --git a/scenarios/bank_account_associate_to_customer/definition.mako b/scenarios/bank_account_associate_to_customer/definition.mako index 03152a2..2090176 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() \ No newline at end of file +balanced.Card().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 821b09e..a7aa74f 100644 --- a/scenarios/bank_account_associate_to_customer/executable.py +++ b/scenarios/bank_account_associate_to_customer/executable.py @@ -3,4 +3,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') card = balanced.Card.fetch('/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w') -card.associate_to('/customers/CU3QDD1R3iMoGbwiCnoHfd6W') \ No newline at end of file +card.associate_to_customer('/customers/CU3QDD1R3iMoGbwiCnoHfd6W') \ 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 efc3569..974eb81 100644 --- a/scenarios/bank_account_associate_to_customer/python.mako +++ b/scenarios/bank_account_associate_to_customer/python.mako @@ -1,10 +1,10 @@ % if mode == 'definition': -balanced.Card().associate_to() +balanced.Card().associate_to_customer() % elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') card = balanced.Card.fetch('/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w') -card.associate_to('/customers/CU3QDD1R3iMoGbwiCnoHfd6W') +card.associate_to_customer('/customers/CU3QDD1R3iMoGbwiCnoHfd6W') % 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 cf7a170..71ec07b 100644 --- a/scenarios/bank_account_associate_to_customer/request.mako +++ b/scenarios/bank_account_associate_to_customer/request.mako @@ -2,4 +2,4 @@ <% main.python_boilerplate() %> card = balanced.Card.fetch('${request['uri']}') -card.associate_to('${request['payload']['customer']}') \ No newline at end of file +card.associate_to_customer('${request['payload']['customer']}') \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/definition.mako b/scenarios/card_associate_to_customer/definition.mako index 03152a2..2090176 100644 --- a/scenarios/card_associate_to_customer/definition.mako +++ b/scenarios/card_associate_to_customer/definition.mako @@ -1 +1 @@ -balanced.Card().associate_to() \ No newline at end of file +balanced.Card().associate_to_customer() \ 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 a76b7cd..cfea3d5 100644 --- a/scenarios/card_associate_to_customer/executable.py +++ b/scenarios/card_associate_to_customer/executable.py @@ -3,4 +3,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') -card.associate_to('/customers/CU4xIyjtjtamnhjJ0E6iW3Kq') \ No newline at end of file +card.associate_to_customer('/customers/CU4xIyjtjtamnhjJ0E6iW3Kq') \ 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 1bc20af..ef48da6 100644 --- a/scenarios/card_associate_to_customer/python.mako +++ b/scenarios/card_associate_to_customer/python.mako @@ -1,10 +1,10 @@ % if mode == 'definition': -balanced.Card().associate_to() +balanced.Card().associate_to_customer() % elif mode == 'request': import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') -card.associate_to('/customers/CU4xIyjtjtamnhjJ0E6iW3Kq') +card.associate_to_customer('/customers/CU4xIyjtjtamnhjJ0E6iW3Kq') % endif \ No newline at end of file diff --git a/scenarios/card_associate_to_customer/request.mako b/scenarios/card_associate_to_customer/request.mako index cf7a170..71ec07b 100644 --- a/scenarios/card_associate_to_customer/request.mako +++ b/scenarios/card_associate_to_customer/request.mako @@ -2,4 +2,4 @@ <% main.python_boilerplate() %> card = balanced.Card.fetch('${request['uri']}') -card.associate_to('${request['payload']['customer']}') \ No newline at end of file +card.associate_to_customer('${request['payload']['customer']}') \ No newline at end of file diff --git a/tests/test_suite.py b/tests/test_suite.py index 2595031..784aa86 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -264,13 +264,13 @@ def test_reverse_a_credit(self): def test_delete_bank_account(self): customer = balanced.Customer().save() bank_account = balanced.BankAccount(**BANK_ACCOUNT_W_TYPE).save() - bank_account.associate_to(customer) + bank_account.associate_to_customer(customer) bank_account.unstore() def test_delete_card(self): customer = balanced.Customer().save() card = balanced.Card(**CARD).save() - card.associate_to(customer) + card.associate_to_customer(customer) card.unstore() def test_fetch_resource(self): @@ -285,7 +285,7 @@ def test_fetch_resource(self): def test_order(self): merchant = balanced.Customer().save() bank_account = balanced.BankAccount(**BANK_ACCOUNT).save() - bank_account.associate_to(merchant) + bank_account.associate_to_customer(merchant) order = merchant.create_order(description='foo order') From d38f9f82337a047946aa731977a6a707daa33ef6 Mon Sep 17 00:00:00 2001 From: Richie Date: Tue, 21 Jan 2014 18:27:21 -0800 Subject: [PATCH 032/146] Change bank account verification to confirm --- scenarios/bank_account_verification_update/executable.py | 2 +- scenarios/bank_account_verification_update/python.mako | 2 +- scenarios/bank_account_verification_update/request.mako | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scenarios/bank_account_verification_update/executable.py b/scenarios/bank_account_verification_update/executable.py index b7b6167..2804fa5 100644 --- a/scenarios/bank_account_verification_update/executable.py +++ b/scenarios/bank_account_verification_update/executable.py @@ -3,4 +3,4 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') verification = balanced.BankAccountVerification.find('/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG') -verification.verify(amount_1=1, amount_2=1) \ No newline at end of file +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 25b4fce..5903a25 100644 --- a/scenarios/bank_account_verification_update/python.mako +++ b/scenarios/bank_account_verification_update/python.mako @@ -6,5 +6,5 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') verification = balanced.BankAccountVerification.find('/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG') -verification.verify(amount_1=1, amount_2=1) +verification.confirm(amount_1=1, amount_2=1) % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/request.mako b/scenarios/bank_account_verification_update/request.mako index f937297..8f3d411 100644 --- a/scenarios/bank_account_verification_update/request.mako +++ b/scenarios/bank_account_verification_update/request.mako @@ -2,4 +2,4 @@ <% main.python_boilerplate() %> verification = balanced.BankAccountVerification.find('${request['uri']}') -verification.verify(amount_1=1, amount_2=1) \ No newline at end of file +verification.confirm(amount_1=1, amount_2=1) \ No newline at end of file From 92cd509de5d52c99111f608e94c147c2c4bec447 Mon Sep 17 00:00:00 2001 From: Richie Date: Tue, 21 Jan 2014 20:01:40 -0800 Subject: [PATCH 033/146] Update defintion for bank account confirmation --- scenarios/bank_account_verification_update/definition.mako | 2 +- scenarios/bank_account_verification_update/python.mako | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scenarios/bank_account_verification_update/definition.mako b/scenarios/bank_account_verification_update/definition.mako index 864f40a..e012862 100644 --- a/scenarios/bank_account_verification_update/definition.mako +++ b/scenarios/bank_account_verification_update/definition.mako @@ -1 +1 @@ -balanced.BankAccountVerification().save() \ No newline at end of file +balanced.BankAccountVerification().confirm() \ 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 5903a25..1fa19fc 100644 --- a/scenarios/bank_account_verification_update/python.mako +++ b/scenarios/bank_account_verification_update/python.mako @@ -1,5 +1,5 @@ % if mode == 'definition': -balanced.BankAccountVerification().save() +balanced.BankAccountVerification().confirm() % else: import balanced From 482bed9a37f49ba4ae68c94cf69edf28586be07d Mon Sep 17 00:00:00 2001 From: Richie Date: Tue, 21 Jan 2014 20:11:28 -0800 Subject: [PATCH 034/146] Update example for bank account debits for confirm() --- examples/bank_account_debits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/bank_account_debits.py b/examples/bank_account_debits.py index 8da25da..3c0f8d9 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(1, 2) + verification.confirm(amount_1=1, amount_2=1) except balanced.exc.BankAccountVerificationFailure as ex: print 'Authentication error , %s' % ex.message From f2fd5493c20c3a1d6443f282f02957899a3be471 Mon Sep 17 00:00:00 2001 From: Richie Date: Thu, 23 Jan 2014 18:47:17 -0800 Subject: [PATCH 035/146] Fix endpoint on bank account debit --- scenario.cache | 2 +- scenarios/bank_account_debit/executable.py | 2 +- scenarios/bank_account_debit/python.mako | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scenario.cache b/scenario.cache index a1a2dca..8754f80 100644 --- a/scenario.cache +++ b/scenario.cache @@ -60,7 +60,7 @@ }, "bank_account_debit": { "request": { - "bank_account_href": "/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s/debits", + "bank_account_href": "/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s", "payload": { "amount": 5000, "appears_on_statement_as": "Statement text", diff --git a/scenarios/bank_account_debit/executable.py b/scenarios/bank_account_debit/executable.py index 733a630..6ee33ee 100644 --- a/scenarios/bank_account_debit/executable.py +++ b/scenarios/bank_account_debit/executable.py @@ -2,7 +2,7 @@ balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s/debits') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s') 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 503f96f..c93b7cb 100644 --- a/scenarios/bank_account_debit/python.mako +++ b/scenarios/bank_account_debit/python.mako @@ -5,7 +5,7 @@ import balanced balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s/debits') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s') bank_account.debit( appears_on_statement_as='Statement text', amount=5000, From 223f17a0e6750de51c64d15a83c217e5fd15f87b Mon Sep 17 00:00:00 2001 From: Richie Date: Fri, 24 Jan 2014 10:12:55 -0800 Subject: [PATCH 036/146] Updated with new scenario cache --- scenario.cache | 280 +++++++++--------- 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 | 6 +- scenarios/bank_account_credit/python.mako | 6 +- 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 | 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 | 2 +- scenarios/order_create/python.mako | 2 +- 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, 345 insertions(+), 343 deletions(-) diff --git a/scenario.cache b/scenario.cache index 8754f80..5411227 100644 --- a/scenario.cache +++ b/scenario.cache @@ -1,40 +1,40 @@ { "accept_type": "application/vnd.api+json;revision=1.1", - "api_key": "ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P", + "api_key": "ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I", "api_key_create": { "request": { "uri": "/api_keys" }, - "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-01-08T16:24:33.304190Z\", \n \"href\": \"/api_keys/AK2MIAdNHBolYbbacv2OSosg\", \n \"id\": \"AK2MIAdNHBolYbbacv2OSosg\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-umEAkQCc7T9oZZtUG4x4lvxJT5EkCoAv\"\n }\n ], \n \"links\": {}\n}" + "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-01-24T17:53:03.663488Z\", \n \"href\": \"/api_keys/AK2TWX3j6gK68Qk8w4ZEqfmM\", \n \"id\": \"AK2TWX3j6gK68Qk8w4ZEqfmM\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-1pZph6JTpqVXlARGXWJFmmq8ZcLoKu8zn\"\n }\n ], \n \"links\": {}\n}" }, "api_key_delete": { "request": { - "uri": "/api_keys/AK2MIAdNHBolYbbacv2OSosg" + "uri": "/api_keys/AK2TWX3j6gK68Qk8w4ZEqfmM" } }, "api_key_list": { "request": { "uri": "/api_keys" }, - "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-01-08T16:24:33.304190Z\", \n \"href\": \"/api_keys/AK2MIAdNHBolYbbacv2OSosg\", \n \"id\": \"AK2MIAdNHBolYbbacv2OSosg\", \n \"links\": {}, \n \"meta\": {}\n }, \n {\n \"created_at\": \"2014-01-08T16:24:27.301395Z\", \n \"href\": \"/api_keys/AK2FXZJPk9I9bkra06deIZjW\", \n \"id\": \"AK2FXZJPk9I9bkra06deIZjW\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P\"\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-01-24T17:53:03.663488Z\", \n \"href\": \"/api_keys/AK2TWX3j6gK68Qk8w4ZEqfmM\", \n \"id\": \"AK2TWX3j6gK68Qk8w4ZEqfmM\", \n \"links\": {}, \n \"meta\": {}\n }, \n {\n \"created_at\": \"2014-01-24T17:52:53.304483Z\", \n \"href\": \"/api_keys/AK2Ii1LeK3SbxF4y6A5f3hK6\", \n \"id\": \"AK2Ii1LeK3SbxF4y6A5f3hK6\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I\"\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/AK2MIAdNHBolYbbacv2OSosg" + "uri": "/api_keys/AK2TWX3j6gK68Qk8w4ZEqfmM" }, - "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-01-08T16:24:33.304190Z\", \n \"href\": \"/api_keys/AK2MIAdNHBolYbbacv2OSosg\", \n \"id\": \"AK2MIAdNHBolYbbacv2OSosg\", \n \"links\": {}, \n \"meta\": {}\n }\n ], \n \"links\": {}\n}" + "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-01-24T17:53:03.663488Z\", \n \"href\": \"/api_keys/AK2TWX3j6gK68Qk8w4ZEqfmM\", \n \"id\": \"AK2TWX3j6gK68Qk8w4ZEqfmM\", \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/CU3QDD1R3iMoGbwiCnoHfd6W", + "customer_href": "/customers/CU3Ttx347VFA9lYT8dBOkwcu", "payload": { - "customer": "/customers/CU3QDD1R3iMoGbwiCnoHfd6W" + "customer": "/customers/CU3Ttx347VFA9lYT8dBOkwcu" }, - "uri": "/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w" + "uri": "/bank_accounts/BA3YBUkHZNRVugUmhBGE3A9G" }, - "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-01-08T16:25:36.390233Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w\", \n \"id\": \"BA3VFGbCg9X5lAzg2FdMhr5w\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU3QDD1R3iMoGbwiCnoHfd6W\"\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-01-08T16:25:36.975500Z\"\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-01-24T17:54:02.935649Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA3YBUkHZNRVugUmhBGE3A9G\", \n \"id\": \"BA3YBUkHZNRVugUmhBGE3A9G\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU3Ttx347VFA9lYT8dBOkwcu\"\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-01-24T17:54:03.380811Z\"\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 \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-01-08T16:25:36.390233Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w\", \n \"id\": \"BA3VFGbCg9X5lAzg2FdMhr5w\", \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-08T16:25:36.390237Z\"\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-01-24T17:54:02.935649Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA3YBUkHZNRVugUmhBGE3A9G\", \n \"id\": \"BA3YBUkHZNRVugUmhBGE3A9G\", \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-24T17:54:02.935654Z\"\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/BA3VFGbCg9X5lAzg2FdMhr5w", + "bank_account_href": "/bank_accounts/BA3YBUkHZNRVugUmhBGE3A9G", "payload": { - "amount": 2000 + "amount": 5000 }, - "uri": "/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w/credits" + "uri": "/bank_accounts/BA3YBUkHZNRVugUmhBGE3A9G/credits" }, - "response": "{\n \"credits\": [\n {\n \"amount\": 2000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-08T16:25:59.313761Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR4lqO3NwBWdLYGvMAUeKt7g\", \n \"id\": \"CR4lqO3NwBWdLYGvMAUeKt7g\", \n \"links\": {\n \"customer\": \"CU3QDD1R3iMoGbwiCnoHfd6W\", \n \"destination\": \"BA3VFGbCg9X5lAzg2FdMhr5w\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR096-906-8613\", \n \"updated_at\": \"2014-01-08T16:25:59.670993Z\"\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-01-24T17:54:27.467618Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR4qcbNcps5TuZFDDcV1XZdu\", \n \"id\": \"CR4qcbNcps5TuZFDDcV1XZdu\", \n \"links\": {\n \"customer\": \"CU3Ttx347VFA9lYT8dBOkwcu\", \n \"destination\": \"BA3YBUkHZNRVugUmhBGE3A9G\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR799-880-4514\", \n \"updated_at\": \"2014-01-24T17:54:27.908717Z\"\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/BA2RfTVAgg4CdTJrVc7RPw7s", + "bank_account_href": "/bank_accounts/BA2YEZjgBPUBzXgxXfjUeenw", "payload": { "amount": 5000, "appears_on_statement_as": "Statement text", "description": "Some descriptive text for the debit in the dashboard" }, - "uri": "/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s/debits" + "uri": "/bank_accounts/BA2YEZjgBPUBzXgxXfjUeenw/debits" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-08T16:24:49.579494Z\", \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/WD3517obkMeMT5TW6dKF8grS\", \n \"id\": \"WD3517obkMeMT5TW6dKF8grS\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"BA2RfTVAgg4CdTJrVc7RPw7s\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W713-507-0277\", \n \"updated_at\": \"2014-01-08T16:24:50.103188Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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-01-24T17:53:19.664477Z\", \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/WD3bWlYlwiW4w0l7LNDaBYU2\", \n \"id\": \"WD3bWlYlwiW4w0l7LNDaBYU2\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"BA2YEZjgBPUBzXgxXfjUeenw\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W388-997-0082\", \n \"updated_at\": \"2014-01-24T17:53:20.167203Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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/BA2Yl8BXIiDIdRGu75Ef2mhi" + "uri": "/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4" } }, "bank_account_list": { "request": { "uri": "/bank_accounts" }, - "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-01-08T16:24:43.640077Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi\", \n \"id\": \"BA2Yl8BXIiDIdRGu75Ef2mhi\", \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-08T16:24:45.928315Z\"\n }, \n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-01-08T16:24:37.355370Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s\", \n \"id\": \"BA2RfTVAgg4CdTJrVc7RPw7s\", \n \"links\": {\n \"bank_account_verification\": \"BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-01-08T16:24:42.099887Z\"\n }, \n {\n \"account_number\": \"xxxxxxxxxxx5555\", \n \"account_type\": \"checking\", \n \"bank_name\": \"WELLS FARGO BANK NA\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-01-08T16:24:28.324431Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA2GHRJ2MbwnNstKgjQXJPS7\", \n \"id\": \"BA2GHRJ2MbwnNstKgjQXJPS7\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU2GrtqkKdaf0OaF4RBjJH9J\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-01-08T16:24:28.324433Z\"\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-01-24T17:53:14.349979Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4\", \n \"id\": \"BA35XYq4oVujo1NADZ6vwCu4\", \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-24T17:53:14.349983Z\"\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-24T17:53:07.856789Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA2YEZjgBPUBzXgxXfjUeenw\", \n \"id\": \"BA2YEZjgBPUBzXgxXfjUeenw\", \n \"links\": {\n \"bank_account_verification\": \"BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-01-24T17:53:12.549815Z\"\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-24T17:52:54.443604Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA2JgwJrozEkYG86IYfFgXA6\", \n \"id\": \"BA2JgwJrozEkYG86IYfFgXA6\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU2J5ei9GWLvlSGbIcmC6qoO\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-01-24T17:52:54.443609Z\"\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/BA2Yl8BXIiDIdRGu75Ef2mhi" + "uri": "/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4" }, - "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-01-08T16:24:43.640077Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi\", \n \"id\": \"BA2Yl8BXIiDIdRGu75Ef2mhi\", \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-08T16:24:43.640080Z\"\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-01-24T17:53:14.349979Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4\", \n \"id\": \"BA35XYq4oVujo1NADZ6vwCu4\", \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-24T17:53:14.349983Z\"\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/BA2Yl8BXIiDIdRGu75Ef2mhi" + "uri": "/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4" }, - "response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-01-08T16:24:43.640077Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi\", \n \"id\": \"BA2Yl8BXIiDIdRGu75Ef2mhi\", \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-08T16:24:45.928315Z\"\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-01-24T17:53:14.349979Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4\", \n \"id\": \"BA35XYq4oVujo1NADZ6vwCu4\", \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-24T17:53:18.014026Z\"\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/BA2RfTVAgg4CdTJrVc7RPw7s", - "uri": "/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s/verifications" + "bank_account_uri": "/bank_accounts/BA2YEZjgBPUBzXgxXfjUeenw", + "uri": "/bank_accounts/BA2YEZjgBPUBzXgxXfjUeenw/verifications" }, - "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-08T16:24:38.489735Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"id\": \"BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"links\": {\n \"bank_account\": \"BA2RfTVAgg4CdTJrVc7RPw7s\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-08T16:24:39.037490Z\", \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-01-24T17:53:09.290866Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"id\": \"BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"links\": {\n \"bank_account\": \"BA2YEZjgBPUBzXgxXfjUeenw\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-24T17:53:09.797613Z\", \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/BZ2Sy2Z4Bp2mARnCLztiu2VG" + "uri": "/verifications/BZ30hb4BvSmoUMZiDdIMyz8K" }, - "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-08T16:24:38.489735Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"id\": \"BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"links\": {\n \"bank_account\": \"BA2RfTVAgg4CdTJrVc7RPw7s\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-08T16:24:39.037490Z\", \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-01-24T17:53:09.290866Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"id\": \"BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"links\": {\n \"bank_account\": \"BA2YEZjgBPUBzXgxXfjUeenw\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-24T17:53:09.797613Z\", \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/BZ2Sy2Z4Bp2mARnCLztiu2VG" + "uri": "/verifications/BZ30hb4BvSmoUMZiDdIMyz8K" }, - "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-08T16:24:38.489735Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"id\": \"BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"links\": {\n \"bank_account\": \"BA2RfTVAgg4CdTJrVc7RPw7s\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-08T16:24:42.101542Z\", \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-01-24T17:53:09.290866Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"id\": \"BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"links\": {\n \"bank_account\": \"BA2YEZjgBPUBzXgxXfjUeenw\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-24T17:53:12.552232Z\", \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,66 +130,66 @@ }, "uri": "/callbacks" }, - "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB37kedWD88LFkipaugpfZ9w\", \n \"id\": \"CB37kedWD88LFkipaugpfZ9w\", \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/CB3dRHClJeZ4UFqbLZsR6vUW\", \n \"id\": \"CB3dRHClJeZ4UFqbLZsR6vUW\", \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/CB37kedWD88LFkipaugpfZ9w" + "uri": "/callbacks/CB3dRHClJeZ4UFqbLZsR6vUW" } }, "callback_list": { "request": { "uri": "/callbacks" }, - "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB37kedWD88LFkipaugpfZ9w\", \n \"id\": \"CB37kedWD88LFkipaugpfZ9w\", \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/CB3dRHClJeZ4UFqbLZsR6vUW\", \n \"id\": \"CB3dRHClJeZ4UFqbLZsR6vUW\", \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/CB37kedWD88LFkipaugpfZ9w" + "uri": "/callbacks/CB3dRHClJeZ4UFqbLZsR6vUW" }, - "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB37kedWD88LFkipaugpfZ9w\", \n \"id\": \"CB37kedWD88LFkipaugpfZ9w\", \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/CB3dRHClJeZ4UFqbLZsR6vUW\", \n \"id\": \"CB3dRHClJeZ4UFqbLZsR6vUW\", \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": "", + "line1": null, "line2": null, "postal_code": "10023", - "state": "CA" + "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-01-08T16:24:30.073714Z", + "created_at": "2014-01-24T17:52:56.610686Z", "cvv": null, "cvv_match": null, "cvv_result": null, "expiration_month": 4, "expiration_year": 2016, "fingerprint": "979a26c05f2fb1c7ae38656312b176da2c9be1d938d442040bc79539caac6c0d", - "href": "/cards/CC2J52o6314nVoT909VCYEHM", - "id": "CC2J52o6314nVoT909VCYEHM", + "href": "/cards/CC2M0ypYw0wP8B71Y6x3B0D0", + "id": "CC2M0ypYw0wP8B71Y6x3B0D0", "is_verified": true, "links": { - "customer": "CU2HJMVaG8CTt8d8CRHN0aeG" + "customer": "CU2K9f4Ui5PdmMLqEEvHOIog" }, "meta": { - "client_ip_address": "54.197.124.124" + "client_ip_address": "54.224.61.244" }, "name": "Benny Riemann", "number": "xxxxxxxxxxxx1111", - "updated_at": "2014-01-08T16:24:30.073716Z" + "updated_at": "2014-01-24T17:52:56.610689Z" }, "card_associate_to_customer": { "request": { "payload": { - "customer": "/customers/CU4xIyjtjtamnhjJ0E6iW3Kq" + "customer": "/customers/CU3Ttx347VFA9lYT8dBOkwcu" }, - "uri": "/cards/CC3q6xpE6zCz8OZTHcXYvHtS" + "uri": "/cards/CC3VAbj4Ol8xojVU6MjI0G1F" }, - "response": "{\n \"errors\": [\n {\n \"additional\": null, \n \"category_code\": \"card-already-funding-src\", \n \"category_type\": \"logical\", \n \"description\": \"Card has already been associated with an account. Your request id is OHM96739c16788111e3a83e026ba7d31e6f.\", \n \"extras\": {}, \n \"request_id\": \"OHM96739c16788111e3a83e026ba7d31e6f\", \n \"status\": \"Conflict\", \n \"status_code\": 409\n }\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-01-24T17:54:00.240776Z\", \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/CC3VAbj4Ol8xojVU6MjI0G1F\", \n \"id\": \"CC3VAbj4Ol8xojVU6MjI0G1F\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU3Ttx347VFA9lYT8dBOkwcu\"\n }, \n \"meta\": {\n \"client_ip_address\": \"54.224.61.244\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-24T17:54:00.836570Z\"\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": { @@ -201,58 +201,58 @@ }, "uri": "/cards" }, - "response": "{\n \"cards\": [\n {\n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-08T16:25:08.328458Z\", \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/CC3q6xpE6zCz8OZTHcXYvHtS\", \n \"id\": \"CC3q6xpE6zCz8OZTHcXYvHtS\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {\n \"client_ip_address\": \"54.211.94.113\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-08T16:25:08.328462Z\"\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-01-24T17:54:00.240776Z\", \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/CC3VAbj4Ol8xojVU6MjI0G1F\", \n \"id\": \"CC3VAbj4Ol8xojVU6MjI0G1F\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {\n \"client_ip_address\": \"54.224.61.244\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-24T17:54:00.240778Z\"\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/CC3q6xpE6zCz8OZTHcXYvHtS", + "card_href": "/cards/CC3VAbj4Ol8xojVU6MjI0G1F", "payload": { "amount": 5000, "appears_on_statement_as": "Statement text", "description": "Some descriptive text for the debit in the dashboard" }, - "uri": "/cards/CC3q6xpE6zCz8OZTHcXYvHtS/debits" + "uri": "/cards/CC3VAbj4Ol8xojVU6MjI0G1F/debits" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-08T16:25:51.949507Z\", \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/WD4d9CgVjg8lX8g8l1638Bor\", \n \"id\": \"WD4d9CgVjg8lX8g8l1638Bor\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"CC3q6xpE6zCz8OZTHcXYvHtS\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W594-588-5857\", \n \"updated_at\": \"2014-01-08T16:25:52.907457Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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-01-24T17:54:18.051707Z\", \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/WD4fC2Wmv7z7LxWLQptwEv2n\", \n \"id\": \"WD4fC2Wmv7z7LxWLQptwEv2n\", \n \"links\": {\n \"customer\": \"CU3Ttx347VFA9lYT8dBOkwcu\", \n \"order\": null, \n \"source\": \"CC3VAbj4Ol8xojVU6MjI0G1F\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W543-191-8122\", \n \"updated_at\": \"2014-01-24T17:54:20.644370Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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/CC3q6xpE6zCz8OZTHcXYvHtS" + "uri": "/cards/CC3txpMUnPuUSV6vGdaibuL4" } }, "card_hold_capture": { "request": { - "card_hold_href": "/card_holds/HL3dgrKQhecdILFZKW0FQLYs", + "card_hold_href": "/card_holds/HL3iJ3toXGtGHwOyVMD9aT71", "payload": { "appears_on_statement_as": "ShowsUpOnStmt", "description": "Some descriptive text for the debit in the dashboard" }, - "uri": "/card_holds/HL3dgrKQhecdILFZKW0FQLYs/debits" + "uri": "/card_holds/HL3iJ3toXGtGHwOyVMD9aT71/debits" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-01-08T16:25:02.374035Z\", \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/WD3jpnHUfhnuulXK7SJAoN3h\", \n \"id\": \"WD3jpnHUfhnuulXK7SJAoN3h\", \n \"links\": {\n \"customer\": \"CU2GrtqkKdaf0OaF4RBjJH9J\", \n \"order\": null, \n \"source\": \"CC3cqYicdXFN8T1nX3frfRCW\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W342-270-4226\", \n \"updated_at\": \"2014-01-08T16:25:03.442254Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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-01-24T17:53:30.361991Z\", \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/WD3nYFoEh5ipuJQyCSxgBX5l\", \n \"id\": \"WD3nYFoEh5ipuJQyCSxgBX5l\", \n \"links\": {\n \"customer\": \"CU2J5ei9GWLvlSGbIcmC6qoO\", \n \"order\": null, \n \"source\": \"CC3hYX4uMMrNuO0lbYMY0PP9\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W849-149-0225\", \n \"updated_at\": \"2014-01-24T17:53:31.160769Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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/CC3cqYicdXFN8T1nX3frfRCW", + "card_href": "/cards/CC3hYX4uMMrNuO0lbYMY0PP9", "payload": { "amount": 5000, "description": "Some descriptive text for the debit in the dashboard" }, - "uri": "/cards/CC3cqYicdXFN8T1nX3frfRCW/card_holds" + "uri": "/cards/CC3hYX4uMMrNuO0lbYMY0PP9/card_holds" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-08T16:25:05.037915Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-01-15T16:25:05.244548Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3mplcWSeG79TTxpFyHlxTh\", \n \"id\": \"HL3mplcWSeG79TTxpFyHlxTh\", \n \"links\": {\n \"card\": \"CC3cqYicdXFN8T1nX3frfRCW\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL881-957-8308\", \n \"updated_at\": \"2014-01-08T16:25:05.338948Z\"\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-01-24T17:53:32.311011Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-01-31T17:53:32.494443Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3qaOBRFhWgKwSPz7bCetSn\", \n \"id\": \"HL3qaOBRFhWgKwSPz7bCetSn\", \n \"links\": {\n \"card\": \"CC3hYX4uMMrNuO0lbYMY0PP9\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL122-317-9482\", \n \"updated_at\": \"2014-01-24T17:53:32.588812Z\"\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}" }, "card_hold_list": { "request": { "uri": "/card_holds" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-08T16:24:56.908685Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"expires_at\": \"2014-01-15T16:24:57.033508Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3dgrKQhecdILFZKW0FQLYs\", \n \"id\": \"HL3dgrKQhecdILFZKW0FQLYs\", \n \"links\": {\n \"card\": \"CC3cqYicdXFN8T1nX3frfRCW\", \n \"debit\": null\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"transaction_number\": \"HL958-453-4543\", \n \"updated_at\": \"2014-01-08T16:24:59.540261Z\"\n }, \n {\n \"amount\": 10000000, \n \"created_at\": \"2014-01-08T16:24:30.859829Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-01-15T16:24:31.793887Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL2JX83i7SVfbN33531LfF5Q\", \n \"id\": \"HL2JX83i7SVfbN33531LfF5Q\", \n \"links\": {\n \"card\": \"CC2J52o6314nVoT909VCYEHM\", \n \"debit\": \"WD2K4gAFKoEl9tvxcGE18poy\"\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL909-624-9311\", \n \"updated_at\": \"2014-01-08T16:24:32.597409Z\"\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-01-24T17:53:25.689100Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-01-31T17:53:25.829067Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3iJ3toXGtGHwOyVMD9aT71\", \n \"id\": \"HL3iJ3toXGtGHwOyVMD9aT71\", \n \"links\": {\n \"card\": \"CC3hYX4uMMrNuO0lbYMY0PP9\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL997-114-4181\", \n \"updated_at\": \"2014-01-24T17:53:25.947213Z\"\n }, \n {\n \"amount\": 10000000, \n \"created_at\": \"2014-01-24T17:52:57.389512Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-01-31T17:53:00.111194Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL2MTrBIB9ATWPYRy9OIJGAo\", \n \"id\": \"HL2MTrBIB9ATWPYRy9OIJGAo\", \n \"links\": {\n \"card\": \"CC2M0ypYw0wP8B71Y6x3B0D0\", \n \"debit\": \"WD2P2E02ymh7Hwt8b5AvQf4c\"\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL127-235-6240\", \n \"updated_at\": \"2014-01-24T17:53:02.935658Z\"\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}" }, "card_hold_show": { "request": { - "uri": "/card_holds/HL3dgrKQhecdILFZKW0FQLYs" + "uri": "/card_holds/HL3iJ3toXGtGHwOyVMD9aT71" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-08T16:24:56.908685Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-01-15T16:24:57.033508Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3dgrKQhecdILFZKW0FQLYs\", \n \"id\": \"HL3dgrKQhecdILFZKW0FQLYs\", \n \"links\": {\n \"card\": \"CC3cqYicdXFN8T1nX3frfRCW\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL958-453-4543\", \n \"updated_at\": \"2014-01-08T16:24:57.129171Z\"\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-01-24T17:53:25.689100Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-01-31T17:53:25.829067Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3iJ3toXGtGHwOyVMD9aT71\", \n \"id\": \"HL3iJ3toXGtGHwOyVMD9aT71\", \n \"links\": {\n \"card\": \"CC3hYX4uMMrNuO0lbYMY0PP9\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL997-114-4181\", \n \"updated_at\": \"2014-01-24T17:53:25.947213Z\"\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}" }, "card_hold_update": { "request": { @@ -263,31 +263,31 @@ "meaningful.key": "some.value" } }, - "uri": "/card_holds/HL3dgrKQhecdILFZKW0FQLYs" + "uri": "/card_holds/HL3iJ3toXGtGHwOyVMD9aT71" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-08T16:24:56.908685Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"expires_at\": \"2014-01-15T16:24:57.033508Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3dgrKQhecdILFZKW0FQLYs\", \n \"id\": \"HL3dgrKQhecdILFZKW0FQLYs\", \n \"links\": {\n \"card\": \"CC3cqYicdXFN8T1nX3frfRCW\", \n \"debit\": null\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"transaction_number\": \"HL958-453-4543\", \n \"updated_at\": \"2014-01-08T16:24:59.540261Z\"\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-01-24T17:53:25.689100Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"expires_at\": \"2014-01-31T17:53:25.829067Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3iJ3toXGtGHwOyVMD9aT71\", \n \"id\": \"HL3iJ3toXGtGHwOyVMD9aT71\", \n \"links\": {\n \"card\": \"CC3hYX4uMMrNuO0lbYMY0PP9\", \n \"debit\": null\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"transaction_number\": \"HL997-114-4181\", \n \"updated_at\": \"2014-01-24T17:53:29.251912Z\"\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}" }, "card_hold_void": { "request": { "payload": { "is_void": "true" }, - "uri": "/card_holds/HL3mplcWSeG79TTxpFyHlxTh" + "uri": "/card_holds/HL3qaOBRFhWgKwSPz7bCetSn" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-08T16:25:05.037915Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-01-15T16:25:05.244548Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3mplcWSeG79TTxpFyHlxTh\", \n \"id\": \"HL3mplcWSeG79TTxpFyHlxTh\", \n \"links\": {\n \"card\": \"CC3cqYicdXFN8T1nX3frfRCW\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL881-957-8308\", \n \"updated_at\": \"2014-01-08T16:25:05.954328Z\"\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-01-24T17:53:32.311011Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-01-31T17:53:32.494443Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3qaOBRFhWgKwSPz7bCetSn\", \n \"id\": \"HL3qaOBRFhWgKwSPz7bCetSn\", \n \"links\": {\n \"card\": \"CC3hYX4uMMrNuO0lbYMY0PP9\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL122-317-9482\", \n \"updated_at\": \"2014-01-24T17:53:33.396318Z\"\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}" }, - "card_id": "CC2J52o6314nVoT909VCYEHM", + "card_id": "CC2M0ypYw0wP8B71Y6x3B0D0", "card_list": { "request": { "uri": "/cards" }, - "response": "{\n \"cards\": [\n {\n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-08T16:25:08.328458Z\", \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/CC3q6xpE6zCz8OZTHcXYvHtS\", \n \"id\": \"CC3q6xpE6zCz8OZTHcXYvHtS\", \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-08T16:25:10.653745Z\"\n }, \n {\n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-08T16:24:56.169481Z\", \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/CC3cqYicdXFN8T1nX3frfRCW\", \n \"id\": \"CC3cqYicdXFN8T1nX3frfRCW\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU2GrtqkKdaf0OaF4RBjJH9J\"\n }, \n \"meta\": {\n \"client_ip_address\": \"54.211.94.113\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-08T16:24:56.903782Z\"\n }, \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-01-08T16:24:30.073714Z\", \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/CC2J52o6314nVoT909VCYEHM\", \n \"id\": \"CC2J52o6314nVoT909VCYEHM\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU2HJMVaG8CTt8d8CRHN0aeG\"\n }, \n \"meta\": {\n \"client_ip_address\": \"54.197.124.124\"\n }, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-01-08T16:24:30.073716Z\"\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-01-24T17:53:35.317225Z\", \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/CC3txpMUnPuUSV6vGdaibuL4\", \n \"id\": \"CC3txpMUnPuUSV6vGdaibuL4\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-24T17:53:35.317230Z\"\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-24T17:53:25.031579Z\", \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/CC3hYX4uMMrNuO0lbYMY0PP9\", \n \"id\": \"CC3hYX4uMMrNuO0lbYMY0PP9\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU2J5ei9GWLvlSGbIcmC6qoO\"\n }, \n \"meta\": {\n \"client_ip_address\": \"54.224.61.244\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-24T17:53:25.683657Z\"\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-01-24T17:52:56.610686Z\", \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/CC2M0ypYw0wP8B71Y6x3B0D0\", \n \"id\": \"CC2M0ypYw0wP8B71Y6x3B0D0\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU2K9f4Ui5PdmMLqEEvHOIog\"\n }, \n \"meta\": {\n \"client_ip_address\": \"54.224.61.244\"\n }, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-01-24T17:52:56.610689Z\"\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/CC3q6xpE6zCz8OZTHcXYvHtS" + "uri": "/cards/CC3txpMUnPuUSV6vGdaibuL4" }, - "response": "{\n \"cards\": [\n {\n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-08T16:25:08.328458Z\", \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/CC3q6xpE6zCz8OZTHcXYvHtS\", \n \"id\": \"CC3q6xpE6zCz8OZTHcXYvHtS\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {\n \"client_ip_address\": \"54.211.94.113\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-08T16:25:08.328462Z\"\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-01-24T17:53:35.317225Z\", \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/CC3txpMUnPuUSV6vGdaibuL4\", \n \"id\": \"CC3txpMUnPuUSV6vGdaibuL4\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-24T17:53:35.317230Z\"\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": { @@ -298,30 +298,30 @@ "twitter.id": "1234987650" } }, - "uri": "/cards/CC3q6xpE6zCz8OZTHcXYvHtS" + "uri": "/cards/CC3txpMUnPuUSV6vGdaibuL4" }, - "response": "{\n \"cards\": [\n {\n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-01-08T16:25:08.328458Z\", \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/CC3q6xpE6zCz8OZTHcXYvHtS\", \n \"id\": \"CC3q6xpE6zCz8OZTHcXYvHtS\", \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-08T16:25:10.653745Z\"\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-01-24T17:53:35.317225Z\", \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/CC3txpMUnPuUSV6vGdaibuL4\", \n \"id\": \"CC3txpMUnPuUSV6vGdaibuL4\", \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-24T17:53:38.625694Z\"\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/CC2J52o6314nVoT909VCYEHM", - "cards_uri": "/customers/CU2HJMVaG8CTt8d8CRHN0aeG/cards", + "card_uri": "/cards/CC2M0ypYw0wP8B71Y6x3B0D0", + "cards_uri": "/customers/CU2K9f4Ui5PdmMLqEEvHOIog/cards", "credit_list": { "request": { "uri": "/credits" }, - "response": "{\n \"credits\": [\n {\n \"amount\": 2000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-08T16:25:20.495800Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for credit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR3DLTIjMve5idvjBrXNKBHE\", \n \"id\": \"CR3DLTIjMve5idvjBrXNKBHE\", \n \"links\": {\n \"customer\": \"CU3ArYxYGBjmbAssgNWhzcmG\", \n \"destination\": \"BA3C8lXvROvLuM9glu6on2UM\", \n \"order\": null\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR931-215-5003\", \n \"updated_at\": \"2014-01-08T16:25:23.542299Z\"\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-01-24T17:53:47.335281Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR3H2YtoAbpQCQ4Ey3RTLxxc\", \n \"id\": \"CR3H2YtoAbpQCQ4Ey3RTLxxc\", \n \"links\": {\n \"customer\": \"CU3E3HmlvpesH6rPOltSbgUK\", \n \"destination\": \"BA3FmIjnXmXxUX793Ah7qeLS\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR131-769-8772\", \n \"updated_at\": \"2014-01-24T17:53:47.669382Z\"\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/BA2Yl8BXIiDIdRGu75Ef2mhi", - "uri": "/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi/credits" + "bank_account_href": "/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4", + "uri": "/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4/credits" }, - "response": "{\n \"links\": {}, \n \"meta\": {\n \"first\": \"/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi/credits?limit=10&offset=0\", \n \"href\": \"/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi/credits?limit=10&offset=0\", \n \"last\": \"/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi/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/BA35XYq4oVujo1NADZ6vwCu4/credits?limit=10&offset=0\", \n \"href\": \"/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4/credits?limit=10&offset=0\", \n \"last\": \"/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4/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/CR3DLTIjMve5idvjBrXNKBHE" + "uri": "/credits/CR3H2YtoAbpQCQ4Ey3RTLxxc" }, - "response": "{\n \"credits\": [\n {\n \"amount\": 2000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-08T16:25:20.495800Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR3DLTIjMve5idvjBrXNKBHE\", \n \"id\": \"CR3DLTIjMve5idvjBrXNKBHE\", \n \"links\": {\n \"customer\": \"CU3ArYxYGBjmbAssgNWhzcmG\", \n \"destination\": \"BA3C8lXvROvLuM9glu6on2UM\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR931-215-5003\", \n \"updated_at\": \"2014-01-08T16:25:21.003521Z\"\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-01-24T17:53:47.335281Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR3H2YtoAbpQCQ4Ey3RTLxxc\", \n \"id\": \"CR3H2YtoAbpQCQ4Ey3RTLxxc\", \n \"links\": {\n \"customer\": \"CU3E3HmlvpesH6rPOltSbgUK\", \n \"destination\": \"BA3FmIjnXmXxUX793Ah7qeLS\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR131-769-8772\", \n \"updated_at\": \"2014-01-24T17:53:47.669382Z\"\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": { @@ -332,9 +332,9 @@ "facebook.id": "1234567890" } }, - "uri": "/credits/CR3DLTIjMve5idvjBrXNKBHE" + "uri": "/credits/CR3H2YtoAbpQCQ4Ey3RTLxxc" }, - "response": "{\n \"credits\": [\n {\n \"amount\": 2000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-08T16:25:20.495800Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for credit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR3DLTIjMve5idvjBrXNKBHE\", \n \"id\": \"CR3DLTIjMve5idvjBrXNKBHE\", \n \"links\": {\n \"customer\": \"CU3ArYxYGBjmbAssgNWhzcmG\", \n \"destination\": \"BA3C8lXvROvLuM9glu6on2UM\", \n \"order\": null\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR931-215-5003\", \n \"updated_at\": \"2014-01-08T16:25:23.542299Z\"\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-01-24T17:53:47.335281Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for credit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR3H2YtoAbpQCQ4Ey3RTLxxc\", \n \"id\": \"CR3H2YtoAbpQCQ4Ey3RTLxxc\", \n \"links\": {\n \"customer\": \"CU3E3HmlvpesH6rPOltSbgUK\", \n \"destination\": \"BA3FmIjnXmXxUX793Ah7qeLS\", \n \"order\": null\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR131-769-8772\", \n \"updated_at\": \"2014-01-24T17:53:51.651710Z\"\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": { @@ -346,13 +346,13 @@ "state": null }, "business_name": null, - "created_at": "2014-01-08T16:24:28.890274Z", + "created_at": "2014-01-24T17:52:54.948822Z", "dob_month": null, "dob_year": null, "ein": null, "email": null, - "href": "/customers/CU2HJMVaG8CTt8d8CRHN0aeG", - "id": "CU2HJMVaG8CTt8d8CRHN0aeG", + "href": "/customers/CU2K9f4Ui5PdmMLqEEvHOIog", + "id": "CU2K9f4Ui5PdmMLqEEvHOIog", "links": { "destination": null, "source": null @@ -362,7 +362,7 @@ "name": null, "phone": null, "ssn_last4": null, - "updated_at": "2014-01-08T16:24:29.045393Z" + "updated_at": "2014-01-24T17:52:55.288674Z" }, "customer_create": { "request": { @@ -376,24 +376,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-08T16:26:10.215045Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU4xIyjtjtamnhjJ0E6iW3Kq\", \n \"id\": \"CU4xIyjtjtamnhjJ0E6iW3Kq\", \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-08T16:26:10.686132Z\"\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-01-24T17:53:58.374308Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU3Ttx347VFA9lYT8dBOkwcu\", \n \"id\": \"CU3Ttx347VFA9lYT8dBOkwcu\", \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-24T17:53:58.661744Z\"\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}" }, "customer_delete": { "request": { - "uri": "/customers/CU3QDD1R3iMoGbwiCnoHfd6W" + "uri": "/customers/CU3Ttx347VFA9lYT8dBOkwcu" } }, "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-08T16:25:31.912751Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU3QDD1R3iMoGbwiCnoHfd6W\", \n \"id\": \"CU3QDD1R3iMoGbwiCnoHfd6W\", \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-08T16:25:32.355483Z\"\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-08T16:25:27.612886Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": \"email@newdomain.com\", \n \"href\": \"/customers/CU3LNFIXs33DopZuksrfp0KY\", \n \"id\": \"CU3LNFIXs33DopZuksrfp0KY\", \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-08T16:25:30.462003Z\"\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-08T16:25:17.535866Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU3ArYxYGBjmbAssgNWhzcmG\", \n \"id\": \"CU3ArYxYGBjmbAssgNWhzcmG\", \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-08T16:25:18.083207Z\"\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-08T16:24:28.890274Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU2HJMVaG8CTt8d8CRHN0aeG\", \n \"id\": \"CU2HJMVaG8CTt8d8CRHN0aeG\", \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-08T16:24:29.045393Z\"\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-08T16:24:27.725658Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU2GrtqkKdaf0OaF4RBjJH9J\", \n \"id\": \"CU2GrtqkKdaf0OaF4RBjJH9J\", \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-08T16:24:27.902201Z\"\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\": 5\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-01-24T17:53:54.160308Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU3OK2QNsz3KjXHMz1GCH1Cq\", \n \"id\": \"CU3OK2QNsz3KjXHMz1GCH1Cq\", \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-24T17:53:54.460103Z\"\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-24T17:53:44.667322Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU3E3HmlvpesH6rPOltSbgUK\", \n \"id\": \"CU3E3HmlvpesH6rPOltSbgUK\", \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-24T17:53:45.157602Z\"\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-24T17:52:54.948822Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU2K9f4Ui5PdmMLqEEvHOIog\", \n \"id\": \"CU2K9f4Ui5PdmMLqEEvHOIog\", \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-24T17:52:55.288674Z\"\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-24T17:52:54.004770Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU2J5ei9GWLvlSGbIcmC6qoO\", \n \"id\": \"CU2J5ei9GWLvlSGbIcmC6qoO\", \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-24T17:52:54.132745Z\"\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}" }, "customer_show": { "request": { - "uri": "/customers/CU3LNFIXs33DopZuksrfp0KY" + "uri": "/customers/CU3OK2QNsz3KjXHMz1GCH1Cq" }, - "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-08T16:25:27.612886Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU3LNFIXs33DopZuksrfp0KY\", \n \"id\": \"CU3LNFIXs33DopZuksrfp0KY\", \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-08T16:25:28.143257Z\"\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-01-24T17:53:54.160308Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU3OK2QNsz3KjXHMz1GCH1Cq\", \n \"id\": \"CU3OK2QNsz3KjXHMz1GCH1Cq\", \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-24T17:53:54.460103Z\"\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}" }, "customer_update": { "request": { @@ -403,9 +403,9 @@ "shipping-preference": "ground" } }, - "uri": "/customers/CU3LNFIXs33DopZuksrfp0KY" + "uri": "/customers/CU3OK2QNsz3KjXHMz1GCH1Cq" }, - "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-08T16:25:27.612886Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": \"email@newdomain.com\", \n \"href\": \"/customers/CU3LNFIXs33DopZuksrfp0KY\", \n \"id\": \"CU3LNFIXs33DopZuksrfp0KY\", \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-08T16:25:30.462003Z\"\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-01-24T17:53:54.160308Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": \"email@newdomain.com\", \n \"href\": \"/customers/CU3OK2QNsz3KjXHMz1GCH1Cq\", \n \"id\": \"CU3OK2QNsz3KjXHMz1GCH1Cq\", \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-24T17:53:57.276019Z\"\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}" }, "customers_uri": "/customers", "debit": { @@ -413,22 +413,22 @@ { "amount": 10000000, "appears_on_statement_as": "BAL*example.com", - "created_at": "2014-01-08T16:24:30.968298Z", + "created_at": "2014-01-24T17:52:59.305282Z", "currency": "USD", "description": null, "failure_reason": null, "failure_reason_code": null, - "href": "/debits/WD2K4gAFKoEl9tvxcGE18poy", - "id": "WD2K4gAFKoEl9tvxcGE18poy", + "href": "/debits/WD2P2E02ymh7Hwt8b5AvQf4c", + "id": "WD2P2E02ymh7Hwt8b5AvQf4c", "links": { - "customer": "CU2HJMVaG8CTt8d8CRHN0aeG", + "customer": "CU2K9f4Ui5PdmMLqEEvHOIog", "order": null, - "source": "CC2J52o6314nVoT909VCYEHM" + "source": "CC2M0ypYw0wP8B71Y6x3B0D0" }, "meta": {}, "status": "succeeded", - "transaction_number": "W305-959-9887", - "updated_at": "2014-01-08T16:24:32.580731Z" + "transaction_number": "W349-667-4482", + "updated_at": "2014-01-24T17:53:02.914668Z" } ], "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-08T16:25:14.691858Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for debit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD3xghyI3uMTgjRP5aJugoQy\", \n \"id\": \"WD3xghyI3uMTgjRP5aJugoQy\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"CC3q6xpE6zCz8OZTHcXYvHtS\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W965-129-3442\", \n \"updated_at\": \"2014-01-08T16:25:39.649054Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-01-08T16:25:02.374035Z\", \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/WD3jpnHUfhnuulXK7SJAoN3h\", \n \"id\": \"WD3jpnHUfhnuulXK7SJAoN3h\", \n \"links\": {\n \"customer\": \"CU2GrtqkKdaf0OaF4RBjJH9J\", \n \"order\": null, \n \"source\": \"CC3cqYicdXFN8T1nX3frfRCW\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W342-270-4226\", \n \"updated_at\": \"2014-01-08T16:25:03.442254Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-08T16:24:49.579494Z\", \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/WD3517obkMeMT5TW6dKF8grS\", \n \"id\": \"WD3517obkMeMT5TW6dKF8grS\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"BA2RfTVAgg4CdTJrVc7RPw7s\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W713-507-0277\", \n \"updated_at\": \"2014-01-08T16:24:50.103188Z\"\n }, \n {\n \"amount\": 10000000, \n \"appears_on_statement_as\": \"BAL*example.com\", \n \"created_at\": \"2014-01-08T16:24:30.968298Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD2K4gAFKoEl9tvxcGE18poy\", \n \"id\": \"WD2K4gAFKoEl9tvxcGE18poy\", \n \"links\": {\n \"customer\": \"CU2HJMVaG8CTt8d8CRHN0aeG\", \n \"order\": null, \n \"source\": \"CC2J52o6314nVoT909VCYEHM\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W305-959-9887\", \n \"updated_at\": \"2014-01-08T16:24:32.580731Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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-01-24T17:53:40.571557Z\", \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/WD3zpxOf9kLoeFmf6dYPfrYW\", \n \"id\": \"WD3zpxOf9kLoeFmf6dYPfrYW\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"CC3txpMUnPuUSV6vGdaibuL4\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W596-964-2706\", \n \"updated_at\": \"2014-01-24T17:53:42.294744Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-01-24T17:53:30.361991Z\", \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/WD3nYFoEh5ipuJQyCSxgBX5l\", \n \"id\": \"WD3nYFoEh5ipuJQyCSxgBX5l\", \n \"links\": {\n \"customer\": \"CU2J5ei9GWLvlSGbIcmC6qoO\", \n \"order\": null, \n \"source\": \"CC3hYX4uMMrNuO0lbYMY0PP9\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W849-149-0225\", \n \"updated_at\": \"2014-01-24T17:53:31.160769Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-24T17:53:19.664477Z\", \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/WD3bWlYlwiW4w0l7LNDaBYU2\", \n \"id\": \"WD3bWlYlwiW4w0l7LNDaBYU2\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"BA2YEZjgBPUBzXgxXfjUeenw\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W388-997-0082\", \n \"updated_at\": \"2014-01-24T17:53:20.167203Z\"\n }, \n {\n \"amount\": 10000000, \n \"appears_on_statement_as\": \"BAL*example.com\", \n \"created_at\": \"2014-01-24T17:52:59.305282Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD2P2E02ymh7Hwt8b5AvQf4c\", \n \"id\": \"WD2P2E02ymh7Hwt8b5AvQf4c\", \n \"links\": {\n \"customer\": \"CU2K9f4Ui5PdmMLqEEvHOIog\", \n \"order\": null, \n \"source\": \"CC2M0ypYw0wP8B71Y6x3B0D0\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W349-667-4482\", \n \"updated_at\": \"2014-01-24T17:53:02.914668Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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/WD3xghyI3uMTgjRP5aJugoQy" + "uri": "/debits/WD3zpxOf9kLoeFmf6dYPfrYW" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-08T16:25:14.691858Z\", \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/WD3xghyI3uMTgjRP5aJugoQy\", \n \"id\": \"WD3xghyI3uMTgjRP5aJugoQy\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"CC3q6xpE6zCz8OZTHcXYvHtS\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W965-129-3442\", \n \"updated_at\": \"2014-01-08T16:25:15.830670Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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-01-24T17:53:40.571557Z\", \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/WD3zpxOf9kLoeFmf6dYPfrYW\", \n \"id\": \"WD3zpxOf9kLoeFmf6dYPfrYW\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"CC3txpMUnPuUSV6vGdaibuL4\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W596-964-2706\", \n \"updated_at\": \"2014-01-24T17:53:42.294744Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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/WD3xghyI3uMTgjRP5aJugoQy" + "uri": "/debits/WD3zpxOf9kLoeFmf6dYPfrYW" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-08T16:25:14.691858Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for debit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD3xghyI3uMTgjRP5aJugoQy\", \n \"id\": \"WD3xghyI3uMTgjRP5aJugoQy\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"CC3q6xpE6zCz8OZTHcXYvHtS\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W965-129-3442\", \n \"updated_at\": \"2014-01-08T16:25:39.649054Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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-01-24T17:53:40.571557Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for debit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD3zpxOf9kLoeFmf6dYPfrYW\", \n \"id\": \"WD3zpxOf9kLoeFmf6dYPfrYW\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"CC3txpMUnPuUSV6vGdaibuL4\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W596-964-2706\", \n \"updated_at\": \"2014-01-24T17:54:07.203303Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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 \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-08T16:24:38.489735Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"id\": \"BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"links\": {\n \"bank_account\": \"BA2RfTVAgg4CdTJrVc7RPw7s\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-08T16:24:42.101542Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EV610bd3fe788111e3b3e8026ba7cd33d0\", \n \"id\": \"EV610bd3fe788111e3b3e8026ba7cd33d0\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-08T16:24:42.101000Z\", \n \"type\": \"bank_account_verification.verified\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-08T16:24:38.489735Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"id\": \"BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"links\": {\n \"bank_account\": \"BA2RfTVAgg4CdTJrVc7RPw7s\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-08T16:24:42.101542Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EV60c34c24788111e3920a026ba7d31e6f\", \n \"id\": \"EV60c34c24788111e3920a026ba7d31e6f\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-08T16:24:42.101000Z\", \n \"type\": \"bank_account_verification.updated\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-08T16:24:38.489735Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"id\": \"BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"links\": {\n \"bank_account\": \"BA2RfTVAgg4CdTJrVc7RPw7s\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-08T16:24:39.037490Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EV5e9f918c788111e3bd8d026ba7cd33d0\", \n \"id\": \"EV5e9f918c788111e3bd8d026ba7cd33d0\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-08T16:24:39.037000Z\", \n \"type\": \"bank_account_verification.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-08T16:24:38.489735Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"id\": \"BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"links\": {\n \"bank_account\": \"BA2RfTVAgg4CdTJrVc7RPw7s\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-08T16:24:39.037490Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EV5fa3344e788111e399ae026ba7d31e6f\", \n \"id\": \"EV5fa3344e788111e399ae026ba7d31e6f\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-08T16:24:39.037000Z\", \n \"type\": \"bank_account_verification.deposited\"\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\": \"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-08T16:24:27.725658Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU2GrtqkKdaf0OaF4RBjJH9J\", \n \"id\": \"CU2GrtqkKdaf0OaF4RBjJH9J\", \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-08T16:24:27.902201Z\"\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/EV583b98f4788111e3a892026ba7d31e6f\", \n \"id\": \"EV583b98f4788111e3a892026ba7d31e6f\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-08T16:24:27.902000Z\", \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 \"bank_name\": \"WELLS FARGO BANK NA\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-01-08T16:24:28.324431Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA2GHRJ2MbwnNstKgjQXJPS7\", \n \"id\": \"BA2GHRJ2MbwnNstKgjQXJPS7\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU2GrtqkKdaf0OaF4RBjJH9J\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-01-08T16:24:28.324433Z\"\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/EV5892552c788111e3a892026ba7d31e6f\", \n \"id\": \"EV5892552c788111e3a892026ba7d31e6f\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-08T16:24:28.324000Z\", \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-01-08T16:24:28.890274Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU2HJMVaG8CTt8d8CRHN0aeG\", \n \"id\": \"CU2HJMVaG8CTt8d8CRHN0aeG\", \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-08T16:24:29.045393Z\"\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/EV58e4c456788111e38fec026ba7c1aba6\", \n \"id\": \"EV58e4c456788111e38fec026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-08T16:24:29.045000Z\", \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 \"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-01-08T16:24:30.073714Z\", \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/CC2J52o6314nVoT909VCYEHM\", \n \"id\": \"CC2J52o6314nVoT909VCYEHM\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU2HJMVaG8CTt8d8CRHN0aeG\"\n }, \n \"meta\": {\n \"client_ip_address\": \"54.197.124.124\"\n }, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-01-08T16:24:30.073716Z\"\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/EV599c3730788111e382b4026ba7cac9da\", \n \"id\": \"EV599c3730788111e382b4026ba7cac9da\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-08T16:24:30.073000Z\", \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-01-08T16:24:30.859829Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL2JX83i7SVfbN33531LfF5Q\", \n \"id\": \"HL2JX83i7SVfbN33531LfF5Q\", \n \"links\": {\n \"card\": \"CC2J52o6314nVoT909VCYEHM\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL909-624-9311\", \n \"updated_at\": \"2014-01-08T16:24:30.859832Z\"\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 }, \n \"href\": \"/events/EV5a1b9584788111e3b9bf026ba7c1aba6\", \n \"id\": \"EV5a1b9584788111e3b9bf026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-08T16:24:30.859000Z\", \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-01-08T16:24:30.859829Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-01-15T16:24:31.793887Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL2JX83i7SVfbN33531LfF5Q\", \n \"id\": \"HL2JX83i7SVfbN33531LfF5Q\", \n \"links\": {\n \"card\": \"CC2J52o6314nVoT909VCYEHM\", \n \"debit\": \"WD2K4gAFKoEl9tvxcGE18poy\"\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL909-624-9311\", \n \"updated_at\": \"2014-01-08T16:24:32.597409Z\"\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 }, \n \"href\": \"/events/EV5abfab60788111e3b9bf026ba7c1aba6\", \n \"id\": \"EV5abfab60788111e3b9bf026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-08T16:24:32.597000Z\", \n \"type\": \"hold.updated\"\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\": 55\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 \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-24T17:53:09.290866Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"id\": \"BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"links\": {\n \"bank_account\": \"BA2YEZjgBPUBzXgxXfjUeenw\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-24T17:53:12.552232Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EV64ecf7cc852011e3a0ed026ba7c1aba6\", \n \"id\": \"EV64ecf7cc852011e3a0ed026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-24T17:53:12.552000Z\", \n \"type\": \"bank_account_verification.verified\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-24T17:53:09.290866Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"id\": \"BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"links\": {\n \"bank_account\": \"BA2YEZjgBPUBzXgxXfjUeenw\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-24T17:53:12.552232Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EV64a62ae0852011e3982b026ba7cac9da\", \n \"id\": \"EV64a62ae0852011e3982b026ba7cac9da\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-24T17:53:12.552000Z\", \n \"type\": \"bank_account_verification.updated\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-24T17:53:09.290866Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"id\": \"BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"links\": {\n \"bank_account\": \"BA2YEZjgBPUBzXgxXfjUeenw\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-24T17:53:09.797613Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EV63882a5a852011e3a9d0026ba7c1aba6\", \n \"id\": \"EV63882a5a852011e3a9d0026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-24T17:53:09.797000Z\", \n \"type\": \"bank_account_verification.deposited\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-24T17:53:09.290866Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"id\": \"BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"links\": {\n \"bank_account\": \"BA2YEZjgBPUBzXgxXfjUeenw\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-24T17:53:09.797613Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EV62bb1114852011e3a83d026ba7cac9da\", \n \"id\": \"EV62bb1114852011e3a83d026ba7cac9da\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-24T17:53:09.797000Z\", \n \"type\": \"bank_account_verification.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\": \"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-24T17:52:54.004770Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU2J5ei9GWLvlSGbIcmC6qoO\", \n \"id\": \"CU2J5ei9GWLvlSGbIcmC6qoO\", \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-24T17:52:54.132745Z\"\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/EV599e6efa852011e3885f026ba7cac9da\", \n \"id\": \"EV599e6efa852011e3885f026ba7cac9da\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-24T17:52:54.132000Z\", \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-01-24T17:52:54.443604Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA2JgwJrozEkYG86IYfFgXA6\", \n \"id\": \"BA2JgwJrozEkYG86IYfFgXA6\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU2J5ei9GWLvlSGbIcmC6qoO\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-01-24T17:52:54.443609Z\"\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/EV59e2945e852011e3885f026ba7cac9da\", \n \"id\": \"EV59e2945e852011e3885f026ba7cac9da\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-24T17:52:54.443000Z\", \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-01-24T17:52:54.948822Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU2K9f4Ui5PdmMLqEEvHOIog\", \n \"id\": \"CU2K9f4Ui5PdmMLqEEvHOIog\", \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-24T17:52:55.288674Z\"\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/EV5a2d834c852011e3a3d1026ba7cd33d0\", \n \"id\": \"EV5a2d834c852011e3a3d1026ba7cd33d0\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-24T17:52:55.288000Z\", \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-01-24T17:52:56.610686Z\", \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/CC2M0ypYw0wP8B71Y6x3B0D0\", \n \"id\": \"CC2M0ypYw0wP8B71Y6x3B0D0\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU2K9f4Ui5PdmMLqEEvHOIog\"\n }, \n \"meta\": {\n \"client_ip_address\": \"54.224.61.244\"\n }, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-01-24T17:52:56.610689Z\"\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/EV5b2bc178852011e3982b026ba7cac9da\", \n \"id\": \"EV5b2bc178852011e3982b026ba7cac9da\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-24T17:52:56.610000Z\", \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-01-24T17:52:57.389512Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL2MTrBIB9ATWPYRy9OIJGAo\", \n \"id\": \"HL2MTrBIB9ATWPYRy9OIJGAo\", \n \"links\": {\n \"card\": \"CC2M0ypYw0wP8B71Y6x3B0D0\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL127-235-6240\", \n \"updated_at\": \"2014-01-24T17:52:57.389516Z\"\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 }, \n \"href\": \"/events/EV5cbf8b64852011e3b0a7026ba7cd33d0\", \n \"id\": \"EV5cbf8b64852011e3b0a7026ba7cd33d0\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-24T17:52:57.389000Z\", \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-01-24T17:52:57.389512Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-01-31T17:53:00.111194Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL2MTrBIB9ATWPYRy9OIJGAo\", \n \"id\": \"HL2MTrBIB9ATWPYRy9OIJGAo\", \n \"links\": {\n \"card\": \"CC2M0ypYw0wP8B71Y6x3B0D0\", \n \"debit\": \"WD2P2E02ymh7Hwt8b5AvQf4c\"\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL127-235-6240\", \n \"updated_at\": \"2014-01-24T17:53:02.935658Z\"\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 }, \n \"href\": \"/events/EV5d6516ec852011e3b0a7026ba7cd33d0\", \n \"id\": \"EV5d6516ec852011e3b0a7026ba7cd33d0\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-24T17:53:02.935000Z\", \n \"type\": \"hold.updated\"\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/EV610bd3fe788111e3b3e8026ba7cd33d0" + "uri": "/events/EV64ecf7cc852011e3a0ed026ba7c1aba6" }, - "response": "{\n \"events\": [\n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-08T16:24:38.489735Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"id\": \"BZ2Sy2Z4Bp2mARnCLztiu2VG\", \n \"links\": {\n \"bank_account\": \"BA2RfTVAgg4CdTJrVc7RPw7s\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-08T16:24:42.101542Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EV610bd3fe788111e3b3e8026ba7cd33d0\", \n \"id\": \"EV610bd3fe788111e3b3e8026ba7cd33d0\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-08T16:24:42.101000Z\", \n \"type\": \"bank_account_verification.verified\"\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 \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-24T17:53:09.290866Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"id\": \"BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"links\": {\n \"bank_account\": \"BA2YEZjgBPUBzXgxXfjUeenw\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-24T17:53:12.552232Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EV64ecf7cc852011e3a0ed026ba7c1aba6\", \n \"id\": \"EV64ecf7cc852011e3a0ed026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-24T17:53:12.552000Z\", \n \"type\": \"bank_account_verification.verified\"\n }\n ], \n \"links\": {\n \"events.callbacks\": \"/events/{events.self}/callbacks\"\n }\n}" }, "marketplace": { - "created_at": "2014-01-08T16:24:27.690253Z", + "created_at": "2014-01-24T17:52:53.976860Z", "domain_url": "example.com", - "href": "/marketplaces/TEST-MP2GooVnrAGDot6beW1A1Vcb", - "id": "TEST-MP2GooVnrAGDot6beW1A1Vcb", + "href": "/marketplaces/TEST-MP2J35JnxzMPzPOPNmWhsLKa", + "id": "TEST-MP2J35JnxzMPzPOPNmWhsLKa", "in_escrow": 0, "links": { - "owner_customer": "CU2GrtqkKdaf0OaF4RBjJH9J" + "owner_customer": "CU2J5ei9GWLvlSGbIcmC6qoO" }, "meta": {}, "name": "Test Marketplace", @@ -491,30 +491,30 @@ "support_email_address": "support@example.com", "support_phone_number": "+16505551234", "unsettled_fees": 0, - "updated_at": "2014-01-08T16:24:28.339038Z" + "updated_at": "2014-01-24T17:52:54.403629Z" }, - "marketplace_id": "TEST-MP2GooVnrAGDot6beW1A1Vcb", - "marketplace_uri": "/marketplaces/TEST-MP2GooVnrAGDot6beW1A1Vcb", + "marketplace_id": "TEST-MP2J35JnxzMPzPOPNmWhsLKa", + "marketplace_uri": "/marketplaces/TEST-MP2J35JnxzMPzPOPNmWhsLKa", "order_create": { "request": { "payload": { "description": "Order #12341234" }, - "uri": "/customers/CU3QDD1R3iMoGbwiCnoHfd6W/orders" + "uri": "/customers/CU3Ttx347VFA9lYT8dBOkwcu/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-08T16:25:46.862586Z\", \n \"currency\": \"USD\", \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR47s8iZqDt662LdYa5My3oK\", \n \"id\": \"OR47s8iZqDt662LdYa5My3oK\", \n \"links\": {\n \"merchant\": \"CU3QDD1R3iMoGbwiCnoHfd6W\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-08T16:25:46.862589Z\"\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-01-24T17:54:14.238757Z\", \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/OR4bkzheH5eeQpl0J9Dmrx27\", \n \"id\": \"OR4bkzheH5eeQpl0J9Dmrx27\", \n \"links\": {\n \"merchant\": \"CU3Ttx347VFA9lYT8dBOkwcu\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-24T17:54:14.238760Z\"\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-08T16:25:46.862586Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for order\", \n \"href\": \"/orders/OR47s8iZqDt662LdYa5My3oK\", \n \"id\": \"OR47s8iZqDt662LdYa5My3oK\", \n \"links\": {\n \"merchant\": \"CU3QDD1R3iMoGbwiCnoHfd6W\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"product.id\": \"1234567890\"\n }, \n \"updated_at\": \"2014-01-08T16:25:49.318827Z\"\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-01-24T17:54:14.238757Z\", \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/OR4bkzheH5eeQpl0J9Dmrx27\", \n \"id\": \"OR4bkzheH5eeQpl0J9Dmrx27\", \n \"links\": {\n \"merchant\": \"CU3Ttx347VFA9lYT8dBOkwcu\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-24T17:54:14.238760Z\"\n }\n ]\n}" }, "order_show": { "request": { - "uri": "/orders/OR47s8iZqDt662LdYa5My3oK" + "uri": "/orders/OR4bkzheH5eeQpl0J9Dmrx27" }, - "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-08T16:25:46.862586Z\", \n \"currency\": \"USD\", \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR47s8iZqDt662LdYa5My3oK\", \n \"id\": \"OR47s8iZqDt662LdYa5My3oK\", \n \"links\": {\n \"merchant\": \"CU3QDD1R3iMoGbwiCnoHfd6W\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-08T16:25:46.862589Z\"\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-01-24T17:54:14.238757Z\", \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/OR4bkzheH5eeQpl0J9Dmrx27\", \n \"id\": \"OR4bkzheH5eeQpl0J9Dmrx27\", \n \"links\": {\n \"merchant\": \"CU3Ttx347VFA9lYT8dBOkwcu\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-24T17:54:14.238760Z\"\n }\n ]\n}" }, "order_update": { "request": { @@ -525,14 +525,15 @@ "product.id": "1234567890" } }, - "uri": "/orders/OR47s8iZqDt662LdYa5My3oK" + "uri": "/orders/OR4bkzheH5eeQpl0J9Dmrx27" }, - "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-08T16:25:46.862586Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for order\", \n \"href\": \"/orders/OR47s8iZqDt662LdYa5My3oK\", \n \"id\": \"OR47s8iZqDt662LdYa5My3oK\", \n \"links\": {\n \"merchant\": \"CU3QDD1R3iMoGbwiCnoHfd6W\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"product.id\": \"1234567890\"\n }, \n \"updated_at\": \"2014-01-08T16:25:49.318827Z\"\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-01-24T17:54:14.238757Z\", \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/OR4bkzheH5eeQpl0J9Dmrx27\", \n \"id\": \"OR4bkzheH5eeQpl0J9Dmrx27\", \n \"links\": {\n \"merchant\": \"CU3Ttx347VFA9lYT8dBOkwcu\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"product.id\": \"1234567890\"\n }, \n \"updated_at\": \"2014-01-24T17:54:16.944355Z\"\n }\n ]\n}" }, "refund_create": { "request": { - "debit_href": "/debits/WD4d9CgVjg8lX8g8l1638Bor", + "debit_href": "/debits/WD4fC2Wmv7z7LxWLQptwEv2n", "payload": { + "amount": 3000, "description": "Refund for Order #1111", "meta": { "fulfillment.item.condition": "OK", @@ -540,21 +541,21 @@ "user.refund_reason": "not happy with product" } }, - "uri": "/debits/WD4d9CgVjg8lX8g8l1638Bor/refunds" + "uri": "/debits/WD4fC2Wmv7z7LxWLQptwEv2n/refunds" }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-08T16:25:53.545355Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF4eXqVaytz4vN4NwOAfFHXO\", \n \"id\": \"RF4eXqVaytz4vN4NwOAfFHXO\", \n \"links\": {\n \"debit\": \"WD4d9CgVjg8lX8g8l1638Bor\", \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\": \"RF863-018-9348\", \n \"updated_at\": \"2014-01-08T16:25:54.276790Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \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-24T17:54:21.764061Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF4jM7mlJNnsZ3KWSQiQxFSw\", \n \"id\": \"RF4jM7mlJNnsZ3KWSQiQxFSw\", \n \"links\": {\n \"debit\": \"WD4fC2Wmv7z7LxWLQptwEv2n\", \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\": \"RF642-909-8143\", \n \"updated_at\": \"2014-01-24T17:54:22.705860Z\"\n }\n ]\n}" }, "refund_list": { "request": { "uri": "/refunds" }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \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\": 5000, \n \"created_at\": \"2014-01-08T16:25:53.545355Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"href\": \"/refunds/RF4eXqVaytz4vN4NwOAfFHXO\", \n \"id\": \"RF4eXqVaytz4vN4NwOAfFHXO\", \n \"links\": {\n \"debit\": \"WD4d9CgVjg8lX8g8l1638Bor\", \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\": \"RF863-018-9348\", \n \"updated_at\": \"2014-01-08T16:25:56.568285Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \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-24T17:54:21.764061Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF4jM7mlJNnsZ3KWSQiQxFSw\", \n \"id\": \"RF4jM7mlJNnsZ3KWSQiQxFSw\", \n \"links\": {\n \"debit\": \"WD4fC2Wmv7z7LxWLQptwEv2n\", \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\": \"RF642-909-8143\", \n \"updated_at\": \"2014-01-24T17:54:22.705860Z\"\n }\n ]\n}" }, "refund_show": { "request": { - "uri": "/refunds/RF4eXqVaytz4vN4NwOAfFHXO" + "uri": "/refunds/RF4jM7mlJNnsZ3KWSQiQxFSw" }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-08T16:25:53.545355Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF4eXqVaytz4vN4NwOAfFHXO\", \n \"id\": \"RF4eXqVaytz4vN4NwOAfFHXO\", \n \"links\": {\n \"debit\": \"WD4d9CgVjg8lX8g8l1638Bor\", \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\": \"RF863-018-9348\", \n \"updated_at\": \"2014-01-08T16:25:54.276790Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \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-24T17:54:21.764061Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF4jM7mlJNnsZ3KWSQiQxFSw\", \n \"id\": \"RF4jM7mlJNnsZ3KWSQiQxFSw\", \n \"links\": {\n \"debit\": \"WD4fC2Wmv7z7LxWLQptwEv2n\", \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\": \"RF642-909-8143\", \n \"updated_at\": \"2014-01-24T17:54:22.705860Z\"\n }\n ]\n}" }, "refund_update": { "request": { @@ -566,14 +567,15 @@ "user.refund.count": "3" } }, - "uri": "/refunds/RF4eXqVaytz4vN4NwOAfFHXO" + "uri": "/refunds/RF4jM7mlJNnsZ3KWSQiQxFSw" }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-08T16:25:53.545355Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"href\": \"/refunds/RF4eXqVaytz4vN4NwOAfFHXO\", \n \"id\": \"RF4eXqVaytz4vN4NwOAfFHXO\", \n \"links\": {\n \"debit\": \"WD4d9CgVjg8lX8g8l1638Bor\", \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\": \"RF863-018-9348\", \n \"updated_at\": \"2014-01-08T16:25:56.568285Z\"\n }\n ]\n}" + "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \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-24T17:54:21.764061Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"href\": \"/refunds/RF4jM7mlJNnsZ3KWSQiQxFSw\", \n \"id\": \"RF4jM7mlJNnsZ3KWSQiQxFSw\", \n \"links\": {\n \"debit\": \"WD4fC2Wmv7z7LxWLQptwEv2n\", \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\": \"RF642-909-8143\", \n \"updated_at\": \"2014-01-24T17:54:26.305194Z\"\n }\n ]\n}" }, "reversal_create": { "request": { - "credit_href": "/credits/CR4lqO3NwBWdLYGvMAUeKt7g", + "credit_href": "/credits/CR4qcbNcps5TuZFDDcV1XZdu", "payload": { + "amount": 3000, "description": "Reversal for Order #1111", "meta": { "fulfillment.item.condition": "OK", @@ -581,21 +583,21 @@ "user.refund_reason": "not happy with product" } }, - "uri": "/credits/CR4lqO3NwBWdLYGvMAUeKt7g/reversals" + "uri": "/credits/CR4qcbNcps5TuZFDDcV1XZdu/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\": 2000, \n \"created_at\": \"2014-01-08T16:26:00.258268Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV4mvdReJFZTySZXe8IyQ8Bi\", \n \"id\": \"RV4mvdReJFZTySZXe8IyQ8Bi\", \n \"links\": {\n \"credit\": \"CR4lqO3NwBWdLYGvMAUeKt7g\", \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\": \"RV058-395-8197\", \n \"updated_at\": \"2014-01-08T16:26:01.071587Z\"\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-01-24T17:54:28.723409Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV4rAoQcd3EkOS6rLAUFLrs4\", \n \"id\": \"RV4rAoQcd3EkOS6rLAUFLrs4\", \n \"links\": {\n \"credit\": \"CR4qcbNcps5TuZFDDcV1XZdu\", \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\": \"RV940-780-3320\", \n \"updated_at\": \"2014-01-24T17:54:29.436514Z\"\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\": 2000, \n \"created_at\": \"2014-01-08T16:26:00.258268Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV4mvdReJFZTySZXe8IyQ8Bi\", \n \"id\": \"RV4mvdReJFZTySZXe8IyQ8Bi\", \n \"links\": {\n \"credit\": \"CR4lqO3NwBWdLYGvMAUeKt7g\", \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\": \"RV058-395-8197\", \n \"updated_at\": \"2014-01-08T16:26:03.657643Z\"\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-01-24T17:54:28.723409Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV4rAoQcd3EkOS6rLAUFLrs4\", \n \"id\": \"RV4rAoQcd3EkOS6rLAUFLrs4\", \n \"links\": {\n \"credit\": \"CR4qcbNcps5TuZFDDcV1XZdu\", \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\": \"RV940-780-3320\", \n \"updated_at\": \"2014-01-24T17:54:29.436514Z\"\n }\n ]\n}" }, "reversal_show": { "request": { - "uri": "/reversals/RV4mvdReJFZTySZXe8IyQ8Bi" + "uri": "/reversals/RV4rAoQcd3EkOS6rLAUFLrs4" }, - "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\": 2000, \n \"created_at\": \"2014-01-08T16:26:00.258268Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV4mvdReJFZTySZXe8IyQ8Bi\", \n \"id\": \"RV4mvdReJFZTySZXe8IyQ8Bi\", \n \"links\": {\n \"credit\": \"CR4lqO3NwBWdLYGvMAUeKt7g\", \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\": \"RV058-395-8197\", \n \"updated_at\": \"2014-01-08T16:26:01.071587Z\"\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-01-24T17:54:28.723409Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV4rAoQcd3EkOS6rLAUFLrs4\", \n \"id\": \"RV4rAoQcd3EkOS6rLAUFLrs4\", \n \"links\": {\n \"credit\": \"CR4qcbNcps5TuZFDDcV1XZdu\", \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\": \"RV940-780-3320\", \n \"updated_at\": \"2014-01-24T17:54:29.436514Z\"\n }\n ]\n}" }, "reversal_update": { "request": { @@ -604,12 +606,12 @@ "meta": { "refund.reason": "user not happy with product", "user.notes": "very polite on the phone", - "user.refund.count": "3" + "user.satisfaction": "6" } }, - "uri": "/reversals/RV4mvdReJFZTySZXe8IyQ8Bi" + "uri": "/reversals/RV4rAoQcd3EkOS6rLAUFLrs4" }, - "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\": 2000, \n \"created_at\": \"2014-01-08T16:26:00.258268Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV4mvdReJFZTySZXe8IyQ8Bi\", \n \"id\": \"RV4mvdReJFZTySZXe8IyQ8Bi\", \n \"links\": {\n \"credit\": \"CR4lqO3NwBWdLYGvMAUeKt7g\", \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\": \"RV058-395-8197\", \n \"updated_at\": \"2014-01-08T16:26:03.657643Z\"\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-01-24T17:54:28.723409Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV4rAoQcd3EkOS6rLAUFLrs4\", \n \"id\": \"RV4rAoQcd3EkOS6rLAUFLrs4\", \n \"links\": {\n \"credit\": \"CR4qcbNcps5TuZFDDcV1XZdu\", \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\": \"RV940-780-3320\", \n \"updated_at\": \"2014-01-24T17:54:32.763608Z\"\n }\n ]\n}" }, - "secret": "ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P" + "secret": "ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I" } \ 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 250f641..0ac7321 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 7e3578c..e86069e 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') api_key = balanced.APIKey() api_key.save() diff --git a/scenarios/api_key_create/executable.py b/scenarios/api_key_create/executable.py index eb30434..cd871ef 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 030b86b..40bb944 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 a463f54..bcbdc70 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -key = balanced.APIKey.fetch('/api_keys/AK2MIAdNHBolYbbacv2OSosg') +key = balanced.APIKey.fetch('/api_keys/AK2TWX3j6gK68Qk8w4ZEqfmM') 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 09ac768..f0ebc9a 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -key = balanced.APIKey.fetch('/api_keys/AK2MIAdNHBolYbbacv2OSosg') +key = balanced.APIKey.fetch('/api_keys/AK2TWX3j6gK68Qk8w4ZEqfmM') 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 35b128e..77370dd 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 bb8a0e5..6d2fec3 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 cb45303..0848221 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -key = balanced.APIKey.fetch('/api_keys/AK2MIAdNHBolYbbacv2OSosg') \ No newline at end of file +key = balanced.APIKey.fetch('/api_keys/AK2TWX3j6gK68Qk8w4ZEqfmM') \ No newline at end of file diff --git a/scenarios/api_key_show/python.mako b/scenarios/api_key_show/python.mako index 1635c3b..c8fd6b5 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -key = balanced.APIKey.fetch('/api_keys/AK2MIAdNHBolYbbacv2OSosg') +key = balanced.APIKey.fetch('/api_keys/AK2TWX3j6gK68Qk8w4ZEqfmM') % 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 a7aa74f..46c2f7a 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -card = balanced.Card.fetch('/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w') -card.associate_to_customer('/customers/CU3QDD1R3iMoGbwiCnoHfd6W') \ No newline at end of file +card = balanced.Card.fetch('/bank_accounts/BA3YBUkHZNRVugUmhBGE3A9G') +card.associate_to_customer('/customers/CU3Ttx347VFA9lYT8dBOkwcu') \ 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 974eb81..c3a2c1e 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -card = balanced.Card.fetch('/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w') -card.associate_to_customer('/customers/CU3QDD1R3iMoGbwiCnoHfd6W') +card = balanced.Card.fetch('/bank_accounts/BA3YBUkHZNRVugUmhBGE3A9G') +card.associate_to_customer('/customers/CU3Ttx347VFA9lYT8dBOkwcu') % endif \ No newline at end of file diff --git a/scenarios/bank_account_create/executable.py b/scenarios/bank_account_create/executable.py index 32effce..1ce82da 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') bank_account = balanced.BankAccount( routing_number='121000358', diff --git a/scenarios/bank_account_create/python.mako b/scenarios/bank_account_create/python.mako index 6124dbd..eff7530 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') bank_account = balanced.BankAccount( routing_number='121000358', diff --git a/scenarios/bank_account_credit/executable.py b/scenarios/bank_account_credit/executable.py index 18b90f4..ee8b2a6 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3YBUkHZNRVugUmhBGE3A9G') bank_account.credit( - amount=2000 + 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 fc7833c..78e2bda 100644 --- a/scenarios/bank_account_credit/python.mako +++ b/scenarios/bank_account_credit/python.mako @@ -3,10 +3,10 @@ balanced.BankAccount().credit() % elif mode == 'request': import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3VFGbCg9X5lAzg2FdMhr5w') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3YBUkHZNRVugUmhBGE3A9G') bank_account.credit( - amount=2000 + amount=5000 ) % endif \ No newline at end of file diff --git a/scenarios/bank_account_debit/executable.py b/scenarios/bank_account_debit/executable.py index 6ee33ee..46c2c24 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2YEZjgBPUBzXgxXfjUeenw') 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 c93b7cb..7dddce9 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2YEZjgBPUBzXgxXfjUeenw') 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 99466e2..22d1016 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4') 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 f9c48e8..6130df3 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4') 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 c92ea7e..e6c8c4a 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 a989654..451b36f 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 2e267ac..f70c5ab 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') \ No newline at end of file +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4') \ No newline at end of file diff --git a/scenarios/bank_account_show/python.mako b/scenarios/bank_account_show/python.mako index 2331bb6..cff14a1 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4') % endif \ No newline at end of file diff --git a/scenarios/bank_account_update/executable.py b/scenarios/bank_account_update/executable.py index 8c5b602..74a8ead 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4') 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 751a1a0..d18f741 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4') 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 275bb3d..ce33c6c 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2YEZjgBPUBzXgxXfjUeenw') 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 295756f..aa39b04 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2RfTVAgg4CdTJrVc7RPw7s') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2YEZjgBPUBzXgxXfjUeenw') 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 33b9b38..dea5c2c 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG') \ No newline at end of file +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ30hb4BvSmoUMZiDdIMyz8K') \ 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 6d535ee..fe19044 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ30hb4BvSmoUMZiDdIMyz8K') % 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 ba6c305..29dea9a 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ30hb4BvSmoUMZiDdIMyz8K') 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 4e94039..f7d9a72 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ2Sy2Z4Bp2mARnCLztiu2VG') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ30hb4BvSmoUMZiDdIMyz8K') 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 3d244b0..4fa8171 100644 --- a/scenarios/callback_create/executable.py +++ b/scenarios/callback_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') callback = balanced.Callback( url='http://www.example.com/callback' diff --git a/scenarios/callback_create/python.mako b/scenarios/callback_create/python.mako index ea1284f..8e1ef02 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') callback = balanced.Callback( url='http://www.example.com/callback' diff --git a/scenarios/callback_delete/executable.py b/scenarios/callback_delete/executable.py index faef6bb..9a9aaab 100644 --- a/scenarios/callback_delete/executable.py +++ b/scenarios/callback_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -callback = balanced.Callback.fetch('/callbacks/CB37kedWD88LFkipaugpfZ9w') +callback = balanced.Callback.fetch('/callbacks/CB3dRHClJeZ4UFqbLZsR6vUW') callback.unstore() \ No newline at end of file diff --git a/scenarios/callback_delete/python.mako b/scenarios/callback_delete/python.mako index 915f497..a7818ce 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -callback = balanced.Callback.fetch('/callbacks/CB37kedWD88LFkipaugpfZ9w') +callback = balanced.Callback.fetch('/callbacks/CB3dRHClJeZ4UFqbLZsR6vUW') callback.unstore() % endif \ No newline at end of file diff --git a/scenarios/callback_list/executable.py b/scenarios/callback_list/executable.py index 3376ee5..bf536f7 100644 --- a/scenarios/callback_list/executable.py +++ b/scenarios/callback_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 2d93335..bee65d0 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 6f606ca..07b1b4b 100644 --- a/scenarios/callback_show/executable.py +++ b/scenarios/callback_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -callback = balanced.Callback.fetch('/callbacks/CB37kedWD88LFkipaugpfZ9w') \ No newline at end of file +callback = balanced.Callback.fetch('/callbacks/CB3dRHClJeZ4UFqbLZsR6vUW') \ No newline at end of file diff --git a/scenarios/callback_show/python.mako b/scenarios/callback_show/python.mako index 11be290..70db8a0 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -callback = balanced.Callback.fetch('/callbacks/CB37kedWD88LFkipaugpfZ9w') +callback = balanced.Callback.fetch('/callbacks/CB3dRHClJeZ4UFqbLZsR6vUW') % 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 cfea3d5..587d422 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') -card.associate_to_customer('/customers/CU4xIyjtjtamnhjJ0E6iW3Kq') \ No newline at end of file +card = balanced.Card.fetch('/cards/CC3VAbj4Ol8xojVU6MjI0G1F') +card.associate_to_customer('/customers/CU3Ttx347VFA9lYT8dBOkwcu') \ 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 ef48da6..0a3104c 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') -card.associate_to_customer('/customers/CU4xIyjtjtamnhjJ0E6iW3Kq') +card = balanced.Card.fetch('/cards/CC3VAbj4Ol8xojVU6MjI0G1F') +card.associate_to_customer('/customers/CU3Ttx347VFA9lYT8dBOkwcu') % endif \ No newline at end of file diff --git a/scenarios/card_create/executable.py b/scenarios/card_create/executable.py index d2e4368..4df9346 100644 --- a/scenarios/card_create/executable.py +++ b/scenarios/card_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') card = balanced.Card( expiration_month='12', diff --git a/scenarios/card_create/python.mako b/scenarios/card_create/python.mako index e56cf75..a7442f3 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') card = balanced.Card( expiration_month='12', diff --git a/scenarios/card_debit/executable.py b/scenarios/card_debit/executable.py index 1db24d2..ec81e9e 100644 --- a/scenarios/card_debit/executable.py +++ b/scenarios/card_debit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') +card = balanced.Card.fetch('/cards/CC3VAbj4Ol8xojVU6MjI0G1F') 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 a11a75c..74ef4cd 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') +card = balanced.Card.fetch('/cards/CC3VAbj4Ol8xojVU6MjI0G1F') 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 6c1c0ed..171aba2 100644 --- a/scenarios/card_delete/executable.py +++ b/scenarios/card_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') +card = balanced.Card.fetch('/cards/CC3txpMUnPuUSV6vGdaibuL4') card.unstore() \ No newline at end of file diff --git a/scenarios/card_delete/python.mako b/scenarios/card_delete/python.mako index 9e1a46f..06867c4 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') +card = balanced.Card.fetch('/cards/CC3txpMUnPuUSV6vGdaibuL4') 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 81766b3..e9c850c 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -card_hold = balanced.CardHold.fetch('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') +card_hold = balanced.CardHold.fetch('/card_holds/HL3iJ3toXGtGHwOyVMD9aT71') 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 ceacddc..2771d90 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -card_hold = balanced.CardHold.fetch('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') +card_hold = balanced.CardHold.fetch('/card_holds/HL3iJ3toXGtGHwOyVMD9aT71') 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 e3cb524..b638a31 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -card = balanced.Card.fetch('/cards/CC3cqYicdXFN8T1nX3frfRCW') +card = balanced.Card.fetch('/cards/CC3hYX4uMMrNuO0lbYMY0PP9') 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 858cb1d..6a21df3 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -card = balanced.Card.fetch('/cards/CC3cqYicdXFN8T1nX3frfRCW') +card = balanced.Card.fetch('/cards/CC3hYX4uMMrNuO0lbYMY0PP9') 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 ba6e1d3..43fd0e3 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 6095a9a..f33fc47 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 91b296b..3ab8d6a 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -card_hold = balanced.CardHold.fetch('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') \ No newline at end of file +card_hold = balanced.CardHold.fetch('/card_holds/HL3iJ3toXGtGHwOyVMD9aT71') \ No newline at end of file diff --git a/scenarios/card_hold_show/python.mako b/scenarios/card_hold_show/python.mako index 8e83fc9..8261cec 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -card_hold = balanced.CardHold.fetch('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') +card_hold = balanced.CardHold.fetch('/card_holds/HL3iJ3toXGtGHwOyVMD9aT71') % endif \ No newline at end of file diff --git a/scenarios/card_hold_update/executable.py b/scenarios/card_hold_update/executable.py index b5ccb40..ddf9925 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -card_hold = balanced.CardHold.fetch('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') +card_hold = balanced.CardHold.fetch('/card_holds/HL3iJ3toXGtGHwOyVMD9aT71') 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 003e059..a1616a6 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -card_hold = balanced.CardHold.fetch('/card_holds/HL3dgrKQhecdILFZKW0FQLYs') +card_hold = balanced.CardHold.fetch('/card_holds/HL3iJ3toXGtGHwOyVMD9aT71') 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 117ca86..285597d 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -card_hold = balanced.CardHold.fetch('/card_holds/HL3mplcWSeG79TTxpFyHlxTh') +card_hold = balanced.CardHold.fetch('/card_holds/HL3qaOBRFhWgKwSPz7bCetSn') 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 f6fdaa4..64ee598 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -card_hold = balanced.CardHold.fetch('/card_holds/HL3mplcWSeG79TTxpFyHlxTh') +card_hold = balanced.CardHold.fetch('/card_holds/HL3qaOBRFhWgKwSPz7bCetSn') 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 9cc19dd..1342f70 100644 --- a/scenarios/card_list/executable.py +++ b/scenarios/card_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 53f04d9..1a9ca75 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 59ccc4b..e6c8cc8 100644 --- a/scenarios/card_show/executable.py +++ b/scenarios/card_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') \ No newline at end of file +card = balanced.Card.fetch('/cards/CC3txpMUnPuUSV6vGdaibuL4') \ No newline at end of file diff --git a/scenarios/card_show/python.mako b/scenarios/card_show/python.mako index bb39d83..73332ec 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') +card = balanced.Card.fetch('/cards/CC3txpMUnPuUSV6vGdaibuL4') % endif \ No newline at end of file diff --git a/scenarios/card_update/executable.py b/scenarios/card_update/executable.py index 20b28f4..c088c04 100644 --- a/scenarios/card_update/executable.py +++ b/scenarios/card_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') +card = balanced.Card.fetch('/cards/CC3txpMUnPuUSV6vGdaibuL4') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/card_update/python.mako b/scenarios/card_update/python.mako index 647453b..c60ed55 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -card = balanced.Card.fetch('/cards/CC3q6xpE6zCz8OZTHcXYvHtS') +card = balanced.Card.fetch('/cards/CC3txpMUnPuUSV6vGdaibuL4') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/credit_list/executable.py b/scenarios/credit_list/executable.py index 4d2cb01..56e8d4f 100644 --- a/scenarios/credit_list/executable.py +++ b/scenarios/credit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 ec4f4a3..eaf9517 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 e7bc892..c515b14 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi/credits') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4/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 064056e..433c17b 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2Yl8BXIiDIdRGu75Ef2mhi/credits') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4/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 1899786..845ce90 100644 --- a/scenarios/credit_show/executable.py +++ b/scenarios/credit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -credit = balanced.Credit.fetch('/credits/CR3DLTIjMve5idvjBrXNKBHE') \ No newline at end of file +credit = balanced.Credit.fetch('/credits/CR3H2YtoAbpQCQ4Ey3RTLxxc') \ No newline at end of file diff --git a/scenarios/credit_show/python.mako b/scenarios/credit_show/python.mako index 23318bb..901954d 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -credit = balanced.Credit.fetch('/credits/CR3DLTIjMve5idvjBrXNKBHE') +credit = balanced.Credit.fetch('/credits/CR3H2YtoAbpQCQ4Ey3RTLxxc') % endif \ No newline at end of file diff --git a/scenarios/credit_update/executable.py b/scenarios/credit_update/executable.py index 612a13a..06befaf 100644 --- a/scenarios/credit_update/executable.py +++ b/scenarios/credit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -credit = balanced.Credit.fetch('/credits/CR3DLTIjMve5idvjBrXNKBHE') +credit = balanced.Credit.fetch('/credits/CR3H2YtoAbpQCQ4Ey3RTLxxc') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/credit_update/python.mako b/scenarios/credit_update/python.mako index fcf9176..2618cf9 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -credit = balanced.Credit.fetch('/credits/CR3DLTIjMve5idvjBrXNKBHE') +credit = balanced.Credit.fetch('/credits/CR3H2YtoAbpQCQ4Ey3RTLxxc') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/customer_create/executable.py b/scenarios/customer_create/executable.py index e269fdb..01ca5eb 100644 --- a/scenarios/customer_create/executable.py +++ b/scenarios/customer_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') customer = balanced.Customer( dob_year=1963, diff --git a/scenarios/customer_create/python.mako b/scenarios/customer_create/python.mako index 6e5fc68..8c9a972 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') customer = balanced.Customer( dob_year=1963, diff --git a/scenarios/customer_delete/executable.py b/scenarios/customer_delete/executable.py index 8a643c4..0ea9d48 100644 --- a/scenarios/customer_delete/executable.py +++ b/scenarios/customer_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -customer = balanced.Customer.fetch('/customers/CU3QDD1R3iMoGbwiCnoHfd6W') +customer = balanced.Customer.fetch('/customers/CU3Ttx347VFA9lYT8dBOkwcu') customer.unstore() \ No newline at end of file diff --git a/scenarios/customer_delete/python.mako b/scenarios/customer_delete/python.mako index df3bbd7..cfae591 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -customer = balanced.Customer.fetch('/customers/CU3QDD1R3iMoGbwiCnoHfd6W') +customer = balanced.Customer.fetch('/customers/CU3Ttx347VFA9lYT8dBOkwcu') customer.unstore() % endif \ No newline at end of file diff --git a/scenarios/customer_list/executable.py b/scenarios/customer_list/executable.py index 25ce6bc..629dcb4 100644 --- a/scenarios/customer_list/executable.py +++ b/scenarios/customer_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 95cefa8..0ec70ce 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 5795af1..7ffc526 100644 --- a/scenarios/customer_show/executable.py +++ b/scenarios/customer_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -customer = balanced.Customer.fetch('/customers/CU3LNFIXs33DopZuksrfp0KY') \ No newline at end of file +customer = balanced.Customer.fetch('/customers/CU3OK2QNsz3KjXHMz1GCH1Cq') \ No newline at end of file diff --git a/scenarios/customer_show/python.mako b/scenarios/customer_show/python.mako index 82fafe5..ff52c7a 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -customer = balanced.Customer.fetch('/customers/CU3LNFIXs33DopZuksrfp0KY') +customer = balanced.Customer.fetch('/customers/CU3OK2QNsz3KjXHMz1GCH1Cq') % endif \ No newline at end of file diff --git a/scenarios/customer_update/executable.py b/scenarios/customer_update/executable.py index 19ec9ea..3eb499b 100644 --- a/scenarios/customer_update/executable.py +++ b/scenarios/customer_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -customer = balanced.Debit.fetch('/customers/CU3LNFIXs33DopZuksrfp0KY') +customer = balanced.Debit.fetch('/customers/CU3OK2QNsz3KjXHMz1GCH1Cq') 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 88316cb..02554fb 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -customer = balanced.Debit.fetch('/customers/CU3LNFIXs33DopZuksrfp0KY') +customer = balanced.Debit.fetch('/customers/CU3OK2QNsz3KjXHMz1GCH1Cq') 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 e057b1a..a635bde 100644 --- a/scenarios/debit_list/executable.py +++ b/scenarios/debit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 56f794c..584ab99 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 10deebe..6854dd5 100644 --- a/scenarios/debit_show/executable.py +++ b/scenarios/debit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -debit = balanced.Debit.fetch('/debits/WD3xghyI3uMTgjRP5aJugoQy') \ No newline at end of file +debit = balanced.Debit.fetch('/debits/WD3zpxOf9kLoeFmf6dYPfrYW') \ No newline at end of file diff --git a/scenarios/debit_show/python.mako b/scenarios/debit_show/python.mako index b92fe37..7d0cb55 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -debit = balanced.Debit.fetch('/debits/WD3xghyI3uMTgjRP5aJugoQy') +debit = balanced.Debit.fetch('/debits/WD3zpxOf9kLoeFmf6dYPfrYW') % endif \ No newline at end of file diff --git a/scenarios/debit_update/executable.py b/scenarios/debit_update/executable.py index fd88fbb..18da006 100644 --- a/scenarios/debit_update/executable.py +++ b/scenarios/debit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -debit = balanced.Debit.fetch('/debits/WD3xghyI3uMTgjRP5aJugoQy') +debit = balanced.Debit.fetch('/debits/WD3zpxOf9kLoeFmf6dYPfrYW') 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 9a45020..907c301 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -debit = balanced.Debit.fetch('/debits/WD3xghyI3uMTgjRP5aJugoQy') +debit = balanced.Debit.fetch('/debits/WD3zpxOf9kLoeFmf6dYPfrYW') 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 761235b..57f7399 100644 --- a/scenarios/event_list/executable.py +++ b/scenarios/event_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 7ed8010..297b1cf 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 4bb6bdb..12a3318 100644 --- a/scenarios/event_show/executable.py +++ b/scenarios/event_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -event = balanced.Event.fetch('/events/EV610bd3fe788111e3b3e8026ba7cd33d0') \ No newline at end of file +event = balanced.Event.fetch('/events/EV64ecf7cc852011e3a0ed026ba7c1aba6') \ No newline at end of file diff --git a/scenarios/event_show/python.mako b/scenarios/event_show/python.mako index 268994d..29d365a 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -event = balanced.Event.fetch('/events/EV610bd3fe788111e3b3e8026ba7cd33d0') +event = balanced.Event.fetch('/events/EV64ecf7cc852011e3a0ed026ba7c1aba6') % endif \ No newline at end of file diff --git a/scenarios/order_create/executable.py b/scenarios/order_create/executable.py index 7492118..41edda7 100644 --- a/scenarios/order_create/executable.py +++ b/scenarios/order_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') order = balanced.Order( description='Order #12341234' diff --git a/scenarios/order_create/python.mako b/scenarios/order_create/python.mako index 85a34cf..2adea76 100644 --- a/scenarios/order_create/python.mako +++ b/scenarios/order_create/python.mako @@ -3,7 +3,7 @@ balanced.Order() % elif mode == 'request': import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') order = balanced.Order( description='Order #12341234' diff --git a/scenarios/order_list/executable.py b/scenarios/order_list/executable.py index 458d7ae..b0b4637 100644 --- a/scenarios/order_list/executable.py +++ b/scenarios/order_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 13978a4..a1b7c0c 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 c8e4e14..f0dbcd5 100644 --- a/scenarios/order_show/executable.py +++ b/scenarios/order_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -order = balanced.Order.fetch('/orders/OR47s8iZqDt662LdYa5My3oK') \ No newline at end of file +order = balanced.Order.fetch('/orders/OR4bkzheH5eeQpl0J9Dmrx27') \ No newline at end of file diff --git a/scenarios/order_show/python.mako b/scenarios/order_show/python.mako index 3eaaec1..22fb4f8 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -order = balanced.Order.fetch('/orders/OR47s8iZqDt662LdYa5My3oK') +order = balanced.Order.fetch('/orders/OR4bkzheH5eeQpl0J9Dmrx27') % endif \ No newline at end of file diff --git a/scenarios/order_update/executable.py b/scenarios/order_update/executable.py index 0556b10..e110724 100644 --- a/scenarios/order_update/executable.py +++ b/scenarios/order_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -order = balanced.Order.fetch('/orders/OR47s8iZqDt662LdYa5My3oK') +order = balanced.Order.fetch('/orders/OR4bkzheH5eeQpl0J9Dmrx27') 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 65454ef..e6b439f 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -order = balanced.Order.fetch('/orders/OR47s8iZqDt662LdYa5My3oK') +order = balanced.Order.fetch('/orders/OR4bkzheH5eeQpl0J9Dmrx27') 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 af90d2e..b91cab6 100644 --- a/scenarios/refund_create/executable.py +++ b/scenarios/refund_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -debit = balanced.Debit.fetch('/debits/WD4d9CgVjg8lX8g8l1638Bor') +debit = balanced.Debit.fetch('/debits/WD4fC2Wmv7z7LxWLQptwEv2n') 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 ed1dc34..2817a42 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -debit = balanced.Debit.fetch('/debits/WD4d9CgVjg8lX8g8l1638Bor') +debit = balanced.Debit.fetch('/debits/WD4fC2Wmv7z7LxWLQptwEv2n') 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 a693f50..974a45f 100644 --- a/scenarios/refund_list/executable.py +++ b/scenarios/refund_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 b410c2c..5d6fbcf 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 8428c3a..954f4e7 100644 --- a/scenarios/refund_show/executable.py +++ b/scenarios/refund_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -refund = balanced.Refund.fetch('/refunds/RF4eXqVaytz4vN4NwOAfFHXO') \ No newline at end of file +refund = balanced.Refund.fetch('/refunds/RF4jM7mlJNnsZ3KWSQiQxFSw') \ No newline at end of file diff --git a/scenarios/refund_show/python.mako b/scenarios/refund_show/python.mako index ab7cca8..cbc7abf 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -refund = balanced.Refund.fetch('/refunds/RF4eXqVaytz4vN4NwOAfFHXO') +refund = balanced.Refund.fetch('/refunds/RF4jM7mlJNnsZ3KWSQiQxFSw') % endif \ No newline at end of file diff --git a/scenarios/refund_update/executable.py b/scenarios/refund_update/executable.py index 4766507..28f67f8 100644 --- a/scenarios/refund_update/executable.py +++ b/scenarios/refund_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -refund = balanced.Refund.fetch('/refunds/RF4eXqVaytz4vN4NwOAfFHXO') +refund = balanced.Refund.fetch('/refunds/RF4jM7mlJNnsZ3KWSQiQxFSw') 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 9ecc93d..50ceb2e 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -refund = balanced.Refund.fetch('/refunds/RF4eXqVaytz4vN4NwOAfFHXO') +refund = balanced.Refund.fetch('/refunds/RF4jM7mlJNnsZ3KWSQiQxFSw') 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 fbb4916..3d6c7a4 100644 --- a/scenarios/reversal_create/executable.py +++ b/scenarios/reversal_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -credit = balanced.Credit.fetch('/credits/CR4lqO3NwBWdLYGvMAUeKt7g') +credit = balanced.Credit.fetch('/credits/CR4qcbNcps5TuZFDDcV1XZdu') 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 2c6fd33..1dc9d99 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -credit = balanced.Credit.fetch('/credits/CR4lqO3NwBWdLYGvMAUeKt7g') +credit = balanced.Credit.fetch('/credits/CR4qcbNcps5TuZFDDcV1XZdu') 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 a5343b5..daca355 100644 --- a/scenarios/reversal_list/executable.py +++ b/scenarios/reversal_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 7907444..9cf6947 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') 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 52ddeba..fd7ea2f 100644 --- a/scenarios/reversal_show/executable.py +++ b/scenarios/reversal_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -refund = balanced.Reversal.fetch('/reversals/RV4mvdReJFZTySZXe8IyQ8Bi') \ No newline at end of file +refund = balanced.Reversal.fetch('/reversals/RV4rAoQcd3EkOS6rLAUFLrs4') \ No newline at end of file diff --git a/scenarios/reversal_show/python.mako b/scenarios/reversal_show/python.mako index ce52896..31565e5 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -refund = balanced.Reversal.fetch('/reversals/RV4mvdReJFZTySZXe8IyQ8Bi') +refund = balanced.Reversal.fetch('/reversals/RV4rAoQcd3EkOS6rLAUFLrs4') % endif \ No newline at end of file diff --git a/scenarios/reversal_update/executable.py b/scenarios/reversal_update/executable.py index 1f78272..d339659 100644 --- a/scenarios/reversal_update/executable.py +++ b/scenarios/reversal_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -reversal = balanced.Reversal.fetch('/reversals/RV4mvdReJFZTySZXe8IyQ8Bi') +reversal = balanced.Reversal.fetch('/reversals/RV4rAoQcd3EkOS6rLAUFLrs4') 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 7a065e9..17201b8 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-2IuKttETJEorSZLxA9tVbWBIWnRa1kC9P') +balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -reversal = balanced.Reversal.fetch('/reversals/RV4mvdReJFZTySZXe8IyQ8Bi') +reversal = balanced.Reversal.fetch('/reversals/RV4rAoQcd3EkOS6rLAUFLrs4') reversal.description = 'update this description' reversal.meta = { 'user.refund.count': '3', From 06c6487b1f8b0cdb0e0273e5be63181a8ad94a43 Mon Sep 17 00:00:00 2001 From: Matthew Francis-Landau Date: Fri, 24 Jan 2014 20:26:30 +0000 Subject: [PATCH 037/146] adding credit_to and debit_from to the order --- balanced/resources.py | 9 +++++++++ tests/test_suite.py | 14 ++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/balanced/resources.py b/balanced/resources.py index 6219f10..d8022d8 100644 --- a/balanced/resources.py +++ b/balanced/resources.py @@ -482,6 +482,15 @@ class Order(Resource): uri_gen = wac.URIGen('/orders', '{order}') + def credit_to(self, destination, amount, **kwargs): + return destination.credit(order=self.href, + amount=amount, + **kwargs) + + def debit_from(self, source, amount, **kwargs): + return source.debit(order=self.href, + amount=amount, + **kwargs) class Callback(Resource): """ diff --git a/tests/test_suite.py b/tests/test_suite.py index 784aa86..70f50d7 100644 --- a/tests/test_suite.py +++ b/tests/test_suite.py @@ -335,3 +335,17 @@ def test_order_restrictions(self): # not associated with the order with self.assertRaises(balanced.exc.BalancedError): another_bank_account.credit(amount=50, order=order) + + def test_order_helper_methods(self): + merchant = balanced.Customer().save() + order = merchant.create_order() + card = balanced.Card(**INTERNATIONAL_CARD).save() + + debit = order.debit_from(source=card, amount=1234) + bank_account = balanced.BankAccount( + account_number='1234567890', + routing_number='321174851', + name='Someone', + ).save() + bank_account.associate_to_customer(merchant) + order.credit_to(destination=bank_account, amount=1234) From 00a31ebe8970610329f1ce67f20d9f16df2c0563 Mon Sep 17 00:00:00 2001 From: Richie Date: Mon, 27 Jan 2014 10:53:08 -0800 Subject: [PATCH 038/146] Fix uri on customer credit scenario --- scenarios/customer_credit/executable.py | 4 ++-- scenarios/customer_credit/python.mako | 4 ++-- scenarios/customer_credit/request.mako | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scenarios/customer_credit/executable.py b/scenarios/customer_credit/executable.py index 040e4b8..5b33214 100644 --- a/scenarios/customer_credit/executable.py +++ b/scenarios/customer_credit/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') +balanced.configure('ak-test-2KZfoLyijij3Y6OyhDAvFRF9tXzelBLpD') -customer = balanced.Customer.find('/v1/customers/CUyABeNYx8vHAaP4KRsd1j4/credits') +customer = balanced.Customer.find('/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo') customer.credit(amount=100) \ No newline at end of file diff --git a/scenarios/customer_credit/python.mako b/scenarios/customer_credit/python.mako index d6f97f9..7b1b1d4 100644 --- a/scenarios/customer_credit/python.mako +++ b/scenarios/customer_credit/python.mako @@ -3,8 +3,8 @@ balanced.Customer.credit() % else: import balanced -balanced.configure('ak-test-14W5azoiV99O1XiPwZ3faH10MaUdZ1kCA') +balanced.configure('ak-test-2KZfoLyijij3Y6OyhDAvFRF9tXzelBLpD') -customer = balanced.Customer.find('/v1/customers/CUyABeNYx8vHAaP4KRsd1j4/credits') +customer = balanced.Customer.find('/v1/customers/CU5f64LhFMO8cf7N1sQSRVOo') customer.credit(amount=100) % endif \ No newline at end of file diff --git a/scenarios/customer_credit/request.mako b/scenarios/customer_credit/request.mako index 5f4d2e2..f15d0c7 100644 --- a/scenarios/customer_credit/request.mako +++ b/scenarios/customer_credit/request.mako @@ -1,5 +1,5 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -customer = balanced.Customer.find('${request['uri']}') +customer = balanced.Customer.find('${request['customer_uri']}') customer.credit(amount=${request['payload']['amount']}) \ No newline at end of file From 6f938a26806de3760433420788bf47b9b8401e71 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Mon, 27 Jan 2014 15:37:16 -0800 Subject: [PATCH 039/146] Update scenarios. Fix order_create scenario. --- scenario.cache | 279 +++++++++--------- 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 | 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 | 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 | 5 +- scenarios/order_create/python.mako | 5 +- scenarios/order_create/request.mako | 3 +- 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 +- 120 files changed, 348 insertions(+), 344 deletions(-) diff --git a/scenario.cache b/scenario.cache index 5411227..dc57ab2 100644 --- a/scenario.cache +++ b/scenario.cache @@ -1,40 +1,40 @@ { "accept_type": "application/vnd.api+json;revision=1.1", - "api_key": "ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I", + "api_key": "ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc", "api_key_create": { "request": { "uri": "/api_keys" }, - "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-01-24T17:53:03.663488Z\", \n \"href\": \"/api_keys/AK2TWX3j6gK68Qk8w4ZEqfmM\", \n \"id\": \"AK2TWX3j6gK68Qk8w4ZEqfmM\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-1pZph6JTpqVXlARGXWJFmmq8ZcLoKu8zn\"\n }\n ], \n \"links\": {}\n}" + "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}" }, "api_key_delete": { "request": { - "uri": "/api_keys/AK2TWX3j6gK68Qk8w4ZEqfmM" + "uri": "/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c" } }, "api_key_list": { "request": { "uri": "/api_keys" }, - "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-01-24T17:53:03.663488Z\", \n \"href\": \"/api_keys/AK2TWX3j6gK68Qk8w4ZEqfmM\", \n \"id\": \"AK2TWX3j6gK68Qk8w4ZEqfmM\", \n \"links\": {}, \n \"meta\": {}\n }, \n {\n \"created_at\": \"2014-01-24T17:52:53.304483Z\", \n \"href\": \"/api_keys/AK2Ii1LeK3SbxF4y6A5f3hK6\", \n \"id\": \"AK2Ii1LeK3SbxF4y6A5f3hK6\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I\"\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-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}" }, "api_key_show": { "request": { - "uri": "/api_keys/AK2TWX3j6gK68Qk8w4ZEqfmM" + "uri": "/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c" }, - "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-01-24T17:53:03.663488Z\", \n \"href\": \"/api_keys/AK2TWX3j6gK68Qk8w4ZEqfmM\", \n \"id\": \"AK2TWX3j6gK68Qk8w4ZEqfmM\", \n \"links\": {}, \n \"meta\": {}\n }\n ], \n \"links\": {}\n}" + "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}" }, "api_location": "https://api.balancedpayments.com", "api_rev": "rev1", "bank_account_associate_to_customer": { "request": { - "customer_href": "/customers/CU3Ttx347VFA9lYT8dBOkwcu", + "customer_href": "/customers/CU3eeasZ9yQ86uzzIYZkrPGg", "payload": { - "customer": "/customers/CU3Ttx347VFA9lYT8dBOkwcu" + "customer": "/customers/CU3eeasZ9yQ86uzzIYZkrPGg" }, - "uri": "/bank_accounts/BA3YBUkHZNRVugUmhBGE3A9G" + "uri": "/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0" }, - "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-24T17:54:02.935649Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA3YBUkHZNRVugUmhBGE3A9G\", \n \"id\": \"BA3YBUkHZNRVugUmhBGE3A9G\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU3Ttx347VFA9lYT8dBOkwcu\"\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-01-24T17:54:03.380811Z\"\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-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}" }, "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-01-24T17:54:02.935649Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA3YBUkHZNRVugUmhBGE3A9G\", \n \"id\": \"BA3YBUkHZNRVugUmhBGE3A9G\", \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-24T17:54:02.935654Z\"\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-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}" }, "bank_account_credit": { "request": { - "bank_account_href": "/bank_accounts/BA3YBUkHZNRVugUmhBGE3A9G", + "bank_account_href": "/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0", "payload": { "amount": 5000 }, - "uri": "/bank_accounts/BA3YBUkHZNRVugUmhBGE3A9G/credits" + "uri": "/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0/credits" }, - "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-24T17:54:27.467618Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR4qcbNcps5TuZFDDcV1XZdu\", \n \"id\": \"CR4qcbNcps5TuZFDDcV1XZdu\", \n \"links\": {\n \"customer\": \"CU3Ttx347VFA9lYT8dBOkwcu\", \n \"destination\": \"BA3YBUkHZNRVugUmhBGE3A9G\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR799-880-4514\", \n \"updated_at\": \"2014-01-24T17:54:27.908717Z\"\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-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}" }, "bank_account_debit": { "request": { - "bank_account_href": "/bank_accounts/BA2YEZjgBPUBzXgxXfjUeenw", + "bank_account_href": "/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S", "payload": { "amount": 5000, "appears_on_statement_as": "Statement text", "description": "Some descriptive text for the debit in the dashboard" }, - "uri": "/bank_accounts/BA2YEZjgBPUBzXgxXfjUeenw/debits" + "uri": "/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S/debits" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-24T17:53:19.664477Z\", \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/WD3bWlYlwiW4w0l7LNDaBYU2\", \n \"id\": \"WD3bWlYlwiW4w0l7LNDaBYU2\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"BA2YEZjgBPUBzXgxXfjUeenw\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W388-997-0082\", \n \"updated_at\": \"2014-01-24T17:53:20.167203Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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-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}" }, "bank_account_delete": { "request": { - "uri": "/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4" + "uri": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy" } }, "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-24T17:53:14.349979Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4\", \n \"id\": \"BA35XYq4oVujo1NADZ6vwCu4\", \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-24T17:53:14.349983Z\"\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-24T17:53:07.856789Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA2YEZjgBPUBzXgxXfjUeenw\", \n \"id\": \"BA2YEZjgBPUBzXgxXfjUeenw\", \n \"links\": {\n \"bank_account_verification\": \"BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-01-24T17:53:12.549815Z\"\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-24T17:52:54.443604Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA2JgwJrozEkYG86IYfFgXA6\", \n \"id\": \"BA2JgwJrozEkYG86IYfFgXA6\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU2J5ei9GWLvlSGbIcmC6qoO\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-01-24T17:52:54.443609Z\"\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-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}" }, "bank_account_show": { "request": { - "uri": "/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4" + "uri": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy" }, - "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-24T17:53:14.349979Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4\", \n \"id\": \"BA35XYq4oVujo1NADZ6vwCu4\", \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-24T17:53:14.349983Z\"\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-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}" }, "bank_account_update": { "request": { @@ -96,22 +96,22 @@ "twitter.id": "1234987650" } }, - "uri": "/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4" + "uri": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy" }, - "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-24T17:53:14.349979Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4\", \n \"id\": \"BA35XYq4oVujo1NADZ6vwCu4\", \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-24T17:53:18.014026Z\"\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-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}" }, "bank_account_verification_create": { "request": { - "bank_account_uri": "/bank_accounts/BA2YEZjgBPUBzXgxXfjUeenw", - "uri": "/bank_accounts/BA2YEZjgBPUBzXgxXfjUeenw/verifications" + "bank_account_uri": "/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S", + "uri": "/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S/verifications" }, - "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-24T17:53:09.290866Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"id\": \"BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"links\": {\n \"bank_account\": \"BA2YEZjgBPUBzXgxXfjUeenw\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-24T17:53:09.797613Z\", \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-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}" }, "bank_account_verification_show": { "request": { - "uri": "/verifications/BZ30hb4BvSmoUMZiDdIMyz8K" + "uri": "/verifications/BZ1FF2MHFH9upRu7C0QUwnby" }, - "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-24T17:53:09.290866Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"id\": \"BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"links\": {\n \"bank_account\": \"BA2YEZjgBPUBzXgxXfjUeenw\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-24T17:53:09.797613Z\", \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-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}" }, "bank_account_verification_update": { "request": { @@ -119,9 +119,9 @@ "amount_1": 1, "amount_2": 1 }, - "uri": "/verifications/BZ30hb4BvSmoUMZiDdIMyz8K" + "uri": "/verifications/BZ1FF2MHFH9upRu7C0QUwnby" }, - "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-24T17:53:09.290866Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"id\": \"BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"links\": {\n \"bank_account\": \"BA2YEZjgBPUBzXgxXfjUeenw\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-24T17:53:12.552232Z\", \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-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}" }, "callback_create": { "request": { @@ -130,28 +130,28 @@ }, "uri": "/callbacks" }, - "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB3dRHClJeZ4UFqbLZsR6vUW\", \n \"id\": \"CB3dRHClJeZ4UFqbLZsR6vUW\", \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/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}" }, "callback_delete": { "request": { - "uri": "/callbacks/CB3dRHClJeZ4UFqbLZsR6vUW" + "uri": "/callbacks/CB224374R2NSyoYBpDV4r7C2" } }, "callback_list": { "request": { "uri": "/callbacks" }, - "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB3dRHClJeZ4UFqbLZsR6vUW\", \n \"id\": \"CB3dRHClJeZ4UFqbLZsR6vUW\", \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/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}" }, "callback_show": { "request": { - "uri": "/callbacks/CB3dRHClJeZ4UFqbLZsR6vUW" + "uri": "/callbacks/CB224374R2NSyoYBpDV4r7C2" }, - "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB3dRHClJeZ4UFqbLZsR6vUW\", \n \"id\": \"CB3dRHClJeZ4UFqbLZsR6vUW\", \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/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}" }, "card": { "address": { - "city": "Balo Alto", + "city": null, "country_code": "USA", "line1": null, "line2": null, @@ -160,36 +160,34 @@ }, "avs_postal_match": "yes", "avs_result": "Postal code matches, but street address not verified.", - "avs_street_match": "yes", + "avs_street_match": null, "brand": "Visa", - "created_at": "2014-01-24T17:52:56.610686Z", + "created_at": "2014-01-27T22:55:54.558589Z", "cvv": null, "cvv_match": null, "cvv_result": null, "expiration_month": 4, "expiration_year": 2016, "fingerprint": "979a26c05f2fb1c7ae38656312b176da2c9be1d938d442040bc79539caac6c0d", - "href": "/cards/CC2M0ypYw0wP8B71Y6x3B0D0", - "id": "CC2M0ypYw0wP8B71Y6x3B0D0", + "href": "/cards/CC1nrXVKmfh0ouOS7zxI6X8q", + "id": "CC1nrXVKmfh0ouOS7zxI6X8q", "is_verified": true, "links": { - "customer": "CU2K9f4Ui5PdmMLqEEvHOIog" - }, - "meta": { - "client_ip_address": "54.224.61.244" + "customer": "CU1iDnBalzHoZg47Np92rNrV" }, + "meta": {}, "name": "Benny Riemann", "number": "xxxxxxxxxxxx1111", - "updated_at": "2014-01-24T17:52:56.610689Z" + "updated_at": "2014-01-27T22:55:54.558592Z" }, "card_associate_to_customer": { "request": { "payload": { - "customer": "/customers/CU3Ttx347VFA9lYT8dBOkwcu" + "customer": "/customers/CU3eeasZ9yQ86uzzIYZkrPGg" }, - "uri": "/cards/CC3VAbj4Ol8xojVU6MjI0G1F" + "uri": "/cards/CC3kqm84fxh50avenrUsSKbu" }, - "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-24T17:54:00.240776Z\", \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/CC3VAbj4Ol8xojVU6MjI0G1F\", \n \"id\": \"CC3VAbj4Ol8xojVU6MjI0G1F\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU3Ttx347VFA9lYT8dBOkwcu\"\n }, \n \"meta\": {\n \"client_ip_address\": \"54.224.61.244\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-24T17:54:00.836570Z\"\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-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}" }, "card_create": { "request": { @@ -201,58 +199,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-01-24T17:54:00.240776Z\", \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/CC3VAbj4Ol8xojVU6MjI0G1F\", \n \"id\": \"CC3VAbj4Ol8xojVU6MjI0G1F\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {\n \"client_ip_address\": \"54.224.61.244\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-24T17:54:00.240778Z\"\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-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}" }, "card_debit": { "request": { - "card_href": "/cards/CC3VAbj4Ol8xojVU6MjI0G1F", + "card_href": "/cards/CC3kqm84fxh50avenrUsSKbu", "payload": { "amount": 5000, "appears_on_statement_as": "Statement text", "description": "Some descriptive text for the debit in the dashboard" }, - "uri": "/cards/CC3VAbj4Ol8xojVU6MjI0G1F/debits" + "uri": "/cards/CC3kqm84fxh50avenrUsSKbu/debits" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-24T17:54:18.051707Z\", \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/WD4fC2Wmv7z7LxWLQptwEv2n\", \n \"id\": \"WD4fC2Wmv7z7LxWLQptwEv2n\", \n \"links\": {\n \"customer\": \"CU3Ttx347VFA9lYT8dBOkwcu\", \n \"order\": null, \n \"source\": \"CC3VAbj4Ol8xojVU6MjI0G1F\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W543-191-8122\", \n \"updated_at\": \"2014-01-24T17:54:20.644370Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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-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}" }, "card_delete": { "request": { - "uri": "/cards/CC3txpMUnPuUSV6vGdaibuL4" + "uri": "/cards/CC2uc8iPDjgyxOXHVtnZloyI" } }, "card_hold_capture": { "request": { - "card_hold_href": "/card_holds/HL3iJ3toXGtGHwOyVMD9aT71", + "card_hold_href": "/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S", "payload": { "appears_on_statement_as": "ShowsUpOnStmt", "description": "Some descriptive text for the debit in the dashboard" }, - "uri": "/card_holds/HL3iJ3toXGtGHwOyVMD9aT71/debits" + "uri": "/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S/debits" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-01-24T17:53:30.361991Z\", \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/WD3nYFoEh5ipuJQyCSxgBX5l\", \n \"id\": \"WD3nYFoEh5ipuJQyCSxgBX5l\", \n \"links\": {\n \"customer\": \"CU2J5ei9GWLvlSGbIcmC6qoO\", \n \"order\": null, \n \"source\": \"CC3hYX4uMMrNuO0lbYMY0PP9\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W849-149-0225\", \n \"updated_at\": \"2014-01-24T17:53:31.160769Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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-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}" }, "card_hold_create": { "request": { - "card_href": "/cards/CC3hYX4uMMrNuO0lbYMY0PP9", + "card_href": "/cards/CC2abDOQVm5aNFhHpcRvWS02", "payload": { "amount": 5000, "description": "Some descriptive text for the debit in the dashboard" }, - "uri": "/cards/CC3hYX4uMMrNuO0lbYMY0PP9/card_holds" + "uri": "/cards/CC2abDOQVm5aNFhHpcRvWS02/card_holds" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-24T17:53:32.311011Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-01-31T17:53:32.494443Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3qaOBRFhWgKwSPz7bCetSn\", \n \"id\": \"HL3qaOBRFhWgKwSPz7bCetSn\", \n \"links\": {\n \"card\": \"CC3hYX4uMMrNuO0lbYMY0PP9\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL122-317-9482\", \n \"updated_at\": \"2014-01-24T17:53:32.588812Z\"\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-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}" }, "card_hold_list": { "request": { "uri": "/card_holds" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-24T17:53:25.689100Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-01-31T17:53:25.829067Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3iJ3toXGtGHwOyVMD9aT71\", \n \"id\": \"HL3iJ3toXGtGHwOyVMD9aT71\", \n \"links\": {\n \"card\": \"CC3hYX4uMMrNuO0lbYMY0PP9\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL997-114-4181\", \n \"updated_at\": \"2014-01-24T17:53:25.947213Z\"\n }, \n {\n \"amount\": 10000000, \n \"created_at\": \"2014-01-24T17:52:57.389512Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-01-31T17:53:00.111194Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL2MTrBIB9ATWPYRy9OIJGAo\", \n \"id\": \"HL2MTrBIB9ATWPYRy9OIJGAo\", \n \"links\": {\n \"card\": \"CC2M0ypYw0wP8B71Y6x3B0D0\", \n \"debit\": \"WD2P2E02ymh7Hwt8b5AvQf4c\"\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL127-235-6240\", \n \"updated_at\": \"2014-01-24T17:53:02.935658Z\"\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-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}" }, "card_hold_show": { "request": { - "uri": "/card_holds/HL3iJ3toXGtGHwOyVMD9aT71" + "uri": "/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-24T17:53:25.689100Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-01-31T17:53:25.829067Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3iJ3toXGtGHwOyVMD9aT71\", \n \"id\": \"HL3iJ3toXGtGHwOyVMD9aT71\", \n \"links\": {\n \"card\": \"CC3hYX4uMMrNuO0lbYMY0PP9\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL997-114-4181\", \n \"updated_at\": \"2014-01-24T17:53:25.947213Z\"\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-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}" }, "card_hold_update": { "request": { @@ -263,31 +261,31 @@ "meaningful.key": "some.value" } }, - "uri": "/card_holds/HL3iJ3toXGtGHwOyVMD9aT71" + "uri": "/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-24T17:53:25.689100Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"expires_at\": \"2014-01-31T17:53:25.829067Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3iJ3toXGtGHwOyVMD9aT71\", \n \"id\": \"HL3iJ3toXGtGHwOyVMD9aT71\", \n \"links\": {\n \"card\": \"CC3hYX4uMMrNuO0lbYMY0PP9\", \n \"debit\": null\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"transaction_number\": \"HL997-114-4181\", \n \"updated_at\": \"2014-01-24T17:53:29.251912Z\"\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-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}" }, "card_hold_void": { "request": { "payload": { "is_void": "true" }, - "uri": "/card_holds/HL3qaOBRFhWgKwSPz7bCetSn" + "uri": "/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG" }, - "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-24T17:53:32.311011Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-01-31T17:53:32.494443Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL3qaOBRFhWgKwSPz7bCetSn\", \n \"id\": \"HL3qaOBRFhWgKwSPz7bCetSn\", \n \"links\": {\n \"card\": \"CC3hYX4uMMrNuO0lbYMY0PP9\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL122-317-9482\", \n \"updated_at\": \"2014-01-24T17:53:33.396318Z\"\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-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}" }, - "card_id": "CC2M0ypYw0wP8B71Y6x3B0D0", + "card_id": "CC1nrXVKmfh0ouOS7zxI6X8q", "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-24T17:53:35.317225Z\", \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/CC3txpMUnPuUSV6vGdaibuL4\", \n \"id\": \"CC3txpMUnPuUSV6vGdaibuL4\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-24T17:53:35.317230Z\"\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-24T17:53:25.031579Z\", \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/CC3hYX4uMMrNuO0lbYMY0PP9\", \n \"id\": \"CC3hYX4uMMrNuO0lbYMY0PP9\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU2J5ei9GWLvlSGbIcmC6qoO\"\n }, \n \"meta\": {\n \"client_ip_address\": \"54.224.61.244\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-24T17:53:25.683657Z\"\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-01-24T17:52:56.610686Z\", \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/CC2M0ypYw0wP8B71Y6x3B0D0\", \n \"id\": \"CC2M0ypYw0wP8B71Y6x3B0D0\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU2K9f4Ui5PdmMLqEEvHOIog\"\n }, \n \"meta\": {\n \"client_ip_address\": \"54.224.61.244\"\n }, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-01-24T17:52:56.610689Z\"\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-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}" }, "card_show": { "request": { - "uri": "/cards/CC3txpMUnPuUSV6vGdaibuL4" + "uri": "/cards/CC2uc8iPDjgyxOXHVtnZloyI" }, - "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-24T17:53:35.317225Z\", \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/CC3txpMUnPuUSV6vGdaibuL4\", \n \"id\": \"CC3txpMUnPuUSV6vGdaibuL4\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-24T17:53:35.317230Z\"\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-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}" }, "card_update": { "request": { @@ -298,30 +296,30 @@ "twitter.id": "1234987650" } }, - "uri": "/cards/CC3txpMUnPuUSV6vGdaibuL4" + "uri": "/cards/CC2uc8iPDjgyxOXHVtnZloyI" }, - "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-24T17:53:35.317225Z\", \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/CC3txpMUnPuUSV6vGdaibuL4\", \n \"id\": \"CC3txpMUnPuUSV6vGdaibuL4\", \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-24T17:53:38.625694Z\"\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-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}" }, - "card_uri": "/cards/CC2M0ypYw0wP8B71Y6x3B0D0", - "cards_uri": "/customers/CU2K9f4Ui5PdmMLqEEvHOIog/cards", + "card_uri": "/cards/CC1nrXVKmfh0ouOS7zxI6X8q", + "cards_uri": "/customers/CU1iDnBalzHoZg47Np92rNrV/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-24T17:53:47.335281Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR3H2YtoAbpQCQ4Ey3RTLxxc\", \n \"id\": \"CR3H2YtoAbpQCQ4Ey3RTLxxc\", \n \"links\": {\n \"customer\": \"CU3E3HmlvpesH6rPOltSbgUK\", \n \"destination\": \"BA3FmIjnXmXxUX793Ah7qeLS\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR131-769-8772\", \n \"updated_at\": \"2014-01-24T17:53:47.669382Z\"\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-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}" }, "credit_list_bank_account": { "request": { - "bank_account_href": "/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4", - "uri": "/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4/credits" + "bank_account_href": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy", + "uri": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy/credits" }, - "response": "{\n \"links\": {}, \n \"meta\": {\n \"first\": \"/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4/credits?limit=10&offset=0\", \n \"href\": \"/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4/credits?limit=10&offset=0\", \n \"last\": \"/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4/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/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}" }, "credit_show": { "request": { - "uri": "/credits/CR3H2YtoAbpQCQ4Ey3RTLxxc" + "uri": "/credits/CR2UtQgq6L3FPd1YoOc8eyOC" }, - "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-24T17:53:47.335281Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR3H2YtoAbpQCQ4Ey3RTLxxc\", \n \"id\": \"CR3H2YtoAbpQCQ4Ey3RTLxxc\", \n \"links\": {\n \"customer\": \"CU3E3HmlvpesH6rPOltSbgUK\", \n \"destination\": \"BA3FmIjnXmXxUX793Ah7qeLS\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR131-769-8772\", \n \"updated_at\": \"2014-01-24T17:53:47.669382Z\"\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-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}" }, "credit_update": { "request": { @@ -332,9 +330,9 @@ "facebook.id": "1234567890" } }, - "uri": "/credits/CR3H2YtoAbpQCQ4Ey3RTLxxc" + "uri": "/credits/CR2UtQgq6L3FPd1YoOc8eyOC" }, - "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-24T17:53:47.335281Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for credit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR3H2YtoAbpQCQ4Ey3RTLxxc\", \n \"id\": \"CR3H2YtoAbpQCQ4Ey3RTLxxc\", \n \"links\": {\n \"customer\": \"CU3E3HmlvpesH6rPOltSbgUK\", \n \"destination\": \"BA3FmIjnXmXxUX793Ah7qeLS\", \n \"order\": null\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR131-769-8772\", \n \"updated_at\": \"2014-01-24T17:53:51.651710Z\"\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-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}" }, "customer": { "address": { @@ -346,13 +344,13 @@ "state": null }, "business_name": null, - "created_at": "2014-01-24T17:52:54.948822Z", + "created_at": "2014-01-27T22:55:50.253066Z", "dob_month": null, "dob_year": null, "ein": null, "email": null, - "href": "/customers/CU2K9f4Ui5PdmMLqEEvHOIog", - "id": "CU2K9f4Ui5PdmMLqEEvHOIog", + "href": "/customers/CU1iDnBalzHoZg47Np92rNrV", + "id": "CU1iDnBalzHoZg47Np92rNrV", "links": { "destination": null, "source": null @@ -362,7 +360,7 @@ "name": null, "phone": null, "ssn_last4": null, - "updated_at": "2014-01-24T17:52:55.288674Z" + "updated_at": "2014-01-27T22:55:50.767858Z" }, "customer_create": { "request": { @@ -376,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-24T17:53:58.374308Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU3Ttx347VFA9lYT8dBOkwcu\", \n \"id\": \"CU3Ttx347VFA9lYT8dBOkwcu\", \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-24T17:53:58.661744Z\"\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-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}" }, "customer_delete": { "request": { - "uri": "/customers/CU3Ttx347VFA9lYT8dBOkwcu" + "uri": "/customers/CU3eeasZ9yQ86uzzIYZkrPGg" } }, "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-24T17:53:54.160308Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU3OK2QNsz3KjXHMz1GCH1Cq\", \n \"id\": \"CU3OK2QNsz3KjXHMz1GCH1Cq\", \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-24T17:53:54.460103Z\"\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-24T17:53:44.667322Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU3E3HmlvpesH6rPOltSbgUK\", \n \"id\": \"CU3E3HmlvpesH6rPOltSbgUK\", \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-24T17:53:45.157602Z\"\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-24T17:52:54.948822Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU2K9f4Ui5PdmMLqEEvHOIog\", \n \"id\": \"CU2K9f4Ui5PdmMLqEEvHOIog\", \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-24T17:52:55.288674Z\"\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-24T17:52:54.004770Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU2J5ei9GWLvlSGbIcmC6qoO\", \n \"id\": \"CU2J5ei9GWLvlSGbIcmC6qoO\", \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-24T17:52:54.132745Z\"\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-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}" }, "customer_show": { "request": { - "uri": "/customers/CU3OK2QNsz3KjXHMz1GCH1Cq" + "uri": "/customers/CU33Y4cut21qu1d1lGYDBseQ" }, - "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-24T17:53:54.160308Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU3OK2QNsz3KjXHMz1GCH1Cq\", \n \"id\": \"CU3OK2QNsz3KjXHMz1GCH1Cq\", \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-24T17:53:54.460103Z\"\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-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}" }, "customer_update": { "request": { @@ -403,9 +401,9 @@ "shipping-preference": "ground" } }, - "uri": "/customers/CU3OK2QNsz3KjXHMz1GCH1Cq" + "uri": "/customers/CU33Y4cut21qu1d1lGYDBseQ" }, - "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-24T17:53:54.160308Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": \"email@newdomain.com\", \n \"href\": \"/customers/CU3OK2QNsz3KjXHMz1GCH1Cq\", \n \"id\": \"CU3OK2QNsz3KjXHMz1GCH1Cq\", \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-24T17:53:57.276019Z\"\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-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}" }, "customers_uri": "/customers", "debit": { @@ -413,26 +411,28 @@ { "amount": 10000000, "appears_on_statement_as": "BAL*example.com", - "created_at": "2014-01-24T17:52:59.305282Z", + "created_at": "2014-01-27T22:55:56.757487Z", "currency": "USD", "description": null, "failure_reason": null, "failure_reason_code": null, - "href": "/debits/WD2P2E02ymh7Hwt8b5AvQf4c", - "id": "WD2P2E02ymh7Hwt8b5AvQf4c", + "href": "/debits/WD1pU48nHJzorOySkTaQGQ9U", + "id": "WD1pU48nHJzorOySkTaQGQ9U", "links": { - "customer": "CU2K9f4Ui5PdmMLqEEvHOIog", + "customer": "CU1iDnBalzHoZg47Np92rNrV", + "dispute": null, "order": null, - "source": "CC2M0ypYw0wP8B71Y6x3B0D0" + "source": "CC1nrXVKmfh0ouOS7zxI6X8q" }, "meta": {}, "status": "succeeded", - "transaction_number": "W349-667-4482", - "updated_at": "2014-01-24T17:53:02.914668Z" + "transaction_number": "W511-688-4504", + "updated_at": "2014-01-27T22:56:00.833870Z" } ], "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", @@ -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-24T17:53:40.571557Z\", \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/WD3zpxOf9kLoeFmf6dYPfrYW\", \n \"id\": \"WD3zpxOf9kLoeFmf6dYPfrYW\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"CC3txpMUnPuUSV6vGdaibuL4\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W596-964-2706\", \n \"updated_at\": \"2014-01-24T17:53:42.294744Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-01-24T17:53:30.361991Z\", \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/WD3nYFoEh5ipuJQyCSxgBX5l\", \n \"id\": \"WD3nYFoEh5ipuJQyCSxgBX5l\", \n \"links\": {\n \"customer\": \"CU2J5ei9GWLvlSGbIcmC6qoO\", \n \"order\": null, \n \"source\": \"CC3hYX4uMMrNuO0lbYMY0PP9\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W849-149-0225\", \n \"updated_at\": \"2014-01-24T17:53:31.160769Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-24T17:53:19.664477Z\", \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/WD3bWlYlwiW4w0l7LNDaBYU2\", \n \"id\": \"WD3bWlYlwiW4w0l7LNDaBYU2\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"BA2YEZjgBPUBzXgxXfjUeenw\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W388-997-0082\", \n \"updated_at\": \"2014-01-24T17:53:20.167203Z\"\n }, \n {\n \"amount\": 10000000, \n \"appears_on_statement_as\": \"BAL*example.com\", \n \"created_at\": \"2014-01-24T17:52:59.305282Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD2P2E02ymh7Hwt8b5AvQf4c\", \n \"id\": \"WD2P2E02ymh7Hwt8b5AvQf4c\", \n \"links\": {\n \"customer\": \"CU2K9f4Ui5PdmMLqEEvHOIog\", \n \"order\": null, \n \"source\": \"CC2M0ypYw0wP8B71Y6x3B0D0\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W349-667-4482\", \n \"updated_at\": \"2014-01-24T17:53:02.914668Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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-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}" }, "debit_show": { "request": { - "uri": "/debits/WD3zpxOf9kLoeFmf6dYPfrYW" + "uri": "/debits/WD2Fd3jVcMZEWyXHtG3U1LRM" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-24T17:53:40.571557Z\", \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/WD3zpxOf9kLoeFmf6dYPfrYW\", \n \"id\": \"WD3zpxOf9kLoeFmf6dYPfrYW\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"CC3txpMUnPuUSV6vGdaibuL4\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W596-964-2706\", \n \"updated_at\": \"2014-01-24T17:53:42.294744Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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-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}" }, "debit_update": { "request": { @@ -460,30 +460,30 @@ "facebook.id": "1234567890" } }, - "uri": "/debits/WD3zpxOf9kLoeFmf6dYPfrYW" + "uri": "/debits/WD2Fd3jVcMZEWyXHtG3U1LRM" }, - "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-24T17:53:40.571557Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for debit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD3zpxOf9kLoeFmf6dYPfrYW\", \n \"id\": \"WD3zpxOf9kLoeFmf6dYPfrYW\", \n \"links\": {\n \"customer\": null, \n \"order\": null, \n \"source\": \"CC3txpMUnPuUSV6vGdaibuL4\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W596-964-2706\", \n \"updated_at\": \"2014-01-24T17:54:07.203303Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \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-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}" }, "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 \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-24T17:53:09.290866Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"id\": \"BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"links\": {\n \"bank_account\": \"BA2YEZjgBPUBzXgxXfjUeenw\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-24T17:53:12.552232Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EV64ecf7cc852011e3a0ed026ba7c1aba6\", \n \"id\": \"EV64ecf7cc852011e3a0ed026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-24T17:53:12.552000Z\", \n \"type\": \"bank_account_verification.verified\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-24T17:53:09.290866Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"id\": \"BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"links\": {\n \"bank_account\": \"BA2YEZjgBPUBzXgxXfjUeenw\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-24T17:53:12.552232Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EV64a62ae0852011e3982b026ba7cac9da\", \n \"id\": \"EV64a62ae0852011e3982b026ba7cac9da\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-24T17:53:12.552000Z\", \n \"type\": \"bank_account_verification.updated\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-24T17:53:09.290866Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"id\": \"BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"links\": {\n \"bank_account\": \"BA2YEZjgBPUBzXgxXfjUeenw\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-24T17:53:09.797613Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EV63882a5a852011e3a9d0026ba7c1aba6\", \n \"id\": \"EV63882a5a852011e3a9d0026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-24T17:53:09.797000Z\", \n \"type\": \"bank_account_verification.deposited\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-24T17:53:09.290866Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"id\": \"BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"links\": {\n \"bank_account\": \"BA2YEZjgBPUBzXgxXfjUeenw\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-24T17:53:09.797613Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EV62bb1114852011e3a83d026ba7cac9da\", \n \"id\": \"EV62bb1114852011e3a83d026ba7cac9da\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-24T17:53:09.797000Z\", \n \"type\": \"bank_account_verification.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\": \"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-24T17:52:54.004770Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU2J5ei9GWLvlSGbIcmC6qoO\", \n \"id\": \"CU2J5ei9GWLvlSGbIcmC6qoO\", \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-24T17:52:54.132745Z\"\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/EV599e6efa852011e3885f026ba7cac9da\", \n \"id\": \"EV599e6efa852011e3885f026ba7cac9da\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-24T17:52:54.132000Z\", \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-01-24T17:52:54.443604Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA2JgwJrozEkYG86IYfFgXA6\", \n \"id\": \"BA2JgwJrozEkYG86IYfFgXA6\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU2J5ei9GWLvlSGbIcmC6qoO\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-01-24T17:52:54.443609Z\"\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/EV59e2945e852011e3885f026ba7cac9da\", \n \"id\": \"EV59e2945e852011e3885f026ba7cac9da\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-24T17:52:54.443000Z\", \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-01-24T17:52:54.948822Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU2K9f4Ui5PdmMLqEEvHOIog\", \n \"id\": \"CU2K9f4Ui5PdmMLqEEvHOIog\", \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-24T17:52:55.288674Z\"\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/EV5a2d834c852011e3a3d1026ba7cd33d0\", \n \"id\": \"EV5a2d834c852011e3a3d1026ba7cd33d0\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-24T17:52:55.288000Z\", \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-01-24T17:52:56.610686Z\", \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/CC2M0ypYw0wP8B71Y6x3B0D0\", \n \"id\": \"CC2M0ypYw0wP8B71Y6x3B0D0\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU2K9f4Ui5PdmMLqEEvHOIog\"\n }, \n \"meta\": {\n \"client_ip_address\": \"54.224.61.244\"\n }, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-01-24T17:52:56.610689Z\"\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/EV5b2bc178852011e3982b026ba7cac9da\", \n \"id\": \"EV5b2bc178852011e3982b026ba7cac9da\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-24T17:52:56.610000Z\", \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-01-24T17:52:57.389512Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL2MTrBIB9ATWPYRy9OIJGAo\", \n \"id\": \"HL2MTrBIB9ATWPYRy9OIJGAo\", \n \"links\": {\n \"card\": \"CC2M0ypYw0wP8B71Y6x3B0D0\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL127-235-6240\", \n \"updated_at\": \"2014-01-24T17:52:57.389516Z\"\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 }, \n \"href\": \"/events/EV5cbf8b64852011e3b0a7026ba7cd33d0\", \n \"id\": \"EV5cbf8b64852011e3b0a7026ba7cd33d0\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-24T17:52:57.389000Z\", \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-01-24T17:52:57.389512Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-01-31T17:53:00.111194Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL2MTrBIB9ATWPYRy9OIJGAo\", \n \"id\": \"HL2MTrBIB9ATWPYRy9OIJGAo\", \n \"links\": {\n \"card\": \"CC2M0ypYw0wP8B71Y6x3B0D0\", \n \"debit\": \"WD2P2E02ymh7Hwt8b5AvQf4c\"\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL127-235-6240\", \n \"updated_at\": \"2014-01-24T17:53:02.935658Z\"\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 }, \n \"href\": \"/events/EV5d6516ec852011e3b0a7026ba7cd33d0\", \n \"id\": \"EV5d6516ec852011e3b0a7026ba7cd33d0\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-24T17:53:02.935000Z\", \n \"type\": \"hold.updated\"\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\": 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}" }, "event_show": { "request": { - "uri": "/events/EV64ecf7cc852011e3a0ed026ba7c1aba6" + "uri": "/events/EV2abbb98487a611e3a86f026ba7d31e6f" }, - "response": "{\n \"events\": [\n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-24T17:53:09.290866Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"id\": \"BZ30hb4BvSmoUMZiDdIMyz8K\", \n \"links\": {\n \"bank_account\": \"BA2YEZjgBPUBzXgxXfjUeenw\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-24T17:53:12.552232Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n }, \n \"href\": \"/events/EV64ecf7cc852011e3a0ed026ba7c1aba6\", \n \"id\": \"EV64ecf7cc852011e3a0ed026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-24T17:53:12.552000Z\", \n \"type\": \"bank_account_verification.verified\"\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\": 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}" }, "marketplace": { - "created_at": "2014-01-24T17:52:53.976860Z", + "created_at": "2014-01-27T22:55:47.104898Z", "domain_url": "example.com", - "href": "/marketplaces/TEST-MP2J35JnxzMPzPOPNmWhsLKa", - "id": "TEST-MP2J35JnxzMPzPOPNmWhsLKa", + "href": "/marketplaces/TEST-MP1f3Hgx3WTYV6DhxJC7yR5Y", + "id": "TEST-MP1f3Hgx3WTYV6DhxJC7yR5Y", "in_escrow": 0, "links": { - "owner_customer": "CU2J5ei9GWLvlSGbIcmC6qoO" + "owner_customer": "CU1f8Ygc4t0F2FKNcw235x9I" }, "meta": {}, "name": "Test Marketplace", @@ -491,30 +491,31 @@ "support_email_address": "support@example.com", "support_phone_number": "+16505551234", "unsettled_fees": 0, - "updated_at": "2014-01-24T17:52:54.403629Z" + "updated_at": "2014-01-27T22:55:49.874263Z" }, - "marketplace_id": "TEST-MP2J35JnxzMPzPOPNmWhsLKa", - "marketplace_uri": "/marketplaces/TEST-MP2J35JnxzMPzPOPNmWhsLKa", + "marketplace_id": "TEST-MP1f3Hgx3WTYV6DhxJC7yR5Y", + "marketplace_uri": "/marketplaces/TEST-MP1f3Hgx3WTYV6DhxJC7yR5Y", "order_create": { "request": { + "customer_href": "/customers/CU3eeasZ9yQ86uzzIYZkrPGg", "payload": { "description": "Order #12341234" }, - "uri": "/customers/CU3Ttx347VFA9lYT8dBOkwcu/orders" + "uri": "/customers/CU3eeasZ9yQ86uzzIYZkrPGg/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-24T17:54:14.238757Z\", \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/OR4bkzheH5eeQpl0J9Dmrx27\", \n \"id\": \"OR4bkzheH5eeQpl0J9Dmrx27\", \n \"links\": {\n \"merchant\": \"CU3Ttx347VFA9lYT8dBOkwcu\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-24T17:54:14.238760Z\"\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-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}" }, "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-24T17:54:14.238757Z\", \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/OR4bkzheH5eeQpl0J9Dmrx27\", \n \"id\": \"OR4bkzheH5eeQpl0J9Dmrx27\", \n \"links\": {\n \"merchant\": \"CU3Ttx347VFA9lYT8dBOkwcu\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-24T17:54:14.238760Z\"\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-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}" }, "order_show": { "request": { - "uri": "/orders/OR4bkzheH5eeQpl0J9Dmrx27" + "uri": "/orders/OR3FOihZa7lMHdAP5p8BJZVY" }, - "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-24T17:54:14.238757Z\", \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/OR4bkzheH5eeQpl0J9Dmrx27\", \n \"id\": \"OR4bkzheH5eeQpl0J9Dmrx27\", \n \"links\": {\n \"merchant\": \"CU3Ttx347VFA9lYT8dBOkwcu\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-24T17:54:14.238760Z\"\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-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}" }, "order_update": { "request": { @@ -525,13 +526,13 @@ "product.id": "1234567890" } }, - "uri": "/orders/OR4bkzheH5eeQpl0J9Dmrx27" + "uri": "/orders/OR3FOihZa7lMHdAP5p8BJZVY" }, - "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-24T17:54:14.238757Z\", \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/OR4bkzheH5eeQpl0J9Dmrx27\", \n \"id\": \"OR4bkzheH5eeQpl0J9Dmrx27\", \n \"links\": {\n \"merchant\": \"CU3Ttx347VFA9lYT8dBOkwcu\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"product.id\": \"1234567890\"\n }, \n \"updated_at\": \"2014-01-24T17:54:16.944355Z\"\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-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}" }, "refund_create": { "request": { - "debit_href": "/debits/WD4fC2Wmv7z7LxWLQptwEv2n", + "debit_href": "/debits/WD3MKNxNTKBGgA7mX50yogiu", "payload": { "amount": 3000, "description": "Refund for Order #1111", @@ -541,21 +542,21 @@ "user.refund_reason": "not happy with product" } }, - "uri": "/debits/WD4fC2Wmv7z7LxWLQptwEv2n/refunds" + "uri": "/debits/WD3MKNxNTKBGgA7mX50yogiu/refunds" }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \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-24T17:54:21.764061Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF4jM7mlJNnsZ3KWSQiQxFSw\", \n \"id\": \"RF4jM7mlJNnsZ3KWSQiQxFSw\", \n \"links\": {\n \"debit\": \"WD4fC2Wmv7z7LxWLQptwEv2n\", \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\": \"RF642-909-8143\", \n \"updated_at\": \"2014-01-24T17:54:22.705860Z\"\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-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}" }, "refund_list": { "request": { "uri": "/refunds" }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \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-24T17:54:21.764061Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF4jM7mlJNnsZ3KWSQiQxFSw\", \n \"id\": \"RF4jM7mlJNnsZ3KWSQiQxFSw\", \n \"links\": {\n \"debit\": \"WD4fC2Wmv7z7LxWLQptwEv2n\", \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\": \"RF642-909-8143\", \n \"updated_at\": \"2014-01-24T17:54:22.705860Z\"\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-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}" }, "refund_show": { "request": { - "uri": "/refunds/RF4jM7mlJNnsZ3KWSQiQxFSw" + "uri": "/refunds/RF3RklPuFgsgI50UuYtr4g6I" }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \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-24T17:54:21.764061Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF4jM7mlJNnsZ3KWSQiQxFSw\", \n \"id\": \"RF4jM7mlJNnsZ3KWSQiQxFSw\", \n \"links\": {\n \"debit\": \"WD4fC2Wmv7z7LxWLQptwEv2n\", \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\": \"RF642-909-8143\", \n \"updated_at\": \"2014-01-24T17:54:22.705860Z\"\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-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}" }, "refund_update": { "request": { @@ -567,13 +568,13 @@ "user.refund.count": "3" } }, - "uri": "/refunds/RF4jM7mlJNnsZ3KWSQiQxFSw" + "uri": "/refunds/RF3RklPuFgsgI50UuYtr4g6I" }, - "response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \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-24T17:54:21.764061Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"href\": \"/refunds/RF4jM7mlJNnsZ3KWSQiQxFSw\", \n \"id\": \"RF4jM7mlJNnsZ3KWSQiQxFSw\", \n \"links\": {\n \"debit\": \"WD4fC2Wmv7z7LxWLQptwEv2n\", \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\": \"RF642-909-8143\", \n \"updated_at\": \"2014-01-24T17:54:26.305194Z\"\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-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}" }, "reversal_create": { "request": { - "credit_href": "/credits/CR4qcbNcps5TuZFDDcV1XZdu", + "credit_href": "/credits/CR40neytmVG2HDBp1opfF7sY", "payload": { "amount": 3000, "description": "Reversal for Order #1111", @@ -583,21 +584,21 @@ "user.refund_reason": "not happy with product" } }, - "uri": "/credits/CR4qcbNcps5TuZFDDcV1XZdu/reversals" + "uri": "/credits/CR40neytmVG2HDBp1opfF7sY/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-24T17:54:28.723409Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV4rAoQcd3EkOS6rLAUFLrs4\", \n \"id\": \"RV4rAoQcd3EkOS6rLAUFLrs4\", \n \"links\": {\n \"credit\": \"CR4qcbNcps5TuZFDDcV1XZdu\", \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\": \"RV940-780-3320\", \n \"updated_at\": \"2014-01-24T17:54:29.436514Z\"\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-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}" }, "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-24T17:54:28.723409Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV4rAoQcd3EkOS6rLAUFLrs4\", \n \"id\": \"RV4rAoQcd3EkOS6rLAUFLrs4\", \n \"links\": {\n \"credit\": \"CR4qcbNcps5TuZFDDcV1XZdu\", \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\": \"RV940-780-3320\", \n \"updated_at\": \"2014-01-24T17:54:29.436514Z\"\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-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}" }, "reversal_show": { "request": { - "uri": "/reversals/RV4rAoQcd3EkOS6rLAUFLrs4" + "uri": "/reversals/RV42n8M9XZWna427oPDDi4RG" }, - "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-24T17:54:28.723409Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV4rAoQcd3EkOS6rLAUFLrs4\", \n \"id\": \"RV4rAoQcd3EkOS6rLAUFLrs4\", \n \"links\": {\n \"credit\": \"CR4qcbNcps5TuZFDDcV1XZdu\", \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\": \"RV940-780-3320\", \n \"updated_at\": \"2014-01-24T17:54:29.436514Z\"\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-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}" }, "reversal_update": { "request": { @@ -609,9 +610,9 @@ "user.satisfaction": "6" } }, - "uri": "/reversals/RV4rAoQcd3EkOS6rLAUFLrs4" + "uri": "/reversals/RV42n8M9XZWna427oPDDi4RG" }, - "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-24T17:54:28.723409Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV4rAoQcd3EkOS6rLAUFLrs4\", \n \"id\": \"RV4rAoQcd3EkOS6rLAUFLrs4\", \n \"links\": {\n \"credit\": \"CR4qcbNcps5TuZFDDcV1XZdu\", \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\": \"RV940-780-3320\", \n \"updated_at\": \"2014-01-24T17:54:32.763608Z\"\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-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}" }, - "secret": "ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I" + "secret": "ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc" } \ 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 0ac7321..0a8a0f4 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 e86069e..c5da75e 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') api_key = balanced.APIKey() api_key.save() diff --git a/scenarios/api_key_create/executable.py b/scenarios/api_key_create/executable.py index cd871ef..a5a5c83 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 40bb944..4d57661 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 bcbdc70..89746cc 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -key = balanced.APIKey.fetch('/api_keys/AK2TWX3j6gK68Qk8w4ZEqfmM') +key = balanced.APIKey.fetch('/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c') 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 f0ebc9a..8d7b907 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -key = balanced.APIKey.fetch('/api_keys/AK2TWX3j6gK68Qk8w4ZEqfmM') +key = balanced.APIKey.fetch('/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c') 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 77370dd..10a9711 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 6d2fec3..f46d7e8 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 0848221..5d4fa07 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -key = balanced.APIKey.fetch('/api_keys/AK2TWX3j6gK68Qk8w4ZEqfmM') \ No newline at end of file +key = balanced.APIKey.fetch('/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c') \ No newline at end of file diff --git a/scenarios/api_key_show/python.mako b/scenarios/api_key_show/python.mako index c8fd6b5..8fe319d 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -key = balanced.APIKey.fetch('/api_keys/AK2TWX3j6gK68Qk8w4ZEqfmM') +key = balanced.APIKey.fetch('/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c') % 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 46c2f7a..ecb5f3d 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -card = balanced.Card.fetch('/bank_accounts/BA3YBUkHZNRVugUmhBGE3A9G') -card.associate_to_customer('/customers/CU3Ttx347VFA9lYT8dBOkwcu') \ No newline at end of file +card = balanced.Card.fetch('/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0') +card.associate_to_customer('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') \ 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 c3a2c1e..70fef8f 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -card = balanced.Card.fetch('/bank_accounts/BA3YBUkHZNRVugUmhBGE3A9G') -card.associate_to_customer('/customers/CU3Ttx347VFA9lYT8dBOkwcu') +card = balanced.Card.fetch('/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0') +card.associate_to_customer('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') % endif \ No newline at end of file diff --git a/scenarios/bank_account_create/executable.py b/scenarios/bank_account_create/executable.py index 1ce82da..14ea833 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') bank_account = balanced.BankAccount( routing_number='121000358', diff --git a/scenarios/bank_account_create/python.mako b/scenarios/bank_account_create/python.mako index eff7530..5c302b6 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') bank_account = balanced.BankAccount( routing_number='121000358', diff --git a/scenarios/bank_account_credit/executable.py b/scenarios/bank_account_credit/executable.py index ee8b2a6..55283b2 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3YBUkHZNRVugUmhBGE3A9G') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0') 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 78e2bda..433cb30 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3YBUkHZNRVugUmhBGE3A9G') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0') bank_account.credit( amount=5000 ) diff --git a/scenarios/bank_account_debit/executable.py b/scenarios/bank_account_debit/executable.py index 46c2c24..6c3d98b 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2YEZjgBPUBzXgxXfjUeenw') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S') 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 7dddce9..74acc78 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2YEZjgBPUBzXgxXfjUeenw') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S') 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 22d1016..117eb6d 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy') 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 6130df3..4e65323 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy') 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 e6c8c4a..cbbceff 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 451b36f..aa41712 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 f70c5ab..b18e802 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4') \ No newline at end of file +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy') \ No newline at end of file diff --git a/scenarios/bank_account_show/python.mako b/scenarios/bank_account_show/python.mako index cff14a1..adbd2fe 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy') % endif \ No newline at end of file diff --git a/scenarios/bank_account_update/executable.py b/scenarios/bank_account_update/executable.py index 74a8ead..6707e78 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy') 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 d18f741..3644662 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy') 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 ce33c6c..ec38665 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2YEZjgBPUBzXgxXfjUeenw') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S') 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 aa39b04..e4a071c 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA2YEZjgBPUBzXgxXfjUeenw') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S') 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 dea5c2c..667a353 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ30hb4BvSmoUMZiDdIMyz8K') \ No newline at end of file +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ1FF2MHFH9upRu7C0QUwnby') \ 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 fe19044..ad89c1e 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ30hb4BvSmoUMZiDdIMyz8K') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ1FF2MHFH9upRu7C0QUwnby') % 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 29dea9a..463489f 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ30hb4BvSmoUMZiDdIMyz8K') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ1FF2MHFH9upRu7C0QUwnby') 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 f7d9a72..e69797b 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -verification = balanced.BankAccountVerification.fetch('/verifications/BZ30hb4BvSmoUMZiDdIMyz8K') +verification = balanced.BankAccountVerification.fetch('/verifications/BZ1FF2MHFH9upRu7C0QUwnby') 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 4fa8171..fdcc27f 100644 --- a/scenarios/callback_create/executable.py +++ b/scenarios/callback_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') callback = balanced.Callback( url='http://www.example.com/callback' diff --git a/scenarios/callback_create/python.mako b/scenarios/callback_create/python.mako index 8e1ef02..dc0214d 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') callback = balanced.Callback( url='http://www.example.com/callback' diff --git a/scenarios/callback_delete/executable.py b/scenarios/callback_delete/executable.py index 9a9aaab..fa8b03e 100644 --- a/scenarios/callback_delete/executable.py +++ b/scenarios/callback_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -callback = balanced.Callback.fetch('/callbacks/CB3dRHClJeZ4UFqbLZsR6vUW') +callback = balanced.Callback.fetch('/callbacks/CB224374R2NSyoYBpDV4r7C2') callback.unstore() \ No newline at end of file diff --git a/scenarios/callback_delete/python.mako b/scenarios/callback_delete/python.mako index a7818ce..8988f56 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -callback = balanced.Callback.fetch('/callbacks/CB3dRHClJeZ4UFqbLZsR6vUW') +callback = balanced.Callback.fetch('/callbacks/CB224374R2NSyoYBpDV4r7C2') callback.unstore() % endif \ No newline at end of file diff --git a/scenarios/callback_list/executable.py b/scenarios/callback_list/executable.py index bf536f7..862aa05 100644 --- a/scenarios/callback_list/executable.py +++ b/scenarios/callback_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 bee65d0..2308472 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 07b1b4b..9d65293 100644 --- a/scenarios/callback_show/executable.py +++ b/scenarios/callback_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -callback = balanced.Callback.fetch('/callbacks/CB3dRHClJeZ4UFqbLZsR6vUW') \ No newline at end of file +callback = balanced.Callback.fetch('/callbacks/CB224374R2NSyoYBpDV4r7C2') \ No newline at end of file diff --git a/scenarios/callback_show/python.mako b/scenarios/callback_show/python.mako index 70db8a0..d70d9c1 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -callback = balanced.Callback.fetch('/callbacks/CB3dRHClJeZ4UFqbLZsR6vUW') +callback = balanced.Callback.fetch('/callbacks/CB224374R2NSyoYBpDV4r7C2') % 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 587d422..4c22a35 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -card = balanced.Card.fetch('/cards/CC3VAbj4Ol8xojVU6MjI0G1F') -card.associate_to_customer('/customers/CU3Ttx347VFA9lYT8dBOkwcu') \ No newline at end of file +card = balanced.Card.fetch('/cards/CC3kqm84fxh50avenrUsSKbu') +card.associate_to_customer('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') \ 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 0a3104c..e111e74 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -card = balanced.Card.fetch('/cards/CC3VAbj4Ol8xojVU6MjI0G1F') -card.associate_to_customer('/customers/CU3Ttx347VFA9lYT8dBOkwcu') +card = balanced.Card.fetch('/cards/CC3kqm84fxh50avenrUsSKbu') +card.associate_to_customer('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') % endif \ No newline at end of file diff --git a/scenarios/card_create/executable.py b/scenarios/card_create/executable.py index 4df9346..5371566 100644 --- a/scenarios/card_create/executable.py +++ b/scenarios/card_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card = balanced.Card( expiration_month='12', diff --git a/scenarios/card_create/python.mako b/scenarios/card_create/python.mako index a7442f3..ce40c02 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card = balanced.Card( expiration_month='12', diff --git a/scenarios/card_debit/executable.py b/scenarios/card_debit/executable.py index ec81e9e..4c5948b 100644 --- a/scenarios/card_debit/executable.py +++ b/scenarios/card_debit/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -card = balanced.Card.fetch('/cards/CC3VAbj4Ol8xojVU6MjI0G1F') +card = balanced.Card.fetch('/cards/CC3kqm84fxh50avenrUsSKbu') 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 74ef4cd..295284e 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -card = balanced.Card.fetch('/cards/CC3VAbj4Ol8xojVU6MjI0G1F') +card = balanced.Card.fetch('/cards/CC3kqm84fxh50avenrUsSKbu') 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 171aba2..6d68c1c 100644 --- a/scenarios/card_delete/executable.py +++ b/scenarios/card_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -card = balanced.Card.fetch('/cards/CC3txpMUnPuUSV6vGdaibuL4') +card = balanced.Card.fetch('/cards/CC2uc8iPDjgyxOXHVtnZloyI') card.unstore() \ No newline at end of file diff --git a/scenarios/card_delete/python.mako b/scenarios/card_delete/python.mako index 06867c4..616041a 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -card = balanced.Card.fetch('/cards/CC3txpMUnPuUSV6vGdaibuL4') +card = balanced.Card.fetch('/cards/CC2uc8iPDjgyxOXHVtnZloyI') 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 e9c850c..baee209 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -card_hold = balanced.CardHold.fetch('/card_holds/HL3iJ3toXGtGHwOyVMD9aT71') +card_hold = balanced.CardHold.fetch('/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S') 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 2771d90..821d1bf 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -card_hold = balanced.CardHold.fetch('/card_holds/HL3iJ3toXGtGHwOyVMD9aT71') +card_hold = balanced.CardHold.fetch('/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S') 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 b638a31..b4693bd 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -card = balanced.Card.fetch('/cards/CC3hYX4uMMrNuO0lbYMY0PP9') +card = balanced.Card.fetch('/cards/CC2abDOQVm5aNFhHpcRvWS02') 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 6a21df3..f54e4ca 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -card = balanced.Card.fetch('/cards/CC3hYX4uMMrNuO0lbYMY0PP9') +card = balanced.Card.fetch('/cards/CC2abDOQVm5aNFhHpcRvWS02') 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 43fd0e3..4b5fd50 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 f33fc47..5ae73ed 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 3ab8d6a..2631ad5 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -card_hold = balanced.CardHold.fetch('/card_holds/HL3iJ3toXGtGHwOyVMD9aT71') \ No newline at end of file +card_hold = balanced.CardHold.fetch('/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S') \ No newline at end of file diff --git a/scenarios/card_hold_show/python.mako b/scenarios/card_hold_show/python.mako index 8261cec..61406d7 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -card_hold = balanced.CardHold.fetch('/card_holds/HL3iJ3toXGtGHwOyVMD9aT71') +card_hold = balanced.CardHold.fetch('/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S') % endif \ No newline at end of file diff --git a/scenarios/card_hold_update/executable.py b/scenarios/card_hold_update/executable.py index ddf9925..89676d0 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -card_hold = balanced.CardHold.fetch('/card_holds/HL3iJ3toXGtGHwOyVMD9aT71') +card_hold = balanced.CardHold.fetch('/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S') 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 a1616a6..afa6c2e 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -card_hold = balanced.CardHold.fetch('/card_holds/HL3iJ3toXGtGHwOyVMD9aT71') +card_hold = balanced.CardHold.fetch('/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S') 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 285597d..dc3d7a6 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -card_hold = balanced.CardHold.fetch('/card_holds/HL3qaOBRFhWgKwSPz7bCetSn') +card_hold = balanced.CardHold.fetch('/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG') 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 64ee598..206e63b 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -card_hold = balanced.CardHold.fetch('/card_holds/HL3qaOBRFhWgKwSPz7bCetSn') +card_hold = balanced.CardHold.fetch('/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG') 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 1342f70..029c505 100644 --- a/scenarios/card_list/executable.py +++ b/scenarios/card_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 1a9ca75..465ce5c 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 e6c8cc8..3be1bbc 100644 --- a/scenarios/card_show/executable.py +++ b/scenarios/card_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -card = balanced.Card.fetch('/cards/CC3txpMUnPuUSV6vGdaibuL4') \ No newline at end of file +card = balanced.Card.fetch('/cards/CC2uc8iPDjgyxOXHVtnZloyI') \ No newline at end of file diff --git a/scenarios/card_show/python.mako b/scenarios/card_show/python.mako index 73332ec..c63e502 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -card = balanced.Card.fetch('/cards/CC3txpMUnPuUSV6vGdaibuL4') +card = balanced.Card.fetch('/cards/CC2uc8iPDjgyxOXHVtnZloyI') % endif \ No newline at end of file diff --git a/scenarios/card_update/executable.py b/scenarios/card_update/executable.py index c088c04..ba4b27a 100644 --- a/scenarios/card_update/executable.py +++ b/scenarios/card_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -card = balanced.Card.fetch('/cards/CC3txpMUnPuUSV6vGdaibuL4') +card = balanced.Card.fetch('/cards/CC2uc8iPDjgyxOXHVtnZloyI') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/card_update/python.mako b/scenarios/card_update/python.mako index c60ed55..9248b80 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -card = balanced.Card.fetch('/cards/CC3txpMUnPuUSV6vGdaibuL4') +card = balanced.Card.fetch('/cards/CC2uc8iPDjgyxOXHVtnZloyI') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/credit_list/executable.py b/scenarios/credit_list/executable.py index 56e8d4f..e810221 100644 --- a/scenarios/credit_list/executable.py +++ b/scenarios/credit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 eaf9517..0974e0d 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 c515b14..6c4bb68 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4/credits') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy/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 433c17b..b9d0738 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -bank_account = balanced.BankAccount.fetch('/bank_accounts/BA35XYq4oVujo1NADZ6vwCu4/credits') +bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy/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 845ce90..8e9951e 100644 --- a/scenarios/credit_show/executable.py +++ b/scenarios/credit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -credit = balanced.Credit.fetch('/credits/CR3H2YtoAbpQCQ4Ey3RTLxxc') \ No newline at end of file +credit = balanced.Credit.fetch('/credits/CR2UtQgq6L3FPd1YoOc8eyOC') \ No newline at end of file diff --git a/scenarios/credit_show/python.mako b/scenarios/credit_show/python.mako index 901954d..e506fad 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -credit = balanced.Credit.fetch('/credits/CR3H2YtoAbpQCQ4Ey3RTLxxc') +credit = balanced.Credit.fetch('/credits/CR2UtQgq6L3FPd1YoOc8eyOC') % endif \ No newline at end of file diff --git a/scenarios/credit_update/executable.py b/scenarios/credit_update/executable.py index 06befaf..0c39cbf 100644 --- a/scenarios/credit_update/executable.py +++ b/scenarios/credit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -credit = balanced.Credit.fetch('/credits/CR3H2YtoAbpQCQ4Ey3RTLxxc') +credit = balanced.Credit.fetch('/credits/CR2UtQgq6L3FPd1YoOc8eyOC') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/credit_update/python.mako b/scenarios/credit_update/python.mako index 2618cf9..a68e4ec 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -credit = balanced.Credit.fetch('/credits/CR3H2YtoAbpQCQ4Ey3RTLxxc') +credit = balanced.Credit.fetch('/credits/CR2UtQgq6L3FPd1YoOc8eyOC') credit.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/customer_create/executable.py b/scenarios/customer_create/executable.py index 01ca5eb..7e9c414 100644 --- a/scenarios/customer_create/executable.py +++ b/scenarios/customer_create/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') customer = balanced.Customer( dob_year=1963, diff --git a/scenarios/customer_create/python.mako b/scenarios/customer_create/python.mako index 8c9a972..d340779 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') customer = balanced.Customer( dob_year=1963, diff --git a/scenarios/customer_delete/executable.py b/scenarios/customer_delete/executable.py index 0ea9d48..9c125931 100644 --- a/scenarios/customer_delete/executable.py +++ b/scenarios/customer_delete/executable.py @@ -1,6 +1,6 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -customer = balanced.Customer.fetch('/customers/CU3Ttx347VFA9lYT8dBOkwcu') +customer = balanced.Customer.fetch('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') customer.unstore() \ No newline at end of file diff --git a/scenarios/customer_delete/python.mako b/scenarios/customer_delete/python.mako index cfae591..7a53b1f 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -customer = balanced.Customer.fetch('/customers/CU3Ttx347VFA9lYT8dBOkwcu') +customer = balanced.Customer.fetch('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') customer.unstore() % endif \ No newline at end of file diff --git a/scenarios/customer_list/executable.py b/scenarios/customer_list/executable.py index 629dcb4..4eae1e9 100644 --- a/scenarios/customer_list/executable.py +++ b/scenarios/customer_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 0ec70ce..d973eb2 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 7ffc526..261e48e 100644 --- a/scenarios/customer_show/executable.py +++ b/scenarios/customer_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -customer = balanced.Customer.fetch('/customers/CU3OK2QNsz3KjXHMz1GCH1Cq') \ No newline at end of file +customer = balanced.Customer.fetch('/customers/CU33Y4cut21qu1d1lGYDBseQ') \ No newline at end of file diff --git a/scenarios/customer_show/python.mako b/scenarios/customer_show/python.mako index ff52c7a..70ed147 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -customer = balanced.Customer.fetch('/customers/CU3OK2QNsz3KjXHMz1GCH1Cq') +customer = balanced.Customer.fetch('/customers/CU33Y4cut21qu1d1lGYDBseQ') % endif \ No newline at end of file diff --git a/scenarios/customer_update/executable.py b/scenarios/customer_update/executable.py index 3eb499b..cd8b092 100644 --- a/scenarios/customer_update/executable.py +++ b/scenarios/customer_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -customer = balanced.Debit.fetch('/customers/CU3OK2QNsz3KjXHMz1GCH1Cq') +customer = balanced.Debit.fetch('/customers/CU33Y4cut21qu1d1lGYDBseQ') 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 02554fb..0eec0f1 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -customer = balanced.Debit.fetch('/customers/CU3OK2QNsz3KjXHMz1GCH1Cq') +customer = balanced.Debit.fetch('/customers/CU33Y4cut21qu1d1lGYDBseQ') 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 a635bde..fbe2eef 100644 --- a/scenarios/debit_list/executable.py +++ b/scenarios/debit_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 584ab99..6b27175 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 6854dd5..78cff4a 100644 --- a/scenarios/debit_show/executable.py +++ b/scenarios/debit_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -debit = balanced.Debit.fetch('/debits/WD3zpxOf9kLoeFmf6dYPfrYW') \ No newline at end of file +debit = balanced.Debit.fetch('/debits/WD2Fd3jVcMZEWyXHtG3U1LRM') \ No newline at end of file diff --git a/scenarios/debit_show/python.mako b/scenarios/debit_show/python.mako index 7d0cb55..a373964 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -debit = balanced.Debit.fetch('/debits/WD3zpxOf9kLoeFmf6dYPfrYW') +debit = balanced.Debit.fetch('/debits/WD2Fd3jVcMZEWyXHtG3U1LRM') % endif \ No newline at end of file diff --git a/scenarios/debit_update/executable.py b/scenarios/debit_update/executable.py index 18da006..4012e22 100644 --- a/scenarios/debit_update/executable.py +++ b/scenarios/debit_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -debit = balanced.Debit.fetch('/debits/WD3zpxOf9kLoeFmf6dYPfrYW') +debit = balanced.Debit.fetch('/debits/WD2Fd3jVcMZEWyXHtG3U1LRM') 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 907c301..ec4e980 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -debit = balanced.Debit.fetch('/debits/WD3zpxOf9kLoeFmf6dYPfrYW') +debit = balanced.Debit.fetch('/debits/WD2Fd3jVcMZEWyXHtG3U1LRM') 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 57f7399..d7b8e96 100644 --- a/scenarios/event_list/executable.py +++ b/scenarios/event_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 297b1cf..9decb8f 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 12a3318..12d0795 100644 --- a/scenarios/event_show/executable.py +++ b/scenarios/event_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -event = balanced.Event.fetch('/events/EV64ecf7cc852011e3a0ed026ba7c1aba6') \ No newline at end of file +event = balanced.Event.fetch('/events/EV2abbb98487a611e3a86f026ba7d31e6f') \ No newline at end of file diff --git a/scenarios/event_show/python.mako b/scenarios/event_show/python.mako index 29d365a..4201c5b 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -event = balanced.Event.fetch('/events/EV64ecf7cc852011e3a0ed026ba7c1aba6') +event = balanced.Event.fetch('/events/EV2abbb98487a611e3a86f026ba7d31e6f') % endif \ No newline at end of file diff --git a/scenarios/order_create/executable.py b/scenarios/order_create/executable.py index 41edda7..dbfc872 100644 --- a/scenarios/order_create/executable.py +++ b/scenarios/order_create/executable.py @@ -1,7 +1,8 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -order = balanced.Order( +merchant_customer = balanced.Customer.fetch('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') +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 2adea76..fcf82b3 100644 --- a/scenarios/order_create/python.mako +++ b/scenarios/order_create/python.mako @@ -3,9 +3,10 @@ balanced.Order() % elif mode == 'request': import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -order = balanced.Order( +merchant_customer = balanced.Customer.fetch('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') +merchant_customer.create_order( description='Order #12341234' ).save() % endif \ No newline at end of file diff --git a/scenarios/order_create/request.mako b/scenarios/order_create/request.mako index aef5490..5fa1a74 100644 --- a/scenarios/order_create/request.mako +++ b/scenarios/order_create/request.mako @@ -1,6 +1,7 @@ <%namespace file='/_main.mako' name='main'/> <% main.python_boilerplate() %> -order = balanced.Order( +merchant_customer = balanced.Customer.fetch('${request['customer_href']}') +merchant_customer.create_order( <% main.payload_expand(request['payload']) %> ).save() \ No newline at end of file diff --git a/scenarios/order_list/executable.py b/scenarios/order_list/executable.py index b0b4637..9ca61c4 100644 --- a/scenarios/order_list/executable.py +++ b/scenarios/order_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 a1b7c0c..d25f46b 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 f0dbcd5..2f4dbad 100644 --- a/scenarios/order_show/executable.py +++ b/scenarios/order_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -order = balanced.Order.fetch('/orders/OR4bkzheH5eeQpl0J9Dmrx27') \ No newline at end of file +order = balanced.Order.fetch('/orders/OR3FOihZa7lMHdAP5p8BJZVY') \ No newline at end of file diff --git a/scenarios/order_show/python.mako b/scenarios/order_show/python.mako index 22fb4f8..8cdd544 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -order = balanced.Order.fetch('/orders/OR4bkzheH5eeQpl0J9Dmrx27') +order = balanced.Order.fetch('/orders/OR3FOihZa7lMHdAP5p8BJZVY') % endif \ No newline at end of file diff --git a/scenarios/order_update/executable.py b/scenarios/order_update/executable.py index e110724..65b660a 100644 --- a/scenarios/order_update/executable.py +++ b/scenarios/order_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -order = balanced.Order.fetch('/orders/OR4bkzheH5eeQpl0J9Dmrx27') +order = balanced.Order.fetch('/orders/OR3FOihZa7lMHdAP5p8BJZVY') 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 e6b439f..212c7c3 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -order = balanced.Order.fetch('/orders/OR4bkzheH5eeQpl0J9Dmrx27') +order = balanced.Order.fetch('/orders/OR3FOihZa7lMHdAP5p8BJZVY') 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 b91cab6..4dd71db 100644 --- a/scenarios/refund_create/executable.py +++ b/scenarios/refund_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -debit = balanced.Debit.fetch('/debits/WD4fC2Wmv7z7LxWLQptwEv2n') +debit = balanced.Debit.fetch('/debits/WD3MKNxNTKBGgA7mX50yogiu') 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 2817a42..af6c7e5 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -debit = balanced.Debit.fetch('/debits/WD4fC2Wmv7z7LxWLQptwEv2n') +debit = balanced.Debit.fetch('/debits/WD3MKNxNTKBGgA7mX50yogiu') 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 974a45f..96d1062 100644 --- a/scenarios/refund_list/executable.py +++ b/scenarios/refund_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 5d6fbcf..9be7346 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 954f4e7..2e6aa9f 100644 --- a/scenarios/refund_show/executable.py +++ b/scenarios/refund_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -refund = balanced.Refund.fetch('/refunds/RF4jM7mlJNnsZ3KWSQiQxFSw') \ No newline at end of file +refund = balanced.Refund.fetch('/refunds/RF3RklPuFgsgI50UuYtr4g6I') \ No newline at end of file diff --git a/scenarios/refund_show/python.mako b/scenarios/refund_show/python.mako index cbc7abf..2d3542c 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -refund = balanced.Refund.fetch('/refunds/RF4jM7mlJNnsZ3KWSQiQxFSw') +refund = balanced.Refund.fetch('/refunds/RF3RklPuFgsgI50UuYtr4g6I') % endif \ No newline at end of file diff --git a/scenarios/refund_update/executable.py b/scenarios/refund_update/executable.py index 28f67f8..6854534 100644 --- a/scenarios/refund_update/executable.py +++ b/scenarios/refund_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -refund = balanced.Refund.fetch('/refunds/RF4jM7mlJNnsZ3KWSQiQxFSw') +refund = balanced.Refund.fetch('/refunds/RF3RklPuFgsgI50UuYtr4g6I') 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 50ceb2e..da6f2d6 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -refund = balanced.Refund.fetch('/refunds/RF4jM7mlJNnsZ3KWSQiQxFSw') +refund = balanced.Refund.fetch('/refunds/RF3RklPuFgsgI50UuYtr4g6I') 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 3d6c7a4..11f7cde 100644 --- a/scenarios/reversal_create/executable.py +++ b/scenarios/reversal_create/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -credit = balanced.Credit.fetch('/credits/CR4qcbNcps5TuZFDDcV1XZdu') +credit = balanced.Credit.fetch('/credits/CR40neytmVG2HDBp1opfF7sY') 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 1dc9d99..e8a8995 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -credit = balanced.Credit.fetch('/credits/CR4qcbNcps5TuZFDDcV1XZdu') +credit = balanced.Credit.fetch('/credits/CR40neytmVG2HDBp1opfF7sY') 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 daca355..fa42560 100644 --- a/scenarios/reversal_list/executable.py +++ b/scenarios/reversal_list/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 9cf6947..38a6da6 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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 fd7ea2f..b9ae116 100644 --- a/scenarios/reversal_show/executable.py +++ b/scenarios/reversal_show/executable.py @@ -1,5 +1,5 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -refund = balanced.Reversal.fetch('/reversals/RV4rAoQcd3EkOS6rLAUFLrs4') \ No newline at end of file +refund = balanced.Reversal.fetch('/reversals/RV42n8M9XZWna427oPDDi4RG') \ No newline at end of file diff --git a/scenarios/reversal_show/python.mako b/scenarios/reversal_show/python.mako index 31565e5..1beddcb 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -refund = balanced.Reversal.fetch('/reversals/RV4rAoQcd3EkOS6rLAUFLrs4') +refund = balanced.Reversal.fetch('/reversals/RV42n8M9XZWna427oPDDi4RG') % endif \ No newline at end of file diff --git a/scenarios/reversal_update/executable.py b/scenarios/reversal_update/executable.py index d339659..214189f 100644 --- a/scenarios/reversal_update/executable.py +++ b/scenarios/reversal_update/executable.py @@ -1,8 +1,8 @@ import balanced -balanced.configure('ak-test-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -reversal = balanced.Reversal.fetch('/reversals/RV4rAoQcd3EkOS6rLAUFLrs4') +reversal = balanced.Reversal.fetch('/reversals/RV42n8M9XZWna427oPDDi4RG') 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 17201b8..b9b9065 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-nngzAf2ARJV0AA4zzxdyVYJWRa0WLa5I') +balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') -reversal = balanced.Reversal.fetch('/reversals/RV4rAoQcd3EkOS6rLAUFLrs4') +reversal = balanced.Reversal.fetch('/reversals/RV42n8M9XZWna427oPDDi4RG') reversal.description = 'update this description' reversal.meta = { 'user.refund.count': '3', From afe7482d797c765be5f59d5ae8fe95ec6576c1a0 Mon Sep 17 00:00:00 2001 From: Marshall Jones Date: Tue, 28 Jan 2014 15:32:57 -0800 Subject: [PATCH 040/146] include revision specific content-type header --- balanced/config.py | 17 ++++++++++------- tests/test_client.py | 22 ++++++++++++++++++++++ 2 files changed, 32 insertions(+), 7 deletions(-) create mode 100644 tests/test_client.py diff --git a/balanced/config.py b/balanced/config.py index d83402f..418bab7 100644 --- a/balanced/config.py +++ b/balanced/config.py @@ -20,17 +20,20 @@ def configure( user_agent='balanced-python/' + __version__, **kwargs ): - # http - kwargs['client_agent'] = 'knox-client/' + __version__ - if 'headers' not in kwargs: - kwargs['headers'] = { - 'accept': 'application/vnd.api+json;revision=' + api_revision - } - kwargs['headers']['Accept-Type'] = 'application/json' + kwargs.setdefault('headers', {}) + + for key, value in ( + ('content-type', 'application/vnd.api+json;revision=' + api_revision), + ('accept', 'application/json;revision=' + api_revision) + ): + kwargs['headers'].setdefault(key, value) + if 'error_cls' not in kwargs: kwargs['error_cls'] = exc.convert_error + if user: kwargs['auth'] = (user, None) + # apply Client.config = Config(root_url, user_agent=user_agent, **kwargs) diff --git a/tests/test_client.py b/tests/test_client.py new file mode 100644 index 0000000..16a412b --- /dev/null +++ b/tests/test_client.py @@ -0,0 +1,22 @@ +from __future__ import unicode_literals + +import balanced + +from . import utils + + +class TestClient(utils.TestCase): + + def setUp(self): + super(TestClient, self).setUp() + + def test_configure(self): + balanced.configure('XXX') + expected_headers = { + 'content-type': 'application/vnd.api+json;revision=1.1', + 'accept': 'application/json;revision=1.1', + 'User-Agent': u'balanced-python/1.1.0dev' + } + self.assertDictContainsSubset( + expected_headers, balanced.config.client.config.headers + ) From b002f61a816671f82124d9a045dea30f39987ce0 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Wed, 29 Jan 2014 10:54:41 -0800 Subject: [PATCH 041/146] 1.0.dev1 --- balanced/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/balanced/__init__.py b/balanced/__init__.py index 2434777..0922949 100644 --- a/balanced/__init__.py +++ b/balanced/__init__.py @@ -1,6 +1,6 @@ from __future__ import unicode_literals -__version__ = '1.1.0dev' +__version__ = '1.0dev1' from balanced.config import configure from balanced import resources From 5a76937badbb766047de5bd4a91b7174bb93ad9a Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Wed, 29 Jan 2014 11:09:01 -0800 Subject: [PATCH 042/146] Fix expected headers test --- 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 16a412b..24ecc08 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -15,7 +15,7 @@ def test_configure(self): expected_headers = { 'content-type': 'application/vnd.api+json;revision=1.1', 'accept': 'application/json;revision=1.1', - 'User-Agent': u'balanced-python/1.1.0dev' + 'User-Agent': u'balanced-python/1.0dev1' } self.assertDictContainsSubset( expected_headers, balanced.config.client.config.headers From a4e9c3c47ff3999b56d769208106d3a605e1b50e Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Wed, 29 Jan 2014 12:59:59 -0800 Subject: [PATCH 043/146] Fix 401 in test suite --- tests/test_client.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/test_client.py b/tests/test_client.py index 24ecc08..699560d 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -11,7 +11,6 @@ def setUp(self): super(TestClient, self).setUp() def test_configure(self): - balanced.configure('XXX') expected_headers = { 'content-type': 'application/vnd.api+json;revision=1.1', 'accept': 'application/json;revision=1.1', From 0addc45e3bf85e8ad8171edc4638841b194bdd25 Mon Sep 17 00:00:00 2001 From: Ben Mills Date: Wed, 29 Jan 2014 13:14:29 -0800 Subject: [PATCH 044/146] 1.0beta1 --- balanced/__init__.py | 2 +- tests/test_client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/balanced/__init__.py b/balanced/__init__.py index 0922949..1f69ea1 100644 --- a/balanced/__init__.py +++ b/balanced/__init__.py @@ -1,6 +1,6 @@ from __future__ import unicode_literals -__version__ = '1.0dev1' +__version__ = '1.0beta1' from balanced.config import configure from balanced import resources diff --git a/tests/test_client.py b/tests/test_client.py index 699560d..273ebab 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -14,7 +14,7 @@ def test_configure(self): expected_headers = { 'content-type': 'application/vnd.api+json;revision=1.1', 'accept': 'application/json;revision=1.1', - 'User-Agent': u'balanced-python/1.0dev1' + 'User-Agent': u'balanced-python/1.0beta1' } self.assertDictContainsSubset( expected_headers, balanced.config.client.config.headers From 5711dcddb5a944097e1db27402ed5e66a3cc8c4d Mon Sep 17 00:00:00 2001 From: Tim Nguyen Date: Wed, 29 Jan 2014 18:46:39 -0800 Subject: [PATCH 045/146] Add same license from the other clients --- LICENSE | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..5f56fb5 --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +Copyright (c) 2014 Mahmoud Abdelkader + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. From 015c50b60de2d4b8efb6518c9b7e6a189ea8b577 Mon Sep 17 00:00:00 2001 From: Tim Nguyen Date: Wed, 29 Jan 2014 18:50:34 -0800 Subject: [PATCH 046/146] 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 bd71acc9a35afe9cb0d9f51ff23f42308e4dc6e6 Mon Sep 17 00:00:00 2001 From: Richie Date: Tue, 4 Feb 2014 11:28:40 -0800 Subject: [PATCH 047/146] Pretty print json response --- render_scenarios.py | 27 +++- scenarios/_mj/_template/_create/python.mako | 2 + scenarios/_mj/_template/_delete/python.mako | 2 + scenarios/_mj/_template/_list/python.mako | 2 + scenarios/_mj/_template/_retrieve/python.mako | 2 + scenarios/_mj/_template/_update/python.mako | 2 + scenarios/_mj/api_key_create/python.mako | 14 ++ scenarios/api_key_create/python.mako | 14 ++ scenarios/api_key_delete/python.mako | 2 + scenarios/api_key_list/python.mako | 31 ++++ scenarios/api_key_show/python.mako | 13 ++ .../python.mako | 39 +++++ scenarios/bank_account_create/python.mako | 39 +++++ scenarios/bank_account_credit/python.mako | 32 ++++ scenarios/bank_account_debit/python.mako | 34 +++++ scenarios/bank_account_delete/python.mako | 2 + scenarios/bank_account_list/python.mako | 103 +++++++++++++ scenarios/bank_account_show/python.mako | 39 +++++ scenarios/bank_account_update/python.mako | 43 ++++++ .../python.mako | 22 +++ .../python.mako | 22 +++ .../python.mako | 22 +++ scenarios/callback_create/python.mako | 14 ++ scenarios/callback_delete/python.mako | 2 + scenarios/callback_list/python.mako | 24 +++ scenarios/callback_show/python.mako | 14 ++ .../card_associate_to_customer/python.mako | 41 +++++ scenarios/card_create/python.mako | 41 +++++ scenarios/card_debit/python.mako | 34 +++++ scenarios/card_debit/request.mako | 3 +- scenarios/card_delete/python.mako | 2 + scenarios/card_hold_capture/python.mako | 37 +++++ scenarios/card_hold_create/python.mako | 29 ++++ scenarios/card_hold_list/python.mako | 57 +++++++ scenarios/card_hold_show/python.mako | 29 ++++ scenarios/card_hold_update/python.mako | 32 ++++ scenarios/card_hold_void/python.mako | 29 ++++ scenarios/card_list/python.mako | 113 ++++++++++++++ scenarios/card_show/python.mako | 41 +++++ scenarios/card_update/python.mako | 45 ++++++ scenarios/credit_list/python.mako | 42 ++++++ .../credit_list_bank_account/python.mako | 14 ++ scenarios/credit_show/python.mako | 32 ++++ scenarios/credit_update/python.mako | 35 +++++ scenarios/customer_create/python.mako | 46 ++++++ scenarios/customer_delete/python.mako | 2 + scenarios/customer_list/python.mako | 140 ++++++++++++++++++ scenarios/customer_show/python.mako | 46 ++++++ scenarios/customer_update/python.mako | 48 ++++++ scenarios/debit_list/python.mako | 110 ++++++++++++++ scenarios/debit_show/python.mako | 34 +++++ scenarios/debit_update/python.mako | 37 +++++ scenarios/event_list/python.mako | 76 ++++++++++ scenarios/event_show/python.mako | 66 +++++++++ scenarios/order_create/python.mako | 35 +++++ scenarios/order_list/python.mako | 45 ++++++ scenarios/order_show/python.mako | 35 +++++ scenarios/order_update/python.mako | 38 +++++ scenarios/refund_create/python.mako | 32 ++++ scenarios/refund_list/python.mako | 42 ++++++ scenarios/refund_show/python.mako | 32 ++++ scenarios/refund_update/python.mako | 32 ++++ scenarios/reversal_create/python.mako | 32 ++++ scenarios/reversal_list/python.mako | 42 ++++++ scenarios/reversal_show/python.mako | 32 ++++ scenarios/reversal_update/python.mako | 32 ++++ 66 files changed, 2248 insertions(+), 4 deletions(-) diff --git a/render_scenarios.py b/render_scenarios.py index 1393b68..604c029 100644 --- a/render_scenarios.py +++ b/render_scenarios.py @@ -4,19 +4,38 @@ from mako.template import Template from mako.lookup import TemplateLookup + +def construct_response(scenario_name): + # load up response data + data = json.load(open('scenario.cache','r')) + lookup = TemplateLookup(directories=['./scenarios']) + + for path in glob2.glob('./scenarios/**/request.mako'): + if path != scenario_name: + continue + event_name = path.split('/')[-2] + template = Template("${response}") + try: + response = data[event_name].get('response', {}) + text = template.render(response= response).strip() + except KeyError: + text = '' + return text + def render_executables(): # load up scenario data data = json.load(open('scenario.cache','r')) lookup = TemplateLookup(directories=['./scenarios']) - + for path in glob2.glob('./scenarios/**/request.mako'): event_name = path.split('/')[-2] template = Template(filename=path, lookup=lookup,) try: request = data[event_name].get('request', {}) + response = data[event_name].get('response', {}) payload = request.get('payload') text = template.render(api_key=data['api_key'], - request=request, payload=payload).strip() + request=request, payload=payload, response= response).strip() except KeyError: text = '' print "WARN: Skipped {} since {} not in scenario.cache".format( @@ -31,8 +50,10 @@ def render_mako(): with open(os.path.join(dir, 'python.mako'), 'w+b') as wfile: definition = open(os.path.join(dir, 'definition.mako'),'r').read() request = open(os.path.join(dir, 'executable.py'),'r').read() + response = construct_response(path) body = "% if mode == 'definition':\n{}".format(definition) + "\n" \ - "% elif mode == 'request':\n" + request + "\n% endif" + "% elif mode == 'request':\n" + request + "\n" \ + "% elif mode == 'response':\n" + response + "\n% endif" wfile.write(body) def issue_no_mako_warnings(): diff --git a/scenarios/_mj/_template/_create/python.mako b/scenarios/_mj/_template/_create/python.mako index c88d7bf..29e7a14 100644 --- a/scenarios/_mj/_template/_create/python.mako +++ b/scenarios/_mj/_template/_create/python.mako @@ -3,4 +3,6 @@ balanced.RESOURCE % elif mode == 'request': +% elif mode == 'response': + % endif \ No newline at end of file diff --git a/scenarios/_mj/_template/_delete/python.mako b/scenarios/_mj/_template/_delete/python.mako index d1dbb85..d2dd0f8 100644 --- a/scenarios/_mj/_template/_delete/python.mako +++ b/scenarios/_mj/_template/_delete/python.mako @@ -2,4 +2,6 @@ % elif mode == 'request': +% elif mode == 'response': + % endif \ No newline at end of file diff --git a/scenarios/_mj/_template/_list/python.mako b/scenarios/_mj/_template/_list/python.mako index d1dbb85..d2dd0f8 100644 --- a/scenarios/_mj/_template/_list/python.mako +++ b/scenarios/_mj/_template/_list/python.mako @@ -2,4 +2,6 @@ % elif mode == 'request': +% elif mode == 'response': + % endif \ No newline at end of file diff --git a/scenarios/_mj/_template/_retrieve/python.mako b/scenarios/_mj/_template/_retrieve/python.mako index d1dbb85..d2dd0f8 100644 --- a/scenarios/_mj/_template/_retrieve/python.mako +++ b/scenarios/_mj/_template/_retrieve/python.mako @@ -2,4 +2,6 @@ % elif mode == 'request': +% elif mode == 'response': + % endif \ No newline at end of file diff --git a/scenarios/_mj/_template/_update/python.mako b/scenarios/_mj/_template/_update/python.mako index d1dbb85..d2dd0f8 100644 --- a/scenarios/_mj/_template/_update/python.mako +++ b/scenarios/_mj/_template/_update/python.mako @@ -2,4 +2,6 @@ % elif mode == 'request': +% elif mode == 'response': + % endif \ 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..826b16b 100644 --- a/scenarios/_mj/api_key_create/python.mako +++ b/scenarios/_mj/api_key_create/python.mako @@ -8,4 +8,18 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') api_key = balanced.APIKey() api_key.save() +% elif mode == 'response': +{ + "api_keys": [ + { + "created_at": "2014-01-27T22:56:01.641736Z", + "href": "/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c", + "id": "AK1vqjn1eEHXP0JYXrBrjH5c", + "links": {}, + "meta": {}, + "secret": "ak-test-1jlJCdGZjRWWYRF1iLBR69xwqG2NdQifv" + } + ], + "links": {} +} % endif \ No newline at end of file diff --git a/scenarios/api_key_create/python.mako b/scenarios/api_key_create/python.mako index 4d57661..2f02106 100644 --- a/scenarios/api_key_create/python.mako +++ b/scenarios/api_key_create/python.mako @@ -6,4 +6,18 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') api_key = balanced.APIKey().save() +% elif mode == 'response': +{ + "api_keys": [ + { + "created_at": "2014-01-27T22:56:01.641736Z", + "href": "/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c", + "id": "AK1vqjn1eEHXP0JYXrBrjH5c", + "links": {}, + "meta": {}, + "secret": "ak-test-1jlJCdGZjRWWYRF1iLBR69xwqG2NdQifv" + } + ], + "links": {} +} % endif \ No newline at end of file diff --git a/scenarios/api_key_delete/python.mako b/scenarios/api_key_delete/python.mako index 8d7b907..0ef908e 100644 --- a/scenarios/api_key_delete/python.mako +++ b/scenarios/api_key_delete/python.mako @@ -7,4 +7,6 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') key = balanced.APIKey.fetch('/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c') key.delete() +% elif mode == 'response': +{} % endif \ No newline at end of file diff --git a/scenarios/api_key_list/python.mako b/scenarios/api_key_list/python.mako index f46d7e8..7168086 100644 --- a/scenarios/api_key_list/python.mako +++ b/scenarios/api_key_list/python.mako @@ -7,4 +7,35 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') keys = balanced.APIKey.query +% elif mode == 'response': +{ + "api_keys": [ + { + "created_at": "2014-01-27T22:56:01.641736Z", + "href": "/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c", + "id": "AK1vqjn1eEHXP0JYXrBrjH5c", + "links": {}, + "meta": {} + }, + { + "created_at": "2014-01-27T22:55:46.698536Z", + "href": "/api_keys/AK1eDKn7B8vK70hj70S1NMbu", + "id": "AK1eDKn7B8vK70hj70S1NMbu", + "links": {}, + "meta": {}, + "secret": "ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc" + } + ], + "links": {}, + "meta": { + "first": "/api_keys?limit=10&offset=0", + "href": "/api_keys?limit=10&offset=0", + "last": "/api_keys?limit=10&offset=0", + "limit": 10, + "next": null, + "offset": 0, + "previous": null, + "total": 2 + } +} % endif \ No newline at end of file diff --git a/scenarios/api_key_show/python.mako b/scenarios/api_key_show/python.mako index 8fe319d..7dcd015 100644 --- a/scenarios/api_key_show/python.mako +++ b/scenarios/api_key_show/python.mako @@ -7,4 +7,17 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') key = balanced.APIKey.fetch('/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c') +% elif mode == 'response': +{ + "api_keys": [ + { + "created_at": "2014-01-27T22:56:01.641736Z", + "href": "/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c", + "id": "AK1vqjn1eEHXP0JYXrBrjH5c", + "links": {}, + "meta": {} + } + ], + "links": {} +} % endif \ 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..0d9e171 100644 --- a/scenarios/bank_account_associate_to_customer/python.mako +++ b/scenarios/bank_account_associate_to_customer/python.mako @@ -7,4 +7,43 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card = balanced.Card.fetch('/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0') card.associate_to_customer('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') +% elif mode == 'response': +{ + "bank_accounts": [ + { + "account_number": "xxxxxx0001", + "account_type": "checking", + "address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "bank_name": "BANK OF AMERICA, N.A.", + "can_credit": true, + "can_debit": false, + "created_at": "2014-01-27T22:57:47.772481Z", + "fingerprint": "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14", + "href": "/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0", + "id": "BA3qNbYRqFM0Q7MXn3IcjGl0", + "links": { + "bank_account_verification": null, + "customer": "CU3eeasZ9yQ86uzzIYZkrPGg" + }, + "meta": {}, + "name": "Johann Bernoulli", + "routing_number": "121000358", + "updated_at": "2014-01-27T22:57:48.515195Z" + } + ], + "links": { + "bank_accounts.bank_account_verification": "/verifications/{bank_accounts.bank_account_verification}", + "bank_accounts.bank_account_verifications": "/bank_accounts/{bank_accounts.id}/verifications", + "bank_accounts.credits": "/bank_accounts/{bank_accounts.id}/credits", + "bank_accounts.customer": "/customers/{bank_accounts.customer}", + "bank_accounts.debits": "/bank_accounts/{bank_accounts.id}/debits" + } +} % endif \ No newline at end of file diff --git a/scenarios/bank_account_create/python.mako b/scenarios/bank_account_create/python.mako index 5c302b6..a9e6082 100644 --- a/scenarios/bank_account_create/python.mako +++ b/scenarios/bank_account_create/python.mako @@ -11,4 +11,43 @@ bank_account = balanced.BankAccount( account_number='9900000001', name='Johann Bernoulli' ).save() +% elif mode == 'response': +{ + "bank_accounts": [ + { + "account_number": "xxxxxx0001", + "account_type": "checking", + "address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "bank_name": "BANK OF AMERICA, N.A.", + "can_credit": true, + "can_debit": false, + "created_at": "2014-01-27T22:57:47.772481Z", + "fingerprint": "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14", + "href": "/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0", + "id": "BA3qNbYRqFM0Q7MXn3IcjGl0", + "links": { + "bank_account_verification": null, + "customer": null + }, + "meta": {}, + "name": "Johann Bernoulli", + "routing_number": "121000358", + "updated_at": "2014-01-27T22:57:47.772483Z" + } + ], + "links": { + "bank_accounts.bank_account_verification": "/verifications/{bank_accounts.bank_account_verification}", + "bank_accounts.bank_account_verifications": "/bank_accounts/{bank_accounts.id}/verifications", + "bank_accounts.credits": "/bank_accounts/{bank_accounts.id}/credits", + "bank_accounts.customer": "/customers/{bank_accounts.customer}", + "bank_accounts.debits": "/bank_accounts/{bank_accounts.id}/debits" + } +} % endif \ No newline at end of file diff --git a/scenarios/bank_account_credit/python.mako b/scenarios/bank_account_credit/python.mako index 433cb30..dc09480 100644 --- a/scenarios/bank_account_credit/python.mako +++ b/scenarios/bank_account_credit/python.mako @@ -9,4 +9,36 @@ bank_account = balanced.BankAccount.fetch('/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjG bank_account.credit( amount=5000 ) +% elif mode == 'response': +{ + "credits": [ + { + "amount": 5000, + "appears_on_statement_as": "example.com", + "created_at": "2014-01-27T22:58:19.422292Z", + "currency": "USD", + "description": null, + "failure_reason": null, + "failure_reason_code": null, + "href": "/credits/CR40neytmVG2HDBp1opfF7sY", + "id": "CR40neytmVG2HDBp1opfF7sY", + "links": { + "customer": "CU3eeasZ9yQ86uzzIYZkrPGg", + "destination": "BA3qNbYRqFM0Q7MXn3IcjGl0", + "order": null + }, + "meta": {}, + "status": "succeeded", + "transaction_number": "CR816-868-3666", + "updated_at": "2014-01-27T22:58:20.346871Z" + } + ], + "links": { + "credits.customer": "/customers/{credits.customer}", + "credits.destination": "/resources/{credits.destination}", + "credits.events": "/credits/{credits.id}/events", + "credits.order": "/orders/{credits.order}", + "credits.reversals": "/credits/{credits.id}/reversals" + } +} % endif \ No newline at end of file diff --git a/scenarios/bank_account_debit/python.mako b/scenarios/bank_account_debit/python.mako index 74acc78..ab24657 100644 --- a/scenarios/bank_account_debit/python.mako +++ b/scenarios/bank_account_debit/python.mako @@ -11,4 +11,38 @@ bank_account.debit( amount=5000, description='Some descriptive text for the debit in the dashboard' ) +% elif mode == 'response': +{ + "debits": [ + { + "amount": 5000, + "appears_on_statement_as": "BAL*Statement text", + "created_at": "2014-01-27T22:56:28.702119Z", + "currency": "USD", + "description": "Some descriptive text for the debit in the dashboard", + "failure_reason": null, + "failure_reason_code": null, + "href": "/debits/WD1ZRRAZnFTryFdFaq7ijcPE", + "id": "WD1ZRRAZnFTryFdFaq7ijcPE", + "links": { + "customer": null, + "dispute": null, + "order": null, + "source": "BA1D3vL3LjasB0kewMqRGI0S" + }, + "meta": {}, + "status": "succeeded", + "transaction_number": "W081-463-7557", + "updated_at": "2014-01-27T22:56:29.235927Z" + } + ], + "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}" + } +} % endif \ No newline at end of file diff --git a/scenarios/bank_account_delete/python.mako b/scenarios/bank_account_delete/python.mako index 4e65323..6f6516c 100644 --- a/scenarios/bank_account_delete/python.mako +++ b/scenarios/bank_account_delete/python.mako @@ -7,4 +7,6 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy') bank_account.delete() +% elif mode == 'response': +{} % endif \ No newline at end of file diff --git a/scenarios/bank_account_list/python.mako b/scenarios/bank_account_list/python.mako index aa41712..7cb9b52 100644 --- a/scenarios/bank_account_list/python.mako +++ b/scenarios/bank_account_list/python.mako @@ -7,4 +7,107 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') bank_accounts = balanced.BankAccount.query +% elif mode == 'response': +{ + "bank_accounts": [ + { + "account_number": "xxxxxx0001", + "account_type": "checking", + "address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "bank_name": "BANK OF AMERICA, N.A.", + "can_credit": true, + "can_debit": false, + "created_at": "2014-01-27T22:56:20.540530Z", + "fingerprint": "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14", + "href": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy", + "id": "BA1QFf0LmIxr8p41msqX46Oy", + "links": { + "bank_account_verification": null, + "customer": null + }, + "meta": {}, + "name": "Johann Bernoulli", + "routing_number": "121000358", + "updated_at": "2014-01-27T22:56:20.540534Z" + }, + { + "account_number": "xxxxxx0001", + "account_type": "checking", + "address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "bank_name": "BANK OF AMERICA, N.A.", + "can_credit": true, + "can_debit": true, + "created_at": "2014-01-27T22:56:08.446352Z", + "fingerprint": "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14", + "href": "/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S", + "id": "BA1D3vL3LjasB0kewMqRGI0S", + "links": { + "bank_account_verification": "BZ1FF2MHFH9upRu7C0QUwnby", + "customer": null + }, + "meta": {}, + "name": "Johann Bernoulli", + "routing_number": "121000358", + "updated_at": "2014-01-27T22:56:18.623674Z" + }, + { + "account_number": "xxxxxxxxxxx5555", + "account_type": "checking", + "address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "bank_name": "WELLS FARGO BANK NA", + "can_credit": true, + "can_debit": true, + "created_at": "2014-01-27T22:55:49.899228Z", + "fingerprint": "6ybvaLUrJy07phK2EQ7pVk", + "href": "/bank_accounts/BA1fUvPHaEcIdkRe8HmC2Vee", + "id": "BA1fUvPHaEcIdkRe8HmC2Vee", + "links": { + "bank_account_verification": null, + "customer": "CU1f8Ygc4t0F2FKNcw235x9I" + }, + "meta": {}, + "name": "TEST-MERCHANT-BANK-ACCOUNT", + "routing_number": "121042882", + "updated_at": "2014-01-27T22:55:49.899231Z" + } + ], + "links": { + "bank_accounts.bank_account_verification": "/verifications/{bank_accounts.bank_account_verification}", + "bank_accounts.bank_account_verifications": "/bank_accounts/{bank_accounts.id}/verifications", + "bank_accounts.credits": "/bank_accounts/{bank_accounts.id}/credits", + "bank_accounts.customer": "/customers/{bank_accounts.customer}", + "bank_accounts.debits": "/bank_accounts/{bank_accounts.id}/debits" + }, + "meta": { + "first": "/bank_accounts?limit=10&offset=0", + "href": "/bank_accounts?limit=10&offset=0", + "last": "/bank_accounts?limit=10&offset=0", + "limit": 10, + "next": null, + "offset": 0, + "previous": null, + "total": 3 + } +} % endif \ No newline at end of file diff --git a/scenarios/bank_account_show/python.mako b/scenarios/bank_account_show/python.mako index adbd2fe..9668ac7 100644 --- a/scenarios/bank_account_show/python.mako +++ b/scenarios/bank_account_show/python.mako @@ -7,4 +7,43 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy') +% elif mode == 'response': +{ + "bank_accounts": [ + { + "account_number": "xxxxxx0001", + "account_type": "checking", + "address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "bank_name": "BANK OF AMERICA, N.A.", + "can_credit": true, + "can_debit": false, + "created_at": "2014-01-27T22:56:20.540530Z", + "fingerprint": "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14", + "href": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy", + "id": "BA1QFf0LmIxr8p41msqX46Oy", + "links": { + "bank_account_verification": null, + "customer": null + }, + "meta": {}, + "name": "Johann Bernoulli", + "routing_number": "121000358", + "updated_at": "2014-01-27T22:56:20.540534Z" + } + ], + "links": { + "bank_accounts.bank_account_verification": "/verifications/{bank_accounts.bank_account_verification}", + "bank_accounts.bank_account_verifications": "/bank_accounts/{bank_accounts.id}/verifications", + "bank_accounts.credits": "/bank_accounts/{bank_accounts.id}/credits", + "bank_accounts.customer": "/customers/{bank_accounts.customer}", + "bank_accounts.debits": "/bank_accounts/{bank_accounts.id}/debits" + } +} % endif \ No newline at end of file diff --git a/scenarios/bank_account_update/python.mako b/scenarios/bank_account_update/python.mako index 3644662..d7f91ef 100644 --- a/scenarios/bank_account_update/python.mako +++ b/scenarios/bank_account_update/python.mako @@ -12,4 +12,47 @@ bank_account.meta = { 'my-own-customer-id'='12345' } bank_account.save() +% elif mode == 'response': +{ + "bank_accounts": [ + { + "account_number": "xxxxxx0001", + "account_type": "checking", + "address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "bank_name": "BANK OF AMERICA, N.A.", + "can_credit": true, + "can_debit": false, + "created_at": "2014-01-27T22:56:20.540530Z", + "fingerprint": "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14", + "href": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy", + "id": "BA1QFf0LmIxr8p41msqX46Oy", + "links": { + "bank_account_verification": null, + "customer": null + }, + "meta": { + "facebook.user_id": "0192837465", + "my-own-customer-id": "12345", + "twitter.id": "1234987650" + }, + "name": "Johann Bernoulli", + "routing_number": "121000358", + "updated_at": "2014-01-27T22:56:25.767386Z" + } + ], + "links": { + "bank_accounts.bank_account_verification": "/verifications/{bank_accounts.bank_account_verification}", + "bank_accounts.bank_account_verifications": "/bank_accounts/{bank_accounts.id}/verifications", + "bank_accounts.credits": "/bank_accounts/{bank_accounts.id}/credits", + "bank_accounts.customer": "/customers/{bank_accounts.customer}", + "bank_accounts.debits": "/bank_accounts/{bank_accounts.id}/debits" + } +} % endif \ 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..8a15a40 100644 --- a/scenarios/bank_account_verification_create/python.mako +++ b/scenarios/bank_account_verification_create/python.mako @@ -7,4 +7,26 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S') verification = bank_account.verify() +% elif mode == 'response': +{ + "bank_account_verifications": [ + { + "attempts": 0, + "attempts_remaining": 3, + "created_at": "2014-01-27T22:56:10.726455Z", + "deposit_status": "succeeded", + "href": "/verifications/BZ1FF2MHFH9upRu7C0QUwnby", + "id": "BZ1FF2MHFH9upRu7C0QUwnby", + "links": { + "bank_account": "BA1D3vL3LjasB0kewMqRGI0S" + }, + "meta": {}, + "updated_at": "2014-01-27T22:56:12.545750Z", + "verification_status": "pending" + } + ], + "links": { + "bank_account_verifications.bank_account": "/bank_accounts/{bank_account_verifications.bank_account}" + } +} % endif \ 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..c6719e2 100644 --- a/scenarios/bank_account_verification_show/python.mako +++ b/scenarios/bank_account_verification_show/python.mako @@ -6,4 +6,26 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') verification = balanced.BankAccountVerification.fetch('/verifications/BZ1FF2MHFH9upRu7C0QUwnby') +% elif mode == 'response': +{ + "bank_account_verifications": [ + { + "attempts": 0, + "attempts_remaining": 3, + "created_at": "2014-01-27T22:56:10.726455Z", + "deposit_status": "succeeded", + "href": "/verifications/BZ1FF2MHFH9upRu7C0QUwnby", + "id": "BZ1FF2MHFH9upRu7C0QUwnby", + "links": { + "bank_account": "BA1D3vL3LjasB0kewMqRGI0S" + }, + "meta": {}, + "updated_at": "2014-01-27T22:56:12.545750Z", + "verification_status": "pending" + } + ], + "links": { + "bank_account_verifications.bank_account": "/bank_accounts/{bank_account_verifications.bank_account}" + } +} % endif \ 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..e1491e3 100644 --- a/scenarios/bank_account_verification_update/python.mako +++ b/scenarios/bank_account_verification_update/python.mako @@ -7,4 +7,26 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') verification = balanced.BankAccountVerification.fetch('/verifications/BZ1FF2MHFH9upRu7C0QUwnby') verification.confirm(amount_1=1, amount_2=1) +% elif mode == 'response': +{ + "bank_account_verifications": [ + { + "attempts": 1, + "attempts_remaining": 2, + "created_at": "2014-01-27T22:56:10.726455Z", + "deposit_status": "succeeded", + "href": "/verifications/BZ1FF2MHFH9upRu7C0QUwnby", + "id": "BZ1FF2MHFH9upRu7C0QUwnby", + "links": { + "bank_account": "BA1D3vL3LjasB0kewMqRGI0S" + }, + "meta": {}, + "updated_at": "2014-01-27T22:56:18.631337Z", + "verification_status": "succeeded" + } + ], + "links": { + "bank_account_verifications.bank_account": "/bank_accounts/{bank_account_verifications.bank_account}" + } +} % endif \ No newline at end of file diff --git a/scenarios/callback_create/python.mako b/scenarios/callback_create/python.mako index dc0214d..9ca94d9 100644 --- a/scenarios/callback_create/python.mako +++ b/scenarios/callback_create/python.mako @@ -8,4 +8,18 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') callback = balanced.Callback( url='http://www.example.com/callback' ).save() +% elif mode == 'response': +{ + "callbacks": [ + { + "href": "/callbacks/CB224374R2NSyoYBpDV4r7C2", + "id": "CB224374R2NSyoYBpDV4r7C2", + "links": {}, + "method": "post", + "revision": "1.1", + "url": "http://www.example.com/callback" + } + ], + "links": {} +} % endif \ No newline at end of file diff --git a/scenarios/callback_delete/python.mako b/scenarios/callback_delete/python.mako index 8988f56..eb6797c 100644 --- a/scenarios/callback_delete/python.mako +++ b/scenarios/callback_delete/python.mako @@ -7,4 +7,6 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') callback = balanced.Callback.fetch('/callbacks/CB224374R2NSyoYBpDV4r7C2') callback.unstore() +% elif mode == 'response': +{} % endif \ No newline at end of file diff --git a/scenarios/callback_list/python.mako b/scenarios/callback_list/python.mako index 2308472..916b266 100644 --- a/scenarios/callback_list/python.mako +++ b/scenarios/callback_list/python.mako @@ -7,4 +7,28 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') callbacks = balanced.Callback.query +% elif mode == 'response': +{ + "callbacks": [ + { + "href": "/callbacks/CB224374R2NSyoYBpDV4r7C2", + "id": "CB224374R2NSyoYBpDV4r7C2", + "links": {}, + "method": "post", + "revision": "1.1", + "url": "http://www.example.com/callback" + } + ], + "links": {}, + "meta": { + "first": "/callbacks?limit=10&offset=0", + "href": "/callbacks?limit=10&offset=0", + "last": "/callbacks?limit=10&offset=0", + "limit": 10, + "next": null, + "offset": 0, + "previous": null, + "total": 1 + } +} % endif \ No newline at end of file diff --git a/scenarios/callback_show/python.mako b/scenarios/callback_show/python.mako index d70d9c1..df14677 100644 --- a/scenarios/callback_show/python.mako +++ b/scenarios/callback_show/python.mako @@ -7,4 +7,18 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') callback = balanced.Callback.fetch('/callbacks/CB224374R2NSyoYBpDV4r7C2') +% elif mode == 'response': +{ + "callbacks": [ + { + "href": "/callbacks/CB224374R2NSyoYBpDV4r7C2", + "id": "CB224374R2NSyoYBpDV4r7C2", + "links": {}, + "method": "post", + "revision": "1.1", + "url": "http://www.example.com/callback" + } + ], + "links": {} +} % endif \ 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..74fff12 100644 --- a/scenarios/card_associate_to_customer/python.mako +++ b/scenarios/card_associate_to_customer/python.mako @@ -7,4 +7,45 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card = balanced.Card.fetch('/cards/CC3kqm84fxh50avenrUsSKbu') card.associate_to_customer('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') +% elif mode == 'response': +{ + "cards": [ + { + "address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "avs_postal_match": null, + "avs_result": null, + "avs_street_match": null, + "brand": "MasterCard", + "created_at": "2014-01-27T22:57:42.092923Z", + "cvv": null, + "cvv_match": null, + "cvv_result": null, + "expiration_month": 12, + "expiration_year": 2020, + "fingerprint": "fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788", + "href": "/cards/CC3kqm84fxh50avenrUsSKbu", + "id": "CC3kqm84fxh50avenrUsSKbu", + "is_verified": true, + "links": { + "customer": "CU3eeasZ9yQ86uzzIYZkrPGg" + }, + "meta": {}, + "name": null, + "number": "xxxxxxxxxxxx5100", + "updated_at": "2014-01-27T22:57:42.724392Z" + } + ], + "links": { + "cards.card_holds": "/cards/{cards.id}/card_holds", + "cards.customer": "/customers/{cards.customer}", + "cards.debits": "/cards/{cards.id}/debits" + } +} % endif \ No newline at end of file diff --git a/scenarios/card_create/python.mako b/scenarios/card_create/python.mako index ce40c02..8f0c18b 100644 --- a/scenarios/card_create/python.mako +++ b/scenarios/card_create/python.mako @@ -11,4 +11,45 @@ card = balanced.Card( number='5105105105105100', expiration_year='2020' ).save() +% elif mode == 'response': +{ + "cards": [ + { + "address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "avs_postal_match": null, + "avs_result": null, + "avs_street_match": null, + "brand": "MasterCard", + "created_at": "2014-01-27T22:57:42.092923Z", + "cvv": null, + "cvv_match": null, + "cvv_result": null, + "expiration_month": 12, + "expiration_year": 2020, + "fingerprint": "fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788", + "href": "/cards/CC3kqm84fxh50avenrUsSKbu", + "id": "CC3kqm84fxh50avenrUsSKbu", + "is_verified": true, + "links": { + "customer": null + }, + "meta": {}, + "name": null, + "number": "xxxxxxxxxxxx5100", + "updated_at": "2014-01-27T22:57:42.092926Z" + } + ], + "links": { + "cards.card_holds": "/cards/{cards.id}/card_holds", + "cards.customer": "/customers/{cards.customer}", + "cards.debits": "/cards/{cards.id}/debits" + } +} % endif \ No newline at end of file diff --git a/scenarios/card_debit/python.mako b/scenarios/card_debit/python.mako index 295284e..3a8e176 100644 --- a/scenarios/card_debit/python.mako +++ b/scenarios/card_debit/python.mako @@ -11,4 +11,38 @@ card.debit( amount=5000, description='Some descriptive text for the debit in the dashboard' ) +% elif mode == 'response': +{ + "debits": [ + { + "amount": 5000, + "appears_on_statement_as": "BAL*Statement text", + "created_at": "2014-01-27T22:58:07.291226Z", + "currency": "USD", + "description": "Some descriptive text for the debit in the dashboard", + "failure_reason": null, + "failure_reason_code": null, + "href": "/debits/WD3MKNxNTKBGgA7mX50yogiu", + "id": "WD3MKNxNTKBGgA7mX50yogiu", + "links": { + "customer": "CU3eeasZ9yQ86uzzIYZkrPGg", + "dispute": null, + "order": null, + "source": "CC3kqm84fxh50avenrUsSKbu" + }, + "meta": {}, + "status": "succeeded", + "transaction_number": "W180-465-2000", + "updated_at": "2014-01-27T22:58:09.706862Z" + } + ], + "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}" + } +} % endif \ No newline at end of file diff --git a/scenarios/card_debit/request.mako b/scenarios/card_debit/request.mako index 9d93a0d..ed62839 100644 --- a/scenarios/card_debit/request.mako +++ b/scenarios/card_debit/request.mako @@ -4,4 +4,5 @@ card = balanced.Card.fetch('${request['card_href']}') card.debit( <% main.payload_expand(request['payload']) %> -) \ No newline at end of file +) + diff --git a/scenarios/card_delete/python.mako b/scenarios/card_delete/python.mako index 616041a..1a2cf55 100644 --- a/scenarios/card_delete/python.mako +++ b/scenarios/card_delete/python.mako @@ -7,4 +7,6 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card = balanced.Card.fetch('/cards/CC2uc8iPDjgyxOXHVtnZloyI') card.unstore() +% elif mode == 'response': +{} % endif \ No newline at end of file diff --git a/scenarios/card_hold_capture/python.mako b/scenarios/card_hold_capture/python.mako index 821d1bf..87fb81c 100644 --- a/scenarios/card_hold_capture/python.mako +++ b/scenarios/card_hold_capture/python.mako @@ -10,4 +10,41 @@ debit = card_hold.capture( appears_on_statement_as='ShowsUpOnStmt', description='Some descriptive text for the debit in the dashboard' ) +% elif mode == 'response': +{ + "debits": [ + { + "amount": 5000, + "appears_on_statement_as": "BAL*ShowsUpOnStmt", + "created_at": "2014-01-27T22:56:45.623268Z", + "currency": "USD", + "description": "Some descriptive text for the debit in the dashboard", + "failure_reason": null, + "failure_reason_code": null, + "href": "/debits/WD2iSCukjXyeRdkvX3cW0PmC", + "id": "WD2iSCukjXyeRdkvX3cW0PmC", + "links": { + "customer": "CU1f8Ygc4t0F2FKNcw235x9I", + "dispute": null, + "order": null, + "source": "CC2abDOQVm5aNFhHpcRvWS02" + }, + "meta": { + "holding.for": "user1", + "meaningful.key": "some.value" + }, + "status": "succeeded", + "transaction_number": "W744-719-1832", + "updated_at": "2014-01-27T22:56:47.926021Z" + } + ], + "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}" + } +} % endif \ No newline at end of file diff --git a/scenarios/card_hold_create/python.mako b/scenarios/card_hold_create/python.mako index f54e4ca..e2777b9 100644 --- a/scenarios/card_hold_create/python.mako +++ b/scenarios/card_hold_create/python.mako @@ -10,4 +10,33 @@ card_hold = card.hold( amount=5000, description='Some descriptive text for the debit in the dashboard' ) +% elif mode == 'response': +{ + "card_holds": [ + { + "amount": 5000, + "created_at": "2014-01-27T22:56:49.446376Z", + "currency": "USD", + "description": "Some descriptive text for the debit in the dashboard", + "expires_at": "2014-02-03T22:56:50.793698Z", + "failure_reason": null, + "failure_reason_code": null, + "href": "/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG", + "id": "HL2ncCO5Bir2S0PCdsDHV3cG", + "links": { + "card": "CC2abDOQVm5aNFhHpcRvWS02", + "debit": null + }, + "meta": {}, + "transaction_number": "HL102-313-8003", + "updated_at": "2014-01-27T22:56:51.115729Z" + } + ], + "links": { + "card_holds.card": "/resources/{card_holds.card}", + "card_holds.debit": "/debits/{card_holds.debit}", + "card_holds.debits": "/card_holds/{card_holds.id}/debits", + "card_holds.events": "/card_holds/{card_holds.id}/events" + } +} % endif \ No newline at end of file diff --git a/scenarios/card_hold_list/python.mako b/scenarios/card_hold_list/python.mako index 5ae73ed..0996d97 100644 --- a/scenarios/card_hold_list/python.mako +++ b/scenarios/card_hold_list/python.mako @@ -7,4 +7,61 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card_holds = balanced.CardHold.query +% elif mode == 'response': +{ + "card_holds": [ + { + "amount": 5000, + "created_at": "2014-01-27T22:56:39.379941Z", + "currency": "USD", + "description": "Some descriptive text for the debit in the dashboard", + "expires_at": "2014-02-03T22:56:39.876902Z", + "failure_reason": null, + "failure_reason_code": null, + "href": "/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S", + "id": "HL2bT9uMRkTZkfSPmA2pBD9S", + "links": { + "card": "CC2abDOQVm5aNFhHpcRvWS02", + "debit": null + }, + "meta": {}, + "transaction_number": "HL500-842-5492", + "updated_at": "2014-01-27T22:56:40.238140Z" + }, + { + "amount": 10000000, + "created_at": "2014-01-27T22:55:56.619097Z", + "currency": "USD", + "description": null, + "expires_at": "2014-02-03T22:55:57.540880Z", + "failure_reason": null, + "failure_reason_code": null, + "href": "/card_holds/HL1pMPzS1JEE4lMCBnKh32Oa", + "id": "HL1pMPzS1JEE4lMCBnKh32Oa", + "links": { + "card": "CC1nrXVKmfh0ouOS7zxI6X8q", + "debit": "WD1pU48nHJzorOySkTaQGQ9U" + }, + "meta": {}, + "transaction_number": "HL464-208-0908", + "updated_at": "2014-01-27T22:56:00.845902Z" + } + ], + "links": { + "card_holds.card": "/resources/{card_holds.card}", + "card_holds.debit": "/debits/{card_holds.debit}", + "card_holds.debits": "/card_holds/{card_holds.id}/debits", + "card_holds.events": "/card_holds/{card_holds.id}/events" + }, + "meta": { + "first": "/card_holds?limit=10&offset=0", + "href": "/card_holds?limit=10&offset=0", + "last": "/card_holds?limit=10&offset=0", + "limit": 10, + "next": null, + "offset": 0, + "previous": null, + "total": 2 + } +} % endif \ No newline at end of file diff --git a/scenarios/card_hold_show/python.mako b/scenarios/card_hold_show/python.mako index 61406d7..723c47b 100644 --- a/scenarios/card_hold_show/python.mako +++ b/scenarios/card_hold_show/python.mako @@ -7,4 +7,33 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card_hold = balanced.CardHold.fetch('/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S') +% elif mode == 'response': +{ + "card_holds": [ + { + "amount": 5000, + "created_at": "2014-01-27T22:56:39.379941Z", + "currency": "USD", + "description": "Some descriptive text for the debit in the dashboard", + "expires_at": "2014-02-03T22:56:39.876902Z", + "failure_reason": null, + "failure_reason_code": null, + "href": "/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S", + "id": "HL2bT9uMRkTZkfSPmA2pBD9S", + "links": { + "card": "CC2abDOQVm5aNFhHpcRvWS02", + "debit": null + }, + "meta": {}, + "transaction_number": "HL500-842-5492", + "updated_at": "2014-01-27T22:56:40.238140Z" + } + ], + "links": { + "card_holds.card": "/resources/{card_holds.card}", + "card_holds.debit": "/debits/{card_holds.debit}", + "card_holds.debits": "/card_holds/{card_holds.id}/debits", + "card_holds.events": "/card_holds/{card_holds.id}/events" + } +} % endif \ No newline at end of file diff --git a/scenarios/card_hold_update/python.mako b/scenarios/card_hold_update/python.mako index afa6c2e..0028f7c 100644 --- a/scenarios/card_hold_update/python.mako +++ b/scenarios/card_hold_update/python.mako @@ -12,4 +12,36 @@ card_hold.meta = { 'meaningful.key': 'some.value', } card_hold.save() +% elif mode == 'response': +{ + "card_holds": [ + { + "amount": 5000, + "created_at": "2014-01-27T22:56:39.379941Z", + "currency": "USD", + "description": "update this description", + "expires_at": "2014-02-03T22:56:39.876902Z", + "failure_reason": null, + "failure_reason_code": null, + "href": "/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S", + "id": "HL2bT9uMRkTZkfSPmA2pBD9S", + "links": { + "card": "CC2abDOQVm5aNFhHpcRvWS02", + "debit": null + }, + "meta": { + "holding.for": "user1", + "meaningful.key": "some.value" + }, + "transaction_number": "HL500-842-5492", + "updated_at": "2014-01-27T22:56:44.255042Z" + } + ], + "links": { + "card_holds.card": "/resources/{card_holds.card}", + "card_holds.debit": "/debits/{card_holds.debit}", + "card_holds.debits": "/card_holds/{card_holds.id}/debits", + "card_holds.events": "/card_holds/{card_holds.id}/events" + } +} % endif \ No newline at end of file diff --git a/scenarios/card_hold_void/python.mako b/scenarios/card_hold_void/python.mako index 206e63b..e28f335 100644 --- a/scenarios/card_hold_void/python.mako +++ b/scenarios/card_hold_void/python.mako @@ -7,4 +7,33 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card_hold = balanced.CardHold.fetch('/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG') card_hold.cancel() +% elif mode == 'response': +{ + "card_holds": [ + { + "amount": 5000, + "created_at": "2014-01-27T22:56:49.446376Z", + "currency": "USD", + "description": "Some descriptive text for the debit in the dashboard", + "expires_at": "2014-02-03T22:56:50.793698Z", + "failure_reason": null, + "failure_reason_code": null, + "href": "/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG", + "id": "HL2ncCO5Bir2S0PCdsDHV3cG", + "links": { + "card": "CC2abDOQVm5aNFhHpcRvWS02", + "debit": null + }, + "meta": {}, + "transaction_number": "HL102-313-8003", + "updated_at": "2014-01-27T22:56:51.686616Z" + } + ], + "links": { + "card_holds.card": "/resources/{card_holds.card}", + "card_holds.debit": "/debits/{card_holds.debit}", + "card_holds.debits": "/card_holds/{card_holds.id}/debits", + "card_holds.events": "/card_holds/{card_holds.id}/events" + } +} % endif \ No newline at end of file diff --git a/scenarios/card_list/python.mako b/scenarios/card_list/python.mako index 465ce5c..f3d2ad5 100644 --- a/scenarios/card_list/python.mako +++ b/scenarios/card_list/python.mako @@ -7,4 +7,117 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') cards = balanced.Card.query +% elif mode == 'response': +{ + "cards": [ + { + "address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "avs_postal_match": null, + "avs_result": null, + "avs_street_match": null, + "brand": "MasterCard", + "created_at": "2014-01-27T22:56:55.656375Z", + "cvv": null, + "cvv_match": null, + "cvv_result": null, + "expiration_month": 12, + "expiration_year": 2020, + "fingerprint": "fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788", + "href": "/cards/CC2uc8iPDjgyxOXHVtnZloyI", + "id": "CC2uc8iPDjgyxOXHVtnZloyI", + "is_verified": true, + "links": { + "customer": null + }, + "meta": {}, + "name": null, + "number": "xxxxxxxxxxxx5100", + "updated_at": "2014-01-27T22:56:55.656379Z" + }, + { + "address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "avs_postal_match": null, + "avs_result": null, + "avs_street_match": null, + "brand": "MasterCard", + "created_at": "2014-01-27T22:56:37.869483Z", + "cvv": null, + "cvv_match": null, + "cvv_result": null, + "expiration_month": 12, + "expiration_year": 2020, + "fingerprint": "fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788", + "href": "/cards/CC2abDOQVm5aNFhHpcRvWS02", + "id": "CC2abDOQVm5aNFhHpcRvWS02", + "is_verified": true, + "links": { + "customer": "CU1f8Ygc4t0F2FKNcw235x9I" + }, + "meta": {}, + "name": null, + "number": "xxxxxxxxxxxx5100", + "updated_at": "2014-01-27T22:56:39.354525Z" + }, + { + "address": { + "city": null, + "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": null, + "brand": "Visa", + "created_at": "2014-01-27T22:55:54.558589Z", + "cvv": null, + "cvv_match": null, + "cvv_result": null, + "expiration_month": 4, + "expiration_year": 2016, + "fingerprint": "979a26c05f2fb1c7ae38656312b176da2c9be1d938d442040bc79539caac6c0d", + "href": "/cards/CC1nrXVKmfh0ouOS7zxI6X8q", + "id": "CC1nrXVKmfh0ouOS7zxI6X8q", + "is_verified": true, + "links": { + "customer": "CU1iDnBalzHoZg47Np92rNrV" + }, + "meta": {}, + "name": "Benny Riemann", + "number": "xxxxxxxxxxxx1111", + "updated_at": "2014-01-27T22:55:54.558592Z" + } + ], + "links": { + "cards.card_holds": "/cards/{cards.id}/card_holds", + "cards.customer": "/customers/{cards.customer}", + "cards.debits": "/cards/{cards.id}/debits" + }, + "meta": { + "first": "/cards?limit=10&offset=0", + "href": "/cards?limit=10&offset=0", + "last": "/cards?limit=10&offset=0", + "limit": 10, + "next": null, + "offset": 0, + "previous": null, + "total": 3 + } +} % endif \ No newline at end of file diff --git a/scenarios/card_show/python.mako b/scenarios/card_show/python.mako index c63e502..7aea25b 100644 --- a/scenarios/card_show/python.mako +++ b/scenarios/card_show/python.mako @@ -6,4 +6,45 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card = balanced.Card.fetch('/cards/CC2uc8iPDjgyxOXHVtnZloyI') +% elif mode == 'response': +{ + "cards": [ + { + "address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "avs_postal_match": null, + "avs_result": null, + "avs_street_match": null, + "brand": "MasterCard", + "created_at": "2014-01-27T22:56:55.656375Z", + "cvv": null, + "cvv_match": null, + "cvv_result": null, + "expiration_month": 12, + "expiration_year": 2020, + "fingerprint": "fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788", + "href": "/cards/CC2uc8iPDjgyxOXHVtnZloyI", + "id": "CC2uc8iPDjgyxOXHVtnZloyI", + "is_verified": true, + "links": { + "customer": null + }, + "meta": {}, + "name": null, + "number": "xxxxxxxxxxxx5100", + "updated_at": "2014-01-27T22:56:55.656379Z" + } + ], + "links": { + "cards.card_holds": "/cards/{cards.id}/card_holds", + "cards.customer": "/customers/{cards.customer}", + "cards.debits": "/cards/{cards.id}/debits" + } +} % endif \ No newline at end of file diff --git a/scenarios/card_update/python.mako b/scenarios/card_update/python.mako index 9248b80..8f1505c 100644 --- a/scenarios/card_update/python.mako +++ b/scenarios/card_update/python.mako @@ -12,4 +12,49 @@ card.meta = { 'my-own-customer-id': '12345' } card.save() +% elif mode == 'response': +{ + "cards": [ + { + "address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "avs_postal_match": null, + "avs_result": null, + "avs_street_match": null, + "brand": "MasterCard", + "created_at": "2014-01-27T22:56:55.656375Z", + "cvv": null, + "cvv_match": null, + "cvv_result": null, + "expiration_month": 12, + "expiration_year": 2020, + "fingerprint": "fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788", + "href": "/cards/CC2uc8iPDjgyxOXHVtnZloyI", + "id": "CC2uc8iPDjgyxOXHVtnZloyI", + "is_verified": true, + "links": { + "customer": null + }, + "meta": { + "facebook.user_id": "0192837465", + "my-own-customer-id": "12345", + "twitter.id": "1234987650" + }, + "name": null, + "number": "xxxxxxxxxxxx5100", + "updated_at": "2014-01-27T22:57:02.195769Z" + } + ], + "links": { + "cards.card_holds": "/cards/{cards.id}/card_holds", + "cards.customer": "/customers/{cards.customer}", + "cards.debits": "/cards/{cards.id}/debits" + } +} % endif \ No newline at end of file diff --git a/scenarios/credit_list/python.mako b/scenarios/credit_list/python.mako index 0974e0d..315253c 100644 --- a/scenarios/credit_list/python.mako +++ b/scenarios/credit_list/python.mako @@ -7,4 +7,46 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') credits = balanced.Credit.query +% elif mode == 'response': +{ + "credits": [ + { + "amount": 5000, + "appears_on_statement_as": "example.com", + "created_at": "2014-01-27T22:57:19.073817Z", + "currency": "USD", + "description": null, + "failure_reason": null, + "failure_reason_code": null, + "href": "/credits/CR2UtQgq6L3FPd1YoOc8eyOC", + "id": "CR2UtQgq6L3FPd1YoOc8eyOC", + "links": { + "customer": "CU2N5goX8AQJE0CCPeapHUsM", + "destination": "BA2QAksIxlLt60lqKc1wwgJy", + "order": null + }, + "meta": {}, + "status": "succeeded", + "transaction_number": "CR408-633-3169", + "updated_at": "2014-01-27T22:57:20.208794Z" + } + ], + "links": { + "credits.customer": "/customers/{credits.customer}", + "credits.destination": "/resources/{credits.destination}", + "credits.events": "/credits/{credits.id}/events", + "credits.order": "/orders/{credits.order}", + "credits.reversals": "/credits/{credits.id}/reversals" + }, + "meta": { + "first": "/credits?limit=10&offset=0", + "href": "/credits?limit=10&offset=0", + "last": "/credits?limit=10&offset=0", + "limit": 10, + "next": null, + "offset": 0, + "previous": null, + "total": 1 + } +} % endif \ 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..711ec8e 100644 --- a/scenarios/credit_list_bank_account/python.mako +++ b/scenarios/credit_list_bank_account/python.mako @@ -7,4 +7,18 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy/credits') credits = bank_account.credits +% elif mode == 'response': +{ + "links": {}, + "meta": { + "first": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy/credits?limit=10&offset=0", + "href": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy/credits?limit=10&offset=0", + "last": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy/credits?limit=10&offset=0", + "limit": 10, + "next": null, + "offset": 0, + "previous": null, + "total": 0 + } +} % endif \ No newline at end of file diff --git a/scenarios/credit_show/python.mako b/scenarios/credit_show/python.mako index e506fad..1d4bc05 100644 --- a/scenarios/credit_show/python.mako +++ b/scenarios/credit_show/python.mako @@ -7,4 +7,36 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') credit = balanced.Credit.fetch('/credits/CR2UtQgq6L3FPd1YoOc8eyOC') +% elif mode == 'response': +{ + "credits": [ + { + "amount": 5000, + "appears_on_statement_as": "example.com", + "created_at": "2014-01-27T22:57:19.073817Z", + "currency": "USD", + "description": null, + "failure_reason": null, + "failure_reason_code": null, + "href": "/credits/CR2UtQgq6L3FPd1YoOc8eyOC", + "id": "CR2UtQgq6L3FPd1YoOc8eyOC", + "links": { + "customer": "CU2N5goX8AQJE0CCPeapHUsM", + "destination": "BA2QAksIxlLt60lqKc1wwgJy", + "order": null + }, + "meta": {}, + "status": "succeeded", + "transaction_number": "CR408-633-3169", + "updated_at": "2014-01-27T22:57:20.208794Z" + } + ], + "links": { + "credits.customer": "/customers/{credits.customer}", + "credits.destination": "/resources/{credits.destination}", + "credits.events": "/credits/{credits.id}/events", + "credits.order": "/orders/{credits.order}", + "credits.reversals": "/credits/{credits.id}/reversals" + } +} % endif \ No newline at end of file diff --git a/scenarios/credit_update/python.mako b/scenarios/credit_update/python.mako index a68e4ec..963c1c1 100644 --- a/scenarios/credit_update/python.mako +++ b/scenarios/credit_update/python.mako @@ -12,4 +12,39 @@ credit.meta = { 'my-own-customer-id': '12345' } credit.save() +% elif mode == 'response': +{ + "credits": [ + { + "amount": 5000, + "appears_on_statement_as": "example.com", + "created_at": "2014-01-27T22:57:19.073817Z", + "currency": "USD", + "description": "New description for credit", + "failure_reason": null, + "failure_reason_code": null, + "href": "/credits/CR2UtQgq6L3FPd1YoOc8eyOC", + "id": "CR2UtQgq6L3FPd1YoOc8eyOC", + "links": { + "customer": "CU2N5goX8AQJE0CCPeapHUsM", + "destination": "BA2QAksIxlLt60lqKc1wwgJy", + "order": null + }, + "meta": { + "anykey": "valuegoeshere", + "facebook.id": "1234567890" + }, + "status": "succeeded", + "transaction_number": "CR408-633-3169", + "updated_at": "2014-01-27T22:57:25.832930Z" + } + ], + "links": { + "credits.customer": "/customers/{credits.customer}", + "credits.destination": "/resources/{credits.destination}", + "credits.events": "/credits/{credits.id}/events", + "credits.order": "/orders/{credits.order}", + "credits.reversals": "/credits/{credits.id}/reversals" + } +} % endif \ No newline at end of file diff --git a/scenarios/customer_create/python.mako b/scenarios/customer_create/python.mako index d340779..c21feb4 100644 --- a/scenarios/customer_create/python.mako +++ b/scenarios/customer_create/python.mako @@ -13,4 +13,50 @@ customer = balanced.Customer( 'postal_code': '48120' } ).save() +% elif mode == 'response': +{ + "customers": [ + { + "address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": "48120", + "state": null + }, + "business_name": null, + "created_at": "2014-01-27T22:57:36.586782Z", + "dob_month": 7, + "dob_year": 1963, + "ein": null, + "email": null, + "href": "/customers/CU3eeasZ9yQ86uzzIYZkrPGg", + "id": "CU3eeasZ9yQ86uzzIYZkrPGg", + "links": { + "destination": null, + "source": null + }, + "merchant_status": "underwritten", + "meta": {}, + "name": "Henry Ford", + "phone": null, + "ssn_last4": null, + "updated_at": "2014-01-27T22:57:37.740442Z" + } + ], + "links": { + "customers.bank_accounts": "/customers/{customers.id}/bank_accounts", + "customers.card_holds": "/customers/{customers.id}/card_holds", + "customers.cards": "/customers/{customers.id}/cards", + "customers.credits": "/customers/{customers.id}/credits", + "customers.debits": "/customers/{customers.id}/debits", + "customers.destination": "/resources/{customers.destination}", + "customers.orders": "/customers/{customers.id}/orders", + "customers.refunds": "/customers/{customers.id}/refunds", + "customers.reversals": "/customers/{customers.id}/reversals", + "customers.source": "/resources/{customers.source}", + "customers.transactions": "/customers/{customers.id}/transactions" + } +} % endif \ No newline at end of file diff --git a/scenarios/customer_delete/python.mako b/scenarios/customer_delete/python.mako index 7a53b1f..b198968 100644 --- a/scenarios/customer_delete/python.mako +++ b/scenarios/customer_delete/python.mako @@ -7,4 +7,6 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') customer = balanced.Customer.fetch('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') customer.unstore() +% elif mode == 'response': +{} % endif \ No newline at end of file diff --git a/scenarios/customer_list/python.mako b/scenarios/customer_list/python.mako index d973eb2..e4570d0 100644 --- a/scenarios/customer_list/python.mako +++ b/scenarios/customer_list/python.mako @@ -7,4 +7,144 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') customers = balanced.Customer.query +% elif mode == 'response': +{ + "customers": [ + { + "address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": "48120", + "state": null + }, + "business_name": null, + "created_at": "2014-01-27T22:57:27.459187Z", + "dob_month": 7, + "dob_year": 1963, + "ein": null, + "email": null, + "href": "/customers/CU33Y4cut21qu1d1lGYDBseQ", + "id": "CU33Y4cut21qu1d1lGYDBseQ", + "links": { + "destination": null, + "source": null + }, + "merchant_status": "underwritten", + "meta": {}, + "name": "Henry Ford", + "phone": null, + "ssn_last4": null, + "updated_at": "2014-01-27T22:57:29.488272Z" + }, + { + "address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": "48120", + "state": null + }, + "business_name": null, + "created_at": "2014-01-27T22:57:12.447565Z", + "dob_month": 7, + "dob_year": 1963, + "ein": null, + "email": null, + "href": "/customers/CU2N5goX8AQJE0CCPeapHUsM", + "id": "CU2N5goX8AQJE0CCPeapHUsM", + "links": { + "destination": null, + "source": null + }, + "merchant_status": "underwritten", + "meta": {}, + "name": "Henry Ford", + "phone": null, + "ssn_last4": null, + "updated_at": "2014-01-27T22:57:13.581358Z" + }, + { + "address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "business_name": null, + "created_at": "2014-01-27T22:55:50.253066Z", + "dob_month": null, + "dob_year": null, + "ein": null, + "email": null, + "href": "/customers/CU1iDnBalzHoZg47Np92rNrV", + "id": "CU1iDnBalzHoZg47Np92rNrV", + "links": { + "destination": null, + "source": null + }, + "merchant_status": "no-match", + "meta": {}, + "name": null, + "phone": null, + "ssn_last4": null, + "updated_at": "2014-01-27T22:55:50.767858Z" + }, + { + "address": { + "city": "Nowhere", + "country_code": "USA", + "line1": null, + "line2": null, + "postal_code": "90210", + "state": null + }, + "business_name": null, + "created_at": "2014-01-27T22:55:47.156306Z", + "dob_month": 2, + "dob_year": 1947, + "ein": null, + "email": "whc@example.org", + "href": "/customers/CU1f8Ygc4t0F2FKNcw235x9I", + "id": "CU1f8Ygc4t0F2FKNcw235x9I", + "links": { + "destination": null, + "source": null + }, + "merchant_status": "underwritten", + "meta": {}, + "name": "William Henry Cavendish III", + "phone": "+16505551212", + "ssn_last4": "xxxx", + "updated_at": "2014-01-27T22:55:47.781694Z" + } + ], + "links": { + "customers.bank_accounts": "/customers/{customers.id}/bank_accounts", + "customers.card_holds": "/customers/{customers.id}/card_holds", + "customers.cards": "/customers/{customers.id}/cards", + "customers.credits": "/customers/{customers.id}/credits", + "customers.debits": "/customers/{customers.id}/debits", + "customers.destination": "/resources/{customers.destination}", + "customers.orders": "/customers/{customers.id}/orders", + "customers.refunds": "/customers/{customers.id}/refunds", + "customers.reversals": "/customers/{customers.id}/reversals", + "customers.source": "/resources/{customers.source}", + "customers.transactions": "/customers/{customers.id}/transactions" + }, + "meta": { + "first": "/customers?limit=10&offset=0", + "href": "/customers?limit=10&offset=0", + "last": "/customers?limit=10&offset=0", + "limit": 10, + "next": null, + "offset": 0, + "previous": null, + "total": 4 + } +} % endif \ No newline at end of file diff --git a/scenarios/customer_show/python.mako b/scenarios/customer_show/python.mako index 70ed147..c9fae35 100644 --- a/scenarios/customer_show/python.mako +++ b/scenarios/customer_show/python.mako @@ -7,4 +7,50 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') customer = balanced.Customer.fetch('/customers/CU33Y4cut21qu1d1lGYDBseQ') +% elif mode == 'response': +{ + "customers": [ + { + "address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": "48120", + "state": null + }, + "business_name": null, + "created_at": "2014-01-27T22:57:27.459187Z", + "dob_month": 7, + "dob_year": 1963, + "ein": null, + "email": null, + "href": "/customers/CU33Y4cut21qu1d1lGYDBseQ", + "id": "CU33Y4cut21qu1d1lGYDBseQ", + "links": { + "destination": null, + "source": null + }, + "merchant_status": "underwritten", + "meta": {}, + "name": "Henry Ford", + "phone": null, + "ssn_last4": null, + "updated_at": "2014-01-27T22:57:29.488272Z" + } + ], + "links": { + "customers.bank_accounts": "/customers/{customers.id}/bank_accounts", + "customers.card_holds": "/customers/{customers.id}/card_holds", + "customers.cards": "/customers/{customers.id}/cards", + "customers.credits": "/customers/{customers.id}/credits", + "customers.debits": "/customers/{customers.id}/debits", + "customers.destination": "/resources/{customers.destination}", + "customers.orders": "/customers/{customers.id}/orders", + "customers.refunds": "/customers/{customers.id}/refunds", + "customers.reversals": "/customers/{customers.id}/reversals", + "customers.source": "/resources/{customers.source}", + "customers.transactions": "/customers/{customers.id}/transactions" + } +} % endif \ No newline at end of file diff --git a/scenarios/customer_update/python.mako b/scenarios/customer_update/python.mako index 0eec0f1..cd7640c 100644 --- a/scenarios/customer_update/python.mako +++ b/scenarios/customer_update/python.mako @@ -11,4 +11,52 @@ customer.meta = { 'shipping-preference': 'ground' } customer.save() +% elif mode == 'response': +{ + "customers": [ + { + "address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": "48120", + "state": null + }, + "business_name": null, + "created_at": "2014-01-27T22:57:27.459187Z", + "dob_month": 7, + "dob_year": 1963, + "ein": null, + "email": "email@newdomain.com", + "href": "/customers/CU33Y4cut21qu1d1lGYDBseQ", + "id": "CU33Y4cut21qu1d1lGYDBseQ", + "links": { + "destination": null, + "source": null + }, + "merchant_status": "underwritten", + "meta": { + "shipping-preference": "ground" + }, + "name": "Henry Ford", + "phone": null, + "ssn_last4": null, + "updated_at": "2014-01-27T22:57:34.512310Z" + } + ], + "links": { + "customers.bank_accounts": "/customers/{customers.id}/bank_accounts", + "customers.card_holds": "/customers/{customers.id}/card_holds", + "customers.cards": "/customers/{customers.id}/cards", + "customers.credits": "/customers/{customers.id}/credits", + "customers.debits": "/customers/{customers.id}/debits", + "customers.destination": "/resources/{customers.destination}", + "customers.orders": "/customers/{customers.id}/orders", + "customers.refunds": "/customers/{customers.id}/refunds", + "customers.reversals": "/customers/{customers.id}/reversals", + "customers.source": "/resources/{customers.source}", + "customers.transactions": "/customers/{customers.id}/transactions" + } +} % endif \ No newline at end of file diff --git a/scenarios/debit_list/python.mako b/scenarios/debit_list/python.mako index 6b27175..6bd0ef0 100644 --- a/scenarios/debit_list/python.mako +++ b/scenarios/debit_list/python.mako @@ -7,4 +7,114 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') debits = balanced.Debit.query +% elif mode == 'response': +{ + "debits": [ + { + "amount": 5000, + "appears_on_statement_as": "BAL*Statement text", + "created_at": "2014-01-27T22:57:05.511023Z", + "currency": "USD", + "description": "Some descriptive text for the debit in the dashboard", + "failure_reason": null, + "failure_reason_code": null, + "href": "/debits/WD2Fd3jVcMZEWyXHtG3U1LRM", + "id": "WD2Fd3jVcMZEWyXHtG3U1LRM", + "links": { + "customer": null, + "dispute": null, + "order": null, + "source": "CC2uc8iPDjgyxOXHVtnZloyI" + }, + "meta": {}, + "status": "succeeded", + "transaction_number": "W906-153-1439", + "updated_at": "2014-01-27T22:57:10.153696Z" + }, + { + "amount": 5000, + "appears_on_statement_as": "BAL*ShowsUpOnStmt", + "created_at": "2014-01-27T22:56:45.623268Z", + "currency": "USD", + "description": "Some descriptive text for the debit in the dashboard", + "failure_reason": null, + "failure_reason_code": null, + "href": "/debits/WD2iSCukjXyeRdkvX3cW0PmC", + "id": "WD2iSCukjXyeRdkvX3cW0PmC", + "links": { + "customer": "CU1f8Ygc4t0F2FKNcw235x9I", + "dispute": null, + "order": null, + "source": "CC2abDOQVm5aNFhHpcRvWS02" + }, + "meta": { + "holding.for": "user1", + "meaningful.key": "some.value" + }, + "status": "succeeded", + "transaction_number": "W744-719-1832", + "updated_at": "2014-01-27T22:56:47.926021Z" + }, + { + "amount": 5000, + "appears_on_statement_as": "BAL*Statement text", + "created_at": "2014-01-27T22:56:28.702119Z", + "currency": "USD", + "description": "Some descriptive text for the debit in the dashboard", + "failure_reason": null, + "failure_reason_code": null, + "href": "/debits/WD1ZRRAZnFTryFdFaq7ijcPE", + "id": "WD1ZRRAZnFTryFdFaq7ijcPE", + "links": { + "customer": null, + "dispute": null, + "order": null, + "source": "BA1D3vL3LjasB0kewMqRGI0S" + }, + "meta": {}, + "status": "succeeded", + "transaction_number": "W081-463-7557", + "updated_at": "2014-01-27T22:56:29.235927Z" + }, + { + "amount": 10000000, + "appears_on_statement_as": "BAL*example.com", + "created_at": "2014-01-27T22:55:56.757487Z", + "currency": "USD", + "description": null, + "failure_reason": null, + "failure_reason_code": null, + "href": "/debits/WD1pU48nHJzorOySkTaQGQ9U", + "id": "WD1pU48nHJzorOySkTaQGQ9U", + "links": { + "customer": "CU1iDnBalzHoZg47Np92rNrV", + "dispute": null, + "order": null, + "source": "CC1nrXVKmfh0ouOS7zxI6X8q" + }, + "meta": {}, + "status": "succeeded", + "transaction_number": "W511-688-4504", + "updated_at": "2014-01-27T22:56:00.833870Z" + } + ], + "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}" + }, + "meta": { + "first": "/debits?limit=10&offset=0", + "href": "/debits?limit=10&offset=0", + "last": "/debits?limit=10&offset=0", + "limit": 10, + "next": null, + "offset": 0, + "previous": null, + "total": 4 + } +} % endif \ No newline at end of file diff --git a/scenarios/debit_show/python.mako b/scenarios/debit_show/python.mako index a373964..bbe4b45 100644 --- a/scenarios/debit_show/python.mako +++ b/scenarios/debit_show/python.mako @@ -7,4 +7,38 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') debit = balanced.Debit.fetch('/debits/WD2Fd3jVcMZEWyXHtG3U1LRM') +% elif mode == 'response': +{ + "debits": [ + { + "amount": 5000, + "appears_on_statement_as": "BAL*Statement text", + "created_at": "2014-01-27T22:57:05.511023Z", + "currency": "USD", + "description": "Some descriptive text for the debit in the dashboard", + "failure_reason": null, + "failure_reason_code": null, + "href": "/debits/WD2Fd3jVcMZEWyXHtG3U1LRM", + "id": "WD2Fd3jVcMZEWyXHtG3U1LRM", + "links": { + "customer": null, + "dispute": null, + "order": null, + "source": "CC2uc8iPDjgyxOXHVtnZloyI" + }, + "meta": {}, + "status": "succeeded", + "transaction_number": "W906-153-1439", + "updated_at": "2014-01-27T22:57:10.153696Z" + } + ], + "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}" + } +} % endif \ No newline at end of file diff --git a/scenarios/debit_update/python.mako b/scenarios/debit_update/python.mako index ec4e980..dc5bb40 100644 --- a/scenarios/debit_update/python.mako +++ b/scenarios/debit_update/python.mako @@ -12,4 +12,41 @@ debit.meta = { 'anykey': 'valuegoeshere', } debit.save() +% elif mode == 'response': +{ + "debits": [ + { + "amount": 5000, + "appears_on_statement_as": "BAL*Statement text", + "created_at": "2014-01-27T22:57:05.511023Z", + "currency": "USD", + "description": "New description for debit", + "failure_reason": null, + "failure_reason_code": null, + "href": "/debits/WD2Fd3jVcMZEWyXHtG3U1LRM", + "id": "WD2Fd3jVcMZEWyXHtG3U1LRM", + "links": { + "customer": null, + "dispute": null, + "order": null, + "source": "CC2uc8iPDjgyxOXHVtnZloyI" + }, + "meta": { + "anykey": "valuegoeshere", + "facebook.id": "1234567890" + }, + "status": "succeeded", + "transaction_number": "W906-153-1439", + "updated_at": "2014-01-27T22:57:53.776191Z" + } + ], + "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}" + } +} % endif \ No newline at end of file diff --git a/scenarios/event_list/python.mako b/scenarios/event_list/python.mako index 9decb8f..99f16ce 100644 --- a/scenarios/event_list/python.mako +++ b/scenarios/event_list/python.mako @@ -7,4 +7,80 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') events = balanced.Event.query +% elif mode == 'response': +{ + "events": [ + { + "callback_statuses": { + "failed": 0, + "pending": 0, + "retrying": 0, + "succeeded": 0 + }, + "entity": { + "customers": [ + { + "address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "business_name": null, + "created_at": "2014-01-27T22:55:50.253066Z", + "dob_month": null, + "dob_year": null, + "ein": null, + "email": null, + "href": "/customers/CU1iDnBalzHoZg47Np92rNrV", + "id": "CU1iDnBalzHoZg47Np92rNrV", + "links": { + "destination": null, + "source": null + }, + "merchant_status": "no-match", + "meta": {}, + "name": null, + "phone": null, + "ssn_last4": null, + "updated_at": "2014-01-27T22:55:50.767858Z" + } + ], + "links": { + "customers.bank_accounts": "/customers/{customers.id}/bank_accounts", + "customers.card_holds": "/customers/{customers.id}/card_holds", + "customers.cards": "/customers/{customers.id}/cards", + "customers.credits": "/customers/{customers.id}/credits", + "customers.debits": "/customers/{customers.id}/debits", + "customers.destination": "/resources/{customers.destination}", + "customers.orders": "/customers/{customers.id}/orders", + "customers.refunds": "/customers/{customers.id}/refunds", + "customers.reversals": "/customers/{customers.id}/reversals", + "customers.source": "/resources/{customers.source}", + "customers.transactions": "/customers/{customers.id}/transactions" + } + }, + "href": "/events/EV2abbb98487a611e3a86f026ba7d31e6f", + "id": "EV2abbb98487a611e3a86f026ba7d31e6f", + "links": {}, + "occurred_at": "2014-01-27T22:55:50.767000Z", + "type": "account.created" + } + ], + "links": { + "events.callbacks": "/events/{events.self}/callbacks" + }, + "meta": { + "first": "/events?limit=10&offset=0", + "href": "/events?limit=10&offset=0", + "last": "/events?limit=10&offset=0", + "limit": 10, + "next": null, + "offset": 0, + "previous": null, + "total": 1 + } +} % endif \ No newline at end of file diff --git a/scenarios/event_show/python.mako b/scenarios/event_show/python.mako index 4201c5b..abaec4d 100644 --- a/scenarios/event_show/python.mako +++ b/scenarios/event_show/python.mako @@ -7,4 +7,70 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') event = balanced.Event.fetch('/events/EV2abbb98487a611e3a86f026ba7d31e6f') +% elif mode == 'response': +{ + "events": [ + { + "callback_statuses": { + "failed": 0, + "pending": 0, + "retrying": 0, + "succeeded": 0 + }, + "entity": { + "customers": [ + { + "address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "business_name": null, + "created_at": "2014-01-27T22:55:50.253066Z", + "dob_month": null, + "dob_year": null, + "ein": null, + "email": null, + "href": "/customers/CU1iDnBalzHoZg47Np92rNrV", + "id": "CU1iDnBalzHoZg47Np92rNrV", + "links": { + "destination": null, + "source": null + }, + "merchant_status": "no-match", + "meta": {}, + "name": null, + "phone": null, + "ssn_last4": null, + "updated_at": "2014-01-27T22:55:50.767858Z" + } + ], + "links": { + "customers.bank_accounts": "/customers/{customers.id}/bank_accounts", + "customers.card_holds": "/customers/{customers.id}/card_holds", + "customers.cards": "/customers/{customers.id}/cards", + "customers.credits": "/customers/{customers.id}/credits", + "customers.debits": "/customers/{customers.id}/debits", + "customers.destination": "/resources/{customers.destination}", + "customers.orders": "/customers/{customers.id}/orders", + "customers.refunds": "/customers/{customers.id}/refunds", + "customers.reversals": "/customers/{customers.id}/reversals", + "customers.source": "/resources/{customers.source}", + "customers.transactions": "/customers/{customers.id}/transactions" + } + }, + "href": "/events/EV2abbb98487a611e3a86f026ba7d31e6f", + "id": "EV2abbb98487a611e3a86f026ba7d31e6f", + "links": {}, + "occurred_at": "2014-01-27T22:55:50.767000Z", + "type": "account.created" + } + ], + "links": { + "events.callbacks": "/events/{events.self}/callbacks" + } +} % endif \ No newline at end of file diff --git a/scenarios/order_create/python.mako b/scenarios/order_create/python.mako index fcf82b3..aafeb51 100644 --- a/scenarios/order_create/python.mako +++ b/scenarios/order_create/python.mako @@ -9,4 +9,39 @@ merchant_customer = balanced.Customer.fetch('/customers/CU3eeasZ9yQ86uzzIYZkrPGg merchant_customer.create_order( description='Order #12341234' ).save() +% elif mode == 'response': +{ + "links": { + "orders.buyers": "/orders/{orders.id}/buyers", + "orders.credits": "/orders/{orders.id}/credits", + "orders.debits": "/orders/{orders.id}/debits", + "orders.merchant": "/customers/{orders.merchant}", + "orders.refunds": "/orders/{orders.id}/refunds", + "orders.reversals": "/orders/{orders.id}/reversals" + }, + "orders": [ + { + "amount": 0, + "amount_escrowed": 0, + "created_at": "2014-01-27T22:58:01.115720Z", + "currency": "USD", + "delivery_address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "description": "Order #12341234", + "href": "/orders/OR3FOihZa7lMHdAP5p8BJZVY", + "id": "OR3FOihZa7lMHdAP5p8BJZVY", + "links": { + "merchant": "CU3eeasZ9yQ86uzzIYZkrPGg" + }, + "meta": {}, + "updated_at": "2014-01-27T22:58:01.115723Z" + } + ] +} % endif \ No newline at end of file diff --git a/scenarios/order_list/python.mako b/scenarios/order_list/python.mako index d25f46b..05efb35 100644 --- a/scenarios/order_list/python.mako +++ b/scenarios/order_list/python.mako @@ -7,4 +7,49 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') orders = balanced.Order.query +% elif mode == 'response': +{ + "links": { + "orders.buyers": "/orders/{orders.id}/buyers", + "orders.credits": "/orders/{orders.id}/credits", + "orders.debits": "/orders/{orders.id}/debits", + "orders.merchant": "/customers/{orders.merchant}", + "orders.refunds": "/orders/{orders.id}/refunds", + "orders.reversals": "/orders/{orders.id}/reversals" + }, + "meta": { + "first": "/orders?limit=10&offset=0", + "href": "/orders?limit=10&offset=0", + "last": "/orders?limit=10&offset=0", + "limit": 10, + "next": null, + "offset": 0, + "previous": null, + "total": 1 + }, + "orders": [ + { + "amount": 0, + "amount_escrowed": 0, + "created_at": "2014-01-27T22:58:01.115720Z", + "currency": "USD", + "delivery_address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "description": "Order #12341234", + "href": "/orders/OR3FOihZa7lMHdAP5p8BJZVY", + "id": "OR3FOihZa7lMHdAP5p8BJZVY", + "links": { + "merchant": "CU3eeasZ9yQ86uzzIYZkrPGg" + }, + "meta": {}, + "updated_at": "2014-01-27T22:58:01.115723Z" + } + ] +} % endif \ No newline at end of file diff --git a/scenarios/order_show/python.mako b/scenarios/order_show/python.mako index 8cdd544..ad8efea 100644 --- a/scenarios/order_show/python.mako +++ b/scenarios/order_show/python.mako @@ -7,4 +7,39 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') order = balanced.Order.fetch('/orders/OR3FOihZa7lMHdAP5p8BJZVY') +% elif mode == 'response': +{ + "links": { + "orders.buyers": "/orders/{orders.id}/buyers", + "orders.credits": "/orders/{orders.id}/credits", + "orders.debits": "/orders/{orders.id}/debits", + "orders.merchant": "/customers/{orders.merchant}", + "orders.refunds": "/orders/{orders.id}/refunds", + "orders.reversals": "/orders/{orders.id}/reversals" + }, + "orders": [ + { + "amount": 0, + "amount_escrowed": 0, + "created_at": "2014-01-27T22:58:01.115720Z", + "currency": "USD", + "delivery_address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "description": "Order #12341234", + "href": "/orders/OR3FOihZa7lMHdAP5p8BJZVY", + "id": "OR3FOihZa7lMHdAP5p8BJZVY", + "links": { + "merchant": "CU3eeasZ9yQ86uzzIYZkrPGg" + }, + "meta": {}, + "updated_at": "2014-01-27T22:58:01.115723Z" + } + ] +} % endif \ No newline at end of file diff --git a/scenarios/order_update/python.mako b/scenarios/order_update/python.mako index 212c7c3..fba1563 100644 --- a/scenarios/order_update/python.mako +++ b/scenarios/order_update/python.mako @@ -12,4 +12,42 @@ order.meta = { 'product.id': '1234567890' } order.save() +% elif mode == 'response': +{ + "links": { + "orders.buyers": "/orders/{orders.id}/buyers", + "orders.credits": "/orders/{orders.id}/credits", + "orders.debits": "/orders/{orders.id}/debits", + "orders.merchant": "/customers/{orders.merchant}", + "orders.refunds": "/orders/{orders.id}/refunds", + "orders.reversals": "/orders/{orders.id}/reversals" + }, + "orders": [ + { + "amount": 0, + "amount_escrowed": 0, + "created_at": "2014-01-27T22:58:01.115720Z", + "currency": "USD", + "delivery_address": { + "city": null, + "country_code": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "description": "New description for order", + "href": "/orders/OR3FOihZa7lMHdAP5p8BJZVY", + "id": "OR3FOihZa7lMHdAP5p8BJZVY", + "links": { + "merchant": "CU3eeasZ9yQ86uzzIYZkrPGg" + }, + "meta": { + "anykey": "valuegoeshere", + "product.id": "1234567890" + }, + "updated_at": "2014-01-27T22:58:05.657463Z" + } + ] +} % endif \ No newline at end of file diff --git a/scenarios/refund_create/python.mako b/scenarios/refund_create/python.mako index af6c7e5..d60ae6e 100644 --- a/scenarios/refund_create/python.mako +++ b/scenarios/refund_create/python.mako @@ -15,4 +15,36 @@ refund = debit.refund( "fulfillment.item.condition": "OK", } ) +% elif mode == 'response': +{ + "links": { + "refunds.debit": "/debits/{refunds.debit}", + "refunds.dispute": "/disputes/{refunds.dispute}", + "refunds.events": "/refunds/{refunds.id}/events", + "refunds.order": "/orders/{refunds.order}" + }, + "refunds": [ + { + "amount": 3000, + "created_at": "2014-01-27T22:58:11.375665Z", + "currency": "USD", + "description": "Refund for Order #1111", + "href": "/refunds/RF3RklPuFgsgI50UuYtr4g6I", + "id": "RF3RklPuFgsgI50UuYtr4g6I", + "links": { + "debit": "WD3MKNxNTKBGgA7mX50yogiu", + "dispute": null, + "order": null + }, + "meta": { + "fulfillment.item.condition": "OK", + "merchant.feedback": "positive", + "user.refund_reason": "not happy with product" + }, + "status": "succeeded", + "transaction_number": "RF383-088-7077", + "updated_at": "2014-01-27T22:58:12.115131Z" + } + ] +} % endif \ No newline at end of file diff --git a/scenarios/refund_list/python.mako b/scenarios/refund_list/python.mako index 9be7346..04d2ece 100644 --- a/scenarios/refund_list/python.mako +++ b/scenarios/refund_list/python.mako @@ -7,4 +7,46 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') refunds = balanced.Refund.query +% elif mode == 'response': +{ + "links": { + "refunds.debit": "/debits/{refunds.debit}", + "refunds.dispute": "/disputes/{refunds.dispute}", + "refunds.events": "/refunds/{refunds.id}/events", + "refunds.order": "/orders/{refunds.order}" + }, + "meta": { + "first": "/refunds?limit=10&offset=0", + "href": "/refunds?limit=10&offset=0", + "last": "/refunds?limit=10&offset=0", + "limit": 10, + "next": null, + "offset": 0, + "previous": null, + "total": 1 + }, + "refunds": [ + { + "amount": 3000, + "created_at": "2014-01-27T22:58:11.375665Z", + "currency": "USD", + "description": "Refund for Order #1111", + "href": "/refunds/RF3RklPuFgsgI50UuYtr4g6I", + "id": "RF3RklPuFgsgI50UuYtr4g6I", + "links": { + "debit": "WD3MKNxNTKBGgA7mX50yogiu", + "dispute": null, + "order": null + }, + "meta": { + "fulfillment.item.condition": "OK", + "merchant.feedback": "positive", + "user.refund_reason": "not happy with product" + }, + "status": "succeeded", + "transaction_number": "RF383-088-7077", + "updated_at": "2014-01-27T22:58:12.115131Z" + } + ] +} % endif \ No newline at end of file diff --git a/scenarios/refund_show/python.mako b/scenarios/refund_show/python.mako index 2d3542c..bf2c81d 100644 --- a/scenarios/refund_show/python.mako +++ b/scenarios/refund_show/python.mako @@ -7,4 +7,36 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') refund = balanced.Refund.fetch('/refunds/RF3RklPuFgsgI50UuYtr4g6I') +% elif mode == 'response': +{ + "links": { + "refunds.debit": "/debits/{refunds.debit}", + "refunds.dispute": "/disputes/{refunds.dispute}", + "refunds.events": "/refunds/{refunds.id}/events", + "refunds.order": "/orders/{refunds.order}" + }, + "refunds": [ + { + "amount": 3000, + "created_at": "2014-01-27T22:58:11.375665Z", + "currency": "USD", + "description": "Refund for Order #1111", + "href": "/refunds/RF3RklPuFgsgI50UuYtr4g6I", + "id": "RF3RklPuFgsgI50UuYtr4g6I", + "links": { + "debit": "WD3MKNxNTKBGgA7mX50yogiu", + "dispute": null, + "order": null + }, + "meta": { + "fulfillment.item.condition": "OK", + "merchant.feedback": "positive", + "user.refund_reason": "not happy with product" + }, + "status": "succeeded", + "transaction_number": "RF383-088-7077", + "updated_at": "2014-01-27T22:58:12.115131Z" + } + ] +} % endif \ No newline at end of file diff --git a/scenarios/refund_update/python.mako b/scenarios/refund_update/python.mako index da6f2d6..499881d 100644 --- a/scenarios/refund_update/python.mako +++ b/scenarios/refund_update/python.mako @@ -13,4 +13,36 @@ refund.meta = { 'user.notes': 'very polite on the phone', } refund.save() +% elif mode == 'response': +{ + "links": { + "refunds.debit": "/debits/{refunds.debit}", + "refunds.dispute": "/disputes/{refunds.dispute}", + "refunds.events": "/refunds/{refunds.id}/events", + "refunds.order": "/orders/{refunds.order}" + }, + "refunds": [ + { + "amount": 3000, + "created_at": "2014-01-27T22:58:11.375665Z", + "currency": "USD", + "description": "update this description", + "href": "/refunds/RF3RklPuFgsgI50UuYtr4g6I", + "id": "RF3RklPuFgsgI50UuYtr4g6I", + "links": { + "debit": "WD3MKNxNTKBGgA7mX50yogiu", + "dispute": null, + "order": null + }, + "meta": { + "refund.reason": "user not happy with product", + "user.notes": "very polite on the phone", + "user.refund.count": "3" + }, + "status": "succeeded", + "transaction_number": "RF383-088-7077", + "updated_at": "2014-01-27T22:58:17.950799Z" + } + ] +} % endif \ No newline at end of file diff --git a/scenarios/reversal_create/python.mako b/scenarios/reversal_create/python.mako index e8a8995..8d9c6aa 100644 --- a/scenarios/reversal_create/python.mako +++ b/scenarios/reversal_create/python.mako @@ -15,4 +15,36 @@ reversal = credit.reverse( "fulfillment.item.condition": "OK", } ) +% elif mode == 'response': +{ + "links": { + "reversals.credit": "/credits/{reversals.credit}", + "reversals.events": "/reversals/{reversals.id}/events", + "reversals.order": "/orders/{reversals.order}" + }, + "reversals": [ + { + "amount": 3000, + "created_at": "2014-01-27T22:58:21.214829Z", + "currency": "USD", + "description": "Reversal for Order #1111", + "failure_reason": null, + "failure_reason_code": null, + "href": "/reversals/RV42n8M9XZWna427oPDDi4RG", + "id": "RV42n8M9XZWna427oPDDi4RG", + "links": { + "credit": "CR40neytmVG2HDBp1opfF7sY", + "order": null + }, + "meta": { + "fulfillment.item.condition": "OK", + "merchant.feedback": "positive", + "user.refund_reason": "not happy with product" + }, + "status": "succeeded", + "transaction_number": "RV219-169-0008", + "updated_at": "2014-01-27T22:58:22.190749Z" + } + ] +} % endif \ No newline at end of file diff --git a/scenarios/reversal_list/python.mako b/scenarios/reversal_list/python.mako index 38a6da6..a73bf5f 100644 --- a/scenarios/reversal_list/python.mako +++ b/scenarios/reversal_list/python.mako @@ -7,4 +7,46 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') reversals = balanced.Reversal.query +% elif mode == 'response': +{ + "links": { + "reversals.credit": "/credits/{reversals.credit}", + "reversals.events": "/reversals/{reversals.id}/events", + "reversals.order": "/orders/{reversals.order}" + }, + "meta": { + "first": "/reversals?limit=10&offset=0", + "href": "/reversals?limit=10&offset=0", + "last": "/reversals?limit=10&offset=0", + "limit": 10, + "next": null, + "offset": 0, + "previous": null, + "total": 1 + }, + "reversals": [ + { + "amount": 3000, + "created_at": "2014-01-27T22:58:21.214829Z", + "currency": "USD", + "description": "Reversal for Order #1111", + "failure_reason": null, + "failure_reason_code": null, + "href": "/reversals/RV42n8M9XZWna427oPDDi4RG", + "id": "RV42n8M9XZWna427oPDDi4RG", + "links": { + "credit": "CR40neytmVG2HDBp1opfF7sY", + "order": null + }, + "meta": { + "fulfillment.item.condition": "OK", + "merchant.feedback": "positive", + "user.refund_reason": "not happy with product" + }, + "status": "succeeded", + "transaction_number": "RV219-169-0008", + "updated_at": "2014-01-27T22:58:22.190749Z" + } + ] +} % endif \ No newline at end of file diff --git a/scenarios/reversal_show/python.mako b/scenarios/reversal_show/python.mako index 1beddcb..0f80717 100644 --- a/scenarios/reversal_show/python.mako +++ b/scenarios/reversal_show/python.mako @@ -7,4 +7,36 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') refund = balanced.Reversal.fetch('/reversals/RV42n8M9XZWna427oPDDi4RG') +% elif mode == 'response': +{ + "links": { + "reversals.credit": "/credits/{reversals.credit}", + "reversals.events": "/reversals/{reversals.id}/events", + "reversals.order": "/orders/{reversals.order}" + }, + "reversals": [ + { + "amount": 3000, + "created_at": "2014-01-27T22:58:21.214829Z", + "currency": "USD", + "description": "Reversal for Order #1111", + "failure_reason": null, + "failure_reason_code": null, + "href": "/reversals/RV42n8M9XZWna427oPDDi4RG", + "id": "RV42n8M9XZWna427oPDDi4RG", + "links": { + "credit": "CR40neytmVG2HDBp1opfF7sY", + "order": null + }, + "meta": { + "fulfillment.item.condition": "OK", + "merchant.feedback": "positive", + "user.refund_reason": "not happy with product" + }, + "status": "succeeded", + "transaction_number": "RV219-169-0008", + "updated_at": "2014-01-27T22:58:22.190749Z" + } + ] +} % endif \ No newline at end of file diff --git a/scenarios/reversal_update/python.mako b/scenarios/reversal_update/python.mako index b9b9065..8ed1966 100644 --- a/scenarios/reversal_update/python.mako +++ b/scenarios/reversal_update/python.mako @@ -13,4 +13,36 @@ reversal.meta = { 'user.notes': 'very polite on the phone', } reversal.save() +% elif mode == 'response': +{ + "links": { + "reversals.credit": "/credits/{reversals.credit}", + "reversals.events": "/reversals/{reversals.id}/events", + "reversals.order": "/orders/{reversals.order}" + }, + "reversals": [ + { + "amount": 3000, + "created_at": "2014-01-27T22:58:21.214829Z", + "currency": "USD", + "description": "update this description", + "failure_reason": null, + "failure_reason_code": null, + "href": "/reversals/RV42n8M9XZWna427oPDDi4RG", + "id": "RV42n8M9XZWna427oPDDi4RG", + "links": { + "credit": "CR40neytmVG2HDBp1opfF7sY", + "order": null + }, + "meta": { + "refund.reason": "user not happy with product", + "user.notes": "very polite on the phone", + "user.satisfaction": "6" + }, + "status": "succeeded", + "transaction_number": "RV219-169-0008", + "updated_at": "2014-01-27T22:58:27.354488Z" + } + ] +} % endif \ No newline at end of file From 6e50136abe0dd5fcec7bc228bb452e9e13703f4c Mon Sep 17 00:00:00 2001 From: Victor Lin Date: Thu, 6 Feb 2014 14:22:01 +0800 Subject: [PATCH 048/146] 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 049/146] 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 050/146] 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 051/146] 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 b87f881a1184f13d41d738d21059097ce31ef5f1 Mon Sep 17 00:00:00 2001 From: Richie Date: Thu, 6 Feb 2014 08:27:29 -0800 Subject: [PATCH 052/146] remove response from executable --- render_scenarios.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/render_scenarios.py b/render_scenarios.py index 604c029..8e31282 100644 --- a/render_scenarios.py +++ b/render_scenarios.py @@ -32,10 +32,9 @@ def render_executables(): template = Template(filename=path, lookup=lookup,) try: request = data[event_name].get('request', {}) - response = data[event_name].get('response', {}) payload = request.get('payload') text = template.render(api_key=data['api_key'], - request=request, payload=payload, response= response).strip() + request=request, payload=payload).strip() except KeyError: text = '' print "WARN: Skipped {} since {} not in scenario.cache".format( From ea582a25c3bd47596c57c27b144334a268eb4c34 Mon Sep 17 00:00:00 2001 From: Patrick Cieplak Date: Wed, 5 Feb 2014 19:51:30 -0800 Subject: [PATCH 053/146] 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 054/146] 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 055/146] 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 056/146] 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 057/146] 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 058/146] 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 059/146] 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 060/146] 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 a5f8f87a8a3156fd06a07d70b71c604ba6a95d73 Mon Sep 17 00:00:00 2001 From: Richie Date: Fri, 7 Feb 2014 14:07:11 -0800 Subject: [PATCH 061/146] Prettry print json into python --- render_scenarios.py | 10 ++ scenarios/_mj/api_key_create/python.mako | 14 +- scenarios/api_key_create/python.mako | 14 +- scenarios/api_key_delete/python.mako | 2 +- scenarios/api_key_list/python.mako | 31 +--- scenarios/api_key_show/python.mako | 13 +- .../python.mako | 39 +---- scenarios/bank_account_create/python.mako | 39 +---- scenarios/bank_account_credit/python.mako | 32 +--- scenarios/bank_account_debit/python.mako | 34 +---- scenarios/bank_account_delete/python.mako | 2 +- scenarios/bank_account_list/python.mako | 103 +------------ scenarios/bank_account_show/python.mako | 39 +---- scenarios/bank_account_update/python.mako | 43 +----- .../python.mako | 22 +-- .../python.mako | 22 +-- .../python.mako | 22 +-- scenarios/callback_create/python.mako | 14 +- scenarios/callback_delete/python.mako | 2 +- scenarios/callback_list/python.mako | 24 +-- scenarios/callback_show/python.mako | 14 +- .../card_associate_to_customer/python.mako | 41 +---- scenarios/card_create/python.mako | 41 +---- scenarios/card_debit/python.mako | 34 +---- scenarios/card_delete/python.mako | 2 +- scenarios/card_hold_capture/python.mako | 37 +---- scenarios/card_hold_create/python.mako | 29 +--- scenarios/card_hold_list/python.mako | 57 +------ scenarios/card_hold_show/python.mako | 29 +--- scenarios/card_hold_update/python.mako | 32 +--- scenarios/card_hold_void/python.mako | 29 +--- scenarios/card_list/python.mako | 113 +------------- scenarios/card_show/python.mako | 41 +---- scenarios/card_update/python.mako | 45 +----- scenarios/credit_list/python.mako | 42 +----- .../credit_list_bank_account/python.mako | 14 +- scenarios/credit_show/python.mako | 32 +--- scenarios/credit_update/python.mako | 35 +---- scenarios/customer_create/python.mako | 46 +----- scenarios/customer_delete/python.mako | 2 +- scenarios/customer_list/python.mako | 140 +----------------- scenarios/customer_show/python.mako | 46 +----- scenarios/customer_update/python.mako | 48 +----- scenarios/debit_list/python.mako | 110 +------------- scenarios/debit_show/python.mako | 34 +---- scenarios/debit_update/python.mako | 37 +---- scenarios/event_list/python.mako | 76 +--------- scenarios/event_show/python.mako | 66 +-------- scenarios/order_create/python.mako | 35 +---- scenarios/order_list/python.mako | 45 +----- scenarios/order_show/python.mako | 35 +---- scenarios/order_update/python.mako | 38 +---- scenarios/refund_create/python.mako | 32 +--- scenarios/refund_list/python.mako | 42 +----- scenarios/refund_show/python.mako | 32 +--- scenarios/refund_update/python.mako | 32 +--- scenarios/reversal_create/python.mako | 32 +--- scenarios/reversal_list/python.mako | 42 +----- scenarios/reversal_show/python.mako | 32 +--- scenarios/reversal_update/python.mako | 32 +--- 60 files changed, 69 insertions(+), 2153 deletions(-) diff --git a/render_scenarios.py b/render_scenarios.py index 8e31282..fe0b460 100644 --- a/render_scenarios.py +++ b/render_scenarios.py @@ -1,6 +1,7 @@ import glob2 import os import json +import pprint from mako.template import Template from mako.lookup import TemplateLookup @@ -18,6 +19,15 @@ def construct_response(scenario_name): try: response = data[event_name].get('response', {}) text = template.render(response= response).strip() + response = json.loads(text) + del response["links"] + for key, value in response.items(): + response = value[0] + word = key + print word + # for key, value in response.items(): + # response2 = setattr(word, key, value) + text =template.render(response= response).strip() except KeyError: text = '' return text diff --git a/scenarios/_mj/api_key_create/python.mako b/scenarios/_mj/api_key_create/python.mako index 826b16b..66ba33f 100644 --- a/scenarios/_mj/api_key_create/python.mako +++ b/scenarios/_mj/api_key_create/python.mako @@ -9,17 +9,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') api_key = balanced.APIKey() api_key.save() % elif mode == 'response': -{ - "api_keys": [ - { - "created_at": "2014-01-27T22:56:01.641736Z", - "href": "/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c", - "id": "AK1vqjn1eEHXP0JYXrBrjH5c", - "links": {}, - "meta": {}, - "secret": "ak-test-1jlJCdGZjRWWYRF1iLBR69xwqG2NdQifv" - } - ], - "links": {} -} +{u'links': {}, u'created_at': u'2014-01-27T22:56:01.641736Z', u'secret': u'ak-test-1jlJCdGZjRWWYRF1iLBR69xwqG2NdQifv', u'href': u'/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c', u'meta': {}, u'id': u'AK1vqjn1eEHXP0JYXrBrjH5c'} % endif \ No newline at end of file diff --git a/scenarios/api_key_create/python.mako b/scenarios/api_key_create/python.mako index 2f02106..058cbc2 100644 --- a/scenarios/api_key_create/python.mako +++ b/scenarios/api_key_create/python.mako @@ -7,17 +7,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') api_key = balanced.APIKey().save() % elif mode == 'response': -{ - "api_keys": [ - { - "created_at": "2014-01-27T22:56:01.641736Z", - "href": "/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c", - "id": "AK1vqjn1eEHXP0JYXrBrjH5c", - "links": {}, - "meta": {}, - "secret": "ak-test-1jlJCdGZjRWWYRF1iLBR69xwqG2NdQifv" - } - ], - "links": {} -} +{u'links': {}, u'created_at': u'2014-01-27T22:56:01.641736Z', u'secret': u'ak-test-1jlJCdGZjRWWYRF1iLBR69xwqG2NdQifv', u'href': u'/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c', u'meta': {}, u'id': u'AK1vqjn1eEHXP0JYXrBrjH5c'} % endif \ No newline at end of file diff --git a/scenarios/api_key_delete/python.mako b/scenarios/api_key_delete/python.mako index 0ef908e..a633eb4 100644 --- a/scenarios/api_key_delete/python.mako +++ b/scenarios/api_key_delete/python.mako @@ -8,5 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') key = balanced.APIKey.fetch('/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c') key.delete() % elif mode == 'response': -{} + % endif \ No newline at end of file diff --git a/scenarios/api_key_list/python.mako b/scenarios/api_key_list/python.mako index 7168086..2dc1a09 100644 --- a/scenarios/api_key_list/python.mako +++ b/scenarios/api_key_list/python.mako @@ -8,34 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') keys = balanced.APIKey.query % elif mode == 'response': -{ - "api_keys": [ - { - "created_at": "2014-01-27T22:56:01.641736Z", - "href": "/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c", - "id": "AK1vqjn1eEHXP0JYXrBrjH5c", - "links": {}, - "meta": {} - }, - { - "created_at": "2014-01-27T22:55:46.698536Z", - "href": "/api_keys/AK1eDKn7B8vK70hj70S1NMbu", - "id": "AK1eDKn7B8vK70hj70S1NMbu", - "links": {}, - "meta": {}, - "secret": "ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc" - } - ], - "links": {}, - "meta": { - "first": "/api_keys?limit=10&offset=0", - "href": "/api_keys?limit=10&offset=0", - "last": "/api_keys?limit=10&offset=0", - "limit": 10, - "next": null, - "offset": 0, - "previous": null, - "total": 2 - } -} + % endif \ No newline at end of file diff --git a/scenarios/api_key_show/python.mako b/scenarios/api_key_show/python.mako index 7dcd015..0c9a440 100644 --- a/scenarios/api_key_show/python.mako +++ b/scenarios/api_key_show/python.mako @@ -8,16 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') key = balanced.APIKey.fetch('/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c') % elif mode == 'response': -{ - "api_keys": [ - { - "created_at": "2014-01-27T22:56:01.641736Z", - "href": "/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c", - "id": "AK1vqjn1eEHXP0JYXrBrjH5c", - "links": {}, - "meta": {} - } - ], - "links": {} -} +{u'created_at': u'2014-01-27T22:56:01.641736Z', u'href': u'/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c', u'meta': {}, u'id': u'AK1vqjn1eEHXP0JYXrBrjH5c', u'links': {}} % endif \ 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 0d9e171..6da26b8 100644 --- a/scenarios/bank_account_associate_to_customer/python.mako +++ b/scenarios/bank_account_associate_to_customer/python.mako @@ -8,42 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card = balanced.Card.fetch('/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0') card.associate_to_customer('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') % elif mode == 'response': -{ - "bank_accounts": [ - { - "account_number": "xxxxxx0001", - "account_type": "checking", - "address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "bank_name": "BANK OF AMERICA, N.A.", - "can_credit": true, - "can_debit": false, - "created_at": "2014-01-27T22:57:47.772481Z", - "fingerprint": "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14", - "href": "/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0", - "id": "BA3qNbYRqFM0Q7MXn3IcjGl0", - "links": { - "bank_account_verification": null, - "customer": "CU3eeasZ9yQ86uzzIYZkrPGg" - }, - "meta": {}, - "name": "Johann Bernoulli", - "routing_number": "121000358", - "updated_at": "2014-01-27T22:57:48.515195Z" - } - ], - "links": { - "bank_accounts.bank_account_verification": "/verifications/{bank_accounts.bank_account_verification}", - "bank_accounts.bank_account_verifications": "/bank_accounts/{bank_accounts.id}/verifications", - "bank_accounts.credits": "/bank_accounts/{bank_accounts.id}/credits", - "bank_accounts.customer": "/customers/{bank_accounts.customer}", - "bank_accounts.debits": "/bank_accounts/{bank_accounts.id}/debits" - } -} +{u'routing_number': u'121000358', u'bank_name': u'BANK OF AMERICA, N.A.', u'account_type': u'checking', u'name': u'Johann Bernoulli', u'links': {u'customer': u'CU3eeasZ9yQ86uzzIYZkrPGg', u'bank_account_verification': None}, u'can_credit': True, u'created_at': u'2014-01-27T22:57:47.772481Z', u'fingerprint': u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', u'updated_at': u'2014-01-27T22:57:48.515195Z', u'href': u'/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0', u'meta': {}, u'account_number': u'xxxxxx0001', 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': False, u'id': u'BA3qNbYRqFM0Q7MXn3IcjGl0'} % endif \ No newline at end of file diff --git a/scenarios/bank_account_create/python.mako b/scenarios/bank_account_create/python.mako index a9e6082..422e299 100644 --- a/scenarios/bank_account_create/python.mako +++ b/scenarios/bank_account_create/python.mako @@ -12,42 +12,5 @@ bank_account = balanced.BankAccount( name='Johann Bernoulli' ).save() % elif mode == 'response': -{ - "bank_accounts": [ - { - "account_number": "xxxxxx0001", - "account_type": "checking", - "address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "bank_name": "BANK OF AMERICA, N.A.", - "can_credit": true, - "can_debit": false, - "created_at": "2014-01-27T22:57:47.772481Z", - "fingerprint": "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14", - "href": "/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0", - "id": "BA3qNbYRqFM0Q7MXn3IcjGl0", - "links": { - "bank_account_verification": null, - "customer": null - }, - "meta": {}, - "name": "Johann Bernoulli", - "routing_number": "121000358", - "updated_at": "2014-01-27T22:57:47.772483Z" - } - ], - "links": { - "bank_accounts.bank_account_verification": "/verifications/{bank_accounts.bank_account_verification}", - "bank_accounts.bank_account_verifications": "/bank_accounts/{bank_accounts.id}/verifications", - "bank_accounts.credits": "/bank_accounts/{bank_accounts.id}/credits", - "bank_accounts.customer": "/customers/{bank_accounts.customer}", - "bank_accounts.debits": "/bank_accounts/{bank_accounts.id}/debits" - } -} +{u'routing_number': u'121000358', u'bank_name': u'BANK OF AMERICA, N.A.', u'account_type': u'checking', u'name': u'Johann Bernoulli', u'links': {u'customer': None, u'bank_account_verification': None}, u'can_credit': True, u'created_at': u'2014-01-27T22:57:47.772481Z', u'fingerprint': u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', u'updated_at': u'2014-01-27T22:57:47.772483Z', u'href': u'/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0', u'meta': {}, u'account_number': u'xxxxxx0001', 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': False, u'id': u'BA3qNbYRqFM0Q7MXn3IcjGl0'} % endif \ No newline at end of file diff --git a/scenarios/bank_account_credit/python.mako b/scenarios/bank_account_credit/python.mako index dc09480..414eff1 100644 --- a/scenarios/bank_account_credit/python.mako +++ b/scenarios/bank_account_credit/python.mako @@ -10,35 +10,5 @@ bank_account.credit( amount=5000 ) % elif mode == 'response': -{ - "credits": [ - { - "amount": 5000, - "appears_on_statement_as": "example.com", - "created_at": "2014-01-27T22:58:19.422292Z", - "currency": "USD", - "description": null, - "failure_reason": null, - "failure_reason_code": null, - "href": "/credits/CR40neytmVG2HDBp1opfF7sY", - "id": "CR40neytmVG2HDBp1opfF7sY", - "links": { - "customer": "CU3eeasZ9yQ86uzzIYZkrPGg", - "destination": "BA3qNbYRqFM0Q7MXn3IcjGl0", - "order": null - }, - "meta": {}, - "status": "succeeded", - "transaction_number": "CR816-868-3666", - "updated_at": "2014-01-27T22:58:20.346871Z" - } - ], - "links": { - "credits.customer": "/customers/{credits.customer}", - "credits.destination": "/resources/{credits.destination}", - "credits.events": "/credits/{credits.id}/events", - "credits.order": "/orders/{credits.order}", - "credits.reversals": "/credits/{credits.id}/reversals" - } -} +{u'status': u'succeeded', u'description': None, u'links': {u'customer': u'CU3eeasZ9yQ86uzzIYZkrPGg', u'destination': u'BA3qNbYRqFM0Q7MXn3IcjGl0', u'order': None}, u'href': u'/credits/CR40neytmVG2HDBp1opfF7sY', u'created_at': u'2014-01-27T22:58:19.422292Z', u'transaction_number': u'CR816-868-3666', u'failure_reason': None, u'updated_at': u'2014-01-27T22:58:20.346871Z', u'currency': u'USD', u'amount': 5000, u'failure_reason_code': None, u'meta': {}, u'appears_on_statement_as': u'example.com', u'id': u'CR40neytmVG2HDBp1opfF7sY'} % endif \ No newline at end of file diff --git a/scenarios/bank_account_debit/python.mako b/scenarios/bank_account_debit/python.mako index ab24657..a7d8028 100644 --- a/scenarios/bank_account_debit/python.mako +++ b/scenarios/bank_account_debit/python.mako @@ -12,37 +12,5 @@ bank_account.debit( description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -{ - "debits": [ - { - "amount": 5000, - "appears_on_statement_as": "BAL*Statement text", - "created_at": "2014-01-27T22:56:28.702119Z", - "currency": "USD", - "description": "Some descriptive text for the debit in the dashboard", - "failure_reason": null, - "failure_reason_code": null, - "href": "/debits/WD1ZRRAZnFTryFdFaq7ijcPE", - "id": "WD1ZRRAZnFTryFdFaq7ijcPE", - "links": { - "customer": null, - "dispute": null, - "order": null, - "source": "BA1D3vL3LjasB0kewMqRGI0S" - }, - "meta": {}, - "status": "succeeded", - "transaction_number": "W081-463-7557", - "updated_at": "2014-01-27T22:56:29.235927Z" - } - ], - "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}" - } -} +{u'status': u'succeeded', u'description': u'Some descriptive text for the debit in the dashboard', u'links': {u'customer': None, u'source': u'BA1D3vL3LjasB0kewMqRGI0S', u'order': None, u'dispute': None}, u'href': u'/debits/WD1ZRRAZnFTryFdFaq7ijcPE', u'created_at': u'2014-01-27T22:56:28.702119Z', u'transaction_number': u'W081-463-7557', u'failure_reason': None, u'updated_at': u'2014-01-27T22:56:29.235927Z', 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'WD1ZRRAZnFTryFdFaq7ijcPE'} % endif \ No newline at end of file diff --git a/scenarios/bank_account_delete/python.mako b/scenarios/bank_account_delete/python.mako index 6f6516c..5297fe2 100644 --- a/scenarios/bank_account_delete/python.mako +++ b/scenarios/bank_account_delete/python.mako @@ -8,5 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy') bank_account.delete() % elif mode == 'response': -{} + % endif \ No newline at end of file diff --git a/scenarios/bank_account_list/python.mako b/scenarios/bank_account_list/python.mako index 7cb9b52..7e53691 100644 --- a/scenarios/bank_account_list/python.mako +++ b/scenarios/bank_account_list/python.mako @@ -8,106 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') bank_accounts = balanced.BankAccount.query % elif mode == 'response': -{ - "bank_accounts": [ - { - "account_number": "xxxxxx0001", - "account_type": "checking", - "address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "bank_name": "BANK OF AMERICA, N.A.", - "can_credit": true, - "can_debit": false, - "created_at": "2014-01-27T22:56:20.540530Z", - "fingerprint": "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14", - "href": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy", - "id": "BA1QFf0LmIxr8p41msqX46Oy", - "links": { - "bank_account_verification": null, - "customer": null - }, - "meta": {}, - "name": "Johann Bernoulli", - "routing_number": "121000358", - "updated_at": "2014-01-27T22:56:20.540534Z" - }, - { - "account_number": "xxxxxx0001", - "account_type": "checking", - "address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "bank_name": "BANK OF AMERICA, N.A.", - "can_credit": true, - "can_debit": true, - "created_at": "2014-01-27T22:56:08.446352Z", - "fingerprint": "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14", - "href": "/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S", - "id": "BA1D3vL3LjasB0kewMqRGI0S", - "links": { - "bank_account_verification": "BZ1FF2MHFH9upRu7C0QUwnby", - "customer": null - }, - "meta": {}, - "name": "Johann Bernoulli", - "routing_number": "121000358", - "updated_at": "2014-01-27T22:56:18.623674Z" - }, - { - "account_number": "xxxxxxxxxxx5555", - "account_type": "checking", - "address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "bank_name": "WELLS FARGO BANK NA", - "can_credit": true, - "can_debit": true, - "created_at": "2014-01-27T22:55:49.899228Z", - "fingerprint": "6ybvaLUrJy07phK2EQ7pVk", - "href": "/bank_accounts/BA1fUvPHaEcIdkRe8HmC2Vee", - "id": "BA1fUvPHaEcIdkRe8HmC2Vee", - "links": { - "bank_account_verification": null, - "customer": "CU1f8Ygc4t0F2FKNcw235x9I" - }, - "meta": {}, - "name": "TEST-MERCHANT-BANK-ACCOUNT", - "routing_number": "121042882", - "updated_at": "2014-01-27T22:55:49.899231Z" - } - ], - "links": { - "bank_accounts.bank_account_verification": "/verifications/{bank_accounts.bank_account_verification}", - "bank_accounts.bank_account_verifications": "/bank_accounts/{bank_accounts.id}/verifications", - "bank_accounts.credits": "/bank_accounts/{bank_accounts.id}/credits", - "bank_accounts.customer": "/customers/{bank_accounts.customer}", - "bank_accounts.debits": "/bank_accounts/{bank_accounts.id}/debits" - }, - "meta": { - "first": "/bank_accounts?limit=10&offset=0", - "href": "/bank_accounts?limit=10&offset=0", - "last": "/bank_accounts?limit=10&offset=0", - "limit": 10, - "next": null, - "offset": 0, - "previous": null, - "total": 3 - } -} + % endif \ No newline at end of file diff --git a/scenarios/bank_account_show/python.mako b/scenarios/bank_account_show/python.mako index 9668ac7..e80cb15 100644 --- a/scenarios/bank_account_show/python.mako +++ b/scenarios/bank_account_show/python.mako @@ -8,42 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy') % elif mode == 'response': -{ - "bank_accounts": [ - { - "account_number": "xxxxxx0001", - "account_type": "checking", - "address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "bank_name": "BANK OF AMERICA, N.A.", - "can_credit": true, - "can_debit": false, - "created_at": "2014-01-27T22:56:20.540530Z", - "fingerprint": "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14", - "href": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy", - "id": "BA1QFf0LmIxr8p41msqX46Oy", - "links": { - "bank_account_verification": null, - "customer": null - }, - "meta": {}, - "name": "Johann Bernoulli", - "routing_number": "121000358", - "updated_at": "2014-01-27T22:56:20.540534Z" - } - ], - "links": { - "bank_accounts.bank_account_verification": "/verifications/{bank_accounts.bank_account_verification}", - "bank_accounts.bank_account_verifications": "/bank_accounts/{bank_accounts.id}/verifications", - "bank_accounts.credits": "/bank_accounts/{bank_accounts.id}/credits", - "bank_accounts.customer": "/customers/{bank_accounts.customer}", - "bank_accounts.debits": "/bank_accounts/{bank_accounts.id}/debits" - } -} +{u'routing_number': u'121000358', u'bank_name': u'BANK OF AMERICA, N.A.', u'account_type': u'checking', u'name': u'Johann Bernoulli', u'links': {u'customer': None, u'bank_account_verification': None}, u'can_credit': True, u'created_at': u'2014-01-27T22:56:20.540530Z', u'fingerprint': u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', u'updated_at': u'2014-01-27T22:56:20.540534Z', u'href': u'/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy', u'meta': {}, u'account_number': u'xxxxxx0001', 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': False, u'id': u'BA1QFf0LmIxr8p41msqX46Oy'} % endif \ No newline at end of file diff --git a/scenarios/bank_account_update/python.mako b/scenarios/bank_account_update/python.mako index d7f91ef..2f79614 100644 --- a/scenarios/bank_account_update/python.mako +++ b/scenarios/bank_account_update/python.mako @@ -13,46 +13,5 @@ bank_account.meta = { } bank_account.save() % elif mode == 'response': -{ - "bank_accounts": [ - { - "account_number": "xxxxxx0001", - "account_type": "checking", - "address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "bank_name": "BANK OF AMERICA, N.A.", - "can_credit": true, - "can_debit": false, - "created_at": "2014-01-27T22:56:20.540530Z", - "fingerprint": "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14", - "href": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy", - "id": "BA1QFf0LmIxr8p41msqX46Oy", - "links": { - "bank_account_verification": null, - "customer": null - }, - "meta": { - "facebook.user_id": "0192837465", - "my-own-customer-id": "12345", - "twitter.id": "1234987650" - }, - "name": "Johann Bernoulli", - "routing_number": "121000358", - "updated_at": "2014-01-27T22:56:25.767386Z" - } - ], - "links": { - "bank_accounts.bank_account_verification": "/verifications/{bank_accounts.bank_account_verification}", - "bank_accounts.bank_account_verifications": "/bank_accounts/{bank_accounts.id}/verifications", - "bank_accounts.credits": "/bank_accounts/{bank_accounts.id}/credits", - "bank_accounts.customer": "/customers/{bank_accounts.customer}", - "bank_accounts.debits": "/bank_accounts/{bank_accounts.id}/debits" - } -} +{u'routing_number': u'121000358', u'bank_name': u'BANK OF AMERICA, N.A.', u'account_type': u'checking', u'name': u'Johann Bernoulli', u'links': {u'customer': None, u'bank_account_verification': None}, u'can_credit': True, u'created_at': u'2014-01-27T22:56:20.540530Z', u'fingerprint': u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', u'updated_at': u'2014-01-27T22:56:25.767386Z', u'href': u'/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy', u'meta': {u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, u'account_number': u'xxxxxx0001', 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': False, u'id': u'BA1QFf0LmIxr8p41msqX46Oy'} % endif \ 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 8a15a40..2a91f00 100644 --- a/scenarios/bank_account_verification_create/python.mako +++ b/scenarios/bank_account_verification_create/python.mako @@ -8,25 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S') verification = bank_account.verify() % elif mode == 'response': -{ - "bank_account_verifications": [ - { - "attempts": 0, - "attempts_remaining": 3, - "created_at": "2014-01-27T22:56:10.726455Z", - "deposit_status": "succeeded", - "href": "/verifications/BZ1FF2MHFH9upRu7C0QUwnby", - "id": "BZ1FF2MHFH9upRu7C0QUwnby", - "links": { - "bank_account": "BA1D3vL3LjasB0kewMqRGI0S" - }, - "meta": {}, - "updated_at": "2014-01-27T22:56:12.545750Z", - "verification_status": "pending" - } - ], - "links": { - "bank_account_verifications.bank_account": "/bank_accounts/{bank_account_verifications.bank_account}" - } -} +{u'verification_status': u'pending', u'links': {u'bank_account': u'BA1D3vL3LjasB0kewMqRGI0S'}, u'created_at': u'2014-01-27T22:56:10.726455Z', u'attempts_remaining': 3, u'updated_at': u'2014-01-27T22:56:12.545750Z', u'deposit_status': u'succeeded', u'attempts': 0, u'href': u'/verifications/BZ1FF2MHFH9upRu7C0QUwnby', u'meta': {}, u'id': u'BZ1FF2MHFH9upRu7C0QUwnby'} % endif \ 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 c6719e2..e6bee42 100644 --- a/scenarios/bank_account_verification_show/python.mako +++ b/scenarios/bank_account_verification_show/python.mako @@ -7,25 +7,5 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') verification = balanced.BankAccountVerification.fetch('/verifications/BZ1FF2MHFH9upRu7C0QUwnby') % elif mode == 'response': -{ - "bank_account_verifications": [ - { - "attempts": 0, - "attempts_remaining": 3, - "created_at": "2014-01-27T22:56:10.726455Z", - "deposit_status": "succeeded", - "href": "/verifications/BZ1FF2MHFH9upRu7C0QUwnby", - "id": "BZ1FF2MHFH9upRu7C0QUwnby", - "links": { - "bank_account": "BA1D3vL3LjasB0kewMqRGI0S" - }, - "meta": {}, - "updated_at": "2014-01-27T22:56:12.545750Z", - "verification_status": "pending" - } - ], - "links": { - "bank_account_verifications.bank_account": "/bank_accounts/{bank_account_verifications.bank_account}" - } -} +{u'verification_status': u'pending', u'links': {u'bank_account': u'BA1D3vL3LjasB0kewMqRGI0S'}, u'created_at': u'2014-01-27T22:56:10.726455Z', u'attempts_remaining': 3, u'updated_at': u'2014-01-27T22:56:12.545750Z', u'deposit_status': u'succeeded', u'attempts': 0, u'href': u'/verifications/BZ1FF2MHFH9upRu7C0QUwnby', u'meta': {}, u'id': u'BZ1FF2MHFH9upRu7C0QUwnby'} % endif \ 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 e1491e3..c1e3a29 100644 --- a/scenarios/bank_account_verification_update/python.mako +++ b/scenarios/bank_account_verification_update/python.mako @@ -8,25 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') verification = balanced.BankAccountVerification.fetch('/verifications/BZ1FF2MHFH9upRu7C0QUwnby') verification.confirm(amount_1=1, amount_2=1) % elif mode == 'response': -{ - "bank_account_verifications": [ - { - "attempts": 1, - "attempts_remaining": 2, - "created_at": "2014-01-27T22:56:10.726455Z", - "deposit_status": "succeeded", - "href": "/verifications/BZ1FF2MHFH9upRu7C0QUwnby", - "id": "BZ1FF2MHFH9upRu7C0QUwnby", - "links": { - "bank_account": "BA1D3vL3LjasB0kewMqRGI0S" - }, - "meta": {}, - "updated_at": "2014-01-27T22:56:18.631337Z", - "verification_status": "succeeded" - } - ], - "links": { - "bank_account_verifications.bank_account": "/bank_accounts/{bank_account_verifications.bank_account}" - } -} +{u'verification_status': u'succeeded', u'links': {u'bank_account': u'BA1D3vL3LjasB0kewMqRGI0S'}, u'created_at': u'2014-01-27T22:56:10.726455Z', u'attempts_remaining': 2, u'updated_at': u'2014-01-27T22:56:18.631337Z', u'deposit_status': u'succeeded', u'attempts': 1, u'href': u'/verifications/BZ1FF2MHFH9upRu7C0QUwnby', u'meta': {}, u'id': u'BZ1FF2MHFH9upRu7C0QUwnby'} % endif \ No newline at end of file diff --git a/scenarios/callback_create/python.mako b/scenarios/callback_create/python.mako index 9ca94d9..12a4e46 100644 --- a/scenarios/callback_create/python.mako +++ b/scenarios/callback_create/python.mako @@ -9,17 +9,5 @@ callback = balanced.Callback( url='http://www.example.com/callback' ).save() % elif mode == 'response': -{ - "callbacks": [ - { - "href": "/callbacks/CB224374R2NSyoYBpDV4r7C2", - "id": "CB224374R2NSyoYBpDV4r7C2", - "links": {}, - "method": "post", - "revision": "1.1", - "url": "http://www.example.com/callback" - } - ], - "links": {} -} +{u'links': {}, u'url': u'http://www.example.com/callback', u'method': u'post', u'href': u'/callbacks/CB224374R2NSyoYBpDV4r7C2', u'id': u'CB224374R2NSyoYBpDV4r7C2', u'revision': u'1.1'} % endif \ No newline at end of file diff --git a/scenarios/callback_delete/python.mako b/scenarios/callback_delete/python.mako index eb6797c..cd08f72 100644 --- a/scenarios/callback_delete/python.mako +++ b/scenarios/callback_delete/python.mako @@ -8,5 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') callback = balanced.Callback.fetch('/callbacks/CB224374R2NSyoYBpDV4r7C2') callback.unstore() % elif mode == 'response': -{} + % endif \ No newline at end of file diff --git a/scenarios/callback_list/python.mako b/scenarios/callback_list/python.mako index 916b266..0dfd344 100644 --- a/scenarios/callback_list/python.mako +++ b/scenarios/callback_list/python.mako @@ -8,27 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') callbacks = balanced.Callback.query % elif mode == 'response': -{ - "callbacks": [ - { - "href": "/callbacks/CB224374R2NSyoYBpDV4r7C2", - "id": "CB224374R2NSyoYBpDV4r7C2", - "links": {}, - "method": "post", - "revision": "1.1", - "url": "http://www.example.com/callback" - } - ], - "links": {}, - "meta": { - "first": "/callbacks?limit=10&offset=0", - "href": "/callbacks?limit=10&offset=0", - "last": "/callbacks?limit=10&offset=0", - "limit": 10, - "next": null, - "offset": 0, - "previous": null, - "total": 1 - } -} + % endif \ No newline at end of file diff --git a/scenarios/callback_show/python.mako b/scenarios/callback_show/python.mako index df14677..0a19b49 100644 --- a/scenarios/callback_show/python.mako +++ b/scenarios/callback_show/python.mako @@ -8,17 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') callback = balanced.Callback.fetch('/callbacks/CB224374R2NSyoYBpDV4r7C2') % elif mode == 'response': -{ - "callbacks": [ - { - "href": "/callbacks/CB224374R2NSyoYBpDV4r7C2", - "id": "CB224374R2NSyoYBpDV4r7C2", - "links": {}, - "method": "post", - "revision": "1.1", - "url": "http://www.example.com/callback" - } - ], - "links": {} -} +{u'links': {}, u'url': u'http://www.example.com/callback', u'method': u'post', u'href': u'/callbacks/CB224374R2NSyoYBpDV4r7C2', u'id': u'CB224374R2NSyoYBpDV4r7C2', u'revision': u'1.1'} % endif \ 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 74fff12..6ec7557 100644 --- a/scenarios/card_associate_to_customer/python.mako +++ b/scenarios/card_associate_to_customer/python.mako @@ -8,44 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card = balanced.Card.fetch('/cards/CC3kqm84fxh50avenrUsSKbu') card.associate_to_customer('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') % elif mode == 'response': -{ - "cards": [ - { - "address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "avs_postal_match": null, - "avs_result": null, - "avs_street_match": null, - "brand": "MasterCard", - "created_at": "2014-01-27T22:57:42.092923Z", - "cvv": null, - "cvv_match": null, - "cvv_result": null, - "expiration_month": 12, - "expiration_year": 2020, - "fingerprint": "fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788", - "href": "/cards/CC3kqm84fxh50avenrUsSKbu", - "id": "CC3kqm84fxh50avenrUsSKbu", - "is_verified": true, - "links": { - "customer": "CU3eeasZ9yQ86uzzIYZkrPGg" - }, - "meta": {}, - "name": null, - "number": "xxxxxxxxxxxx5100", - "updated_at": "2014-01-27T22:57:42.724392Z" - } - ], - "links": { - "cards.card_holds": "/cards/{cards.id}/card_holds", - "cards.customer": "/customers/{cards.customer}", - "cards.debits": "/cards/{cards.id}/debits" - } -} +{u'cvv_match': None, u'links': {u'customer': u'CU3eeasZ9yQ86uzzIYZkrPGg'}, u'expiration_year': 2020, u'avs_street_match': None, u'is_verified': True, u'created_at': u'2014-01-27T22:57:42.092923Z', u'cvv_result': None, u'brand': u'MasterCard', u'number': u'xxxxxxxxxxxx5100', u'updated_at': u'2014-01-27T22:57:42.724392Z', u'id': u'CC3kqm84fxh50avenrUsSKbu', u'expiration_month': 12, u'cvv': None, u'href': u'/cards/CC3kqm84fxh50avenrUsSKbu', u'meta': {}, u'address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, u'fingerprint': u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', u'avs_postal_match': None, u'avs_result': None, u'name': None} % endif \ No newline at end of file diff --git a/scenarios/card_create/python.mako b/scenarios/card_create/python.mako index 8f0c18b..351ec1f 100644 --- a/scenarios/card_create/python.mako +++ b/scenarios/card_create/python.mako @@ -12,44 +12,5 @@ card = balanced.Card( expiration_year='2020' ).save() % elif mode == 'response': -{ - "cards": [ - { - "address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "avs_postal_match": null, - "avs_result": null, - "avs_street_match": null, - "brand": "MasterCard", - "created_at": "2014-01-27T22:57:42.092923Z", - "cvv": null, - "cvv_match": null, - "cvv_result": null, - "expiration_month": 12, - "expiration_year": 2020, - "fingerprint": "fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788", - "href": "/cards/CC3kqm84fxh50avenrUsSKbu", - "id": "CC3kqm84fxh50avenrUsSKbu", - "is_verified": true, - "links": { - "customer": null - }, - "meta": {}, - "name": null, - "number": "xxxxxxxxxxxx5100", - "updated_at": "2014-01-27T22:57:42.092926Z" - } - ], - "links": { - "cards.card_holds": "/cards/{cards.id}/card_holds", - "cards.customer": "/customers/{cards.customer}", - "cards.debits": "/cards/{cards.id}/debits" - } -} +{u'cvv_match': None, u'links': {u'customer': None}, u'expiration_year': 2020, u'avs_street_match': None, u'is_verified': True, u'created_at': u'2014-01-27T22:57:42.092923Z', u'cvv_result': None, u'brand': u'MasterCard', u'number': u'xxxxxxxxxxxx5100', u'updated_at': u'2014-01-27T22:57:42.092926Z', u'id': u'CC3kqm84fxh50avenrUsSKbu', u'expiration_month': 12, u'cvv': None, u'href': u'/cards/CC3kqm84fxh50avenrUsSKbu', u'meta': {}, u'address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, u'fingerprint': u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', u'avs_postal_match': None, u'avs_result': None, u'name': None} % endif \ No newline at end of file diff --git a/scenarios/card_debit/python.mako b/scenarios/card_debit/python.mako index 3a8e176..8a400d6 100644 --- a/scenarios/card_debit/python.mako +++ b/scenarios/card_debit/python.mako @@ -12,37 +12,5 @@ card.debit( description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -{ - "debits": [ - { - "amount": 5000, - "appears_on_statement_as": "BAL*Statement text", - "created_at": "2014-01-27T22:58:07.291226Z", - "currency": "USD", - "description": "Some descriptive text for the debit in the dashboard", - "failure_reason": null, - "failure_reason_code": null, - "href": "/debits/WD3MKNxNTKBGgA7mX50yogiu", - "id": "WD3MKNxNTKBGgA7mX50yogiu", - "links": { - "customer": "CU3eeasZ9yQ86uzzIYZkrPGg", - "dispute": null, - "order": null, - "source": "CC3kqm84fxh50avenrUsSKbu" - }, - "meta": {}, - "status": "succeeded", - "transaction_number": "W180-465-2000", - "updated_at": "2014-01-27T22:58:09.706862Z" - } - ], - "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}" - } -} +{u'status': u'succeeded', u'description': u'Some descriptive text for the debit in the dashboard', u'links': {u'customer': u'CU3eeasZ9yQ86uzzIYZkrPGg', u'source': u'CC3kqm84fxh50avenrUsSKbu', u'order': None, u'dispute': None}, u'href': u'/debits/WD3MKNxNTKBGgA7mX50yogiu', u'created_at': u'2014-01-27T22:58:07.291226Z', u'transaction_number': u'W180-465-2000', u'failure_reason': None, u'updated_at': u'2014-01-27T22:58:09.706862Z', 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'WD3MKNxNTKBGgA7mX50yogiu'} % endif \ No newline at end of file diff --git a/scenarios/card_delete/python.mako b/scenarios/card_delete/python.mako index 1a2cf55..1b008e2 100644 --- a/scenarios/card_delete/python.mako +++ b/scenarios/card_delete/python.mako @@ -8,5 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card = balanced.Card.fetch('/cards/CC2uc8iPDjgyxOXHVtnZloyI') card.unstore() % elif mode == 'response': -{} + % endif \ No newline at end of file diff --git a/scenarios/card_hold_capture/python.mako b/scenarios/card_hold_capture/python.mako index 87fb81c..c028df0 100644 --- a/scenarios/card_hold_capture/python.mako +++ b/scenarios/card_hold_capture/python.mako @@ -11,40 +11,5 @@ debit = card_hold.capture( description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -{ - "debits": [ - { - "amount": 5000, - "appears_on_statement_as": "BAL*ShowsUpOnStmt", - "created_at": "2014-01-27T22:56:45.623268Z", - "currency": "USD", - "description": "Some descriptive text for the debit in the dashboard", - "failure_reason": null, - "failure_reason_code": null, - "href": "/debits/WD2iSCukjXyeRdkvX3cW0PmC", - "id": "WD2iSCukjXyeRdkvX3cW0PmC", - "links": { - "customer": "CU1f8Ygc4t0F2FKNcw235x9I", - "dispute": null, - "order": null, - "source": "CC2abDOQVm5aNFhHpcRvWS02" - }, - "meta": { - "holding.for": "user1", - "meaningful.key": "some.value" - }, - "status": "succeeded", - "transaction_number": "W744-719-1832", - "updated_at": "2014-01-27T22:56:47.926021Z" - } - ], - "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}" - } -} +{u'status': u'succeeded', u'description': u'Some descriptive text for the debit in the dashboard', u'links': {u'customer': u'CU1f8Ygc4t0F2FKNcw235x9I', u'source': u'CC2abDOQVm5aNFhHpcRvWS02', u'order': None, u'dispute': None}, u'href': u'/debits/WD2iSCukjXyeRdkvX3cW0PmC', u'created_at': u'2014-01-27T22:56:45.623268Z', u'transaction_number': u'W744-719-1832', u'failure_reason': None, u'updated_at': u'2014-01-27T22:56:47.926021Z', u'currency': u'USD', u'amount': 5000, u'failure_reason_code': None, u'meta': {u'holding.for': u'user1', u'meaningful.key': u'some.value'}, u'appears_on_statement_as': u'BAL*ShowsUpOnStmt', u'id': u'WD2iSCukjXyeRdkvX3cW0PmC'} % endif \ No newline at end of file diff --git a/scenarios/card_hold_create/python.mako b/scenarios/card_hold_create/python.mako index e2777b9..237d1b2 100644 --- a/scenarios/card_hold_create/python.mako +++ b/scenarios/card_hold_create/python.mako @@ -11,32 +11,5 @@ card_hold = card.hold( description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -{ - "card_holds": [ - { - "amount": 5000, - "created_at": "2014-01-27T22:56:49.446376Z", - "currency": "USD", - "description": "Some descriptive text for the debit in the dashboard", - "expires_at": "2014-02-03T22:56:50.793698Z", - "failure_reason": null, - "failure_reason_code": null, - "href": "/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG", - "id": "HL2ncCO5Bir2S0PCdsDHV3cG", - "links": { - "card": "CC2abDOQVm5aNFhHpcRvWS02", - "debit": null - }, - "meta": {}, - "transaction_number": "HL102-313-8003", - "updated_at": "2014-01-27T22:56:51.115729Z" - } - ], - "links": { - "card_holds.card": "/resources/{card_holds.card}", - "card_holds.debit": "/debits/{card_holds.debit}", - "card_holds.debits": "/card_holds/{card_holds.id}/debits", - "card_holds.events": "/card_holds/{card_holds.id}/events" - } -} +{u'description': u'Some descriptive text for the debit in the dashboard', u'links': {u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, u'updated_at': u'2014-01-27T22:56:51.115729Z', u'created_at': u'2014-01-27T22:56:49.446376Z', u'transaction_number': u'HL102-313-8003', u'expires_at': u'2014-02-03T22:56:50.793698Z', u'failure_reason': None, u'currency': u'USD', u'amount': 5000, u'href': u'/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG', u'meta': {}, u'failure_reason_code': None, u'id': u'HL2ncCO5Bir2S0PCdsDHV3cG'} % endif \ No newline at end of file diff --git a/scenarios/card_hold_list/python.mako b/scenarios/card_hold_list/python.mako index 0996d97..560878d 100644 --- a/scenarios/card_hold_list/python.mako +++ b/scenarios/card_hold_list/python.mako @@ -8,60 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card_holds = balanced.CardHold.query % elif mode == 'response': -{ - "card_holds": [ - { - "amount": 5000, - "created_at": "2014-01-27T22:56:39.379941Z", - "currency": "USD", - "description": "Some descriptive text for the debit in the dashboard", - "expires_at": "2014-02-03T22:56:39.876902Z", - "failure_reason": null, - "failure_reason_code": null, - "href": "/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S", - "id": "HL2bT9uMRkTZkfSPmA2pBD9S", - "links": { - "card": "CC2abDOQVm5aNFhHpcRvWS02", - "debit": null - }, - "meta": {}, - "transaction_number": "HL500-842-5492", - "updated_at": "2014-01-27T22:56:40.238140Z" - }, - { - "amount": 10000000, - "created_at": "2014-01-27T22:55:56.619097Z", - "currency": "USD", - "description": null, - "expires_at": "2014-02-03T22:55:57.540880Z", - "failure_reason": null, - "failure_reason_code": null, - "href": "/card_holds/HL1pMPzS1JEE4lMCBnKh32Oa", - "id": "HL1pMPzS1JEE4lMCBnKh32Oa", - "links": { - "card": "CC1nrXVKmfh0ouOS7zxI6X8q", - "debit": "WD1pU48nHJzorOySkTaQGQ9U" - }, - "meta": {}, - "transaction_number": "HL464-208-0908", - "updated_at": "2014-01-27T22:56:00.845902Z" - } - ], - "links": { - "card_holds.card": "/resources/{card_holds.card}", - "card_holds.debit": "/debits/{card_holds.debit}", - "card_holds.debits": "/card_holds/{card_holds.id}/debits", - "card_holds.events": "/card_holds/{card_holds.id}/events" - }, - "meta": { - "first": "/card_holds?limit=10&offset=0", - "href": "/card_holds?limit=10&offset=0", - "last": "/card_holds?limit=10&offset=0", - "limit": 10, - "next": null, - "offset": 0, - "previous": null, - "total": 2 - } -} + % endif \ No newline at end of file diff --git a/scenarios/card_hold_show/python.mako b/scenarios/card_hold_show/python.mako index 723c47b..9e2ea54 100644 --- a/scenarios/card_hold_show/python.mako +++ b/scenarios/card_hold_show/python.mako @@ -8,32 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card_hold = balanced.CardHold.fetch('/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S') % elif mode == 'response': -{ - "card_holds": [ - { - "amount": 5000, - "created_at": "2014-01-27T22:56:39.379941Z", - "currency": "USD", - "description": "Some descriptive text for the debit in the dashboard", - "expires_at": "2014-02-03T22:56:39.876902Z", - "failure_reason": null, - "failure_reason_code": null, - "href": "/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S", - "id": "HL2bT9uMRkTZkfSPmA2pBD9S", - "links": { - "card": "CC2abDOQVm5aNFhHpcRvWS02", - "debit": null - }, - "meta": {}, - "transaction_number": "HL500-842-5492", - "updated_at": "2014-01-27T22:56:40.238140Z" - } - ], - "links": { - "card_holds.card": "/resources/{card_holds.card}", - "card_holds.debit": "/debits/{card_holds.debit}", - "card_holds.debits": "/card_holds/{card_holds.id}/debits", - "card_holds.events": "/card_holds/{card_holds.id}/events" - } -} +{u'description': u'Some descriptive text for the debit in the dashboard', u'links': {u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, u'updated_at': u'2014-01-27T22:56:40.238140Z', u'created_at': u'2014-01-27T22:56:39.379941Z', u'transaction_number': u'HL500-842-5492', u'expires_at': u'2014-02-03T22:56:39.876902Z', u'failure_reason': None, u'currency': u'USD', u'amount': 5000, u'href': u'/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S', u'meta': {}, u'failure_reason_code': None, u'id': u'HL2bT9uMRkTZkfSPmA2pBD9S'} % endif \ No newline at end of file diff --git a/scenarios/card_hold_update/python.mako b/scenarios/card_hold_update/python.mako index 0028f7c..e0f57bc 100644 --- a/scenarios/card_hold_update/python.mako +++ b/scenarios/card_hold_update/python.mako @@ -13,35 +13,5 @@ card_hold.meta = { } card_hold.save() % elif mode == 'response': -{ - "card_holds": [ - { - "amount": 5000, - "created_at": "2014-01-27T22:56:39.379941Z", - "currency": "USD", - "description": "update this description", - "expires_at": "2014-02-03T22:56:39.876902Z", - "failure_reason": null, - "failure_reason_code": null, - "href": "/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S", - "id": "HL2bT9uMRkTZkfSPmA2pBD9S", - "links": { - "card": "CC2abDOQVm5aNFhHpcRvWS02", - "debit": null - }, - "meta": { - "holding.for": "user1", - "meaningful.key": "some.value" - }, - "transaction_number": "HL500-842-5492", - "updated_at": "2014-01-27T22:56:44.255042Z" - } - ], - "links": { - "card_holds.card": "/resources/{card_holds.card}", - "card_holds.debit": "/debits/{card_holds.debit}", - "card_holds.debits": "/card_holds/{card_holds.id}/debits", - "card_holds.events": "/card_holds/{card_holds.id}/events" - } -} +{u'description': u'update this description', u'links': {u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, u'updated_at': u'2014-01-27T22:56:44.255042Z', u'created_at': u'2014-01-27T22:56:39.379941Z', u'transaction_number': u'HL500-842-5492', u'expires_at': u'2014-02-03T22:56:39.876902Z', u'failure_reason': None, u'currency': u'USD', u'amount': 5000, u'href': u'/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S', u'meta': {u'holding.for': u'user1', u'meaningful.key': u'some.value'}, u'failure_reason_code': None, u'id': u'HL2bT9uMRkTZkfSPmA2pBD9S'} % endif \ No newline at end of file diff --git a/scenarios/card_hold_void/python.mako b/scenarios/card_hold_void/python.mako index e28f335..f8583cb 100644 --- a/scenarios/card_hold_void/python.mako +++ b/scenarios/card_hold_void/python.mako @@ -8,32 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card_hold = balanced.CardHold.fetch('/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG') card_hold.cancel() % elif mode == 'response': -{ - "card_holds": [ - { - "amount": 5000, - "created_at": "2014-01-27T22:56:49.446376Z", - "currency": "USD", - "description": "Some descriptive text for the debit in the dashboard", - "expires_at": "2014-02-03T22:56:50.793698Z", - "failure_reason": null, - "failure_reason_code": null, - "href": "/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG", - "id": "HL2ncCO5Bir2S0PCdsDHV3cG", - "links": { - "card": "CC2abDOQVm5aNFhHpcRvWS02", - "debit": null - }, - "meta": {}, - "transaction_number": "HL102-313-8003", - "updated_at": "2014-01-27T22:56:51.686616Z" - } - ], - "links": { - "card_holds.card": "/resources/{card_holds.card}", - "card_holds.debit": "/debits/{card_holds.debit}", - "card_holds.debits": "/card_holds/{card_holds.id}/debits", - "card_holds.events": "/card_holds/{card_holds.id}/events" - } -} +{u'description': u'Some descriptive text for the debit in the dashboard', u'links': {u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, u'updated_at': u'2014-01-27T22:56:51.686616Z', u'created_at': u'2014-01-27T22:56:49.446376Z', u'transaction_number': u'HL102-313-8003', u'expires_at': u'2014-02-03T22:56:50.793698Z', u'failure_reason': None, u'currency': u'USD', u'amount': 5000, u'href': u'/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG', u'meta': {}, u'failure_reason_code': None, u'id': u'HL2ncCO5Bir2S0PCdsDHV3cG'} % endif \ No newline at end of file diff --git a/scenarios/card_list/python.mako b/scenarios/card_list/python.mako index f3d2ad5..c8a8838 100644 --- a/scenarios/card_list/python.mako +++ b/scenarios/card_list/python.mako @@ -8,116 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') cards = balanced.Card.query % elif mode == 'response': -{ - "cards": [ - { - "address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "avs_postal_match": null, - "avs_result": null, - "avs_street_match": null, - "brand": "MasterCard", - "created_at": "2014-01-27T22:56:55.656375Z", - "cvv": null, - "cvv_match": null, - "cvv_result": null, - "expiration_month": 12, - "expiration_year": 2020, - "fingerprint": "fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788", - "href": "/cards/CC2uc8iPDjgyxOXHVtnZloyI", - "id": "CC2uc8iPDjgyxOXHVtnZloyI", - "is_verified": true, - "links": { - "customer": null - }, - "meta": {}, - "name": null, - "number": "xxxxxxxxxxxx5100", - "updated_at": "2014-01-27T22:56:55.656379Z" - }, - { - "address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "avs_postal_match": null, - "avs_result": null, - "avs_street_match": null, - "brand": "MasterCard", - "created_at": "2014-01-27T22:56:37.869483Z", - "cvv": null, - "cvv_match": null, - "cvv_result": null, - "expiration_month": 12, - "expiration_year": 2020, - "fingerprint": "fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788", - "href": "/cards/CC2abDOQVm5aNFhHpcRvWS02", - "id": "CC2abDOQVm5aNFhHpcRvWS02", - "is_verified": true, - "links": { - "customer": "CU1f8Ygc4t0F2FKNcw235x9I" - }, - "meta": {}, - "name": null, - "number": "xxxxxxxxxxxx5100", - "updated_at": "2014-01-27T22:56:39.354525Z" - }, - { - "address": { - "city": null, - "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": null, - "brand": "Visa", - "created_at": "2014-01-27T22:55:54.558589Z", - "cvv": null, - "cvv_match": null, - "cvv_result": null, - "expiration_month": 4, - "expiration_year": 2016, - "fingerprint": "979a26c05f2fb1c7ae38656312b176da2c9be1d938d442040bc79539caac6c0d", - "href": "/cards/CC1nrXVKmfh0ouOS7zxI6X8q", - "id": "CC1nrXVKmfh0ouOS7zxI6X8q", - "is_verified": true, - "links": { - "customer": "CU1iDnBalzHoZg47Np92rNrV" - }, - "meta": {}, - "name": "Benny Riemann", - "number": "xxxxxxxxxxxx1111", - "updated_at": "2014-01-27T22:55:54.558592Z" - } - ], - "links": { - "cards.card_holds": "/cards/{cards.id}/card_holds", - "cards.customer": "/customers/{cards.customer}", - "cards.debits": "/cards/{cards.id}/debits" - }, - "meta": { - "first": "/cards?limit=10&offset=0", - "href": "/cards?limit=10&offset=0", - "last": "/cards?limit=10&offset=0", - "limit": 10, - "next": null, - "offset": 0, - "previous": null, - "total": 3 - } -} + % endif \ No newline at end of file diff --git a/scenarios/card_show/python.mako b/scenarios/card_show/python.mako index 7aea25b..bab5e4a 100644 --- a/scenarios/card_show/python.mako +++ b/scenarios/card_show/python.mako @@ -7,44 +7,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card = balanced.Card.fetch('/cards/CC2uc8iPDjgyxOXHVtnZloyI') % elif mode == 'response': -{ - "cards": [ - { - "address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "avs_postal_match": null, - "avs_result": null, - "avs_street_match": null, - "brand": "MasterCard", - "created_at": "2014-01-27T22:56:55.656375Z", - "cvv": null, - "cvv_match": null, - "cvv_result": null, - "expiration_month": 12, - "expiration_year": 2020, - "fingerprint": "fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788", - "href": "/cards/CC2uc8iPDjgyxOXHVtnZloyI", - "id": "CC2uc8iPDjgyxOXHVtnZloyI", - "is_verified": true, - "links": { - "customer": null - }, - "meta": {}, - "name": null, - "number": "xxxxxxxxxxxx5100", - "updated_at": "2014-01-27T22:56:55.656379Z" - } - ], - "links": { - "cards.card_holds": "/cards/{cards.id}/card_holds", - "cards.customer": "/customers/{cards.customer}", - "cards.debits": "/cards/{cards.id}/debits" - } -} +{u'cvv_match': None, u'links': {u'customer': None}, u'expiration_year': 2020, u'avs_street_match': None, u'is_verified': True, u'created_at': u'2014-01-27T22:56:55.656375Z', u'cvv_result': None, u'brand': u'MasterCard', u'number': u'xxxxxxxxxxxx5100', u'updated_at': u'2014-01-27T22:56:55.656379Z', u'id': u'CC2uc8iPDjgyxOXHVtnZloyI', u'expiration_month': 12, u'cvv': None, u'href': u'/cards/CC2uc8iPDjgyxOXHVtnZloyI', u'meta': {}, u'address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, u'fingerprint': u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', u'avs_postal_match': None, u'avs_result': None, u'name': None} % endif \ No newline at end of file diff --git a/scenarios/card_update/python.mako b/scenarios/card_update/python.mako index 8f1505c..e7a1b69 100644 --- a/scenarios/card_update/python.mako +++ b/scenarios/card_update/python.mako @@ -13,48 +13,5 @@ card.meta = { } card.save() % elif mode == 'response': -{ - "cards": [ - { - "address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "avs_postal_match": null, - "avs_result": null, - "avs_street_match": null, - "brand": "MasterCard", - "created_at": "2014-01-27T22:56:55.656375Z", - "cvv": null, - "cvv_match": null, - "cvv_result": null, - "expiration_month": 12, - "expiration_year": 2020, - "fingerprint": "fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788", - "href": "/cards/CC2uc8iPDjgyxOXHVtnZloyI", - "id": "CC2uc8iPDjgyxOXHVtnZloyI", - "is_verified": true, - "links": { - "customer": null - }, - "meta": { - "facebook.user_id": "0192837465", - "my-own-customer-id": "12345", - "twitter.id": "1234987650" - }, - "name": null, - "number": "xxxxxxxxxxxx5100", - "updated_at": "2014-01-27T22:57:02.195769Z" - } - ], - "links": { - "cards.card_holds": "/cards/{cards.id}/card_holds", - "cards.customer": "/customers/{cards.customer}", - "cards.debits": "/cards/{cards.id}/debits" - } -} +{u'cvv_match': None, u'links': {u'customer': None}, u'expiration_year': 2020, u'avs_street_match': None, u'is_verified': True, u'created_at': u'2014-01-27T22:56:55.656375Z', u'cvv_result': None, u'brand': u'MasterCard', u'number': u'xxxxxxxxxxxx5100', u'updated_at': u'2014-01-27T22:57:02.195769Z', u'id': u'CC2uc8iPDjgyxOXHVtnZloyI', u'expiration_month': 12, u'cvv': None, u'href': u'/cards/CC2uc8iPDjgyxOXHVtnZloyI', u'meta': {u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, u'address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, u'fingerprint': u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', u'avs_postal_match': None, u'avs_result': None, u'name': None} % endif \ No newline at end of file diff --git a/scenarios/credit_list/python.mako b/scenarios/credit_list/python.mako index 315253c..f5a160a 100644 --- a/scenarios/credit_list/python.mako +++ b/scenarios/credit_list/python.mako @@ -8,45 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') credits = balanced.Credit.query % elif mode == 'response': -{ - "credits": [ - { - "amount": 5000, - "appears_on_statement_as": "example.com", - "created_at": "2014-01-27T22:57:19.073817Z", - "currency": "USD", - "description": null, - "failure_reason": null, - "failure_reason_code": null, - "href": "/credits/CR2UtQgq6L3FPd1YoOc8eyOC", - "id": "CR2UtQgq6L3FPd1YoOc8eyOC", - "links": { - "customer": "CU2N5goX8AQJE0CCPeapHUsM", - "destination": "BA2QAksIxlLt60lqKc1wwgJy", - "order": null - }, - "meta": {}, - "status": "succeeded", - "transaction_number": "CR408-633-3169", - "updated_at": "2014-01-27T22:57:20.208794Z" - } - ], - "links": { - "credits.customer": "/customers/{credits.customer}", - "credits.destination": "/resources/{credits.destination}", - "credits.events": "/credits/{credits.id}/events", - "credits.order": "/orders/{credits.order}", - "credits.reversals": "/credits/{credits.id}/reversals" - }, - "meta": { - "first": "/credits?limit=10&offset=0", - "href": "/credits?limit=10&offset=0", - "last": "/credits?limit=10&offset=0", - "limit": 10, - "next": null, - "offset": 0, - "previous": null, - "total": 1 - } -} + % endif \ 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 711ec8e..e4f6f5a 100644 --- a/scenarios/credit_list_bank_account/python.mako +++ b/scenarios/credit_list_bank_account/python.mako @@ -8,17 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy/credits') credits = bank_account.credits % elif mode == 'response': -{ - "links": {}, - "meta": { - "first": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy/credits?limit=10&offset=0", - "href": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy/credits?limit=10&offset=0", - "last": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy/credits?limit=10&offset=0", - "limit": 10, - "next": null, - "offset": 0, - "previous": null, - "total": 0 - } -} + % endif \ No newline at end of file diff --git a/scenarios/credit_show/python.mako b/scenarios/credit_show/python.mako index 1d4bc05..ac95222 100644 --- a/scenarios/credit_show/python.mako +++ b/scenarios/credit_show/python.mako @@ -8,35 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') credit = balanced.Credit.fetch('/credits/CR2UtQgq6L3FPd1YoOc8eyOC') % elif mode == 'response': -{ - "credits": [ - { - "amount": 5000, - "appears_on_statement_as": "example.com", - "created_at": "2014-01-27T22:57:19.073817Z", - "currency": "USD", - "description": null, - "failure_reason": null, - "failure_reason_code": null, - "href": "/credits/CR2UtQgq6L3FPd1YoOc8eyOC", - "id": "CR2UtQgq6L3FPd1YoOc8eyOC", - "links": { - "customer": "CU2N5goX8AQJE0CCPeapHUsM", - "destination": "BA2QAksIxlLt60lqKc1wwgJy", - "order": null - }, - "meta": {}, - "status": "succeeded", - "transaction_number": "CR408-633-3169", - "updated_at": "2014-01-27T22:57:20.208794Z" - } - ], - "links": { - "credits.customer": "/customers/{credits.customer}", - "credits.destination": "/resources/{credits.destination}", - "credits.events": "/credits/{credits.id}/events", - "credits.order": "/orders/{credits.order}", - "credits.reversals": "/credits/{credits.id}/reversals" - } -} +{u'status': u'succeeded', u'description': None, u'links': {u'customer': u'CU2N5goX8AQJE0CCPeapHUsM', u'destination': u'BA2QAksIxlLt60lqKc1wwgJy', u'order': None}, u'href': u'/credits/CR2UtQgq6L3FPd1YoOc8eyOC', u'created_at': u'2014-01-27T22:57:19.073817Z', u'transaction_number': u'CR408-633-3169', u'failure_reason': None, u'updated_at': u'2014-01-27T22:57:20.208794Z', u'currency': u'USD', u'amount': 5000, u'failure_reason_code': None, u'meta': {}, u'appears_on_statement_as': u'example.com', u'id': u'CR2UtQgq6L3FPd1YoOc8eyOC'} % endif \ No newline at end of file diff --git a/scenarios/credit_update/python.mako b/scenarios/credit_update/python.mako index 963c1c1..4b3ae2b 100644 --- a/scenarios/credit_update/python.mako +++ b/scenarios/credit_update/python.mako @@ -13,38 +13,5 @@ credit.meta = { } credit.save() % elif mode == 'response': -{ - "credits": [ - { - "amount": 5000, - "appears_on_statement_as": "example.com", - "created_at": "2014-01-27T22:57:19.073817Z", - "currency": "USD", - "description": "New description for credit", - "failure_reason": null, - "failure_reason_code": null, - "href": "/credits/CR2UtQgq6L3FPd1YoOc8eyOC", - "id": "CR2UtQgq6L3FPd1YoOc8eyOC", - "links": { - "customer": "CU2N5goX8AQJE0CCPeapHUsM", - "destination": "BA2QAksIxlLt60lqKc1wwgJy", - "order": null - }, - "meta": { - "anykey": "valuegoeshere", - "facebook.id": "1234567890" - }, - "status": "succeeded", - "transaction_number": "CR408-633-3169", - "updated_at": "2014-01-27T22:57:25.832930Z" - } - ], - "links": { - "credits.customer": "/customers/{credits.customer}", - "credits.destination": "/resources/{credits.destination}", - "credits.events": "/credits/{credits.id}/events", - "credits.order": "/orders/{credits.order}", - "credits.reversals": "/credits/{credits.id}/reversals" - } -} +{u'status': u'succeeded', u'description': u'New description for credit', u'links': {u'customer': u'CU2N5goX8AQJE0CCPeapHUsM', u'destination': u'BA2QAksIxlLt60lqKc1wwgJy', u'order': None}, u'href': u'/credits/CR2UtQgq6L3FPd1YoOc8eyOC', u'created_at': u'2014-01-27T22:57:19.073817Z', u'transaction_number': u'CR408-633-3169', u'failure_reason': None, u'updated_at': u'2014-01-27T22:57:25.832930Z', u'currency': u'USD', u'amount': 5000, u'failure_reason_code': None, u'meta': {u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, u'appears_on_statement_as': u'example.com', u'id': u'CR2UtQgq6L3FPd1YoOc8eyOC'} % endif \ No newline at end of file diff --git a/scenarios/customer_create/python.mako b/scenarios/customer_create/python.mako index c21feb4..9aa30f8 100644 --- a/scenarios/customer_create/python.mako +++ b/scenarios/customer_create/python.mako @@ -14,49 +14,5 @@ customer = balanced.Customer( } ).save() % elif mode == 'response': -{ - "customers": [ - { - "address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": "48120", - "state": null - }, - "business_name": null, - "created_at": "2014-01-27T22:57:36.586782Z", - "dob_month": 7, - "dob_year": 1963, - "ein": null, - "email": null, - "href": "/customers/CU3eeasZ9yQ86uzzIYZkrPGg", - "id": "CU3eeasZ9yQ86uzzIYZkrPGg", - "links": { - "destination": null, - "source": null - }, - "merchant_status": "underwritten", - "meta": {}, - "name": "Henry Ford", - "phone": null, - "ssn_last4": null, - "updated_at": "2014-01-27T22:57:37.740442Z" - } - ], - "links": { - "customers.bank_accounts": "/customers/{customers.id}/bank_accounts", - "customers.card_holds": "/customers/{customers.id}/card_holds", - "customers.cards": "/customers/{customers.id}/cards", - "customers.credits": "/customers/{customers.id}/credits", - "customers.debits": "/customers/{customers.id}/debits", - "customers.destination": "/resources/{customers.destination}", - "customers.orders": "/customers/{customers.id}/orders", - "customers.refunds": "/customers/{customers.id}/refunds", - "customers.reversals": "/customers/{customers.id}/reversals", - "customers.source": "/resources/{customers.source}", - "customers.transactions": "/customers/{customers.id}/transactions" - } -} +{u'name': u'Henry Ford', u'links': {u'source': None, u'destination': None}, u'updated_at': u'2014-01-27T22:57:37.740442Z', u'created_at': u'2014-01-27T22:57:36.586782Z', u'dob_month': 7, u'merchant_status': u'underwritten', u'id': u'CU3eeasZ9yQ86uzzIYZkrPGg', u'phone': None, u'href': u'/customers/CU3eeasZ9yQ86uzzIYZkrPGg', u'meta': {}, u'dob_year': 1963, u'address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, u'business_name': None, u'ssn_last4': None, u'email': None, u'ein': None} % endif \ No newline at end of file diff --git a/scenarios/customer_delete/python.mako b/scenarios/customer_delete/python.mako index b198968..fc98d5d 100644 --- a/scenarios/customer_delete/python.mako +++ b/scenarios/customer_delete/python.mako @@ -8,5 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') customer = balanced.Customer.fetch('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') customer.unstore() % elif mode == 'response': -{} + % endif \ No newline at end of file diff --git a/scenarios/customer_list/python.mako b/scenarios/customer_list/python.mako index e4570d0..8210aae 100644 --- a/scenarios/customer_list/python.mako +++ b/scenarios/customer_list/python.mako @@ -8,143 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') customers = balanced.Customer.query % elif mode == 'response': -{ - "customers": [ - { - "address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": "48120", - "state": null - }, - "business_name": null, - "created_at": "2014-01-27T22:57:27.459187Z", - "dob_month": 7, - "dob_year": 1963, - "ein": null, - "email": null, - "href": "/customers/CU33Y4cut21qu1d1lGYDBseQ", - "id": "CU33Y4cut21qu1d1lGYDBseQ", - "links": { - "destination": null, - "source": null - }, - "merchant_status": "underwritten", - "meta": {}, - "name": "Henry Ford", - "phone": null, - "ssn_last4": null, - "updated_at": "2014-01-27T22:57:29.488272Z" - }, - { - "address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": "48120", - "state": null - }, - "business_name": null, - "created_at": "2014-01-27T22:57:12.447565Z", - "dob_month": 7, - "dob_year": 1963, - "ein": null, - "email": null, - "href": "/customers/CU2N5goX8AQJE0CCPeapHUsM", - "id": "CU2N5goX8AQJE0CCPeapHUsM", - "links": { - "destination": null, - "source": null - }, - "merchant_status": "underwritten", - "meta": {}, - "name": "Henry Ford", - "phone": null, - "ssn_last4": null, - "updated_at": "2014-01-27T22:57:13.581358Z" - }, - { - "address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "business_name": null, - "created_at": "2014-01-27T22:55:50.253066Z", - "dob_month": null, - "dob_year": null, - "ein": null, - "email": null, - "href": "/customers/CU1iDnBalzHoZg47Np92rNrV", - "id": "CU1iDnBalzHoZg47Np92rNrV", - "links": { - "destination": null, - "source": null - }, - "merchant_status": "no-match", - "meta": {}, - "name": null, - "phone": null, - "ssn_last4": null, - "updated_at": "2014-01-27T22:55:50.767858Z" - }, - { - "address": { - "city": "Nowhere", - "country_code": "USA", - "line1": null, - "line2": null, - "postal_code": "90210", - "state": null - }, - "business_name": null, - "created_at": "2014-01-27T22:55:47.156306Z", - "dob_month": 2, - "dob_year": 1947, - "ein": null, - "email": "whc@example.org", - "href": "/customers/CU1f8Ygc4t0F2FKNcw235x9I", - "id": "CU1f8Ygc4t0F2FKNcw235x9I", - "links": { - "destination": null, - "source": null - }, - "merchant_status": "underwritten", - "meta": {}, - "name": "William Henry Cavendish III", - "phone": "+16505551212", - "ssn_last4": "xxxx", - "updated_at": "2014-01-27T22:55:47.781694Z" - } - ], - "links": { - "customers.bank_accounts": "/customers/{customers.id}/bank_accounts", - "customers.card_holds": "/customers/{customers.id}/card_holds", - "customers.cards": "/customers/{customers.id}/cards", - "customers.credits": "/customers/{customers.id}/credits", - "customers.debits": "/customers/{customers.id}/debits", - "customers.destination": "/resources/{customers.destination}", - "customers.orders": "/customers/{customers.id}/orders", - "customers.refunds": "/customers/{customers.id}/refunds", - "customers.reversals": "/customers/{customers.id}/reversals", - "customers.source": "/resources/{customers.source}", - "customers.transactions": "/customers/{customers.id}/transactions" - }, - "meta": { - "first": "/customers?limit=10&offset=0", - "href": "/customers?limit=10&offset=0", - "last": "/customers?limit=10&offset=0", - "limit": 10, - "next": null, - "offset": 0, - "previous": null, - "total": 4 - } -} + % endif \ No newline at end of file diff --git a/scenarios/customer_show/python.mako b/scenarios/customer_show/python.mako index c9fae35..460c2af 100644 --- a/scenarios/customer_show/python.mako +++ b/scenarios/customer_show/python.mako @@ -8,49 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') customer = balanced.Customer.fetch('/customers/CU33Y4cut21qu1d1lGYDBseQ') % elif mode == 'response': -{ - "customers": [ - { - "address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": "48120", - "state": null - }, - "business_name": null, - "created_at": "2014-01-27T22:57:27.459187Z", - "dob_month": 7, - "dob_year": 1963, - "ein": null, - "email": null, - "href": "/customers/CU33Y4cut21qu1d1lGYDBseQ", - "id": "CU33Y4cut21qu1d1lGYDBseQ", - "links": { - "destination": null, - "source": null - }, - "merchant_status": "underwritten", - "meta": {}, - "name": "Henry Ford", - "phone": null, - "ssn_last4": null, - "updated_at": "2014-01-27T22:57:29.488272Z" - } - ], - "links": { - "customers.bank_accounts": "/customers/{customers.id}/bank_accounts", - "customers.card_holds": "/customers/{customers.id}/card_holds", - "customers.cards": "/customers/{customers.id}/cards", - "customers.credits": "/customers/{customers.id}/credits", - "customers.debits": "/customers/{customers.id}/debits", - "customers.destination": "/resources/{customers.destination}", - "customers.orders": "/customers/{customers.id}/orders", - "customers.refunds": "/customers/{customers.id}/refunds", - "customers.reversals": "/customers/{customers.id}/reversals", - "customers.source": "/resources/{customers.source}", - "customers.transactions": "/customers/{customers.id}/transactions" - } -} +{u'name': u'Henry Ford', u'links': {u'source': None, u'destination': None}, u'updated_at': u'2014-01-27T22:57:29.488272Z', u'created_at': u'2014-01-27T22:57:27.459187Z', u'dob_month': 7, u'merchant_status': u'underwritten', u'id': u'CU33Y4cut21qu1d1lGYDBseQ', u'phone': None, u'href': u'/customers/CU33Y4cut21qu1d1lGYDBseQ', u'meta': {}, u'dob_year': 1963, u'address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, u'business_name': None, u'ssn_last4': None, u'email': None, u'ein': None} % endif \ No newline at end of file diff --git a/scenarios/customer_update/python.mako b/scenarios/customer_update/python.mako index cd7640c..34bb58f 100644 --- a/scenarios/customer_update/python.mako +++ b/scenarios/customer_update/python.mako @@ -12,51 +12,5 @@ customer.meta = { } customer.save() % elif mode == 'response': -{ - "customers": [ - { - "address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": "48120", - "state": null - }, - "business_name": null, - "created_at": "2014-01-27T22:57:27.459187Z", - "dob_month": 7, - "dob_year": 1963, - "ein": null, - "email": "email@newdomain.com", - "href": "/customers/CU33Y4cut21qu1d1lGYDBseQ", - "id": "CU33Y4cut21qu1d1lGYDBseQ", - "links": { - "destination": null, - "source": null - }, - "merchant_status": "underwritten", - "meta": { - "shipping-preference": "ground" - }, - "name": "Henry Ford", - "phone": null, - "ssn_last4": null, - "updated_at": "2014-01-27T22:57:34.512310Z" - } - ], - "links": { - "customers.bank_accounts": "/customers/{customers.id}/bank_accounts", - "customers.card_holds": "/customers/{customers.id}/card_holds", - "customers.cards": "/customers/{customers.id}/cards", - "customers.credits": "/customers/{customers.id}/credits", - "customers.debits": "/customers/{customers.id}/debits", - "customers.destination": "/resources/{customers.destination}", - "customers.orders": "/customers/{customers.id}/orders", - "customers.refunds": "/customers/{customers.id}/refunds", - "customers.reversals": "/customers/{customers.id}/reversals", - "customers.source": "/resources/{customers.source}", - "customers.transactions": "/customers/{customers.id}/transactions" - } -} +{u'name': u'Henry Ford', u'links': {u'source': None, u'destination': None}, u'updated_at': u'2014-01-27T22:57:34.512310Z', u'created_at': u'2014-01-27T22:57:27.459187Z', u'dob_month': 7, u'merchant_status': u'underwritten', u'id': u'CU33Y4cut21qu1d1lGYDBseQ', u'phone': None, u'href': u'/customers/CU33Y4cut21qu1d1lGYDBseQ', u'meta': {u'shipping-preference': u'ground'}, u'dob_year': 1963, u'address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, u'business_name': None, u'ssn_last4': None, u'email': u'email@newdomain.com', u'ein': None} % endif \ No newline at end of file diff --git a/scenarios/debit_list/python.mako b/scenarios/debit_list/python.mako index 6bd0ef0..a5f3f41 100644 --- a/scenarios/debit_list/python.mako +++ b/scenarios/debit_list/python.mako @@ -8,113 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') debits = balanced.Debit.query % elif mode == 'response': -{ - "debits": [ - { - "amount": 5000, - "appears_on_statement_as": "BAL*Statement text", - "created_at": "2014-01-27T22:57:05.511023Z", - "currency": "USD", - "description": "Some descriptive text for the debit in the dashboard", - "failure_reason": null, - "failure_reason_code": null, - "href": "/debits/WD2Fd3jVcMZEWyXHtG3U1LRM", - "id": "WD2Fd3jVcMZEWyXHtG3U1LRM", - "links": { - "customer": null, - "dispute": null, - "order": null, - "source": "CC2uc8iPDjgyxOXHVtnZloyI" - }, - "meta": {}, - "status": "succeeded", - "transaction_number": "W906-153-1439", - "updated_at": "2014-01-27T22:57:10.153696Z" - }, - { - "amount": 5000, - "appears_on_statement_as": "BAL*ShowsUpOnStmt", - "created_at": "2014-01-27T22:56:45.623268Z", - "currency": "USD", - "description": "Some descriptive text for the debit in the dashboard", - "failure_reason": null, - "failure_reason_code": null, - "href": "/debits/WD2iSCukjXyeRdkvX3cW0PmC", - "id": "WD2iSCukjXyeRdkvX3cW0PmC", - "links": { - "customer": "CU1f8Ygc4t0F2FKNcw235x9I", - "dispute": null, - "order": null, - "source": "CC2abDOQVm5aNFhHpcRvWS02" - }, - "meta": { - "holding.for": "user1", - "meaningful.key": "some.value" - }, - "status": "succeeded", - "transaction_number": "W744-719-1832", - "updated_at": "2014-01-27T22:56:47.926021Z" - }, - { - "amount": 5000, - "appears_on_statement_as": "BAL*Statement text", - "created_at": "2014-01-27T22:56:28.702119Z", - "currency": "USD", - "description": "Some descriptive text for the debit in the dashboard", - "failure_reason": null, - "failure_reason_code": null, - "href": "/debits/WD1ZRRAZnFTryFdFaq7ijcPE", - "id": "WD1ZRRAZnFTryFdFaq7ijcPE", - "links": { - "customer": null, - "dispute": null, - "order": null, - "source": "BA1D3vL3LjasB0kewMqRGI0S" - }, - "meta": {}, - "status": "succeeded", - "transaction_number": "W081-463-7557", - "updated_at": "2014-01-27T22:56:29.235927Z" - }, - { - "amount": 10000000, - "appears_on_statement_as": "BAL*example.com", - "created_at": "2014-01-27T22:55:56.757487Z", - "currency": "USD", - "description": null, - "failure_reason": null, - "failure_reason_code": null, - "href": "/debits/WD1pU48nHJzorOySkTaQGQ9U", - "id": "WD1pU48nHJzorOySkTaQGQ9U", - "links": { - "customer": "CU1iDnBalzHoZg47Np92rNrV", - "dispute": null, - "order": null, - "source": "CC1nrXVKmfh0ouOS7zxI6X8q" - }, - "meta": {}, - "status": "succeeded", - "transaction_number": "W511-688-4504", - "updated_at": "2014-01-27T22:56:00.833870Z" - } - ], - "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}" - }, - "meta": { - "first": "/debits?limit=10&offset=0", - "href": "/debits?limit=10&offset=0", - "last": "/debits?limit=10&offset=0", - "limit": 10, - "next": null, - "offset": 0, - "previous": null, - "total": 4 - } -} + % endif \ No newline at end of file diff --git a/scenarios/debit_show/python.mako b/scenarios/debit_show/python.mako index bbe4b45..0f56e48 100644 --- a/scenarios/debit_show/python.mako +++ b/scenarios/debit_show/python.mako @@ -8,37 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') debit = balanced.Debit.fetch('/debits/WD2Fd3jVcMZEWyXHtG3U1LRM') % elif mode == 'response': -{ - "debits": [ - { - "amount": 5000, - "appears_on_statement_as": "BAL*Statement text", - "created_at": "2014-01-27T22:57:05.511023Z", - "currency": "USD", - "description": "Some descriptive text for the debit in the dashboard", - "failure_reason": null, - "failure_reason_code": null, - "href": "/debits/WD2Fd3jVcMZEWyXHtG3U1LRM", - "id": "WD2Fd3jVcMZEWyXHtG3U1LRM", - "links": { - "customer": null, - "dispute": null, - "order": null, - "source": "CC2uc8iPDjgyxOXHVtnZloyI" - }, - "meta": {}, - "status": "succeeded", - "transaction_number": "W906-153-1439", - "updated_at": "2014-01-27T22:57:10.153696Z" - } - ], - "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}" - } -} +{u'status': u'succeeded', u'description': u'Some descriptive text for the debit in the dashboard', u'links': {u'customer': None, u'source': u'CC2uc8iPDjgyxOXHVtnZloyI', u'order': None, u'dispute': None}, u'href': u'/debits/WD2Fd3jVcMZEWyXHtG3U1LRM', u'created_at': u'2014-01-27T22:57:05.511023Z', u'transaction_number': u'W906-153-1439', u'failure_reason': None, u'updated_at': u'2014-01-27T22:57:10.153696Z', 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'WD2Fd3jVcMZEWyXHtG3U1LRM'} % endif \ No newline at end of file diff --git a/scenarios/debit_update/python.mako b/scenarios/debit_update/python.mako index dc5bb40..fea9199 100644 --- a/scenarios/debit_update/python.mako +++ b/scenarios/debit_update/python.mako @@ -13,40 +13,5 @@ debit.meta = { } debit.save() % elif mode == 'response': -{ - "debits": [ - { - "amount": 5000, - "appears_on_statement_as": "BAL*Statement text", - "created_at": "2014-01-27T22:57:05.511023Z", - "currency": "USD", - "description": "New description for debit", - "failure_reason": null, - "failure_reason_code": null, - "href": "/debits/WD2Fd3jVcMZEWyXHtG3U1LRM", - "id": "WD2Fd3jVcMZEWyXHtG3U1LRM", - "links": { - "customer": null, - "dispute": null, - "order": null, - "source": "CC2uc8iPDjgyxOXHVtnZloyI" - }, - "meta": { - "anykey": "valuegoeshere", - "facebook.id": "1234567890" - }, - "status": "succeeded", - "transaction_number": "W906-153-1439", - "updated_at": "2014-01-27T22:57:53.776191Z" - } - ], - "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}" - } -} +{u'status': u'succeeded', u'description': u'New description for debit', u'links': {u'customer': None, u'source': u'CC2uc8iPDjgyxOXHVtnZloyI', u'order': None, u'dispute': None}, u'href': u'/debits/WD2Fd3jVcMZEWyXHtG3U1LRM', u'created_at': u'2014-01-27T22:57:05.511023Z', u'transaction_number': u'W906-153-1439', u'failure_reason': None, u'updated_at': u'2014-01-27T22:57:53.776191Z', u'currency': u'USD', u'amount': 5000, u'failure_reason_code': None, u'meta': {u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, u'appears_on_statement_as': u'BAL*Statement text', u'id': u'WD2Fd3jVcMZEWyXHtG3U1LRM'} % endif \ No newline at end of file diff --git a/scenarios/event_list/python.mako b/scenarios/event_list/python.mako index 99f16ce..382abd2 100644 --- a/scenarios/event_list/python.mako +++ b/scenarios/event_list/python.mako @@ -8,79 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') events = balanced.Event.query % elif mode == 'response': -{ - "events": [ - { - "callback_statuses": { - "failed": 0, - "pending": 0, - "retrying": 0, - "succeeded": 0 - }, - "entity": { - "customers": [ - { - "address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "business_name": null, - "created_at": "2014-01-27T22:55:50.253066Z", - "dob_month": null, - "dob_year": null, - "ein": null, - "email": null, - "href": "/customers/CU1iDnBalzHoZg47Np92rNrV", - "id": "CU1iDnBalzHoZg47Np92rNrV", - "links": { - "destination": null, - "source": null - }, - "merchant_status": "no-match", - "meta": {}, - "name": null, - "phone": null, - "ssn_last4": null, - "updated_at": "2014-01-27T22:55:50.767858Z" - } - ], - "links": { - "customers.bank_accounts": "/customers/{customers.id}/bank_accounts", - "customers.card_holds": "/customers/{customers.id}/card_holds", - "customers.cards": "/customers/{customers.id}/cards", - "customers.credits": "/customers/{customers.id}/credits", - "customers.debits": "/customers/{customers.id}/debits", - "customers.destination": "/resources/{customers.destination}", - "customers.orders": "/customers/{customers.id}/orders", - "customers.refunds": "/customers/{customers.id}/refunds", - "customers.reversals": "/customers/{customers.id}/reversals", - "customers.source": "/resources/{customers.source}", - "customers.transactions": "/customers/{customers.id}/transactions" - } - }, - "href": "/events/EV2abbb98487a611e3a86f026ba7d31e6f", - "id": "EV2abbb98487a611e3a86f026ba7d31e6f", - "links": {}, - "occurred_at": "2014-01-27T22:55:50.767000Z", - "type": "account.created" - } - ], - "links": { - "events.callbacks": "/events/{events.self}/callbacks" - }, - "meta": { - "first": "/events?limit=10&offset=0", - "href": "/events?limit=10&offset=0", - "last": "/events?limit=10&offset=0", - "limit": 10, - "next": null, - "offset": 0, - "previous": null, - "total": 1 - } -} + % endif \ No newline at end of file diff --git a/scenarios/event_show/python.mako b/scenarios/event_show/python.mako index abaec4d..dd2159e 100644 --- a/scenarios/event_show/python.mako +++ b/scenarios/event_show/python.mako @@ -8,69 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') event = balanced.Event.fetch('/events/EV2abbb98487a611e3a86f026ba7d31e6f') % elif mode == 'response': -{ - "events": [ - { - "callback_statuses": { - "failed": 0, - "pending": 0, - "retrying": 0, - "succeeded": 0 - }, - "entity": { - "customers": [ - { - "address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "business_name": null, - "created_at": "2014-01-27T22:55:50.253066Z", - "dob_month": null, - "dob_year": null, - "ein": null, - "email": null, - "href": "/customers/CU1iDnBalzHoZg47Np92rNrV", - "id": "CU1iDnBalzHoZg47Np92rNrV", - "links": { - "destination": null, - "source": null - }, - "merchant_status": "no-match", - "meta": {}, - "name": null, - "phone": null, - "ssn_last4": null, - "updated_at": "2014-01-27T22:55:50.767858Z" - } - ], - "links": { - "customers.bank_accounts": "/customers/{customers.id}/bank_accounts", - "customers.card_holds": "/customers/{customers.id}/card_holds", - "customers.cards": "/customers/{customers.id}/cards", - "customers.credits": "/customers/{customers.id}/credits", - "customers.debits": "/customers/{customers.id}/debits", - "customers.destination": "/resources/{customers.destination}", - "customers.orders": "/customers/{customers.id}/orders", - "customers.refunds": "/customers/{customers.id}/refunds", - "customers.reversals": "/customers/{customers.id}/reversals", - "customers.source": "/resources/{customers.source}", - "customers.transactions": "/customers/{customers.id}/transactions" - } - }, - "href": "/events/EV2abbb98487a611e3a86f026ba7d31e6f", - "id": "EV2abbb98487a611e3a86f026ba7d31e6f", - "links": {}, - "occurred_at": "2014-01-27T22:55:50.767000Z", - "type": "account.created" - } - ], - "links": { - "events.callbacks": "/events/{events.self}/callbacks" - } -} +{u'links': {}, u'occurred_at': u'2014-01-27T22:55:50.767000Z', u'entity': {u'customers': [{u'name': None, u'links': {u'source': None, u'destination': None}, u'updated_at': u'2014-01-27T22:55:50.767858Z', u'created_at': u'2014-01-27T22:55:50.253066Z', u'dob_month': None, u'merchant_status': u'no-match', u'id': u'CU1iDnBalzHoZg47Np92rNrV', u'phone': None, u'href': u'/customers/CU1iDnBalzHoZg47Np92rNrV', u'meta': {}, u'dob_year': None, u'address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, u'business_name': None, u'ssn_last4': None, u'email': None, 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.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'}}, u'href': u'/events/EV2abbb98487a611e3a86f026ba7d31e6f', u'callback_statuses': {u'failed': 0, u'retrying': 0, u'succeeded': 0, u'pending': 0}, u'type': u'account.created', u'id': u'EV2abbb98487a611e3a86f026ba7d31e6f'} % endif \ No newline at end of file diff --git a/scenarios/order_create/python.mako b/scenarios/order_create/python.mako index aafeb51..8b2a7af 100644 --- a/scenarios/order_create/python.mako +++ b/scenarios/order_create/python.mako @@ -10,38 +10,5 @@ merchant_customer.create_order( description='Order #12341234' ).save() % elif mode == 'response': -{ - "links": { - "orders.buyers": "/orders/{orders.id}/buyers", - "orders.credits": "/orders/{orders.id}/credits", - "orders.debits": "/orders/{orders.id}/debits", - "orders.merchant": "/customers/{orders.merchant}", - "orders.refunds": "/orders/{orders.id}/refunds", - "orders.reversals": "/orders/{orders.id}/reversals" - }, - "orders": [ - { - "amount": 0, - "amount_escrowed": 0, - "created_at": "2014-01-27T22:58:01.115720Z", - "currency": "USD", - "delivery_address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "description": "Order #12341234", - "href": "/orders/OR3FOihZa7lMHdAP5p8BJZVY", - "id": "OR3FOihZa7lMHdAP5p8BJZVY", - "links": { - "merchant": "CU3eeasZ9yQ86uzzIYZkrPGg" - }, - "meta": {}, - "updated_at": "2014-01-27T22:58:01.115723Z" - } - ] -} +{u'delivery_address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, u'description': u'Order #12341234', u'links': {u'merchant': u'CU3eeasZ9yQ86uzzIYZkrPGg'}, u'created_at': u'2014-01-27T22:58:01.115720Z', u'updated_at': u'2014-01-27T22:58:01.115723Z', u'id': u'OR3FOihZa7lMHdAP5p8BJZVY', u'currency': u'USD', u'amount': 0, u'href': u'/orders/OR3FOihZa7lMHdAP5p8BJZVY', u'meta': {}, u'amount_escrowed': 0} % endif \ No newline at end of file diff --git a/scenarios/order_list/python.mako b/scenarios/order_list/python.mako index 05efb35..96c678a 100644 --- a/scenarios/order_list/python.mako +++ b/scenarios/order_list/python.mako @@ -8,48 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') orders = balanced.Order.query % elif mode == 'response': -{ - "links": { - "orders.buyers": "/orders/{orders.id}/buyers", - "orders.credits": "/orders/{orders.id}/credits", - "orders.debits": "/orders/{orders.id}/debits", - "orders.merchant": "/customers/{orders.merchant}", - "orders.refunds": "/orders/{orders.id}/refunds", - "orders.reversals": "/orders/{orders.id}/reversals" - }, - "meta": { - "first": "/orders?limit=10&offset=0", - "href": "/orders?limit=10&offset=0", - "last": "/orders?limit=10&offset=0", - "limit": 10, - "next": null, - "offset": 0, - "previous": null, - "total": 1 - }, - "orders": [ - { - "amount": 0, - "amount_escrowed": 0, - "created_at": "2014-01-27T22:58:01.115720Z", - "currency": "USD", - "delivery_address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "description": "Order #12341234", - "href": "/orders/OR3FOihZa7lMHdAP5p8BJZVY", - "id": "OR3FOihZa7lMHdAP5p8BJZVY", - "links": { - "merchant": "CU3eeasZ9yQ86uzzIYZkrPGg" - }, - "meta": {}, - "updated_at": "2014-01-27T22:58:01.115723Z" - } - ] -} + % endif \ No newline at end of file diff --git a/scenarios/order_show/python.mako b/scenarios/order_show/python.mako index ad8efea..b426251 100644 --- a/scenarios/order_show/python.mako +++ b/scenarios/order_show/python.mako @@ -8,38 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') order = balanced.Order.fetch('/orders/OR3FOihZa7lMHdAP5p8BJZVY') % elif mode == 'response': -{ - "links": { - "orders.buyers": "/orders/{orders.id}/buyers", - "orders.credits": "/orders/{orders.id}/credits", - "orders.debits": "/orders/{orders.id}/debits", - "orders.merchant": "/customers/{orders.merchant}", - "orders.refunds": "/orders/{orders.id}/refunds", - "orders.reversals": "/orders/{orders.id}/reversals" - }, - "orders": [ - { - "amount": 0, - "amount_escrowed": 0, - "created_at": "2014-01-27T22:58:01.115720Z", - "currency": "USD", - "delivery_address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "description": "Order #12341234", - "href": "/orders/OR3FOihZa7lMHdAP5p8BJZVY", - "id": "OR3FOihZa7lMHdAP5p8BJZVY", - "links": { - "merchant": "CU3eeasZ9yQ86uzzIYZkrPGg" - }, - "meta": {}, - "updated_at": "2014-01-27T22:58:01.115723Z" - } - ] -} +{u'delivery_address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, u'description': u'Order #12341234', u'links': {u'merchant': u'CU3eeasZ9yQ86uzzIYZkrPGg'}, u'created_at': u'2014-01-27T22:58:01.115720Z', u'updated_at': u'2014-01-27T22:58:01.115723Z', u'id': u'OR3FOihZa7lMHdAP5p8BJZVY', u'currency': u'USD', u'amount': 0, u'href': u'/orders/OR3FOihZa7lMHdAP5p8BJZVY', u'meta': {}, u'amount_escrowed': 0} % endif \ No newline at end of file diff --git a/scenarios/order_update/python.mako b/scenarios/order_update/python.mako index fba1563..60f178e 100644 --- a/scenarios/order_update/python.mako +++ b/scenarios/order_update/python.mako @@ -13,41 +13,5 @@ order.meta = { } order.save() % elif mode == 'response': -{ - "links": { - "orders.buyers": "/orders/{orders.id}/buyers", - "orders.credits": "/orders/{orders.id}/credits", - "orders.debits": "/orders/{orders.id}/debits", - "orders.merchant": "/customers/{orders.merchant}", - "orders.refunds": "/orders/{orders.id}/refunds", - "orders.reversals": "/orders/{orders.id}/reversals" - }, - "orders": [ - { - "amount": 0, - "amount_escrowed": 0, - "created_at": "2014-01-27T22:58:01.115720Z", - "currency": "USD", - "delivery_address": { - "city": null, - "country_code": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "description": "New description for order", - "href": "/orders/OR3FOihZa7lMHdAP5p8BJZVY", - "id": "OR3FOihZa7lMHdAP5p8BJZVY", - "links": { - "merchant": "CU3eeasZ9yQ86uzzIYZkrPGg" - }, - "meta": { - "anykey": "valuegoeshere", - "product.id": "1234567890" - }, - "updated_at": "2014-01-27T22:58:05.657463Z" - } - ] -} +{u'delivery_address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, u'description': u'New description for order', u'links': {u'merchant': u'CU3eeasZ9yQ86uzzIYZkrPGg'}, u'created_at': u'2014-01-27T22:58:01.115720Z', u'updated_at': u'2014-01-27T22:58:05.657463Z', u'id': u'OR3FOihZa7lMHdAP5p8BJZVY', u'currency': u'USD', u'amount': 0, u'href': u'/orders/OR3FOihZa7lMHdAP5p8BJZVY', u'meta': {u'product.id': u'1234567890', u'anykey': u'valuegoeshere'}, u'amount_escrowed': 0} % endif \ No newline at end of file diff --git a/scenarios/refund_create/python.mako b/scenarios/refund_create/python.mako index d60ae6e..e50bd79 100644 --- a/scenarios/refund_create/python.mako +++ b/scenarios/refund_create/python.mako @@ -16,35 +16,5 @@ refund = debit.refund( } ) % elif mode == 'response': -{ - "links": { - "refunds.debit": "/debits/{refunds.debit}", - "refunds.dispute": "/disputes/{refunds.dispute}", - "refunds.events": "/refunds/{refunds.id}/events", - "refunds.order": "/orders/{refunds.order}" - }, - "refunds": [ - { - "amount": 3000, - "created_at": "2014-01-27T22:58:11.375665Z", - "currency": "USD", - "description": "Refund for Order #1111", - "href": "/refunds/RF3RklPuFgsgI50UuYtr4g6I", - "id": "RF3RklPuFgsgI50UuYtr4g6I", - "links": { - "debit": "WD3MKNxNTKBGgA7mX50yogiu", - "dispute": null, - "order": null - }, - "meta": { - "fulfillment.item.condition": "OK", - "merchant.feedback": "positive", - "user.refund_reason": "not happy with product" - }, - "status": "succeeded", - "transaction_number": "RF383-088-7077", - "updated_at": "2014-01-27T22:58:12.115131Z" - } - ] -} +{u'status': u'succeeded', u'description': u'Refund for Order #1111', u'links': {u'dispute': None, u'order': None, u'debit': u'WD3MKNxNTKBGgA7mX50yogiu'}, u'created_at': u'2014-01-27T22:58:11.375665Z', u'transaction_number': u'RF383-088-7077', u'updated_at': u'2014-01-27T22:58:12.115131Z', u'currency': u'USD', u'amount': 3000, u'href': u'/refunds/RF3RklPuFgsgI50UuYtr4g6I', u'meta': {u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, u'id': u'RF3RklPuFgsgI50UuYtr4g6I'} % endif \ No newline at end of file diff --git a/scenarios/refund_list/python.mako b/scenarios/refund_list/python.mako index 04d2ece..2159578 100644 --- a/scenarios/refund_list/python.mako +++ b/scenarios/refund_list/python.mako @@ -8,45 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') refunds = balanced.Refund.query % elif mode == 'response': -{ - "links": { - "refunds.debit": "/debits/{refunds.debit}", - "refunds.dispute": "/disputes/{refunds.dispute}", - "refunds.events": "/refunds/{refunds.id}/events", - "refunds.order": "/orders/{refunds.order}" - }, - "meta": { - "first": "/refunds?limit=10&offset=0", - "href": "/refunds?limit=10&offset=0", - "last": "/refunds?limit=10&offset=0", - "limit": 10, - "next": null, - "offset": 0, - "previous": null, - "total": 1 - }, - "refunds": [ - { - "amount": 3000, - "created_at": "2014-01-27T22:58:11.375665Z", - "currency": "USD", - "description": "Refund for Order #1111", - "href": "/refunds/RF3RklPuFgsgI50UuYtr4g6I", - "id": "RF3RklPuFgsgI50UuYtr4g6I", - "links": { - "debit": "WD3MKNxNTKBGgA7mX50yogiu", - "dispute": null, - "order": null - }, - "meta": { - "fulfillment.item.condition": "OK", - "merchant.feedback": "positive", - "user.refund_reason": "not happy with product" - }, - "status": "succeeded", - "transaction_number": "RF383-088-7077", - "updated_at": "2014-01-27T22:58:12.115131Z" - } - ] -} + % endif \ No newline at end of file diff --git a/scenarios/refund_show/python.mako b/scenarios/refund_show/python.mako index bf2c81d..127c029 100644 --- a/scenarios/refund_show/python.mako +++ b/scenarios/refund_show/python.mako @@ -8,35 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') refund = balanced.Refund.fetch('/refunds/RF3RklPuFgsgI50UuYtr4g6I') % elif mode == 'response': -{ - "links": { - "refunds.debit": "/debits/{refunds.debit}", - "refunds.dispute": "/disputes/{refunds.dispute}", - "refunds.events": "/refunds/{refunds.id}/events", - "refunds.order": "/orders/{refunds.order}" - }, - "refunds": [ - { - "amount": 3000, - "created_at": "2014-01-27T22:58:11.375665Z", - "currency": "USD", - "description": "Refund for Order #1111", - "href": "/refunds/RF3RklPuFgsgI50UuYtr4g6I", - "id": "RF3RklPuFgsgI50UuYtr4g6I", - "links": { - "debit": "WD3MKNxNTKBGgA7mX50yogiu", - "dispute": null, - "order": null - }, - "meta": { - "fulfillment.item.condition": "OK", - "merchant.feedback": "positive", - "user.refund_reason": "not happy with product" - }, - "status": "succeeded", - "transaction_number": "RF383-088-7077", - "updated_at": "2014-01-27T22:58:12.115131Z" - } - ] -} +{u'status': u'succeeded', u'description': u'Refund for Order #1111', u'links': {u'dispute': None, u'order': None, u'debit': u'WD3MKNxNTKBGgA7mX50yogiu'}, u'created_at': u'2014-01-27T22:58:11.375665Z', u'transaction_number': u'RF383-088-7077', u'updated_at': u'2014-01-27T22:58:12.115131Z', u'currency': u'USD', u'amount': 3000, u'href': u'/refunds/RF3RklPuFgsgI50UuYtr4g6I', u'meta': {u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, u'id': u'RF3RklPuFgsgI50UuYtr4g6I'} % endif \ No newline at end of file diff --git a/scenarios/refund_update/python.mako b/scenarios/refund_update/python.mako index 499881d..6ddf933 100644 --- a/scenarios/refund_update/python.mako +++ b/scenarios/refund_update/python.mako @@ -14,35 +14,5 @@ refund.meta = { } refund.save() % elif mode == 'response': -{ - "links": { - "refunds.debit": "/debits/{refunds.debit}", - "refunds.dispute": "/disputes/{refunds.dispute}", - "refunds.events": "/refunds/{refunds.id}/events", - "refunds.order": "/orders/{refunds.order}" - }, - "refunds": [ - { - "amount": 3000, - "created_at": "2014-01-27T22:58:11.375665Z", - "currency": "USD", - "description": "update this description", - "href": "/refunds/RF3RklPuFgsgI50UuYtr4g6I", - "id": "RF3RklPuFgsgI50UuYtr4g6I", - "links": { - "debit": "WD3MKNxNTKBGgA7mX50yogiu", - "dispute": null, - "order": null - }, - "meta": { - "refund.reason": "user not happy with product", - "user.notes": "very polite on the phone", - "user.refund.count": "3" - }, - "status": "succeeded", - "transaction_number": "RF383-088-7077", - "updated_at": "2014-01-27T22:58:17.950799Z" - } - ] -} +{u'status': u'succeeded', u'description': u'update this description', u'links': {u'dispute': None, u'order': None, u'debit': u'WD3MKNxNTKBGgA7mX50yogiu'}, u'created_at': u'2014-01-27T22:58:11.375665Z', u'transaction_number': u'RF383-088-7077', u'updated_at': u'2014-01-27T22:58:17.950799Z', u'currency': u'USD', u'amount': 3000, u'href': u'/refunds/RF3RklPuFgsgI50UuYtr4g6I', u'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'}, u'id': u'RF3RklPuFgsgI50UuYtr4g6I'} % endif \ No newline at end of file diff --git a/scenarios/reversal_create/python.mako b/scenarios/reversal_create/python.mako index 8d9c6aa..4162244 100644 --- a/scenarios/reversal_create/python.mako +++ b/scenarios/reversal_create/python.mako @@ -16,35 +16,5 @@ reversal = credit.reverse( } ) % elif mode == 'response': -{ - "links": { - "reversals.credit": "/credits/{reversals.credit}", - "reversals.events": "/reversals/{reversals.id}/events", - "reversals.order": "/orders/{reversals.order}" - }, - "reversals": [ - { - "amount": 3000, - "created_at": "2014-01-27T22:58:21.214829Z", - "currency": "USD", - "description": "Reversal for Order #1111", - "failure_reason": null, - "failure_reason_code": null, - "href": "/reversals/RV42n8M9XZWna427oPDDi4RG", - "id": "RV42n8M9XZWna427oPDDi4RG", - "links": { - "credit": "CR40neytmVG2HDBp1opfF7sY", - "order": null - }, - "meta": { - "fulfillment.item.condition": "OK", - "merchant.feedback": "positive", - "user.refund_reason": "not happy with product" - }, - "status": "succeeded", - "transaction_number": "RV219-169-0008", - "updated_at": "2014-01-27T22:58:22.190749Z" - } - ] -} +{u'status': u'succeeded', u'description': u'Reversal for Order #1111', u'links': {u'credit': u'CR40neytmVG2HDBp1opfF7sY', u'order': None}, u'updated_at': u'2014-01-27T22:58:22.190749Z', u'created_at': u'2014-01-27T22:58:21.214829Z', u'transaction_number': u'RV219-169-0008', u'failure_reason': None, u'currency': u'USD', u'amount': 3000, u'href': u'/reversals/RV42n8M9XZWna427oPDDi4RG', u'meta': {u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, u'failure_reason_code': None, u'id': u'RV42n8M9XZWna427oPDDi4RG'} % endif \ No newline at end of file diff --git a/scenarios/reversal_list/python.mako b/scenarios/reversal_list/python.mako index a73bf5f..d3ca438 100644 --- a/scenarios/reversal_list/python.mako +++ b/scenarios/reversal_list/python.mako @@ -8,45 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') reversals = balanced.Reversal.query % elif mode == 'response': -{ - "links": { - "reversals.credit": "/credits/{reversals.credit}", - "reversals.events": "/reversals/{reversals.id}/events", - "reversals.order": "/orders/{reversals.order}" - }, - "meta": { - "first": "/reversals?limit=10&offset=0", - "href": "/reversals?limit=10&offset=0", - "last": "/reversals?limit=10&offset=0", - "limit": 10, - "next": null, - "offset": 0, - "previous": null, - "total": 1 - }, - "reversals": [ - { - "amount": 3000, - "created_at": "2014-01-27T22:58:21.214829Z", - "currency": "USD", - "description": "Reversal for Order #1111", - "failure_reason": null, - "failure_reason_code": null, - "href": "/reversals/RV42n8M9XZWna427oPDDi4RG", - "id": "RV42n8M9XZWna427oPDDi4RG", - "links": { - "credit": "CR40neytmVG2HDBp1opfF7sY", - "order": null - }, - "meta": { - "fulfillment.item.condition": "OK", - "merchant.feedback": "positive", - "user.refund_reason": "not happy with product" - }, - "status": "succeeded", - "transaction_number": "RV219-169-0008", - "updated_at": "2014-01-27T22:58:22.190749Z" - } - ] -} + % endif \ No newline at end of file diff --git a/scenarios/reversal_show/python.mako b/scenarios/reversal_show/python.mako index 0f80717..d23dfb9 100644 --- a/scenarios/reversal_show/python.mako +++ b/scenarios/reversal_show/python.mako @@ -8,35 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') refund = balanced.Reversal.fetch('/reversals/RV42n8M9XZWna427oPDDi4RG') % elif mode == 'response': -{ - "links": { - "reversals.credit": "/credits/{reversals.credit}", - "reversals.events": "/reversals/{reversals.id}/events", - "reversals.order": "/orders/{reversals.order}" - }, - "reversals": [ - { - "amount": 3000, - "created_at": "2014-01-27T22:58:21.214829Z", - "currency": "USD", - "description": "Reversal for Order #1111", - "failure_reason": null, - "failure_reason_code": null, - "href": "/reversals/RV42n8M9XZWna427oPDDi4RG", - "id": "RV42n8M9XZWna427oPDDi4RG", - "links": { - "credit": "CR40neytmVG2HDBp1opfF7sY", - "order": null - }, - "meta": { - "fulfillment.item.condition": "OK", - "merchant.feedback": "positive", - "user.refund_reason": "not happy with product" - }, - "status": "succeeded", - "transaction_number": "RV219-169-0008", - "updated_at": "2014-01-27T22:58:22.190749Z" - } - ] -} +{u'status': u'succeeded', u'description': u'Reversal for Order #1111', u'links': {u'credit': u'CR40neytmVG2HDBp1opfF7sY', u'order': None}, u'updated_at': u'2014-01-27T22:58:22.190749Z', u'created_at': u'2014-01-27T22:58:21.214829Z', u'transaction_number': u'RV219-169-0008', u'failure_reason': None, u'currency': u'USD', u'amount': 3000, u'href': u'/reversals/RV42n8M9XZWna427oPDDi4RG', u'meta': {u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, u'failure_reason_code': None, u'id': u'RV42n8M9XZWna427oPDDi4RG'} % endif \ No newline at end of file diff --git a/scenarios/reversal_update/python.mako b/scenarios/reversal_update/python.mako index 8ed1966..8bc500c 100644 --- a/scenarios/reversal_update/python.mako +++ b/scenarios/reversal_update/python.mako @@ -14,35 +14,5 @@ reversal.meta = { } reversal.save() % elif mode == 'response': -{ - "links": { - "reversals.credit": "/credits/{reversals.credit}", - "reversals.events": "/reversals/{reversals.id}/events", - "reversals.order": "/orders/{reversals.order}" - }, - "reversals": [ - { - "amount": 3000, - "created_at": "2014-01-27T22:58:21.214829Z", - "currency": "USD", - "description": "update this description", - "failure_reason": null, - "failure_reason_code": null, - "href": "/reversals/RV42n8M9XZWna427oPDDi4RG", - "id": "RV42n8M9XZWna427oPDDi4RG", - "links": { - "credit": "CR40neytmVG2HDBp1opfF7sY", - "order": null - }, - "meta": { - "refund.reason": "user not happy with product", - "user.notes": "very polite on the phone", - "user.satisfaction": "6" - }, - "status": "succeeded", - "transaction_number": "RV219-169-0008", - "updated_at": "2014-01-27T22:58:27.354488Z" - } - ] -} +{u'status': u'succeeded', u'description': u'update this description', u'links': {u'credit': u'CR40neytmVG2HDBp1opfF7sY', u'order': None}, u'updated_at': u'2014-01-27T22:58:27.354488Z', u'created_at': u'2014-01-27T22:58:21.214829Z', u'transaction_number': u'RV219-169-0008', u'failure_reason': None, u'currency': u'USD', u'amount': 3000, u'href': u'/reversals/RV42n8M9XZWna427oPDDi4RG', u'meta': {u'user.satisfaction': u'6', u'refund.reason': u'user not happy with product', u'user.notes': u'very polite on the phone'}, u'failure_reason_code': None, u'id': u'RV42n8M9XZWna427oPDDi4RG'} % endif \ No newline at end of file From 3c5b50853ea9d3eeaedf59ccc2cb6053970f6db8 Mon Sep 17 00:00:00 2001 From: Richie Date: Fri, 7 Feb 2014 14:10:40 -0800 Subject: [PATCH 062/146] Change name of object variable --- render_scenarios.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/render_scenarios.py b/render_scenarios.py index fe0b460..b6b1b7b 100644 --- a/render_scenarios.py +++ b/render_scenarios.py @@ -23,10 +23,9 @@ def construct_response(scenario_name): del response["links"] for key, value in response.items(): response = value[0] - word = key - print word + balanced_object = key # for key, value in response.items(): - # response2 = setattr(word, key, value) + # response2 = setattr(balanced_object, key, value) text =template.render(response= response).strip() except KeyError: text = '' From 61d81f5af98cd4bf62637895a16676262398e1e5 Mon Sep 17 00:00:00 2001 From: Mahmoud Abdelkader Date: Fri, 7 Feb 2014 17:45:53 -0800 Subject: [PATCH 063/146] 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 b72f9c468f7de28e7572aa8e6a6f4a49bf3eb2a2 Mon Sep 17 00:00:00 2001 From: Richie Date: Mon, 10 Feb 2014 20:57:00 -0800 Subject: [PATCH 064/146] Add method to render pretty printed response objects --- render_scenarios.py | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/render_scenarios.py b/render_scenarios.py index b6b1b7b..4138d94 100644 --- a/render_scenarios.py +++ b/render_scenarios.py @@ -1,10 +1,21 @@ import glob2 import os import json +import balanced import pprint +from pprint import PrettyPrinter from mako.template import Template from mako.lookup import TemplateLookup +def pretty_print_response(response): + template = Template("${response}") + pprinter = PrettyPrinter() + dictionary_text = pprint.pformat(response.__dict__) + text = template.render(response= response) + text = text.split('(', 1)[0] + "(" + dictionary_text + ")" + text = text.replace('({', '(\n ') + text = text.replace('})', ')\n ') + return text def construct_response(scenario_name): # load up response data @@ -23,10 +34,13 @@ def construct_response(scenario_name): del response["links"] for key, value in response.items(): response = value[0] - balanced_object = key - # for key, value in response.items(): - # response2 = setattr(balanced_object, key, value) - text =template.render(response= response).strip() + _type = key + resource = balanced.Resource() + object_type = resource.registry[_type] + object_instance = object_type() + for key, value in response.items(): + setattr(object_instance, key, value) + text = pretty_print_response(object_instance) except KeyError: text = '' return text From d57e4a12ee2cb48532fb1a9acfdf185aede6d094 Mon Sep 17 00:00:00 2001 From: Richie Date: Mon, 10 Feb 2014 20:59:15 -0800 Subject: [PATCH 065/146] Add newly rendered scenarios --- scenarios/_mj/api_key_create/python.mako | 9 +++- scenarios/api_key_create/python.mako | 9 +++- scenarios/api_key_show/python.mako | 8 +++- .../python.mako | 24 +++++++++- scenarios/bank_account_create/python.mako | 23 +++++++++- scenarios/bank_account_credit/python.mako | 19 +++++++- scenarios/bank_account_debit/python.mako | 20 ++++++++- scenarios/bank_account_show/python.mako | 23 +++++++++- scenarios/bank_account_update/python.mako | 25 ++++++++++- .../python.mako | 13 +++++- .../python.mako | 13 +++++- .../python.mako | 13 +++++- scenarios/callback_create/python.mako | 9 +++- scenarios/callback_show/python.mako | 9 +++- .../card_associate_to_customer/python.mako | 28 +++++++++++- scenarios/card_create/python.mako | 28 +++++++++++- scenarios/card_debit/python.mako | 20 ++++++++- scenarios/card_hold_capture/python.mako | 20 ++++++++- scenarios/card_hold_create/python.mako | 16 ++++++- scenarios/card_hold_show/python.mako | 16 ++++++- scenarios/card_hold_update/python.mako | 16 ++++++- scenarios/card_hold_void/python.mako | 16 ++++++- scenarios/card_show/python.mako | 28 +++++++++++- scenarios/card_update/python.mako | 30 ++++++++++++- scenarios/credit_show/python.mako | 19 +++++++- scenarios/credit_update/python.mako | 19 +++++++- scenarios/customer_create/python.mako | 24 +++++++++- scenarios/customer_show/python.mako | 24 +++++++++- scenarios/customer_update/python.mako | 24 +++++++++- scenarios/debit_show/python.mako | 20 ++++++++- scenarios/debit_update/python.mako | 20 ++++++++- scenarios/event_show/python.mako | 45 ++++++++++++++++++- scenarios/order_create/python.mako | 19 +++++++- scenarios/order_show/python.mako | 19 +++++++- scenarios/order_update/python.mako | 19 +++++++- scenarios/refund_create/python.mako | 18 +++++++- scenarios/refund_show/python.mako | 18 +++++++- scenarios/refund_update/python.mako | 18 +++++++- scenarios/reversal_create/python.mako | 18 +++++++- scenarios/reversal_show/python.mako | 18 +++++++- scenarios/reversal_update/python.mako | 18 +++++++- 41 files changed, 754 insertions(+), 41 deletions(-) diff --git a/scenarios/_mj/api_key_create/python.mako b/scenarios/_mj/api_key_create/python.mako index 66ba33f..192aad0 100644 --- a/scenarios/_mj/api_key_create/python.mako +++ b/scenarios/_mj/api_key_create/python.mako @@ -9,5 +9,12 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') api_key = balanced.APIKey() api_key.save() % elif mode == 'response': -{u'links': {}, u'created_at': u'2014-01-27T22:56:01.641736Z', u'secret': u'ak-test-1jlJCdGZjRWWYRF1iLBR69xwqG2NdQifv', u'href': u'/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c', u'meta': {}, u'id': u'AK1vqjn1eEHXP0JYXrBrjH5c'} +APIKey( + 'created_at': u'2014-01-27T22:56:01.641736Z', + 'href': u'/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c', + 'id': u'AK1vqjn1eEHXP0JYXrBrjH5c', + 'links': {}, + 'meta': {}, + 'secret': u'ak-test-1jlJCdGZjRWWYRF1iLBR69xwqG2NdQifv') + % endif \ No newline at end of file diff --git a/scenarios/api_key_create/python.mako b/scenarios/api_key_create/python.mako index 058cbc2..2c14977 100644 --- a/scenarios/api_key_create/python.mako +++ b/scenarios/api_key_create/python.mako @@ -7,5 +7,12 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') api_key = balanced.APIKey().save() % elif mode == 'response': -{u'links': {}, u'created_at': u'2014-01-27T22:56:01.641736Z', u'secret': u'ak-test-1jlJCdGZjRWWYRF1iLBR69xwqG2NdQifv', u'href': u'/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c', u'meta': {}, u'id': u'AK1vqjn1eEHXP0JYXrBrjH5c'} +APIKey( + 'created_at': u'2014-01-27T22:56:01.641736Z', + 'href': u'/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c', + 'id': u'AK1vqjn1eEHXP0JYXrBrjH5c', + 'links': {}, + 'meta': {}, + 'secret': u'ak-test-1jlJCdGZjRWWYRF1iLBR69xwqG2NdQifv') + % endif \ No newline at end of file diff --git a/scenarios/api_key_show/python.mako b/scenarios/api_key_show/python.mako index 0c9a440..a12e896 100644 --- a/scenarios/api_key_show/python.mako +++ b/scenarios/api_key_show/python.mako @@ -8,5 +8,11 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') key = balanced.APIKey.fetch('/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c') % elif mode == 'response': -{u'created_at': u'2014-01-27T22:56:01.641736Z', u'href': u'/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c', u'meta': {}, u'id': u'AK1vqjn1eEHXP0JYXrBrjH5c', u'links': {}} +APIKey( + 'created_at': u'2014-01-27T22:56:01.641736Z', + 'href': u'/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c', + 'id': u'AK1vqjn1eEHXP0JYXrBrjH5c', + 'links': {}, + 'meta': {}) + % endif \ 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 6da26b8..9b49123 100644 --- a/scenarios/bank_account_associate_to_customer/python.mako +++ b/scenarios/bank_account_associate_to_customer/python.mako @@ -8,5 +8,27 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card = balanced.Card.fetch('/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0') card.associate_to_customer('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') % elif mode == 'response': -{u'routing_number': u'121000358', u'bank_name': u'BANK OF AMERICA, N.A.', u'account_type': u'checking', u'name': u'Johann Bernoulli', u'links': {u'customer': u'CU3eeasZ9yQ86uzzIYZkrPGg', u'bank_account_verification': None}, u'can_credit': True, u'created_at': u'2014-01-27T22:57:47.772481Z', u'fingerprint': u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', u'updated_at': u'2014-01-27T22:57:48.515195Z', u'href': u'/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0', u'meta': {}, u'account_number': u'xxxxxx0001', 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': False, u'id': u'BA3qNbYRqFM0Q7MXn3IcjGl0'} +BankAccount( + 'account_number': u'xxxxxx0001', + 'account_type': u'checking', + 'address': {u'city': None, + u'country_code': None, + u'line1': None, + u'line2': None, + u'postal_code': None, + u'state': None}, + 'bank_name': u'BANK OF AMERICA, N.A.', + 'can_credit': True, + 'can_debit': False, + 'created_at': u'2014-01-27T22:57:47.772481Z', + 'fingerprint': u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', + 'href': u'/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0', + 'id': u'BA3qNbYRqFM0Q7MXn3IcjGl0', + 'links': {u'bank_account_verification': None, + u'customer': u'CU3eeasZ9yQ86uzzIYZkrPGg'}, + 'meta': {}, + 'name': u'Johann Bernoulli', + 'routing_number': u'121000358', + 'updated_at': u'2014-01-27T22:57:48.515195Z') + % endif \ No newline at end of file diff --git a/scenarios/bank_account_create/python.mako b/scenarios/bank_account_create/python.mako index 422e299..e8e2615 100644 --- a/scenarios/bank_account_create/python.mako +++ b/scenarios/bank_account_create/python.mako @@ -12,5 +12,26 @@ bank_account = balanced.BankAccount( name='Johann Bernoulli' ).save() % elif mode == 'response': -{u'routing_number': u'121000358', u'bank_name': u'BANK OF AMERICA, N.A.', u'account_type': u'checking', u'name': u'Johann Bernoulli', u'links': {u'customer': None, u'bank_account_verification': None}, u'can_credit': True, u'created_at': u'2014-01-27T22:57:47.772481Z', u'fingerprint': u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', u'updated_at': u'2014-01-27T22:57:47.772483Z', u'href': u'/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0', u'meta': {}, u'account_number': u'xxxxxx0001', 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': False, u'id': u'BA3qNbYRqFM0Q7MXn3IcjGl0'} +BankAccount( + 'account_number': u'xxxxxx0001', + 'account_type': u'checking', + 'address': {u'city': None, + u'country_code': None, + u'line1': None, + u'line2': None, + u'postal_code': None, + u'state': None}, + 'bank_name': u'BANK OF AMERICA, N.A.', + 'can_credit': True, + 'can_debit': False, + 'created_at': u'2014-01-27T22:57:47.772481Z', + 'fingerprint': u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', + 'href': u'/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0', + 'id': u'BA3qNbYRqFM0Q7MXn3IcjGl0', + 'links': {u'bank_account_verification': None, u'customer': None}, + 'meta': {}, + 'name': u'Johann Bernoulli', + 'routing_number': u'121000358', + 'updated_at': u'2014-01-27T22:57:47.772483Z') + % endif \ No newline at end of file diff --git a/scenarios/bank_account_credit/python.mako b/scenarios/bank_account_credit/python.mako index 414eff1..c7b9d9e 100644 --- a/scenarios/bank_account_credit/python.mako +++ b/scenarios/bank_account_credit/python.mako @@ -10,5 +10,22 @@ bank_account.credit( amount=5000 ) % elif mode == 'response': -{u'status': u'succeeded', u'description': None, u'links': {u'customer': u'CU3eeasZ9yQ86uzzIYZkrPGg', u'destination': u'BA3qNbYRqFM0Q7MXn3IcjGl0', u'order': None}, u'href': u'/credits/CR40neytmVG2HDBp1opfF7sY', u'created_at': u'2014-01-27T22:58:19.422292Z', u'transaction_number': u'CR816-868-3666', u'failure_reason': None, u'updated_at': u'2014-01-27T22:58:20.346871Z', u'currency': u'USD', u'amount': 5000, u'failure_reason_code': None, u'meta': {}, u'appears_on_statement_as': u'example.com', u'id': u'CR40neytmVG2HDBp1opfF7sY'} +Credit( + 'amount': 5000, + 'appears_on_statement_as': u'example.com', + 'created_at': u'2014-01-27T22:58:19.422292Z', + 'currency': u'USD', + 'description': None, + 'failure_reason': None, + 'failure_reason_code': None, + 'href': u'/credits/CR40neytmVG2HDBp1opfF7sY', + 'id': u'CR40neytmVG2HDBp1opfF7sY', + 'links': {u'customer': u'CU3eeasZ9yQ86uzzIYZkrPGg', + u'destination': u'BA3qNbYRqFM0Q7MXn3IcjGl0', + u'order': None}, + 'meta': {}, + 'status': u'succeeded', + 'transaction_number': u'CR816-868-3666', + 'updated_at': u'2014-01-27T22:58:20.346871Z') + % endif \ No newline at end of file diff --git a/scenarios/bank_account_debit/python.mako b/scenarios/bank_account_debit/python.mako index a7d8028..f73dcb2 100644 --- a/scenarios/bank_account_debit/python.mako +++ b/scenarios/bank_account_debit/python.mako @@ -12,5 +12,23 @@ bank_account.debit( description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -{u'status': u'succeeded', u'description': u'Some descriptive text for the debit in the dashboard', u'links': {u'customer': None, u'source': u'BA1D3vL3LjasB0kewMqRGI0S', u'order': None, u'dispute': None}, u'href': u'/debits/WD1ZRRAZnFTryFdFaq7ijcPE', u'created_at': u'2014-01-27T22:56:28.702119Z', u'transaction_number': u'W081-463-7557', u'failure_reason': None, u'updated_at': u'2014-01-27T22:56:29.235927Z', 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'WD1ZRRAZnFTryFdFaq7ijcPE'} +Debit( + 'amount': 5000, + 'appears_on_statement_as': u'BAL*Statement text', + 'created_at': u'2014-01-27T22:56:28.702119Z', + 'currency': u'USD', + 'description': u'Some descriptive text for the debit in the dashboard', + 'failure_reason': None, + 'failure_reason_code': None, + 'href': u'/debits/WD1ZRRAZnFTryFdFaq7ijcPE', + 'id': u'WD1ZRRAZnFTryFdFaq7ijcPE', + 'links': {u'customer': None, + u'dispute': None, + u'order': None, + u'source': u'BA1D3vL3LjasB0kewMqRGI0S'}, + 'meta': {}, + 'status': u'succeeded', + 'transaction_number': u'W081-463-7557', + 'updated_at': u'2014-01-27T22:56:29.235927Z') + % endif \ No newline at end of file diff --git a/scenarios/bank_account_show/python.mako b/scenarios/bank_account_show/python.mako index e80cb15..fd7a51d 100644 --- a/scenarios/bank_account_show/python.mako +++ b/scenarios/bank_account_show/python.mako @@ -8,5 +8,26 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy') % elif mode == 'response': -{u'routing_number': u'121000358', u'bank_name': u'BANK OF AMERICA, N.A.', u'account_type': u'checking', u'name': u'Johann Bernoulli', u'links': {u'customer': None, u'bank_account_verification': None}, u'can_credit': True, u'created_at': u'2014-01-27T22:56:20.540530Z', u'fingerprint': u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', u'updated_at': u'2014-01-27T22:56:20.540534Z', u'href': u'/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy', u'meta': {}, u'account_number': u'xxxxxx0001', 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': False, u'id': u'BA1QFf0LmIxr8p41msqX46Oy'} +BankAccount( + 'account_number': u'xxxxxx0001', + 'account_type': u'checking', + 'address': {u'city': None, + u'country_code': None, + u'line1': None, + u'line2': None, + u'postal_code': None, + u'state': None}, + 'bank_name': u'BANK OF AMERICA, N.A.', + 'can_credit': True, + 'can_debit': False, + 'created_at': u'2014-01-27T22:56:20.540530Z', + 'fingerprint': u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', + 'href': u'/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy', + 'id': u'BA1QFf0LmIxr8p41msqX46Oy', + 'links': {u'bank_account_verification': None, u'customer': None}, + 'meta': {}, + 'name': u'Johann Bernoulli', + 'routing_number': u'121000358', + 'updated_at': u'2014-01-27T22:56:20.540534Z') + % endif \ No newline at end of file diff --git a/scenarios/bank_account_update/python.mako b/scenarios/bank_account_update/python.mako index 2f79614..c01685e 100644 --- a/scenarios/bank_account_update/python.mako +++ b/scenarios/bank_account_update/python.mako @@ -13,5 +13,28 @@ bank_account.meta = { } bank_account.save() % elif mode == 'response': -{u'routing_number': u'121000358', u'bank_name': u'BANK OF AMERICA, N.A.', u'account_type': u'checking', u'name': u'Johann Bernoulli', u'links': {u'customer': None, u'bank_account_verification': None}, u'can_credit': True, u'created_at': u'2014-01-27T22:56:20.540530Z', u'fingerprint': u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', u'updated_at': u'2014-01-27T22:56:25.767386Z', u'href': u'/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy', u'meta': {u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, u'account_number': u'xxxxxx0001', 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': False, u'id': u'BA1QFf0LmIxr8p41msqX46Oy'} +BankAccount( + 'account_number': u'xxxxxx0001', + 'account_type': u'checking', + 'address': {u'city': None, + u'country_code': None, + u'line1': None, + u'line2': None, + u'postal_code': None, + u'state': None}, + 'bank_name': u'BANK OF AMERICA, N.A.', + 'can_credit': True, + 'can_debit': False, + 'created_at': u'2014-01-27T22:56:20.540530Z', + 'fingerprint': u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', + 'href': u'/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy', + 'id': u'BA1QFf0LmIxr8p41msqX46Oy', + 'links': {u'bank_account_verification': None, u'customer': None}, + 'meta': {u'facebook.user_id': u'0192837465', + u'my-own-customer-id': u'12345', + u'twitter.id': u'1234987650'}, + 'name': u'Johann Bernoulli', + 'routing_number': u'121000358', + 'updated_at': u'2014-01-27T22:56:25.767386Z') + % endif \ 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 2a91f00..bf4422d 100644 --- a/scenarios/bank_account_verification_create/python.mako +++ b/scenarios/bank_account_verification_create/python.mako @@ -8,5 +8,16 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S') verification = bank_account.verify() % elif mode == 'response': -{u'verification_status': u'pending', u'links': {u'bank_account': u'BA1D3vL3LjasB0kewMqRGI0S'}, u'created_at': u'2014-01-27T22:56:10.726455Z', u'attempts_remaining': 3, u'updated_at': u'2014-01-27T22:56:12.545750Z', u'deposit_status': u'succeeded', u'attempts': 0, u'href': u'/verifications/BZ1FF2MHFH9upRu7C0QUwnby', u'meta': {}, u'id': u'BZ1FF2MHFH9upRu7C0QUwnby'} +BankAccountVerification( + 'attempts': 0, + 'attempts_remaining': 3, + 'created_at': u'2014-01-27T22:56:10.726455Z', + 'deposit_status': u'succeeded', + 'href': u'/verifications/BZ1FF2MHFH9upRu7C0QUwnby', + 'id': u'BZ1FF2MHFH9upRu7C0QUwnby', + 'links': {u'bank_account': u'BA1D3vL3LjasB0kewMqRGI0S'}, + 'meta': {}, + 'updated_at': u'2014-01-27T22:56:12.545750Z', + 'verification_status': u'pending') + % endif \ 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 e6bee42..8e3ba31 100644 --- a/scenarios/bank_account_verification_show/python.mako +++ b/scenarios/bank_account_verification_show/python.mako @@ -7,5 +7,16 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') verification = balanced.BankAccountVerification.fetch('/verifications/BZ1FF2MHFH9upRu7C0QUwnby') % elif mode == 'response': -{u'verification_status': u'pending', u'links': {u'bank_account': u'BA1D3vL3LjasB0kewMqRGI0S'}, u'created_at': u'2014-01-27T22:56:10.726455Z', u'attempts_remaining': 3, u'updated_at': u'2014-01-27T22:56:12.545750Z', u'deposit_status': u'succeeded', u'attempts': 0, u'href': u'/verifications/BZ1FF2MHFH9upRu7C0QUwnby', u'meta': {}, u'id': u'BZ1FF2MHFH9upRu7C0QUwnby'} +BankAccountVerification( + 'attempts': 0, + 'attempts_remaining': 3, + 'created_at': u'2014-01-27T22:56:10.726455Z', + 'deposit_status': u'succeeded', + 'href': u'/verifications/BZ1FF2MHFH9upRu7C0QUwnby', + 'id': u'BZ1FF2MHFH9upRu7C0QUwnby', + 'links': {u'bank_account': u'BA1D3vL3LjasB0kewMqRGI0S'}, + 'meta': {}, + 'updated_at': u'2014-01-27T22:56:12.545750Z', + 'verification_status': u'pending') + % endif \ 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 c1e3a29..8a3ce5f 100644 --- a/scenarios/bank_account_verification_update/python.mako +++ b/scenarios/bank_account_verification_update/python.mako @@ -8,5 +8,16 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') verification = balanced.BankAccountVerification.fetch('/verifications/BZ1FF2MHFH9upRu7C0QUwnby') verification.confirm(amount_1=1, amount_2=1) % elif mode == 'response': -{u'verification_status': u'succeeded', u'links': {u'bank_account': u'BA1D3vL3LjasB0kewMqRGI0S'}, u'created_at': u'2014-01-27T22:56:10.726455Z', u'attempts_remaining': 2, u'updated_at': u'2014-01-27T22:56:18.631337Z', u'deposit_status': u'succeeded', u'attempts': 1, u'href': u'/verifications/BZ1FF2MHFH9upRu7C0QUwnby', u'meta': {}, u'id': u'BZ1FF2MHFH9upRu7C0QUwnby'} +BankAccountVerification( + 'attempts': 1, + 'attempts_remaining': 2, + 'created_at': u'2014-01-27T22:56:10.726455Z', + 'deposit_status': u'succeeded', + 'href': u'/verifications/BZ1FF2MHFH9upRu7C0QUwnby', + 'id': u'BZ1FF2MHFH9upRu7C0QUwnby', + 'links': {u'bank_account': u'BA1D3vL3LjasB0kewMqRGI0S'}, + 'meta': {}, + 'updated_at': u'2014-01-27T22:56:18.631337Z', + 'verification_status': u'succeeded') + % endif \ No newline at end of file diff --git a/scenarios/callback_create/python.mako b/scenarios/callback_create/python.mako index 12a4e46..60ed1dc 100644 --- a/scenarios/callback_create/python.mako +++ b/scenarios/callback_create/python.mako @@ -9,5 +9,12 @@ callback = balanced.Callback( url='http://www.example.com/callback' ).save() % elif mode == 'response': -{u'links': {}, u'url': u'http://www.example.com/callback', u'method': u'post', u'href': u'/callbacks/CB224374R2NSyoYBpDV4r7C2', u'id': u'CB224374R2NSyoYBpDV4r7C2', u'revision': u'1.1'} +Callback( + 'href': u'/callbacks/CB224374R2NSyoYBpDV4r7C2', + 'id': u'CB224374R2NSyoYBpDV4r7C2', + 'links': {}, + 'method': u'post', + 'revision': u'1.1', + 'url': u'http://www.example.com/callback') + % endif \ No newline at end of file diff --git a/scenarios/callback_show/python.mako b/scenarios/callback_show/python.mako index 0a19b49..84660b0 100644 --- a/scenarios/callback_show/python.mako +++ b/scenarios/callback_show/python.mako @@ -8,5 +8,12 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') callback = balanced.Callback.fetch('/callbacks/CB224374R2NSyoYBpDV4r7C2') % elif mode == 'response': -{u'links': {}, u'url': u'http://www.example.com/callback', u'method': u'post', u'href': u'/callbacks/CB224374R2NSyoYBpDV4r7C2', u'id': u'CB224374R2NSyoYBpDV4r7C2', u'revision': u'1.1'} +Callback( + 'href': u'/callbacks/CB224374R2NSyoYBpDV4r7C2', + 'id': u'CB224374R2NSyoYBpDV4r7C2', + 'links': {}, + 'method': u'post', + 'revision': u'1.1', + 'url': u'http://www.example.com/callback') + % endif \ 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 6ec7557..26a56aa 100644 --- a/scenarios/card_associate_to_customer/python.mako +++ b/scenarios/card_associate_to_customer/python.mako @@ -8,5 +8,31 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card = balanced.Card.fetch('/cards/CC3kqm84fxh50avenrUsSKbu') card.associate_to_customer('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') % elif mode == 'response': -{u'cvv_match': None, u'links': {u'customer': u'CU3eeasZ9yQ86uzzIYZkrPGg'}, u'expiration_year': 2020, u'avs_street_match': None, u'is_verified': True, u'created_at': u'2014-01-27T22:57:42.092923Z', u'cvv_result': None, u'brand': u'MasterCard', u'number': u'xxxxxxxxxxxx5100', u'updated_at': u'2014-01-27T22:57:42.724392Z', u'id': u'CC3kqm84fxh50avenrUsSKbu', u'expiration_month': 12, u'cvv': None, u'href': u'/cards/CC3kqm84fxh50avenrUsSKbu', u'meta': {}, u'address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, u'fingerprint': u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', u'avs_postal_match': None, u'avs_result': None, u'name': None} +Card( + 'address': {u'city': None, + u'country_code': None, + u'line1': None, + u'line2': None, + u'postal_code': None, + u'state': None}, + 'avs_postal_match': None, + 'avs_result': None, + 'avs_street_match': None, + 'brand': u'MasterCard', + 'created_at': u'2014-01-27T22:57:42.092923Z', + 'cvv': None, + 'cvv_match': None, + 'cvv_result': None, + 'expiration_month': 12, + 'expiration_year': 2020, + 'fingerprint': u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', + 'href': u'/cards/CC3kqm84fxh50avenrUsSKbu', + 'id': u'CC3kqm84fxh50avenrUsSKbu', + 'is_verified': True, + 'links': {u'customer': u'CU3eeasZ9yQ86uzzIYZkrPGg'}, + 'meta': {}, + 'name': None, + 'number': u'xxxxxxxxxxxx5100', + 'updated_at': u'2014-01-27T22:57:42.724392Z') + % endif \ No newline at end of file diff --git a/scenarios/card_create/python.mako b/scenarios/card_create/python.mako index 351ec1f..d76aa6b 100644 --- a/scenarios/card_create/python.mako +++ b/scenarios/card_create/python.mako @@ -12,5 +12,31 @@ card = balanced.Card( expiration_year='2020' ).save() % elif mode == 'response': -{u'cvv_match': None, u'links': {u'customer': None}, u'expiration_year': 2020, u'avs_street_match': None, u'is_verified': True, u'created_at': u'2014-01-27T22:57:42.092923Z', u'cvv_result': None, u'brand': u'MasterCard', u'number': u'xxxxxxxxxxxx5100', u'updated_at': u'2014-01-27T22:57:42.092926Z', u'id': u'CC3kqm84fxh50avenrUsSKbu', u'expiration_month': 12, u'cvv': None, u'href': u'/cards/CC3kqm84fxh50avenrUsSKbu', u'meta': {}, u'address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, u'fingerprint': u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', u'avs_postal_match': None, u'avs_result': None, u'name': None} +Card( + 'address': {u'city': None, + u'country_code': None, + u'line1': None, + u'line2': None, + u'postal_code': None, + u'state': None}, + 'avs_postal_match': None, + 'avs_result': None, + 'avs_street_match': None, + 'brand': u'MasterCard', + 'created_at': u'2014-01-27T22:57:42.092923Z', + 'cvv': None, + 'cvv_match': None, + 'cvv_result': None, + 'expiration_month': 12, + 'expiration_year': 2020, + 'fingerprint': u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', + 'href': u'/cards/CC3kqm84fxh50avenrUsSKbu', + 'id': u'CC3kqm84fxh50avenrUsSKbu', + 'is_verified': True, + 'links': {u'customer': None}, + 'meta': {}, + 'name': None, + 'number': u'xxxxxxxxxxxx5100', + 'updated_at': u'2014-01-27T22:57:42.092926Z') + % endif \ No newline at end of file diff --git a/scenarios/card_debit/python.mako b/scenarios/card_debit/python.mako index 8a400d6..9f85e4d 100644 --- a/scenarios/card_debit/python.mako +++ b/scenarios/card_debit/python.mako @@ -12,5 +12,23 @@ card.debit( description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -{u'status': u'succeeded', u'description': u'Some descriptive text for the debit in the dashboard', u'links': {u'customer': u'CU3eeasZ9yQ86uzzIYZkrPGg', u'source': u'CC3kqm84fxh50avenrUsSKbu', u'order': None, u'dispute': None}, u'href': u'/debits/WD3MKNxNTKBGgA7mX50yogiu', u'created_at': u'2014-01-27T22:58:07.291226Z', u'transaction_number': u'W180-465-2000', u'failure_reason': None, u'updated_at': u'2014-01-27T22:58:09.706862Z', 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'WD3MKNxNTKBGgA7mX50yogiu'} +Debit( + 'amount': 5000, + 'appears_on_statement_as': u'BAL*Statement text', + 'created_at': u'2014-01-27T22:58:07.291226Z', + 'currency': u'USD', + 'description': u'Some descriptive text for the debit in the dashboard', + 'failure_reason': None, + 'failure_reason_code': None, + 'href': u'/debits/WD3MKNxNTKBGgA7mX50yogiu', + 'id': u'WD3MKNxNTKBGgA7mX50yogiu', + 'links': {u'customer': u'CU3eeasZ9yQ86uzzIYZkrPGg', + u'dispute': None, + u'order': None, + u'source': u'CC3kqm84fxh50avenrUsSKbu'}, + 'meta': {}, + 'status': u'succeeded', + 'transaction_number': u'W180-465-2000', + 'updated_at': u'2014-01-27T22:58:09.706862Z') + % endif \ No newline at end of file diff --git a/scenarios/card_hold_capture/python.mako b/scenarios/card_hold_capture/python.mako index c028df0..7de3afc 100644 --- a/scenarios/card_hold_capture/python.mako +++ b/scenarios/card_hold_capture/python.mako @@ -11,5 +11,23 @@ debit = card_hold.capture( description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -{u'status': u'succeeded', u'description': u'Some descriptive text for the debit in the dashboard', u'links': {u'customer': u'CU1f8Ygc4t0F2FKNcw235x9I', u'source': u'CC2abDOQVm5aNFhHpcRvWS02', u'order': None, u'dispute': None}, u'href': u'/debits/WD2iSCukjXyeRdkvX3cW0PmC', u'created_at': u'2014-01-27T22:56:45.623268Z', u'transaction_number': u'W744-719-1832', u'failure_reason': None, u'updated_at': u'2014-01-27T22:56:47.926021Z', u'currency': u'USD', u'amount': 5000, u'failure_reason_code': None, u'meta': {u'holding.for': u'user1', u'meaningful.key': u'some.value'}, u'appears_on_statement_as': u'BAL*ShowsUpOnStmt', u'id': u'WD2iSCukjXyeRdkvX3cW0PmC'} +Debit( + 'amount': 5000, + 'appears_on_statement_as': u'BAL*ShowsUpOnStmt', + 'created_at': u'2014-01-27T22:56:45.623268Z', + 'currency': u'USD', + 'description': u'Some descriptive text for the debit in the dashboard', + 'failure_reason': None, + 'failure_reason_code': None, + 'href': u'/debits/WD2iSCukjXyeRdkvX3cW0PmC', + 'id': u'WD2iSCukjXyeRdkvX3cW0PmC', + 'links': {u'customer': u'CU1f8Ygc4t0F2FKNcw235x9I', + u'dispute': None, + u'order': None, + u'source': u'CC2abDOQVm5aNFhHpcRvWS02'}, + 'meta': {u'holding.for': u'user1', u'meaningful.key': u'some.value'}, + 'status': u'succeeded', + 'transaction_number': u'W744-719-1832', + 'updated_at': u'2014-01-27T22:56:47.926021Z') + % endif \ No newline at end of file diff --git a/scenarios/card_hold_create/python.mako b/scenarios/card_hold_create/python.mako index 237d1b2..c87af6a 100644 --- a/scenarios/card_hold_create/python.mako +++ b/scenarios/card_hold_create/python.mako @@ -11,5 +11,19 @@ card_hold = card.hold( description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -{u'description': u'Some descriptive text for the debit in the dashboard', u'links': {u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, u'updated_at': u'2014-01-27T22:56:51.115729Z', u'created_at': u'2014-01-27T22:56:49.446376Z', u'transaction_number': u'HL102-313-8003', u'expires_at': u'2014-02-03T22:56:50.793698Z', u'failure_reason': None, u'currency': u'USD', u'amount': 5000, u'href': u'/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG', u'meta': {}, u'failure_reason_code': None, u'id': u'HL2ncCO5Bir2S0PCdsDHV3cG'} +CardHold( + 'amount': 5000, + 'created_at': u'2014-01-27T22:56:49.446376Z', + 'currency': u'USD', + 'description': u'Some descriptive text for the debit in the dashboard', + 'expires_at': u'2014-02-03T22:56:50.793698Z', + 'failure_reason': None, + 'failure_reason_code': None, + 'href': u'/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG', + 'id': u'HL2ncCO5Bir2S0PCdsDHV3cG', + 'links': {u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, + 'meta': {}, + 'transaction_number': u'HL102-313-8003', + 'updated_at': u'2014-01-27T22:56:51.115729Z') + % endif \ No newline at end of file diff --git a/scenarios/card_hold_show/python.mako b/scenarios/card_hold_show/python.mako index 9e2ea54..b44cb2d 100644 --- a/scenarios/card_hold_show/python.mako +++ b/scenarios/card_hold_show/python.mako @@ -8,5 +8,19 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card_hold = balanced.CardHold.fetch('/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S') % elif mode == 'response': -{u'description': u'Some descriptive text for the debit in the dashboard', u'links': {u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, u'updated_at': u'2014-01-27T22:56:40.238140Z', u'created_at': u'2014-01-27T22:56:39.379941Z', u'transaction_number': u'HL500-842-5492', u'expires_at': u'2014-02-03T22:56:39.876902Z', u'failure_reason': None, u'currency': u'USD', u'amount': 5000, u'href': u'/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S', u'meta': {}, u'failure_reason_code': None, u'id': u'HL2bT9uMRkTZkfSPmA2pBD9S'} +CardHold( + 'amount': 5000, + 'created_at': u'2014-01-27T22:56:39.379941Z', + 'currency': u'USD', + 'description': u'Some descriptive text for the debit in the dashboard', + 'expires_at': u'2014-02-03T22:56:39.876902Z', + 'failure_reason': None, + 'failure_reason_code': None, + 'href': u'/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S', + 'id': u'HL2bT9uMRkTZkfSPmA2pBD9S', + 'links': {u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, + 'meta': {}, + 'transaction_number': u'HL500-842-5492', + 'updated_at': u'2014-01-27T22:56:40.238140Z') + % endif \ No newline at end of file diff --git a/scenarios/card_hold_update/python.mako b/scenarios/card_hold_update/python.mako index e0f57bc..7c32341 100644 --- a/scenarios/card_hold_update/python.mako +++ b/scenarios/card_hold_update/python.mako @@ -13,5 +13,19 @@ card_hold.meta = { } card_hold.save() % elif mode == 'response': -{u'description': u'update this description', u'links': {u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, u'updated_at': u'2014-01-27T22:56:44.255042Z', u'created_at': u'2014-01-27T22:56:39.379941Z', u'transaction_number': u'HL500-842-5492', u'expires_at': u'2014-02-03T22:56:39.876902Z', u'failure_reason': None, u'currency': u'USD', u'amount': 5000, u'href': u'/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S', u'meta': {u'holding.for': u'user1', u'meaningful.key': u'some.value'}, u'failure_reason_code': None, u'id': u'HL2bT9uMRkTZkfSPmA2pBD9S'} +CardHold( + 'amount': 5000, + 'created_at': u'2014-01-27T22:56:39.379941Z', + 'currency': u'USD', + 'description': u'update this description', + 'expires_at': u'2014-02-03T22:56:39.876902Z', + 'failure_reason': None, + 'failure_reason_code': None, + 'href': u'/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S', + 'id': u'HL2bT9uMRkTZkfSPmA2pBD9S', + 'links': {u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, + 'meta': {u'holding.for': u'user1', u'meaningful.key': u'some.value'}, + 'transaction_number': u'HL500-842-5492', + 'updated_at': u'2014-01-27T22:56:44.255042Z') + % endif \ No newline at end of file diff --git a/scenarios/card_hold_void/python.mako b/scenarios/card_hold_void/python.mako index f8583cb..e010c86 100644 --- a/scenarios/card_hold_void/python.mako +++ b/scenarios/card_hold_void/python.mako @@ -8,5 +8,19 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card_hold = balanced.CardHold.fetch('/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG') card_hold.cancel() % elif mode == 'response': -{u'description': u'Some descriptive text for the debit in the dashboard', u'links': {u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, u'updated_at': u'2014-01-27T22:56:51.686616Z', u'created_at': u'2014-01-27T22:56:49.446376Z', u'transaction_number': u'HL102-313-8003', u'expires_at': u'2014-02-03T22:56:50.793698Z', u'failure_reason': None, u'currency': u'USD', u'amount': 5000, u'href': u'/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG', u'meta': {}, u'failure_reason_code': None, u'id': u'HL2ncCO5Bir2S0PCdsDHV3cG'} +CardHold( + 'amount': 5000, + 'created_at': u'2014-01-27T22:56:49.446376Z', + 'currency': u'USD', + 'description': u'Some descriptive text for the debit in the dashboard', + 'expires_at': u'2014-02-03T22:56:50.793698Z', + 'failure_reason': None, + 'failure_reason_code': None, + 'href': u'/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG', + 'id': u'HL2ncCO5Bir2S0PCdsDHV3cG', + 'links': {u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, + 'meta': {}, + 'transaction_number': u'HL102-313-8003', + 'updated_at': u'2014-01-27T22:56:51.686616Z') + % endif \ No newline at end of file diff --git a/scenarios/card_show/python.mako b/scenarios/card_show/python.mako index bab5e4a..59c2063 100644 --- a/scenarios/card_show/python.mako +++ b/scenarios/card_show/python.mako @@ -7,5 +7,31 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card = balanced.Card.fetch('/cards/CC2uc8iPDjgyxOXHVtnZloyI') % elif mode == 'response': -{u'cvv_match': None, u'links': {u'customer': None}, u'expiration_year': 2020, u'avs_street_match': None, u'is_verified': True, u'created_at': u'2014-01-27T22:56:55.656375Z', u'cvv_result': None, u'brand': u'MasterCard', u'number': u'xxxxxxxxxxxx5100', u'updated_at': u'2014-01-27T22:56:55.656379Z', u'id': u'CC2uc8iPDjgyxOXHVtnZloyI', u'expiration_month': 12, u'cvv': None, u'href': u'/cards/CC2uc8iPDjgyxOXHVtnZloyI', u'meta': {}, u'address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, u'fingerprint': u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', u'avs_postal_match': None, u'avs_result': None, u'name': None} +Card( + 'address': {u'city': None, + u'country_code': None, + u'line1': None, + u'line2': None, + u'postal_code': None, + u'state': None}, + 'avs_postal_match': None, + 'avs_result': None, + 'avs_street_match': None, + 'brand': u'MasterCard', + 'created_at': u'2014-01-27T22:56:55.656375Z', + 'cvv': None, + 'cvv_match': None, + 'cvv_result': None, + 'expiration_month': 12, + 'expiration_year': 2020, + 'fingerprint': u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', + 'href': u'/cards/CC2uc8iPDjgyxOXHVtnZloyI', + 'id': u'CC2uc8iPDjgyxOXHVtnZloyI', + 'is_verified': True, + 'links': {u'customer': None}, + 'meta': {}, + 'name': None, + 'number': u'xxxxxxxxxxxx5100', + 'updated_at': u'2014-01-27T22:56:55.656379Z') + % endif \ No newline at end of file diff --git a/scenarios/card_update/python.mako b/scenarios/card_update/python.mako index e7a1b69..0408d77 100644 --- a/scenarios/card_update/python.mako +++ b/scenarios/card_update/python.mako @@ -13,5 +13,33 @@ card.meta = { } card.save() % elif mode == 'response': -{u'cvv_match': None, u'links': {u'customer': None}, u'expiration_year': 2020, u'avs_street_match': None, u'is_verified': True, u'created_at': u'2014-01-27T22:56:55.656375Z', u'cvv_result': None, u'brand': u'MasterCard', u'number': u'xxxxxxxxxxxx5100', u'updated_at': u'2014-01-27T22:57:02.195769Z', u'id': u'CC2uc8iPDjgyxOXHVtnZloyI', u'expiration_month': 12, u'cvv': None, u'href': u'/cards/CC2uc8iPDjgyxOXHVtnZloyI', u'meta': {u'twitter.id': u'1234987650', u'facebook.user_id': u'0192837465', u'my-own-customer-id': u'12345'}, u'address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, u'fingerprint': u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', u'avs_postal_match': None, u'avs_result': None, u'name': None} +Card( + 'address': {u'city': None, + u'country_code': None, + u'line1': None, + u'line2': None, + u'postal_code': None, + u'state': None}, + 'avs_postal_match': None, + 'avs_result': None, + 'avs_street_match': None, + 'brand': u'MasterCard', + 'created_at': u'2014-01-27T22:56:55.656375Z', + 'cvv': None, + 'cvv_match': None, + 'cvv_result': None, + 'expiration_month': 12, + 'expiration_year': 2020, + 'fingerprint': u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', + 'href': u'/cards/CC2uc8iPDjgyxOXHVtnZloyI', + 'id': u'CC2uc8iPDjgyxOXHVtnZloyI', + 'is_verified': True, + 'links': {u'customer': None}, + 'meta': {u'facebook.user_id': u'0192837465', + u'my-own-customer-id': u'12345', + u'twitter.id': u'1234987650'}, + 'name': None, + 'number': u'xxxxxxxxxxxx5100', + 'updated_at': u'2014-01-27T22:57:02.195769Z') + % endif \ No newline at end of file diff --git a/scenarios/credit_show/python.mako b/scenarios/credit_show/python.mako index ac95222..70e3d83 100644 --- a/scenarios/credit_show/python.mako +++ b/scenarios/credit_show/python.mako @@ -8,5 +8,22 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') credit = balanced.Credit.fetch('/credits/CR2UtQgq6L3FPd1YoOc8eyOC') % elif mode == 'response': -{u'status': u'succeeded', u'description': None, u'links': {u'customer': u'CU2N5goX8AQJE0CCPeapHUsM', u'destination': u'BA2QAksIxlLt60lqKc1wwgJy', u'order': None}, u'href': u'/credits/CR2UtQgq6L3FPd1YoOc8eyOC', u'created_at': u'2014-01-27T22:57:19.073817Z', u'transaction_number': u'CR408-633-3169', u'failure_reason': None, u'updated_at': u'2014-01-27T22:57:20.208794Z', u'currency': u'USD', u'amount': 5000, u'failure_reason_code': None, u'meta': {}, u'appears_on_statement_as': u'example.com', u'id': u'CR2UtQgq6L3FPd1YoOc8eyOC'} +Credit( + 'amount': 5000, + 'appears_on_statement_as': u'example.com', + 'created_at': u'2014-01-27T22:57:19.073817Z', + 'currency': u'USD', + 'description': None, + 'failure_reason': None, + 'failure_reason_code': None, + 'href': u'/credits/CR2UtQgq6L3FPd1YoOc8eyOC', + 'id': u'CR2UtQgq6L3FPd1YoOc8eyOC', + 'links': {u'customer': u'CU2N5goX8AQJE0CCPeapHUsM', + u'destination': u'BA2QAksIxlLt60lqKc1wwgJy', + u'order': None}, + 'meta': {}, + 'status': u'succeeded', + 'transaction_number': u'CR408-633-3169', + 'updated_at': u'2014-01-27T22:57:20.208794Z') + % endif \ No newline at end of file diff --git a/scenarios/credit_update/python.mako b/scenarios/credit_update/python.mako index 4b3ae2b..925d142 100644 --- a/scenarios/credit_update/python.mako +++ b/scenarios/credit_update/python.mako @@ -13,5 +13,22 @@ credit.meta = { } credit.save() % elif mode == 'response': -{u'status': u'succeeded', u'description': u'New description for credit', u'links': {u'customer': u'CU2N5goX8AQJE0CCPeapHUsM', u'destination': u'BA2QAksIxlLt60lqKc1wwgJy', u'order': None}, u'href': u'/credits/CR2UtQgq6L3FPd1YoOc8eyOC', u'created_at': u'2014-01-27T22:57:19.073817Z', u'transaction_number': u'CR408-633-3169', u'failure_reason': None, u'updated_at': u'2014-01-27T22:57:25.832930Z', u'currency': u'USD', u'amount': 5000, u'failure_reason_code': None, u'meta': {u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, u'appears_on_statement_as': u'example.com', u'id': u'CR2UtQgq6L3FPd1YoOc8eyOC'} +Credit( + 'amount': 5000, + 'appears_on_statement_as': u'example.com', + 'created_at': u'2014-01-27T22:57:19.073817Z', + 'currency': u'USD', + 'description': u'New description for credit', + 'failure_reason': None, + 'failure_reason_code': None, + 'href': u'/credits/CR2UtQgq6L3FPd1YoOc8eyOC', + 'id': u'CR2UtQgq6L3FPd1YoOc8eyOC', + 'links': {u'customer': u'CU2N5goX8AQJE0CCPeapHUsM', + u'destination': u'BA2QAksIxlLt60lqKc1wwgJy', + u'order': None}, + 'meta': {u'anykey': u'valuegoeshere', u'facebook.id': u'1234567890'}, + 'status': u'succeeded', + 'transaction_number': u'CR408-633-3169', + 'updated_at': u'2014-01-27T22:57:25.832930Z') + % endif \ No newline at end of file diff --git a/scenarios/customer_create/python.mako b/scenarios/customer_create/python.mako index 9aa30f8..3c9e26a 100644 --- a/scenarios/customer_create/python.mako +++ b/scenarios/customer_create/python.mako @@ -14,5 +14,27 @@ customer = balanced.Customer( } ).save() % elif mode == 'response': -{u'name': u'Henry Ford', u'links': {u'source': None, u'destination': None}, u'updated_at': u'2014-01-27T22:57:37.740442Z', u'created_at': u'2014-01-27T22:57:36.586782Z', u'dob_month': 7, u'merchant_status': u'underwritten', u'id': u'CU3eeasZ9yQ86uzzIYZkrPGg', u'phone': None, u'href': u'/customers/CU3eeasZ9yQ86uzzIYZkrPGg', u'meta': {}, u'dob_year': 1963, u'address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, u'business_name': None, u'ssn_last4': None, u'email': None, u'ein': None} +Customer( + 'address': {u'city': None, + u'country_code': None, + u'line1': None, + u'line2': None, + u'postal_code': u'48120', + u'state': None}, + 'business_name': None, + 'created_at': u'2014-01-27T22:57:36.586782Z', + 'dob_month': 7, + 'dob_year': 1963, + 'ein': None, + 'email': None, + 'href': u'/customers/CU3eeasZ9yQ86uzzIYZkrPGg', + 'id': u'CU3eeasZ9yQ86uzzIYZkrPGg', + 'links': {u'destination': None, u'source': None}, + 'merchant_status': u'underwritten', + 'meta': {}, + 'name': u'Henry Ford', + 'phone': None, + 'ssn_last4': None, + 'updated_at': u'2014-01-27T22:57:37.740442Z') + % endif \ No newline at end of file diff --git a/scenarios/customer_show/python.mako b/scenarios/customer_show/python.mako index 460c2af..9e294cb 100644 --- a/scenarios/customer_show/python.mako +++ b/scenarios/customer_show/python.mako @@ -8,5 +8,27 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') customer = balanced.Customer.fetch('/customers/CU33Y4cut21qu1d1lGYDBseQ') % elif mode == 'response': -{u'name': u'Henry Ford', u'links': {u'source': None, u'destination': None}, u'updated_at': u'2014-01-27T22:57:29.488272Z', u'created_at': u'2014-01-27T22:57:27.459187Z', u'dob_month': 7, u'merchant_status': u'underwritten', u'id': u'CU33Y4cut21qu1d1lGYDBseQ', u'phone': None, u'href': u'/customers/CU33Y4cut21qu1d1lGYDBseQ', u'meta': {}, u'dob_year': 1963, u'address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, u'business_name': None, u'ssn_last4': None, u'email': None, u'ein': None} +Customer( + 'address': {u'city': None, + u'country_code': None, + u'line1': None, + u'line2': None, + u'postal_code': u'48120', + u'state': None}, + 'business_name': None, + 'created_at': u'2014-01-27T22:57:27.459187Z', + 'dob_month': 7, + 'dob_year': 1963, + 'ein': None, + 'email': None, + 'href': u'/customers/CU33Y4cut21qu1d1lGYDBseQ', + 'id': u'CU33Y4cut21qu1d1lGYDBseQ', + 'links': {u'destination': None, u'source': None}, + 'merchant_status': u'underwritten', + 'meta': {}, + 'name': u'Henry Ford', + 'phone': None, + 'ssn_last4': None, + 'updated_at': u'2014-01-27T22:57:29.488272Z') + % endif \ No newline at end of file diff --git a/scenarios/customer_update/python.mako b/scenarios/customer_update/python.mako index 34bb58f..37c9122 100644 --- a/scenarios/customer_update/python.mako +++ b/scenarios/customer_update/python.mako @@ -12,5 +12,27 @@ customer.meta = { } customer.save() % elif mode == 'response': -{u'name': u'Henry Ford', u'links': {u'source': None, u'destination': None}, u'updated_at': u'2014-01-27T22:57:34.512310Z', u'created_at': u'2014-01-27T22:57:27.459187Z', u'dob_month': 7, u'merchant_status': u'underwritten', u'id': u'CU33Y4cut21qu1d1lGYDBseQ', u'phone': None, u'href': u'/customers/CU33Y4cut21qu1d1lGYDBseQ', u'meta': {u'shipping-preference': u'ground'}, u'dob_year': 1963, u'address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': u'48120', u'country_code': None}, u'business_name': None, u'ssn_last4': None, u'email': u'email@newdomain.com', u'ein': None} +Customer( + 'address': {u'city': None, + u'country_code': None, + u'line1': None, + u'line2': None, + u'postal_code': u'48120', + u'state': None}, + 'business_name': None, + 'created_at': u'2014-01-27T22:57:27.459187Z', + 'dob_month': 7, + 'dob_year': 1963, + 'ein': None, + 'email': u'email@newdomain.com', + 'href': u'/customers/CU33Y4cut21qu1d1lGYDBseQ', + 'id': u'CU33Y4cut21qu1d1lGYDBseQ', + 'links': {u'destination': None, u'source': None}, + 'merchant_status': u'underwritten', + 'meta': {u'shipping-preference': u'ground'}, + 'name': u'Henry Ford', + 'phone': None, + 'ssn_last4': None, + 'updated_at': u'2014-01-27T22:57:34.512310Z') + % endif \ No newline at end of file diff --git a/scenarios/debit_show/python.mako b/scenarios/debit_show/python.mako index 0f56e48..ebeb8ad 100644 --- a/scenarios/debit_show/python.mako +++ b/scenarios/debit_show/python.mako @@ -8,5 +8,23 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') debit = balanced.Debit.fetch('/debits/WD2Fd3jVcMZEWyXHtG3U1LRM') % elif mode == 'response': -{u'status': u'succeeded', u'description': u'Some descriptive text for the debit in the dashboard', u'links': {u'customer': None, u'source': u'CC2uc8iPDjgyxOXHVtnZloyI', u'order': None, u'dispute': None}, u'href': u'/debits/WD2Fd3jVcMZEWyXHtG3U1LRM', u'created_at': u'2014-01-27T22:57:05.511023Z', u'transaction_number': u'W906-153-1439', u'failure_reason': None, u'updated_at': u'2014-01-27T22:57:10.153696Z', 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'WD2Fd3jVcMZEWyXHtG3U1LRM'} +Debit( + 'amount': 5000, + 'appears_on_statement_as': u'BAL*Statement text', + 'created_at': u'2014-01-27T22:57:05.511023Z', + 'currency': u'USD', + 'description': u'Some descriptive text for the debit in the dashboard', + 'failure_reason': None, + 'failure_reason_code': None, + 'href': u'/debits/WD2Fd3jVcMZEWyXHtG3U1LRM', + 'id': u'WD2Fd3jVcMZEWyXHtG3U1LRM', + 'links': {u'customer': None, + u'dispute': None, + u'order': None, + u'source': u'CC2uc8iPDjgyxOXHVtnZloyI'}, + 'meta': {}, + 'status': u'succeeded', + 'transaction_number': u'W906-153-1439', + 'updated_at': u'2014-01-27T22:57:10.153696Z') + % endif \ No newline at end of file diff --git a/scenarios/debit_update/python.mako b/scenarios/debit_update/python.mako index fea9199..3d5871e 100644 --- a/scenarios/debit_update/python.mako +++ b/scenarios/debit_update/python.mako @@ -13,5 +13,23 @@ debit.meta = { } debit.save() % elif mode == 'response': -{u'status': u'succeeded', u'description': u'New description for debit', u'links': {u'customer': None, u'source': u'CC2uc8iPDjgyxOXHVtnZloyI', u'order': None, u'dispute': None}, u'href': u'/debits/WD2Fd3jVcMZEWyXHtG3U1LRM', u'created_at': u'2014-01-27T22:57:05.511023Z', u'transaction_number': u'W906-153-1439', u'failure_reason': None, u'updated_at': u'2014-01-27T22:57:53.776191Z', u'currency': u'USD', u'amount': 5000, u'failure_reason_code': None, u'meta': {u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, u'appears_on_statement_as': u'BAL*Statement text', u'id': u'WD2Fd3jVcMZEWyXHtG3U1LRM'} +Debit( + 'amount': 5000, + 'appears_on_statement_as': u'BAL*Statement text', + 'created_at': u'2014-01-27T22:57:05.511023Z', + 'currency': u'USD', + 'description': u'New description for debit', + 'failure_reason': None, + 'failure_reason_code': None, + 'href': u'/debits/WD2Fd3jVcMZEWyXHtG3U1LRM', + 'id': u'WD2Fd3jVcMZEWyXHtG3U1LRM', + 'links': {u'customer': None, + u'dispute': None, + u'order': None, + u'source': u'CC2uc8iPDjgyxOXHVtnZloyI'}, + 'meta': {u'anykey': u'valuegoeshere', u'facebook.id': u'1234567890'}, + 'status': u'succeeded', + 'transaction_number': u'W906-153-1439', + 'updated_at': u'2014-01-27T22:57:53.776191Z') + % endif \ No newline at end of file diff --git a/scenarios/event_show/python.mako b/scenarios/event_show/python.mako index dd2159e..f9db23c 100644 --- a/scenarios/event_show/python.mako +++ b/scenarios/event_show/python.mako @@ -8,5 +8,48 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') event = balanced.Event.fetch('/events/EV2abbb98487a611e3a86f026ba7d31e6f') % elif mode == 'response': -{u'links': {}, u'occurred_at': u'2014-01-27T22:55:50.767000Z', u'entity': {u'customers': [{u'name': None, u'links': {u'source': None, u'destination': None}, u'updated_at': u'2014-01-27T22:55:50.767858Z', u'created_at': u'2014-01-27T22:55:50.253066Z', u'dob_month': None, u'merchant_status': u'no-match', u'id': u'CU1iDnBalzHoZg47Np92rNrV', u'phone': None, u'href': u'/customers/CU1iDnBalzHoZg47Np92rNrV', u'meta': {}, u'dob_year': None, u'address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, u'business_name': None, u'ssn_last4': None, u'email': None, 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.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'}}, u'href': u'/events/EV2abbb98487a611e3a86f026ba7d31e6f', u'callback_statuses': {u'failed': 0, u'retrying': 0, u'succeeded': 0, u'pending': 0}, u'type': u'account.created', u'id': u'EV2abbb98487a611e3a86f026ba7d31e6f'} +Event( + 'callback_statuses': {u'failed': 0, + u'pending': 0, + u'retrying': 0, + u'succeeded': 0}, + 'entity': {u'customers': [{u'address': {u'city': None, + u'country_code': None, + u'line1': None, + u'line2': None, + u'postal_code': None, + u'state': None}, + u'business_name': None, + u'created_at': u'2014-01-27T22:55:50.253066Z', + u'dob_month': None, + u'dob_year': None, + u'ein': None, + u'email': None, + u'href': u'/customers/CU1iDnBalzHoZg47Np92rNrV', + u'id': u'CU1iDnBalzHoZg47Np92rNrV', + u'links': {u'destination': None, + u'source': None}, + u'merchant_status': u'no-match', + u'meta': {}, + u'name': None, + u'phone': None, + u'ssn_last4': None, + u'updated_at': u'2014-01-27T22:55:50.767858Z'}], + u'links': {u'customers.bank_accounts': u'/customers/{customers.id}/bank_accounts', + u'customers.card_holds': u'/customers/{customers.id}/card_holds', + u'customers.cards': u'/customers/{customers.id}/cards', + u'customers.credits': u'/customers/{customers.id}/credits', + u'customers.debits': u'/customers/{customers.id}/debits', + u'customers.destination': u'/resources/{customers.destination}', + u'customers.orders': u'/customers/{customers.id}/orders', + u'customers.refunds': u'/customers/{customers.id}/refunds', + u'customers.reversals': u'/customers/{customers.id}/reversals', + u'customers.source': u'/resources/{customers.source}', + u'customers.transactions': u'/customers/{customers.id}/transactions'}}, + 'href': u'/events/EV2abbb98487a611e3a86f026ba7d31e6f', + 'id': u'EV2abbb98487a611e3a86f026ba7d31e6f', + 'links': {}, + 'occurred_at': u'2014-01-27T22:55:50.767000Z', + 'type': u'account.created') + % endif \ No newline at end of file diff --git a/scenarios/order_create/python.mako b/scenarios/order_create/python.mako index 8b2a7af..c855e71 100644 --- a/scenarios/order_create/python.mako +++ b/scenarios/order_create/python.mako @@ -10,5 +10,22 @@ merchant_customer.create_order( description='Order #12341234' ).save() % elif mode == 'response': -{u'delivery_address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, u'description': u'Order #12341234', u'links': {u'merchant': u'CU3eeasZ9yQ86uzzIYZkrPGg'}, u'created_at': u'2014-01-27T22:58:01.115720Z', u'updated_at': u'2014-01-27T22:58:01.115723Z', u'id': u'OR3FOihZa7lMHdAP5p8BJZVY', u'currency': u'USD', u'amount': 0, u'href': u'/orders/OR3FOihZa7lMHdAP5p8BJZVY', u'meta': {}, u'amount_escrowed': 0} +Order( + 'amount': 0, + 'amount_escrowed': 0, + 'created_at': u'2014-01-27T22:58:01.115720Z', + 'currency': u'USD', + 'delivery_address': {u'city': None, + u'country_code': None, + u'line1': None, + u'line2': None, + u'postal_code': None, + u'state': None}, + 'description': u'Order #12341234', + 'href': u'/orders/OR3FOihZa7lMHdAP5p8BJZVY', + 'id': u'OR3FOihZa7lMHdAP5p8BJZVY', + 'links': {u'merchant': u'CU3eeasZ9yQ86uzzIYZkrPGg'}, + 'meta': {}, + 'updated_at': u'2014-01-27T22:58:01.115723Z') + % endif \ No newline at end of file diff --git a/scenarios/order_show/python.mako b/scenarios/order_show/python.mako index b426251..5989638 100644 --- a/scenarios/order_show/python.mako +++ b/scenarios/order_show/python.mako @@ -8,5 +8,22 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') order = balanced.Order.fetch('/orders/OR3FOihZa7lMHdAP5p8BJZVY') % elif mode == 'response': -{u'delivery_address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, u'description': u'Order #12341234', u'links': {u'merchant': u'CU3eeasZ9yQ86uzzIYZkrPGg'}, u'created_at': u'2014-01-27T22:58:01.115720Z', u'updated_at': u'2014-01-27T22:58:01.115723Z', u'id': u'OR3FOihZa7lMHdAP5p8BJZVY', u'currency': u'USD', u'amount': 0, u'href': u'/orders/OR3FOihZa7lMHdAP5p8BJZVY', u'meta': {}, u'amount_escrowed': 0} +Order( + 'amount': 0, + 'amount_escrowed': 0, + 'created_at': u'2014-01-27T22:58:01.115720Z', + 'currency': u'USD', + 'delivery_address': {u'city': None, + u'country_code': None, + u'line1': None, + u'line2': None, + u'postal_code': None, + u'state': None}, + 'description': u'Order #12341234', + 'href': u'/orders/OR3FOihZa7lMHdAP5p8BJZVY', + 'id': u'OR3FOihZa7lMHdAP5p8BJZVY', + 'links': {u'merchant': u'CU3eeasZ9yQ86uzzIYZkrPGg'}, + 'meta': {}, + 'updated_at': u'2014-01-27T22:58:01.115723Z') + % endif \ No newline at end of file diff --git a/scenarios/order_update/python.mako b/scenarios/order_update/python.mako index 60f178e..fde547f 100644 --- a/scenarios/order_update/python.mako +++ b/scenarios/order_update/python.mako @@ -13,5 +13,22 @@ order.meta = { } order.save() % elif mode == 'response': -{u'delivery_address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, u'description': u'New description for order', u'links': {u'merchant': u'CU3eeasZ9yQ86uzzIYZkrPGg'}, u'created_at': u'2014-01-27T22:58:01.115720Z', u'updated_at': u'2014-01-27T22:58:05.657463Z', u'id': u'OR3FOihZa7lMHdAP5p8BJZVY', u'currency': u'USD', u'amount': 0, u'href': u'/orders/OR3FOihZa7lMHdAP5p8BJZVY', u'meta': {u'product.id': u'1234567890', u'anykey': u'valuegoeshere'}, u'amount_escrowed': 0} +Order( + 'amount': 0, + 'amount_escrowed': 0, + 'created_at': u'2014-01-27T22:58:01.115720Z', + 'currency': u'USD', + 'delivery_address': {u'city': None, + u'country_code': None, + u'line1': None, + u'line2': None, + u'postal_code': None, + u'state': None}, + 'description': u'New description for order', + 'href': u'/orders/OR3FOihZa7lMHdAP5p8BJZVY', + 'id': u'OR3FOihZa7lMHdAP5p8BJZVY', + 'links': {u'merchant': u'CU3eeasZ9yQ86uzzIYZkrPGg'}, + 'meta': {u'anykey': u'valuegoeshere', u'product.id': u'1234567890'}, + 'updated_at': u'2014-01-27T22:58:05.657463Z') + % endif \ No newline at end of file diff --git a/scenarios/refund_create/python.mako b/scenarios/refund_create/python.mako index e50bd79..c0b181b 100644 --- a/scenarios/refund_create/python.mako +++ b/scenarios/refund_create/python.mako @@ -16,5 +16,21 @@ refund = debit.refund( } ) % elif mode == 'response': -{u'status': u'succeeded', u'description': u'Refund for Order #1111', u'links': {u'dispute': None, u'order': None, u'debit': u'WD3MKNxNTKBGgA7mX50yogiu'}, u'created_at': u'2014-01-27T22:58:11.375665Z', u'transaction_number': u'RF383-088-7077', u'updated_at': u'2014-01-27T22:58:12.115131Z', u'currency': u'USD', u'amount': 3000, u'href': u'/refunds/RF3RklPuFgsgI50UuYtr4g6I', u'meta': {u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, u'id': u'RF3RklPuFgsgI50UuYtr4g6I'} +Refund( + 'amount': 3000, + 'created_at': u'2014-01-27T22:58:11.375665Z', + 'currency': u'USD', + 'description': u'Refund for Order #1111', + 'href': u'/refunds/RF3RklPuFgsgI50UuYtr4g6I', + 'id': u'RF3RklPuFgsgI50UuYtr4g6I', + 'links': {u'debit': u'WD3MKNxNTKBGgA7mX50yogiu', + u'dispute': None, + u'order': None}, + 'meta': {u'fulfillment.item.condition': u'OK', + u'merchant.feedback': u'positive', + u'user.refund_reason': u'not happy with product'}, + 'status': u'succeeded', + 'transaction_number': u'RF383-088-7077', + 'updated_at': u'2014-01-27T22:58:12.115131Z') + % endif \ No newline at end of file diff --git a/scenarios/refund_show/python.mako b/scenarios/refund_show/python.mako index 127c029..e7786ce 100644 --- a/scenarios/refund_show/python.mako +++ b/scenarios/refund_show/python.mako @@ -8,5 +8,21 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') refund = balanced.Refund.fetch('/refunds/RF3RklPuFgsgI50UuYtr4g6I') % elif mode == 'response': -{u'status': u'succeeded', u'description': u'Refund for Order #1111', u'links': {u'dispute': None, u'order': None, u'debit': u'WD3MKNxNTKBGgA7mX50yogiu'}, u'created_at': u'2014-01-27T22:58:11.375665Z', u'transaction_number': u'RF383-088-7077', u'updated_at': u'2014-01-27T22:58:12.115131Z', u'currency': u'USD', u'amount': 3000, u'href': u'/refunds/RF3RklPuFgsgI50UuYtr4g6I', u'meta': {u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, u'id': u'RF3RklPuFgsgI50UuYtr4g6I'} +Refund( + 'amount': 3000, + 'created_at': u'2014-01-27T22:58:11.375665Z', + 'currency': u'USD', + 'description': u'Refund for Order #1111', + 'href': u'/refunds/RF3RklPuFgsgI50UuYtr4g6I', + 'id': u'RF3RklPuFgsgI50UuYtr4g6I', + 'links': {u'debit': u'WD3MKNxNTKBGgA7mX50yogiu', + u'dispute': None, + u'order': None}, + 'meta': {u'fulfillment.item.condition': u'OK', + u'merchant.feedback': u'positive', + u'user.refund_reason': u'not happy with product'}, + 'status': u'succeeded', + 'transaction_number': u'RF383-088-7077', + 'updated_at': u'2014-01-27T22:58:12.115131Z') + % endif \ No newline at end of file diff --git a/scenarios/refund_update/python.mako b/scenarios/refund_update/python.mako index 6ddf933..27c3069 100644 --- a/scenarios/refund_update/python.mako +++ b/scenarios/refund_update/python.mako @@ -14,5 +14,21 @@ refund.meta = { } refund.save() % elif mode == 'response': -{u'status': u'succeeded', u'description': u'update this description', u'links': {u'dispute': None, u'order': None, u'debit': u'WD3MKNxNTKBGgA7mX50yogiu'}, u'created_at': u'2014-01-27T22:58:11.375665Z', u'transaction_number': u'RF383-088-7077', u'updated_at': u'2014-01-27T22:58:17.950799Z', u'currency': u'USD', u'amount': 3000, u'href': u'/refunds/RF3RklPuFgsgI50UuYtr4g6I', u'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'}, u'id': u'RF3RklPuFgsgI50UuYtr4g6I'} +Refund( + 'amount': 3000, + 'created_at': u'2014-01-27T22:58:11.375665Z', + 'currency': u'USD', + 'description': u'update this description', + 'href': u'/refunds/RF3RklPuFgsgI50UuYtr4g6I', + 'id': u'RF3RklPuFgsgI50UuYtr4g6I', + 'links': {u'debit': u'WD3MKNxNTKBGgA7mX50yogiu', + u'dispute': None, + u'order': None}, + 'meta': {u'refund.reason': u'user not happy with product', + u'user.notes': u'very polite on the phone', + u'user.refund.count': u'3'}, + 'status': u'succeeded', + 'transaction_number': u'RF383-088-7077', + 'updated_at': u'2014-01-27T22:58:17.950799Z') + % endif \ No newline at end of file diff --git a/scenarios/reversal_create/python.mako b/scenarios/reversal_create/python.mako index 4162244..456fdb4 100644 --- a/scenarios/reversal_create/python.mako +++ b/scenarios/reversal_create/python.mako @@ -16,5 +16,21 @@ reversal = credit.reverse( } ) % elif mode == 'response': -{u'status': u'succeeded', u'description': u'Reversal for Order #1111', u'links': {u'credit': u'CR40neytmVG2HDBp1opfF7sY', u'order': None}, u'updated_at': u'2014-01-27T22:58:22.190749Z', u'created_at': u'2014-01-27T22:58:21.214829Z', u'transaction_number': u'RV219-169-0008', u'failure_reason': None, u'currency': u'USD', u'amount': 3000, u'href': u'/reversals/RV42n8M9XZWna427oPDDi4RG', u'meta': {u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, u'failure_reason_code': None, u'id': u'RV42n8M9XZWna427oPDDi4RG'} +Reversal( + 'amount': 3000, + 'created_at': u'2014-01-27T22:58:21.214829Z', + 'currency': u'USD', + 'description': u'Reversal for Order #1111', + 'failure_reason': None, + 'failure_reason_code': None, + 'href': u'/reversals/RV42n8M9XZWna427oPDDi4RG', + 'id': u'RV42n8M9XZWna427oPDDi4RG', + 'links': {u'credit': u'CR40neytmVG2HDBp1opfF7sY', u'order': None}, + 'meta': {u'fulfillment.item.condition': u'OK', + u'merchant.feedback': u'positive', + u'user.refund_reason': u'not happy with product'}, + 'status': u'succeeded', + 'transaction_number': u'RV219-169-0008', + 'updated_at': u'2014-01-27T22:58:22.190749Z') + % endif \ No newline at end of file diff --git a/scenarios/reversal_show/python.mako b/scenarios/reversal_show/python.mako index d23dfb9..e732899 100644 --- a/scenarios/reversal_show/python.mako +++ b/scenarios/reversal_show/python.mako @@ -8,5 +8,21 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') refund = balanced.Reversal.fetch('/reversals/RV42n8M9XZWna427oPDDi4RG') % elif mode == 'response': -{u'status': u'succeeded', u'description': u'Reversal for Order #1111', u'links': {u'credit': u'CR40neytmVG2HDBp1opfF7sY', u'order': None}, u'updated_at': u'2014-01-27T22:58:22.190749Z', u'created_at': u'2014-01-27T22:58:21.214829Z', u'transaction_number': u'RV219-169-0008', u'failure_reason': None, u'currency': u'USD', u'amount': 3000, u'href': u'/reversals/RV42n8M9XZWna427oPDDi4RG', u'meta': {u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, u'failure_reason_code': None, u'id': u'RV42n8M9XZWna427oPDDi4RG'} +Reversal( + 'amount': 3000, + 'created_at': u'2014-01-27T22:58:21.214829Z', + 'currency': u'USD', + 'description': u'Reversal for Order #1111', + 'failure_reason': None, + 'failure_reason_code': None, + 'href': u'/reversals/RV42n8M9XZWna427oPDDi4RG', + 'id': u'RV42n8M9XZWna427oPDDi4RG', + 'links': {u'credit': u'CR40neytmVG2HDBp1opfF7sY', u'order': None}, + 'meta': {u'fulfillment.item.condition': u'OK', + u'merchant.feedback': u'positive', + u'user.refund_reason': u'not happy with product'}, + 'status': u'succeeded', + 'transaction_number': u'RV219-169-0008', + 'updated_at': u'2014-01-27T22:58:22.190749Z') + % endif \ No newline at end of file diff --git a/scenarios/reversal_update/python.mako b/scenarios/reversal_update/python.mako index 8bc500c..4e57eb7 100644 --- a/scenarios/reversal_update/python.mako +++ b/scenarios/reversal_update/python.mako @@ -14,5 +14,21 @@ reversal.meta = { } reversal.save() % elif mode == 'response': -{u'status': u'succeeded', u'description': u'update this description', u'links': {u'credit': u'CR40neytmVG2HDBp1opfF7sY', u'order': None}, u'updated_at': u'2014-01-27T22:58:27.354488Z', u'created_at': u'2014-01-27T22:58:21.214829Z', u'transaction_number': u'RV219-169-0008', u'failure_reason': None, u'currency': u'USD', u'amount': 3000, u'href': u'/reversals/RV42n8M9XZWna427oPDDi4RG', u'meta': {u'user.satisfaction': u'6', u'refund.reason': u'user not happy with product', u'user.notes': u'very polite on the phone'}, u'failure_reason_code': None, u'id': u'RV42n8M9XZWna427oPDDi4RG'} +Reversal( + 'amount': 3000, + 'created_at': u'2014-01-27T22:58:21.214829Z', + 'currency': u'USD', + 'description': u'update this description', + 'failure_reason': None, + 'failure_reason_code': None, + 'href': u'/reversals/RV42n8M9XZWna427oPDDi4RG', + 'id': u'RV42n8M9XZWna427oPDDi4RG', + 'links': {u'credit': u'CR40neytmVG2HDBp1opfF7sY', u'order': None}, + 'meta': {u'refund.reason': u'user not happy with product', + u'user.notes': u'very polite on the phone', + u'user.satisfaction': u'6'}, + 'status': u'succeeded', + 'transaction_number': u'RV219-169-0008', + 'updated_at': u'2014-01-27T22:58:27.354488Z') + % endif \ No newline at end of file From 3ae68164c751bf99ad40c414298846a7c72042ab Mon Sep 17 00:00:00 2001 From: Richie Date: Tue, 11 Feb 2014 09:54:00 -0800 Subject: [PATCH 066/146] Pep8 and make responses python objects --- render_scenarios.py | 15 +++++++-------- scenarios/_mj/api_key_create/python.mako | 6 +++--- scenarios/api_key_create/python.mako | 6 +++--- scenarios/api_key_show/python.mako | 6 +++--- .../python.mako | 6 +++--- scenarios/bank_account_create/python.mako | 6 +++--- scenarios/bank_account_credit/python.mako | 6 +++--- scenarios/bank_account_debit/python.mako | 6 +++--- scenarios/bank_account_show/python.mako | 6 +++--- scenarios/bank_account_update/python.mako | 6 +++--- .../bank_account_verification_create/python.mako | 6 +++--- .../bank_account_verification_show/python.mako | 6 +++--- .../bank_account_verification_update/python.mako | 6 +++--- scenarios/callback_create/python.mako | 6 +++--- scenarios/callback_show/python.mako | 6 +++--- scenarios/card_associate_to_customer/python.mako | 6 +++--- scenarios/card_create/python.mako | 6 +++--- scenarios/card_debit/python.mako | 6 +++--- scenarios/card_hold_capture/python.mako | 6 +++--- scenarios/card_hold_create/python.mako | 6 +++--- scenarios/card_hold_show/python.mako | 6 +++--- scenarios/card_hold_update/python.mako | 6 +++--- scenarios/card_hold_void/python.mako | 6 +++--- scenarios/card_show/python.mako | 6 +++--- scenarios/card_update/python.mako | 6 +++--- scenarios/credit_show/python.mako | 6 +++--- scenarios/credit_update/python.mako | 6 +++--- scenarios/customer_create/python.mako | 6 +++--- scenarios/customer_show/python.mako | 6 +++--- scenarios/customer_update/python.mako | 6 +++--- scenarios/debit_show/python.mako | 6 +++--- scenarios/debit_update/python.mako | 6 +++--- scenarios/event_show/python.mako | 6 +++--- scenarios/order_create/python.mako | 6 +++--- scenarios/order_show/python.mako | 6 +++--- scenarios/order_update/python.mako | 6 +++--- scenarios/refund_create/python.mako | 6 +++--- scenarios/refund_show/python.mako | 6 +++--- scenarios/refund_update/python.mako | 6 +++--- scenarios/reversal_create/python.mako | 6 +++--- scenarios/reversal_show/python.mako | 6 +++--- scenarios/reversal_update/python.mako | 6 +++--- 42 files changed, 130 insertions(+), 131 deletions(-) diff --git a/render_scenarios.py b/render_scenarios.py index 4138d94..4d70611 100644 --- a/render_scenarios.py +++ b/render_scenarios.py @@ -9,12 +9,11 @@ def pretty_print_response(response): template = Template("${response}") - pprinter = PrettyPrinter() dictionary_text = pprint.pformat(response.__dict__) - text = template.render(response= response) + text = template.render(response=response) text = text.split('(', 1)[0] + "(" + dictionary_text + ")" - text = text.replace('({', '(\n ') - text = text.replace('})', ')\n ') + text = text.replace('({', '(**{\n ') + text = text.replace('})', '\n})') return text def construct_response(scenario_name): @@ -29,21 +28,21 @@ def construct_response(scenario_name): template = Template("${response}") try: response = data[event_name].get('response', {}) - text = template.render(response= response).strip() + text = template.render(response=response).strip() response = json.loads(text) del response["links"] for key, value in response.items(): response = value[0] - _type = key + type = key resource = balanced.Resource() - object_type = resource.registry[_type] + object_type = resource.registry[type] object_instance = object_type() for key, value in response.items(): setattr(object_instance, key, value) text = pretty_print_response(object_instance) except KeyError: text = '' - return text + return text def render_executables(): # load up scenario data diff --git a/scenarios/_mj/api_key_create/python.mako b/scenarios/_mj/api_key_create/python.mako index 192aad0..fbd47e9 100644 --- a/scenarios/_mj/api_key_create/python.mako +++ b/scenarios/_mj/api_key_create/python.mako @@ -9,12 +9,12 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') api_key = balanced.APIKey() api_key.save() % elif mode == 'response': -APIKey( +APIKey(**{ 'created_at': u'2014-01-27T22:56:01.641736Z', 'href': u'/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c', 'id': u'AK1vqjn1eEHXP0JYXrBrjH5c', 'links': {}, 'meta': {}, - 'secret': u'ak-test-1jlJCdGZjRWWYRF1iLBR69xwqG2NdQifv') - + 'secret': u'ak-test-1jlJCdGZjRWWYRF1iLBR69xwqG2NdQifv' +}) % endif \ No newline at end of file diff --git a/scenarios/api_key_create/python.mako b/scenarios/api_key_create/python.mako index 2c14977..41c9e67 100644 --- a/scenarios/api_key_create/python.mako +++ b/scenarios/api_key_create/python.mako @@ -7,12 +7,12 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') api_key = balanced.APIKey().save() % elif mode == 'response': -APIKey( +APIKey(**{ 'created_at': u'2014-01-27T22:56:01.641736Z', 'href': u'/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c', 'id': u'AK1vqjn1eEHXP0JYXrBrjH5c', 'links': {}, 'meta': {}, - 'secret': u'ak-test-1jlJCdGZjRWWYRF1iLBR69xwqG2NdQifv') - + 'secret': u'ak-test-1jlJCdGZjRWWYRF1iLBR69xwqG2NdQifv' +}) % endif \ No newline at end of file diff --git a/scenarios/api_key_show/python.mako b/scenarios/api_key_show/python.mako index a12e896..f80a0ad 100644 --- a/scenarios/api_key_show/python.mako +++ b/scenarios/api_key_show/python.mako @@ -8,11 +8,11 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') key = balanced.APIKey.fetch('/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c') % elif mode == 'response': -APIKey( +APIKey(**{ 'created_at': u'2014-01-27T22:56:01.641736Z', 'href': u'/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c', 'id': u'AK1vqjn1eEHXP0JYXrBrjH5c', 'links': {}, - 'meta': {}) - + 'meta': {} +}) % endif \ 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 9b49123..061a153 100644 --- a/scenarios/bank_account_associate_to_customer/python.mako +++ b/scenarios/bank_account_associate_to_customer/python.mako @@ -8,7 +8,7 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card = balanced.Card.fetch('/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0') card.associate_to_customer('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') % elif mode == 'response': -BankAccount( +BankAccount(**{ 'account_number': u'xxxxxx0001', 'account_type': u'checking', 'address': {u'city': None, @@ -29,6 +29,6 @@ BankAccount( 'meta': {}, 'name': u'Johann Bernoulli', 'routing_number': u'121000358', - 'updated_at': u'2014-01-27T22:57:48.515195Z') - + 'updated_at': u'2014-01-27T22:57:48.515195Z' +}) % endif \ No newline at end of file diff --git a/scenarios/bank_account_create/python.mako b/scenarios/bank_account_create/python.mako index e8e2615..25e3433 100644 --- a/scenarios/bank_account_create/python.mako +++ b/scenarios/bank_account_create/python.mako @@ -12,7 +12,7 @@ bank_account = balanced.BankAccount( name='Johann Bernoulli' ).save() % elif mode == 'response': -BankAccount( +BankAccount(**{ 'account_number': u'xxxxxx0001', 'account_type': u'checking', 'address': {u'city': None, @@ -32,6 +32,6 @@ BankAccount( 'meta': {}, 'name': u'Johann Bernoulli', 'routing_number': u'121000358', - 'updated_at': u'2014-01-27T22:57:47.772483Z') - + 'updated_at': u'2014-01-27T22:57:47.772483Z' +}) % endif \ No newline at end of file diff --git a/scenarios/bank_account_credit/python.mako b/scenarios/bank_account_credit/python.mako index c7b9d9e..e3ddcaf 100644 --- a/scenarios/bank_account_credit/python.mako +++ b/scenarios/bank_account_credit/python.mako @@ -10,7 +10,7 @@ bank_account.credit( amount=5000 ) % elif mode == 'response': -Credit( +Credit(**{ 'amount': 5000, 'appears_on_statement_as': u'example.com', 'created_at': u'2014-01-27T22:58:19.422292Z', @@ -26,6 +26,6 @@ Credit( 'meta': {}, 'status': u'succeeded', 'transaction_number': u'CR816-868-3666', - 'updated_at': u'2014-01-27T22:58:20.346871Z') - + 'updated_at': u'2014-01-27T22:58:20.346871Z' +}) % endif \ No newline at end of file diff --git a/scenarios/bank_account_debit/python.mako b/scenarios/bank_account_debit/python.mako index f73dcb2..67b90f5 100644 --- a/scenarios/bank_account_debit/python.mako +++ b/scenarios/bank_account_debit/python.mako @@ -12,7 +12,7 @@ bank_account.debit( description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit( +Debit(**{ 'amount': 5000, 'appears_on_statement_as': u'BAL*Statement text', 'created_at': u'2014-01-27T22:56:28.702119Z', @@ -29,6 +29,6 @@ Debit( 'meta': {}, 'status': u'succeeded', 'transaction_number': u'W081-463-7557', - 'updated_at': u'2014-01-27T22:56:29.235927Z') - + 'updated_at': u'2014-01-27T22:56:29.235927Z' +}) % endif \ No newline at end of file diff --git a/scenarios/bank_account_show/python.mako b/scenarios/bank_account_show/python.mako index fd7a51d..72b45fa 100644 --- a/scenarios/bank_account_show/python.mako +++ b/scenarios/bank_account_show/python.mako @@ -8,7 +8,7 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy') % elif mode == 'response': -BankAccount( +BankAccount(**{ 'account_number': u'xxxxxx0001', 'account_type': u'checking', 'address': {u'city': None, @@ -28,6 +28,6 @@ BankAccount( 'meta': {}, 'name': u'Johann Bernoulli', 'routing_number': u'121000358', - 'updated_at': u'2014-01-27T22:56:20.540534Z') - + 'updated_at': u'2014-01-27T22:56:20.540534Z' +}) % endif \ No newline at end of file diff --git a/scenarios/bank_account_update/python.mako b/scenarios/bank_account_update/python.mako index c01685e..b00e044 100644 --- a/scenarios/bank_account_update/python.mako +++ b/scenarios/bank_account_update/python.mako @@ -13,7 +13,7 @@ bank_account.meta = { } bank_account.save() % elif mode == 'response': -BankAccount( +BankAccount(**{ 'account_number': u'xxxxxx0001', 'account_type': u'checking', 'address': {u'city': None, @@ -35,6 +35,6 @@ BankAccount( u'twitter.id': u'1234987650'}, 'name': u'Johann Bernoulli', 'routing_number': u'121000358', - 'updated_at': u'2014-01-27T22:56:25.767386Z') - + 'updated_at': u'2014-01-27T22:56:25.767386Z' +}) % endif \ 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 bf4422d..0e9a6fc 100644 --- a/scenarios/bank_account_verification_create/python.mako +++ b/scenarios/bank_account_verification_create/python.mako @@ -8,7 +8,7 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S') verification = bank_account.verify() % elif mode == 'response': -BankAccountVerification( +BankAccountVerification(**{ 'attempts': 0, 'attempts_remaining': 3, 'created_at': u'2014-01-27T22:56:10.726455Z', @@ -18,6 +18,6 @@ BankAccountVerification( 'links': {u'bank_account': u'BA1D3vL3LjasB0kewMqRGI0S'}, 'meta': {}, 'updated_at': u'2014-01-27T22:56:12.545750Z', - 'verification_status': u'pending') - + 'verification_status': u'pending' +}) % endif \ 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 8e3ba31..1bb7b58 100644 --- a/scenarios/bank_account_verification_show/python.mako +++ b/scenarios/bank_account_verification_show/python.mako @@ -7,7 +7,7 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') verification = balanced.BankAccountVerification.fetch('/verifications/BZ1FF2MHFH9upRu7C0QUwnby') % elif mode == 'response': -BankAccountVerification( +BankAccountVerification(**{ 'attempts': 0, 'attempts_remaining': 3, 'created_at': u'2014-01-27T22:56:10.726455Z', @@ -17,6 +17,6 @@ BankAccountVerification( 'links': {u'bank_account': u'BA1D3vL3LjasB0kewMqRGI0S'}, 'meta': {}, 'updated_at': u'2014-01-27T22:56:12.545750Z', - 'verification_status': u'pending') - + 'verification_status': u'pending' +}) % endif \ 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 8a3ce5f..8d84ede 100644 --- a/scenarios/bank_account_verification_update/python.mako +++ b/scenarios/bank_account_verification_update/python.mako @@ -8,7 +8,7 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') verification = balanced.BankAccountVerification.fetch('/verifications/BZ1FF2MHFH9upRu7C0QUwnby') verification.confirm(amount_1=1, amount_2=1) % elif mode == 'response': -BankAccountVerification( +BankAccountVerification(**{ 'attempts': 1, 'attempts_remaining': 2, 'created_at': u'2014-01-27T22:56:10.726455Z', @@ -18,6 +18,6 @@ BankAccountVerification( 'links': {u'bank_account': u'BA1D3vL3LjasB0kewMqRGI0S'}, 'meta': {}, 'updated_at': u'2014-01-27T22:56:18.631337Z', - 'verification_status': u'succeeded') - + 'verification_status': u'succeeded' +}) % endif \ No newline at end of file diff --git a/scenarios/callback_create/python.mako b/scenarios/callback_create/python.mako index 60ed1dc..478a24f 100644 --- a/scenarios/callback_create/python.mako +++ b/scenarios/callback_create/python.mako @@ -9,12 +9,12 @@ callback = balanced.Callback( url='http://www.example.com/callback' ).save() % elif mode == 'response': -Callback( +Callback(**{ 'href': u'/callbacks/CB224374R2NSyoYBpDV4r7C2', 'id': u'CB224374R2NSyoYBpDV4r7C2', 'links': {}, 'method': u'post', 'revision': u'1.1', - 'url': u'http://www.example.com/callback') - + 'url': u'http://www.example.com/callback' +}) % endif \ No newline at end of file diff --git a/scenarios/callback_show/python.mako b/scenarios/callback_show/python.mako index 84660b0..5b19c48 100644 --- a/scenarios/callback_show/python.mako +++ b/scenarios/callback_show/python.mako @@ -8,12 +8,12 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') callback = balanced.Callback.fetch('/callbacks/CB224374R2NSyoYBpDV4r7C2') % elif mode == 'response': -Callback( +Callback(**{ 'href': u'/callbacks/CB224374R2NSyoYBpDV4r7C2', 'id': u'CB224374R2NSyoYBpDV4r7C2', 'links': {}, 'method': u'post', 'revision': u'1.1', - 'url': u'http://www.example.com/callback') - + 'url': u'http://www.example.com/callback' +}) % endif \ 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 26a56aa..8479532 100644 --- a/scenarios/card_associate_to_customer/python.mako +++ b/scenarios/card_associate_to_customer/python.mako @@ -8,7 +8,7 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card = balanced.Card.fetch('/cards/CC3kqm84fxh50avenrUsSKbu') card.associate_to_customer('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') % elif mode == 'response': -Card( +Card(**{ 'address': {u'city': None, u'country_code': None, u'line1': None, @@ -33,6 +33,6 @@ Card( 'meta': {}, 'name': None, 'number': u'xxxxxxxxxxxx5100', - 'updated_at': u'2014-01-27T22:57:42.724392Z') - + 'updated_at': u'2014-01-27T22:57:42.724392Z' +}) % endif \ No newline at end of file diff --git a/scenarios/card_create/python.mako b/scenarios/card_create/python.mako index d76aa6b..cd7ab1b 100644 --- a/scenarios/card_create/python.mako +++ b/scenarios/card_create/python.mako @@ -12,7 +12,7 @@ card = balanced.Card( expiration_year='2020' ).save() % elif mode == 'response': -Card( +Card(**{ 'address': {u'city': None, u'country_code': None, u'line1': None, @@ -37,6 +37,6 @@ Card( 'meta': {}, 'name': None, 'number': u'xxxxxxxxxxxx5100', - 'updated_at': u'2014-01-27T22:57:42.092926Z') - + 'updated_at': u'2014-01-27T22:57:42.092926Z' +}) % endif \ No newline at end of file diff --git a/scenarios/card_debit/python.mako b/scenarios/card_debit/python.mako index 9f85e4d..31f0c2c 100644 --- a/scenarios/card_debit/python.mako +++ b/scenarios/card_debit/python.mako @@ -12,7 +12,7 @@ card.debit( description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit( +Debit(**{ 'amount': 5000, 'appears_on_statement_as': u'BAL*Statement text', 'created_at': u'2014-01-27T22:58:07.291226Z', @@ -29,6 +29,6 @@ Debit( 'meta': {}, 'status': u'succeeded', 'transaction_number': u'W180-465-2000', - 'updated_at': u'2014-01-27T22:58:09.706862Z') - + 'updated_at': u'2014-01-27T22:58:09.706862Z' +}) % endif \ No newline at end of file diff --git a/scenarios/card_hold_capture/python.mako b/scenarios/card_hold_capture/python.mako index 7de3afc..08ba9ca 100644 --- a/scenarios/card_hold_capture/python.mako +++ b/scenarios/card_hold_capture/python.mako @@ -11,7 +11,7 @@ debit = card_hold.capture( description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit( +Debit(**{ 'amount': 5000, 'appears_on_statement_as': u'BAL*ShowsUpOnStmt', 'created_at': u'2014-01-27T22:56:45.623268Z', @@ -28,6 +28,6 @@ Debit( 'meta': {u'holding.for': u'user1', u'meaningful.key': u'some.value'}, 'status': u'succeeded', 'transaction_number': u'W744-719-1832', - 'updated_at': u'2014-01-27T22:56:47.926021Z') - + 'updated_at': u'2014-01-27T22:56:47.926021Z' +}) % endif \ No newline at end of file diff --git a/scenarios/card_hold_create/python.mako b/scenarios/card_hold_create/python.mako index c87af6a..99493fe 100644 --- a/scenarios/card_hold_create/python.mako +++ b/scenarios/card_hold_create/python.mako @@ -11,7 +11,7 @@ card_hold = card.hold( description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -CardHold( +CardHold(**{ 'amount': 5000, 'created_at': u'2014-01-27T22:56:49.446376Z', 'currency': u'USD', @@ -24,6 +24,6 @@ CardHold( 'links': {u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, 'meta': {}, 'transaction_number': u'HL102-313-8003', - 'updated_at': u'2014-01-27T22:56:51.115729Z') - + 'updated_at': u'2014-01-27T22:56:51.115729Z' +}) % endif \ No newline at end of file diff --git a/scenarios/card_hold_show/python.mako b/scenarios/card_hold_show/python.mako index b44cb2d..2b9458e 100644 --- a/scenarios/card_hold_show/python.mako +++ b/scenarios/card_hold_show/python.mako @@ -8,7 +8,7 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card_hold = balanced.CardHold.fetch('/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S') % elif mode == 'response': -CardHold( +CardHold(**{ 'amount': 5000, 'created_at': u'2014-01-27T22:56:39.379941Z', 'currency': u'USD', @@ -21,6 +21,6 @@ CardHold( 'links': {u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, 'meta': {}, 'transaction_number': u'HL500-842-5492', - 'updated_at': u'2014-01-27T22:56:40.238140Z') - + 'updated_at': u'2014-01-27T22:56:40.238140Z' +}) % endif \ No newline at end of file diff --git a/scenarios/card_hold_update/python.mako b/scenarios/card_hold_update/python.mako index 7c32341..6638245 100644 --- a/scenarios/card_hold_update/python.mako +++ b/scenarios/card_hold_update/python.mako @@ -13,7 +13,7 @@ card_hold.meta = { } card_hold.save() % elif mode == 'response': -CardHold( +CardHold(**{ 'amount': 5000, 'created_at': u'2014-01-27T22:56:39.379941Z', 'currency': u'USD', @@ -26,6 +26,6 @@ CardHold( 'links': {u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, 'meta': {u'holding.for': u'user1', u'meaningful.key': u'some.value'}, 'transaction_number': u'HL500-842-5492', - 'updated_at': u'2014-01-27T22:56:44.255042Z') - + 'updated_at': u'2014-01-27T22:56:44.255042Z' +}) % endif \ No newline at end of file diff --git a/scenarios/card_hold_void/python.mako b/scenarios/card_hold_void/python.mako index e010c86..fe8edce 100644 --- a/scenarios/card_hold_void/python.mako +++ b/scenarios/card_hold_void/python.mako @@ -8,7 +8,7 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card_hold = balanced.CardHold.fetch('/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG') card_hold.cancel() % elif mode == 'response': -CardHold( +CardHold(**{ 'amount': 5000, 'created_at': u'2014-01-27T22:56:49.446376Z', 'currency': u'USD', @@ -21,6 +21,6 @@ CardHold( 'links': {u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, 'meta': {}, 'transaction_number': u'HL102-313-8003', - 'updated_at': u'2014-01-27T22:56:51.686616Z') - + 'updated_at': u'2014-01-27T22:56:51.686616Z' +}) % endif \ No newline at end of file diff --git a/scenarios/card_show/python.mako b/scenarios/card_show/python.mako index 59c2063..210ebc1 100644 --- a/scenarios/card_show/python.mako +++ b/scenarios/card_show/python.mako @@ -7,7 +7,7 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card = balanced.Card.fetch('/cards/CC2uc8iPDjgyxOXHVtnZloyI') % elif mode == 'response': -Card( +Card(**{ 'address': {u'city': None, u'country_code': None, u'line1': None, @@ -32,6 +32,6 @@ Card( 'meta': {}, 'name': None, 'number': u'xxxxxxxxxxxx5100', - 'updated_at': u'2014-01-27T22:56:55.656379Z') - + 'updated_at': u'2014-01-27T22:56:55.656379Z' +}) % endif \ No newline at end of file diff --git a/scenarios/card_update/python.mako b/scenarios/card_update/python.mako index 0408d77..e7d713d 100644 --- a/scenarios/card_update/python.mako +++ b/scenarios/card_update/python.mako @@ -13,7 +13,7 @@ card.meta = { } card.save() % elif mode == 'response': -Card( +Card(**{ 'address': {u'city': None, u'country_code': None, u'line1': None, @@ -40,6 +40,6 @@ Card( u'twitter.id': u'1234987650'}, 'name': None, 'number': u'xxxxxxxxxxxx5100', - 'updated_at': u'2014-01-27T22:57:02.195769Z') - + 'updated_at': u'2014-01-27T22:57:02.195769Z' +}) % endif \ No newline at end of file diff --git a/scenarios/credit_show/python.mako b/scenarios/credit_show/python.mako index 70e3d83..51a853f 100644 --- a/scenarios/credit_show/python.mako +++ b/scenarios/credit_show/python.mako @@ -8,7 +8,7 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') credit = balanced.Credit.fetch('/credits/CR2UtQgq6L3FPd1YoOc8eyOC') % elif mode == 'response': -Credit( +Credit(**{ 'amount': 5000, 'appears_on_statement_as': u'example.com', 'created_at': u'2014-01-27T22:57:19.073817Z', @@ -24,6 +24,6 @@ Credit( 'meta': {}, 'status': u'succeeded', 'transaction_number': u'CR408-633-3169', - 'updated_at': u'2014-01-27T22:57:20.208794Z') - + 'updated_at': u'2014-01-27T22:57:20.208794Z' +}) % endif \ No newline at end of file diff --git a/scenarios/credit_update/python.mako b/scenarios/credit_update/python.mako index 925d142..db9c5b0 100644 --- a/scenarios/credit_update/python.mako +++ b/scenarios/credit_update/python.mako @@ -13,7 +13,7 @@ credit.meta = { } credit.save() % elif mode == 'response': -Credit( +Credit(**{ 'amount': 5000, 'appears_on_statement_as': u'example.com', 'created_at': u'2014-01-27T22:57:19.073817Z', @@ -29,6 +29,6 @@ Credit( 'meta': {u'anykey': u'valuegoeshere', u'facebook.id': u'1234567890'}, 'status': u'succeeded', 'transaction_number': u'CR408-633-3169', - 'updated_at': u'2014-01-27T22:57:25.832930Z') - + 'updated_at': u'2014-01-27T22:57:25.832930Z' +}) % endif \ No newline at end of file diff --git a/scenarios/customer_create/python.mako b/scenarios/customer_create/python.mako index 3c9e26a..c69fd57 100644 --- a/scenarios/customer_create/python.mako +++ b/scenarios/customer_create/python.mako @@ -14,7 +14,7 @@ customer = balanced.Customer( } ).save() % elif mode == 'response': -Customer( +Customer(**{ 'address': {u'city': None, u'country_code': None, u'line1': None, @@ -35,6 +35,6 @@ Customer( 'name': u'Henry Ford', 'phone': None, 'ssn_last4': None, - 'updated_at': u'2014-01-27T22:57:37.740442Z') - + 'updated_at': u'2014-01-27T22:57:37.740442Z' +}) % endif \ No newline at end of file diff --git a/scenarios/customer_show/python.mako b/scenarios/customer_show/python.mako index 9e294cb..04f3905 100644 --- a/scenarios/customer_show/python.mako +++ b/scenarios/customer_show/python.mako @@ -8,7 +8,7 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') customer = balanced.Customer.fetch('/customers/CU33Y4cut21qu1d1lGYDBseQ') % elif mode == 'response': -Customer( +Customer(**{ 'address': {u'city': None, u'country_code': None, u'line1': None, @@ -29,6 +29,6 @@ Customer( 'name': u'Henry Ford', 'phone': None, 'ssn_last4': None, - 'updated_at': u'2014-01-27T22:57:29.488272Z') - + 'updated_at': u'2014-01-27T22:57:29.488272Z' +}) % endif \ No newline at end of file diff --git a/scenarios/customer_update/python.mako b/scenarios/customer_update/python.mako index 37c9122..f12625e 100644 --- a/scenarios/customer_update/python.mako +++ b/scenarios/customer_update/python.mako @@ -12,7 +12,7 @@ customer.meta = { } customer.save() % elif mode == 'response': -Customer( +Customer(**{ 'address': {u'city': None, u'country_code': None, u'line1': None, @@ -33,6 +33,6 @@ Customer( 'name': u'Henry Ford', 'phone': None, 'ssn_last4': None, - 'updated_at': u'2014-01-27T22:57:34.512310Z') - + 'updated_at': u'2014-01-27T22:57:34.512310Z' +}) % endif \ No newline at end of file diff --git a/scenarios/debit_show/python.mako b/scenarios/debit_show/python.mako index ebeb8ad..1b1554c 100644 --- a/scenarios/debit_show/python.mako +++ b/scenarios/debit_show/python.mako @@ -8,7 +8,7 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') debit = balanced.Debit.fetch('/debits/WD2Fd3jVcMZEWyXHtG3U1LRM') % elif mode == 'response': -Debit( +Debit(**{ 'amount': 5000, 'appears_on_statement_as': u'BAL*Statement text', 'created_at': u'2014-01-27T22:57:05.511023Z', @@ -25,6 +25,6 @@ Debit( 'meta': {}, 'status': u'succeeded', 'transaction_number': u'W906-153-1439', - 'updated_at': u'2014-01-27T22:57:10.153696Z') - + 'updated_at': u'2014-01-27T22:57:10.153696Z' +}) % endif \ No newline at end of file diff --git a/scenarios/debit_update/python.mako b/scenarios/debit_update/python.mako index 3d5871e..a5bc119 100644 --- a/scenarios/debit_update/python.mako +++ b/scenarios/debit_update/python.mako @@ -13,7 +13,7 @@ debit.meta = { } debit.save() % elif mode == 'response': -Debit( +Debit(**{ 'amount': 5000, 'appears_on_statement_as': u'BAL*Statement text', 'created_at': u'2014-01-27T22:57:05.511023Z', @@ -30,6 +30,6 @@ Debit( 'meta': {u'anykey': u'valuegoeshere', u'facebook.id': u'1234567890'}, 'status': u'succeeded', 'transaction_number': u'W906-153-1439', - 'updated_at': u'2014-01-27T22:57:53.776191Z') - + 'updated_at': u'2014-01-27T22:57:53.776191Z' +}) % endif \ No newline at end of file diff --git a/scenarios/event_show/python.mako b/scenarios/event_show/python.mako index f9db23c..e005a02 100644 --- a/scenarios/event_show/python.mako +++ b/scenarios/event_show/python.mako @@ -8,7 +8,7 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') event = balanced.Event.fetch('/events/EV2abbb98487a611e3a86f026ba7d31e6f') % elif mode == 'response': -Event( +Event(**{ 'callback_statuses': {u'failed': 0, u'pending': 0, u'retrying': 0, @@ -50,6 +50,6 @@ Event( 'id': u'EV2abbb98487a611e3a86f026ba7d31e6f', 'links': {}, 'occurred_at': u'2014-01-27T22:55:50.767000Z', - 'type': u'account.created') - + 'type': u'account.created' +}) % endif \ No newline at end of file diff --git a/scenarios/order_create/python.mako b/scenarios/order_create/python.mako index c855e71..8fc91b6 100644 --- a/scenarios/order_create/python.mako +++ b/scenarios/order_create/python.mako @@ -10,7 +10,7 @@ merchant_customer.create_order( description='Order #12341234' ).save() % elif mode == 'response': -Order( +Order(**{ 'amount': 0, 'amount_escrowed': 0, 'created_at': u'2014-01-27T22:58:01.115720Z', @@ -26,6 +26,6 @@ Order( 'id': u'OR3FOihZa7lMHdAP5p8BJZVY', 'links': {u'merchant': u'CU3eeasZ9yQ86uzzIYZkrPGg'}, 'meta': {}, - 'updated_at': u'2014-01-27T22:58:01.115723Z') - + 'updated_at': u'2014-01-27T22:58:01.115723Z' +}) % endif \ No newline at end of file diff --git a/scenarios/order_show/python.mako b/scenarios/order_show/python.mako index 5989638..5a54a78 100644 --- a/scenarios/order_show/python.mako +++ b/scenarios/order_show/python.mako @@ -8,7 +8,7 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') order = balanced.Order.fetch('/orders/OR3FOihZa7lMHdAP5p8BJZVY') % elif mode == 'response': -Order( +Order(**{ 'amount': 0, 'amount_escrowed': 0, 'created_at': u'2014-01-27T22:58:01.115720Z', @@ -24,6 +24,6 @@ Order( 'id': u'OR3FOihZa7lMHdAP5p8BJZVY', 'links': {u'merchant': u'CU3eeasZ9yQ86uzzIYZkrPGg'}, 'meta': {}, - 'updated_at': u'2014-01-27T22:58:01.115723Z') - + 'updated_at': u'2014-01-27T22:58:01.115723Z' +}) % endif \ No newline at end of file diff --git a/scenarios/order_update/python.mako b/scenarios/order_update/python.mako index fde547f..2b4a946 100644 --- a/scenarios/order_update/python.mako +++ b/scenarios/order_update/python.mako @@ -13,7 +13,7 @@ order.meta = { } order.save() % elif mode == 'response': -Order( +Order(**{ 'amount': 0, 'amount_escrowed': 0, 'created_at': u'2014-01-27T22:58:01.115720Z', @@ -29,6 +29,6 @@ Order( 'id': u'OR3FOihZa7lMHdAP5p8BJZVY', 'links': {u'merchant': u'CU3eeasZ9yQ86uzzIYZkrPGg'}, 'meta': {u'anykey': u'valuegoeshere', u'product.id': u'1234567890'}, - 'updated_at': u'2014-01-27T22:58:05.657463Z') - + 'updated_at': u'2014-01-27T22:58:05.657463Z' +}) % endif \ No newline at end of file diff --git a/scenarios/refund_create/python.mako b/scenarios/refund_create/python.mako index c0b181b..d62fe57 100644 --- a/scenarios/refund_create/python.mako +++ b/scenarios/refund_create/python.mako @@ -16,7 +16,7 @@ refund = debit.refund( } ) % elif mode == 'response': -Refund( +Refund(**{ 'amount': 3000, 'created_at': u'2014-01-27T22:58:11.375665Z', 'currency': u'USD', @@ -31,6 +31,6 @@ Refund( u'user.refund_reason': u'not happy with product'}, 'status': u'succeeded', 'transaction_number': u'RF383-088-7077', - 'updated_at': u'2014-01-27T22:58:12.115131Z') - + 'updated_at': u'2014-01-27T22:58:12.115131Z' +}) % endif \ No newline at end of file diff --git a/scenarios/refund_show/python.mako b/scenarios/refund_show/python.mako index e7786ce..ac8cd1a 100644 --- a/scenarios/refund_show/python.mako +++ b/scenarios/refund_show/python.mako @@ -8,7 +8,7 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') refund = balanced.Refund.fetch('/refunds/RF3RklPuFgsgI50UuYtr4g6I') % elif mode == 'response': -Refund( +Refund(**{ 'amount': 3000, 'created_at': u'2014-01-27T22:58:11.375665Z', 'currency': u'USD', @@ -23,6 +23,6 @@ Refund( u'user.refund_reason': u'not happy with product'}, 'status': u'succeeded', 'transaction_number': u'RF383-088-7077', - 'updated_at': u'2014-01-27T22:58:12.115131Z') - + 'updated_at': u'2014-01-27T22:58:12.115131Z' +}) % endif \ No newline at end of file diff --git a/scenarios/refund_update/python.mako b/scenarios/refund_update/python.mako index 27c3069..46edf4a 100644 --- a/scenarios/refund_update/python.mako +++ b/scenarios/refund_update/python.mako @@ -14,7 +14,7 @@ refund.meta = { } refund.save() % elif mode == 'response': -Refund( +Refund(**{ 'amount': 3000, 'created_at': u'2014-01-27T22:58:11.375665Z', 'currency': u'USD', @@ -29,6 +29,6 @@ Refund( u'user.refund.count': u'3'}, 'status': u'succeeded', 'transaction_number': u'RF383-088-7077', - 'updated_at': u'2014-01-27T22:58:17.950799Z') - + 'updated_at': u'2014-01-27T22:58:17.950799Z' +}) % endif \ No newline at end of file diff --git a/scenarios/reversal_create/python.mako b/scenarios/reversal_create/python.mako index 456fdb4..cf5148f 100644 --- a/scenarios/reversal_create/python.mako +++ b/scenarios/reversal_create/python.mako @@ -16,7 +16,7 @@ reversal = credit.reverse( } ) % elif mode == 'response': -Reversal( +Reversal(**{ 'amount': 3000, 'created_at': u'2014-01-27T22:58:21.214829Z', 'currency': u'USD', @@ -31,6 +31,6 @@ Reversal( u'user.refund_reason': u'not happy with product'}, 'status': u'succeeded', 'transaction_number': u'RV219-169-0008', - 'updated_at': u'2014-01-27T22:58:22.190749Z') - + 'updated_at': u'2014-01-27T22:58:22.190749Z' +}) % endif \ No newline at end of file diff --git a/scenarios/reversal_show/python.mako b/scenarios/reversal_show/python.mako index e732899..6198ff5 100644 --- a/scenarios/reversal_show/python.mako +++ b/scenarios/reversal_show/python.mako @@ -8,7 +8,7 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') refund = balanced.Reversal.fetch('/reversals/RV42n8M9XZWna427oPDDi4RG') % elif mode == 'response': -Reversal( +Reversal(**{ 'amount': 3000, 'created_at': u'2014-01-27T22:58:21.214829Z', 'currency': u'USD', @@ -23,6 +23,6 @@ Reversal( u'user.refund_reason': u'not happy with product'}, 'status': u'succeeded', 'transaction_number': u'RV219-169-0008', - 'updated_at': u'2014-01-27T22:58:22.190749Z') - + 'updated_at': u'2014-01-27T22:58:22.190749Z' +}) % endif \ No newline at end of file diff --git a/scenarios/reversal_update/python.mako b/scenarios/reversal_update/python.mako index 4e57eb7..b34bc86 100644 --- a/scenarios/reversal_update/python.mako +++ b/scenarios/reversal_update/python.mako @@ -14,7 +14,7 @@ reversal.meta = { } reversal.save() % elif mode == 'response': -Reversal( +Reversal(**{ 'amount': 3000, 'created_at': u'2014-01-27T22:58:21.214829Z', 'currency': u'USD', @@ -29,6 +29,6 @@ Reversal( u'user.satisfaction': u'6'}, 'status': u'succeeded', 'transaction_number': u'RV219-169-0008', - 'updated_at': u'2014-01-27T22:58:27.354488Z') - + 'updated_at': u'2014-01-27T22:58:27.354488Z' +}) % endif \ No newline at end of file From cf4d8a80e375a23880102eae113235db13285699 Mon Sep 17 00:00:00 2001 From: Richie Date: Wed, 12 Feb 2014 13:36:34 -0800 Subject: [PATCH 067/146] Have scenarios print python object --- render_scenarios.py | 11 +---- scenarios/_mj/api_key_create/python.mako | 9 +--- scenarios/api_key_create/python.mako | 9 +--- scenarios/api_key_show/python.mako | 8 +--- .../python.mako | 24 +--------- scenarios/bank_account_create/python.mako | 23 +--------- scenarios/bank_account_credit/python.mako | 19 +------- scenarios/bank_account_debit/python.mako | 20 +-------- scenarios/bank_account_show/python.mako | 23 +--------- scenarios/bank_account_update/python.mako | 25 +---------- .../python.mako | 13 +----- .../python.mako | 13 +----- .../python.mako | 13 +----- scenarios/callback_create/python.mako | 9 +--- scenarios/callback_show/python.mako | 9 +--- .../card_associate_to_customer/python.mako | 28 +----------- scenarios/card_create/python.mako | 28 +----------- scenarios/card_debit/python.mako | 20 +-------- scenarios/card_hold_capture/python.mako | 20 +-------- scenarios/card_hold_create/python.mako | 16 +------ scenarios/card_hold_show/python.mako | 16 +------ scenarios/card_hold_update/python.mako | 16 +------ scenarios/card_hold_void/python.mako | 16 +------ scenarios/card_show/python.mako | 28 +----------- scenarios/card_update/python.mako | 30 +------------ scenarios/credit_show/python.mako | 19 +------- scenarios/credit_update/python.mako | 19 +------- scenarios/customer_create/python.mako | 24 +--------- scenarios/customer_show/python.mako | 24 +--------- scenarios/customer_update/python.mako | 24 +--------- scenarios/debit_show/python.mako | 20 +-------- scenarios/debit_update/python.mako | 20 +-------- scenarios/event_show/python.mako | 45 +------------------ scenarios/order_create/python.mako | 19 +------- scenarios/order_show/python.mako | 19 +------- scenarios/order_update/python.mako | 19 +------- scenarios/refund_create/python.mako | 18 +------- scenarios/refund_show/python.mako | 18 +------- scenarios/refund_update/python.mako | 18 +------- scenarios/reversal_create/python.mako | 18 +------- scenarios/reversal_show/python.mako | 18 +------- scenarios/reversal_update/python.mako | 18 +------- 42 files changed, 42 insertions(+), 764 deletions(-) diff --git a/render_scenarios.py b/render_scenarios.py index 4d70611..261c406 100644 --- a/render_scenarios.py +++ b/render_scenarios.py @@ -7,15 +7,6 @@ from mako.template import Template from mako.lookup import TemplateLookup -def pretty_print_response(response): - template = Template("${response}") - dictionary_text = pprint.pformat(response.__dict__) - text = template.render(response=response) - text = text.split('(', 1)[0] + "(" + dictionary_text + ")" - text = text.replace('({', '(**{\n ') - text = text.replace('})', '\n})') - return text - def construct_response(scenario_name): # load up response data data = json.load(open('scenario.cache','r')) @@ -39,7 +30,7 @@ def construct_response(scenario_name): object_instance = object_type() for key, value in response.items(): setattr(object_instance, key, value) - text = pretty_print_response(object_instance) + text = template.render(response=object_instance) except KeyError: text = '' return text diff --git a/scenarios/_mj/api_key_create/python.mako b/scenarios/_mj/api_key_create/python.mako index fbd47e9..f6fc6ce 100644 --- a/scenarios/_mj/api_key_create/python.mako +++ b/scenarios/_mj/api_key_create/python.mako @@ -9,12 +9,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') api_key = balanced.APIKey() api_key.save() % elif mode == 'response': -APIKey(**{ - 'created_at': u'2014-01-27T22:56:01.641736Z', - 'href': u'/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c', - 'id': u'AK1vqjn1eEHXP0JYXrBrjH5c', - 'links': {}, - 'meta': {}, - 'secret': u'ak-test-1jlJCdGZjRWWYRF1iLBR69xwqG2NdQifv' -}) +APIKey(links={}, created_at=u'2014-01-27T22:56:01.641736Z', secret=u'ak-test-1jlJCdGZjRWWYRF1iLBR69xwqG2NdQifv', href=u'/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c', meta={}, id=u'AK1vqjn1eEHXP0JYXrBrjH5c') % endif \ No newline at end of file diff --git a/scenarios/api_key_create/python.mako b/scenarios/api_key_create/python.mako index 41c9e67..934376e 100644 --- a/scenarios/api_key_create/python.mako +++ b/scenarios/api_key_create/python.mako @@ -7,12 +7,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') api_key = balanced.APIKey().save() % elif mode == 'response': -APIKey(**{ - 'created_at': u'2014-01-27T22:56:01.641736Z', - 'href': u'/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c', - 'id': u'AK1vqjn1eEHXP0JYXrBrjH5c', - 'links': {}, - 'meta': {}, - 'secret': u'ak-test-1jlJCdGZjRWWYRF1iLBR69xwqG2NdQifv' -}) +APIKey(links={}, created_at=u'2014-01-27T22:56:01.641736Z', secret=u'ak-test-1jlJCdGZjRWWYRF1iLBR69xwqG2NdQifv', href=u'/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c', meta={}, id=u'AK1vqjn1eEHXP0JYXrBrjH5c') % endif \ No newline at end of file diff --git a/scenarios/api_key_show/python.mako b/scenarios/api_key_show/python.mako index f80a0ad..c66c281 100644 --- a/scenarios/api_key_show/python.mako +++ b/scenarios/api_key_show/python.mako @@ -8,11 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') key = balanced.APIKey.fetch('/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c') % elif mode == 'response': -APIKey(**{ - 'created_at': u'2014-01-27T22:56:01.641736Z', - 'href': u'/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c', - 'id': u'AK1vqjn1eEHXP0JYXrBrjH5c', - 'links': {}, - 'meta': {} -}) +APIKey(created_at=u'2014-01-27T22:56:01.641736Z', href=u'/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c', meta={}, id=u'AK1vqjn1eEHXP0JYXrBrjH5c', links={}) % endif \ 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 061a153..220c5f8 100644 --- a/scenarios/bank_account_associate_to_customer/python.mako +++ b/scenarios/bank_account_associate_to_customer/python.mako @@ -8,27 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card = balanced.Card.fetch('/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0') card.associate_to_customer('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') % elif mode == 'response': -BankAccount(**{ - 'account_number': u'xxxxxx0001', - 'account_type': u'checking', - 'address': {u'city': None, - u'country_code': None, - u'line1': None, - u'line2': None, - u'postal_code': None, - u'state': None}, - 'bank_name': u'BANK OF AMERICA, N.A.', - 'can_credit': True, - 'can_debit': False, - 'created_at': u'2014-01-27T22:57:47.772481Z', - 'fingerprint': u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', - 'href': u'/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0', - 'id': u'BA3qNbYRqFM0Q7MXn3IcjGl0', - 'links': {u'bank_account_verification': None, - u'customer': u'CU3eeasZ9yQ86uzzIYZkrPGg'}, - 'meta': {}, - 'name': u'Johann Bernoulli', - 'routing_number': u'121000358', - 'updated_at': u'2014-01-27T22:57:48.515195Z' -}) +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'CU3eeasZ9yQ86uzzIYZkrPGg', u'bank_account_verification': None}, can_credit=True, created_at=u'2014-01-27T22:57:47.772481Z', 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-01-27T22:57:48.515195Z', href=u'/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA3qNbYRqFM0Q7MXn3IcjGl0') % endif \ No newline at end of file diff --git a/scenarios/bank_account_create/python.mako b/scenarios/bank_account_create/python.mako index 25e3433..be7eb69 100644 --- a/scenarios/bank_account_create/python.mako +++ b/scenarios/bank_account_create/python.mako @@ -12,26 +12,5 @@ bank_account = balanced.BankAccount( name='Johann Bernoulli' ).save() % elif mode == 'response': -BankAccount(**{ - 'account_number': u'xxxxxx0001', - 'account_type': u'checking', - 'address': {u'city': None, - u'country_code': None, - u'line1': None, - u'line2': None, - u'postal_code': None, - u'state': None}, - 'bank_name': u'BANK OF AMERICA, N.A.', - 'can_credit': True, - 'can_debit': False, - 'created_at': u'2014-01-27T22:57:47.772481Z', - 'fingerprint': u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', - 'href': u'/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0', - 'id': u'BA3qNbYRqFM0Q7MXn3IcjGl0', - 'links': {u'bank_account_verification': None, u'customer': None}, - 'meta': {}, - 'name': u'Johann Bernoulli', - 'routing_number': u'121000358', - 'updated_at': u'2014-01-27T22:57:47.772483Z' -}) +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-01-27T22:57:47.772481Z', 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-01-27T22:57:47.772483Z', href=u'/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA3qNbYRqFM0Q7MXn3IcjGl0') % endif \ No newline at end of file diff --git a/scenarios/bank_account_credit/python.mako b/scenarios/bank_account_credit/python.mako index e3ddcaf..d5fd23b 100644 --- a/scenarios/bank_account_credit/python.mako +++ b/scenarios/bank_account_credit/python.mako @@ -10,22 +10,5 @@ bank_account.credit( amount=5000 ) % elif mode == 'response': -Credit(**{ - 'amount': 5000, - 'appears_on_statement_as': u'example.com', - 'created_at': u'2014-01-27T22:58:19.422292Z', - 'currency': u'USD', - 'description': None, - 'failure_reason': None, - 'failure_reason_code': None, - 'href': u'/credits/CR40neytmVG2HDBp1opfF7sY', - 'id': u'CR40neytmVG2HDBp1opfF7sY', - 'links': {u'customer': u'CU3eeasZ9yQ86uzzIYZkrPGg', - u'destination': u'BA3qNbYRqFM0Q7MXn3IcjGl0', - u'order': None}, - 'meta': {}, - 'status': u'succeeded', - 'transaction_number': u'CR816-868-3666', - 'updated_at': u'2014-01-27T22:58:20.346871Z' -}) +Credit(status=u'succeeded', description=None, links={u'customer': u'CU3eeasZ9yQ86uzzIYZkrPGg', u'destination': u'BA3qNbYRqFM0Q7MXn3IcjGl0', u'order': None}, amount=5000, created_at=u'2014-01-27T22:58:19.422292Z', updated_at=u'2014-01-27T22:58:20.346871Z', failure_reason=None, currency=u'USD', transaction_number=u'CR816-868-3666', href=u'/credits/CR40neytmVG2HDBp1opfF7sY', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR40neytmVG2HDBp1opfF7sY') % endif \ No newline at end of file diff --git a/scenarios/bank_account_debit/python.mako b/scenarios/bank_account_debit/python.mako index 67b90f5..7b054e1 100644 --- a/scenarios/bank_account_debit/python.mako +++ b/scenarios/bank_account_debit/python.mako @@ -12,23 +12,5 @@ bank_account.debit( description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(**{ - 'amount': 5000, - 'appears_on_statement_as': u'BAL*Statement text', - 'created_at': u'2014-01-27T22:56:28.702119Z', - 'currency': u'USD', - 'description': u'Some descriptive text for the debit in the dashboard', - 'failure_reason': None, - 'failure_reason_code': None, - 'href': u'/debits/WD1ZRRAZnFTryFdFaq7ijcPE', - 'id': u'WD1ZRRAZnFTryFdFaq7ijcPE', - 'links': {u'customer': None, - u'dispute': None, - u'order': None, - u'source': u'BA1D3vL3LjasB0kewMqRGI0S'}, - 'meta': {}, - 'status': u'succeeded', - 'transaction_number': u'W081-463-7557', - 'updated_at': u'2014-01-27T22:56:29.235927Z' -}) +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'BA1D3vL3LjasB0kewMqRGI0S', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-01-27T22:56:28.702119Z', updated_at=u'2014-01-27T22:56:29.235927Z', failure_reason=None, currency=u'USD', transaction_number=u'W081-463-7557', href=u'/debits/WD1ZRRAZnFTryFdFaq7ijcPE', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD1ZRRAZnFTryFdFaq7ijcPE') % endif \ No newline at end of file diff --git a/scenarios/bank_account_show/python.mako b/scenarios/bank_account_show/python.mako index 72b45fa..6a2771e 100644 --- a/scenarios/bank_account_show/python.mako +++ b/scenarios/bank_account_show/python.mako @@ -8,26 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy') % elif mode == 'response': -BankAccount(**{ - 'account_number': u'xxxxxx0001', - 'account_type': u'checking', - 'address': {u'city': None, - u'country_code': None, - u'line1': None, - u'line2': None, - u'postal_code': None, - u'state': None}, - 'bank_name': u'BANK OF AMERICA, N.A.', - 'can_credit': True, - 'can_debit': False, - 'created_at': u'2014-01-27T22:56:20.540530Z', - 'fingerprint': u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', - 'href': u'/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy', - 'id': u'BA1QFf0LmIxr8p41msqX46Oy', - 'links': {u'bank_account_verification': None, u'customer': None}, - 'meta': {}, - 'name': u'Johann Bernoulli', - 'routing_number': u'121000358', - 'updated_at': u'2014-01-27T22:56:20.540534Z' -}) +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-01-27T22:56:20.540530Z', 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-01-27T22:56:20.540534Z', href=u'/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy', meta={}, account_number=u'xxxxxx0001', fingerprint=u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', can_debit=False, id=u'BA1QFf0LmIxr8p41msqX46Oy') % endif \ No newline at end of file diff --git a/scenarios/bank_account_update/python.mako b/scenarios/bank_account_update/python.mako index b00e044..dbbf905 100644 --- a/scenarios/bank_account_update/python.mako +++ b/scenarios/bank_account_update/python.mako @@ -13,28 +13,5 @@ bank_account.meta = { } bank_account.save() % elif mode == 'response': -BankAccount(**{ - 'account_number': u'xxxxxx0001', - 'account_type': u'checking', - 'address': {u'city': None, - u'country_code': None, - u'line1': None, - u'line2': None, - u'postal_code': None, - u'state': None}, - 'bank_name': u'BANK OF AMERICA, N.A.', - 'can_credit': True, - 'can_debit': False, - 'created_at': u'2014-01-27T22:56:20.540530Z', - 'fingerprint': u'5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14', - 'href': u'/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy', - 'id': u'BA1QFf0LmIxr8p41msqX46Oy', - 'links': {u'bank_account_verification': None, u'customer': None}, - 'meta': {u'facebook.user_id': u'0192837465', - u'my-own-customer-id': u'12345', - u'twitter.id': u'1234987650'}, - 'name': u'Johann Bernoulli', - 'routing_number': u'121000358', - 'updated_at': u'2014-01-27T22:56:25.767386Z' -}) +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-01-27T22:56:20.540530Z', 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-01-27T22:56:25.767386Z', href=u'/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy', 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'BA1QFf0LmIxr8p41msqX46Oy') % endif \ 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 0e9a6fc..911905b 100644 --- a/scenarios/bank_account_verification_create/python.mako +++ b/scenarios/bank_account_verification_create/python.mako @@ -8,16 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') bank_account = balanced.BankAccount.fetch('/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S') verification = bank_account.verify() % elif mode == 'response': -BankAccountVerification(**{ - 'attempts': 0, - 'attempts_remaining': 3, - 'created_at': u'2014-01-27T22:56:10.726455Z', - 'deposit_status': u'succeeded', - 'href': u'/verifications/BZ1FF2MHFH9upRu7C0QUwnby', - 'id': u'BZ1FF2MHFH9upRu7C0QUwnby', - 'links': {u'bank_account': u'BA1D3vL3LjasB0kewMqRGI0S'}, - 'meta': {}, - 'updated_at': u'2014-01-27T22:56:12.545750Z', - 'verification_status': u'pending' -}) +BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA1D3vL3LjasB0kewMqRGI0S'}, created_at=u'2014-01-27T22:56:10.726455Z', attempts_remaining=3, updated_at=u'2014-01-27T22:56:12.545750Z', deposit_status=u'succeeded', attempts=0, href=u'/verifications/BZ1FF2MHFH9upRu7C0QUwnby', meta={}, id=u'BZ1FF2MHFH9upRu7C0QUwnby') % endif \ 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 1bb7b58..a1cc9b0 100644 --- a/scenarios/bank_account_verification_show/python.mako +++ b/scenarios/bank_account_verification_show/python.mako @@ -7,16 +7,5 @@ import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') verification = balanced.BankAccountVerification.fetch('/verifications/BZ1FF2MHFH9upRu7C0QUwnby') % elif mode == 'response': -BankAccountVerification(**{ - 'attempts': 0, - 'attempts_remaining': 3, - 'created_at': u'2014-01-27T22:56:10.726455Z', - 'deposit_status': u'succeeded', - 'href': u'/verifications/BZ1FF2MHFH9upRu7C0QUwnby', - 'id': u'BZ1FF2MHFH9upRu7C0QUwnby', - 'links': {u'bank_account': u'BA1D3vL3LjasB0kewMqRGI0S'}, - 'meta': {}, - 'updated_at': u'2014-01-27T22:56:12.545750Z', - 'verification_status': u'pending' -}) +BankAccountVerification(verification_status=u'pending', links={u'bank_account': u'BA1D3vL3LjasB0kewMqRGI0S'}, created_at=u'2014-01-27T22:56:10.726455Z', attempts_remaining=3, updated_at=u'2014-01-27T22:56:12.545750Z', deposit_status=u'succeeded', attempts=0, href=u'/verifications/BZ1FF2MHFH9upRu7C0QUwnby', meta={}, id=u'BZ1FF2MHFH9upRu7C0QUwnby') % endif \ 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 8d84ede..4f2ae91 100644 --- a/scenarios/bank_account_verification_update/python.mako +++ b/scenarios/bank_account_verification_update/python.mako @@ -8,16 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') verification = balanced.BankAccountVerification.fetch('/verifications/BZ1FF2MHFH9upRu7C0QUwnby') verification.confirm(amount_1=1, amount_2=1) % elif mode == 'response': -BankAccountVerification(**{ - 'attempts': 1, - 'attempts_remaining': 2, - 'created_at': u'2014-01-27T22:56:10.726455Z', - 'deposit_status': u'succeeded', - 'href': u'/verifications/BZ1FF2MHFH9upRu7C0QUwnby', - 'id': u'BZ1FF2MHFH9upRu7C0QUwnby', - 'links': {u'bank_account': u'BA1D3vL3LjasB0kewMqRGI0S'}, - 'meta': {}, - 'updated_at': u'2014-01-27T22:56:18.631337Z', - 'verification_status': u'succeeded' -}) +BankAccountVerification(verification_status=u'succeeded', links={u'bank_account': u'BA1D3vL3LjasB0kewMqRGI0S'}, created_at=u'2014-01-27T22:56:10.726455Z', attempts_remaining=2, updated_at=u'2014-01-27T22:56:18.631337Z', deposit_status=u'succeeded', attempts=1, href=u'/verifications/BZ1FF2MHFH9upRu7C0QUwnby', meta={}, id=u'BZ1FF2MHFH9upRu7C0QUwnby') % endif \ No newline at end of file diff --git a/scenarios/callback_create/python.mako b/scenarios/callback_create/python.mako index 478a24f..bb5cefb 100644 --- a/scenarios/callback_create/python.mako +++ b/scenarios/callback_create/python.mako @@ -9,12 +9,5 @@ callback = balanced.Callback( url='http://www.example.com/callback' ).save() % elif mode == 'response': -Callback(**{ - 'href': u'/callbacks/CB224374R2NSyoYBpDV4r7C2', - 'id': u'CB224374R2NSyoYBpDV4r7C2', - 'links': {}, - 'method': u'post', - 'revision': u'1.1', - 'url': u'http://www.example.com/callback' -}) +Callback(links={}, url=u'http://www.example.com/callback', id=u'CB224374R2NSyoYBpDV4r7C2', href=u'/callbacks/CB224374R2NSyoYBpDV4r7C2', method=u'post', revision=u'1.1') % endif \ No newline at end of file diff --git a/scenarios/callback_show/python.mako b/scenarios/callback_show/python.mako index 5b19c48..894cc4b 100644 --- a/scenarios/callback_show/python.mako +++ b/scenarios/callback_show/python.mako @@ -8,12 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') callback = balanced.Callback.fetch('/callbacks/CB224374R2NSyoYBpDV4r7C2') % elif mode == 'response': -Callback(**{ - 'href': u'/callbacks/CB224374R2NSyoYBpDV4r7C2', - 'id': u'CB224374R2NSyoYBpDV4r7C2', - 'links': {}, - 'method': u'post', - 'revision': u'1.1', - 'url': u'http://www.example.com/callback' -}) +Callback(links={}, url=u'http://www.example.com/callback', id=u'CB224374R2NSyoYBpDV4r7C2', href=u'/callbacks/CB224374R2NSyoYBpDV4r7C2', method=u'post', revision=u'1.1') % endif \ 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 8479532..d41f71c 100644 --- a/scenarios/card_associate_to_customer/python.mako +++ b/scenarios/card_associate_to_customer/python.mako @@ -8,31 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card = balanced.Card.fetch('/cards/CC3kqm84fxh50avenrUsSKbu') card.associate_to_customer('/customers/CU3eeasZ9yQ86uzzIYZkrPGg') % elif mode == 'response': -Card(**{ - 'address': {u'city': None, - u'country_code': None, - u'line1': None, - u'line2': None, - u'postal_code': None, - u'state': None}, - 'avs_postal_match': None, - 'avs_result': None, - 'avs_street_match': None, - 'brand': u'MasterCard', - 'created_at': u'2014-01-27T22:57:42.092923Z', - 'cvv': None, - 'cvv_match': None, - 'cvv_result': None, - 'expiration_month': 12, - 'expiration_year': 2020, - 'fingerprint': u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', - 'href': u'/cards/CC3kqm84fxh50avenrUsSKbu', - 'id': u'CC3kqm84fxh50avenrUsSKbu', - 'is_verified': True, - 'links': {u'customer': u'CU3eeasZ9yQ86uzzIYZkrPGg'}, - 'meta': {}, - 'name': None, - 'number': u'xxxxxxxxxxxx5100', - 'updated_at': u'2014-01-27T22:57:42.724392Z' -}) +Card(cvv_match=None, links={u'customer': u'CU3eeasZ9yQ86uzzIYZkrPGg'}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-01-27T22:57:42.092923Z', cvv_result=None, number=u'xxxxxxxxxxxx5100', updated_at=u'2014-01-27T22:57:42.724392Z', expiration_month=12, cvv=None, href=u'/cards/CC3kqm84fxh50avenrUsSKbu', 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'CC3kqm84fxh50avenrUsSKbu', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) % endif \ No newline at end of file diff --git a/scenarios/card_create/python.mako b/scenarios/card_create/python.mako index cd7ab1b..a2a4438 100644 --- a/scenarios/card_create/python.mako +++ b/scenarios/card_create/python.mako @@ -12,31 +12,5 @@ card = balanced.Card( expiration_year='2020' ).save() % elif mode == 'response': -Card(**{ - 'address': {u'city': None, - u'country_code': None, - u'line1': None, - u'line2': None, - u'postal_code': None, - u'state': None}, - 'avs_postal_match': None, - 'avs_result': None, - 'avs_street_match': None, - 'brand': u'MasterCard', - 'created_at': u'2014-01-27T22:57:42.092923Z', - 'cvv': None, - 'cvv_match': None, - 'cvv_result': None, - 'expiration_month': 12, - 'expiration_year': 2020, - 'fingerprint': u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', - 'href': u'/cards/CC3kqm84fxh50avenrUsSKbu', - 'id': u'CC3kqm84fxh50avenrUsSKbu', - 'is_verified': True, - 'links': {u'customer': None}, - 'meta': {}, - 'name': None, - 'number': u'xxxxxxxxxxxx5100', - 'updated_at': u'2014-01-27T22:57:42.092926Z' -}) +Card(cvv_match=None, links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-01-27T22:57:42.092923Z', cvv_result=None, number=u'xxxxxxxxxxxx5100', updated_at=u'2014-01-27T22:57:42.092926Z', expiration_month=12, cvv=None, href=u'/cards/CC3kqm84fxh50avenrUsSKbu', 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'CC3kqm84fxh50avenrUsSKbu', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) % endif \ No newline at end of file diff --git a/scenarios/card_debit/python.mako b/scenarios/card_debit/python.mako index 31f0c2c..a0afbb0 100644 --- a/scenarios/card_debit/python.mako +++ b/scenarios/card_debit/python.mako @@ -12,23 +12,5 @@ card.debit( description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(**{ - 'amount': 5000, - 'appears_on_statement_as': u'BAL*Statement text', - 'created_at': u'2014-01-27T22:58:07.291226Z', - 'currency': u'USD', - 'description': u'Some descriptive text for the debit in the dashboard', - 'failure_reason': None, - 'failure_reason_code': None, - 'href': u'/debits/WD3MKNxNTKBGgA7mX50yogiu', - 'id': u'WD3MKNxNTKBGgA7mX50yogiu', - 'links': {u'customer': u'CU3eeasZ9yQ86uzzIYZkrPGg', - u'dispute': None, - u'order': None, - u'source': u'CC3kqm84fxh50avenrUsSKbu'}, - 'meta': {}, - 'status': u'succeeded', - 'transaction_number': u'W180-465-2000', - 'updated_at': u'2014-01-27T22:58:09.706862Z' -}) +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CU3eeasZ9yQ86uzzIYZkrPGg', u'source': u'CC3kqm84fxh50avenrUsSKbu', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-01-27T22:58:07.291226Z', updated_at=u'2014-01-27T22:58:09.706862Z', failure_reason=None, currency=u'USD', transaction_number=u'W180-465-2000', href=u'/debits/WD3MKNxNTKBGgA7mX50yogiu', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD3MKNxNTKBGgA7mX50yogiu') % endif \ No newline at end of file diff --git a/scenarios/card_hold_capture/python.mako b/scenarios/card_hold_capture/python.mako index 08ba9ca..fcefda3 100644 --- a/scenarios/card_hold_capture/python.mako +++ b/scenarios/card_hold_capture/python.mako @@ -11,23 +11,5 @@ debit = card_hold.capture( description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -Debit(**{ - 'amount': 5000, - 'appears_on_statement_as': u'BAL*ShowsUpOnStmt', - 'created_at': u'2014-01-27T22:56:45.623268Z', - 'currency': u'USD', - 'description': u'Some descriptive text for the debit in the dashboard', - 'failure_reason': None, - 'failure_reason_code': None, - 'href': u'/debits/WD2iSCukjXyeRdkvX3cW0PmC', - 'id': u'WD2iSCukjXyeRdkvX3cW0PmC', - 'links': {u'customer': u'CU1f8Ygc4t0F2FKNcw235x9I', - u'dispute': None, - u'order': None, - u'source': u'CC2abDOQVm5aNFhHpcRvWS02'}, - 'meta': {u'holding.for': u'user1', u'meaningful.key': u'some.value'}, - 'status': u'succeeded', - 'transaction_number': u'W744-719-1832', - 'updated_at': u'2014-01-27T22:56:47.926021Z' -}) +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': u'CU1f8Ygc4t0F2FKNcw235x9I', u'source': u'CC2abDOQVm5aNFhHpcRvWS02', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-01-27T22:56:45.623268Z', updated_at=u'2014-01-27T22:56:47.926021Z', failure_reason=None, currency=u'USD', transaction_number=u'W744-719-1832', href=u'/debits/WD2iSCukjXyeRdkvX3cW0PmC', 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'WD2iSCukjXyeRdkvX3cW0PmC') % endif \ No newline at end of file diff --git a/scenarios/card_hold_create/python.mako b/scenarios/card_hold_create/python.mako index 99493fe..3e4c505 100644 --- a/scenarios/card_hold_create/python.mako +++ b/scenarios/card_hold_create/python.mako @@ -11,19 +11,5 @@ card_hold = card.hold( description='Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': -CardHold(**{ - 'amount': 5000, - 'created_at': u'2014-01-27T22:56:49.446376Z', - 'currency': u'USD', - 'description': u'Some descriptive text for the debit in the dashboard', - 'expires_at': u'2014-02-03T22:56:50.793698Z', - 'failure_reason': None, - 'failure_reason_code': None, - 'href': u'/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG', - 'id': u'HL2ncCO5Bir2S0PCdsDHV3cG', - 'links': {u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, - 'meta': {}, - 'transaction_number': u'HL102-313-8003', - 'updated_at': u'2014-01-27T22:56:51.115729Z' -}) +CardHold(description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, amount=5000, created_at=u'2014-01-27T22:56:49.446376Z', updated_at=u'2014-01-27T22:56:51.115729Z', expires_at=u'2014-02-03T22:56:50.793698Z', failure_reason=None, currency=u'USD', transaction_number=u'HL102-313-8003', href=u'/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG', meta={}, failure_reason_code=None, id=u'HL2ncCO5Bir2S0PCdsDHV3cG') % endif \ No newline at end of file diff --git a/scenarios/card_hold_show/python.mako b/scenarios/card_hold_show/python.mako index 2b9458e..27330d5 100644 --- a/scenarios/card_hold_show/python.mako +++ b/scenarios/card_hold_show/python.mako @@ -8,19 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card_hold = balanced.CardHold.fetch('/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S') % elif mode == 'response': -CardHold(**{ - 'amount': 5000, - 'created_at': u'2014-01-27T22:56:39.379941Z', - 'currency': u'USD', - 'description': u'Some descriptive text for the debit in the dashboard', - 'expires_at': u'2014-02-03T22:56:39.876902Z', - 'failure_reason': None, - 'failure_reason_code': None, - 'href': u'/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S', - 'id': u'HL2bT9uMRkTZkfSPmA2pBD9S', - 'links': {u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, - 'meta': {}, - 'transaction_number': u'HL500-842-5492', - 'updated_at': u'2014-01-27T22:56:40.238140Z' -}) +CardHold(description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, amount=5000, created_at=u'2014-01-27T22:56:39.379941Z', updated_at=u'2014-01-27T22:56:40.238140Z', expires_at=u'2014-02-03T22:56:39.876902Z', failure_reason=None, currency=u'USD', transaction_number=u'HL500-842-5492', href=u'/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S', meta={}, failure_reason_code=None, id=u'HL2bT9uMRkTZkfSPmA2pBD9S') % endif \ No newline at end of file diff --git a/scenarios/card_hold_update/python.mako b/scenarios/card_hold_update/python.mako index 6638245..6f49642 100644 --- a/scenarios/card_hold_update/python.mako +++ b/scenarios/card_hold_update/python.mako @@ -13,19 +13,5 @@ card_hold.meta = { } card_hold.save() % elif mode == 'response': -CardHold(**{ - 'amount': 5000, - 'created_at': u'2014-01-27T22:56:39.379941Z', - 'currency': u'USD', - 'description': u'update this description', - 'expires_at': u'2014-02-03T22:56:39.876902Z', - 'failure_reason': None, - 'failure_reason_code': None, - 'href': u'/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S', - 'id': u'HL2bT9uMRkTZkfSPmA2pBD9S', - 'links': {u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, - 'meta': {u'holding.for': u'user1', u'meaningful.key': u'some.value'}, - 'transaction_number': u'HL500-842-5492', - 'updated_at': u'2014-01-27T22:56:44.255042Z' -}) +CardHold(description=u'update this description', links={u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, amount=5000, created_at=u'2014-01-27T22:56:39.379941Z', updated_at=u'2014-01-27T22:56:44.255042Z', expires_at=u'2014-02-03T22:56:39.876902Z', failure_reason=None, currency=u'USD', transaction_number=u'HL500-842-5492', href=u'/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S', meta={u'holding.for': u'user1', u'meaningful.key': u'some.value'}, failure_reason_code=None, id=u'HL2bT9uMRkTZkfSPmA2pBD9S') % endif \ No newline at end of file diff --git a/scenarios/card_hold_void/python.mako b/scenarios/card_hold_void/python.mako index fe8edce..b24f6a5 100644 --- a/scenarios/card_hold_void/python.mako +++ b/scenarios/card_hold_void/python.mako @@ -8,19 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card_hold = balanced.CardHold.fetch('/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG') card_hold.cancel() % elif mode == 'response': -CardHold(**{ - 'amount': 5000, - 'created_at': u'2014-01-27T22:56:49.446376Z', - 'currency': u'USD', - 'description': u'Some descriptive text for the debit in the dashboard', - 'expires_at': u'2014-02-03T22:56:50.793698Z', - 'failure_reason': None, - 'failure_reason_code': None, - 'href': u'/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG', - 'id': u'HL2ncCO5Bir2S0PCdsDHV3cG', - 'links': {u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, - 'meta': {}, - 'transaction_number': u'HL102-313-8003', - 'updated_at': u'2014-01-27T22:56:51.686616Z' -}) +CardHold(description=u'Some descriptive text for the debit in the dashboard', links={u'card': u'CC2abDOQVm5aNFhHpcRvWS02', u'debit': None}, amount=5000, created_at=u'2014-01-27T22:56:49.446376Z', updated_at=u'2014-01-27T22:56:51.686616Z', expires_at=u'2014-02-03T22:56:50.793698Z', failure_reason=None, currency=u'USD', transaction_number=u'HL102-313-8003', href=u'/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG', meta={}, failure_reason_code=None, id=u'HL2ncCO5Bir2S0PCdsDHV3cG') % endif \ No newline at end of file diff --git a/scenarios/card_show/python.mako b/scenarios/card_show/python.mako index 210ebc1..75e88e6 100644 --- a/scenarios/card_show/python.mako +++ b/scenarios/card_show/python.mako @@ -7,31 +7,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card = balanced.Card.fetch('/cards/CC2uc8iPDjgyxOXHVtnZloyI') % elif mode == 'response': -Card(**{ - 'address': {u'city': None, - u'country_code': None, - u'line1': None, - u'line2': None, - u'postal_code': None, - u'state': None}, - 'avs_postal_match': None, - 'avs_result': None, - 'avs_street_match': None, - 'brand': u'MasterCard', - 'created_at': u'2014-01-27T22:56:55.656375Z', - 'cvv': None, - 'cvv_match': None, - 'cvv_result': None, - 'expiration_month': 12, - 'expiration_year': 2020, - 'fingerprint': u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', - 'href': u'/cards/CC2uc8iPDjgyxOXHVtnZloyI', - 'id': u'CC2uc8iPDjgyxOXHVtnZloyI', - 'is_verified': True, - 'links': {u'customer': None}, - 'meta': {}, - 'name': None, - 'number': u'xxxxxxxxxxxx5100', - 'updated_at': u'2014-01-27T22:56:55.656379Z' -}) +Card(cvv_match=None, links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-01-27T22:56:55.656375Z', cvv_result=None, number=u'xxxxxxxxxxxx5100', updated_at=u'2014-01-27T22:56:55.656379Z', expiration_month=12, cvv=None, href=u'/cards/CC2uc8iPDjgyxOXHVtnZloyI', 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'CC2uc8iPDjgyxOXHVtnZloyI', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) % endif \ No newline at end of file diff --git a/scenarios/card_update/python.mako b/scenarios/card_update/python.mako index e7d713d..03c02b5 100644 --- a/scenarios/card_update/python.mako +++ b/scenarios/card_update/python.mako @@ -13,33 +13,5 @@ card.meta = { } card.save() % elif mode == 'response': -Card(**{ - 'address': {u'city': None, - u'country_code': None, - u'line1': None, - u'line2': None, - u'postal_code': None, - u'state': None}, - 'avs_postal_match': None, - 'avs_result': None, - 'avs_street_match': None, - 'brand': u'MasterCard', - 'created_at': u'2014-01-27T22:56:55.656375Z', - 'cvv': None, - 'cvv_match': None, - 'cvv_result': None, - 'expiration_month': 12, - 'expiration_year': 2020, - 'fingerprint': u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', - 'href': u'/cards/CC2uc8iPDjgyxOXHVtnZloyI', - 'id': u'CC2uc8iPDjgyxOXHVtnZloyI', - 'is_verified': True, - 'links': {u'customer': None}, - 'meta': {u'facebook.user_id': u'0192837465', - u'my-own-customer-id': u'12345', - u'twitter.id': u'1234987650'}, - 'name': None, - 'number': u'xxxxxxxxxxxx5100', - 'updated_at': u'2014-01-27T22:57:02.195769Z' -}) +Card(cvv_match=None, links={u'customer': None}, expiration_year=2020, avs_street_match=None, avs_postal_match=None, created_at=u'2014-01-27T22:56:55.656375Z', cvv_result=None, number=u'xxxxxxxxxxxx5100', updated_at=u'2014-01-27T22:57:02.195769Z', expiration_month=12, cvv=None, href=u'/cards/CC2uc8iPDjgyxOXHVtnZloyI', 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'CC2uc8iPDjgyxOXHVtnZloyI', fingerprint=u'fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788', is_verified=True, brand=u'MasterCard', name=None) % endif \ No newline at end of file diff --git a/scenarios/credit_show/python.mako b/scenarios/credit_show/python.mako index 51a853f..10114a6 100644 --- a/scenarios/credit_show/python.mako +++ b/scenarios/credit_show/python.mako @@ -8,22 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') credit = balanced.Credit.fetch('/credits/CR2UtQgq6L3FPd1YoOc8eyOC') % elif mode == 'response': -Credit(**{ - 'amount': 5000, - 'appears_on_statement_as': u'example.com', - 'created_at': u'2014-01-27T22:57:19.073817Z', - 'currency': u'USD', - 'description': None, - 'failure_reason': None, - 'failure_reason_code': None, - 'href': u'/credits/CR2UtQgq6L3FPd1YoOc8eyOC', - 'id': u'CR2UtQgq6L3FPd1YoOc8eyOC', - 'links': {u'customer': u'CU2N5goX8AQJE0CCPeapHUsM', - u'destination': u'BA2QAksIxlLt60lqKc1wwgJy', - u'order': None}, - 'meta': {}, - 'status': u'succeeded', - 'transaction_number': u'CR408-633-3169', - 'updated_at': u'2014-01-27T22:57:20.208794Z' -}) +Credit(status=u'succeeded', description=None, links={u'customer': u'CU2N5goX8AQJE0CCPeapHUsM', u'destination': u'BA2QAksIxlLt60lqKc1wwgJy', u'order': None}, amount=5000, created_at=u'2014-01-27T22:57:19.073817Z', updated_at=u'2014-01-27T22:57:20.208794Z', failure_reason=None, currency=u'USD', transaction_number=u'CR408-633-3169', href=u'/credits/CR2UtQgq6L3FPd1YoOc8eyOC', meta={}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR2UtQgq6L3FPd1YoOc8eyOC') % endif \ No newline at end of file diff --git a/scenarios/credit_update/python.mako b/scenarios/credit_update/python.mako index db9c5b0..c0ed43e 100644 --- a/scenarios/credit_update/python.mako +++ b/scenarios/credit_update/python.mako @@ -13,22 +13,5 @@ credit.meta = { } credit.save() % elif mode == 'response': -Credit(**{ - 'amount': 5000, - 'appears_on_statement_as': u'example.com', - 'created_at': u'2014-01-27T22:57:19.073817Z', - 'currency': u'USD', - 'description': u'New description for credit', - 'failure_reason': None, - 'failure_reason_code': None, - 'href': u'/credits/CR2UtQgq6L3FPd1YoOc8eyOC', - 'id': u'CR2UtQgq6L3FPd1YoOc8eyOC', - 'links': {u'customer': u'CU2N5goX8AQJE0CCPeapHUsM', - u'destination': u'BA2QAksIxlLt60lqKc1wwgJy', - u'order': None}, - 'meta': {u'anykey': u'valuegoeshere', u'facebook.id': u'1234567890'}, - 'status': u'succeeded', - 'transaction_number': u'CR408-633-3169', - 'updated_at': u'2014-01-27T22:57:25.832930Z' -}) +Credit(status=u'succeeded', description=u'New description for credit', links={u'customer': u'CU2N5goX8AQJE0CCPeapHUsM', u'destination': u'BA2QAksIxlLt60lqKc1wwgJy', u'order': None}, amount=5000, created_at=u'2014-01-27T22:57:19.073817Z', updated_at=u'2014-01-27T22:57:25.832930Z', failure_reason=None, currency=u'USD', transaction_number=u'CR408-633-3169', href=u'/credits/CR2UtQgq6L3FPd1YoOc8eyOC', meta={u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, failure_reason_code=None, appears_on_statement_as=u'example.com', id=u'CR2UtQgq6L3FPd1YoOc8eyOC') % endif \ No newline at end of file diff --git a/scenarios/customer_create/python.mako b/scenarios/customer_create/python.mako index c69fd57..3bedec0 100644 --- a/scenarios/customer_create/python.mako +++ b/scenarios/customer_create/python.mako @@ -14,27 +14,5 @@ customer = balanced.Customer( } ).save() % elif mode == 'response': -Customer(**{ - 'address': {u'city': None, - u'country_code': None, - u'line1': None, - u'line2': None, - u'postal_code': u'48120', - u'state': None}, - 'business_name': None, - 'created_at': u'2014-01-27T22:57:36.586782Z', - 'dob_month': 7, - 'dob_year': 1963, - 'ein': None, - 'email': None, - 'href': u'/customers/CU3eeasZ9yQ86uzzIYZkrPGg', - 'id': u'CU3eeasZ9yQ86uzzIYZkrPGg', - 'links': {u'destination': None, u'source': None}, - 'merchant_status': u'underwritten', - 'meta': {}, - 'name': u'Henry Ford', - 'phone': None, - 'ssn_last4': None, - 'updated_at': u'2014-01-27T22:57:37.740442Z' -}) +Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-01-27T22:57:36.586782Z', dob_month=7, updated_at=u'2014-01-27T22:57:37.740442Z', phone=None, href=u'/customers/CU3eeasZ9yQ86uzzIYZkrPGg', 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'CU3eeasZ9yQ86uzzIYZkrPGg', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) % endif \ No newline at end of file diff --git a/scenarios/customer_show/python.mako b/scenarios/customer_show/python.mako index 04f3905..4e63497 100644 --- a/scenarios/customer_show/python.mako +++ b/scenarios/customer_show/python.mako @@ -8,27 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') customer = balanced.Customer.fetch('/customers/CU33Y4cut21qu1d1lGYDBseQ') % elif mode == 'response': -Customer(**{ - 'address': {u'city': None, - u'country_code': None, - u'line1': None, - u'line2': None, - u'postal_code': u'48120', - u'state': None}, - 'business_name': None, - 'created_at': u'2014-01-27T22:57:27.459187Z', - 'dob_month': 7, - 'dob_year': 1963, - 'ein': None, - 'email': None, - 'href': u'/customers/CU33Y4cut21qu1d1lGYDBseQ', - 'id': u'CU33Y4cut21qu1d1lGYDBseQ', - 'links': {u'destination': None, u'source': None}, - 'merchant_status': u'underwritten', - 'meta': {}, - 'name': u'Henry Ford', - 'phone': None, - 'ssn_last4': None, - 'updated_at': u'2014-01-27T22:57:29.488272Z' -}) +Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-01-27T22:57:27.459187Z', dob_month=7, updated_at=u'2014-01-27T22:57:29.488272Z', phone=None, href=u'/customers/CU33Y4cut21qu1d1lGYDBseQ', 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'CU33Y4cut21qu1d1lGYDBseQ', 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/python.mako b/scenarios/customer_update/python.mako index f12625e..026313f 100644 --- a/scenarios/customer_update/python.mako +++ b/scenarios/customer_update/python.mako @@ -12,27 +12,5 @@ customer.meta = { } customer.save() % elif mode == 'response': -Customer(**{ - 'address': {u'city': None, - u'country_code': None, - u'line1': None, - u'line2': None, - u'postal_code': u'48120', - u'state': None}, - 'business_name': None, - 'created_at': u'2014-01-27T22:57:27.459187Z', - 'dob_month': 7, - 'dob_year': 1963, - 'ein': None, - 'email': u'email@newdomain.com', - 'href': u'/customers/CU33Y4cut21qu1d1lGYDBseQ', - 'id': u'CU33Y4cut21qu1d1lGYDBseQ', - 'links': {u'destination': None, u'source': None}, - 'merchant_status': u'underwritten', - 'meta': {u'shipping-preference': u'ground'}, - 'name': u'Henry Ford', - 'phone': None, - 'ssn_last4': None, - 'updated_at': u'2014-01-27T22:57:34.512310Z' -}) +Customer(name=u'Henry Ford', links={u'source': None, u'destination': None}, created_at=u'2014-01-27T22:57:27.459187Z', dob_month=7, updated_at=u'2014-01-27T22:57:34.512310Z', phone=None, href=u'/customers/CU33Y4cut21qu1d1lGYDBseQ', 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'CU33Y4cut21qu1d1lGYDBseQ', business_name=None, ssn_last4=None, merchant_status=u'underwritten', ein=None) % endif \ No newline at end of file diff --git a/scenarios/debit_show/python.mako b/scenarios/debit_show/python.mako index 1b1554c..a27ac91 100644 --- a/scenarios/debit_show/python.mako +++ b/scenarios/debit_show/python.mako @@ -8,23 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') debit = balanced.Debit.fetch('/debits/WD2Fd3jVcMZEWyXHtG3U1LRM') % elif mode == 'response': -Debit(**{ - 'amount': 5000, - 'appears_on_statement_as': u'BAL*Statement text', - 'created_at': u'2014-01-27T22:57:05.511023Z', - 'currency': u'USD', - 'description': u'Some descriptive text for the debit in the dashboard', - 'failure_reason': None, - 'failure_reason_code': None, - 'href': u'/debits/WD2Fd3jVcMZEWyXHtG3U1LRM', - 'id': u'WD2Fd3jVcMZEWyXHtG3U1LRM', - 'links': {u'customer': None, - u'dispute': None, - u'order': None, - u'source': u'CC2uc8iPDjgyxOXHVtnZloyI'}, - 'meta': {}, - 'status': u'succeeded', - 'transaction_number': u'W906-153-1439', - 'updated_at': u'2014-01-27T22:57:10.153696Z' -}) +Debit(status=u'succeeded', description=u'Some descriptive text for the debit in the dashboard', links={u'customer': None, u'source': u'CC2uc8iPDjgyxOXHVtnZloyI', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-01-27T22:57:05.511023Z', updated_at=u'2014-01-27T22:57:10.153696Z', failure_reason=None, currency=u'USD', transaction_number=u'W906-153-1439', href=u'/debits/WD2Fd3jVcMZEWyXHtG3U1LRM', meta={}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD2Fd3jVcMZEWyXHtG3U1LRM') % endif \ No newline at end of file diff --git a/scenarios/debit_update/python.mako b/scenarios/debit_update/python.mako index a5bc119..cb4a441 100644 --- a/scenarios/debit_update/python.mako +++ b/scenarios/debit_update/python.mako @@ -13,23 +13,5 @@ debit.meta = { } debit.save() % elif mode == 'response': -Debit(**{ - 'amount': 5000, - 'appears_on_statement_as': u'BAL*Statement text', - 'created_at': u'2014-01-27T22:57:05.511023Z', - 'currency': u'USD', - 'description': u'New description for debit', - 'failure_reason': None, - 'failure_reason_code': None, - 'href': u'/debits/WD2Fd3jVcMZEWyXHtG3U1LRM', - 'id': u'WD2Fd3jVcMZEWyXHtG3U1LRM', - 'links': {u'customer': None, - u'dispute': None, - u'order': None, - u'source': u'CC2uc8iPDjgyxOXHVtnZloyI'}, - 'meta': {u'anykey': u'valuegoeshere', u'facebook.id': u'1234567890'}, - 'status': u'succeeded', - 'transaction_number': u'W906-153-1439', - 'updated_at': u'2014-01-27T22:57:53.776191Z' -}) +Debit(status=u'succeeded', description=u'New description for debit', links={u'customer': None, u'source': u'CC2uc8iPDjgyxOXHVtnZloyI', u'order': None, u'dispute': None}, amount=5000, created_at=u'2014-01-27T22:57:05.511023Z', updated_at=u'2014-01-27T22:57:53.776191Z', failure_reason=None, currency=u'USD', transaction_number=u'W906-153-1439', href=u'/debits/WD2Fd3jVcMZEWyXHtG3U1LRM', meta={u'facebook.id': u'1234567890', u'anykey': u'valuegoeshere'}, failure_reason_code=None, appears_on_statement_as=u'BAL*Statement text', id=u'WD2Fd3jVcMZEWyXHtG3U1LRM') % endif \ No newline at end of file diff --git a/scenarios/event_show/python.mako b/scenarios/event_show/python.mako index e005a02..0e96376 100644 --- a/scenarios/event_show/python.mako +++ b/scenarios/event_show/python.mako @@ -8,48 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') event = balanced.Event.fetch('/events/EV2abbb98487a611e3a86f026ba7d31e6f') % elif mode == 'response': -Event(**{ - 'callback_statuses': {u'failed': 0, - u'pending': 0, - u'retrying': 0, - u'succeeded': 0}, - 'entity': {u'customers': [{u'address': {u'city': None, - u'country_code': None, - u'line1': None, - u'line2': None, - u'postal_code': None, - u'state': None}, - u'business_name': None, - u'created_at': u'2014-01-27T22:55:50.253066Z', - u'dob_month': None, - u'dob_year': None, - u'ein': None, - u'email': None, - u'href': u'/customers/CU1iDnBalzHoZg47Np92rNrV', - u'id': u'CU1iDnBalzHoZg47Np92rNrV', - u'links': {u'destination': None, - u'source': None}, - u'merchant_status': u'no-match', - u'meta': {}, - u'name': None, - u'phone': None, - u'ssn_last4': None, - u'updated_at': u'2014-01-27T22:55:50.767858Z'}], - u'links': {u'customers.bank_accounts': u'/customers/{customers.id}/bank_accounts', - u'customers.card_holds': u'/customers/{customers.id}/card_holds', - u'customers.cards': u'/customers/{customers.id}/cards', - u'customers.credits': u'/customers/{customers.id}/credits', - u'customers.debits': u'/customers/{customers.id}/debits', - u'customers.destination': u'/resources/{customers.destination}', - u'customers.orders': u'/customers/{customers.id}/orders', - u'customers.refunds': u'/customers/{customers.id}/refunds', - u'customers.reversals': u'/customers/{customers.id}/reversals', - u'customers.source': u'/resources/{customers.source}', - u'customers.transactions': u'/customers/{customers.id}/transactions'}}, - 'href': u'/events/EV2abbb98487a611e3a86f026ba7d31e6f', - 'id': u'EV2abbb98487a611e3a86f026ba7d31e6f', - 'links': {}, - 'occurred_at': u'2014-01-27T22:55:50.767000Z', - 'type': u'account.created' -}) +Event(links={}, occurred_at=u'2014-01-27T22:55:50.767000Z', entity={u'customers': [{u'name': None, u'links': {u'source': None, u'destination': None}, u'updated_at': u'2014-01-27T22:55:50.767858Z', u'created_at': u'2014-01-27T22:55:50.253066Z', u'dob_month': None, u'merchant_status': u'no-match', u'id': u'CU1iDnBalzHoZg47Np92rNrV', u'phone': None, u'href': u'/customers/CU1iDnBalzHoZg47Np92rNrV', u'meta': {}, u'dob_year': None, u'address': {u'city': None, u'line2': None, u'line1': None, u'state': None, u'postal_code': None, u'country_code': None}, u'business_name': None, u'ssn_last4': None, u'email': None, 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.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/EV2abbb98487a611e3a86f026ba7d31e6f', callback_statuses={u'failed': 0, u'retrying': 0, u'succeeded': 0, u'pending': 0}, type=u'account.created', id=u'EV2abbb98487a611e3a86f026ba7d31e6f') % endif \ No newline at end of file diff --git a/scenarios/order_create/python.mako b/scenarios/order_create/python.mako index 8fc91b6..636901b 100644 --- a/scenarios/order_create/python.mako +++ b/scenarios/order_create/python.mako @@ -10,22 +10,5 @@ merchant_customer.create_order( description='Order #12341234' ).save() % elif mode == 'response': -Order(**{ - 'amount': 0, - 'amount_escrowed': 0, - 'created_at': u'2014-01-27T22:58:01.115720Z', - 'currency': u'USD', - 'delivery_address': {u'city': None, - u'country_code': None, - u'line1': None, - u'line2': None, - u'postal_code': None, - u'state': None}, - 'description': u'Order #12341234', - 'href': u'/orders/OR3FOihZa7lMHdAP5p8BJZVY', - 'id': u'OR3FOihZa7lMHdAP5p8BJZVY', - 'links': {u'merchant': u'CU3eeasZ9yQ86uzzIYZkrPGg'}, - 'meta': {}, - 'updated_at': u'2014-01-27T22:58:01.115723Z' -}) +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'CU3eeasZ9yQ86uzzIYZkrPGg'}, created_at=u'2014-01-27T22:58:01.115720Z', updated_at=u'2014-01-27T22:58:01.115723Z', currency=u'USD', amount=0, href=u'/orders/OR3FOihZa7lMHdAP5p8BJZVY', meta={}, id=u'OR3FOihZa7lMHdAP5p8BJZVY', amount_escrowed=0) % endif \ No newline at end of file diff --git a/scenarios/order_show/python.mako b/scenarios/order_show/python.mako index 5a54a78..42f5792 100644 --- a/scenarios/order_show/python.mako +++ b/scenarios/order_show/python.mako @@ -8,22 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') order = balanced.Order.fetch('/orders/OR3FOihZa7lMHdAP5p8BJZVY') % elif mode == 'response': -Order(**{ - 'amount': 0, - 'amount_escrowed': 0, - 'created_at': u'2014-01-27T22:58:01.115720Z', - 'currency': u'USD', - 'delivery_address': {u'city': None, - u'country_code': None, - u'line1': None, - u'line2': None, - u'postal_code': None, - u'state': None}, - 'description': u'Order #12341234', - 'href': u'/orders/OR3FOihZa7lMHdAP5p8BJZVY', - 'id': u'OR3FOihZa7lMHdAP5p8BJZVY', - 'links': {u'merchant': u'CU3eeasZ9yQ86uzzIYZkrPGg'}, - 'meta': {}, - 'updated_at': u'2014-01-27T22:58:01.115723Z' -}) +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'CU3eeasZ9yQ86uzzIYZkrPGg'}, created_at=u'2014-01-27T22:58:01.115720Z', updated_at=u'2014-01-27T22:58:01.115723Z', currency=u'USD', amount=0, href=u'/orders/OR3FOihZa7lMHdAP5p8BJZVY', meta={}, id=u'OR3FOihZa7lMHdAP5p8BJZVY', amount_escrowed=0) % endif \ No newline at end of file diff --git a/scenarios/order_update/python.mako b/scenarios/order_update/python.mako index 2b4a946..f703b5b 100644 --- a/scenarios/order_update/python.mako +++ b/scenarios/order_update/python.mako @@ -13,22 +13,5 @@ order.meta = { } order.save() % elif mode == 'response': -Order(**{ - 'amount': 0, - 'amount_escrowed': 0, - 'created_at': u'2014-01-27T22:58:01.115720Z', - 'currency': u'USD', - 'delivery_address': {u'city': None, - u'country_code': None, - u'line1': None, - u'line2': None, - u'postal_code': None, - u'state': None}, - 'description': u'New description for order', - 'href': u'/orders/OR3FOihZa7lMHdAP5p8BJZVY', - 'id': u'OR3FOihZa7lMHdAP5p8BJZVY', - 'links': {u'merchant': u'CU3eeasZ9yQ86uzzIYZkrPGg'}, - 'meta': {u'anykey': u'valuegoeshere', u'product.id': u'1234567890'}, - 'updated_at': u'2014-01-27T22:58:05.657463Z' -}) +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'CU3eeasZ9yQ86uzzIYZkrPGg'}, created_at=u'2014-01-27T22:58:01.115720Z', updated_at=u'2014-01-27T22:58:05.657463Z', currency=u'USD', amount=0, href=u'/orders/OR3FOihZa7lMHdAP5p8BJZVY', meta={u'product.id': u'1234567890', u'anykey': u'valuegoeshere'}, id=u'OR3FOihZa7lMHdAP5p8BJZVY', amount_escrowed=0) % endif \ No newline at end of file diff --git a/scenarios/refund_create/python.mako b/scenarios/refund_create/python.mako index d62fe57..eaee0d1 100644 --- a/scenarios/refund_create/python.mako +++ b/scenarios/refund_create/python.mako @@ -16,21 +16,5 @@ refund = debit.refund( } ) % elif mode == 'response': -Refund(**{ - 'amount': 3000, - 'created_at': u'2014-01-27T22:58:11.375665Z', - 'currency': u'USD', - 'description': u'Refund for Order #1111', - 'href': u'/refunds/RF3RklPuFgsgI50UuYtr4g6I', - 'id': u'RF3RklPuFgsgI50UuYtr4g6I', - 'links': {u'debit': u'WD3MKNxNTKBGgA7mX50yogiu', - u'dispute': None, - u'order': None}, - 'meta': {u'fulfillment.item.condition': u'OK', - u'merchant.feedback': u'positive', - u'user.refund_reason': u'not happy with product'}, - 'status': u'succeeded', - 'transaction_number': u'RF383-088-7077', - 'updated_at': u'2014-01-27T22:58:12.115131Z' -}) +Refund(status=u'succeeded', description=u'Refund for Order #1111', links={u'dispute': None, u'order': None, u'debit': u'WD3MKNxNTKBGgA7mX50yogiu'}, amount=3000, created_at=u'2014-01-27T22:58:11.375665Z', updated_at=u'2014-01-27T22:58:12.115131Z', currency=u'USD', transaction_number=u'RF383-088-7077', href=u'/refunds/RF3RklPuFgsgI50UuYtr4g6I', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, id=u'RF3RklPuFgsgI50UuYtr4g6I') % endif \ No newline at end of file diff --git a/scenarios/refund_show/python.mako b/scenarios/refund_show/python.mako index ac8cd1a..9616b46 100644 --- a/scenarios/refund_show/python.mako +++ b/scenarios/refund_show/python.mako @@ -8,21 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') refund = balanced.Refund.fetch('/refunds/RF3RklPuFgsgI50UuYtr4g6I') % elif mode == 'response': -Refund(**{ - 'amount': 3000, - 'created_at': u'2014-01-27T22:58:11.375665Z', - 'currency': u'USD', - 'description': u'Refund for Order #1111', - 'href': u'/refunds/RF3RklPuFgsgI50UuYtr4g6I', - 'id': u'RF3RklPuFgsgI50UuYtr4g6I', - 'links': {u'debit': u'WD3MKNxNTKBGgA7mX50yogiu', - u'dispute': None, - u'order': None}, - 'meta': {u'fulfillment.item.condition': u'OK', - u'merchant.feedback': u'positive', - u'user.refund_reason': u'not happy with product'}, - 'status': u'succeeded', - 'transaction_number': u'RF383-088-7077', - 'updated_at': u'2014-01-27T22:58:12.115131Z' -}) +Refund(status=u'succeeded', description=u'Refund for Order #1111', links={u'dispute': None, u'order': None, u'debit': u'WD3MKNxNTKBGgA7mX50yogiu'}, amount=3000, created_at=u'2014-01-27T22:58:11.375665Z', updated_at=u'2014-01-27T22:58:12.115131Z', currency=u'USD', transaction_number=u'RF383-088-7077', href=u'/refunds/RF3RklPuFgsgI50UuYtr4g6I', meta={u'fulfillment.item.condition': u'OK', u'user.refund_reason': u'not happy with product', u'merchant.feedback': u'positive'}, id=u'RF3RklPuFgsgI50UuYtr4g6I') % endif \ No newline at end of file diff --git a/scenarios/refund_update/python.mako b/scenarios/refund_update/python.mako index 46edf4a..fc9978a 100644 --- a/scenarios/refund_update/python.mako +++ b/scenarios/refund_update/python.mako @@ -14,21 +14,5 @@ refund.meta = { } refund.save() % elif mode == 'response': -Refund(**{ - 'amount': 3000, - 'created_at': u'2014-01-27T22:58:11.375665Z', - 'currency': u'USD', - 'description': u'update this description', - 'href': u'/refunds/RF3RklPuFgsgI50UuYtr4g6I', - 'id': u'RF3RklPuFgsgI50UuYtr4g6I', - 'links': {u'debit': u'WD3MKNxNTKBGgA7mX50yogiu', - u'dispute': None, - u'order': None}, - 'meta': {u'refund.reason': u'user not happy with product', - u'user.notes': u'very polite on the phone', - u'user.refund.count': u'3'}, - 'status': u'succeeded', - 'transaction_number': u'RF383-088-7077', - 'updated_at': u'2014-01-27T22:58:17.950799Z' -}) +Refund(status=u'succeeded', description=u'update this description', links={u'dispute': None, u'order': None, u'debit': u'WD3MKNxNTKBGgA7mX50yogiu'}, amount=3000, created_at=u'2014-01-27T22:58:11.375665Z', updated_at=u'2014-01-27T22:58:17.950799Z', currency=u'USD', transaction_number=u'RF383-088-7077', href=u'/refunds/RF3RklPuFgsgI50UuYtr4g6I', 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'RF3RklPuFgsgI50UuYtr4g6I') % endif \ No newline at end of file diff --git a/scenarios/reversal_create/python.mako b/scenarios/reversal_create/python.mako index cf5148f..bb4249b 100644 --- a/scenarios/reversal_create/python.mako +++ b/scenarios/reversal_create/python.mako @@ -16,21 +16,5 @@ reversal = credit.reverse( } ) % elif mode == 'response': -Reversal(**{ - 'amount': 3000, - 'created_at': u'2014-01-27T22:58:21.214829Z', - 'currency': u'USD', - 'description': u'Reversal for Order #1111', - 'failure_reason': None, - 'failure_reason_code': None, - 'href': u'/reversals/RV42n8M9XZWna427oPDDi4RG', - 'id': u'RV42n8M9XZWna427oPDDi4RG', - 'links': {u'credit': u'CR40neytmVG2HDBp1opfF7sY', u'order': None}, - 'meta': {u'fulfillment.item.condition': u'OK', - u'merchant.feedback': u'positive', - u'user.refund_reason': u'not happy with product'}, - 'status': u'succeeded', - 'transaction_number': u'RV219-169-0008', - 'updated_at': u'2014-01-27T22:58:22.190749Z' -}) +Reversal(status=u'succeeded', description=u'Reversal for Order #1111', links={u'credit': u'CR40neytmVG2HDBp1opfF7sY', u'order': None}, amount=3000, created_at=u'2014-01-27T22:58:21.214829Z', updated_at=u'2014-01-27T22:58:22.190749Z', failure_reason=None, currency=u'USD', transaction_number=u'RV219-169-0008', href=u'/reversals/RV42n8M9XZWna427oPDDi4RG', 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'RV42n8M9XZWna427oPDDi4RG') % endif \ No newline at end of file diff --git a/scenarios/reversal_show/python.mako b/scenarios/reversal_show/python.mako index 6198ff5..6953706 100644 --- a/scenarios/reversal_show/python.mako +++ b/scenarios/reversal_show/python.mako @@ -8,21 +8,5 @@ balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') refund = balanced.Reversal.fetch('/reversals/RV42n8M9XZWna427oPDDi4RG') % elif mode == 'response': -Reversal(**{ - 'amount': 3000, - 'created_at': u'2014-01-27T22:58:21.214829Z', - 'currency': u'USD', - 'description': u'Reversal for Order #1111', - 'failure_reason': None, - 'failure_reason_code': None, - 'href': u'/reversals/RV42n8M9XZWna427oPDDi4RG', - 'id': u'RV42n8M9XZWna427oPDDi4RG', - 'links': {u'credit': u'CR40neytmVG2HDBp1opfF7sY', u'order': None}, - 'meta': {u'fulfillment.item.condition': u'OK', - u'merchant.feedback': u'positive', - u'user.refund_reason': u'not happy with product'}, - 'status': u'succeeded', - 'transaction_number': u'RV219-169-0008', - 'updated_at': u'2014-01-27T22:58:22.190749Z' -}) +Reversal(status=u'succeeded', description=u'Reversal for Order #1111', links={u'credit': u'CR40neytmVG2HDBp1opfF7sY', u'order': None}, amount=3000, created_at=u'2014-01-27T22:58:21.214829Z', updated_at=u'2014-01-27T22:58:22.190749Z', failure_reason=None, currency=u'USD', transaction_number=u'RV219-169-0008', href=u'/reversals/RV42n8M9XZWna427oPDDi4RG', 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'RV42n8M9XZWna427oPDDi4RG') % endif \ No newline at end of file diff --git a/scenarios/reversal_update/python.mako b/scenarios/reversal_update/python.mako index b34bc86..3a13e61 100644 --- a/scenarios/reversal_update/python.mako +++ b/scenarios/reversal_update/python.mako @@ -14,21 +14,5 @@ reversal.meta = { } reversal.save() % elif mode == 'response': -Reversal(**{ - 'amount': 3000, - 'created_at': u'2014-01-27T22:58:21.214829Z', - 'currency': u'USD', - 'description': u'update this description', - 'failure_reason': None, - 'failure_reason_code': None, - 'href': u'/reversals/RV42n8M9XZWna427oPDDi4RG', - 'id': u'RV42n8M9XZWna427oPDDi4RG', - 'links': {u'credit': u'CR40neytmVG2HDBp1opfF7sY', u'order': None}, - 'meta': {u'refund.reason': u'user not happy with product', - u'user.notes': u'very polite on the phone', - u'user.satisfaction': u'6'}, - 'status': u'succeeded', - 'transaction_number': u'RV219-169-0008', - 'updated_at': u'2014-01-27T22:58:27.354488Z' -}) +Reversal(status=u'succeeded', description=u'update this description', links={u'credit': u'CR40neytmVG2HDBp1opfF7sY', u'order': None}, amount=3000, created_at=u'2014-01-27T22:58:21.214829Z', updated_at=u'2014-01-27T22:58:27.354488Z', failure_reason=None, currency=u'USD', transaction_number=u'RV219-169-0008', href=u'/reversals/RV42n8M9XZWna427oPDDi4RG', 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'RV42n8M9XZWna427oPDDi4RG') % endif \ No newline at end of file From 77b2284de863e2feb50923714d2aefe9b4860e52 Mon Sep 17 00:00:00 2001 From: Matthew Francis-Landau Date: Tue, 18 Feb 2014 12:07:42 -0800 Subject: [PATCH 068/146] 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 069/146] 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 070/146] 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 071/146] 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 072/146] 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 073/146] 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 074/146] 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 075/146] 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 076/146] 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 077/146] 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 078/146] 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 079/146] 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 080/146] 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 081/146] 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 082/146] 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 083/146] 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 084/146] 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 085/146] 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 086/146] 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 087/146] 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 088/146] 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 089/146] 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 090/146] 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 091/146] 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 092/146] 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 093/146] 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 094/146] 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 095/146] 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 096/146] 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 097/146] 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 098/146] 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 099/146] 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 100/146] 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 101/146] 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 102/146] 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 103/146] 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 104/146] 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 105/146] 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 106/146] 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 107/146] 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 108/146] 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 109/146] 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 110/146] 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 111/146] 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 112/146] 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 113/146] 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 114/146] 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 115/146] 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 116/146] 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 117/146] 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 118/146] 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 119/146] 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 120/146] 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 121/146] 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 122/146] 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 123/146] 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 124/146] 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 125/146] 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 126/146] 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 127/146] 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 128/146] 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 129/146] 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 130/146] 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 131/146] 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 132/146] 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 133/146] 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 134/146] 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 135/146] 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 136/146] 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 137/146] 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 138/146] 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 139/146] 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 140/146] 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 141/146] 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 142/146] 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 143/146] 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 144/146] 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 145/146] 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 146/146] 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