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

Add support for document_back on Account's legal_entity #577

Merged
merged 1 commit into from
Jun 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions account.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ type AdditionalOwnerParams struct {

// IdentityVerification represents a verification during account creation/updates.
type IdentityVerificationParams struct {
Document *string `form:"document"`
Document *string `form:"document"`
DocumentBack *string `form:"document_back"`
}

// AccountListParams are the parameters allowed during account listing.
Expand Down Expand Up @@ -406,10 +407,11 @@ type AdditionalOwner struct {

// IdentityVerification is the structure for an account's verification.
type IdentityVerification struct {
Details string `json:"details"`
DetailsCode IdentityVerificationDetailsCode `json:"details_code"`
Document *FileUpload `json:"document"`
Status IdentityVerificationStatus `json:"status"`
Details string `json:"details"`
DetailsCode IdentityVerificationDetailsCode `json:"details_code"`
Document *FileUpload `json:"document"`
DocumentBack *FileUpload `json:"document_back"`
Status IdentityVerificationStatus `json:"status"`
}

// PayoutSchedule is the structure for an account's payout schedule.
Expand Down
6 changes: 4 additions & 2 deletions account/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ func TestAccountNew(t *testing.T) {
{
FirstName: stripe.String("Jane"),
Verification: &stripe.IdentityVerificationParams{
Document: stripe.String("file_345"),
Document: stripe.String("file_345"),
DocumentBack: stripe.String("file_567"),
},
},
},
Expand All @@ -63,7 +64,8 @@ func TestAccountNew(t *testing.T) {
Year: stripe.Int64(1990),
},
Verification: &stripe.IdentityVerificationParams{
Document: stripe.String("file_123"),
Document: stripe.String("file_123"),
DocumentBack: stripe.String("file_234"),
},
},
TOSAcceptance: &stripe.TOSAcceptanceParams{
Expand Down