示例#1
0
        // not available :(
        //public virtual StripeDeleted Delete(string sourceId, StripeRequestOptions requestOptions = null)
        //{
        //    return DeleteEntity($"{Urls.BaseUrl}/sources/{sourceId}", requestOptions);
        //}



        // Async
        public virtual Task <StripeSource> CreateAsync(StripeSourceCreateOptions options, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
        {
            return(PostAsync($"{Urls.BaseUrl}/sources", requestOptions, cancellationToken, options));
        }
示例#2
0
 // Sync
 public virtual StripeSource Create(StripeSourceCreateOptions options, StripeRequestOptions requestOptions = null)
 {
     return(Post($"{Urls.BaseUrl}/sources", requestOptions, options));
 }