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

Merged
merged 1 commit into from
Feb 17, 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
3 changes: 3 additions & 0 deletions src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ public class ChargePaymentMethodDetails : StripeEntity<ChargePaymentMethodDetail
[JsonProperty("acss_debit")]
public ChargePaymentMethodDetailsAcssDebit AcssDebit { get; set; }

[JsonProperty("afterpay_clearpay")]
public ChargePaymentMethodDetailsAfterpayClearpay AfterpayClearpay { get; set; }

[JsonProperty("alipay")]
public ChargePaymentMethodDetailsAlipay Alipay { get; set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe
{
public class ChargePaymentMethodDetailsAfterpayClearpay : StripeEntity<ChargePaymentMethodDetailsAfterpayClearpay>
{
}
}
10 changes: 5 additions & 5 deletions src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,12 @@ public Cardholder Cardholder
public AuthorizationPendingRequest PendingRequest { get; set; }

/// <summary>
/// History of every time the authorization was approved/denied (whether approved/denied by
/// you directly or by Stripe based on your <c>spending_controls</c>). If the merchant
/// changes the authorization by performing an <a
/// History of every time <c>pending_request</c> was approved/denied, either by you directly
/// or by Stripe (e.g. based on your <c>spending_controls</c>). If the merchant changes the
/// authorization by performing an <a
/// href="https://stripe.com/docs/issuing/purchases/authorizations">incremental
/// authorization or partial capture</a>, you can look at this field to see the previous
/// states of the authorization.
/// authorization</a>, you can look at this field to see the previous requests for the
/// authorization.
/// </summary>
[JsonProperty("request_history")]
public List<AuthorizationRequestHistory> RequestHistory { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ namespace Stripe.Issuing
public class AuthorizationRequestHistory : StripeEntity<AuthorizationRequestHistory>
{
/// <summary>
/// The authorization amount in your card's currency and in the <a
/// href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>.
/// Stripe held this amount from your account to fund the authorization if the request was
/// approved.
/// The <c>pending_request.amount</c> at the time of the request, presented in your card's
/// currency and in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest
/// currency unit</a>. Stripe held this amount from your account to fund the authorization
/// if the request was approved.
/// </summary>
[JsonProperty("amount")]
public long Amount { get; set; }
Expand Down Expand Up @@ -46,7 +46,7 @@ public class AuthorizationRequestHistory : StripeEntity<AuthorizationRequestHist
public string Currency { get; set; }

/// <summary>
/// The amount that was authorized at the time of this request. This amount is in the
/// The <c>pending_request.merchant_amount</c> at the time of the request, presented in the
/// <c>merchant_currency</c> and in the <a
/// href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>.
/// </summary>
Expand Down
11 changes: 7 additions & 4 deletions src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ public class PaymentMethod : StripeEntity<PaymentMethod>, IHasId, IHasMetadata,
[JsonProperty("object")]
public string Object { get; set; }

[JsonProperty("afterpay_clearpay")]
public PaymentMethodAfterpayClearpay AfterpayClearpay { get; set; }

[JsonProperty("alipay")]
public PaymentMethodAlipay Alipay { get; set; }

Expand Down Expand Up @@ -130,10 +133,10 @@ public Customer Customer
/// The type of the PaymentMethod. An additional hash is included on the PaymentMethod with
/// a name matching this value. It contains additional information specific to the
/// PaymentMethod type.
/// One of: <c>alipay</c>, <c>au_becs_debit</c>, <c>bacs_debit</c>, <c>bancontact</c>,
/// <c>card</c>, <c>card_present</c>, <c>eps</c>, <c>fpx</c>, <c>giropay</c>,
/// <c>grabpay</c>, <c>ideal</c>, <c>interac_present</c>, <c>oxxo</c>, <c>p24</c>,
/// <c>sepa_debit</c>, or <c>sofort</c>.
/// One of: <c>afterpay_clearpay</c>, <c>alipay</c>, <c>au_becs_debit</c>,
/// <c>bacs_debit</c>, <c>bancontact</c>, <c>card</c>, <c>card_present</c>, <c>eps</c>,
/// <c>fpx</c>, <c>giropay</c>, <c>grabpay</c>, <c>ideal</c>, <c>interac_present</c>,
/// <c>oxxo</c>, <c>p24</c>, <c>sepa_debit</c>, or <c>sofort</c>.
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe
{
public class PaymentMethodAfterpayClearpay : StripeEntity<PaymentMethodAfterpayClearpay>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ namespace Stripe

public class SetupAttemptPaymentMethodDetails : StripeEntity<SetupAttemptPaymentMethodDetails>
{
[JsonProperty("au_becs_debit")]
public SetupAttemptPaymentMethodDetailsAuBecsDebit AuBecsDebit { get; set; }

[JsonProperty("bacs_debit")]
public SetupAttemptPaymentMethodDetailsBacsDebit BacsDebit { get; set; }

[JsonProperty("bancontact")]
public SetupAttemptPaymentMethodDetailsBancontact Bancontact { get; set; }

Expand All @@ -17,6 +23,9 @@ public class SetupAttemptPaymentMethodDetails : StripeEntity<SetupAttemptPayment
[JsonProperty("ideal")]
public SetupAttemptPaymentMethodDetailsIdeal Ideal { get; set; }

[JsonProperty("sepa_debit")]
public SetupAttemptPaymentMethodDetailsSepaDebit SepaDebit { get; set; }

[JsonProperty("sofort")]
public SetupAttemptPaymentMethodDetailsSofort Sofort { get; set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe
{
public class SetupAttemptPaymentMethodDetailsAuBecsDebit : StripeEntity<SetupAttemptPaymentMethodDetailsAuBecsDebit>
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe
{
public class SetupAttemptPaymentMethodDetailsBacsDebit : StripeEntity<SetupAttemptPaymentMethodDetailsBacsDebit>
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe
{
public class SetupAttemptPaymentMethodDetailsSepaDebit : StripeEntity<SetupAttemptPaymentMethodDetailsSepaDebit>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ public class AccountLinkCreateOptions : BaseOptions
public string Collect { get; set; }

/// <summary>
/// The URL that the user will be redirected to if the account link is no longer valid. Your
/// <c>refresh_url</c> should trigger a method on your server to create a new account link
/// using this API, with the same parameters, and redirect the user to the new account link.
/// The URL the user will be redirected to if the account link is expired, has been
/// previously-visited, or is otherwise invalid. The URL you specify should attempt to
/// generate a new account link with the same parameters used to create the original account
/// link, then redirect the user to the new account link's URL so they can continue with
/// Connect Onboarding. If a new account link cannot be generated or the redirect fails you
/// should display a useful error to the user.
/// </summary>
[JsonProperty("refresh_url")]
public string RefreshUrl { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;

public class SessionLineItemAdjustableQuantityOptions : INestedOptions
{
/// <summary>
/// Set to true if the quantity can be adjusted to any non-negative integer. By default
/// customers will be able to remove the line item by setting the quantity to 0.
/// </summary>
[JsonProperty("enabled")]
public bool? Enabled { get; set; }

/// <summary>
/// The maximum quantity the customer can purchase for the Checkout Session. By default this
/// value is 99.
/// </summary>
[JsonProperty("maximum")]
public long? Maximum { get; set; }

/// <summary>
/// The minimum quantity the customer must purchase for the Checkout Session. By default
/// this value is 0.
/// </summary>
[JsonProperty("minimum")]
public long? Minimum { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ namespace Stripe.Checkout

public class SessionLineItemOptions : INestedOptions
{
/// <summary>
/// When set, provides configuration for this item’s quantity to be adjusted by the customer
/// during Checkout.
/// </summary>
[JsonProperty("adjustable_quantity")]
public SessionLineItemAdjustableQuantityOptions AdjustableQuantity { get; set; }

/// <summary>
/// The amount to be collected per unit of the line item. If specified, must also pass
/// <c>currency</c> and <c>name</c>.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe
{
public class PaymentIntentPaymentMethodDataAfterpayClearpayOptions : INestedOptions
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ namespace Stripe

public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata
{
/// <summary>
/// If this is an <c>AfterpayClearpay</c> PaymentMethod, this hash contains details about
/// the AfterpayClearpay payment method.
/// </summary>
[JsonProperty("afterpay_clearpay")]
public PaymentIntentPaymentMethodDataAfterpayClearpayOptions AfterpayClearpay { get; set; }

/// <summary>
/// If this is an <c>Alipay</c> PaymentMethod, this hash contains details about the Alipay
/// payment method.
Expand Down Expand Up @@ -124,9 +131,10 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat
/// The type of the PaymentMethod. An additional hash is included on the PaymentMethod with
/// a name matching this value. It contains additional information specific to the
/// PaymentMethod type.
/// One of: <c>alipay</c>, <c>au_becs_debit</c>, <c>bacs_debit</c>, <c>bancontact</c>,
/// <c>eps</c>, <c>fpx</c>, <c>giropay</c>, <c>grabpay</c>, <c>ideal</c>, <c>oxxo</c>,
/// <c>p24</c>, <c>sepa_debit</c>, or <c>sofort</c>.
/// One of: <c>afterpay_clearpay</c>, <c>alipay</c>, <c>au_becs_debit</c>,
/// <c>bacs_debit</c>, <c>bancontact</c>, <c>eps</c>, <c>fpx</c>, <c>giropay</c>,
/// <c>grabpay</c>, <c>ideal</c>, <c>oxxo</c>, <c>p24</c>, <c>sepa_debit</c>, or
/// <c>sofort</c>.
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe
{
public class PaymentMethodAfterpayClearpayOptions : INestedOptions
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ namespace Stripe

public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata
{
/// <summary>
/// If this is an <c>AfterpayClearpay</c> PaymentMethod, this hash contains details about
/// the AfterpayClearpay payment method.
/// </summary>
[JsonProperty("afterpay_clearpay")]
public PaymentMethodAfterpayClearpayOptions AfterpayClearpay { get; set; }

/// <summary>
/// If this is an <c>Alipay</c> PaymentMethod, this hash contains details about the Alipay
/// payment method.
Expand Down Expand Up @@ -139,9 +146,10 @@ public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata
/// The type of the PaymentMethod. An additional hash is included on the PaymentMethod with
/// a name matching this value. It contains additional information specific to the
/// PaymentMethod type.
/// One of: <c>alipay</c>, <c>au_becs_debit</c>, <c>bacs_debit</c>, <c>bancontact</c>,
/// <c>card</c>, <c>eps</c>, <c>fpx</c>, <c>giropay</c>, <c>grabpay</c>, <c>ideal</c>,
/// <c>oxxo</c>, <c>p24</c>, <c>sepa_debit</c>, or <c>sofort</c>.
/// One of: <c>afterpay_clearpay</c>, <c>alipay</c>, <c>au_becs_debit</c>,
/// <c>bacs_debit</c>, <c>bancontact</c>, <c>card</c>, <c>eps</c>, <c>fpx</c>,
/// <c>giropay</c>, <c>grabpay</c>, <c>ideal</c>, <c>oxxo</c>, <c>p24</c>,
/// <c>sepa_debit</c>, or <c>sofort</c>.
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }
Expand Down