Skip to content

Commit

Permalink
Merge pull request #577 from stripe/remi-add-document-back
Browse files Browse the repository at this point in the history
Add support for `document_back` on Account's legal_entity
  • Loading branch information
brandur-stripe authored Jun 7, 2018
2 parents 6df2caa + 17ce020 commit 1c92fc8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
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

0 comments on commit 1c92fc8

Please sign in to comment.