Comments (15)
@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.
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.
@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.
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.
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.
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.
all that's needed is really a unique identifier, which can be called
unique_identifier
or something similar on theAccount
resource
Don't see why that's even necessary. The uri/id on the account is already unique.
from balanced-api.
Right. Developers can use meta if they want to query accounts by their own identifiers.
from balanced-api.
@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.
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.
This is an approved change. The email_address
on Account will be nullable but will stay unique.
from balanced-api.
merged into master and will be deployed tomorrow morning
from balanced-api.
from balanced-api.
Sweet! Make it to the Python lib yet?
from balanced-api.
@whit537 balanced/balanced-python@d38d90a
from balanced-api.
Related Issues (20)
- Return links to unsettled credits links from /accounts/{accounts.id}/credits HOT 14
- `Name` should be a required field on BankAccounts
- Dispute Document API HOT 1
- Return the bank account removal reason via noc_reason instead of meta HOT 1
- Add a link from the credit to a settlement HOT 2
- Disputes that come into arbitration should include notes saying why
- Adding ability to enter Payment Details for bank account withdrawals HOT 1
- "/customers/{:customer_id}/orders" returns the entire orders in the marketplace HOT 1
- Flexible search endpoint
- "orders/{:order_id}/holds" link is missing
- Support marketplace settlement of a seller's negative Account balance HOT 2
- Allow filtering logs by settlements
- Create Settlements via Dashboard
- Disputes should expose detailed reason codes when possible
- BankAccountVerification creation issues HOT 10
- Allow validation for emails with the .management TLD as it complies with RFC-2822
- No SAQ A solution (IFrame or full redirect), only SAQ A-EP solutions
- after deleted the card get card api returning card info HOT 1
- Iat and ica support
- IAT Implementation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from balanced-api.