{"action":"opened","issue":{"url":"https://api.github.com/repos/stripe/stripe-dotnet/issues/1012","repository_url":"https://api.github.com/repos/stripe/stripe-dotnet","labels_url":"https://api.github.com/repos/stripe/stripe-dotnet/issues/1012/labels{/name}","comments_url":"https://api.github.com/repos/stripe/stripe-dotnet/issues/1012/comments","events_url":"https://api.github.com/repos/stripe/stripe-dotnet/issues/1012/events","html_url":"https://github.com/stripe/stripe-dotnet/issues/1012","id":258925141,"number":1012,"title":"Some errors with a vb.net version of the code","user":{"login":"vbwyrde","id":31293466,"avatar_url":"https://avatars3.githubusercontent.com/u/31293466?v=4","gravatar_id":"","url":"https://api.github.com/users/vbwyrde","html_url":"https://github.com/vbwyrde","followers_url":"https://api.github.com/users/vbwyrde/followers","following_url":"https://api.github.com/users/vbwyrde/following{/other_user}","gists_url":"https://api.github.com/users/vbwyrde/gists{/gist_id}","starred_url":"https://api.github.com/users/vbwyrde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbwyrde/subscriptions","organizations_url":"https://api.github.com/users/vbwyrde/orgs","repos_url":"https://api.github.com/users/vbwyrde/repos","events_url":"https://api.github.com/users/vbwyrde/events{/privacy}","received_events_url":"https://api.github.com/users/vbwyrde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-19T18:50:33Z","updated_at":"2017-09-19T18:50:33Z","closed_at":null,"author_association":"NONE","body":"To be honest, I do not know if this is a bug.  It may be.  At the very least it's confusing me and I imagine others might be in the same boat.  I took the c# code and used Telerik to translate it into vb.net which is what my project uses.  I don't typically have a problem doing so.  In this case I took the code and applied it to a new asp.net page.  I made no further modifications other than to add the Imports Stripe.  I am using the stripe.net version 10.4.0.0.  The code shows numerous places where the error reads \"is not accessible in this context because it is 'Friend'.\"  I also am getting errors on the Me.ApplyAllParameters object which says \"not a member of the stripe connect stripe oauth token service\".  I realize that since I used a converter to create the vb.net version of this code the conversion may have been flawed.  However, I've done these types of conversions hundreds of times and have not had issues with it, so I'm inclined to think it's something else, and possibly an issue with the stripe dll somehow.  Anyway, if you can help me to understand this I'd very much appreciate it.  And apologies in advance if it's just some dumb oversight on my part!\r\n\r\n\r\nHere is the code:\r\n\r\nImports Stripe\r\nImports Stripe.Infrastructure\r\nImports System.IO\r\nImports System.Threading\r\nImports System.Threading.Tasks\r\nImports System.Web.Script.Serialization\r\nImports Newtonsoft.Json\r\n\r\nPublic Class StripeConnect\r\n    Inherits System.Web.UI.Page\r\n\r\n    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load\r\n\r\n    End Sub\r\n\r\n    Public Class StripeOAuthTokenService\r\n        Inherits StripeService\r\n        Public Sub New(Optional apiKey As String = Nothing)\r\n            MyBase.New(apiKey)\r\n        End Sub\r\n\r\n        'Sync\r\n        Public Overridable Function Create(createOptions As StripeOAuthTokenCreateOptions, Optional requestOptions As StripeRequestOptions = Nothing) As StripeOAuthToken\r\n            Return Mapper(Of StripeOAuthToken).MapFromJson(Requestor.PostStringBearer(Me.ApplyAllParameters(createOptions, Urls.OAuthToken, False), SetupRequestOptions(requestOptions)))\r\n        End Function\r\n\r\n        Public Overridable Function Deauthorize(clientId As String, stripeUserId As String, Optional requestOptions As StripeRequestOptions = Nothing) As StripeOAuthDeauthorize\r\n            Dim url = ParameterBuilder.ApplyParameterToUrl(Urls.OAuthDeauthorize, \"client_id\", clientId)\r\n            url = ParameterBuilder.ApplyParameterToUrl(url, \"stripe_user_id\", stripeUserId)\r\n\r\n            Return Mapper(Of StripeOAuthDeauthorize).MapFromJson(Requestor.PostString(url, SetupRequestOptions(requestOptions)))\r\n        End Function\r\n\r\n        'Async\r\n        Public Overridable Function CreateAsync(createOptions As StripeOAuthTokenCreateOptions, Optional requestOptions As StripeRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of StripeOAuthToken)\r\n            Return Mapper(Of StripeOAuthToken).MapFromJson(Await Requestor.PostStringBearerAsync(Me.ApplyAllParameters(createOptions, Urls.OAuthToken, False), SetupRequestOptions(requestOptions), cancellationToken))\r\n        End Function\r\n\r\n        Public Overridable Function DeauthorizeAsync(clientId As String, stripeUserId As String, Optional requestOptions As StripeRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of StripeOAuthDeauthorize)\r\n            Dim url = ParameterBuilder.ApplyParameterToUrl(Urls.OAuthDeauthorize, \"client_id\", clientId)\r\n            url = ParameterBuilder.ApplyParameterToUrl(url, \"stripe_user_id\", stripeUserId)\r\n\r\n            Return Mapper(Of StripeOAuthDeauthorize).MapFromJson(Await Requestor.PostStringAsync(url, SetupRequestOptions(requestOptions), cancellationToken))\r\n        End Function\r\n\r\n    End Class\r\n\r\nEnd Class\r\n"}}
{"actor":{"display_login":"vbwyrde"}}