Skip to content

Instantly share code, notes, and snippets.

@mjallday
Created October 23, 2012 22:38
Show Gist options
  • Select an option

  • Save mjallday/3942196 to your computer and use it in GitHub Desktop.

Select an option

Save mjallday/3942196 to your computer and use it in GitHub Desktop.
Balanced - Minimum fields for a business
import balanced
import random
balanced.configure('7b7a51ccb10c11e19c0a026ba7e239a9') # test marketplace
business = {
'type': 'business',
'name': 'Bobs Used Auto Emporium',
'tax_id': '123456789',
'street_address': '801 High St',
'postal_code': '94301',
'country': 'USA',
'phone_number': '9046281796',
}
person = {
'name': 'Marshall Jones',
'phone_number': '9046281796',
'street_address': '801 High St',
'postal_code': '94301',
'dob': '1969-12',
}
business['person'] = person
balanced.Account(email_address='%[email protected]' % (random.randint(0, 1000)),
merchant=business,
).save().roles
@mjallday
Copy link
Author

business = {
    'type': 'business',
    'name': 'Bobs Used Auto Emporium',
    'tax_id': '123456789',
    'street_address': '801 High St',
    'postal_code': '94301',
    'country': 'USA',
    'phone_number': '9046281796',
    'person': {
        'name': 'Marshall Jones',
        'phone_number': '9046281796',
        'street_address': '801 High St',
        'postal_code': '94301',
        'dob': '1969-12',
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment