Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Updates #2297

Merged
merged 1 commit into from
Mar 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/Stripe.net/Entities/Accounts/AccountRequirementsError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ public class AccountRequirementsError : StripeEntity<AccountRequirementsError>
/// <c>verification_failed_document_match</c>, <c>verification_failed_id_number_match</c>,
/// <c>verification_failed_keyed_identity</c>, <c>verification_failed_keyed_match</c>,
/// <c>verification_failed_name_match</c>, <c>verification_failed_other</c>,
/// <c>verification_failed_tax_id_match</c>, or
/// <c>verification_failed_tax_id_not_issued</c>.
/// <c>verification_failed_tax_id_match</c>, <c>verification_failed_tax_id_not_issued</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>, or
/// <c>verification_requires_additional_memorandum_of_associations</c>.
/// </summary>
[JsonProperty("code")]
public string Code { get; set; }
Expand Down
3 changes: 3 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ public class AccountSettings : StripeEntity<AccountSettings>
[JsonProperty("branding")]
public AccountSettingsBranding Branding { get; set; }

[JsonProperty("card_issuing")]
public AccountSettingsCardIssuing CardIssuing { get; set; }

[JsonProperty("card_payments")]
public AccountSettingsCardPayments CardPayments { get; set; }

Expand Down
11 changes: 11 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountSettingsCardIssuing.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class AccountSettingsCardIssuing : StripeEntity<AccountSettingsCardIssuing>
{
[JsonProperty("tos_acceptance")]
public AccountSettingsCardIssuingTosAcceptance TosAcceptance { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class AccountSettingsCardIssuingTosAcceptance : StripeEntity<AccountSettingsCardIssuingTosAcceptance>
{
/// <summary>
/// The Unix timestamp marking when the account representative accepted the service
/// agreement.
/// </summary>
[JsonProperty("date")]
public long? Date { get; set; }

/// <summary>
/// The IP address from which the account representative accepted the service agreement.
/// </summary>
[JsonProperty("ip")]
public string Ip { get; set; }

/// <summary>
/// The user agent of the browser from which the account representative accepted the service
/// agreement.
/// </summary>
[JsonProperty("user_agent")]
public string UserAgent { get; set; }
}
}
3 changes: 2 additions & 1 deletion src/Stripe.net/Entities/Checkout/Sessions/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ public Customer Customer
/// <c>en-GB</c>, <c>es</c>, <c>es-419</c>, <c>et</c>, <c>fi</c>, <c>fr</c>, <c>fr-CA</c>,
/// <c>hu</c>, <c>id</c>, <c>it</c>, <c>ja</c>, <c>lt</c>, <c>lv</c>, <c>ms</c>, <c>mt</c>,
/// <c>nb</c>, <c>nl</c>, <c>pl</c>, <c>pt</c>, <c>pt-BR</c>, <c>ro</c>, <c>ru</c>,
/// <c>sk</c>, <c>sl</c>, <c>sv</c>, <c>tr</c>, <c>zh</c>, <c>zh-HK</c>, or <c>zh-TW</c>.
/// <c>sk</c>, <c>sl</c>, <c>sv</c>, <c>th</c>, <c>tr</c>, <c>zh</c>, <c>zh-HK</c>, or
/// <c>zh-TW</c>.
/// </summary>
[JsonProperty("locale")]
public string Locale { get; set; }
Expand Down
5 changes: 3 additions & 2 deletions src/Stripe.net/Entities/Persons/PersonRequirementsError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ public class PersonRequirementsError : StripeEntity<PersonRequirementsError>
/// <c>verification_failed_document_match</c>, <c>verification_failed_id_number_match</c>,
/// <c>verification_failed_keyed_identity</c>, <c>verification_failed_keyed_match</c>,
/// <c>verification_failed_name_match</c>, <c>verification_failed_other</c>,
/// <c>verification_failed_tax_id_match</c>, or
/// <c>verification_failed_tax_id_not_issued</c>.
/// <c>verification_failed_tax_id_match</c>, <c>verification_failed_tax_id_not_issued</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>, or
/// <c>verification_requires_additional_memorandum_of_associations</c>.
/// </summary>
[JsonProperty("code")]
public string Code { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class AccountSettingsCardIssuingOptions : INestedOptions
{
/// <summary>
/// Details on the account's acceptance of the <a
/// href="stripe.com/docs/issuing/connect/tos_acceptance">Stripe Issuing Terms and
/// Disclosures</a>.
/// </summary>
[JsonProperty("tos_acceptance")]
public AccountSettingsCardIssuingTosAcceptanceOptions TosAcceptance { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using System;
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class AccountSettingsCardIssuingTosAcceptanceOptions : INestedOptions
{
/// <summary>
/// The Unix timestamp marking when the account representative accepted the service
/// agreement.
/// </summary>
[JsonProperty("date")]
[JsonConverter(typeof(UnixDateTimeConverter))]
public DateTime? Date { get; set; }

/// <summary>
/// The IP address from which the account representative accepted the service agreement.
/// </summary>
[JsonProperty("ip")]
public string Ip { get; set; }

/// <summary>
/// The user agent of the browser from which the account representative accepted the service
/// agreement.
/// </summary>
[JsonProperty("user_agent")]
public string UserAgent { get; set; }
}
}
6 changes: 6 additions & 0 deletions src/Stripe.net/Services/Accounts/AccountSettingsOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ public class AccountSettingsOptions : INestedOptions
[JsonProperty("branding")]
public AccountSettingsBrandingOptions Branding { get; set; }

/// <summary>
/// Settings specific to the account's use of the Card Issuing product.
/// </summary>
[JsonProperty("card_issuing")]
public AccountSettingsCardIssuingOptions CardIssuing { get; set; }

/// <summary>
/// Settings specific to card charging on the account.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata
/// <c>en-GB</c>, <c>es</c>, <c>es-419</c>, <c>et</c>, <c>fi</c>, <c>fr</c>, <c>fr-CA</c>,
/// <c>hu</c>, <c>id</c>, <c>it</c>, <c>ja</c>, <c>lt</c>, <c>lv</c>, <c>ms</c>, <c>mt</c>,
/// <c>nb</c>, <c>nl</c>, <c>pl</c>, <c>pt</c>, <c>pt-BR</c>, <c>ro</c>, <c>ru</c>,
/// <c>sk</c>, <c>sl</c>, <c>sv</c>, <c>tr</c>, <c>zh</c>, <c>zh-HK</c>, or <c>zh-TW</c>.
/// <c>sk</c>, <c>sl</c>, <c>sv</c>, <c>th</c>, <c>tr</c>, <c>zh</c>, <c>zh-HK</c>, or
/// <c>zh-TW</c>.
/// </summary>
[JsonProperty("locale")]
public string Locale { get; set; }
Expand Down