File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed 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,13 @@ def get_subscription(subscriptionId):
2324
2425 if (response .messages .resultCode == "Ok" ):
2526 print ("Subscription Name : %s" % response .subscription .name )
27+ print ("Subscription Amount: %s" % response .subscription .amount )
28+ for transaction in response .subscription .arbTransactions .arbTransaction :
29+ print "Transaction id: %d" % transaction .transId
2630 else :
2731 print ("response code: %s" % response .messages .resultCode )
2832
2933 return response
3034
3135if (os .path .basename (__file__ ) == os .path .basename (sys .argv [0 ])):
32- get_subscription (constants .subscriptionId )
36+ get_subscription (constants .subscriptionId )
You can’t perform that action at this time.
0 commit comments