diff --git a/CHANGELOG.md b/CHANGELOG.md index 42fa4be65a..f2ae332a3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,28 @@ # Changelog +## 51.1.0 - 2026-04-23 +This release changes the pinned API version to 2026-04-22.dahlia. + +* [#3365](https://github.com/stripe/stripe-dotnet/pull/3365) Update generated code + * Add support for `BalanceReport` and `PayoutReconciliationReport` on `AccountSession.Components` and `AccountSessionComponentsOptions` + * Add support for `AppDistribution` and `SunbitPayments` on `Account.Capabilities` and `AccountCapabilitiesOptions` + * Add support for `Sunbit` on `Charge.PaymentMethodDetails`, `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenPaymentMethodDataOptions`, `PaymentAttemptRecord.PaymentMethodDetails`, `PaymentIntentPaymentMethodDataOptions`, `PaymentMethodConfigurationCreateOptions`, `PaymentMethodConfigurationUpdateOptions`, `PaymentMethodConfiguration`, `PaymentMethodCreateOptions`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetails`, and `SetupIntentPaymentMethodDataOptions` + * Add support for `Location` and `Reader` on `Charge.PaymentMethodDetails.Klarna`, `PaymentAttemptRecord.PaymentMethodDetails.Klarna`, and `PaymentRecord.PaymentMethodDetails.Klarna` + * Add support for `Mandate` on `Charge.PaymentMethodDetails.Pix`, `PaymentAttemptRecord.PaymentMethodDetails.Pix`, and `PaymentRecord.PaymentMethodDetails.Pix` + * Add support for `ManagedPayments` on `Checkout.SessionCreateOptions`, `Checkout.Session`, `PaymentIntent`, `PaymentLinkCreateOptions`, `PaymentLink`, `SetupIntent`, and `Subscription` + * Add support for `MandateOptions` on `Checkout.Session.PaymentMethodOptions.Pix`, `CheckoutSessionPaymentMethodOptionsPixOptions`, `PaymentIntent.PaymentMethodOptions.Pix`, and `PaymentIntentPaymentMethodOptionsPixOptions` + * Change type of `CheckoutSessionPaymentMethodOptionsPixOptions.SetupFutureUsage` and `PaymentIntentPaymentMethodOptionsPixOptions.SetupFutureUsage` from `literal('none')` to `enum('none'|'off_session')` + * ⚠️ Change type of `Checkout.Session.PaymentMethodOptions.Pix.SetupFutureUsage` and `PaymentIntent.PaymentMethodOptions.Pix.SetupFutureUsage` from `literal('none')` to `enum('none'|'off_session')` + * Add support for `Pix` on `Invoice.PaymentSettings.PaymentMethodOptions`, `InvoicePaymentSettingsPaymentMethodOptionsOptions`, `Mandate.PaymentMethodDetails`, `SetupAttempt.PaymentMethodDetails`, `SetupIntent.PaymentMethodOptions`, `SetupIntentPaymentMethodOptionsOptions`, `Subscription.PaymentSettings.PaymentMethodOptions`, and `SubscriptionPaymentSettingsPaymentMethodOptionsOptions` + * Add support for `Upi` on `Invoice.PaymentSettings.PaymentMethodOptions`, `InvoicePaymentSettingsPaymentMethodOptionsOptions`, `Subscription.PaymentSettings.PaymentMethodOptions`, and `SubscriptionPaymentSettingsPaymentMethodOptionsOptions` + * Add support for `CardPresence` on `Issuing.Authorization` + * Add support for `AllowedCardPresences` and `BlockedCardPresences` on `Issuing.Card.SpendingControls`, `Issuing.Cardholder.SpendingControls`, `IssuingCardSpendingControlsOptions`, and `IssuingCardholderSpendingControlsOptions` + * Add support for `Amount` and `Currency` on `Mandate.MultiUse` + * Add support for `AmountToConfirm` on `PaymentIntentConfirmOptions` + * Add support for `KlarnaDisplayQrCode` on `PaymentIntent.NextAction` + * Add support for `Moto` on `SetupAttempt.PaymentMethodDetails.Card` + * Add support for `PixDisplayQrCode` on `SetupIntent.NextAction` + ## 51.1.0-alpha.4 - 2026-04-15 * [#3368](https://github.com/stripe/stripe-dotnet/pull/3368) Update generated code for private-preview * Add support for `LatestVersion` on `V2.Billing.LicenseFee`, `V2.Billing.PricingPlan`, and `V2.Billing.RateCard` @@ -170,6 +193,11 @@ This release changes the pinned API version to 2026-03-25.preview and contains a * Release specs are identical. * [#3335](https://github.com/stripe/stripe-dotnet/pull/3335) Merge dotnet private preview +## 51.0.1 - 2026-04-17 +* [#3366](https://github.com/stripe/stripe-dotnet/pull/3366) Fix emptyable property serialization for third-party serializers + + * Fixes a bug where serializing Options objects through a third-party serializer (e.g. AWS Lambda) could cause the SDK to unintentionally clear fields on the API. Emptyable properties now have null-skipping annotations so third-party serializers omit unset properties during round-trips. + ## 51.0.0 - 2026-03-25 This release changes the pinned API version to `2026-03-25.dahlia` and contains breaking changes (prefixed with ⚠️ below). There's also a [detailed migration guide](https://github.com/stripe/stripe-dotnet/wiki/Migration-guide-for-v51) to simplify your upgrade process. diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 170b0bdc59..6328c51ef8 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -a527d1f955ea1eab1b7ccdb63001a69d1786fc37 \ No newline at end of file +6bd90d0c763120698bef2e92514641c64e20980c \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index ccd8e578d9..97a2932083 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2240 \ No newline at end of file +v2253 \ No newline at end of file diff --git a/src/Stripe.net/Constants/ApiVersion.cs b/src/Stripe.net/Constants/ApiVersion.cs index f487779c38..f8182e5b6c 100644 --- a/src/Stripe.net/Constants/ApiVersion.cs +++ b/src/Stripe.net/Constants/ApiVersion.cs @@ -3,6 +3,6 @@ namespace Stripe { internal class ApiVersion { - public const string Current = "2026-04-08.preview"; + public const string Current = "2026-04-22.preview"; } } \ No newline at end of file diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBillsFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBillsFeatures.cs index 65e7ffa674..944e16a4a5 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBillsFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBillsFeatures.cs @@ -8,5 +8,20 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class AccountSessionComponentsBillsFeatures : StripeEntity { + /// + /// Whether to enable the bill management feature that grants access to bill creation and + /// payment. + /// + [JsonProperty("bill_management")] + [STJS.JsonPropertyName("bill_management")] + public bool BillManagement { get; set; } + + /// + /// Whether to enable the send money feature that grants access to bill creation and + /// payment. + /// + [JsonProperty("send_money")] + [STJS.JsonPropertyName("send_money")] + public bool SendMoney { get; set; } } } diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs index d860135213..e5e57fd625 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs @@ -92,6 +92,10 @@ public class ChargePaymentMethodDetails : StripeEntity + { + [JsonProperty("balance")] + [STJS.JsonPropertyName("balance")] + public ChargePaymentMethodDetailsGiftCardBalance Balance { get; set; } + + /// + /// The brand of the gift card. + /// One of: fiserv_valuelink, givex, or svs. + /// + [JsonProperty("brand")] + [STJS.JsonPropertyName("brand")] + public string Brand { get; set; } + + /// + /// The expiration month of the gift card. + /// + [JsonProperty("exp_month")] + [STJS.JsonPropertyName("exp_month")] + public long? ExpMonth { get; set; } + + /// + /// The expiration year of the gift card. + /// + [JsonProperty("exp_year")] + [STJS.JsonPropertyName("exp_year")] + public long? ExpYear { get; set; } + + /// + /// The first six digits of the gift card number. + /// + [JsonProperty("first6")] + [STJS.JsonPropertyName("first6")] + public string First6 { get; set; } + + /// + /// The transaction ID from the gift card processor. + /// + [JsonProperty("transaction_id")] + [STJS.JsonPropertyName("transaction_id")] + public string TransactionId { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsGiftCardBalance.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsGiftCardBalance.cs new file mode 100644 index 0000000000..efc773894d --- /dev/null +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsGiftCardBalance.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ChargePaymentMethodDetailsGiftCardBalance : StripeEntity + { + /// + /// The balance amount in the smallest currency unit. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public long Amount { get; set; } + + /// + /// The currency of the balance. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs index 8c2f9741ce..0bf26d88dc 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs @@ -210,6 +210,15 @@ public class Session : StripeEntity, IHasId, IHasMetadata, IHasObject [STJS.JsonPropertyName("custom_fields")] public List CustomFields { get; set; } + /// + /// A list of the types of custom + /// payment methods (e.g. cpmt_123) this Checkout Session is allowed to accept. + /// + [JsonProperty("custom_payment_method_types")] + [STJS.JsonPropertyName("custom_payment_method_types")] + public List CustomPaymentMethodTypes { get; set; } + [JsonProperty("custom_text")] [STJS.JsonPropertyName("custom_text")] public SessionCustomText CustomText { get; set; } @@ -552,6 +561,43 @@ public PaymentLink PaymentLink [STJS.JsonPropertyName("payment_method_types")] public List PaymentMethodTypes { get; set; } + #region Expandable PaymentRecord + + /// + /// (ID of the PaymentRecord) + /// The Payment Record for this + /// Checkout Session. + /// + [JsonIgnore] + [STJS.JsonIgnore] + public string PaymentRecordId + { + get => this.InternalPaymentRecord?.Id; + set => this.InternalPaymentRecord = SetExpandableFieldId(value, this.InternalPaymentRecord); + } + + /// + /// (Expanded) + /// The Payment Record for this + /// Checkout Session. + /// + /// For more information, see the expand documentation. + /// + [JsonIgnore] + [STJS.JsonIgnore] + public PaymentRecord PaymentRecord + { + get => this.InternalPaymentRecord?.ExpandedObject; + set => this.InternalPaymentRecord = SetExpandableFieldObject(value, this.InternalPaymentRecord); + } + + [JsonProperty("payment_record")] + [JsonConverter(typeof(ExpandableFieldConverter))] + [STJS.JsonPropertyName("payment_record")] + [STJS.JsonConverter(typeof(STJExpandableFieldConverter))] + internal ExpandableField InternalPaymentRecord { get; set; } + #endregion + /// /// The payment status of the Checkout Session, one of paid, unpaid, or /// no_payment_required. You can use this value to decide when to fulfill your diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewSepaDebitGeneratedFrom.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewSepaDebitGeneratedFrom.cs index aa6cb3fd48..b682947e63 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewSepaDebitGeneratedFrom.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewSepaDebitGeneratedFrom.cs @@ -43,6 +43,41 @@ public Charge Charge internal ExpandableField InternalCharge { get; set; } #endregion + #region Expandable PaymentMethod + + /// + /// (ID of the PaymentMethod) + /// The ID of the PaymentMethod that generated this PaymentMethod, if any. + /// + [JsonIgnore] + [STJS.JsonIgnore] + public string PaymentMethodId + { + get => this.InternalPaymentMethod?.Id; + set => this.InternalPaymentMethod = SetExpandableFieldId(value, this.InternalPaymentMethod); + } + + /// + /// (Expanded) + /// The ID of the PaymentMethod that generated this PaymentMethod, if any. + /// + /// For more information, see the expand documentation. + /// + [JsonIgnore] + [STJS.JsonIgnore] + public PaymentMethod PaymentMethod + { + get => this.InternalPaymentMethod?.ExpandedObject; + set => this.InternalPaymentMethod = SetExpandableFieldObject(value, this.InternalPaymentMethod); + } + + [JsonProperty("payment_method")] + [JsonConverter(typeof(ExpandableFieldConverter))] + [STJS.JsonPropertyName("payment_method")] + [STJS.JsonConverter(typeof(STJExpandableFieldConverter))] + internal ExpandableField InternalPaymentMethod { get; set; } + #endregion + #region Expandable SetupAttempt /// diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSession.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSession.cs index 5f11ec86cd..ed1eddf645 100644 --- a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSession.cs +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSession.cs @@ -48,6 +48,13 @@ public class RequestedSession : StripeEntity, IHasId, IHasMeta [STJS.JsonPropertyName("amount_total")] public long? AmountTotal { get; set; } + /// + /// The buyer consent options for this requested session, including marketing preferences. + /// + [JsonProperty("buyer_consents")] + [STJS.JsonPropertyName("buyer_consents")] + public RequestedSessionBuyerConsents BuyerConsents { get; set; } + /// /// Time at which the object was created. Measured in seconds since the Unix epoch. /// diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsents.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsents.cs new file mode 100644 index 0000000000..21861634cf --- /dev/null +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsents.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.DelegatedCheckout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class RequestedSessionBuyerConsents : StripeEntity + { + /// + /// The marketing consent options. + /// + [JsonProperty("marketing")] + [STJS.JsonPropertyName("marketing")] + public RequestedSessionBuyerConsentsMarketing Marketing { get; set; } + } +} diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsentsMarketing.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsentsMarketing.cs new file mode 100644 index 0000000000..54d65f4ec7 --- /dev/null +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsentsMarketing.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.DelegatedCheckout +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class RequestedSessionBuyerConsentsMarketing : StripeEntity + { + /// + /// The available marketing consent options. + /// + [JsonProperty("options")] + [STJS.JsonPropertyName("options")] + public List Options { get; set; } + } +} diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsentsMarketingOption.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsentsMarketingOption.cs new file mode 100644 index 0000000000..3bcfb0a366 --- /dev/null +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsentsMarketingOption.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe.DelegatedCheckout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class RequestedSessionBuyerConsentsMarketingOption : StripeEntity + { + /// + /// The marketing channel type. + /// One of: email, or sms. + /// + [JsonProperty("channel")] + [STJS.JsonPropertyName("channel")] + public string Channel { get; set; } + + /// + /// The description of the marketing consent option. + /// + [JsonProperty("description")] + [STJS.JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// The privacy policy URL for this marketing channel. + /// + [JsonProperty("privacy_policy_url")] + [STJS.JsonPropertyName("privacy_policy_url")] + public string PrivacyPolicyUrl { get; set; } + } +} diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOption.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOption.cs index 512cd5abd7..05a99412ba 100644 --- a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOption.cs +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOption.cs @@ -24,6 +24,7 @@ public class RequestedSessionFulfillmentDetailsFulfillmentOption : StripeEntity< /// /// The type of the fulfillment option. + /// One of: digital, or shipping. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOption.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOption.cs index 91d211f0d2..e3c4813ca1 100644 --- a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOption.cs +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOption.cs @@ -24,6 +24,7 @@ public class RequestedSessionFulfillmentDetailsSelectedFulfillmentOption : Strip /// /// The type of the selected fulfillment option. + /// One of: digital, or shipping. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverride.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverride.cs index a43f3feb3a..67a43175cb 100644 --- a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverride.cs +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverride.cs @@ -32,6 +32,7 @@ public class RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverride /// /// The type of the selected fulfillment option. + /// One of: digital, or shipping. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs index a4eea37008..787f9290ae 100644 --- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs @@ -38,7 +38,7 @@ public class InvoicePaymentSettings : StripeEntity /// crypto, custom, customer_balance, eps, fpx, /// giropay, grabpay, id_bank_transfer, ideal, /// jp_credit_transfer, kakao_pay, klarna, konbini, - /// kr_card, link, multibanco, naver_pay, + /// kr_card, link, momo, multibanco, naver_pay, /// nz_bank_account, p24, pay_by_bank, payco, paynow, /// paypal, payto, pix, promptpay, revolut_pay, /// sepa_credit_transfer, sepa_debit, sofort, stripe_balance, diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs b/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs index 9f185a921b..5696e8c1ee 100644 --- a/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs +++ b/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs @@ -127,6 +127,13 @@ public Cardholder Cardholder [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + /// + /// Array of onchain crypto transactions linked to this resource. + /// + [JsonProperty("crypto_transactions")] + [STJS.JsonPropertyName("crypto_transactions")] + public List CryptoTransactions { get; set; } + /// /// The currency of the cardholder. This currency can be different from the currency /// presented at authorization and the merchant_currency field on this authorization. diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationCryptoTransaction.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationCryptoTransaction.cs new file mode 100644 index 0000000000..611cbc49df --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationCryptoTransaction.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AuthorizationCryptoTransaction : StripeEntity + { + /// + /// The confirmed crypto transaction details when type is + /// crypto_transaction_confirmed; otherwise null. + /// + [JsonProperty("crypto_transaction_confirmed")] + [STJS.JsonPropertyName("crypto_transaction_confirmed")] + public AuthorizationCryptoTransactionCryptoTransactionConfirmed CryptoTransactionConfirmed { get; set; } + + /// + /// The failed crypto transaction details when type is + /// crypto_transaction_failed; otherwise null. + /// + [JsonProperty("crypto_transaction_failed")] + [STJS.JsonPropertyName("crypto_transaction_failed")] + public AuthorizationCryptoTransactionCryptoTransactionFailed CryptoTransactionFailed { get; set; } + + /// + /// The crypto transaction variant for this array entry. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationCryptoTransactionCryptoTransactionConfirmed.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationCryptoTransactionCryptoTransactionConfirmed.cs new file mode 100644 index 0000000000..c46235034b --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationCryptoTransactionCryptoTransactionConfirmed.cs @@ -0,0 +1,85 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AuthorizationCryptoTransactionCryptoTransactionConfirmed : StripeEntity + { + /// + /// The crypto amount for the confirmed transaction. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public string Amount { get; set; } + + /// + /// The upcharged MCC amount, if one was applied. + /// + [JsonProperty("amount_mcc_upcharged")] + [STJS.JsonPropertyName("amount_mcc_upcharged")] + public string AmountMccUpcharged { get; set; } + + /// + /// The blockchain network for the confirmed transaction. + /// + [JsonProperty("chain")] + [STJS.JsonPropertyName("chain")] + public string Chain { get; set; } + + /// + /// When the transaction was confirmed onchain. + /// + [JsonProperty("confirmed_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("confirmed_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime ConfirmedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The currency of the crypto transaction amount. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// Fees associated with the transaction. + /// + [JsonProperty("fees")] + [STJS.JsonPropertyName("fees")] + public List Fees { get; set; } + + /// + /// The source wallet address for the transaction. + /// + [JsonProperty("from_address")] + [STJS.JsonPropertyName("from_address")] + public string FromAddress { get; set; } + + /// + /// Memo metadata attached to the transaction, if present. + /// + [JsonProperty("memo")] + [STJS.JsonPropertyName("memo")] + public string Memo { get; set; } + + /// + /// The destination wallet address for the transaction. + /// + [JsonProperty("to_address")] + [STJS.JsonPropertyName("to_address")] + public string ToAddress { get; set; } + + /// + /// The blockchain transaction hash. + /// + [JsonProperty("transaction_hash")] + [STJS.JsonPropertyName("transaction_hash")] + public string TransactionHash { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationCryptoTransactionCryptoTransactionConfirmedFee.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationCryptoTransactionCryptoTransactionConfirmedFee.cs new file mode 100644 index 0000000000..b6dda634a2 --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationCryptoTransactionCryptoTransactionConfirmedFee.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AuthorizationCryptoTransactionCryptoTransactionConfirmedFee : StripeEntity + { + /// + /// The fee amount. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public string Amount { get; set; } + + /// + /// The fee currency. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// The fee type. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationCryptoTransactionCryptoTransactionFailed.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationCryptoTransactionCryptoTransactionFailed.cs new file mode 100644 index 0000000000..d6f408a41a --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationCryptoTransactionCryptoTransactionFailed.cs @@ -0,0 +1,92 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AuthorizationCryptoTransactionCryptoTransactionFailed : StripeEntity + { + /// + /// The crypto amount for the failed transaction. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public string Amount { get; set; } + + /// + /// The upcharged MCC amount, if one was applied. + /// + [JsonProperty("amount_mcc_upcharged")] + [STJS.JsonPropertyName("amount_mcc_upcharged")] + public string AmountMccUpcharged { get; set; } + + /// + /// The blockchain network for the failed transaction. + /// + [JsonProperty("chain")] + [STJS.JsonPropertyName("chain")] + public string Chain { get; set; } + + /// + /// The currency of the crypto transaction amount. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// When the transaction failed. + /// + [JsonProperty("failed_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("failed_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime FailedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The reason the transaction failed. + /// + [JsonProperty("failure_reason")] + [STJS.JsonPropertyName("failure_reason")] + public string FailureReason { get; set; } + + /// + /// Fees associated with the transaction. + /// + [JsonProperty("fees")] + [STJS.JsonPropertyName("fees")] + public List Fees { get; set; } + + /// + /// The source wallet address for the attempted transaction. + /// + [JsonProperty("from_address")] + [STJS.JsonPropertyName("from_address")] + public string FromAddress { get; set; } + + /// + /// Memo metadata attached to the transaction, if present. + /// + [JsonProperty("memo")] + [STJS.JsonPropertyName("memo")] + public string Memo { get; set; } + + /// + /// The destination wallet address for the attempted transaction when one exists. + /// + [JsonProperty("to_address")] + [STJS.JsonPropertyName("to_address")] + public string ToAddress { get; set; } + + /// + /// The blockchain transaction hash when one exists. + /// + [JsonProperty("transaction_hash")] + [STJS.JsonPropertyName("transaction_hash")] + public string TransactionHash { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationCryptoTransactionCryptoTransactionFailedFee.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationCryptoTransactionCryptoTransactionFailedFee.cs new file mode 100644 index 0000000000..0c27439318 --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationCryptoTransactionCryptoTransactionFailedFee.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AuthorizationCryptoTransactionCryptoTransactionFailedFee : StripeEntity + { + /// + /// The fee amount. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public string Amount { get; set; } + + /// + /// The fee currency. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// The fee type. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationMerchantData.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationMerchantData.cs index b5905553ca..c9e856e94e 100644 --- a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationMerchantData.cs +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationMerchantData.cs @@ -53,6 +53,15 @@ public class AuthorizationMerchantData : StripeEntity [STJS.JsonPropertyName("network_id")] public string NetworkId { get; set; } + /// + /// The identifier of the payment facilitator (PayFac) that processed this authorization, as + /// assigned by the card network. Null when the transaction was not processed through a + /// PayFac. + /// + [JsonProperty("payment_facilitator_id")] + [STJS.JsonPropertyName("payment_facilitator_id")] + public string PaymentFacilitatorId { get; set; } + /// /// Postal code where the seller is located. /// @@ -67,6 +76,15 @@ public class AuthorizationMerchantData : StripeEntity [STJS.JsonPropertyName("state")] public string State { get; set; } + /// + /// The identifier of the sub-merchant involved in this authorization, as assigned by the + /// payment facilitator. Null when the transaction was not processed through a PayFac or + /// when no sub-merchant ID was provided. + /// + [JsonProperty("sub_merchant_id")] + [STJS.JsonPropertyName("sub_merchant_id")] + public string SubMerchantId { get; set; } + /// /// The seller's tax identification number. Currently populated for French merchants only. /// diff --git a/src/Stripe.net/Entities/Issuing/Disputes/Dispute.cs b/src/Stripe.net/Entities/Issuing/Disputes/Dispute.cs index ec9789db89..37c3c9bf41 100644 --- a/src/Stripe.net/Entities/Issuing/Disputes/Dispute.cs +++ b/src/Stripe.net/Entities/Issuing/Disputes/Dispute.cs @@ -58,6 +58,13 @@ public class Dispute : StripeEntity, IHasId, IHasMetadata, IHasObject, [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + /// + /// Array of onchain crypto transactions linked to this resource. + /// + [JsonProperty("crypto_transactions")] + [STJS.JsonPropertyName("crypto_transactions")] + public List CryptoTransactions { get; set; } + /// /// The currency the transaction was made in. /// diff --git a/src/Stripe.net/Entities/Issuing/Disputes/DisputeCryptoTransaction.cs b/src/Stripe.net/Entities/Issuing/Disputes/DisputeCryptoTransaction.cs new file mode 100644 index 0000000000..59bd0e08bf --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Disputes/DisputeCryptoTransaction.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class DisputeCryptoTransaction : StripeEntity + { + /// + /// The confirmed crypto transaction details when type is + /// crypto_transaction_confirmed; otherwise null. + /// + [JsonProperty("crypto_transaction_confirmed")] + [STJS.JsonPropertyName("crypto_transaction_confirmed")] + public DisputeCryptoTransactionCryptoTransactionConfirmed CryptoTransactionConfirmed { get; set; } + + /// + /// The failed crypto transaction details when type is + /// crypto_transaction_failed; otherwise null. + /// + [JsonProperty("crypto_transaction_failed")] + [STJS.JsonPropertyName("crypto_transaction_failed")] + public DisputeCryptoTransactionCryptoTransactionFailed CryptoTransactionFailed { get; set; } + + /// + /// The crypto transaction variant for this array entry. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Disputes/DisputeCryptoTransactionCryptoTransactionConfirmed.cs b/src/Stripe.net/Entities/Issuing/Disputes/DisputeCryptoTransactionCryptoTransactionConfirmed.cs new file mode 100644 index 0000000000..093046489b --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Disputes/DisputeCryptoTransactionCryptoTransactionConfirmed.cs @@ -0,0 +1,85 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class DisputeCryptoTransactionCryptoTransactionConfirmed : StripeEntity + { + /// + /// The crypto amount for the confirmed transaction. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public string Amount { get; set; } + + /// + /// The upcharged MCC amount, if one was applied. + /// + [JsonProperty("amount_mcc_upcharged")] + [STJS.JsonPropertyName("amount_mcc_upcharged")] + public string AmountMccUpcharged { get; set; } + + /// + /// The blockchain network for the confirmed transaction. + /// + [JsonProperty("chain")] + [STJS.JsonPropertyName("chain")] + public string Chain { get; set; } + + /// + /// When the transaction was confirmed onchain. + /// + [JsonProperty("confirmed_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("confirmed_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime ConfirmedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The currency of the crypto transaction amount. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// Fees associated with the transaction. + /// + [JsonProperty("fees")] + [STJS.JsonPropertyName("fees")] + public List Fees { get; set; } + + /// + /// The source wallet address for the transaction. + /// + [JsonProperty("from_address")] + [STJS.JsonPropertyName("from_address")] + public string FromAddress { get; set; } + + /// + /// Memo metadata attached to the transaction, if present. + /// + [JsonProperty("memo")] + [STJS.JsonPropertyName("memo")] + public string Memo { get; set; } + + /// + /// The destination wallet address for the transaction. + /// + [JsonProperty("to_address")] + [STJS.JsonPropertyName("to_address")] + public string ToAddress { get; set; } + + /// + /// The blockchain transaction hash. + /// + [JsonProperty("transaction_hash")] + [STJS.JsonPropertyName("transaction_hash")] + public string TransactionHash { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Disputes/DisputeCryptoTransactionCryptoTransactionConfirmedFee.cs b/src/Stripe.net/Entities/Issuing/Disputes/DisputeCryptoTransactionCryptoTransactionConfirmedFee.cs new file mode 100644 index 0000000000..bf5ae42908 --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Disputes/DisputeCryptoTransactionCryptoTransactionConfirmedFee.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class DisputeCryptoTransactionCryptoTransactionConfirmedFee : StripeEntity + { + /// + /// The fee amount. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public string Amount { get; set; } + + /// + /// The fee currency. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// The fee type. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Disputes/DisputeCryptoTransactionCryptoTransactionFailed.cs b/src/Stripe.net/Entities/Issuing/Disputes/DisputeCryptoTransactionCryptoTransactionFailed.cs new file mode 100644 index 0000000000..7b87ea8777 --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Disputes/DisputeCryptoTransactionCryptoTransactionFailed.cs @@ -0,0 +1,92 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class DisputeCryptoTransactionCryptoTransactionFailed : StripeEntity + { + /// + /// The crypto amount for the failed transaction. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public string Amount { get; set; } + + /// + /// The upcharged MCC amount, if one was applied. + /// + [JsonProperty("amount_mcc_upcharged")] + [STJS.JsonPropertyName("amount_mcc_upcharged")] + public string AmountMccUpcharged { get; set; } + + /// + /// The blockchain network for the failed transaction. + /// + [JsonProperty("chain")] + [STJS.JsonPropertyName("chain")] + public string Chain { get; set; } + + /// + /// The currency of the crypto transaction amount. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// When the transaction failed. + /// + [JsonProperty("failed_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("failed_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime FailedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The reason the transaction failed. + /// + [JsonProperty("failure_reason")] + [STJS.JsonPropertyName("failure_reason")] + public string FailureReason { get; set; } + + /// + /// Fees associated with the transaction. + /// + [JsonProperty("fees")] + [STJS.JsonPropertyName("fees")] + public List Fees { get; set; } + + /// + /// The source wallet address for the attempted transaction. + /// + [JsonProperty("from_address")] + [STJS.JsonPropertyName("from_address")] + public string FromAddress { get; set; } + + /// + /// Memo metadata attached to the transaction, if present. + /// + [JsonProperty("memo")] + [STJS.JsonPropertyName("memo")] + public string Memo { get; set; } + + /// + /// The destination wallet address for the attempted transaction when one exists. + /// + [JsonProperty("to_address")] + [STJS.JsonPropertyName("to_address")] + public string ToAddress { get; set; } + + /// + /// The blockchain transaction hash when one exists. + /// + [JsonProperty("transaction_hash")] + [STJS.JsonPropertyName("transaction_hash")] + public string TransactionHash { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Disputes/DisputeCryptoTransactionCryptoTransactionFailedFee.cs b/src/Stripe.net/Entities/Issuing/Disputes/DisputeCryptoTransactionCryptoTransactionFailedFee.cs new file mode 100644 index 0000000000..f0ad85da13 --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Disputes/DisputeCryptoTransactionCryptoTransactionFailedFee.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class DisputeCryptoTransactionCryptoTransactionFailedFee : StripeEntity + { + /// + /// The fee amount. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public string Amount { get; set; } + + /// + /// The fee currency. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// The fee type. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Transactions/Transaction.cs b/src/Stripe.net/Entities/Issuing/Transactions/Transaction.cs index 486cc5dd09..c0de5c1cdf 100644 --- a/src/Stripe.net/Entities/Issuing/Transactions/Transaction.cs +++ b/src/Stripe.net/Entities/Issuing/Transactions/Transaction.cs @@ -201,6 +201,13 @@ public Cardholder Cardholder [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + /// + /// Array of onchain crypto transactions linked to this resource. + /// + [JsonProperty("crypto_transactions")] + [STJS.JsonPropertyName("crypto_transactions")] + public List CryptoTransactions { get; set; } + /// /// Three-letter ISO currency /// code, in lowercase. Must be a supported diff --git a/src/Stripe.net/Entities/Issuing/Transactions/TransactionCryptoTransaction.cs b/src/Stripe.net/Entities/Issuing/Transactions/TransactionCryptoTransaction.cs new file mode 100644 index 0000000000..b3f278530b --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Transactions/TransactionCryptoTransaction.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class TransactionCryptoTransaction : StripeEntity + { + /// + /// The confirmed crypto transaction details when type is + /// crypto_transaction_confirmed; otherwise null. + /// + [JsonProperty("crypto_transaction_confirmed")] + [STJS.JsonPropertyName("crypto_transaction_confirmed")] + public TransactionCryptoTransactionCryptoTransactionConfirmed CryptoTransactionConfirmed { get; set; } + + /// + /// The failed crypto transaction details when type is + /// crypto_transaction_failed; otherwise null. + /// + [JsonProperty("crypto_transaction_failed")] + [STJS.JsonPropertyName("crypto_transaction_failed")] + public TransactionCryptoTransactionCryptoTransactionFailed CryptoTransactionFailed { get; set; } + + /// + /// The crypto transaction variant for this array entry. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Transactions/TransactionCryptoTransactionCryptoTransactionConfirmed.cs b/src/Stripe.net/Entities/Issuing/Transactions/TransactionCryptoTransactionCryptoTransactionConfirmed.cs new file mode 100644 index 0000000000..aa3e7013cd --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Transactions/TransactionCryptoTransactionCryptoTransactionConfirmed.cs @@ -0,0 +1,85 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class TransactionCryptoTransactionCryptoTransactionConfirmed : StripeEntity + { + /// + /// The crypto amount for the confirmed transaction. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public string Amount { get; set; } + + /// + /// The upcharged MCC amount, if one was applied. + /// + [JsonProperty("amount_mcc_upcharged")] + [STJS.JsonPropertyName("amount_mcc_upcharged")] + public string AmountMccUpcharged { get; set; } + + /// + /// The blockchain network for the confirmed transaction. + /// + [JsonProperty("chain")] + [STJS.JsonPropertyName("chain")] + public string Chain { get; set; } + + /// + /// When the transaction was confirmed onchain. + /// + [JsonProperty("confirmed_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("confirmed_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime ConfirmedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The currency of the crypto transaction amount. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// Fees associated with the transaction. + /// + [JsonProperty("fees")] + [STJS.JsonPropertyName("fees")] + public List Fees { get; set; } + + /// + /// The source wallet address for the transaction. + /// + [JsonProperty("from_address")] + [STJS.JsonPropertyName("from_address")] + public string FromAddress { get; set; } + + /// + /// Memo metadata attached to the transaction, if present. + /// + [JsonProperty("memo")] + [STJS.JsonPropertyName("memo")] + public string Memo { get; set; } + + /// + /// The destination wallet address for the transaction. + /// + [JsonProperty("to_address")] + [STJS.JsonPropertyName("to_address")] + public string ToAddress { get; set; } + + /// + /// The blockchain transaction hash. + /// + [JsonProperty("transaction_hash")] + [STJS.JsonPropertyName("transaction_hash")] + public string TransactionHash { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Transactions/TransactionCryptoTransactionCryptoTransactionConfirmedFee.cs b/src/Stripe.net/Entities/Issuing/Transactions/TransactionCryptoTransactionCryptoTransactionConfirmedFee.cs new file mode 100644 index 0000000000..60091f634e --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Transactions/TransactionCryptoTransactionCryptoTransactionConfirmedFee.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class TransactionCryptoTransactionCryptoTransactionConfirmedFee : StripeEntity + { + /// + /// The fee amount. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public string Amount { get; set; } + + /// + /// The fee currency. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// The fee type. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Transactions/TransactionCryptoTransactionCryptoTransactionFailed.cs b/src/Stripe.net/Entities/Issuing/Transactions/TransactionCryptoTransactionCryptoTransactionFailed.cs new file mode 100644 index 0000000000..7ef3d6c304 --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Transactions/TransactionCryptoTransactionCryptoTransactionFailed.cs @@ -0,0 +1,92 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class TransactionCryptoTransactionCryptoTransactionFailed : StripeEntity + { + /// + /// The crypto amount for the failed transaction. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public string Amount { get; set; } + + /// + /// The upcharged MCC amount, if one was applied. + /// + [JsonProperty("amount_mcc_upcharged")] + [STJS.JsonPropertyName("amount_mcc_upcharged")] + public string AmountMccUpcharged { get; set; } + + /// + /// The blockchain network for the failed transaction. + /// + [JsonProperty("chain")] + [STJS.JsonPropertyName("chain")] + public string Chain { get; set; } + + /// + /// The currency of the crypto transaction amount. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// When the transaction failed. + /// + [JsonProperty("failed_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("failed_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime FailedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The reason the transaction failed. + /// + [JsonProperty("failure_reason")] + [STJS.JsonPropertyName("failure_reason")] + public string FailureReason { get; set; } + + /// + /// Fees associated with the transaction. + /// + [JsonProperty("fees")] + [STJS.JsonPropertyName("fees")] + public List Fees { get; set; } + + /// + /// The source wallet address for the attempted transaction. + /// + [JsonProperty("from_address")] + [STJS.JsonPropertyName("from_address")] + public string FromAddress { get; set; } + + /// + /// Memo metadata attached to the transaction, if present. + /// + [JsonProperty("memo")] + [STJS.JsonPropertyName("memo")] + public string Memo { get; set; } + + /// + /// The destination wallet address for the attempted transaction when one exists. + /// + [JsonProperty("to_address")] + [STJS.JsonPropertyName("to_address")] + public string ToAddress { get; set; } + + /// + /// The blockchain transaction hash when one exists. + /// + [JsonProperty("transaction_hash")] + [STJS.JsonPropertyName("transaction_hash")] + public string TransactionHash { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Transactions/TransactionCryptoTransactionCryptoTransactionFailedFee.cs b/src/Stripe.net/Entities/Issuing/Transactions/TransactionCryptoTransactionCryptoTransactionFailedFee.cs new file mode 100644 index 0000000000..2fb079466b --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Transactions/TransactionCryptoTransactionCryptoTransactionFailedFee.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class TransactionCryptoTransactionCryptoTransactionFailedFee : StripeEntity + { + /// + /// The fee amount. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public string Amount { get; set; } + + /// + /// The fee currency. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// The fee type. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs index 735564de52..1ff4c311a0 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs @@ -111,6 +111,10 @@ public class PaymentAttemptRecordPaymentMethodDetails : StripeEntity + { + [JsonProperty("balance")] + [STJS.JsonPropertyName("balance")] + public PaymentAttemptRecordPaymentMethodDetailsGiftCardBalance Balance { get; set; } + + /// + /// The brand of the gift card. + /// One of: fiserv_valuelink, givex, or svs. + /// + [JsonProperty("brand")] + [STJS.JsonPropertyName("brand")] + public string Brand { get; set; } + + /// + /// The expiration month of the gift card. + /// + [JsonProperty("exp_month")] + [STJS.JsonPropertyName("exp_month")] + public long? ExpMonth { get; set; } + + /// + /// The expiration year of the gift card. + /// + [JsonProperty("exp_year")] + [STJS.JsonPropertyName("exp_year")] + public long? ExpYear { get; set; } + + /// + /// The first six digits of the gift card number. + /// + [JsonProperty("first6")] + [STJS.JsonPropertyName("first6")] + public string First6 { get; set; } + + /// + /// The transaction ID from the gift card processor. + /// + [JsonProperty("transaction_id")] + [STJS.JsonPropertyName("transaction_id")] + public string TransactionId { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsGiftCardBalance.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsGiftCardBalance.cs new file mode 100644 index 0000000000..2e5c648f42 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsGiftCardBalance.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PaymentAttemptRecordPaymentMethodDetailsGiftCardBalance : StripeEntity + { + /// + /// The balance amount in the smallest currency unit. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public long Amount { get; set; } + + /// + /// The currency of the balance. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs index a4807e3c3f..9c785ae146 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs @@ -38,6 +38,13 @@ public class PaymentIntent : StripeEntity, IHasId, IHasMetadata, [STJS.JsonPropertyName("object")] public string Object { get; set; } + /// + /// Details about the agent that initiated the creation of this PaymentIntent. + /// + [JsonProperty("agent_details")] + [STJS.JsonPropertyName("agent_details")] + public PaymentIntentAgentDetails AgentDetails { get; set; } + /// /// Allocated Funds configuration for this PaymentIntent. /// @@ -607,13 +614,6 @@ public Review Review [STJS.JsonPropertyName("setup_future_usage")] public string SetupFutureUsage { get; set; } - /// - /// ID of the shared payment token granted to be used in this PaymentIntent. - /// - [JsonProperty("shared_payment_granted_token")] - [STJS.JsonPropertyName("shared_payment_granted_token")] - public string SharedPaymentGrantedToken { get; set; } - /// /// Shipping information for this PaymentIntent. /// diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAgentDetails.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAgentDetails.cs new file mode 100644 index 0000000000..7b316d3392 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAgentDetails.cs @@ -0,0 +1,53 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PaymentIntentAgentDetails : StripeEntity + { + /// + /// The name of the agent that initiated the payment. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + #region Expandable NetworkBusinessProfile + + /// + /// (ID of the Profile) + /// The Stripe profile associated with the agent that initiated the payment. + /// + [JsonIgnore] + [STJS.JsonIgnore] + public string NetworkBusinessProfileId + { + get => this.InternalNetworkBusinessProfile?.Id; + set => this.InternalNetworkBusinessProfile = SetExpandableFieldId(value, this.InternalNetworkBusinessProfile); + } + + /// + /// (Expanded) + /// The Stripe profile associated with the agent that initiated the payment. + /// + /// For more information, see the expand documentation. + /// + [JsonIgnore] + [STJS.JsonIgnore] + public Profile NetworkBusinessProfile + { + get => this.InternalNetworkBusinessProfile?.ExpandedObject; + set => this.InternalNetworkBusinessProfile = SetExpandableFieldObject(value, this.InternalNetworkBusinessProfile); + } + + [JsonProperty("network_business_profile")] + [JsonConverter(typeof(ExpandableFieldConverter))] + [STJS.JsonPropertyName("network_business_profile")] + [STJS.JsonConverter(typeof(STJExpandableFieldConverter))] + internal ExpandableField InternalNetworkBusinessProfile { get; set; } + #endregion + } +} diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs index f57beabdde..014a4a5131 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs @@ -341,13 +341,6 @@ public Customer Customer [STJS.JsonPropertyName("sepa_debit")] public PaymentMethodSepaDebit SepaDebit { get; set; } - /// - /// ID of the shared payment granted token used in the creation of this PaymentMethod. - /// - [JsonProperty("shared_payment_granted_token")] - [STJS.JsonPropertyName("shared_payment_granted_token")] - public string SharedPaymentGrantedToken { get; set; } - [JsonProperty("shopeepay")] [STJS.JsonPropertyName("shopeepay")] public PaymentMethodShopeepay Shopeepay { get; set; } diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodSepaDebitGeneratedFrom.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodSepaDebitGeneratedFrom.cs index e316ad1411..ff21caceac 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodSepaDebitGeneratedFrom.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodSepaDebitGeneratedFrom.cs @@ -43,6 +43,41 @@ public Charge Charge internal ExpandableField InternalCharge { get; set; } #endregion + #region Expandable PaymentMethod + + /// + /// (ID of the PaymentMethod) + /// The ID of the PaymentMethod that generated this PaymentMethod, if any. + /// + [JsonIgnore] + [STJS.JsonIgnore] + public string PaymentMethodId + { + get => this.InternalPaymentMethod?.Id; + set => this.InternalPaymentMethod = SetExpandableFieldId(value, this.InternalPaymentMethod); + } + + /// + /// (Expanded) + /// The ID of the PaymentMethod that generated this PaymentMethod, if any. + /// + /// For more information, see the expand documentation. + /// + [JsonIgnore] + [STJS.JsonIgnore] + public PaymentMethod PaymentMethod + { + get => this.InternalPaymentMethod?.ExpandedObject; + set => this.InternalPaymentMethod = SetExpandableFieldObject(value, this.InternalPaymentMethod); + } + + [JsonProperty("payment_method")] + [JsonConverter(typeof(ExpandableFieldConverter))] + [STJS.JsonPropertyName("payment_method")] + [STJS.JsonConverter(typeof(STJExpandableFieldConverter))] + internal ExpandableField InternalPaymentMethod { get; set; } + #endregion + #region Expandable SetupAttempt /// diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetails.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetails.cs index c9d66772d9..896ceec658 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetails.cs @@ -111,6 +111,10 @@ public class PaymentRecordPaymentMethodDetails : StripeEntity + { + [JsonProperty("balance")] + [STJS.JsonPropertyName("balance")] + public PaymentRecordPaymentMethodDetailsGiftCardBalance Balance { get; set; } + + /// + /// The brand of the gift card. + /// One of: fiserv_valuelink, givex, or svs. + /// + [JsonProperty("brand")] + [STJS.JsonPropertyName("brand")] + public string Brand { get; set; } + + /// + /// The expiration month of the gift card. + /// + [JsonProperty("exp_month")] + [STJS.JsonPropertyName("exp_month")] + public long? ExpMonth { get; set; } + + /// + /// The expiration year of the gift card. + /// + [JsonProperty("exp_year")] + [STJS.JsonPropertyName("exp_year")] + public long? ExpYear { get; set; } + + /// + /// The first six digits of the gift card number. + /// + [JsonProperty("first6")] + [STJS.JsonPropertyName("first6")] + public string First6 { get; set; } + + /// + /// The transaction ID from the gift card processor. + /// + [JsonProperty("transaction_id")] + [STJS.JsonPropertyName("transaction_id")] + public string TransactionId { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsGiftCardBalance.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsGiftCardBalance.cs new file mode 100644 index 0000000000..cc08c16f40 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsGiftCardBalance.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PaymentRecordPaymentMethodDetailsGiftCardBalance : StripeEntity + { + /// + /// The balance amount in the smallest currency unit. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public long Amount { get; set; } + + /// + /// The currency of the balance. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Products/Product.cs b/src/Stripe.net/Entities/Products/Product.cs index 3562656f70..9922574449 100644 --- a/src/Stripe.net/Entities/Products/Product.cs +++ b/src/Stripe.net/Entities/Products/Product.cs @@ -109,6 +109,10 @@ public Price DefaultPrice [STJS.JsonPropertyName("description")] public string Description { get; set; } + [JsonProperty("identifiers")] + [STJS.JsonPropertyName("identifiers")] + public ProductIdentifiers Identifiers { get; set; } + /// /// A list of up to 8 URLs of images for this product, meant to be displayable to the /// customer. diff --git a/src/Stripe.net/Entities/Products/ProductIdentifiers.cs b/src/Stripe.net/Entities/Products/ProductIdentifiers.cs new file mode 100644 index 0000000000..37eaf95c05 --- /dev/null +++ b/src/Stripe.net/Entities/Products/ProductIdentifiers.cs @@ -0,0 +1,69 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ProductIdentifiers : StripeEntity + { + /// + /// European Article Number (EAN) consisting of 8 or 13 digits and optional dashes. You may + /// optionally provide a leading 0 for a total of 14 digits. The final digit is a validated + /// check digit. + /// + [JsonProperty("ean")] + [STJS.JsonPropertyName("ean")] + public string Ean { get; set; } + + /// + /// Global Trade Item Number (GTIN) consisting of 8, 12, 13, or 14 digits and optional + /// dashes. The final digit is a validated check digit. + /// + [JsonProperty("gtin")] + [STJS.JsonPropertyName("gtin")] + public string Gtin { get; set; } + + /// + /// International Standard Book Number (ISBN) consisting of 10 or 13 digits and optional + /// dashes. The final digit is a validated check digit. For ISBN-10, the final digit may be + /// a X. + /// + [JsonProperty("isbn")] + [STJS.JsonPropertyName("isbn")] + public string Isbn { get; set; } + + /// + /// Japanese Article Number (JAN) consisting of 13 digits and optional dashes. The first two + /// digits must either be 45 or 49. The final digit is a validated check + /// digit. + /// + [JsonProperty("jan")] + [STJS.JsonPropertyName("jan")] + public string Jan { get; set; } + + /// + /// Manufacturer Part Number (MPN). May include up to 70 alphanumeric characters and dashes. + /// + [JsonProperty("mpn")] + [STJS.JsonPropertyName("mpn")] + public string Mpn { get; set; } + + /// + /// National Stock Number (NSN) consisting of 13 digits and optional dashes. The seventh + /// character may also be alphanumeric. + /// + [JsonProperty("nsn")] + [STJS.JsonPropertyName("nsn")] + public string Nsn { get; set; } + + /// + /// Universal Product Code (UPC) consisting of 12 digits and optional dashes. The final + /// digit is a validated check digit. + /// + [JsonProperty("upc")] + [STJS.JsonPropertyName("upc")] + public string Upc { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs index 2dfe7d29b5..e05921a9f8 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs @@ -38,7 +38,7 @@ public class QuotePreviewInvoicePaymentSettings : StripeEntitycrypto, custom, customer_balance, eps, fpx, /// giropay, grabpay, id_bank_transfer, ideal, /// jp_credit_transfer, kakao_pay, klarna, konbini, - /// kr_card, link, multibanco, naver_pay, + /// kr_card, link, momo, multibanco, naver_pay, /// nz_bank_account, p24, pay_by_bank, payco, paynow, /// paypal, payto, pix, promptpay, revolut_pay, /// sepa_credit_transfer, sepa_debit, sofort, stripe_balance, diff --git a/src/Stripe.net/Entities/Radar/AccountEvaluations/AccountEvaluationEvent.cs b/src/Stripe.net/Entities/Radar/AccountEvaluations/AccountEvaluationEvent.cs index 4c8c6c37dd..b08b36d10d 100644 --- a/src/Stripe.net/Entities/Radar/AccountEvaluations/AccountEvaluationEvent.cs +++ b/src/Stripe.net/Entities/Radar/AccountEvaluations/AccountEvaluationEvent.cs @@ -16,6 +16,13 @@ public class AccountEvaluationEvent : StripeEntity [STJS.JsonPropertyName("login_failed")] public AccountEvaluationEventLoginFailed LoginFailed { get; set; } + /// + /// Data about a succeeded login event. + /// + [JsonProperty("login_succeeded")] + [STJS.JsonPropertyName("login_succeeded")] + public AccountEvaluationEventLoginSucceeded LoginSucceeded { get; set; } + /// /// Time at which the event occurred. Measured in seconds since the Unix epoch. /// @@ -32,6 +39,13 @@ public class AccountEvaluationEvent : StripeEntity [STJS.JsonPropertyName("registration_failed")] public AccountEvaluationEventRegistrationFailed RegistrationFailed { get; set; } + /// + /// Data about a succeeded registration event. + /// + [JsonProperty("registration_succeeded")] + [STJS.JsonPropertyName("registration_succeeded")] + public AccountEvaluationEventRegistrationSucceeded RegistrationSucceeded { get; set; } + /// /// The type of event that occurred. /// diff --git a/src/Stripe.net/Entities/Radar/AccountEvaluations/AccountEvaluationEventLoginSucceeded.cs b/src/Stripe.net/Entities/Radar/AccountEvaluations/AccountEvaluationEventLoginSucceeded.cs new file mode 100644 index 0000000000..a05890c292 --- /dev/null +++ b/src/Stripe.net/Entities/Radar/AccountEvaluations/AccountEvaluationEventLoginSucceeded.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.Radar +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountEvaluationEventLoginSucceeded : StripeEntity + { + /// + /// The qualification for a login success. + /// + [JsonProperty("qualification")] + [STJS.JsonPropertyName("qualification")] + public string Qualification { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Radar/AccountEvaluations/AccountEvaluationEventRegistrationSucceeded.cs b/src/Stripe.net/Entities/Radar/AccountEvaluations/AccountEvaluationEventRegistrationSucceeded.cs new file mode 100644 index 0000000000..6020fc9791 --- /dev/null +++ b/src/Stripe.net/Entities/Radar/AccountEvaluations/AccountEvaluationEventRegistrationSucceeded.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.Radar +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountEvaluationEventRegistrationSucceeded : StripeEntity + { + /// + /// The qualification for a registration success. + /// + [JsonProperty("qualification")] + [STJS.JsonPropertyName("qualification")] + public string Qualification { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationAuthorizationDetails.cs b/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationAuthorizationDetails.cs index 57d5956dfb..0b8ed138ce 100644 --- a/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationAuthorizationDetails.cs +++ b/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationAuthorizationDetails.cs @@ -53,7 +53,7 @@ public class IssuingAuthorizationEvaluationAuthorizationDetails : StripeEntity - /// The timestamp of the authorization initiated in seconds. + /// The time the authorization was initiated, as a Unix timestamp in seconds. /// [JsonProperty("initiated_at")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardDetails.cs b/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardDetails.cs index 2da31d2375..2c7eb41978 100644 --- a/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardDetails.cs +++ b/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardDetails.cs @@ -32,7 +32,7 @@ public class IssuingAuthorizationEvaluationCardDetails : StripeEntity - /// The timestamp when the card was created. + /// The timestamp when the card was created, as a Unix timestamp in seconds. /// [JsonProperty("created_at")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenPaymentMethodDetailsSepaDebitGeneratedFrom.cs b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenPaymentMethodDetailsSepaDebitGeneratedFrom.cs index 3786bd5159..5c6dab4ad0 100644 --- a/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenPaymentMethodDetailsSepaDebitGeneratedFrom.cs +++ b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenPaymentMethodDetailsSepaDebitGeneratedFrom.cs @@ -43,6 +43,41 @@ public Charge Charge internal ExpandableField InternalCharge { get; set; } #endregion + #region Expandable PaymentMethod + + /// + /// (ID of the PaymentMethod) + /// The ID of the PaymentMethod that generated this PaymentMethod, if any. + /// + [JsonIgnore] + [STJS.JsonIgnore] + public string PaymentMethodId + { + get => this.InternalPaymentMethod?.Id; + set => this.InternalPaymentMethod = SetExpandableFieldId(value, this.InternalPaymentMethod); + } + + /// + /// (Expanded) + /// The ID of the PaymentMethod that generated this PaymentMethod, if any. + /// + /// For more information, see the expand documentation. + /// + [JsonIgnore] + [STJS.JsonIgnore] + public PaymentMethod PaymentMethod + { + get => this.InternalPaymentMethod?.ExpandedObject; + set => this.InternalPaymentMethod = SetExpandableFieldObject(value, this.InternalPaymentMethod); + } + + [JsonProperty("payment_method")] + [JsonConverter(typeof(ExpandableFieldConverter))] + [STJS.JsonPropertyName("payment_method")] + [STJS.JsonConverter(typeof(STJExpandableFieldConverter))] + internal ExpandableField InternalPaymentMethod { get; set; } + #endregion + #region Expandable SetupAttempt /// diff --git a/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedToken.cs b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedToken.cs index 464bed1f0e..71d1a2188e 100644 --- a/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedToken.cs +++ b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedToken.cs @@ -40,13 +40,6 @@ public class IssuedToken : StripeEntity, IHasId, IHasObject [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; - /// - /// ID of an existing Customer. - /// - [JsonProperty("customer")] - [STJS.JsonPropertyName("customer")] - public string Customer { get; set; } - /// /// Time at which this SharedPaymentIssuedToken was deactivated. /// diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs index 75ea235f44..26e86d3bb6 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs @@ -30,7 +30,7 @@ public class SubscriptionPaymentSettings : StripeEntitycrypto, custom, customer_balance, eps, fpx, /// giropay, grabpay, id_bank_transfer, ideal, /// jp_credit_transfer, kakao_pay, klarna, konbini, - /// kr_card, link, multibanco, naver_pay, + /// kr_card, link, momo, multibanco, naver_pay, /// nz_bank_account, p24, pay_by_bank, payco, paynow, /// paypal, payto, pix, promptpay, revolut_pay, /// sepa_credit_transfer, sepa_debit, sofort, stripe_balance, diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderAction.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderAction.cs index 5b99fd99b2..a1b0dc7770 100644 --- a/src/Stripe.net/Entities/Terminal/Readers/ReaderAction.cs +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderAction.cs @@ -43,6 +43,13 @@ public class ReaderAction : StripeEntity [STJS.JsonPropertyName("failure_message")] public string FailureMessage { get; set; } + /// + /// Represents a reader action to print content. + /// + [JsonProperty("print_content")] + [STJS.JsonPropertyName("print_content")] + public ReaderActionPrintContent PrintContent { get; set; } + /// /// Represents a reader action to process a payment intent. /// @@ -82,7 +89,7 @@ public class ReaderAction : StripeEntity /// /// Type of action performed by the reader. /// One of: collect_inputs, collect_payment_method, - /// confirm_payment_intent, process_payment_intent, + /// confirm_payment_intent, print_content, process_payment_intent, /// process_setup_intent, refund_payment, or set_reader_display. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionPrintContent.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionPrintContent.cs new file mode 100644 index 0000000000..e8fd94845d --- /dev/null +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionPrintContent.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ReaderActionPrintContent : StripeEntity + { + /// + /// Metadata of an uploaded file. + /// + [JsonProperty("image")] + [STJS.JsonPropertyName("image")] + public ReaderActionPrintContentImage Image { get; set; } + + /// + /// The type of content to print. Currently supports image. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionPrintContentImage.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionPrintContentImage.cs new file mode 100644 index 0000000000..35bc19745d --- /dev/null +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionPrintContentImage.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ReaderActionPrintContentImage : StripeEntity + { + /// + /// Creation time of the object (in seconds since the Unix epoch). + /// + [JsonProperty("created_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("created_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime CreatedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The original name of the uploaded file (e.g. receipt.png). + /// + [JsonProperty("filename")] + [STJS.JsonPropertyName("filename")] + public string Filename { get; set; } + + /// + /// The size (in bytes) of the uploaded file. + /// + [JsonProperty("size")] + [STJS.JsonPropertyName("size")] + public long Size { get; set; } + + /// + /// The format of the uploaded file. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/BillSettingVersions/BillSettingVersionCalculationTax.cs b/src/Stripe.net/Entities/V2/Billing/BillSettingVersions/BillSettingVersionCalculationTax.cs index 4ae84994cb..25bee96cef 100644 --- a/src/Stripe.net/Entities/V2/Billing/BillSettingVersions/BillSettingVersionCalculationTax.cs +++ b/src/Stripe.net/Entities/V2/Billing/BillSettingVersions/BillSettingVersionCalculationTax.cs @@ -9,8 +9,8 @@ namespace Stripe.V2.Billing public class BillSettingVersionCalculationTax : StripeEntity { /// - /// Determines if tax will be calculated automatically based on a PTC or manually based on - /// rules defined by the merchant. Defaults to "manual". + /// Determines if tax is calculated automatically based on a PTC or manually based on rules + /// defined by the business. Defaults to "manual". /// One of: automatic, or manual. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Entities/V2/Billing/BillSettingVersions/BillSettingVersionInvoice.cs b/src/Stripe.net/Entities/V2/Billing/BillSettingVersions/BillSettingVersionInvoice.cs index d304d78d3a..5d2974f27f 100644 --- a/src/Stripe.net/Entities/V2/Billing/BillSettingVersions/BillSettingVersionInvoice.cs +++ b/src/Stripe.net/Entities/V2/Billing/BillSettingVersions/BillSettingVersionInvoice.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class BillSettingVersionInvoice : StripeEntity { /// - /// The amount of time until the invoice will be overdue for payment. + /// The amount of time until the invoice is overdue for payment. /// [JsonProperty("time_until_due")] [STJS.JsonPropertyName("time_until_due")] diff --git a/src/Stripe.net/Entities/V2/Billing/BillSettingVersions/BillSettingVersionInvoiceTimeUntilDue.cs b/src/Stripe.net/Entities/V2/Billing/BillSettingVersions/BillSettingVersionInvoiceTimeUntilDue.cs index 787028906b..df832ec8d5 100644 --- a/src/Stripe.net/Entities/V2/Billing/BillSettingVersions/BillSettingVersionInvoiceTimeUntilDue.cs +++ b/src/Stripe.net/Entities/V2/Billing/BillSettingVersions/BillSettingVersionInvoiceTimeUntilDue.cs @@ -18,7 +18,7 @@ public class BillSettingVersionInvoiceTimeUntilDue : StripeEntity /// The number of interval units. For example, if interval=day and interval_count=30, the - /// invoice will be due in 30 days. + /// invoice is due in 30 days. /// [JsonProperty("interval_count")] [STJS.JsonPropertyName("interval_count")] diff --git a/src/Stripe.net/Entities/V2/Billing/BillSettings/BillSetting.cs b/src/Stripe.net/Entities/V2/Billing/BillSettings/BillSetting.cs index c2552caf80..438ce1b3a7 100644 --- a/src/Stripe.net/Entities/V2/Billing/BillSettings/BillSetting.cs +++ b/src/Stripe.net/Entities/V2/Billing/BillSettings/BillSetting.cs @@ -65,7 +65,7 @@ public class BillSetting : StripeEntity, IHasId, IHasObject public string InvoiceRenderingTemplate { get; set; } /// - /// The latest version of the current settings object. This will be Updated every time an + /// The latest version of the current settings object. This is updated every time an /// attribute of the settings is updated. /// [JsonProperty("latest_version")] diff --git a/src/Stripe.net/Entities/V2/Billing/BillSettings/BillSettingCalculationTax.cs b/src/Stripe.net/Entities/V2/Billing/BillSettings/BillSettingCalculationTax.cs index 23811f2613..70ccc40f7c 100644 --- a/src/Stripe.net/Entities/V2/Billing/BillSettings/BillSettingCalculationTax.cs +++ b/src/Stripe.net/Entities/V2/Billing/BillSettings/BillSettingCalculationTax.cs @@ -9,8 +9,8 @@ namespace Stripe.V2.Billing public class BillSettingCalculationTax : StripeEntity { /// - /// Determines if tax will be calculated automatically based on a PTC or manually based on - /// rules defined by the merchant. Defaults to "manual". + /// Determines if tax is calculated automatically based on a PTC or manually based on rules + /// defined by the business. Defaults to "manual". /// One of: automatic, or manual. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Entities/V2/Billing/BillSettings/BillSettingInvoice.cs b/src/Stripe.net/Entities/V2/Billing/BillSettings/BillSettingInvoice.cs index cbd060452f..5738242be1 100644 --- a/src/Stripe.net/Entities/V2/Billing/BillSettings/BillSettingInvoice.cs +++ b/src/Stripe.net/Entities/V2/Billing/BillSettings/BillSettingInvoice.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class BillSettingInvoice : StripeEntity { /// - /// The amount of time until the invoice will be overdue for payment. + /// The amount of time until the invoice is overdue for payment. /// [JsonProperty("time_until_due")] [STJS.JsonPropertyName("time_until_due")] diff --git a/src/Stripe.net/Entities/V2/Billing/BillSettings/BillSettingInvoiceTimeUntilDue.cs b/src/Stripe.net/Entities/V2/Billing/BillSettings/BillSettingInvoiceTimeUntilDue.cs index 3acd95b4d7..c6f517c0b2 100644 --- a/src/Stripe.net/Entities/V2/Billing/BillSettings/BillSettingInvoiceTimeUntilDue.cs +++ b/src/Stripe.net/Entities/V2/Billing/BillSettings/BillSettingInvoiceTimeUntilDue.cs @@ -18,7 +18,7 @@ public class BillSettingInvoiceTimeUntilDue : StripeEntity /// The number of interval units. For example, if interval=day and interval_count=30, the - /// invoice will be due in 30 days. + /// invoice is due in 30 days. /// [JsonProperty("interval_count")] [STJS.JsonPropertyName("interval_count")] diff --git a/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceBillingCycleMonth.cs b/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceBillingCycleMonth.cs index f7d496752a..f52376aba1 100644 --- a/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceBillingCycleMonth.cs +++ b/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceBillingCycleMonth.cs @@ -10,8 +10,8 @@ public class CadenceBillingCycleMonth : StripeEntity { /// /// The day to anchor the billing on for a type="month" billing cycle from 1-31. If this - /// number is greater than the number of days in the month being billed, this will anchor to - /// the last day of the month. + /// number is greater than the number of days in the month being billed, this anchors to the + /// last day of the month. /// [JsonProperty("day_of_month")] [STJS.JsonPropertyName("day_of_month")] diff --git a/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceBillingCycleYear.cs b/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceBillingCycleYear.cs index a0ea610686..dda4c0d714 100644 --- a/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceBillingCycleYear.cs +++ b/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceBillingCycleYear.cs @@ -10,16 +10,16 @@ public class CadenceBillingCycleYear : StripeEntity { /// /// The day to anchor the billing on for a type="month" billing cycle from 1-31. If this - /// number is greater than the number of days in the month being billed, this will anchor to - /// the last day of the month. + /// number is greater than the number of days in the month being billed, this anchors to the + /// last day of the month. /// [JsonProperty("day_of_month")] [STJS.JsonPropertyName("day_of_month")] public long DayOfMonth { get; set; } /// - /// The month to bill on from 1-12. If not provided, this will default to the month the - /// cadence was created. + /// The month to bill on from 1-12. If not provided, this defaults to the month the cadence + /// was created. /// [JsonProperty("month_of_year")] [STJS.JsonPropertyName("month_of_year")] diff --git a/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceInvoiceDiscountRulePercentOff.cs b/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceInvoiceDiscountRulePercentOff.cs index 971ba6def4..b99c920968 100644 --- a/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceInvoiceDiscountRulePercentOff.cs +++ b/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceInvoiceDiscountRulePercentOff.cs @@ -16,8 +16,8 @@ public class CadenceInvoiceDiscountRulePercentOff : StripeEntity - /// Percent that will be taken off of the amount. For example, percent_off of 50.0 will make - /// $100 amount $50 instead. + /// Percent that is taken off the amount. For example, a percent_off of 50.0 reduces a 100 + /// USD amount to 50 USD. /// [JsonProperty("percent_off")] [JsonConverter(typeof(DecimalStringConverter))] diff --git a/src/Stripe.net/Entities/V2/Billing/Cadences/CadencePayer.cs b/src/Stripe.net/Entities/V2/Billing/Cadences/CadencePayer.cs index 7da8c2fac4..9ac5069264 100644 --- a/src/Stripe.net/Entities/V2/Billing/Cadences/CadencePayer.cs +++ b/src/Stripe.net/Entities/V2/Billing/Cadences/CadencePayer.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class CadencePayer : StripeEntity { /// - /// The ID of the Billing Profile object which determines how a bill will be paid. + /// The ID of the Billing Profile object which determines how a bill is paid. /// [JsonProperty("billing_profile")] [STJS.JsonPropertyName("billing_profile")] diff --git a/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceSettingsDataBillCalculationTax.cs b/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceSettingsDataBillCalculationTax.cs index cfd250bcaf..a91f12d10e 100644 --- a/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceSettingsDataBillCalculationTax.cs +++ b/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceSettingsDataBillCalculationTax.cs @@ -9,8 +9,8 @@ namespace Stripe.V2.Billing public class CadenceSettingsDataBillCalculationTax : StripeEntity { /// - /// Determines if tax will be calculated automatically based on a PTC or manually based on - /// rules defined by the merchant. Defaults to "manual". + /// Determines if tax is calculated automatically based on a PTC or manually based on rules + /// defined by the business. Defaults to "manual". /// One of: automatic, or manual. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceSettingsDataBillInvoice.cs b/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceSettingsDataBillInvoice.cs index 76db47f0ea..503ad14c1e 100644 --- a/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceSettingsDataBillInvoice.cs +++ b/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceSettingsDataBillInvoice.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class CadenceSettingsDataBillInvoice : StripeEntity { /// - /// The amount of time until the invoice will be overdue for payment. + /// The amount of time until the invoice is overdue for payment. /// [JsonProperty("time_until_due")] [STJS.JsonPropertyName("time_until_due")] diff --git a/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceSettingsDataBillInvoiceTimeUntilDue.cs b/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceSettingsDataBillInvoiceTimeUntilDue.cs index ae30c79ca0..d7a5e44029 100644 --- a/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceSettingsDataBillInvoiceTimeUntilDue.cs +++ b/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceSettingsDataBillInvoiceTimeUntilDue.cs @@ -18,7 +18,7 @@ public class CadenceSettingsDataBillInvoiceTimeUntilDue : StripeEntity /// The number of interval units. For example, if interval=day and interval_count=30, the - /// invoice will be due in 30 days. + /// invoice is due in 30 days. /// [JsonProperty("interval_count")] [STJS.JsonPropertyName("interval_count")] diff --git a/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceSettingsDataCollection.cs b/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceSettingsDataCollection.cs index dc27263dd5..a1a3de817f 100644 --- a/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceSettingsDataCollection.cs +++ b/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceSettingsDataCollection.cs @@ -9,9 +9,9 @@ namespace Stripe.V2.Billing public class CadenceSettingsDataCollection : StripeEntity { /// - /// Either automatic, or send_invoice. When charging automatically, Stripe will attempt to - /// pay this bill at the end of the period using the payment method attached to the payer - /// profile. When sending an invoice, Stripe will email your payer profile an invoice with + /// Either automatic, or send_invoice. When charging automatically, Stripe attempts to pay + /// this bill at the end of the period using the payment method attached to the billing + /// profile. When sending an invoice, Stripe emails your billing profile an invoice with /// payment instructions. Defaults to automatic. /// One of: automatic, or send_invoice. /// diff --git a/src/Stripe.net/Entities/V2/Billing/CollectionSettingVersions/CollectionSettingVersion.cs b/src/Stripe.net/Entities/V2/Billing/CollectionSettingVersions/CollectionSettingVersion.cs index 0e4d60175f..1278d6400c 100644 --- a/src/Stripe.net/Entities/V2/Billing/CollectionSettingVersions/CollectionSettingVersion.cs +++ b/src/Stripe.net/Entities/V2/Billing/CollectionSettingVersions/CollectionSettingVersion.cs @@ -31,9 +31,9 @@ public class CollectionSettingVersion : StripeEntity, public string Object { get; set; } /// - /// Either automatic, or send_invoice. When charging automatically, Stripe will attempt to - /// pay this bill at the end of the period using the payment method attached to the payer - /// profile. When sending an invoice, Stripe will email your payer profile an invoice with + /// Either automatic, or send_invoice. When charging automatically, Stripe attempts to pay + /// this bill at the end of the period using the payment method attached to the billing + /// profile. When sending an invoice, Stripe emails your billing profile an invoice with /// payment instructions. Defaults to automatic. /// One of: automatic, or send_invoice. /// diff --git a/src/Stripe.net/Entities/V2/Billing/CollectionSettings/CollectionSetting.cs b/src/Stripe.net/Entities/V2/Billing/CollectionSettings/CollectionSetting.cs index da50cb693a..3a63255c08 100644 --- a/src/Stripe.net/Entities/V2/Billing/CollectionSettings/CollectionSetting.cs +++ b/src/Stripe.net/Entities/V2/Billing/CollectionSettings/CollectionSetting.cs @@ -28,9 +28,9 @@ public class CollectionSetting : StripeEntity, IHasId, IHasOb public string Object { get; set; } /// - /// Either automatic, or send_invoice. When charging automatically, Stripe will attempt to - /// pay this bill at the end of the period using the payment method attached to the payer - /// profile. When sending an invoice, Stripe will email your payer profile an invoice with + /// Either automatic, or send_invoice. When charging automatically, Stripe attempts to pay + /// this bill at the end of the period using the payment method attached to the billing + /// profile. When sending an invoice, Stripe emails your billing profile an invoice with /// payment instructions. Defaults to automatic. /// One of: automatic, or send_invoice. /// @@ -60,7 +60,7 @@ public class CollectionSetting : StripeEntity, IHasId, IHasOb public CollectionSettingEmailDelivery EmailDelivery { get; set; } /// - /// The latest version of the current settings object. This will be Updated every time an + /// The latest version of the current settings object. This is updated every time an /// attribute of the settings is updated. /// [JsonProperty("latest_version")] diff --git a/src/Stripe.net/Entities/V2/Billing/CustomPricingUnits/CustomPricingUnit.cs b/src/Stripe.net/Entities/V2/Billing/CustomPricingUnits/CustomPricingUnit.cs index 3267f5d4f3..de8a505e63 100644 --- a/src/Stripe.net/Entities/V2/Billing/CustomPricingUnits/CustomPricingUnit.cs +++ b/src/Stripe.net/Entities/V2/Billing/CustomPricingUnits/CustomPricingUnit.cs @@ -43,7 +43,7 @@ public class CustomPricingUnit : StripeEntity, IHasId, IHasMe public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; /// - /// Description that customers will see in the invoice line item. Maximum length of 10 + /// Description that customers see in the invoice line item. Maximum length of 10 /// characters. /// [JsonProperty("display_name")] diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApply.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApply.cs index befb4278c2..237b1e9498 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApply.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApply.cs @@ -16,7 +16,7 @@ public class IntentActionApply : StripeEntity public IntentActionApplyDiscount Discount { get; set; } /// - /// When the apply action will take effect. If not specified, defaults to on_reserve. + /// When the apply action takes effect. If not specified, defaults to on_reserve. /// [JsonProperty("effective_at")] [STJS.JsonPropertyName("effective_at")] diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplyEffectiveAt.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplyEffectiveAt.cs index 2ffa697b3a..875d0bcb1f 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplyEffectiveAt.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplyEffectiveAt.cs @@ -10,15 +10,15 @@ namespace Stripe.V2.Billing public class IntentActionApplyEffectiveAt : StripeEntity { /// - /// The timestamp at which the apply action will take effect. Only present if type is - /// timestamp. Only allowed for discount actions. + /// The timestamp at which the apply action takes effect. Only present if type is timestamp. + /// Only allowed for discount actions. /// [JsonProperty("timestamp")] [STJS.JsonPropertyName("timestamp")] public DateTime? Timestamp { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; /// - /// When the apply action will take effect. + /// When the apply action takes effect. /// One of: current_billing_period_end, current_billing_period_start, /// next_billing_period_start, on_reserve, or timestamp. /// diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplyInvoiceDiscountRulePercentOff.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplyInvoiceDiscountRulePercentOff.cs index d07f235e8e..dfd2fe173e 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplyInvoiceDiscountRulePercentOff.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplyInvoiceDiscountRulePercentOff.cs @@ -16,8 +16,8 @@ public class IntentActionApplyInvoiceDiscountRulePercentOff : StripeEntity - /// Percent that will be taken off of the amount. For example, percent_off of 50.0 will make - /// $100 amount $50 instead. + /// Percent that is taken off the amount. For example, a percent_off of 50.0 reduces a 100 + /// USD amount to 50 USD. /// [JsonProperty("percent_off")] [JsonConverter(typeof(DecimalStringConverter))] diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivate.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivate.cs index 984b470187..e3d3b9d8a5 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivate.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivate.cs @@ -24,7 +24,7 @@ public class IntentActionDeactivate : StripeEntity public string CollectAt { get; set; } /// - /// When the deactivate action will take effect. If not specified, the default behavior is + /// When the deactivate action takes effect. If not specified, the default behavior is /// on_reserve. /// [JsonProperty("effective_at")] diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivateEffectiveAt.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivateEffectiveAt.cs index 58fd42fc04..c46cca9bd7 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivateEffectiveAt.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivateEffectiveAt.cs @@ -10,7 +10,7 @@ namespace Stripe.V2.Billing public class IntentActionDeactivateEffectiveAt : StripeEntity { /// - /// The timestamp at which the deactivate action will take effect. Only present if type is + /// The timestamp at which the deactivate action takes effect. Only present if type is /// timestamp. /// [JsonProperty("timestamp")] @@ -18,7 +18,7 @@ public class IntentActionDeactivateEffectiveAt : StripeEntity - /// When the deactivate action will take effect. + /// When the deactivate action takes effect. /// One of: current_billing_period_end, current_billing_period_start, /// on_reserve, or timestamp. /// diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModify.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModify.cs index d02f4cf467..547a422abb 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModify.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModify.cs @@ -17,7 +17,7 @@ public class IntentActionModify : StripeEntity public string CollectAt { get; set; } /// - /// When the modify action will take effect. If not specified, the default behavior is + /// When the modify action takes effect. If not specified, the default behavior is /// on_reserve. /// [JsonProperty("effective_at")] diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyEffectiveAt.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyEffectiveAt.cs index f239141491..e0be53893d 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyEffectiveAt.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyEffectiveAt.cs @@ -10,7 +10,7 @@ namespace Stripe.V2.Billing public class IntentActionModifyEffectiveAt : StripeEntity { /// - /// The timestamp at which the modify action will take effect. Only present if type is + /// The timestamp at which the modify action takes effect. Only present if type is /// timestamp. /// [JsonProperty("timestamp")] @@ -18,7 +18,7 @@ public class IntentActionModifyEffectiveAt : StripeEntity - /// When the modify action will take effect. + /// When the modify action takes effect. /// One of: current_billing_period_start, on_reserve, or timestamp. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionRemove.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionRemove.cs index e5f2032052..7f6b78d613 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionRemove.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionRemove.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class IntentActionRemove : StripeEntity { /// - /// When the remove action will take effect. If not specified, defaults to on_reserve. + /// When the remove action takes effect. If not specified, defaults to on_reserve. /// [JsonProperty("effective_at")] [STJS.JsonPropertyName("effective_at")] diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionRemoveEffectiveAt.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionRemoveEffectiveAt.cs index 1fea1ff0de..ef6dedce94 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionRemoveEffectiveAt.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionRemoveEffectiveAt.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class IntentActionRemoveEffectiveAt : StripeEntity { /// - /// When the remove action will take effect. + /// When the remove action takes effect. /// One of: current_billing_period_end, or on_reserve. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribe.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribe.cs index 7b5e28d172..56a73095af 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribe.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribe.cs @@ -17,7 +17,7 @@ public class IntentActionSubscribe : StripeEntity public string CollectAt { get; set; } /// - /// When the subscribe action will take effect. If not specified, the default behavior is + /// When the subscribe action takes effect. If not specified, the default behavior is /// on_reserve. /// [JsonProperty("effective_at")] diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribeEffectiveAt.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribeEffectiveAt.cs index d07ff37572..970d5238a8 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribeEffectiveAt.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribeEffectiveAt.cs @@ -10,7 +10,7 @@ namespace Stripe.V2.Billing public class IntentActionSubscribeEffectiveAt : StripeEntity { /// - /// The timestamp at which the subscribe action will take effect. Only present if type is + /// The timestamp at which the subscribe action takes effect. Only present if type is /// timestamp. /// [JsonProperty("timestamp")] @@ -18,7 +18,7 @@ public class IntentActionSubscribeEffectiveAt : StripeEntity - /// When the subscribe action will take effect. + /// When the subscribe action takes effect. /// One of: current_billing_period_start, on_reserve, or timestamp. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Entities/V2/Billing/Intents/IntentCadenceDataBillingCycleMonth.cs b/src/Stripe.net/Entities/V2/Billing/Intents/IntentCadenceDataBillingCycleMonth.cs index 681849831c..63f7caa3d5 100644 --- a/src/Stripe.net/Entities/V2/Billing/Intents/IntentCadenceDataBillingCycleMonth.cs +++ b/src/Stripe.net/Entities/V2/Billing/Intents/IntentCadenceDataBillingCycleMonth.cs @@ -10,8 +10,8 @@ public class IntentCadenceDataBillingCycleMonth : StripeEntity /// The day to anchor the billing on for a type="month" billing cycle from 1-31. If this - /// number is greater than the number of days in the month being billed, this will anchor to - /// the last day of the month. + /// number is greater than the number of days in the month being billed, this anchors to the + /// last day of the month. /// [JsonProperty("day_of_month")] [STJS.JsonPropertyName("day_of_month")] diff --git a/src/Stripe.net/Entities/V2/Billing/Intents/IntentCadenceDataBillingCycleYear.cs b/src/Stripe.net/Entities/V2/Billing/Intents/IntentCadenceDataBillingCycleYear.cs index ff7838c574..561e67fe46 100644 --- a/src/Stripe.net/Entities/V2/Billing/Intents/IntentCadenceDataBillingCycleYear.cs +++ b/src/Stripe.net/Entities/V2/Billing/Intents/IntentCadenceDataBillingCycleYear.cs @@ -10,16 +10,16 @@ public class IntentCadenceDataBillingCycleYear : StripeEntity /// The day to anchor the billing on for a type="month" billing cycle from 1-31. If this - /// number is greater than the number of days in the month being billed, this will anchor to - /// the last day of the month. + /// number is greater than the number of days in the month being billed, this anchors to the + /// last day of the month. /// [JsonProperty("day_of_month")] [STJS.JsonPropertyName("day_of_month")] public long DayOfMonth { get; set; } /// - /// The month to bill on from 1-12. If not provided, this will default to the month the - /// cadence was created. + /// The month to bill on from 1-12. If not provided, this defaults to the month the cadence + /// was created. /// [JsonProperty("month_of_year")] [STJS.JsonPropertyName("month_of_year")] diff --git a/src/Stripe.net/Entities/V2/Billing/Intents/IntentCadenceDataPayer.cs b/src/Stripe.net/Entities/V2/Billing/Intents/IntentCadenceDataPayer.cs index 68bc88c9e8..d9ebff4942 100644 --- a/src/Stripe.net/Entities/V2/Billing/Intents/IntentCadenceDataPayer.cs +++ b/src/Stripe.net/Entities/V2/Billing/Intents/IntentCadenceDataPayer.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class IntentCadenceDataPayer : StripeEntity { /// - /// The ID of the Billing Profile object which determines how a bill will be paid. + /// The ID of the Billing Profile object which determines how a bill is paid. /// [JsonProperty("billing_profile")] [STJS.JsonPropertyName("billing_profile")] diff --git a/src/Stripe.net/Entities/V2/Billing/Intents/IntentCadenceDataPayerBillingProfileData.cs b/src/Stripe.net/Entities/V2/Billing/Intents/IntentCadenceDataPayerBillingProfileData.cs index 04eeba67e0..dfd9883df6 100644 --- a/src/Stripe.net/Entities/V2/Billing/Intents/IntentCadenceDataPayerBillingProfileData.cs +++ b/src/Stripe.net/Entities/V2/Billing/Intents/IntentCadenceDataPayerBillingProfileData.cs @@ -17,7 +17,7 @@ public class IntentCadenceDataPayerBillingProfileData : StripeEntity /// The default payment method to use when billing this profile. If none is provided, the - /// customer default_payment_method will be used. + /// customer default_payment_method is used. /// [JsonProperty("default_payment_method")] [STJS.JsonPropertyName("default_payment_method")] diff --git a/src/Stripe.net/Entities/V2/Billing/Intents/IntentStatusTransitions.cs b/src/Stripe.net/Entities/V2/Billing/Intents/IntentStatusTransitions.cs index 3aeea0ba3f..f071b3ba76 100644 --- a/src/Stripe.net/Entities/V2/Billing/Intents/IntentStatusTransitions.cs +++ b/src/Stripe.net/Entities/V2/Billing/Intents/IntentStatusTransitions.cs @@ -31,7 +31,7 @@ public class IntentStatusTransitions : StripeEntity public DateTime? DraftedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; /// - /// Time at which the Billing Intent will expire. + /// Time at which the Billing Intent expires. /// [JsonProperty("expires_at")] [STJS.JsonPropertyName("expires_at")] diff --git a/src/Stripe.net/Entities/V2/Billing/LicenseFeeVersions/LicenseFeeVersion.cs b/src/Stripe.net/Entities/V2/Billing/LicenseFeeVersions/LicenseFeeVersion.cs index b0dbae2719..e61183abfb 100644 --- a/src/Stripe.net/Entities/V2/Billing/LicenseFeeVersions/LicenseFeeVersion.cs +++ b/src/Stripe.net/Entities/V2/Billing/LicenseFeeVersions/LicenseFeeVersion.cs @@ -55,10 +55,10 @@ public class LicenseFeeVersion : StripeEntity, IHasId, IHasOb public bool Livemode { get; set; } /// - /// Defines whether the tiering price should be graduated or volume-based. In volume-based - /// tiering, the maximum quantity within a period determines the per-unit price. In - /// graduated tiering, the pricing changes as the quantity grows into new tiers. Can only be - /// set if tiers is set. + /// Defines whether the tiering price is graduated or volume-based. In volume-based tiering, + /// the maximum quantity within a period determines the per-unit price. In graduated + /// tiering, the pricing changes as the quantity grows into new tiers. Can only be set if + /// tiers is set. /// One of: graduated, or volume. /// [JsonProperty("tiering_mode")] diff --git a/src/Stripe.net/Entities/V2/Billing/LicenseFeeVersions/LicenseFeeVersionTier.cs b/src/Stripe.net/Entities/V2/Billing/LicenseFeeVersions/LicenseFeeVersionTier.cs index f488ab1d08..2ee464ce99 100644 --- a/src/Stripe.net/Entities/V2/Billing/LicenseFeeVersions/LicenseFeeVersionTier.cs +++ b/src/Stripe.net/Entities/V2/Billing/LicenseFeeVersions/LicenseFeeVersionTier.cs @@ -25,7 +25,7 @@ public class LicenseFeeVersionTier : StripeEntity public string UnitAmount { get; set; } /// - /// Up to and including this quantity will be contained in the tier. Only one of + /// Up to and including this quantity is contained in the tier. Only one of /// up_to_decimal and up_to_inf may be set. /// [JsonProperty("up_to_decimal")] diff --git a/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFee.cs b/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFee.cs index 06bc23a4b2..633e1d12d3 100644 --- a/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFee.cs +++ b/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFee.cs @@ -78,8 +78,8 @@ public class LicenseFee : StripeEntity, IHasId, IHasMetadata, IHasOb public LicensedItem LicensedItem { get; set; } /// - /// The ID of the License Fee Version that will be used by all subscriptions when no - /// specific version is specified. + /// The ID of the License Fee Version used by all subscriptions when no specific version is + /// specified. /// [JsonProperty("live_version")] [STJS.JsonPropertyName("live_version")] @@ -127,14 +127,15 @@ public class LicenseFee : StripeEntity, IHasId, IHasMetadata, IHasOb /// /// The length of the interval for assessing service. For example, set this to 3 and - /// service_interval to "month" in order to specify quarterly service. + /// service_interval to "month" to specify quarterly service. /// [JsonProperty("service_interval_count")] [STJS.JsonPropertyName("service_interval_count")] public long ServiceIntervalCount { get; set; } /// - /// The Stripe Tax tax behavior - whether the license fee is inclusive or exclusive of tax. + /// The tax behavior for Stripe Tax — whether the license fee price includes or excludes + /// tax. /// One of: exclusive, or inclusive. /// [JsonProperty("tax_behavior")] @@ -142,10 +143,10 @@ public class LicenseFee : StripeEntity, IHasId, IHasMetadata, IHasOb public string TaxBehavior { get; set; } /// - /// Defines whether the tiering price should be graduated or volume-based. In volume-based - /// tiering, the maximum quantity within a period determines the per-unit price. In - /// graduated tiering, the pricing changes as the quantity grows into new tiers. Can only be - /// set if tiers is set. + /// Defines whether the tiering price is graduated or volume-based. In volume-based tiering, + /// the maximum quantity within a period determines the per-unit price. In graduated + /// tiering, the pricing changes as the quantity grows into new tiers. Can only be set if + /// tiers is set. /// One of: graduated, or volume. /// [JsonProperty("tiering_mode")] diff --git a/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFeeServiceCycle.cs b/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFeeServiceCycle.cs index cce656c07b..d2649d15a7 100644 --- a/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFeeServiceCycle.cs +++ b/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFeeServiceCycle.cs @@ -18,7 +18,7 @@ public class LicenseFeeServiceCycle : StripeEntity /// /// The length of the interval for assessing service. For example, set this to 3 and - /// interval to "month" in order to specify quarterly service. + /// interval to "month" to specify quarterly service. /// [JsonProperty("interval_count")] [STJS.JsonPropertyName("interval_count")] diff --git a/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFeeTier.cs b/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFeeTier.cs index 4339429faf..00c82bf97e 100644 --- a/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFeeTier.cs +++ b/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFeeTier.cs @@ -25,7 +25,7 @@ public class LicenseFeeTier : StripeEntity public string UnitAmount { get; set; } /// - /// Up to and including this quantity will be contained in the tier. Only one of + /// Up to and including this quantity is contained in the tier. Only one of /// up_to_decimal and up_to_inf may be set. /// [JsonProperty("up_to_decimal")] diff --git a/src/Stripe.net/Entities/V2/Billing/LicensedItems/LicensedItem.cs b/src/Stripe.net/Entities/V2/Billing/LicensedItems/LicensedItem.cs index a5031f7d50..05ab2cc77f 100644 --- a/src/Stripe.net/Entities/V2/Billing/LicensedItems/LicensedItem.cs +++ b/src/Stripe.net/Entities/V2/Billing/LicensedItems/LicensedItem.cs @@ -37,7 +37,7 @@ public class LicensedItem : StripeEntity, IHasId, IHasMetadata, IH public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; /// - /// Description that customers will see in the invoice line item. Maximum length of 250 + /// Description that customers see in the invoice line item. Maximum length of 250 /// characters. /// [JsonProperty("display_name")] diff --git a/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustment.cs b/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustment.cs index ea15b65b84..5d6dfe316d 100644 --- a/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustment.cs +++ b/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustment.cs @@ -15,7 +15,7 @@ namespace Stripe.V2.Billing public class MeterEventAdjustment : StripeEntity, IHasId, IHasObject { /// - /// The unique id of this meter event adjustment. + /// The unique ID of this meter event adjustment. /// [JsonProperty("id")] [STJS.JsonPropertyName("id")] @@ -67,8 +67,8 @@ public class MeterEventAdjustment : StripeEntity, IHasId, public string Status { get; set; } /// - /// Open Enum. Specifies whether to cancel a single event or a range of events for a time - /// period. Time period cancellation is not supported yet. + /// Open Enum. Specifies the type of cancellation. Currently supports canceling a single + /// event. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustmentCancel.cs b/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustmentCancel.cs index c469b81557..f6ff85a5ea 100644 --- a/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustmentCancel.cs +++ b/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustmentCancel.cs @@ -9,8 +9,8 @@ namespace Stripe.V2.Billing public class MeterEventAdjustmentCancel : StripeEntity { /// - /// Unique identifier for the event. You can only cancel events within 24 hours of Stripe - /// receiving them. + /// The identifier that was originally assigned to the meter event. You can only cancel + /// events within 24 hours of Stripe receiving them. /// [JsonProperty("identifier")] [STJS.JsonPropertyName("identifier")] diff --git a/src/Stripe.net/Entities/V2/Billing/MeterEventSessions/MeterEventSession.cs b/src/Stripe.net/Entities/V2/Billing/MeterEventSessions/MeterEventSession.cs index 83e4ff7bb4..4bf459d703 100644 --- a/src/Stripe.net/Entities/V2/Billing/MeterEventSessions/MeterEventSession.cs +++ b/src/Stripe.net/Entities/V2/Billing/MeterEventSessions/MeterEventSession.cs @@ -15,7 +15,7 @@ namespace Stripe.V2.Billing public class MeterEventSession : StripeEntity, IHasId, IHasObject { /// - /// The unique id of this auth session. + /// The unique ID of this auth session. /// [JsonProperty("id")] [STJS.JsonPropertyName("id")] @@ -30,7 +30,7 @@ public class MeterEventSession : StripeEntity, IHasId, IHasOb public string Object { get; set; } /// - /// The authentication token for this session. Use this token when calling the + /// The authentication token for this session. Use this token when calling the /// high-throughput meter event API. /// [JsonProperty("authentication_token")] @@ -45,7 +45,7 @@ public class MeterEventSession : StripeEntity, IHasId, IHasOb public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; /// - /// The time at which this session will expire. + /// The time at which this session expires. /// [JsonProperty("expires_at")] [STJS.JsonPropertyName("expires_at")] diff --git a/src/Stripe.net/Entities/V2/Billing/MeteredItems/MeteredItem.cs b/src/Stripe.net/Entities/V2/Billing/MeteredItems/MeteredItem.cs index 1e727e8f6e..8fdc0e8518 100644 --- a/src/Stripe.net/Entities/V2/Billing/MeteredItems/MeteredItem.cs +++ b/src/Stripe.net/Entities/V2/Billing/MeteredItems/MeteredItem.cs @@ -38,7 +38,7 @@ public class MeteredItem : StripeEntity, IHasId, IHasMetadata, IHas public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; /// - /// Description that customers will see in the invoice line item. Maximum length of 250 + /// Description that customers see in the invoice line item. Maximum length of 250 /// characters. /// [JsonProperty("display_name")] diff --git a/src/Stripe.net/Entities/V2/Billing/OneTimeItems/OneTimeItem.cs b/src/Stripe.net/Entities/V2/Billing/OneTimeItems/OneTimeItem.cs index 0873490ec7..af4c7a1d31 100644 --- a/src/Stripe.net/Entities/V2/Billing/OneTimeItems/OneTimeItem.cs +++ b/src/Stripe.net/Entities/V2/Billing/OneTimeItems/OneTimeItem.cs @@ -37,7 +37,7 @@ public class OneTimeItem : StripeEntity, IHasId, IHasMetadata, IHas public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; /// - /// Description that customers will see in the invoice line item. Maximum length of 250 + /// Description that customers see in the invoice line item. Maximum length of 250 /// characters. /// [JsonProperty("display_name")] diff --git a/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailLicenseFeeDetails.cs b/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailLicenseFeeDetails.cs index 54593fae0f..617f0fbfa8 100644 --- a/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailLicenseFeeDetails.cs +++ b/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailLicenseFeeDetails.cs @@ -52,7 +52,7 @@ public class PricingPlanSubscriptionPricingPlanComponentDetailLicenseFeeDetails public PricingPlanSubscriptionPricingPlanComponentDetailLicenseFeeDetailsServiceCycle ServiceCycle { get; set; } /// - /// Defines whether the tiering price should be graduated or volume-based. + /// Defines whether the tiering price is graduated or volume-based. /// One of: graduated, or volume. /// [JsonProperty("tiering_mode")] @@ -83,7 +83,7 @@ public class PricingPlanSubscriptionPricingPlanComponentDetailLicenseFeeDetails public string UnitAmount { get; set; } /// - /// The unit label from the licensed item, used for display purposes (e.g. "seat", + /// The unit label from the licensed item, used for display purposes (for example, "seat", /// "environment"). /// [JsonProperty("unit_label")] diff --git a/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailLicenseFeeDetailsServiceCycle.cs b/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailLicenseFeeDetailsServiceCycle.cs index 7fc5319bd4..009f26e320 100644 --- a/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailLicenseFeeDetailsServiceCycle.cs +++ b/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailLicenseFeeDetailsServiceCycle.cs @@ -18,7 +18,7 @@ public class PricingPlanSubscriptionPricingPlanComponentDetailLicenseFeeDetailsS /// /// The length of the interval for assessing service. For example, set this to 3 and - /// interval to "month" in order to specify quarterly service. + /// interval to "month" to specify quarterly service. /// [JsonProperty("interval_count")] [STJS.JsonPropertyName("interval_count")] diff --git a/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailLicenseFeeDetailsTier.cs b/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailLicenseFeeDetailsTier.cs index a1faed75ef..082b6db57e 100644 --- a/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailLicenseFeeDetailsTier.cs +++ b/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailLicenseFeeDetailsTier.cs @@ -25,7 +25,7 @@ public class PricingPlanSubscriptionPricingPlanComponentDetailLicenseFeeDetailsT public string UnitAmount { get; set; } /// - /// Up to and including this quantity will be contained in the tier. Only one of + /// Up to and including this quantity is contained in the tier. Only one of /// up_to_decimal and up_to_inf may be set. /// [JsonProperty("up_to_decimal")] diff --git a/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRateCardDetailsServiceCycle.cs b/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRateCardDetailsServiceCycle.cs index c9974d8549..b395c3c0c3 100644 --- a/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRateCardDetailsServiceCycle.cs +++ b/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRateCardDetailsServiceCycle.cs @@ -18,7 +18,7 @@ public class PricingPlanSubscriptionPricingPlanComponentDetailRateCardDetailsSer /// /// The length of the interval for assessing service. For example, set this to 3 and - /// interval to "month" in order to specify quarterly service. + /// interval to "month" to specify quarterly service. /// [JsonProperty("interval_count")] [STJS.JsonPropertyName("interval_count")] diff --git a/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGrantDetailsCreditGrantDetailsApplicabilityConfigScope.cs b/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGrantDetailsCreditGrantDetailsApplicabilityConfigScope.cs index d73d748a17..b1a292507f 100644 --- a/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGrantDetailsCreditGrantDetailsApplicabilityConfigScope.cs +++ b/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGrantDetailsCreditGrantDetailsApplicabilityConfigScope.cs @@ -17,9 +17,9 @@ public class PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGra public List BillableItems { get; set; } /// - /// The price type that credit grants can apply to. We currently only support the - /// metered price type. This will apply to metered prices and rate cards. Cannot be - /// used in combination with billable_items. + /// The price type that credit grants can apply to. Stripe supports the metered price + /// type, which applies to metered prices and rate cards. Cannot be used in combination with + /// billable_items. /// [JsonProperty("price_type")] [STJS.JsonPropertyName("price_type")] diff --git a/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGrantDetailsCreditGrantPerTenantDetailsApplicabilityConfigScope.cs b/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGrantDetailsCreditGrantPerTenantDetailsApplicabilityConfigScope.cs index 21ac36349d..5c8b20ed3b 100644 --- a/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGrantDetailsCreditGrantPerTenantDetailsApplicabilityConfigScope.cs +++ b/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGrantDetailsCreditGrantPerTenantDetailsApplicabilityConfigScope.cs @@ -17,9 +17,9 @@ public class PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGra public List BillableItems { get; set; } /// - /// The price type that credit grants can apply to. We currently only support the - /// metered price type. This will apply to metered prices and rate cards. Cannot be - /// used in combination with billable_items. + /// The price type that credit grants can apply to. Stripe supports the metered price + /// type, which applies to metered prices and rate cards. Cannot be used in combination with + /// billable_items. /// [JsonProperty("price_type")] [STJS.JsonPropertyName("price_type")] diff --git a/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGrantDetailsServiceCycle.cs b/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGrantDetailsServiceCycle.cs index f9dc2e3eba..714a0dc126 100644 --- a/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGrantDetailsServiceCycle.cs +++ b/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGrantDetailsServiceCycle.cs @@ -18,7 +18,7 @@ public class PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGra /// /// The length of the interval for assessing service. For example, set this to 3 and - /// interval to "month" in order to specify quarterly service. + /// interval to "month" to specify quarterly service. /// [JsonProperty("interval_count")] [STJS.JsonPropertyName("interval_count")] diff --git a/src/Stripe.net/Entities/V2/Billing/PricingPlanVersions/PricingPlanVersion.cs b/src/Stripe.net/Entities/V2/Billing/PricingPlanVersions/PricingPlanVersion.cs index 6cc47240de..362b380375 100644 --- a/src/Stripe.net/Entities/V2/Billing/PricingPlanVersions/PricingPlanVersion.cs +++ b/src/Stripe.net/Entities/V2/Billing/PricingPlanVersions/PricingPlanVersion.cs @@ -38,7 +38,7 @@ public class PricingPlanVersion : StripeEntity, IHasId, IHas public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; /// - /// The timestamp when this version became inactive. Null if it's the latest version. + /// The timestamp when this version became inactive. null if it's the latest version. /// [JsonProperty("end_date")] [STJS.JsonPropertyName("end_date")] diff --git a/src/Stripe.net/Entities/V2/Billing/PricingPlans/PricingPlan.cs b/src/Stripe.net/Entities/V2/Billing/PricingPlans/PricingPlan.cs index 1fb448da9f..b65e3ebe55 100644 --- a/src/Stripe.net/Entities/V2/Billing/PricingPlans/PricingPlan.cs +++ b/src/Stripe.net/Entities/V2/Billing/PricingPlans/PricingPlan.cs @@ -54,7 +54,7 @@ public class PricingPlan : StripeEntity, IHasId, IHasMetadata, IHas public string Currency { get; set; } /// - /// A description for pricing plan subscription. Maximum length of 500 characters. + /// A description of the pricing plan. Maximum length of 500 characters. /// [JsonProperty("description")] [STJS.JsonPropertyName("description")] @@ -107,7 +107,8 @@ public class PricingPlan : StripeEntity, IHasId, IHasMetadata, IHas public Dictionary Metadata { get; set; } /// - /// The Stripe Tax tax behavior - whether the PricingPlan is inclusive or exclusive of tax. + /// The tax behavior for Stripe Tax — whether the pricing plan price includes or excludes + /// tax. /// One of: exclusive, or inclusive. /// [JsonProperty("tax_behavior")] diff --git a/src/Stripe.net/Entities/V2/Billing/RateCardRates/RateCardRate.cs b/src/Stripe.net/Entities/V2/Billing/RateCardRates/RateCardRate.cs index 93bc02f3db..e5e8d02765 100644 --- a/src/Stripe.net/Entities/V2/Billing/RateCardRates/RateCardRate.cs +++ b/src/Stripe.net/Entities/V2/Billing/RateCardRates/RateCardRate.cs @@ -86,10 +86,10 @@ public class RateCardRate : StripeEntity, IHasId, IHasMetadata, IH public string RateCardVersion { get; set; } /// - /// Defines whether the tiering price should be graduated or volume-based. In volume-based - /// tiering, the maximum quantity within a period determines the per-unit price. In - /// graduated tiering, the pricing changes as the quantity grows into new tiers. Can only be - /// set if tiers is set. + /// Defines whether the tiering price is graduated or volume-based. In volume-based tiering, + /// the maximum quantity within a period determines the per-unit price. In graduated + /// tiering, the pricing changes as the quantity grows into new tiers. Can only be set if + /// tiers is set. /// One of: graduated, or volume. /// [JsonProperty("tiering_mode")] diff --git a/src/Stripe.net/Entities/V2/Billing/RateCardRates/RateCardRateTier.cs b/src/Stripe.net/Entities/V2/Billing/RateCardRates/RateCardRateTier.cs index 3cd4dcee75..c87b1ede5a 100644 --- a/src/Stripe.net/Entities/V2/Billing/RateCardRates/RateCardRateTier.cs +++ b/src/Stripe.net/Entities/V2/Billing/RateCardRates/RateCardRateTier.cs @@ -25,7 +25,7 @@ public class RateCardRateTier : StripeEntity public string UnitAmount { get; set; } /// - /// Up to and including this quantity will be contained in the tier. Only one of + /// Up to and including this quantity is contained in the tier. Only one of /// up_to_decimal and up_to_inf may be set. /// [JsonProperty("up_to_decimal")] diff --git a/src/Stripe.net/Entities/V2/Billing/RateCards/RateCard.cs b/src/Stripe.net/Entities/V2/Billing/RateCards/RateCard.cs index 51b9a17213..ae103bee9e 100644 --- a/src/Stripe.net/Entities/V2/Billing/RateCards/RateCard.cs +++ b/src/Stripe.net/Entities/V2/Billing/RateCards/RateCard.cs @@ -70,8 +70,8 @@ public class RateCard : StripeEntity, IHasId, IHasMetadata, IHasObject public string LatestVersion { get; set; } /// - /// The ID of the Rate Card Version that will be used by all subscriptions when no specific - /// version is specified. + /// The ID of the Rate Card Version used by all subscriptions when no specific version is + /// specified. /// [JsonProperty("live_version")] [STJS.JsonPropertyName("live_version")] @@ -104,9 +104,9 @@ public class RateCard : StripeEntity, IHasId, IHasMetadata, IHasObject /// /// The service cycle configuration for this Rate Card. For example, a monthly Rate Card - /// with a rate of $1 for the first 10 "workloads" and $2 thereafter means "$1 per workload - /// up to 10 workloads during a month of service." This is similar to but distinct from - /// billing interval; the service interval deals with the rate at which the customer + /// with a rate of 1 USD for the first 10 "workloads" and 2 USD thereafter means "1 USD per + /// workload up to 10 workloads during a month of service." This is similar to but distinct + /// from billing interval; the service interval deals with the rate at which the customer /// accumulates fees, while the billing interval in Cadence deals with the rate the customer /// is billed. /// @@ -115,11 +115,11 @@ public class RateCard : StripeEntity, IHasId, IHasMetadata, IHasObject public RateCardServiceCycle ServiceCycle { get; set; } /// - /// The interval for assessing service. For example, a monthly Rate Card with a rate of $1 - /// for the first 10 "workloads" and $2 thereafter means "$1 per workload up to 10 workloads - /// during a month of service." This is similar to but distinct from billing interval; the - /// service interval deals with the rate at which the customer accumulates fees, while the - /// billing interval in Cadence deals with the rate the customer is billed. + /// The interval for assessing service. For example, a monthly Rate Card with a rate of 1 + /// USD for the first 10 "workloads" and 2 USD thereafter means "1 USD per workload up to 10 + /// workloads during a month of service." This is similar to but distinct from billing + /// interval; the service interval deals with the rate at which the customer accumulates + /// fees, while the billing interval in Cadence deals with the rate the customer is billed. /// One of: day, month, week, or year. /// [JsonProperty("service_interval")] @@ -128,14 +128,14 @@ public class RateCard : StripeEntity, IHasId, IHasMetadata, IHasObject /// /// The length of the interval for assessing service. For example, set this to 3 and - /// service_interval to "month" in order to specify quarterly service. + /// service_interval to "month" to specify quarterly service. /// [JsonProperty("service_interval_count")] [STJS.JsonPropertyName("service_interval_count")] public long ServiceIntervalCount { get; set; } /// - /// The Stripe Tax tax behavior - whether the rates are inclusive or exclusive of tax. + /// The tax behavior for Stripe Tax — whether the rate card price includes or excludes tax. /// One of: exclusive, or inclusive. /// [JsonProperty("tax_behavior")] diff --git a/src/Stripe.net/Entities/V2/Billing/RateCards/RateCardServiceCycle.cs b/src/Stripe.net/Entities/V2/Billing/RateCards/RateCardServiceCycle.cs index 5a129692b3..62447270e3 100644 --- a/src/Stripe.net/Entities/V2/Billing/RateCards/RateCardServiceCycle.cs +++ b/src/Stripe.net/Entities/V2/Billing/RateCards/RateCardServiceCycle.cs @@ -18,7 +18,7 @@ public class RateCardServiceCycle : StripeEntity /// /// The length of the interval for assessing service. For example, set this to 3 and - /// interval to "month" in order to specify quarterly service. + /// interval to "month" to specify quarterly service. /// [JsonProperty("interval_count")] [STJS.JsonPropertyName("interval_count")] diff --git a/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantApplicabilityConfigScope.cs b/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantApplicabilityConfigScope.cs index 54413a00a6..c9fa7e6cc7 100644 --- a/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantApplicabilityConfigScope.cs +++ b/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantApplicabilityConfigScope.cs @@ -17,9 +17,9 @@ public class ServiceActionCreditGrantApplicabilityConfigScope : StripeEntity BillableItems { get; set; } /// - /// The price type that credit grants can apply to. We currently only support the - /// metered price type. This will apply to metered prices and rate cards. Cannot be - /// used in combination with billable_items. + /// The price type that credit grants can apply to. Stripe supports the metered price + /// type, which applies to metered prices and rate cards. Cannot be used in combination with + /// billable_items. /// [JsonProperty("price_type")] [STJS.JsonPropertyName("price_type")] diff --git a/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantPerTenantApplicabilityConfigScope.cs b/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantPerTenantApplicabilityConfigScope.cs index 21d7a63291..9375944689 100644 --- a/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantPerTenantApplicabilityConfigScope.cs +++ b/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantPerTenantApplicabilityConfigScope.cs @@ -17,9 +17,9 @@ public class ServiceActionCreditGrantPerTenantApplicabilityConfigScope : StripeE public List BillableItems { get; set; } /// - /// The price type that credit grants can apply to. We currently only support the - /// metered price type. This will apply to metered prices and rate cards. Cannot be - /// used in combination with billable_items. + /// The price type that credit grants can apply to. Stripe supports the metered price + /// type, which applies to metered prices and rate cards. Cannot be used in combination with + /// billable_items. /// [JsonProperty("price_type")] [STJS.JsonPropertyName("price_type")] diff --git a/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImport.cs b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImport.cs new file mode 100644 index 0000000000..035682c53a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImport.cs @@ -0,0 +1,78 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Commerce +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + /// + /// The product catalog import object tracks the long-running background process that + /// handles uploading, processing and validation. + /// + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ProductCatalogImport : StripeEntity, IHasId, IHasMetadata, IHasObject + { + /// + /// The unique identifier for this ProductCatalogImport. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// String representing the object's type. Objects of the same type share the same value of + /// the object field. + /// + [JsonProperty("object")] + [STJS.JsonPropertyName("object")] + public string Object { get; set; } + + /// + /// The time this ProductCatalogImport was created. + /// + [JsonProperty("created")] + [STJS.JsonPropertyName("created")] + public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The type of feed data being imported into the product catalog. + /// One of: inventory, pricing, or product. + /// + [JsonProperty("feed_type")] + [STJS.JsonPropertyName("feed_type")] + public string FeedType { get; set; } + + /// + /// Has the value true if the object exists in live mode or the value false if + /// the object exists in test mode. + /// + [JsonProperty("livemode")] + [STJS.JsonPropertyName("livemode")] + public bool Livemode { get; set; } + + /// + /// Additional information about the object in a structured format. + /// + [JsonProperty("metadata")] + [STJS.JsonPropertyName("metadata")] + public Dictionary Metadata { get; set; } + + /// + /// The current status of this ProductCatalogImport. + /// One of: awaiting_upload, failed, processing, succeeded, or + /// succeeded_with_errors. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Details about the current import status. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public ProductCatalogImportStatusDetails StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetails.cs b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetails.cs new file mode 100644 index 0000000000..6320b549eb --- /dev/null +++ b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetails.cs @@ -0,0 +1,46 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Commerce +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ProductCatalogImportStatusDetails : StripeEntity + { + /// + /// Details when the import is awaiting file upload. + /// + [JsonProperty("awaiting_upload")] + [STJS.JsonPropertyName("awaiting_upload")] + public ProductCatalogImportStatusDetailsAwaitingUpload AwaitingUpload { get; set; } + + /// + /// Details when the import didn't complete. + /// + [JsonProperty("failed")] + [STJS.JsonPropertyName("failed")] + public ProductCatalogImportStatusDetailsFailed Failed { get; set; } + + /// + /// Details when the import is processing. + /// + [JsonProperty("processing")] + [STJS.JsonPropertyName("processing")] + public ProductCatalogImportStatusDetailsProcessing Processing { get; set; } + + /// + /// Details when the import has succeeded. + /// + [JsonProperty("succeeded")] + [STJS.JsonPropertyName("succeeded")] + public ProductCatalogImportStatusDetailsSucceeded Succeeded { get; set; } + + /// + /// Details when the import completed but some records failed to process. + /// + [JsonProperty("succeeded_with_errors")] + [STJS.JsonPropertyName("succeeded_with_errors")] + public ProductCatalogImportStatusDetailsSucceededWithErrors SucceededWithErrors { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsAwaitingUpload.cs b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsAwaitingUpload.cs new file mode 100644 index 0000000000..1e836be27d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsAwaitingUpload.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Commerce +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ProductCatalogImportStatusDetailsAwaitingUpload : StripeEntity + { + /// + /// The pre-signed URL information for uploading the catalog file. + /// + [JsonProperty("upload_url")] + [STJS.JsonPropertyName("upload_url")] + public ProductCatalogImportStatusDetailsAwaitingUploadUploadUrl UploadUrl { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsAwaitingUploadUploadUrl.cs b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsAwaitingUploadUploadUrl.cs new file mode 100644 index 0000000000..20dc6de462 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsAwaitingUploadUploadUrl.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Commerce +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ProductCatalogImportStatusDetailsAwaitingUploadUploadUrl : StripeEntity + { + /// + /// The timestamp when the upload URL expires. + /// + [JsonProperty("expires_at")] + [STJS.JsonPropertyName("expires_at")] + public DateTime ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The pre-signed URL for uploading the catalog file. + /// + [JsonProperty("url")] + [STJS.JsonPropertyName("url")] + public string Url { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsFailed.cs b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsFailed.cs new file mode 100644 index 0000000000..cb7a871055 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsFailed.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Commerce +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ProductCatalogImportStatusDetailsFailed : StripeEntity + { + /// + /// The error code for this product catalog processing failure. + /// One of: file_not_found, internal_error, or invalid_file. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// A message explaining why the import failed. + /// + [JsonProperty("failure_message")] + [STJS.JsonPropertyName("failure_message")] + public string FailureMessage { get; set; } + + /// + /// The error type for this product catalog processing failure. + /// One of: cannot_proceed, or transient_failure. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsProcessing.cs b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsProcessing.cs new file mode 100644 index 0000000000..2dbe8fa53d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsProcessing.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Commerce +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ProductCatalogImportStatusDetailsProcessing : StripeEntity + { + /// + /// The number of records that failed to process so far. + /// + [JsonProperty("error_count")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("error_count")] + public long ErrorCount { get; set; } + + /// + /// The number of records processed so far. + /// + [JsonProperty("success_count")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("success_count")] + public long SuccessCount { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsSucceeded.cs b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsSucceeded.cs new file mode 100644 index 0000000000..20a102d34e --- /dev/null +++ b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsSucceeded.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Commerce +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ProductCatalogImportStatusDetailsSucceeded : StripeEntity + { + /// + /// The total number of records processed. + /// + [JsonProperty("success_count")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("success_count")] + public long SuccessCount { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsSucceededWithErrors.cs b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsSucceededWithErrors.cs new file mode 100644 index 0000000000..f1d7b0bf7e --- /dev/null +++ b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsSucceededWithErrors.cs @@ -0,0 +1,44 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Commerce +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ProductCatalogImportStatusDetailsSucceededWithErrors : StripeEntity + { + /// + /// The total number of records that failed to process. + /// + [JsonProperty("error_count")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("error_count")] + public long ErrorCount { get; set; } + + /// + /// A file containing details about all errors that occurred. + /// + [JsonProperty("error_file")] + [STJS.JsonPropertyName("error_file")] + public ProductCatalogImportStatusDetailsSucceededWithErrorsErrorFile ErrorFile { get; set; } + + /// + /// A sample of errors that occurred during processing. + /// + [JsonProperty("samples")] + [STJS.JsonPropertyName("samples")] + public List Samples { get; set; } + + /// + /// The total number of records processed. + /// + [JsonProperty("success_count")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("success_count")] + public long SuccessCount { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsSucceededWithErrorsErrorFile.cs b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsSucceededWithErrorsErrorFile.cs new file mode 100644 index 0000000000..308832418c --- /dev/null +++ b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsSucceededWithErrorsErrorFile.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Commerce +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ProductCatalogImportStatusDetailsSucceededWithErrorsErrorFile : StripeEntity + { + /// + /// The MIME type of the error file. + /// + [JsonProperty("content_type")] + [STJS.JsonPropertyName("content_type")] + public string ContentType { get; set; } + + /// + /// The pre-signed URL information for downloading the error file. + /// + [JsonProperty("download_url")] + [STJS.JsonPropertyName("download_url")] + public ProductCatalogImportStatusDetailsSucceededWithErrorsErrorFileDownloadUrl DownloadUrl { get; set; } + + /// + /// The size of the error file in bytes. + /// + [JsonProperty("size")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("size")] + public long Size { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsSucceededWithErrorsErrorFileDownloadUrl.cs b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsSucceededWithErrorsErrorFileDownloadUrl.cs new file mode 100644 index 0000000000..14a62ee99c --- /dev/null +++ b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsSucceededWithErrorsErrorFileDownloadUrl.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Commerce +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ProductCatalogImportStatusDetailsSucceededWithErrorsErrorFileDownloadUrl : StripeEntity + { + /// + /// The timestamp when the download URL expires. + /// + [JsonProperty("expires_at")] + [STJS.JsonPropertyName("expires_at")] + public DateTime ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The pre-signed URL for downloading the error file. + /// + [JsonProperty("url")] + [STJS.JsonPropertyName("url")] + public string Url { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsSucceededWithErrorsSample.cs b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsSucceededWithErrorsSample.cs new file mode 100644 index 0000000000..eb73319e1b --- /dev/null +++ b/src/Stripe.net/Entities/V2/Commerce/ProductCatalogImports/ProductCatalogImportStatusDetailsSucceededWithErrorsSample.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Commerce +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ProductCatalogImportStatusDetailsSucceededWithErrorsSample : StripeEntity, IHasId + { + /// + /// A description of what went wrong with this record. + /// + [JsonProperty("error_message")] + [STJS.JsonPropertyName("error_message")] + public string ErrorMessage { get; set; } + + /// + /// The name of the field that caused the error. + /// + [JsonProperty("field")] + [STJS.JsonPropertyName("field")] + public string Field { get; set; } + + /// + /// The identifier of the record that failed to process. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// The row number in the import file where the error occurred. + /// + [JsonProperty("row")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("row")] + public long Row { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonIdNumber.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonIdNumber.cs index df69fd9c8c..c0cbc3dfa3 100644 --- a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonIdNumber.cs +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonIdNumber.cs @@ -12,19 +12,23 @@ public class AccountPersonIdNumber : StripeEntity /// The ID number type of an individual. /// One of: ae_eid, ao_nif, ar_cuil, ar_dni, at_stn, /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, - /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, - /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, - /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, - /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, - /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, - /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, - /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, - /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, - /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, - /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, - /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, - /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, - /// us_ssn, us_ssn_last_4, uy_dni, or za_id. + /// bg_ucn, bm_pp, bn_nric, bo_ci, br_cpf, bt_cid, + /// ca_sin, ch_oasi, cl_rut, cn_pp, co_nuip, + /// cr_ci, cr_cpf, cr_dimex, cr_nite, cy_tic, + /// cz_rc, de_stn, dk_cpr, do_cie, do_rcn, ec_ci, + /// ee_ik, eg_tin, es_nif, fi_hetu, fr_nir, + /// gb_nino, gh_pin, gr_afm, gt_nit, gy_tin, + /// hk_id, hn_rtn, hr_oib, hu_ad, id_nik, ie_ppsn, + /// is_kt, it_cf, jm_trn, jo_pin, jp_inc, ke_pin, + /// ky_pp, kz_iin, li_peid, lk_nic, lt_ak, lu_nif, + /// lv_pk, mo_bir, mt_nic, mv_tin, mx_rfc, + /// my_nric, mz_nuit, ng_nin, nl_bsn, no_nin, + /// nz_ird, pa_ruc, pe_dni, ph_tin, pk_cnic, + /// pk_snic, pl_pesel, pt_nif, py_ruc, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, si_pin, + /// sk_dic, sv_nit, th_lc, th_pin, tr_tin, + /// us_itin, us_itin_last_4, us_ssn, us_ssn_last_4, + /// uy_dni, vg_pp, or za_id. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientDefaultOutboundDestination.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientDefaultOutboundDestination.cs index 360f49b769..dbdf2024cf 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientDefaultOutboundDestination.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientDefaultOutboundDestination.cs @@ -23,35 +23,35 @@ public class AccountConfigurationRecipientDefaultOutboundDestination : StripeEnt /// bg_bank_account, bh_bank_account, bj_bank_account, /// bn_bank_account, bs_bank_account, bt_bank_account, /// bw_bank_account, card, ca_bank_account, ch_bank_account, - /// ci_bank_account, co_bank_account, crypto_wallet, - /// cr_bank_account, cy_bank_account, cz_bank_account, - /// de_bank_account, dk_bank_account, do_bank_account, - /// dz_bank_account, ec_bank_account, ee_bank_account, - /// eg_bank_account, es_bank_account, et_bank_account, - /// fi_bank_account, fr_bank_account, gb_bank_account, - /// gm_bank_account, gr_bank_account, gt_bank_account, - /// gy_bank_account, hk_bank_account, hr_bank_account, - /// hu_bank_account, id_bank_account, ie_bank_account, - /// il_bank_account, in_bank_account, is_bank_account, - /// it_bank_account, jm_bank_account, jo_bank_account, - /// ke_bank_account, kh_bank_account, kw_bank_account, - /// lc_bank_account, li_bank_account, lk_bank_account, - /// lt_bank_account, lu_bank_account, lv_bank_account, - /// ma_bank_account, mc_bank_account, md_bank_account, - /// mg_bank_account, mk_bank_account, mn_bank_account, - /// mo_bank_account, mt_bank_account, mu_bank_account, - /// mx_bank_account, my_bank_account, mz_bank_account, - /// na_bank_account, nl_bank_account, no_bank_account, - /// nz_bank_account, om_bank_account, pa_bank_account, - /// pe_bank_account, ph_bank_account, pk_bank_account, - /// pl_bank_account, pt_bank_account, qa_bank_account, - /// ro_bank_account, rs_bank_account, rw_bank_account, - /// se_bank_account, sg_bank_account, si_bank_account, - /// sk_bank_account, sn_bank_account, sv_bank_account, - /// th_bank_account, tn_bank_account, tr_bank_account, - /// tt_bank_account, tw_bank_account, tz_bank_account, - /// us_bank_account, uz_bank_account, vn_bank_account, or - /// za_bank_account. + /// ci_bank_account, cn_bank_account, co_bank_account, + /// crypto_wallet, cr_bank_account, cy_bank_account, + /// cz_bank_account, de_bank_account, dk_bank_account, + /// do_bank_account, dz_bank_account, ec_bank_account, + /// ee_bank_account, eg_bank_account, es_bank_account, + /// et_bank_account, fi_bank_account, fr_bank_account, + /// gb_bank_account, gm_bank_account, gr_bank_account, + /// gt_bank_account, gy_bank_account, hk_bank_account, + /// hr_bank_account, hu_bank_account, id_bank_account, + /// ie_bank_account, il_bank_account, in_bank_account, + /// is_bank_account, it_bank_account, jm_bank_account, + /// jo_bank_account, jp_bank_account, ke_bank_account, + /// kh_bank_account, kw_bank_account, lc_bank_account, + /// li_bank_account, lk_bank_account, lt_bank_account, + /// lu_bank_account, lv_bank_account, ma_bank_account, + /// mc_bank_account, md_bank_account, mg_bank_account, + /// mk_bank_account, mn_bank_account, mo_bank_account, + /// mt_bank_account, mu_bank_account, mx_bank_account, + /// my_bank_account, mz_bank_account, na_bank_account, + /// nl_bank_account, no_bank_account, nz_bank_account, + /// om_bank_account, pa_bank_account, pe_bank_account, + /// ph_bank_account, pk_bank_account, pl_bank_account, + /// pt_bank_account, qa_bank_account, ro_bank_account, + /// rs_bank_account, rw_bank_account, se_bank_account, + /// sg_bank_account, si_bank_account, sk_bank_account, + /// sn_bank_account, sv_bank_account, th_bank_account, + /// tn_bank_account, tr_bank_account, tt_bank_account, + /// tw_bank_account, tz_bank_account, us_bank_account, + /// uz_bank_account, vn_bank_account, or za_bank_account. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsIdNumber.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsIdNumber.cs index b6b287b199..1bff891599 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsIdNumber.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsIdNumber.cs @@ -20,25 +20,31 @@ public class AccountIdentityBusinessDetailsIdNumber : StripeEntityae_crn, ae_vat, ao_nif, ar_cuit, at_fn, /// at_stn, at_vat, au_abn, au_acn, au_in, az_tin, /// bd_etin, be_cbe, be_vat, bg_uic, bg_vat, - /// br_cnpj, ca_cn, ca_crarr, ca_gst_hst, ca_neq, - /// ca_rid, ch_chid, ch_uid, cr_cpj, cr_nite, - /// cy_he, cy_tic, cy_vat, cz_ico, cz_vat, de_hrn, - /// de_stn, de_vat, dk_cvr, dk_vat, do_rcn, ee_rk, - /// ee_vat, es_cif, es_vat, fi_vat, fi_yt, fr_rna, - /// fr_siren, fr_vat, gb_crn, gb_vat, gi_crn, - /// gr_afm, gr_gemi, gr_vat, gt_nit, hk_br, hk_cr, - /// hr_mbs, hr_oib, hr_vat, hu_cjs, hu_tin, - /// hu_vat, ie_crn, ie_trn, ie_vat, it_rea, - /// it_vat, jp_cn, kz_bin, li_uid, lt_ccrn, + /// bm_crn, bo_tin, br_cnpj, bt_tpn, ca_cn, + /// ca_crarr, ca_gst_hst, ca_neq, ca_rid, ch_chid, + /// ch_uid, co_nit, cr_cpj, cr_nite, cy_he, + /// cy_tic, cy_vat, cz_ico, cz_vat, de_hrn, + /// de_stn, de_vat, dk_cvr, dk_vat, do_rcn, + /// ec_ruc, ee_rk, ee_vat, eg_tin, es_cif, es_vat, + /// fi_vat, fi_yt, fr_rna, fr_siren, fr_vat, + /// gb_crn, gb_vat, gh_tin, gi_crn, gr_afm, + /// gr_gemi, gr_vat, gt_nit, gy_tin, hk_br, hk_cr, + /// hn_rtn, hr_mbs, hr_oib, hr_vat, hu_cjs, + /// hu_tin, hu_vat, ie_crn, ie_trn, ie_vat, + /// it_rea, it_vat, jm_trn, jo_crn, jp_cn, ke_pin, + /// ky_crn, kz_bin, li_uid, lk_tin, lt_ccrn, /// lt_vat, lu_nif, lu_rcs, lu_vat, lv_urn, - /// lv_vat, mt_crn, mt_tin, mt_vat, mx_rfc, - /// my_brn, my_coid, my_itn, my_sst, mz_nuit, - /// nl_kvk, nl_rsin, nl_vat, no_orgnr, nz_bn, - /// nz_ird, pe_ruc, pk_ntn, pl_nip, pl_regon, - /// pl_vat, pt_vat, ro_cui, ro_orc, ro_vat, - /// sa_crn, sa_tin, se_orgnr, se_vat, sg_uen, - /// si_msp, si_tin, si_vat, sk_dic, sk_ico, - /// sk_vat, th_crn, th_prn, th_tin, or us_ein. + /// lv_vat, mo_tin, mt_crn, mt_tin, mt_vat, + /// mv_tin, mx_rfc, my_brn, my_coid, my_itn, + /// my_sst, mz_nuit, ng_tin, nl_kvk, nl_rsin, + /// nl_vat, no_orgnr, nz_bn, nz_ird, pa_ruc, + /// pe_ruc, ph_tin, pk_ntn, pl_nip, pl_regon, + /// pl_vat, pt_vat, py_ruc, ro_cui, ro_orc, + /// ro_vat, sa_crn, sa_tin, se_orgnr, se_vat, + /// sg_uen, si_msp, si_tin, si_vat, sk_dic, + /// sk_ico, sk_vat, sl_tin, sv_nit, th_crn, + /// th_prn, th_tin, us_ein, uy_ruc, vg_cn, or + /// za_tin. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualIdNumber.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualIdNumber.cs index 132584aac7..6f5476713d 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualIdNumber.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualIdNumber.cs @@ -12,19 +12,23 @@ public class AccountIdentityIndividualIdNumber : StripeEntityae_eid, ao_nif, ar_cuil, ar_dni, at_stn, /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, - /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, - /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, - /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, - /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, - /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, - /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, - /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, - /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, - /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, - /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, - /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, - /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, - /// us_ssn, us_ssn_last_4, uy_dni, or za_id. + /// bg_ucn, bm_pp, bn_nric, bo_ci, br_cpf, bt_cid, + /// ca_sin, ch_oasi, cl_rut, cn_pp, co_nuip, + /// cr_ci, cr_cpf, cr_dimex, cr_nite, cy_tic, + /// cz_rc, de_stn, dk_cpr, do_cie, do_rcn, ec_ci, + /// ee_ik, eg_tin, es_nif, fi_hetu, fr_nir, + /// gb_nino, gh_pin, gr_afm, gt_nit, gy_tin, + /// hk_id, hn_rtn, hr_oib, hu_ad, id_nik, ie_ppsn, + /// is_kt, it_cf, jm_trn, jo_pin, jp_inc, ke_pin, + /// ky_pp, kz_iin, li_peid, lk_nic, lt_ak, lu_nif, + /// lv_pk, mo_bir, mt_nic, mv_tin, mx_rfc, + /// my_nric, mz_nuit, ng_nin, nl_bsn, no_nin, + /// nz_ird, pa_ruc, pe_dni, ph_tin, pk_cnic, + /// pk_snic, pl_pesel, pt_nif, py_ruc, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, si_pin, + /// sk_dic, sv_nit, th_lc, th_pin, tr_tin, + /// us_itin, us_itin_last_4, us_ssn, us_ssn_last_4, + /// uy_dni, vg_pp, or za_id. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequest.cs b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequest.cs new file mode 100644 index 0000000000..0a7111d077 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequest.cs @@ -0,0 +1,125 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + /// + /// An approval request represents a pending action that requires review before execution. + /// + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ApprovalRequest : StripeEntity, IHasId, IHasObject + { + /// + /// The unique identifier for this ApprovalRequest. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// String representing the object's type. Objects of the same type share the same value of + /// the object field. + /// + [JsonProperty("object")] + [STJS.JsonPropertyName("object")] + public string Object { get; set; } + + /// + /// The action that was requested. + /// One of: charge.create, dispute.close, + /// inbound_transfers.money_management.create, invoice.create, + /// outbound_payments.money_management.create, + /// outbound_transfers.money_management.create, payment_intent.create, + /// payment_intent.update, payout.create, price.update, + /// refund.create, setup_intent.create, subscription.create, + /// subscription.update, topup.create, or transfer.create. + /// + [JsonProperty("action")] + [STJS.JsonPropertyName("action")] + public string Action { get; set; } + + /// + /// Time this ApprovalRequest was created. + /// + [JsonProperty("created")] + [STJS.JsonPropertyName("created")] + public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The URL to the dashboard for this ApprovalRequest. + /// + [JsonProperty("dashboard_url")] + [STJS.JsonPropertyName("dashboard_url")] + public string DashboardUrl { get; set; } + + /// + /// A description of the approval request. + /// + [JsonProperty("description")] + [STJS.JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// The timestamp at which this ApprovalRequest will expire. + /// + [JsonProperty("expires_at")] + [STJS.JsonPropertyName("expires_at")] + public DateTime ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Whether this ApprovalRequest is livemode. + /// + [JsonProperty("livemode")] + [STJS.JsonPropertyName("livemode")] + public bool Livemode { get; set; } + + /// + /// The requester of this ApprovalRequest. + /// + [JsonProperty("requested_by")] + [STJS.JsonPropertyName("requested_by")] + public ApprovalRequestRequestedBy RequestedBy { get; set; } + + /// + /// The review of this ApprovalRequest if it has been reviewed. + /// + [JsonProperty("review")] + [STJS.JsonPropertyName("review")] + public ApprovalRequestReview Review { get; set; } + + /// + /// The rule associated with this ApprovalRequest. + /// + [JsonProperty("rule")] + [STJS.JsonPropertyName("rule")] + public ApprovalRequestRule Rule { get; set; } + + /// + /// The status of this ApprovalRequest. + /// One of: approved, canceled, execution_failed, + /// execution_started, execution_succeeded, expired, failed, + /// pending, rejected, requires_execution, requires_review, or + /// succeeded. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// The details of the status of this ApprovalRequest. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public ApprovalRequestStatusDetails StatusDetails { get; set; } + + /// + /// The transitions of the status of this ApprovalRequest. + /// + [JsonProperty("status_transitions")] + [STJS.JsonPropertyName("status_transitions")] + public ApprovalRequestStatusTransitions StatusTransitions { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestRequestedBy.cs b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestRequestedBy.cs new file mode 100644 index 0000000000..11397afe7b --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestRequestedBy.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ApprovalRequestRequestedBy : StripeEntity, IHasId + { + /// + /// Stripe-defined identifier for the requester (e.g. a restricted API key token). + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// Merchant-defined name for the requester. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestReview.cs b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestReview.cs new file mode 100644 index 0000000000..5f67ed1cea --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestReview.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ApprovalRequestReview : StripeEntity + { + /// + /// The reason provided by the reviewer. + /// + [JsonProperty("reason")] + [STJS.JsonPropertyName("reason")] + public string Reason { get; set; } + + /// + /// The result of the review. + /// One of: approved, or rejected. + /// + [JsonProperty("result")] + [STJS.JsonPropertyName("result")] + public string Result { get; set; } + + /// + /// Timestamp when the review was performed. + /// + [JsonProperty("reviewed_at")] + [STJS.JsonPropertyName("reviewed_at")] + public DateTime ReviewedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The reviewer who performed the review. + /// + [JsonProperty("reviewed_by")] + [STJS.JsonPropertyName("reviewed_by")] + public ApprovalRequestReviewReviewedBy ReviewedBy { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestReviewReviewedBy.cs b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestReviewReviewedBy.cs new file mode 100644 index 0000000000..ed8b44ecda --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestReviewReviewedBy.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ApprovalRequestReviewReviewedBy : StripeEntity, IHasId + { + /// + /// Stripe-defined identifier for the reviewer (e.g. a restricted API key token). + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// Merchant-defined name for the reviewer. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestRule.cs b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestRule.cs new file mode 100644 index 0000000000..0ff2d9d36f --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestRule.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ApprovalRequestRule : StripeEntity + { + /// + /// The name of the rule. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetails.cs b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetails.cs new file mode 100644 index 0000000000..9e155b9116 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetails.cs @@ -0,0 +1,81 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ApprovalRequestStatusDetails : StripeEntity + { + /// + /// Deprecated: use requires_execution status instead. + /// + [JsonProperty("approved")] + [STJS.JsonPropertyName("approved")] + public ApprovalRequestStatusDetailsApproved Approved { get; set; } + + /// + /// Deprecated: use canceled status instead. + /// + [JsonProperty("canceled")] + [STJS.JsonPropertyName("canceled")] + public ApprovalRequestStatusDetailsCanceled Canceled { get; set; } + + /// + /// Deprecated: use failed status instead. + /// + [JsonProperty("execution_failed")] + [STJS.JsonPropertyName("execution_failed")] + public ApprovalRequestStatusDetailsExecutionFailed ExecutionFailed { get; set; } + + /// + /// Deprecated: use requires_execution status instead. + /// + [JsonProperty("execution_started")] + [STJS.JsonPropertyName("execution_started")] + public ApprovalRequestStatusDetailsExecutionStarted ExecutionStarted { get; set; } + + /// + /// Deprecated: use succeeded status instead. + /// + [JsonProperty("execution_succeeded")] + [STJS.JsonPropertyName("execution_succeeded")] + public ApprovalRequestStatusDetailsExecutionSucceeded ExecutionSucceeded { get; set; } + + /// + /// Deprecated: use expired status instead. + /// + [JsonProperty("expired")] + [STJS.JsonPropertyName("expired")] + public ApprovalRequestStatusDetailsExpired Expired { get; set; } + + /// + /// Details when the approval request failed. + /// + [JsonProperty("failed")] + [STJS.JsonPropertyName("failed")] + public ApprovalRequestStatusDetailsFailed Failed { get; set; } + + /// + /// Deprecated: use requires_review status instead. + /// + [JsonProperty("pending")] + [STJS.JsonPropertyName("pending")] + public ApprovalRequestStatusDetailsPending Pending { get; set; } + + /// + /// Deprecated: use rejected status instead. + /// + [JsonProperty("rejected")] + [STJS.JsonPropertyName("rejected")] + public ApprovalRequestStatusDetailsRejected Rejected { get; set; } + + /// + /// Details when the approval request succeeded. + /// + [JsonProperty("succeeded")] + [STJS.JsonPropertyName("succeeded")] + public ApprovalRequestStatusDetailsSucceeded Succeeded { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsApproved.cs b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsApproved.cs new file mode 100644 index 0000000000..37f8393dcf --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsApproved.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ApprovalRequestStatusDetailsApproved : StripeEntity + { + /// + /// The reason provided when approving the request. + /// + [JsonProperty("reason")] + [STJS.JsonPropertyName("reason")] + public string Reason { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsCanceled.cs b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsCanceled.cs new file mode 100644 index 0000000000..f5c8ef41c5 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsCanceled.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ApprovalRequestStatusDetailsCanceled : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsExecutionFailed.cs b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsExecutionFailed.cs new file mode 100644 index 0000000000..73367ea752 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsExecutionFailed.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ApprovalRequestStatusDetailsExecutionFailed : StripeEntity + { + /// + /// The error code for the failed execution. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// The error message for the failed execution. + /// + [JsonProperty("message")] + [STJS.JsonPropertyName("message")] + public string Message { get; set; } + + /// + /// The error type for the failed execution. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsExecutionStarted.cs b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsExecutionStarted.cs new file mode 100644 index 0000000000..ea41e82e3a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsExecutionStarted.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ApprovalRequestStatusDetailsExecutionStarted : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsExecutionSucceeded.cs b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsExecutionSucceeded.cs new file mode 100644 index 0000000000..39637e9200 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsExecutionSucceeded.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ApprovalRequestStatusDetailsExecutionSucceeded : StripeEntity + { + /// + /// The result of the successful execution. + /// + [JsonProperty("result")] + [STJS.JsonPropertyName("result")] + public ApprovalRequestStatusDetailsExecutionSucceededResult Result { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsExecutionSucceededResult.cs b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsExecutionSucceededResult.cs new file mode 100644 index 0000000000..b38f9a7aa9 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsExecutionSucceededResult.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ApprovalRequestStatusDetailsExecutionSucceededResult : StripeEntity, IHasId, IHasObject + { + /// + /// The unique identifier of the executed object. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// The object type of the executed resource. + /// + [JsonProperty("object")] + [STJS.JsonPropertyName("object")] + public string Object { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsExpired.cs b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsExpired.cs new file mode 100644 index 0000000000..25b284accf --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsExpired.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ApprovalRequestStatusDetailsExpired : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetailsFailed.cs b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsFailed.cs similarity index 60% rename from src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetailsFailed.cs rename to src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsFailed.cs index 35623c4456..aee0937907 100644 --- a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetailsFailed.cs +++ b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsFailed.cs @@ -6,28 +6,27 @@ namespace Stripe.V2.Core using STJS = System.Text.Json.Serialization; [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class WorkflowRunStatusDetailsFailed : StripeEntity + public class ApprovalRequestStatusDetailsFailed : StripeEntity { /// - /// If this Workflow Run failed during the processing of an action step, the step - /// identifier. - /// - [JsonProperty("action")] - [STJS.JsonPropertyName("action")] - public string Action { get; set; } - - /// - /// Category of the failure result. + /// The error code for the failed execution. /// [JsonProperty("error_code")] [STJS.JsonPropertyName("error_code")] public string ErrorCode { get; set; } /// - /// Optional details about the failure result. + /// The error message for the failed execution. /// [JsonProperty("error_message")] [STJS.JsonPropertyName("error_message")] public string ErrorMessage { get; set; } + + /// + /// The error type for the failed execution. + /// + [JsonProperty("error_type")] + [STJS.JsonPropertyName("error_type")] + public string ErrorType { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsPending.cs b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsPending.cs new file mode 100644 index 0000000000..a3a2d18507 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsPending.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ApprovalRequestStatusDetailsPending : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsRejected.cs b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsRejected.cs new file mode 100644 index 0000000000..36ac3b0333 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsRejected.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ApprovalRequestStatusDetailsRejected : StripeEntity + { + /// + /// The reason provided when rejecting the request. + /// + [JsonProperty("reason")] + [STJS.JsonPropertyName("reason")] + public string Reason { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsSucceeded.cs b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsSucceeded.cs new file mode 100644 index 0000000000..44e0d4a65d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsSucceeded.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ApprovalRequestStatusDetailsSucceeded : StripeEntity + { + /// + /// The result of the successful execution. + /// + [JsonProperty("result")] + [STJS.JsonPropertyName("result")] + public ApprovalRequestStatusDetailsSucceededResult Result { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsSucceededResult.cs b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsSucceededResult.cs new file mode 100644 index 0000000000..6abedb63c4 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusDetailsSucceededResult.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ApprovalRequestStatusDetailsSucceededResult : StripeEntity, IHasId, IHasObject + { + /// + /// The unique identifier of the executed object. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// The object type of the executed resource. + /// + [JsonProperty("object")] + [STJS.JsonPropertyName("object")] + public string Object { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusTransitions.cs b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusTransitions.cs new file mode 100644 index 0000000000..c2f8c405a3 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/ApprovalRequests/ApprovalRequestStatusTransitions.cs @@ -0,0 +1,54 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ApprovalRequestStatusTransitions : StripeEntity + { + /// + /// Timestamp when the approval request was canceled. + /// + [JsonProperty("canceled_at")] + [STJS.JsonPropertyName("canceled_at")] + public DateTime? CanceledAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Timestamp when the approval request expired. + /// + [JsonProperty("expired_at")] + [STJS.JsonPropertyName("expired_at")] + public DateTime? ExpiredAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Timestamp when the approval request failed. + /// + [JsonProperty("failed_at")] + [STJS.JsonPropertyName("failed_at")] + public DateTime? FailedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Timestamp when the approval request was rejected. + /// + [JsonProperty("rejected_at")] + [STJS.JsonPropertyName("rejected_at")] + public DateTime? RejectedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Timestamp when the approval request moved to requires_execution status. + /// + [JsonProperty("requires_execution_at")] + [STJS.JsonPropertyName("requires_execution_at")] + public DateTime? RequiresExecutionAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Timestamp when the approval request succeeded. + /// + [JsonProperty("succeeded_at")] + [STJS.JsonPropertyName("succeeded_at")] + public DateTime? SucceededAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandbox.cs b/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandbox.cs index 7e1c72e641..64644ed1c6 100644 --- a/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandbox.cs +++ b/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandbox.cs @@ -34,12 +34,12 @@ public class ClaimableSandbox : StripeEntity, IHasId, IHasObje public string Object { get; set; } /// - /// URL for user to claim sandbox into their existing Stripe account. The value will be null - /// if the sandbox status is claimed or expired. + /// The app channel that will be used when pre-installing your app on the claimable sandbox. + /// One of: public, or testing. /// - [JsonProperty("claim_url")] - [STJS.JsonPropertyName("claim_url")] - public string ClaimUrl { get; set; } + [JsonProperty("app_channel")] + [STJS.JsonPropertyName("app_channel")] + public string AppChannel { get; set; } /// /// The timestamp the sandbox was claimed. The value will be null if the sandbox status is @@ -72,6 +72,21 @@ public class ClaimableSandbox : StripeEntity, IHasId, IHasObje [STJS.JsonPropertyName("livemode")] public bool Livemode { get; set; } + /// + /// Details about the onboarding link. + /// + [JsonProperty("onboarding_link_details")] + [STJS.JsonPropertyName("onboarding_link_details")] + public ClaimableSandboxOnboardingLinkDetails OnboardingLinkDetails { get; set; } + + /// + /// Details about the livemode owner account of the sandbox. This will be null until the + /// sandbox is claimed. + /// + [JsonProperty("owner_details")] + [STJS.JsonPropertyName("owner_details")] + public ClaimableSandboxOwnerDetails OwnerDetails { get; set; } + /// /// Values prefilled during the creation of the sandbox. When a user claims the sandbox, /// they will be able to update these values. @@ -88,8 +103,8 @@ public class ClaimableSandbox : StripeEntity, IHasId, IHasObje public ClaimableSandboxSandboxDetails SandboxDetails { get; set; } /// - /// Status of the sandbox. One of unclaimed, expired, claimed. - /// One of: claimed, expired, or unclaimed. + /// Status of the sandbox. + /// One of: claimed, expired, live, or unclaimed. /// [JsonProperty("status")] [STJS.JsonPropertyName("status")] diff --git a/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandboxOnboardingLinkDetails.cs b/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandboxOnboardingLinkDetails.cs new file mode 100644 index 0000000000..581ef264cc --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandboxOnboardingLinkDetails.cs @@ -0,0 +1,36 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ClaimableSandboxOnboardingLinkDetails : StripeEntity + { + /// + /// The timestamp the onboarding link expires. + /// + [JsonProperty("expires_at")] + [STJS.JsonPropertyName("expires_at")] + public DateTime ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The URL the user will be redirected to if the onboarding link is expired or invalid. The + /// URL specified should attempt to generate a new onboarding link, and re-direct the user + /// to this new onboarding link so that they can proceed with the onboarding flow. + /// + [JsonProperty("refresh_url")] + [STJS.JsonPropertyName("refresh_url")] + public string RefreshUrl { get; set; } + + /// + /// URL that will redirect the user to either claim or onboard the claimable sandbox + /// depending on its status. + /// + [JsonProperty("url")] + [STJS.JsonPropertyName("url")] + public string Url { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandboxOwnerDetails.cs b/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandboxOwnerDetails.cs new file mode 100644 index 0000000000..a8f7936a8c --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandboxOwnerDetails.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ClaimableSandboxOwnerDetails : StripeEntity + { + /// + /// The ID of the livemode Stripe account that owns the sandbox. This field is only set when + /// owner_details.app_install_status is installed. + /// + [JsonProperty("account")] + [STJS.JsonPropertyName("account")] + public string Account { get; set; } + + /// + /// Indicates whether the platform app is installed on the sandbox’s livemode owner account. + /// One of: installed, pending_install, or pending_onboarding. + /// + [JsonProperty("app_install_status")] + [STJS.JsonPropertyName("app_install_status")] + public string AppInstallStatus { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandboxSandboxDetails.cs b/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandboxSandboxDetails.cs index 6ead61e44d..1886ca1658 100644 --- a/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandboxSandboxDetails.cs +++ b/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandboxSandboxDetails.cs @@ -23,13 +23,5 @@ public class ClaimableSandboxSandboxDetails : StripeEntity - /// The livemode sandbox Stripe account ID. This field is only set if the user activates - /// their sandbox and chooses to install your platform's Stripe App in their live account. - /// - [JsonProperty("owner_account")] - [STJS.JsonPropertyName("owner_account")] - public string OwnerAccount { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Core/ConnectionSessions/ConnectionSession.cs b/src/Stripe.net/Entities/V2/Core/ConnectionSessions/ConnectionSession.cs index a61443cb9a..f0a9741ebc 100644 --- a/src/Stripe.net/Entities/V2/Core/ConnectionSessions/ConnectionSession.cs +++ b/src/Stripe.net/Entities/V2/Core/ConnectionSessions/ConnectionSession.cs @@ -8,7 +8,8 @@ namespace Stripe.V2.Core using STJS = System.Text.Json.Serialization; /// - /// The ConnectionSession resource. + /// A short-lived, single-use session used to launch client-side Link onboarding that + /// connects an Account to a Link consumer account. /// [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class ConnectionSession : StripeEntity, IHasId, IHasObject diff --git a/src/Stripe.net/Entities/V2/Core/Events/Event.cs b/src/Stripe.net/Entities/V2/Core/Events/Event.cs index 997fa71b5a..d52816cd95 100644 --- a/src/Stripe.net/Entities/V2/Core/Events/Event.cs +++ b/src/Stripe.net/Entities/V2/Core/Events/Event.cs @@ -64,6 +64,13 @@ public partial class Event : StripeEntity, IHasId, IHasObject [STJS.JsonPropertyName("reason")] public EventReason Reason { get; set; } + /// + /// For interop events, this is the snapshot event ID. + /// + [JsonProperty("snapshot_event")] + [STJS.JsonPropertyName("snapshot_event")] + public string SnapshotEvent { get; set; } + /// /// The type of the event. /// diff --git a/src/Stripe.net/Entities/V2/Core/Vault/GbBankAccounts/GbBankAccount.cs b/src/Stripe.net/Entities/V2/Core/Vault/GbBankAccounts/GbBankAccount.cs index 3f0b80df0d..1eddb6e5c6 100644 --- a/src/Stripe.net/Entities/V2/Core/Vault/GbBankAccounts/GbBankAccount.cs +++ b/src/Stripe.net/Entities/V2/Core/Vault/GbBankAccounts/GbBankAccount.cs @@ -47,7 +47,7 @@ public class GbBankAccount : StripeEntity, IHasId, IHasObject /// /// Closed Enum. The type of the bank account (checking or savings). - /// One of: checking, or savings. + /// One of: checking, futsu, savings, or toza. /// [JsonProperty("bank_account_type")] [STJS.JsonPropertyName("bank_account_type")] diff --git a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetailsSucceeded.cs b/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetailsSucceeded.cs deleted file mode 100644 index e67ebb4043..0000000000 --- a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetailsSucceeded.cs +++ /dev/null @@ -1,25 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class WorkflowRunStatusDetailsSucceeded : StripeEntity - { - /// - /// Category of the success result. - /// - [JsonProperty("status_code")] - [STJS.JsonPropertyName("status_code")] - public string StatusCode { get; set; } - - /// - /// Optional details about the success result. - /// - [JsonProperty("status_message")] - [STJS.JsonPropertyName("status_message")] - public string StatusMessage { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRun.cs b/src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRun.cs similarity index 99% rename from src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRun.cs rename to src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRun.cs index 8cf33eca5e..2af8b30f28 100644 --- a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRun.cs +++ b/src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRun.cs @@ -1,5 +1,5 @@ // File generated from our OpenAPI spec -namespace Stripe.V2.Core +namespace Stripe.V2.Extend { using System; using Newtonsoft.Json; diff --git a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetails.cs b/src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunStatusDetails.cs similarity index 97% rename from src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetails.cs rename to src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunStatusDetails.cs index 38c3f2aaa0..4c422d5507 100644 --- a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetails.cs +++ b/src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunStatusDetails.cs @@ -1,5 +1,5 @@ // File generated from our OpenAPI spec -namespace Stripe.V2.Core +namespace Stripe.V2.Extend { using Newtonsoft.Json; using Stripe.Infrastructure; diff --git a/src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunStatusDetailsFailed.cs b/src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunStatusDetailsFailed.cs new file mode 100644 index 0000000000..276e9d33d4 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunStatusDetailsFailed.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Extend +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class WorkflowRunStatusDetailsFailed : StripeEntity + { + /// + /// Optional details about the failure result. + /// + [JsonProperty("error_message")] + [STJS.JsonPropertyName("error_message")] + public string ErrorMessage { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetailsStarted.cs b/src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunStatusDetailsStarted.cs similarity index 92% rename from src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetailsStarted.cs rename to src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunStatusDetailsStarted.cs index de9b6be7d3..82d689b311 100644 --- a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetailsStarted.cs +++ b/src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunStatusDetailsStarted.cs @@ -1,5 +1,5 @@ // File generated from our OpenAPI spec -namespace Stripe.V2.Core +namespace Stripe.V2.Extend { using Newtonsoft.Json; using Stripe.Infrastructure; diff --git a/src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunStatusDetailsSucceeded.cs b/src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunStatusDetailsSucceeded.cs new file mode 100644 index 0000000000..d26cd22c4d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunStatusDetailsSucceeded.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Extend +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class WorkflowRunStatusDetailsSucceeded : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusTransitions.cs b/src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunStatusTransitions.cs similarity index 97% rename from src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusTransitions.cs rename to src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunStatusTransitions.cs index 38e3f20e8b..32bb6b3dd8 100644 --- a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusTransitions.cs +++ b/src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunStatusTransitions.cs @@ -1,5 +1,5 @@ // File generated from our OpenAPI spec -namespace Stripe.V2.Core +namespace Stripe.V2.Extend { using System; using Newtonsoft.Json; diff --git a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunTrigger.cs b/src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunTrigger.cs similarity index 97% rename from src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunTrigger.cs rename to src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunTrigger.cs index 8319fc8aee..a91d6ef542 100644 --- a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunTrigger.cs +++ b/src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunTrigger.cs @@ -1,5 +1,5 @@ // File generated from our OpenAPI spec -namespace Stripe.V2.Core +namespace Stripe.V2.Extend { using Newtonsoft.Json; using Stripe.Infrastructure; diff --git a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunTriggerEventTrigger.cs b/src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunTriggerEventTrigger.cs similarity index 74% rename from src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunTriggerEventTrigger.cs rename to src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunTriggerEventTrigger.cs index ce8d852f86..4697081dda 100644 --- a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunTriggerEventTrigger.cs +++ b/src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunTriggerEventTrigger.cs @@ -1,5 +1,5 @@ // File generated from our OpenAPI spec -namespace Stripe.V2.Core +namespace Stripe.V2.Extend { using Newtonsoft.Json; using Stripe.Infrastructure; @@ -8,6 +8,13 @@ namespace Stripe.V2.Core [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class WorkflowRunTriggerEventTrigger : StripeEntity, IHasId { + /// + /// The account that generated the triggering event. + /// + [JsonProperty("context")] + [STJS.JsonPropertyName("context")] + public string Context { get; set; } + /// /// The Stripe event that triggered this Run. /// diff --git a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunTriggerManual.cs b/src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunTriggerManual.cs similarity index 95% rename from src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunTriggerManual.cs rename to src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunTriggerManual.cs index 234f2e03f3..cffcb07d21 100644 --- a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunTriggerManual.cs +++ b/src/Stripe.net/Entities/V2/Extend/WorkflowRuns/WorkflowRunTriggerManual.cs @@ -1,5 +1,5 @@ // File generated from our OpenAPI spec -namespace Stripe.V2.Core +namespace Stripe.V2.Extend { using System.Collections.Generic; using Newtonsoft.Json; diff --git a/src/Stripe.net/Entities/V2/Core/Workflows/Workflow.cs b/src/Stripe.net/Entities/V2/Extend/Workflows/Workflow.cs similarity index 92% rename from src/Stripe.net/Entities/V2/Core/Workflows/Workflow.cs rename to src/Stripe.net/Entities/V2/Extend/Workflows/Workflow.cs index fed3063906..eec8b0e8bb 100644 --- a/src/Stripe.net/Entities/V2/Core/Workflows/Workflow.cs +++ b/src/Stripe.net/Entities/V2/Extend/Workflows/Workflow.cs @@ -1,5 +1,5 @@ // File generated from our OpenAPI spec -namespace Stripe.V2.Core +namespace Stripe.V2.Extend { using System; using System.Collections.Generic; @@ -37,13 +37,6 @@ public class Workflow : StripeEntity, IHasId, IHasObject [STJS.JsonPropertyName("created")] public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; - /// - /// Workflow description. - /// - [JsonProperty("description")] - [STJS.JsonPropertyName("description")] - public string Description { get; set; } - /// /// Has the value true if the object exists in live mode or the value false if /// the object exists in test mode. @@ -61,6 +54,13 @@ public class Workflow : StripeEntity, IHasId, IHasObject [STJS.JsonPropertyName("status")] public string Status { get; set; } + /// + /// Workflow title. + /// + [JsonProperty("title")] + [STJS.JsonPropertyName("title")] + public string Title { get; set; } + /// /// Under what conditions will this Workflow launch. /// diff --git a/src/Stripe.net/Entities/V2/Core/Workflows/WorkflowTrigger.cs b/src/Stripe.net/Entities/V2/Extend/Workflows/WorkflowTrigger.cs similarity index 97% rename from src/Stripe.net/Entities/V2/Core/Workflows/WorkflowTrigger.cs rename to src/Stripe.net/Entities/V2/Extend/Workflows/WorkflowTrigger.cs index dca5111ca3..624a98c6d8 100644 --- a/src/Stripe.net/Entities/V2/Core/Workflows/WorkflowTrigger.cs +++ b/src/Stripe.net/Entities/V2/Extend/Workflows/WorkflowTrigger.cs @@ -1,5 +1,5 @@ // File generated from our OpenAPI spec -namespace Stripe.V2.Core +namespace Stripe.V2.Extend { using Newtonsoft.Json; using Stripe.Infrastructure; diff --git a/src/Stripe.net/Entities/V2/Core/Workflows/WorkflowTriggerEventTrigger.cs b/src/Stripe.net/Entities/V2/Extend/Workflows/WorkflowTriggerEventTrigger.cs similarity index 62% rename from src/Stripe.net/Entities/V2/Core/Workflows/WorkflowTriggerEventTrigger.cs rename to src/Stripe.net/Entities/V2/Extend/Workflows/WorkflowTriggerEventTrigger.cs index d8f55fd295..a0dd736b34 100644 --- a/src/Stripe.net/Entities/V2/Core/Workflows/WorkflowTriggerEventTrigger.cs +++ b/src/Stripe.net/Entities/V2/Extend/Workflows/WorkflowTriggerEventTrigger.cs @@ -1,6 +1,7 @@ // File generated from our OpenAPI spec -namespace Stripe.V2.Core +namespace Stripe.V2.Extend { + using System.Collections.Generic; using Newtonsoft.Json; using Stripe.Infrastructure; using STJS = System.Text.Json.Serialization; @@ -8,6 +9,13 @@ namespace Stripe.V2.Core [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class WorkflowTriggerEventTrigger : StripeEntity { + /// + /// Specifies which accounts' events will trigger this Workflow. + /// + [JsonProperty("events_from")] + [STJS.JsonPropertyName("events_from")] + public List EventsFrom { get; set; } + /// /// The Stripe event type that will trigger this Workflow. /// diff --git a/src/Stripe.net/Entities/V2/Core/Workflows/WorkflowTriggerManual.cs b/src/Stripe.net/Entities/V2/Extend/Workflows/WorkflowTriggerManual.cs similarity index 52% rename from src/Stripe.net/Entities/V2/Core/Workflows/WorkflowTriggerManual.cs rename to src/Stripe.net/Entities/V2/Extend/Workflows/WorkflowTriggerManual.cs index e4d29f0643..7c1479cb68 100644 --- a/src/Stripe.net/Entities/V2/Core/Workflows/WorkflowTriggerManual.cs +++ b/src/Stripe.net/Entities/V2/Extend/Workflows/WorkflowTriggerManual.cs @@ -1,5 +1,5 @@ // File generated from our OpenAPI spec -namespace Stripe.V2.Core +namespace Stripe.V2.Extend { using Newtonsoft.Json; using Stripe.Infrastructure; @@ -8,11 +8,5 @@ namespace Stripe.V2.Core [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class WorkflowTriggerManual : StripeEntity { - /// - /// An unprocessed version of the trigger's input parameter schema. - /// - [JsonProperty("raw_schema")] - [STJS.JsonPropertyName("raw_schema")] - public string RawSchema { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLog.cs b/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLog.cs new file mode 100644 index 0000000000..036c869ad2 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLog.cs @@ -0,0 +1,75 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Iam +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + /// + /// An activity log records a single action performed on an account. + /// + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ActivityLog : StripeEntity, IHasId, IHasObject + { + /// + /// Unique identifier of the activity log entry. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// String representing the object's type. Objects of the same type share the same value of + /// the object field. + /// + [JsonProperty("object")] + [STJS.JsonPropertyName("object")] + public string Object { get; set; } + + /// + /// The actor that performed the action. + /// + [JsonProperty("actor")] + [STJS.JsonPropertyName("actor")] + public ActivityLogActor Actor { get; set; } + + /// + /// The account on which the action was performed. + /// + [JsonProperty("context")] + [STJS.JsonPropertyName("context")] + public string Context { get; set; } + + /// + /// Timestamp when the activity log entry was created. + /// + [JsonProperty("created")] + [STJS.JsonPropertyName("created")] + public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Action-specific details of the activity log entry. + /// + [JsonProperty("details")] + [STJS.JsonPropertyName("details")] + public ActivityLogDetails Details { get; set; } + + /// + /// Whether the action was performed in live mode. + /// + [JsonProperty("livemode")] + [STJS.JsonPropertyName("livemode")] + public bool Livemode { get; set; } + + /// + /// The type of action that was performed. + /// One of: api_key_created, api_key_deleted, api_key_updated, + /// api_key_viewed, user_invite_accepted, user_invite_created, + /// user_invite_deleted, user_roles_deleted, or user_roles_updated. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogActor.cs b/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogActor.cs new file mode 100644 index 0000000000..c1e8051637 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogActor.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Iam +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ActivityLogActor : StripeEntity + { + /// + /// Set when the actor is an API key. + /// + [JsonProperty("api_key")] + [STJS.JsonPropertyName("api_key")] + public ActivityLogActorApiKey ApiKey { get; set; } + + /// + /// The type of actor. + /// One of: api_key, or user. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + + /// + /// Set when the actor is a user. + /// + [JsonProperty("user")] + [STJS.JsonPropertyName("user")] + public ActivityLogActorUser User { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogActorApiKey.cs b/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogActorApiKey.cs new file mode 100644 index 0000000000..01a2c48792 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogActorApiKey.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Iam +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ActivityLogActorApiKey : StripeEntity, IHasId + { + /// + /// Unique identifier of the API key. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogActorUser.cs b/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogActorUser.cs new file mode 100644 index 0000000000..f630067914 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogActorUser.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Iam +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ActivityLogActorUser : StripeEntity + { + /// + /// Email address of the user. + /// + [JsonProperty("email")] + [STJS.JsonPropertyName("email")] + public string Email { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogDetails.cs b/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogDetails.cs new file mode 100644 index 0000000000..673b6f4ed8 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogDetails.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Iam +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ActivityLogDetails : StripeEntity + { + /// + /// Details of an API key action. + /// + [JsonProperty("api_key")] + [STJS.JsonPropertyName("api_key")] + public ActivityLogDetailsApiKey ApiKey { get; set; } + + /// + /// The action group type of the activity log entry. + /// One of: api_key, user_invite, or user_roles. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + + /// + /// Details of a user invite action. + /// + [JsonProperty("user_invite")] + [STJS.JsonPropertyName("user_invite")] + public ActivityLogDetailsUserInvite UserInvite { get; set; } + + /// + /// Details of a user role change action. + /// + [JsonProperty("user_roles")] + [STJS.JsonPropertyName("user_roles")] + public ActivityLogDetailsUserRoles UserRoles { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogDetailsApiKey.cs b/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogDetailsApiKey.cs new file mode 100644 index 0000000000..e2d29d2352 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogDetailsApiKey.cs @@ -0,0 +1,77 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Iam +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ActivityLogDetailsApiKey : StripeEntity, IHasId + { + /// + /// Timestamp when the API key was created. + /// + [JsonProperty("created")] + [STJS.JsonPropertyName("created")] + public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Timestamp when the API key expires. + /// + [JsonProperty("expires_at")] + [STJS.JsonPropertyName("expires_at")] + public DateTime? ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Unique identifier of the API key. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// List of IP addresses allowed to use this API key. + /// + [JsonProperty("ip_allowlist")] + [STJS.JsonPropertyName("ip_allowlist")] + public List IpAllowlist { get; set; } + + /// + /// Information about the entity managing this API key. + /// + [JsonProperty("managed_by")] + [STJS.JsonPropertyName("managed_by")] + public ActivityLogDetailsApiKeyManagedBy ManagedBy { get; set; } + + /// + /// Name of the API key. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// Unique identifier of the new API key, set when this key was rotated. + /// + [JsonProperty("new_key")] + [STJS.JsonPropertyName("new_key")] + public string NewKey { get; set; } + + /// + /// Note or description for the API key. + /// + [JsonProperty("note")] + [STJS.JsonPropertyName("note")] + public string Note { get; set; } + + /// + /// Type of the API key. + /// One of: publishable_key, or secret_key. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogDetailsApiKeyManagedBy.cs b/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogDetailsApiKeyManagedBy.cs new file mode 100644 index 0000000000..64c0f9f3df --- /dev/null +++ b/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogDetailsApiKeyManagedBy.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Iam +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ActivityLogDetailsApiKeyManagedBy : StripeEntity + { + /// + /// An application. + /// + [JsonProperty("application")] + [STJS.JsonPropertyName("application")] + public ActivityLogDetailsApiKeyManagedByApplication Application { get; set; } + + /// + /// The type of entity. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogDetailsApiKeyManagedByApplication.cs b/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogDetailsApiKeyManagedByApplication.cs new file mode 100644 index 0000000000..8f91048eb3 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogDetailsApiKeyManagedByApplication.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Iam +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ActivityLogDetailsApiKeyManagedByApplication : StripeEntity, IHasId + { + /// + /// Identifier of the application. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogDetailsUserInvite.cs b/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogDetailsUserInvite.cs new file mode 100644 index 0000000000..baab7817d9 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogDetailsUserInvite.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Iam +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ActivityLogDetailsUserInvite : StripeEntity + { + /// + /// Email address of the invited user. + /// + [JsonProperty("invited_user_email")] + [STJS.JsonPropertyName("invited_user_email")] + public string InvitedUserEmail { get; set; } + + /// + /// Roles assigned to the invited user. + /// + [JsonProperty("roles")] + [STJS.JsonPropertyName("roles")] + public List Roles { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogDetailsUserRoles.cs b/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogDetailsUserRoles.cs new file mode 100644 index 0000000000..ff7cf44410 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Iam/ActivityLogs/ActivityLogDetailsUserRoles.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Iam +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ActivityLogDetailsUserRoles : StripeEntity + { + /// + /// Roles the user has after the change. + /// + [JsonProperty("new_roles")] + [STJS.JsonPropertyName("new_roles")] + public List NewRoles { get; set; } + + /// + /// Roles the user had before the change. + /// + [JsonProperty("old_roles")] + [STJS.JsonPropertyName("old_roles")] + public List OldRoles { get; set; } + + /// + /// Email address of the user whose roles were changed. + /// + [JsonProperty("user_email")] + [STJS.JsonPropertyName("user_email")] + public string UserEmail { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccount.cs index a01d9ac172..3138214c86 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccount.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccount.cs @@ -93,6 +93,14 @@ public class FinancialAccount : StripeEntity, IHasId, IHasMeta [STJS.JsonPropertyName("metadata")] public Dictionary Metadata { get; set; } + /// + /// If this is a multiprocessor_settlement FinancialAccount, this hash includes + /// details specific to multiprocessor_settlement FinancialAccounts. + /// + [JsonProperty("multiprocessor_settlement")] + [STJS.JsonPropertyName("multiprocessor_settlement")] + public FinancialAccountMultiprocessorSettlement MultiprocessorSettlement { get; set; } + /// /// If this is a other FinancialAccount, this hash indicates what the actual type is. /// Upgrade your API version to see it reflected in type. @@ -137,7 +145,8 @@ public class FinancialAccount : StripeEntity, IHasId, IHasMeta /// Type of the FinancialAccount. An additional hash is included on the FinancialAccount /// with a name matching this value. It contains additional information specific to the /// FinancialAccount type. - /// One of: accrued_fees, other, payments, or storage. + /// One of: accrued_fees, multiprocessor_settlement, other, + /// payments, or storage. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountMultiprocessorSettlement.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountMultiprocessorSettlement.cs new file mode 100644 index 0000000000..0882d5efab --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountMultiprocessorSettlement.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class FinancialAccountMultiprocessorSettlement : StripeEntity + { + /// + /// Settlement currencies enabled for this FinancialAccount. + /// + [JsonProperty("settlement_currencies")] + [STJS.JsonPropertyName("settlement_currencies")] + public List SettlementCurrencies { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentials.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentials.cs index 6ce5821ff8..f7584cb424 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentials.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentials.cs @@ -8,6 +8,15 @@ namespace Stripe.V2.MoneyManagement [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class FinancialAddressCredentials : StripeEntity { + /// + /// The credentials of the Canadian Bank Account for the FinancialAddress. This contains + /// unique banking details such as the account number, institution number, etc. of a + /// Canadian bank account. + /// + [JsonProperty("ca_bank_account")] + [STJS.JsonPropertyName("ca_bank_account")] + public FinancialAddressCredentialsCaBankAccount CaBankAccount { get; set; } + /// /// The credentials of the UK Bank Account for the FinancialAddress. This contains unique /// banking details such as the sort code, account number, etc. of a UK bank account. @@ -26,7 +35,8 @@ public class FinancialAddressCredentials : StripeEntity /// Open Enum. The type of Credentials that are provisioned for the FinancialAddress. - /// One of: gb_bank_account, sepa_bank_account, or us_bank_account. + /// One of: ca_bank_account, gb_bank_account, sepa_bank_account, or + /// us_bank_account. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentialsCaBankAccount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentialsCaBankAccount.cs new file mode 100644 index 0000000000..48042c78bd --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentialsCaBankAccount.cs @@ -0,0 +1,55 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class FinancialAddressCredentialsCaBankAccount : StripeEntity + { + /// + /// The account holder name to be used during bank transfers. + /// + [JsonProperty("account_holder_name")] + [STJS.JsonPropertyName("account_holder_name")] + public string AccountHolderName { get; set; } + + /// + /// The account number of the Canadian Bank Account. + /// + [JsonProperty("account_number")] + [STJS.JsonPropertyName("account_number")] + public string AccountNumber { get; set; } + + /// + /// The name of the Bank. + /// + [JsonProperty("bank_name")] + [STJS.JsonPropertyName("bank_name")] + public string BankName { get; set; } + + /// + /// The institution number of the Canadian Bank Account. + /// + [JsonProperty("institution_number")] + [STJS.JsonPropertyName("institution_number")] + public string InstitutionNumber { get; set; } + + /// + /// The last four digits of the Canadian Bank Account number. This will always be returned. + /// To view the full account number when retrieving or listing FinancialAddresses, use the + /// include request parameter. + /// + [JsonProperty("last4")] + [STJS.JsonPropertyName("last4")] + public string Last4 { get; set; } + + /// + /// The transit number of the Canadian Bank Account. + /// + [JsonProperty("transit_number")] + [STJS.JsonPropertyName("transit_number")] + public string TransitNumber { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/PayoutMethods/PayoutMethodBankAccount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutMethods/PayoutMethodBankAccount.cs index 6834c4fbaa..4f817702d5 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/PayoutMethods/PayoutMethodBankAccount.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutMethods/PayoutMethodBankAccount.cs @@ -21,7 +21,7 @@ public class PayoutMethodBankAccount : StripeEntity /// /// The type of bank account (checking or savings). - /// One of: checking, or savings. + /// One of: checking, futsu, savings, or toza. /// [JsonProperty("bank_account_type")] [STJS.JsonPropertyName("bank_account_type")] diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/PayoutMethods/PayoutMethodCryptoWallet.cs b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutMethods/PayoutMethodCryptoWallet.cs index 977641e35e..e1cebe42ad 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/PayoutMethods/PayoutMethodCryptoWallet.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutMethods/PayoutMethodCryptoWallet.cs @@ -34,7 +34,7 @@ public class PayoutMethodCryptoWallet : StripeEntity /// /// Which rail is being used to make an outbound money movement to this wallet. /// One of: arbitrum, avalanche_c_chain, base, ethereum, - /// optimism, polygon, solana, or stellar. + /// optimism, polygon, solana, stellar, or tempo. /// [JsonProperty("network")] [STJS.JsonPropertyName("network")] diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransfer.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransfer.cs index a7e4146312..1415ba1f69 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransfer.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransfer.cs @@ -8,6 +8,14 @@ namespace Stripe.V2.MoneyManagement [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class ReceivedCreditBankTransfer : StripeEntity { + /// + /// Hash containing the transaction bank details. Present if origin_type field value + /// is ca_bank_account. + /// + [JsonProperty("ca_bank_account")] + [STJS.JsonPropertyName("ca_bank_account")] + public ReceivedCreditBankTransferCaBankAccount CaBankAccount { get; set; } + /// /// Financial Address on which funds for ReceivedCredit were received. /// @@ -25,7 +33,8 @@ public class ReceivedCreditBankTransfer : StripeEntity /// Open Enum. Indicates the origin of source from which external funds originated from. - /// One of: gb_bank_account, sepa_bank_account, or us_bank_account. + /// One of: ca_bank_account, gb_bank_account, sepa_bank_account, or + /// us_bank_account. /// [JsonProperty("origin_type")] [STJS.JsonPropertyName("origin_type")] diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransferCaBankAccount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransferCaBankAccount.cs new file mode 100644 index 0000000000..394d111613 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransferCaBankAccount.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ReceivedCreditBankTransferCaBankAccount : StripeEntity + { + /// + /// The account holder name of the bank account the transfer was received from. + /// + [JsonProperty("account_holder_name")] + [STJS.JsonPropertyName("account_holder_name")] + public string AccountHolderName { get; set; } + + /// + /// The bank name the transfer was received from. + /// + [JsonProperty("bank_name")] + [STJS.JsonPropertyName("bank_name")] + public string BankName { get; set; } + + /// + /// The last 4 digits of the account number that originated the transfer. Depending on the + /// bank, this may instead be the last 4 digits of the return account number. + /// + [JsonProperty("last4")] + [STJS.JsonPropertyName("last4")] + public string Last4 { get; set; } + + /// + /// Open Enum. The money transmission network used to send funds for this ReceivedCredit. + /// + [JsonProperty("network")] + [STJS.JsonPropertyName("network")] + public string Network { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryTransactionDetails.cs b/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryTransactionDetails.cs index 15ce0bd873..5de3fa976e 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryTransactionDetails.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryTransactionDetails.cs @@ -27,7 +27,7 @@ public class TransactionEntryTransactionDetails : StripeEntitypayment_method_passthrough_fee, payment_network_reserved_funds, /// platform_earning, platform_earning_refund, platform_fee, /// received_credit, received_credit_reversal, received_debit, - /// received_debit_reversal, refund, refund_failure, return, + /// received_debit_reversal, refund, refund_failure, /// risk_reserved_funds, stripe_balance_payment_debit, /// stripe_balance_payment_debit_reversal, stripe_fee, stripe_fee_tax, /// tax_withholding, transfer_reversal, or unreconciled_customer_funds. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/Transaction.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/Transaction.cs index 22d26acd62..a785ca82ea 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/Transaction.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/Transaction.cs @@ -64,7 +64,7 @@ public class Transaction : StripeEntity, IHasId, IHasObject /// payment_method_passthrough_fee, payment_network_reserved_funds, /// platform_earning, platform_earning_refund, platform_fee, /// received_credit, received_credit_reversal, received_debit, - /// received_debit_reversal, refund, refund_failure, return, + /// received_debit_reversal, refund, refund_failure, /// risk_reserved_funds, stripe_balance_payment_debit, /// stripe_balance_payment_debit_reversal, stripe_fee, stripe_fee_tax, /// tax_withholding, transfer_reversal, or unreconciled_customer_funds. diff --git a/src/Stripe.net/Entities/V2/Network/BusinessProfiles/BusinessProfile.cs b/src/Stripe.net/Entities/V2/Network/BusinessProfiles/BusinessProfile.cs new file mode 100644 index 0000000000..17a1bf6d20 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Network/BusinessProfiles/BusinessProfile.cs @@ -0,0 +1,73 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Network +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + /// + /// The Stripe profile represents a business' public identity on the Stripe network. + /// + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class BusinessProfile : StripeEntity, IHasId, IHasObject + { + /// + /// The ID of the Stripe business profile; also known as the Network ID. This is the ID used + /// to identify the business on the Stripe network. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// String representing the object's type. Objects of the same type share the same value of + /// the object field. + /// + [JsonProperty("object")] + [STJS.JsonPropertyName("object")] + public string Object { get; set; } + + /// + /// Branding data for the business. + /// + [JsonProperty("branding")] + [STJS.JsonPropertyName("branding")] + public BusinessProfileBranding Branding { get; set; } + + /// + /// The description of the business. + /// + [JsonProperty("description")] + [STJS.JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// The display name of the Stripe profile. + /// + [JsonProperty("display_name")] + [STJS.JsonPropertyName("display_name")] + public string DisplayName { get; set; } + + /// + /// Has the value true if the object exists in live mode or the value false if + /// the object exists in test mode. + /// + [JsonProperty("livemode")] + [STJS.JsonPropertyName("livemode")] + public bool Livemode { get; set; } + + /// + /// The URL of the business. + /// + [JsonProperty("url")] + [STJS.JsonPropertyName("url")] + public string Url { get; set; } + + /// + /// The username of the Stripe profile. + /// + [JsonProperty("username")] + [STJS.JsonPropertyName("username")] + public string Username { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Network/BusinessProfiles/BusinessProfileBranding.cs b/src/Stripe.net/Entities/V2/Network/BusinessProfiles/BusinessProfileBranding.cs new file mode 100644 index 0000000000..e582746e09 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Network/BusinessProfiles/BusinessProfileBranding.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Network +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class BusinessProfileBranding : StripeEntity + { + /// + /// URL of the icon for the business. The image will be square and at least 128px x 128px. + /// + [JsonProperty("icon")] + [STJS.JsonPropertyName("icon")] + public BusinessProfileBrandingIcon Icon { get; set; } + + /// + /// URL of the logo for the business. The image will be at least 128px x 128px. + /// + [JsonProperty("logo")] + [STJS.JsonPropertyName("logo")] + public BusinessProfileBrandingLogo Logo { get; set; } + + /// + /// A CSS hex color value representing the primary branding color for this business. + /// + [JsonProperty("primary_color")] + [STJS.JsonPropertyName("primary_color")] + public string PrimaryColor { get; set; } + + /// + /// A CSS hex color value representing the secondary branding color for this business. + /// + [JsonProperty("secondary_color")] + [STJS.JsonPropertyName("secondary_color")] + public string SecondaryColor { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Network/BusinessProfiles/BusinessProfileBrandingIcon.cs b/src/Stripe.net/Entities/V2/Network/BusinessProfiles/BusinessProfileBrandingIcon.cs new file mode 100644 index 0000000000..183a526b82 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Network/BusinessProfiles/BusinessProfileBrandingIcon.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Network +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class BusinessProfileBrandingIcon : StripeEntity + { + /// + /// The URL of the image in its original size. + /// + [JsonProperty("original")] + [STJS.JsonPropertyName("original")] + public string Original { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Network/BusinessProfiles/BusinessProfileBrandingLogo.cs b/src/Stripe.net/Entities/V2/Network/BusinessProfiles/BusinessProfileBrandingLogo.cs new file mode 100644 index 0000000000..1ab53322e1 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Network/BusinessProfiles/BusinessProfileBrandingLogo.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Network +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class BusinessProfileBrandingLogo : StripeEntity + { + /// + /// The URL of the image in its original size. + /// + [JsonProperty("original")] + [STJS.JsonPropertyName("original")] + public string Original { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/OrchestratedCommerce/Agreements/Agreement.cs b/src/Stripe.net/Entities/V2/OrchestratedCommerce/Agreements/Agreement.cs new file mode 100644 index 0000000000..94990c7480 --- /dev/null +++ b/src/Stripe.net/Entities/V2/OrchestratedCommerce/Agreements/Agreement.cs @@ -0,0 +1,92 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.OrchestratedCommerce +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + /// + /// An Orchestrated Commerce Agreement represents a mutual agreement between a seller and an + /// orchestrator/agent on the Stripe network. + /// + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class Agreement : StripeEntity, IHasId, IHasObject + { + /// + /// The unique identifier for the agreement. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// String representing the object's type. Objects of the same type share the same value of + /// the object field. + /// + [JsonProperty("object")] + [STJS.JsonPropertyName("object")] + public string Object { get; set; } + + /// + /// The time at which the agreement was created. + /// + [JsonProperty("created")] + [STJS.JsonPropertyName("created")] + public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The party that initiated the agreement. + /// One of: orchestrator, or seller. + /// + [JsonProperty("initiated_by")] + [STJS.JsonPropertyName("initiated_by")] + public string InitiatedBy { get; set; } + + /// + /// Has the value true if the object exists in live mode or the value false if + /// the object exists in test mode. + /// + [JsonProperty("livemode")] + [STJS.JsonPropertyName("livemode")] + public bool Livemode { get; set; } + + /// + /// Details about the orchestrator. + /// + [JsonProperty("orchestrator_details")] + [STJS.JsonPropertyName("orchestrator_details")] + public AgreementOrchestratorDetails OrchestratorDetails { get; set; } + + /// + /// Details about the seller. + /// + [JsonProperty("seller_details")] + [STJS.JsonPropertyName("seller_details")] + public AgreementSellerDetails SellerDetails { get; set; } + + /// + /// The current status of the agreement. + /// One of: confirmed, initiated, partially_confirmed, or + /// terminated. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Timestamps of key status transitions for the agreement. + /// + [JsonProperty("status_transitions")] + [STJS.JsonPropertyName("status_transitions")] + public AgreementStatusTransitions StatusTransitions { get; set; } + + /// + /// The party that terminated the agreement, if applicable. + /// One of: orchestrator, or seller. + /// + [JsonProperty("terminated_by")] + [STJS.JsonPropertyName("terminated_by")] + public string TerminatedBy { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/OrchestratedCommerce/Agreements/AgreementOrchestratorDetails.cs b/src/Stripe.net/Entities/V2/OrchestratedCommerce/Agreements/AgreementOrchestratorDetails.cs new file mode 100644 index 0000000000..f2fb7f5f5e --- /dev/null +++ b/src/Stripe.net/Entities/V2/OrchestratedCommerce/Agreements/AgreementOrchestratorDetails.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.OrchestratedCommerce +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AgreementOrchestratorDetails : StripeEntity + { + /// + /// The name of the orchestrator. This can be the name of the agent or the name of the + /// business. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// The Network ID of the orchestrator. + /// + [JsonProperty("network_business_profile")] + [STJS.JsonPropertyName("network_business_profile")] + public string NetworkBusinessProfile { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/OrchestratedCommerce/Agreements/AgreementSellerDetails.cs b/src/Stripe.net/Entities/V2/OrchestratedCommerce/Agreements/AgreementSellerDetails.cs new file mode 100644 index 0000000000..8ff8340ea0 --- /dev/null +++ b/src/Stripe.net/Entities/V2/OrchestratedCommerce/Agreements/AgreementSellerDetails.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.OrchestratedCommerce +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AgreementSellerDetails : StripeEntity + { + /// + /// The Network ID of the seller. + /// + [JsonProperty("network_business_profile")] + [STJS.JsonPropertyName("network_business_profile")] + public string NetworkBusinessProfile { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/OrchestratedCommerce/Agreements/AgreementStatusTransitions.cs b/src/Stripe.net/Entities/V2/OrchestratedCommerce/Agreements/AgreementStatusTransitions.cs new file mode 100644 index 0000000000..403b9a9dad --- /dev/null +++ b/src/Stripe.net/Entities/V2/OrchestratedCommerce/Agreements/AgreementStatusTransitions.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.OrchestratedCommerce +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AgreementStatusTransitions : StripeEntity + { + /// + /// The time at which the orchestrator confirmed the agreement. + /// + [JsonProperty("orchestrator_confirmed_at")] + [STJS.JsonPropertyName("orchestrator_confirmed_at")] + public DateTime? OrchestratorConfirmedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The time at which the seller confirmed the agreement. + /// + [JsonProperty("seller_confirmed_at")] + [STJS.JsonPropertyName("seller_confirmed_at")] + public DateTime? SellerConfirmedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The time at which the agreement was terminated. + /// + [JsonProperty("terminated_at")] + [STJS.JsonPropertyName("terminated_at")] + public DateTime? TerminatedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPayment.cs b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPayment.cs index 801f8027df..ea47392447 100644 --- a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPayment.cs +++ b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPayment.cs @@ -44,6 +44,13 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe [STJS.JsonPropertyName("amount_capturable")] public V2.Amount AmountCapturable { get; set; } + /// + /// Provides industry-specific information about the amount. + /// + [JsonProperty("amount_details")] + [STJS.JsonPropertyName("amount_details")] + public OffSessionPaymentAmountDetails AmountDetails { get; set; } + /// /// The “presentment amount” to be collected from the customer. /// @@ -88,6 +95,13 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe [STJS.JsonPropertyName("customer")] public string Customer { get; set; } + /// + /// An arbitrary string attached to the object. Often useful for displaying to users. + /// + [JsonProperty("description")] + [STJS.JsonPropertyName("description")] + public string Description { get; set; } + /// /// The reason why the OffSessionPayment failed. /// One of: authorization_expired, exceeded_retry_window, @@ -137,6 +151,13 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe [STJS.JsonPropertyName("on_behalf_of")] public string OnBehalfOf { get; set; } + /// + /// Provides industry-specific information about the payment. + /// + [JsonProperty("payment_details")] + [STJS.JsonPropertyName("payment_details")] + public OffSessionPaymentPaymentDetails PaymentDetails { get; set; } + /// /// ID of the payment method used in this OffSessionPayment. /// diff --git a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountDetails.cs b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountDetails.cs new file mode 100644 index 0000000000..eac7e7b1bc --- /dev/null +++ b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountDetails.cs @@ -0,0 +1,52 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class OffSessionPaymentAmountDetails : StripeEntity + { + /// + /// The amount the total transaction was discounted for. + /// + [JsonProperty("discount_amount")] + [STJS.JsonPropertyName("discount_amount")] + public long? DiscountAmount { get; set; } + + /// + /// Contains information about the error that occurred when validating the current amount + /// details. This field populates when the amount details has a validation error that wasn't + /// enforced because the enforce_arithmetic_validation + /// parameter was set to false. + /// + [JsonProperty("error")] + [STJS.JsonPropertyName("error")] + public OffSessionPaymentAmountDetailsError Error { get; set; } + + /// + /// A list of line items, each containing information about a product in the PaymentIntent. + /// There is a maximum of 100 line items. + /// + [JsonProperty("line_items")] + [STJS.JsonPropertyName("line_items")] + public List LineItems { get; set; } + + /// + /// Contains information about the shipping portion of the amount. + /// + [JsonProperty("shipping")] + [STJS.JsonPropertyName("shipping")] + public OffSessionPaymentAmountDetailsShipping Shipping { get; set; } + + /// + /// Contains information about the tax portion of the amount. + /// + [JsonProperty("tax")] + [STJS.JsonPropertyName("tax")] + public OffSessionPaymentAmountDetailsTax Tax { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountDetailsError.cs b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountDetailsError.cs new file mode 100644 index 0000000000..1f7fae8159 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountDetailsError.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class OffSessionPaymentAmountDetailsError : StripeEntity + { + /// + /// The code of the error that occurred when validating the current amount details. + /// One of: amount_details_amount_mismatch, or + /// amount_details_amount_greater_than_tax_shipping_discount. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// A message providing more details about the error. + /// + [JsonProperty("message")] + [STJS.JsonPropertyName("message")] + public string Message { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountDetailsLineItem.cs b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountDetailsLineItem.cs new file mode 100644 index 0000000000..78d52488e4 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountDetailsLineItem.cs @@ -0,0 +1,60 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class OffSessionPaymentAmountDetailsLineItem : StripeEntity + { + /// + /// The amount an item was discounted for. Positive integer. + /// + [JsonProperty("discount_amount")] + [STJS.JsonPropertyName("discount_amount")] + public long? DiscountAmount { get; set; } + + /// + /// Unique identifier of the product. At most 12 characters long. + /// + [JsonProperty("product_code")] + [STJS.JsonPropertyName("product_code")] + public string ProductCode { get; set; } + + /// + /// Name of the product. At most 100 characters long. + /// + [JsonProperty("product_name")] + [STJS.JsonPropertyName("product_name")] + public string ProductName { get; set; } + + /// + /// Number of items of the product. Positive integer. + /// + [JsonProperty("quantity")] + [STJS.JsonPropertyName("quantity")] + public long Quantity { get; set; } + + /// + /// Contains information about the tax on the item. + /// + [JsonProperty("tax")] + [STJS.JsonPropertyName("tax")] + public OffSessionPaymentAmountDetailsLineItemTax Tax { get; set; } + + /// + /// Cost of the product. Non-negative integer. + /// + [JsonProperty("unit_cost")] + [STJS.JsonPropertyName("unit_cost")] + public long UnitCost { get; set; } + + /// + /// Unit of measure for the product. At most 12 characters long. + /// + [JsonProperty("unit_of_measure")] + [STJS.JsonPropertyName("unit_of_measure")] + public string UnitOfMeasure { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountDetailsLineItemTax.cs b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountDetailsLineItemTax.cs new file mode 100644 index 0000000000..bb801a0c1b --- /dev/null +++ b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountDetailsLineItemTax.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class OffSessionPaymentAmountDetailsLineItemTax : StripeEntity + { + /// + /// Total portion of the amount that is for tax. + /// + [JsonProperty("total_tax_amount")] + [STJS.JsonPropertyName("total_tax_amount")] + public long? TotalTaxAmount { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountDetailsShipping.cs b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountDetailsShipping.cs new file mode 100644 index 0000000000..955b3eb6ac --- /dev/null +++ b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountDetailsShipping.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class OffSessionPaymentAmountDetailsShipping : StripeEntity + { + /// + /// Portion of the amount that is for shipping. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public long? Amount { get; set; } + + /// + /// The postal code that represents the shipping source. + /// + [JsonProperty("from_postal_code")] + [STJS.JsonPropertyName("from_postal_code")] + public string FromPostalCode { get; set; } + + /// + /// The postal code that represents the shipping destination. + /// + [JsonProperty("to_postal_code")] + [STJS.JsonPropertyName("to_postal_code")] + public string ToPostalCode { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountDetailsTax.cs b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountDetailsTax.cs new file mode 100644 index 0000000000..531dc83fd6 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountDetailsTax.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class OffSessionPaymentAmountDetailsTax : StripeEntity + { + /// + /// Total portion of the amount that is for tax. + /// + [JsonProperty("total_tax_amount")] + [STJS.JsonPropertyName("total_tax_amount")] + public long? TotalTaxAmount { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentPaymentDetails.cs b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentPaymentDetails.cs new file mode 100644 index 0000000000..fe1a4f5f32 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentPaymentDetails.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class OffSessionPaymentPaymentDetails : StripeEntity + { + /// + /// A unique value to identify the customer. This field is applicable only for card + /// payments. For card payments, this field is truncated to 25 alphanumeric characters, + /// excluding spaces, before being sent to card networks. + /// + [JsonProperty("customer_reference")] + [STJS.JsonPropertyName("customer_reference")] + public string CustomerReference { get; set; } + + /// + /// A unique value assigned by the business to identify the transaction. Required for L2 and + /// L3 rates. For Cards, this field is truncated to 25 alphanumeric characters, excluding + /// spaces, before being sent to card networks. + /// + [JsonProperty("order_reference")] + [STJS.JsonPropertyName("order_reference")] + public string OrderReference { get; set; } + } +} diff --git a/src/Stripe.net/Events/V1AccountApplicationAuthorizedEvent.cs b/src/Stripe.net/Events/V1AccountApplicationAuthorizedEvent.cs new file mode 100644 index 0000000000..5920b978e0 --- /dev/null +++ b/src/Stripe.net/Events/V1AccountApplicationAuthorizedEvent.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + + /// + /// Occurs whenever a user authorizes an application. Sent to the related application only. + /// + public class V1AccountApplicationAuthorizedEvent : V2.Core.Event + { + } +} diff --git a/src/Stripe.net/Events/V1AccountApplicationAuthorizedEventNotification.cs b/src/Stripe.net/Events/V1AccountApplicationAuthorizedEventNotification.cs new file mode 100644 index 0000000000..100f8628c9 --- /dev/null +++ b/src/Stripe.net/Events/V1AccountApplicationAuthorizedEventNotification.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Stripe.V2; + + /// + /// Occurs whenever a user authorizes an application. Sent to the related application only. + /// + public class V1AccountApplicationAuthorizedEventNotification : V2.Core.EventNotification + { + public V1AccountApplicationAuthorizedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1AccountApplicationDeauthorizedEvent.cs b/src/Stripe.net/Events/V1AccountApplicationDeauthorizedEvent.cs new file mode 100644 index 0000000000..0811a27a75 --- /dev/null +++ b/src/Stripe.net/Events/V1AccountApplicationDeauthorizedEvent.cs @@ -0,0 +1,13 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + + /// + /// Occurs whenever a user deauthorizes an application. Sent to the related application + /// only. + /// + public class V1AccountApplicationDeauthorizedEvent : V2.Core.Event + { + } +} diff --git a/src/Stripe.net/Events/V1AccountApplicationDeauthorizedEventNotification.cs b/src/Stripe.net/Events/V1AccountApplicationDeauthorizedEventNotification.cs new file mode 100644 index 0000000000..76cf183ece --- /dev/null +++ b/src/Stripe.net/Events/V1AccountApplicationDeauthorizedEventNotification.cs @@ -0,0 +1,23 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Stripe.V2; + + /// + /// Occurs whenever a user deauthorizes an application. Sent to the related application + /// only. + /// + public class V1AccountApplicationDeauthorizedEventNotification : V2.Core.EventNotification + { + public V1AccountApplicationDeauthorizedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1AccountExternalAccountCreatedEvent.cs b/src/Stripe.net/Events/V1AccountExternalAccountCreatedEvent.cs new file mode 100644 index 0000000000..43a38f3768 --- /dev/null +++ b/src/Stripe.net/Events/V1AccountExternalAccountCreatedEvent.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + + /// + /// Occurs whenever an external account is created. + /// + public class V1AccountExternalAccountCreatedEvent : V2.Core.Event + { + } +} diff --git a/src/Stripe.net/Events/V1AccountExternalAccountCreatedEventNotification.cs b/src/Stripe.net/Events/V1AccountExternalAccountCreatedEventNotification.cs new file mode 100644 index 0000000000..7818c5b0de --- /dev/null +++ b/src/Stripe.net/Events/V1AccountExternalAccountCreatedEventNotification.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Stripe.V2; + + /// + /// Occurs whenever an external account is created. + /// + public class V1AccountExternalAccountCreatedEventNotification : V2.Core.EventNotification + { + public V1AccountExternalAccountCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1AccountExternalAccountDeletedEvent.cs b/src/Stripe.net/Events/V1AccountExternalAccountDeletedEvent.cs new file mode 100644 index 0000000000..fb3bd21983 --- /dev/null +++ b/src/Stripe.net/Events/V1AccountExternalAccountDeletedEvent.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + + /// + /// Occurs whenever an external account is deleted. + /// + public class V1AccountExternalAccountDeletedEvent : V2.Core.Event + { + } +} diff --git a/src/Stripe.net/Events/V1AccountExternalAccountDeletedEventNotification.cs b/src/Stripe.net/Events/V1AccountExternalAccountDeletedEventNotification.cs new file mode 100644 index 0000000000..d463285d41 --- /dev/null +++ b/src/Stripe.net/Events/V1AccountExternalAccountDeletedEventNotification.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Stripe.V2; + + /// + /// Occurs whenever an external account is deleted. + /// + public class V1AccountExternalAccountDeletedEventNotification : V2.Core.EventNotification + { + public V1AccountExternalAccountDeletedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1AccountExternalAccountUpdatedEvent.cs b/src/Stripe.net/Events/V1AccountExternalAccountUpdatedEvent.cs new file mode 100644 index 0000000000..57d9aaeff9 --- /dev/null +++ b/src/Stripe.net/Events/V1AccountExternalAccountUpdatedEvent.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + + /// + /// Occurs whenever an external account is updated. + /// + public class V1AccountExternalAccountUpdatedEvent : V2.Core.Event + { + } +} diff --git a/src/Stripe.net/Events/V1AccountExternalAccountUpdatedEventNotification.cs b/src/Stripe.net/Events/V1AccountExternalAccountUpdatedEventNotification.cs new file mode 100644 index 0000000000..8d6cf5d3cd --- /dev/null +++ b/src/Stripe.net/Events/V1AccountExternalAccountUpdatedEventNotification.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Stripe.V2; + + /// + /// Occurs whenever an external account is updated. + /// + public class V1AccountExternalAccountUpdatedEventNotification : V2.Core.EventNotification + { + public V1AccountExternalAccountUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1AccountUpdatedEvent.cs b/src/Stripe.net/Events/V1AccountUpdatedEvent.cs new file mode 100644 index 0000000000..c16d3e2378 --- /dev/null +++ b/src/Stripe.net/Events/V1AccountUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an account status or property has changed. + /// + public class V1AccountUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Account FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1AccountUpdatedEventNotification.cs b/src/Stripe.net/Events/V1AccountUpdatedEventNotification.cs new file mode 100644 index 0000000000..de73fd9c08 --- /dev/null +++ b/src/Stripe.net/Events/V1AccountUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an account status or property has changed. + /// + public class V1AccountUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Account FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1AccountUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ApplicationFeeCreatedEvent.cs b/src/Stripe.net/Events/V1ApplicationFeeCreatedEvent.cs new file mode 100644 index 0000000000..78dae2fb8b --- /dev/null +++ b/src/Stripe.net/Events/V1ApplicationFeeCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an application fee is created on a charge. + /// + public class V1ApplicationFeeCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public ApplicationFee FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ApplicationFeeCreatedEventNotification.cs b/src/Stripe.net/Events/V1ApplicationFeeCreatedEventNotification.cs new file mode 100644 index 0000000000..2e353ec344 --- /dev/null +++ b/src/Stripe.net/Events/V1ApplicationFeeCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an application fee is created on a charge. + /// + public class V1ApplicationFeeCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public ApplicationFee FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ApplicationFeeCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ApplicationFeeRefundUpdatedEvent.cs b/src/Stripe.net/Events/V1ApplicationFeeRefundUpdatedEvent.cs new file mode 100644 index 0000000000..9972a7b534 --- /dev/null +++ b/src/Stripe.net/Events/V1ApplicationFeeRefundUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an application fee refund is updated. + /// + public class V1ApplicationFeeRefundUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public ApplicationFeeRefund FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ApplicationFeeRefundUpdatedEventNotification.cs b/src/Stripe.net/Events/V1ApplicationFeeRefundUpdatedEventNotification.cs new file mode 100644 index 0000000000..3e330e8c4d --- /dev/null +++ b/src/Stripe.net/Events/V1ApplicationFeeRefundUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an application fee refund is updated. + /// + public class V1ApplicationFeeRefundUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public ApplicationFeeRefund FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ApplicationFeeRefundUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ApplicationFeeRefundedEvent.cs b/src/Stripe.net/Events/V1ApplicationFeeRefundedEvent.cs new file mode 100644 index 0000000000..1c64ea71a1 --- /dev/null +++ b/src/Stripe.net/Events/V1ApplicationFeeRefundedEvent.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an application fee is refunded, whether from refunding a charge or from + /// refunding the application fee + /// directly. This includes partial refunds. + /// + public class V1ApplicationFeeRefundedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public ApplicationFee FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ApplicationFeeRefundedEventNotification.cs b/src/Stripe.net/Events/V1ApplicationFeeRefundedEventNotification.cs new file mode 100644 index 0000000000..0a7f851ea1 --- /dev/null +++ b/src/Stripe.net/Events/V1ApplicationFeeRefundedEventNotification.cs @@ -0,0 +1,51 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an application fee is refunded, whether from refunding a charge or from + /// refunding the application fee + /// directly. This includes partial refunds. + /// + public class V1ApplicationFeeRefundedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public ApplicationFee FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ApplicationFeeRefundedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1BalanceAvailableEvent.cs b/src/Stripe.net/Events/V1BalanceAvailableEvent.cs new file mode 100644 index 0000000000..8394f379fa --- /dev/null +++ b/src/Stripe.net/Events/V1BalanceAvailableEvent.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever your Stripe balance has been updated (e.g., when a charge is available + /// to be paid out). By default, Stripe automatically transfers funds in your balance to + /// your bank account on a daily basis. This event is not fired for negative transactions. + /// + public class V1BalanceAvailableEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Balance FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1BalanceAvailableEventNotification.cs b/src/Stripe.net/Events/V1BalanceAvailableEventNotification.cs new file mode 100644 index 0000000000..a90c0a0b0e --- /dev/null +++ b/src/Stripe.net/Events/V1BalanceAvailableEventNotification.cs @@ -0,0 +1,51 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever your Stripe balance has been updated (e.g., when a charge is available + /// to be paid out). By default, Stripe automatically transfers funds in your balance to + /// your bank account on a daily basis. This event is not fired for negative transactions. + /// + public class V1BalanceAvailableEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Balance FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1BalanceAvailableEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1BillingAlertTriggeredEvent.cs b/src/Stripe.net/Events/V1BillingAlertTriggeredEvent.cs new file mode 100644 index 0000000000..14581c4b6e --- /dev/null +++ b/src/Stripe.net/Events/V1BillingAlertTriggeredEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever your custom alert threshold is met. + /// + public class V1BillingAlertTriggeredEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Billing.Alert FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1BillingAlertTriggeredEventNotification.cs b/src/Stripe.net/Events/V1BillingAlertTriggeredEventNotification.cs new file mode 100644 index 0000000000..467fbe5e4b --- /dev/null +++ b/src/Stripe.net/Events/V1BillingAlertTriggeredEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever your custom alert threshold is met. + /// + public class V1BillingAlertTriggeredEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Billing.Alert FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1BillingAlertTriggeredEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1BillingMeterErrorReportTriggeredEventDataReasonErrorType.cs b/src/Stripe.net/Events/V1BillingMeterErrorReportTriggeredEventDataReasonErrorType.cs index 40fbb0ac2b..050bb3f62b 100644 --- a/src/Stripe.net/Events/V1BillingMeterErrorReportTriggeredEventDataReasonErrorType.cs +++ b/src/Stripe.net/Events/V1BillingMeterErrorReportTriggeredEventDataReasonErrorType.cs @@ -13,8 +13,9 @@ public class V1BillingMeterErrorReportTriggeredEventDataReasonErrorType : Stripe /// Open Enum. /// One of: archived_meter, meter_event_customer_not_found, /// meter_event_dimension_count_too_high, meter_event_invalid_value, - /// meter_event_no_customer_defined, missing_dimension_payload_keys, - /// no_meter, timestamp_in_future, or timestamp_too_far_in_past. + /// meter_event_no_customer_defined, meter_event_value_too_many_digits, + /// missing_dimension_payload_keys, no_meter, timestamp_in_future, or + /// timestamp_too_far_in_past. /// [JsonProperty("code")] [STJS.JsonPropertyName("code")] diff --git a/src/Stripe.net/Events/V1BillingMeterNoMeterFoundEventDataReasonErrorType.cs b/src/Stripe.net/Events/V1BillingMeterNoMeterFoundEventDataReasonErrorType.cs index f3d309fee4..bc52c26423 100644 --- a/src/Stripe.net/Events/V1BillingMeterNoMeterFoundEventDataReasonErrorType.cs +++ b/src/Stripe.net/Events/V1BillingMeterNoMeterFoundEventDataReasonErrorType.cs @@ -13,8 +13,9 @@ public class V1BillingMeterNoMeterFoundEventDataReasonErrorType : StripeEntityarchived_meter, meter_event_customer_not_found, /// meter_event_dimension_count_too_high, meter_event_invalid_value, - /// meter_event_no_customer_defined, missing_dimension_payload_keys, - /// no_meter, timestamp_in_future, or timestamp_too_far_in_past. + /// meter_event_no_customer_defined, meter_event_value_too_many_digits, + /// missing_dimension_payload_keys, no_meter, timestamp_in_future, or + /// timestamp_too_far_in_past. /// [JsonProperty("code")] [STJS.JsonPropertyName("code")] diff --git a/src/Stripe.net/Events/V1BillingPortalConfigurationCreatedEvent.cs b/src/Stripe.net/Events/V1BillingPortalConfigurationCreatedEvent.cs new file mode 100644 index 0000000000..8b53873606 --- /dev/null +++ b/src/Stripe.net/Events/V1BillingPortalConfigurationCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a portal configuration is created. + /// + public class V1BillingPortalConfigurationCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public BillingPortal.Configuration FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1BillingPortalConfigurationCreatedEventNotification.cs b/src/Stripe.net/Events/V1BillingPortalConfigurationCreatedEventNotification.cs new file mode 100644 index 0000000000..a7989e28b7 --- /dev/null +++ b/src/Stripe.net/Events/V1BillingPortalConfigurationCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a portal configuration is created. + /// + public class V1BillingPortalConfigurationCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public BillingPortal.Configuration FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1BillingPortalConfigurationCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1BillingPortalConfigurationUpdatedEvent.cs b/src/Stripe.net/Events/V1BillingPortalConfigurationUpdatedEvent.cs new file mode 100644 index 0000000000..969c7fcbdc --- /dev/null +++ b/src/Stripe.net/Events/V1BillingPortalConfigurationUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a portal configuration is updated. + /// + public class V1BillingPortalConfigurationUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public BillingPortal.Configuration FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1BillingPortalConfigurationUpdatedEventNotification.cs b/src/Stripe.net/Events/V1BillingPortalConfigurationUpdatedEventNotification.cs new file mode 100644 index 0000000000..cf4adfb3c9 --- /dev/null +++ b/src/Stripe.net/Events/V1BillingPortalConfigurationUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a portal configuration is updated. + /// + public class V1BillingPortalConfigurationUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public BillingPortal.Configuration FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1BillingPortalConfigurationUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1BillingPortalSessionCreatedEvent.cs b/src/Stripe.net/Events/V1BillingPortalSessionCreatedEvent.cs new file mode 100644 index 0000000000..29f213dae2 --- /dev/null +++ b/src/Stripe.net/Events/V1BillingPortalSessionCreatedEvent.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + + /// + /// Occurs whenever a portal session is created. + /// + public class V1BillingPortalSessionCreatedEvent : V2.Core.Event + { + } +} diff --git a/src/Stripe.net/Events/V1BillingPortalSessionCreatedEventNotification.cs b/src/Stripe.net/Events/V1BillingPortalSessionCreatedEventNotification.cs new file mode 100644 index 0000000000..bba59c0eb7 --- /dev/null +++ b/src/Stripe.net/Events/V1BillingPortalSessionCreatedEventNotification.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Stripe.V2; + + /// + /// Occurs whenever a portal session is created. + /// + public class V1BillingPortalSessionCreatedEventNotification : V2.Core.EventNotification + { + public V1BillingPortalSessionCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CapabilityUpdatedEvent.cs b/src/Stripe.net/Events/V1CapabilityUpdatedEvent.cs new file mode 100644 index 0000000000..b3273d64a7 --- /dev/null +++ b/src/Stripe.net/Events/V1CapabilityUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a capability has new requirements or a new status. + /// + public class V1CapabilityUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Capability FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CapabilityUpdatedEventNotification.cs b/src/Stripe.net/Events/V1CapabilityUpdatedEventNotification.cs new file mode 100644 index 0000000000..7eabd57a1f --- /dev/null +++ b/src/Stripe.net/Events/V1CapabilityUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a capability has new requirements or a new status. + /// + public class V1CapabilityUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Capability FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CapabilityUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CashBalanceFundsAvailableEvent.cs b/src/Stripe.net/Events/V1CashBalanceFundsAvailableEvent.cs new file mode 100644 index 0000000000..52a1d2cba3 --- /dev/null +++ b/src/Stripe.net/Events/V1CashBalanceFundsAvailableEvent.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever there is a positive remaining cash balance after Stripe automatically + /// reconciles new funds into the cash balance. If you enabled manual reconciliation, this + /// webhook will fire whenever there are new funds into the cash balance. + /// + public class V1CashBalanceFundsAvailableEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public CashBalance FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CashBalanceFundsAvailableEventNotification.cs b/src/Stripe.net/Events/V1CashBalanceFundsAvailableEventNotification.cs new file mode 100644 index 0000000000..4259f5c4ef --- /dev/null +++ b/src/Stripe.net/Events/V1CashBalanceFundsAvailableEventNotification.cs @@ -0,0 +1,51 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever there is a positive remaining cash balance after Stripe automatically + /// reconciles new funds into the cash balance. If you enabled manual reconciliation, this + /// webhook will fire whenever there are new funds into the cash balance. + /// + public class V1CashBalanceFundsAvailableEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public CashBalance FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CashBalanceFundsAvailableEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeCapturedEvent.cs b/src/Stripe.net/Events/V1ChargeCapturedEvent.cs new file mode 100644 index 0000000000..dbcf4b8f3c --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeCapturedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a previously uncaptured charge is captured. + /// + public class V1ChargeCapturedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Charge FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeCapturedEventNotification.cs b/src/Stripe.net/Events/V1ChargeCapturedEventNotification.cs new file mode 100644 index 0000000000..2e76b8a9bc --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeCapturedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a previously uncaptured charge is captured. + /// + public class V1ChargeCapturedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Charge FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ChargeCapturedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeDisputeClosedEvent.cs b/src/Stripe.net/Events/V1ChargeDisputeClosedEvent.cs new file mode 100644 index 0000000000..8cdae69939 --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeDisputeClosedEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a dispute is closed and the dispute status changes to lost, + /// warning_closed, or won. + /// + public class V1ChargeDisputeClosedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Dispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeDisputeClosedEventNotification.cs b/src/Stripe.net/Events/V1ChargeDisputeClosedEventNotification.cs new file mode 100644 index 0000000000..5a67f6a616 --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeDisputeClosedEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a dispute is closed and the dispute status changes to lost, + /// warning_closed, or won. + /// + public class V1ChargeDisputeClosedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Dispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ChargeDisputeClosedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeDisputeCreatedEvent.cs b/src/Stripe.net/Events/V1ChargeDisputeCreatedEvent.cs new file mode 100644 index 0000000000..fb007a5b6a --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeDisputeCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a customer disputes a charge with their bank. + /// + public class V1ChargeDisputeCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Dispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeDisputeCreatedEventNotification.cs b/src/Stripe.net/Events/V1ChargeDisputeCreatedEventNotification.cs new file mode 100644 index 0000000000..d4a50ae847 --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeDisputeCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a customer disputes a charge with their bank. + /// + public class V1ChargeDisputeCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Dispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ChargeDisputeCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeDisputeFundsReinstatedEvent.cs b/src/Stripe.net/Events/V1ChargeDisputeFundsReinstatedEvent.cs new file mode 100644 index 0000000000..cc6350a4c1 --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeDisputeFundsReinstatedEvent.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when funds are reinstated to your account after a dispute is closed. This + /// includes partially + /// refunded payments. + /// + public class V1ChargeDisputeFundsReinstatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Dispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeDisputeFundsReinstatedEventNotification.cs b/src/Stripe.net/Events/V1ChargeDisputeFundsReinstatedEventNotification.cs new file mode 100644 index 0000000000..4f828b385e --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeDisputeFundsReinstatedEventNotification.cs @@ -0,0 +1,52 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when funds are reinstated to your account after a dispute is closed. This + /// includes partially + /// refunded payments. + /// + public class V1ChargeDisputeFundsReinstatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Dispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ChargeDisputeFundsReinstatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeDisputeFundsWithdrawnEvent.cs b/src/Stripe.net/Events/V1ChargeDisputeFundsWithdrawnEvent.cs new file mode 100644 index 0000000000..7716991bd8 --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeDisputeFundsWithdrawnEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when funds are removed from your account due to a dispute. + /// + public class V1ChargeDisputeFundsWithdrawnEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Dispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeDisputeFundsWithdrawnEventNotification.cs b/src/Stripe.net/Events/V1ChargeDisputeFundsWithdrawnEventNotification.cs new file mode 100644 index 0000000000..0421f543f3 --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeDisputeFundsWithdrawnEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when funds are removed from your account due to a dispute. + /// + public class V1ChargeDisputeFundsWithdrawnEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Dispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ChargeDisputeFundsWithdrawnEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeDisputeUpdatedEvent.cs b/src/Stripe.net/Events/V1ChargeDisputeUpdatedEvent.cs new file mode 100644 index 0000000000..b7cfa4a270 --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeDisputeUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when the dispute is updated (usually with evidence). + /// + public class V1ChargeDisputeUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Dispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeDisputeUpdatedEventNotification.cs b/src/Stripe.net/Events/V1ChargeDisputeUpdatedEventNotification.cs new file mode 100644 index 0000000000..c4ea5b8ede --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeDisputeUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when the dispute is updated (usually with evidence). + /// + public class V1ChargeDisputeUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Dispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ChargeDisputeUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeExpiredEvent.cs b/src/Stripe.net/Events/V1ChargeExpiredEvent.cs new file mode 100644 index 0000000000..eca4e94b34 --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeExpiredEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an uncaptured charge expires. + /// + public class V1ChargeExpiredEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Charge FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeExpiredEventNotification.cs b/src/Stripe.net/Events/V1ChargeExpiredEventNotification.cs new file mode 100644 index 0000000000..c65408a4da --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeExpiredEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an uncaptured charge expires. + /// + public class V1ChargeExpiredEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Charge FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ChargeExpiredEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeFailedEvent.cs b/src/Stripe.net/Events/V1ChargeFailedEvent.cs new file mode 100644 index 0000000000..d52103e83c --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeFailedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a failed charge attempt occurs. + /// + public class V1ChargeFailedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Charge FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeFailedEventNotification.cs b/src/Stripe.net/Events/V1ChargeFailedEventNotification.cs new file mode 100644 index 0000000000..7762c45f2d --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeFailedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a failed charge attempt occurs. + /// + public class V1ChargeFailedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Charge FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ChargeFailedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargePendingEvent.cs b/src/Stripe.net/Events/V1ChargePendingEvent.cs new file mode 100644 index 0000000000..cd665aa27e --- /dev/null +++ b/src/Stripe.net/Events/V1ChargePendingEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a pending charge is created. + /// + public class V1ChargePendingEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Charge FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargePendingEventNotification.cs b/src/Stripe.net/Events/V1ChargePendingEventNotification.cs new file mode 100644 index 0000000000..1b4cc36b60 --- /dev/null +++ b/src/Stripe.net/Events/V1ChargePendingEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a pending charge is created. + /// + public class V1ChargePendingEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Charge FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ChargePendingEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeRefundUpdatedEvent.cs b/src/Stripe.net/Events/V1ChargeRefundUpdatedEvent.cs new file mode 100644 index 0000000000..03c6e98d70 --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeRefundUpdatedEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a refund is updated on selected payment methods. For updates on all + /// refunds, listen to refund.updated instead. + /// + public class V1ChargeRefundUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Refund FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeRefundUpdatedEventNotification.cs b/src/Stripe.net/Events/V1ChargeRefundUpdatedEventNotification.cs new file mode 100644 index 0000000000..66fc38adb1 --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeRefundUpdatedEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a refund is updated on selected payment methods. For updates on all + /// refunds, listen to refund.updated instead. + /// + public class V1ChargeRefundUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Refund FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ChargeRefundUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeRefundedEvent.cs b/src/Stripe.net/Events/V1ChargeRefundedEvent.cs new file mode 100644 index 0000000000..045151b307 --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeRefundedEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a charge is refunded, including partial refunds. Listen to + /// refund.created for information about the refund. + /// + public class V1ChargeRefundedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Charge FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeRefundedEventNotification.cs b/src/Stripe.net/Events/V1ChargeRefundedEventNotification.cs new file mode 100644 index 0000000000..83e3aa3e9d --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeRefundedEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a charge is refunded, including partial refunds. Listen to + /// refund.created for information about the refund. + /// + public class V1ChargeRefundedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Charge FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ChargeRefundedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeSucceededEvent.cs b/src/Stripe.net/Events/V1ChargeSucceededEvent.cs new file mode 100644 index 0000000000..a74e252c19 --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeSucceededEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a charge is successful. + /// + public class V1ChargeSucceededEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Charge FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeSucceededEventNotification.cs b/src/Stripe.net/Events/V1ChargeSucceededEventNotification.cs new file mode 100644 index 0000000000..7ff837bb62 --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeSucceededEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a charge is successful. + /// + public class V1ChargeSucceededEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Charge FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ChargeSucceededEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeUpdatedEvent.cs b/src/Stripe.net/Events/V1ChargeUpdatedEvent.cs new file mode 100644 index 0000000000..ae54899afc --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeUpdatedEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a charge description or metadata is updated, or upon an asynchronous + /// capture. + /// + public class V1ChargeUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Charge FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ChargeUpdatedEventNotification.cs b/src/Stripe.net/Events/V1ChargeUpdatedEventNotification.cs new file mode 100644 index 0000000000..9f62b78648 --- /dev/null +++ b/src/Stripe.net/Events/V1ChargeUpdatedEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a charge description or metadata is updated, or upon an asynchronous + /// capture. + /// + public class V1ChargeUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Charge FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ChargeUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CheckoutSessionAsyncPaymentFailedEvent.cs b/src/Stripe.net/Events/V1CheckoutSessionAsyncPaymentFailedEvent.cs new file mode 100644 index 0000000000..c0a82a19ad --- /dev/null +++ b/src/Stripe.net/Events/V1CheckoutSessionAsyncPaymentFailedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a payment intent using a delayed payment method fails. + /// + public class V1CheckoutSessionAsyncPaymentFailedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Checkout.Session FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CheckoutSessionAsyncPaymentFailedEventNotification.cs b/src/Stripe.net/Events/V1CheckoutSessionAsyncPaymentFailedEventNotification.cs new file mode 100644 index 0000000000..81b748fb96 --- /dev/null +++ b/src/Stripe.net/Events/V1CheckoutSessionAsyncPaymentFailedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a payment intent using a delayed payment method fails. + /// + public class V1CheckoutSessionAsyncPaymentFailedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Checkout.Session FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CheckoutSessionAsyncPaymentFailedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CheckoutSessionAsyncPaymentSucceededEvent.cs b/src/Stripe.net/Events/V1CheckoutSessionAsyncPaymentSucceededEvent.cs new file mode 100644 index 0000000000..ad95939073 --- /dev/null +++ b/src/Stripe.net/Events/V1CheckoutSessionAsyncPaymentSucceededEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a payment intent using a delayed payment method finally succeeds. + /// + public class V1CheckoutSessionAsyncPaymentSucceededEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Checkout.Session FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CheckoutSessionAsyncPaymentSucceededEventNotification.cs b/src/Stripe.net/Events/V1CheckoutSessionAsyncPaymentSucceededEventNotification.cs new file mode 100644 index 0000000000..96f9e71a6a --- /dev/null +++ b/src/Stripe.net/Events/V1CheckoutSessionAsyncPaymentSucceededEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a payment intent using a delayed payment method finally succeeds. + /// + public class V1CheckoutSessionAsyncPaymentSucceededEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Checkout.Session FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CheckoutSessionAsyncPaymentSucceededEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CheckoutSessionCompletedEvent.cs b/src/Stripe.net/Events/V1CheckoutSessionCompletedEvent.cs new file mode 100644 index 0000000000..d214d13181 --- /dev/null +++ b/src/Stripe.net/Events/V1CheckoutSessionCompletedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Checkout Session has been successfully completed. + /// + public class V1CheckoutSessionCompletedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Checkout.Session FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CheckoutSessionCompletedEventNotification.cs b/src/Stripe.net/Events/V1CheckoutSessionCompletedEventNotification.cs new file mode 100644 index 0000000000..49674eac11 --- /dev/null +++ b/src/Stripe.net/Events/V1CheckoutSessionCompletedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Checkout Session has been successfully completed. + /// + public class V1CheckoutSessionCompletedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Checkout.Session FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CheckoutSessionCompletedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CheckoutSessionExpiredEvent.cs b/src/Stripe.net/Events/V1CheckoutSessionExpiredEvent.cs new file mode 100644 index 0000000000..8344014844 --- /dev/null +++ b/src/Stripe.net/Events/V1CheckoutSessionExpiredEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Checkout Session is expired. + /// + public class V1CheckoutSessionExpiredEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Checkout.Session FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CheckoutSessionExpiredEventNotification.cs b/src/Stripe.net/Events/V1CheckoutSessionExpiredEventNotification.cs new file mode 100644 index 0000000000..d56cdcf8b9 --- /dev/null +++ b/src/Stripe.net/Events/V1CheckoutSessionExpiredEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Checkout Session is expired. + /// + public class V1CheckoutSessionExpiredEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Checkout.Session FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CheckoutSessionExpiredEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ClimateOrderCanceledEvent.cs b/src/Stripe.net/Events/V1ClimateOrderCanceledEvent.cs new file mode 100644 index 0000000000..e34f64c598 --- /dev/null +++ b/src/Stripe.net/Events/V1ClimateOrderCanceledEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Climate order is canceled. + /// + public class V1ClimateOrderCanceledEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Climate.Order FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ClimateOrderCanceledEventNotification.cs b/src/Stripe.net/Events/V1ClimateOrderCanceledEventNotification.cs new file mode 100644 index 0000000000..17ee56f214 --- /dev/null +++ b/src/Stripe.net/Events/V1ClimateOrderCanceledEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Climate order is canceled. + /// + public class V1ClimateOrderCanceledEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Climate.Order FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ClimateOrderCanceledEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ClimateOrderCreatedEvent.cs b/src/Stripe.net/Events/V1ClimateOrderCreatedEvent.cs new file mode 100644 index 0000000000..63d57de47a --- /dev/null +++ b/src/Stripe.net/Events/V1ClimateOrderCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Climate order is created. + /// + public class V1ClimateOrderCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Climate.Order FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ClimateOrderCreatedEventNotification.cs b/src/Stripe.net/Events/V1ClimateOrderCreatedEventNotification.cs new file mode 100644 index 0000000000..f420f82232 --- /dev/null +++ b/src/Stripe.net/Events/V1ClimateOrderCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Climate order is created. + /// + public class V1ClimateOrderCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Climate.Order FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ClimateOrderCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ClimateOrderDelayedEvent.cs b/src/Stripe.net/Events/V1ClimateOrderDelayedEvent.cs new file mode 100644 index 0000000000..f420acf66a --- /dev/null +++ b/src/Stripe.net/Events/V1ClimateOrderDelayedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Climate order is delayed. + /// + public class V1ClimateOrderDelayedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Climate.Order FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ClimateOrderDelayedEventNotification.cs b/src/Stripe.net/Events/V1ClimateOrderDelayedEventNotification.cs new file mode 100644 index 0000000000..59dc36fe5b --- /dev/null +++ b/src/Stripe.net/Events/V1ClimateOrderDelayedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Climate order is delayed. + /// + public class V1ClimateOrderDelayedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Climate.Order FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ClimateOrderDelayedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ClimateOrderDeliveredEvent.cs b/src/Stripe.net/Events/V1ClimateOrderDeliveredEvent.cs new file mode 100644 index 0000000000..729b9f6c10 --- /dev/null +++ b/src/Stripe.net/Events/V1ClimateOrderDeliveredEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Climate order is delivered. + /// + public class V1ClimateOrderDeliveredEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Climate.Order FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ClimateOrderDeliveredEventNotification.cs b/src/Stripe.net/Events/V1ClimateOrderDeliveredEventNotification.cs new file mode 100644 index 0000000000..d272559e94 --- /dev/null +++ b/src/Stripe.net/Events/V1ClimateOrderDeliveredEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Climate order is delivered. + /// + public class V1ClimateOrderDeliveredEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Climate.Order FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ClimateOrderDeliveredEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ClimateOrderProductSubstitutedEvent.cs b/src/Stripe.net/Events/V1ClimateOrderProductSubstitutedEvent.cs new file mode 100644 index 0000000000..48ff0f9e05 --- /dev/null +++ b/src/Stripe.net/Events/V1ClimateOrderProductSubstitutedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Climate order's product is substituted for another. + /// + public class V1ClimateOrderProductSubstitutedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Climate.Order FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ClimateOrderProductSubstitutedEventNotification.cs b/src/Stripe.net/Events/V1ClimateOrderProductSubstitutedEventNotification.cs new file mode 100644 index 0000000000..f9d0fe5fea --- /dev/null +++ b/src/Stripe.net/Events/V1ClimateOrderProductSubstitutedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Climate order's product is substituted for another. + /// + public class V1ClimateOrderProductSubstitutedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Climate.Order FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ClimateOrderProductSubstitutedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ClimateProductCreatedEvent.cs b/src/Stripe.net/Events/V1ClimateProductCreatedEvent.cs new file mode 100644 index 0000000000..3dd347b33c --- /dev/null +++ b/src/Stripe.net/Events/V1ClimateProductCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Climate product is created. + /// + public class V1ClimateProductCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Climate.Product FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ClimateProductCreatedEventNotification.cs b/src/Stripe.net/Events/V1ClimateProductCreatedEventNotification.cs new file mode 100644 index 0000000000..d0b70c707e --- /dev/null +++ b/src/Stripe.net/Events/V1ClimateProductCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Climate product is created. + /// + public class V1ClimateProductCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Climate.Product FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ClimateProductCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ClimateProductPricingUpdatedEvent.cs b/src/Stripe.net/Events/V1ClimateProductPricingUpdatedEvent.cs new file mode 100644 index 0000000000..7f1cf0bb3b --- /dev/null +++ b/src/Stripe.net/Events/V1ClimateProductPricingUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Climate product is updated. + /// + public class V1ClimateProductPricingUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Climate.Product FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ClimateProductPricingUpdatedEventNotification.cs b/src/Stripe.net/Events/V1ClimateProductPricingUpdatedEventNotification.cs new file mode 100644 index 0000000000..f6bdf9639a --- /dev/null +++ b/src/Stripe.net/Events/V1ClimateProductPricingUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Climate product is updated. + /// + public class V1ClimateProductPricingUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Climate.Product FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ClimateProductPricingUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CouponCreatedEvent.cs b/src/Stripe.net/Events/V1CouponCreatedEvent.cs new file mode 100644 index 0000000000..e557fc68bd --- /dev/null +++ b/src/Stripe.net/Events/V1CouponCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a coupon is created. + /// + public class V1CouponCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Coupon FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CouponCreatedEventNotification.cs b/src/Stripe.net/Events/V1CouponCreatedEventNotification.cs new file mode 100644 index 0000000000..887818cfe7 --- /dev/null +++ b/src/Stripe.net/Events/V1CouponCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a coupon is created. + /// + public class V1CouponCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Coupon FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CouponCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CouponDeletedEvent.cs b/src/Stripe.net/Events/V1CouponDeletedEvent.cs new file mode 100644 index 0000000000..e368b67ba7 --- /dev/null +++ b/src/Stripe.net/Events/V1CouponDeletedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a coupon is deleted. + /// + public class V1CouponDeletedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Coupon FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CouponDeletedEventNotification.cs b/src/Stripe.net/Events/V1CouponDeletedEventNotification.cs new file mode 100644 index 0000000000..1b665cc61d --- /dev/null +++ b/src/Stripe.net/Events/V1CouponDeletedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a coupon is deleted. + /// + public class V1CouponDeletedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Coupon FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CouponDeletedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CouponUpdatedEvent.cs b/src/Stripe.net/Events/V1CouponUpdatedEvent.cs new file mode 100644 index 0000000000..0e35f7aeb3 --- /dev/null +++ b/src/Stripe.net/Events/V1CouponUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a coupon is updated. + /// + public class V1CouponUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Coupon FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CouponUpdatedEventNotification.cs b/src/Stripe.net/Events/V1CouponUpdatedEventNotification.cs new file mode 100644 index 0000000000..83ad8cb0b3 --- /dev/null +++ b/src/Stripe.net/Events/V1CouponUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a coupon is updated. + /// + public class V1CouponUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Coupon FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CouponUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CreditNoteCreatedEvent.cs b/src/Stripe.net/Events/V1CreditNoteCreatedEvent.cs new file mode 100644 index 0000000000..f4f8be220d --- /dev/null +++ b/src/Stripe.net/Events/V1CreditNoteCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a credit note is created. + /// + public class V1CreditNoteCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public CreditNote FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CreditNoteCreatedEventNotification.cs b/src/Stripe.net/Events/V1CreditNoteCreatedEventNotification.cs new file mode 100644 index 0000000000..5c8e0ad24f --- /dev/null +++ b/src/Stripe.net/Events/V1CreditNoteCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a credit note is created. + /// + public class V1CreditNoteCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public CreditNote FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CreditNoteCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CreditNoteUpdatedEvent.cs b/src/Stripe.net/Events/V1CreditNoteUpdatedEvent.cs new file mode 100644 index 0000000000..7e56e89b08 --- /dev/null +++ b/src/Stripe.net/Events/V1CreditNoteUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a credit note is updated. + /// + public class V1CreditNoteUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public CreditNote FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CreditNoteUpdatedEventNotification.cs b/src/Stripe.net/Events/V1CreditNoteUpdatedEventNotification.cs new file mode 100644 index 0000000000..e82a2ad4cc --- /dev/null +++ b/src/Stripe.net/Events/V1CreditNoteUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a credit note is updated. + /// + public class V1CreditNoteUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public CreditNote FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CreditNoteUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CreditNoteVoidedEvent.cs b/src/Stripe.net/Events/V1CreditNoteVoidedEvent.cs new file mode 100644 index 0000000000..5bb85b4d75 --- /dev/null +++ b/src/Stripe.net/Events/V1CreditNoteVoidedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a credit note is voided. + /// + public class V1CreditNoteVoidedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public CreditNote FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CreditNoteVoidedEventNotification.cs b/src/Stripe.net/Events/V1CreditNoteVoidedEventNotification.cs new file mode 100644 index 0000000000..36ba57243e --- /dev/null +++ b/src/Stripe.net/Events/V1CreditNoteVoidedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a credit note is voided. + /// + public class V1CreditNoteVoidedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public CreditNote FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CreditNoteVoidedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerCashBalanceTransactionCreatedEvent.cs b/src/Stripe.net/Events/V1CustomerCashBalanceTransactionCreatedEvent.cs new file mode 100644 index 0000000000..cd4d71396d --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerCashBalanceTransactionCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a new customer cash balance transactions is created. + /// + public class V1CustomerCashBalanceTransactionCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public CustomerCashBalanceTransaction FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerCashBalanceTransactionCreatedEventNotification.cs b/src/Stripe.net/Events/V1CustomerCashBalanceTransactionCreatedEventNotification.cs new file mode 100644 index 0000000000..a5fb1e5521 --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerCashBalanceTransactionCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a new customer cash balance transactions is created. + /// + public class V1CustomerCashBalanceTransactionCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public CustomerCashBalanceTransaction FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CustomerCashBalanceTransactionCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerCreatedEvent.cs b/src/Stripe.net/Events/V1CustomerCreatedEvent.cs new file mode 100644 index 0000000000..62499bcee5 --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a new customer is created. + /// + public class V1CustomerCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Customer FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerCreatedEventNotification.cs b/src/Stripe.net/Events/V1CustomerCreatedEventNotification.cs new file mode 100644 index 0000000000..2036c09c92 --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a new customer is created. + /// + public class V1CustomerCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Customer FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CustomerCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerDeletedEvent.cs b/src/Stripe.net/Events/V1CustomerDeletedEvent.cs new file mode 100644 index 0000000000..a3669c0f04 --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerDeletedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a customer is deleted. + /// + public class V1CustomerDeletedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Customer FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerDeletedEventNotification.cs b/src/Stripe.net/Events/V1CustomerDeletedEventNotification.cs new file mode 100644 index 0000000000..81a666298b --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerDeletedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a customer is deleted. + /// + public class V1CustomerDeletedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Customer FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CustomerDeletedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerSubscriptionCreatedEvent.cs b/src/Stripe.net/Events/V1CustomerSubscriptionCreatedEvent.cs new file mode 100644 index 0000000000..14b0007e67 --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerSubscriptionCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a customer is signed up for a new plan. + /// + public class V1CustomerSubscriptionCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Subscription FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerSubscriptionCreatedEventNotification.cs b/src/Stripe.net/Events/V1CustomerSubscriptionCreatedEventNotification.cs new file mode 100644 index 0000000000..122f012300 --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerSubscriptionCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a customer is signed up for a new plan. + /// + public class V1CustomerSubscriptionCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Subscription FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CustomerSubscriptionCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerSubscriptionDeletedEvent.cs b/src/Stripe.net/Events/V1CustomerSubscriptionDeletedEvent.cs new file mode 100644 index 0000000000..4c83c8d07c --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerSubscriptionDeletedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a customer's subscription ends. + /// + public class V1CustomerSubscriptionDeletedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Subscription FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerSubscriptionDeletedEventNotification.cs b/src/Stripe.net/Events/V1CustomerSubscriptionDeletedEventNotification.cs new file mode 100644 index 0000000000..fcc07360e3 --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerSubscriptionDeletedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a customer's subscription ends. + /// + public class V1CustomerSubscriptionDeletedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Subscription FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CustomerSubscriptionDeletedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerSubscriptionPausedEvent.cs b/src/Stripe.net/Events/V1CustomerSubscriptionPausedEvent.cs new file mode 100644 index 0000000000..4c2c3051b2 --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerSubscriptionPausedEvent.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a customer's subscription is paused. Only applies when subscriptions + /// enter status=paused, not when payment collection is + /// paused. + /// + public class V1CustomerSubscriptionPausedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Subscription FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerSubscriptionPausedEventNotification.cs b/src/Stripe.net/Events/V1CustomerSubscriptionPausedEventNotification.cs new file mode 100644 index 0000000000..d4ec4fd86b --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerSubscriptionPausedEventNotification.cs @@ -0,0 +1,52 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a customer's subscription is paused. Only applies when subscriptions + /// enter status=paused, not when payment collection is + /// paused. + /// + public class V1CustomerSubscriptionPausedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Subscription FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CustomerSubscriptionPausedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerSubscriptionPendingUpdateAppliedEvent.cs b/src/Stripe.net/Events/V1CustomerSubscriptionPendingUpdateAppliedEvent.cs new file mode 100644 index 0000000000..e97c8e3dd5 --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerSubscriptionPendingUpdateAppliedEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a customer's subscription's pending update is applied, and the + /// subscription is updated. + /// + public class V1CustomerSubscriptionPendingUpdateAppliedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Subscription FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerSubscriptionPendingUpdateAppliedEventNotification.cs b/src/Stripe.net/Events/V1CustomerSubscriptionPendingUpdateAppliedEventNotification.cs new file mode 100644 index 0000000000..b444ee7e38 --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerSubscriptionPendingUpdateAppliedEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a customer's subscription's pending update is applied, and the + /// subscription is updated. + /// + public class V1CustomerSubscriptionPendingUpdateAppliedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Subscription FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CustomerSubscriptionPendingUpdateAppliedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerSubscriptionPendingUpdateExpiredEvent.cs b/src/Stripe.net/Events/V1CustomerSubscriptionPendingUpdateExpiredEvent.cs new file mode 100644 index 0000000000..5d63f71758 --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerSubscriptionPendingUpdateExpiredEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a customer's subscription's pending update expires before the related + /// invoice is paid. + /// + public class V1CustomerSubscriptionPendingUpdateExpiredEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Subscription FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerSubscriptionPendingUpdateExpiredEventNotification.cs b/src/Stripe.net/Events/V1CustomerSubscriptionPendingUpdateExpiredEventNotification.cs new file mode 100644 index 0000000000..c311e7a1e9 --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerSubscriptionPendingUpdateExpiredEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a customer's subscription's pending update expires before the related + /// invoice is paid. + /// + public class V1CustomerSubscriptionPendingUpdateExpiredEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Subscription FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CustomerSubscriptionPendingUpdateExpiredEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerSubscriptionResumedEvent.cs b/src/Stripe.net/Events/V1CustomerSubscriptionResumedEvent.cs new file mode 100644 index 0000000000..7dbaa96a83 --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerSubscriptionResumedEvent.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a customer's subscription is no longer paused. Only applies when a + /// status=paused subscription is resumed, not when payment collection is + /// resumed. + /// + public class V1CustomerSubscriptionResumedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Subscription FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerSubscriptionResumedEventNotification.cs b/src/Stripe.net/Events/V1CustomerSubscriptionResumedEventNotification.cs new file mode 100644 index 0000000000..845f534766 --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerSubscriptionResumedEventNotification.cs @@ -0,0 +1,53 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a customer's subscription is no longer paused. Only applies when a + /// status=paused subscription is resumed, not when payment collection is + /// resumed. + /// + public class V1CustomerSubscriptionResumedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Subscription FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CustomerSubscriptionResumedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerSubscriptionTrialWillEndEvent.cs b/src/Stripe.net/Events/V1CustomerSubscriptionTrialWillEndEvent.cs new file mode 100644 index 0000000000..c76953945f --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerSubscriptionTrialWillEndEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs three days before a subscription's trial period is scheduled to end, or when a + /// trial is ended immediately (using trial_end=now). + /// + public class V1CustomerSubscriptionTrialWillEndEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Subscription FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerSubscriptionTrialWillEndEventNotification.cs b/src/Stripe.net/Events/V1CustomerSubscriptionTrialWillEndEventNotification.cs new file mode 100644 index 0000000000..39a9a35cfc --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerSubscriptionTrialWillEndEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs three days before a subscription's trial period is scheduled to end, or when a + /// trial is ended immediately (using trial_end=now). + /// + public class V1CustomerSubscriptionTrialWillEndEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Subscription FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CustomerSubscriptionTrialWillEndEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerSubscriptionUpdatedEvent.cs b/src/Stripe.net/Events/V1CustomerSubscriptionUpdatedEvent.cs new file mode 100644 index 0000000000..8b587e484d --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerSubscriptionUpdatedEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a subscription changes (e.g., switching from one plan to another, or + /// changing the status from trial to active). + /// + public class V1CustomerSubscriptionUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Subscription FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerSubscriptionUpdatedEventNotification.cs b/src/Stripe.net/Events/V1CustomerSubscriptionUpdatedEventNotification.cs new file mode 100644 index 0000000000..d2e994a4d5 --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerSubscriptionUpdatedEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a subscription changes (e.g., switching from one plan to another, or + /// changing the status from trial to active). + /// + public class V1CustomerSubscriptionUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Subscription FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CustomerSubscriptionUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerTaxIdCreatedEvent.cs b/src/Stripe.net/Events/V1CustomerTaxIdCreatedEvent.cs new file mode 100644 index 0000000000..9848df64dc --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerTaxIdCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a tax ID is created for a customer. + /// + public class V1CustomerTaxIdCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public TaxId FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerTaxIdCreatedEventNotification.cs b/src/Stripe.net/Events/V1CustomerTaxIdCreatedEventNotification.cs new file mode 100644 index 0000000000..90b49457ba --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerTaxIdCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a tax ID is created for a customer. + /// + public class V1CustomerTaxIdCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public TaxId FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CustomerTaxIdCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerTaxIdDeletedEvent.cs b/src/Stripe.net/Events/V1CustomerTaxIdDeletedEvent.cs new file mode 100644 index 0000000000..95050f94a2 --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerTaxIdDeletedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a tax ID is deleted from a customer. + /// + public class V1CustomerTaxIdDeletedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public TaxId FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerTaxIdDeletedEventNotification.cs b/src/Stripe.net/Events/V1CustomerTaxIdDeletedEventNotification.cs new file mode 100644 index 0000000000..d43952bc00 --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerTaxIdDeletedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a tax ID is deleted from a customer. + /// + public class V1CustomerTaxIdDeletedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public TaxId FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CustomerTaxIdDeletedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerTaxIdUpdatedEvent.cs b/src/Stripe.net/Events/V1CustomerTaxIdUpdatedEvent.cs new file mode 100644 index 0000000000..649dc0e9d7 --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerTaxIdUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a customer's tax ID is updated. + /// + public class V1CustomerTaxIdUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public TaxId FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerTaxIdUpdatedEventNotification.cs b/src/Stripe.net/Events/V1CustomerTaxIdUpdatedEventNotification.cs new file mode 100644 index 0000000000..8bd535bbba --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerTaxIdUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a customer's tax ID is updated. + /// + public class V1CustomerTaxIdUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public TaxId FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CustomerTaxIdUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerUpdatedEvent.cs b/src/Stripe.net/Events/V1CustomerUpdatedEvent.cs new file mode 100644 index 0000000000..53925d83fe --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever any property of a customer changes. + /// + public class V1CustomerUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Customer FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1CustomerUpdatedEventNotification.cs b/src/Stripe.net/Events/V1CustomerUpdatedEventNotification.cs new file mode 100644 index 0000000000..6a055d3f05 --- /dev/null +++ b/src/Stripe.net/Events/V1CustomerUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever any property of a customer changes. + /// + public class V1CustomerUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Customer FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1CustomerUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1EntitlementsActiveEntitlementSummaryUpdatedEvent.cs b/src/Stripe.net/Events/V1EntitlementsActiveEntitlementSummaryUpdatedEvent.cs new file mode 100644 index 0000000000..6caae469df --- /dev/null +++ b/src/Stripe.net/Events/V1EntitlementsActiveEntitlementSummaryUpdatedEvent.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + + /// + /// Occurs whenever a customer's entitlements change. + /// + public class V1EntitlementsActiveEntitlementSummaryUpdatedEvent : V2.Core.Event + { + } +} diff --git a/src/Stripe.net/Events/V1EntitlementsActiveEntitlementSummaryUpdatedEventNotification.cs b/src/Stripe.net/Events/V1EntitlementsActiveEntitlementSummaryUpdatedEventNotification.cs new file mode 100644 index 0000000000..3feab1b49d --- /dev/null +++ b/src/Stripe.net/Events/V1EntitlementsActiveEntitlementSummaryUpdatedEventNotification.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Stripe.V2; + + /// + /// Occurs whenever a customer's entitlements change. + /// + public class V1EntitlementsActiveEntitlementSummaryUpdatedEventNotification : V2.Core.EventNotification + { + public V1EntitlementsActiveEntitlementSummaryUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1FileCreatedEvent.cs b/src/Stripe.net/Events/V1FileCreatedEvent.cs new file mode 100644 index 0000000000..b4622d7cae --- /dev/null +++ b/src/Stripe.net/Events/V1FileCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a new Stripe-generated file is available for your account. + /// + public class V1FileCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public File FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1FileCreatedEventNotification.cs b/src/Stripe.net/Events/V1FileCreatedEventNotification.cs new file mode 100644 index 0000000000..07abee7a48 --- /dev/null +++ b/src/Stripe.net/Events/V1FileCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a new Stripe-generated file is available for your account. + /// + public class V1FileCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public File FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1FileCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1FinancialConnectionsAccountCreatedEvent.cs b/src/Stripe.net/Events/V1FinancialConnectionsAccountCreatedEvent.cs new file mode 100644 index 0000000000..34427dfc4c --- /dev/null +++ b/src/Stripe.net/Events/V1FinancialConnectionsAccountCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a new Financial Connections account is created. + /// + public class V1FinancialConnectionsAccountCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public FinancialConnections.Account FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1FinancialConnectionsAccountCreatedEventNotification.cs b/src/Stripe.net/Events/V1FinancialConnectionsAccountCreatedEventNotification.cs new file mode 100644 index 0000000000..30e794604c --- /dev/null +++ b/src/Stripe.net/Events/V1FinancialConnectionsAccountCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a new Financial Connections account is created. + /// + public class V1FinancialConnectionsAccountCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public FinancialConnections.Account FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1FinancialConnectionsAccountCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1FinancialConnectionsAccountDeactivatedEvent.cs b/src/Stripe.net/Events/V1FinancialConnectionsAccountDeactivatedEvent.cs new file mode 100644 index 0000000000..9cc12e452e --- /dev/null +++ b/src/Stripe.net/Events/V1FinancialConnectionsAccountDeactivatedEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Financial Connections account's status is updated from active to + /// inactive. + /// + public class V1FinancialConnectionsAccountDeactivatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public FinancialConnections.Account FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1FinancialConnectionsAccountDeactivatedEventNotification.cs b/src/Stripe.net/Events/V1FinancialConnectionsAccountDeactivatedEventNotification.cs new file mode 100644 index 0000000000..4e6375ac93 --- /dev/null +++ b/src/Stripe.net/Events/V1FinancialConnectionsAccountDeactivatedEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Financial Connections account's status is updated from active to + /// inactive. + /// + public class V1FinancialConnectionsAccountDeactivatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public FinancialConnections.Account FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1FinancialConnectionsAccountDeactivatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1FinancialConnectionsAccountDisconnectedEvent.cs b/src/Stripe.net/Events/V1FinancialConnectionsAccountDisconnectedEvent.cs new file mode 100644 index 0000000000..4c3a20109c --- /dev/null +++ b/src/Stripe.net/Events/V1FinancialConnectionsAccountDisconnectedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Financial Connections account is disconnected. + /// + public class V1FinancialConnectionsAccountDisconnectedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public FinancialConnections.Account FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1FinancialConnectionsAccountDisconnectedEventNotification.cs b/src/Stripe.net/Events/V1FinancialConnectionsAccountDisconnectedEventNotification.cs new file mode 100644 index 0000000000..8f7e97afed --- /dev/null +++ b/src/Stripe.net/Events/V1FinancialConnectionsAccountDisconnectedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Financial Connections account is disconnected. + /// + public class V1FinancialConnectionsAccountDisconnectedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public FinancialConnections.Account FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1FinancialConnectionsAccountDisconnectedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1FinancialConnectionsAccountReactivatedEvent.cs b/src/Stripe.net/Events/V1FinancialConnectionsAccountReactivatedEvent.cs new file mode 100644 index 0000000000..08e1f8ecc4 --- /dev/null +++ b/src/Stripe.net/Events/V1FinancialConnectionsAccountReactivatedEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Financial Connections account's status is updated from inactive to + /// active. + /// + public class V1FinancialConnectionsAccountReactivatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public FinancialConnections.Account FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1FinancialConnectionsAccountReactivatedEventNotification.cs b/src/Stripe.net/Events/V1FinancialConnectionsAccountReactivatedEventNotification.cs new file mode 100644 index 0000000000..4f90649116 --- /dev/null +++ b/src/Stripe.net/Events/V1FinancialConnectionsAccountReactivatedEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Financial Connections account's status is updated from inactive to + /// active. + /// + public class V1FinancialConnectionsAccountReactivatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public FinancialConnections.Account FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1FinancialConnectionsAccountReactivatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1FinancialConnectionsAccountRefreshedBalanceEvent.cs b/src/Stripe.net/Events/V1FinancialConnectionsAccountRefreshedBalanceEvent.cs new file mode 100644 index 0000000000..7b99ef7b2e --- /dev/null +++ b/src/Stripe.net/Events/V1FinancialConnectionsAccountRefreshedBalanceEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an Account’s balance_refresh status transitions from pending + /// to either succeeded or failed. + /// + public class V1FinancialConnectionsAccountRefreshedBalanceEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public FinancialConnections.Account FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1FinancialConnectionsAccountRefreshedBalanceEventNotification.cs b/src/Stripe.net/Events/V1FinancialConnectionsAccountRefreshedBalanceEventNotification.cs new file mode 100644 index 0000000000..959e413afe --- /dev/null +++ b/src/Stripe.net/Events/V1FinancialConnectionsAccountRefreshedBalanceEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an Account’s balance_refresh status transitions from pending + /// to either succeeded or failed. + /// + public class V1FinancialConnectionsAccountRefreshedBalanceEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public FinancialConnections.Account FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1FinancialConnectionsAccountRefreshedBalanceEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1FinancialConnectionsAccountRefreshedOwnershipEvent.cs b/src/Stripe.net/Events/V1FinancialConnectionsAccountRefreshedOwnershipEvent.cs new file mode 100644 index 0000000000..83a9dad4ff --- /dev/null +++ b/src/Stripe.net/Events/V1FinancialConnectionsAccountRefreshedOwnershipEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an Account’s ownership_refresh status transitions from pending + /// to either succeeded or failed. + /// + public class V1FinancialConnectionsAccountRefreshedOwnershipEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public FinancialConnections.Account FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1FinancialConnectionsAccountRefreshedOwnershipEventNotification.cs b/src/Stripe.net/Events/V1FinancialConnectionsAccountRefreshedOwnershipEventNotification.cs new file mode 100644 index 0000000000..85400855c3 --- /dev/null +++ b/src/Stripe.net/Events/V1FinancialConnectionsAccountRefreshedOwnershipEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an Account’s ownership_refresh status transitions from pending + /// to either succeeded or failed. + /// + public class V1FinancialConnectionsAccountRefreshedOwnershipEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public FinancialConnections.Account FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1FinancialConnectionsAccountRefreshedOwnershipEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1FinancialConnectionsAccountRefreshedTransactionsEvent.cs b/src/Stripe.net/Events/V1FinancialConnectionsAccountRefreshedTransactionsEvent.cs new file mode 100644 index 0000000000..9ed91f5822 --- /dev/null +++ b/src/Stripe.net/Events/V1FinancialConnectionsAccountRefreshedTransactionsEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an Account’s transaction_refresh status transitions from + /// pending to either succeeded or failed. + /// + public class V1FinancialConnectionsAccountRefreshedTransactionsEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public FinancialConnections.Account FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1FinancialConnectionsAccountRefreshedTransactionsEventNotification.cs b/src/Stripe.net/Events/V1FinancialConnectionsAccountRefreshedTransactionsEventNotification.cs new file mode 100644 index 0000000000..b1ff444b56 --- /dev/null +++ b/src/Stripe.net/Events/V1FinancialConnectionsAccountRefreshedTransactionsEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an Account’s transaction_refresh status transitions from + /// pending to either succeeded or failed. + /// + public class V1FinancialConnectionsAccountRefreshedTransactionsEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public FinancialConnections.Account FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1FinancialConnectionsAccountRefreshedTransactionsEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IdentityVerificationSessionCanceledEvent.cs b/src/Stripe.net/Events/V1IdentityVerificationSessionCanceledEvent.cs new file mode 100644 index 0000000000..8debef3a31 --- /dev/null +++ b/src/Stripe.net/Events/V1IdentityVerificationSessionCanceledEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a VerificationSession is canceled. + /// + public class V1IdentityVerificationSessionCanceledEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Identity.VerificationSession FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IdentityVerificationSessionCanceledEventNotification.cs b/src/Stripe.net/Events/V1IdentityVerificationSessionCanceledEventNotification.cs new file mode 100644 index 0000000000..6fe0d858e8 --- /dev/null +++ b/src/Stripe.net/Events/V1IdentityVerificationSessionCanceledEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a VerificationSession is canceled. + /// + public class V1IdentityVerificationSessionCanceledEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Identity.VerificationSession FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IdentityVerificationSessionCanceledEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IdentityVerificationSessionCreatedEvent.cs b/src/Stripe.net/Events/V1IdentityVerificationSessionCreatedEvent.cs new file mode 100644 index 0000000000..fcc71d42f1 --- /dev/null +++ b/src/Stripe.net/Events/V1IdentityVerificationSessionCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a VerificationSession is created. + /// + public class V1IdentityVerificationSessionCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Identity.VerificationSession FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IdentityVerificationSessionCreatedEventNotification.cs b/src/Stripe.net/Events/V1IdentityVerificationSessionCreatedEventNotification.cs new file mode 100644 index 0000000000..381207e40d --- /dev/null +++ b/src/Stripe.net/Events/V1IdentityVerificationSessionCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a VerificationSession is created. + /// + public class V1IdentityVerificationSessionCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Identity.VerificationSession FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IdentityVerificationSessionCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IdentityVerificationSessionProcessingEvent.cs b/src/Stripe.net/Events/V1IdentityVerificationSessionProcessingEvent.cs new file mode 100644 index 0000000000..b09aafa243 --- /dev/null +++ b/src/Stripe.net/Events/V1IdentityVerificationSessionProcessingEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a VerificationSession transitions to processing. + /// + public class V1IdentityVerificationSessionProcessingEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Identity.VerificationSession FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IdentityVerificationSessionProcessingEventNotification.cs b/src/Stripe.net/Events/V1IdentityVerificationSessionProcessingEventNotification.cs new file mode 100644 index 0000000000..0f3a1e899c --- /dev/null +++ b/src/Stripe.net/Events/V1IdentityVerificationSessionProcessingEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a VerificationSession transitions to processing. + /// + public class V1IdentityVerificationSessionProcessingEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Identity.VerificationSession FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IdentityVerificationSessionProcessingEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IdentityVerificationSessionRedactedEvent.cs b/src/Stripe.net/Events/V1IdentityVerificationSessionRedactedEvent.cs new file mode 100644 index 0000000000..efcd2a1d97 --- /dev/null +++ b/src/Stripe.net/Events/V1IdentityVerificationSessionRedactedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a VerificationSession is redacted. + /// + public class V1IdentityVerificationSessionRedactedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Identity.VerificationSession FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IdentityVerificationSessionRedactedEventNotification.cs b/src/Stripe.net/Events/V1IdentityVerificationSessionRedactedEventNotification.cs new file mode 100644 index 0000000000..d5ea2594f4 --- /dev/null +++ b/src/Stripe.net/Events/V1IdentityVerificationSessionRedactedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a VerificationSession is redacted. + /// + public class V1IdentityVerificationSessionRedactedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Identity.VerificationSession FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IdentityVerificationSessionRedactedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IdentityVerificationSessionRequiresInputEvent.cs b/src/Stripe.net/Events/V1IdentityVerificationSessionRequiresInputEvent.cs new file mode 100644 index 0000000000..80ee4dfdca --- /dev/null +++ b/src/Stripe.net/Events/V1IdentityVerificationSessionRequiresInputEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a VerificationSession transitions to require user input. + /// + public class V1IdentityVerificationSessionRequiresInputEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Identity.VerificationSession FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IdentityVerificationSessionRequiresInputEventNotification.cs b/src/Stripe.net/Events/V1IdentityVerificationSessionRequiresInputEventNotification.cs new file mode 100644 index 0000000000..d8f9c67e82 --- /dev/null +++ b/src/Stripe.net/Events/V1IdentityVerificationSessionRequiresInputEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a VerificationSession transitions to require user input. + /// + public class V1IdentityVerificationSessionRequiresInputEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Identity.VerificationSession FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IdentityVerificationSessionRequiresInputEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IdentityVerificationSessionVerifiedEvent.cs b/src/Stripe.net/Events/V1IdentityVerificationSessionVerifiedEvent.cs new file mode 100644 index 0000000000..b49cc9cd27 --- /dev/null +++ b/src/Stripe.net/Events/V1IdentityVerificationSessionVerifiedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a VerificationSession transitions to verified. + /// + public class V1IdentityVerificationSessionVerifiedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Identity.VerificationSession FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IdentityVerificationSessionVerifiedEventNotification.cs b/src/Stripe.net/Events/V1IdentityVerificationSessionVerifiedEventNotification.cs new file mode 100644 index 0000000000..0a88688c44 --- /dev/null +++ b/src/Stripe.net/Events/V1IdentityVerificationSessionVerifiedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a VerificationSession transitions to verified. + /// + public class V1IdentityVerificationSessionVerifiedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Identity.VerificationSession FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IdentityVerificationSessionVerifiedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceCreatedEvent.cs b/src/Stripe.net/Events/V1InvoiceCreatedEvent.cs new file mode 100644 index 0000000000..f56c0a3e8e --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceCreatedEvent.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a new invoice is created. To learn how webhooks can be used with this + /// event, and how they can affect it, see Using Webhooks with + /// Subscriptions. + /// + public class V1InvoiceCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceCreatedEventNotification.cs b/src/Stripe.net/Events/V1InvoiceCreatedEventNotification.cs new file mode 100644 index 0000000000..94d49eb6b0 --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceCreatedEventNotification.cs @@ -0,0 +1,52 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a new invoice is created. To learn how webhooks can be used with this + /// event, and how they can affect it, see Using Webhooks with + /// Subscriptions. + /// + public class V1InvoiceCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1InvoiceCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceDeletedEvent.cs b/src/Stripe.net/Events/V1InvoiceDeletedEvent.cs new file mode 100644 index 0000000000..4403918d8e --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceDeletedEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a draft invoice is deleted. Note: This event is not sent for invoice previews. + /// + public class V1InvoiceDeletedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceDeletedEventNotification.cs b/src/Stripe.net/Events/V1InvoiceDeletedEventNotification.cs new file mode 100644 index 0000000000..6b62277121 --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceDeletedEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a draft invoice is deleted. Note: This event is not sent for invoice previews. + /// + public class V1InvoiceDeletedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1InvoiceDeletedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceFinalizationFailedEvent.cs b/src/Stripe.net/Events/V1InvoiceFinalizationFailedEvent.cs new file mode 100644 index 0000000000..16e0d3ce3d --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceFinalizationFailedEvent.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a draft invoice cannot be finalized. See the invoice’s last + /// finalization error for details. + /// + public class V1InvoiceFinalizationFailedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceFinalizationFailedEventNotification.cs b/src/Stripe.net/Events/V1InvoiceFinalizationFailedEventNotification.cs new file mode 100644 index 0000000000..8b17b60a9c --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceFinalizationFailedEventNotification.cs @@ -0,0 +1,51 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a draft invoice cannot be finalized. See the invoice’s last + /// finalization error for details. + /// + public class V1InvoiceFinalizationFailedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1InvoiceFinalizationFailedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceFinalizedEvent.cs b/src/Stripe.net/Events/V1InvoiceFinalizedEvent.cs new file mode 100644 index 0000000000..70ddafd857 --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceFinalizedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a draft invoice is finalized and updated to be an open invoice. + /// + public class V1InvoiceFinalizedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceFinalizedEventNotification.cs b/src/Stripe.net/Events/V1InvoiceFinalizedEventNotification.cs new file mode 100644 index 0000000000..7d5b14337a --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceFinalizedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a draft invoice is finalized and updated to be an open invoice. + /// + public class V1InvoiceFinalizedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1InvoiceFinalizedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceMarkedUncollectibleEvent.cs b/src/Stripe.net/Events/V1InvoiceMarkedUncollectibleEvent.cs new file mode 100644 index 0000000000..ed550dac52 --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceMarkedUncollectibleEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an invoice is marked uncollectible. + /// + public class V1InvoiceMarkedUncollectibleEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceMarkedUncollectibleEventNotification.cs b/src/Stripe.net/Events/V1InvoiceMarkedUncollectibleEventNotification.cs new file mode 100644 index 0000000000..568465b5d0 --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceMarkedUncollectibleEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an invoice is marked uncollectible. + /// + public class V1InvoiceMarkedUncollectibleEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1InvoiceMarkedUncollectibleEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceOverdueEvent.cs b/src/Stripe.net/Events/V1InvoiceOverdueEvent.cs new file mode 100644 index 0000000000..76cb513c8e --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceOverdueEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs X number of days after an invoice becomes due—where X is determined by + /// Automations. + /// + public class V1InvoiceOverdueEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceOverdueEventNotification.cs b/src/Stripe.net/Events/V1InvoiceOverdueEventNotification.cs new file mode 100644 index 0000000000..7e2a642982 --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceOverdueEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs X number of days after an invoice becomes due—where X is determined by + /// Automations. + /// + public class V1InvoiceOverdueEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1InvoiceOverdueEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceOverpaidEvent.cs b/src/Stripe.net/Events/V1InvoiceOverpaidEvent.cs new file mode 100644 index 0000000000..921aff254c --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceOverpaidEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an invoice transitions to paid with a non-zero amount_overpaid. + /// + public class V1InvoiceOverpaidEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceOverpaidEventNotification.cs b/src/Stripe.net/Events/V1InvoiceOverpaidEventNotification.cs new file mode 100644 index 0000000000..664c144c22 --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceOverpaidEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an invoice transitions to paid with a non-zero amount_overpaid. + /// + public class V1InvoiceOverpaidEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1InvoiceOverpaidEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoicePaidEvent.cs b/src/Stripe.net/Events/V1InvoicePaidEvent.cs new file mode 100644 index 0000000000..4c45a038c8 --- /dev/null +++ b/src/Stripe.net/Events/V1InvoicePaidEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an invoice payment attempt succeeds or an invoice is marked as paid + /// out-of-band. + /// + public class V1InvoicePaidEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoicePaidEventNotification.cs b/src/Stripe.net/Events/V1InvoicePaidEventNotification.cs new file mode 100644 index 0000000000..fb2781a1be --- /dev/null +++ b/src/Stripe.net/Events/V1InvoicePaidEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an invoice payment attempt succeeds or an invoice is marked as paid + /// out-of-band. + /// + public class V1InvoicePaidEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1InvoicePaidEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoicePaymentActionRequiredEvent.cs b/src/Stripe.net/Events/V1InvoicePaymentActionRequiredEvent.cs new file mode 100644 index 0000000000..f2fcd114ab --- /dev/null +++ b/src/Stripe.net/Events/V1InvoicePaymentActionRequiredEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an invoice payment attempt requires further user action to complete. + /// + public class V1InvoicePaymentActionRequiredEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoicePaymentActionRequiredEventNotification.cs b/src/Stripe.net/Events/V1InvoicePaymentActionRequiredEventNotification.cs new file mode 100644 index 0000000000..e060166c2f --- /dev/null +++ b/src/Stripe.net/Events/V1InvoicePaymentActionRequiredEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an invoice payment attempt requires further user action to complete. + /// + public class V1InvoicePaymentActionRequiredEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1InvoicePaymentActionRequiredEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoicePaymentFailedEvent.cs b/src/Stripe.net/Events/V1InvoicePaymentFailedEvent.cs new file mode 100644 index 0000000000..d23c104f69 --- /dev/null +++ b/src/Stripe.net/Events/V1InvoicePaymentFailedEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an invoice payment attempt fails, due to either a declined payment, + /// including soft decline, or to the lack of a stored payment method. + /// + public class V1InvoicePaymentFailedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoicePaymentFailedEventNotification.cs b/src/Stripe.net/Events/V1InvoicePaymentFailedEventNotification.cs new file mode 100644 index 0000000000..62751974db --- /dev/null +++ b/src/Stripe.net/Events/V1InvoicePaymentFailedEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an invoice payment attempt fails, due to either a declined payment, + /// including soft decline, or to the lack of a stored payment method. + /// + public class V1InvoicePaymentFailedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1InvoicePaymentFailedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoicePaymentPaidEvent.cs b/src/Stripe.net/Events/V1InvoicePaymentPaidEvent.cs new file mode 100644 index 0000000000..30094bb68a --- /dev/null +++ b/src/Stripe.net/Events/V1InvoicePaymentPaidEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an InvoicePayment is successfully paid. + /// + public class V1InvoicePaymentPaidEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public InvoicePayment FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoicePaymentPaidEventNotification.cs b/src/Stripe.net/Events/V1InvoicePaymentPaidEventNotification.cs new file mode 100644 index 0000000000..1c90613e33 --- /dev/null +++ b/src/Stripe.net/Events/V1InvoicePaymentPaidEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an InvoicePayment is successfully paid. + /// + public class V1InvoicePaymentPaidEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public InvoicePayment FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1InvoicePaymentPaidEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoicePaymentSucceededEvent.cs b/src/Stripe.net/Events/V1InvoicePaymentSucceededEvent.cs new file mode 100644 index 0000000000..df9dd5c940 --- /dev/null +++ b/src/Stripe.net/Events/V1InvoicePaymentSucceededEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an invoice payment attempt succeeds. + /// + public class V1InvoicePaymentSucceededEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoicePaymentSucceededEventNotification.cs b/src/Stripe.net/Events/V1InvoicePaymentSucceededEventNotification.cs new file mode 100644 index 0000000000..31c7de5d63 --- /dev/null +++ b/src/Stripe.net/Events/V1InvoicePaymentSucceededEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an invoice payment attempt succeeds. + /// + public class V1InvoicePaymentSucceededEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1InvoicePaymentSucceededEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceSentEvent.cs b/src/Stripe.net/Events/V1InvoiceSentEvent.cs new file mode 100644 index 0000000000..c030ce2cac --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceSentEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an invoice email is sent out. + /// + public class V1InvoiceSentEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceSentEventNotification.cs b/src/Stripe.net/Events/V1InvoiceSentEventNotification.cs new file mode 100644 index 0000000000..3a444fa884 --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceSentEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an invoice email is sent out. + /// + public class V1InvoiceSentEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1InvoiceSentEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceUpcomingEvent.cs b/src/Stripe.net/Events/V1InvoiceUpcomingEvent.cs new file mode 100644 index 0000000000..a23800be4a --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceUpcomingEvent.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs X number of days before a subscription is scheduled to create an invoice that is + /// automatically charged—where X is determined by your subscriptions + /// settings. Note: The received Invoice object will not have an invoice ID. + /// + public class V1InvoiceUpcomingEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceUpcomingEventNotification.cs b/src/Stripe.net/Events/V1InvoiceUpcomingEventNotification.cs new file mode 100644 index 0000000000..756ecb1b21 --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceUpcomingEventNotification.cs @@ -0,0 +1,52 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs X number of days before a subscription is scheduled to create an invoice that is + /// automatically charged—where X is determined by your subscriptions + /// settings. Note: The received Invoice object will not have an invoice ID. + /// + public class V1InvoiceUpcomingEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1InvoiceUpcomingEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceUpdatedEvent.cs b/src/Stripe.net/Events/V1InvoiceUpdatedEvent.cs new file mode 100644 index 0000000000..88b90c7838 --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an invoice changes (e.g., the invoice amount). + /// + public class V1InvoiceUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceUpdatedEventNotification.cs b/src/Stripe.net/Events/V1InvoiceUpdatedEventNotification.cs new file mode 100644 index 0000000000..d97f48c47b --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an invoice changes (e.g., the invoice amount). + /// + public class V1InvoiceUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1InvoiceUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceVoidedEvent.cs b/src/Stripe.net/Events/V1InvoiceVoidedEvent.cs new file mode 100644 index 0000000000..75e9076d12 --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceVoidedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an invoice is voided. + /// + public class V1InvoiceVoidedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceVoidedEventNotification.cs b/src/Stripe.net/Events/V1InvoiceVoidedEventNotification.cs new file mode 100644 index 0000000000..e99bb9dd28 --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceVoidedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an invoice is voided. + /// + public class V1InvoiceVoidedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1InvoiceVoidedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceWillBeDueEvent.cs b/src/Stripe.net/Events/V1InvoiceWillBeDueEvent.cs new file mode 100644 index 0000000000..023edebe13 --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceWillBeDueEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs X number of days before an invoice becomes due—where X is determined by + /// Automations. + /// + public class V1InvoiceWillBeDueEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceWillBeDueEventNotification.cs b/src/Stripe.net/Events/V1InvoiceWillBeDueEventNotification.cs new file mode 100644 index 0000000000..c32d3e5a94 --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceWillBeDueEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs X number of days before an invoice becomes due—where X is determined by + /// Automations. + /// + public class V1InvoiceWillBeDueEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Invoice FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1InvoiceWillBeDueEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceitemCreatedEvent.cs b/src/Stripe.net/Events/V1InvoiceitemCreatedEvent.cs new file mode 100644 index 0000000000..c10484d032 --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceitemCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an invoice item is created. + /// + public class V1InvoiceitemCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public InvoiceItem FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceitemCreatedEventNotification.cs b/src/Stripe.net/Events/V1InvoiceitemCreatedEventNotification.cs new file mode 100644 index 0000000000..ed423d71f7 --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceitemCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an invoice item is created. + /// + public class V1InvoiceitemCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public InvoiceItem FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1InvoiceitemCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceitemDeletedEvent.cs b/src/Stripe.net/Events/V1InvoiceitemDeletedEvent.cs new file mode 100644 index 0000000000..2eac7c0a40 --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceitemDeletedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an invoice item is deleted. + /// + public class V1InvoiceitemDeletedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public InvoiceItem FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1InvoiceitemDeletedEventNotification.cs b/src/Stripe.net/Events/V1InvoiceitemDeletedEventNotification.cs new file mode 100644 index 0000000000..7e61deae86 --- /dev/null +++ b/src/Stripe.net/Events/V1InvoiceitemDeletedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an invoice item is deleted. + /// + public class V1InvoiceitemDeletedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public InvoiceItem FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1InvoiceitemDeletedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingAuthorizationCreatedEvent.cs b/src/Stripe.net/Events/V1IssuingAuthorizationCreatedEvent.cs new file mode 100644 index 0000000000..49df47a75f --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingAuthorizationCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an authorization is created. + /// + public class V1IssuingAuthorizationCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Authorization FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingAuthorizationCreatedEventNotification.cs b/src/Stripe.net/Events/V1IssuingAuthorizationCreatedEventNotification.cs new file mode 100644 index 0000000000..15b7f290cd --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingAuthorizationCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an authorization is created. + /// + public class V1IssuingAuthorizationCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Authorization FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IssuingAuthorizationCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingAuthorizationRequestEvent.cs b/src/Stripe.net/Events/V1IssuingAuthorizationRequestEvent.cs new file mode 100644 index 0000000000..c0d358955f --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingAuthorizationRequestEvent.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Represents a synchronous request for authorization, see Using + /// your integration to handle authorization requests. + /// + public class V1IssuingAuthorizationRequestEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Authorization FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingAuthorizationRequestEventNotification.cs b/src/Stripe.net/Events/V1IssuingAuthorizationRequestEventNotification.cs new file mode 100644 index 0000000000..166d8272c7 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingAuthorizationRequestEventNotification.cs @@ -0,0 +1,51 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Represents a synchronous request for authorization, see Using + /// your integration to handle authorization requests. + /// + public class V1IssuingAuthorizationRequestEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Authorization FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IssuingAuthorizationRequestEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingAuthorizationUpdatedEvent.cs b/src/Stripe.net/Events/V1IssuingAuthorizationUpdatedEvent.cs new file mode 100644 index 0000000000..95c2144da5 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingAuthorizationUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an authorization is updated. + /// + public class V1IssuingAuthorizationUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Authorization FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingAuthorizationUpdatedEventNotification.cs b/src/Stripe.net/Events/V1IssuingAuthorizationUpdatedEventNotification.cs new file mode 100644 index 0000000000..2f0b2d3c38 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingAuthorizationUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an authorization is updated. + /// + public class V1IssuingAuthorizationUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Authorization FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IssuingAuthorizationUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingCardCreatedEvent.cs b/src/Stripe.net/Events/V1IssuingCardCreatedEvent.cs new file mode 100644 index 0000000000..29d5627b55 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingCardCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a card is created. + /// + public class V1IssuingCardCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Card FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingCardCreatedEventNotification.cs b/src/Stripe.net/Events/V1IssuingCardCreatedEventNotification.cs new file mode 100644 index 0000000000..d41f362901 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingCardCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a card is created. + /// + public class V1IssuingCardCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Card FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IssuingCardCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingCardUpdatedEvent.cs b/src/Stripe.net/Events/V1IssuingCardUpdatedEvent.cs new file mode 100644 index 0000000000..e3706b1ac1 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingCardUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a card is updated. + /// + public class V1IssuingCardUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Card FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingCardUpdatedEventNotification.cs b/src/Stripe.net/Events/V1IssuingCardUpdatedEventNotification.cs new file mode 100644 index 0000000000..b7fc21981b --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingCardUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a card is updated. + /// + public class V1IssuingCardUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Card FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IssuingCardUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingCardholderCreatedEvent.cs b/src/Stripe.net/Events/V1IssuingCardholderCreatedEvent.cs new file mode 100644 index 0000000000..8f5ff4e04b --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingCardholderCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a cardholder is created. + /// + public class V1IssuingCardholderCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Cardholder FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingCardholderCreatedEventNotification.cs b/src/Stripe.net/Events/V1IssuingCardholderCreatedEventNotification.cs new file mode 100644 index 0000000000..e744e77c21 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingCardholderCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a cardholder is created. + /// + public class V1IssuingCardholderCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Cardholder FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IssuingCardholderCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingCardholderUpdatedEvent.cs b/src/Stripe.net/Events/V1IssuingCardholderUpdatedEvent.cs new file mode 100644 index 0000000000..907bc29f9f --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingCardholderUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a cardholder is updated. + /// + public class V1IssuingCardholderUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Cardholder FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingCardholderUpdatedEventNotification.cs b/src/Stripe.net/Events/V1IssuingCardholderUpdatedEventNotification.cs new file mode 100644 index 0000000000..451a88322e --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingCardholderUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a cardholder is updated. + /// + public class V1IssuingCardholderUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Cardholder FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IssuingCardholderUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingDisputeClosedEvent.cs b/src/Stripe.net/Events/V1IssuingDisputeClosedEvent.cs new file mode 100644 index 0000000000..16b9b90a39 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingDisputeClosedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a dispute is won, lost or expired. + /// + public class V1IssuingDisputeClosedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Dispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingDisputeClosedEventNotification.cs b/src/Stripe.net/Events/V1IssuingDisputeClosedEventNotification.cs new file mode 100644 index 0000000000..5c557b0a82 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingDisputeClosedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a dispute is won, lost or expired. + /// + public class V1IssuingDisputeClosedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Dispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IssuingDisputeClosedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingDisputeCreatedEvent.cs b/src/Stripe.net/Events/V1IssuingDisputeCreatedEvent.cs new file mode 100644 index 0000000000..081c029656 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingDisputeCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a dispute is created. + /// + public class V1IssuingDisputeCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Dispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingDisputeCreatedEventNotification.cs b/src/Stripe.net/Events/V1IssuingDisputeCreatedEventNotification.cs new file mode 100644 index 0000000000..62262657c6 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingDisputeCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a dispute is created. + /// + public class V1IssuingDisputeCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Dispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IssuingDisputeCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingDisputeFundsReinstatedEvent.cs b/src/Stripe.net/Events/V1IssuingDisputeFundsReinstatedEvent.cs new file mode 100644 index 0000000000..097380c945 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingDisputeFundsReinstatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever funds are reinstated to your account for an Issuing dispute. + /// + public class V1IssuingDisputeFundsReinstatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Dispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingDisputeFundsReinstatedEventNotification.cs b/src/Stripe.net/Events/V1IssuingDisputeFundsReinstatedEventNotification.cs new file mode 100644 index 0000000000..0dbd826b8d --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingDisputeFundsReinstatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever funds are reinstated to your account for an Issuing dispute. + /// + public class V1IssuingDisputeFundsReinstatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Dispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IssuingDisputeFundsReinstatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingDisputeFundsRescindedEvent.cs b/src/Stripe.net/Events/V1IssuingDisputeFundsRescindedEvent.cs new file mode 100644 index 0000000000..982e044c6a --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingDisputeFundsRescindedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever funds are deducted from your account for an Issuing dispute. + /// + public class V1IssuingDisputeFundsRescindedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Dispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingDisputeFundsRescindedEventNotification.cs b/src/Stripe.net/Events/V1IssuingDisputeFundsRescindedEventNotification.cs new file mode 100644 index 0000000000..34a9dc78d5 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingDisputeFundsRescindedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever funds are deducted from your account for an Issuing dispute. + /// + public class V1IssuingDisputeFundsRescindedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Dispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IssuingDisputeFundsRescindedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingDisputeSubmittedEvent.cs b/src/Stripe.net/Events/V1IssuingDisputeSubmittedEvent.cs new file mode 100644 index 0000000000..b03a138ba1 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingDisputeSubmittedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a dispute is submitted. + /// + public class V1IssuingDisputeSubmittedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Dispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingDisputeSubmittedEventNotification.cs b/src/Stripe.net/Events/V1IssuingDisputeSubmittedEventNotification.cs new file mode 100644 index 0000000000..ee0fdd0863 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingDisputeSubmittedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a dispute is submitted. + /// + public class V1IssuingDisputeSubmittedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Dispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IssuingDisputeSubmittedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingDisputeUpdatedEvent.cs b/src/Stripe.net/Events/V1IssuingDisputeUpdatedEvent.cs new file mode 100644 index 0000000000..688824ffab --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingDisputeUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a dispute is updated. + /// + public class V1IssuingDisputeUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Dispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingDisputeUpdatedEventNotification.cs b/src/Stripe.net/Events/V1IssuingDisputeUpdatedEventNotification.cs new file mode 100644 index 0000000000..b57985f144 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingDisputeUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a dispute is updated. + /// + public class V1IssuingDisputeUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Dispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IssuingDisputeUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingPersonalizationDesignActivatedEvent.cs b/src/Stripe.net/Events/V1IssuingPersonalizationDesignActivatedEvent.cs new file mode 100644 index 0000000000..428119b4d5 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingPersonalizationDesignActivatedEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a personalization design is activated following the activation of the + /// physical bundle that belongs to it. + /// + public class V1IssuingPersonalizationDesignActivatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.PersonalizationDesign FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingPersonalizationDesignActivatedEventNotification.cs b/src/Stripe.net/Events/V1IssuingPersonalizationDesignActivatedEventNotification.cs new file mode 100644 index 0000000000..12f98396f7 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingPersonalizationDesignActivatedEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a personalization design is activated following the activation of the + /// physical bundle that belongs to it. + /// + public class V1IssuingPersonalizationDesignActivatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.PersonalizationDesign FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IssuingPersonalizationDesignActivatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingPersonalizationDesignDeactivatedEvent.cs b/src/Stripe.net/Events/V1IssuingPersonalizationDesignDeactivatedEvent.cs new file mode 100644 index 0000000000..75c3f0e716 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingPersonalizationDesignDeactivatedEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a personalization design is deactivated following the deactivation of + /// the physical bundle that belongs to it. + /// + public class V1IssuingPersonalizationDesignDeactivatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.PersonalizationDesign FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingPersonalizationDesignDeactivatedEventNotification.cs b/src/Stripe.net/Events/V1IssuingPersonalizationDesignDeactivatedEventNotification.cs new file mode 100644 index 0000000000..0e11a00a10 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingPersonalizationDesignDeactivatedEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a personalization design is deactivated following the deactivation of + /// the physical bundle that belongs to it. + /// + public class V1IssuingPersonalizationDesignDeactivatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.PersonalizationDesign FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IssuingPersonalizationDesignDeactivatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingPersonalizationDesignRejectedEvent.cs b/src/Stripe.net/Events/V1IssuingPersonalizationDesignRejectedEvent.cs new file mode 100644 index 0000000000..b8c81de469 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingPersonalizationDesignRejectedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a personalization design is rejected by design review. + /// + public class V1IssuingPersonalizationDesignRejectedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.PersonalizationDesign FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingPersonalizationDesignRejectedEventNotification.cs b/src/Stripe.net/Events/V1IssuingPersonalizationDesignRejectedEventNotification.cs new file mode 100644 index 0000000000..f5bd313603 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingPersonalizationDesignRejectedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a personalization design is rejected by design review. + /// + public class V1IssuingPersonalizationDesignRejectedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.PersonalizationDesign FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IssuingPersonalizationDesignRejectedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingPersonalizationDesignUpdatedEvent.cs b/src/Stripe.net/Events/V1IssuingPersonalizationDesignUpdatedEvent.cs new file mode 100644 index 0000000000..6b76cebd2e --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingPersonalizationDesignUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a personalization design is updated. + /// + public class V1IssuingPersonalizationDesignUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.PersonalizationDesign FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingPersonalizationDesignUpdatedEventNotification.cs b/src/Stripe.net/Events/V1IssuingPersonalizationDesignUpdatedEventNotification.cs new file mode 100644 index 0000000000..07bfdb850c --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingPersonalizationDesignUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a personalization design is updated. + /// + public class V1IssuingPersonalizationDesignUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.PersonalizationDesign FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IssuingPersonalizationDesignUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingTokenCreatedEvent.cs b/src/Stripe.net/Events/V1IssuingTokenCreatedEvent.cs new file mode 100644 index 0000000000..2f0188ffef --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingTokenCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an issuing digital wallet token is created. + /// + public class V1IssuingTokenCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Token FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingTokenCreatedEventNotification.cs b/src/Stripe.net/Events/V1IssuingTokenCreatedEventNotification.cs new file mode 100644 index 0000000000..6039541bac --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingTokenCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an issuing digital wallet token is created. + /// + public class V1IssuingTokenCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Token FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IssuingTokenCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingTokenUpdatedEvent.cs b/src/Stripe.net/Events/V1IssuingTokenUpdatedEvent.cs new file mode 100644 index 0000000000..a01bb6987e --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingTokenUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an issuing digital wallet token is updated. + /// + public class V1IssuingTokenUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Token FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingTokenUpdatedEventNotification.cs b/src/Stripe.net/Events/V1IssuingTokenUpdatedEventNotification.cs new file mode 100644 index 0000000000..94d06280ef --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingTokenUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an issuing digital wallet token is updated. + /// + public class V1IssuingTokenUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Token FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IssuingTokenUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingTransactionCreatedEvent.cs b/src/Stripe.net/Events/V1IssuingTransactionCreatedEvent.cs new file mode 100644 index 0000000000..685f07f2db --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingTransactionCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an issuing transaction is created. + /// + public class V1IssuingTransactionCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Transaction FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingTransactionCreatedEventNotification.cs b/src/Stripe.net/Events/V1IssuingTransactionCreatedEventNotification.cs new file mode 100644 index 0000000000..88699da2d3 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingTransactionCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an issuing transaction is created. + /// + public class V1IssuingTransactionCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Transaction FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IssuingTransactionCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent.cs b/src/Stripe.net/Events/V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent.cs new file mode 100644 index 0000000000..3d6a9f9c33 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an issuing transaction is updated with receipt data. + /// + public class V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Transaction FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingTransactionPurchaseDetailsReceiptUpdatedEventNotification.cs b/src/Stripe.net/Events/V1IssuingTransactionPurchaseDetailsReceiptUpdatedEventNotification.cs new file mode 100644 index 0000000000..1cea064f6e --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingTransactionPurchaseDetailsReceiptUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an issuing transaction is updated with receipt data. + /// + public class V1IssuingTransactionPurchaseDetailsReceiptUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Transaction FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingTransactionUpdatedEvent.cs b/src/Stripe.net/Events/V1IssuingTransactionUpdatedEvent.cs new file mode 100644 index 0000000000..cc1035f500 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingTransactionUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an issuing transaction is updated. + /// + public class V1IssuingTransactionUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Transaction FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1IssuingTransactionUpdatedEventNotification.cs b/src/Stripe.net/Events/V1IssuingTransactionUpdatedEventNotification.cs new file mode 100644 index 0000000000..562f620dc5 --- /dev/null +++ b/src/Stripe.net/Events/V1IssuingTransactionUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an issuing transaction is updated. + /// + public class V1IssuingTransactionUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Issuing.Transaction FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1IssuingTransactionUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1MandateUpdatedEvent.cs b/src/Stripe.net/Events/V1MandateUpdatedEvent.cs new file mode 100644 index 0000000000..2df2f8b2ed --- /dev/null +++ b/src/Stripe.net/Events/V1MandateUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a Mandate is updated. + /// + public class V1MandateUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Mandate FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1MandateUpdatedEventNotification.cs b/src/Stripe.net/Events/V1MandateUpdatedEventNotification.cs new file mode 100644 index 0000000000..d8720bc258 --- /dev/null +++ b/src/Stripe.net/Events/V1MandateUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a Mandate is updated. + /// + public class V1MandateUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Mandate FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1MandateUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentIntentAmountCapturableUpdatedEvent.cs b/src/Stripe.net/Events/V1PaymentIntentAmountCapturableUpdatedEvent.cs new file mode 100644 index 0000000000..0c5008ea98 --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentIntentAmountCapturableUpdatedEvent.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a PaymentIntent has funds to be captured. Check the amount_capturable + /// property on the PaymentIntent to determine the amount that can be captured. You may + /// capture the PaymentIntent with an amount_to_capture value up to the specified + /// amount. Learn more about + /// capturing PaymentIntents.. + /// + public class V1PaymentIntentAmountCapturableUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentIntentAmountCapturableUpdatedEventNotification.cs b/src/Stripe.net/Events/V1PaymentIntentAmountCapturableUpdatedEventNotification.cs new file mode 100644 index 0000000000..841ed75b4a --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentIntentAmountCapturableUpdatedEventNotification.cs @@ -0,0 +1,53 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a PaymentIntent has funds to be captured. Check the amount_capturable + /// property on the PaymentIntent to determine the amount that can be captured. You may + /// capture the PaymentIntent with an amount_to_capture value up to the specified + /// amount. Learn more about + /// capturing PaymentIntents.. + /// + public class V1PaymentIntentAmountCapturableUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PaymentIntentAmountCapturableUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentIntentCanceledEvent.cs b/src/Stripe.net/Events/V1PaymentIntentCanceledEvent.cs new file mode 100644 index 0000000000..0e16f4fb79 --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentIntentCanceledEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a PaymentIntent is canceled. + /// + public class V1PaymentIntentCanceledEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentIntentCanceledEventNotification.cs b/src/Stripe.net/Events/V1PaymentIntentCanceledEventNotification.cs new file mode 100644 index 0000000000..61659371ac --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentIntentCanceledEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a PaymentIntent is canceled. + /// + public class V1PaymentIntentCanceledEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PaymentIntentCanceledEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentIntentCreatedEvent.cs b/src/Stripe.net/Events/V1PaymentIntentCreatedEvent.cs new file mode 100644 index 0000000000..2980c48995 --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentIntentCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a new PaymentIntent is created. + /// + public class V1PaymentIntentCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentIntentCreatedEventNotification.cs b/src/Stripe.net/Events/V1PaymentIntentCreatedEventNotification.cs new file mode 100644 index 0000000000..fb1acd4cc7 --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentIntentCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a new PaymentIntent is created. + /// + public class V1PaymentIntentCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PaymentIntentCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentIntentPartiallyFundedEvent.cs b/src/Stripe.net/Events/V1PaymentIntentPartiallyFundedEvent.cs new file mode 100644 index 0000000000..86d71b60c6 --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentIntentPartiallyFundedEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when funds are applied to a customer_balance PaymentIntent and the + /// 'amount_remaining' changes. + /// + public class V1PaymentIntentPartiallyFundedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentIntentPartiallyFundedEventNotification.cs b/src/Stripe.net/Events/V1PaymentIntentPartiallyFundedEventNotification.cs new file mode 100644 index 0000000000..a275d72f1a --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentIntentPartiallyFundedEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when funds are applied to a customer_balance PaymentIntent and the + /// 'amount_remaining' changes. + /// + public class V1PaymentIntentPartiallyFundedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PaymentIntentPartiallyFundedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentIntentPaymentFailedEvent.cs b/src/Stripe.net/Events/V1PaymentIntentPaymentFailedEvent.cs new file mode 100644 index 0000000000..ef7f84b913 --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentIntentPaymentFailedEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a PaymentIntent has failed the attempt to create a payment method or a + /// payment. + /// + public class V1PaymentIntentPaymentFailedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentIntentPaymentFailedEventNotification.cs b/src/Stripe.net/Events/V1PaymentIntentPaymentFailedEventNotification.cs new file mode 100644 index 0000000000..3b953e357a --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentIntentPaymentFailedEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a PaymentIntent has failed the attempt to create a payment method or a + /// payment. + /// + public class V1PaymentIntentPaymentFailedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PaymentIntentPaymentFailedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentIntentProcessingEvent.cs b/src/Stripe.net/Events/V1PaymentIntentProcessingEvent.cs new file mode 100644 index 0000000000..6e96fd5b6c --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentIntentProcessingEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a PaymentIntent has started processing. + /// + public class V1PaymentIntentProcessingEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentIntentProcessingEventNotification.cs b/src/Stripe.net/Events/V1PaymentIntentProcessingEventNotification.cs new file mode 100644 index 0000000000..44186270f6 --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentIntentProcessingEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a PaymentIntent has started processing. + /// + public class V1PaymentIntentProcessingEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PaymentIntentProcessingEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentIntentRequiresActionEvent.cs b/src/Stripe.net/Events/V1PaymentIntentRequiresActionEvent.cs new file mode 100644 index 0000000000..7b6828e7f4 --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentIntentRequiresActionEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a PaymentIntent transitions to requires_action state. + /// + public class V1PaymentIntentRequiresActionEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentIntentRequiresActionEventNotification.cs b/src/Stripe.net/Events/V1PaymentIntentRequiresActionEventNotification.cs new file mode 100644 index 0000000000..b5e810b19f --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentIntentRequiresActionEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a PaymentIntent transitions to requires_action state. + /// + public class V1PaymentIntentRequiresActionEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PaymentIntentRequiresActionEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentIntentSucceededEvent.cs b/src/Stripe.net/Events/V1PaymentIntentSucceededEvent.cs new file mode 100644 index 0000000000..0aeca581f4 --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentIntentSucceededEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a PaymentIntent has successfully completed payment. + /// + public class V1PaymentIntentSucceededEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentIntentSucceededEventNotification.cs b/src/Stripe.net/Events/V1PaymentIntentSucceededEventNotification.cs new file mode 100644 index 0000000000..1092df67ba --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentIntentSucceededEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a PaymentIntent has successfully completed payment. + /// + public class V1PaymentIntentSucceededEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PaymentIntentSucceededEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentLinkCreatedEvent.cs b/src/Stripe.net/Events/V1PaymentLinkCreatedEvent.cs new file mode 100644 index 0000000000..9e711d4cf4 --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentLinkCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a payment link is created. + /// + public class V1PaymentLinkCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentLink FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentLinkCreatedEventNotification.cs b/src/Stripe.net/Events/V1PaymentLinkCreatedEventNotification.cs new file mode 100644 index 0000000000..71f02d23f2 --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentLinkCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a payment link is created. + /// + public class V1PaymentLinkCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentLink FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PaymentLinkCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentLinkUpdatedEvent.cs b/src/Stripe.net/Events/V1PaymentLinkUpdatedEvent.cs new file mode 100644 index 0000000000..1ecdb26e0e --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentLinkUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a payment link is updated. + /// + public class V1PaymentLinkUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentLink FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentLinkUpdatedEventNotification.cs b/src/Stripe.net/Events/V1PaymentLinkUpdatedEventNotification.cs new file mode 100644 index 0000000000..84325fa88b --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentLinkUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a payment link is updated. + /// + public class V1PaymentLinkUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentLink FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PaymentLinkUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentMethodAttachedEvent.cs b/src/Stripe.net/Events/V1PaymentMethodAttachedEvent.cs new file mode 100644 index 0000000000..7db620253a --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentMethodAttachedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a new payment method is attached to a customer. + /// + public class V1PaymentMethodAttachedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentMethod FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentMethodAttachedEventNotification.cs b/src/Stripe.net/Events/V1PaymentMethodAttachedEventNotification.cs new file mode 100644 index 0000000000..ed2c7cc908 --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentMethodAttachedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a new payment method is attached to a customer. + /// + public class V1PaymentMethodAttachedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentMethod FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PaymentMethodAttachedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentMethodAutomaticallyUpdatedEvent.cs b/src/Stripe.net/Events/V1PaymentMethodAutomaticallyUpdatedEvent.cs new file mode 100644 index 0000000000..cd857ebb5f --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentMethodAutomaticallyUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a payment method's details are automatically updated by the network. + /// + public class V1PaymentMethodAutomaticallyUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentMethod FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentMethodAutomaticallyUpdatedEventNotification.cs b/src/Stripe.net/Events/V1PaymentMethodAutomaticallyUpdatedEventNotification.cs new file mode 100644 index 0000000000..790a58e868 --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentMethodAutomaticallyUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a payment method's details are automatically updated by the network. + /// + public class V1PaymentMethodAutomaticallyUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentMethod FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PaymentMethodAutomaticallyUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentMethodDetachedEvent.cs b/src/Stripe.net/Events/V1PaymentMethodDetachedEvent.cs new file mode 100644 index 0000000000..936ba36773 --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentMethodDetachedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a payment method is detached from a customer. + /// + public class V1PaymentMethodDetachedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentMethod FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentMethodDetachedEventNotification.cs b/src/Stripe.net/Events/V1PaymentMethodDetachedEventNotification.cs new file mode 100644 index 0000000000..884c7e1253 --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentMethodDetachedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a payment method is detached from a customer. + /// + public class V1PaymentMethodDetachedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentMethod FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PaymentMethodDetachedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentMethodUpdatedEvent.cs b/src/Stripe.net/Events/V1PaymentMethodUpdatedEvent.cs new file mode 100644 index 0000000000..110130a240 --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentMethodUpdatedEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a payment method is updated via the PaymentMethod update API. + /// + public class V1PaymentMethodUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentMethod FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PaymentMethodUpdatedEventNotification.cs b/src/Stripe.net/Events/V1PaymentMethodUpdatedEventNotification.cs new file mode 100644 index 0000000000..6065726efd --- /dev/null +++ b/src/Stripe.net/Events/V1PaymentMethodUpdatedEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a payment method is updated via the PaymentMethod update API. + /// + public class V1PaymentMethodUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PaymentMethod FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PaymentMethodUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PayoutCanceledEvent.cs b/src/Stripe.net/Events/V1PayoutCanceledEvent.cs new file mode 100644 index 0000000000..d8731262b4 --- /dev/null +++ b/src/Stripe.net/Events/V1PayoutCanceledEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a payout is canceled. + /// + public class V1PayoutCanceledEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Payout FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PayoutCanceledEventNotification.cs b/src/Stripe.net/Events/V1PayoutCanceledEventNotification.cs new file mode 100644 index 0000000000..1b5680ceef --- /dev/null +++ b/src/Stripe.net/Events/V1PayoutCanceledEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a payout is canceled. + /// + public class V1PayoutCanceledEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Payout FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PayoutCanceledEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PayoutCreatedEvent.cs b/src/Stripe.net/Events/V1PayoutCreatedEvent.cs new file mode 100644 index 0000000000..e89735781e --- /dev/null +++ b/src/Stripe.net/Events/V1PayoutCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a payout is created. + /// + public class V1PayoutCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Payout FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PayoutCreatedEventNotification.cs b/src/Stripe.net/Events/V1PayoutCreatedEventNotification.cs new file mode 100644 index 0000000000..14418c1a34 --- /dev/null +++ b/src/Stripe.net/Events/V1PayoutCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a payout is created. + /// + public class V1PayoutCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Payout FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PayoutCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PayoutFailedEvent.cs b/src/Stripe.net/Events/V1PayoutFailedEvent.cs new file mode 100644 index 0000000000..07961ca1a7 --- /dev/null +++ b/src/Stripe.net/Events/V1PayoutFailedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a payout attempt fails. + /// + public class V1PayoutFailedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Payout FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PayoutFailedEventNotification.cs b/src/Stripe.net/Events/V1PayoutFailedEventNotification.cs new file mode 100644 index 0000000000..a63d69fd56 --- /dev/null +++ b/src/Stripe.net/Events/V1PayoutFailedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a payout attempt fails. + /// + public class V1PayoutFailedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Payout FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PayoutFailedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PayoutPaidEvent.cs b/src/Stripe.net/Events/V1PayoutPaidEvent.cs new file mode 100644 index 0000000000..a0cf38d116 --- /dev/null +++ b/src/Stripe.net/Events/V1PayoutPaidEvent.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a payout is expected to be available in the destination + /// account. If the payout fails, a payout.failed notification is also sent, at a + /// later time. + /// + public class V1PayoutPaidEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Payout FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PayoutPaidEventNotification.cs b/src/Stripe.net/Events/V1PayoutPaidEventNotification.cs new file mode 100644 index 0000000000..10758cc051 --- /dev/null +++ b/src/Stripe.net/Events/V1PayoutPaidEventNotification.cs @@ -0,0 +1,51 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a payout is expected to be available in the destination + /// account. If the payout fails, a payout.failed notification is also sent, at a + /// later time. + /// + public class V1PayoutPaidEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Payout FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PayoutPaidEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PayoutReconciliationCompletedEvent.cs b/src/Stripe.net/Events/V1PayoutReconciliationCompletedEvent.cs new file mode 100644 index 0000000000..ce52c3818f --- /dev/null +++ b/src/Stripe.net/Events/V1PayoutReconciliationCompletedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever balance transactions paid out in an automatic payout can be queried. + /// + public class V1PayoutReconciliationCompletedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Payout FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PayoutReconciliationCompletedEventNotification.cs b/src/Stripe.net/Events/V1PayoutReconciliationCompletedEventNotification.cs new file mode 100644 index 0000000000..d787db84c4 --- /dev/null +++ b/src/Stripe.net/Events/V1PayoutReconciliationCompletedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever balance transactions paid out in an automatic payout can be queried. + /// + public class V1PayoutReconciliationCompletedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Payout FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PayoutReconciliationCompletedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PayoutUpdatedEvent.cs b/src/Stripe.net/Events/V1PayoutUpdatedEvent.cs new file mode 100644 index 0000000000..1b0ea9e427 --- /dev/null +++ b/src/Stripe.net/Events/V1PayoutUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a payout is updated. + /// + public class V1PayoutUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Payout FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PayoutUpdatedEventNotification.cs b/src/Stripe.net/Events/V1PayoutUpdatedEventNotification.cs new file mode 100644 index 0000000000..e605997a1b --- /dev/null +++ b/src/Stripe.net/Events/V1PayoutUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a payout is updated. + /// + public class V1PayoutUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Payout FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PayoutUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PersonCreatedEvent.cs b/src/Stripe.net/Events/V1PersonCreatedEvent.cs new file mode 100644 index 0000000000..7327943672 --- /dev/null +++ b/src/Stripe.net/Events/V1PersonCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a person associated with an account is created. + /// + public class V1PersonCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Person FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PersonCreatedEventNotification.cs b/src/Stripe.net/Events/V1PersonCreatedEventNotification.cs new file mode 100644 index 0000000000..6dc8957e1a --- /dev/null +++ b/src/Stripe.net/Events/V1PersonCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a person associated with an account is created. + /// + public class V1PersonCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Person FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PersonCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PersonDeletedEvent.cs b/src/Stripe.net/Events/V1PersonDeletedEvent.cs new file mode 100644 index 0000000000..2f90fd686b --- /dev/null +++ b/src/Stripe.net/Events/V1PersonDeletedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a person associated with an account is deleted. + /// + public class V1PersonDeletedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Person FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PersonDeletedEventNotification.cs b/src/Stripe.net/Events/V1PersonDeletedEventNotification.cs new file mode 100644 index 0000000000..eba51b5e90 --- /dev/null +++ b/src/Stripe.net/Events/V1PersonDeletedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a person associated with an account is deleted. + /// + public class V1PersonDeletedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Person FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PersonDeletedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PersonUpdatedEvent.cs b/src/Stripe.net/Events/V1PersonUpdatedEvent.cs new file mode 100644 index 0000000000..f260f8056e --- /dev/null +++ b/src/Stripe.net/Events/V1PersonUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a person associated with an account is updated. + /// + public class V1PersonUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Person FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PersonUpdatedEventNotification.cs b/src/Stripe.net/Events/V1PersonUpdatedEventNotification.cs new file mode 100644 index 0000000000..2dc63901ec --- /dev/null +++ b/src/Stripe.net/Events/V1PersonUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a person associated with an account is updated. + /// + public class V1PersonUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Person FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PersonUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PlanCreatedEvent.cs b/src/Stripe.net/Events/V1PlanCreatedEvent.cs new file mode 100644 index 0000000000..ea7a7c4c3d --- /dev/null +++ b/src/Stripe.net/Events/V1PlanCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a plan is created. + /// + public class V1PlanCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Plan FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PlanCreatedEventNotification.cs b/src/Stripe.net/Events/V1PlanCreatedEventNotification.cs new file mode 100644 index 0000000000..ad25b2971d --- /dev/null +++ b/src/Stripe.net/Events/V1PlanCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a plan is created. + /// + public class V1PlanCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Plan FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PlanCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PlanDeletedEvent.cs b/src/Stripe.net/Events/V1PlanDeletedEvent.cs new file mode 100644 index 0000000000..27a6aa8acc --- /dev/null +++ b/src/Stripe.net/Events/V1PlanDeletedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a plan is deleted. + /// + public class V1PlanDeletedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Plan FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PlanDeletedEventNotification.cs b/src/Stripe.net/Events/V1PlanDeletedEventNotification.cs new file mode 100644 index 0000000000..cd11c73bfd --- /dev/null +++ b/src/Stripe.net/Events/V1PlanDeletedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a plan is deleted. + /// + public class V1PlanDeletedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Plan FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PlanDeletedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PlanUpdatedEvent.cs b/src/Stripe.net/Events/V1PlanUpdatedEvent.cs new file mode 100644 index 0000000000..1b1c78b4dd --- /dev/null +++ b/src/Stripe.net/Events/V1PlanUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a plan is updated. + /// + public class V1PlanUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Plan FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PlanUpdatedEventNotification.cs b/src/Stripe.net/Events/V1PlanUpdatedEventNotification.cs new file mode 100644 index 0000000000..3856745c3a --- /dev/null +++ b/src/Stripe.net/Events/V1PlanUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a plan is updated. + /// + public class V1PlanUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Plan FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PlanUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PriceCreatedEvent.cs b/src/Stripe.net/Events/V1PriceCreatedEvent.cs new file mode 100644 index 0000000000..deffaaa561 --- /dev/null +++ b/src/Stripe.net/Events/V1PriceCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a price is created. + /// + public class V1PriceCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Price FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PriceCreatedEventNotification.cs b/src/Stripe.net/Events/V1PriceCreatedEventNotification.cs new file mode 100644 index 0000000000..b31859c879 --- /dev/null +++ b/src/Stripe.net/Events/V1PriceCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a price is created. + /// + public class V1PriceCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Price FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PriceCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PriceDeletedEvent.cs b/src/Stripe.net/Events/V1PriceDeletedEvent.cs new file mode 100644 index 0000000000..9d72edc949 --- /dev/null +++ b/src/Stripe.net/Events/V1PriceDeletedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a price is deleted. + /// + public class V1PriceDeletedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Price FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PriceDeletedEventNotification.cs b/src/Stripe.net/Events/V1PriceDeletedEventNotification.cs new file mode 100644 index 0000000000..e059d58425 --- /dev/null +++ b/src/Stripe.net/Events/V1PriceDeletedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a price is deleted. + /// + public class V1PriceDeletedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Price FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PriceDeletedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PriceUpdatedEvent.cs b/src/Stripe.net/Events/V1PriceUpdatedEvent.cs new file mode 100644 index 0000000000..87f553f8e1 --- /dev/null +++ b/src/Stripe.net/Events/V1PriceUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a price is updated. + /// + public class V1PriceUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Price FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PriceUpdatedEventNotification.cs b/src/Stripe.net/Events/V1PriceUpdatedEventNotification.cs new file mode 100644 index 0000000000..5526e059d8 --- /dev/null +++ b/src/Stripe.net/Events/V1PriceUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a price is updated. + /// + public class V1PriceUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Price FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PriceUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ProductCreatedEvent.cs b/src/Stripe.net/Events/V1ProductCreatedEvent.cs new file mode 100644 index 0000000000..3d9fbf0bd5 --- /dev/null +++ b/src/Stripe.net/Events/V1ProductCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a product is created. + /// + public class V1ProductCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Product FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ProductCreatedEventNotification.cs b/src/Stripe.net/Events/V1ProductCreatedEventNotification.cs new file mode 100644 index 0000000000..3981f1f54a --- /dev/null +++ b/src/Stripe.net/Events/V1ProductCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a product is created. + /// + public class V1ProductCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Product FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ProductCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ProductDeletedEvent.cs b/src/Stripe.net/Events/V1ProductDeletedEvent.cs new file mode 100644 index 0000000000..54613dc202 --- /dev/null +++ b/src/Stripe.net/Events/V1ProductDeletedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a product is deleted. + /// + public class V1ProductDeletedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Product FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ProductDeletedEventNotification.cs b/src/Stripe.net/Events/V1ProductDeletedEventNotification.cs new file mode 100644 index 0000000000..6223e922d9 --- /dev/null +++ b/src/Stripe.net/Events/V1ProductDeletedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a product is deleted. + /// + public class V1ProductDeletedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Product FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ProductDeletedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ProductUpdatedEvent.cs b/src/Stripe.net/Events/V1ProductUpdatedEvent.cs new file mode 100644 index 0000000000..f88adeeb53 --- /dev/null +++ b/src/Stripe.net/Events/V1ProductUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a product is updated. + /// + public class V1ProductUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Product FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ProductUpdatedEventNotification.cs b/src/Stripe.net/Events/V1ProductUpdatedEventNotification.cs new file mode 100644 index 0000000000..e0c0d7d376 --- /dev/null +++ b/src/Stripe.net/Events/V1ProductUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a product is updated. + /// + public class V1ProductUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Product FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ProductUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PromotionCodeCreatedEvent.cs b/src/Stripe.net/Events/V1PromotionCodeCreatedEvent.cs new file mode 100644 index 0000000000..2a9c4076bc --- /dev/null +++ b/src/Stripe.net/Events/V1PromotionCodeCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a promotion code is created. + /// + public class V1PromotionCodeCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PromotionCode FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PromotionCodeCreatedEventNotification.cs b/src/Stripe.net/Events/V1PromotionCodeCreatedEventNotification.cs new file mode 100644 index 0000000000..3ee7e67db5 --- /dev/null +++ b/src/Stripe.net/Events/V1PromotionCodeCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a promotion code is created. + /// + public class V1PromotionCodeCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PromotionCode FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PromotionCodeCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1PromotionCodeUpdatedEvent.cs b/src/Stripe.net/Events/V1PromotionCodeUpdatedEvent.cs new file mode 100644 index 0000000000..9f9620a0c2 --- /dev/null +++ b/src/Stripe.net/Events/V1PromotionCodeUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a promotion code is updated. + /// + public class V1PromotionCodeUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PromotionCode FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1PromotionCodeUpdatedEventNotification.cs b/src/Stripe.net/Events/V1PromotionCodeUpdatedEventNotification.cs new file mode 100644 index 0000000000..42e15bde6b --- /dev/null +++ b/src/Stripe.net/Events/V1PromotionCodeUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a promotion code is updated. + /// + public class V1PromotionCodeUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public PromotionCode FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1PromotionCodeUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1QuoteAcceptedEvent.cs b/src/Stripe.net/Events/V1QuoteAcceptedEvent.cs new file mode 100644 index 0000000000..dc5ea7bad2 --- /dev/null +++ b/src/Stripe.net/Events/V1QuoteAcceptedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a quote is accepted. + /// + public class V1QuoteAcceptedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Quote FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1QuoteAcceptedEventNotification.cs b/src/Stripe.net/Events/V1QuoteAcceptedEventNotification.cs new file mode 100644 index 0000000000..9d03e1e91f --- /dev/null +++ b/src/Stripe.net/Events/V1QuoteAcceptedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a quote is accepted. + /// + public class V1QuoteAcceptedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Quote FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1QuoteAcceptedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1QuoteCanceledEvent.cs b/src/Stripe.net/Events/V1QuoteCanceledEvent.cs new file mode 100644 index 0000000000..62789cc694 --- /dev/null +++ b/src/Stripe.net/Events/V1QuoteCanceledEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a quote is canceled. + /// + public class V1QuoteCanceledEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Quote FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1QuoteCanceledEventNotification.cs b/src/Stripe.net/Events/V1QuoteCanceledEventNotification.cs new file mode 100644 index 0000000000..aa8f71e530 --- /dev/null +++ b/src/Stripe.net/Events/V1QuoteCanceledEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a quote is canceled. + /// + public class V1QuoteCanceledEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Quote FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1QuoteCanceledEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1QuoteCreatedEvent.cs b/src/Stripe.net/Events/V1QuoteCreatedEvent.cs new file mode 100644 index 0000000000..567502a7da --- /dev/null +++ b/src/Stripe.net/Events/V1QuoteCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a quote is created. + /// + public class V1QuoteCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Quote FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1QuoteCreatedEventNotification.cs b/src/Stripe.net/Events/V1QuoteCreatedEventNotification.cs new file mode 100644 index 0000000000..0a21f5dbe7 --- /dev/null +++ b/src/Stripe.net/Events/V1QuoteCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a quote is created. + /// + public class V1QuoteCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Quote FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1QuoteCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1QuoteFinalizedEvent.cs b/src/Stripe.net/Events/V1QuoteFinalizedEvent.cs new file mode 100644 index 0000000000..2d64d786d7 --- /dev/null +++ b/src/Stripe.net/Events/V1QuoteFinalizedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a quote is finalized. + /// + public class V1QuoteFinalizedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Quote FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1QuoteFinalizedEventNotification.cs b/src/Stripe.net/Events/V1QuoteFinalizedEventNotification.cs new file mode 100644 index 0000000000..b4b27b4616 --- /dev/null +++ b/src/Stripe.net/Events/V1QuoteFinalizedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a quote is finalized. + /// + public class V1QuoteFinalizedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Quote FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1QuoteFinalizedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1RadarEarlyFraudWarningCreatedEvent.cs b/src/Stripe.net/Events/V1RadarEarlyFraudWarningCreatedEvent.cs new file mode 100644 index 0000000000..8d116f5dd8 --- /dev/null +++ b/src/Stripe.net/Events/V1RadarEarlyFraudWarningCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an early fraud warning is created. + /// + public class V1RadarEarlyFraudWarningCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Radar.EarlyFraudWarning FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1RadarEarlyFraudWarningCreatedEventNotification.cs b/src/Stripe.net/Events/V1RadarEarlyFraudWarningCreatedEventNotification.cs new file mode 100644 index 0000000000..62e3c9f114 --- /dev/null +++ b/src/Stripe.net/Events/V1RadarEarlyFraudWarningCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an early fraud warning is created. + /// + public class V1RadarEarlyFraudWarningCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Radar.EarlyFraudWarning FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1RadarEarlyFraudWarningCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1RadarEarlyFraudWarningUpdatedEvent.cs b/src/Stripe.net/Events/V1RadarEarlyFraudWarningUpdatedEvent.cs new file mode 100644 index 0000000000..0527c9741e --- /dev/null +++ b/src/Stripe.net/Events/V1RadarEarlyFraudWarningUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an early fraud warning is updated. + /// + public class V1RadarEarlyFraudWarningUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Radar.EarlyFraudWarning FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1RadarEarlyFraudWarningUpdatedEventNotification.cs b/src/Stripe.net/Events/V1RadarEarlyFraudWarningUpdatedEventNotification.cs new file mode 100644 index 0000000000..c17bf79921 --- /dev/null +++ b/src/Stripe.net/Events/V1RadarEarlyFraudWarningUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an early fraud warning is updated. + /// + public class V1RadarEarlyFraudWarningUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Radar.EarlyFraudWarning FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1RadarEarlyFraudWarningUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1RefundCreatedEvent.cs b/src/Stripe.net/Events/V1RefundCreatedEvent.cs new file mode 100644 index 0000000000..1a058bf86e --- /dev/null +++ b/src/Stripe.net/Events/V1RefundCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a refund is created. + /// + public class V1RefundCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Refund FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1RefundCreatedEventNotification.cs b/src/Stripe.net/Events/V1RefundCreatedEventNotification.cs new file mode 100644 index 0000000000..687c39da4f --- /dev/null +++ b/src/Stripe.net/Events/V1RefundCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a refund is created. + /// + public class V1RefundCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Refund FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1RefundCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1RefundFailedEvent.cs b/src/Stripe.net/Events/V1RefundFailedEvent.cs new file mode 100644 index 0000000000..266548544a --- /dev/null +++ b/src/Stripe.net/Events/V1RefundFailedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a refund has failed. + /// + public class V1RefundFailedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Refund FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1RefundFailedEventNotification.cs b/src/Stripe.net/Events/V1RefundFailedEventNotification.cs new file mode 100644 index 0000000000..d7b8246a1b --- /dev/null +++ b/src/Stripe.net/Events/V1RefundFailedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a refund has failed. + /// + public class V1RefundFailedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Refund FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1RefundFailedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1RefundUpdatedEvent.cs b/src/Stripe.net/Events/V1RefundUpdatedEvent.cs new file mode 100644 index 0000000000..3b00bdf77f --- /dev/null +++ b/src/Stripe.net/Events/V1RefundUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a refund is updated. + /// + public class V1RefundUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Refund FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1RefundUpdatedEventNotification.cs b/src/Stripe.net/Events/V1RefundUpdatedEventNotification.cs new file mode 100644 index 0000000000..60c21ad112 --- /dev/null +++ b/src/Stripe.net/Events/V1RefundUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a refund is updated. + /// + public class V1RefundUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Refund FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1RefundUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ReviewClosedEvent.cs b/src/Stripe.net/Events/V1ReviewClosedEvent.cs new file mode 100644 index 0000000000..deb7ae3f70 --- /dev/null +++ b/src/Stripe.net/Events/V1ReviewClosedEvent.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a review is closed. The review's reason field indicates why: + /// approved, disputed, refunded, refunded_as_fraud, or + /// canceled. + /// + public class V1ReviewClosedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Review FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ReviewClosedEventNotification.cs b/src/Stripe.net/Events/V1ReviewClosedEventNotification.cs new file mode 100644 index 0000000000..679f9d1a07 --- /dev/null +++ b/src/Stripe.net/Events/V1ReviewClosedEventNotification.cs @@ -0,0 +1,51 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a review is closed. The review's reason field indicates why: + /// approved, disputed, refunded, refunded_as_fraud, or + /// canceled. + /// + public class V1ReviewClosedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Review FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ReviewClosedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1ReviewOpenedEvent.cs b/src/Stripe.net/Events/V1ReviewOpenedEvent.cs new file mode 100644 index 0000000000..e1b5c3463a --- /dev/null +++ b/src/Stripe.net/Events/V1ReviewOpenedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a review is opened. + /// + public class V1ReviewOpenedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Review FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1ReviewOpenedEventNotification.cs b/src/Stripe.net/Events/V1ReviewOpenedEventNotification.cs new file mode 100644 index 0000000000..e6c39293d1 --- /dev/null +++ b/src/Stripe.net/Events/V1ReviewOpenedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a review is opened. + /// + public class V1ReviewOpenedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Review FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1ReviewOpenedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1SetupIntentCanceledEvent.cs b/src/Stripe.net/Events/V1SetupIntentCanceledEvent.cs new file mode 100644 index 0000000000..a9a0e57021 --- /dev/null +++ b/src/Stripe.net/Events/V1SetupIntentCanceledEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a SetupIntent is canceled. + /// + public class V1SetupIntentCanceledEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SetupIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1SetupIntentCanceledEventNotification.cs b/src/Stripe.net/Events/V1SetupIntentCanceledEventNotification.cs new file mode 100644 index 0000000000..80266a61e1 --- /dev/null +++ b/src/Stripe.net/Events/V1SetupIntentCanceledEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a SetupIntent is canceled. + /// + public class V1SetupIntentCanceledEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SetupIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1SetupIntentCanceledEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1SetupIntentCreatedEvent.cs b/src/Stripe.net/Events/V1SetupIntentCreatedEvent.cs new file mode 100644 index 0000000000..1f09c03631 --- /dev/null +++ b/src/Stripe.net/Events/V1SetupIntentCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a new SetupIntent is created. + /// + public class V1SetupIntentCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SetupIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1SetupIntentCreatedEventNotification.cs b/src/Stripe.net/Events/V1SetupIntentCreatedEventNotification.cs new file mode 100644 index 0000000000..def19fbd20 --- /dev/null +++ b/src/Stripe.net/Events/V1SetupIntentCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a new SetupIntent is created. + /// + public class V1SetupIntentCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SetupIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1SetupIntentCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1SetupIntentRequiresActionEvent.cs b/src/Stripe.net/Events/V1SetupIntentRequiresActionEvent.cs new file mode 100644 index 0000000000..0a51c37c45 --- /dev/null +++ b/src/Stripe.net/Events/V1SetupIntentRequiresActionEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a SetupIntent is in requires_action state. + /// + public class V1SetupIntentRequiresActionEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SetupIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1SetupIntentRequiresActionEventNotification.cs b/src/Stripe.net/Events/V1SetupIntentRequiresActionEventNotification.cs new file mode 100644 index 0000000000..e136295113 --- /dev/null +++ b/src/Stripe.net/Events/V1SetupIntentRequiresActionEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a SetupIntent is in requires_action state. + /// + public class V1SetupIntentRequiresActionEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SetupIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1SetupIntentRequiresActionEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1SetupIntentSetupFailedEvent.cs b/src/Stripe.net/Events/V1SetupIntentSetupFailedEvent.cs new file mode 100644 index 0000000000..ca9ec771cd --- /dev/null +++ b/src/Stripe.net/Events/V1SetupIntentSetupFailedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a SetupIntent has failed the attempt to setup a payment method. + /// + public class V1SetupIntentSetupFailedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SetupIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1SetupIntentSetupFailedEventNotification.cs b/src/Stripe.net/Events/V1SetupIntentSetupFailedEventNotification.cs new file mode 100644 index 0000000000..66937ac331 --- /dev/null +++ b/src/Stripe.net/Events/V1SetupIntentSetupFailedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a SetupIntent has failed the attempt to setup a payment method. + /// + public class V1SetupIntentSetupFailedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SetupIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1SetupIntentSetupFailedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1SetupIntentSucceededEvent.cs b/src/Stripe.net/Events/V1SetupIntentSucceededEvent.cs new file mode 100644 index 0000000000..623ceea1f5 --- /dev/null +++ b/src/Stripe.net/Events/V1SetupIntentSucceededEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an SetupIntent has successfully setup a payment method. + /// + public class V1SetupIntentSucceededEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SetupIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1SetupIntentSucceededEventNotification.cs b/src/Stripe.net/Events/V1SetupIntentSucceededEventNotification.cs new file mode 100644 index 0000000000..6ff7ccab5d --- /dev/null +++ b/src/Stripe.net/Events/V1SetupIntentSucceededEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an SetupIntent has successfully setup a payment method. + /// + public class V1SetupIntentSucceededEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SetupIntent FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1SetupIntentSucceededEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1SigmaScheduledQueryRunCreatedEvent.cs b/src/Stripe.net/Events/V1SigmaScheduledQueryRunCreatedEvent.cs new file mode 100644 index 0000000000..ed80925b96 --- /dev/null +++ b/src/Stripe.net/Events/V1SigmaScheduledQueryRunCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a Sigma scheduled query run finishes. + /// + public class V1SigmaScheduledQueryRunCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Sigma.ScheduledQueryRun FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1SigmaScheduledQueryRunCreatedEventNotification.cs b/src/Stripe.net/Events/V1SigmaScheduledQueryRunCreatedEventNotification.cs new file mode 100644 index 0000000000..3ce8899d70 --- /dev/null +++ b/src/Stripe.net/Events/V1SigmaScheduledQueryRunCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a Sigma scheduled query run finishes. + /// + public class V1SigmaScheduledQueryRunCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Sigma.ScheduledQueryRun FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1SigmaScheduledQueryRunCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1SourceCanceledEvent.cs b/src/Stripe.net/Events/V1SourceCanceledEvent.cs new file mode 100644 index 0000000000..ac3f0e2b6b --- /dev/null +++ b/src/Stripe.net/Events/V1SourceCanceledEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a source is canceled. + /// + public class V1SourceCanceledEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Source FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1SourceCanceledEventNotification.cs b/src/Stripe.net/Events/V1SourceCanceledEventNotification.cs new file mode 100644 index 0000000000..3c7e671c8b --- /dev/null +++ b/src/Stripe.net/Events/V1SourceCanceledEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a source is canceled. + /// + public class V1SourceCanceledEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Source FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1SourceCanceledEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1SourceChargeableEvent.cs b/src/Stripe.net/Events/V1SourceChargeableEvent.cs new file mode 100644 index 0000000000..31d82eaa93 --- /dev/null +++ b/src/Stripe.net/Events/V1SourceChargeableEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a source transitions to chargeable. + /// + public class V1SourceChargeableEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Source FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1SourceChargeableEventNotification.cs b/src/Stripe.net/Events/V1SourceChargeableEventNotification.cs new file mode 100644 index 0000000000..fb00c99681 --- /dev/null +++ b/src/Stripe.net/Events/V1SourceChargeableEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a source transitions to chargeable. + /// + public class V1SourceChargeableEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Source FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1SourceChargeableEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1SourceFailedEvent.cs b/src/Stripe.net/Events/V1SourceFailedEvent.cs new file mode 100644 index 0000000000..645caea544 --- /dev/null +++ b/src/Stripe.net/Events/V1SourceFailedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a source fails. + /// + public class V1SourceFailedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Source FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1SourceFailedEventNotification.cs b/src/Stripe.net/Events/V1SourceFailedEventNotification.cs new file mode 100644 index 0000000000..ec3e2171a1 --- /dev/null +++ b/src/Stripe.net/Events/V1SourceFailedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a source fails. + /// + public class V1SourceFailedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Source FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1SourceFailedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1SourceRefundAttributesRequiredEvent.cs b/src/Stripe.net/Events/V1SourceRefundAttributesRequiredEvent.cs new file mode 100644 index 0000000000..91a9e7e725 --- /dev/null +++ b/src/Stripe.net/Events/V1SourceRefundAttributesRequiredEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever the refund attributes are required on a receiver source to process a + /// refund or a mispayment. + /// + public class V1SourceRefundAttributesRequiredEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Source FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1SourceRefundAttributesRequiredEventNotification.cs b/src/Stripe.net/Events/V1SourceRefundAttributesRequiredEventNotification.cs new file mode 100644 index 0000000000..ef744c98ec --- /dev/null +++ b/src/Stripe.net/Events/V1SourceRefundAttributesRequiredEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever the refund attributes are required on a receiver source to process a + /// refund or a mispayment. + /// + public class V1SourceRefundAttributesRequiredEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Source FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1SourceRefundAttributesRequiredEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1SubscriptionScheduleAbortedEvent.cs b/src/Stripe.net/Events/V1SubscriptionScheduleAbortedEvent.cs new file mode 100644 index 0000000000..4ffe532b6a --- /dev/null +++ b/src/Stripe.net/Events/V1SubscriptionScheduleAbortedEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a subscription schedule is canceled due to the underlying subscription + /// being canceled because of delinquency. + /// + public class V1SubscriptionScheduleAbortedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SubscriptionSchedule FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1SubscriptionScheduleAbortedEventNotification.cs b/src/Stripe.net/Events/V1SubscriptionScheduleAbortedEventNotification.cs new file mode 100644 index 0000000000..dff09df2d4 --- /dev/null +++ b/src/Stripe.net/Events/V1SubscriptionScheduleAbortedEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a subscription schedule is canceled due to the underlying subscription + /// being canceled because of delinquency. + /// + public class V1SubscriptionScheduleAbortedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SubscriptionSchedule FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1SubscriptionScheduleAbortedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1SubscriptionScheduleCanceledEvent.cs b/src/Stripe.net/Events/V1SubscriptionScheduleCanceledEvent.cs new file mode 100644 index 0000000000..a8470590cb --- /dev/null +++ b/src/Stripe.net/Events/V1SubscriptionScheduleCanceledEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a subscription schedule is canceled. + /// + public class V1SubscriptionScheduleCanceledEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SubscriptionSchedule FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1SubscriptionScheduleCanceledEventNotification.cs b/src/Stripe.net/Events/V1SubscriptionScheduleCanceledEventNotification.cs new file mode 100644 index 0000000000..5abbcbfd47 --- /dev/null +++ b/src/Stripe.net/Events/V1SubscriptionScheduleCanceledEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a subscription schedule is canceled. + /// + public class V1SubscriptionScheduleCanceledEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SubscriptionSchedule FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1SubscriptionScheduleCanceledEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1SubscriptionScheduleCompletedEvent.cs b/src/Stripe.net/Events/V1SubscriptionScheduleCompletedEvent.cs new file mode 100644 index 0000000000..31e5de0da5 --- /dev/null +++ b/src/Stripe.net/Events/V1SubscriptionScheduleCompletedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a new subscription schedule is completed. + /// + public class V1SubscriptionScheduleCompletedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SubscriptionSchedule FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1SubscriptionScheduleCompletedEventNotification.cs b/src/Stripe.net/Events/V1SubscriptionScheduleCompletedEventNotification.cs new file mode 100644 index 0000000000..b60ad73bd0 --- /dev/null +++ b/src/Stripe.net/Events/V1SubscriptionScheduleCompletedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a new subscription schedule is completed. + /// + public class V1SubscriptionScheduleCompletedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SubscriptionSchedule FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1SubscriptionScheduleCompletedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1SubscriptionScheduleCreatedEvent.cs b/src/Stripe.net/Events/V1SubscriptionScheduleCreatedEvent.cs new file mode 100644 index 0000000000..232d4f9cee --- /dev/null +++ b/src/Stripe.net/Events/V1SubscriptionScheduleCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a new subscription schedule is created. + /// + public class V1SubscriptionScheduleCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SubscriptionSchedule FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1SubscriptionScheduleCreatedEventNotification.cs b/src/Stripe.net/Events/V1SubscriptionScheduleCreatedEventNotification.cs new file mode 100644 index 0000000000..ddf403d447 --- /dev/null +++ b/src/Stripe.net/Events/V1SubscriptionScheduleCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a new subscription schedule is created. + /// + public class V1SubscriptionScheduleCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SubscriptionSchedule FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1SubscriptionScheduleCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1SubscriptionScheduleExpiringEvent.cs b/src/Stripe.net/Events/V1SubscriptionScheduleExpiringEvent.cs new file mode 100644 index 0000000000..5ac1e54e47 --- /dev/null +++ b/src/Stripe.net/Events/V1SubscriptionScheduleExpiringEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs 7 days before a subscription schedule will expire. + /// + public class V1SubscriptionScheduleExpiringEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SubscriptionSchedule FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1SubscriptionScheduleExpiringEventNotification.cs b/src/Stripe.net/Events/V1SubscriptionScheduleExpiringEventNotification.cs new file mode 100644 index 0000000000..bf6a39e0a4 --- /dev/null +++ b/src/Stripe.net/Events/V1SubscriptionScheduleExpiringEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs 7 days before a subscription schedule will expire. + /// + public class V1SubscriptionScheduleExpiringEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SubscriptionSchedule FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1SubscriptionScheduleExpiringEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1SubscriptionScheduleReleasedEvent.cs b/src/Stripe.net/Events/V1SubscriptionScheduleReleasedEvent.cs new file mode 100644 index 0000000000..f4a05b5faf --- /dev/null +++ b/src/Stripe.net/Events/V1SubscriptionScheduleReleasedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a new subscription schedule is released. + /// + public class V1SubscriptionScheduleReleasedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SubscriptionSchedule FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1SubscriptionScheduleReleasedEventNotification.cs b/src/Stripe.net/Events/V1SubscriptionScheduleReleasedEventNotification.cs new file mode 100644 index 0000000000..fce802d54a --- /dev/null +++ b/src/Stripe.net/Events/V1SubscriptionScheduleReleasedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a new subscription schedule is released. + /// + public class V1SubscriptionScheduleReleasedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SubscriptionSchedule FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1SubscriptionScheduleReleasedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1SubscriptionScheduleUpdatedEvent.cs b/src/Stripe.net/Events/V1SubscriptionScheduleUpdatedEvent.cs new file mode 100644 index 0000000000..dd7693629a --- /dev/null +++ b/src/Stripe.net/Events/V1SubscriptionScheduleUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a subscription schedule is updated. + /// + public class V1SubscriptionScheduleUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SubscriptionSchedule FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1SubscriptionScheduleUpdatedEventNotification.cs b/src/Stripe.net/Events/V1SubscriptionScheduleUpdatedEventNotification.cs new file mode 100644 index 0000000000..4b37153711 --- /dev/null +++ b/src/Stripe.net/Events/V1SubscriptionScheduleUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a subscription schedule is updated. + /// + public class V1SubscriptionScheduleUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public SubscriptionSchedule FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1SubscriptionScheduleUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1TaxRateCreatedEvent.cs b/src/Stripe.net/Events/V1TaxRateCreatedEvent.cs new file mode 100644 index 0000000000..ca2a6a7a95 --- /dev/null +++ b/src/Stripe.net/Events/V1TaxRateCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a new tax rate is created. + /// + public class V1TaxRateCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public TaxRate FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1TaxRateCreatedEventNotification.cs b/src/Stripe.net/Events/V1TaxRateCreatedEventNotification.cs new file mode 100644 index 0000000000..208aecc332 --- /dev/null +++ b/src/Stripe.net/Events/V1TaxRateCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a new tax rate is created. + /// + public class V1TaxRateCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public TaxRate FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1TaxRateCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1TaxRateUpdatedEvent.cs b/src/Stripe.net/Events/V1TaxRateUpdatedEvent.cs new file mode 100644 index 0000000000..9da13baafe --- /dev/null +++ b/src/Stripe.net/Events/V1TaxRateUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a tax rate is updated. + /// + public class V1TaxRateUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public TaxRate FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1TaxRateUpdatedEventNotification.cs b/src/Stripe.net/Events/V1TaxRateUpdatedEventNotification.cs new file mode 100644 index 0000000000..b8c12d5f94 --- /dev/null +++ b/src/Stripe.net/Events/V1TaxRateUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a tax rate is updated. + /// + public class V1TaxRateUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public TaxRate FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1TaxRateUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1TaxSettingsUpdatedEvent.cs b/src/Stripe.net/Events/V1TaxSettingsUpdatedEvent.cs new file mode 100644 index 0000000000..dc6afcee12 --- /dev/null +++ b/src/Stripe.net/Events/V1TaxSettingsUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever tax settings is updated. + /// + public class V1TaxSettingsUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Tax.Settings FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1TaxSettingsUpdatedEventNotification.cs b/src/Stripe.net/Events/V1TaxSettingsUpdatedEventNotification.cs new file mode 100644 index 0000000000..77a6194ca1 --- /dev/null +++ b/src/Stripe.net/Events/V1TaxSettingsUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever tax settings is updated. + /// + public class V1TaxSettingsUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Tax.Settings FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1TaxSettingsUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1TerminalReaderActionFailedEvent.cs b/src/Stripe.net/Events/V1TerminalReaderActionFailedEvent.cs new file mode 100644 index 0000000000..9b40a3ca34 --- /dev/null +++ b/src/Stripe.net/Events/V1TerminalReaderActionFailedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an action sent to a Terminal reader failed. + /// + public class V1TerminalReaderActionFailedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Terminal.Reader FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1TerminalReaderActionFailedEventNotification.cs b/src/Stripe.net/Events/V1TerminalReaderActionFailedEventNotification.cs new file mode 100644 index 0000000000..4eb826f6fb --- /dev/null +++ b/src/Stripe.net/Events/V1TerminalReaderActionFailedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an action sent to a Terminal reader failed. + /// + public class V1TerminalReaderActionFailedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Terminal.Reader FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1TerminalReaderActionFailedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1TerminalReaderActionSucceededEvent.cs b/src/Stripe.net/Events/V1TerminalReaderActionSucceededEvent.cs new file mode 100644 index 0000000000..314e34c0ee --- /dev/null +++ b/src/Stripe.net/Events/V1TerminalReaderActionSucceededEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an action sent to a Terminal reader was successful. + /// + public class V1TerminalReaderActionSucceededEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Terminal.Reader FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1TerminalReaderActionSucceededEventNotification.cs b/src/Stripe.net/Events/V1TerminalReaderActionSucceededEventNotification.cs new file mode 100644 index 0000000000..9343c6084a --- /dev/null +++ b/src/Stripe.net/Events/V1TerminalReaderActionSucceededEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an action sent to a Terminal reader was successful. + /// + public class V1TerminalReaderActionSucceededEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Terminal.Reader FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1TerminalReaderActionSucceededEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1TerminalReaderActionUpdatedEvent.cs b/src/Stripe.net/Events/V1TerminalReaderActionUpdatedEvent.cs new file mode 100644 index 0000000000..26e9141ab4 --- /dev/null +++ b/src/Stripe.net/Events/V1TerminalReaderActionUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an action sent to a Terminal reader is updated. + /// + public class V1TerminalReaderActionUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Terminal.Reader FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1TerminalReaderActionUpdatedEventNotification.cs b/src/Stripe.net/Events/V1TerminalReaderActionUpdatedEventNotification.cs new file mode 100644 index 0000000000..58801f1366 --- /dev/null +++ b/src/Stripe.net/Events/V1TerminalReaderActionUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever an action sent to a Terminal reader is updated. + /// + public class V1TerminalReaderActionUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Terminal.Reader FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1TerminalReaderActionUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1TestHelpersTestClockAdvancingEvent.cs b/src/Stripe.net/Events/V1TestHelpersTestClockAdvancingEvent.cs new file mode 100644 index 0000000000..8ee05e2f7c --- /dev/null +++ b/src/Stripe.net/Events/V1TestHelpersTestClockAdvancingEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a test clock starts advancing. + /// + public class V1TestHelpersTestClockAdvancingEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public TestHelpers.TestClock FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1TestHelpersTestClockAdvancingEventNotification.cs b/src/Stripe.net/Events/V1TestHelpersTestClockAdvancingEventNotification.cs new file mode 100644 index 0000000000..b24099af7f --- /dev/null +++ b/src/Stripe.net/Events/V1TestHelpersTestClockAdvancingEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a test clock starts advancing. + /// + public class V1TestHelpersTestClockAdvancingEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public TestHelpers.TestClock FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1TestHelpersTestClockAdvancingEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1TestHelpersTestClockCreatedEvent.cs b/src/Stripe.net/Events/V1TestHelpersTestClockCreatedEvent.cs new file mode 100644 index 0000000000..ff0ec808f0 --- /dev/null +++ b/src/Stripe.net/Events/V1TestHelpersTestClockCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a test clock is created. + /// + public class V1TestHelpersTestClockCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public TestHelpers.TestClock FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1TestHelpersTestClockCreatedEventNotification.cs b/src/Stripe.net/Events/V1TestHelpersTestClockCreatedEventNotification.cs new file mode 100644 index 0000000000..b296880e2b --- /dev/null +++ b/src/Stripe.net/Events/V1TestHelpersTestClockCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a test clock is created. + /// + public class V1TestHelpersTestClockCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public TestHelpers.TestClock FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1TestHelpersTestClockCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1TestHelpersTestClockDeletedEvent.cs b/src/Stripe.net/Events/V1TestHelpersTestClockDeletedEvent.cs new file mode 100644 index 0000000000..0e15243e94 --- /dev/null +++ b/src/Stripe.net/Events/V1TestHelpersTestClockDeletedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a test clock is deleted. + /// + public class V1TestHelpersTestClockDeletedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public TestHelpers.TestClock FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1TestHelpersTestClockDeletedEventNotification.cs b/src/Stripe.net/Events/V1TestHelpersTestClockDeletedEventNotification.cs new file mode 100644 index 0000000000..fc89ee5788 --- /dev/null +++ b/src/Stripe.net/Events/V1TestHelpersTestClockDeletedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a test clock is deleted. + /// + public class V1TestHelpersTestClockDeletedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public TestHelpers.TestClock FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1TestHelpersTestClockDeletedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1TestHelpersTestClockInternalFailureEvent.cs b/src/Stripe.net/Events/V1TestHelpersTestClockInternalFailureEvent.cs new file mode 100644 index 0000000000..1bdc9dce8f --- /dev/null +++ b/src/Stripe.net/Events/V1TestHelpersTestClockInternalFailureEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a test clock fails to advance its frozen time. + /// + public class V1TestHelpersTestClockInternalFailureEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public TestHelpers.TestClock FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1TestHelpersTestClockInternalFailureEventNotification.cs b/src/Stripe.net/Events/V1TestHelpersTestClockInternalFailureEventNotification.cs new file mode 100644 index 0000000000..bd5b6b6fcf --- /dev/null +++ b/src/Stripe.net/Events/V1TestHelpersTestClockInternalFailureEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a test clock fails to advance its frozen time. + /// + public class V1TestHelpersTestClockInternalFailureEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public TestHelpers.TestClock FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1TestHelpersTestClockInternalFailureEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1TestHelpersTestClockReadyEvent.cs b/src/Stripe.net/Events/V1TestHelpersTestClockReadyEvent.cs new file mode 100644 index 0000000000..54b7fe833a --- /dev/null +++ b/src/Stripe.net/Events/V1TestHelpersTestClockReadyEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a test clock transitions to a ready status. + /// + public class V1TestHelpersTestClockReadyEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public TestHelpers.TestClock FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1TestHelpersTestClockReadyEventNotification.cs b/src/Stripe.net/Events/V1TestHelpersTestClockReadyEventNotification.cs new file mode 100644 index 0000000000..363a6d1841 --- /dev/null +++ b/src/Stripe.net/Events/V1TestHelpersTestClockReadyEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a test clock transitions to a ready status. + /// + public class V1TestHelpersTestClockReadyEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public TestHelpers.TestClock FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1TestHelpersTestClockReadyEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1TopupCanceledEvent.cs b/src/Stripe.net/Events/V1TopupCanceledEvent.cs new file mode 100644 index 0000000000..ee1b13e483 --- /dev/null +++ b/src/Stripe.net/Events/V1TopupCanceledEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a top-up is canceled. + /// + public class V1TopupCanceledEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Topup FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1TopupCanceledEventNotification.cs b/src/Stripe.net/Events/V1TopupCanceledEventNotification.cs new file mode 100644 index 0000000000..2d09a6c3ce --- /dev/null +++ b/src/Stripe.net/Events/V1TopupCanceledEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a top-up is canceled. + /// + public class V1TopupCanceledEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Topup FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1TopupCanceledEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1TopupCreatedEvent.cs b/src/Stripe.net/Events/V1TopupCreatedEvent.cs new file mode 100644 index 0000000000..f942338a63 --- /dev/null +++ b/src/Stripe.net/Events/V1TopupCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a top-up is created. + /// + public class V1TopupCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Topup FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1TopupCreatedEventNotification.cs b/src/Stripe.net/Events/V1TopupCreatedEventNotification.cs new file mode 100644 index 0000000000..a29ba2b5de --- /dev/null +++ b/src/Stripe.net/Events/V1TopupCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a top-up is created. + /// + public class V1TopupCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Topup FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1TopupCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1TopupFailedEvent.cs b/src/Stripe.net/Events/V1TopupFailedEvent.cs new file mode 100644 index 0000000000..375fa6ad7b --- /dev/null +++ b/src/Stripe.net/Events/V1TopupFailedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a top-up fails. + /// + public class V1TopupFailedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Topup FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1TopupFailedEventNotification.cs b/src/Stripe.net/Events/V1TopupFailedEventNotification.cs new file mode 100644 index 0000000000..1fb618eea3 --- /dev/null +++ b/src/Stripe.net/Events/V1TopupFailedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a top-up fails. + /// + public class V1TopupFailedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Topup FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1TopupFailedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1TopupReversedEvent.cs b/src/Stripe.net/Events/V1TopupReversedEvent.cs new file mode 100644 index 0000000000..b028ea2023 --- /dev/null +++ b/src/Stripe.net/Events/V1TopupReversedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a top-up is reversed. + /// + public class V1TopupReversedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Topup FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1TopupReversedEventNotification.cs b/src/Stripe.net/Events/V1TopupReversedEventNotification.cs new file mode 100644 index 0000000000..0aaa129503 --- /dev/null +++ b/src/Stripe.net/Events/V1TopupReversedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a top-up is reversed. + /// + public class V1TopupReversedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Topup FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1TopupReversedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1TopupSucceededEvent.cs b/src/Stripe.net/Events/V1TopupSucceededEvent.cs new file mode 100644 index 0000000000..9d61e24f66 --- /dev/null +++ b/src/Stripe.net/Events/V1TopupSucceededEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a top-up succeeds. + /// + public class V1TopupSucceededEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Topup FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1TopupSucceededEventNotification.cs b/src/Stripe.net/Events/V1TopupSucceededEventNotification.cs new file mode 100644 index 0000000000..7ad7548ade --- /dev/null +++ b/src/Stripe.net/Events/V1TopupSucceededEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a top-up succeeds. + /// + public class V1TopupSucceededEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Topup FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1TopupSucceededEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1TransferCreatedEvent.cs b/src/Stripe.net/Events/V1TransferCreatedEvent.cs new file mode 100644 index 0000000000..9c937e61be --- /dev/null +++ b/src/Stripe.net/Events/V1TransferCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a transfer is created. + /// + public class V1TransferCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Transfer FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1TransferCreatedEventNotification.cs b/src/Stripe.net/Events/V1TransferCreatedEventNotification.cs new file mode 100644 index 0000000000..586070b6b0 --- /dev/null +++ b/src/Stripe.net/Events/V1TransferCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a transfer is created. + /// + public class V1TransferCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Transfer FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1TransferCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1TransferReversedEvent.cs b/src/Stripe.net/Events/V1TransferReversedEvent.cs new file mode 100644 index 0000000000..2c1806e465 --- /dev/null +++ b/src/Stripe.net/Events/V1TransferReversedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a transfer is reversed, including partial reversals. + /// + public class V1TransferReversedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Transfer FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1TransferReversedEventNotification.cs b/src/Stripe.net/Events/V1TransferReversedEventNotification.cs new file mode 100644 index 0000000000..a04da6dd72 --- /dev/null +++ b/src/Stripe.net/Events/V1TransferReversedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a transfer is reversed, including partial reversals. + /// + public class V1TransferReversedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Transfer FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1TransferReversedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V1TransferUpdatedEvent.cs b/src/Stripe.net/Events/V1TransferUpdatedEvent.cs new file mode 100644 index 0000000000..3d1a6fca86 --- /dev/null +++ b/src/Stripe.net/Events/V1TransferUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a transfer's description or metadata is updated. + /// + public class V1TransferUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Transfer FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V1TransferUpdatedEventNotification.cs b/src/Stripe.net/Events/V1TransferUpdatedEventNotification.cs new file mode 100644 index 0000000000..878a9fbcbc --- /dev/null +++ b/src/Stripe.net/Events/V1TransferUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs whenever a transfer's description or metadata is updated. + /// + public class V1TransferUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public Transfer FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V1TransferUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2CommerceProductCatalogImportsFailedEvent.cs b/src/Stripe.net/Events/V2CommerceProductCatalogImportsFailedEvent.cs new file mode 100644 index 0000000000..d2e4a10343 --- /dev/null +++ b/src/Stripe.net/Events/V2CommerceProductCatalogImportsFailedEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a product catalog import cannot be processed or if processing fails + /// unexpectedly. + /// + public class V2CommerceProductCatalogImportsFailedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Commerce.ProductCatalogImport FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2CommerceProductCatalogImportsFailedEventNotification.cs b/src/Stripe.net/Events/V2CommerceProductCatalogImportsFailedEventNotification.cs new file mode 100644 index 0000000000..ed0c76114e --- /dev/null +++ b/src/Stripe.net/Events/V2CommerceProductCatalogImportsFailedEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a product catalog import cannot be processed or if processing fails + /// unexpectedly. + /// + public class V2CommerceProductCatalogImportsFailedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Commerce.ProductCatalogImport FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2CommerceProductCatalogImportsFailedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2CommerceProductCatalogImportsProcessingEvent.cs b/src/Stripe.net/Events/V2CommerceProductCatalogImportsProcessingEvent.cs new file mode 100644 index 0000000000..2673786668 --- /dev/null +++ b/src/Stripe.net/Events/V2CommerceProductCatalogImportsProcessingEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a product catalog import file has been uploaded and has started processing. + /// + public class V2CommerceProductCatalogImportsProcessingEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Commerce.ProductCatalogImport FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2CommerceProductCatalogImportsProcessingEventNotification.cs b/src/Stripe.net/Events/V2CommerceProductCatalogImportsProcessingEventNotification.cs new file mode 100644 index 0000000000..066ac496b1 --- /dev/null +++ b/src/Stripe.net/Events/V2CommerceProductCatalogImportsProcessingEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a product catalog import file has been uploaded and has started processing. + /// + public class V2CommerceProductCatalogImportsProcessingEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Commerce.ProductCatalogImport FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2CommerceProductCatalogImportsProcessingEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2CommerceProductCatalogImportsSucceededEvent.cs b/src/Stripe.net/Events/V2CommerceProductCatalogImportsSucceededEvent.cs new file mode 100644 index 0000000000..c303d67886 --- /dev/null +++ b/src/Stripe.net/Events/V2CommerceProductCatalogImportsSucceededEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a product catalog file has been uploaded successfully and passed validation. + /// + public class V2CommerceProductCatalogImportsSucceededEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Commerce.ProductCatalogImport FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2CommerceProductCatalogImportsSucceededEventNotification.cs b/src/Stripe.net/Events/V2CommerceProductCatalogImportsSucceededEventNotification.cs new file mode 100644 index 0000000000..47a35be48d --- /dev/null +++ b/src/Stripe.net/Events/V2CommerceProductCatalogImportsSucceededEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a product catalog file has been uploaded successfully and passed validation. + /// + public class V2CommerceProductCatalogImportsSucceededEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Commerce.ProductCatalogImport FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2CommerceProductCatalogImportsSucceededEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2CommerceProductCatalogImportsSucceededWithErrorsEvent.cs b/src/Stripe.net/Events/V2CommerceProductCatalogImportsSucceededWithErrorsEvent.cs new file mode 100644 index 0000000000..b424f5f17c --- /dev/null +++ b/src/Stripe.net/Events/V2CommerceProductCatalogImportsSucceededWithErrorsEvent.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a product catalog file has been successfully processed but some rows failed + /// validation. + /// + public class V2CommerceProductCatalogImportsSucceededWithErrorsEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Commerce.ProductCatalogImport FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification.cs b/src/Stripe.net/Events/V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification.cs new file mode 100644 index 0000000000..77c6a48251 --- /dev/null +++ b/src/Stripe.net/Events/V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a product catalog file has been successfully processed but some rows failed + /// validation. + /// + public class V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Commerce.ProductCatalogImport FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2CommerceProductCatalogImportsSucceededWithErrorsEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2CoreApprovalRequestApprovedEvent.cs b/src/Stripe.net/Events/V2CoreApprovalRequestApprovedEvent.cs new file mode 100644 index 0000000000..13a07e4263 --- /dev/null +++ b/src/Stripe.net/Events/V2CoreApprovalRequestApprovedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an approval request is approved by a reviewer. + /// + public class V2CoreApprovalRequestApprovedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Core.ApprovalRequest FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2CoreApprovalRequestApprovedEventNotification.cs b/src/Stripe.net/Events/V2CoreApprovalRequestApprovedEventNotification.cs new file mode 100644 index 0000000000..bb2c11bbdd --- /dev/null +++ b/src/Stripe.net/Events/V2CoreApprovalRequestApprovedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an approval request is approved by a reviewer. + /// + public class V2CoreApprovalRequestApprovedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Core.ApprovalRequest FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2CoreApprovalRequestApprovedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2CoreApprovalRequestCanceledEvent.cs b/src/Stripe.net/Events/V2CoreApprovalRequestCanceledEvent.cs new file mode 100644 index 0000000000..28bea1826b --- /dev/null +++ b/src/Stripe.net/Events/V2CoreApprovalRequestCanceledEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an approval request is canceled by the requester. + /// + public class V2CoreApprovalRequestCanceledEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Core.ApprovalRequest FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2CoreApprovalRequestCanceledEventNotification.cs b/src/Stripe.net/Events/V2CoreApprovalRequestCanceledEventNotification.cs new file mode 100644 index 0000000000..7b832174a4 --- /dev/null +++ b/src/Stripe.net/Events/V2CoreApprovalRequestCanceledEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an approval request is canceled by the requester. + /// + public class V2CoreApprovalRequestCanceledEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Core.ApprovalRequest FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2CoreApprovalRequestCanceledEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2CoreApprovalRequestFailedEvent.cs b/src/Stripe.net/Events/V2CoreApprovalRequestFailedEvent.cs new file mode 100644 index 0000000000..3c789d4a0a --- /dev/null +++ b/src/Stripe.net/Events/V2CoreApprovalRequestFailedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when the action associated with an approval request fails during execution. + /// + public class V2CoreApprovalRequestFailedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Core.ApprovalRequest FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2CoreApprovalRequestFailedEventNotification.cs b/src/Stripe.net/Events/V2CoreApprovalRequestFailedEventNotification.cs new file mode 100644 index 0000000000..02fc74aa7c --- /dev/null +++ b/src/Stripe.net/Events/V2CoreApprovalRequestFailedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when the action associated with an approval request fails during execution. + /// + public class V2CoreApprovalRequestFailedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Core.ApprovalRequest FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2CoreApprovalRequestFailedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2CoreApprovalRequestRejectedEvent.cs b/src/Stripe.net/Events/V2CoreApprovalRequestRejectedEvent.cs new file mode 100644 index 0000000000..dd9564b145 --- /dev/null +++ b/src/Stripe.net/Events/V2CoreApprovalRequestRejectedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an approval request is rejected by a reviewer. + /// + public class V2CoreApprovalRequestRejectedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Core.ApprovalRequest FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2CoreApprovalRequestRejectedEventNotification.cs b/src/Stripe.net/Events/V2CoreApprovalRequestRejectedEventNotification.cs new file mode 100644 index 0000000000..80e1797413 --- /dev/null +++ b/src/Stripe.net/Events/V2CoreApprovalRequestRejectedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an approval request is rejected by a reviewer. + /// + public class V2CoreApprovalRequestRejectedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Core.ApprovalRequest FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2CoreApprovalRequestRejectedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2CoreApprovalRequestSucceededEvent.cs b/src/Stripe.net/Events/V2CoreApprovalRequestSucceededEvent.cs new file mode 100644 index 0000000000..c1fedd37da --- /dev/null +++ b/src/Stripe.net/Events/V2CoreApprovalRequestSucceededEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an approval request is successfully executed. + /// + public class V2CoreApprovalRequestSucceededEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Core.ApprovalRequest FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2CoreApprovalRequestSucceededEventNotification.cs b/src/Stripe.net/Events/V2CoreApprovalRequestSucceededEventNotification.cs new file mode 100644 index 0000000000..80245cd341 --- /dev/null +++ b/src/Stripe.net/Events/V2CoreApprovalRequestSucceededEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an approval request is successfully executed. + /// + public class V2CoreApprovalRequestSucceededEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Core.ApprovalRequest FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2CoreApprovalRequestSucceededEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent.cs b/src/Stripe.net/Events/V2CoreClaimableSandboxUpdatedEvent.cs similarity index 82% rename from src/Stripe.net/Events/V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent.cs rename to src/Stripe.net/Events/V2CoreClaimableSandboxUpdatedEvent.cs index bf2649bd5e..35e5aa38a2 100644 --- a/src/Stripe.net/Events/V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent.cs +++ b/src/Stripe.net/Events/V2CoreClaimableSandboxUpdatedEvent.cs @@ -6,10 +6,9 @@ namespace Stripe.Events using STJS = System.Text.Json.Serialization; /// - /// Occurs when a claimable sandbox is activated by the user with the intention to go live - /// and your Stripe app is installed on the live account. + /// Occurs when a claimable sandbox object is updated. /// - public class V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent : V2.Core.Event + public class V2CoreClaimableSandboxUpdatedEvent : V2.Core.Event { /// /// Object containing the reference to API resource relevant to the event. diff --git a/src/Stripe.net/Events/V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEventNotification.cs b/src/Stripe.net/Events/V2CoreClaimableSandboxUpdatedEventNotification.cs similarity index 65% rename from src/Stripe.net/Events/V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEventNotification.cs rename to src/Stripe.net/Events/V2CoreClaimableSandboxUpdatedEventNotification.cs index b0279edb23..c5ce6fe950 100644 --- a/src/Stripe.net/Events/V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEventNotification.cs +++ b/src/Stripe.net/Events/V2CoreClaimableSandboxUpdatedEventNotification.cs @@ -7,10 +7,9 @@ namespace Stripe.Events using STJS = System.Text.Json.Serialization; /// - /// Occurs when a claimable sandbox is activated by the user with the intention to go live - /// and your Stripe app is installed on the live account. + /// Occurs when a claimable sandbox object is updated. /// - public class V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEventNotification : V2.Core.EventNotification + public class V2CoreClaimableSandboxUpdatedEventNotification : V2.Core.EventNotification { /// /// Object containing the reference to API resource relevant to the event. @@ -37,14 +36,14 @@ public V2.Core.ClaimableSandbox FetchRelatedObject() return this.FetchRelatedObject(this.RelatedObject); } - public V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent FetchEvent() + public V2CoreClaimableSandboxUpdatedEvent FetchEvent() { - return this.FetchEvent(); + return this.FetchEvent(); } - public Task FetchEventAsync() + public Task FetchEventAsync() { - return this.FetchEventAsync(); + return this.FetchEventAsync(); } } } diff --git a/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedFiringEvent.cs b/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedFiringEvent.cs new file mode 100644 index 0000000000..c075d49d83 --- /dev/null +++ b/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedFiringEvent.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a meter event summaries delayed alert is firing. + /// + public class V2CoreHealthMeterEventSummariesDelayedFiringEvent : V2.Core.Event + { + /// + /// Data for the v2.core.health.meter_event_summaries_delayed.firing event. + /// + [JsonProperty("data")] + [STJS.JsonPropertyName("data")] + + public V2CoreHealthMeterEventSummariesDelayedFiringEventData Data { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedFiringEventData.cs b/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedFiringEventData.cs new file mode 100644 index 0000000000..f28b502fba --- /dev/null +++ b/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedFiringEventData.cs @@ -0,0 +1,47 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System; + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class V2CoreHealthMeterEventSummariesDelayedFiringEventData : StripeEntity + { + /// + /// The alert ID. + /// + [JsonProperty("alert_id")] + [STJS.JsonPropertyName("alert_id")] + public string AlertId { get; set; } + + /// + /// The grouping key for the alert. + /// + [JsonProperty("grouping_key")] + [STJS.JsonPropertyName("grouping_key")] + public string GroupingKey { get; set; } + + /// + /// The user impact. + /// + [JsonProperty("impact")] + [STJS.JsonPropertyName("impact")] + public V2CoreHealthMeterEventSummariesDelayedFiringEventDataImpact Impact { get; set; } + + /// + /// The time when impact on the user experience was first detected. + /// + [JsonProperty("started_at")] + [STJS.JsonPropertyName("started_at")] + public DateTime StartedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// A short description of the alert. + /// + [JsonProperty("summary")] + [STJS.JsonPropertyName("summary")] + public string Summary { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedFiringEventDataImpact.cs b/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedFiringEventDataImpact.cs new file mode 100644 index 0000000000..597c258b96 --- /dev/null +++ b/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedFiringEventDataImpact.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class V2CoreHealthMeterEventSummariesDelayedFiringEventDataImpact : StripeEntity + { + /// + /// The ingestion method. + /// + [JsonProperty("ingestion_method")] + [STJS.JsonPropertyName("ingestion_method")] + public string IngestionMethod { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedFiringEventNotification.cs b/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedFiringEventNotification.cs new file mode 100644 index 0000000000..09d63e899e --- /dev/null +++ b/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedFiringEventNotification.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Stripe.V2; + + /// + /// Occurs when a meter event summaries delayed alert is firing. + /// + public class V2CoreHealthMeterEventSummariesDelayedFiringEventNotification : V2.Core.EventNotification + { + public V2CoreHealthMeterEventSummariesDelayedFiringEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedResolvedEvent.cs b/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedResolvedEvent.cs new file mode 100644 index 0000000000..b98a48a658 --- /dev/null +++ b/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedResolvedEvent.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a meter event summaries delayed alert is resolved. + /// + public class V2CoreHealthMeterEventSummariesDelayedResolvedEvent : V2.Core.Event + { + /// + /// Data for the v2.core.health.meter_event_summaries_delayed.resolved event. + /// + [JsonProperty("data")] + [STJS.JsonPropertyName("data")] + + public V2CoreHealthMeterEventSummariesDelayedResolvedEventData Data { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedResolvedEventData.cs b/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedResolvedEventData.cs new file mode 100644 index 0000000000..4ec5ffc6de --- /dev/null +++ b/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedResolvedEventData.cs @@ -0,0 +1,54 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System; + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class V2CoreHealthMeterEventSummariesDelayedResolvedEventData : StripeEntity + { + /// + /// The alert ID. + /// + [JsonProperty("alert_id")] + [STJS.JsonPropertyName("alert_id")] + public string AlertId { get; set; } + + /// + /// The grouping key for the alert. + /// + [JsonProperty("grouping_key")] + [STJS.JsonPropertyName("grouping_key")] + public string GroupingKey { get; set; } + + /// + /// The user impact. + /// + [JsonProperty("impact")] + [STJS.JsonPropertyName("impact")] + public V2CoreHealthMeterEventSummariesDelayedResolvedEventDataImpact Impact { get; set; } + + /// + /// The time when the user experience has returned to expected levels. + /// + [JsonProperty("resolved_at")] + [STJS.JsonPropertyName("resolved_at")] + public DateTime ResolvedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The time when impact on the user experience was first detected. + /// + [JsonProperty("started_at")] + [STJS.JsonPropertyName("started_at")] + public DateTime StartedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// A short description of the alert. + /// + [JsonProperty("summary")] + [STJS.JsonPropertyName("summary")] + public string Summary { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedResolvedEventDataImpact.cs b/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedResolvedEventDataImpact.cs new file mode 100644 index 0000000000..9acec359df --- /dev/null +++ b/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedResolvedEventDataImpact.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class V2CoreHealthMeterEventSummariesDelayedResolvedEventDataImpact : StripeEntity + { + /// + /// The ingestion method. + /// + [JsonProperty("ingestion_method")] + [STJS.JsonPropertyName("ingestion_method")] + public string IngestionMethod { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedResolvedEventNotification.cs b/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedResolvedEventNotification.cs new file mode 100644 index 0000000000..1501313f15 --- /dev/null +++ b/src/Stripe.net/Events/V2CoreHealthMeterEventSummariesDelayedResolvedEventNotification.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Stripe.V2; + + /// + /// Occurs when a meter event summaries delayed alert is resolved. + /// + public class V2CoreHealthMeterEventSummariesDelayedResolvedEventNotification : V2.Core.EventNotification + { + public V2CoreHealthMeterEventSummariesDelayedResolvedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2ExtendWorkflowRunFailedEvent.cs b/src/Stripe.net/Events/V2ExtendWorkflowRunFailedEvent.cs new file mode 100644 index 0000000000..333d5338ee --- /dev/null +++ b/src/Stripe.net/Events/V2ExtendWorkflowRunFailedEvent.cs @@ -0,0 +1,46 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Workflow Run fails. + /// + public class V2ExtendWorkflowRunFailedEvent : V2.Core.Event + { + /// + /// Data for the v2.extend.workflow_run.failed event. + /// + [JsonProperty("data")] + [STJS.JsonPropertyName("data")] + + public V2ExtendWorkflowRunFailedEventData Data { get; set; } + + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Extend.WorkflowRun FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2ExtendWorkflowRunFailedEventData.cs b/src/Stripe.net/Events/V2ExtendWorkflowRunFailedEventData.cs new file mode 100644 index 0000000000..4c0ed742be --- /dev/null +++ b/src/Stripe.net/Events/V2ExtendWorkflowRunFailedEventData.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class V2ExtendWorkflowRunFailedEventData : StripeEntity + { + /// + /// A Stripe dashboard URL with more information about the Workflow Run failure. + /// + [JsonProperty("dashboard_url")] + [STJS.JsonPropertyName("dashboard_url")] + public string DashboardUrl { get; set; } + + /// + /// Details about the Workflow Run's transition into the FAILED state. + /// + [JsonProperty("failure_details")] + [STJS.JsonPropertyName("failure_details")] + public V2ExtendWorkflowRunFailedEventDataFailureDetails FailureDetails { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2ExtendWorkflowRunFailedEventDataFailureDetails.cs b/src/Stripe.net/Events/V2ExtendWorkflowRunFailedEventDataFailureDetails.cs new file mode 100644 index 0000000000..abcb5d8844 --- /dev/null +++ b/src/Stripe.net/Events/V2ExtendWorkflowRunFailedEventDataFailureDetails.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class V2ExtendWorkflowRunFailedEventDataFailureDetails : StripeEntity + { + /// + /// Optional details about the failure result. + /// + [JsonProperty("error_message")] + [STJS.JsonPropertyName("error_message")] + public string ErrorMessage { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2ExtendWorkflowRunFailedEventNotification.cs b/src/Stripe.net/Events/V2ExtendWorkflowRunFailedEventNotification.cs new file mode 100644 index 0000000000..ca43e4d27f --- /dev/null +++ b/src/Stripe.net/Events/V2ExtendWorkflowRunFailedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Workflow Run fails. + /// + public class V2ExtendWorkflowRunFailedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Extend.WorkflowRun FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2ExtendWorkflowRunFailedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2ExtendWorkflowRunStartedEvent.cs b/src/Stripe.net/Events/V2ExtendWorkflowRunStartedEvent.cs new file mode 100644 index 0000000000..7b0366b68a --- /dev/null +++ b/src/Stripe.net/Events/V2ExtendWorkflowRunStartedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Workflow Run starts. + /// + public class V2ExtendWorkflowRunStartedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Extend.WorkflowRun FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2ExtendWorkflowRunStartedEventNotification.cs b/src/Stripe.net/Events/V2ExtendWorkflowRunStartedEventNotification.cs new file mode 100644 index 0000000000..d40da7930c --- /dev/null +++ b/src/Stripe.net/Events/V2ExtendWorkflowRunStartedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Workflow Run starts. + /// + public class V2ExtendWorkflowRunStartedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Extend.WorkflowRun FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2ExtendWorkflowRunStartedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2ExtendWorkflowRunSucceededEvent.cs b/src/Stripe.net/Events/V2ExtendWorkflowRunSucceededEvent.cs new file mode 100644 index 0000000000..b3123319a5 --- /dev/null +++ b/src/Stripe.net/Events/V2ExtendWorkflowRunSucceededEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Workflow Run succeeds. + /// + public class V2ExtendWorkflowRunSucceededEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Extend.WorkflowRun FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2ExtendWorkflowRunSucceededEventNotification.cs b/src/Stripe.net/Events/V2ExtendWorkflowRunSucceededEventNotification.cs new file mode 100644 index 0000000000..75353b647b --- /dev/null +++ b/src/Stripe.net/Events/V2ExtendWorkflowRunSucceededEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a Workflow Run succeeds. + /// + public class V2ExtendWorkflowRunSucceededEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Extend.WorkflowRun FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2ExtendWorkflowRunSucceededEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2MoneyManagementTransactionCreatedEventData.cs b/src/Stripe.net/Events/V2MoneyManagementTransactionCreatedEventData.cs index c8f6a457e3..8fd5c10aec 100644 --- a/src/Stripe.net/Events/V2MoneyManagementTransactionCreatedEventData.cs +++ b/src/Stripe.net/Events/V2MoneyManagementTransactionCreatedEventData.cs @@ -8,6 +8,13 @@ namespace Stripe.Events public class V2MoneyManagementTransactionCreatedEventData : StripeEntity { + /// + /// Id of the v1 Treasury Transaction corresponding to this Transaction. + /// + [JsonProperty("treasury_transaction")] + [STJS.JsonPropertyName("treasury_transaction")] + public string TreasuryTransaction { get; set; } + /// /// Id of the v1 Transaction corresponding to this Transaction. /// diff --git a/src/Stripe.net/Events/V2OrchestratedCommerceAgreementConfirmedEvent.cs b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementConfirmedEvent.cs new file mode 100644 index 0000000000..b4f1d88c94 --- /dev/null +++ b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementConfirmedEvent.cs @@ -0,0 +1,46 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an Agreement is confirmed by one party. + /// + public class V2OrchestratedCommerceAgreementConfirmedEvent : V2.Core.Event + { + /// + /// Data for the v2.orchestrated_commerce.agreement.confirmed event. + /// + [JsonProperty("data")] + [STJS.JsonPropertyName("data")] + + public V2OrchestratedCommerceAgreementConfirmedEventData Data { get; set; } + + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.OrchestratedCommerce.Agreement FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2OrchestratedCommerceAgreementConfirmedEventData.cs b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementConfirmedEventData.cs new file mode 100644 index 0000000000..d1f2126c6e --- /dev/null +++ b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementConfirmedEventData.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System; + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class V2OrchestratedCommerceAgreementConfirmedEventData : StripeEntity + { + /// + /// The time at which the orchestrator confirmed the agreement. + /// + [JsonProperty("orchestrator_confirmed_at")] + [STJS.JsonPropertyName("orchestrator_confirmed_at")] + public DateTime OrchestratorConfirmedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Details about the orchestrator. + /// + [JsonProperty("orchestrator_details")] + [STJS.JsonPropertyName("orchestrator_details")] + public V2OrchestratedCommerceAgreementConfirmedEventDataOrchestratorDetails OrchestratorDetails { get; set; } + + /// + /// The time at which the seller confirmed the agreement. + /// + [JsonProperty("seller_confirmed_at")] + [STJS.JsonPropertyName("seller_confirmed_at")] + public DateTime SellerConfirmedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Details about the seller. + /// + [JsonProperty("seller_details")] + [STJS.JsonPropertyName("seller_details")] + public V2OrchestratedCommerceAgreementConfirmedEventDataSellerDetails SellerDetails { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2OrchestratedCommerceAgreementConfirmedEventDataOrchestratorDetails.cs b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementConfirmedEventDataOrchestratorDetails.cs new file mode 100644 index 0000000000..64b67fce0f --- /dev/null +++ b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementConfirmedEventDataOrchestratorDetails.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class V2OrchestratedCommerceAgreementConfirmedEventDataOrchestratorDetails : StripeEntity + { + /// + /// The name of the orchestrator. This can be the name of the agent or the name of the + /// business. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// The Network ID of the orchestrator. + /// + [JsonProperty("network_business_profile")] + [STJS.JsonPropertyName("network_business_profile")] + public string NetworkBusinessProfile { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2OrchestratedCommerceAgreementConfirmedEventDataSellerDetails.cs b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementConfirmedEventDataSellerDetails.cs new file mode 100644 index 0000000000..5788f0bf58 --- /dev/null +++ b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementConfirmedEventDataSellerDetails.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class V2OrchestratedCommerceAgreementConfirmedEventDataSellerDetails : StripeEntity + { + /// + /// The Network ID of the seller. + /// + [JsonProperty("network_business_profile")] + [STJS.JsonPropertyName("network_business_profile")] + public string NetworkBusinessProfile { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2OrchestratedCommerceAgreementConfirmedEventNotification.cs b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementConfirmedEventNotification.cs new file mode 100644 index 0000000000..6d6509f5df --- /dev/null +++ b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementConfirmedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an Agreement is confirmed by one party. + /// + public class V2OrchestratedCommerceAgreementConfirmedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.OrchestratedCommerce.Agreement FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2OrchestratedCommerceAgreementConfirmedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2OrchestratedCommerceAgreementCreatedEvent.cs b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementCreatedEvent.cs new file mode 100644 index 0000000000..78c8e4590d --- /dev/null +++ b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementCreatedEvent.cs @@ -0,0 +1,46 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an Agreement is created. + /// + public class V2OrchestratedCommerceAgreementCreatedEvent : V2.Core.Event + { + /// + /// Data for the v2.orchestrated_commerce.agreement.created event. + /// + [JsonProperty("data")] + [STJS.JsonPropertyName("data")] + + public V2OrchestratedCommerceAgreementCreatedEventData Data { get; set; } + + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.OrchestratedCommerce.Agreement FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2OrchestratedCommerceAgreementCreatedEventData.cs b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementCreatedEventData.cs new file mode 100644 index 0000000000..99d3421828 --- /dev/null +++ b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementCreatedEventData.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System; + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class V2OrchestratedCommerceAgreementCreatedEventData : StripeEntity + { + /// + /// The time at which the agreement was created. + /// + [JsonProperty("created")] + [STJS.JsonPropertyName("created")] + public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The party that initiated the agreement. + /// One of: orchestrator, or seller. + /// + [JsonProperty("initiated_by")] + [STJS.JsonPropertyName("initiated_by")] + public string InitiatedBy { get; set; } + + /// + /// Details about the orchestrator. + /// + [JsonProperty("orchestrator_details")] + [STJS.JsonPropertyName("orchestrator_details")] + public V2OrchestratedCommerceAgreementCreatedEventDataOrchestratorDetails OrchestratorDetails { get; set; } + + /// + /// Details about the seller. + /// + [JsonProperty("seller_details")] + [STJS.JsonPropertyName("seller_details")] + public V2OrchestratedCommerceAgreementCreatedEventDataSellerDetails SellerDetails { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2OrchestratedCommerceAgreementCreatedEventDataOrchestratorDetails.cs b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementCreatedEventDataOrchestratorDetails.cs new file mode 100644 index 0000000000..de3c15cb63 --- /dev/null +++ b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementCreatedEventDataOrchestratorDetails.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class V2OrchestratedCommerceAgreementCreatedEventDataOrchestratorDetails : StripeEntity + { + /// + /// The name of the orchestrator. This can be the name of the agent or the name of the + /// business. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// The Network ID of the orchestrator. + /// + [JsonProperty("network_business_profile")] + [STJS.JsonPropertyName("network_business_profile")] + public string NetworkBusinessProfile { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2OrchestratedCommerceAgreementCreatedEventDataSellerDetails.cs b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementCreatedEventDataSellerDetails.cs new file mode 100644 index 0000000000..f36bb20b2b --- /dev/null +++ b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementCreatedEventDataSellerDetails.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class V2OrchestratedCommerceAgreementCreatedEventDataSellerDetails : StripeEntity + { + /// + /// The Network ID of the seller. + /// + [JsonProperty("network_business_profile")] + [STJS.JsonPropertyName("network_business_profile")] + public string NetworkBusinessProfile { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2OrchestratedCommerceAgreementCreatedEventNotification.cs b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementCreatedEventNotification.cs new file mode 100644 index 0000000000..ca84aa4734 --- /dev/null +++ b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an Agreement is created. + /// + public class V2OrchestratedCommerceAgreementCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.OrchestratedCommerce.Agreement FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2OrchestratedCommerceAgreementCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2OrchestratedCommerceAgreementPartiallyConfirmedEvent.cs b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementPartiallyConfirmedEvent.cs new file mode 100644 index 0000000000..be93d21d04 --- /dev/null +++ b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementPartiallyConfirmedEvent.cs @@ -0,0 +1,46 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an Agreement is partially confirmed (confirmed by one party but not both). + /// + public class V2OrchestratedCommerceAgreementPartiallyConfirmedEvent : V2.Core.Event + { + /// + /// Data for the v2.orchestrated_commerce.agreement.partially_confirmed event. + /// + [JsonProperty("data")] + [STJS.JsonPropertyName("data")] + + public V2OrchestratedCommerceAgreementPartiallyConfirmedEventData Data { get; set; } + + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.OrchestratedCommerce.Agreement FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2OrchestratedCommerceAgreementPartiallyConfirmedEventData.cs b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementPartiallyConfirmedEventData.cs new file mode 100644 index 0000000000..3ccb78fe5e --- /dev/null +++ b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementPartiallyConfirmedEventData.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System; + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class V2OrchestratedCommerceAgreementPartiallyConfirmedEventData : StripeEntity + { + /// + /// The time at which the orchestrator confirmed the agreement. + /// + [JsonProperty("orchestrator_confirmed_at")] + [STJS.JsonPropertyName("orchestrator_confirmed_at")] + public DateTime OrchestratorConfirmedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Details about the orchestrator. + /// + [JsonProperty("orchestrator_details")] + [STJS.JsonPropertyName("orchestrator_details")] + public V2OrchestratedCommerceAgreementPartiallyConfirmedEventDataOrchestratorDetails OrchestratorDetails { get; set; } + + /// + /// The time at which the seller confirmed the agreement. + /// + [JsonProperty("seller_confirmed_at")] + [STJS.JsonPropertyName("seller_confirmed_at")] + public DateTime SellerConfirmedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Details about the seller. + /// + [JsonProperty("seller_details")] + [STJS.JsonPropertyName("seller_details")] + public V2OrchestratedCommerceAgreementPartiallyConfirmedEventDataSellerDetails SellerDetails { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2OrchestratedCommerceAgreementPartiallyConfirmedEventDataOrchestratorDetails.cs b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementPartiallyConfirmedEventDataOrchestratorDetails.cs new file mode 100644 index 0000000000..dcc45ef9cd --- /dev/null +++ b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementPartiallyConfirmedEventDataOrchestratorDetails.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class V2OrchestratedCommerceAgreementPartiallyConfirmedEventDataOrchestratorDetails : StripeEntity + { + /// + /// The name of the orchestrator. This can be the name of the agent or the name of the + /// business. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// The Network ID of the orchestrator. + /// + [JsonProperty("network_business_profile")] + [STJS.JsonPropertyName("network_business_profile")] + public string NetworkBusinessProfile { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2OrchestratedCommerceAgreementPartiallyConfirmedEventDataSellerDetails.cs b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementPartiallyConfirmedEventDataSellerDetails.cs new file mode 100644 index 0000000000..20170dc54a --- /dev/null +++ b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementPartiallyConfirmedEventDataSellerDetails.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class V2OrchestratedCommerceAgreementPartiallyConfirmedEventDataSellerDetails : StripeEntity + { + /// + /// The Network ID of the seller. + /// + [JsonProperty("network_business_profile")] + [STJS.JsonPropertyName("network_business_profile")] + public string NetworkBusinessProfile { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2OrchestratedCommerceAgreementPartiallyConfirmedEventNotification.cs b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementPartiallyConfirmedEventNotification.cs new file mode 100644 index 0000000000..d62ceab559 --- /dev/null +++ b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementPartiallyConfirmedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an Agreement is partially confirmed (confirmed by one party but not both). + /// + public class V2OrchestratedCommerceAgreementPartiallyConfirmedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.OrchestratedCommerce.Agreement FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2OrchestratedCommerceAgreementPartiallyConfirmedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2OrchestratedCommerceAgreementTerminatedEvent.cs b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementTerminatedEvent.cs new file mode 100644 index 0000000000..d84b27e4ec --- /dev/null +++ b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementTerminatedEvent.cs @@ -0,0 +1,46 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an Agreement is terminated. + /// + public class V2OrchestratedCommerceAgreementTerminatedEvent : V2.Core.Event + { + /// + /// Data for the v2.orchestrated_commerce.agreement.terminated event. + /// + [JsonProperty("data")] + [STJS.JsonPropertyName("data")] + + public V2OrchestratedCommerceAgreementTerminatedEventData Data { get; set; } + + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.OrchestratedCommerce.Agreement FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2OrchestratedCommerceAgreementTerminatedEventData.cs b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementTerminatedEventData.cs new file mode 100644 index 0000000000..c6d4161c43 --- /dev/null +++ b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementTerminatedEventData.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System; + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class V2OrchestratedCommerceAgreementTerminatedEventData : StripeEntity + { + /// + /// Details about the orchestrator. + /// + [JsonProperty("orchestrator_details")] + [STJS.JsonPropertyName("orchestrator_details")] + public V2OrchestratedCommerceAgreementTerminatedEventDataOrchestratorDetails OrchestratorDetails { get; set; } + + /// + /// Details about the seller. + /// + [JsonProperty("seller_details")] + [STJS.JsonPropertyName("seller_details")] + public V2OrchestratedCommerceAgreementTerminatedEventDataSellerDetails SellerDetails { get; set; } + + /// + /// The time at which the agreement was terminated. + /// + [JsonProperty("terminated_at")] + [STJS.JsonPropertyName("terminated_at")] + public DateTime TerminatedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The party that terminated the agreement. + /// One of: orchestrator, or seller. + /// + [JsonProperty("terminated_by")] + [STJS.JsonPropertyName("terminated_by")] + public string TerminatedBy { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2OrchestratedCommerceAgreementTerminatedEventDataOrchestratorDetails.cs b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementTerminatedEventDataOrchestratorDetails.cs new file mode 100644 index 0000000000..18127ab98c --- /dev/null +++ b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementTerminatedEventDataOrchestratorDetails.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class V2OrchestratedCommerceAgreementTerminatedEventDataOrchestratorDetails : StripeEntity + { + /// + /// The name of the orchestrator. This can be the name of the agent or the name of the + /// business. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// The Network ID of the orchestrator. + /// + [JsonProperty("network_business_profile")] + [STJS.JsonPropertyName("network_business_profile")] + public string NetworkBusinessProfile { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2OrchestratedCommerceAgreementTerminatedEventDataSellerDetails.cs b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementTerminatedEventDataSellerDetails.cs new file mode 100644 index 0000000000..3907cdaba4 --- /dev/null +++ b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementTerminatedEventDataSellerDetails.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class V2OrchestratedCommerceAgreementTerminatedEventDataSellerDetails : StripeEntity + { + /// + /// The Network ID of the seller. + /// + [JsonProperty("network_business_profile")] + [STJS.JsonPropertyName("network_business_profile")] + public string NetworkBusinessProfile { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2OrchestratedCommerceAgreementTerminatedEventNotification.cs b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementTerminatedEventNotification.cs new file mode 100644 index 0000000000..d6b8f8aa98 --- /dev/null +++ b/src/Stripe.net/Events/V2OrchestratedCommerceAgreementTerminatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an Agreement is terminated. + /// + public class V2OrchestratedCommerceAgreementTerminatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.OrchestratedCommerce.Agreement FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2OrchestratedCommerceAgreementTerminatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Exceptions/V2/FxQuoteExpiredException.cs b/src/Stripe.net/Exceptions/V2/FxQuoteExpiredException.cs new file mode 100644 index 0000000000..b768bcec5d --- /dev/null +++ b/src/Stripe.net/Exceptions/V2/FxQuoteExpiredException.cs @@ -0,0 +1,28 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2 +{ + using System.Net; + using System.Text.Json; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class FxQuoteExpiredException : StripeException + { + private FxQuoteExpiredException( + HttpStatusCode httpStatusCode, + StripeError stripeError, + string message) + : base(httpStatusCode, stripeError) + { + } + + internal static FxQuoteExpiredException Parse( + HttpStatusCode httpStatusCode, + JsonElement body) + { + var stripeError = StripeError.FromJson(body); + return new FxQuoteExpiredException(httpStatusCode, stripeError, stripeError.Message); + } + } +} \ No newline at end of file diff --git a/src/Stripe.net/Infrastructure/Public/StripeException.cs b/src/Stripe.net/Infrastructure/Public/StripeException.cs index 91724f1866..ae220fe061 100644 --- a/src/Stripe.net/Infrastructure/Public/StripeException.cs +++ b/src/Stripe.net/Infrastructure/Public/StripeException.cs @@ -79,6 +79,10 @@ internal static StripeException ParseV2Exception(string type, StripeResponse res ret = Stripe.V2.FinancialAccountNotOpenException.Parse(httpStatusCode, body); break; + case "fx_quote_expired": + ret = Stripe.V2.FxQuoteExpiredException.Parse(httpStatusCode, body); + break; + case "insufficient_funds": ret = Stripe.V2.InsufficientFundsException.Parse(httpStatusCode, body); break; diff --git a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs index 1e0a4662d8..66e4860f79 100644 --- a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs +++ b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs @@ -301,12 +301,17 @@ public static class StripeTypeRegistry { "v2.billing.rate_card_subscription", typeof(V2.Billing.RateCardSubscription) }, { "v2.billing.rate_card_version", typeof(V2.Billing.RateCardVersion) }, { "v2.billing.service_action", typeof(V2.Billing.ServiceAction) }, + { + "v2.commerce.product_catalog_import", typeof( + V2.Commerce.ProductCatalogImport) + }, { "v2.core.account", typeof(V2.Core.Account) }, { "v2.core.account_evaluation", typeof(V2.Core.AccountEvaluation) }, { "v2.core.account_link", typeof(V2.Core.AccountLink) }, { "v2.core.account_person", typeof(V2.Core.AccountPerson) }, { "v2.core.account_person_token", typeof(V2.Core.AccountPersonToken) }, { "v2.core.account_token", typeof(V2.Core.AccountToken) }, + { "v2.core.approval_request", typeof(V2.Core.ApprovalRequest) }, { "v2.core.batch_job", typeof(V2.Core.BatchJob) }, { "v2.core.claimable_sandbox", typeof(V2.Core.ClaimableSandbox) }, { "v2.core.connection_session", typeof(V2.Core.ConnectionSession) }, @@ -314,9 +319,10 @@ public static class StripeTypeRegistry { "v2.core.event_destination", typeof(V2.Core.EventDestination) }, { "v2.core.vault.gb_bank_account", typeof(V2.Core.Vault.GbBankAccount) }, { "v2.core.vault.us_bank_account", typeof(V2.Core.Vault.UsBankAccount) }, - { "v2.core.workflow", typeof(V2.Core.Workflow) }, - { "v2.core.workflow_run", typeof(V2.Core.WorkflowRun) }, { "v2.data.reporting.query_run", typeof(V2.Data.Reporting.QueryRun) }, + { "v2.extend.workflow", typeof(V2.Extend.Workflow) }, + { "v2.extend.workflow_run", typeof(V2.Extend.WorkflowRun) }, + { "v2.iam.activity_log", typeof(V2.Iam.ActivityLog) }, { "v2.iam.api_key", typeof(V2.Iam.ApiKey) }, { "v2.money_management.adjustment", typeof(V2.MoneyManagement.Adjustment) }, { @@ -373,6 +379,11 @@ public static class StripeTypeRegistry "v2.money_management.transaction_entry", typeof( V2.MoneyManagement.TransactionEntry) }, + { "v2.network.business_profile", typeof(V2.Network.BusinessProfile) }, + { + "v2.orchestrated_commerce.agreement", typeof( + V2.OrchestratedCommerce.Agreement) + }, { "v2.payments.off_session_payment", typeof(V2.Payments.OffSessionPayment) }, { "v2.payments.settlement_allocation_intent", typeof( @@ -393,10 +404,39 @@ public static class StripeTypeRegistry new Dictionary { // V2EventsToTypes: The beginning of the section generated from our OpenAPI spec + { + "v1.account.application.authorized", typeof( + Events.V1AccountApplicationAuthorizedEvent) + }, + { + "v1.account.application.deauthorized", typeof( + Events.V1AccountApplicationDeauthorizedEvent) + }, + { + "v1.account.external_account.created", typeof( + Events.V1AccountExternalAccountCreatedEvent) + }, + { + "v1.account.external_account.deleted", typeof( + Events.V1AccountExternalAccountDeletedEvent) + }, + { + "v1.account.external_account.updated", typeof( + Events.V1AccountExternalAccountUpdatedEvent) + }, + { "v1.account.updated", typeof(Events.V1AccountUpdatedEvent) }, { "v1.account_signals[delinquency].created", typeof( Events.V1AccountSignalsIncludingDelinquencyCreatedEvent) }, + { "v1.application_fee.created", typeof(Events.V1ApplicationFeeCreatedEvent) }, + { + "v1.application_fee.refund.updated", typeof( + Events.V1ApplicationFeeRefundUpdatedEvent) + }, + { "v1.application_fee.refunded", typeof(Events.V1ApplicationFeeRefundedEvent) }, + { "v1.balance.available", typeof(Events.V1BalanceAvailableEvent) }, + { "v1.billing.alert.triggered", typeof(Events.V1BillingAlertTriggeredEvent) }, { "v1.billing.meter.error_report_triggered", typeof( Events.V1BillingMeterErrorReportTriggeredEvent) @@ -405,6 +445,434 @@ public static class StripeTypeRegistry "v1.billing.meter.no_meter_found", typeof( Events.V1BillingMeterNoMeterFoundEvent) }, + { + "v1.billing_portal.configuration.created", typeof( + Events.V1BillingPortalConfigurationCreatedEvent) + }, + { + "v1.billing_portal.configuration.updated", typeof( + Events.V1BillingPortalConfigurationUpdatedEvent) + }, + { + "v1.billing_portal.session.created", typeof( + Events.V1BillingPortalSessionCreatedEvent) + }, + { "v1.capability.updated", typeof(Events.V1CapabilityUpdatedEvent) }, + { + "v1.cash_balance.funds_available", typeof( + Events.V1CashBalanceFundsAvailableEvent) + }, + { "v1.charge.captured", typeof(Events.V1ChargeCapturedEvent) }, + { "v1.charge.dispute.closed", typeof(Events.V1ChargeDisputeClosedEvent) }, + { "v1.charge.dispute.created", typeof(Events.V1ChargeDisputeCreatedEvent) }, + { + "v1.charge.dispute.funds_reinstated", typeof( + Events.V1ChargeDisputeFundsReinstatedEvent) + }, + { + "v1.charge.dispute.funds_withdrawn", typeof( + Events.V1ChargeDisputeFundsWithdrawnEvent) + }, + { "v1.charge.dispute.updated", typeof(Events.V1ChargeDisputeUpdatedEvent) }, + { "v1.charge.expired", typeof(Events.V1ChargeExpiredEvent) }, + { "v1.charge.failed", typeof(Events.V1ChargeFailedEvent) }, + { "v1.charge.pending", typeof(Events.V1ChargePendingEvent) }, + { "v1.charge.refund.updated", typeof(Events.V1ChargeRefundUpdatedEvent) }, + { "v1.charge.refunded", typeof(Events.V1ChargeRefundedEvent) }, + { "v1.charge.succeeded", typeof(Events.V1ChargeSucceededEvent) }, + { "v1.charge.updated", typeof(Events.V1ChargeUpdatedEvent) }, + { + "v1.checkout.session.async_payment_failed", typeof( + Events.V1CheckoutSessionAsyncPaymentFailedEvent) + }, + { + "v1.checkout.session.async_payment_succeeded", typeof( + Events.V1CheckoutSessionAsyncPaymentSucceededEvent) + }, + { + "v1.checkout.session.completed", typeof( + Events.V1CheckoutSessionCompletedEvent) + }, + { "v1.checkout.session.expired", typeof(Events.V1CheckoutSessionExpiredEvent) }, + { "v1.climate.order.canceled", typeof(Events.V1ClimateOrderCanceledEvent) }, + { "v1.climate.order.created", typeof(Events.V1ClimateOrderCreatedEvent) }, + { "v1.climate.order.delayed", typeof(Events.V1ClimateOrderDelayedEvent) }, + { "v1.climate.order.delivered", typeof(Events.V1ClimateOrderDeliveredEvent) }, + { + "v1.climate.order.product_substituted", typeof( + Events.V1ClimateOrderProductSubstitutedEvent) + }, + { "v1.climate.product.created", typeof(Events.V1ClimateProductCreatedEvent) }, + { + "v1.climate.product.pricing_updated", typeof( + Events.V1ClimateProductPricingUpdatedEvent) + }, + { "v1.coupon.created", typeof(Events.V1CouponCreatedEvent) }, + { "v1.coupon.deleted", typeof(Events.V1CouponDeletedEvent) }, + { "v1.coupon.updated", typeof(Events.V1CouponUpdatedEvent) }, + { "v1.credit_note.created", typeof(Events.V1CreditNoteCreatedEvent) }, + { "v1.credit_note.updated", typeof(Events.V1CreditNoteUpdatedEvent) }, + { "v1.credit_note.voided", typeof(Events.V1CreditNoteVoidedEvent) }, + { "v1.customer.created", typeof(Events.V1CustomerCreatedEvent) }, + { "v1.customer.deleted", typeof(Events.V1CustomerDeletedEvent) }, + { + "v1.customer.subscription.created", typeof( + Events.V1CustomerSubscriptionCreatedEvent) + }, + { + "v1.customer.subscription.deleted", typeof( + Events.V1CustomerSubscriptionDeletedEvent) + }, + { + "v1.customer.subscription.paused", typeof( + Events.V1CustomerSubscriptionPausedEvent) + }, + { + "v1.customer.subscription.pending_update_applied", typeof( + Events.V1CustomerSubscriptionPendingUpdateAppliedEvent) + }, + { + "v1.customer.subscription.pending_update_expired", typeof( + Events.V1CustomerSubscriptionPendingUpdateExpiredEvent) + }, + { + "v1.customer.subscription.resumed", typeof( + Events.V1CustomerSubscriptionResumedEvent) + }, + { + "v1.customer.subscription.trial_will_end", typeof( + Events.V1CustomerSubscriptionTrialWillEndEvent) + }, + { + "v1.customer.subscription.updated", typeof( + Events.V1CustomerSubscriptionUpdatedEvent) + }, + { "v1.customer.tax_id.created", typeof(Events.V1CustomerTaxIdCreatedEvent) }, + { "v1.customer.tax_id.deleted", typeof(Events.V1CustomerTaxIdDeletedEvent) }, + { "v1.customer.tax_id.updated", typeof(Events.V1CustomerTaxIdUpdatedEvent) }, + { "v1.customer.updated", typeof(Events.V1CustomerUpdatedEvent) }, + { + "v1.customer_cash_balance_transaction.created", typeof( + Events.V1CustomerCashBalanceTransactionCreatedEvent) + }, + { + "v1.entitlements.active_entitlement_summary.updated", typeof( + Events.V1EntitlementsActiveEntitlementSummaryUpdatedEvent) + }, + { "v1.file.created", typeof(Events.V1FileCreatedEvent) }, + { + "v1.financial_connections.account.created", typeof( + Events.V1FinancialConnectionsAccountCreatedEvent) + }, + { + "v1.financial_connections.account.deactivated", typeof( + Events.V1FinancialConnectionsAccountDeactivatedEvent) + }, + { + "v1.financial_connections.account.disconnected", typeof( + Events.V1FinancialConnectionsAccountDisconnectedEvent) + }, + { + "v1.financial_connections.account.reactivated", typeof( + Events.V1FinancialConnectionsAccountReactivatedEvent) + }, + { + "v1.financial_connections.account.refreshed_balance", typeof( + Events.V1FinancialConnectionsAccountRefreshedBalanceEvent) + }, + { + "v1.financial_connections.account.refreshed_ownership", typeof( + Events.V1FinancialConnectionsAccountRefreshedOwnershipEvent) + }, + { + "v1.financial_connections.account.refreshed_transactions", typeof( + Events.V1FinancialConnectionsAccountRefreshedTransactionsEvent) + }, + { + "v1.identity.verification_session.canceled", typeof( + Events.V1IdentityVerificationSessionCanceledEvent) + }, + { + "v1.identity.verification_session.created", typeof( + Events.V1IdentityVerificationSessionCreatedEvent) + }, + { + "v1.identity.verification_session.processing", typeof( + Events.V1IdentityVerificationSessionProcessingEvent) + }, + { + "v1.identity.verification_session.redacted", typeof( + Events.V1IdentityVerificationSessionRedactedEvent) + }, + { + "v1.identity.verification_session.requires_input", typeof( + Events.V1IdentityVerificationSessionRequiresInputEvent) + }, + { + "v1.identity.verification_session.verified", typeof( + Events.V1IdentityVerificationSessionVerifiedEvent) + }, + { "v1.invoice.created", typeof(Events.V1InvoiceCreatedEvent) }, + { "v1.invoice.deleted", typeof(Events.V1InvoiceDeletedEvent) }, + { + "v1.invoice.finalization_failed", typeof( + Events.V1InvoiceFinalizationFailedEvent) + }, + { "v1.invoice.finalized", typeof(Events.V1InvoiceFinalizedEvent) }, + { + "v1.invoice.marked_uncollectible", typeof( + Events.V1InvoiceMarkedUncollectibleEvent) + }, + { "v1.invoice.overdue", typeof(Events.V1InvoiceOverdueEvent) }, + { "v1.invoice.overpaid", typeof(Events.V1InvoiceOverpaidEvent) }, + { "v1.invoice.paid", typeof(Events.V1InvoicePaidEvent) }, + { + "v1.invoice.payment_action_required", typeof( + Events.V1InvoicePaymentActionRequiredEvent) + }, + { "v1.invoice.payment_failed", typeof(Events.V1InvoicePaymentFailedEvent) }, + { + "v1.invoice.payment_succeeded", typeof( + Events.V1InvoicePaymentSucceededEvent) + }, + { "v1.invoice.sent", typeof(Events.V1InvoiceSentEvent) }, + { "v1.invoice.upcoming", typeof(Events.V1InvoiceUpcomingEvent) }, + { "v1.invoice.updated", typeof(Events.V1InvoiceUpdatedEvent) }, + { "v1.invoice.voided", typeof(Events.V1InvoiceVoidedEvent) }, + { "v1.invoice.will_be_due", typeof(Events.V1InvoiceWillBeDueEvent) }, + { "v1.invoice_payment.paid", typeof(Events.V1InvoicePaymentPaidEvent) }, + { "v1.invoiceitem.created", typeof(Events.V1InvoiceitemCreatedEvent) }, + { "v1.invoiceitem.deleted", typeof(Events.V1InvoiceitemDeletedEvent) }, + { + "v1.issuing_authorization.created", typeof( + Events.V1IssuingAuthorizationCreatedEvent) + }, + { + "v1.issuing_authorization.request", typeof( + Events.V1IssuingAuthorizationRequestEvent) + }, + { + "v1.issuing_authorization.updated", typeof( + Events.V1IssuingAuthorizationUpdatedEvent) + }, + { "v1.issuing_card.created", typeof(Events.V1IssuingCardCreatedEvent) }, + { "v1.issuing_card.updated", typeof(Events.V1IssuingCardUpdatedEvent) }, + { + "v1.issuing_cardholder.created", typeof( + Events.V1IssuingCardholderCreatedEvent) + }, + { + "v1.issuing_cardholder.updated", typeof( + Events.V1IssuingCardholderUpdatedEvent) + }, + { "v1.issuing_dispute.closed", typeof(Events.V1IssuingDisputeClosedEvent) }, + { "v1.issuing_dispute.created", typeof(Events.V1IssuingDisputeCreatedEvent) }, + { + "v1.issuing_dispute.funds_reinstated", typeof( + Events.V1IssuingDisputeFundsReinstatedEvent) + }, + { + "v1.issuing_dispute.funds_rescinded", typeof( + Events.V1IssuingDisputeFundsRescindedEvent) + }, + { + "v1.issuing_dispute.submitted", typeof( + Events.V1IssuingDisputeSubmittedEvent) + }, + { "v1.issuing_dispute.updated", typeof(Events.V1IssuingDisputeUpdatedEvent) }, + { + "v1.issuing_personalization_design.activated", typeof( + Events.V1IssuingPersonalizationDesignActivatedEvent) + }, + { + "v1.issuing_personalization_design.deactivated", typeof( + Events.V1IssuingPersonalizationDesignDeactivatedEvent) + }, + { + "v1.issuing_personalization_design.rejected", typeof( + Events.V1IssuingPersonalizationDesignRejectedEvent) + }, + { + "v1.issuing_personalization_design.updated", typeof( + Events.V1IssuingPersonalizationDesignUpdatedEvent) + }, + { "v1.issuing_token.created", typeof(Events.V1IssuingTokenCreatedEvent) }, + { "v1.issuing_token.updated", typeof(Events.V1IssuingTokenUpdatedEvent) }, + { + "v1.issuing_transaction.created", typeof( + Events.V1IssuingTransactionCreatedEvent) + }, + { + "v1.issuing_transaction.purchase_details_receipt_updated", typeof( + Events.V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent) + }, + { + "v1.issuing_transaction.updated", typeof( + Events.V1IssuingTransactionUpdatedEvent) + }, + { "v1.mandate.updated", typeof(Events.V1MandateUpdatedEvent) }, + { + "v1.payment_intent.amount_capturable_updated", typeof( + Events.V1PaymentIntentAmountCapturableUpdatedEvent) + }, + { "v1.payment_intent.canceled", typeof(Events.V1PaymentIntentCanceledEvent) }, + { "v1.payment_intent.created", typeof(Events.V1PaymentIntentCreatedEvent) }, + { + "v1.payment_intent.partially_funded", typeof( + Events.V1PaymentIntentPartiallyFundedEvent) + }, + { + "v1.payment_intent.payment_failed", typeof( + Events.V1PaymentIntentPaymentFailedEvent) + }, + { + "v1.payment_intent.processing", typeof( + Events.V1PaymentIntentProcessingEvent) + }, + { + "v1.payment_intent.requires_action", typeof( + Events.V1PaymentIntentRequiresActionEvent) + }, + { "v1.payment_intent.succeeded", typeof(Events.V1PaymentIntentSucceededEvent) }, + { "v1.payment_link.created", typeof(Events.V1PaymentLinkCreatedEvent) }, + { "v1.payment_link.updated", typeof(Events.V1PaymentLinkUpdatedEvent) }, + { "v1.payment_method.attached", typeof(Events.V1PaymentMethodAttachedEvent) }, + { + "v1.payment_method.automatically_updated", typeof( + Events.V1PaymentMethodAutomaticallyUpdatedEvent) + }, + { "v1.payment_method.detached", typeof(Events.V1PaymentMethodDetachedEvent) }, + { "v1.payment_method.updated", typeof(Events.V1PaymentMethodUpdatedEvent) }, + { "v1.payout.canceled", typeof(Events.V1PayoutCanceledEvent) }, + { "v1.payout.created", typeof(Events.V1PayoutCreatedEvent) }, + { "v1.payout.failed", typeof(Events.V1PayoutFailedEvent) }, + { "v1.payout.paid", typeof(Events.V1PayoutPaidEvent) }, + { + "v1.payout.reconciliation_completed", typeof( + Events.V1PayoutReconciliationCompletedEvent) + }, + { "v1.payout.updated", typeof(Events.V1PayoutUpdatedEvent) }, + { "v1.person.created", typeof(Events.V1PersonCreatedEvent) }, + { "v1.person.deleted", typeof(Events.V1PersonDeletedEvent) }, + { "v1.person.updated", typeof(Events.V1PersonUpdatedEvent) }, + { "v1.plan.created", typeof(Events.V1PlanCreatedEvent) }, + { "v1.plan.deleted", typeof(Events.V1PlanDeletedEvent) }, + { "v1.plan.updated", typeof(Events.V1PlanUpdatedEvent) }, + { "v1.price.created", typeof(Events.V1PriceCreatedEvent) }, + { "v1.price.deleted", typeof(Events.V1PriceDeletedEvent) }, + { "v1.price.updated", typeof(Events.V1PriceUpdatedEvent) }, + { "v1.product.created", typeof(Events.V1ProductCreatedEvent) }, + { "v1.product.deleted", typeof(Events.V1ProductDeletedEvent) }, + { "v1.product.updated", typeof(Events.V1ProductUpdatedEvent) }, + { "v1.promotion_code.created", typeof(Events.V1PromotionCodeCreatedEvent) }, + { "v1.promotion_code.updated", typeof(Events.V1PromotionCodeUpdatedEvent) }, + { "v1.quote.accepted", typeof(Events.V1QuoteAcceptedEvent) }, + { "v1.quote.canceled", typeof(Events.V1QuoteCanceledEvent) }, + { "v1.quote.created", typeof(Events.V1QuoteCreatedEvent) }, + { "v1.quote.finalized", typeof(Events.V1QuoteFinalizedEvent) }, + { + "v1.radar.early_fraud_warning.created", typeof( + Events.V1RadarEarlyFraudWarningCreatedEvent) + }, + { + "v1.radar.early_fraud_warning.updated", typeof( + Events.V1RadarEarlyFraudWarningUpdatedEvent) + }, + { "v1.refund.created", typeof(Events.V1RefundCreatedEvent) }, + { "v1.refund.failed", typeof(Events.V1RefundFailedEvent) }, + { "v1.refund.updated", typeof(Events.V1RefundUpdatedEvent) }, + { "v1.review.closed", typeof(Events.V1ReviewClosedEvent) }, + { "v1.review.opened", typeof(Events.V1ReviewOpenedEvent) }, + { "v1.setup_intent.canceled", typeof(Events.V1SetupIntentCanceledEvent) }, + { "v1.setup_intent.created", typeof(Events.V1SetupIntentCreatedEvent) }, + { + "v1.setup_intent.requires_action", typeof( + Events.V1SetupIntentRequiresActionEvent) + }, + { "v1.setup_intent.setup_failed", typeof(Events.V1SetupIntentSetupFailedEvent) }, + { "v1.setup_intent.succeeded", typeof(Events.V1SetupIntentSucceededEvent) }, + { + "v1.sigma.scheduled_query_run.created", typeof( + Events.V1SigmaScheduledQueryRunCreatedEvent) + }, + { "v1.source.canceled", typeof(Events.V1SourceCanceledEvent) }, + { "v1.source.chargeable", typeof(Events.V1SourceChargeableEvent) }, + { "v1.source.failed", typeof(Events.V1SourceFailedEvent) }, + { + "v1.source.refund_attributes_required", typeof( + Events.V1SourceRefundAttributesRequiredEvent) + }, + { + "v1.subscription_schedule.aborted", typeof( + Events.V1SubscriptionScheduleAbortedEvent) + }, + { + "v1.subscription_schedule.canceled", typeof( + Events.V1SubscriptionScheduleCanceledEvent) + }, + { + "v1.subscription_schedule.completed", typeof( + Events.V1SubscriptionScheduleCompletedEvent) + }, + { + "v1.subscription_schedule.created", typeof( + Events.V1SubscriptionScheduleCreatedEvent) + }, + { + "v1.subscription_schedule.expiring", typeof( + Events.V1SubscriptionScheduleExpiringEvent) + }, + { + "v1.subscription_schedule.released", typeof( + Events.V1SubscriptionScheduleReleasedEvent) + }, + { + "v1.subscription_schedule.updated", typeof( + Events.V1SubscriptionScheduleUpdatedEvent) + }, + { "v1.tax.settings.updated", typeof(Events.V1TaxSettingsUpdatedEvent) }, + { "v1.tax_rate.created", typeof(Events.V1TaxRateCreatedEvent) }, + { "v1.tax_rate.updated", typeof(Events.V1TaxRateUpdatedEvent) }, + { + "v1.terminal.reader.action_failed", typeof( + Events.V1TerminalReaderActionFailedEvent) + }, + { + "v1.terminal.reader.action_succeeded", typeof( + Events.V1TerminalReaderActionSucceededEvent) + }, + { + "v1.terminal.reader.action_updated", typeof( + Events.V1TerminalReaderActionUpdatedEvent) + }, + { + "v1.test_helpers.test_clock.advancing", typeof( + Events.V1TestHelpersTestClockAdvancingEvent) + }, + { + "v1.test_helpers.test_clock.created", typeof( + Events.V1TestHelpersTestClockCreatedEvent) + }, + { + "v1.test_helpers.test_clock.deleted", typeof( + Events.V1TestHelpersTestClockDeletedEvent) + }, + { + "v1.test_helpers.test_clock.internal_failure", typeof( + Events.V1TestHelpersTestClockInternalFailureEvent) + }, + { + "v1.test_helpers.test_clock.ready", typeof( + Events.V1TestHelpersTestClockReadyEvent) + }, + { "v1.topup.canceled", typeof(Events.V1TopupCanceledEvent) }, + { "v1.topup.created", typeof(Events.V1TopupCreatedEvent) }, + { "v1.topup.failed", typeof(Events.V1TopupFailedEvent) }, + { "v1.topup.reversed", typeof(Events.V1TopupReversedEvent) }, + { "v1.topup.succeeded", typeof(Events.V1TopupSucceededEvent) }, + { "v1.transfer.created", typeof(Events.V1TransferCreatedEvent) }, + { "v1.transfer.reversed", typeof(Events.V1TransferReversedEvent) }, + { "v1.transfer.updated", typeof(Events.V1TransferUpdatedEvent) }, { "v2.billing.cadence.billed", typeof(Events.V2BillingCadenceBilledEvent) }, { "v2.billing.cadence.canceled", typeof(Events.V2BillingCadenceCanceledEvent) }, { "v2.billing.cadence.created", typeof(Events.V2BillingCadenceCreatedEvent) }, @@ -542,6 +1010,22 @@ public static class StripeTypeRegistry "v2.billing.rate_card_version.created", typeof( Events.V2BillingRateCardVersionCreatedEvent) }, + { + "v2.commerce.product_catalog.imports.failed", typeof( + Events.V2CommerceProductCatalogImportsFailedEvent) + }, + { + "v2.commerce.product_catalog.imports.processing", typeof( + Events.V2CommerceProductCatalogImportsProcessingEvent) + }, + { + "v2.commerce.product_catalog.imports.succeeded", typeof( + Events.V2CommerceProductCatalogImportsSucceededEvent) + }, + { + "v2.commerce.product_catalog.imports.succeeded_with_errors", typeof( + Events.V2CommerceProductCatalogImportsSucceededWithErrorsEvent) + }, { "v2.core.account.closed", typeof(Events.V2CoreAccountClosedEvent) }, { "v2.core.account.created", typeof(Events.V2CoreAccountCreatedEvent) }, { "v2.core.account.updated", typeof(Events.V2CoreAccountUpdatedEvent) }, @@ -621,6 +1105,26 @@ public static class StripeTypeRegistry "v2.core.account_signals.fraudulent_website_ready", typeof( Events.V2CoreAccountSignalsFraudulentWebsiteReadyEvent) }, + { + "v2.core.approval_request.approved", typeof( + Events.V2CoreApprovalRequestApprovedEvent) + }, + { + "v2.core.approval_request.canceled", typeof( + Events.V2CoreApprovalRequestCanceledEvent) + }, + { + "v2.core.approval_request.failed", typeof( + Events.V2CoreApprovalRequestFailedEvent) + }, + { + "v2.core.approval_request.rejected", typeof( + Events.V2CoreApprovalRequestRejectedEvent) + }, + { + "v2.core.approval_request.succeeded", typeof( + Events.V2CoreApprovalRequestSucceededEvent) + }, { "v2.core.batch_job.batch_failed", typeof( Events.V2CoreBatchJobBatchFailedEvent) @@ -660,8 +1164,8 @@ public static class StripeTypeRegistry Events.V2CoreClaimableSandboxExpiringEvent) }, { - "v2.core.claimable_sandbox.sandbox_details_owner_account_updated", typeof( - Events.V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent) + "v2.core.claimable_sandbox.updated", typeof( + Events.V2CoreClaimableSandboxUpdatedEvent) }, { "v2.core.event_destination.ping", typeof( @@ -715,6 +1219,14 @@ public static class StripeTypeRegistry "v2.core.health.issuing_authorization_request_timeout.resolved", typeof( Events.V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent) }, + { + "v2.core.health.meter_event_summaries_delayed.firing", typeof( + Events.V2CoreHealthMeterEventSummariesDelayedFiringEvent) + }, + { + "v2.core.health.meter_event_summaries_delayed.resolved", typeof( + Events.V2CoreHealthMeterEventSummariesDelayedResolvedEvent) + }, { "v2.core.health.payment_method_error.firing", typeof( Events.V2CoreHealthPaymentMethodErrorFiringEvent) @@ -763,6 +1275,18 @@ public static class StripeTypeRegistry "v2.data.reporting.query_run.updated", typeof( Events.V2DataReportingQueryRunUpdatedEvent) }, + { + "v2.extend.workflow_run.failed", typeof( + Events.V2ExtendWorkflowRunFailedEvent) + }, + { + "v2.extend.workflow_run.started", typeof( + Events.V2ExtendWorkflowRunStartedEvent) + }, + { + "v2.extend.workflow_run.succeeded", typeof( + Events.V2ExtendWorkflowRunSucceededEvent) + }, { "v2.iam.api_key.created", typeof(Events.V2IamApiKeyCreatedEvent) }, { "v2.iam.api_key.default_secret_revealed", typeof( @@ -951,6 +1475,22 @@ public static class StripeTypeRegistry "v2.money_management.transaction.updated", typeof( Events.V2MoneyManagementTransactionUpdatedEvent) }, + { + "v2.orchestrated_commerce.agreement.confirmed", typeof( + Events.V2OrchestratedCommerceAgreementConfirmedEvent) + }, + { + "v2.orchestrated_commerce.agreement.created", typeof( + Events.V2OrchestratedCommerceAgreementCreatedEvent) + }, + { + "v2.orchestrated_commerce.agreement.partially_confirmed", typeof( + Events.V2OrchestratedCommerceAgreementPartiallyConfirmedEvent) + }, + { + "v2.orchestrated_commerce.agreement.terminated", typeof( + Events.V2OrchestratedCommerceAgreementTerminatedEvent) + }, { "v2.payments.off_session_payment.attempt_failed", typeof( Events.V2PaymentsOffSessionPaymentAttemptFailedEvent) @@ -1067,10 +1607,48 @@ public static class StripeTypeRegistry new Dictionary { // V2EventNotificationsToTypes: The beginning of the section generated from our OpenAPI spec + { + "v1.account.application.authorized", typeof( + Events.V1AccountApplicationAuthorizedEventNotification) + }, + { + "v1.account.application.deauthorized", typeof( + Events.V1AccountApplicationDeauthorizedEventNotification) + }, + { + "v1.account.external_account.created", typeof( + Events.V1AccountExternalAccountCreatedEventNotification) + }, + { + "v1.account.external_account.deleted", typeof( + Events.V1AccountExternalAccountDeletedEventNotification) + }, + { + "v1.account.external_account.updated", typeof( + Events.V1AccountExternalAccountUpdatedEventNotification) + }, + { "v1.account.updated", typeof(Events.V1AccountUpdatedEventNotification) }, { "v1.account_signals[delinquency].created", typeof( Events.V1AccountSignalsIncludingDelinquencyCreatedEventNotification) }, + { + "v1.application_fee.created", typeof( + Events.V1ApplicationFeeCreatedEventNotification) + }, + { + "v1.application_fee.refund.updated", typeof( + Events.V1ApplicationFeeRefundUpdatedEventNotification) + }, + { + "v1.application_fee.refunded", typeof( + Events.V1ApplicationFeeRefundedEventNotification) + }, + { "v1.balance.available", typeof(Events.V1BalanceAvailableEventNotification) }, + { + "v1.billing.alert.triggered", typeof( + Events.V1BillingAlertTriggeredEventNotification) + }, { "v1.billing.meter.error_report_triggered", typeof( Events.V1BillingMeterErrorReportTriggeredEventNotification) @@ -1079,6 +1657,557 @@ public static class StripeTypeRegistry "v1.billing.meter.no_meter_found", typeof( Events.V1BillingMeterNoMeterFoundEventNotification) }, + { + "v1.billing_portal.configuration.created", typeof( + Events.V1BillingPortalConfigurationCreatedEventNotification) + }, + { + "v1.billing_portal.configuration.updated", typeof( + Events.V1BillingPortalConfigurationUpdatedEventNotification) + }, + { + "v1.billing_portal.session.created", typeof( + Events.V1BillingPortalSessionCreatedEventNotification) + }, + { "v1.capability.updated", typeof(Events.V1CapabilityUpdatedEventNotification) }, + { + "v1.cash_balance.funds_available", typeof( + Events.V1CashBalanceFundsAvailableEventNotification) + }, + { "v1.charge.captured", typeof(Events.V1ChargeCapturedEventNotification) }, + { + "v1.charge.dispute.closed", typeof( + Events.V1ChargeDisputeClosedEventNotification) + }, + { + "v1.charge.dispute.created", typeof( + Events.V1ChargeDisputeCreatedEventNotification) + }, + { + "v1.charge.dispute.funds_reinstated", typeof( + Events.V1ChargeDisputeFundsReinstatedEventNotification) + }, + { + "v1.charge.dispute.funds_withdrawn", typeof( + Events.V1ChargeDisputeFundsWithdrawnEventNotification) + }, + { + "v1.charge.dispute.updated", typeof( + Events.V1ChargeDisputeUpdatedEventNotification) + }, + { "v1.charge.expired", typeof(Events.V1ChargeExpiredEventNotification) }, + { "v1.charge.failed", typeof(Events.V1ChargeFailedEventNotification) }, + { "v1.charge.pending", typeof(Events.V1ChargePendingEventNotification) }, + { + "v1.charge.refund.updated", typeof( + Events.V1ChargeRefundUpdatedEventNotification) + }, + { "v1.charge.refunded", typeof(Events.V1ChargeRefundedEventNotification) }, + { "v1.charge.succeeded", typeof(Events.V1ChargeSucceededEventNotification) }, + { "v1.charge.updated", typeof(Events.V1ChargeUpdatedEventNotification) }, + { + "v1.checkout.session.async_payment_failed", typeof( + Events.V1CheckoutSessionAsyncPaymentFailedEventNotification) + }, + { + "v1.checkout.session.async_payment_succeeded", typeof( + Events.V1CheckoutSessionAsyncPaymentSucceededEventNotification) + }, + { + "v1.checkout.session.completed", typeof( + Events.V1CheckoutSessionCompletedEventNotification) + }, + { + "v1.checkout.session.expired", typeof( + Events.V1CheckoutSessionExpiredEventNotification) + }, + { + "v1.climate.order.canceled", typeof( + Events.V1ClimateOrderCanceledEventNotification) + }, + { + "v1.climate.order.created", typeof( + Events.V1ClimateOrderCreatedEventNotification) + }, + { + "v1.climate.order.delayed", typeof( + Events.V1ClimateOrderDelayedEventNotification) + }, + { + "v1.climate.order.delivered", typeof( + Events.V1ClimateOrderDeliveredEventNotification) + }, + { + "v1.climate.order.product_substituted", typeof( + Events.V1ClimateOrderProductSubstitutedEventNotification) + }, + { + "v1.climate.product.created", typeof( + Events.V1ClimateProductCreatedEventNotification) + }, + { + "v1.climate.product.pricing_updated", typeof( + Events.V1ClimateProductPricingUpdatedEventNotification) + }, + { "v1.coupon.created", typeof(Events.V1CouponCreatedEventNotification) }, + { "v1.coupon.deleted", typeof(Events.V1CouponDeletedEventNotification) }, + { "v1.coupon.updated", typeof(Events.V1CouponUpdatedEventNotification) }, + { + "v1.credit_note.created", typeof( + Events.V1CreditNoteCreatedEventNotification) + }, + { + "v1.credit_note.updated", typeof( + Events.V1CreditNoteUpdatedEventNotification) + }, + { "v1.credit_note.voided", typeof(Events.V1CreditNoteVoidedEventNotification) }, + { "v1.customer.created", typeof(Events.V1CustomerCreatedEventNotification) }, + { "v1.customer.deleted", typeof(Events.V1CustomerDeletedEventNotification) }, + { + "v1.customer.subscription.created", typeof( + Events.V1CustomerSubscriptionCreatedEventNotification) + }, + { + "v1.customer.subscription.deleted", typeof( + Events.V1CustomerSubscriptionDeletedEventNotification) + }, + { + "v1.customer.subscription.paused", typeof( + Events.V1CustomerSubscriptionPausedEventNotification) + }, + { + "v1.customer.subscription.pending_update_applied", typeof( + Events.V1CustomerSubscriptionPendingUpdateAppliedEventNotification) + }, + { + "v1.customer.subscription.pending_update_expired", typeof( + Events.V1CustomerSubscriptionPendingUpdateExpiredEventNotification) + }, + { + "v1.customer.subscription.resumed", typeof( + Events.V1CustomerSubscriptionResumedEventNotification) + }, + { + "v1.customer.subscription.trial_will_end", typeof( + Events.V1CustomerSubscriptionTrialWillEndEventNotification) + }, + { + "v1.customer.subscription.updated", typeof( + Events.V1CustomerSubscriptionUpdatedEventNotification) + }, + { + "v1.customer.tax_id.created", typeof( + Events.V1CustomerTaxIdCreatedEventNotification) + }, + { + "v1.customer.tax_id.deleted", typeof( + Events.V1CustomerTaxIdDeletedEventNotification) + }, + { + "v1.customer.tax_id.updated", typeof( + Events.V1CustomerTaxIdUpdatedEventNotification) + }, + { "v1.customer.updated", typeof(Events.V1CustomerUpdatedEventNotification) }, + { + "v1.customer_cash_balance_transaction.created", typeof( + Events.V1CustomerCashBalanceTransactionCreatedEventNotification) + }, + { + "v1.entitlements.active_entitlement_summary.updated", typeof( + Events.V1EntitlementsActiveEntitlementSummaryUpdatedEventNotification) + }, + { "v1.file.created", typeof(Events.V1FileCreatedEventNotification) }, + { + "v1.financial_connections.account.created", typeof( + Events.V1FinancialConnectionsAccountCreatedEventNotification) + }, + { + "v1.financial_connections.account.deactivated", typeof( + Events.V1FinancialConnectionsAccountDeactivatedEventNotification) + }, + { + "v1.financial_connections.account.disconnected", typeof( + Events.V1FinancialConnectionsAccountDisconnectedEventNotification) + }, + { + "v1.financial_connections.account.reactivated", typeof( + Events.V1FinancialConnectionsAccountReactivatedEventNotification) + }, + { + "v1.financial_connections.account.refreshed_balance", typeof( + Events.V1FinancialConnectionsAccountRefreshedBalanceEventNotification) + }, + { + "v1.financial_connections.account.refreshed_ownership", typeof( + Events.V1FinancialConnectionsAccountRefreshedOwnershipEventNotification) + }, + { + "v1.financial_connections.account.refreshed_transactions", typeof( + Events.V1FinancialConnectionsAccountRefreshedTransactionsEventNotification) + }, + { + "v1.identity.verification_session.canceled", typeof( + Events.V1IdentityVerificationSessionCanceledEventNotification) + }, + { + "v1.identity.verification_session.created", typeof( + Events.V1IdentityVerificationSessionCreatedEventNotification) + }, + { + "v1.identity.verification_session.processing", typeof( + Events.V1IdentityVerificationSessionProcessingEventNotification) + }, + { + "v1.identity.verification_session.redacted", typeof( + Events.V1IdentityVerificationSessionRedactedEventNotification) + }, + { + "v1.identity.verification_session.requires_input", typeof( + Events.V1IdentityVerificationSessionRequiresInputEventNotification) + }, + { + "v1.identity.verification_session.verified", typeof( + Events.V1IdentityVerificationSessionVerifiedEventNotification) + }, + { "v1.invoice.created", typeof(Events.V1InvoiceCreatedEventNotification) }, + { "v1.invoice.deleted", typeof(Events.V1InvoiceDeletedEventNotification) }, + { + "v1.invoice.finalization_failed", typeof( + Events.V1InvoiceFinalizationFailedEventNotification) + }, + { "v1.invoice.finalized", typeof(Events.V1InvoiceFinalizedEventNotification) }, + { + "v1.invoice.marked_uncollectible", typeof( + Events.V1InvoiceMarkedUncollectibleEventNotification) + }, + { "v1.invoice.overdue", typeof(Events.V1InvoiceOverdueEventNotification) }, + { "v1.invoice.overpaid", typeof(Events.V1InvoiceOverpaidEventNotification) }, + { "v1.invoice.paid", typeof(Events.V1InvoicePaidEventNotification) }, + { + "v1.invoice.payment_action_required", typeof( + Events.V1InvoicePaymentActionRequiredEventNotification) + }, + { + "v1.invoice.payment_failed", typeof( + Events.V1InvoicePaymentFailedEventNotification) + }, + { + "v1.invoice.payment_succeeded", typeof( + Events.V1InvoicePaymentSucceededEventNotification) + }, + { "v1.invoice.sent", typeof(Events.V1InvoiceSentEventNotification) }, + { "v1.invoice.upcoming", typeof(Events.V1InvoiceUpcomingEventNotification) }, + { "v1.invoice.updated", typeof(Events.V1InvoiceUpdatedEventNotification) }, + { "v1.invoice.voided", typeof(Events.V1InvoiceVoidedEventNotification) }, + { "v1.invoice.will_be_due", typeof(Events.V1InvoiceWillBeDueEventNotification) }, + { + "v1.invoice_payment.paid", typeof( + Events.V1InvoicePaymentPaidEventNotification) + }, + { + "v1.invoiceitem.created", typeof( + Events.V1InvoiceitemCreatedEventNotification) + }, + { + "v1.invoiceitem.deleted", typeof( + Events.V1InvoiceitemDeletedEventNotification) + }, + { + "v1.issuing_authorization.created", typeof( + Events.V1IssuingAuthorizationCreatedEventNotification) + }, + { + "v1.issuing_authorization.request", typeof( + Events.V1IssuingAuthorizationRequestEventNotification) + }, + { + "v1.issuing_authorization.updated", typeof( + Events.V1IssuingAuthorizationUpdatedEventNotification) + }, + { + "v1.issuing_card.created", typeof( + Events.V1IssuingCardCreatedEventNotification) + }, + { + "v1.issuing_card.updated", typeof( + Events.V1IssuingCardUpdatedEventNotification) + }, + { + "v1.issuing_cardholder.created", typeof( + Events.V1IssuingCardholderCreatedEventNotification) + }, + { + "v1.issuing_cardholder.updated", typeof( + Events.V1IssuingCardholderUpdatedEventNotification) + }, + { + "v1.issuing_dispute.closed", typeof( + Events.V1IssuingDisputeClosedEventNotification) + }, + { + "v1.issuing_dispute.created", typeof( + Events.V1IssuingDisputeCreatedEventNotification) + }, + { + "v1.issuing_dispute.funds_reinstated", typeof( + Events.V1IssuingDisputeFundsReinstatedEventNotification) + }, + { + "v1.issuing_dispute.funds_rescinded", typeof( + Events.V1IssuingDisputeFundsRescindedEventNotification) + }, + { + "v1.issuing_dispute.submitted", typeof( + Events.V1IssuingDisputeSubmittedEventNotification) + }, + { + "v1.issuing_dispute.updated", typeof( + Events.V1IssuingDisputeUpdatedEventNotification) + }, + { + "v1.issuing_personalization_design.activated", typeof( + Events.V1IssuingPersonalizationDesignActivatedEventNotification) + }, + { + "v1.issuing_personalization_design.deactivated", typeof( + Events.V1IssuingPersonalizationDesignDeactivatedEventNotification) + }, + { + "v1.issuing_personalization_design.rejected", typeof( + Events.V1IssuingPersonalizationDesignRejectedEventNotification) + }, + { + "v1.issuing_personalization_design.updated", typeof( + Events.V1IssuingPersonalizationDesignUpdatedEventNotification) + }, + { + "v1.issuing_token.created", typeof( + Events.V1IssuingTokenCreatedEventNotification) + }, + { + "v1.issuing_token.updated", typeof( + Events.V1IssuingTokenUpdatedEventNotification) + }, + { + "v1.issuing_transaction.created", typeof( + Events.V1IssuingTransactionCreatedEventNotification) + }, + { + "v1.issuing_transaction.purchase_details_receipt_updated", typeof( + Events.V1IssuingTransactionPurchaseDetailsReceiptUpdatedEventNotification) + }, + { + "v1.issuing_transaction.updated", typeof( + Events.V1IssuingTransactionUpdatedEventNotification) + }, + { "v1.mandate.updated", typeof(Events.V1MandateUpdatedEventNotification) }, + { + "v1.payment_intent.amount_capturable_updated", typeof( + Events.V1PaymentIntentAmountCapturableUpdatedEventNotification) + }, + { + "v1.payment_intent.canceled", typeof( + Events.V1PaymentIntentCanceledEventNotification) + }, + { + "v1.payment_intent.created", typeof( + Events.V1PaymentIntentCreatedEventNotification) + }, + { + "v1.payment_intent.partially_funded", typeof( + Events.V1PaymentIntentPartiallyFundedEventNotification) + }, + { + "v1.payment_intent.payment_failed", typeof( + Events.V1PaymentIntentPaymentFailedEventNotification) + }, + { + "v1.payment_intent.processing", typeof( + Events.V1PaymentIntentProcessingEventNotification) + }, + { + "v1.payment_intent.requires_action", typeof( + Events.V1PaymentIntentRequiresActionEventNotification) + }, + { + "v1.payment_intent.succeeded", typeof( + Events.V1PaymentIntentSucceededEventNotification) + }, + { + "v1.payment_link.created", typeof( + Events.V1PaymentLinkCreatedEventNotification) + }, + { + "v1.payment_link.updated", typeof( + Events.V1PaymentLinkUpdatedEventNotification) + }, + { + "v1.payment_method.attached", typeof( + Events.V1PaymentMethodAttachedEventNotification) + }, + { + "v1.payment_method.automatically_updated", typeof( + Events.V1PaymentMethodAutomaticallyUpdatedEventNotification) + }, + { + "v1.payment_method.detached", typeof( + Events.V1PaymentMethodDetachedEventNotification) + }, + { + "v1.payment_method.updated", typeof( + Events.V1PaymentMethodUpdatedEventNotification) + }, + { "v1.payout.canceled", typeof(Events.V1PayoutCanceledEventNotification) }, + { "v1.payout.created", typeof(Events.V1PayoutCreatedEventNotification) }, + { "v1.payout.failed", typeof(Events.V1PayoutFailedEventNotification) }, + { "v1.payout.paid", typeof(Events.V1PayoutPaidEventNotification) }, + { + "v1.payout.reconciliation_completed", typeof( + Events.V1PayoutReconciliationCompletedEventNotification) + }, + { "v1.payout.updated", typeof(Events.V1PayoutUpdatedEventNotification) }, + { "v1.person.created", typeof(Events.V1PersonCreatedEventNotification) }, + { "v1.person.deleted", typeof(Events.V1PersonDeletedEventNotification) }, + { "v1.person.updated", typeof(Events.V1PersonUpdatedEventNotification) }, + { "v1.plan.created", typeof(Events.V1PlanCreatedEventNotification) }, + { "v1.plan.deleted", typeof(Events.V1PlanDeletedEventNotification) }, + { "v1.plan.updated", typeof(Events.V1PlanUpdatedEventNotification) }, + { "v1.price.created", typeof(Events.V1PriceCreatedEventNotification) }, + { "v1.price.deleted", typeof(Events.V1PriceDeletedEventNotification) }, + { "v1.price.updated", typeof(Events.V1PriceUpdatedEventNotification) }, + { "v1.product.created", typeof(Events.V1ProductCreatedEventNotification) }, + { "v1.product.deleted", typeof(Events.V1ProductDeletedEventNotification) }, + { "v1.product.updated", typeof(Events.V1ProductUpdatedEventNotification) }, + { + "v1.promotion_code.created", typeof( + Events.V1PromotionCodeCreatedEventNotification) + }, + { + "v1.promotion_code.updated", typeof( + Events.V1PromotionCodeUpdatedEventNotification) + }, + { "v1.quote.accepted", typeof(Events.V1QuoteAcceptedEventNotification) }, + { "v1.quote.canceled", typeof(Events.V1QuoteCanceledEventNotification) }, + { "v1.quote.created", typeof(Events.V1QuoteCreatedEventNotification) }, + { "v1.quote.finalized", typeof(Events.V1QuoteFinalizedEventNotification) }, + { + "v1.radar.early_fraud_warning.created", typeof( + Events.V1RadarEarlyFraudWarningCreatedEventNotification) + }, + { + "v1.radar.early_fraud_warning.updated", typeof( + Events.V1RadarEarlyFraudWarningUpdatedEventNotification) + }, + { "v1.refund.created", typeof(Events.V1RefundCreatedEventNotification) }, + { "v1.refund.failed", typeof(Events.V1RefundFailedEventNotification) }, + { "v1.refund.updated", typeof(Events.V1RefundUpdatedEventNotification) }, + { "v1.review.closed", typeof(Events.V1ReviewClosedEventNotification) }, + { "v1.review.opened", typeof(Events.V1ReviewOpenedEventNotification) }, + { + "v1.setup_intent.canceled", typeof( + Events.V1SetupIntentCanceledEventNotification) + }, + { + "v1.setup_intent.created", typeof( + Events.V1SetupIntentCreatedEventNotification) + }, + { + "v1.setup_intent.requires_action", typeof( + Events.V1SetupIntentRequiresActionEventNotification) + }, + { + "v1.setup_intent.setup_failed", typeof( + Events.V1SetupIntentSetupFailedEventNotification) + }, + { + "v1.setup_intent.succeeded", typeof( + Events.V1SetupIntentSucceededEventNotification) + }, + { + "v1.sigma.scheduled_query_run.created", typeof( + Events.V1SigmaScheduledQueryRunCreatedEventNotification) + }, + { "v1.source.canceled", typeof(Events.V1SourceCanceledEventNotification) }, + { "v1.source.chargeable", typeof(Events.V1SourceChargeableEventNotification) }, + { "v1.source.failed", typeof(Events.V1SourceFailedEventNotification) }, + { + "v1.source.refund_attributes_required", typeof( + Events.V1SourceRefundAttributesRequiredEventNotification) + }, + { + "v1.subscription_schedule.aborted", typeof( + Events.V1SubscriptionScheduleAbortedEventNotification) + }, + { + "v1.subscription_schedule.canceled", typeof( + Events.V1SubscriptionScheduleCanceledEventNotification) + }, + { + "v1.subscription_schedule.completed", typeof( + Events.V1SubscriptionScheduleCompletedEventNotification) + }, + { + "v1.subscription_schedule.created", typeof( + Events.V1SubscriptionScheduleCreatedEventNotification) + }, + { + "v1.subscription_schedule.expiring", typeof( + Events.V1SubscriptionScheduleExpiringEventNotification) + }, + { + "v1.subscription_schedule.released", typeof( + Events.V1SubscriptionScheduleReleasedEventNotification) + }, + { + "v1.subscription_schedule.updated", typeof( + Events.V1SubscriptionScheduleUpdatedEventNotification) + }, + { + "v1.tax.settings.updated", typeof( + Events.V1TaxSettingsUpdatedEventNotification) + }, + { "v1.tax_rate.created", typeof(Events.V1TaxRateCreatedEventNotification) }, + { "v1.tax_rate.updated", typeof(Events.V1TaxRateUpdatedEventNotification) }, + { + "v1.terminal.reader.action_failed", typeof( + Events.V1TerminalReaderActionFailedEventNotification) + }, + { + "v1.terminal.reader.action_succeeded", typeof( + Events.V1TerminalReaderActionSucceededEventNotification) + }, + { + "v1.terminal.reader.action_updated", typeof( + Events.V1TerminalReaderActionUpdatedEventNotification) + }, + { + "v1.test_helpers.test_clock.advancing", typeof( + Events.V1TestHelpersTestClockAdvancingEventNotification) + }, + { + "v1.test_helpers.test_clock.created", typeof( + Events.V1TestHelpersTestClockCreatedEventNotification) + }, + { + "v1.test_helpers.test_clock.deleted", typeof( + Events.V1TestHelpersTestClockDeletedEventNotification) + }, + { + "v1.test_helpers.test_clock.internal_failure", typeof( + Events.V1TestHelpersTestClockInternalFailureEventNotification) + }, + { + "v1.test_helpers.test_clock.ready", typeof( + Events.V1TestHelpersTestClockReadyEventNotification) + }, + { "v1.topup.canceled", typeof(Events.V1TopupCanceledEventNotification) }, + { "v1.topup.created", typeof(Events.V1TopupCreatedEventNotification) }, + { "v1.topup.failed", typeof(Events.V1TopupFailedEventNotification) }, + { "v1.topup.reversed", typeof(Events.V1TopupReversedEventNotification) }, + { "v1.topup.succeeded", typeof(Events.V1TopupSucceededEventNotification) }, + { "v1.transfer.created", typeof(Events.V1TransferCreatedEventNotification) }, + { "v1.transfer.reversed", typeof(Events.V1TransferReversedEventNotification) }, + { "v1.transfer.updated", typeof(Events.V1TransferUpdatedEventNotification) }, { "v2.billing.cadence.billed", typeof( Events.V2BillingCadenceBilledEventNotification) @@ -1231,6 +2360,22 @@ public static class StripeTypeRegistry "v2.billing.rate_card_version.created", typeof( Events.V2BillingRateCardVersionCreatedEventNotification) }, + { + "v2.commerce.product_catalog.imports.failed", typeof( + Events.V2CommerceProductCatalogImportsFailedEventNotification) + }, + { + "v2.commerce.product_catalog.imports.processing", typeof( + Events.V2CommerceProductCatalogImportsProcessingEventNotification) + }, + { + "v2.commerce.product_catalog.imports.succeeded", typeof( + Events.V2CommerceProductCatalogImportsSucceededEventNotification) + }, + { + "v2.commerce.product_catalog.imports.succeeded_with_errors", typeof( + Events.V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification) + }, { "v2.core.account.closed", typeof( Events.V2CoreAccountClosedEventNotification) @@ -1319,6 +2464,26 @@ public static class StripeTypeRegistry "v2.core.account_signals.fraudulent_website_ready", typeof( Events.V2CoreAccountSignalsFraudulentWebsiteReadyEventNotification) }, + { + "v2.core.approval_request.approved", typeof( + Events.V2CoreApprovalRequestApprovedEventNotification) + }, + { + "v2.core.approval_request.canceled", typeof( + Events.V2CoreApprovalRequestCanceledEventNotification) + }, + { + "v2.core.approval_request.failed", typeof( + Events.V2CoreApprovalRequestFailedEventNotification) + }, + { + "v2.core.approval_request.rejected", typeof( + Events.V2CoreApprovalRequestRejectedEventNotification) + }, + { + "v2.core.approval_request.succeeded", typeof( + Events.V2CoreApprovalRequestSucceededEventNotification) + }, { "v2.core.batch_job.batch_failed", typeof( Events.V2CoreBatchJobBatchFailedEventNotification) @@ -1376,8 +2541,8 @@ public static class StripeTypeRegistry Events.V2CoreClaimableSandboxExpiringEventNotification) }, { - "v2.core.claimable_sandbox.sandbox_details_owner_account_updated", typeof( - Events.V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEventNotification) + "v2.core.claimable_sandbox.updated", typeof( + Events.V2CoreClaimableSandboxUpdatedEventNotification) }, { "v2.core.event_destination.ping", typeof( @@ -1431,6 +2596,14 @@ public static class StripeTypeRegistry "v2.core.health.issuing_authorization_request_timeout.resolved", typeof( Events.V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventNotification) }, + { + "v2.core.health.meter_event_summaries_delayed.firing", typeof( + Events.V2CoreHealthMeterEventSummariesDelayedFiringEventNotification) + }, + { + "v2.core.health.meter_event_summaries_delayed.resolved", typeof( + Events.V2CoreHealthMeterEventSummariesDelayedResolvedEventNotification) + }, { "v2.core.health.payment_method_error.firing", typeof( Events.V2CoreHealthPaymentMethodErrorFiringEventNotification) @@ -1479,6 +2652,18 @@ public static class StripeTypeRegistry "v2.data.reporting.query_run.updated", typeof( Events.V2DataReportingQueryRunUpdatedEventNotification) }, + { + "v2.extend.workflow_run.failed", typeof( + Events.V2ExtendWorkflowRunFailedEventNotification) + }, + { + "v2.extend.workflow_run.started", typeof( + Events.V2ExtendWorkflowRunStartedEventNotification) + }, + { + "v2.extend.workflow_run.succeeded", typeof( + Events.V2ExtendWorkflowRunSucceededEventNotification) + }, { "v2.iam.api_key.created", typeof(Events.V2IamApiKeyCreatedEventNotification) }, { "v2.iam.api_key.default_secret_revealed", typeof( @@ -1667,6 +2852,22 @@ public static class StripeTypeRegistry "v2.money_management.transaction.updated", typeof( Events.V2MoneyManagementTransactionUpdatedEventNotification) }, + { + "v2.orchestrated_commerce.agreement.confirmed", typeof( + Events.V2OrchestratedCommerceAgreementConfirmedEventNotification) + }, + { + "v2.orchestrated_commerce.agreement.created", typeof( + Events.V2OrchestratedCommerceAgreementCreatedEventNotification) + }, + { + "v2.orchestrated_commerce.agreement.partially_confirmed", typeof( + Events.V2OrchestratedCommerceAgreementPartiallyConfirmedEventNotification) + }, + { + "v2.orchestrated_commerce.agreement.terminated", typeof( + Events.V2OrchestratedCommerceAgreementTerminatedEventNotification) + }, { "v2.payments.off_session_payment.attempt_failed", typeof( Events.V2PaymentsOffSessionPaymentAttemptFailedEventNotification) diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAppInstallFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAppInstallFeaturesOptions.cs index 7f53f02c9e..f01009030e 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAppInstallFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAppInstallFeaturesOptions.cs @@ -18,8 +18,9 @@ public class AccountSessionComponentsAppInstallFeaturesOptions : INestedOptions, /// /// The list of apps allowed to be enabled in the embedded component. /// - [JsonProperty("allowed_apps")] + [JsonProperty("allowed_apps", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("allowed_apps")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List AllowedApps { get => this.allowedApps; diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAppViewportFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAppViewportFeaturesOptions.cs index 4a4d5893f7..8c8e7c0fee 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAppViewportFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAppViewportFeaturesOptions.cs @@ -18,8 +18,9 @@ public class AccountSessionComponentsAppViewportFeaturesOptions : INestedOptions /// /// The list of apps allowed to be enabled in the embedded component. /// - [JsonProperty("allowed_apps")] + [JsonProperty("allowed_apps", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("allowed_apps")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List AllowedApps { get => this.allowedApps; diff --git a/src/Stripe.net/Services/Accounts/AccountBusinessProfileOptions.cs b/src/Stripe.net/Services/Accounts/AccountBusinessProfileOptions.cs index 630bb69292..2ff47f61a0 100644 --- a/src/Stripe.net/Services/Accounts/AccountBusinessProfileOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountBusinessProfileOptions.cs @@ -76,8 +76,9 @@ public class AccountBusinessProfileOptions : INestedOptions, IHasSetTracking /// A link to the business's publicly available terms related to the Specified Commercial /// Transaction Act. Used by the Checkout product and for Japanese payment methods. /// - [JsonProperty("specified_commercial_transactions_act_url")] + [JsonProperty("specified_commercial_transactions_act_url", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("specified_commercial_transactions_act_url")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string SpecifiedCommercialTransactionsActUrl { get => this.specifiedCommercialTransactionsActUrl; diff --git a/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesAccountFundingOptions.cs b/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesAccountFundingOptions.cs index 2295f2931c..760ad210e3 100644 --- a/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesAccountFundingOptions.cs +++ b/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesAccountFundingOptions.cs @@ -25,8 +25,9 @@ public class ChargePaymentDetailsMoneyServicesAccountFundingOptions : INestedOpt /// /// Inline identity details for the beneficiary of this account funding transaction. /// - [JsonProperty("beneficiary_details")] + [JsonProperty("beneficiary_details", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("beneficiary_details")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public ChargePaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsOptions BeneficiaryDetails { get => this.beneficiaryDetails; @@ -47,8 +48,9 @@ public ChargePaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsOptions /// /// Inline identity details for the sender of this account funding transaction. /// - [JsonProperty("sender_details")] + [JsonProperty("sender_details", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("sender_details")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public ChargePaymentDetailsMoneyServicesAccountFundingSenderDetailsOptions SenderDetails { get => this.senderDetails; diff --git a/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesOptions.cs b/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesOptions.cs index f9b72e7dbc..6465c22861 100644 --- a/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesOptions.cs +++ b/src/Stripe.net/Services/Charges/ChargePaymentDetailsMoneyServicesOptions.cs @@ -18,8 +18,9 @@ public class ChargePaymentDetailsMoneyServicesOptions : INestedOptions, IHasSetT /// /// Account funding transaction details including sender and beneficiary information. /// - [JsonProperty("account_funding")] + [JsonProperty("account_funding", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("account_funding")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public ChargePaymentDetailsMoneyServicesAccountFundingOptions AccountFunding { get => this.accountFunding; @@ -33,8 +34,9 @@ public ChargePaymentDetailsMoneyServicesAccountFundingOptions AccountFunding /// /// The type of money services transaction. /// - [JsonProperty("transaction_type")] + [JsonProperty("transaction_type", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("transaction_type")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string TransactionType { get => this.transactionType; diff --git a/src/Stripe.net/Services/Charges/ChargePaymentDetailsOptions.cs b/src/Stripe.net/Services/Charges/ChargePaymentDetailsOptions.cs index a49f89832f..a7edc5cf32 100644 --- a/src/Stripe.net/Services/Charges/ChargePaymentDetailsOptions.cs +++ b/src/Stripe.net/Services/Charges/ChargePaymentDetailsOptions.cs @@ -31,8 +31,9 @@ public class ChargePaymentDetailsOptions : INestedOptions, IHasSetTracking /// /// Car rental data for this PaymentIntent. /// - [JsonProperty("car_rental_data")] + [JsonProperty("car_rental_data", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("car_rental_data")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List CarRentalData { get => this.carRentalData; @@ -49,8 +50,9 @@ public List CarRentalData /// This field is truncated to 25 alphanumeric characters, excluding spaces, before being /// sent to card networks. /// - [JsonProperty("customer_reference")] + [JsonProperty("customer_reference", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("customer_reference")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string CustomerReference { get => this.customerReference; @@ -71,8 +73,9 @@ public string CustomerReference /// /// Fleet data for this PaymentIntent. /// - [JsonProperty("fleet_data")] + [JsonProperty("fleet_data", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("fleet_data")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List FleetData { get => this.fleetData; @@ -93,8 +96,9 @@ public List FleetData /// /// Flight data for this PaymentIntent. /// - [JsonProperty("flight_data")] + [JsonProperty("flight_data", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("flight_data")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List FlightData { get => this.flightData; @@ -115,8 +119,9 @@ public List FlightData /// /// Lodging data for this PaymentIntent. /// - [JsonProperty("lodging_data")] + [JsonProperty("lodging_data", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("lodging_data")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List LodgingData { get => this.lodgingData; @@ -130,8 +135,9 @@ public List LodgingData /// /// Money services details for this PaymentIntent. /// - [JsonProperty("money_services")] + [JsonProperty("money_services", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("money_services")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public ChargePaymentDetailsMoneyServicesOptions MoneyServices { get => this.moneyServices; @@ -150,8 +156,9 @@ public ChargePaymentDetailsMoneyServicesOptions MoneyServices /// before being sent to card networks. For Klarna, this field is truncated to 255 /// characters and is visible to customers when they view the order in the Klarna app. /// - [JsonProperty("order_reference")] + [JsonProperty("order_reference", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("order_reference")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string OrderReference { get => this.orderReference; diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs index 14f5455680..39af6c8f45 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs @@ -124,6 +124,21 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata [STJS.JsonPropertyName("custom_fields")] public List CustomFields { get; set; } + /// + /// A list of custom payment methods (e.g., cpmt_123) this Checkout Session can + /// accept. + /// + /// You can add custom payment methods to your account through the dashboard under Settings + /// > Custom Payment Methods. + /// + /// Read more about custom payment methods in checkout in our custom + /// payment method types guide. + /// + [JsonProperty("custom_payment_method_types")] + [STJS.JsonPropertyName("custom_payment_method_types")] + public List CustomPaymentMethodTypes { get; set; } + /// /// Display additional text for your customers using custom text. You can't set this /// parameter if ui_mode is custom. diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionDiscountCouponDataOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionDiscountCouponDataOptions.cs index 181f3112e2..0c4cc43d85 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionDiscountCouponDataOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionDiscountCouponDataOptions.cs @@ -46,8 +46,9 @@ public class SessionDiscountCouponDataOptions : INestedOptions, IHasMetadata, IH /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public Dictionary Metadata { get => this.metadata; diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemPriceDataProductDataTaxDetailsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemPriceDataProductDataTaxDetailsOptions.cs index 173d9968cc..053dd1a1be 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemPriceDataProductDataTaxDetailsOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemPriceDataProductDataTaxDetailsOptions.cs @@ -26,8 +26,9 @@ public class SessionLineItemPriceDataProductDataTaxDetailsOptions : INestedOptio /// /// A tax code ID. /// - [JsonProperty("tax_code")] + [JsonProperty("tax_code", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("tax_code")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string TaxCode { get => this.taxCode; diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs index 2b1513a67f..b494c90999 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs @@ -93,8 +93,9 @@ public class SessionSubscriptionDataOptions : INestedOptions, IHasMetadata, IHas /// analogous to calling Create an /// invoice for the given subscription at the specified interval. /// - [JsonProperty("pending_invoice_item_interval")] + [JsonProperty("pending_invoice_item_interval", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("pending_invoice_item_interval")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public SessionSubscriptionDataPendingInvoiceItemIntervalOptions PendingInvoiceItemInterval { get => this.pendingInvoiceItemInterval; @@ -137,8 +138,9 @@ public SessionSubscriptionDataPendingInvoiceItemIntervalOptions PendingInvoiceIt /// Integer representing the number of trial period days before the customer is charged for /// the first time. Has to be at least 1. /// - [JsonProperty("trial_period_days")] + [JsonProperty("trial_period_days", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("trial_period_days")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public long? TrialPeriodDays { get => this.trialPeriodDays; diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionUpdateOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionUpdateOptions.cs index a5f58dd13b..c38007fb22 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionUpdateOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionUpdateOptions.cs @@ -32,8 +32,9 @@ public class SessionUpdateOptions : BaseOptions, IHasMetadata /// /// List of coupons and promotion codes attached to the Checkout Session. /// - [JsonProperty("discounts")] + [JsonProperty("discounts", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("discounts")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List Discounts { get => this.discounts; diff --git a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionConfirmOptions.cs b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionConfirmOptions.cs index 1ac983a8ba..22dc0bd2a4 100644 --- a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionConfirmOptions.cs +++ b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionConfirmOptions.cs @@ -22,6 +22,14 @@ public class RequestedSessionConfirmOptions : BaseOptions [STJS.JsonPropertyName("payment_method")] public string PaymentMethod { get; set; } + /// + /// The URL to redirect your customer back to after they authenticate or complete a payment + /// action. Required for redirect-based payment methods such as Affirm or Klarna. + /// + [JsonProperty("return_url")] + [STJS.JsonPropertyName("return_url")] + public string ReturnUrl { get; set; } + /// /// Risk details/signals associated with the requested session. /// diff --git a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOptions.cs b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOptions.cs index c24cab248b..decd8a534f 100644 --- a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOptions.cs +++ b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOptions.cs @@ -24,6 +24,7 @@ public class RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOptions /// /// The type of fulfillment option. + /// One of: digital, or shipping. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideOptions.cs b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideOptions.cs index 631924b40d..8ec94dd096 100644 --- a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideOptions.cs +++ b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideOptions.cs @@ -32,6 +32,7 @@ public class RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverride /// /// The type of fulfillment option. + /// One of: digital, or shipping. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionUpdateOptions.cs b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionUpdateOptions.cs index b872d46fb9..c4d8e0eab1 100644 --- a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionUpdateOptions.cs +++ b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionUpdateOptions.cs @@ -29,8 +29,9 @@ public class RequestedSessionUpdateOptions : BaseOptions, IHasMetadata /// /// The metadata for this requested session. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public Dictionary Metadata { get => this.metadata; @@ -58,8 +59,9 @@ public Dictionary Metadata /// /// The shared metadata for this requested session. /// - [JsonProperty("shared_metadata")] + [JsonProperty("shared_metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("shared_metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public Dictionary SharedMetadata { get => this.sharedMetadata; diff --git a/src/Stripe.net/Services/ExternalAccounts/ExternalAccountUpdateOptions.cs b/src/Stripe.net/Services/ExternalAccounts/ExternalAccountUpdateOptions.cs index 993da37133..b574e64f73 100644 --- a/src/Stripe.net/Services/ExternalAccounts/ExternalAccountUpdateOptions.cs +++ b/src/Stripe.net/Services/ExternalAccounts/ExternalAccountUpdateOptions.cs @@ -24,8 +24,9 @@ public class ExternalAccountUpdateOptions : BaseOptions, IHasMetadata /// company. /// One of: company, or individual. /// - [JsonProperty("account_holder_type")] + [JsonProperty("account_holder_type", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("account_holder_type")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string AccountHolderType { get => this.accountHolderType; @@ -121,8 +122,9 @@ public string AccountHolderType /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public Dictionary Metadata { get => this.metadata; diff --git a/src/Stripe.net/Services/InvoiceItems/InvoiceItemUpdateOptions.cs b/src/Stripe.net/Services/InvoiceItems/InvoiceItemUpdateOptions.cs index 4515feb55d..c50b15417c 100644 --- a/src/Stripe.net/Services/InvoiceItems/InvoiceItemUpdateOptions.cs +++ b/src/Stripe.net/Services/InvoiceItems/InvoiceItemUpdateOptions.cs @@ -63,8 +63,9 @@ public List Discounts /// The ids of the margins to apply to the invoice item. When set, the /// default_margins on the invoice do not apply to this invoice item. /// - [JsonProperty("margins")] + [JsonProperty("margins", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("margins")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List Margins { get => this.margins; diff --git a/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemPriceDataProductDataTaxDetailsOptions.cs b/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemPriceDataProductDataTaxDetailsOptions.cs index f1da284afc..0f00e5f828 100644 --- a/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemPriceDataProductDataTaxDetailsOptions.cs +++ b/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemPriceDataProductDataTaxDetailsOptions.cs @@ -26,8 +26,9 @@ public class InvoiceLineItemPriceDataProductDataTaxDetailsOptions : INestedOptio /// /// A tax code ID. /// - [JsonProperty("tax_code")] + [JsonProperty("tax_code", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("tax_code")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string TaxCode { get => this.taxCode; diff --git a/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemUpdateOptions.cs b/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemUpdateOptions.cs index b89659807e..d8028d4431 100644 --- a/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemUpdateOptions.cs +++ b/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemUpdateOptions.cs @@ -63,8 +63,9 @@ public List Discounts /// The IDs of the margins to apply to the line item. When set, the default_margins /// on the invoice do not apply to this line item. /// - [JsonProperty("margins")] + [JsonProperty("margins", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("margins")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List Margins { get => this.margins; diff --git a/src/Stripe.net/Services/Invoices/InvoiceCreateOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceCreateOptions.cs index b40cd3136c..18cf88b3fc 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceCreateOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceCreateOptions.cs @@ -37,8 +37,9 @@ public List AccountTaxIds /// List of expected payments and corresponding due dates. Valid only for invoices where /// collection_method=send_invoice. /// - [JsonProperty("amounts_due")] + [JsonProperty("amounts_due", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("amounts_due")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List AmountsDue { get => this.amountsDue; diff --git a/src/Stripe.net/Services/Invoices/InvoiceLineOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceLineOptions.cs index f14f08d932..2040bf7112 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceLineOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceLineOptions.cs @@ -91,8 +91,9 @@ public List Discounts /// The IDs of the margins to apply to the line item. When set, the default_margins /// on the invoice do not apply to this line item. /// - [JsonProperty("margins")] + [JsonProperty("margins", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("margins")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List Margins { get => this.margins; diff --git a/src/Stripe.net/Services/Invoices/InvoiceLinePriceDataProductDataTaxDetailsOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceLinePriceDataProductDataTaxDetailsOptions.cs index 946954b00c..521749bec3 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceLinePriceDataProductDataTaxDetailsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceLinePriceDataProductDataTaxDetailsOptions.cs @@ -26,8 +26,9 @@ public class InvoiceLinePriceDataProductDataTaxDetailsOptions : INestedOptions, /// /// A tax code ID. /// - [JsonProperty("tax_code")] + [JsonProperty("tax_code", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("tax_code")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string TaxCode { get => this.taxCode; diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentRecordDataOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentRecordDataOptions.cs index 8b1212150d..70c8f40034 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentRecordDataOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentRecordDataOptions.cs @@ -36,8 +36,9 @@ public class InvoicePaymentRecordDataOptions : INestedOptions, IHasMetadata, IHa /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public Dictionary Metadata { get => this.metadata; diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs index 81c20d4d2e..4e2ca9367c 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs @@ -54,7 +54,7 @@ public string DefaultMandate /// crypto, custom, customer_balance, eps, fpx, /// giropay, grabpay, id_bank_transfer, ideal, /// jp_credit_transfer, kakao_pay, klarna, konbini, - /// kr_card, link, multibanco, naver_pay, + /// kr_card, link, momo, multibanco, naver_pay, /// nz_bank_account, p24, pay_by_bank, payco, paynow, /// paypal, payto, pix, promptpay, revolut_pay, /// sepa_credit_transfer, sepa_debit, sofort, stripe_balance, diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs index 032e3370bb..4ffcc2c09f 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs @@ -64,8 +64,9 @@ public InvoicePaymentSettingsPaymentMethodOptionsBancontactOptions Bancontact /// If paying by bizum, this sub-hash contains details about the Bizum payment method /// options to pass to the invoice’s PaymentIntent. /// - [JsonProperty("bizum")] + [JsonProperty("bizum", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("bizum")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public InvoicePaymentSettingsPaymentMethodOptionsBizumOptions Bizum { get => this.bizum; @@ -97,8 +98,9 @@ public InvoicePaymentSettingsPaymentMethodOptionsCardOptions Card /// If paying by check_scan, this sub-hash contains details about the Check Scan /// payment method options to pass to the invoice’s PaymentIntent. /// - [JsonProperty("check_scan")] + [JsonProperty("check_scan", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("check_scan")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public InvoicePaymentSettingsPaymentMethodOptionsCheckScanOptions CheckScan { get => this.checkScan; @@ -130,8 +132,9 @@ public InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceOptions Customer /// If paying by id_bank_transfer, this sub-hash contains details about the Indonesia /// bank transfer payment method options to pass to the invoice’s PaymentIntent. /// - [JsonProperty("id_bank_transfer")] + [JsonProperty("id_bank_transfer", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("id_bank_transfer")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public InvoicePaymentSettingsPaymentMethodOptionsIdBankTransferOptions IdBankTransfer { get => this.idBankTransfer; @@ -180,8 +183,9 @@ public InvoicePaymentSettingsPaymentMethodOptionsPaytoOptions Payto /// If paying by pix, this sub-hash contains details about the Pix payment method /// options to pass to the invoice’s PaymentIntent. /// - [JsonProperty("pix")] + [JsonProperty("pix", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("pix")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public InvoicePaymentSettingsPaymentMethodOptionsPixOptions Pix { get => this.pix; @@ -213,8 +217,9 @@ public InvoicePaymentSettingsPaymentMethodOptionsSepaDebitOptions SepaDebit /// If paying by upi, this sub-hash contains details about the UPI payment method /// options to pass to the invoice’s PaymentIntent. /// - [JsonProperty("upi")] + [JsonProperty("upi", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("upi")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public InvoicePaymentSettingsPaymentMethodOptionsUpiOptions Upi { get => this.upi; diff --git a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsAmendmentMetadataActionOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsAmendmentMetadataActionOptions.cs index f6733348df..33f03678aa 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsAmendmentMetadataActionOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsAmendmentMetadataActionOptions.cs @@ -34,8 +34,9 @@ public class InvoiceScheduleDetailsAmendmentMetadataActionOptions : INestedOptio /// Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will /// be overwritten. /// - [JsonProperty("set")] + [JsonProperty("set", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("set")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public Dictionary Set { get => this.set; diff --git a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsOptions.cs index 3ce1451ce3..6f08a2d150 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsOptions.cs @@ -45,8 +45,9 @@ public class InvoiceScheduleDetailsOptions : INestedOptions, IHasSetTracking /// /// Sets the billing schedules for the subscription schedule. /// - [JsonProperty("billing_schedules")] + [JsonProperty("billing_schedules", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("billing_schedules")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List BillingSchedules { get => this.billingSchedules; @@ -88,8 +89,9 @@ public List BillingSchedules /// /// Provide any time periods to bill in advance. /// - [JsonProperty("prebilling")] + [JsonProperty("prebilling", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("prebilling")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List Prebilling { get => this.prebilling; diff --git a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsOptions.cs index 2a442629dc..81f7cfe299 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsOptions.cs @@ -41,8 +41,9 @@ public class InvoiceSubscriptionDetailsOptions : INestedOptions, IHasSetTracking /// /// Sets the billing schedules for the subscription. /// - [JsonProperty("billing_schedules")] + [JsonProperty("billing_schedules", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("billing_schedules")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List BillingSchedules { get => this.billingSchedules; diff --git a/src/Stripe.net/Services/Invoices/InvoiceUpdateOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceUpdateOptions.cs index 3bb1ed21e3..367b466f75 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceUpdateOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceUpdateOptions.cs @@ -46,8 +46,9 @@ public List AccountTaxIds /// List of expected payments and corresponding due dates. Valid only for invoices where /// collection_method=send_invoice. /// - [JsonProperty("amounts_due")] + [JsonProperty("amounts_due", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("amounts_due")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List AmountsDue { get => this.amountsDue; @@ -136,8 +137,9 @@ public List CustomFields /// The ids of the margins to apply to the invoice. Can be overridden by line item /// margins. /// - [JsonProperty("default_margins")] + [JsonProperty("default_margins", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("default_margins")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List DefaultMargins { get => this.defaultMargins; diff --git a/src/Stripe.net/Services/Issuing/Programs/ProgramUpdateOptions.cs b/src/Stripe.net/Services/Issuing/Programs/ProgramUpdateOptions.cs index d8f5fdac43..2908e8941d 100644 --- a/src/Stripe.net/Services/Issuing/Programs/ProgramUpdateOptions.cs +++ b/src/Stripe.net/Services/Issuing/Programs/ProgramUpdateOptions.cs @@ -24,8 +24,9 @@ public class ProgramUpdateOptions : BaseOptions, IHasMetadata /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public Dictionary Metadata { get => this.metadata; diff --git a/src/Stripe.net/Services/Orders/OrderCreateOptions.cs b/src/Stripe.net/Services/Orders/OrderCreateOptions.cs index 4359ceeac2..487be3bad0 100644 --- a/src/Stripe.net/Services/Orders/OrderCreateOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderCreateOptions.cs @@ -25,8 +25,9 @@ public class OrderCreateOptions : BaseOptions, IHasMetadata /// Billing details for the customer. If a customer is provided, this will be automatically /// populated with values from that customer if override values are not provided. /// - [JsonProperty("billing_details")] + [JsonProperty("billing_details", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("billing_details")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderBillingDetailsOptions BillingDetails { get => this.billingDetails; @@ -63,8 +64,9 @@ public OrderBillingDetailsOptions BillingDetails /// /// The coupons, promotion codes, and/or discounts to apply to the order. /// - [JsonProperty("discounts")] + [JsonProperty("discounts", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("discounts")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List Discounts { get => this.discounts; @@ -110,8 +112,9 @@ public List Discounts /// /// Settings for the customer cost of shipping for this order. /// - [JsonProperty("shipping_cost")] + [JsonProperty("shipping_cost", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("shipping_cost")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderShippingCostOptions ShippingCost { get => this.shippingCost; @@ -125,8 +128,9 @@ public OrderShippingCostOptions ShippingCost /// /// Shipping details for the order. /// - [JsonProperty("shipping_details")] + [JsonProperty("shipping_details", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("shipping_details")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderShippingDetailsOptions ShippingDetails { get => this.shippingDetails; diff --git a/src/Stripe.net/Services/Orders/OrderLineItemOptions.cs b/src/Stripe.net/Services/Orders/OrderLineItemOptions.cs index 325ab832e7..dc5729d953 100644 --- a/src/Stripe.net/Services/Orders/OrderLineItemOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderLineItemOptions.cs @@ -26,8 +26,9 @@ public class OrderLineItemOptions : INestedOptions, IHasId, IHasSetTracking /// /// The discounts applied to this line item. /// - [JsonProperty("discounts")] + [JsonProperty("discounts", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("discounts")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List Discounts { get => this.discounts; @@ -112,8 +113,9 @@ public List Discounts /// /// The tax rates applied to this line item. /// - [JsonProperty("tax_rates")] + [JsonProperty("tax_rates", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("tax_rates")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List TaxRates { get => this.taxRates; diff --git a/src/Stripe.net/Services/Orders/OrderLineItemProductDataIdentifiersOptions.cs b/src/Stripe.net/Services/Orders/OrderLineItemProductDataIdentifiersOptions.cs new file mode 100644 index 0000000000..051c7fc50b --- /dev/null +++ b/src/Stripe.net/Services/Orders/OrderLineItemProductDataIdentifiersOptions.cs @@ -0,0 +1,149 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class OrderLineItemProductDataIdentifiersOptions : INestedOptions, IHasSetTracking + { + private string ean; + private string gtin; + private string isbn; + private string jan; + private string mpn; + private string nsn; + private string upc; + + [JsonIgnore] + [STJS.JsonIgnore] + internal SetTracker SetTracker { get; } = new SetTracker(); + + /// + /// European Article Number (EAN) consisting of 8 or 13 digits and optional dashes. You may + /// optionally provide a leading 0 for a total of 14 digits. The final digit is a validated + /// check digit. + /// + [JsonProperty("ean", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("ean")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public string Ean + { + get => this.ean; + set + { + this.ean = value; + this.SetTracker.Track(); + } + } + + /// + /// Global Trade Item Number (GTIN) consisting of 8, 12, 13, or 14 digits and optional + /// dashes. The final digit is a validated check digit. + /// + [JsonProperty("gtin", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("gtin")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public string Gtin + { + get => this.gtin; + set + { + this.gtin = value; + this.SetTracker.Track(); + } + } + + /// + /// International Standard Book Number (ISBN) consisting of 10 or 13 digits and optional + /// dashes. The final digit is a validated check digit. For ISBN-10, the final digit may be + /// a X. + /// + [JsonProperty("isbn", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("isbn")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public string Isbn + { + get => this.isbn; + set + { + this.isbn = value; + this.SetTracker.Track(); + } + } + + /// + /// Japanese Article Number (JAN) consisting of 13 digits and optional dashes. The first two + /// digits must either be 45 or 49. The final digit is a validated check + /// digit. + /// + [JsonProperty("jan", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("jan")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public string Jan + { + get => this.jan; + set + { + this.jan = value; + this.SetTracker.Track(); + } + } + + /// + /// Manufacturer Part Number (MPN). May include up to 70 alphanumeric characters and dashes. + /// + [JsonProperty("mpn", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("mpn")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public string Mpn + { + get => this.mpn; + set + { + this.mpn = value; + this.SetTracker.Track(); + } + } + + /// + /// National Stock Number (NSN) consisting of 13 digits and optional dashes. The seventh + /// character may also be alphanumeric. + /// + [JsonProperty("nsn", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("nsn")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public string Nsn + { + get => this.nsn; + set + { + this.nsn = value; + this.SetTracker.Track(); + } + } + + /// + /// Universal Product Code (UPC) consisting of 12 digits and optional dashes. The final + /// digit is a validated check digit. + /// + [JsonProperty("upc", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("upc")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public string Upc + { + get => this.upc; + set + { + this.upc = value; + this.SetTracker.Track(); + } + } + + bool IHasSetTracking.IsPropertySet(string propertyName) + { + return this.SetTracker.IsSet(propertyName); + } + } +} diff --git a/src/Stripe.net/Services/Orders/OrderLineItemProductDataOptions.cs b/src/Stripe.net/Services/Orders/OrderLineItemProductDataOptions.cs index d94bf27f54..f8d129aba5 100644 --- a/src/Stripe.net/Services/Orders/OrderLineItemProductDataOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderLineItemProductDataOptions.cs @@ -25,8 +25,9 @@ public class OrderLineItemProductDataOptions : INestedOptions, IHasId, IHasMetad /// optionally store a long form explanation of the product being sold for your own /// rendering purposes. /// - [JsonProperty("description")] + [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("description")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string Description { get => this.description; @@ -51,12 +52,20 @@ public string Description [STJS.JsonPropertyName("id")] public string Id { get; set; } + /// + /// Other identifiers for this product. + /// + [JsonProperty("identifiers")] + [STJS.JsonPropertyName("identifiers")] + public OrderLineItemProductDataIdentifiersOptions Identifiers { get; set; } + /// /// A list of up to 8 URLs of images for this product, meant to be displayable to the /// customer. /// - [JsonProperty("images")] + [JsonProperty("images", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("images")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List Images { get => this.images; @@ -73,8 +82,9 @@ public List Images /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public Dictionary Metadata { get => this.metadata; @@ -95,8 +105,9 @@ public Dictionary Metadata /// /// The dimensions of this product for shipping purposes. /// - [JsonProperty("package_dimensions")] + [JsonProperty("package_dimensions", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("package_dimensions")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderLineItemProductDataPackageDimensionsOptions PackageDimensions { get => this.packageDimensions; @@ -117,8 +128,9 @@ public OrderLineItemProductDataPackageDimensionsOptions PackageDimensions /// /// A tax code ID. /// - [JsonProperty("tax_code")] + [JsonProperty("tax_code", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("tax_code")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string TaxCode { get => this.taxCode; @@ -132,8 +144,9 @@ public string TaxCode /// /// A URL of a publicly-accessible webpage for this product. /// - [JsonProperty("url")] + [JsonProperty("url", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("url")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string Url { get => this.url; diff --git a/src/Stripe.net/Services/Orders/OrderPaymentSettingsOptions.cs b/src/Stripe.net/Services/Orders/OrderPaymentSettingsOptions.cs index 0535394b83..ab3068458c 100644 --- a/src/Stripe.net/Services/Orders/OrderPaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderPaymentSettingsOptions.cs @@ -21,8 +21,9 @@ public class OrderPaymentSettingsOptions : INestedOptions, IHasSetTracking /// The amount of the application fee (if any) that will be requested to be applied to the /// payment and transferred to the application owner's Stripe account. /// - [JsonProperty("application_fee_amount")] + [JsonProperty("application_fee_amount", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("application_fee_amount")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public long? ApplicationFeeAmount { get => this.applicationFeeAmount; @@ -58,8 +59,9 @@ public long? ApplicationFeeAmount /// /// The URL to redirect the customer to after they authenticate their payment. /// - [JsonProperty("return_url")] + [JsonProperty("return_url", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("return_url")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string ReturnUrl { get => this.returnUrl; @@ -91,8 +93,9 @@ public string ReturnUrl /// /// Provides configuration for completing a transfer for the order after it is paid. /// - [JsonProperty("transfer_data")] + [JsonProperty("transfer_data", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("transfer_data")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderPaymentSettingsTransferDataOptions TransferData { get => this.transferData; diff --git a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsOptions.cs b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsOptions.cs index 50ceef8825..6ce22ae951 100644 --- a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsOptions.cs @@ -21,8 +21,9 @@ public class OrderPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsOpti /// setup_intent and setup_intent_client_secret when confirming a Setup /// Intent. /// - [JsonProperty("custom_mandate_url")] + [JsonProperty("custom_mandate_url", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("custom_mandate_url")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string CustomMandateUrl { get => this.customMandateUrl; diff --git a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsAcssDebitOptions.cs b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsAcssDebitOptions.cs index 949c725073..22216eb0db 100644 --- a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsAcssDebitOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsAcssDebitOptions.cs @@ -46,8 +46,9 @@ public class OrderPaymentSettingsPaymentMethodOptionsAcssDebitOptions : INestedO /// off_session. /// One of: none, off_session, or on_session. /// - [JsonProperty("setup_future_usage")] + [JsonProperty("setup_future_usage", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("setup_future_usage")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string SetupFutureUsage { get => this.setupFutureUsage; diff --git a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsAlipayOptions.cs b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsAlipayOptions.cs index 5974dc4e0c..e02b006689 100644 --- a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsAlipayOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsAlipayOptions.cs @@ -39,8 +39,9 @@ public class OrderPaymentSettingsPaymentMethodOptionsAlipayOptions : INestedOpti /// off_session. /// One of: none, or off_session. /// - [JsonProperty("setup_future_usage")] + [JsonProperty("setup_future_usage", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("setup_future_usage")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string SetupFutureUsage { get => this.setupFutureUsage; diff --git a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsBancontactOptions.cs b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsBancontactOptions.cs index 6086083950..5b89a31603 100644 --- a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsBancontactOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsBancontactOptions.cs @@ -48,8 +48,9 @@ public class OrderPaymentSettingsPaymentMethodOptionsBancontactOptions : INested /// off_session. /// One of: none, or off_session. /// - [JsonProperty("setup_future_usage")] + [JsonProperty("setup_future_usage", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("setup_future_usage")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string SetupFutureUsage { get => this.setupFutureUsage; diff --git a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsIdealOptions.cs b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsIdealOptions.cs index 2445013bc2..c1164bec40 100644 --- a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsIdealOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsIdealOptions.cs @@ -39,8 +39,9 @@ public class OrderPaymentSettingsPaymentMethodOptionsIdealOptions : INestedOptio /// off_session. /// One of: none, or off_session. /// - [JsonProperty("setup_future_usage")] + [JsonProperty("setup_future_usage", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("setup_future_usage")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string SetupFutureUsage { get => this.setupFutureUsage; diff --git a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarnaOptions.cs b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarnaOptions.cs index 56cfed45e4..c559df3508 100644 --- a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarnaOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarnaOptions.cs @@ -27,8 +27,9 @@ public class OrderPaymentSettingsPaymentMethodOptionsKlarnaOptions : INestedOpti /// If capture_method is already set on the PaymentIntent, providing an empty value /// for this parameter unsets the stored value for this payment method type. /// - [JsonProperty("capture_method")] + [JsonProperty("capture_method", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("capture_method")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string CaptureMethod { get => this.captureMethod; @@ -93,8 +94,9 @@ public string CaptureMethod /// /// Subscription details if setting up or charging a subscription. /// - [JsonProperty("subscriptions")] + [JsonProperty("subscriptions", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("subscriptions")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List Subscriptions { get => this.subscriptions; @@ -108,8 +110,9 @@ public List S /// /// Supplementary Purchase Data for the corresponding Klarna payment. /// - [JsonProperty("supplementary_purchase_data")] + [JsonProperty("supplementary_purchase_data", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("supplementary_purchase_data")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataOptions SupplementaryPurchaseData { get => this.supplementaryPurchaseData; diff --git a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataOptions.cs b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataOptions.cs index 975eeb6e35..3b362af38d 100644 --- a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataOptions.cs @@ -25,8 +25,9 @@ public class OrderPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchase /// /// Supplementary bus reservation details. /// - [JsonProperty("bus_reservation_details")] + [JsonProperty("bus_reservation_details", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("bus_reservation_details")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List BusReservationDetails { get => this.busReservationDetails; @@ -40,8 +41,9 @@ public List /// Supplementary event reservation details. /// - [JsonProperty("event_reservation_details")] + [JsonProperty("event_reservation_details", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("event_reservation_details")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List EventReservationDetails { get => this.eventReservationDetails; @@ -55,8 +57,9 @@ public List /// Supplementary ferry reservation details. /// - [JsonProperty("ferry_reservation_details")] + [JsonProperty("ferry_reservation_details", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("ferry_reservation_details")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List FerryReservationDetails { get => this.ferryReservationDetails; @@ -70,8 +73,9 @@ public List /// Supplementary insurance details. /// - [JsonProperty("insurances")] + [JsonProperty("insurances", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("insurances")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List Insurances { get => this.insurances; @@ -85,8 +89,9 @@ public List /// Supplementary marketplace seller details. /// - [JsonProperty("marketplace_sellers")] + [JsonProperty("marketplace_sellers", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("marketplace_sellers")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List MarketplaceSellers { get => this.marketplaceSellers; @@ -100,8 +105,9 @@ public List /// Supplementary round trip reservation details. /// - [JsonProperty("round_trip_reservation_details")] + [JsonProperty("round_trip_reservation_details", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("round_trip_reservation_details")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List RoundTripReservationDetails { get => this.roundTripReservationDetails; @@ -115,8 +121,9 @@ public List /// Supplementary train reservation details. /// - [JsonProperty("train_reservation_details")] + [JsonProperty("train_reservation_details", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("train_reservation_details")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List TrainReservationDetails { get => this.trainReservationDetails; @@ -130,8 +137,9 @@ public List /// Voucher details, such as a gift card or discount code. /// - [JsonProperty("vouchers")] + [JsonProperty("vouchers", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("vouchers")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List Vouchers { get => this.vouchers; diff --git a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsLinkOptions.cs b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsLinkOptions.cs index 215d0d90ab..8f76bce47f 100644 --- a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsLinkOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsLinkOptions.cs @@ -26,8 +26,9 @@ public class OrderPaymentSettingsPaymentMethodOptionsLinkOptions : INestedOption /// If capture_method is already set on the PaymentIntent, providing an empty value /// for this parameter unsets the stored value for this payment method type. /// - [JsonProperty("capture_method")] + [JsonProperty("capture_method", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("capture_method")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string CaptureMethod { get => this.captureMethod; @@ -71,8 +72,9 @@ public string CaptureMethod /// off_session. /// One of: none, or off_session. /// - [JsonProperty("setup_future_usage")] + [JsonProperty("setup_future_usage", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("setup_future_usage")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string SetupFutureUsage { get => this.setupFutureUsage; diff --git a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsOptions.cs index 1db9613cf1..66fadaab18 100644 --- a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsOptions.cs @@ -32,8 +32,9 @@ public class OrderPaymentSettingsPaymentMethodOptionsOptions : INestedOptions, I /// If paying by acss_debit, this sub-hash contains details about the ACSS Debit /// payment method options to pass to the order's PaymentIntent. /// - [JsonProperty("acss_debit")] + [JsonProperty("acss_debit", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("acss_debit")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderPaymentSettingsPaymentMethodOptionsAcssDebitOptions AcssDebit { get => this.acssDebit; @@ -48,8 +49,9 @@ public OrderPaymentSettingsPaymentMethodOptionsAcssDebitOptions AcssDebit /// If paying by afterpay_clearpay, this sub-hash contains details about the /// AfterpayClearpay payment method options to pass to the order's PaymentIntent. /// - [JsonProperty("afterpay_clearpay")] + [JsonProperty("afterpay_clearpay", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("afterpay_clearpay")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderPaymentSettingsPaymentMethodOptionsAfterpayClearpayOptions AfterpayClearpay { get => this.afterpayClearpay; @@ -64,8 +66,9 @@ public OrderPaymentSettingsPaymentMethodOptionsAfterpayClearpayOptions AfterpayC /// If paying by alipay, this sub-hash contains details about the Alipay payment /// method options to pass to the order's PaymentIntent. /// - [JsonProperty("alipay")] + [JsonProperty("alipay", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("alipay")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderPaymentSettingsPaymentMethodOptionsAlipayOptions Alipay { get => this.alipay; @@ -80,8 +83,9 @@ public OrderPaymentSettingsPaymentMethodOptionsAlipayOptions Alipay /// If paying by bancontact, this sub-hash contains details about the Bancontact /// payment method options to pass to the order's PaymentIntent. /// - [JsonProperty("bancontact")] + [JsonProperty("bancontact", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("bancontact")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderPaymentSettingsPaymentMethodOptionsBancontactOptions Bancontact { get => this.bancontact; @@ -96,8 +100,9 @@ public OrderPaymentSettingsPaymentMethodOptionsBancontactOptions Bancontact /// If paying by card, this sub-hash contains details about the Card payment method /// options to pass to the order's PaymentIntent. /// - [JsonProperty("card")] + [JsonProperty("card", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("card")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderPaymentSettingsPaymentMethodOptionsCardOptions Card { get => this.card; @@ -112,8 +117,9 @@ public OrderPaymentSettingsPaymentMethodOptionsCardOptions Card /// If paying by customer_balance, this sub-hash contains details about the Customer /// Balance payment method options to pass to the order's PaymentIntent. /// - [JsonProperty("customer_balance")] + [JsonProperty("customer_balance", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("customer_balance")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderPaymentSettingsPaymentMethodOptionsCustomerBalanceOptions CustomerBalance { get => this.customerBalance; @@ -128,8 +134,9 @@ public OrderPaymentSettingsPaymentMethodOptionsCustomerBalanceOptions CustomerBa /// If paying by ideal, this sub-hash contains details about the iDEAL payment method /// options to pass to the order's PaymentIntent. /// - [JsonProperty("ideal")] + [JsonProperty("ideal", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("ideal")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderPaymentSettingsPaymentMethodOptionsIdealOptions Ideal { get => this.ideal; @@ -144,8 +151,9 @@ public OrderPaymentSettingsPaymentMethodOptionsIdealOptions Ideal /// If paying by klarna, this sub-hash contains details about the Klarna payment /// method options to pass to the order's PaymentIntent. /// - [JsonProperty("klarna")] + [JsonProperty("klarna", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("klarna")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderPaymentSettingsPaymentMethodOptionsKlarnaOptions Klarna { get => this.klarna; @@ -160,8 +168,9 @@ public OrderPaymentSettingsPaymentMethodOptionsKlarnaOptions Klarna /// If paying by link, this sub-hash contains details about the Link payment method /// options to pass to the order's PaymentIntent. /// - [JsonProperty("link")] + [JsonProperty("link", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("link")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderPaymentSettingsPaymentMethodOptionsLinkOptions Link { get => this.link; @@ -176,8 +185,9 @@ public OrderPaymentSettingsPaymentMethodOptionsLinkOptions Link /// If paying by oxxo, this sub-hash contains details about the OXXO payment method /// options to pass to the order's PaymentIntent. /// - [JsonProperty("oxxo")] + [JsonProperty("oxxo", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("oxxo")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderPaymentSettingsPaymentMethodOptionsOxxoOptions Oxxo { get => this.oxxo; @@ -192,8 +202,9 @@ public OrderPaymentSettingsPaymentMethodOptionsOxxoOptions Oxxo /// If paying by p24, this sub-hash contains details about the P24 payment method /// options to pass to the order's PaymentIntent. /// - [JsonProperty("p24")] + [JsonProperty("p24", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("p24")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderPaymentSettingsPaymentMethodOptionsP24Options P24 { get => this.p24; @@ -208,8 +219,9 @@ public OrderPaymentSettingsPaymentMethodOptionsP24Options P24 /// If paying by paypal, this sub-hash contains details about the PayPal payment /// method options to pass to the order's PaymentIntent. /// - [JsonProperty("paypal")] + [JsonProperty("paypal", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("paypal")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderPaymentSettingsPaymentMethodOptionsPaypalOptions Paypal { get => this.paypal; @@ -224,8 +236,9 @@ public OrderPaymentSettingsPaymentMethodOptionsPaypalOptions Paypal /// If paying by sepa_debit, this sub-hash contains details about the SEPA Debit /// payment method options to pass to the order's PaymentIntent. /// - [JsonProperty("sepa_debit")] + [JsonProperty("sepa_debit", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("sepa_debit")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderPaymentSettingsPaymentMethodOptionsSepaDebitOptions SepaDebit { get => this.sepaDebit; @@ -240,8 +253,9 @@ public OrderPaymentSettingsPaymentMethodOptionsSepaDebitOptions SepaDebit /// If paying by sofort, this sub-hash contains details about the Sofort payment /// method options to pass to the order's PaymentIntent. /// - [JsonProperty("sofort")] + [JsonProperty("sofort", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("sofort")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderPaymentSettingsPaymentMethodOptionsSofortOptions Sofort { get => this.sofort; @@ -256,8 +270,9 @@ public OrderPaymentSettingsPaymentMethodOptionsSofortOptions Sofort /// If paying by wechat_pay, this sub-hash contains details about the WeChat Pay /// payment method options to pass to the order's PaymentIntent. /// - [JsonProperty("wechat_pay")] + [JsonProperty("wechat_pay", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("wechat_pay")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderPaymentSettingsPaymentMethodOptionsWechatPayOptions WechatPay { get => this.wechatPay; diff --git a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsPaypalOptions.cs b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsPaypalOptions.cs index f31989b696..2990416b3d 100644 --- a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsPaypalOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsPaypalOptions.cs @@ -19,8 +19,9 @@ public class OrderPaymentSettingsPaymentMethodOptionsPaypalOptions : INestedOpti /// /// Controls when the funds will be captured from the customer's account. /// - [JsonProperty("capture_method")] + [JsonProperty("capture_method", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("capture_method")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string CaptureMethod { get => this.captureMethod; @@ -100,8 +101,9 @@ public string CaptureMethod /// off_session. /// One of: none, or off_session. /// - [JsonProperty("setup_future_usage")] + [JsonProperty("setup_future_usage", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("setup_future_usage")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string SetupFutureUsage { get => this.setupFutureUsage; diff --git a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptionsOptions.cs b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptionsOptions.cs index ad00c4d8b2..2633f66b8f 100644 --- a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptionsOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptionsOptions.cs @@ -19,8 +19,9 @@ public class OrderPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptionsOpti /// consist of only uppercase letters, numbers, spaces, or the following special characters: /// '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. /// - [JsonProperty("reference_prefix")] + [JsonProperty("reference_prefix", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("reference_prefix")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string ReferencePrefix { get => this.referencePrefix; diff --git a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsSepaDebitOptions.cs b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsSepaDebitOptions.cs index e6a6434d41..1a46883408 100644 --- a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsSepaDebitOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsSepaDebitOptions.cs @@ -46,8 +46,9 @@ public class OrderPaymentSettingsPaymentMethodOptionsSepaDebitOptions : INestedO /// off_session. /// One of: none, off_session, or on_session. /// - [JsonProperty("setup_future_usage")] + [JsonProperty("setup_future_usage", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("setup_future_usage")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string SetupFutureUsage { get => this.setupFutureUsage; diff --git a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsSofortOptions.cs b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsSofortOptions.cs index 5c1db7fc3a..9660e6accd 100644 --- a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsSofortOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsSofortOptions.cs @@ -19,8 +19,9 @@ public class OrderPaymentSettingsPaymentMethodOptionsSofortOptions : INestedOpti /// Language shown to the payer on redirect. /// One of: de, en, es, fr, it, nl, or pl. /// - [JsonProperty("preferred_language")] + [JsonProperty("preferred_language", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("preferred_language")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string PreferredLanguage { get => this.preferredLanguage; @@ -56,8 +57,9 @@ public string PreferredLanguage /// off_session. /// One of: none, or off_session. /// - [JsonProperty("setup_future_usage")] + [JsonProperty("setup_future_usage", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("setup_future_usage")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string SetupFutureUsage { get => this.setupFutureUsage; diff --git a/src/Stripe.net/Services/Orders/OrderShippingDetailsOptions.cs b/src/Stripe.net/Services/Orders/OrderShippingDetailsOptions.cs index 55b0c26c69..65edc1d520 100644 --- a/src/Stripe.net/Services/Orders/OrderShippingDetailsOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderShippingDetailsOptions.cs @@ -31,8 +31,9 @@ public class OrderShippingDetailsOptions : INestedOptions, IHasSetTracking /// /// The phone number (including extension) for the recipient of the order. /// - [JsonProperty("phone")] + [JsonProperty("phone", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("phone")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string Phone { get => this.phone; diff --git a/src/Stripe.net/Services/Orders/OrderTaxDetailsOptions.cs b/src/Stripe.net/Services/Orders/OrderTaxDetailsOptions.cs index 63593f5d84..0029b613cd 100644 --- a/src/Stripe.net/Services/Orders/OrderTaxDetailsOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderTaxDetailsOptions.cs @@ -20,8 +20,9 @@ public class OrderTaxDetailsOptions : INestedOptions, IHasSetTracking /// reverse. /// One of: exempt, none, or reverse. /// - [JsonProperty("tax_exempt")] + [JsonProperty("tax_exempt", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("tax_exempt")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string TaxExempt { get => this.taxExempt; diff --git a/src/Stripe.net/Services/Orders/OrderUpdateOptions.cs b/src/Stripe.net/Services/Orders/OrderUpdateOptions.cs index 1fcb1ef285..5261e33d0a 100644 --- a/src/Stripe.net/Services/Orders/OrderUpdateOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderUpdateOptions.cs @@ -27,8 +27,9 @@ public class OrderUpdateOptions : BaseOptions, IHasMetadata /// Billing details for the customer. If a customer is provided, this will be automatically /// populated with values from that customer if override values are not provided. /// - [JsonProperty("billing_details")] + [JsonProperty("billing_details", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("billing_details")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderBillingDetailsOptions BillingDetails { get => this.billingDetails; @@ -58,8 +59,9 @@ public OrderBillingDetailsOptions BillingDetails /// /// An arbitrary string attached to the object. Often useful for displaying to users. /// - [JsonProperty("description")] + [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("description")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string Description { get => this.description; @@ -74,8 +76,9 @@ public string Description /// The coupons, promotion codes, and/or discounts to apply to the order. Pass the empty /// string "" to unset this field. /// - [JsonProperty("discounts")] + [JsonProperty("discounts", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("discounts")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List Discounts { get => this.discounts; @@ -107,8 +110,9 @@ public List Discounts /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public Dictionary Metadata { get => this.metadata; @@ -129,8 +133,9 @@ public Dictionary Metadata /// /// Settings for the customer cost of shipping for this order. /// - [JsonProperty("shipping_cost")] + [JsonProperty("shipping_cost", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("shipping_cost")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderShippingCostOptions ShippingCost { get => this.shippingCost; @@ -144,8 +149,9 @@ public OrderShippingCostOptions ShippingCost /// /// Shipping details for the order. /// - [JsonProperty("shipping_details")] + [JsonProperty("shipping_details", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("shipping_details")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public OrderShippingDetailsOptions ShippingDetails { get => this.shippingDetails; diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportAuthenticatedOptions.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportAuthenticatedOptions.cs index 152c80cc4c..1710723d12 100644 --- a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportAuthenticatedOptions.cs +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportAuthenticatedOptions.cs @@ -27,8 +27,9 @@ public class PaymentAttemptRecordReportAuthenticatedOptions : BaseOptions, IHasM /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public Dictionary Metadata { get => this.metadata; diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportAuthorizedOptions.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportAuthorizedOptions.cs index 66ca1543c3..b50f6eb36d 100644 --- a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportAuthorizedOptions.cs +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportAuthorizedOptions.cs @@ -27,8 +27,9 @@ public class PaymentAttemptRecordReportAuthorizedOptions : BaseOptions, IHasMeta /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public Dictionary Metadata { get => this.metadata; diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportCanceledOptions.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportCanceledOptions.cs index 924f0fd176..37c9cb876e 100644 --- a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportCanceledOptions.cs +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportCanceledOptions.cs @@ -27,8 +27,9 @@ public class PaymentAttemptRecordReportCanceledOptions : BaseOptions, IHasMetada /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public Dictionary Metadata { get => this.metadata; diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportFailedOptions.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportFailedOptions.cs index d859557e72..0d998d3727 100644 --- a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportFailedOptions.cs +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportFailedOptions.cs @@ -38,8 +38,9 @@ public class PaymentAttemptRecordReportFailedOptions : BaseOptions, IHasMetadata /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public Dictionary Metadata { get => this.metadata; diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportGuaranteedOptions.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportGuaranteedOptions.cs index 7dcb0d05e0..6ed3d185f1 100644 --- a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportGuaranteedOptions.cs +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportGuaranteedOptions.cs @@ -27,8 +27,9 @@ public class PaymentAttemptRecordReportGuaranteedOptions : BaseOptions, IHasMeta /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public Dictionary Metadata { get => this.metadata; diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportInformationalOptions.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportInformationalOptions.cs index 15c4aceda4..9ec3a75b0b 100644 --- a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportInformationalOptions.cs +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportInformationalOptions.cs @@ -23,8 +23,9 @@ public class PaymentAttemptRecordReportInformationalOptions : BaseOptions, IHasM /// /// An arbitrary string attached to the object. Often useful for displaying to users. /// - [JsonProperty("description")] + [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("description")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string Description { get => this.description; @@ -41,8 +42,9 @@ public string Description /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public Dictionary Metadata { get => this.metadata; @@ -56,8 +58,9 @@ public Dictionary Metadata /// /// Shipping information for this payment. /// - [JsonProperty("shipping_details")] + [JsonProperty("shipping_details", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("shipping_details")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public PaymentAttemptRecordShippingDetailsOptions ShippingDetails { get => this.shippingDetails; diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportRefundOptions.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportRefundOptions.cs index 62da8d01ae..9dbe80b894 100644 --- a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportRefundOptions.cs +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportRefundOptions.cs @@ -37,8 +37,9 @@ public class PaymentAttemptRecordReportRefundOptions : BaseOptions, IHasMetadata /// object in a structured format. Individual keys can be unset by posting an empty value to /// them. All keys can be unset by posting an empty value to metadata. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public Dictionary Metadata { get => this.metadata; diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs index 1997652b65..6790e3b7e9 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs @@ -92,8 +92,9 @@ public PaymentIntentAmountDetailsShippingOptions Shipping /// /// Contains information about the surcharge portion of the amount. /// - [JsonProperty("surcharge")] + [JsonProperty("surcharge", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("surcharge")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public PaymentIntentAmountDetailsSurchargeOptions Surcharge { get => this.surcharge; diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsSurchargeOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsSurchargeOptions.cs index 1acc7fc73b..4aac1222dc 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsSurchargeOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsSurchargeOptions.cs @@ -18,8 +18,9 @@ public class PaymentIntentAmountDetailsSurchargeOptions : INestedOptions, IHasSe /// /// Portion of the amount that corresponds to a surcharge. /// - [JsonProperty("amount")] + [JsonProperty("amount", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("amount")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public long? Amount { get => this.amount; @@ -34,8 +35,9 @@ public long? Amount /// Indicate whether to enforce validations on the surcharge amount. /// One of: automatic, disabled, or enabled. /// - [JsonProperty("enforce_validation")] + [JsonProperty("enforce_validation", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("enforce_validation")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string EnforceValidation { get => this.enforceValidation; diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs index 01f2db3f8a..b2d921aefd 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs @@ -49,8 +49,9 @@ public PaymentIntentAmountDetailsOptions AmountDetails /// href="https://docs.stripe.com/payments/connected-accounts">use case for connected /// accounts. /// - [JsonProperty("application_fee_amount")] + [JsonProperty("application_fee_amount", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("application_fee_amount")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public long? ApplicationFeeAmount { get => this.applicationFeeAmount; diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsBenefitOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsBenefitOptions.cs index 7dbf1adab9..ba84fac2f9 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsBenefitOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsBenefitOptions.cs @@ -17,8 +17,9 @@ public class PaymentIntentPaymentDetailsBenefitOptions : INestedOptions, IHasSet /// /// French meal voucher benefit details for this PaymentIntent. /// - [JsonProperty("fr_meal_voucher")] + [JsonProperty("fr_meal_voucher", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("fr_meal_voucher")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public PaymentIntentPaymentDetailsBenefitFrMealVoucherOptions FrMealVoucher { get => this.frMealVoucher; diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingOptions.cs index e10389203f..c9cb4b37c9 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingOptions.cs @@ -25,8 +25,9 @@ public class PaymentIntentPaymentDetailsMoneyServicesAccountFundingOptions : INe /// /// Inline identity details for the beneficiary of this account funding transaction. /// - [JsonProperty("beneficiary_details")] + [JsonProperty("beneficiary_details", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("beneficiary_details")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsOptions BeneficiaryDetails { get => this.beneficiaryDetails; @@ -47,8 +48,9 @@ public PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsO /// /// Inline identity details for the sender of this account funding transaction. /// - [JsonProperty("sender_details")] + [JsonProperty("sender_details", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("sender_details")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetailsOptions SenderDetails { get => this.senderDetails; diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesOptions.cs index 9e5a6ab3d3..fcee1962e3 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesOptions.cs @@ -18,8 +18,9 @@ public class PaymentIntentPaymentDetailsMoneyServicesOptions : INestedOptions, I /// /// Account funding transaction details including sender and beneficiary information. /// - [JsonProperty("account_funding")] + [JsonProperty("account_funding", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("account_funding")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public PaymentIntentPaymentDetailsMoneyServicesAccountFundingOptions AccountFunding { get => this.accountFunding; @@ -33,8 +34,9 @@ public PaymentIntentPaymentDetailsMoneyServicesAccountFundingOptions AccountFund /// /// The type of money services transaction. /// - [JsonProperty("transaction_type")] + [JsonProperty("transaction_type", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("transaction_type")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string TransactionType { get => this.transactionType; diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsOptions.cs index 0369a86ccc..92fca3ca16 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsOptions.cs @@ -38,8 +38,9 @@ public class PaymentIntentPaymentDetailsOptions : INestedOptions, IHasSetTrackin /// /// Car rental data for this PaymentIntent. /// - [JsonProperty("car_rental_data")] + [JsonProperty("car_rental_data", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("car_rental_data")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List CarRentalData { get => this.carRentalData; @@ -79,8 +80,9 @@ public string CustomerReference /// /// Fleet data for this PaymentIntent. /// - [JsonProperty("fleet_data")] + [JsonProperty("fleet_data", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("fleet_data")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List FleetData { get => this.fleetData; @@ -101,8 +103,9 @@ public List FleetData /// /// Flight data for this PaymentIntent. /// - [JsonProperty("flight_data")] + [JsonProperty("flight_data", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("flight_data")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List FlightData { get => this.flightData; @@ -123,8 +126,9 @@ public List FlightData /// /// Lodging data for this PaymentIntent. /// - [JsonProperty("lodging_data")] + [JsonProperty("lodging_data", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("lodging_data")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List LodgingData { get => this.lodgingData; @@ -138,8 +142,9 @@ public List LodgingData /// /// Money services details for this PaymentIntent. /// - [JsonProperty("money_services")] + [JsonProperty("money_services", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("money_services")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public PaymentIntentPaymentDetailsMoneyServicesOptions MoneyServices { get => this.moneyServices; diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs index aa275d75b5..a3a1af7367 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs @@ -439,13 +439,6 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat [STJS.JsonPropertyName("sepa_debit")] public PaymentIntentPaymentMethodDataSepaDebitOptions SepaDebit { get; set; } - /// - /// ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. - /// - [JsonProperty("shared_payment_granted_token")] - [STJS.JsonPropertyName("shared_payment_granted_token")] - public string SharedPaymentGrantedToken { get; set; } - /// /// If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay /// payment method. diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs index 4a8c2d2e4c..4eb9dd46ed 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs @@ -267,8 +267,9 @@ public string StatementDescriptorSuffixKanji /// Statement details for this payment intent. You can use this to override the merchant /// details shown on your customers' statements. /// - [JsonProperty("statement_details")] + [JsonProperty("statement_details", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("statement_details")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public PaymentIntentPaymentMethodOptionsCardStatementDetailsOptions StatementDetails { get => this.statementDetails; diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingOptions.cs index b18cef84de..61de018bc2 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingOptions.cs @@ -17,8 +17,9 @@ public class PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAcc /// /// Details for a liquid asset (crypto or security) funding transaction. /// - [JsonProperty("liquid_asset")] + [JsonProperty("liquid_asset", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("liquid_asset")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingLiquidAssetOptions LiquidAsset { get => this.liquidAsset; diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletOptions.cs index eb31ff8646..c5f2601b77 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletOptions.cs @@ -17,8 +17,9 @@ public class PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAcc /// /// Details for a staged purchase. /// - [JsonProperty("staged_purchase")] + [JsonProperty("staged_purchase", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("staged_purchase")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public PaymentIntentPaymentMethodOptionsCardPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseOptions StagedPurchase { get => this.stagedPurchase; diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingOptions.cs index 9d793e4182..3c2ec603cd 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingOptions.cs @@ -17,8 +17,9 @@ public class PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServ /// /// Details for a liquid asset (crypto or security) funding transaction. /// - [JsonProperty("liquid_asset")] + [JsonProperty("liquid_asset", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("liquid_asset")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingLiquidAssetOptions LiquidAsset { get => this.liquidAsset; diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingWalletOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingWalletOptions.cs index b454f745c5..a96a36e277 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingWalletOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingWalletOptions.cs @@ -17,8 +17,9 @@ public class PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServ /// /// Details for a staged purchase. /// - [JsonProperty("staged_purchase")] + [JsonProperty("staged_purchase", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("staged_purchase")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public PaymentIntentPaymentMethodOptionsCardPresentPaymentDetailsMoneyServicesAccountFundingWalletStagedPurchaseOptions StagedPurchase { get => this.stagedPurchase; diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaOptions.cs index 76442a08d6..51f503f61e 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaOptions.cs @@ -110,8 +110,9 @@ public List Subscrip /// /// Supplementary Purchase Data for the corresponding Klarna payment. /// - [JsonProperty("supplementary_purchase_data")] + [JsonProperty("supplementary_purchase_data", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("supplementary_purchase_data")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public PaymentIntentPaymentMethodOptionsKlarnaSupplementaryPurchaseDataOptions SupplementaryPurchaseData { get => this.supplementaryPurchaseData; diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaSupplementaryPurchaseDataOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaSupplementaryPurchaseDataOptions.cs index 2358e9afba..fc953f12bc 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaSupplementaryPurchaseDataOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaSupplementaryPurchaseDataOptions.cs @@ -25,8 +25,9 @@ public class PaymentIntentPaymentMethodOptionsKlarnaSupplementaryPurchaseDataOpt /// /// Supplementary bus reservation details. /// - [JsonProperty("bus_reservation_details")] + [JsonProperty("bus_reservation_details", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("bus_reservation_details")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List BusReservationDetails { get => this.busReservationDetails; @@ -40,8 +41,9 @@ public List /// Supplementary event reservation details. /// - [JsonProperty("event_reservation_details")] + [JsonProperty("event_reservation_details", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("event_reservation_details")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List EventReservationDetails { get => this.eventReservationDetails; @@ -55,8 +57,9 @@ public List /// Supplementary ferry reservation details. /// - [JsonProperty("ferry_reservation_details")] + [JsonProperty("ferry_reservation_details", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("ferry_reservation_details")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List FerryReservationDetails { get => this.ferryReservationDetails; @@ -70,8 +73,9 @@ public List /// Supplementary insurance details. /// - [JsonProperty("insurances")] + [JsonProperty("insurances", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("insurances")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List Insurances { get => this.insurances; @@ -85,8 +89,9 @@ public List /// Supplementary marketplace seller details. /// - [JsonProperty("marketplace_sellers")] + [JsonProperty("marketplace_sellers", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("marketplace_sellers")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List MarketplaceSellers { get => this.marketplaceSellers; @@ -100,8 +105,9 @@ public List /// Supplementary round trip reservation details. /// - [JsonProperty("round_trip_reservation_details")] + [JsonProperty("round_trip_reservation_details", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("round_trip_reservation_details")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List RoundTripReservationDetails { get => this.roundTripReservationDetails; @@ -115,8 +121,9 @@ public List /// Supplementary train reservation details. /// - [JsonProperty("train_reservation_details")] + [JsonProperty("train_reservation_details", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("train_reservation_details")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List TrainReservationDetails { get => this.trainReservationDetails; @@ -130,8 +137,9 @@ public List /// Voucher details, such as a gift card or discount code. /// - [JsonProperty("vouchers")] + [JsonProperty("vouchers", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("vouchers")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List Vouchers { get => this.vouchers; diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs index 1c76537969..0a884e6d6d 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs @@ -279,7 +279,7 @@ public PaymentIntentPaymentMethodOptionsBoletoOptions Boleto /// /// Configuration for any card payments attempted on this PaymentIntent. /// - [JsonProperty("card", NullValueHandling = NullValueHandling.Ignore)] + [JsonProperty("card")] [STJS.JsonPropertyName("card")] public PaymentIntentPaymentMethodOptionsCardOptions Card { get; set; } @@ -406,8 +406,9 @@ public PaymentIntentPaymentMethodOptionsGiropayOptions Giropay /// If this is a gopay PaymentMethod, this sub-hash contains details about the Gopay /// payment method options. /// - [JsonProperty("gopay")] + [JsonProperty("gopay", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("gopay")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public PaymentIntentPaymentMethodOptionsGopayOptions Gopay { get => this.gopay; @@ -439,8 +440,9 @@ public PaymentIntentPaymentMethodOptionsGrabpayOptions Grabpay /// If this is a id_bank_transfer PaymentMethod, this sub-hash contains details about /// the Indonesia Bank Transfer payment method options. /// - [JsonProperty("id_bank_transfer")] + [JsonProperty("id_bank_transfer", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("id_bank_transfer")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public PaymentIntentPaymentMethodOptionsIdBankTransferOptions IdBankTransfer { get => this.idBankTransfer; @@ -761,8 +763,9 @@ public PaymentIntentPaymentMethodOptionsPaypalOptions Paypal /// If this is a paypay PaymentMethod, this sub-hash contains details about the /// PayPay payment method options. /// - [JsonProperty("paypay")] + [JsonProperty("paypay", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("paypay")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public PaymentIntentPaymentMethodOptionsPaypayOptions Paypay { get => this.paypay; @@ -828,8 +831,9 @@ public PaymentIntentPaymentMethodOptionsPromptpayOptions Promptpay /// If this is a qris PaymentMethod, this sub-hash contains details about the QRIS /// payment method options. /// - [JsonProperty("qris")] + [JsonProperty("qris", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("qris")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public PaymentIntentPaymentMethodOptionsQrisOptions Qris { get => this.qris; @@ -844,8 +848,9 @@ public PaymentIntentPaymentMethodOptionsQrisOptions Qris /// If this is a rechnung PaymentMethod, this sub-hash contains details about the /// Rechnung payment method options. /// - [JsonProperty("rechnung")] + [JsonProperty("rechnung", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("rechnung")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public PaymentIntentPaymentMethodOptionsRechnungOptions Rechnung { get => this.rechnung; @@ -928,8 +933,9 @@ public PaymentIntentPaymentMethodOptionsSepaDebitOptions SepaDebit /// If this is a shopeepay PaymentMethod, this sub-hash contains details about the /// ShopeePay payment method options. /// - [JsonProperty("shopeepay")] + [JsonProperty("shopeepay", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("shopeepay")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public PaymentIntentPaymentMethodOptionsShopeepayOptions Shopeepay { get => this.shopeepay; @@ -961,8 +967,9 @@ public PaymentIntentPaymentMethodOptionsSofortOptions Sofort /// If this is a stripe_balance PaymentMethod, this sub-hash contains details about /// the Stripe Balance payment method options. /// - [JsonProperty("stripe_balance")] + [JsonProperty("stripe_balance", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("stripe_balance")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public PaymentIntentPaymentMethodOptionsStripeBalanceOptions StripeBalance { get => this.stripeBalance; diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPaypayOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPaypayOptions.cs index 1081e083e5..7eec41cb68 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPaypayOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPaypayOptions.cs @@ -24,8 +24,9 @@ public class PaymentIntentPaymentMethodOptionsPaypayOptions : INestedOptions, IH /// If capture_method is already set on the PaymentIntent, providing an empty value /// for this parameter unsets the stored value for this payment method type. /// - [JsonProperty("capture_method")] + [JsonProperty("capture_method", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("capture_method")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string CaptureMethod { get => this.captureMethod; diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsStripeBalanceOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsStripeBalanceOptions.cs index 5dae931ead..3341eea180 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsStripeBalanceOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsStripeBalanceOptions.cs @@ -46,8 +46,9 @@ public class PaymentIntentPaymentMethodOptionsStripeBalanceOptions : INestedOpti /// off_session. /// One of: none, or off_session. /// - [JsonProperty("setup_future_usage")] + [JsonProperty("setup_future_usage", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("setup_future_usage")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string SetupFutureUsage { get => this.setupFutureUsage; diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataProductDataTaxDetailsOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataProductDataTaxDetailsOptions.cs index 25a8882c4e..7d284727b5 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataProductDataTaxDetailsOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataProductDataTaxDetailsOptions.cs @@ -26,8 +26,9 @@ public class PaymentLinkLineItemPriceDataProductDataTaxDetailsOptions : INestedO /// /// A tax code ID. /// - [JsonProperty("tax_code")] + [JsonProperty("tax_code", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("tax_code")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string TaxCode { get => this.taxCode; diff --git a/src/Stripe.net/Services/Plans/PlanProductTaxDetailsOptions.cs b/src/Stripe.net/Services/Plans/PlanProductTaxDetailsOptions.cs index a7eb0d522d..ecf55ea761 100644 --- a/src/Stripe.net/Services/Plans/PlanProductTaxDetailsOptions.cs +++ b/src/Stripe.net/Services/Plans/PlanProductTaxDetailsOptions.cs @@ -26,8 +26,9 @@ public class PlanProductTaxDetailsOptions : INestedOptions, IHasSetTracking /// /// A tax code ID. /// - [JsonProperty("tax_code")] + [JsonProperty("tax_code", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("tax_code")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string TaxCode { get => this.taxCode; diff --git a/src/Stripe.net/Services/Prices/PriceCreateOptions.cs b/src/Stripe.net/Services/Prices/PriceCreateOptions.cs index 33d9a62dec..b1be69b6d5 100644 --- a/src/Stripe.net/Services/Prices/PriceCreateOptions.cs +++ b/src/Stripe.net/Services/Prices/PriceCreateOptions.cs @@ -56,6 +56,14 @@ public class PriceCreateOptions : BaseOptions, IHasMetadata [STJS.JsonPropertyName("custom_unit_amount")] public PriceCustomUnitAmountOptions CustomUnitAmount { get; set; } + /// + /// A custom identifier for this price, such as a SKU number or product code, that can be + /// used to reference records from external systems. + /// + [JsonProperty("external_reference")] + [STJS.JsonPropertyName("external_reference")] + public string ExternalReference { get; set; } + /// /// A lookup key used to retrieve prices dynamically from a static string. This may be up to /// 200 characters. diff --git a/src/Stripe.net/Services/Prices/PriceProductDataTaxDetailsOptions.cs b/src/Stripe.net/Services/Prices/PriceProductDataTaxDetailsOptions.cs index 5d2b37ecb5..af8ab4056e 100644 --- a/src/Stripe.net/Services/Prices/PriceProductDataTaxDetailsOptions.cs +++ b/src/Stripe.net/Services/Prices/PriceProductDataTaxDetailsOptions.cs @@ -26,8 +26,9 @@ public class PriceProductDataTaxDetailsOptions : INestedOptions, IHasSetTracking /// /// A tax code ID. /// - [JsonProperty("tax_code")] + [JsonProperty("tax_code", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("tax_code")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string TaxCode { get => this.taxCode; diff --git a/src/Stripe.net/Services/Prices/PriceUpdateOptions.cs b/src/Stripe.net/Services/Prices/PriceUpdateOptions.cs index 0bd752cfdb..f187fedd5c 100644 --- a/src/Stripe.net/Services/Prices/PriceUpdateOptions.cs +++ b/src/Stripe.net/Services/Prices/PriceUpdateOptions.cs @@ -10,6 +10,7 @@ namespace Stripe public class PriceUpdateOptions : BaseOptions, IHasMetadata { private Dictionary currencyOptions; + private string externalReference; private Dictionary metadata; private PriceMigrateToOptions migrateTo; @@ -38,6 +39,23 @@ public Dictionary CurrencyOptions } } + /// + /// A custom identifier for this price, such as a SKU number or product code, that can be + /// used to reference records from external systems. + /// + [JsonProperty("external_reference", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("external_reference")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public string ExternalReference + { + get => this.externalReference; + set + { + this.externalReference = value; + this.SetTracker.Track(); + } + } + /// /// A lookup key used to retrieve prices dynamically from a static string. This may be up to /// 200 characters. @@ -69,8 +87,9 @@ public Dictionary Metadata /// If specified, subscriptions using this price will be updated to use the new referenced /// price. /// - [JsonProperty("migrate_to")] + [JsonProperty("migrate_to", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("migrate_to")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public PriceMigrateToOptions MigrateTo { get => this.migrateTo; diff --git a/src/Stripe.net/Services/Products/ProductCreateOptions.cs b/src/Stripe.net/Services/Products/ProductCreateOptions.cs index da6363ce24..cea9c44212 100644 --- a/src/Stripe.net/Services/Products/ProductCreateOptions.cs +++ b/src/Stripe.net/Services/Products/ProductCreateOptions.cs @@ -41,6 +41,13 @@ public class ProductCreateOptions : BaseOptions, IHasId, IHasMetadata [STJS.JsonPropertyName("id")] public string Id { get; set; } + /// + /// Other identifiers for this product. + /// + [JsonProperty("identifiers")] + [STJS.JsonPropertyName("identifiers")] + public ProductIdentifiersOptions Identifiers { get; set; } + /// /// A list of up to 8 URLs of images for this product, meant to be displayable to the /// customer. diff --git a/src/Stripe.net/Services/Products/ProductIdentifiersOptions.cs b/src/Stripe.net/Services/Products/ProductIdentifiersOptions.cs new file mode 100644 index 0000000000..c56b66a323 --- /dev/null +++ b/src/Stripe.net/Services/Products/ProductIdentifiersOptions.cs @@ -0,0 +1,69 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ProductIdentifiersOptions : INestedOptions + { + /// + /// European Article Number (EAN) consisting of 8 or 13 digits and optional dashes. You may + /// optionally provide a leading 0 for a total of 14 digits. The final digit is a validated + /// check digit. + /// + [JsonProperty("ean")] + [STJS.JsonPropertyName("ean")] + public string Ean { get; set; } + + /// + /// Global Trade Item Number (GTIN) consisting of 8, 12, 13, or 14 digits and optional + /// dashes. The final digit is a validated check digit. + /// + [JsonProperty("gtin")] + [STJS.JsonPropertyName("gtin")] + public string Gtin { get; set; } + + /// + /// International Standard Book Number (ISBN) consisting of 10 or 13 digits and optional + /// dashes. The final digit is a validated check digit. For ISBN-10, the final digit may be + /// a X. + /// + [JsonProperty("isbn")] + [STJS.JsonPropertyName("isbn")] + public string Isbn { get; set; } + + /// + /// Japanese Article Number (JAN) consisting of 13 digits and optional dashes. The first two + /// digits must either be 45 or 49. The final digit is a validated check + /// digit. + /// + [JsonProperty("jan")] + [STJS.JsonPropertyName("jan")] + public string Jan { get; set; } + + /// + /// Manufacturer Part Number (MPN). May include up to 70 alphanumeric characters and dashes. + /// + [JsonProperty("mpn")] + [STJS.JsonPropertyName("mpn")] + public string Mpn { get; set; } + + /// + /// National Stock Number (NSN) consisting of 13 digits and optional dashes. The seventh + /// character may also be alphanumeric. + /// + [JsonProperty("nsn")] + [STJS.JsonPropertyName("nsn")] + public string Nsn { get; set; } + + /// + /// Universal Product Code (UPC) consisting of 12 digits and optional dashes. The final + /// digit is a validated check digit. + /// + [JsonProperty("upc")] + [STJS.JsonPropertyName("upc")] + public string Upc { get; set; } + } +} diff --git a/src/Stripe.net/Services/Products/ProductTaxDetailsOptions.cs b/src/Stripe.net/Services/Products/ProductTaxDetailsOptions.cs index 6a4beb12c2..fa3b9a5562 100644 --- a/src/Stripe.net/Services/Products/ProductTaxDetailsOptions.cs +++ b/src/Stripe.net/Services/Products/ProductTaxDetailsOptions.cs @@ -26,8 +26,9 @@ public class ProductTaxDetailsOptions : INestedOptions, IHasSetTracking /// /// A tax code ID. /// - [JsonProperty("tax_code")] + [JsonProperty("tax_code", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("tax_code")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string TaxCode { get => this.taxCode; diff --git a/src/Stripe.net/Services/Products/ProductUpdateOptions.cs b/src/Stripe.net/Services/Products/ProductUpdateOptions.cs index e8202411c4..1036c959d2 100644 --- a/src/Stripe.net/Services/Products/ProductUpdateOptions.cs +++ b/src/Stripe.net/Services/Products/ProductUpdateOptions.cs @@ -52,6 +52,13 @@ public string Description } } + /// + /// Other identifiers for this product. + /// + [JsonProperty("identifiers")] + [STJS.JsonPropertyName("identifiers")] + public ProductIdentifiersOptions Identifiers { get; set; } + /// /// A list of up to 8 URLs of images for this product, meant to be displayable to the /// customer. @@ -171,8 +178,9 @@ public string TaxCode /// href="https://stripe.com/tax/tax-codes">tax code and an optional performance /// location. /// - [JsonProperty("tax_details")] + [JsonProperty("tax_details", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("tax_details")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public ProductTaxDetailsOptions TaxDetails { get => this.taxDetails; diff --git a/src/Stripe.net/Services/Quotes/QuoteLineActionOptions.cs b/src/Stripe.net/Services/Quotes/QuoteLineActionOptions.cs index 8e1c639df5..31d100911a 100644 --- a/src/Stripe.net/Services/Quotes/QuoteLineActionOptions.cs +++ b/src/Stripe.net/Services/Quotes/QuoteLineActionOptions.cs @@ -74,8 +74,9 @@ public class QuoteLineActionOptions : INestedOptions, IHasSetTracking /// /// Details for the set_metadata type: specify an array of key-value pairs. /// - [JsonProperty("set_metadata")] + [JsonProperty("set_metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("set_metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public Dictionary SetMetadata { get => this.setMetadata; diff --git a/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOptions.cs b/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOptions.cs index c42c6aa63e..beb62ef92d 100644 --- a/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOptions.cs +++ b/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOptions.cs @@ -25,8 +25,9 @@ public class QuoteSubscriptionDataOptions : INestedOptions, IHasMetadata, IHasSe /// /// Describes the period to bill for upon accepting the quote. /// - [JsonProperty("bill_on_acceptance")] + [JsonProperty("bill_on_acceptance", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("bill_on_acceptance")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public QuoteSubscriptionDataBillOnAcceptanceOptions BillOnAcceptance { get => this.billOnAcceptance; @@ -53,8 +54,9 @@ public QuoteSubscriptionDataBillOnAcceptanceOptions BillOnAcceptance /// When specified as reset, the subscription will always start a new billing period /// when the quote is accepted. /// - [JsonProperty("billing_cycle_anchor")] + [JsonProperty("billing_cycle_anchor", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("billing_cycle_anchor")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string BillingCycleAnchor { get => this.billingCycleAnchor; @@ -76,8 +78,9 @@ public string BillingCycleAnchor /// Billing schedules that will be applied to the subscription or subscription schedule /// created when the quote is accepted. /// - [JsonProperty("billing_schedules")] + [JsonProperty("billing_schedules", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("billing_schedules")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List BillingSchedules { get => this.billingSchedules; @@ -172,8 +175,9 @@ public string Description /// If specified, the invoicing for the given billing cycle iterations will be processed /// when the quote is accepted. Cannot be used with effective_date. /// - [JsonProperty("prebilling")] + [JsonProperty("prebilling", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("prebilling")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public QuoteSubscriptionDataPrebillingOptions Prebilling { get => this.prebilling; diff --git a/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOverrideOptions.cs b/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOverrideOptions.cs index 0f65075ef3..b3692b49fb 100644 --- a/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOverrideOptions.cs +++ b/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOverrideOptions.cs @@ -27,8 +27,9 @@ public class QuoteSubscriptionDataOverrideOptions : INestedOptions, IHasSetTrack /// /// Describes the period to bill for upon accepting the quote. /// - [JsonProperty("bill_on_acceptance")] + [JsonProperty("bill_on_acceptance", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("bill_on_acceptance")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public QuoteSubscriptionDataOverrideBillOnAcceptanceOptions BillOnAcceptance { get => this.billOnAcceptance; @@ -72,8 +73,9 @@ public QuoteSubscriptionDataOverrideBillOnAcceptanceOptions BillOnAcceptance /// to optionally store an explanation of the subscription for rendering in Stripe surfaces /// and certain local payment methods UIs. /// - [JsonProperty("description")] + [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("description")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string Description { get => this.description; diff --git a/src/Stripe.net/Services/Quotes/QuoteUpdateOptions.cs b/src/Stripe.net/Services/Quotes/QuoteUpdateOptions.cs index e640bcdd9f..f3e6581837 100644 --- a/src/Stripe.net/Services/Quotes/QuoteUpdateOptions.cs +++ b/src/Stripe.net/Services/Quotes/QuoteUpdateOptions.cs @@ -259,8 +259,9 @@ public string OnBehalfOf /// List representing overrides for subscription_data configurations for specific /// subscription schedules. /// - [JsonProperty("subscription_data_overrides")] + [JsonProperty("subscription_data_overrides", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("subscription_data_overrides")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List SubscriptionDataOverrides { get => this.subscriptionDataOverrides; diff --git a/src/Stripe.net/Services/Radar/AccountEvaluations/AccountEvaluationLoginSucceededOptions.cs b/src/Stripe.net/Services/Radar/AccountEvaluations/AccountEvaluationLoginSucceededOptions.cs new file mode 100644 index 0000000000..08de8998ad --- /dev/null +++ b/src/Stripe.net/Services/Radar/AccountEvaluations/AccountEvaluationLoginSucceededOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.Radar +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountEvaluationLoginSucceededOptions : INestedOptions + { + /// + /// An optional qualification for a login success. + /// + [JsonProperty("qualification")] + [STJS.JsonPropertyName("qualification")] + public string Qualification { get; set; } + } +} diff --git a/src/Stripe.net/Services/Radar/AccountEvaluations/AccountEvaluationRegistrationSucceededOptions.cs b/src/Stripe.net/Services/Radar/AccountEvaluations/AccountEvaluationRegistrationSucceededOptions.cs new file mode 100644 index 0000000000..e431272b82 --- /dev/null +++ b/src/Stripe.net/Services/Radar/AccountEvaluations/AccountEvaluationRegistrationSucceededOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.Radar +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountEvaluationRegistrationSucceededOptions : INestedOptions + { + /// + /// An optional qualification for a registration success. + /// + [JsonProperty("qualification")] + [STJS.JsonPropertyName("qualification")] + public string Qualification { get; set; } + } +} diff --git a/src/Stripe.net/Services/Radar/AccountEvaluations/AccountEvaluationUpdateOptions.cs b/src/Stripe.net/Services/Radar/AccountEvaluations/AccountEvaluationUpdateOptions.cs index 8845456150..7387cec131 100644 --- a/src/Stripe.net/Services/Radar/AccountEvaluations/AccountEvaluationUpdateOptions.cs +++ b/src/Stripe.net/Services/Radar/AccountEvaluations/AccountEvaluationUpdateOptions.cs @@ -15,6 +15,13 @@ public class AccountEvaluationUpdateOptions : BaseOptions [STJS.JsonPropertyName("login_failed")] public AccountEvaluationLoginFailedOptions LoginFailed { get; set; } + /// + /// Event payload for login_succeeded. + /// + [JsonProperty("login_succeeded")] + [STJS.JsonPropertyName("login_succeeded")] + public AccountEvaluationLoginSucceededOptions LoginSucceeded { get; set; } + /// /// Event payload for registration_failed. /// @@ -22,6 +29,13 @@ public class AccountEvaluationUpdateOptions : BaseOptions [STJS.JsonPropertyName("registration_failed")] public AccountEvaluationRegistrationFailedOptions RegistrationFailed { get; set; } + /// + /// Event payload for registration_succeeded. + /// + [JsonProperty("registration_succeeded")] + [STJS.JsonPropertyName("registration_succeeded")] + public AccountEvaluationRegistrationSucceededOptions RegistrationSucceeded { get; set; } + /// /// The type of event to report. /// One of: login_failed, login_succeeded, registration_failed, or diff --git a/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationAuthorizationDetailsOptions.cs b/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationAuthorizationDetailsOptions.cs index bac017f0eb..1d1a710e89 100644 --- a/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationAuthorizationDetailsOptions.cs +++ b/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationAuthorizationDetailsOptions.cs @@ -53,7 +53,8 @@ public class IssuingAuthorizationEvaluationAuthorizationDetailsOptions : INested public string EntryModeRawCode { get; set; } /// - /// The timestamp of the authorization initiated in seconds. + /// The time the authorization was initiated, as a Unix timestamp in seconds. Must not be in + /// the future. /// [JsonProperty("initiated_at")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardDetailsOptions.cs b/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardDetailsOptions.cs index 1719a35dc0..24cf99b7e3 100644 --- a/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardDetailsOptions.cs +++ b/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardDetailsOptions.cs @@ -32,7 +32,7 @@ public class IssuingAuthorizationEvaluationCardDetailsOptions : INestedOptions public string CardType { get; set; } /// - /// The timestamp when the card was created. + /// The timestamp when the card was created, as a Unix timestamp in seconds. /// [JsonProperty("created_at")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs index aad7451c63..3ea3872e8a 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs @@ -439,13 +439,6 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata [STJS.JsonPropertyName("sepa_debit")] public SetupIntentPaymentMethodDataSepaDebitOptions SepaDebit { get; set; } - /// - /// ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. - /// - [JsonProperty("shared_payment_granted_token")] - [STJS.JsonPropertyName("shared_payment_granted_token")] - public string SharedPaymentGrantedToken { get; set; } - /// /// If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay /// payment method. diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentSetupDetailsBenefitOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentSetupDetailsBenefitOptions.cs index a69eaf5bae..6801754a05 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentSetupDetailsBenefitOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentSetupDetailsBenefitOptions.cs @@ -17,8 +17,9 @@ public class SetupIntentSetupDetailsBenefitOptions : INestedOptions, IHasSetTrac /// /// French meal voucher benefit details for this SetupIntent. /// - [JsonProperty("fr_meal_voucher")] + [JsonProperty("fr_meal_voucher", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("fr_meal_voucher")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public SetupIntentSetupDetailsBenefitFrMealVoucherOptions FrMealVoucher { get => this.frMealVoucher; diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleAmendOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleAmendOptions.cs index 049dce968a..b581829d19 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleAmendOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleAmendOptions.cs @@ -21,8 +21,9 @@ public class SubscriptionScheduleAmendOptions : BaseOptions /// /// Provide any time periods to bill in advance. /// - [JsonProperty("prebilling")] + [JsonProperty("prebilling", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("prebilling")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List Prebilling { get => this.prebilling; diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleAmendmentMetadataActionOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleAmendmentMetadataActionOptions.cs index 268b2a2d63..dc90967059 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleAmendmentMetadataActionOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleAmendmentMetadataActionOptions.cs @@ -34,8 +34,9 @@ public class SubscriptionScheduleAmendmentMetadataActionOptions : INestedOptions /// Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will /// be overwritten. /// - [JsonProperty("set")] + [JsonProperty("set", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("set")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public Dictionary Set { get => this.set; diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleUpdateOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleUpdateOptions.cs index 3484404f6a..8b87de7647 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleUpdateOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleUpdateOptions.cs @@ -27,8 +27,9 @@ public class SubscriptionScheduleUpdateOptions : BaseOptions, IHasMetadata /// /// Sets the billing schedules for the subscription schedule. /// - [JsonProperty("billing_schedules")] + [JsonProperty("billing_schedules", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("billing_schedules")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List BillingSchedules { get => this.billingSchedules; diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs index fdd5878e77..792de83009 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs @@ -36,7 +36,7 @@ public class SubscriptionPaymentSettingsOptions : INestedOptions, IHasSetTrackin /// crypto, custom, customer_balance, eps, fpx, /// giropay, grabpay, id_bank_transfer, ideal, /// jp_credit_transfer, kakao_pay, klarna, konbini, - /// kr_card, link, multibanco, naver_pay, + /// kr_card, link, momo, multibanco, naver_pay, /// nz_bank_account, p24, pay_by_bank, payco, paynow, /// paypal, payto, pix, promptpay, revolut_pay, /// sepa_credit_transfer, sepa_debit, sofort, stripe_balance, diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs index 82e0d2d635..ca19f91dcc 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs @@ -64,8 +64,9 @@ public SubscriptionPaymentSettingsPaymentMethodOptionsBancontactOptions Banconta /// This sub-hash contains details about the Bizum payment method options to pass to the /// invoice’s PaymentIntent. /// - [JsonProperty("bizum")] + [JsonProperty("bizum", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("bizum")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public SubscriptionPaymentSettingsPaymentMethodOptionsBizumOptions Bizum { get => this.bizum; @@ -97,8 +98,9 @@ public SubscriptionPaymentSettingsPaymentMethodOptionsCardOptions Card /// This sub-hash contains details about the Check Scan payment method options to pass to /// the invoice’s PaymentIntent. /// - [JsonProperty("check_scan")] + [JsonProperty("check_scan", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("check_scan")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public SubscriptionPaymentSettingsPaymentMethodOptionsCheckScanOptions CheckScan { get => this.checkScan; @@ -130,8 +132,9 @@ public SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceOptions Cus /// This sub-hash contains details about the Indonesia bank transfer payment method options /// to pass to the invoice’s PaymentIntent. /// - [JsonProperty("id_bank_transfer")] + [JsonProperty("id_bank_transfer", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("id_bank_transfer")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public SubscriptionPaymentSettingsPaymentMethodOptionsIdBankTransferOptions IdBankTransfer { get => this.idBankTransfer; @@ -180,8 +183,9 @@ public SubscriptionPaymentSettingsPaymentMethodOptionsPaytoOptions Payto /// This sub-hash contains details about the Pix payment method options to pass to the /// invoice’s PaymentIntent. /// - [JsonProperty("pix")] + [JsonProperty("pix", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("pix")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public SubscriptionPaymentSettingsPaymentMethodOptionsPixOptions Pix { get => this.pix; @@ -213,8 +217,9 @@ public SubscriptionPaymentSettingsPaymentMethodOptionsSepaDebitOptions SepaDebit /// This sub-hash contains details about the UPI payment method options to pass to the /// invoice’s PaymentIntent. /// - [JsonProperty("upi")] + [JsonProperty("upi", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("upi")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public SubscriptionPaymentSettingsPaymentMethodOptionsUpiOptions Upi { get => this.upi; diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs index 7a54cfd3e6..2f704ee9c9 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs @@ -86,8 +86,9 @@ public decimal? ApplicationFeePercent /// /// Sets the billing schedules for the subscription. /// - [JsonProperty("billing_schedules")] + [JsonProperty("billing_schedules", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("billing_schedules")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public List BillingSchedules { get => this.billingSchedules; diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCreateOptions.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCreateOptions.cs index a6c52b2888..70c30d5631 100644 --- a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCreateOptions.cs +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCreateOptions.cs @@ -70,8 +70,9 @@ public ConfigurationOfflineOptions Offline /// /// Configurations for reader security settings. /// - [JsonProperty("reader_security")] + [JsonProperty("reader_security", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("reader_security")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public ConfigurationReaderSecurityOptions ReaderSecurity { get => this.readerSecurity; diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationReaderSecurityOptions.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationReaderSecurityOptions.cs index ae3909f16b..edefe58d49 100644 --- a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationReaderSecurityOptions.cs +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationReaderSecurityOptions.cs @@ -17,8 +17,9 @@ public class ConfigurationReaderSecurityOptions : INestedOptions, IHasSetTrackin /// /// Passcode used to access a reader's admin menu. /// - [JsonProperty("admin_menu_passcode")] + [JsonProperty("admin_menu_passcode", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("admin_menu_passcode")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string AdminMenuPasscode { get => this.adminMenuPasscode; diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationUpdateOptions.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationUpdateOptions.cs index cc39622c1b..d987da29a3 100644 --- a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationUpdateOptions.cs +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationUpdateOptions.cs @@ -94,8 +94,9 @@ public ConfigurationOfflineOptions Offline /// /// Configurations for reader security settings. /// - [JsonProperty("reader_security")] + [JsonProperty("reader_security", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("reader_security")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public ConfigurationReaderSecurityOptions ReaderSecurity { get => this.readerSecurity; diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs index a5567d0895..35cc9ae010 100644 --- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs @@ -439,13 +439,6 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet [STJS.JsonPropertyName("sepa_debit")] public ConfirmationTokenPaymentMethodDataSepaDebitOptions SepaDebit { get; set; } - /// - /// ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. - /// - [JsonProperty("shared_payment_granted_token")] - [STJS.JsonPropertyName("shared_payment_granted_token")] - public string SharedPaymentGrantedToken { get; set; } - /// /// If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay /// payment method. diff --git a/src/Stripe.net/Services/TestHelpers/SharedPayment/GrantedTokens/GrantedTokenCreateOptions.cs b/src/Stripe.net/Services/TestHelpers/SharedPayment/GrantedTokens/GrantedTokenCreateOptions.cs index b05a6e8574..b26491aa88 100644 --- a/src/Stripe.net/Services/TestHelpers/SharedPayment/GrantedTokens/GrantedTokenCreateOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/SharedPayment/GrantedTokens/GrantedTokenCreateOptions.cs @@ -30,8 +30,9 @@ public class GrantedTokenCreateOptions : BaseOptions /// Set of key-value pairs that you can /// attach to the SharedPaymentGrantedToken. /// - [JsonProperty("shared_metadata")] + [JsonProperty("shared_metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("shared_metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public Dictionary SharedMetadata { get => this.sharedMetadata; diff --git a/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountCreateOptions.cs b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountCreateOptions.cs index 5919b25862..7e5f4f5ea8 100644 --- a/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountCreateOptions.cs +++ b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountCreateOptions.cs @@ -17,8 +17,9 @@ public class FinancialAccountCreateOptions : BaseOptions, IHasMetadata /// FinancialAccounts for your connected accounts. Unlike the nickname field, /// display_name is not internal metadata and will be exposed to connected accounts. /// - [JsonProperty("display_name")] + [JsonProperty("display_name", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("display_name")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string DisplayName { get => this.displayName; diff --git a/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountUpdateOptions.cs b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountUpdateOptions.cs index 7684327c37..c807b3e47a 100644 --- a/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountUpdateOptions.cs +++ b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountUpdateOptions.cs @@ -17,8 +17,9 @@ public class FinancialAccountUpdateOptions : BaseOptions, IHasMetadata /// FinancialAccounts for your connected accounts. Unlike the nickname field, /// display_name is not internal metadata and will be exposed to connected accounts. /// - [JsonProperty("display_name")] + [JsonProperty("display_name", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("display_name")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public string DisplayName { get => this.displayName; diff --git a/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingCreateCalculationTaxOptions.cs b/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingCreateCalculationTaxOptions.cs index 6e8c4003c5..a8086c5cfe 100644 --- a/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingCreateCalculationTaxOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingCreateCalculationTaxOptions.cs @@ -9,8 +9,8 @@ namespace Stripe.V2.Billing public class BillSettingCreateCalculationTaxOptions : INestedOptions { /// - /// Determines if tax will be calculated automatically based on a PTC or manually based on - /// rules defined by the merchant. Defaults to "manual". + /// Determines if tax is calculated automatically based on a PTC or manually based on rules + /// defined by the business. Defaults to "manual". /// One of: automatic, or manual. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingCreateInvoiceOptions.cs b/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingCreateInvoiceOptions.cs index f1fa847784..5296ea99b5 100644 --- a/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingCreateInvoiceOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingCreateInvoiceOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class BillSettingCreateInvoiceOptions : INestedOptions { /// - /// The amount of time until the invoice will be overdue for payment. + /// The amount of time until the invoice is overdue for payment. /// [JsonProperty("time_until_due")] [STJS.JsonPropertyName("time_until_due")] diff --git a/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingCreateInvoiceTimeUntilDueOptions.cs b/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingCreateInvoiceTimeUntilDueOptions.cs index 4459e3a4df..c292631e63 100644 --- a/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingCreateInvoiceTimeUntilDueOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingCreateInvoiceTimeUntilDueOptions.cs @@ -18,7 +18,7 @@ public class BillSettingCreateInvoiceTimeUntilDueOptions : INestedOptions /// /// The number of interval units. For example, if interval=day and interval_count=30, the - /// invoice will be due in 30 days. + /// invoice is due in 30 days. /// [JsonProperty("interval_count")] [STJS.JsonPropertyName("interval_count")] diff --git a/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingUpdateCalculationTaxOptions.cs b/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingUpdateCalculationTaxOptions.cs index e5deff2094..50238cf6e9 100644 --- a/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingUpdateCalculationTaxOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingUpdateCalculationTaxOptions.cs @@ -9,8 +9,8 @@ namespace Stripe.V2.Billing public class BillSettingUpdateCalculationTaxOptions : INestedOptions { /// - /// Determines if tax will be calculated automatically based on a PTC or manually based on - /// rules defined by the merchant. Defaults to "manual". + /// Determines if tax is calculated automatically based on a PTC or manually based on rules + /// defined by the business. Defaults to "manual". /// One of: automatic, or manual. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingUpdateInvoiceOptions.cs b/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingUpdateInvoiceOptions.cs index 7415a42998..6940246696 100644 --- a/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingUpdateInvoiceOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingUpdateInvoiceOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class BillSettingUpdateInvoiceOptions : INestedOptions { /// - /// The amount of time until the invoice will be overdue for payment. + /// The amount of time until the invoice is overdue for payment. /// [JsonProperty("time_until_due")] [STJS.JsonPropertyName("time_until_due")] diff --git a/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingUpdateInvoiceTimeUntilDueOptions.cs b/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingUpdateInvoiceTimeUntilDueOptions.cs index c59c4c8117..cfffb319dd 100644 --- a/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingUpdateInvoiceTimeUntilDueOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingUpdateInvoiceTimeUntilDueOptions.cs @@ -18,7 +18,7 @@ public class BillSettingUpdateInvoiceTimeUntilDueOptions : INestedOptions /// /// The number of interval units. For example, if interval=day and interval_count=30, the - /// invoice will be due in 30 days. + /// invoice is due in 30 days. /// [JsonProperty("interval_count")] [STJS.JsonPropertyName("interval_count")] diff --git a/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingUpdateOptions.cs b/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingUpdateOptions.cs index 032c4faaaa..4cf0b5393f 100644 --- a/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/BillSettings/BillSettingUpdateOptions.cs @@ -40,7 +40,7 @@ public class BillSettingUpdateOptions : BaseOptions /// /// Optionally change the live version of the BillSetting. Providing live_version = - /// "latest" will set the BillSetting' live_version to its latest version. + /// "latest" sets the BillSetting' live_version to its latest version. /// [JsonProperty("live_version")] [STJS.JsonPropertyName("live_version")] diff --git a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleDayOptions.cs b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleDayOptions.cs index 774f225930..a33bba7085 100644 --- a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleDayOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleDayOptions.cs @@ -10,7 +10,7 @@ public class CadenceCreateBillingCycleDayOptions : INestedOptions { /// /// The time at which the billing cycle ends. This field is optional, and if not provided, - /// it will default to the time at which the cadence was created in UTC timezone. + /// it defaults to the time at which the cadence was created in UTC timezone. /// [JsonProperty("time")] [STJS.JsonPropertyName("time")] diff --git a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleMonthOptions.cs b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleMonthOptions.cs index 61271b70fe..defef74b7b 100644 --- a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleMonthOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleMonthOptions.cs @@ -10,8 +10,8 @@ public class CadenceCreateBillingCycleMonthOptions : INestedOptions { /// /// The day to anchor the billing on for a type="month" billing cycle from 1-31. If this - /// number is greater than the number of days in the month being billed, this will anchor to - /// the last day of the month. If not provided, this will default to the day the cadence was + /// number is greater than the number of days in the month being billed, this anchors to the + /// last day of the month. If not provided, this defaults to the day the cadence was /// created. /// [JsonProperty("day_of_month")] @@ -20,9 +20,9 @@ public class CadenceCreateBillingCycleMonthOptions : INestedOptions /// /// The month to anchor the billing on for a type="month" billing cycle from 1-12. If not - /// provided, this will default to the month the cadence was created. This setting can only - /// be used for monthly billing cycles with interval_count of 2, 3, 4 or 6. All - /// occurrences will be calculated from month provided. + /// provided, this defaults to the month the cadence was created. This setting can only be + /// used for monthly billing cycles with interval_count of 2, 3, 4 or 6. All + /// occurrences are calculated from the month provided. /// [JsonProperty("month_of_year")] [STJS.JsonPropertyName("month_of_year")] @@ -30,7 +30,7 @@ public class CadenceCreateBillingCycleMonthOptions : INestedOptions /// /// The time at which the billing cycle ends. This field is optional, and if not provided, - /// it will default to the time at which the cadence was created in UTC timezone. + /// it defaults to the time at which the cadence was created in UTC timezone. /// [JsonProperty("time")] [STJS.JsonPropertyName("time")] diff --git a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleOptions.cs b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleOptions.cs index 5183355ef1..51db99f507 100644 --- a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleOptions.cs @@ -17,8 +17,8 @@ public class CadenceCreateBillingCycleOptions : INestedOptions /// /// The number of intervals (specified in the interval attribute) between cadence billings. - /// For example, type=month and interval_count=3 bills every 3 months. If this is not - /// provided, it will default to 1. + /// For example, type=month and interval_count=3 bills every 3 months. If not provided, this + /// defaults to 1. /// [JsonProperty("interval_count")] [STJS.JsonPropertyName("interval_count")] diff --git a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleWeekOptions.cs b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleWeekOptions.cs index db438311b7..ea3cde1b46 100644 --- a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleWeekOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleWeekOptions.cs @@ -11,7 +11,7 @@ public class CadenceCreateBillingCycleWeekOptions : INestedOptions /// /// The day of the week to bill the type=week billing cycle on. Numbered from 1-7 for Monday /// to Sunday respectively, based on the ISO-8601 week day numbering. If not provided, this - /// will default to the day the cadence was created. + /// defaults to the day the cadence was created. /// [JsonProperty("day_of_week")] [STJS.JsonPropertyName("day_of_week")] @@ -19,7 +19,7 @@ public class CadenceCreateBillingCycleWeekOptions : INestedOptions /// /// The time at which the billing cycle ends. This field is optional, and if not provided, - /// it will default to the time at which the cadence was created in UTC timezone. + /// it defaults to the time at which the cadence was created in UTC timezone. /// [JsonProperty("time")] [STJS.JsonPropertyName("time")] diff --git a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleYearOptions.cs b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleYearOptions.cs index b3412a888e..1a5a62197f 100644 --- a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleYearOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleYearOptions.cs @@ -10,8 +10,8 @@ public class CadenceCreateBillingCycleYearOptions : INestedOptions { /// /// The day to anchor the billing on for a type="month" billing cycle from 1-31. If this - /// number is greater than the number of days in the month being billed, this will anchor to - /// the last day of the month. If not provided, this will default to the day the cadence was + /// number is greater than the number of days in the month being billed, this anchors to the + /// last day of the month. If not provided, this defaults to the day the cadence was /// created. /// [JsonProperty("day_of_month")] @@ -19,8 +19,8 @@ public class CadenceCreateBillingCycleYearOptions : INestedOptions public long? DayOfMonth { get; set; } /// - /// The month to bill on from 1-12. If not provided, this will default to the month the - /// cadence was created. + /// The month to bill on from 1-12. If not provided, this defaults to the month the cadence + /// was created. /// [JsonProperty("month_of_year")] [STJS.JsonPropertyName("month_of_year")] @@ -28,7 +28,7 @@ public class CadenceCreateBillingCycleYearOptions : INestedOptions /// /// The time at which the billing cycle ends. This field is optional, and if not provided, - /// it will default to the time at which the cadence was created in UTC timezone. + /// it defaults to the time at which the cadence was created in UTC timezone. /// [JsonProperty("time")] [STJS.JsonPropertyName("time")] diff --git a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreatePayerOptions.cs b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreatePayerOptions.cs index df62eee353..e9527d5163 100644 --- a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreatePayerOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreatePayerOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class CadenceCreatePayerOptions : INestedOptions { /// - /// The ID of the Billing Profile object which determines how a bill will be paid. + /// The ID of the Billing Profile object which determines how a bill is paid. /// [JsonProperty("billing_profile")] [STJS.JsonPropertyName("billing_profile")] diff --git a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateSettingsBillOptions.cs b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateSettingsBillOptions.cs index c65de3ce14..00f3d68523 100644 --- a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateSettingsBillOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateSettingsBillOptions.cs @@ -17,7 +17,7 @@ public class CadenceCreateSettingsBillOptions : INestedOptions, IHasId /// /// An optional field to specify the version of the Settings to use. If not provided, this - /// will always default to the live version any time the settings are used. + /// defaults to the live version any time the settings are used. /// [JsonProperty("version")] [STJS.JsonPropertyName("version")] diff --git a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateSettingsCollectionOptions.cs b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateSettingsCollectionOptions.cs index 988541366a..2fcce09d8a 100644 --- a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateSettingsCollectionOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateSettingsCollectionOptions.cs @@ -17,7 +17,7 @@ public class CadenceCreateSettingsCollectionOptions : INestedOptions, IHasId /// /// An optional field to specify the version of the Settings to use. If not provided, this - /// will always default to the live version any time the settings are used. + /// defaults to the live version any time the settings are used. /// [JsonProperty("version")] [STJS.JsonPropertyName("version")] diff --git a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateOptions.cs b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateOptions.cs index 5d288f7bad..3a7e212be4 100644 --- a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateOptions.cs @@ -32,8 +32,9 @@ public class CadenceUpdateOptions : BaseOptions, IHasMetadata /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] [STJS.JsonConverter(typeof(STJNullPreservingDictionaryConverter))] public Dictionary Metadata { diff --git a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdatePayerOptions.cs b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdatePayerOptions.cs index 4db2c85146..76b765bdb5 100644 --- a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdatePayerOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdatePayerOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class CadenceUpdatePayerOptions : INestedOptions { /// - /// The ID of the Billing Profile object which determines how a bill will be paid. + /// The ID of the Billing Profile object which determines how a bill is paid. /// [JsonProperty("billing_profile")] [STJS.JsonPropertyName("billing_profile")] diff --git a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateSettingsBillOptions.cs b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateSettingsBillOptions.cs index df7f9264f9..21551729cc 100644 --- a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateSettingsBillOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateSettingsBillOptions.cs @@ -16,11 +16,10 @@ public class CadenceUpdateSettingsBillOptions : INestedOptions, IHasId public string Id { get; set; } /// - /// An optional field to specify the version of Settings to use. If not provided, this will - /// always default to the live_version specified on the setting, any time the - /// settings are used. Using a specific version here will prevent the settings from - /// updating, and is discouraged for cadences. To clear a pinned version, set the version to - /// null. + /// An optional field to specify the version of Settings to use. If not provided, this + /// defaults to the live_version specified on the setting, any time the settings are + /// used. Using a specific version here prevents the settings from updating, and is + /// discouraged for cadences. To clear a pinned version, set the version to null. /// [JsonProperty("version")] [STJS.JsonPropertyName("version")] diff --git a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateSettingsCollectionOptions.cs b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateSettingsCollectionOptions.cs index 1e084cff71..a37f490218 100644 --- a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateSettingsCollectionOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateSettingsCollectionOptions.cs @@ -16,11 +16,10 @@ public class CadenceUpdateSettingsCollectionOptions : INestedOptions, IHasId public string Id { get; set; } /// - /// An optional field to specify the version of Settings to use. If not provided, this will - /// always default to the live_version specified on the setting, any time the - /// settings are used. Using a specific version here will prevent the settings from - /// updating, and is discouraged for cadences. To clear a pinned version, set the version to - /// null. + /// An optional field to specify the version of Settings to use. If not provided, this + /// defaults to the live_version specified on the setting, any time the settings are + /// used. Using a specific version here prevents the settings from updating, and is + /// discouraged for cadences. To clear a pinned version, set the version to null. /// [JsonProperty("version")] [STJS.JsonPropertyName("version")] diff --git a/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingCreateOptions.cs b/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingCreateOptions.cs index 13805c518e..5b2bbbc261 100644 --- a/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingCreateOptions.cs @@ -9,9 +9,9 @@ namespace Stripe.V2.Billing public class CollectionSettingCreateOptions : BaseOptions { /// - /// Either automatic, or send_invoice. When charging automatically, Stripe will attempt to - /// pay this bill at the end of the period using the payment method attached to the payer - /// profile. When sending an invoice, Stripe will email your payer profile an invoice with + /// Either automatic, or send_invoice. When charging automatically, Stripe attempts to pay + /// this bill at the end of the period using the payment method attached to the billing + /// profile. When sending an invoice, Stripe emails your billing profile an invoice with /// payment instructions. Defaults to automatic. /// One of: automatic, or send_invoice. /// diff --git a/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingUpdateOptions.cs b/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingUpdateOptions.cs index 2a276b99ef..d6ad9d339a 100644 --- a/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingUpdateOptions.cs @@ -9,9 +9,9 @@ namespace Stripe.V2.Billing public class CollectionSettingUpdateOptions : BaseOptions { /// - /// Either automatic, or send_invoice. When charging automatically, Stripe will attempt to - /// pay this bill at the end of the period using the payment method attached to the payer - /// profile. When sending an invoice, Stripe will email your payer profile an invoice with + /// Either automatic, or send_invoice. When charging automatically, Stripe attempts to pay + /// this bill at the end of the period using the payment method attached to the billing + /// profile. When sending an invoice, Stripe emails your billing profile an invoice with /// payment instructions. /// One of: automatic, or send_invoice. /// @@ -37,8 +37,8 @@ public class CollectionSettingUpdateOptions : BaseOptions /// /// Optionally change the live version of the CollectionSetting. Billing Cadences and other - /// objects that refer to this CollectionSetting will use this version when no overrides are - /// set. Providing live_version = "latest" will set the CollectionSetting's + /// objects that refer to this CollectionSetting uses this version when no overrides are + /// set. Providing live_version = "latest" sets the CollectionSetting's /// live_version to its latest version. /// [JsonProperty("live_version")] diff --git a/src/Stripe.net/Services/V2/Billing/CustomPricingUnits/CustomPricingUnitCreateOptions.cs b/src/Stripe.net/Services/V2/Billing/CustomPricingUnits/CustomPricingUnitCreateOptions.cs index 782d950402..9fbc468c47 100644 --- a/src/Stripe.net/Services/V2/Billing/CustomPricingUnits/CustomPricingUnitCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/CustomPricingUnits/CustomPricingUnitCreateOptions.cs @@ -10,7 +10,7 @@ namespace Stripe.V2.Billing public class CustomPricingUnitCreateOptions : BaseOptions, IHasMetadata { /// - /// Description that customers will see in the invoice line item. Maximum length of 10 + /// Description that customers see in the invoice line item. Maximum length of 10 /// characters. /// [JsonProperty("display_name")] diff --git a/src/Stripe.net/Services/V2/Billing/CustomPricingUnits/CustomPricingUnitUpdateOptions.cs b/src/Stripe.net/Services/V2/Billing/CustomPricingUnits/CustomPricingUnitUpdateOptions.cs index f1ea3b95ab..f8a09da7b5 100644 --- a/src/Stripe.net/Services/V2/Billing/CustomPricingUnits/CustomPricingUnitUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/CustomPricingUnits/CustomPricingUnitUpdateOptions.cs @@ -19,7 +19,7 @@ public class CustomPricingUnitUpdateOptions : BaseOptions, IHasMetadata public bool? Active { get; set; } /// - /// Description that customers will see in the invoice line item. + /// Description that customers see in the invoice line item. /// [JsonProperty("display_name")] [STJS.JsonPropertyName("display_name")] @@ -35,8 +35,9 @@ public class CustomPricingUnitUpdateOptions : BaseOptions, IHasMetadata /// /// Set of key-value pairs that you can attach to an object. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] [STJS.JsonConverter(typeof(STJNullPreservingDictionaryConverter))] public Dictionary Metadata { diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyEffectiveAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyEffectiveAtOptions.cs index 397e31e7ae..82defb41fc 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyEffectiveAtOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyEffectiveAtOptions.cs @@ -10,15 +10,15 @@ namespace Stripe.V2.Billing public class IntentCreateActionApplyEffectiveAtOptions : INestedOptions { /// - /// The timestamp at which the apply action will take effect. Only present if type is - /// timestamp. Only allowed for discount actions. + /// The timestamp at which the apply action takes effect. Only present if type is timestamp. + /// Only allowed for discount actions. /// [JsonProperty("timestamp")] [STJS.JsonPropertyName("timestamp")] public DateTime? Timestamp { get; set; } /// - /// When the apply action will take effect. + /// When the apply action takes effect. /// One of: current_billing_period_end, current_billing_period_start, /// next_billing_period_start, on_reserve, or timestamp. /// diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyInvoiceDiscountRulePercentOffOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyInvoiceDiscountRulePercentOffOptions.cs index 3edd2a316e..addd6862ef 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyInvoiceDiscountRulePercentOffOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyInvoiceDiscountRulePercentOffOptions.cs @@ -16,8 +16,8 @@ public class IntentCreateActionApplyInvoiceDiscountRulePercentOffOptions : INest public IntentCreateActionApplyInvoiceDiscountRulePercentOffMaximumApplicationsOptions MaximumApplications { get; set; } /// - /// Percent that will be taken off of the amount. For example, percent_off of 50.0 will make - /// $100 amount $50 instead. + /// Percent that is taken off the amount. For example, a percent_off of 50.0 reduces a 100 + /// USD amount to 50 USD. /// [JsonProperty("percent_off")] [JsonConverter(typeof(DecimalStringConverter))] diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyOptions.cs index f1e319e7be..7edbb26303 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyOptions.cs @@ -16,7 +16,7 @@ public class IntentCreateActionApplyOptions : INestedOptions public IntentCreateActionApplyDiscountOptions Discount { get; set; } /// - /// When the apply action will take effect. If not specified, defaults to on_reserve. + /// When the apply action takes effect. If not specified, defaults to on_reserve. /// [JsonProperty("effective_at")] [STJS.JsonPropertyName("effective_at")] diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivateEffectiveAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivateEffectiveAtOptions.cs index 30f44b2aad..d6892ada43 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivateEffectiveAtOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivateEffectiveAtOptions.cs @@ -10,7 +10,7 @@ namespace Stripe.V2.Billing public class IntentCreateActionDeactivateEffectiveAtOptions : INestedOptions { /// - /// The timestamp at which the deactivate action will take effect. Only present if type is + /// The timestamp at which the deactivate action takes effect. Only present if type is /// timestamp. /// [JsonProperty("timestamp")] @@ -18,7 +18,7 @@ public class IntentCreateActionDeactivateEffectiveAtOptions : INestedOptions public DateTime? Timestamp { get; set; } /// - /// When the deactivate action will take effect. + /// When the deactivate action takes effect. /// One of: current_billing_period_end, current_billing_period_start, /// on_reserve, or timestamp. /// diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivateOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivateOptions.cs index 6bf8141ffc..8db39f78ab 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivateOptions.cs @@ -16,7 +16,7 @@ public class IntentCreateActionDeactivateOptions : INestedOptions public IntentCreateActionDeactivateCancellationDetailsOptions CancellationDetails { get; set; } /// - /// When the invoice will be collected. If not specified, the default behavior is + /// When the invoice is collected. If not specified, the default behavior is /// on_effective_at. /// One of: next_billing_date, or on_effective_at. /// @@ -25,7 +25,7 @@ public class IntentCreateActionDeactivateOptions : INestedOptions public string CollectAt { get; set; } /// - /// When the deactivate action will take effect. If not specified, the default behavior is + /// When the deactivate action takes effect. If not specified, the default behavior is /// on_reserve. /// [JsonProperty("effective_at")] diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyEffectiveAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyEffectiveAtOptions.cs index 8ae6ddd080..17b7c34bbc 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyEffectiveAtOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyEffectiveAtOptions.cs @@ -10,7 +10,7 @@ namespace Stripe.V2.Billing public class IntentCreateActionModifyEffectiveAtOptions : INestedOptions { /// - /// The timestamp at which the modify action will take effect. Only present if type is + /// The timestamp at which the modify action takes effect. Only present if type is /// timestamp. /// [JsonProperty("timestamp")] @@ -18,7 +18,7 @@ public class IntentCreateActionModifyEffectiveAtOptions : INestedOptions public DateTime? Timestamp { get; set; } /// - /// When the modify action will take effect. + /// When the modify action takes effect. /// One of: current_billing_period_start, on_reserve, or timestamp. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyOptions.cs index bed76db323..1040a2116d 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class IntentCreateActionModifyOptions : INestedOptions { /// - /// When the invoice will be collected. If not specified, the default behavior is + /// When the invoice is collected. If not specified, the default behavior is /// next_billing_date. /// One of: next_billing_date, or on_effective_at. /// @@ -18,7 +18,7 @@ public class IntentCreateActionModifyOptions : INestedOptions public string CollectAt { get; set; } /// - /// When the modify action will take effect. If not specified, the default behavior is + /// When the modify action takes effect. If not specified, the default behavior is /// on_reserve. /// [JsonProperty("effective_at")] diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionRemoveEffectiveAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionRemoveEffectiveAtOptions.cs index 05edb957f0..995f3178d1 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionRemoveEffectiveAtOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionRemoveEffectiveAtOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class IntentCreateActionRemoveEffectiveAtOptions : INestedOptions { /// - /// When the remove action will take effect. + /// When the remove action takes effect. /// One of: current_billing_period_end, or on_reserve. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionRemoveOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionRemoveOptions.cs index 4ea8361f27..98ddeb4cbb 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionRemoveOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionRemoveOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class IntentCreateActionRemoveOptions : INestedOptions { /// - /// When the remove action will take effect. If not specified, defaults to on_reserve. + /// When the remove action takes effect. If not specified, defaults to on_reserve. /// [JsonProperty("effective_at")] [STJS.JsonPropertyName("effective_at")] diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribeEffectiveAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribeEffectiveAtOptions.cs index de2737808f..ee0e0d300f 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribeEffectiveAtOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribeEffectiveAtOptions.cs @@ -10,7 +10,7 @@ namespace Stripe.V2.Billing public class IntentCreateActionSubscribeEffectiveAtOptions : INestedOptions { /// - /// The timestamp at which the subscribe action will take effect. Only present if type is + /// The timestamp at which the subscribe action takes effect. Only present if type is /// timestamp. /// [JsonProperty("timestamp")] @@ -18,7 +18,7 @@ public class IntentCreateActionSubscribeEffectiveAtOptions : INestedOptions public DateTime? Timestamp { get; set; } /// - /// When the subscribe action will take effect. + /// When the subscribe action takes effect. /// One of: current_billing_period_start, on_reserve, or timestamp. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribeOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribeOptions.cs index 1ad1ab2a66..c4be0b19ff 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribeOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribeOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class IntentCreateActionSubscribeOptions : INestedOptions { /// - /// When the invoice will be collected. If not specified, defaults to on_effective_at. + /// When the invoice is collected. If not specified, defaults to on_effective_at. /// One of: next_billing_date, or on_effective_at. /// [JsonProperty("collect_at")] @@ -17,7 +17,7 @@ public class IntentCreateActionSubscribeOptions : INestedOptions public string CollectAt { get; set; } /// - /// When the subscribe action will take effect. If not specified, the default behavior is + /// When the subscribe action takes effect. If not specified, the default behavior is /// on_reserve. /// [JsonProperty("effective_at")] diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleDayOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleDayOptions.cs index 449c44079d..6f63201ede 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleDayOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleDayOptions.cs @@ -10,7 +10,7 @@ public class IntentCreateCadenceDataBillingCycleDayOptions : INestedOptions { /// /// The time at which the billing cycle ends. This field is optional, and if not provided, - /// it will default to the time at which the cadence was created in UTC timezone. + /// it defaults to the time at which the cadence was created in UTC timezone. /// [JsonProperty("time")] [STJS.JsonPropertyName("time")] diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleMonthOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleMonthOptions.cs index cb3b09fd35..a443a30294 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleMonthOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleMonthOptions.cs @@ -10,8 +10,8 @@ public class IntentCreateCadenceDataBillingCycleMonthOptions : INestedOptions { /// /// The day to anchor the billing on for a type="month" billing cycle from 1-31. If this - /// number is greater than the number of days in the month being billed, this will anchor to - /// the last day of the month. If not provided, this will default to the day the cadence was + /// number is greater than the number of days in the month being billed, this anchors to the + /// last day of the month. If not provided, this defaults to the day the cadence was /// created. /// [JsonProperty("day_of_month")] @@ -20,9 +20,9 @@ public class IntentCreateCadenceDataBillingCycleMonthOptions : INestedOptions /// /// The month to anchor the billing on for a type="month" billing cycle from 1-12. If not - /// provided, this will default to the month the cadence was created. This setting can only - /// be used for monthly billing cycles with interval_count of 2, 3, 4 or 6. All - /// occurrences will be calculated from month provided. + /// provided, this defaults to the month the cadence was created. This setting can only be + /// used for monthly billing cycles with interval_count of 2, 3, 4 or 6. All + /// occurrences are calculated from the month provided. /// [JsonProperty("month_of_year")] [STJS.JsonPropertyName("month_of_year")] @@ -30,7 +30,7 @@ public class IntentCreateCadenceDataBillingCycleMonthOptions : INestedOptions /// /// The time at which the billing cycle ends. This field is optional, and if not provided, - /// it will default to the time at which the cadence was created in UTC timezone. + /// it defaults to the time at which the cadence was created in UTC timezone. /// [JsonProperty("time")] [STJS.JsonPropertyName("time")] diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleOptions.cs index 396038124e..309acb7a80 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleOptions.cs @@ -17,8 +17,8 @@ public class IntentCreateCadenceDataBillingCycleOptions : INestedOptions /// /// The number of intervals (specified in the interval attribute) between cadence billings. - /// For example, type=month and interval_count=3 bills every 3 months. If this is not - /// provided, it will default to 1. + /// For example, type=month and interval_count=3 bills every 3 months. If not provided, this + /// defaults to 1. /// [JsonProperty("interval_count")] [STJS.JsonPropertyName("interval_count")] diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleWeekOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleWeekOptions.cs index a43e8cc619..9940cf2c89 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleWeekOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleWeekOptions.cs @@ -11,7 +11,7 @@ public class IntentCreateCadenceDataBillingCycleWeekOptions : INestedOptions /// /// The day of the week to bill the type=week billing cycle on. Numbered from 1-7 for Monday /// to Sunday respectively, based on the ISO-8601 week day numbering. If not provided, this - /// will default to the day the cadence was created. + /// defaults to the day the cadence was created. /// [JsonProperty("day_of_week")] [STJS.JsonPropertyName("day_of_week")] @@ -19,7 +19,7 @@ public class IntentCreateCadenceDataBillingCycleWeekOptions : INestedOptions /// /// The time at which the billing cycle ends. This field is optional, and if not provided, - /// it will default to the time at which the cadence was created in UTC timezone. + /// it defaults to the time at which the cadence was created in UTC timezone. /// [JsonProperty("time")] [STJS.JsonPropertyName("time")] diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleYearOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleYearOptions.cs index 8343309a3f..5055e1f552 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleYearOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleYearOptions.cs @@ -10,8 +10,8 @@ public class IntentCreateCadenceDataBillingCycleYearOptions : INestedOptions { /// /// The day to anchor the billing on for a type="month" billing cycle from 1-31. If this - /// number is greater than the number of days in the month being billed, this will anchor to - /// the last day of the month. If not provided, this will default to the day the cadence was + /// number is greater than the number of days in the month being billed, this anchors to the + /// last day of the month. If not provided, this defaults to the day the cadence was /// created. /// [JsonProperty("day_of_month")] @@ -19,8 +19,8 @@ public class IntentCreateCadenceDataBillingCycleYearOptions : INestedOptions public long? DayOfMonth { get; set; } /// - /// The month to bill on from 1-12. If not provided, this will default to the month the - /// cadence was created. + /// The month to bill on from 1-12. If not provided, this defaults to the month the cadence + /// was created. /// [JsonProperty("month_of_year")] [STJS.JsonPropertyName("month_of_year")] @@ -28,7 +28,7 @@ public class IntentCreateCadenceDataBillingCycleYearOptions : INestedOptions /// /// The time at which the billing cycle ends. This field is optional, and if not provided, - /// it will default to the time at which the cadence was created in UTC timezone. + /// it defaults to the time at which the cadence was created in UTC timezone. /// [JsonProperty("time")] [STJS.JsonPropertyName("time")] diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataPayerBillingProfileDataOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataPayerBillingProfileDataOptions.cs index 9341ddbab6..2d8c969060 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataPayerBillingProfileDataOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataPayerBillingProfileDataOptions.cs @@ -17,8 +17,8 @@ public class IntentCreateCadenceDataPayerBillingProfileDataOptions : INestedOpti /// /// The default payment method to use when billing this profile. If left blank, the - /// PaymentMethod from the PaymentIntent provided on commit will be used to - /// create the profile. + /// PaymentMethod from the PaymentIntent provided on commit is used to create + /// the profile. /// [JsonProperty("default_payment_method")] [STJS.JsonPropertyName("default_payment_method")] diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataPayerOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataPayerOptions.cs index 3d99f02df4..90a114ce1c 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataPayerOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataPayerOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class IntentCreateCadenceDataPayerOptions : INestedOptions { /// - /// The ID of the Billing Profile object which determines how a bill will be paid. + /// The ID of the Billing Profile object which determines how a bill is paid. /// [JsonProperty("billing_profile")] [STJS.JsonPropertyName("billing_profile")] diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataSettingsBillOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataSettingsBillOptions.cs index aad56dc5e9..8f460f93ca 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataSettingsBillOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataSettingsBillOptions.cs @@ -17,7 +17,7 @@ public class IntentCreateCadenceDataSettingsBillOptions : INestedOptions, IHasId /// /// An optional field to specify the version of the Settings to use. If not provided, this - /// will always default to the live version any time the settings are used. + /// defaults to the live version any time the settings are used. /// [JsonProperty("version")] [STJS.JsonPropertyName("version")] diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataSettingsCollectionOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataSettingsCollectionOptions.cs index bd79258205..4bd13b6217 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataSettingsCollectionOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataSettingsCollectionOptions.cs @@ -17,7 +17,7 @@ public class IntentCreateCadenceDataSettingsCollectionOptions : INestedOptions, /// /// An optional field to specify the version of the Settings to use. If not provided, this - /// will always default to the live version any time the settings are used. + /// defaults to the live version any time the settings are used. /// [JsonProperty("version")] [STJS.JsonPropertyName("version")] diff --git a/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeCreateOptions.cs b/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeCreateOptions.cs index e59093ba53..833721a714 100644 --- a/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeCreateOptions.cs @@ -50,11 +50,11 @@ public class LicenseFeeCreateOptions : BaseOptions, IHasMetadata public Dictionary Metadata { get; set; } /// - /// The interval for assessing service. For example, a monthly license fee with a rate of $1 - /// for the first 10 "workloads" and $2 thereafter means "$1 per workload up to 10 workloads - /// during a month of service." This is similar to but distinct from billing interval; the - /// service interval deals with the rate at which the customer accumulates fees, while the - /// billing interval in Cadence deals with the rate the customer is billed. + /// The interval for assessing service. For example, a monthly license fee with a rate of 1 + /// USD for the first 10 "workloads" and 2 USD thereafter means "1 USD per workload up to 10 + /// workloads during a month of service." This is similar to but distinct from billing + /// interval; the service interval deals with the rate at which the customer accumulates + /// fees, while the billing interval in Cadence deals with the rate the customer is billed. /// One of: day, month, week, or year. /// [JsonProperty("service_interval")] @@ -63,14 +63,15 @@ public class LicenseFeeCreateOptions : BaseOptions, IHasMetadata /// /// The length of the interval for assessing service. For example, set this to 3 and - /// service_interval to "month" in order to specify quarterly service. + /// service_interval to "month" to specify quarterly service. /// [JsonProperty("service_interval_count")] [STJS.JsonPropertyName("service_interval_count")] public long? ServiceIntervalCount { get; set; } /// - /// The Stripe Tax tax behavior - whether the license fee is inclusive or exclusive of tax. + /// The tax behavior for Stripe Tax — whether the license fee price includes or excludes + /// tax. /// One of: exclusive, or inclusive. /// [JsonProperty("tax_behavior")] @@ -78,10 +79,10 @@ public class LicenseFeeCreateOptions : BaseOptions, IHasMetadata public string TaxBehavior { get; set; } /// - /// Defines whether the tiered price should be graduated or volume-based. In volume-based - /// tiering, the maximum quantity within a period determines the per-unit price. In - /// graduated tiering, the pricing changes as the quantity grows into new tiers. Can only be - /// set if tiers is set. + /// Defines whether the tiered price is graduated or volume-based. In volume-based tiering, + /// the maximum quantity within a period determines the per-unit price. In graduated + /// tiering, the pricing changes as the quantity grows into new tiers. Can only be set if + /// tiers is set. /// One of: graduated, or volume. /// [JsonProperty("tiering_mode")] diff --git a/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeCreateTierOptions.cs b/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeCreateTierOptions.cs index 34e62b2f6c..f30ae6d926 100644 --- a/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeCreateTierOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeCreateTierOptions.cs @@ -25,7 +25,7 @@ public class LicenseFeeCreateTierOptions : INestedOptions public string UnitAmount { get; set; } /// - /// Up to and including this quantity will be contained in the tier. Only one of + /// Up to and including this quantity is contained in the tier. Only one of /// up_to_decimal and up_to_inf may be set. /// [JsonProperty("up_to_decimal")] diff --git a/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeUpdateOptions.cs b/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeUpdateOptions.cs index a91a513cc6..b4189c7df3 100644 --- a/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeUpdateOptions.cs @@ -21,8 +21,8 @@ public class LicenseFeeUpdateOptions : BaseOptions, IHasMetadata public string DisplayName { get; set; } /// - /// Changes the version that new license fee will use. Providing live_version = - /// "latest" will set the license fee's live_version to its latest version. + /// Changes the version that new license fee activations use. Providing live_version = + /// "latest" sets the license fee's live_version to its latest version. /// [JsonProperty("live_version")] [STJS.JsonPropertyName("live_version")] @@ -41,8 +41,9 @@ public class LicenseFeeUpdateOptions : BaseOptions, IHasMetadata /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] [STJS.JsonConverter(typeof(STJNullPreservingDictionaryConverter))] public Dictionary Metadata { @@ -55,10 +56,10 @@ public Dictionary Metadata } /// - /// Defines whether the tiered price should be graduated or volume-based. In volume-based - /// tiering, the maximum quantity within a period determines the per-unit price. In - /// graduated tiering, the pricing changes as the quantity grows into new tiers. Can only be - /// set if tiers is set. + /// Defines whether the tiered price is graduated or volume-based. In volume-based tiering, + /// the maximum quantity within a period determines the per-unit price. In graduated + /// tiering, the pricing changes as the quantity grows into new tiers. Can only be set if + /// tiers is set. /// One of: graduated, or volume. /// [JsonProperty("tiering_mode")] diff --git a/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeUpdateTierOptions.cs b/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeUpdateTierOptions.cs index a3a4b0d4dd..ce4925c9ce 100644 --- a/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeUpdateTierOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeUpdateTierOptions.cs @@ -25,7 +25,7 @@ public class LicenseFeeUpdateTierOptions : INestedOptions public string UnitAmount { get; set; } /// - /// Up to and including this quantity will be contained in the tier. Only one of + /// Up to and including this quantity is contained in the tier. Only one of /// up_to_decimal and up_to_inf may be set. /// [JsonProperty("up_to_decimal")] diff --git a/src/Stripe.net/Services/V2/Billing/LicensedItems/LicensedItemCreateOptions.cs b/src/Stripe.net/Services/V2/Billing/LicensedItems/LicensedItemCreateOptions.cs index 1e8220f68d..e717e67194 100644 --- a/src/Stripe.net/Services/V2/Billing/LicensedItems/LicensedItemCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/LicensedItems/LicensedItemCreateOptions.cs @@ -10,7 +10,7 @@ namespace Stripe.V2.Billing public class LicensedItemCreateOptions : BaseOptions, IHasMetadata { /// - /// Description that customers will see in the invoice line item. Maximum length of 250 + /// Description that customers see in the invoice line item. Maximum length of 250 /// characters. /// [JsonProperty("display_name")] diff --git a/src/Stripe.net/Services/V2/Billing/LicensedItems/LicensedItemUpdateOptions.cs b/src/Stripe.net/Services/V2/Billing/LicensedItems/LicensedItemUpdateOptions.cs index 5e4a4d382d..55f3a2efb4 100644 --- a/src/Stripe.net/Services/V2/Billing/LicensedItems/LicensedItemUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/LicensedItems/LicensedItemUpdateOptions.cs @@ -12,7 +12,7 @@ public class LicensedItemUpdateOptions : BaseOptions, IHasMetadata private Dictionary metadata; /// - /// Description that customers will see in the invoice line item. Maximum length of 250 + /// Description that customers see in the invoice line item. Maximum length of 250 /// characters. /// [JsonProperty("display_name")] @@ -32,8 +32,9 @@ public class LicensedItemUpdateOptions : BaseOptions, IHasMetadata /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] [STJS.JsonConverter(typeof(STJNullPreservingDictionaryConverter))] public Dictionary Metadata { diff --git a/src/Stripe.net/Services/V2/Billing/MeterEventAdjustments/MeterEventAdjustmentCreateCancelOptions.cs b/src/Stripe.net/Services/V2/Billing/MeterEventAdjustments/MeterEventAdjustmentCreateCancelOptions.cs index 218a315c11..17c17308c1 100644 --- a/src/Stripe.net/Services/V2/Billing/MeterEventAdjustments/MeterEventAdjustmentCreateCancelOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/MeterEventAdjustments/MeterEventAdjustmentCreateCancelOptions.cs @@ -9,8 +9,8 @@ namespace Stripe.V2.Billing public class MeterEventAdjustmentCreateCancelOptions : INestedOptions { /// - /// Unique identifier for the event. You can only cancel events within 24 hours of Stripe - /// receiving them. + /// The identifier that was originally assigned to the meter event. You can only cancel + /// events within 24 hours of Stripe receiving them. /// [JsonProperty("identifier")] [STJS.JsonPropertyName("identifier")] diff --git a/src/Stripe.net/Services/V2/Billing/MeterEventAdjustments/MeterEventAdjustmentCreateOptions.cs b/src/Stripe.net/Services/V2/Billing/MeterEventAdjustments/MeterEventAdjustmentCreateOptions.cs index 2e0c733b99..9c82f4fe27 100644 --- a/src/Stripe.net/Services/V2/Billing/MeterEventAdjustments/MeterEventAdjustmentCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/MeterEventAdjustments/MeterEventAdjustmentCreateOptions.cs @@ -23,8 +23,7 @@ public class MeterEventAdjustmentCreateOptions : BaseOptions public string EventName { get; set; } /// - /// Specifies whether to cancel a single event or a range of events for a time period. Time - /// period cancellation is not supported yet. + /// Specifies the type of cancellation. Currently supports canceling a single event. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/V2/Billing/MeterEventSessions/MeterEventSessionService.cs b/src/Stripe.net/Services/V2/Billing/MeterEventSessions/MeterEventSessionService.cs index f8119c7394..4587e70fc5 100644 --- a/src/Stripe.net/Services/V2/Billing/MeterEventSessions/MeterEventSessionService.cs +++ b/src/Stripe.net/Services/V2/Billing/MeterEventSessions/MeterEventSessionService.cs @@ -20,8 +20,8 @@ internal MeterEventSessionService(IStripeClient client) /// /// Creates a meter event session to send usage on the high-throughput meter event stream. - /// Authentication tokens are only valid for 15 minutes, so you will need to create a new - /// meter event session when your token expires. + /// Authentication tokens are only valid for 15 minutes, so you need to create a new meter + /// event session when your token expires. /// public virtual MeterEventSession Create(MeterEventSessionCreateOptions options, RequestOptions requestOptions = null) { @@ -30,8 +30,8 @@ public virtual MeterEventSession Create(MeterEventSessionCreateOptions options, /// /// Creates a meter event session to send usage on the high-throughput meter event stream. - /// Authentication tokens are only valid for 15 minutes, so you will need to create a new - /// meter event session when your token expires. + /// Authentication tokens are only valid for 15 minutes, so you need to create a new meter + /// event session when your token expires. /// public virtual Task CreateAsync(MeterEventSessionCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { diff --git a/src/Stripe.net/Services/V2/Billing/MeteredItems/MeteredItemCreateOptions.cs b/src/Stripe.net/Services/V2/Billing/MeteredItems/MeteredItemCreateOptions.cs index 8dad800da1..e8b24b89b8 100644 --- a/src/Stripe.net/Services/V2/Billing/MeteredItems/MeteredItemCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/MeteredItems/MeteredItemCreateOptions.cs @@ -10,7 +10,7 @@ namespace Stripe.V2.Billing public class MeteredItemCreateOptions : BaseOptions, IHasMetadata { /// - /// Description that customers will see in the invoice line item. Maximum length of 250 + /// Description that customers see in the invoice line item. Maximum length of 250 /// characters. /// [JsonProperty("display_name")] diff --git a/src/Stripe.net/Services/V2/Billing/MeteredItems/MeteredItemUpdateOptions.cs b/src/Stripe.net/Services/V2/Billing/MeteredItems/MeteredItemUpdateOptions.cs index 391001beec..692ea006ae 100644 --- a/src/Stripe.net/Services/V2/Billing/MeteredItems/MeteredItemUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/MeteredItems/MeteredItemUpdateOptions.cs @@ -12,7 +12,7 @@ public class MeteredItemUpdateOptions : BaseOptions, IHasMetadata private Dictionary metadata; /// - /// Description that customers will see in the invoice line item. Maximum length of 250 + /// Description that customers see in the invoice line item. Maximum length of 250 /// characters. /// [JsonProperty("display_name")] @@ -32,8 +32,9 @@ public class MeteredItemUpdateOptions : BaseOptions, IHasMetadata /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] [STJS.JsonConverter(typeof(STJNullPreservingDictionaryConverter))] public Dictionary Metadata { diff --git a/src/Stripe.net/Services/V2/Billing/OneTimeItems/OneTimeItemCreateOptions.cs b/src/Stripe.net/Services/V2/Billing/OneTimeItems/OneTimeItemCreateOptions.cs index b24dfba054..bb54dc05e2 100644 --- a/src/Stripe.net/Services/V2/Billing/OneTimeItems/OneTimeItemCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/OneTimeItems/OneTimeItemCreateOptions.cs @@ -10,7 +10,7 @@ namespace Stripe.V2.Billing public class OneTimeItemCreateOptions : BaseOptions, IHasMetadata { /// - /// Description that customers will see in the invoice line item. Maximum length of 250 + /// Description that customers see in the invoice line item. Maximum length of 250 /// characters. /// [JsonProperty("display_name")] diff --git a/src/Stripe.net/Services/V2/Billing/OneTimeItems/OneTimeItemUpdateOptions.cs b/src/Stripe.net/Services/V2/Billing/OneTimeItems/OneTimeItemUpdateOptions.cs index ac8f553f64..8d7427448a 100644 --- a/src/Stripe.net/Services/V2/Billing/OneTimeItems/OneTimeItemUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/OneTimeItems/OneTimeItemUpdateOptions.cs @@ -12,7 +12,7 @@ public class OneTimeItemUpdateOptions : BaseOptions, IHasMetadata private Dictionary metadata; /// - /// Description that customers will see in the invoice line item. Maximum length of 250 + /// Description that customers see in the invoice line item. Maximum length of 250 /// characters. /// [JsonProperty("display_name")] @@ -32,8 +32,9 @@ public class OneTimeItemUpdateOptions : BaseOptions, IHasMetadata /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] [STJS.JsonConverter(typeof(STJNullPreservingDictionaryConverter))] public Dictionary Metadata { diff --git a/src/Stripe.net/Services/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionUpdateOptions.cs b/src/Stripe.net/Services/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionUpdateOptions.cs index 28690ff912..276addbf7f 100644 --- a/src/Stripe.net/Services/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionUpdateOptions.cs @@ -12,7 +12,7 @@ public class PricingPlanSubscriptionUpdateOptions : BaseOptions, IHasMetadata private Dictionary metadata; /// - /// When set to true, the servicing_status_transition.will_cancel_at field will be + /// When set to true, the servicing_status_transition.will_cancel_at field is /// cleared. /// [JsonProperty("clear_cancel_at")] @@ -24,8 +24,9 @@ public class PricingPlanSubscriptionUpdateOptions : BaseOptions, IHasMetadata /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] [STJS.JsonConverter(typeof(STJNullPreservingDictionaryConverter))] public Dictionary Metadata { diff --git a/src/Stripe.net/Services/V2/Billing/PricingPlans/Components/ComponentUpdateOptions.cs b/src/Stripe.net/Services/V2/Billing/PricingPlans/Components/ComponentUpdateOptions.cs index 3f2d546805..04c182ae5d 100644 --- a/src/Stripe.net/Services/V2/Billing/PricingPlans/Components/ComponentUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/PricingPlans/Components/ComponentUpdateOptions.cs @@ -21,8 +21,9 @@ public class ComponentUpdateOptions : BaseOptions, IHasMetadata /// /// Set of key-value pairs that you can attach to an object. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] [STJS.JsonConverter(typeof(STJNullPreservingDictionaryConverter))] public Dictionary Metadata { diff --git a/src/Stripe.net/Services/V2/Billing/PricingPlans/PricingPlanCreateOptions.cs b/src/Stripe.net/Services/V2/Billing/PricingPlans/PricingPlanCreateOptions.cs index 18b793419e..ba5a3c8293 100644 --- a/src/Stripe.net/Services/V2/Billing/PricingPlans/PricingPlanCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/PricingPlans/PricingPlanCreateOptions.cs @@ -17,7 +17,7 @@ public class PricingPlanCreateOptions : BaseOptions, IHasMetadata public string Currency { get; set; } /// - /// Description of pricing plan subscription. + /// Description of the pricing plan. Maximum length of 500 characters. /// [JsonProperty("description")] [STJS.JsonPropertyName("description")] @@ -48,7 +48,8 @@ public class PricingPlanCreateOptions : BaseOptions, IHasMetadata public Dictionary Metadata { get; set; } /// - /// The Stripe Tax tax behavior - whether the PricingPlan is inclusive or exclusive of tax. + /// The tax behavior for Stripe Tax — whether the pricing plan price includes or excludes + /// tax. /// One of: exclusive, or inclusive. /// [JsonProperty("tax_behavior")] diff --git a/src/Stripe.net/Services/V2/Billing/PricingPlans/PricingPlanUpdateOptions.cs b/src/Stripe.net/Services/V2/Billing/PricingPlans/PricingPlanUpdateOptions.cs index a89c061216..1382824979 100644 --- a/src/Stripe.net/Services/V2/Billing/PricingPlans/PricingPlanUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/PricingPlans/PricingPlanUpdateOptions.cs @@ -19,7 +19,7 @@ public class PricingPlanUpdateOptions : BaseOptions, IHasMetadata public bool? Active { get; set; } /// - /// Description of pricing plan subscription. + /// Description of the pricing plan. Maximum length of 500 characters. /// [JsonProperty("description")] [STJS.JsonPropertyName("description")] @@ -50,8 +50,9 @@ public class PricingPlanUpdateOptions : BaseOptions, IHasMetadata /// /// Set of key-value pairs that you can attach to an object. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] [STJS.JsonConverter(typeof(STJNullPreservingDictionaryConverter))] public Dictionary Metadata { diff --git a/src/Stripe.net/Services/V2/Billing/Profiles/ProfileListOptions.cs b/src/Stripe.net/Services/V2/Billing/Profiles/ProfileListOptions.cs index 9376fc01f8..434e390bd6 100644 --- a/src/Stripe.net/Services/V2/Billing/Profiles/ProfileListOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Profiles/ProfileListOptions.cs @@ -35,7 +35,7 @@ public class ProfileListOptions : V2.ListOptions /// /// Filter billing profiles by status. Can be combined with all other filters. If not - /// provided, all billing profiles will be returned. + /// provided, all billing profiles are returned. /// One of: active, or inactive. /// [JsonProperty("status")] diff --git a/src/Stripe.net/Services/V2/Billing/Profiles/ProfileUpdateOptions.cs b/src/Stripe.net/Services/V2/Billing/Profiles/ProfileUpdateOptions.cs index aa59424cce..35ed99bfac 100644 --- a/src/Stripe.net/Services/V2/Billing/Profiles/ProfileUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Profiles/ProfileUpdateOptions.cs @@ -39,8 +39,9 @@ public class ProfileUpdateOptions : BaseOptions, IHasMetadata /// Set of key-value pairs that you can attach to an object. This can be useful for storing /// additional information about the object in a structured format. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] [STJS.JsonConverter(typeof(STJNullPreservingDictionaryConverter))] public Dictionary Metadata { diff --git a/src/Stripe.net/Services/V2/Billing/RateCardSubscriptions/RateCardSubscriptionUpdateOptions.cs b/src/Stripe.net/Services/V2/Billing/RateCardSubscriptions/RateCardSubscriptionUpdateOptions.cs index b52cc9cb4f..e5b7eda158 100644 --- a/src/Stripe.net/Services/V2/Billing/RateCardSubscriptions/RateCardSubscriptionUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/RateCardSubscriptions/RateCardSubscriptionUpdateOptions.cs @@ -16,8 +16,9 @@ public class RateCardSubscriptionUpdateOptions : BaseOptions, IHasMetadata /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] [STJS.JsonConverter(typeof(STJNullPreservingDictionaryConverter))] public Dictionary Metadata { diff --git a/src/Stripe.net/Services/V2/Billing/RateCards/RateCardCreateOptions.cs b/src/Stripe.net/Services/V2/Billing/RateCards/RateCardCreateOptions.cs index 33542841c8..df075e3c84 100644 --- a/src/Stripe.net/Services/V2/Billing/RateCards/RateCardCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/RateCards/RateCardCreateOptions.cs @@ -43,11 +43,11 @@ public class RateCardCreateOptions : BaseOptions, IHasMetadata public Dictionary Metadata { get; set; } /// - /// The interval for assessing service. For example, a monthly RateCard with a rate of $1 - /// for the first 10 "workloads" and $2 thereafter means "$1 per workload up to 10 workloads - /// during a month of service." This is similar to but distinct from billing interval; the - /// service interval deals with the rate at which the customer accumulates fees, while the - /// billing interval in Cadence deals with the rate the customer is billed. + /// The interval for assessing service. For example, a monthly RateCard with a rate of 1 USD + /// for the first 10 "workloads" and 2 USD thereafter means "1 USD per workload up to 10 + /// workloads during a month of service." This is similar to but distinct from billing + /// interval; the service interval deals with the rate at which the customer accumulates + /// fees, while the billing interval in Cadence deals with the rate the customer is billed. /// One of: day, month, week, or year. /// [JsonProperty("service_interval")] @@ -56,14 +56,14 @@ public class RateCardCreateOptions : BaseOptions, IHasMetadata /// /// The length of the interval for assessing service. For example, set this to 3 and - /// service_interval to "month" in order to specify quarterly service. + /// service_interval to "month" to specify quarterly service. /// [JsonProperty("service_interval_count")] [STJS.JsonPropertyName("service_interval_count")] public long? ServiceIntervalCount { get; set; } /// - /// The Stripe Tax tax behavior - whether the rates are inclusive or exclusive of tax. + /// The tax behavior for Stripe Tax — whether the rate card price includes or excludes tax. /// One of: exclusive, or inclusive. /// [JsonProperty("tax_behavior")] diff --git a/src/Stripe.net/Services/V2/Billing/RateCards/RateCardModifyRatesRatesToCreateMeteredItemDataOptions.cs b/src/Stripe.net/Services/V2/Billing/RateCards/RateCardModifyRatesRatesToCreateMeteredItemDataOptions.cs index fd235cef1b..c6285ad8d4 100644 --- a/src/Stripe.net/Services/V2/Billing/RateCards/RateCardModifyRatesRatesToCreateMeteredItemDataOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/RateCards/RateCardModifyRatesRatesToCreateMeteredItemDataOptions.cs @@ -10,7 +10,7 @@ namespace Stripe.V2.Billing public class RateCardModifyRatesRatesToCreateMeteredItemDataOptions : INestedOptions { /// - /// Description that customers will see in the invoice line item. Maximum length of 250 + /// Description that customers see in the invoice line item. Maximum length of 250 /// characters. /// [JsonProperty("display_name")] diff --git a/src/Stripe.net/Services/V2/Billing/RateCards/RateCardModifyRatesRatesToCreateOptions.cs b/src/Stripe.net/Services/V2/Billing/RateCards/RateCardModifyRatesRatesToCreateOptions.cs index a3f6af8839..773bbb9921 100644 --- a/src/Stripe.net/Services/V2/Billing/RateCards/RateCardModifyRatesRatesToCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/RateCards/RateCardModifyRatesRatesToCreateOptions.cs @@ -35,10 +35,10 @@ public class RateCardModifyRatesRatesToCreateOptions : INestedOptions, IHasMetad public RateCardModifyRatesRatesToCreateMeteredItemDataOptions MeteredItemData { get; set; } /// - /// Defines whether the tiered price should be graduated or volume-based. In volume-based - /// tiering, the maximum quantity within a period determines the per-unit price. In - /// graduated tiering, the pricing changes as the quantity grows into new tiers. Can only be - /// set if tiers is set. + /// Defines whether the tiered price is graduated or volume-based. In volume-based tiering, + /// the maximum quantity within a period determines the per-unit price. In graduated + /// tiering, the pricing changes as the quantity grows into new tiers. Can only be set if + /// tiers is set. /// One of: graduated, or volume. /// [JsonProperty("tiering_mode")] diff --git a/src/Stripe.net/Services/V2/Billing/RateCards/RateCardModifyRatesRatesToCreateTierOptions.cs b/src/Stripe.net/Services/V2/Billing/RateCards/RateCardModifyRatesRatesToCreateTierOptions.cs index 3043d4bc1b..c5e3c30b35 100644 --- a/src/Stripe.net/Services/V2/Billing/RateCards/RateCardModifyRatesRatesToCreateTierOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/RateCards/RateCardModifyRatesRatesToCreateTierOptions.cs @@ -25,7 +25,7 @@ public class RateCardModifyRatesRatesToCreateTierOptions : INestedOptions public string UnitAmount { get; set; } /// - /// Up to and including this quantity will be contained in the tier. Only one of + /// Up to and including this quantity is contained in the tier. Only one of /// up_to_decimal and up_to_inf may be set. /// [JsonProperty("up_to_decimal")] diff --git a/src/Stripe.net/Services/V2/Billing/RateCards/RateCardUpdateOptions.cs b/src/Stripe.net/Services/V2/Billing/RateCards/RateCardUpdateOptions.cs index 0d451b258d..39d34bbc23 100644 --- a/src/Stripe.net/Services/V2/Billing/RateCards/RateCardUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/RateCards/RateCardUpdateOptions.cs @@ -29,8 +29,8 @@ public class RateCardUpdateOptions : BaseOptions, IHasMetadata public string DisplayName { get; set; } /// - /// Changes the version that new RateCard activations will use. Providing live_version = - /// "latest" will set the RateCard's live_version to its latest version. + /// Changes the version that new RateCard activations use. Providing live_version = + /// "latest" sets the RateCard's live_version to its latest version. /// [JsonProperty("live_version")] [STJS.JsonPropertyName("live_version")] @@ -49,8 +49,9 @@ public class RateCardUpdateOptions : BaseOptions, IHasMetadata /// attach to an object. This can be useful for storing additional information about the /// object in a structured format. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] [STJS.JsonConverter(typeof(STJNullPreservingDictionaryConverter))] public Dictionary Metadata { diff --git a/src/Stripe.net/Services/V2/Billing/RateCards/Rates/RateCreateOptions.cs b/src/Stripe.net/Services/V2/Billing/RateCards/Rates/RateCreateOptions.cs index aec942af55..50974b5f45 100644 --- a/src/Stripe.net/Services/V2/Billing/RateCards/Rates/RateCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/RateCards/Rates/RateCreateOptions.cs @@ -34,10 +34,10 @@ public class RateCreateOptions : BaseOptions, IHasMetadata public string MeteredItem { get; set; } /// - /// Defines whether the tiered price should be graduated or volume-based. In volume-based - /// tiering, the maximum quantity within a period determines the per-unit price. In - /// graduated tiering, the pricing changes as the quantity grows into new tiers. One of - /// unit_amount, tiers, or custom_pricing_unit_amount is required. + /// Defines whether the tiered price is graduated or volume-based. In volume-based tiering, + /// the maximum quantity within a period determines the per-unit price. In graduated + /// tiering, the pricing changes as the quantity grows into new tiers. Can only be set if + /// tiers is set. /// One of: graduated, or volume. /// [JsonProperty("tiering_mode")] diff --git a/src/Stripe.net/Services/V2/Billing/RateCards/Rates/RateCreateTierOptions.cs b/src/Stripe.net/Services/V2/Billing/RateCards/Rates/RateCreateTierOptions.cs index 7ee0e6c954..ef9eea0103 100644 --- a/src/Stripe.net/Services/V2/Billing/RateCards/Rates/RateCreateTierOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/RateCards/Rates/RateCreateTierOptions.cs @@ -25,7 +25,7 @@ public class RateCreateTierOptions : INestedOptions public string UnitAmount { get; set; } /// - /// Up to and including this quantity will be contained in the tier. Only one of + /// Up to and including this quantity is contained in the tier. Only one of /// up_to_decimal and up_to_inf may be set. /// [JsonProperty("up_to_decimal")] diff --git a/src/Stripe.net/Services/V2/Billing/RateCards/Rates/RateService.cs b/src/Stripe.net/Services/V2/Billing/RateCards/Rates/RateService.cs index 44a2569f03..8b96fba4b0 100644 --- a/src/Stripe.net/Services/V2/Billing/RateCards/Rates/RateService.cs +++ b/src/Stripe.net/Services/V2/Billing/RateCards/Rates/RateService.cs @@ -21,8 +21,8 @@ internal RateService(IStripeClient client) } /// - /// Set the Rate for a Metered Item on the latest version of a Rate Card object. This will - /// create a new Rate Card version if the Metered Item already has a rate on the Rate Card. + /// Set the Rate for a Metered Item on the latest version of a Rate Card object. This + /// creates a new Rate Card version if the Metered Item already has a rate on the Rate Card. /// public virtual V2.Billing.RateCardRate Create(string id, RateCreateOptions options, RequestOptions requestOptions = null) { @@ -30,8 +30,8 @@ public virtual V2.Billing.RateCardRate Create(string id, RateCreateOptions optio } /// - /// Set the Rate for a Metered Item on the latest version of a Rate Card object. This will - /// create a new Rate Card version if the Metered Item already has a rate on the Rate Card. + /// Set the Rate for a Metered Item on the latest version of a Rate Card object. This + /// creates a new Rate Card version if the Metered Item already has a rate on the Rate Card. /// public virtual Task CreateAsync(string id, RateCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { @@ -39,8 +39,8 @@ public virtual V2.Billing.RateCardRate Create(string id, RateCreateOptions optio } /// - /// Remove an existing Rate from a Rate Card. This will create a new Rate Card Version - /// without that Rate. + /// Remove an existing Rate from a Rate Card. This creates a new Rate Card Version without + /// that Rate. /// public virtual V2.DeletedObject Delete(string parentId, string id, RateDeleteOptions options = null, RequestOptions requestOptions = null) { @@ -48,8 +48,8 @@ public virtual V2.DeletedObject Delete(string parentId, string id, RateDeleteOpt } /// - /// Remove an existing Rate from a Rate Card. This will create a new Rate Card Version - /// without that Rate. + /// Remove an existing Rate from a Rate Card. This creates a new Rate Card Version without + /// that Rate. /// public virtual Task DeleteAsync(string parentId, string id, RateDeleteOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { diff --git a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantApplicabilityConfigScopeOptions.cs b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantApplicabilityConfigScopeOptions.cs index f8b2628036..abb38966cf 100644 --- a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantApplicabilityConfigScopeOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantApplicabilityConfigScopeOptions.cs @@ -17,9 +17,9 @@ public class ServiceActionCreateCreditGrantApplicabilityConfigScopeOptions : INe public List BillableItems { get; set; } /// - /// The price type that credit grants can apply to. We currently only support the - /// metered price type. This will apply to metered prices and rate cards. Cannot be - /// used in combination with billable_items. + /// The price type that credit grants can apply to. Stripe supports the metered price + /// type, which applies to metered prices and rate cards. Cannot be used in combination with + /// billable_items. /// [JsonProperty("price_type")] [STJS.JsonPropertyName("price_type")] diff --git a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantApplicabilityConfigScopeOptions.cs b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantApplicabilityConfigScopeOptions.cs index 1078bbc47c..52f6af9225 100644 --- a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantApplicabilityConfigScopeOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantApplicabilityConfigScopeOptions.cs @@ -17,9 +17,9 @@ public class ServiceActionCreateCreditGrantPerTenantApplicabilityConfigScopeOpti public List BillableItems { get; set; } /// - /// The price type that credit grants can apply to. We currently only support the - /// metered price type. This will apply to metered prices and rate cards. Cannot be - /// used in combination with billable_items. + /// The price type that credit grants can apply to. Stripe supports the metered price + /// type, which applies to metered prices and rate cards. Cannot be used in combination with + /// billable_items. /// [JsonProperty("price_type")] [STJS.JsonPropertyName("price_type")] diff --git a/src/Stripe.net/Services/V2/Commerce/ProductCatalog/Imports/ImportCreateOptions.cs b/src/Stripe.net/Services/V2/Commerce/ProductCatalog/Imports/ImportCreateOptions.cs new file mode 100644 index 0000000000..bfafdaba7b --- /dev/null +++ b/src/Stripe.net/Services/V2/Commerce/ProductCatalog/Imports/ImportCreateOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Commerce.ProductCatalog +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ImportCreateOptions : BaseOptions, IHasMetadata + { + /// + /// The type of catalog data to import. + /// One of: inventory, pricing, or product. + /// + [JsonProperty("feed_type")] + [STJS.JsonPropertyName("feed_type")] + public string FeedType { get; set; } + + /// + /// Additional information about the import in a structured format. + /// + [JsonProperty("metadata")] + [STJS.JsonPropertyName("metadata")] + public Dictionary Metadata { get; set; } + + /// + /// The strategy for handling existing catalog data during import. + /// One of: replace, or upsert. + /// + [JsonProperty("mode")] + [STJS.JsonPropertyName("mode")] + public string Mode { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Commerce/ProductCatalog/Imports/ImportGetOptions.cs b/src/Stripe.net/Services/V2/Commerce/ProductCatalog/Imports/ImportGetOptions.cs new file mode 100644 index 0000000000..ca1735f434 --- /dev/null +++ b/src/Stripe.net/Services/V2/Commerce/ProductCatalog/Imports/ImportGetOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Commerce.ProductCatalog +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ImportGetOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/Commerce/ProductCatalog/Imports/ImportListOptions.cs b/src/Stripe.net/Services/V2/Commerce/ProductCatalog/Imports/ImportListOptions.cs new file mode 100644 index 0000000000..26fe8b5688 --- /dev/null +++ b/src/Stripe.net/Services/V2/Commerce/ProductCatalog/Imports/ImportListOptions.cs @@ -0,0 +1,69 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Commerce.ProductCatalog +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ImportListOptions : V2.ListOptions + { + /// + /// Filter for objects created at the specified timestamp. Must be an RFC 3339 date & + /// time value, for example: 2022-09-18T13:22:00Z. + /// + [JsonProperty("created")] + [STJS.JsonPropertyName("created")] + public DateTime? Created { get; set; } + + /// + /// Filter for objects created after the specified timestamp. Must be an RFC 3339 date & + /// time value, for example: 2022-09-18T13:22:00Z. + /// + [JsonProperty("created_gt")] + [STJS.JsonPropertyName("created_gt")] + public DateTime? CreatedGt { get; set; } + + /// + /// Filter for objects created on or after the specified timestamp. Must be an RFC 3339 date + /// & time value, for example: 2022-09-18T13:22:00Z. + /// + [JsonProperty("created_gte")] + [STJS.JsonPropertyName("created_gte")] + public DateTime? CreatedGte { get; set; } + + /// + /// Filter for objects created before the specified timestamp. Must be an RFC 3339 date + /// & time value, for example: 2022-09-18T13:22:00Z. + /// + [JsonProperty("created_lt")] + [STJS.JsonPropertyName("created_lt")] + public DateTime? CreatedLt { get; set; } + + /// + /// Filter for objects created on or before the specified timestamp. Must be an RFC 3339 + /// date & time value, for example: 2022-09-18T13:22:00Z. + /// + [JsonProperty("created_lte")] + [STJS.JsonPropertyName("created_lte")] + public DateTime? CreatedLte { get; set; } + + /// + /// Filter by the type of feed data being imported. + /// One of: inventory, pricing, or product. + /// + [JsonProperty("feed_type")] + [STJS.JsonPropertyName("feed_type")] + public string FeedType { get; set; } + + /// + /// Filter by import status. + /// One of: awaiting_upload, failed, processing, succeeded, or + /// succeeded_with_errors. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Commerce/ProductCatalog/Imports/ImportService.cs b/src/Stripe.net/Services/V2/Commerce/ProductCatalog/Imports/ImportService.cs new file mode 100644 index 0000000000..1cf8dccc59 --- /dev/null +++ b/src/Stripe.net/Services/V2/Commerce/ProductCatalog/Imports/ImportService.cs @@ -0,0 +1,87 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Commerce.ProductCatalog +{ + using System; + using System.Collections.Generic; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public class ImportService : Service + { + internal ImportService(ApiRequestor requestor) + : base(requestor) + { + } + + internal ImportService(IStripeClient client) + : base(client) + { + } + + /// + /// Creates a ProductCatalogImport. + /// + public virtual V2.Commerce.ProductCatalogImport Create(ImportCreateOptions options, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/commerce/product_catalog/imports", options, requestOptions); + } + + /// + /// Creates a ProductCatalogImport. + /// + public virtual Task CreateAsync(ImportCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/commerce/product_catalog/imports", options, requestOptions, cancellationToken); + } + + /// + /// Retrieves a ProductCatalogImport by ID. + /// + public virtual V2.Commerce.ProductCatalogImport Get(string id, ImportGetOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Get, $"/v2/commerce/product_catalog/imports/{WebUtility.UrlEncode(id)}", options, requestOptions); + } + + /// + /// Retrieves a ProductCatalogImport by ID. + /// + public virtual Task GetAsync(string id, ImportGetOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v2/commerce/product_catalog/imports/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); + } + + /// + /// Returns a list of ProductCatalogImport objects. + /// + public virtual V2.StripeList List(ImportListOptions options = null, RequestOptions requestOptions = null) + { + return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v2/commerce/product_catalog/imports", options, requestOptions); + } + + /// + /// Returns a list of ProductCatalogImport objects. + /// + public virtual Task> ListAsync(ImportListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v2/commerce/product_catalog/imports", options, requestOptions, cancellationToken); + } + + /// + /// Returns a list of ProductCatalogImport objects. + /// + public virtual IEnumerable ListAutoPaging(ImportListOptions options = null, RequestOptions requestOptions = null) + { + return this.ListRequestAutoPaging($"/v2/commerce/product_catalog/imports", options, requestOptions); + } + + /// + /// Returns a list of ProductCatalogImport objects. + /// + public virtual IAsyncEnumerable ListAutoPagingAsync(ImportListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.ListRequestAutoPagingAsync($"/v2/commerce/product_catalog/imports", options, requestOptions, cancellationToken); + } + } +} diff --git a/src/Stripe.net/Services/V2/Commerce/ProductCatalogService.cs b/src/Stripe.net/Services/V2/Commerce/ProductCatalogService.cs new file mode 100644 index 0000000000..8acb03286b --- /dev/null +++ b/src/Stripe.net/Services/V2/Commerce/ProductCatalogService.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Commerce +{ + using System; + using System.Threading; + using System.Threading.Tasks; + + public class ProductCatalogService : Service + { + private V2.Commerce.ProductCatalog.ImportService imports; + + internal ProductCatalogService(ApiRequestor requestor) + : base(requestor) + { + } + + internal ProductCatalogService(IStripeClient client) + : base(client) + { + } + + public virtual V2.Commerce.ProductCatalog.ImportService Imports => this.imports ??= new V2.Commerce.ProductCatalog.ImportService( + this.Requestor); + } +} diff --git a/src/Stripe.net/Services/V2/CommerceService.cs b/src/Stripe.net/Services/V2/CommerceService.cs new file mode 100644 index 0000000000..31e733ec93 --- /dev/null +++ b/src/Stripe.net/Services/V2/CommerceService.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2 +{ + using System; + using System.Threading; + using System.Threading.Tasks; + + public class CommerceService : Service + { + private V2.Commerce.ProductCatalogService productCatalog; + + internal CommerceService(ApiRequestor requestor) + : base(requestor) + { + } + + internal CommerceService(IStripeClient client) + : base(client) + { + } + + public virtual V2.Commerce.ProductCatalogService ProductCatalog => this.productCatalog ??= new V2.Commerce.ProductCatalogService( + this.Requestor); + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsIdNumberOptions.cs index b4aa44b4c6..0454348c7a 100644 --- a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsIdNumberOptions.cs +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsIdNumberOptions.cs @@ -20,25 +20,31 @@ public class AccountTokenCreateIdentityBusinessDetailsIdNumberOptions : INestedO /// One of: ae_crn, ae_vat, ao_nif, ar_cuit, at_fn, /// at_stn, at_vat, au_abn, au_acn, au_in, az_tin, /// bd_etin, be_cbe, be_vat, bg_uic, bg_vat, - /// br_cnpj, ca_cn, ca_crarr, ca_gst_hst, ca_neq, - /// ca_rid, ch_chid, ch_uid, cr_cpj, cr_nite, - /// cy_he, cy_tic, cy_vat, cz_ico, cz_vat, de_hrn, - /// de_stn, de_vat, dk_cvr, dk_vat, do_rcn, ee_rk, - /// ee_vat, es_cif, es_vat, fi_vat, fi_yt, fr_rna, - /// fr_siren, fr_vat, gb_crn, gb_vat, gi_crn, - /// gr_afm, gr_gemi, gr_vat, gt_nit, hk_br, hk_cr, - /// hr_mbs, hr_oib, hr_vat, hu_cjs, hu_tin, - /// hu_vat, ie_crn, ie_trn, ie_vat, it_rea, - /// it_vat, jp_cn, kz_bin, li_uid, lt_ccrn, + /// bm_crn, bo_tin, br_cnpj, bt_tpn, ca_cn, + /// ca_crarr, ca_gst_hst, ca_neq, ca_rid, ch_chid, + /// ch_uid, co_nit, cr_cpj, cr_nite, cy_he, + /// cy_tic, cy_vat, cz_ico, cz_vat, de_hrn, + /// de_stn, de_vat, dk_cvr, dk_vat, do_rcn, + /// ec_ruc, ee_rk, ee_vat, eg_tin, es_cif, es_vat, + /// fi_vat, fi_yt, fr_rna, fr_siren, fr_vat, + /// gb_crn, gb_vat, gh_tin, gi_crn, gr_afm, + /// gr_gemi, gr_vat, gt_nit, gy_tin, hk_br, hk_cr, + /// hn_rtn, hr_mbs, hr_oib, hr_vat, hu_cjs, + /// hu_tin, hu_vat, ie_crn, ie_trn, ie_vat, + /// it_rea, it_vat, jm_trn, jo_crn, jp_cn, ke_pin, + /// ky_crn, kz_bin, li_uid, lk_tin, lt_ccrn, /// lt_vat, lu_nif, lu_rcs, lu_vat, lv_urn, - /// lv_vat, mt_crn, mt_tin, mt_vat, mx_rfc, - /// my_brn, my_coid, my_itn, my_sst, mz_nuit, - /// nl_kvk, nl_rsin, nl_vat, no_orgnr, nz_bn, - /// nz_ird, pe_ruc, pk_ntn, pl_nip, pl_regon, - /// pl_vat, pt_vat, ro_cui, ro_orc, ro_vat, - /// sa_crn, sa_tin, se_orgnr, se_vat, sg_uen, - /// si_msp, si_tin, si_vat, sk_dic, sk_ico, - /// sk_vat, th_crn, th_prn, th_tin, or us_ein. + /// lv_vat, mo_tin, mt_crn, mt_tin, mt_vat, + /// mv_tin, mx_rfc, my_brn, my_coid, my_itn, + /// my_sst, mz_nuit, ng_tin, nl_kvk, nl_rsin, + /// nl_vat, no_orgnr, nz_bn, nz_ird, pa_ruc, + /// pe_ruc, ph_tin, pk_ntn, pl_nip, pl_regon, + /// pl_vat, pt_vat, py_ruc, ro_cui, ro_orc, + /// ro_vat, sa_crn, sa_tin, se_orgnr, se_vat, + /// sg_uen, si_msp, si_tin, si_vat, sk_dic, + /// sk_ico, sk_vat, sl_tin, sv_nit, th_crn, + /// th_prn, th_tin, us_ein, uy_ruc, vg_cn, or + /// za_tin. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualIdNumberOptions.cs index 3e3ae8c1ff..21d079ece7 100644 --- a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualIdNumberOptions.cs +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualIdNumberOptions.cs @@ -12,19 +12,23 @@ public class AccountTokenCreateIdentityIndividualIdNumberOptions : INestedOption /// The ID number type of an individual. /// One of: ae_eid, ao_nif, ar_cuil, ar_dni, at_stn, /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, - /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, - /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, - /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, - /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, - /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, - /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, - /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, - /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, - /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, - /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, - /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, - /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, - /// us_ssn, us_ssn_last_4, uy_dni, or za_id. + /// bg_ucn, bm_pp, bn_nric, bo_ci, br_cpf, bt_cid, + /// ca_sin, ch_oasi, cl_rut, cn_pp, co_nuip, + /// cr_ci, cr_cpf, cr_dimex, cr_nite, cy_tic, + /// cz_rc, de_stn, dk_cpr, do_cie, do_rcn, ec_ci, + /// ee_ik, eg_tin, es_nif, fi_hetu, fr_nir, + /// gb_nino, gh_pin, gr_afm, gt_nit, gy_tin, + /// hk_id, hn_rtn, hr_oib, hu_ad, id_nik, ie_ppsn, + /// is_kt, it_cf, jm_trn, jo_pin, jp_inc, ke_pin, + /// ky_pp, kz_iin, li_peid, lk_nic, lt_ak, lu_nif, + /// lv_pk, mo_bir, mt_nic, mv_tin, mx_rfc, + /// my_nric, mz_nuit, ng_nin, nl_bsn, no_nin, + /// nz_ird, pa_ruc, pe_dni, ph_tin, pk_cnic, + /// pk_snic, pl_pesel, pt_nif, py_ruc, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, si_pin, + /// sk_dic, sv_nit, th_lc, th_pin, tr_tin, + /// us_itin, us_itin_last_4, us_ssn, us_ssn_last_4, + /// uy_dni, vg_pp, or za_id. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsIdNumberOptions.cs index 13a8d06e88..7e8160ad4b 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsIdNumberOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsIdNumberOptions.cs @@ -20,25 +20,31 @@ public class AccountCreateIdentityBusinessDetailsIdNumberOptions : INestedOption /// One of: ae_crn, ae_vat, ao_nif, ar_cuit, at_fn, /// at_stn, at_vat, au_abn, au_acn, au_in, az_tin, /// bd_etin, be_cbe, be_vat, bg_uic, bg_vat, - /// br_cnpj, ca_cn, ca_crarr, ca_gst_hst, ca_neq, - /// ca_rid, ch_chid, ch_uid, cr_cpj, cr_nite, - /// cy_he, cy_tic, cy_vat, cz_ico, cz_vat, de_hrn, - /// de_stn, de_vat, dk_cvr, dk_vat, do_rcn, ee_rk, - /// ee_vat, es_cif, es_vat, fi_vat, fi_yt, fr_rna, - /// fr_siren, fr_vat, gb_crn, gb_vat, gi_crn, - /// gr_afm, gr_gemi, gr_vat, gt_nit, hk_br, hk_cr, - /// hr_mbs, hr_oib, hr_vat, hu_cjs, hu_tin, - /// hu_vat, ie_crn, ie_trn, ie_vat, it_rea, - /// it_vat, jp_cn, kz_bin, li_uid, lt_ccrn, + /// bm_crn, bo_tin, br_cnpj, bt_tpn, ca_cn, + /// ca_crarr, ca_gst_hst, ca_neq, ca_rid, ch_chid, + /// ch_uid, co_nit, cr_cpj, cr_nite, cy_he, + /// cy_tic, cy_vat, cz_ico, cz_vat, de_hrn, + /// de_stn, de_vat, dk_cvr, dk_vat, do_rcn, + /// ec_ruc, ee_rk, ee_vat, eg_tin, es_cif, es_vat, + /// fi_vat, fi_yt, fr_rna, fr_siren, fr_vat, + /// gb_crn, gb_vat, gh_tin, gi_crn, gr_afm, + /// gr_gemi, gr_vat, gt_nit, gy_tin, hk_br, hk_cr, + /// hn_rtn, hr_mbs, hr_oib, hr_vat, hu_cjs, + /// hu_tin, hu_vat, ie_crn, ie_trn, ie_vat, + /// it_rea, it_vat, jm_trn, jo_crn, jp_cn, ke_pin, + /// ky_crn, kz_bin, li_uid, lk_tin, lt_ccrn, /// lt_vat, lu_nif, lu_rcs, lu_vat, lv_urn, - /// lv_vat, mt_crn, mt_tin, mt_vat, mx_rfc, - /// my_brn, my_coid, my_itn, my_sst, mz_nuit, - /// nl_kvk, nl_rsin, nl_vat, no_orgnr, nz_bn, - /// nz_ird, pe_ruc, pk_ntn, pl_nip, pl_regon, - /// pl_vat, pt_vat, ro_cui, ro_orc, ro_vat, - /// sa_crn, sa_tin, se_orgnr, se_vat, sg_uen, - /// si_msp, si_tin, si_vat, sk_dic, sk_ico, - /// sk_vat, th_crn, th_prn, th_tin, or us_ein. + /// lv_vat, mo_tin, mt_crn, mt_tin, mt_vat, + /// mv_tin, mx_rfc, my_brn, my_coid, my_itn, + /// my_sst, mz_nuit, ng_tin, nl_kvk, nl_rsin, + /// nl_vat, no_orgnr, nz_bn, nz_ird, pa_ruc, + /// pe_ruc, ph_tin, pk_ntn, pl_nip, pl_regon, + /// pl_vat, pt_vat, py_ruc, ro_cui, ro_orc, + /// ro_vat, sa_crn, sa_tin, se_orgnr, se_vat, + /// sg_uen, si_msp, si_tin, si_vat, sk_dic, + /// sk_ico, sk_vat, sl_tin, sv_nit, th_crn, + /// th_prn, th_tin, us_ein, uy_ruc, vg_cn, or + /// za_tin. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualIdNumberOptions.cs index 06481cd24c..b40a782766 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualIdNumberOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualIdNumberOptions.cs @@ -12,19 +12,23 @@ public class AccountCreateIdentityIndividualIdNumberOptions : INestedOptions /// The ID number type of an individual. /// One of: ae_eid, ao_nif, ar_cuil, ar_dni, at_stn, /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, - /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, - /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, - /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, - /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, - /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, - /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, - /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, - /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, - /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, - /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, - /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, - /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, - /// us_ssn, us_ssn_last_4, uy_dni, or za_id. + /// bg_ucn, bm_pp, bn_nric, bo_ci, br_cpf, bt_cid, + /// ca_sin, ch_oasi, cl_rut, cn_pp, co_nuip, + /// cr_ci, cr_cpf, cr_dimex, cr_nite, cy_tic, + /// cz_rc, de_stn, dk_cpr, do_cie, do_rcn, ec_ci, + /// ee_ik, eg_tin, es_nif, fi_hetu, fr_nir, + /// gb_nino, gh_pin, gr_afm, gt_nit, gy_tin, + /// hk_id, hn_rtn, hr_oib, hu_ad, id_nik, ie_ppsn, + /// is_kt, it_cf, jm_trn, jo_pin, jp_inc, ke_pin, + /// ky_pp, kz_iin, li_peid, lk_nic, lt_ak, lu_nif, + /// lv_pk, mo_bir, mt_nic, mv_tin, mx_rfc, + /// my_nric, mz_nuit, ng_nin, nl_bsn, no_nin, + /// nz_ird, pa_ruc, pe_dni, ph_tin, pk_cnic, + /// pk_snic, pl_pesel, pt_nif, py_ruc, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, si_pin, + /// sk_dic, sv_nit, th_lc, th_pin, tr_tin, + /// us_itin, us_itin_last_4, us_ssn, us_ssn_last_4, + /// uy_dni, vg_pp, or za_id. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsIdNumberOptions.cs index ae1db8f407..18baa464ce 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsIdNumberOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsIdNumberOptions.cs @@ -20,25 +20,31 @@ public class AccountUpdateIdentityBusinessDetailsIdNumberOptions : INestedOption /// One of: ae_crn, ae_vat, ao_nif, ar_cuit, at_fn, /// at_stn, at_vat, au_abn, au_acn, au_in, az_tin, /// bd_etin, be_cbe, be_vat, bg_uic, bg_vat, - /// br_cnpj, ca_cn, ca_crarr, ca_gst_hst, ca_neq, - /// ca_rid, ch_chid, ch_uid, cr_cpj, cr_nite, - /// cy_he, cy_tic, cy_vat, cz_ico, cz_vat, de_hrn, - /// de_stn, de_vat, dk_cvr, dk_vat, do_rcn, ee_rk, - /// ee_vat, es_cif, es_vat, fi_vat, fi_yt, fr_rna, - /// fr_siren, fr_vat, gb_crn, gb_vat, gi_crn, - /// gr_afm, gr_gemi, gr_vat, gt_nit, hk_br, hk_cr, - /// hr_mbs, hr_oib, hr_vat, hu_cjs, hu_tin, - /// hu_vat, ie_crn, ie_trn, ie_vat, it_rea, - /// it_vat, jp_cn, kz_bin, li_uid, lt_ccrn, + /// bm_crn, bo_tin, br_cnpj, bt_tpn, ca_cn, + /// ca_crarr, ca_gst_hst, ca_neq, ca_rid, ch_chid, + /// ch_uid, co_nit, cr_cpj, cr_nite, cy_he, + /// cy_tic, cy_vat, cz_ico, cz_vat, de_hrn, + /// de_stn, de_vat, dk_cvr, dk_vat, do_rcn, + /// ec_ruc, ee_rk, ee_vat, eg_tin, es_cif, es_vat, + /// fi_vat, fi_yt, fr_rna, fr_siren, fr_vat, + /// gb_crn, gb_vat, gh_tin, gi_crn, gr_afm, + /// gr_gemi, gr_vat, gt_nit, gy_tin, hk_br, hk_cr, + /// hn_rtn, hr_mbs, hr_oib, hr_vat, hu_cjs, + /// hu_tin, hu_vat, ie_crn, ie_trn, ie_vat, + /// it_rea, it_vat, jm_trn, jo_crn, jp_cn, ke_pin, + /// ky_crn, kz_bin, li_uid, lk_tin, lt_ccrn, /// lt_vat, lu_nif, lu_rcs, lu_vat, lv_urn, - /// lv_vat, mt_crn, mt_tin, mt_vat, mx_rfc, - /// my_brn, my_coid, my_itn, my_sst, mz_nuit, - /// nl_kvk, nl_rsin, nl_vat, no_orgnr, nz_bn, - /// nz_ird, pe_ruc, pk_ntn, pl_nip, pl_regon, - /// pl_vat, pt_vat, ro_cui, ro_orc, ro_vat, - /// sa_crn, sa_tin, se_orgnr, se_vat, sg_uen, - /// si_msp, si_tin, si_vat, sk_dic, sk_ico, - /// sk_vat, th_crn, th_prn, th_tin, or us_ein. + /// lv_vat, mo_tin, mt_crn, mt_tin, mt_vat, + /// mv_tin, mx_rfc, my_brn, my_coid, my_itn, + /// my_sst, mz_nuit, ng_tin, nl_kvk, nl_rsin, + /// nl_vat, no_orgnr, nz_bn, nz_ird, pa_ruc, + /// pe_ruc, ph_tin, pk_ntn, pl_nip, pl_regon, + /// pl_vat, pt_vat, py_ruc, ro_cui, ro_orc, + /// ro_vat, sa_crn, sa_tin, se_orgnr, se_vat, + /// sg_uen, si_msp, si_tin, si_vat, sk_dic, + /// sk_ico, sk_vat, sl_tin, sv_nit, th_crn, + /// th_prn, th_tin, us_ein, uy_ruc, vg_cn, or + /// za_tin. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualIdNumberOptions.cs index ee6905ca2c..1c7ac4b786 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualIdNumberOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualIdNumberOptions.cs @@ -12,19 +12,23 @@ public class AccountUpdateIdentityIndividualIdNumberOptions : INestedOptions /// The ID number type of an individual. /// One of: ae_eid, ao_nif, ar_cuil, ar_dni, at_stn, /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, - /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, - /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, - /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, - /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, - /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, - /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, - /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, - /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, - /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, - /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, - /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, - /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, - /// us_ssn, us_ssn_last_4, uy_dni, or za_id. + /// bg_ucn, bm_pp, bn_nric, bo_ci, br_cpf, bt_cid, + /// ca_sin, ch_oasi, cl_rut, cn_pp, co_nuip, + /// cr_ci, cr_cpf, cr_dimex, cr_nite, cy_tic, + /// cz_rc, de_stn, dk_cpr, do_cie, do_rcn, ec_ci, + /// ee_ik, eg_tin, es_nif, fi_hetu, fr_nir, + /// gb_nino, gh_pin, gr_afm, gt_nit, gy_tin, + /// hk_id, hn_rtn, hr_oib, hu_ad, id_nik, ie_ppsn, + /// is_kt, it_cf, jm_trn, jo_pin, jp_inc, ke_pin, + /// ky_pp, kz_iin, li_peid, lk_nic, lt_ak, lu_nif, + /// lv_pk, mo_bir, mt_nic, mv_tin, mx_rfc, + /// my_nric, mz_nuit, ng_nin, nl_bsn, no_nin, + /// nz_ird, pa_ruc, pe_dni, ph_tin, pk_cnic, + /// pk_snic, pl_pesel, pt_nif, py_ruc, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, si_pin, + /// sk_dic, sv_nit, th_lc, th_pin, tr_tin, + /// us_itin, us_itin_last_4, us_ssn, us_ssn_last_4, + /// uy_dni, vg_pp, or za_id. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateIdNumberOptions.cs index 24e9ea354d..fb30bc98a1 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateIdNumberOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateIdNumberOptions.cs @@ -12,19 +12,23 @@ public class PersonTokenCreateIdNumberOptions : INestedOptions /// The ID number type of an individual. /// One of: ae_eid, ao_nif, ar_cuil, ar_dni, at_stn, /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, - /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, - /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, - /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, - /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, - /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, - /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, - /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, - /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, - /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, - /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, - /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, - /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, - /// us_ssn, us_ssn_last_4, uy_dni, or za_id. + /// bg_ucn, bm_pp, bn_nric, bo_ci, br_cpf, bt_cid, + /// ca_sin, ch_oasi, cl_rut, cn_pp, co_nuip, + /// cr_ci, cr_cpf, cr_dimex, cr_nite, cy_tic, + /// cz_rc, de_stn, dk_cpr, do_cie, do_rcn, ec_ci, + /// ee_ik, eg_tin, es_nif, fi_hetu, fr_nir, + /// gb_nino, gh_pin, gr_afm, gt_nit, gy_tin, + /// hk_id, hn_rtn, hr_oib, hu_ad, id_nik, ie_ppsn, + /// is_kt, it_cf, jm_trn, jo_pin, jp_inc, ke_pin, + /// ky_pp, kz_iin, li_peid, lk_nic, lt_ak, lu_nif, + /// lv_pk, mo_bir, mt_nic, mv_tin, mx_rfc, + /// my_nric, mz_nuit, ng_nin, nl_bsn, no_nin, + /// nz_ird, pa_ruc, pe_dni, ph_tin, pk_cnic, + /// pk_snic, pl_pesel, pt_nif, py_ruc, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, si_pin, + /// sk_dic, sv_nit, th_lc, th_pin, tr_tin, + /// us_itin, us_itin_last_4, us_ssn, us_ssn_last_4, + /// uy_dni, vg_pp, or za_id. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenService.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenService.cs index 3f143c12b4..8b3cfb8f5f 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenService.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenService.cs @@ -20,7 +20,11 @@ internal PersonTokenService(IStripeClient client) } /// - /// Creates a Person Token associated with an Account. + /// Creates a single-use token that represents the details for a person. Use this when you + /// create or update persons associated with an Account v2. Learn more about account tokens. You can only + /// create person tokens with your application's publishable key and in live mode. You can + /// use your application's secret key to create person tokens only in test mode. /// public virtual V2.Core.AccountPersonToken Create(string id, PersonTokenCreateOptions options, RequestOptions requestOptions = null) { @@ -28,7 +32,11 @@ public virtual V2.Core.AccountPersonToken Create(string id, PersonTokenCreateOpt } /// - /// Creates a Person Token associated with an Account. + /// Creates a single-use token that represents the details for a person. Use this when you + /// create or update persons associated with an Account v2. Learn more about account tokens. You can only + /// create person tokens with your application's publishable key and in live mode. You can + /// use your application's secret key to create person tokens only in test mode. /// public virtual Task CreateAsync(string id, PersonTokenCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateIdNumberOptions.cs index 511263e355..a608b55105 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateIdNumberOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateIdNumberOptions.cs @@ -12,19 +12,23 @@ public class PersonCreateIdNumberOptions : INestedOptions /// The ID number type of an individual. /// One of: ae_eid, ao_nif, ar_cuil, ar_dni, at_stn, /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, - /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, - /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, - /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, - /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, - /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, - /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, - /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, - /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, - /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, - /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, - /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, - /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, - /// us_ssn, us_ssn_last_4, uy_dni, or za_id. + /// bg_ucn, bm_pp, bn_nric, bo_ci, br_cpf, bt_cid, + /// ca_sin, ch_oasi, cl_rut, cn_pp, co_nuip, + /// cr_ci, cr_cpf, cr_dimex, cr_nite, cy_tic, + /// cz_rc, de_stn, dk_cpr, do_cie, do_rcn, ec_ci, + /// ee_ik, eg_tin, es_nif, fi_hetu, fr_nir, + /// gb_nino, gh_pin, gr_afm, gt_nit, gy_tin, + /// hk_id, hn_rtn, hr_oib, hu_ad, id_nik, ie_ppsn, + /// is_kt, it_cf, jm_trn, jo_pin, jp_inc, ke_pin, + /// ky_pp, kz_iin, li_peid, lk_nic, lt_ak, lu_nif, + /// lv_pk, mo_bir, mt_nic, mv_tin, mx_rfc, + /// my_nric, mz_nuit, ng_nin, nl_bsn, no_nin, + /// nz_ird, pa_ruc, pe_dni, ph_tin, pk_cnic, + /// pk_snic, pl_pesel, pt_nif, py_ruc, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, si_pin, + /// sk_dic, sv_nit, th_lc, th_pin, tr_tin, + /// us_itin, us_itin_last_4, us_ssn, us_ssn_last_4, + /// uy_dni, vg_pp, or za_id. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateIdNumberOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateIdNumberOptions.cs index f28b98f82e..bbdc354799 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateIdNumberOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateIdNumberOptions.cs @@ -12,19 +12,23 @@ public class PersonUpdateIdNumberOptions : INestedOptions /// The ID number type of an individual. /// One of: ae_eid, ao_nif, ar_cuil, ar_dni, at_stn, /// az_tin, bd_brc, bd_etin, bd_nid, be_nrn, - /// bg_ucn, bn_nric, br_cpf, ca_sin, ch_oasi, - /// cl_rut, cn_pp, co_nuip, cr_ci, cr_cpf, - /// cr_dimex, cr_nite, cy_tic, cz_rc, de_stn, - /// dk_cpr, do_cie, do_rcn, ec_ci, ee_ik, es_nif, - /// fi_hetu, fr_nir, gb_nino, gr_afm, gt_nit, - /// hk_id, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, - /// it_cf, jp_inc, ke_pin, kz_iin, li_peid, lt_ak, - /// lu_nif, lv_pk, mx_rfc, my_nric, mz_nuit, - /// ng_nin, nl_bsn, no_nin, nz_ird, pe_dni, - /// pk_cnic, pk_snic, pl_pesel, pt_nif, ro_cnp, - /// sa_tin, se_pin, sg_fin, sg_nric, sk_dic, - /// th_lc, th_pin, tr_tin, us_itin, us_itin_last_4, - /// us_ssn, us_ssn_last_4, uy_dni, or za_id. + /// bg_ucn, bm_pp, bn_nric, bo_ci, br_cpf, bt_cid, + /// ca_sin, ch_oasi, cl_rut, cn_pp, co_nuip, + /// cr_ci, cr_cpf, cr_dimex, cr_nite, cy_tic, + /// cz_rc, de_stn, dk_cpr, do_cie, do_rcn, ec_ci, + /// ee_ik, eg_tin, es_nif, fi_hetu, fr_nir, + /// gb_nino, gh_pin, gr_afm, gt_nit, gy_tin, + /// hk_id, hn_rtn, hr_oib, hu_ad, id_nik, ie_ppsn, + /// is_kt, it_cf, jm_trn, jo_pin, jp_inc, ke_pin, + /// ky_pp, kz_iin, li_peid, lk_nic, lt_ak, lu_nif, + /// lv_pk, mo_bir, mt_nic, mv_tin, mx_rfc, + /// my_nric, mz_nuit, ng_nin, nl_bsn, no_nin, + /// nz_ird, pa_ruc, pe_dni, ph_tin, pk_cnic, + /// pk_snic, pl_pesel, pt_nif, py_ruc, ro_cnp, + /// sa_tin, se_pin, sg_fin, sg_nric, si_pin, + /// sk_dic, sv_nit, th_lc, th_pin, tr_tin, + /// us_itin, us_itin_last_4, us_ssn, us_ssn_last_4, + /// uy_dni, vg_pp, or za_id. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/V2/Core/ApprovalRequests/ApprovalRequestCancelOptions.cs b/src/Stripe.net/Services/V2/Core/ApprovalRequests/ApprovalRequestCancelOptions.cs new file mode 100644 index 0000000000..434e6a7429 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/ApprovalRequests/ApprovalRequestCancelOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ApprovalRequestCancelOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/Core/ApprovalRequests/ApprovalRequestExecuteOptions.cs b/src/Stripe.net/Services/V2/Core/ApprovalRequests/ApprovalRequestExecuteOptions.cs new file mode 100644 index 0000000000..d5efb8ba63 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/ApprovalRequests/ApprovalRequestExecuteOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ApprovalRequestExecuteOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/Core/ApprovalRequests/ApprovalRequestGetOptions.cs b/src/Stripe.net/Services/V2/Core/ApprovalRequests/ApprovalRequestGetOptions.cs new file mode 100644 index 0000000000..690cf74c4f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/ApprovalRequests/ApprovalRequestGetOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ApprovalRequestGetOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/Core/ApprovalRequests/ApprovalRequestListOptions.cs b/src/Stripe.net/Services/V2/Core/ApprovalRequests/ApprovalRequestListOptions.cs new file mode 100644 index 0000000000..7cb081444d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/ApprovalRequests/ApprovalRequestListOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ApprovalRequestListOptions : V2.ListOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/Core/ApprovalRequests/ApprovalRequestService.cs b/src/Stripe.net/Services/V2/Core/ApprovalRequests/ApprovalRequestService.cs new file mode 100644 index 0000000000..73d0918a1b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/ApprovalRequests/ApprovalRequestService.cs @@ -0,0 +1,121 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using System.Collections.Generic; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public class ApprovalRequestService : Service + { + internal ApprovalRequestService(ApiRequestor requestor) + : base(requestor) + { + } + + internal ApprovalRequestService(IStripeClient client) + : base(client) + { + } + + /// + /// POST /v2/core/approval_requests/:id/cancel Cancels a pending approval request. + /// + public virtual ApprovalRequest Cancel(string id, ApprovalRequestCancelOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/core/approval_requests/{WebUtility.UrlEncode(id)}/cancel", options, requestOptions); + } + + /// + /// POST /v2/core/approval_requests/:id/cancel Cancels a pending approval request. + /// + public virtual Task CancelAsync(string id, ApprovalRequestCancelOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/core/approval_requests/{WebUtility.UrlEncode(id)}/cancel", options, requestOptions, cancellationToken); + } + + /// + /// POST /v2/core/approval_requests/:id/execute Executes an approved approval request. + /// + public virtual ApprovalRequest Execute(string id, ApprovalRequestExecuteOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/core/approval_requests/{WebUtility.UrlEncode(id)}/execute", options, requestOptions); + } + + /// + /// POST /v2/core/approval_requests/:id/execute Executes an approved approval request. + /// + public virtual Task ExecuteAsync(string id, ApprovalRequestExecuteOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/core/approval_requests/{WebUtility.UrlEncode(id)}/execute", options, requestOptions, cancellationToken); + } + + /// + /// GET /v2/core/approval_requests/:id Retrieves an approval request by ID. + /// + public virtual ApprovalRequest Get(string id, ApprovalRequestGetOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Get, $"/v2/core/approval_requests/{WebUtility.UrlEncode(id)}", options, requestOptions); + } + + /// + /// GET /v2/core/approval_requests/:id Retrieves an approval request by ID. + /// + public virtual Task GetAsync(string id, ApprovalRequestGetOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v2/core/approval_requests/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); + } + + /// + /// GET /v2/core/approval_requests Lists approval requests with optional filtering. + /// + public virtual V2.StripeList List(ApprovalRequestListOptions options = null, RequestOptions requestOptions = null) + { + return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/approval_requests", options, requestOptions); + } + + /// + /// GET /v2/core/approval_requests Lists approval requests with optional filtering. + /// + public virtual Task> ListAsync(ApprovalRequestListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/approval_requests", options, requestOptions, cancellationToken); + } + + /// + /// GET /v2/core/approval_requests Lists approval requests with optional filtering. + /// + public virtual IEnumerable ListAutoPaging(ApprovalRequestListOptions options = null, RequestOptions requestOptions = null) + { + return this.ListRequestAutoPaging($"/v2/core/approval_requests", options, requestOptions); + } + + /// + /// GET /v2/core/approval_requests Lists approval requests with optional filtering. + /// + public virtual IAsyncEnumerable ListAutoPagingAsync(ApprovalRequestListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.ListRequestAutoPagingAsync($"/v2/core/approval_requests", options, requestOptions, cancellationToken); + } + + /// + /// POST /v2/core/approval_requests/:id/submit Moves a pending approval request into the + /// reviewer queue for auto-execution upon approval. + /// + public virtual ApprovalRequest Submit(string id, ApprovalRequestSubmitOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/core/approval_requests/{WebUtility.UrlEncode(id)}/submit", options, requestOptions); + } + + /// + /// POST /v2/core/approval_requests/:id/submit Moves a pending approval request into the + /// reviewer queue for auto-execution upon approval. + /// + public virtual Task SubmitAsync(string id, ApprovalRequestSubmitOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/core/approval_requests/{WebUtility.UrlEncode(id)}/submit", options, requestOptions, cancellationToken); + } + } +} diff --git a/src/Stripe.net/Services/V2/Core/ApprovalRequests/ApprovalRequestSubmitOptions.cs b/src/Stripe.net/Services/V2/Core/ApprovalRequests/ApprovalRequestSubmitOptions.cs new file mode 100644 index 0000000000..da893b57d0 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/ApprovalRequests/ApprovalRequestSubmitOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ApprovalRequestSubmitOptions : BaseOptions + { + /// + /// The reason for submitting the approval request. + /// + [JsonProperty("reason")] + [STJS.JsonPropertyName("reason")] + public string Reason { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/BatchJobs/BatchJobCreateEndpointOptions.cs b/src/Stripe.net/Services/V2/Core/BatchJobs/BatchJobCreateEndpointOptions.cs index 5c956ecfd9..7863f5abd3 100644 --- a/src/Stripe.net/Services/V2/Core/BatchJobs/BatchJobCreateEndpointOptions.cs +++ b/src/Stripe.net/Services/V2/Core/BatchJobs/BatchJobCreateEndpointOptions.cs @@ -10,6 +10,7 @@ public class BatchJobCreateEndpointOptions : INestedOptions { /// /// The HTTP method to use when calling the endpoint. + /// One of: delete, or post. /// [JsonProperty("http_method")] [STJS.JsonPropertyName("http_method")] diff --git a/src/Stripe.net/Services/V2/Core/ClaimableSandboxes/ClaimableSandboxCreateOnboardingLinkDetailsOptions.cs b/src/Stripe.net/Services/V2/Core/ClaimableSandboxes/ClaimableSandboxCreateOnboardingLinkDetailsOptions.cs new file mode 100644 index 0000000000..1d2c0048c7 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/ClaimableSandboxes/ClaimableSandboxCreateOnboardingLinkDetailsOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ClaimableSandboxCreateOnboardingLinkDetailsOptions : INestedOptions + { + /// + /// The URL the user will be redirected to if the onboarding link is expired or invalid. The + /// URL specified should attempt to generate a new onboarding link, and re-direct the user + /// to this new onboarding link so that they can proceed with the onboarding flow. + /// + [JsonProperty("refresh_url")] + [STJS.JsonPropertyName("refresh_url")] + public string RefreshUrl { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/ClaimableSandboxes/ClaimableSandboxCreateOptions.cs b/src/Stripe.net/Services/V2/Core/ClaimableSandboxes/ClaimableSandboxCreateOptions.cs index 4c8e5d67cb..65df923ea8 100644 --- a/src/Stripe.net/Services/V2/Core/ClaimableSandboxes/ClaimableSandboxCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Core/ClaimableSandboxes/ClaimableSandboxCreateOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.V2.Core [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class ClaimableSandboxCreateOptions : BaseOptions { + /// + /// The app channel that will be used when pre-installing your app on the claimable sandbox. + /// This field defaults to public if omitted. + /// One of: public, or testing. + /// + [JsonProperty("app_channel")] + [STJS.JsonPropertyName("app_channel")] + public string AppChannel { get; set; } + /// /// If true, returns a key that can be used with Stripe's MCP server. @@ -16,6 +25,13 @@ public class ClaimableSandboxCreateOptions : BaseOptions [STJS.JsonPropertyName("enable_mcp_access")] public bool? EnableMcpAccess { get; set; } + /// + /// Details about the onboarding link. + /// + [JsonProperty("onboarding_link_details")] + [STJS.JsonPropertyName("onboarding_link_details")] + public ClaimableSandboxCreateOnboardingLinkDetailsOptions OnboardingLinkDetails { get; set; } + /// /// Values that are prefilled when a user claims the sandbox. When a user claims the /// sandbox, they will be able to update these values. diff --git a/src/Stripe.net/Services/V2/Core/ClaimableSandboxes/ClaimableSandboxRenewOnboardingLinkOnboardingLinkDetailsOptions.cs b/src/Stripe.net/Services/V2/Core/ClaimableSandboxes/ClaimableSandboxRenewOnboardingLinkOnboardingLinkDetailsOptions.cs new file mode 100644 index 0000000000..76b34a0b2b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/ClaimableSandboxes/ClaimableSandboxRenewOnboardingLinkOnboardingLinkDetailsOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ClaimableSandboxRenewOnboardingLinkOnboardingLinkDetailsOptions : INestedOptions + { + /// + /// The URL the user will be redirected to if the onboarding link is expired or invalid. The + /// URL specified should attempt to generate a new onboarding link, and re-direct the user + /// to this new onboarding link so that they can proceed with the onboarding flow. + /// + [JsonProperty("refresh_url")] + [STJS.JsonPropertyName("refresh_url")] + public string RefreshUrl { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/ClaimableSandboxes/ClaimableSandboxRenewOnboardingLinkOptions.cs b/src/Stripe.net/Services/V2/Core/ClaimableSandboxes/ClaimableSandboxRenewOnboardingLinkOptions.cs new file mode 100644 index 0000000000..60758f67f1 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/ClaimableSandboxes/ClaimableSandboxRenewOnboardingLinkOptions.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ClaimableSandboxRenewOnboardingLinkOptions : BaseOptions + { + /// + /// Details about the onboarding link. If omitted, the existing onboarding link details will + /// be reused. + /// + [JsonProperty("onboarding_link_details")] + [STJS.JsonPropertyName("onboarding_link_details")] + public ClaimableSandboxRenewOnboardingLinkOnboardingLinkDetailsOptions OnboardingLinkDetails { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/ClaimableSandboxes/ClaimableSandboxService.cs b/src/Stripe.net/Services/V2/Core/ClaimableSandboxes/ClaimableSandboxService.cs index 06912aba8c..6a3245daa0 100644 --- a/src/Stripe.net/Services/V2/Core/ClaimableSandboxes/ClaimableSandboxService.cs +++ b/src/Stripe.net/Services/V2/Core/ClaimableSandboxes/ClaimableSandboxService.cs @@ -56,5 +56,25 @@ public virtual Task GetAsync(string id, ClaimableSandboxGetOpt { return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v2/core/claimable_sandboxes/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); } + + /// + /// Renew the claimable sandbox onboarding link. This will invalidate any existing + /// onboarding links. The endpoint only works on a claimable sandbox with status + /// unclaimed or claimed. + /// + public virtual ClaimableSandbox RenewOnboardingLink(string id, ClaimableSandboxRenewOnboardingLinkOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/core/claimable_sandboxes/{WebUtility.UrlEncode(id)}/renew_onboarding_link", options, requestOptions); + } + + /// + /// Renew the claimable sandbox onboarding link. This will invalidate any existing + /// onboarding links. The endpoint only works on a claimable sandbox with status + /// unclaimed or claimed. + /// + public virtual Task RenewOnboardingLinkAsync(string id, ClaimableSandboxRenewOnboardingLinkOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/core/claimable_sandboxes/{WebUtility.UrlEncode(id)}/renew_onboarding_link", options, requestOptions, cancellationToken); + } } } diff --git a/src/Stripe.net/Services/V2/Core/Vault/GbBankAccounts/GbBankAccountCreateOptions.cs b/src/Stripe.net/Services/V2/Core/Vault/GbBankAccounts/GbBankAccountCreateOptions.cs index ab1f22b367..1a6981e62d 100644 --- a/src/Stripe.net/Services/V2/Core/Vault/GbBankAccounts/GbBankAccountCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Vault/GbBankAccounts/GbBankAccountCreateOptions.cs @@ -17,7 +17,7 @@ public class GbBankAccountCreateOptions : BaseOptions /// /// Closed Enum. The type of the bank account (checking or savings). - /// One of: checking, or savings. + /// One of: checking, futsu, savings, or toza. /// [JsonProperty("bank_account_type")] [STJS.JsonPropertyName("bank_account_type")] diff --git a/src/Stripe.net/Services/V2/CoreService.cs b/src/Stripe.net/Services/V2/CoreService.cs index f252d82d62..5957b44f21 100644 --- a/src/Stripe.net/Services/V2/CoreService.cs +++ b/src/Stripe.net/Services/V2/CoreService.cs @@ -11,14 +11,13 @@ public class CoreService : Service private V2.Core.AccountEvaluationService accountEvaluations; private V2.Core.AccountLinkService accountLinks; private V2.Core.AccountTokenService accountTokens; + private V2.Core.ApprovalRequestService approvalRequests; private V2.Core.BatchJobService batchJobs; private V2.Core.ClaimableSandboxService claimableSandboxes; private V2.Core.ConnectionSessionService connectionSessions; private V2.Core.EventService events; private V2.Core.EventDestinationService eventDestinations; private V2.Core.VaultService vault; - private V2.Core.WorkflowService workflows; - private V2.Core.WorkflowRunService workflowRuns; internal CoreService(ApiRequestor requestor) : base(requestor) @@ -42,6 +41,9 @@ internal CoreService(IStripeClient client) public virtual V2.Core.AccountTokenService AccountTokens => this.accountTokens ??= new V2.Core.AccountTokenService( this.Requestor); + public virtual V2.Core.ApprovalRequestService ApprovalRequests => this.approvalRequests ??= new V2.Core.ApprovalRequestService( + this.Requestor); + public virtual V2.Core.BatchJobService BatchJobs => this.batchJobs ??= new V2.Core.BatchJobService( this.Requestor); @@ -59,11 +61,5 @@ internal CoreService(IStripeClient client) public virtual V2.Core.VaultService Vault => this.vault ??= new V2.Core.VaultService( this.Requestor); - - public virtual V2.Core.WorkflowService Workflows => this.workflows ??= new V2.Core.WorkflowService( - this.Requestor); - - public virtual V2.Core.WorkflowRunService WorkflowRuns => this.workflowRuns ??= new V2.Core.WorkflowRunService( - this.Requestor); } } diff --git a/src/Stripe.net/Services/V2/Core/WorkflowRuns/WorkflowRunGetOptions.cs b/src/Stripe.net/Services/V2/Extend/WorkflowRuns/WorkflowRunGetOptions.cs similarity index 91% rename from src/Stripe.net/Services/V2/Core/WorkflowRuns/WorkflowRunGetOptions.cs rename to src/Stripe.net/Services/V2/Extend/WorkflowRuns/WorkflowRunGetOptions.cs index f5cdecbeac..94ef8987fd 100644 --- a/src/Stripe.net/Services/V2/Core/WorkflowRuns/WorkflowRunGetOptions.cs +++ b/src/Stripe.net/Services/V2/Extend/WorkflowRuns/WorkflowRunGetOptions.cs @@ -1,5 +1,5 @@ // File generated from our OpenAPI spec -namespace Stripe.V2.Core +namespace Stripe.V2.Extend { using Newtonsoft.Json; using Stripe.Infrastructure; diff --git a/src/Stripe.net/Services/V2/Core/WorkflowRuns/WorkflowRunListOptions.cs b/src/Stripe.net/Services/V2/Extend/WorkflowRuns/WorkflowRunListOptions.cs similarity index 97% rename from src/Stripe.net/Services/V2/Core/WorkflowRuns/WorkflowRunListOptions.cs rename to src/Stripe.net/Services/V2/Extend/WorkflowRuns/WorkflowRunListOptions.cs index f57c359aea..544208a5f5 100644 --- a/src/Stripe.net/Services/V2/Core/WorkflowRuns/WorkflowRunListOptions.cs +++ b/src/Stripe.net/Services/V2/Extend/WorkflowRuns/WorkflowRunListOptions.cs @@ -1,5 +1,5 @@ // File generated from our OpenAPI spec -namespace Stripe.V2.Core +namespace Stripe.V2.Extend { using System.Collections.Generic; using Newtonsoft.Json; diff --git a/src/Stripe.net/Services/V2/Core/WorkflowRuns/WorkflowRunService.cs b/src/Stripe.net/Services/V2/Extend/WorkflowRuns/WorkflowRunService.cs similarity index 81% rename from src/Stripe.net/Services/V2/Core/WorkflowRuns/WorkflowRunService.cs rename to src/Stripe.net/Services/V2/Extend/WorkflowRuns/WorkflowRunService.cs index af104c1c3d..003da0d6b8 100644 --- a/src/Stripe.net/Services/V2/Core/WorkflowRuns/WorkflowRunService.cs +++ b/src/Stripe.net/Services/V2/Extend/WorkflowRuns/WorkflowRunService.cs @@ -1,5 +1,5 @@ // File generated from our OpenAPI spec -namespace Stripe.V2.Core +namespace Stripe.V2.Extend { using System; using System.Collections.Generic; @@ -25,7 +25,7 @@ internal WorkflowRunService(IStripeClient client) /// public virtual WorkflowRun Get(string id, WorkflowRunGetOptions options = null, RequestOptions requestOptions = null) { - return this.Request(BaseAddress.Api, HttpMethod.Get, $"/v2/core/workflow_runs/{WebUtility.UrlEncode(id)}", options, requestOptions); + return this.Request(BaseAddress.Api, HttpMethod.Get, $"/v2/extend/workflow_runs/{WebUtility.UrlEncode(id)}", options, requestOptions); } /// @@ -33,7 +33,7 @@ public virtual WorkflowRun Get(string id, WorkflowRunGetOptions options = null, /// public virtual Task GetAsync(string id, WorkflowRunGetOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { - return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v2/core/workflow_runs/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); + return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v2/extend/workflow_runs/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); } /// @@ -41,7 +41,7 @@ public virtual Task GetAsync(string id, WorkflowRunGetOptions optio /// public virtual V2.StripeList List(WorkflowRunListOptions options = null, RequestOptions requestOptions = null) { - return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/workflow_runs", options, requestOptions); + return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v2/extend/workflow_runs", options, requestOptions); } /// @@ -49,7 +49,7 @@ public virtual V2.StripeList List(WorkflowRunListOptions options = /// public virtual Task> ListAsync(WorkflowRunListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { - return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/workflow_runs", options, requestOptions, cancellationToken); + return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v2/extend/workflow_runs", options, requestOptions, cancellationToken); } /// @@ -57,7 +57,7 @@ public virtual V2.StripeList List(WorkflowRunListOptions options = /// public virtual IEnumerable ListAutoPaging(WorkflowRunListOptions options = null, RequestOptions requestOptions = null) { - return this.ListRequestAutoPaging($"/v2/core/workflow_runs", options, requestOptions); + return this.ListRequestAutoPaging($"/v2/extend/workflow_runs", options, requestOptions); } /// @@ -65,7 +65,7 @@ public virtual IEnumerable ListAutoPaging(WorkflowRunListOptions op /// public virtual IAsyncEnumerable ListAutoPagingAsync(WorkflowRunListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { - return this.ListRequestAutoPagingAsync($"/v2/core/workflow_runs", options, requestOptions, cancellationToken); + return this.ListRequestAutoPagingAsync($"/v2/extend/workflow_runs", options, requestOptions, cancellationToken); } } } diff --git a/src/Stripe.net/Services/V2/Core/Workflows/WorkflowGetOptions.cs b/src/Stripe.net/Services/V2/Extend/Workflows/WorkflowGetOptions.cs similarity index 91% rename from src/Stripe.net/Services/V2/Core/Workflows/WorkflowGetOptions.cs rename to src/Stripe.net/Services/V2/Extend/Workflows/WorkflowGetOptions.cs index 204ee4666d..bb34fc3980 100644 --- a/src/Stripe.net/Services/V2/Core/Workflows/WorkflowGetOptions.cs +++ b/src/Stripe.net/Services/V2/Extend/Workflows/WorkflowGetOptions.cs @@ -1,5 +1,5 @@ // File generated from our OpenAPI spec -namespace Stripe.V2.Core +namespace Stripe.V2.Extend { using Newtonsoft.Json; using Stripe.Infrastructure; diff --git a/src/Stripe.net/Services/V2/Core/Workflows/WorkflowInvokeOptions.cs b/src/Stripe.net/Services/V2/Extend/Workflows/WorkflowInvokeOptions.cs similarity index 95% rename from src/Stripe.net/Services/V2/Core/Workflows/WorkflowInvokeOptions.cs rename to src/Stripe.net/Services/V2/Extend/Workflows/WorkflowInvokeOptions.cs index 72bdbbb90a..310cd1c5b0 100644 --- a/src/Stripe.net/Services/V2/Core/Workflows/WorkflowInvokeOptions.cs +++ b/src/Stripe.net/Services/V2/Extend/Workflows/WorkflowInvokeOptions.cs @@ -1,5 +1,5 @@ // File generated from our OpenAPI spec -namespace Stripe.V2.Core +namespace Stripe.V2.Extend { using System.Collections.Generic; using Newtonsoft.Json; diff --git a/src/Stripe.net/Services/V2/Core/Workflows/WorkflowListOptions.cs b/src/Stripe.net/Services/V2/Extend/Workflows/WorkflowListOptions.cs similarity index 96% rename from src/Stripe.net/Services/V2/Core/Workflows/WorkflowListOptions.cs rename to src/Stripe.net/Services/V2/Extend/Workflows/WorkflowListOptions.cs index a4a90c8187..c5a933cf86 100644 --- a/src/Stripe.net/Services/V2/Core/Workflows/WorkflowListOptions.cs +++ b/src/Stripe.net/Services/V2/Extend/Workflows/WorkflowListOptions.cs @@ -1,5 +1,5 @@ // File generated from our OpenAPI spec -namespace Stripe.V2.Core +namespace Stripe.V2.Extend { using System.Collections.Generic; using Newtonsoft.Json; diff --git a/src/Stripe.net/Services/V2/Core/Workflows/WorkflowService.cs b/src/Stripe.net/Services/V2/Extend/Workflows/WorkflowService.cs similarity index 79% rename from src/Stripe.net/Services/V2/Core/Workflows/WorkflowService.cs rename to src/Stripe.net/Services/V2/Extend/Workflows/WorkflowService.cs index fed7114087..d4db99cbbb 100644 --- a/src/Stripe.net/Services/V2/Core/Workflows/WorkflowService.cs +++ b/src/Stripe.net/Services/V2/Extend/Workflows/WorkflowService.cs @@ -1,5 +1,5 @@ // File generated from our OpenAPI spec -namespace Stripe.V2.Core +namespace Stripe.V2.Extend { using System; using System.Collections.Generic; @@ -25,7 +25,7 @@ internal WorkflowService(IStripeClient client) /// public virtual Workflow Get(string id, WorkflowGetOptions options = null, RequestOptions requestOptions = null) { - return this.Request(BaseAddress.Api, HttpMethod.Get, $"/v2/core/workflows/{WebUtility.UrlEncode(id)}", options, requestOptions); + return this.Request(BaseAddress.Api, HttpMethod.Get, $"/v2/extend/workflows/{WebUtility.UrlEncode(id)}", options, requestOptions); } /// @@ -33,7 +33,7 @@ public virtual Workflow Get(string id, WorkflowGetOptions options = null, Reques /// public virtual Task GetAsync(string id, WorkflowGetOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { - return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v2/core/workflows/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); + return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v2/extend/workflows/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); } /// @@ -41,7 +41,7 @@ public virtual Task GetAsync(string id, WorkflowGetOptions options = n /// public virtual WorkflowRun Invoke(string id, WorkflowInvokeOptions options = null, RequestOptions requestOptions = null) { - return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/core/workflows/{WebUtility.UrlEncode(id)}/invoke", options, requestOptions); + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/extend/workflows/{WebUtility.UrlEncode(id)}/invoke", options, requestOptions); } /// @@ -49,7 +49,7 @@ public virtual WorkflowRun Invoke(string id, WorkflowInvokeOptions options = nul /// public virtual Task InvokeAsync(string id, WorkflowInvokeOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { - return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/core/workflows/{WebUtility.UrlEncode(id)}/invoke", options, requestOptions, cancellationToken); + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/extend/workflows/{WebUtility.UrlEncode(id)}/invoke", options, requestOptions, cancellationToken); } /// @@ -57,7 +57,7 @@ public virtual Task InvokeAsync(string id, WorkflowInvokeOptions op /// public virtual V2.StripeList List(WorkflowListOptions options = null, RequestOptions requestOptions = null) { - return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/workflows", options, requestOptions); + return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v2/extend/workflows", options, requestOptions); } /// @@ -65,7 +65,7 @@ public virtual V2.StripeList List(WorkflowListOptions options = null, /// public virtual Task> ListAsync(WorkflowListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { - return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/workflows", options, requestOptions, cancellationToken); + return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v2/extend/workflows", options, requestOptions, cancellationToken); } /// @@ -73,7 +73,7 @@ public virtual V2.StripeList List(WorkflowListOptions options = null, /// public virtual IEnumerable ListAutoPaging(WorkflowListOptions options = null, RequestOptions requestOptions = null) { - return this.ListRequestAutoPaging($"/v2/core/workflows", options, requestOptions); + return this.ListRequestAutoPaging($"/v2/extend/workflows", options, requestOptions); } /// @@ -81,7 +81,7 @@ public virtual IEnumerable ListAutoPaging(WorkflowListOptions options /// public virtual IAsyncEnumerable ListAutoPagingAsync(WorkflowListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { - return this.ListRequestAutoPagingAsync($"/v2/core/workflows", options, requestOptions, cancellationToken); + return this.ListRequestAutoPagingAsync($"/v2/extend/workflows", options, requestOptions, cancellationToken); } } } diff --git a/src/Stripe.net/Services/V2/ExtendService.cs b/src/Stripe.net/Services/V2/ExtendService.cs new file mode 100644 index 0000000000..30625bf5ff --- /dev/null +++ b/src/Stripe.net/Services/V2/ExtendService.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2 +{ + using System; + using System.Threading; + using System.Threading.Tasks; + + public class ExtendService : Service + { + private V2.Extend.WorkflowService workflows; + private V2.Extend.WorkflowRunService workflowRuns; + + internal ExtendService(ApiRequestor requestor) + : base(requestor) + { + } + + internal ExtendService(IStripeClient client) + : base(client) + { + } + + public virtual V2.Extend.WorkflowService Workflows => this.workflows ??= new V2.Extend.WorkflowService( + this.Requestor); + + public virtual V2.Extend.WorkflowRunService WorkflowRuns => this.workflowRuns ??= new V2.Extend.WorkflowRunService( + this.Requestor); + } +} diff --git a/src/Stripe.net/Services/V2/Iam/ActivityLogs/ActivityLogListOptions.cs b/src/Stripe.net/Services/V2/Iam/ActivityLogs/ActivityLogListOptions.cs new file mode 100644 index 0000000000..7d032c3915 --- /dev/null +++ b/src/Stripe.net/Services/V2/Iam/ActivityLogs/ActivityLogListOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Iam +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ActivityLogListOptions : V2.ListOptions + { + /// + /// Filter results to only include activity logs for the specified action group types. + /// One of: api_key, user_invite, or user_roles. + /// + [JsonProperty("action_groups")] + [STJS.JsonPropertyName("action_groups")] + public List ActionGroups { get; set; } + + /// + /// Filter results to only include activity logs for the specified action types. + /// One of: api_key_created, api_key_deleted, api_key_updated, + /// api_key_viewed, user_invite_accepted, user_invite_created, + /// user_invite_deleted, user_roles_deleted, or user_roles_updated. + /// + [JsonProperty("actions")] + [STJS.JsonPropertyName("actions")] + public List Actions { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Iam/ActivityLogs/ActivityLogService.cs b/src/Stripe.net/Services/V2/Iam/ActivityLogs/ActivityLogService.cs new file mode 100644 index 0000000000..98f4fc3779 --- /dev/null +++ b/src/Stripe.net/Services/V2/Iam/ActivityLogs/ActivityLogService.cs @@ -0,0 +1,54 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Iam +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public class ActivityLogService : Service + { + internal ActivityLogService(ApiRequestor requestor) + : base(requestor) + { + } + + internal ActivityLogService(IStripeClient client) + : base(client) + { + } + + /// + /// List activity logs of an account. + /// + public virtual V2.StripeList List(ActivityLogListOptions options = null, RequestOptions requestOptions = null) + { + return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v2/iam/activity_logs", options, requestOptions); + } + + /// + /// List activity logs of an account. + /// + public virtual Task> ListAsync(ActivityLogListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v2/iam/activity_logs", options, requestOptions, cancellationToken); + } + + /// + /// List activity logs of an account. + /// + public virtual IEnumerable ListAutoPaging(ActivityLogListOptions options = null, RequestOptions requestOptions = null) + { + return this.ListRequestAutoPaging($"/v2/iam/activity_logs", options, requestOptions); + } + + /// + /// List activity logs of an account. + /// + public virtual IAsyncEnumerable ListAutoPagingAsync(ActivityLogListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.ListRequestAutoPagingAsync($"/v2/iam/activity_logs", options, requestOptions, cancellationToken); + } + } +} diff --git a/src/Stripe.net/Services/V2/IamService.cs b/src/Stripe.net/Services/V2/IamService.cs index 9531a41f09..4935829699 100644 --- a/src/Stripe.net/Services/V2/IamService.cs +++ b/src/Stripe.net/Services/V2/IamService.cs @@ -7,6 +7,7 @@ namespace Stripe.V2 public class IamService : Service { + private V2.Iam.ActivityLogService activityLogs; private V2.Iam.ApiKeyService apiKeys; internal IamService(ApiRequestor requestor) @@ -19,6 +20,9 @@ internal IamService(IStripeClient client) { } + public virtual V2.Iam.ActivityLogService ActivityLogs => this.activityLogs ??= new V2.Iam.ActivityLogService( + this.Requestor); + public virtual V2.Iam.ApiKeyService ApiKeys => this.apiKeys ??= new V2.Iam.ApiKeyService( this.Requestor); } diff --git a/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateOptions.cs index 2d8e5d0714..166ed273b4 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateOptions.cs @@ -22,6 +22,13 @@ public class CurrencyConversionCreateOptions : BaseOptions [STJS.JsonPropertyName("from")] public CurrencyConversionCreateFromOptions From { get; set; } + /// + /// The FX quote to use for the conversion. + /// + [JsonProperty("fx_quote")] + [STJS.JsonPropertyName("fx_quote")] + public string FxQuote { get; set; } + /// /// To amount object indicating the to currency or optional amount. /// diff --git a/src/Stripe.net/Services/V2/MoneyManagement/FinancialAccounts/FinancialAccountListOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/FinancialAccounts/FinancialAccountListOptions.cs index 66239676b7..dbb1b9ce28 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/FinancialAccounts/FinancialAccountListOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/FinancialAccounts/FinancialAccountListOptions.cs @@ -28,7 +28,8 @@ public class FinancialAccountListOptions : V2.ListOptions /// /// Filter for FinancialAccount type. By default, FinancialAccounts of any /// type are returned. - /// One of: accrued_fees, payments, or storage. + /// One of: accrued_fees, multiprocessor_settlement, payments, or + /// storage. /// [JsonProperty("types")] [STJS.JsonPropertyName("types")] diff --git a/src/Stripe.net/Services/V2/MoneyManagement/FinancialAccounts/FinancialAccountUpdateOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/FinancialAccounts/FinancialAccountUpdateOptions.cs index fa07fa9dac..bb5c3f5374 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/FinancialAccounts/FinancialAccountUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/FinancialAccounts/FinancialAccountUpdateOptions.cs @@ -22,8 +22,9 @@ public class FinancialAccountUpdateOptions : BaseOptions, IHasMetadata /// /// Metadata associated with the FinancialAccount. /// - [JsonProperty("metadata")] + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] [STJS.JsonConverter(typeof(STJNullPreservingDictionaryConverter))] public Dictionary Metadata { @@ -34,5 +35,12 @@ public Dictionary Metadata this.SetTracker.Track(); } } + + /// + /// Parameters for updating storage-specific fields on the FinancialAccount. + /// + [JsonProperty("storage")] + [STJS.JsonPropertyName("storage")] + public FinancialAccountUpdateStorageOptions Storage { get; set; } } } diff --git a/src/Stripe.net/Services/V2/MoneyManagement/FinancialAccounts/FinancialAccountUpdateStorageOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/FinancialAccounts/FinancialAccountUpdateStorageOptions.cs new file mode 100644 index 0000000000..44820453cf --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/FinancialAccounts/FinancialAccountUpdateStorageOptions.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class FinancialAccountUpdateStorageOptions : INestedOptions + { + /// + /// The currencies that this storage FinancialAccount can hold a balance in. Three-letter + /// ISO currency code, in lowercase. Adding currencies requires the corresponding + /// holds_currencies storer capabilities to be enabled. Removing currencies is not supported + /// as of March 2026. + /// + [JsonProperty("holds_currencies")] + [STJS.JsonPropertyName("holds_currencies")] + public List HoldsCurrencies { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/FinancialAddresses/FinancialAddressCreateOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/FinancialAddresses/FinancialAddressCreateOptions.cs index e8dae72238..8b3d00a020 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/FinancialAddresses/FinancialAddressCreateOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/FinancialAddresses/FinancialAddressCreateOptions.cs @@ -25,7 +25,8 @@ public class FinancialAddressCreateOptions : BaseOptions /// /// The type of FinancialAddress details to provision. - /// One of: gb_bank_account, sepa_bank_account, or us_bank_account. + /// One of: ca_bank_account, gb_bank_account, sepa_bank_account, or + /// us_bank_account. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/V2/MoneyManagement/FinancialAddresses/FinancialAddressGetOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/FinancialAddresses/FinancialAddressGetOptions.cs index a4c1640284..1af876d0c6 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/FinancialAddresses/FinancialAddressGetOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/FinancialAddresses/FinancialAddressGetOptions.cs @@ -11,7 +11,8 @@ public class FinancialAddressGetOptions : BaseOptions { /// /// Open Enum. A list of fields to reveal in the FinancialAddresses returned. - /// One of: credentials.gb_bank_account.account_number, + /// One of: credentials.ca_bank_account.account_number, + /// credentials.gb_bank_account.account_number, /// credentials.sepa_bank_account.iban, or /// credentials.us_bank_account.account_number. /// diff --git a/src/Stripe.net/Services/V2/MoneyManagement/FinancialAddresses/FinancialAddressListOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/FinancialAddresses/FinancialAddressListOptions.cs index d026339ef2..c22bdcc8ac 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/FinancialAddresses/FinancialAddressListOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/FinancialAddresses/FinancialAddressListOptions.cs @@ -18,7 +18,8 @@ public class FinancialAddressListOptions : V2.ListOptions /// /// Open Enum. A list of fields to reveal in the FinancialAddresses returned. - /// One of: credentials.gb_bank_account.account_number, + /// One of: credentials.ca_bank_account.account_number, + /// credentials.gb_bank_account.account_number, /// credentials.sepa_bank_account.iban, or /// credentials.us_bank_account.account_number. /// diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentCreatePayoutMethodDataBankAccountOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentCreatePayoutMethodDataBankAccountOptions.cs index 4793c1ea54..0fac830756 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentCreatePayoutMethodDataBankAccountOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentCreatePayoutMethodDataBankAccountOptions.cs @@ -17,7 +17,7 @@ public class OutboundSetupIntentCreatePayoutMethodDataBankAccountOptions : INest /// /// Closed Enum. The type of the bank account (checking or savings). - /// One of: checking, or savings. + /// One of: checking, futsu, savings, or toza. /// [JsonProperty("bank_account_type")] [STJS.JsonPropertyName("bank_account_type")] diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentCreatePayoutMethodDataCryptoWalletOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentCreatePayoutMethodDataCryptoWalletOptions.cs index 3203f7419f..47c693a5af 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentCreatePayoutMethodDataCryptoWalletOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentCreatePayoutMethodDataCryptoWalletOptions.cs @@ -25,7 +25,7 @@ public class OutboundSetupIntentCreatePayoutMethodDataCryptoWalletOptions : INes /// /// Which rail we should use to make an Outbound money movement to this wallet. /// One of: arbitrum, avalanche_c_chain, base, ethereum, - /// optimism, polygon, solana, or stellar. + /// optimism, polygon, solana, stellar, or tempo. /// [JsonProperty("network")] [STJS.JsonPropertyName("network")] diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentUpdatePayoutMethodDataBankAccountOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentUpdatePayoutMethodDataBankAccountOptions.cs index ed838587b7..65b68aafa7 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentUpdatePayoutMethodDataBankAccountOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentUpdatePayoutMethodDataBankAccountOptions.cs @@ -17,7 +17,7 @@ public class OutboundSetupIntentUpdatePayoutMethodDataBankAccountOptions : INest /// /// Closed Enum. The type of the bank account (checking or savings). - /// One of: checking, or savings. + /// One of: checking, futsu, savings, or toza. /// [JsonProperty("bank_account_type")] [STJS.JsonPropertyName("bank_account_type")] diff --git a/src/Stripe.net/Services/V2/Network/BusinessProfiles/BusinessProfileGetOptions.cs b/src/Stripe.net/Services/V2/Network/BusinessProfiles/BusinessProfileGetOptions.cs new file mode 100644 index 0000000000..672fa21c4c --- /dev/null +++ b/src/Stripe.net/Services/V2/Network/BusinessProfiles/BusinessProfileGetOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Network +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class BusinessProfileGetOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/Network/BusinessProfiles/BusinessProfileMeOptions.cs b/src/Stripe.net/Services/V2/Network/BusinessProfiles/BusinessProfileMeOptions.cs new file mode 100644 index 0000000000..2a18cb8e3c --- /dev/null +++ b/src/Stripe.net/Services/V2/Network/BusinessProfiles/BusinessProfileMeOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Network +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class BusinessProfileMeOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/Network/BusinessProfiles/BusinessProfileService.cs b/src/Stripe.net/Services/V2/Network/BusinessProfiles/BusinessProfileService.cs new file mode 100644 index 0000000000..6b768b2371 --- /dev/null +++ b/src/Stripe.net/Services/V2/Network/BusinessProfiles/BusinessProfileService.cs @@ -0,0 +1,54 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Network +{ + using System; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public class BusinessProfileService : Service + { + internal BusinessProfileService(ApiRequestor requestor) + : base(requestor) + { + } + + internal BusinessProfileService(IStripeClient client) + : base(client) + { + } + + /// + /// Retrieve a Stripe profile by its Network ID. + /// + public virtual BusinessProfile Get(string id, BusinessProfileGetOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Get, $"/v2/network/business_profiles/{WebUtility.UrlEncode(id)}", options, requestOptions); + } + + /// + /// Retrieve a Stripe profile by its Network ID. + /// + public virtual Task GetAsync(string id, BusinessProfileGetOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v2/network/business_profiles/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); + } + + /// + /// Retrieve the Stripe profile associated with the requesting merchant and livemode. + /// + public virtual BusinessProfile Me(BusinessProfileMeOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Get, $"/v2/network/business_profiles/me", options, requestOptions); + } + + /// + /// Retrieve the Stripe profile associated with the requesting merchant and livemode. + /// + public virtual Task MeAsync(BusinessProfileMeOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v2/network/business_profiles/me", options, requestOptions, cancellationToken); + } + } +} diff --git a/src/Stripe.net/Services/V2/NetworkService.cs b/src/Stripe.net/Services/V2/NetworkService.cs new file mode 100644 index 0000000000..9fb31d4542 --- /dev/null +++ b/src/Stripe.net/Services/V2/NetworkService.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2 +{ + using System; + using System.Threading; + using System.Threading.Tasks; + + public class NetworkService : Service + { + private V2.Network.BusinessProfileService businessProfiles; + + internal NetworkService(ApiRequestor requestor) + : base(requestor) + { + } + + internal NetworkService(IStripeClient client) + : base(client) + { + } + + public virtual V2.Network.BusinessProfileService BusinessProfiles => this.businessProfiles ??= new V2.Network.BusinessProfileService( + this.Requestor); + } +} diff --git a/src/Stripe.net/Services/V2/OrchestratedCommerce/Agreements/AgreementConfirmOptions.cs b/src/Stripe.net/Services/V2/OrchestratedCommerce/Agreements/AgreementConfirmOptions.cs new file mode 100644 index 0000000000..3eaf368539 --- /dev/null +++ b/src/Stripe.net/Services/V2/OrchestratedCommerce/Agreements/AgreementConfirmOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.OrchestratedCommerce +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AgreementConfirmOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/OrchestratedCommerce/Agreements/AgreementCreateOptions.cs b/src/Stripe.net/Services/V2/OrchestratedCommerce/Agreements/AgreementCreateOptions.cs new file mode 100644 index 0000000000..6d0c000adc --- /dev/null +++ b/src/Stripe.net/Services/V2/OrchestratedCommerce/Agreements/AgreementCreateOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.OrchestratedCommerce +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AgreementCreateOptions : BaseOptions + { + /// + /// The Network ID of the orchestrator to create an agreement with. + /// + [JsonProperty("orchestrator")] + [STJS.JsonPropertyName("orchestrator")] + public string Orchestrator { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/OrchestratedCommerce/Agreements/AgreementGetOptions.cs b/src/Stripe.net/Services/V2/OrchestratedCommerce/Agreements/AgreementGetOptions.cs new file mode 100644 index 0000000000..ab4ab9b580 --- /dev/null +++ b/src/Stripe.net/Services/V2/OrchestratedCommerce/Agreements/AgreementGetOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.OrchestratedCommerce +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AgreementGetOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/OrchestratedCommerce/Agreements/AgreementListOptions.cs b/src/Stripe.net/Services/V2/OrchestratedCommerce/Agreements/AgreementListOptions.cs new file mode 100644 index 0000000000..38f7b1d0d4 --- /dev/null +++ b/src/Stripe.net/Services/V2/OrchestratedCommerce/Agreements/AgreementListOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.OrchestratedCommerce +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AgreementListOptions : V2.ListOptions + { + /// + /// Filter list to Orchestrated Commerce Agreements with a specific counterparty. + /// + [JsonProperty("network_business_profile")] + [STJS.JsonPropertyName("network_business_profile")] + public string NetworkBusinessProfile { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/OrchestratedCommerce/Agreements/AgreementService.cs b/src/Stripe.net/Services/V2/OrchestratedCommerce/Agreements/AgreementService.cs new file mode 100644 index 0000000000..194e2efa4f --- /dev/null +++ b/src/Stripe.net/Services/V2/OrchestratedCommerce/Agreements/AgreementService.cs @@ -0,0 +1,119 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.OrchestratedCommerce +{ + using System; + using System.Collections.Generic; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public class AgreementService : Service + { + internal AgreementService(ApiRequestor requestor) + : base(requestor) + { + } + + internal AgreementService(IStripeClient client) + : base(client) + { + } + + /// + /// Confirm an Agreement. + /// + public virtual Agreement Confirm(string id, AgreementConfirmOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/orchestrated_commerce/agreements/{WebUtility.UrlEncode(id)}/confirm", options, requestOptions); + } + + /// + /// Confirm an Agreement. + /// + public virtual Task ConfirmAsync(string id, AgreementConfirmOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/orchestrated_commerce/agreements/{WebUtility.UrlEncode(id)}/confirm", options, requestOptions, cancellationToken); + } + + /// + /// Create a new Agreement. + /// + public virtual Agreement Create(AgreementCreateOptions options, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/orchestrated_commerce/agreements", options, requestOptions); + } + + /// + /// Create a new Agreement. + /// + public virtual Task CreateAsync(AgreementCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/orchestrated_commerce/agreements", options, requestOptions, cancellationToken); + } + + /// + /// Retrieve an Agreement by ID. + /// + public virtual Agreement Get(string id, AgreementGetOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Get, $"/v2/orchestrated_commerce/agreements/{WebUtility.UrlEncode(id)}", options, requestOptions); + } + + /// + /// Retrieve an Agreement by ID. + /// + public virtual Task GetAsync(string id, AgreementGetOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v2/orchestrated_commerce/agreements/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); + } + + /// + /// List Agreements for the profile associated with the authenticated merchant. + /// + public virtual V2.StripeList List(AgreementListOptions options = null, RequestOptions requestOptions = null) + { + return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v2/orchestrated_commerce/agreements", options, requestOptions); + } + + /// + /// List Agreements for the profile associated with the authenticated merchant. + /// + public virtual Task> ListAsync(AgreementListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v2/orchestrated_commerce/agreements", options, requestOptions, cancellationToken); + } + + /// + /// List Agreements for the profile associated with the authenticated merchant. + /// + public virtual IEnumerable ListAutoPaging(AgreementListOptions options = null, RequestOptions requestOptions = null) + { + return this.ListRequestAutoPaging($"/v2/orchestrated_commerce/agreements", options, requestOptions); + } + + /// + /// List Agreements for the profile associated with the authenticated merchant. + /// + public virtual IAsyncEnumerable ListAutoPagingAsync(AgreementListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.ListRequestAutoPagingAsync($"/v2/orchestrated_commerce/agreements", options, requestOptions, cancellationToken); + } + + /// + /// Terminate an Agreement. + /// + public virtual Agreement Terminate(string id, AgreementTerminateOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/orchestrated_commerce/agreements/{WebUtility.UrlEncode(id)}/terminate", options, requestOptions); + } + + /// + /// Terminate an Agreement. + /// + public virtual Task TerminateAsync(string id, AgreementTerminateOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/orchestrated_commerce/agreements/{WebUtility.UrlEncode(id)}/terminate", options, requestOptions, cancellationToken); + } + } +} diff --git a/src/Stripe.net/Services/V2/OrchestratedCommerce/Agreements/AgreementTerminateOptions.cs b/src/Stripe.net/Services/V2/OrchestratedCommerce/Agreements/AgreementTerminateOptions.cs new file mode 100644 index 0000000000..6b2be4c155 --- /dev/null +++ b/src/Stripe.net/Services/V2/OrchestratedCommerce/Agreements/AgreementTerminateOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.OrchestratedCommerce +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AgreementTerminateOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/OrchestratedCommerceService.cs b/src/Stripe.net/Services/V2/OrchestratedCommerceService.cs new file mode 100644 index 0000000000..f59b105794 --- /dev/null +++ b/src/Stripe.net/Services/V2/OrchestratedCommerceService.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2 +{ + using System; + using System.Threading; + using System.Threading.Tasks; + + public class OrchestratedCommerceService : Service + { + private V2.OrchestratedCommerce.AgreementService agreements; + + internal OrchestratedCommerceService(ApiRequestor requestor) + : base(requestor) + { + } + + internal OrchestratedCommerceService(IStripeClient client) + : base(client) + { + } + + public virtual V2.OrchestratedCommerce.AgreementService Agreements => this.agreements ??= new V2.OrchestratedCommerce.AgreementService( + this.Requestor); + } +} diff --git a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCaptureAmountDetailsLineItemOptions.cs b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCaptureAmountDetailsLineItemOptions.cs new file mode 100644 index 0000000000..0a6836ca49 --- /dev/null +++ b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCaptureAmountDetailsLineItemOptions.cs @@ -0,0 +1,61 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class OffSessionPaymentCaptureAmountDetailsLineItemOptions : INestedOptions + { + /// + /// The amount an item was discounted for. Positive integer. + /// + [JsonProperty("discount_amount")] + [STJS.JsonPropertyName("discount_amount")] + public long? DiscountAmount { get; set; } + + /// + /// Unique identifier of the product. At most 12 characters long. + /// + [JsonProperty("product_code")] + [STJS.JsonPropertyName("product_code")] + public string ProductCode { get; set; } + + /// + /// Name of the product. At most 100 characters long. + /// + [JsonProperty("product_name")] + [STJS.JsonPropertyName("product_name")] + public string ProductName { get; set; } + + /// + /// Number of items of the product. Positive integer. + /// + [JsonProperty("quantity")] + [STJS.JsonPropertyName("quantity")] + public long? Quantity { get; set; } + + /// + /// Contains information about the tax on the item. + /// + [JsonProperty("tax")] + [STJS.JsonPropertyName("tax")] + public OffSessionPaymentCaptureAmountDetailsLineItemTaxOptions Tax { get; set; } + + /// + /// Cost of the product. Positive integer. + /// + [JsonProperty("unit_cost")] + [STJS.JsonPropertyName("unit_cost")] + public long? UnitCost { get; set; } + + /// + /// A unit of measure for the line item, such as gallons, feet, meters, etc. The maximum + /// length is 12 characters. + /// + [JsonProperty("unit_of_measure")] + [STJS.JsonPropertyName("unit_of_measure")] + public string UnitOfMeasure { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCaptureAmountDetailsLineItemTaxOptions.cs b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCaptureAmountDetailsLineItemTaxOptions.cs new file mode 100644 index 0000000000..d3b4b1d10a --- /dev/null +++ b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCaptureAmountDetailsLineItemTaxOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class OffSessionPaymentCaptureAmountDetailsLineItemTaxOptions : INestedOptions + { + /// + /// Total portion of the amount that is for tax. + /// + [JsonProperty("total_tax_amount")] + [STJS.JsonPropertyName("total_tax_amount")] + public long? TotalTaxAmount { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCaptureAmountDetailsOptions.cs b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCaptureAmountDetailsOptions.cs new file mode 100644 index 0000000000..789e1ca3ed --- /dev/null +++ b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCaptureAmountDetailsOptions.cs @@ -0,0 +1,54 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class OffSessionPaymentCaptureAmountDetailsOptions : INestedOptions + { + /// + /// The amount the total transaction was discounted for. + /// + [JsonProperty("discount_amount")] + [STJS.JsonPropertyName("discount_amount")] + public long? DiscountAmount { get; set; } + + /// + /// Set to false to return arithmetic validation errors in the response without + /// failing the request. Use this when you want the operation to proceed regardless of + /// arithmetic errors in the line item data. Omit or set to true to immediately + /// return a 400 error when arithmetic validation fails. Use this for strict validation that + /// prevents processing with line item data that has arithmetic inconsistencies. For card + /// payments, Stripe doesn't send line item data to card networks if there's an arithmetic + /// validation error. + /// + [JsonProperty("enforce_arithmetic_validation")] + [STJS.JsonPropertyName("enforce_arithmetic_validation")] + public bool? EnforceArithmeticValidation { get; set; } + + /// + /// A list of line items, each containing information about a product in the + /// OffSessionPayment. There is a maximum of 10 line items. + /// + [JsonProperty("line_items")] + [STJS.JsonPropertyName("line_items")] + public List LineItems { get; set; } + + /// + /// Contains information about the shipping portion of the amount. + /// + [JsonProperty("shipping")] + [STJS.JsonPropertyName("shipping")] + public OffSessionPaymentCaptureAmountDetailsShippingOptions Shipping { get; set; } + + /// + /// Contains information about the tax portion of the amount. + /// + [JsonProperty("tax")] + [STJS.JsonPropertyName("tax")] + public OffSessionPaymentCaptureAmountDetailsTaxOptions Tax { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCaptureAmountDetailsShippingOptions.cs b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCaptureAmountDetailsShippingOptions.cs new file mode 100644 index 0000000000..0c56a0e73f --- /dev/null +++ b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCaptureAmountDetailsShippingOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class OffSessionPaymentCaptureAmountDetailsShippingOptions : INestedOptions + { + /// + /// Portion of the amount that is for shipping. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public long? Amount { get; set; } + + /// + /// The postal code that represents the shipping source. + /// + [JsonProperty("from_postal_code")] + [STJS.JsonPropertyName("from_postal_code")] + public string FromPostalCode { get; set; } + + /// + /// The postal code that represents the shipping destination. + /// + [JsonProperty("to_postal_code")] + [STJS.JsonPropertyName("to_postal_code")] + public string ToPostalCode { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCaptureAmountDetailsTaxOptions.cs b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCaptureAmountDetailsTaxOptions.cs new file mode 100644 index 0000000000..6144797591 --- /dev/null +++ b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCaptureAmountDetailsTaxOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class OffSessionPaymentCaptureAmountDetailsTaxOptions : INestedOptions + { + /// + /// Total portion of the amount that is for tax. + /// + [JsonProperty("total_tax_amount")] + [STJS.JsonPropertyName("total_tax_amount")] + public long? TotalTaxAmount { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCaptureOptions.cs b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCaptureOptions.cs index ee4908f1b0..08e3ec021f 100644 --- a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCaptureOptions.cs +++ b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCaptureOptions.cs @@ -9,6 +9,13 @@ namespace Stripe.V2.Payments [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class OffSessionPaymentCaptureOptions : BaseOptions, IHasMetadata { + /// + /// Provides industry-specific information about the amount. + /// + [JsonProperty("amount_details")] + [STJS.JsonPropertyName("amount_details")] + public OffSessionPaymentCaptureAmountDetailsOptions AmountDetails { get; set; } + /// /// The amount to capture. /// @@ -34,6 +41,13 @@ public class OffSessionPaymentCaptureOptions : BaseOptions, IHasMetadata [STJS.JsonPropertyName("metadata")] public Dictionary Metadata { get; set; } + /// + /// Provides industry-specific information about the payment. + /// + [JsonProperty("payment_details")] + [STJS.JsonPropertyName("payment_details")] + public OffSessionPaymentCapturePaymentDetailsOptions PaymentDetails { get; set; } + /// /// Text that appears on the customer’s statement as the statement descriptor for a non-card /// charge. This value overrides the account’s default statement descriptor. For information @@ -46,10 +60,10 @@ public class OffSessionPaymentCaptureOptions : BaseOptions, IHasMetadata public string StatementDescriptor { get; set; } /// - /// Provides information about a card charge. Concatenated to the account’s statement /// descriptor prefix to form the complete statement descriptor that appears on the - /// customer’s statement. + /// customer's statement. /// [JsonProperty("statement_descriptor_suffix")] [STJS.JsonPropertyName("statement_descriptor_suffix")] diff --git a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCapturePaymentDetailsOptions.cs b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCapturePaymentDetailsOptions.cs new file mode 100644 index 0000000000..bed8c0fe9d --- /dev/null +++ b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCapturePaymentDetailsOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class OffSessionPaymentCapturePaymentDetailsOptions : INestedOptions + { + /// + /// A unique value to identify the customer. This field is applicable only for card + /// payments. For card payments, this field is truncated to 25 alphanumeric characters, + /// excluding spaces, before being sent to card networks. + /// + [JsonProperty("customer_reference")] + [STJS.JsonPropertyName("customer_reference")] + public string CustomerReference { get; set; } + + /// + /// A unique value assigned by the business to identify the transaction. Required for L2 and + /// L3 rates. For Cards, this field is truncated to 25 alphanumeric characters, excluding + /// spaces, before being sent to card networks. + /// + [JsonProperty("order_reference")] + [STJS.JsonPropertyName("order_reference")] + public string OrderReference { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateAmountDetailsLineItemOptions.cs b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateAmountDetailsLineItemOptions.cs new file mode 100644 index 0000000000..c5919b45fb --- /dev/null +++ b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateAmountDetailsLineItemOptions.cs @@ -0,0 +1,61 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class OffSessionPaymentCreateAmountDetailsLineItemOptions : INestedOptions + { + /// + /// The amount an item was discounted for. Positive integer. + /// + [JsonProperty("discount_amount")] + [STJS.JsonPropertyName("discount_amount")] + public long? DiscountAmount { get; set; } + + /// + /// Unique identifier of the product. At most 12 characters long. + /// + [JsonProperty("product_code")] + [STJS.JsonPropertyName("product_code")] + public string ProductCode { get; set; } + + /// + /// Name of the product. At most 100 characters long. + /// + [JsonProperty("product_name")] + [STJS.JsonPropertyName("product_name")] + public string ProductName { get; set; } + + /// + /// Number of items of the product. Positive integer. + /// + [JsonProperty("quantity")] + [STJS.JsonPropertyName("quantity")] + public long? Quantity { get; set; } + + /// + /// Contains information about the tax on the item. + /// + [JsonProperty("tax")] + [STJS.JsonPropertyName("tax")] + public OffSessionPaymentCreateAmountDetailsLineItemTaxOptions Tax { get; set; } + + /// + /// Cost of the product. Positive integer. + /// + [JsonProperty("unit_cost")] + [STJS.JsonPropertyName("unit_cost")] + public long? UnitCost { get; set; } + + /// + /// A unit of measure for the line item, such as gallons, feet, meters, etc. The maximum + /// length is 12 characters. + /// + [JsonProperty("unit_of_measure")] + [STJS.JsonPropertyName("unit_of_measure")] + public string UnitOfMeasure { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateAmountDetailsLineItemTaxOptions.cs b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateAmountDetailsLineItemTaxOptions.cs new file mode 100644 index 0000000000..ce268fa123 --- /dev/null +++ b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateAmountDetailsLineItemTaxOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class OffSessionPaymentCreateAmountDetailsLineItemTaxOptions : INestedOptions + { + /// + /// Total portion of the amount that is for tax. + /// + [JsonProperty("total_tax_amount")] + [STJS.JsonPropertyName("total_tax_amount")] + public long? TotalTaxAmount { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateAmountDetailsOptions.cs b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateAmountDetailsOptions.cs new file mode 100644 index 0000000000..dc0d649545 --- /dev/null +++ b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateAmountDetailsOptions.cs @@ -0,0 +1,54 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class OffSessionPaymentCreateAmountDetailsOptions : INestedOptions + { + /// + /// The amount the total transaction was discounted for. + /// + [JsonProperty("discount_amount")] + [STJS.JsonPropertyName("discount_amount")] + public long? DiscountAmount { get; set; } + + /// + /// Set to false to return arithmetic validation errors in the response without + /// failing the request. Use this when you want the operation to proceed regardless of + /// arithmetic errors in the line item data. Omit or set to true to immediately + /// return a 400 error when arithmetic validation fails. Use this for strict validation that + /// prevents processing with line item data that has arithmetic inconsistencies. For card + /// payments, Stripe doesn't send line item data to card networks if there's an arithmetic + /// validation error. + /// + [JsonProperty("enforce_arithmetic_validation")] + [STJS.JsonPropertyName("enforce_arithmetic_validation")] + public bool? EnforceArithmeticValidation { get; set; } + + /// + /// A list of line items, each containing information about a product in the + /// OffSessionPayment. There is a maximum of 10 line items. + /// + [JsonProperty("line_items")] + [STJS.JsonPropertyName("line_items")] + public List LineItems { get; set; } + + /// + /// Contains information about the shipping portion of the amount. + /// + [JsonProperty("shipping")] + [STJS.JsonPropertyName("shipping")] + public OffSessionPaymentCreateAmountDetailsShippingOptions Shipping { get; set; } + + /// + /// Contains information about the tax portion of the amount. + /// + [JsonProperty("tax")] + [STJS.JsonPropertyName("tax")] + public OffSessionPaymentCreateAmountDetailsTaxOptions Tax { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateAmountDetailsShippingOptions.cs b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateAmountDetailsShippingOptions.cs new file mode 100644 index 0000000000..488b361b7c --- /dev/null +++ b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateAmountDetailsShippingOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class OffSessionPaymentCreateAmountDetailsShippingOptions : INestedOptions + { + /// + /// Portion of the amount that is for shipping. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public long? Amount { get; set; } + + /// + /// The postal code that represents the shipping source. + /// + [JsonProperty("from_postal_code")] + [STJS.JsonPropertyName("from_postal_code")] + public string FromPostalCode { get; set; } + + /// + /// The postal code that represents the shipping destination. + /// + [JsonProperty("to_postal_code")] + [STJS.JsonPropertyName("to_postal_code")] + public string ToPostalCode { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateAmountDetailsTaxOptions.cs b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateAmountDetailsTaxOptions.cs new file mode 100644 index 0000000000..b6f7b01b13 --- /dev/null +++ b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateAmountDetailsTaxOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class OffSessionPaymentCreateAmountDetailsTaxOptions : INestedOptions + { + /// + /// Total portion of the amount that is for tax. + /// + [JsonProperty("total_tax_amount")] + [STJS.JsonPropertyName("total_tax_amount")] + public long? TotalTaxAmount { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateOptions.cs b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateOptions.cs index b03582511e..a0557e556a 100644 --- a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateOptions.cs @@ -16,6 +16,13 @@ public class OffSessionPaymentCreateOptions : BaseOptions, IHasMetadata [STJS.JsonPropertyName("amount")] public V2.Amount Amount { get; set; } + /// + /// Provides industry-specific information about the amount. + /// + [JsonProperty("amount_details")] + [STJS.JsonPropertyName("amount_details")] + public OffSessionPaymentCreateAmountDetailsOptions AmountDetails { get; set; } + /// /// The amount of the application fee (if any) that will be requested to be applied to the /// payment and transferred to the application owner's Stripe account. @@ -46,6 +53,13 @@ public class OffSessionPaymentCreateOptions : BaseOptions, IHasMetadata [STJS.JsonPropertyName("customer")] public string Customer { get; set; } + /// + /// An arbitrary string attached to the object. Often useful for displaying to users. + /// + [JsonProperty("description")] + [STJS.JsonPropertyName("description")] + public string Description { get; set; } + /// /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the @@ -64,6 +78,13 @@ public class OffSessionPaymentCreateOptions : BaseOptions, IHasMetadata [STJS.JsonPropertyName("on_behalf_of")] public string OnBehalfOf { get; set; } + /// + /// Provides industry-specific information about the payment. + /// + [JsonProperty("payment_details")] + [STJS.JsonPropertyName("payment_details")] + public OffSessionPaymentCreatePaymentDetailsOptions PaymentDetails { get; set; } + /// /// ID of the payment method used in this OffSessionPayment. /// diff --git a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreatePaymentDetailsOptions.cs b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreatePaymentDetailsOptions.cs new file mode 100644 index 0000000000..a212a90c5d --- /dev/null +++ b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreatePaymentDetailsOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class OffSessionPaymentCreatePaymentDetailsOptions : INestedOptions + { + /// + /// A unique value to identify the customer. This field is applicable only for card + /// payments. For card payments, this field is truncated to 25 alphanumeric characters, + /// excluding spaces, before being sent to card networks. + /// + [JsonProperty("customer_reference")] + [STJS.JsonPropertyName("customer_reference")] + public string CustomerReference { get; set; } + + /// + /// A unique value assigned by the business to identify the transaction. Required for L2 and + /// L3 rates. For Cards, this field is truncated to 25 alphanumeric characters, excluding + /// spaces, before being sent to card networks. + /// + [JsonProperty("order_reference")] + [STJS.JsonPropertyName("order_reference")] + public string OrderReference { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreatePaymentMethodOptionsCardOptions.cs b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreatePaymentMethodOptionsCardOptions.cs index 4617c14de2..369be6e880 100644 --- a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreatePaymentMethodOptionsCardOptions.cs +++ b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreatePaymentMethodOptionsCardOptions.cs @@ -8,6 +8,14 @@ namespace Stripe.V2.Payments [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class OffSessionPaymentCreatePaymentMethodOptionsCardOptions : INestedOptions { + /// + /// The merchant category code for this transaction. Used in interchange and authorization + /// to improve auth rates. + /// + [JsonProperty("mcc")] + [STJS.JsonPropertyName("mcc")] + public string Mcc { get; set; } + /// /// If you are making a Credential On File transaction with a previously saved card, you /// should pass the Network Transaction ID from a prior initial authorization on Stripe diff --git a/src/Stripe.net/Services/V2/TestHelpers/FinancialAddresses/FinancialAddressCreditOptions.cs b/src/Stripe.net/Services/V2/TestHelpers/FinancialAddresses/FinancialAddressCreditOptions.cs index d455586960..77acc480b1 100644 --- a/src/Stripe.net/Services/V2/TestHelpers/FinancialAddresses/FinancialAddressCreditOptions.cs +++ b/src/Stripe.net/Services/V2/TestHelpers/FinancialAddresses/FinancialAddressCreditOptions.cs @@ -18,7 +18,8 @@ public class FinancialAddressCreditOptions : BaseOptions /// /// Open Enum. The network to use in simulating the funds flow. This will be the reflected /// in the resulting ReceivedCredit. - /// One of: ach, fps, rtp, sepa_credit_transfer, or wire. + /// One of: ach, acss, fps, rtp, sepa_credit_transfer, or + /// wire. /// [JsonProperty("network")] [STJS.JsonPropertyName("network")] diff --git a/src/Stripe.net/Services/V2Services.cs b/src/Stripe.net/Services/V2Services.cs index dedc95ffa8..6b377a7c52 100644 --- a/src/Stripe.net/Services/V2Services.cs +++ b/src/Stripe.net/Services/V2Services.cs @@ -8,10 +8,14 @@ namespace Stripe public class V2Services : Service { private V2.BillingService billing; + private V2.CommerceService commerce; private V2.CoreService core; private V2.DatumService data; + private V2.ExtendService extend; private V2.IamService iam; private V2.MoneyManagementService moneyManagement; + private V2.NetworkService network; + private V2.OrchestratedCommerceService orchestratedCommerce; private V2.PaymentService payments; private V2.ReportingService reporting; private V2.TaxService tax; @@ -30,18 +34,30 @@ internal V2Services(IStripeClient client) public virtual V2.BillingService Billing => this.billing ??= new V2.BillingService( this.Requestor); + public virtual V2.CommerceService Commerce => this.commerce ??= new V2.CommerceService( + this.Requestor); + public virtual V2.CoreService Core => this.core ??= new V2.CoreService( this.Requestor); public virtual V2.DatumService Data => this.data ??= new V2.DatumService( this.Requestor); + public virtual V2.ExtendService Extend => this.extend ??= new V2.ExtendService( + this.Requestor); + public virtual V2.IamService Iam => this.iam ??= new V2.IamService( this.Requestor); public virtual V2.MoneyManagementService MoneyManagement => this.moneyManagement ??= new V2.MoneyManagementService( this.Requestor); + public virtual V2.NetworkService Network => this.network ??= new V2.NetworkService( + this.Requestor); + + public virtual V2.OrchestratedCommerceService OrchestratedCommerce => this.orchestratedCommerce ??= new V2.OrchestratedCommerceService( + this.Requestor); + public virtual V2.PaymentService Payments => this.payments ??= new V2.PaymentService( this.Requestor); diff --git a/src/StripeTests/Services/GeneratedExamplesTest.cs b/src/StripeTests/Services/GeneratedExamplesTest.cs index 52fe3eb4d3..886dfe18f7 100644 --- a/src/StripeTests/Services/GeneratedExamplesTest.cs +++ b/src/StripeTests/Services/GeneratedExamplesTest.cs @@ -723,7 +723,7 @@ public void TestCoreEventsGet() HttpMethod.Get, "/v2/core/events/ll_123", HttpStatusCode.OK, - "{\"object\":\"v2.core.event\",\"changes\":{\"int_key\":123,\"string_key\":\"value\",\"boolean_key\":true,\"object_key\":{\"object_int_key\":123,\"object_string_key\":\"value\",\"object_boolean_key\":true},\"array_key\":[1,2,3]},\"context\":\"context\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"reason\":{\"request\":{\"client\":{\"api_key\":{\"id\":\"obj_123\"},\"dashboard_user\":{\"email\":\"email\",\"ip_address\":\"ip_address\",\"machine_identifier\":\"machine_identifier\"},\"stripe_action\":{},\"type\":\"api_key\"},\"id\":\"obj_123\",\"idempotency_key\":\"idempotency_key\"},\"type\":\"request\"},\"type\":\"type\"}"); + "{\"object\":\"v2.core.event\",\"changes\":{\"int_key\":123,\"string_key\":\"value\",\"boolean_key\":true,\"object_key\":{\"object_int_key\":123,\"object_string_key\":\"value\",\"object_boolean_key\":true},\"array_key\":[1,2,3]},\"context\":\"context\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"reason\":{\"request\":{\"client\":{\"api_key\":{\"id\":\"obj_123\"},\"dashboard_user\":{\"email\":\"email\",\"ip_address\":\"ip_address\",\"machine_identifier\":\"machine_identifier\"},\"stripe_action\":{},\"type\":\"api_key\"},\"id\":\"obj_123\",\"idempotency_key\":\"idempotency_key\"},\"type\":\"request\"},\"snapshot_event\":\"snapshot_event\",\"type\":\"type\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Events; Stripe.V2.Core.Event result = service.Get("ll_123"); @@ -8205,6 +8205,66 @@ public void TestV2BillingServiceActionPost2() "/v2/billing/service_actions/id_123"); } + [Fact] + public void TestV2CommerceProductCatalogImportGet() + { + this.StubRequest( + HttpMethod.Get, + "/v2/commerce/product_catalog/imports", + (HttpStatusCode)200, + "{\"data\":[{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"status\":\"awaiting_upload\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Commerce.ProductCatalog.Imports; + Stripe.V2.StripeList productCatalogImports = service + .List(); + this.AssertRequest( + HttpMethod.Get, + "/v2/commerce/product_catalog/imports"); + } + + [Fact] + public void TestV2CommerceProductCatalogImportPost() + { + this.StubRequest( + HttpMethod.Post, + "/v2/commerce/product_catalog/imports", + (HttpStatusCode)200, + "{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"status\":\"awaiting_upload\"}"); + var options = new Stripe.V2.Commerce.ProductCatalog.ImportCreateOptions + { + FeedType = "pricing", + Metadata = new Dictionary + { + { "key", "metadata" }, + }, + Mode = "upsert", + }; + var client = new StripeClient(this.Requestor); + var service = client.V2.Commerce.ProductCatalog.Imports; + Stripe.V2.Commerce.ProductCatalogImport productCatalogImport = service + .Create(options); + this.AssertRequest( + HttpMethod.Post, + "/v2/commerce/product_catalog/imports"); + } + + [Fact] + public void TestV2CommerceProductCatalogImportGet2() + { + this.StubRequest( + HttpMethod.Get, + "/v2/commerce/product_catalog/imports/id_123", + (HttpStatusCode)200, + "{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"status\":\"awaiting_upload\"}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Commerce.ProductCatalog.Imports; + Stripe.V2.Commerce.ProductCatalogImport productCatalogImport = service + .Get("id_123"); + this.AssertRequest( + HttpMethod.Get, + "/v2/commerce/product_catalog/imports/id_123"); + } + [Fact] public void TestV2CoreAccountGet() { @@ -8524,6 +8584,89 @@ public void TestV2CoreAccountTokenGet() "/v2/core/account_tokens/id_123"); } + [Fact] + public void TestV2CoreApprovalRequestGet() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/approval_requests", + (HttpStatusCode)200, + "{\"data\":[{\"object\":\"v2.core.approval_request\",\"action\":\"refund.create\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"requested_by\":{\"id\":\"obj_123\"},\"status\":\"failed\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.ApprovalRequests; + Stripe.V2.StripeList approvalRequests = service + .List(); + this.AssertRequest(HttpMethod.Get, "/v2/core/approval_requests"); + } + + [Fact] + public void TestV2CoreApprovalRequestGet2() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/approval_requests/id_123", + (HttpStatusCode)200, + "{\"object\":\"v2.core.approval_request\",\"action\":\"refund.create\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"requested_by\":{\"id\":\"obj_123\"},\"status\":\"failed\"}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.ApprovalRequests; + Stripe.V2.Core.ApprovalRequest approvalRequest = service.Get( + "id_123"); + this.AssertRequest( + HttpMethod.Get, + "/v2/core/approval_requests/id_123"); + } + + [Fact] + public void TestV2CoreApprovalRequestPost() + { + this.StubRequest( + HttpMethod.Post, + "/v2/core/approval_requests/id_123/cancel", + (HttpStatusCode)200, + "{\"object\":\"v2.core.approval_request\",\"action\":\"refund.create\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"requested_by\":{\"id\":\"obj_123\"},\"status\":\"failed\"}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.ApprovalRequests; + Stripe.V2.Core.ApprovalRequest approvalRequest = service.Cancel( + "id_123"); + this.AssertRequest( + HttpMethod.Post, + "/v2/core/approval_requests/id_123/cancel"); + } + + [Fact] + public void TestV2CoreApprovalRequestPost2() + { + this.StubRequest( + HttpMethod.Post, + "/v2/core/approval_requests/id_123/execute", + (HttpStatusCode)200, + "{\"object\":\"v2.core.approval_request\",\"action\":\"refund.create\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"requested_by\":{\"id\":\"obj_123\"},\"status\":\"failed\"}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.ApprovalRequests; + Stripe.V2.Core.ApprovalRequest approvalRequest = service.Execute( + "id_123"); + this.AssertRequest( + HttpMethod.Post, + "/v2/core/approval_requests/id_123/execute"); + } + + [Fact] + public void TestV2CoreApprovalRequestPost3() + { + this.StubRequest( + HttpMethod.Post, + "/v2/core/approval_requests/id_123/submit", + (HttpStatusCode)200, + "{\"object\":\"v2.core.approval_request\",\"action\":\"refund.create\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"requested_by\":{\"id\":\"obj_123\"},\"status\":\"failed\"}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.ApprovalRequests; + Stripe.V2.Core.ApprovalRequest approvalRequest = service.Submit( + "id_123"); + this.AssertRequest( + HttpMethod.Post, + "/v2/core/approval_requests/id_123/submit"); + } + [Fact] public void TestV2CoreBatchJobPost() { @@ -8536,7 +8679,7 @@ public void TestV2CoreBatchJobPost() { Endpoint = new Stripe.V2.Core.BatchJobCreateEndpointOptions { - HttpMethod = "post", + HttpMethod = "delete", Path = BatchJobEndpointPath.V1SubscriptionScheduleCreate, }, Metadata = new Dictionary @@ -8588,10 +8731,14 @@ public void TestV2CoreClaimableSandboxPost() HttpMethod.Post, "/v2/core/claimable_sandboxes", (HttpStatusCode)200, - "{\"object\":\"v2.core.claimable_sandbox\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"prefill\":{\"country\":\"country\",\"email\":\"email\",\"name\":\"name\"},\"sandbox_details\":{\"account\":\"account\"},\"status\":\"claimed\"}"); + "{\"object\":\"v2.core.claimable_sandbox\",\"app_channel\":\"testing\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"onboarding_link_details\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"refresh_url\":\"refresh_url\",\"url\":\"url\"},\"prefill\":{\"country\":\"country\",\"email\":\"email\",\"name\":\"name\"},\"sandbox_details\":{\"account\":\"account\"},\"status\":\"live\"}"); var options = new Stripe.V2.Core.ClaimableSandboxCreateOptions { EnableMcpAccess = true, + OnboardingLinkDetails = new Stripe.V2.Core.ClaimableSandboxCreateOnboardingLinkDetailsOptions + { + RefreshUrl = "refresh_url", + }, Prefill = new Stripe.V2.Core.ClaimableSandboxCreatePrefillOptions { Country = "country", @@ -8613,7 +8760,7 @@ public void TestV2CoreClaimableSandboxGet() HttpMethod.Get, "/v2/core/claimable_sandboxes/id_123", (HttpStatusCode)200, - "{\"object\":\"v2.core.claimable_sandbox\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"prefill\":{\"country\":\"country\",\"email\":\"email\",\"name\":\"name\"},\"sandbox_details\":{\"account\":\"account\"},\"status\":\"claimed\"}"); + "{\"object\":\"v2.core.claimable_sandbox\",\"app_channel\":\"testing\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"onboarding_link_details\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"refresh_url\":\"refresh_url\",\"url\":\"url\"},\"prefill\":{\"country\":\"country\",\"email\":\"email\",\"name\":\"name\"},\"sandbox_details\":{\"account\":\"account\"},\"status\":\"live\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.ClaimableSandboxes; Stripe.V2.Core.ClaimableSandbox claimableSandbox = service.Get( @@ -8623,6 +8770,23 @@ public void TestV2CoreClaimableSandboxGet() "/v2/core/claimable_sandboxes/id_123"); } + [Fact] + public void TestV2CoreClaimableSandboxPost2() + { + this.StubRequest( + HttpMethod.Post, + "/v2/core/claimable_sandboxes/id_123/renew_onboarding_link", + (HttpStatusCode)200, + "{\"object\":\"v2.core.claimable_sandbox\",\"app_channel\":\"testing\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"onboarding_link_details\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"refresh_url\":\"refresh_url\",\"url\":\"url\"},\"prefill\":{\"country\":\"country\",\"email\":\"email\",\"name\":\"name\"},\"sandbox_details\":{\"account\":\"account\"},\"status\":\"live\"}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.ClaimableSandboxes; + Stripe.V2.Core.ClaimableSandbox claimableSandbox = service + .RenewOnboardingLink("id_123"); + this.AssertRequest( + HttpMethod.Post, + "/v2/core/claimable_sandboxes/id_123/renew_onboarding_link"); + } + [Fact] public void TestV2CoreConnectionSessionPost() { @@ -8833,7 +8997,7 @@ public void TestV2CoreVaultGbBankAccountGet() HttpMethod.Get, "/v2/core/vault/gb_bank_accounts", (HttpStatusCode)200, - "{\"data\":[{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"toza\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Vault.GbBankAccounts; Stripe.V2.StripeList gbBankAccounts = service @@ -8850,7 +9014,7 @@ public void TestV2CoreVaultGbBankAccountPost() HttpMethod.Post, "/v2/core/vault/gb_bank_accounts", (HttpStatusCode)200, - "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); + "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"toza\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); var options = new Stripe.V2.Core.Vault.GbBankAccountCreateOptions { Currency = "usd", @@ -8871,7 +9035,7 @@ public void TestV2CoreVaultGbBankAccountGet2() HttpMethod.Get, "/v2/core/vault/gb_bank_accounts/id_123", (HttpStatusCode)200, - "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); + "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"toza\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Vault.GbBankAccounts; Stripe.V2.Core.Vault.GbBankAccount gbBankAccount = service.Get( @@ -8888,7 +9052,7 @@ public void TestV2CoreVaultGbBankAccountPost2() HttpMethod.Post, "/v2/core/vault/gb_bank_accounts/id_123/acknowledge_confirmation_of_payee", (HttpStatusCode)200, - "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); + "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"toza\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Vault.GbBankAccounts; Stripe.V2.Core.Vault.GbBankAccount gbBankAccount = service @@ -8905,7 +9069,7 @@ public void TestV2CoreVaultGbBankAccountPost3() HttpMethod.Post, "/v2/core/vault/gb_bank_accounts/id_123/archive", (HttpStatusCode)200, - "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); + "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"toza\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Vault.GbBankAccounts; Stripe.V2.Core.Vault.GbBankAccount gbBankAccount = service.Archive( @@ -8922,7 +9086,7 @@ public void TestV2CoreVaultGbBankAccountPost4() HttpMethod.Post, "/v2/core/vault/gb_bank_accounts/id_123/initiate_confirmation_of_payee", (HttpStatusCode)200, - "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); + "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"toza\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Vault.GbBankAccounts; Stripe.V2.Core.Vault.GbBankAccount gbBankAccount = service @@ -9059,51 +9223,80 @@ public void TestV2CoreVaultUsBankAccountPost5() } [Fact] - public void TestV2CoreWorkflowGet() + public void TestV2DataReportingQueryRunPost() { this.StubRequest( - HttpMethod.Get, - "/v2/core/workflows", + HttpMethod.Post, + "/v2/data/reporting/query_runs", (HttpStatusCode)200, - "{\"data\":[{\"object\":\"v2.core.workflow\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"triggers\":[{\"type\":\"event_trigger\"}]}],\"next_page_url\":null,\"previous_page_url\":null}", - "status[0]=draft"); - var options = new Stripe.V2.Core.WorkflowListOptions + "{\"object\":\"v2.data.reporting.query_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"sql\":\"sql\",\"status\":\"failed\",\"status_details\":{\"key\":{}}}"); + var options = new Stripe.V2.Data.Reporting.QueryRunCreateOptions { - Status = new List { "draft" }, + Sql = "sql", }; var client = new StripeClient(this.Requestor); - var service = client.V2.Core.Workflows; - Stripe.V2.StripeList workflows = service - .List(options); + var service = client.V2.Data.Reporting.QueryRuns; + Stripe.V2.Data.Reporting.QueryRun queryRun = service.Create( + options); + this.AssertRequest( + HttpMethod.Post, + "/v2/data/reporting/query_runs"); + } + + [Fact] + public void TestV2DataReportingQueryRunGet() + { + this.StubRequest( + HttpMethod.Get, + "/v2/data/reporting/query_runs/id_123", + (HttpStatusCode)200, + "{\"object\":\"v2.data.reporting.query_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"sql\":\"sql\",\"status\":\"failed\",\"status_details\":{\"key\":{}}}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Data.Reporting.QueryRuns; + Stripe.V2.Data.Reporting.QueryRun queryRun = service.Get("id_123"); this.AssertRequest( HttpMethod.Get, - "/v2/core/workflows", - "status[0]=draft"); + "/v2/data/reporting/query_runs/id_123"); + } + + [Fact] + public void TestV2ExtendWorkflowGet() + { + this.StubRequest( + HttpMethod.Get, + "/v2/extend/workflows", + (HttpStatusCode)200, + "{\"data\":[{\"object\":\"v2.extend.workflow\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"title\":\"title\",\"triggers\":[{\"type\":\"event_trigger\"}]}],\"next_page_url\":null,\"previous_page_url\":null}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Extend.Workflows; + Stripe.V2.StripeList workflows = service + .List(); + this.AssertRequest(HttpMethod.Get, "/v2/extend/workflows"); } [Fact] - public void TestV2CoreWorkflowGet2() + public void TestV2ExtendWorkflowGet2() { this.StubRequest( HttpMethod.Get, - "/v2/core/workflows/id_123", + "/v2/extend/workflows/id_123", (HttpStatusCode)200, - "{\"object\":\"v2.core.workflow\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"triggers\":[{\"type\":\"event_trigger\"}]}"); + "{\"object\":\"v2.extend.workflow\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"title\":\"title\",\"triggers\":[{\"type\":\"event_trigger\"}]}"); var client = new StripeClient(this.Requestor); - var service = client.V2.Core.Workflows; - Stripe.V2.Core.Workflow workflow = service.Get("id_123"); - this.AssertRequest(HttpMethod.Get, "/v2/core/workflows/id_123"); + var service = client.V2.Extend.Workflows; + Stripe.V2.Extend.Workflow workflow = service.Get("id_123"); + this.AssertRequest(HttpMethod.Get, "/v2/extend/workflows/id_123"); } [Fact] - public void TestV2CoreWorkflowPost() + public void TestV2ExtendWorkflowPost() { this.StubRequest( HttpMethod.Post, - "/v2/core/workflows/id_123/invoke", + "/v2/extend/workflows/id_123/invoke", (HttpStatusCode)200, - "{\"object\":\"v2.core.workflow_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\",\"status_transitions\":{},\"trigger\":{\"type\":\"event_trigger\"},\"workflow\":\"workflow\"}"); - var options = new Stripe.V2.Core.WorkflowInvokeOptions + "{\"object\":\"v2.extend.workflow_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\",\"status_transitions\":{},\"trigger\":{\"type\":\"event_trigger\"},\"workflow\":\"workflow\"}"); + var options = new Stripe.V2.Extend.WorkflowInvokeOptions { InputParameters = new Dictionary { @@ -9122,88 +9315,59 @@ public void TestV2CoreWorkflowPost() }, }; var client = new StripeClient(this.Requestor); - var service = client.V2.Core.Workflows; - Stripe.V2.Core.WorkflowRun workflowRun = service.Invoke( + var service = client.V2.Extend.Workflows; + Stripe.V2.Extend.WorkflowRun workflowRun = service.Invoke( "id_123", options); this.AssertRequest( HttpMethod.Post, - "/v2/core/workflows/id_123/invoke"); + "/v2/extend/workflows/id_123/invoke"); } [Fact] - public void TestV2CoreWorkflowRunGet() + public void TestV2ExtendWorkflowRunGet() { this.StubRequest( HttpMethod.Get, - "/v2/core/workflow_runs", + "/v2/extend/workflow_runs", (HttpStatusCode)200, - "{\"data\":[{\"object\":\"v2.core.workflow_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\",\"status_transitions\":{},\"trigger\":{\"type\":\"event_trigger\"},\"workflow\":\"workflow\"}],\"next_page_url\":null,\"previous_page_url\":null}", - "status[0]=failed&workflow[0]=workflow"); - var options = new Stripe.V2.Core.WorkflowRunListOptions - { - Status = new List { "failed" }, - Workflow = new List { "workflow" }, - }; + "{\"data\":[{\"object\":\"v2.extend.workflow_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\",\"status_transitions\":{},\"trigger\":{\"type\":\"event_trigger\"},\"workflow\":\"workflow\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); - var service = client.V2.Core.WorkflowRuns; - Stripe.V2.StripeList workflowRuns = service - .List(options); - this.AssertRequest( - HttpMethod.Get, - "/v2/core/workflow_runs", - "status[0]=failed&workflow[0]=workflow"); + var service = client.V2.Extend.WorkflowRuns; + Stripe.V2.StripeList workflowRuns = service + .List(); + this.AssertRequest(HttpMethod.Get, "/v2/extend/workflow_runs"); } [Fact] - public void TestV2CoreWorkflowRunGet2() + public void TestV2ExtendWorkflowRunGet2() { this.StubRequest( HttpMethod.Get, - "/v2/core/workflow_runs/id_123", + "/v2/extend/workflow_runs/id_123", (HttpStatusCode)200, - "{\"object\":\"v2.core.workflow_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\",\"status_transitions\":{},\"trigger\":{\"type\":\"event_trigger\"},\"workflow\":\"workflow\"}"); + "{\"object\":\"v2.extend.workflow_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\",\"status_transitions\":{},\"trigger\":{\"type\":\"event_trigger\"},\"workflow\":\"workflow\"}"); var client = new StripeClient(this.Requestor); - var service = client.V2.Core.WorkflowRuns; - Stripe.V2.Core.WorkflowRun workflowRun = service.Get("id_123"); - this.AssertRequest(HttpMethod.Get, "/v2/core/workflow_runs/id_123"); - } - - [Fact] - public void TestV2DataReportingQueryRunPost() - { - this.StubRequest( - HttpMethod.Post, - "/v2/data/reporting/query_runs", - (HttpStatusCode)200, - "{\"object\":\"v2.data.reporting.query_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"sql\":\"sql\",\"status\":\"failed\",\"status_details\":{\"key\":{}}}"); - var options = new Stripe.V2.Data.Reporting.QueryRunCreateOptions - { - Sql = "sql", - }; - var client = new StripeClient(this.Requestor); - var service = client.V2.Data.Reporting.QueryRuns; - Stripe.V2.Data.Reporting.QueryRun queryRun = service.Create( - options); + var service = client.V2.Extend.WorkflowRuns; + Stripe.V2.Extend.WorkflowRun workflowRun = service.Get("id_123"); this.AssertRequest( - HttpMethod.Post, - "/v2/data/reporting/query_runs"); + HttpMethod.Get, + "/v2/extend/workflow_runs/id_123"); } [Fact] - public void TestV2DataReportingQueryRunGet() + public void TestV2IamActivityLogGet() { this.StubRequest( HttpMethod.Get, - "/v2/data/reporting/query_runs/id_123", + "/v2/iam/activity_logs", (HttpStatusCode)200, - "{\"object\":\"v2.data.reporting.query_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"sql\":\"sql\",\"status\":\"failed\",\"status_details\":{\"key\":{}}}"); + "{\"data\":[{\"object\":\"v2.iam.activity_log\",\"actor\":{\"type\":\"api_key\"},\"context\":\"context\",\"created\":\"1970-01-12T21:42:34.472Z\",\"details\":{\"type\":\"api_key\"},\"id\":\"obj_123\",\"livemode\":true,\"type\":\"api_key_created\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); - var service = client.V2.Data.Reporting.QueryRuns; - Stripe.V2.Data.Reporting.QueryRun queryRun = service.Get("id_123"); - this.AssertRequest( - HttpMethod.Get, - "/v2/data/reporting/query_runs/id_123"); + var service = client.V2.Iam.ActivityLogs; + Stripe.V2.StripeList activityLogs = service + .List(); + this.AssertRequest(HttpMethod.Get, "/v2/iam/activity_logs"); } [Fact] @@ -9340,7 +9504,7 @@ public void TestV2MoneyManagementCurrencyConversionGet() HttpMethod.Get, "/v2/money_management/currency_conversions", (HttpStatusCode)200, - "{\"data\":[{\"object\":\"v2.money_management.currency_conversion\",\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{\"currency\":\"USD\",\"value\":96}},\"id\":\"obj_123\",\"livemode\":true,\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.money_management.currency_conversion\",\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"from\":{\"amount\":{\"currency\":\"USD\",\"value\":96}},\"id\":\"obj_123\",\"livemode\":true,\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.CurrencyConversions; Stripe.V2.StripeList currencyConversions = service @@ -9357,10 +9521,9 @@ public void TestV2MoneyManagementCurrencyConversionPost() HttpMethod.Post, "/v2/money_management/currency_conversions", (HttpStatusCode)200, - "{\"object\":\"v2.money_management.currency_conversion\",\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{\"currency\":\"USD\",\"value\":96}},\"id\":\"obj_123\",\"livemode\":true,\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}"); + "{\"object\":\"v2.money_management.currency_conversion\",\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"from\":{\"amount\":{\"currency\":\"USD\",\"value\":96}},\"id\":\"obj_123\",\"livemode\":true,\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}"); var options = new Stripe.V2.MoneyManagement.CurrencyConversionCreateOptions { - FinancialAccount = "financial_account", From = new Stripe.V2.MoneyManagement.CurrencyConversionCreateFromOptions { Amount = new Stripe.V2.Amount @@ -9396,7 +9559,7 @@ public void TestV2MoneyManagementCurrencyConversionGet2() HttpMethod.Get, "/v2/money_management/currency_conversions/id_123", (HttpStatusCode)200, - "{\"object\":\"v2.money_management.currency_conversion\",\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{\"currency\":\"USD\",\"value\":96}},\"id\":\"obj_123\",\"livemode\":true,\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}"); + "{\"object\":\"v2.money_management.currency_conversion\",\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"from\":{\"amount\":{\"currency\":\"USD\",\"value\":96}},\"id\":\"obj_123\",\"livemode\":true,\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.CurrencyConversions; Stripe.V2.MoneyManagement.CurrencyConversion currencyConversion = service @@ -9413,7 +9576,7 @@ public void TestV2MoneyManagementFinancialAccountGet() HttpMethod.Get, "/v2/money_management/financial_accounts", (HttpStatusCode)200, - "{\"data\":[{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"payments\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"accrued_fees\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAccounts; Stripe.V2.StripeList financialAccounts = service @@ -9430,7 +9593,7 @@ public void TestV2MoneyManagementFinancialAccountPost() HttpMethod.Post, "/v2/money_management/financial_accounts", (HttpStatusCode)200, - "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"payments\"}"); + "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"accrued_fees\"}"); var options = new Stripe.V2.MoneyManagement.FinancialAccountCreateOptions { Type = "storage", @@ -9451,7 +9614,7 @@ public void TestV2MoneyManagementFinancialAccountGet2() HttpMethod.Get, "/v2/money_management/financial_accounts/id_123", (HttpStatusCode)200, - "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"payments\"}"); + "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"accrued_fees\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAccounts; Stripe.V2.MoneyManagement.FinancialAccount financialAccount = service @@ -9468,7 +9631,7 @@ public void TestV2MoneyManagementFinancialAccountPost2() HttpMethod.Post, "/v2/money_management/financial_accounts/id_123", (HttpStatusCode)200, - "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"payments\"}"); + "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"accrued_fees\"}"); var options = new Stripe.V2.MoneyManagement.FinancialAccountUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAccounts; @@ -9486,7 +9649,7 @@ public void TestV2MoneyManagementFinancialAccountPost3() HttpMethod.Post, "/v2/money_management/financial_accounts/id_123/close", (HttpStatusCode)200, - "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"payments\"}"); + "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"accrued_fees\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAccounts; Stripe.V2.MoneyManagement.FinancialAccount financialAccount = service @@ -9524,7 +9687,7 @@ public void TestV2MoneyManagementFinancialAddressPost() var options = new Stripe.V2.MoneyManagement.FinancialAddressCreateOptions { FinancialAccount = "financial_account", - Type = "gb_bank_account", + Type = "sepa_bank_account", }; var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAddresses; @@ -10136,7 +10299,7 @@ public void TestV2MoneyManagementTransactionGet() HttpMethod.Get, "/v2/money_management/transactions", (HttpStatusCode)200, - "{\"data\":[{\"object\":\"v2.money_management.transaction\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"category\":\"received_debit_reversal\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"pending\",\"status_transitions\":{}}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.money_management.transaction\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"category\":\"anticipation_repayment\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"pending\",\"status_transitions\":{}}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.Transactions; Stripe.V2.StripeList transactions = service @@ -10153,7 +10316,7 @@ public void TestV2MoneyManagementTransactionGet2() HttpMethod.Get, "/v2/money_management/transactions/id_123", (HttpStatusCode)200, - "{\"object\":\"v2.money_management.transaction\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"category\":\"received_debit_reversal\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"pending\",\"status_transitions\":{}}"); + "{\"object\":\"v2.money_management.transaction\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"category\":\"anticipation_repayment\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"pending\",\"status_transitions\":{}}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.Transactions; Stripe.V2.MoneyManagement.Transaction transaction = service.Get( @@ -10170,7 +10333,7 @@ public void TestV2MoneyManagementTransactionEntryGet() HttpMethod.Get, "/v2/money_management/transaction_entries", (HttpStatusCode)200, - "{\"data\":[{\"object\":\"v2.money_management.transaction_entry\",\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"livemode\":true,\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit_reversal\",\"financial_account\":\"financial_account\"}}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.money_management.transaction_entry\",\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"livemode\":true,\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"anticipation_repayment\",\"financial_account\":\"financial_account\"}}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.TransactionEntries; Stripe.V2.StripeList transactionEntries = service @@ -10187,7 +10350,7 @@ public void TestV2MoneyManagementTransactionEntryGet2() HttpMethod.Get, "/v2/money_management/transaction_entries/id_123", (HttpStatusCode)200, - "{\"object\":\"v2.money_management.transaction_entry\",\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"livemode\":true,\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit_reversal\",\"financial_account\":\"financial_account\"}}"); + "{\"object\":\"v2.money_management.transaction_entry\",\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"livemode\":true,\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"anticipation_repayment\",\"financial_account\":\"financial_account\"}}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.TransactionEntries; Stripe.V2.MoneyManagement.TransactionEntry transactionEntry = service @@ -10197,6 +10360,128 @@ public void TestV2MoneyManagementTransactionEntryGet2() "/v2/money_management/transaction_entries/id_123"); } + [Fact] + public void TestV2NetworkBusinessProfileGet() + { + this.StubRequest( + HttpMethod.Get, + "/v2/network/business_profiles/me", + (HttpStatusCode)200, + "{\"object\":\"v2.network.business_profile\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true,\"username\":\"username\"}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Network.BusinessProfiles; + Stripe.V2.Network.BusinessProfile businessProfile = service.Me(); + this.AssertRequest( + HttpMethod.Get, + "/v2/network/business_profiles/me"); + } + + [Fact] + public void TestV2NetworkBusinessProfileGet2() + { + this.StubRequest( + HttpMethod.Get, + "/v2/network/business_profiles/id_123", + (HttpStatusCode)200, + "{\"object\":\"v2.network.business_profile\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true,\"username\":\"username\"}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Network.BusinessProfiles; + Stripe.V2.Network.BusinessProfile businessProfile = service.Get( + "id_123"); + this.AssertRequest( + HttpMethod.Get, + "/v2/network/business_profiles/id_123"); + } + + [Fact] + public void TestV2OrchestratedCommerceAgreementGet() + { + this.StubRequest( + HttpMethod.Get, + "/v2/orchestrated_commerce/agreements", + (HttpStatusCode)200, + "{\"data\":[{\"object\":\"v2.orchestrated_commerce.agreement\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"initiated_by\":\"seller\",\"livemode\":true,\"orchestrator_details\":{\"name\":\"name\",\"network_business_profile\":\"network_business_profile\"},\"seller_details\":{\"network_business_profile\":\"network_business_profile\"},\"status\":\"partially_confirmed\",\"status_transitions\":{}}],\"next_page_url\":null,\"previous_page_url\":null}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.OrchestratedCommerce.Agreements; + Stripe.V2.StripeList agreements = service + .List(); + this.AssertRequest( + HttpMethod.Get, + "/v2/orchestrated_commerce/agreements"); + } + + [Fact] + public void TestV2OrchestratedCommerceAgreementPost() + { + this.StubRequest( + HttpMethod.Post, + "/v2/orchestrated_commerce/agreements", + (HttpStatusCode)200, + "{\"object\":\"v2.orchestrated_commerce.agreement\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"initiated_by\":\"seller\",\"livemode\":true,\"orchestrator_details\":{\"name\":\"name\",\"network_business_profile\":\"network_business_profile\"},\"seller_details\":{\"network_business_profile\":\"network_business_profile\"},\"status\":\"partially_confirmed\",\"status_transitions\":{}}"); + var options = new Stripe.V2.OrchestratedCommerce.AgreementCreateOptions + { + Orchestrator = "orchestrator", + }; + var client = new StripeClient(this.Requestor); + var service = client.V2.OrchestratedCommerce.Agreements; + Stripe.V2.OrchestratedCommerce.Agreement agreement = service.Create( + options); + this.AssertRequest( + HttpMethod.Post, + "/v2/orchestrated_commerce/agreements"); + } + + [Fact] + public void TestV2OrchestratedCommerceAgreementGet2() + { + this.StubRequest( + HttpMethod.Get, + "/v2/orchestrated_commerce/agreements/id_123", + (HttpStatusCode)200, + "{\"object\":\"v2.orchestrated_commerce.agreement\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"initiated_by\":\"seller\",\"livemode\":true,\"orchestrator_details\":{\"name\":\"name\",\"network_business_profile\":\"network_business_profile\"},\"seller_details\":{\"network_business_profile\":\"network_business_profile\"},\"status\":\"partially_confirmed\",\"status_transitions\":{}}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.OrchestratedCommerce.Agreements; + Stripe.V2.OrchestratedCommerce.Agreement agreement = service.Get( + "id_123"); + this.AssertRequest( + HttpMethod.Get, + "/v2/orchestrated_commerce/agreements/id_123"); + } + + [Fact] + public void TestV2OrchestratedCommerceAgreementPost2() + { + this.StubRequest( + HttpMethod.Post, + "/v2/orchestrated_commerce/agreements/id_123/confirm", + (HttpStatusCode)200, + "{\"object\":\"v2.orchestrated_commerce.agreement\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"initiated_by\":\"seller\",\"livemode\":true,\"orchestrator_details\":{\"name\":\"name\",\"network_business_profile\":\"network_business_profile\"},\"seller_details\":{\"network_business_profile\":\"network_business_profile\"},\"status\":\"partially_confirmed\",\"status_transitions\":{}}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.OrchestratedCommerce.Agreements; + Stripe.V2.OrchestratedCommerce.Agreement agreement = service + .Confirm("id_123"); + this.AssertRequest( + HttpMethod.Post, + "/v2/orchestrated_commerce/agreements/id_123/confirm"); + } + + [Fact] + public void TestV2OrchestratedCommerceAgreementPost3() + { + this.StubRequest( + HttpMethod.Post, + "/v2/orchestrated_commerce/agreements/id_123/terminate", + (HttpStatusCode)200, + "{\"object\":\"v2.orchestrated_commerce.agreement\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"initiated_by\":\"seller\",\"livemode\":true,\"orchestrator_details\":{\"name\":\"name\",\"network_business_profile\":\"network_business_profile\"},\"seller_details\":{\"network_business_profile\":\"network_business_profile\"},\"status\":\"partially_confirmed\",\"status_transitions\":{}}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.OrchestratedCommerce.Agreements; + Stripe.V2.OrchestratedCommerce.Agreement agreement = service + .Terminate("id_123"); + this.AssertRequest( + HttpMethod.Post, + "/v2/orchestrated_commerce/agreements/id_123/terminate"); + } + [Fact] public void TestV2PaymentsOffSessionPaymentGet() { @@ -10716,7 +11001,7 @@ public void TestV2TestHelpersFinancialAddressPost() var options = new Stripe.V2.TestHelpers.FinancialAddressCreditOptions { Amount = new Stripe.V2.Amount { Value = 96, Currency = "USD" }, - Network = "ach", + Network = "fps", }; var client = new StripeClient(this.Requestor); var service = client.V2.TestHelpers.FinancialAddresses; @@ -10843,20 +11128,39 @@ public void TestCannotProceedError() { this.StubRequest( HttpMethod.Post, - "/v2/money_management/payout_methods/id_123/archive", + "/v2/extend/workflows/id_123/invoke", (HttpStatusCode)400, "{\"error\":{\"type\":\"cannot_proceed\",\"code\":\"default_payout_method_cannot_be_archived\"}}"); var exception = Assert.Throws( () => { + var options = new Stripe.V2.Extend.WorkflowInvokeOptions + { + InputParameters = new Dictionary + { + { "int_key", 123 }, + { "string_key", "value" }, + { "boolean_key", true }, + { + "object_key", new Dictionary + { + { "object_int_key", 123 }, + { "object_string_key", "value" }, + { "object_boolean_key", true }, + } + }, + { "array_key", new List { 1, 2, 3 } }, + }, + }; var client = new StripeClient(this.Requestor); - var service = client.V2.MoneyManagement.PayoutMethods; - Stripe.V2.MoneyManagement.PayoutMethod payoutMethod = service - .Archive("id_123"); + var service = client.V2.Extend.Workflows; + Stripe.V2.Extend.WorkflowRun workflowRun = service.Invoke( + "id_123", + options); }); this.AssertRequest( HttpMethod.Post, - "/v2/money_management/payout_methods/id_123/archive"); + "/v2/extend/workflows/id_123/invoke"); } [Fact] @@ -10915,7 +11219,6 @@ public void TestFeatureNotEnabledError() { var options = new Stripe.V2.MoneyManagement.CurrencyConversionCreateOptions { - FinancialAccount = "financial_account", From = new Stripe.V2.MoneyManagement.CurrencyConversionCreateFromOptions(), To = new Stripe.V2.MoneyManagement.CurrencyConversionCreateToOptions(), }; @@ -10943,7 +11246,7 @@ public void TestFinancialAccountNotOpenError() var options = new Stripe.V2.MoneyManagement.FinancialAddressCreateOptions { FinancialAccount = "financial_account", - Type = "gb_bank_account", + Type = "sepa_bank_account", }; var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAddresses; @@ -10955,6 +11258,32 @@ public void TestFinancialAccountNotOpenError() "/v2/money_management/financial_addresses"); } + [Fact] + public void TestFxQuoteExpiredError() + { + this.StubRequest( + HttpMethod.Post, + "/v2/money_management/currency_conversions", + (HttpStatusCode)400, + "{\"error\":{\"type\":\"fx_quote_expired\",\"code\":\"currency_conversion_fx_quote_expired\"}}"); + var exception = Assert.Throws( + () => + { + var options = new Stripe.V2.MoneyManagement.CurrencyConversionCreateOptions + { + From = new Stripe.V2.MoneyManagement.CurrencyConversionCreateFromOptions(), + To = new Stripe.V2.MoneyManagement.CurrencyConversionCreateToOptions(), + }; + var client = new StripeClient(this.Requestor); + var service = client.V2.MoneyManagement.CurrencyConversions; + Stripe.V2.MoneyManagement.CurrencyConversion currencyConversion = service + .Create(options); + }); + this.AssertRequest( + HttpMethod.Post, + "/v2/money_management/currency_conversions"); + } + [Fact] public void TestInsufficientFundsError() {