File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ def get_subscription(subscriptionId):
1515 getSubscription = apicontractsv1 .ARBGetSubscriptionRequest ()
1616 getSubscription .merchantAuthentication = merchantAuth
1717 getSubscription .subscriptionId = subscriptionId
18+ getSubscription .includeTransactions = true
1819
1920 getSubscriptionController = ARBGetSubscriptionController (getSubscription )
2021 getSubscriptionController .execute ()
@@ -23,10 +24,12 @@ def get_subscription(subscriptionId):
2324
2425 if (response .messages .resultCode == "Ok" ):
2526 print ("Subscription Name : %s" % response .subscription .name )
27+ for (transaction in response .subscription .transactions )
28+ print "Transaction id: %d" % transaction .transId )
2629 else :
2730 print ("response code: %s" % response .messages .resultCode )
2831
2932 return response
3033
3134if (os .path .basename (__file__ ) == os .path .basename (sys .argv [0 ])):
32- get_subscription (constants .subscriptionId )
35+ get_subscription (constants .subscriptionId )
You can’t perform that action at this time.
0 commit comments