Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion RecurringBilling/get-subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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)
get_subscription(constants.subscriptionId)
51 changes: 0 additions & 51 deletions list_of_sample_codes.txt
Original file line number Diff line number Diff line change
@@ -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