-
Notifications
You must be signed in to change notification settings - Fork 572
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
508 additions
and
289 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/Stripe.net/Entities/ScheduledQueryRun.cs → ...e.net/Entities/Sigma/ScheduledQueryRun.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Stripe | ||
namespace Stripe.Sigma | ||
{ | ||
using System; | ||
using Newtonsoft.Json; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
45 changes: 45 additions & 0 deletions
45
src/Stripe.net/Services/BalanceTransactions/BalanceTransactionService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
namespace Stripe | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Stripe.Infrastructure; | ||
|
||
public class BalanceTransactionService : BasicService<BalanceTransaction> | ||
{ | ||
private static string classUrl = Urls.BaseUrl + "/balance/history"; | ||
|
||
public BalanceTransactionService() | ||
: base(null) | ||
{ | ||
} | ||
|
||
public BalanceTransactionService(string apiKey) | ||
: base(apiKey) | ||
{ | ||
} | ||
|
||
public bool ExpandSource { get; set; } | ||
|
||
public virtual BalanceTransaction Get(string balanceTransactionId, RequestOptions requestOptions = null) | ||
{ | ||
return this.GetEntity($"{classUrl}/{balanceTransactionId}", requestOptions); | ||
} | ||
|
||
public virtual Task<BalanceTransaction> GetAsync(string balanceTransactionId, RequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
return this.GetEntityAsync($"{classUrl}/{balanceTransactionId}", requestOptions, cancellationToken); | ||
} | ||
|
||
public virtual StripeList<BalanceTransaction> List(BalanceTransactionListOptions listOptions = null, RequestOptions requestOptions = null) | ||
{ | ||
return this.GetEntityList(classUrl, requestOptions, listOptions); | ||
} | ||
|
||
public virtual Task<StripeList<BalanceTransaction>> ListAsync(BalanceTransactionListOptions listOptions = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
return this.GetEntityListAsync(classUrl, requestOptions, cancellationToken, listOptions); | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/Stripe.net/Services/FileUploads/FileUploadCreateOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
namespace Stripe | ||
{ | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using Newtonsoft.Json; | ||
|
||
public class FileUploadCreateOptions : BaseOptions | ||
{ | ||
/// <summary> | ||
/// REQUIRED. A file to upload. The file should follow the specifications of RFC 2388 | ||
/// (which defines file transfers for the <c>multipart/form-data</c> protocol). | ||
/// </summary> | ||
[JsonProperty("file")] | ||
public Stream File { get; set; } | ||
|
||
/// <summary> | ||
/// REQUIRED. The purpose of the uploaded file. Possible values are <c>business_logo</c>, | ||
/// <c>customer_signature</c>, <c>dispute_evidence</c>, <c>identity_document</c>, | ||
/// <c>pci_document</c>, or <c>tax_document_user_upload</c> | ||
/// </summary> | ||
[JsonProperty("purpose")] | ||
public string Purpose { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.