當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。