Beispiel #1
0
    def __init__(self,
                 customer_identifier=None,
                 account_identifier=None,
                 token=None,
                 label=None,
                 last_four_digits=None,
                 expiration_date=None,
                 status=None,
                 created_date=None,
                 activation_date=None,
                 contact_information=None):
        """Constructor for the CreditCardModel class"""

        # Initialize members of the class
        self.customer_identifier = customer_identifier
        self.account_identifier = account_identifier
        self.token = token
        self.label = label
        self.last_four_digits = last_four_digits
        self.expiration_date = expiration_date
        self.status = status
        self.created_date = APIHelper.RFC3339DateTime(
            created_date) if created_date else None
        self.activation_date = APIHelper.RFC3339DateTime(
            activation_date) if activation_date else None
        self.contact_information = contact_information
    def __init__(self,
                 utid=None,
                 reward_name=None,
                 currency_code=None,
                 status=None,
                 value_type=None,
                 reward_type=None,
                 created_date=None,
                 last_update_date=None,
                 countries=None,
                 min_value=None,
                 max_value=None,
                 face_value=None):
        """Constructor for the ItemModel class"""

        # Initialize members of the class
        self.utid = utid
        self.reward_name = reward_name
        self.currency_code = currency_code
        self.status = status
        self.value_type = value_type
        self.reward_type = reward_type
        self.created_date = APIHelper.RFC3339DateTime(
            created_date) if created_date else None
        self.last_update_date = APIHelper.RFC3339DateTime(
            last_update_date) if last_update_date else None
        self.countries = countries
        self.min_value = min_value
        self.max_value = max_value
        self.face_value = face_value
    def __init__(self,
                 reference_order_id=None,
                 customer_identifier=None,
                 account_identifier=None,
                 account_number=None,
                 amount_charged=None,
                 margin_share=None,
                 utid=None,
                 reward_name=None,
                 sender=None,
                 recipient=None,
                 send_email=None,
                 status=None,
                 created_at=None,
                 etid=None):
        """Constructor for the OrderSummaryModel class"""

        # Initialize members of the class
        self.reference_order_id = reference_order_id
        self.customer_identifier = customer_identifier
        self.account_identifier = account_identifier
        self.account_number = account_number
        self.amount_charged = amount_charged
        self.margin_share = margin_share
        self.utid = utid
        self.reward_name = reward_name
        self.sender = sender
        self.recipient = recipient
        self.send_email = send_email
        self.status = status
        self.created_at = APIHelper.RFC3339DateTime(
            created_at) if created_at else None
        self.etid = etid
Beispiel #4
0
    def __init__(self, created_date=None, message=None, token=None):
        """Constructor for the UnregisterCreditCardResponseModel class"""

        # Initialize members of the class
        self.created_date = APIHelper.RFC3339DateTime(
            created_date) if created_date else None
        self.message = message
        self.token = token
Beispiel #5
0
    def __init__(self,
                 created_at=None,
                 id=None):
        """Constructor for the ResendOrderResponseModel class"""

        # Initialize members of the class
        self.created_at = APIHelper.RFC3339DateTime(created_at) if created_at else None
        self.id = id
Beispiel #6
0
    def __init__(self,
                 last_modified_date=None,
                 reward_currency=None,
                 base_currency=None,
                 base_fx=None):
        """Constructor for the ExchangeRateModel class"""

        # Initialize members of the class
        self.last_modified_date = APIHelper.RFC3339DateTime(
            last_modified_date) if last_modified_date else None
        self.reward_currency = reward_currency
        self.base_currency = base_currency
        self.base_fx = base_fx
    def __init__(self,
                 account_identifier=None,
                 account_number=None,
                 display_name=None,
                 created_at=None,
                 status=None):
        """Constructor for the AccountSummaryModel class"""

        # Initialize members of the class
        self.account_identifier = account_identifier
        self.account_number = account_number
        self.display_name = display_name
        self.created_at = APIHelper.RFC3339DateTime(
            created_at) if created_at else None
        self.status = status
Beispiel #8
0
    def __init__(self,
                 reference_order_id=None,
                 customer_identifier=None,
                 account_identifier=None,
                 account_number=None,
                 amount_charged=None,
                 denomination=None,
                 utid=None,
                 reward_name=None,
                 send_email=None,
                 status=None,
                 created_at=None,
                 reward=None,
                 sender=None,
                 recipient=None,
                 etid=None,
                 campaign=None,
                 email_subject=None,
                 external_ref_id=None,
                 message=None,
                 notes=None,
                 margin_share=None):
        """Constructor for the OrderModel class"""

        # Initialize members of the class
        self.reference_order_id = reference_order_id
        self.customer_identifier = customer_identifier
        self.account_identifier = account_identifier
        self.account_number = account_number
        self.amount_charged = amount_charged
        self.denomination = denomination
        self.utid = utid
        self.reward_name = reward_name
        self.send_email = send_email
        self.status = status
        self.created_at = APIHelper.RFC3339DateTime(created_at) if created_at else None
        self.reward = reward
        self.sender = sender
        self.recipient = recipient
        self.etid = etid
        self.campaign = campaign
        self.email_subject = email_subject
        self.external_ref_id = external_ref_id
        self.message = message
        self.notes = notes
        self.margin_share = margin_share
Beispiel #9
0
    def __init__(self,
                 amount=None,
                 amount_charged=None,
                 created_date=None,
                 fee_percent=None,
                 reference_deposit_id=None,
                 status=None):
        """Constructor for the GetDepositResponseModel class"""

        # Initialize members of the class
        self.amount = amount
        self.amount_charged = amount_charged
        self.created_date = APIHelper.RFC3339DateTime(
            created_date) if created_date else None
        self.fee_percent = fee_percent
        self.reference_deposit_id = reference_deposit_id
        self.status = status
Beispiel #10
0
    def __init__(self,
                 account_identifier=None,
                 account_number=None,
                 display_name=None,
                 currency_code='USD',
                 current_balance=None,
                 created_at=None,
                 status=None,
                 contact_email=None):
        """Constructor for the AccountModel class"""

        # Initialize members of the class
        self.account_identifier = account_identifier
        self.account_number = account_number
        self.display_name = display_name
        self.currency_code = currency_code
        self.current_balance = current_balance
        self.created_at = APIHelper.RFC3339DateTime(
            created_at) if created_at else None
        self.status = status
        self.contact_email = contact_email