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


Python HpsGiftCard.card_number方法代码示例

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


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

示例1: test_074_replace_gift_2

# 需要导入模块: from securesubmit.entities.gift import HpsGiftCard [as 别名]
# 或者: from securesubmit.entities.gift.HpsGiftCard import card_number [as 别名]
    def test_074_replace_gift_2(self):
        new_card = HpsGiftCard()
        new_card.card_number = '5022440000000000098'

        old_card = HpsGiftCard()
        old_card.card_number = '5022440000000000007'

        response = self.gift_service.replace()\
            .with_old_card(old_card)\
            .with_new_card(new_card)\
            .execute()
        self.assertIsNotNone(response)
        self.assertEqual('0', response.response_code)
开发者ID:hps,项目名称:heartland-python,代码行数:15,代码来源:test_moto.py

示例2: test_059_deactivate_gift_1

# 需要导入模块: from securesubmit.entities.gift import HpsGiftCard [as 别名]
# 或者: from securesubmit.entities.gift.HpsGiftCard import card_number [as 别名]
    def test_059_deactivate_gift_1(self):
        card = HpsGiftCard()
        card.card_number = '5022440000000000098'

        response = self.gift_service.deactivate().with_card(card).execute()
        self.assertIsNotNone(response)
        self.assertEqual('0', response.response_code)
开发者ID:hps,项目名称:heartland-python,代码行数:9,代码来源:test_moto.py

示例3: test_058_reversal_gift_2

# 需要导入模块: from securesubmit.entities.gift import HpsGiftCard [as 别名]
# 或者: from securesubmit.entities.gift.HpsGiftCard import card_number [as 别名]
    def test_058_reversal_gift_2(self):
        card = HpsGiftCard()
        card.card_number = '5022440000000000007'

        reversal_response = self.gift_service.reverse(2.00).with_card(card).execute()
        self.assertIsNotNone(reversal_response)
        self.assertEqual('0', reversal_response.response_code)
开发者ID:hps,项目名称:heartland-python,代码行数:9,代码来源:test_moto.py

示例4: test_047_add_value_gift_2

# 需要导入模块: from securesubmit.entities.gift import HpsGiftCard [as 别名]
# 或者: from securesubmit.entities.gift.HpsGiftCard import card_number [as 别名]
    def test_047_add_value_gift_2(self):
        card = HpsGiftCard()
        card.card_number = '5022440000000000007'

        response = self.gift_service.add_value(9.00).with_card(card).execute()
        self.assertIsNotNone(response)
        self.assertEqual('0', response.response_code)
开发者ID:hps,项目名称:heartland-python,代码行数:9,代码来源:test_moto.py

示例5: test_062_balance_inquiry_rewards_2

# 需要导入模块: from securesubmit.entities.gift import HpsGiftCard [as 别名]
# 或者: from securesubmit.entities.gift.HpsGiftCard import card_number [as 别名]
    def test_062_balance_inquiry_rewards_2(self):
        card = HpsGiftCard()
        card.card_number = '5022440000000000007'

        response = self.gift_service.balance().with_card(card).execute()
        self.assertIsNotNone(response)
        self.assertEqual('0', response.response_code)
        self.assertEqual(u'0', response.points_balance_amount)
开发者ID:hps,项目名称:heartland-python,代码行数:10,代码来源:test_moto.py

示例6: test_055_sale_gift_2_reversal

# 需要导入模块: from securesubmit.entities.gift import HpsGiftCard [as 别名]
# 或者: from securesubmit.entities.gift.HpsGiftCard import card_number [as 别名]
    def test_055_sale_gift_2_reversal(self):
        card = HpsGiftCard()
        card.card_number = '5022440000000000007'

        response = self.gift_service.sale(4.00).with_card(card).execute()
        self.assertIsNotNone(response)
        self.assertEqual('0', response.response_code)
        self.__class__.test_53_transaction_id = response.transaction_id
开发者ID:hps,项目名称:heartland-python,代码行数:10,代码来源:test_moto.py

示例7: test_048_balance_inquiry_gift_1

# 需要导入模块: from securesubmit.entities.gift import HpsGiftCard [as 别名]
# 或者: from securesubmit.entities.gift.HpsGiftCard import card_number [as 别名]
    def test_048_balance_inquiry_gift_1(self):
        card = HpsGiftCard()
        card.card_number = '5022440000000000098'

        response = self.gift_service.balance().with_card(card).execute()
        self.assertIsNotNone(response)
        self.assertEqual('0', response.response_code)
        self.assertEqual(u'10.00', response.balance_amount)
开发者ID:hps,项目名称:heartland-python,代码行数:10,代码来源:test_moto.py

示例8: test_072_rewards_gift_2

# 需要导入模块: from securesubmit.entities.gift import HpsGiftCard [as 别名]
# 或者: from securesubmit.entities.gift.HpsGiftCard import card_number [as 别名]
    def test_072_rewards_gift_2(self):
        card = HpsGiftCard()
        card.card_number = '5022440000000000007'

        response = self.gift_service.reward(11)\
            .with_card(card)\
            .execute()
        self.assertIsNotNone(response)
        self.assertEqual('0', response.response_code)
开发者ID:hps,项目名称:heartland-python,代码行数:11,代码来源:test_moto.py

示例9: test_069_redeem_points_gift_2

# 需要导入模块: from securesubmit.entities.gift import HpsGiftCard [as 别名]
# 或者: from securesubmit.entities.gift.HpsGiftCard import card_number [as 别名]
    def test_069_redeem_points_gift_2(self):
        card = HpsGiftCard()
        card.card_number = '5022440000000000007'

        response = self.gift_service.sale(200)\
            .with_currency('points')\
            .with_card(card)\
            .execute()
        self.assertIsNotNone(response)
        self.assertEqual('0', response.response_code)
开发者ID:hps,项目名称:heartland-python,代码行数:12,代码来源:test_moto.py

示例10: test_067_delete_alias_gift_1

# 需要导入模块: from securesubmit.entities.gift import HpsGiftCard [as 别名]
# 或者: from securesubmit.entities.gift.HpsGiftCard import card_number [as 别名]
    def test_067_delete_alias_gift_1(self):
        card = HpsGiftCard()
        card.card_number = '5022440000000000098'

        response = self.gift_service.alias()\
            .with_card(card)\
            .with_alias('2145550199')\
            .with_action('DELETE')\
            .execute()
        self.assertIsNotNone(response)
        self.assertEqual('0', response.response_code)
开发者ID:hps,项目名称:heartland-python,代码行数:13,代码来源:test_moto.py

示例11: gift_card_2

# 需要导入模块: from securesubmit.entities.gift import HpsGiftCard [as 别名]
# 或者: from securesubmit.entities.gift.HpsGiftCard import card_number [as 别名]
    def gift_card_2(self):
        card = HpsGiftCard()
        card.card_number = '5022440000000000007'

        return card
开发者ID:derikrichards,项目名称:heartland-python,代码行数:7,代码来源:moto.py


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