GithubHelp home page GithubHelp logo

don't require email about balanced-api HOT 15 CLOSED

chadwhitacre avatar chadwhitacre commented on September 20, 2024
don't require email

from balanced-api.

Comments (15)

matin avatar matin commented on September 20, 2024

@whit537 that code is from @mjallday :-). You're the first marketplace that doesn't require emails, so it's never come up before.

This issue is approved and will be prioritized and tasked out. Thanks for bringing it up publicly.

from balanced-api.

jkwade avatar jkwade commented on September 20, 2024

from @venuebook:

We'd like to associate multiple merchant accounts with a single email address, currently this is not possible.

If the email address weren't required for the creation of a merchant resource then the above request would be satisfied, no?

from balanced-api.

matin avatar matin commented on September 20, 2024

@jkwade sure. We can't remove the unique constraint on account.email_address because it would be a breaking change, but @venuebook can put the email address in account.meta[email_address].

from balanced-api.

KRecht avatar KRecht commented on September 20, 2024

The heart of the issue for @venuebook is that we would like to associate one e-mail address with multiple bank accounts. This is because some of our users have multiple locations and would like to link bank accounts to each separate location.

from balanced-api.

spacedevin avatar spacedevin commented on September 20, 2024

We would love it if the email address was not the unique identifier, an we could supply whatever we wanted. Right now we are sending a fake email generated using session info, and then updating the email address using our database uuids after the user has been created on our end (if the user needs to be created). This is just silly!

We do not collect email address from our customers.

I can see the benefits of allowing us to provide a unique when creating a user on balanced, but you already provide an ID for it, so I dont see the purpose in constraining it to email address.

from balanced-api.

mahmoudimus avatar mahmoudimus commented on September 20, 2024

I don't really see the need for the email_address field either, all that's needed is really a unique identifier, which can be called unique_identifier or something similar on the Account resource. @arzynik @whit537, take a look at the spec for creating an account.

Our original intention for this was to have a unique identifier and we made a gut call that it would most likely be an email address. Since that's not the case, I don't see why it has to be there -- we can deprecate the field and just add a unique_id field so the Account resource reflects our true intention of that field, a unique identifier to an account.

@matin, thoughts?

from balanced-api.

matin avatar matin commented on September 20, 2024

all that's needed is really a unique identifier, which can be called unique_identifier or something similar on the Account resource

Don't see why that's even necessary. The uri/id on the account is already unique.

from balanced-api.

mahmoudimus avatar mahmoudimus commented on September 20, 2024

Right. Developers can use meta if they want to query accounts by their own identifiers.

from balanced-api.

matin avatar matin commented on September 20, 2024

@mahmoudimus want to issue a pull request to https://github.com/balanced/balanced-api/tree/approved ?

It sounds like the discussion is arguing for the email_address field to be nullable. Does this mean the unique constraint should also be removed? Does that cause a breaking change for anyone?

from balanced-api.

mjallday avatar mjallday commented on September 20, 2024

It's breaking in that Balanced provides code samples where the logic is:

try:
    account = balanced.createAccount(email_address)
except balanced.DuplicateEmailError:
    account = balanced.findAccount(email_address)
...

If the unique requirement is removed then anyone relying on this logic is going to start creating duplicate accounts for their users.

from balanced-api.

matin avatar matin commented on September 20, 2024

This is an approved change. The email_address on Account will be nullable but will stay unique.

from balanced-api.

matin avatar matin commented on September 20, 2024

merged into master and will be deployed tomorrow morning

from balanced-api.

mahmoudimus avatar mahmoudimus commented on September 20, 2024

ping @whit537 @jkwade :D

from balanced-api.

chadwhitacre avatar chadwhitacre commented on September 20, 2024

Sweet! Make it to the Python lib yet?

from balanced-api.

mjallday avatar mjallday commented on September 20, 2024

@whit537 balanced/balanced-python@d38d90a

from balanced-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.