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


Python BankAccount.IBAN方法代码示例

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


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

示例1: create

# 需要导入模块: from mangopaysdk.entities.bankaccount import BankAccount [as 别名]
# 或者: from mangopaysdk.entities.bankaccount.BankAccount import IBAN [as 别名]
 def create(self):
     client = get_mangopay_api_client()
     mangopay_bank_account = BankAccount()
     mangopay_bank_account.UserId = self.mangopay_user.mangopay_id
     mangopay_bank_account.OwnerName = \
         self.mangopay_user.user.get_full_name()
     mangopay_bank_account.OwnerAddress = self.address
     mangopay_bank_account.IBAN = self.iban
     mangopay_bank_account.BIC = self.bic
     created_bank_account = client.users.CreateBankAccount(
         str(self.mangopay_user.mangopay_id), mangopay_bank_account)
     self.mangopay_id = created_bank_account.Id
     self.save()
开发者ID:bsvetchine,项目名称:django-mangopay,代码行数:15,代码来源:models.py

示例2: getJohnsAccount

# 需要导入模块: from mangopaysdk.entities.bankaccount import BankAccount [as 别名]
# 或者: from mangopaysdk.entities.bankaccount.BankAccount import IBAN [as 别名]
 def getJohnsAccount(self):
     """Creates TestBase._johnsAccount (bank account belonging to John) if not created yet"""
     if self._johnsAccount == None:
         john = self.getJohn()
         account = BankAccount()
         account.Type = 'IBAN'
         account.OwnerName = john.FirstName + ' ' +  john.LastName
         account.OwnerAddress = john.Address
         account.IBAN = 'FR7617906000320008335232973'
         account.BIC = 'BINAADADXXX'
         self._johnsAccount = self.sdk.users.CreateBankAccount(john.Id, account)
         self.assertEqualInputProps(self._johnsAccount, account, True)
     return self._johnsAccount
开发者ID:ebewe,项目名称:mangopay2-python-sdk,代码行数:15,代码来源:testbase.py

示例3: create

# 需要导入模块: from mangopaysdk.entities.bankaccount import BankAccount [as 别名]
# 或者: from mangopaysdk.entities.bankaccount.BankAccount import IBAN [as 别名]
 def create(self):
     client = get_mangopay_api_client()
     mangopay_bank_account = BankAccount()
     mangopay_bank_account.UserId = self.mangopay_user.mangopay_id
     mangopay_bank_account.OwnerName = \
         self.mangopay_user.user.get_full_name()
     mangopay_bank_account.OwnerAddress = self.address
     mangopay_bank_account.IBAN = self.iban
     mangopay_bank_account.BIC = self.bic
     if not mangopay_bank_account.IBAN:
         mangopay_bank_account.Type = 'OTHER'
         bank_details = BankAccountDetailsOTHER()
         bank_details.AccountNumber = self.account_number
         bank_details.Country = self.country
     else:
         bank_details = BankAccountDetailsIBAN()
     mangopay_bank_account.Details = bank_details
     created_bank_account = client.users.CreateBankAccount(
         str(self.mangopay_user.mangopay_id), mangopay_bank_account)
     self.mangopay_id = created_bank_account.Id
     self.save()
开发者ID:ivanm11,项目名称:django-mangopay,代码行数:23,代码来源:models.py


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