本文整理匯總了Python中mangopaysdk.entities.kycdocument.KycDocument.Id方法的典型用法代碼示例。如果您正苦於以下問題:Python KycDocument.Id方法的具體用法?Python KycDocument.Id怎麽用?Python KycDocument.Id使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類mangopaysdk.entities.kycdocument.KycDocument
的用法示例。
在下文中一共展示了KycDocument.Id方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: ask_for_validation
# 需要導入模塊: from mangopaysdk.entities.kycdocument import KycDocument [as 別名]
# 或者: from mangopaysdk.entities.kycdocument.KycDocument import Id [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')
示例2: GetUserKycDocument
# 需要導入模塊: from mangopaysdk.entities.kycdocument import KycDocument [as 別名]
# 或者: from mangopaysdk.entities.kycdocument.KycDocument import Id [as 別名]
def GetUserKycDocument(self, document_id, user_id):
document = KycDocument()
document.Id = document_id
document.Status = "VALIDATED"
return document