Пример #1
0
 public virtual async Task <StripeAccount> UpdateAsync(string accountId, StripeAccountUpdateOptions updateOptions, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <StripeAccount> .MapFromJson(
                await Requestor.PostStringAsync(this.ApplyAllParameters(updateOptions, $"{Urls.Accounts}/{accountId}", false),
                                                SetupRequestOptions(requestOptions))
                ));
 }
 public virtual StripeAccount Update(string accountId, StripeAccountUpdateOptions updateOptions, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <StripeAccount> .MapFromJson(
                Requestor.PostString(this.ApplyAllParameters(updateOptions, $"{Urls.BaseUrl}/accounts/{accountId}", false),
                                     SetupRequestOptions(requestOptions))
                ));
 }
Пример #3
0
 public virtual StripeAccount Update(string accountId, StripeAccountUpdateOptions updateOptions, StripeRequestOptions requestOptions = null)
 {
     return Mapper<StripeAccount>.MapFromJson(
         Requestor.PostString(this.ApplyAllParameters(updateOptions, $"{Urls.Accounts}/{accountId}", false),
         SetupRequestOptions(requestOptions))
     );
 }
 public virtual async Task <StripeAccount> UpdateAsync(string accountId, StripeAccountUpdateOptions updateOptions, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(Mapper <StripeAccount> .MapFromJson(
                await Requestor.PostStringAsync(this.ApplyAllParameters(updateOptions, $"{Urls.BaseUrl}/accounts/{accountId}", false),
                                                SetupRequestOptions(requestOptions),
                                                cancellationToken)
                ));
 }
Пример #5
0
 public virtual async Task<StripeAccount> UpdateAsync(string accountId, StripeAccountUpdateOptions updateOptions, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return Mapper<StripeAccount>.MapFromJson(
         await Requestor.PostStringAsync(this.ApplyAllParameters(updateOptions, $"{Urls.Accounts}/{accountId}", false),
         SetupRequestOptions(requestOptions),
         cancellationToken)
     );
 }
Пример #6
0
        public virtual StripeAccount Update(string accountId, StripeAccountUpdateOptions updateOptions)
        {
            var url = string.Format("{0}/{1}", Urls.Accounts, accountId);

            url = this.ApplyAllParameters(updateOptions, url, false);

            var response = Requestor.PostString(url, ApiKey);

            return(Mapper <StripeAccount> .MapFromJson(response));
        }