-
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.
Add support for file_link_data (#1598)
- Loading branch information
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
namespace Stripe | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
public class FileLinkDataOptions : BaseOptions | ||
{ | ||
/// <summary> | ||
/// Set this to <c>true</c> to create a file link for the newly created file. Creating a | ||
/// link is only possible when the file’s purpose is one of the following: | ||
/// <c>business_icon</c>, <c>business_logo</c>, <c>customer_signature</c>, | ||
/// <c>dispute_evidence</c>, <c>pci_document</c>, or <c>tax_document_user_upload</c>. | ||
/// </summary> | ||
[JsonProperty("create")] | ||
public bool? Create { get; set; } | ||
|
||
/// <summary> | ||
/// A future timestamp after which the link will no longer be usable. | ||
/// </summary> | ||
[JsonProperty("expires_at")] | ||
public DateTime? ExpiresAt { get; set; } | ||
|
||
/// <summary> | ||
/// Set of key-value pairs that you can attach to an object. This can be useful for storing | ||
/// additional information about the object in a structured format. | ||
/// </summary> | ||
[JsonProperty("metadata")] | ||
public Dictionary<string, string> Metadata { 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