Пример #1
0
 public virtual StripeRecipient Update(string recipientId, StripeRecipientUpdateOptions updateOptions, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <StripeRecipient> .MapFromJson(
                Requestor.PostString(this.ApplyAllParameters(updateOptions, $"{Urls.Recipients}/{recipientId}", false),
                                     SetupRequestOptions(requestOptions))
                ));
 }
 public virtual StripeRecipient Update(string recipientId, StripeRecipientUpdateOptions updateOptions, StripeRequestOptions requestOptions = null)
 {
     return Mapper<StripeRecipient>.MapFromJson(
         Requestor.PostString(this.ApplyAllParameters(updateOptions, $"{Urls.Recipients}/{recipientId}", false),
         SetupRequestOptions(requestOptions))
     );
 }
Пример #3
0
 public virtual async Task <StripeRecipient> UpdateAsync(string recipientId, StripeRecipientUpdateOptions updateOptions, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(Mapper <StripeRecipient> .MapFromJson(
                await Requestor.PostStringAsync(this.ApplyAllParameters(updateOptions, $"{Urls.Recipients}/{recipientId}", false),
                                                SetupRequestOptions(requestOptions),
                                                cancellationToken)
                ));
 }
 public virtual async Task<StripeRecipient> UpdateAsync(string recipientId, StripeRecipientUpdateOptions updateOptions, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return Mapper<StripeRecipient>.MapFromJson(
         await Requestor.PostStringAsync(this.ApplyAllParameters(updateOptions, $"{Urls.Recipients}/{recipientId}", false),
         SetupRequestOptions(requestOptions),
         cancellationToken)
     );
 }
		public virtual StripeRecipient Update(string recipientId, StripeRecipientUpdateOptions updateOptions)
		{
			var url = string.Format("{0}/{1}", Urls.Recipients, recipientId);
			url = ParameterBuilder.ApplyAllParameters(updateOptions, url);

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

			return Mapper<StripeRecipient>.MapFromJson(response);
		}
Пример #6
0
        public virtual StripeRecipient Update(string recipientId, StripeRecipientUpdateOptions updateOptions)
        {
            var url = string.Format("{0}/{1}", Urls.Recipients, recipientId);

            url = ParameterBuilder.ApplyAllParameters(updateOptions, url);

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

            return(Mapper <StripeRecipient> .MapFromJson(response));
        }
        public virtual StripeRecipient Update(string recipientId, StripeRecipientUpdateOptions updateOptions, StripeRequestOptions requestOptions = null)
        {
            requestOptions = SetupRequestOptions(requestOptions);

            var url = string.Format("{0}/{1}", Urls.Recipients, recipientId);
            url = this.ApplyAllParameters(updateOptions, url, false);

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

            return Mapper<StripeRecipient>.MapFromJson(response);
        }
Пример #8
0
        public virtual StripeRecipient Update(string recipientId, StripeRecipientUpdateOptions updateOptions, StripeRequestOptions requestOptions = null)
        {
            requestOptions = SetupRequestOptions(requestOptions);

            var url = string.Format("{0}/{1}", Urls.Recipients, recipientId);

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

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

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