当前位置: 首页>>代码示例>>Python>>正文


Python KycDocument.Status方法代码示例

本文整理汇总了Python中mangopaysdk.entities.kycdocument.KycDocument.Status方法的典型用法代码示例。如果您正苦于以下问题:Python KycDocument.Status方法的具体用法?Python KycDocument.Status怎么用?Python KycDocument.Status使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在mangopaysdk.entities.kycdocument.KycDocument的用法示例。


在下文中一共展示了KycDocument.Status方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_Users_CreateKycPage_CorrectFilePath

# 需要导入模块: from mangopaysdk.entities.kycdocument import KycDocument [as 别名]
# 或者: from mangopaysdk.entities.kycdocument.KycDocument import Status [as 别名]
    def test_Users_CreateKycPage_CorrectFilePath(self) :
        user = self.getJohn()
        kycDocumentInit = KycDocument()
        kycDocumentInit.Status = KycDocumentStatus.CREATED
        kycDocumentInit.Type = KycDocumentType.IDENTITY_PROOF
        kycDocument = self.sdk.users.CreateUserKycDocument(kycDocumentInit, user.Id)

        self.sdk.users.CreateKycPageFromFile(user.Id, kycDocument.Id, os.path.join(os.path.dirname(__file__), "TestKycPageFile.png"))
开发者ID:Homeloc,项目名称:mangopay2-python-sdk,代码行数:10,代码来源:testapiusers.py

示例2: test_Users_CreateKycPage_WrongFilePath

# 需要导入模块: from mangopaysdk.entities.kycdocument import KycDocument [as 别名]
# 或者: from mangopaysdk.entities.kycdocument.KycDocument import Status [as 别名]
 def test_Users_CreateKycPage_WrongFilePath(self) :
     user = self.getJohn()
     kycDocumentInit = KycDocument()
     kycDocumentInit.Status = KycDocumentStatus.CREATED
     kycDocumentInit.Type = KycDocumentType.IDENTITY_PROOF
     kycDocument = self.sdk.users.CreateUserKycDocument(kycDocumentInit, user.Id)
     
     try:
         self.sdk.users.CreateKycPageFromFile(user.Id, kycDocument.Id, 'notExistFileName.tmp')
     except Exception as exc:
         self.assertTrue(str(exc).find('File not exist') != -1)
开发者ID:Homeloc,项目名称:mangopay2-python-sdk,代码行数:13,代码来源:testapiusers.py

示例3: test_Users_CreateKycPage_EmptyFilePath

# 需要导入模块: from mangopaysdk.entities.kycdocument import KycDocument [as 别名]
# 或者: from mangopaysdk.entities.kycdocument.KycDocument import Status [as 别名]
 def test_Users_CreateKycPage_EmptyFilePath(self):
     user = self.getJohn()
     kycDocumentInit = KycDocument()
     kycDocumentInit.Status = KycDocumentStatus.CREATED
     kycDocumentInit.Type = KycDocumentType.IDENTITY_PROOF
     kycDocument = self.sdk.users.CreateUserKycDocument(kycDocumentInit, user.Id)
     
     try:
         self.sdk.users.CreateKycPageFromFile(user.Id, kycDocument.Id, '')
     except Exception as exc:
         self.assertEqual(str(exc), 'Path of file cannot be empty')
开发者ID:Homeloc,项目名称:mangopay2-python-sdk,代码行数:13,代码来源:testapiusers.py

示例4: test_Users_CreateKycPage_CorrectFileString

# 需要导入模块: from mangopaysdk.entities.kycdocument import KycDocument [as 别名]
# 或者: from mangopaysdk.entities.kycdocument.KycDocument import Status [as 别名]
 def test_Users_CreateKycPage_CorrectFileString(self):
     user = self.getJohn()
     kycDocumentInit = KycDocument()
     kycDocumentInit.Status = KycDocumentStatus.CREATED
     kycDocumentInit.Type = KycDocumentType.IDENTITY_PROOF
     kycDocument = self.sdk.users.CreateUserKycDocument(kycDocumentInit, user.Id)
     kycPage = KycPage()
     kycPage.File = 'dGVzdCB0ZXN0IHRlc3QgdGVzdA=='
     
     kycPageResponse = self.sdk.users.CreateUserKycPage(kycPage, user.Id, kycDocument.Id)
     self.assertEqual(kycPageResponse, None)
开发者ID:depop,项目名称:mangopay2-python-sdk,代码行数:13,代码来源:testapiusers.py

示例5: ask_for_validation

# 需要导入模块: from mangopaysdk.entities.kycdocument import KycDocument [as 别名]
# 或者: from mangopaysdk.entities.kycdocument.KycDocument import Status [as 别名]
 def ask_for_validation(self):
     if self.status == CREATED:
         document = KycDocument()
         document.Id = self.mangopay_id
         document.Status = "VALIDATION_ASKED"
         client = get_mangopay_api_client()
         updated_document = client.users.UpdateUserKycDocument(
             document, self.mangopay_user.mangopay_id, self.mangopay_id)
         self.status = STATUS_CHOICES_DICT[updated_document.Status]
         self.save()
     else:
         raise BaseException('Cannot ask for validation of a document'
                             'not in the created state')
开发者ID:bsvetchine,项目名称:django-mangopay,代码行数:15,代码来源:models.py

示例6: GetUserKycDocument

# 需要导入模块: from mangopaysdk.entities.kycdocument import KycDocument [as 别名]
# 或者: from mangopaysdk.entities.kycdocument.KycDocument import Status [as 别名]
 def GetUserKycDocument(self, document_id, user_id):
     document = KycDocument()
     document.Id = document_id
     document.Status = "VALIDATED"
     return document
开发者ID:boardaboat,项目名称:django-mangopay,代码行数:7,代码来源:client.py


注:本文中的mangopaysdk.entities.kycdocument.KycDocument.Status方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。