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 #2339

Merged
merged 1 commit into from
Jun 29, 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountCapabilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
[JsonProperty("bancontact_payments")]
public string BancontactPayments { get; set; }

/// <summary>
/// The status of the boleto payments capability of the account, or whether the account can
/// directly process boleto charges.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("boleto_payments")]
public string BoletoPayments { get; set; }

/// <summary>
/// The status of the card issuing capability of the account, or whether you can use Issuing
/// to distribute funds on cards.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,11 @@ public class SessionPaymentMethodOptions : StripeEntity<SessionPaymentMethodOpti
{
[JsonProperty("acss_debit")]
public SessionPaymentMethodOptionsAcssDebit AcssDebit { get; set; }

[JsonProperty("boleto")]
public SessionPaymentMethodOptionsBoleto Boleto { get; set; }

[JsonProperty("oxxo")]
public SessionPaymentMethodOptionsOxxo Oxxo { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;

public class SessionPaymentMethodOptionsBoleto : StripeEntity<SessionPaymentMethodOptionsBoleto>
{
/// <summary>
/// The number of calendar days before a Boleto voucher expires. For example, if you create
/// a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto voucher will
/// expire on Wednesday at 23:59 America/Sao_Paulo time.
/// </summary>
[JsonProperty("expires_after_days")]
public long ExpiresAfterDays { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;

public class SessionPaymentMethodOptionsOxxo : StripeEntity<SessionPaymentMethodOptionsOxxo>
{
/// <summary>
/// The number of calendar days before an OXXO invoice expires. For example, if you create
/// an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will
/// expire on Wednesday at 23:59 America/Mexico_City time.
/// </summary>
[JsonProperty("expires_after_days")]
public long ExpiresAfterDays { get; set; }
}
}
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 AccountCapabilitiesBoletoPaymentsOptions : INestedOptions
{
/// <summary>
/// Passing true requests the capability for the account, if it is not already requested. A
/// requested capability may not immediately become active. Any requirements to activate the
/// capability are returned in the <c>requirements</c> arrays.
/// </summary>
[JsonProperty("requested")]
public bool? Requested { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ public class AccountCapabilitiesOptions : INestedOptions
[JsonProperty("bancontact_payments")]
public AccountCapabilitiesBancontactPaymentsOptions BancontactPayments { get; set; }

/// <summary>
/// The boleto_payments capability.
/// </summary>
[JsonProperty("boleto_payments")]
public AccountCapabilitiesBoletoPaymentsOptions BoletoPayments { get; set; }

/// <summary>
/// The card_issuing capability.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;

public class SessionPaymentMethodOptionsBoletoOptions : INestedOptions
{
/// <summary>
/// The number of calendar days before a Boleto voucher expires. For example, if you create
/// a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will
/// expire on Wednesday at 23:59 America/Sao_Paulo time.
/// </summary>
[JsonProperty("expires_after_days")]
public long? ExpiresAfterDays { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,17 @@ public class SessionPaymentMethodOptionsOptions : INestedOptions
/// </summary>
[JsonProperty("acss_debit")]
public SessionPaymentMethodOptionsAcssDebitOptions AcssDebit { get; set; }

/// <summary>
/// contains details about the Boleto payment method options.
/// </summary>
[JsonProperty("boleto")]
public SessionPaymentMethodOptionsBoletoOptions Boleto { get; set; }

/// <summary>
/// contains details about the OXXO payment method options.
/// </summary>
[JsonProperty("oxxo")]
public SessionPaymentMethodOptionsOxxoOptions Oxxo { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;

public class SessionPaymentMethodOptionsOxxoOptions : INestedOptions
{
/// <summary>
/// The number of calendar days before an OXXO voucher expires. For example, if you create
/// an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will
/// expire on Wednesday at 23:59 America/Mexico_City time.
/// </summary>
[JsonProperty("expires_after_days")]
public long? ExpiresAfterDays { get; set; }
}
}