예제 #1
0
 public virtual Task <Source> AttachAsync(string customerId, SourceAttachOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
 {
     return(this.RequestAsync <Source>(HttpMethod.Post, $"/v1/customers/{customerId}/sources", options, requestOptions, cancellationToken));
 }
예제 #2
0
 public virtual Task <Source> AttachAsync(string customerId, SourceAttachOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(this.PostRequestAsync <Source>($"{Urls.BaseUrl}/customers/{customerId}/sources", options, requestOptions, cancellationToken));
 }
예제 #3
0
 public virtual Source Attach(string customerId, SourceAttachOptions options, RequestOptions requestOptions = null)
 {
     return(this.Request <Source>(HttpMethod.Post, $"/v1/customers/{customerId}/sources", options, requestOptions));
 }
예제 #4
0
 public virtual Source Attach(string customerId, SourceAttachOptions options, RequestOptions requestOptions = null)
 {
     return(this.PostRequest <Source>($"{Urls.BaseUrl}/customers/{customerId}/sources", options, requestOptions));
 }