//Sync
 public virtual StripeTransfer Create(StripeTransferCreateOptions createOptions, StripeRequestOptions requestOptions = null)
 {
     return Mapper<StripeTransfer>.MapFromJson(
         Requestor.PostString(this.ApplyAllParameters(createOptions, Urls.Transfers, false),
         SetupRequestOptions(requestOptions))
     );
 }
Пример #2
0
 //Sync
 public virtual StripeTransfer Create(StripeTransferCreateOptions createOptions, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <StripeTransfer> .MapFromJson(
                Requestor.PostString(this.ApplyAllParameters(createOptions, Urls.Transfers, false),
                                     SetupRequestOptions(requestOptions))
                ));
 }
		public virtual StripeTransfer Create(StripeTransferCreateOptions createOptions)
		{
			var url = ParameterBuilder.ApplyAllParameters(createOptions, Urls.Transfers);

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

			return Mapper<StripeTransfer>.MapFromJson(response);
		}
 //Async
 public virtual async Task<StripeTransfer> CreateAsync(StripeTransferCreateOptions createOptions, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return Mapper<StripeTransfer>.MapFromJson(
         await Requestor.PostStringAsync(this.ApplyAllParameters(createOptions, Urls.Transfers, false),
         SetupRequestOptions(requestOptions),
         cancellationToken)
     );
 }
Пример #5
0
 //Async
 public virtual async Task <StripeTransfer> CreateAsync(StripeTransferCreateOptions createOptions, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(Mapper <StripeTransfer> .MapFromJson(
                await Requestor.PostStringAsync(this.ApplyAllParameters(createOptions, Urls.Transfers, false),
                                                SetupRequestOptions(requestOptions),
                                                cancellationToken)
                ));
 }
Пример #6
0
        public virtual StripeTransfer Create(StripeTransferCreateOptions createOptions)
        {
            var url = this.ApplyAllParameters(createOptions, Urls.Transfers, false);

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

            return(Mapper <StripeTransfer> .MapFromJson(response));
        }
Пример #7
0
        public virtual StripeTransfer Create(StripeTransferCreateOptions createOptions, StripeRequestOptions requestOptions = null)
        {
            requestOptions = SetupRequestOptions(requestOptions);

            var url = this.ApplyAllParameters(createOptions, Urls.Transfers, false);

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

            return(Mapper <StripeTransfer> .MapFromJson(response));
        }
Пример #8
0
        public virtual StripeTransfer Create(StripeTransferCreateOptions createOptions, StripeRequestOptions requestOptions = null)
        {
            requestOptions = SetupRequestOptions(requestOptions);

            var url = this.ApplyAllParameters(createOptions, Urls.Transfers, false);

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

            return Mapper<StripeTransfer>.MapFromJson(response);
        }
Пример #9
0
 // Async
 public virtual Task <StripeTransfer> CreateAsync(StripeTransferCreateOptions options, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(PostAsync($"{Urls.BaseUrl}/transfers", requestOptions, cancellationToken, options));
 }
Пример #10
0
 //Sync
 public virtual StripeTransfer Create(StripeTransferCreateOptions options, StripeRequestOptions requestOptions = null)
 {
     return(Post($"{Urls.BaseUrl}/transfers", requestOptions, options));
 }