當前位置: 首頁>>代碼示例>>Python>>正文


Python BankAccount.Type方法代碼示例

本文整理匯總了Python中mangopaysdk.entities.bankaccount.BankAccount.Type方法的典型用法代碼示例。如果您正苦於以下問題:Python BankAccount.Type方法的具體用法?Python BankAccount.Type怎麽用?Python BankAccount.Type使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在mangopaysdk.entities.bankaccount.BankAccount的用法示例。


在下文中一共展示了BankAccount.Type方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: getJohnsAccount

# 需要導入模塊: from mangopaysdk.entities.bankaccount import BankAccount [as 別名]
# 或者: from mangopaysdk.entities.bankaccount.BankAccount import Type [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

示例2: getJohnsAccount

# 需要導入模塊: from mangopaysdk.entities.bankaccount import BankAccount [as 別名]
# 或者: from mangopaysdk.entities.bankaccount.BankAccount import Type [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.OwnerName = john.FirstName + ' ' +  john.LastName
         account.OwnerAddress = john.Address
         account.UserId = john.Id
         account.Type = 'IBAN'
         account.Details = BankAccountDetailsIBAN()
         account.Details.IBAN = 'FR7618829754160173622224154'
         account.Details.BIC = 'CMBRFR2BCME'
         self._johnsAccount = self.sdk.users.CreateBankAccount(john.Id, account)
         self.assertEqualInputProps(self._johnsAccount, account, True)
     return self._johnsAccount
開發者ID:Kmaschta,項目名稱:mangopay2-python-sdk,代碼行數:17,代碼來源:testbase.py

示例3: create

# 需要導入模塊: from mangopaysdk.entities.bankaccount import BankAccount [as 別名]
# 或者: from mangopaysdk.entities.bankaccount.BankAccount import Type [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

示例4: dict

# 需要導入模塊: from mangopaysdk.entities.bankaccount import BankAccount [as 別名]
# 或者: from mangopaysdk.entities.bankaccount.BankAccount import Type [as 別名]
    data = dict(
        accessKeyRef=cr.AccessKey,
        cardNumber='3569990000000132',
        cardExpirationDate='1234',
        cardCvx='123',
        data=cr.PreregistrationData,
    )
    cr.RegistrationData = requests.post(cr.CardRegistrationURL, data).text
    cr = mangoapi.cardRegistrations.Update(cr)
    cls.card_id = cr.CardId
    del cr, data

    cls.homer_id = make_mangopay_account('Homer')
    cls.homer_wallet_id = make_wallet(cls.homer_id).Id
    ba = BankAccount()
    ba.OwnerName = 'Homer Jay'
    addr = ba.OwnerAddress = Address()
    addr.AddressLine1 = 'Somewhere'
    addr.City = 'The City of Light'
    addr.PostalCode = '75001'
    addr.Country = 'FR'
    ba.Details = BankAccountDetailsIBAN()
    ba.Details.IBAN = 'FR1420041010050500013M02606'
    cls.bank_account = mangoapi.users.CreateBankAccount(cls.homer_id, ba)

    ba = BankAccount()
    ba.Type = 'IBAN'
    ba.Details = BankAccountDetailsIBAN()
    ba.Details.IBAN = 'IR861234568790123456789012'
    cls.bank_account_outside_sepa = ba
開發者ID:Calinou,項目名稱:liberapay.com,代碼行數:32,代碼來源:mangopay.py


注:本文中的mangopaysdk.entities.bankaccount.BankAccount.Type方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。