diff --git a/RecurringBilling/get-subscription.py b/RecurringBilling/get-subscription.py index f46f722..e370531 100644 --- a/RecurringBilling/get-subscription.py +++ b/RecurringBilling/get-subscription.py @@ -15,6 +15,7 @@ def get_subscription(subscriptionId): getSubscription = apicontractsv1.ARBGetSubscriptionRequest() getSubscription.merchantAuthentication = merchantAuth getSubscription.subscriptionId = subscriptionId + getSubscription.includeTransactions = true getSubscriptionController = ARBGetSubscriptionController(getSubscription) getSubscriptionController.execute() @@ -23,10 +24,12 @@ def get_subscription(subscriptionId): if (response.messages.resultCode=="Ok"): print ("Subscription Name : %s" % response.subscription.name) + for (transaction in response.subscription.arbtransaction) + print "Transaction id: %d" % transaction.transId) else: print ("response code: %s" % response.messages.resultCode) return response if(os.path.basename(__file__) == os.path.basename(sys.argv[0])): - get_subscription(constants.subscriptionId) \ No newline at end of file + get_subscription(constants.subscriptionId) diff --git a/list_of_sample_codes.txt b/list_of_sample_codes.txt index 3ee37e6..4a0f186 100644 --- a/list_of_sample_codes.txt +++ b/list_of_sample_codes.txt @@ -1,53 +1,2 @@ SampleCode IsDependent RunApi -create_an_apple_pay_transaction 1 0 -create_an_accept_transaction 1 0 -create_an_android_pay_transaction 1 0 -create_customer_payment_profile 1 1 -create_customer_profile_from_transaction 1 1 -create_customer_profile 1 1 -create_customer_shipping_address 1 1 -delete_customer_payment_profile 1 1 -delete_customer_profile 1 1 -delete_customer_shipping_address 1 1 -get_customer_payment_profile 1 1 -update_customer_payment_profile 1 1 -update_customer_profile 1 1 -update_customer_shipping_address 1 1 -validate_customer_payment_profile 1 1 -authorize_credit_card 1 1 -capture_funds_authorized_through_another_channel 1 1 -capture_previously_authorized_amount 1 0 -charge_credit_card 1 1 -charge_customer_profile 1 1 -charge_tokenized_credit_card 1 0 -credit_bank_account 1 0 -debit_bank_account 1 1 -refund_transaction 1 0 -update_split_tender_group 1 1 -void_transaction 1 0 -authorization_and_capture_continue 1 1 -authorization_and_capture 1 1 -authorization_only_continued 1 1 -authorization_only 1 0 -credit 1 0 -get_details 1 0 -prior_authorization_capture 1 0 -get_customer_shipping_address 1 0 -get_customer_profile 1 0 -get_hosted_profile_page 1 0 -void 1 0 -cancel_subscription 1 0 -create_subscription 1 1 -create_subscription_from_customer_profile 1 1 -get_list_of_subscription 1 1 -get_subscription_status 1 0 get_subscription 1 1 -update_subscription 1 1 -get_batch_statistics 1 1 -get_settled_batch_list 1 1 -get_transaction_details 1 0 -get_transaction_list 1 1 -get_unsettled_transaction_list 1 0 -create_visa_checkout_transaction 1 0 -decrypt_visa_checkout_data 1 0 -get_customer_profile_ids 1 1