/// <summary> /// Lists webhooks for an app. /// </summary> /// <returns>A task object representing webhook list.</returns> public async Task <WebListHookResponse> ListWebHooksAsync() { return(await _paypalRestApiClient.Get <WebListHookResponse>(ApiUrl)); }
/// <summary> /// Lists billing plans. /// </summary> /// <returns>A task object representing list of plans.</returns> public async Task <PlanListResponse> ListPlansAsync() { return(await _paypalRestApiClient.Get <PlanListResponse>(ApiUrl)); }
/// <summary> /// Shows details for a subscription, by ID. /// </summary> /// <param name="id">The ID of the subscription.</param> /// <returns>A task object representing subscription object.</returns> public async Task <Subscription> GetSubscriptionAsync(string id) { return(await _paypalRestApiClient.Get <Subscription>($"{ApiUrl}/{id}")); }