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

API Updates #1286

Merged
merged 1 commit into from
May 26, 2021
Merged
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
16 changes: 16 additions & 0 deletions person.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,21 @@ type DOBParams struct {
Year *int64 `form:"year"`
}

type DocumentsCompanyAuthorizationParams struct {
Files []*string `form:"files"`
}
type DocumentsPassportParams struct {
Files []*string `form:"files"`
}
type DocumentsVisaParams struct {
Files []*string `form:"files"`
}
type DocumentsParams struct {
CompanyAuthorization *DocumentsCompanyAuthorizationParams `form:"company_authorization"`
Passport *DocumentsPassportParams `form:"passport"`
Visa *DocumentsVisaParams `form:"visa"`
}

// RelationshipParams is used to set the relationship between an account and a person.
type RelationshipParams struct {
Director *bool `form:"director"`
Expand Down Expand Up @@ -94,6 +109,7 @@ type PersonParams struct {
AddressKana *AccountAddressParams `form:"address_kana"`
AddressKanji *AccountAddressParams `form:"address_kanji"`
DOB *DOBParams `form:"dob"`
Documents *DocumentsParams `form:"documents"`
Email *string `form:"email"`
FirstName *string `form:"first_name"`
FirstNameKana *string `form:"first_name_kana"`
Expand Down