Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new lab #216

Open
sawibo opened this issue Aug 3, 2018 · 0 comments
Open

Create new lab #216

sawibo opened this issue Aug 3, 2018 · 0 comments

Comments

@sawibo
Copy link

sawibo commented Aug 3, 2018

Hi,
I'm trying to use the Lab.create() function to create a new lab (account). The new account is being made but all the billing-address & shipping-address fields don't get filled in. Am I missing something obvious or is creating a new lab not yet fully supported ? Below the code I'm using:

    account = Lab.create(
        lims,
        name=account_info['account_name'],
        website=account_info['account_website'],
        udf={'BudgetNrs' : account_info['account_BudgetNrs']},
        billing_address={
            'street' : account_info['billing_street'],
            'city' : account_info['billing_city'],
            'state' : account_info['billing_state'],
            'country' : account_info['billing_country'],
            'postalCode' : account_info['billing_postalCode'],
            'institution' : account_info['billing_institution'],
            'department' : account_info['billing_department']
        },
        shipping_address={
            'street' : account_info['shipping_street'],
            'city' : account_info['shipping_city'],
            'state' : account_info['shipping_state'],
            'country' : account_info['shipping_country'],
            'postalCode' : account_info['shipping_postalCode'],
            'institution' : account_info['shipping_institution'],
            'department' : account_info['shipping_department']
        }
    )

account_info <- a dictionary containing all necessary info

Best,
Sander

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant