| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,6 +15,7 @@ def get_subscription(subscriptionId): | |||
| 15 | 15 | getSubscription = apicontractsv1.ARBGetSubscriptionRequest() | |
| 16 | 16 | getSubscription.merchantAuthentication = merchantAuth | |
| 17 | 17 | getSubscription.subscriptionId = subscriptionId | |
| 18 | + getSubscription.includeTransactions = True | ||
| 18 | 19 | ||
| 19 | 20 | getSubscriptionController = ARBGetSubscriptionController(getSubscription) | |
| 20 | 21 | getSubscriptionController.execute() | |
@@ -23,10 +24,13 @@ def get_subscription(subscriptionId): | |||
| 23 | 24 | ||
| 24 | 25 | if (response.messages.resultCode=="Ok"): | |
| 25 | 26 | 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 | ||
| 26 | 30 | else: | |
| 27 | 31 | print ("response code: %s" % response.messages.resultCode) | |
| 28 | 32 | ||
| 29 | 33 | return response | |
| 30 | 34 | ||
| 31 | 35 | if(os.path.basename(__file__) == os.path.basename(sys.argv[0])): | |
| 32 | - get_subscription(constants.subscriptionId) | ||
| 36 | + get_subscription(constants.subscriptionId) | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments