diff --git a/account.go b/account.go index 44c3124510..1366b1baff 100644 --- a/account.go +++ b/account.go @@ -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. @@ -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. diff --git a/account/client_test.go b/account/client_test.go index d3be25a524..ff64eb6eae 100644 --- a/account/client_test.go +++ b/account/client_test.go @@ -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"), }, }, }, @@ -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{