Skip to content

Commit

Permalink
Merge pull request #1 from paulcamper/PD-3683-Show-KYC-refused-reason…
Browse files Browse the repository at this point in the history
…-in-PaulCamper-admin-panel

PD-3683 MangopaySDK: Added new enum for KYCRefusedReason
  • Loading branch information
kirill-a-belov authored Aug 3, 2018
2 parents bf9413b + ac81d62 commit 3f2af29
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion kyc.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,20 @@ const (
DocumentStatusRefused DocumentStatus = "REFUSED"
)

type DocumentRefusedReasonType string

const (
DocumentRefusedReasonTypeUnreadable DocumentRefusedReasonType = "DOCUMENT_UNREADABLE"
DocumentRefusedReasonTypeNotAccepted DocumentRefusedReasonType = "DOCUMENT_NOT_ACCEPTED"
DocumentRefusedReasonTypeHasExpired DocumentRefusedReasonType = "DOCUMENT_HAS_EXPIRED"
DocumentRefusedReasonTypeIncomplete DocumentRefusedReasonType = "DOCUMENT_INCOMPLETE"
DocumentRefusedReasonTypeNotMatchUserData DocumentRefusedReasonType = "DOCUMENT_DO_NOT_MATCH_USER_DATA"
DocumentRefusedReasonTypeNotMatchAccountData DocumentRefusedReasonType = "DOCUMENT_DO_NOT_MATCH_ACCOUNT_DATA"
DocumentRefusedReasonTypeFalsified DocumentRefusedReasonType = "DOCUMENT_FALSIFIED"
DocumentRefusedReasonTypeUnderagePerson DocumentRefusedReasonType = "UNDERAGE PERSON"
DocumentRefusedReasonTypeSpecificCase DocumentRefusedReasonType = "SPECIFIC_CASE"
)

func (m *MangoPay) Document(id string) (*Document, error) {
any, err := m.anyRequest(new(Document), actionFetchKYCDocument, JsonObject{"Id": id})
if err != nil {
Expand Down Expand Up @@ -85,7 +99,7 @@ type Document struct {
Status DocumentStatus
Type DocumentType
RefusedReasonMessage string
RefusedReasonType string
RefusedReasonType DocumentRefusedReasonType

service *MangoPay
}
Expand Down

0 comments on commit 3f2af29

Please sign in to comment.