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

Multiple API Changes #2262

Merged
merged 1 commit into from
Dec 11, 2020
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
30 changes: 30 additions & 0 deletions src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsEps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,36 @@ namespace Stripe

public class ChargePaymentMethodDetailsEps : StripeEntity<ChargePaymentMethodDetailsEps>
{
/// <summary>
/// The customer's bank. Should be one of <c>arzte_und_apotheker_bank</c>,
/// <c>austrian_anadi_bank_ag</c>, <c>bank_austria</c>, <c>bankhaus_carl_spangler</c>,
/// <c>bankhaus_schelhammer_und_schattera_ag</c>, <c>bawag_psk_ag</c>, <c>bks_bank_ag</c>,
/// <c>brull_kallmus_bank_ag</c>, <c>btv_vier_lander_bank</c>,
/// <c>capital_bank_grawe_gruppe_ag</c>, <c>dolomitenbank</c>, <c>easybank_ag</c>,
/// <c>erste_bank_und_sparkassen</c>, <c>hypo_alpeadriabank_international_ag</c>,
/// <c>hypo_noe_lb_fur_niederosterreich_u_wien</c>,
/// <c>hypo_oberosterreich_salzburg_steiermark</c>, <c>hypo_tirol_bank_ag</c>,
/// <c>hypo_vorarlberg_bank_ag</c>, <c>hypo_bank_burgenland_aktiengesellschaft</c>,
/// <c>marchfelder_bank</c>, <c>oberbank_ag</c>, <c>raiffeisen_bankengruppe_osterreich</c>,
/// <c>schoellerbank_ag</c>, <c>sparda_bank_wien</c>, <c>volksbank_gruppe</c>,
/// <c>volkskreditbank_ag</c>, or <c>vr_bank_braunau</c>.
/// One of: <c>arzte_und_apotheker_bank</c>, <c>austrian_anadi_bank_ag</c>,
/// <c>bank_austria</c>, <c>bankhaus_carl_spangler</c>,
/// <c>bankhaus_schelhammer_und_schattera_ag</c>, <c>bawag_psk_ag</c>, <c>bks_bank_ag</c>,
/// <c>brull_kallmus_bank_ag</c>, <c>btv_vier_lander_bank</c>,
/// <c>capital_bank_grawe_gruppe_ag</c>, <c>dolomitenbank</c>, <c>easybank_ag</c>,
/// <c>erste_bank_und_sparkassen</c>, <c>hypo_alpeadriabank_international_ag</c>,
/// <c>hypo_bank_burgenland_aktiengesellschaft</c>,
/// <c>hypo_noe_lb_fur_niederosterreich_u_wien</c>,
/// <c>hypo_oberosterreich_salzburg_steiermark</c>, <c>hypo_tirol_bank_ag</c>,
/// <c>hypo_vorarlberg_bank_ag</c>, <c>marchfelder_bank</c>, <c>oberbank_ag</c>,
/// <c>raiffeisen_bankengruppe_osterreich</c>, <c>schoellerbank_ag</c>,
/// <c>sparda_bank_wien</c>, <c>volksbank_gruppe</c>, <c>volkskreditbank_ag</c>, or
/// <c>vr_bank_braunau</c>.
/// </summary>
[JsonProperty("bank")]
public string Bank { get; set; }

/// <summary>
/// Owner's verified full name. Values are verified or provided by EPS directly (if
/// supported) at the time of authorization or settlement. They cannot be set or mutated.
Expand Down
19 changes: 19 additions & 0 deletions src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsP24.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace Stripe

public class ChargePaymentMethodDetailsP24 : StripeEntity<ChargePaymentMethodDetailsP24>
{
/// <summary>
/// The customer's bank. Can be one of <c>ing</c>, <c>citi_handlowy</c>,
/// <c>tmobile_usbugi_bankowe</c>, <c>plus_bank</c>, <c>etransfer_pocztowy24</c>,
/// <c>banki_spbdzielcze</c>, <c>bank_nowy_bfg_sa</c>, <c>getin_bank</c>, <c>blik</c>,
/// <c>noble_pay</c>, <c>ideabank</c>, <c>envelobank</c>, <c>santander_przelew24</c>,
/// <c>nest_przelew</c>, <c>mbank_mtransfer</c>, <c>inteligo</c>, <c>pbac_z_ipko</c>,
/// <c>bnp_paribas</c>, <c>credit_agricole</c>, <c>toyota_bank</c>, <c>bank_pekao_sa</c>,
/// <c>volkswagen_bank</c>, <c>bank_millennium</c>, <c>alior_bank</c>, or <c>boz</c>.
/// One of: <c>alior_bank</c>, <c>bank_millennium</c>, <c>bank_nowy_bfg_sa</c>,
/// <c>bank_pekao_sa</c>, <c>banki_spbdzielcze</c>, <c>blik</c>, <c>bnp_paribas</c>,
/// <c>boz</c>, <c>citi_handlowy</c>, <c>credit_agricole</c>, <c>envelobank</c>,
/// <c>etransfer_pocztowy24</c>, <c>getin_bank</c>, <c>ideabank</c>, <c>ing</c>,
/// <c>inteligo</c>, <c>mbank_mtransfer</c>, <c>nest_przelew</c>, <c>noble_pay</c>,
/// <c>pbac_z_ipko</c>, <c>plus_bank</c>, <c>santander_przelew24</c>,
/// <c>tmobile_usbugi_bankowe</c>, <c>toyota_bank</c>, or <c>volkswagen_bank</c>.
/// </summary>
[JsonProperty("bank")]
public string Bank { get; set; }

/// <summary>
/// Unique reference for this Przelewy24 payment.
/// </summary>
Expand Down
31 changes: 31 additions & 0 deletions src/Stripe.net/Entities/PaymentMethods/PaymentMethodEps.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,38 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class PaymentMethodEps : StripeEntity<PaymentMethodEps>
{
/// <summary>
/// The customer's bank. Should be one of <c>arzte_und_apotheker_bank</c>,
/// <c>austrian_anadi_bank_ag</c>, <c>bank_austria</c>, <c>bankhaus_carl_spangler</c>,
/// <c>bankhaus_schelhammer_und_schattera_ag</c>, <c>bawag_psk_ag</c>, <c>bks_bank_ag</c>,
/// <c>brull_kallmus_bank_ag</c>, <c>btv_vier_lander_bank</c>,
/// <c>capital_bank_grawe_gruppe_ag</c>, <c>dolomitenbank</c>, <c>easybank_ag</c>,
/// <c>erste_bank_und_sparkassen</c>, <c>hypo_alpeadriabank_international_ag</c>,
/// <c>hypo_noe_lb_fur_niederosterreich_u_wien</c>,
/// <c>hypo_oberosterreich_salzburg_steiermark</c>, <c>hypo_tirol_bank_ag</c>,
/// <c>hypo_vorarlberg_bank_ag</c>, <c>hypo_bank_burgenland_aktiengesellschaft</c>,
/// <c>marchfelder_bank</c>, <c>oberbank_ag</c>, <c>raiffeisen_bankengruppe_osterreich</c>,
/// <c>schoellerbank_ag</c>, <c>sparda_bank_wien</c>, <c>volksbank_gruppe</c>,
/// <c>volkskreditbank_ag</c>, or <c>vr_bank_braunau</c>.
/// One of: <c>arzte_und_apotheker_bank</c>, <c>austrian_anadi_bank_ag</c>,
/// <c>bank_austria</c>, <c>bankhaus_carl_spangler</c>,
/// <c>bankhaus_schelhammer_und_schattera_ag</c>, <c>bawag_psk_ag</c>, <c>bks_bank_ag</c>,
/// <c>brull_kallmus_bank_ag</c>, <c>btv_vier_lander_bank</c>,
/// <c>capital_bank_grawe_gruppe_ag</c>, <c>dolomitenbank</c>, <c>easybank_ag</c>,
/// <c>erste_bank_und_sparkassen</c>, <c>hypo_alpeadriabank_international_ag</c>,
/// <c>hypo_bank_burgenland_aktiengesellschaft</c>,
/// <c>hypo_noe_lb_fur_niederosterreich_u_wien</c>,
/// <c>hypo_oberosterreich_salzburg_steiermark</c>, <c>hypo_tirol_bank_ag</c>,
/// <c>hypo_vorarlberg_bank_ag</c>, <c>marchfelder_bank</c>, <c>oberbank_ag</c>,
/// <c>raiffeisen_bankengruppe_osterreich</c>, <c>schoellerbank_ag</c>,
/// <c>sparda_bank_wien</c>, <c>volksbank_gruppe</c>, <c>volkskreditbank_ag</c>, or
/// <c>vr_bank_braunau</c>.
/// </summary>
[JsonProperty("bank")]
public string Bank { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ namespace Stripe

public class SubscriptionScheduleDefaultSettings : StripeEntity<SubscriptionScheduleDefaultSettings>
{
/// <summary>
/// A non-negative decimal between 0 and 100, with at most two decimal places. This
/// represents the percentage of the subscription invoice subtotal that will be transferred
/// to the application owner's Stripe account during this phase of the schedule.
/// </summary>
[JsonProperty("application_fee_percent")]
public decimal? ApplicationFeePercent { get; set; }

/// <summary>
/// Possible values are <c>phase_start</c> or <c>automatic</c>. If <c>phase_start</c> then
/// billing cycle anchor of the subscription is set to the start of the phase when entering
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class PaymentIntentPaymentMethodDataEpsOptions : INestedOptions
{
/// <summary>
/// The customer's bank.
/// One of: <c>arzte_und_apotheker_bank</c>, <c>austrian_anadi_bank_ag</c>,
/// <c>bank_austria</c>, <c>bankhaus_carl_spangler</c>,
/// <c>bankhaus_schelhammer_und_schattera_ag</c>, <c>bawag_psk_ag</c>, <c>bks_bank_ag</c>,
/// <c>brull_kallmus_bank_ag</c>, <c>btv_vier_lander_bank</c>,
/// <c>capital_bank_grawe_gruppe_ag</c>, <c>dolomitenbank</c>, <c>easybank_ag</c>,
/// <c>erste_bank_und_sparkassen</c>, <c>hypo_alpeadriabank_international_ag</c>,
/// <c>hypo_bank_burgenland_aktiengesellschaft</c>,
/// <c>hypo_noe_lb_fur_niederosterreich_u_wien</c>,
/// <c>hypo_oberosterreich_salzburg_steiermark</c>, <c>hypo_tirol_bank_ag</c>,
/// <c>hypo_vorarlberg_bank_ag</c>, <c>marchfelder_bank</c>, <c>oberbank_ag</c>,
/// <c>raiffeisen_bankengruppe_osterreich</c>, <c>schoellerbank_ag</c>,
/// <c>sparda_bank_wien</c>, <c>volksbank_gruppe</c>, <c>volkskreditbank_ag</c>, or
/// <c>vr_bank_braunau</c>.
/// </summary>
[JsonProperty("bank")]
public string Bank { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class PaymentIntentPaymentMethodOptionsP24Options : INestedOptions
{
/// <summary>
/// Confirm that the payer has accepted the P24 terms and conditions.
/// </summary>
[JsonProperty("tos_shown_and_accepted")]
public bool? TosShownAndAccepted { get; set; }
}
}
20 changes: 20 additions & 0 deletions src/Stripe.net/Services/PaymentMethods/PaymentMethodEpsOptions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class PaymentMethodEpsOptions : INestedOptions
{
/// <summary>
/// The customer's bank.
/// One of: <c>arzte_und_apotheker_bank</c>, <c>austrian_anadi_bank_ag</c>,
/// <c>bank_austria</c>, <c>bankhaus_carl_spangler</c>,
/// <c>bankhaus_schelhammer_und_schattera_ag</c>, <c>bawag_psk_ag</c>, <c>bks_bank_ag</c>,
/// <c>brull_kallmus_bank_ag</c>, <c>btv_vier_lander_bank</c>,
/// <c>capital_bank_grawe_gruppe_ag</c>, <c>dolomitenbank</c>, <c>easybank_ag</c>,
/// <c>erste_bank_und_sparkassen</c>, <c>hypo_alpeadriabank_international_ag</c>,
/// <c>hypo_bank_burgenland_aktiengesellschaft</c>,
/// <c>hypo_noe_lb_fur_niederosterreich_u_wien</c>,
/// <c>hypo_oberosterreich_salzburg_steiermark</c>, <c>hypo_tirol_bank_ag</c>,
/// <c>hypo_vorarlberg_bank_ag</c>, <c>marchfelder_bank</c>, <c>oberbank_ag</c>,
/// <c>raiffeisen_bankengruppe_osterreich</c>, <c>schoellerbank_ag</c>,
/// <c>sparda_bank_wien</c>, <c>volksbank_gruppe</c>, <c>volkskreditbank_ag</c>, or
/// <c>vr_bank_braunau</c>.
/// </summary>
[JsonProperty("bank")]
public string Bank { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ public class PaymentMethodUpdateOptions : BaseOptions, IHasMetadata
[JsonProperty("au_becs_debit")]
public PaymentMethodAuBecsDebitOptions AuBecsDebit { get; set; }

/// <summary>
/// This is a legacy parameter that will be removed in the future. It is a hash that does
/// not accept any keys.
/// </summary>
[JsonProperty("bacs_debit")]
public PaymentMethodBacsDebitOptions BacsDebit { get; set; }

/// <summary>
/// Billing information associated with the PaymentMethod that may be used or required by
/// particular types of payment methods.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ namespace Stripe

public class SubscriptionScheduleDefaultSettingsOptions : INestedOptions
{
/// <summary>
/// A non-negative decimal between 0 and 100, with at most two decimal places. This
/// represents the percentage of the subscription invoice subtotal that will be transferred
/// to the application owner's Stripe account. The request must be made by a platform
/// account on a connected account in order to set an application fee percentage. For more
/// information, see the application fees <a
/// href="https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions">documentation</a>.
/// </summary>
[JsonProperty("application_fee_percent")]
public decimal? ApplicationFeePercent { get; set; }

/// <summary>
/// Can be set to <c>phase_start</c> to set the anchor to the start of the phase or
/// <c>automatic</c> to automatically change it if needed. Cannot be set to
Expand Down