Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 4
0
 public virtual Source Attach(string customerId, SourceAttachOptions options, RequestOptions requestOptions = null)
 {
     return(this.PostRequest <Source>($"{Urls.BaseUrl}/customers/{customerId}/sources", options, requestOptions));
 }