diff --git a/TransactionReporting/get-account-updater-job-details.py b/TransactionReporting/get-account-updater-job-details.py index 1074faa..6376127 100644 --- a/TransactionReporting/get-account-updater-job-details.py +++ b/TransactionReporting/get-account-updater-job-details.py @@ -27,7 +27,7 @@ def get_account_updater_job_details(): if response.messages.resultCode == apicontractsv1.messageTypeEnum.Ok: if hasattr(response, 'auDetails'): - print('SUCCESS: Get Account Updater job details for Month :' + request.month) + print('SUCCESS: Get Account Updater job details for Month:' + request.month) if response.messages is not None: print('Message Code: %s' % response.messages.message[0]['code'].text) print('Message Text: %s' % response.messages.message[0]['text'].text) @@ -37,8 +37,8 @@ def get_account_updater_job_details(): for details in response.auDetails.auDelete: print('Deleted Profile:') # auDelete Start - print('Customer Profile ID: %s' % details.customerProfileID) - print('Customer Payment Profile ID: %s' % details.customerPaymentProfileID) + print('Customer Profile ID: %s' % details.customerProfileID) + print('Customer Payment Profile ID: %s' % details.customerPaymentProfileID) print('First Name: %s' % details.firstName) print('Last Name: %s' % details.lastName) print('AU Reason Code: %s' % details.auReasonCode) @@ -49,7 +49,11 @@ def get_account_updater_job_details(): print('Card Details:') print('Card Number: %s' % details.creditCard.cardNumber) print('Card Type: %s' % details.creditCard.cardType) - print('Expiration Date: %s' % details.creditCard.expirationDate) + print('Expiration Date: %s' % details.creditCard.expirationDate) + # fetching deleted subscriptions + if hasattr(details.subscriptionIdList, 'subscriptionId') == True: + print(' ') + print('Subscription Id: %s' % details.subscriptionIdList.subscriptionId) # auDelete End print('\n') @@ -57,8 +61,8 @@ def get_account_updater_job_details(): # auUpdate Start print('Updated Profile:') - print('Customer Profile ID: %s' % details.customerProfileID) - print('Customer Payment Profile ID: %s' % details.customerPaymentProfileID) + print('Customer Profile ID: %s' % details.customerProfileID) + print('Customer Payment Profile ID: %s' % details.customerPaymentProfileID) print('First Name: %s' % details.firstName) print('Last Name: %s' % details.lastName) print('AU Reason Code: %s' % details.auReasonCode) @@ -73,15 +77,18 @@ def get_account_updater_job_details(): print('Old Card details:') print('new Card Number: %s' % details.newCreditCard.cardNumber) print('new Card Type: %s' % details.newCreditCard.cardType) - print('new Expiration Date: %s' % details.newCreditCard.expirationDate) + print('new Expiration Date: %s' % details.newCreditCard.expirationDate) + # fetching updated Subscription + if hasattr(details.subscriptionIdList, 'subscriptionId') == True: + print('Subscription Id: %s' % details.subscriptionIdList.subscriptionId) else: - print('Failed to get Get Account Updater job details for Month :' + request.month) + print('Failed to get Get Account Updater job details for Month:' + request.month) print('Message Code: %s' % response.messages.message[0]['code'].text) print('Message Text: %s' % response.messages.message[0]['text'].text) else: - print('Failed to get Get Account Updater job details for Month :' + request.month) + print('Failed to get Get Account Updater job details for Month and year :' + request.month) print('Message Code: %s' % response.messages.message[0]['code'].text) print('Message Text: %s' % response.messages.message[0]['text'].text) else: diff --git a/test-runner.py b/test-runner.py index 7ac7e2f..6c257b6 100644 --- a/test-runner.py +++ b/test-runner.py @@ -602,13 +602,12 @@ def update_held_transaction(self): print("update_held_transaction") modl = imp.load_source('modulename', 'PaymentTransactions/update-held-transaction.py') return modl.update_held_transaction("12345") - # added new method + def get_account_updater_job_details(self): print("get_account_updater_job_details") - modl = imp.load_source('modulename', 'TransactionReporting/get-account-updater-job-details.py') return modl.get_account_updater_job_details() - + def validate_response(self, response): if(response is None): return False
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: