How to use the mangopaysdk.entities.entitybase.EntityBase function in mangopaysdk

To help you get started, we’ve selected a few mangopaysdk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Mangopay / mangopay2-python-sdk / mangopaysdk / entities / client.py View on Github external
from mangopaysdk.entities.entitybase import EntityBase


class Client (EntityBase):
    """Client entity."""
    
    def __init__(self, id = None):
        # Client identifier
        self.ClientId = None
        # Name of client
        self.Name = None
        # Email of client
        self.Email = None
        # Password for client
        self.Passphrase = None
        # Branding colour to use for theme pages
        self.PrimaryThemeColour = None
        # Branding colour to use for call to action buttons
        self.PrimaryButtonColour = None
        # The URL for MANGOPAY hosted logo
github Mangopay / mangopay2-python-sdk / mangopaysdk / entities / user.py View on Github external
from mangopaysdk.entities.entitybase import EntityBase


class User(EntityBase):

    def __init__(self, id = None):
        super(User, self).__init__(id)
        # Required
        self.Email = None
        # PersonType { LEGAL, NATURAL }
        self.PersonType = None

        # KYCLevel { LIGHT, REGULAR }
        self.KYCLevel = None

    def _setPersonType(self, personType):
        self.PersonType = personType

    def GetReadOnlyProperties(self):
        properties = super(User, self).GetReadOnlyProperties()
github Mangopay / mangopay2-python-sdk / mangopaysdk / entities / card.py View on Github external
from mangopaysdk.entities.entitybase import EntityBase


class Card(EntityBase):
    """Card entity"""
    
    def __init__(self, id = None):
        self.UserId = None
        # MMYY
        self.ExpirationDate = None	
        # first 6 and last 4 are real card numbers for example: 497010XXXXXX4414
        self.Alias = None
        # The card provider, it could be CB, VISA, MASTERCARD, etc.
        self.CardProvider = None
        # CardType enum
        self.CardType = None
        self.Country = None
        self.Product = None
        self.BankCode = None
        # Boolean
github Mangopay / mangopay2-python-sdk / mangopaysdk / entities / cardregistration.py View on Github external
from mangopaysdk.entities.entitybase import EntityBase
from mangopaysdk.tools.enums import CardType


class CardRegistration(EntityBase):
    """CardRegistration entity"""
    
    def __init__(self, id = None):
        self.UserId = None
        self.AccessKey = None
        self.PreregistrationData = None
        self.CardRegistrationURL = None
        self.CardId = None
        self.RegistrationData = None
        self.ResultCode = None
        self.Currency = None
        # CardRegistrationStatus CREATED, ERROR, VALIDATED
        self.Status = None	
        # Set default card type
        self.CardType = CardType.CB_VISA_MASTERCARD
        return super(CardRegistration, self).__init__(id)
github Mangopay / mangopay2-python-sdk / mangopaysdk / entities / wallet.py View on Github external
from mangopaysdk.entities.entitybase import EntityBase
from mangopaysdk.types.money import Money


class Wallet(EntityBase):

    def __init__(self, id = None):
        # Array with owners identites
        self.Owners = []
        self.Description = None
        # Money type
        self.Balance = None
        # Currency code in ISO
        self.Currency = None
        # The funds usage type
        self.FundsType = None
        return super(Wallet, self).__init__(id)
    
    def GetSubObjects(self):
        """Get array with mapping which property is object and what type of object.
        return dictionary
github Mangopay / mangopay2-python-sdk / mangopaysdk / entities / transaction.py View on Github external
from mangopaysdk.entities.entitybase import EntityBase
from mangopaysdk.types.money import Money


class Transaction (EntityBase):
    """Transaction entity.
    Base class for: PayIn, PayOut, Transfer.
    """

    def __init__(self, id = None):
        self.AuthorId = None
        self.CreditedUserId = None
        # Money
        self.DebitedFunds = None
        # Money
        self.CreditedFunds = None
        # Money
        self.Fees = None
        # TransactionType {PAYIN, PAYOUT, TRANSFER}
        self.Type = None
        # TransactionNature {REGULAR, REFUND, REPUDIATION}
github Mangopay / mangopay2-python-sdk / mangopaysdk / entities / cardpreauthorization.py View on Github external
from mangopaysdk.entities.entitybase import EntityBase


class CardPreAuthorization(EntityBase):
    """CardPreAuthorization entity"""
    
    def __init__(self, id = None):
        self.Tag = None
        # The user Id of the author of the pre-authorization
        self.AuthorId = None
        # Money object - amount debited on the bank account of the Author in cents
        self.DebitedFunds = None
        # Mode3DSType { DEFAULT, FORCE }
        self.SecureMode = None
        # This is the URL where users are automatically redirected after 3D secure validation (if activated)
        self.SecureModeReturnURL = None
        # The ID of the registered card (Got through CardRegistration object) 
        self.CardId = None
         # The Id of the associated PayIn
        self.PayInId = None
github Mangopay / mangopay2-python-sdk / mangopaysdk / entities / event.py View on Github external
from mangopaysdk.entities.entitybase import EntityBase


class Event (EntityBase):
    """Event entity."""
    
    def __init__(self, id = None):
        self.ResourceId = ''
        # EventType enum
        self.EventType = None
        # Unix timestamp
        self.Date = None
       
        return super(Event, self).__init__(id)
github Mangopay / mangopay2-python-sdk / mangopaysdk / entities / kycdocument.py View on Github external
from mangopaysdk.entities.entitybase import EntityBase


class KycDocument (EntityBase):
    """KycDocument entity."""

    def __init__(self, id = None):
        self.Tag = ''
        self.UserId = None
        # KycDocumentType:
        self.Type = None
        # KycDocumentStatus
        self.Status = None
        # timestamp
        self.CreationDate = None
        self.RefusedReasonType = None
        self.RefusedReasonMessage = None
        return super(KycDocument, self).__init__(id)

    def GetReadOnlyProperties(self):
github Mangopay / mangopay2-python-sdk / mangopaysdk / entities / bankaccount.py View on Github external
from mangopaysdk.entities.entitybase import EntityBase
from mangopaysdk.types.address import Address


class BankAccount(EntityBase):
    """Bank Account entity."""
    
    def __init__(self, id = None):
        self.UserId = None
        # Type of bank account
        self.Type = None
        self.OwnerName = None
        self.OwnerAddress = None
        self.Active = None
        self.Details = None
        return super(BankAccount, self).__init__(id)

    def GetSubObjects(self):
        """Get array with mapping which property is object and what type of object.
        return dictionary
        """