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

Update generated code (new) #2657

Merged
merged 2 commits into from
Mar 15, 2023
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 @@ -101,6 +101,14 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
[JsonProperty("cartes_bancaires_payments")]
public string CartesBancairesPayments { get; set; }

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

/// <summary>
/// The status of the EPS payments capability of the account, or whether the account can
/// directly process EPS charges.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ public class ChargePaymentMethodDetails : StripeEntity<ChargePaymentMethodDetail
[JsonProperty("card_present")]
public ChargePaymentMethodDetailsCardPresent CardPresent { get; set; }

[JsonProperty("cashapp")]
public ChargePaymentMethodDetailsCashapp Cashapp { get; set; }

[JsonProperty("customer_balance")]
public ChargePaymentMethodDetailsCustomerBalance CustomerBalance { 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 ChargePaymentMethodDetailsCashapp : StripeEntity<ChargePaymentMethodDetailsCashapp>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public class SessionPaymentMethodOptions : StripeEntity<SessionPaymentMethodOpti
[JsonProperty("card")]
public SessionPaymentMethodOptionsCard Card { get; set; }

[JsonProperty("cashapp")]
public SessionPaymentMethodOptionsCashapp Cashapp { get; set; }

[JsonProperty("customer_balance")]
public SessionPaymentMethodOptionsCustomerBalance CustomerBalance { get; set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;

public class SessionPaymentMethodOptionsCashapp : StripeEntity<SessionPaymentMethodOptionsCashapp>
{
/// <summary>
/// Indicates that you intend to make future payments with this PaymentIntent's payment
/// method.
///
/// Providing this parameter will <a
/// href="https://stripe.com/docs/payments/save-during-payment">attach the payment
/// method</a> to the PaymentIntent's Customer, if present, after the PaymentIntent is
/// confirmed and any required actions from the user are complete. If no Customer was
/// provided, the payment method can still be <a
/// href="https://stripe.com/docs/api/payment_methods/attach">attached</a> to a Customer
/// after the transaction completes.
///
/// When processing card payments, Stripe also uses <c>setup_future_usage</c> to dynamically
/// optimize your payment flow and comply with regional legislation and network rules, such
/// as <a href="https://stripe.com/docs/strong-customer-authentication">SCA</a>.
/// </summary>
[JsonProperty("setup_future_usage")]
public string SetupFutureUsage { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ public class MandatePaymentMethodDetails : StripeEntity<MandatePaymentMethodDeta
[JsonProperty("card")]
public MandatePaymentMethodDetailsCard Card { get; set; }

[JsonProperty("cashapp")]
public MandatePaymentMethodDetailsCashapp Cashapp { get; set; }

[JsonProperty("link")]
public MandatePaymentMethodDetailsLink Link { 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 MandatePaymentMethodDetailsCashapp : StripeEntity<MandatePaymentMethodDetailsCashapp>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ public class PaymentIntentNextAction : StripeEntity<PaymentIntentNextAction>
[JsonProperty("card_await_notification")]
public PaymentIntentNextActionCardAwaitNotification CardAwaitNotification { get; set; }

[JsonProperty("cashapp_handle_redirect_or_display_qr_code")]
public PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCode CashappHandleRedirectOrDisplayQrCode { get; set; }

[JsonProperty("display_bank_transfer_instructions")]
public PaymentIntentNextActionDisplayBankTransferInstructions DisplayBankTransferInstructions { get; set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCode : StripeEntity<PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCode>
{
/// <summary>
/// The URL to the hosted Cash App Pay instructions page, which allows customers to view the
/// QR code, and supports QR code refreshing on expiration.
/// </summary>
[JsonProperty("hosted_instructions_url")]
public string HostedInstructionsUrl { get; set; }

/// <summary>
/// The url for mobile redirect based auth.
/// </summary>
[JsonProperty("mobile_auth_url")]
public string MobileAuthUrl { get; set; }

[JsonProperty("qr_code")]
public PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCodeQrCode QrCode { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using System;
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCodeQrCode : StripeEntity<PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCodeQrCode>
{
/// <summary>
/// The date (unix timestamp) when the QR code expires.
/// </summary>
[JsonProperty("expires_at")]
[JsonConverter(typeof(UnixDateTimeConverter))]
public DateTime ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// The image_url_png string used to render QR code.
/// </summary>
[JsonProperty("image_url_png")]
public string ImageUrlPng { get; set; }

/// <summary>
/// The image_url_svg string used to render QR code.
/// </summary>
[JsonProperty("image_url_svg")]
public string ImageUrlSvg { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ public class PaymentIntentPaymentMethodOptions : StripeEntity<PaymentIntentPayme
[JsonProperty("card_present")]
public PaymentIntentPaymentMethodOptionsCardPresent CardPresent { get; set; }

[JsonProperty("cashapp")]
public PaymentIntentPaymentMethodOptionsCashapp Cashapp { get; set; }

[JsonProperty("customer_balance")]
public PaymentIntentPaymentMethodOptionsCustomerBalance CustomerBalance { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ public class PaymentIntentPaymentMethodOptionsAffirm : StripeEntity<PaymentInten
[JsonProperty("capture_method")]
public string CaptureMethod { get; set; }

/// <summary>
/// Preferred language of the Affirm authorization page that the customer is redirected to.
/// </summary>
[JsonProperty("preferred_locale")]
public string PreferredLocale { get; set; }

/// <summary>
/// Indicates that you intend to make future payments with this PaymentIntent's payment
/// method.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class PaymentIntentPaymentMethodOptionsCashapp : StripeEntity<PaymentIntentPaymentMethodOptionsCashapp>
{
/// <summary>
/// Controls when the funds will be captured from the customer's account.
/// </summary>
[JsonProperty("capture_method")]
public string CaptureMethod { get; set; }

/// <summary>
/// Indicates that you intend to make future payments with this PaymentIntent's payment
/// method.
///
/// Providing this parameter will <a
/// href="https://stripe.com/docs/payments/save-during-payment">attach the payment
/// method</a> to the PaymentIntent's Customer, if present, after the PaymentIntent is
/// confirmed and any required actions from the user are complete. If no Customer was
/// provided, the payment method can still be <a
/// href="https://stripe.com/docs/api/payment_methods/attach">attached</a> to a Customer
/// after the transaction completes.
///
/// When processing card payments, Stripe also uses <c>setup_future_usage</c> to dynamically
/// optimize your payment flow and comply with regional legislation and network rules, such
/// as <a href="https://stripe.com/docs/strong-customer-authentication">SCA</a>.
/// One of: <c>none</c>, <c>off_session</c>, or <c>on_session</c>.
/// </summary>
[JsonProperty("setup_future_usage")]
public string SetupFutureUsage { get; set; }
}
}
3 changes: 1 addition & 2 deletions src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ namespace Stripe
/// href="https://stripe.com/docs/api/events/types#event_types-checkout.session.completed">checkout
/// session events</a> to track payments through payment links.
///
/// Related guide: <a href="https://stripe.com/docs/payments/payment-links/api">Payment
/// Links API</a>.
/// Related guide: <a href="https://stripe.com/docs/payment-links">Payment Links API</a>.
/// </summary>
public class PaymentLink : StripeEntity<PaymentLink>, IHasId, IHasMetadata, IHasObject
{
Expand Down
13 changes: 8 additions & 5 deletions src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ public class PaymentMethod : StripeEntity<PaymentMethod>, IHasId, IHasMetadata,
[JsonProperty("card_present")]
public PaymentMethodCardPresent CardPresent { get; set; }

[JsonProperty("cashapp")]
public PaymentMethodCashapp Cashapp { get; set; }

/// <summary>
/// Time at which the object was created. Measured in seconds since the Unix epoch.
/// </summary>
Expand Down Expand Up @@ -186,11 +189,11 @@ public Customer Customer
/// PaymentMethod type.
/// One of: <c>acss_debit</c>, <c>affirm</c>, <c>afterpay_clearpay</c>, <c>alipay</c>,
/// <c>au_becs_debit</c>, <c>bacs_debit</c>, <c>bancontact</c>, <c>blik</c>, <c>boleto</c>,
/// <c>card</c>, <c>card_present</c>, <c>customer_balance</c>, <c>eps</c>, <c>fpx</c>,
/// <c>giropay</c>, <c>grabpay</c>, <c>ideal</c>, <c>interac_present</c>, <c>klarna</c>,
/// <c>konbini</c>, <c>link</c>, <c>oxxo</c>, <c>p24</c>, <c>paynow</c>, <c>pix</c>,
/// <c>promptpay</c>, <c>sepa_debit</c>, <c>sofort</c>, <c>us_bank_account</c>, or
/// <c>wechat_pay</c>.
/// <c>card</c>, <c>card_present</c>, <c>cashapp</c>, <c>customer_balance</c>, <c>eps</c>,
/// <c>fpx</c>, <c>giropay</c>, <c>grabpay</c>, <c>ideal</c>, <c>interac_present</c>,
/// <c>klarna</c>, <c>konbini</c>, <c>link</c>, <c>oxxo</c>, <c>p24</c>, <c>paynow</c>,
/// <c>pix</c>, <c>promptpay</c>, <c>sepa_debit</c>, <c>sofort</c>, <c>us_bank_account</c>,
/// or <c>wechat_pay</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 PaymentMethodCashapp : StripeEntity<PaymentMethodCashapp>
{
}
}
5 changes: 2 additions & 3 deletions src/Stripe.net/Entities/Products/Product.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ namespace Stripe
///
/// Related guides: <a
/// href="https://stripe.com/docs/billing/subscriptions/set-up-subscription">Set up a
/// subscription</a>, <a
/// href="https://stripe.com/docs/payments/payment-links/overview">share a Payment Link</a>,
/// <a
/// subscription</a>, <a href="https://stripe.com/docs/payment-links">share a Payment
/// Link</a>, <a
/// href="https://stripe.com/docs/payments/accept-a-payment#create-product-prices-upfront">accept
/// payments with Checkout</a>, and more about <a
/// href="https://stripe.com/docs/products-prices/overview">Products and Prices</a>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public class SetupAttemptPaymentMethodDetails : StripeEntity<SetupAttemptPayment
[JsonProperty("card_present")]
public SetupAttemptPaymentMethodDetailsCardPresent CardPresent { get; set; }

[JsonProperty("cashapp")]
public SetupAttemptPaymentMethodDetailsCashapp Cashapp { get; set; }

[JsonProperty("ideal")]
public SetupAttemptPaymentMethodDetailsIdeal Ideal { 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 SetupAttemptPaymentMethodDetailsCashapp : StripeEntity<SetupAttemptPaymentMethodDetailsCashapp>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ namespace Stripe

public class SetupIntentNextAction : StripeEntity<SetupIntentNextAction>
{
[JsonProperty("cashapp_handle_redirect_or_display_qr_code")]
public SetupIntentNextActionCashappHandleRedirectOrDisplayQrCode CashappHandleRedirectOrDisplayQrCode { get; set; }

[JsonProperty("redirect_to_url")]
public SetupIntentNextActionRedirectToUrl RedirectToUrl { get; set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class SetupIntentNextActionCashappHandleRedirectOrDisplayQrCode : StripeEntity<SetupIntentNextActionCashappHandleRedirectOrDisplayQrCode>
{
/// <summary>
/// The URL to the hosted Cash App Pay instructions page, which allows customers to view the
/// QR code, and supports QR code refreshing on expiration.
/// </summary>
[JsonProperty("hosted_instructions_url")]
public string HostedInstructionsUrl { get; set; }

/// <summary>
/// The url for mobile redirect based auth.
/// </summary>
[JsonProperty("mobile_auth_url")]
public string MobileAuthUrl { get; set; }

[JsonProperty("qr_code")]
public SetupIntentNextActionCashappHandleRedirectOrDisplayQrCodeQrCode QrCode { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using System;
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class SetupIntentNextActionCashappHandleRedirectOrDisplayQrCodeQrCode : StripeEntity<SetupIntentNextActionCashappHandleRedirectOrDisplayQrCodeQrCode>
{
/// <summary>
/// The date (unix timestamp) when the QR code expires.
/// </summary>
[JsonProperty("expires_at")]
[JsonConverter(typeof(UnixDateTimeConverter))]
public DateTime ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// The image_url_png string used to render QR code.
/// </summary>
[JsonProperty("image_url_png")]
public string ImageUrlPng { get; set; }

/// <summary>
/// The image_url_svg string used to render QR code.
/// </summary>
[JsonProperty("image_url_svg")]
public string ImageUrlSvg { 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 AccountCapabilitiesCashappPaymentsOptions : 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 @@ -77,6 +77,12 @@ public class AccountCapabilitiesOptions : INestedOptions
[JsonProperty("cartes_bancaires_payments")]
public AccountCapabilitiesCartesBancairesPaymentsOptions CartesBancairesPayments { get; set; }

/// <summary>
/// The cashapp_payments capability.
/// </summary>
[JsonProperty("cashapp_payments")]
public AccountCapabilitiesCashappPaymentsOptions CashappPayments { get; set; }

/// <summary>
/// The eps_payments capability.
/// </summary>
Expand Down
Loading