-
Notifications
You must be signed in to change notification settings - Fork 460
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
account.GetByID: LegalEntity not set #580
Comments
@nd2s That code works for me. Do you have an example account id where it's not working? |
@remi-stripe Full example without key: package main
import (
"fmt"
"github.com/stripe/stripe-go"
"github.com/stripe/stripe-go/account"
)
func main() {
stripe.Key = "sk_test_xxx"
accountID := "acct_1CKmBeBlVKHXDelz"
acc, err := account.GetByID(accountID, nil)
if err != nil {
panic(err)
}
fmt.Println(acc.LegalEntity)
} Output:
Is that enough info? |
I also removed the vendor dir, cleared the glide cache and installed the dependencies again. Didn't help. |
Remi's fix released in 32.4.1. |
nadaismail-stripe
pushed a commit
that referenced
this issue
Oct 18, 2024
* added missing fields to open spec/ updated parsing to iterate over nested sub-hashes * updated open spec and parsing based on PR feedback * removing garbage fields * adding nested subhashes back * updating lets to vars per comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the latest version (
32.4.0
/ a90cccc) Account.LegalEntity is not set when getting an account.=>
(*stripe.LegalEntity)(nil)
It's there when fetching with
curl
.The text was updated successfully, but these errors were encountered: