From 7f661af5100b2d0abd167b90a7cddd53d72af806 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 11 Mar 2026 16:24:40 +0000 Subject: [PATCH 01/14] Update generated code for v2191 and --- OPENAPI_VERSION | 2 +- .../Entities/Checkout/Sessions/Session.cs | 26 +++++ .../Sessions/SessionCurrentAttempt.cs | 66 +++++++++++ .../SessionCurrentAttemptBillingDetails.cs | 26 +++++ ...ssionCurrentAttemptPaymentMethodDetails.cs | 39 +++++++ ...nCurrentAttemptPaymentMethodDetailsCard.cs | 107 ++++++++++++++++++ ...ntAttemptPaymentMethodDetailsCardWallet.cs | 24 ++++ .../SessionCurrentAttemptShippingDetails.cs | 26 +++++ .../PaymentAttempts/PaymentAttempt.cs | 51 +++++++++ .../RegistrationCountryOptionsUs.cs | 12 +- ...RegistrationCountryOptionsUsHomeRuleTax.cs | 22 ++++ .../Public/StripeTypeRegistry.cs | 1 + .../Sessions/SessionApproveOptions.cs | 52 +++++++++ .../Checkout/Sessions/SessionCreateOptions.cs | 16 +++ .../Checkout/Sessions/SessionService.cs | 18 +++ .../PaymentAttemptGetOptions.cs | 7 ++ .../PaymentAttempts/PaymentAttemptService.cs | 45 ++++++++ .../Services/OrchestrationService.cs | 25 ++++ .../PaymentAttemptRecordAmountOptions.cs | 33 ++++++ ...mentAttemptRecordCustomerDetailsOptions.cs | 47 ++++++++ ...emptRecordProcessorDetailsCustomOptions.cs | 20 ++++ ...entAttemptRecordProcessorDetailsOptions.cs | 31 +++++ .../PaymentAttemptRecordRefundedOptions.cs | 24 ++++ ...AttemptRecordReportAuthenticatedOptions.cs | 37 ++++++ ...ymentAttemptRecordReportCanceledOptions.cs | 37 ++++++ ...PaymentAttemptRecordReportFailedOptions.cs | 50 ++++++++ ...entAttemptRecordReportGuaranteedOptions.cs | 37 ++++++ ...AttemptRecordReportInformationalOptions.cs | 51 +++++++++ ...PaymentAttemptRecordReportRefundOptions.cs | 76 +++++++++++++ .../PaymentAttemptRecordService.cs | 96 ++++++++++++++++ ...mentAttemptRecordShippingDetailsOptions.cs | 38 +++++++ .../PaymentRecordFailedOptions.cs | 13 +++ ...RecordReportPaymentAttemptFailedOptions.cs | 13 +++ ...ationCountryOptionsUsHomeRuleTaxOptions.cs | 22 ++++ .../RegistrationCountryOptionsUsOptions.cs | 15 ++- src/Stripe.net/Services/V1Services.cs | 4 + 36 files changed, 1202 insertions(+), 7 deletions(-) create mode 100644 src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttempt.cs create mode 100644 src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptBillingDetails.cs create mode 100644 src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetails.cs create mode 100644 src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsCard.cs create mode 100644 src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsCardWallet.cs create mode 100644 src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptShippingDetails.cs create mode 100644 src/Stripe.net/Entities/Orchestration/PaymentAttempts/PaymentAttempt.cs create mode 100644 src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsUsHomeRuleTax.cs create mode 100644 src/Stripe.net/Services/Checkout/Sessions/SessionApproveOptions.cs create mode 100644 src/Stripe.net/Services/Orchestration/PaymentAttempts/PaymentAttemptGetOptions.cs create mode 100644 src/Stripe.net/Services/Orchestration/PaymentAttempts/PaymentAttemptService.cs create mode 100644 src/Stripe.net/Services/OrchestrationService.cs create mode 100644 src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordAmountOptions.cs create mode 100644 src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordCustomerDetailsOptions.cs create mode 100644 src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordProcessorDetailsCustomOptions.cs create mode 100644 src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordProcessorDetailsOptions.cs create mode 100644 src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordRefundedOptions.cs create mode 100644 src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportAuthenticatedOptions.cs create mode 100644 src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportCanceledOptions.cs create mode 100644 src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportFailedOptions.cs create mode 100644 src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportGuaranteedOptions.cs create mode 100644 src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportInformationalOptions.cs create mode 100644 src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportRefundOptions.cs create mode 100644 src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordShippingDetailsOptions.cs create mode 100644 src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsHomeRuleTaxOptions.cs diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 466b261db4..dceb4ec65d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2190 \ No newline at end of file +v2191 \ No newline at end of file diff --git a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs index df974d53f4..b380a2c333 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs @@ -96,6 +96,22 @@ public class Session : StripeEntity, IHasId, IHasMetadata, IHasObject #endif public long? AmountTotal { get; set; } + /// + /// Determines whether the customer's attempt to pay must be manually approved. + /// + /// Default is auto, when the customer's attempt to pay is approved automatically + /// with no action required on your server. + /// + /// When set to manual, you must approve the customer's attempt to pay by calling approve from your server. + /// One of: auto, or manual. + /// + [JsonProperty("approval_method")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("approval_method")] +#endif + public string ApprovalMethod { get; set; } + [JsonProperty("automatic_tax")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("automatic_tax")] @@ -220,6 +236,16 @@ public class Session : StripeEntity, IHasId, IHasMetadata, IHasObject #endif public SessionCurrencyConversion CurrencyConversion { get; set; } + /// + /// The customer's pending attempt to pay that requires your approval. Contains information + /// about the customer and their payment details. + /// + [JsonProperty("current_attempt")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("current_attempt")] +#endif + public SessionCurrentAttempt CurrentAttempt { get; set; } + /// /// Collect additional information from your customer using custom fields. Up to 3 fields /// are supported. You can't set this parameter if ui_mode is custom. diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttempt.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttempt.cs new file mode 100644 index 0000000000..e4e653b748 --- /dev/null +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttempt.cs @@ -0,0 +1,66 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SessionCurrentAttempt : StripeEntity, IHasId + { + /// + /// The customer's billing information, if provided. + /// + [JsonProperty("billing_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("billing_details")] +#endif + public SessionCurrentAttemptBillingDetails BillingDetails { get; set; } + + /// + /// The customer's email. + /// + [JsonProperty("email")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("email")] +#endif + public string Email { get; set; } + + /// + /// The attempt ID you will pass to the Checkout + /// Session approve endpoint to approve the attempt. + /// + [JsonProperty("id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("id")] +#endif + public string Id { get; set; } + + /// + /// Information about the payment method the customer is attempting to pay with. + /// + [JsonProperty("payment_method_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payment_method_details")] +#endif + public SessionCurrentAttemptPaymentMethodDetails PaymentMethodDetails { get; set; } + + /// + /// The customer's phone number. + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + + /// + /// The customer's shipping information, if provided. + /// + [JsonProperty("shipping_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("shipping_details")] +#endif + public SessionCurrentAttemptShippingDetails ShippingDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptBillingDetails.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptBillingDetails.cs new file mode 100644 index 0000000000..ab435bb0de --- /dev/null +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptBillingDetails.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SessionCurrentAttemptBillingDetails : StripeEntity + { + [JsonProperty("address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("address")] +#endif + public Address Address { get; set; } + + /// + /// Customer name. + /// + [JsonProperty("name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("name")] +#endif + public string Name { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetails.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetails.cs new file mode 100644 index 0000000000..a4f98d24a7 --- /dev/null +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetails.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SessionCurrentAttemptPaymentMethodDetails : StripeEntity + { + /// + /// Indicates whether this payment method can be shown again to its customer in a checkout + /// flow. + /// One of: always, limited, or unspecified. + /// + [JsonProperty("allow_redisplay")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("allow_redisplay")] +#endif + public string AllowRedisplay { get; set; } + + [JsonProperty("card")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("card")] +#endif + public SessionCurrentAttemptPaymentMethodDetailsCard Card { get; set; } + + /// + /// The type of payment method the customer is attempting to pay with. An additional hash is + /// included in the payment method details with a name matching this value. It contains + /// additional information specific to the payment method type. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsCard.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsCard.cs new file mode 100644 index 0000000000..d7d584b1cf --- /dev/null +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsCard.cs @@ -0,0 +1,107 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SessionCurrentAttemptPaymentMethodDetailsCard : StripeEntity + { + /// + /// The brand of the card, accounting for customer's brand choice on dual-branded cards. + /// One of: accel, amex, carnet, cartes_bancaires, + /// conecs, diners, discover, eftpos_au, elo, + /// girocard, interac, jcb, link, maestro, + /// mastercard, nyce, pulse, rupay, star, + /// unionpay, unknown, or visa. + /// + [JsonProperty("brand")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("brand")] +#endif + public string Brand { get; set; } + + /// + /// Two-letter ISO code representing the country of the card. You could use this attribute + /// to get a sense of the international breakdown of cards you've collected. + /// + [JsonProperty("country")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("country")] +#endif + public string Country { get; set; } + + /// + /// Two-digit number representing the card's expiration month. + /// + [JsonProperty("exp_month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("exp_month")] +#endif + public long ExpMonth { get; set; } + + /// + /// Four-digit number representing the card's expiration year. + /// + [JsonProperty("exp_year")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("exp_year")] +#endif + public long ExpYear { get; set; } + + /// + /// Uniquely identifies this particular card number. You can use this attribute to check + /// whether two customers who’ve signed up with you are using the same card number, for + /// example. For payment methods that tokenize card information (Apple Pay, Google Pay), the + /// tokenized number might be provided instead of the underlying card number. + /// + /// As of May 1, 2021, card fingerprint in India for Connect changed to allow two + /// fingerprints for the same card---one for India and one for the rest of the world.. + /// + [JsonProperty("fingerprint")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fingerprint")] +#endif + public string Fingerprint { get; set; } + + /// + /// Card funding type. Can be credit, debit, prepaid, or + /// unknown. + /// One of: credit, debit, prepaid, or unknown. + /// + [JsonProperty("funding")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("funding")] +#endif + public string Funding { get; set; } + + /// + /// Issuer identification number of the card. (For internal use only and not typically + /// available in standard API requests.). + /// + [JsonProperty("iin")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("iin")] +#endif + public string Iin { get; set; } + + /// + /// The last four digits of the card. + /// + [JsonProperty("last4")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("last4")] +#endif + public string Last4 { get; set; } + + /// + /// If this Card is part of a card wallet, this contains the details of the card wallet. + /// + [JsonProperty("wallet")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("wallet")] +#endif + public SessionCurrentAttemptPaymentMethodDetailsCardWallet Wallet { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsCardWallet.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsCardWallet.cs new file mode 100644 index 0000000000..e875f70fb1 --- /dev/null +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsCardWallet.cs @@ -0,0 +1,24 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SessionCurrentAttemptPaymentMethodDetailsCardWallet : StripeEntity + { + /// + /// The type of the wallet, one of amex_express_checkout, apple_pay, + /// google_pay, masterpass, samsung_pay, visa_checkout, + /// meta_pay, or link. + /// One of: amex_express_checkout, apple_pay, google_pay, link, + /// masterpass, meta_pay, samsung_pay, or visa_checkout. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptShippingDetails.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptShippingDetails.cs new file mode 100644 index 0000000000..9e364f18f3 --- /dev/null +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptShippingDetails.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SessionCurrentAttemptShippingDetails : StripeEntity + { + [JsonProperty("address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("address")] +#endif + public Address Address { get; set; } + + /// + /// Customer name. + /// + [JsonProperty("name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("name")] +#endif + public string Name { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Orchestration/PaymentAttempts/PaymentAttempt.cs b/src/Stripe.net/Entities/Orchestration/PaymentAttempts/PaymentAttempt.cs new file mode 100644 index 0000000000..fd488e8621 --- /dev/null +++ b/src/Stripe.net/Entities/Orchestration/PaymentAttempts/PaymentAttempt.cs @@ -0,0 +1,51 @@ +// File generated from our OpenAPI spec +namespace Stripe.Orchestration +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + /// + /// Represents orchestration information for a payment attempt record (e.g. return url). + /// + public class PaymentAttempt : StripeEntity, IHasId, IHasObject + { + /// + /// Unique identifier for the object. + /// + [JsonProperty("id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("id")] +#endif + public string Id { get; set; } + + /// + /// String representing the object's type. Objects of the same type share the same value. + /// + [JsonProperty("object")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("object")] +#endif + public string Object { get; set; } + + /// + /// If the object exists in live mode, the value is true. If the object exists in + /// test mode, the value is false. + /// + [JsonProperty("livemode")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("livemode")] +#endif + public bool Livemode { get; set; } + + /// + /// If present, the return URL for this payment attempt. + /// + [JsonProperty("return_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("return_url")] +#endif + public string ReturnUrl { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsUs.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsUs.cs index fb71d41510..e5771000a8 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsUs.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsUs.cs @@ -87,9 +87,9 @@ public class RegistrationCountryOptionsUs : StripeEntity /// Type of registration in the US. /// One of: admissions_tax, attendance_tax, entertainment_tax, - /// gross_receipts_tax, hospitality_tax, local_amusement_tax, - /// local_lease_tax, luxury_tax, resort_tax, - /// state_communications_tax, state_retail_delivery_fee, + /// gross_receipts_tax, home_rule_tax, hospitality_tax, + /// local_amusement_tax, local_lease_tax, luxury_tax, + /// resort_tax, state_communications_tax, state_retail_delivery_fee, /// state_sales_tax, or tourism_tax. /// [JsonProperty("type")] @@ -97,5 +97,11 @@ public class RegistrationCountryOptionsUs : StripeEntity + { + /// + /// A jurisdiction + /// code representing the local jurisdiction. + /// + [JsonProperty("jurisdiction")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("jurisdiction")] +#endif + public string Jurisdiction { get; set; } + } +} diff --git a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs index ecdb887fa4..2d8d2b548c 100644 --- a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs +++ b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs @@ -142,6 +142,7 @@ public static class StripeTypeRegistry { "login_link", typeof(LoginLink) }, { "mandate", typeof(Mandate) }, { "margin", typeof(Margin) }, + { "orchestration.payment_attempt", typeof(Orchestration.PaymentAttempt) }, { "order", typeof(Order) }, { "payment_attempt_record", typeof(PaymentAttemptRecord) }, { "payment_intent", typeof(PaymentIntent) }, diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionApproveOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionApproveOptions.cs new file mode 100644 index 0000000000..56c81a055e --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionApproveOptions.cs @@ -0,0 +1,52 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SessionApproveOptions : BaseOptions + { + /// + /// The ID of the customer's attempt to pay to approve. + /// + [JsonProperty("attempt")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("attempt")] +#endif + public string Attempt { get; set; } + + /// + /// A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in + /// payment mode. + /// + [JsonProperty("payment_intent_data")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payment_intent_data")] +#endif + public SessionPaymentIntentDataOptions PaymentIntentData { get; set; } + + /// + /// The URL to redirect your customer back to after they authenticate or cancel their + /// payment on the payment method's app or site. This parameter is allowed and required if + /// and only if you did not set the return URL during Checkout Session creation or in + /// checkout.confirm() in Stripe.js. + /// + [JsonProperty("return_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("return_url")] +#endif + public string ReturnUrl { get; set; } + + /// + /// A subset of parameters to be passed to subscription creation for Checkout Sessions in + /// subscription mode. + /// + [JsonProperty("subscription_data")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("subscription_data")] +#endif + public SessionSubscriptionDataOptions SubscriptionData { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs index 10c63a4d2b..82e2b2ea74 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs @@ -40,6 +40,22 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata #endif public bool? AllowPromotionCodes { get; set; } + /// + /// Determines whether the customer's attempt to pay must be manually approved. + /// + /// Default is auto, when the customer's attempt to pay is approved automatically + /// with no action required on your server. + /// + /// When set to manual, you must approve the customer's attempt to pay by calling approve from your server. + /// One of: auto, or manual. + /// + [JsonProperty("approval_method")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("approval_method")] +#endif + public string ApprovalMethod { get; set; } + /// /// Settings for automatic tax lookup for this session and resulting payments, invoices, and /// subscriptions. diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionService.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionService.cs index 071fa295a9..f128585a4a 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionService.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionService.cs @@ -33,6 +33,24 @@ public SessionService(IStripeClient client) public virtual SessionLineItemService LineItems => this.lineItems ??= new SessionLineItemService( this.Requestor); + /// + ///

Approves a customer’s attempt to pay for a Checkout Session with + /// approval_method set to manual.

. + ///
+ public virtual Session Approve(string id, SessionApproveOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/checkout/sessions/{WebUtility.UrlEncode(id)}/approve", options, requestOptions); + } + + /// + ///

Approves a customer’s attempt to pay for a Checkout Session with + /// approval_method set to manual.

. + ///
+ public virtual Task ApproveAsync(string id, SessionApproveOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/checkout/sessions/{WebUtility.UrlEncode(id)}/approve", options, requestOptions, cancellationToken); + } + /// ///

Creates a Checkout Session object.

. ///
diff --git a/src/Stripe.net/Services/Orchestration/PaymentAttempts/PaymentAttemptGetOptions.cs b/src/Stripe.net/Services/Orchestration/PaymentAttempts/PaymentAttemptGetOptions.cs new file mode 100644 index 0000000000..e30424347c --- /dev/null +++ b/src/Stripe.net/Services/Orchestration/PaymentAttempts/PaymentAttemptGetOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe.Orchestration +{ + public class PaymentAttemptGetOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/Orchestration/PaymentAttempts/PaymentAttemptService.cs b/src/Stripe.net/Services/Orchestration/PaymentAttempts/PaymentAttemptService.cs new file mode 100644 index 0000000000..09ffdcdc14 --- /dev/null +++ b/src/Stripe.net/Services/Orchestration/PaymentAttempts/PaymentAttemptService.cs @@ -0,0 +1,45 @@ +// File generated from our OpenAPI spec +namespace Stripe.Orchestration +{ + using System; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public class PaymentAttemptService : Service, + IRetrievable + { + public PaymentAttemptService() + { + } + + internal PaymentAttemptService(ApiRequestor requestor) + : base(requestor) + { + } + + public PaymentAttemptService(IStripeClient client) + : base(client) + { + } + + /// + ///

Retrieves orchestration information for the given payment attempt record (e.g. return + /// url).

. + ///
+ public virtual PaymentAttempt Get(string id, PaymentAttemptGetOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Get, $"/v1/orchestration/payment_attempts/{WebUtility.UrlEncode(id)}", options, requestOptions); + } + + /// + ///

Retrieves orchestration information for the given payment attempt record (e.g. return + /// url).

. + ///
+ public virtual Task GetAsync(string id, PaymentAttemptGetOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v1/orchestration/payment_attempts/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); + } + } +} diff --git a/src/Stripe.net/Services/OrchestrationService.cs b/src/Stripe.net/Services/OrchestrationService.cs new file mode 100644 index 0000000000..1499db833a --- /dev/null +++ b/src/Stripe.net/Services/OrchestrationService.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using System.Threading; + using System.Threading.Tasks; + + public class OrchestrationService : Service + { + private Orchestration.PaymentAttemptService paymentAttempts; + + internal OrchestrationService(ApiRequestor requestor) + : base(requestor) + { + } + + internal OrchestrationService(IStripeClient client) + : base(client) + { + } + + public virtual Orchestration.PaymentAttemptService PaymentAttempts => this.paymentAttempts ??= new Orchestration.PaymentAttemptService( + this.Requestor); + } +} diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordAmountOptions.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordAmountOptions.cs new file mode 100644 index 0000000000..3738b237ad --- /dev/null +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordAmountOptions.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentAttemptRecordAmountOptions : INestedOptions + { + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + + /// + /// A positive integer representing the amount in the currency's minor unit. For example, + /// 100 can represent 1 USD or 100 JPY. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordCustomerDetailsOptions.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordCustomerDetailsOptions.cs new file mode 100644 index 0000000000..cc5ec20468 --- /dev/null +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordCustomerDetailsOptions.cs @@ -0,0 +1,47 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentAttemptRecordCustomerDetailsOptions : INestedOptions + { + /// + /// The customer who made the payment. + /// + [JsonProperty("customer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer")] +#endif + public string Customer { get; set; } + + /// + /// The customer's phone number. + /// + [JsonProperty("email")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("email")] +#endif + public string Email { get; set; } + + /// + /// The customer's name. + /// + [JsonProperty("name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("name")] +#endif + public string Name { get; set; } + + /// + /// The customer's phone number. + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordProcessorDetailsCustomOptions.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordProcessorDetailsCustomOptions.cs new file mode 100644 index 0000000000..d2c84fa181 --- /dev/null +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordProcessorDetailsCustomOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentAttemptRecordProcessorDetailsCustomOptions : INestedOptions + { + /// + /// A reference to the external refund. This field must be unique across all refunds. + /// + [JsonProperty("refund_reference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("refund_reference")] +#endif + public string RefundReference { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordProcessorDetailsOptions.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordProcessorDetailsOptions.cs new file mode 100644 index 0000000000..54cf5bdb62 --- /dev/null +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordProcessorDetailsOptions.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentAttemptRecordProcessorDetailsOptions : INestedOptions + { + /// + /// Information about the custom processor used to make this refund. + /// + [JsonProperty("custom")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("custom")] +#endif + public PaymentAttemptRecordProcessorDetailsCustomOptions Custom { get; set; } + + /// + /// The type of the processor details. An additional hash is included on processor_details + /// with a name matching this value. It contains additional information specific to the + /// processor. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordRefundedOptions.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordRefundedOptions.cs new file mode 100644 index 0000000000..b1f0d92db1 --- /dev/null +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordRefundedOptions.cs @@ -0,0 +1,24 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentAttemptRecordRefundedOptions : INestedOptions + { + /// + /// When the reported refund completed. Measured in seconds since the Unix epoch. + /// + [JsonProperty("refunded_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("refunded_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime? RefundedAt { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportAuthenticatedOptions.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportAuthenticatedOptions.cs new file mode 100644 index 0000000000..55201f318f --- /dev/null +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportAuthenticatedOptions.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentAttemptRecordReportAuthenticatedOptions : BaseOptions, IHasMetadata + { + /// + /// When the reported payment was authenticated. Measured in seconds since the Unix epoch. + /// + [JsonProperty("authenticated_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("authenticated_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime? AuthenticatedAt { get; set; } + + /// + /// 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. 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")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("metadata")] +#endif + public Dictionary Metadata { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportCanceledOptions.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportCanceledOptions.cs new file mode 100644 index 0000000000..3795f53a91 --- /dev/null +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportCanceledOptions.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentAttemptRecordReportCanceledOptions : BaseOptions, IHasMetadata + { + /// + /// When the reported payment was canceled. Measured in seconds since the Unix epoch. + /// + [JsonProperty("canceled_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("canceled_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime? CanceledAt { get; set; } + + /// + /// 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. 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")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("metadata")] +#endif + public Dictionary Metadata { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportFailedOptions.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportFailedOptions.cs new file mode 100644 index 0000000000..fe8584261a --- /dev/null +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportFailedOptions.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentAttemptRecordReportFailedOptions : BaseOptions, IHasMetadata + { + /// + /// When the reported payment failed. Measured in seconds since the Unix epoch. + /// + [JsonProperty("failed_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("failed_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime? FailedAt { get; set; } + + /// + /// The failure code for this payment attempt. Must be one of + /// payment_method_customer_decline or + /// payment_method_provider_unknown_outcome. + /// One of: payment_method_customer_decline, or + /// payment_method_provider_unknown_outcome. + /// + [JsonProperty("failure_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("failure_code")] +#endif + public string FailureCode { get; set; } + + /// + /// 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. 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")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("metadata")] +#endif + public Dictionary Metadata { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportGuaranteedOptions.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportGuaranteedOptions.cs new file mode 100644 index 0000000000..cecee33be9 --- /dev/null +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportGuaranteedOptions.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentAttemptRecordReportGuaranteedOptions : BaseOptions, IHasMetadata + { + /// + /// When the reported payment was guaranteed. Measured in seconds since the Unix epoch. + /// + [JsonProperty("guaranteed_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("guaranteed_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime? GuaranteedAt { get; set; } + + /// + /// 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. 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")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("metadata")] +#endif + public Dictionary Metadata { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportInformationalOptions.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportInformationalOptions.cs new file mode 100644 index 0000000000..e72918e510 --- /dev/null +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportInformationalOptions.cs @@ -0,0 +1,51 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentAttemptRecordReportInformationalOptions : BaseOptions, IHasMetadata + { + /// + /// Customer information for this payment. + /// + [JsonProperty("customer_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_details")] +#endif + public PaymentAttemptRecordCustomerDetailsOptions CustomerDetails { get; set; } + + /// + /// An arbitrary string attached to the object. Often useful for displaying to users. + /// + [JsonProperty("description")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("description")] +#endif + 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 + /// 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")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("metadata")] +#endif + public Dictionary Metadata { get; set; } + + /// + /// Shipping information for this payment. + /// + [JsonProperty("shipping_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("shipping_details")] +#endif + public PaymentAttemptRecordShippingDetailsOptions ShippingDetails { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportRefundOptions.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportRefundOptions.cs new file mode 100644 index 0000000000..2b8dc55336 --- /dev/null +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportRefundOptions.cs @@ -0,0 +1,76 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentAttemptRecordReportRefundOptions : BaseOptions, IHasMetadata + { + /// + /// A positive integer in the smallest currency unit + /// representing how much of this payment to refund. Can refund only up to the remaining, + /// unrefunded amount of the payment. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public PaymentAttemptRecordAmountOptions Amount { get; set; } + + /// + /// When the reported refund was initiated. Measured in seconds since the Unix epoch. + /// + [JsonProperty("initiated_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("initiated_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime? InitiatedAt { get; set; } + + /// + /// 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. 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")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("metadata")] +#endif + public Dictionary Metadata { get; set; } + + /// + /// The outcome of the reported refund. + /// + [JsonProperty("outcome")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("outcome")] +#endif + public string Outcome { get; set; } + + /// + /// Processor information for this refund. + /// + [JsonProperty("processor_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("processor_details")] +#endif + public PaymentAttemptRecordProcessorDetailsOptions ProcessorDetails { get; set; } + + /// + /// Information about the payment attempt refund. + /// + [JsonProperty("refunded")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("refunded")] +#endif + public PaymentAttemptRecordRefundedOptions Refunded { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordService.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordService.cs index 09524ecd85..5cfa883ea7 100644 --- a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordService.cs +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordService.cs @@ -73,5 +73,101 @@ public virtual IAsyncEnumerable ListAutoPagingAsync(Paymen { return this.ListRequestAutoPagingAsync($"/v1/payment_attempt_records", options, requestOptions, cancellationToken); } + + /// + ///

Report that the specified Payment Attempt Record was authenticated.

. + ///
+ public virtual PaymentAttemptRecord ReportAuthenticated(string id, PaymentAttemptRecordReportAuthenticatedOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/payment_attempt_records/{WebUtility.UrlEncode(id)}/report_authenticated", options, requestOptions); + } + + /// + ///

Report that the specified Payment Attempt Record was authenticated.

. + ///
+ public virtual Task ReportAuthenticatedAsync(string id, PaymentAttemptRecordReportAuthenticatedOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/payment_attempt_records/{WebUtility.UrlEncode(id)}/report_authenticated", options, requestOptions, cancellationToken); + } + + /// + ///

Report that the specified Payment Attempt Record was canceled.

. + ///
+ public virtual PaymentAttemptRecord ReportCanceled(string id, PaymentAttemptRecordReportCanceledOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/payment_attempt_records/{WebUtility.UrlEncode(id)}/report_canceled", options, requestOptions); + } + + /// + ///

Report that the specified Payment Attempt Record was canceled.

. + ///
+ public virtual Task ReportCanceledAsync(string id, PaymentAttemptRecordReportCanceledOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/payment_attempt_records/{WebUtility.UrlEncode(id)}/report_canceled", options, requestOptions, cancellationToken); + } + + /// + ///

Report that the specified Payment Attempt Record failed.

. + ///
+ public virtual PaymentAttemptRecord ReportFailed(string id, PaymentAttemptRecordReportFailedOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/payment_attempt_records/{WebUtility.UrlEncode(id)}/report_failed", options, requestOptions); + } + + /// + ///

Report that the specified Payment Attempt Record failed.

. + ///
+ public virtual Task ReportFailedAsync(string id, PaymentAttemptRecordReportFailedOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/payment_attempt_records/{WebUtility.UrlEncode(id)}/report_failed", options, requestOptions, cancellationToken); + } + + /// + ///

Report that the specified Payment Attempt Record was guaranteed.

. + ///
+ public virtual PaymentAttemptRecord ReportGuaranteed(string id, PaymentAttemptRecordReportGuaranteedOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/payment_attempt_records/{WebUtility.UrlEncode(id)}/report_guaranteed", options, requestOptions); + } + + /// + ///

Report that the specified Payment Attempt Record was guaranteed.

. + ///
+ public virtual Task ReportGuaranteedAsync(string id, PaymentAttemptRecordReportGuaranteedOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/payment_attempt_records/{WebUtility.UrlEncode(id)}/report_guaranteed", options, requestOptions, cancellationToken); + } + + /// + ///

Report informational updates on the specified Payment Attempt Record.

. + ///
+ public virtual PaymentAttemptRecord ReportInformational(string id, PaymentAttemptRecordReportInformationalOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/payment_attempt_records/{WebUtility.UrlEncode(id)}/report_informational", options, requestOptions); + } + + /// + ///

Report informational updates on the specified Payment Attempt Record.

. + ///
+ public virtual Task ReportInformationalAsync(string id, PaymentAttemptRecordReportInformationalOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/payment_attempt_records/{WebUtility.UrlEncode(id)}/report_informational", options, requestOptions, cancellationToken); + } + + /// + ///

Report that the specified Payment Attempt Record was refunded.

. + ///
+ public virtual PaymentAttemptRecord ReportRefund(string id, PaymentAttemptRecordReportRefundOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/payment_attempt_records/{WebUtility.UrlEncode(id)}/report_refund", options, requestOptions); + } + + /// + ///

Report that the specified Payment Attempt Record was refunded.

. + ///
+ public virtual Task ReportRefundAsync(string id, PaymentAttemptRecordReportRefundOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/payment_attempt_records/{WebUtility.UrlEncode(id)}/report_refund", options, requestOptions, cancellationToken); + } } } diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordShippingDetailsOptions.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordShippingDetailsOptions.cs new file mode 100644 index 0000000000..defc3e226e --- /dev/null +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordShippingDetailsOptions.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentAttemptRecordShippingDetailsOptions : INestedOptions + { + /// + /// The physical shipping address. + /// + [JsonProperty("address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("address")] +#endif + public AddressOptions Address { get; set; } + + /// + /// The shipping recipient's name. + /// + [JsonProperty("name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("name")] +#endif + public string Name { get; set; } + + /// + /// The shipping recipient's phone number. + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentRecords/PaymentRecordFailedOptions.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordFailedOptions.cs index 1706149b61..172d146733 100644 --- a/src/Stripe.net/Services/PaymentRecords/PaymentRecordFailedOptions.cs +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordFailedOptions.cs @@ -20,5 +20,18 @@ public class PaymentRecordFailedOptions : INestedOptions [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] #endif public DateTime? FailedAt { get; set; } + + /// + /// The failure code for this payment attempt. Must be one of + /// payment_method_customer_decline or + /// payment_method_provider_unknown_outcome. + /// One of: payment_method_customer_decline, or + /// payment_method_provider_unknown_outcome. + /// + [JsonProperty("failure_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("failure_code")] +#endif + public string FailureCode { get; set; } } } diff --git a/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptFailedOptions.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptFailedOptions.cs index 15728cb66d..4dac908f95 100644 --- a/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptFailedOptions.cs +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptFailedOptions.cs @@ -22,6 +22,19 @@ public class PaymentRecordReportPaymentAttemptFailedOptions : BaseOptions, IHasM #endif public DateTime? FailedAt { get; set; } + /// + /// The failure code for this payment attempt. Must be one of + /// payment_method_customer_decline or + /// payment_method_provider_unknown_outcome. + /// One of: payment_method_customer_decline, or + /// payment_method_provider_unknown_outcome. + /// + [JsonProperty("failure_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("failure_code")] +#endif + public string FailureCode { get; set; } + /// /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsHomeRuleTaxOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsHomeRuleTaxOptions.cs new file mode 100644 index 0000000000..cbb9700abd --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsHomeRuleTaxOptions.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsUsHomeRuleTaxOptions : INestedOptions + { + /// + /// A jurisdiction code representing the local + /// jurisdiction. + /// + [JsonProperty("jurisdiction")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("jurisdiction")] +#endif + public string Jurisdiction { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsOptions.cs index 755a6543db..aa6399e121 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsOptions.cs @@ -48,9 +48,9 @@ public class RegistrationCountryOptionsUsOptions : INestedOptions /// /// Type of registration to be created in the US. /// One of: admissions_tax, attendance_tax, entertainment_tax, - /// gross_receipts_tax, hospitality_tax, local_amusement_tax, - /// local_lease_tax, luxury_tax, resort_tax, - /// state_communications_tax, state_retail_delivery_fee, + /// gross_receipts_tax, home_rule_tax, hospitality_tax, + /// local_amusement_tax, local_lease_tax, luxury_tax, + /// resort_tax, state_communications_tax, state_retail_delivery_fee, /// state_sales_tax, or tourism_tax. /// [JsonProperty("type")] @@ -58,5 +58,14 @@ public class RegistrationCountryOptionsUsOptions : INestedOptions [STJS.JsonPropertyName("type")] #endif public string Type { get; set; } + + /// + /// Options for the home rule tax registration. + /// + [JsonProperty("home_rule_tax")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("home_rule_tax")] +#endif + public RegistrationCountryOptionsUsHomeRuleTaxOptions HomeRuleTax { get; set; } } } diff --git a/src/Stripe.net/Services/V1Services.cs b/src/Stripe.net/Services/V1Services.cs index 085d472ba0..236d09a5fa 100644 --- a/src/Stripe.net/Services/V1Services.cs +++ b/src/Stripe.net/Services/V1Services.cs @@ -52,6 +52,7 @@ public class V1Services : Service private IssuingService issuing; private MandateService mandates; private MarginService margins; + private OrchestrationService orchestration; private OrderService orders; private PaymentAttemptRecordService paymentAttemptRecords; private PaymentIntentService paymentIntents; @@ -239,6 +240,9 @@ internal V1Services(IStripeClient client) public virtual MarginService Margins => this.margins ??= new MarginService( this.Requestor); + public virtual OrchestrationService Orchestration => this.orchestration ??= new OrchestrationService( + this.Requestor); + public virtual OrderService Orders => this.orders ??= new OrderService( this.Requestor); From d1215b8670ec188dee9a75bbe9f9a3b8b217e799 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 11 Mar 2026 17:04:56 +0000 Subject: [PATCH 02/14] Update generated code for v2192 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- .../InvoiceItems/InvoiceItemParent.cs | 20 ++++---- ...ItemParentLicenseFeeSubscriptionDetails.cs | 47 ------------------- ...temParentPricingPlanSubscriptionDetails.cs | 29 ++++++++++++ ...ceItemParentRateCardSubscriptionDetails.cs | 18 ------- 6 files changed, 41 insertions(+), 77 deletions(-) delete mode 100644 src/Stripe.net/Entities/InvoiceItems/InvoiceItemParentLicenseFeeSubscriptionDetails.cs create mode 100644 src/Stripe.net/Entities/InvoiceItems/InvoiceItemParentPricingPlanSubscriptionDetails.cs diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index f5f04d71b0..1c6a7c2e6c 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -2feaeea9e3c2b01dd5b7e4092d8364af4bf1e740 \ No newline at end of file +2033ed0f1da19257965b13ea10eb8b8a138704bd \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index dceb4ec65d..f4558c7764 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2191 \ No newline at end of file +v2192 \ No newline at end of file diff --git a/src/Stripe.net/Entities/InvoiceItems/InvoiceItemParent.cs b/src/Stripe.net/Entities/InvoiceItems/InvoiceItemParent.cs index e59aa6748a..e13cf54b44 100644 --- a/src/Stripe.net/Entities/InvoiceItems/InvoiceItemParent.cs +++ b/src/Stripe.net/Entities/InvoiceItems/InvoiceItemParent.cs @@ -8,15 +8,6 @@ namespace Stripe public class InvoiceItemParent : StripeEntity { - /// - /// Details about the license fee subscription that generated this invoice item. - /// - [JsonProperty("license_fee_subscription_details")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("license_fee_subscription_details")] -#endif - public InvoiceItemParentLicenseFeeSubscriptionDetails LicenseFeeSubscriptionDetails { get; set; } - /// /// Details about the rate card subscription that generated this invoice item. /// @@ -46,7 +37,7 @@ public class InvoiceItemParent : StripeEntity /// /// The type of parent that generated this invoice item. - /// One of: license_fee_subscription_details, rate_card_subscription_details, + /// One of: pricing_plan_subscription_details, rate_card_subscription_details, /// schedule_details, or subscription_details. /// [JsonProperty("type")] @@ -54,5 +45,14 @@ public class InvoiceItemParent : StripeEntity [STJS.JsonPropertyName("type")] #endif public string Type { get; set; } + + /// + /// Details about the pricing plan subscription that generated this invoice item. + /// + [JsonProperty("pricing_plan_subscription_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("pricing_plan_subscription_details")] +#endif + public InvoiceItemParentPricingPlanSubscriptionDetails PricingPlanSubscriptionDetails { get; set; } } } diff --git a/src/Stripe.net/Entities/InvoiceItems/InvoiceItemParentLicenseFeeSubscriptionDetails.cs b/src/Stripe.net/Entities/InvoiceItems/InvoiceItemParentLicenseFeeSubscriptionDetails.cs deleted file mode 100644 index 255ee20761..0000000000 --- a/src/Stripe.net/Entities/InvoiceItems/InvoiceItemParentLicenseFeeSubscriptionDetails.cs +++ /dev/null @@ -1,47 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class InvoiceItemParentLicenseFeeSubscriptionDetails : StripeEntity - { - /// - /// The license fee subscription that generated this invoice item. - /// - [JsonProperty("license_fee_subscription")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("license_fee_subscription")] -#endif - public string LicenseFeeSubscription { get; set; } - - /// - /// The license fee version that generated this invoice item. - /// - [JsonProperty("license_fee_version")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("license_fee_version")] -#endif - public string LicenseFeeVersion { get; set; } - - /// - /// The pricing plan subscription that manages the license fee subscription. - /// - [JsonProperty("pricing_plan_subscription")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("pricing_plan_subscription")] -#endif - public string PricingPlanSubscription { get; set; } - - /// - /// The pricing plan version at the time this invoice item was generated. - /// - [JsonProperty("pricing_plan_version")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("pricing_plan_version")] -#endif - public string PricingPlanVersion { get; set; } - } -} diff --git a/src/Stripe.net/Entities/InvoiceItems/InvoiceItemParentPricingPlanSubscriptionDetails.cs b/src/Stripe.net/Entities/InvoiceItems/InvoiceItemParentPricingPlanSubscriptionDetails.cs new file mode 100644 index 0000000000..a7bf43808d --- /dev/null +++ b/src/Stripe.net/Entities/InvoiceItems/InvoiceItemParentPricingPlanSubscriptionDetails.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class InvoiceItemParentPricingPlanSubscriptionDetails : StripeEntity + { + /// + /// The pricing plan subscription that manages this charge. + /// + [JsonProperty("pricing_plan_subscription")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("pricing_plan_subscription")] +#endif + public string PricingPlanSubscription { get; set; } + + /// + /// The pricing plan version at the time this charge was generated. + /// + [JsonProperty("pricing_plan_version")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("pricing_plan_version")] +#endif + public string PricingPlanVersion { get; set; } + } +} diff --git a/src/Stripe.net/Entities/InvoiceItems/InvoiceItemParentRateCardSubscriptionDetails.cs b/src/Stripe.net/Entities/InvoiceItems/InvoiceItemParentRateCardSubscriptionDetails.cs index ef77108a2b..a4dce3dc15 100644 --- a/src/Stripe.net/Entities/InvoiceItems/InvoiceItemParentRateCardSubscriptionDetails.cs +++ b/src/Stripe.net/Entities/InvoiceItems/InvoiceItemParentRateCardSubscriptionDetails.cs @@ -8,24 +8,6 @@ namespace Stripe public class InvoiceItemParentRateCardSubscriptionDetails : StripeEntity { - /// - /// The pricing plan subscription that manages the rate card subscription. - /// - [JsonProperty("pricing_plan_subscription")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("pricing_plan_subscription")] -#endif - public string PricingPlanSubscription { get; set; } - - /// - /// The pricing plan version at the time this invoice item was generated. - /// - [JsonProperty("pricing_plan_version")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("pricing_plan_version")] -#endif - public string PricingPlanVersion { get; set; } - /// /// The rate card subscription that generated this invoice item. /// From 192ca29f30d03734efc59cce905e2896e9e65859 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 11 Mar 2026 22:35:18 +0000 Subject: [PATCH 03/14] Update generated code for v2194 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- .../IssuingAuthorizationEvaluation.cs | 11 +++-- ...orizationEvaluationAuthorizationDetails.cs | 22 +++++---- ...suingAuthorizationEvaluationCardDetails.cs | 9 ++-- ...uthorizationEvaluationCardholderDetails.cs | 5 +- ...gAuthorizationEvaluationMerchantDetails.cs | 11 +++-- ...ngAuthorizationEvaluationNetworkDetails.cs | 5 +- ...uingAuthorizationEvaluationTokenDetails.cs | 8 ++-- ...horizationEvaluationVerificationDetails.cs | 2 +- ...questedSessionFulfillmentDetailsOptions.cs | 10 ++++ ...FulfillmentOptionOverrideDigitalOptions.cs | 20 ++++++++ ...electedFulfillmentOptionOverrideOptions.cs | 48 +++++++++++++++++++ ...ulfillmentOptionOverrideShippingOptions.cs | 20 ++++++++ ...electedFulfillmentOptionShippingOptions.cs | 2 +- ...onEvaluationAuthorizationDetailsOptions.cs | 22 +++++---- ...thorizationEvaluationCardDetailsOptions.cs | 13 ++--- ...ationEvaluationCardholderDetailsOptions.cs | 5 +- ...ingAuthorizationEvaluationCreateOptions.cs | 9 ++-- ...izationEvaluationMerchantDetailsOptions.cs | 11 +++-- ...rizationEvaluationNetworkDetailsOptions.cs | 5 +- ...horizationEvaluationTokenDetailsOptions.cs | 8 ++-- ...ionEvaluationVerificationDetailsOptions.cs | 2 +- 23 files changed, 186 insertions(+), 66 deletions(-) create mode 100644 src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideDigitalOptions.cs create mode 100644 src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideOptions.cs create mode 100644 src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideShippingOptions.cs diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 1c6a7c2e6c..796cb171e4 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -2033ed0f1da19257965b13ea10eb8b8a138704bd \ No newline at end of file +d5d4a14b7efae104f15e32b63c37ad2af0007dad \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index f4558c7764..6f40e247ed 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2192 \ No newline at end of file +v2194 \ No newline at end of file diff --git a/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluation.cs b/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluation.cs index f4c94f2677..a5d6a81d64 100644 --- a/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluation.cs +++ b/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluation.cs @@ -33,7 +33,7 @@ public class IssuingAuthorizationEvaluation : StripeEntity - /// Details about the authorization transaction. + /// Details about the authorization. /// [JsonProperty("authorization_details")] #if NET6_0_OR_GREATER @@ -70,7 +70,8 @@ public class IssuingAuthorizationEvaluation : StripeEntity - /// Details about the merchant where the authorization occurred. + /// Details about the seller (grocery store, e-commerce website, etc.) where the card + /// authorization happened. ///
[JsonProperty("merchant_details")] #if NET6_0_OR_GREATER @@ -89,7 +90,7 @@ public class IssuingAuthorizationEvaluation : StripeEntity Metadata { get; set; } /// - /// Details about the card network processing. + /// Details about the authorization, such as identifiers, set by the card network. /// [JsonProperty("network_details")] #if NET6_0_OR_GREATER @@ -107,7 +108,7 @@ public class IssuingAuthorizationEvaluation : StripeEntity - /// Details about the token, if a tokenized payment method was used. + /// Details about the token, if a tokenized payment method was used for the authorization. /// [JsonProperty("token_details")] #if NET6_0_OR_GREATER @@ -116,7 +117,7 @@ public class IssuingAuthorizationEvaluation : StripeEntity - /// Details about verification checks performed. + /// Details about verification data for the authorization. /// [JsonProperty("verification_details")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationAuthorizationDetails.cs b/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationAuthorizationDetails.cs index 90509bac51..a5769a619c 100644 --- a/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationAuthorizationDetails.cs +++ b/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationAuthorizationDetails.cs @@ -11,7 +11,8 @@ namespace Stripe.Radar public class IssuingAuthorizationEvaluationAuthorizationDetails : StripeEntity { /// - /// The authorization amount in the smallest currency unit. + /// The total amount of the authorization in the smallest currency unit. /// [JsonProperty("amount")] #if NET6_0_OR_GREATER @@ -20,7 +21,7 @@ public class IssuingAuthorizationEvaluationAuthorizationDetails : StripeEntity - /// The method used for authorization. + /// How the card details were provided. /// One of: chip, contactless, keyed_in, online, or /// swipe. /// @@ -31,7 +32,9 @@ public class IssuingAuthorizationEvaluationAuthorizationDetails : StripeEntity - /// Three-letter ISO currency code in lowercase. + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. /// [JsonProperty("currency")] #if NET6_0_OR_GREATER @@ -40,7 +43,7 @@ public class IssuingAuthorizationEvaluationAuthorizationDetails : StripeEntity - /// The card entry mode. + /// Defines how the card's information was entered for the authorization. /// One of: contactless, contactless_magstripe, credential_on_file, /// integrated_circuit_card, magstripe, magstripe_no_cvv, /// manual, other, or unknown. @@ -52,7 +55,7 @@ public class IssuingAuthorizationEvaluationAuthorizationDetails : StripeEntity - /// The raw code for the card entry mode. + /// Raw code indicating the entry mode from the network message. /// [JsonProperty("entry_mode_raw_code")] #if NET6_0_OR_GREATER @@ -61,7 +64,7 @@ public class IssuingAuthorizationEvaluationAuthorizationDetails : StripeEntity - /// The time when the authorization was initiated. + /// The timestamp of the authorization initiated in seconds. /// [JsonProperty("initiated_at")] [JsonConverter(typeof(UnixDateTimeConverter))] @@ -72,7 +75,7 @@ public class IssuingAuthorizationEvaluationAuthorizationDetails : StripeEntity - /// The point of sale condition. + /// Defines how the card was read at the point of sale. /// One of: account_verification, card_not_present, card_present, /// e_commerce, key_entered_pos, missing, moto, other, /// pin_entered, or recurring. @@ -84,7 +87,7 @@ public class IssuingAuthorizationEvaluationAuthorizationDetails : StripeEntity - /// The raw code for the point of sale condition. + /// Raw code indicating the point of sale condition from the network message. /// [JsonProperty("point_of_sale_condition_raw_code")] #if NET6_0_OR_GREATER @@ -93,7 +96,8 @@ public class IssuingAuthorizationEvaluationAuthorizationDetails : StripeEntity - /// External reference for the authorization. + /// User's specified unique ID for this authorization attempt (e.g., RRN or internal + /// reference). /// [JsonProperty("reference")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardDetails.cs b/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardDetails.cs index e4fae5c0d2..16458e2836 100644 --- a/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardDetails.cs +++ b/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardDetails.cs @@ -20,7 +20,7 @@ public class IssuingAuthorizationEvaluationCardDetails : StripeEntity - /// The country code associated with the card BIN. + /// The two-letter country code of the BIN issuer. /// [JsonProperty("bin_country")] #if NET6_0_OR_GREATER @@ -29,7 +29,7 @@ public class IssuingAuthorizationEvaluationCardDetails : StripeEntity - /// The type of card (physical or virtual). + /// The type of the card. /// One of: physical, or virtual. /// [JsonProperty("card_type")] @@ -39,7 +39,7 @@ public class IssuingAuthorizationEvaluationCardDetails : StripeEntity - /// The time when the card was created. + /// The timestamp when the card was created. /// [JsonProperty("created_at")] [JsonConverter(typeof(UnixDateTimeConverter))] @@ -59,7 +59,8 @@ public class IssuingAuthorizationEvaluationCardDetails : StripeEntity - /// External reference for the card. + /// User's specified unique ID of the card for this authorization attempt (e.g., RRN or + /// internal reference). /// [JsonProperty("reference")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardholderDetails.cs b/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardholderDetails.cs index 4b1b3ae7b5..7b2ee197cf 100644 --- a/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardholderDetails.cs +++ b/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardholderDetails.cs @@ -11,7 +11,7 @@ namespace Stripe.Radar public class IssuingAuthorizationEvaluationCardholderDetails : StripeEntity { /// - /// The time when the cardholder was created. + /// The timestamp when the cardholder was created. /// [JsonProperty("created_at")] [JsonConverter(typeof(UnixDateTimeConverter))] @@ -22,7 +22,8 @@ public class IssuingAuthorizationEvaluationCardholderDetails : StripeEntity - /// External reference for the cardholder. + /// User's specified unique ID of the cardholder for this authorization attempt (e.g., RRN + /// or internal reference). /// [JsonProperty("reference")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationMerchantDetails.cs b/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationMerchantDetails.cs index 58cd001fba..969531227d 100644 --- a/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationMerchantDetails.cs +++ b/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationMerchantDetails.cs @@ -9,7 +9,7 @@ namespace Stripe.Radar public class IssuingAuthorizationEvaluationMerchantDetails : StripeEntity { /// - /// The merchant category code (MCC). + /// The merchant category code for the seller's business. /// [JsonProperty("category_code")] #if NET6_0_OR_GREATER @@ -18,7 +18,7 @@ public class IssuingAuthorizationEvaluationMerchantDetails : StripeEntity - /// The merchant country code. + /// Country where the seller is located. /// [JsonProperty("country")] #if NET6_0_OR_GREATER @@ -27,7 +27,7 @@ public class IssuingAuthorizationEvaluationMerchantDetails : StripeEntity - /// The merchant name. + /// Name of the seller. /// [JsonProperty("name")] #if NET6_0_OR_GREATER @@ -36,7 +36,8 @@ public class IssuingAuthorizationEvaluationMerchantDetails : StripeEntity - /// The merchant identifier from the card network. + /// Identifier assigned to the seller by the card network. Different card networks may + /// assign different network_id fields to the same merchant. /// [JsonProperty("network_id")] #if NET6_0_OR_GREATER @@ -45,7 +46,7 @@ public class IssuingAuthorizationEvaluationMerchantDetails : StripeEntity - /// The terminal identifier. + /// An ID assigned by the seller to the location of the sale. /// [JsonProperty("terminal_id")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationNetworkDetails.cs b/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationNetworkDetails.cs index c1eba564e3..6a4bcddb18 100644 --- a/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationNetworkDetails.cs +++ b/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationNetworkDetails.cs @@ -9,7 +9,8 @@ namespace Stripe.Radar public class IssuingAuthorizationEvaluationNetworkDetails : StripeEntity { /// - /// The acquiring institution identifier. + /// Identifier assigned to the acquirer by the card network. Sometimes this value is not + /// provided by the network; in this case, the value will be null. /// [JsonProperty("acquiring_institution_id")] #if NET6_0_OR_GREATER @@ -18,7 +19,7 @@ public class IssuingAuthorizationEvaluationNetworkDetails : StripeEntity - /// The card network that processed the authorization. + /// The card network over which Stripe received the authorization. /// One of: cirrus, interlink, maestro, mastercard, /// other, plus, or visa. /// diff --git a/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationTokenDetails.cs b/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationTokenDetails.cs index 918a2f2e6b..625ed9fccf 100644 --- a/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationTokenDetails.cs +++ b/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationTokenDetails.cs @@ -11,7 +11,7 @@ namespace Stripe.Radar public class IssuingAuthorizationEvaluationTokenDetails : StripeEntity { /// - /// The time when the token was created. + /// The timestamp when the network token was created. /// [JsonProperty("created_at")] [JsonConverter(typeof(UnixDateTimeConverter))] @@ -22,7 +22,8 @@ public class IssuingAuthorizationEvaluationTokenDetails : StripeEntity - /// External reference for the token. + /// User's specified unique ID of the card token for this authorization attempt (e.g., RRN + /// or internal reference). /// [JsonProperty("reference")] #if NET6_0_OR_GREATER @@ -31,7 +32,8 @@ public class IssuingAuthorizationEvaluationTokenDetails : StripeEntity - /// The wallet provider, if applicable. + /// The digital wallet used for this transaction. One of apple_pay, + /// google_pay, or samsung_pay. /// One of: apple_pay, google_pay, or samsung_pay. /// [JsonProperty("wallet")] diff --git a/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationVerificationDetails.cs b/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationVerificationDetails.cs index e0ea3603a7..d9285acd0d 100644 --- a/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationVerificationDetails.cs +++ b/src/Stripe.net/Entities/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationVerificationDetails.cs @@ -9,7 +9,7 @@ namespace Stripe.Radar public class IssuingAuthorizationEvaluationVerificationDetails : StripeEntity { /// - /// The result of the 3D Secure verification. + /// The outcome of the 3D Secure authentication request. /// One of: attempt_acknowledged, authenticated, exempted, /// failed, or required. /// diff --git a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsOptions.cs b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsOptions.cs index c751c24192..e19595f00c 100644 --- a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsOptions.cs +++ b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsOptions.cs @@ -1,6 +1,7 @@ // File generated from our OpenAPI spec namespace Stripe.DelegatedCheckout { + using System.Collections.Generic; using Newtonsoft.Json; #if NET6_0_OR_GREATER using STJS = System.Text.Json.Serialization; @@ -52,5 +53,14 @@ public class RequestedSessionFulfillmentDetailsOptions : INestedOptions [STJS.JsonPropertyName("selected_fulfillment_option")] #endif public RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOptions SelectedFulfillmentOption { get; set; } + + /// + /// The fulfillment option overrides for specific line items. + /// + [JsonProperty("selected_fulfillment_option_overrides")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("selected_fulfillment_option_overrides")] +#endif + public List SelectedFulfillmentOptionOverrides { get; set; } } } diff --git a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideDigitalOptions.cs b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideDigitalOptions.cs new file mode 100644 index 0000000000..4d8682702d --- /dev/null +++ b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideDigitalOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.DelegatedCheckout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideDigitalOptions : INestedOptions + { + /// + /// The digital option identifier. + /// + [JsonProperty("digital_option")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("digital_option")] +#endif + public string DigitalOption { get; set; } + } +} diff --git a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideOptions.cs b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideOptions.cs new file mode 100644 index 0000000000..5bdda04a77 --- /dev/null +++ b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideOptions.cs @@ -0,0 +1,48 @@ +// File generated from our OpenAPI spec +namespace Stripe.DelegatedCheckout +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideOptions : INestedOptions + { + /// + /// The digital fulfillment option. + /// + [JsonProperty("digital")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("digital")] +#endif + public RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideDigitalOptions Digital { get; set; } + + /// + /// The line item keys that this fulfillment option override applies to. + /// + [JsonProperty("line_item_keys")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line_item_keys")] +#endif + public List LineItemKeys { get; set; } + + /// + /// The shipping fulfillment option. + /// + [JsonProperty("shipping")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("shipping")] +#endif + public RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideShippingOptions Shipping { get; set; } + + /// + /// The type of fulfillment option. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideShippingOptions.cs b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideShippingOptions.cs new file mode 100644 index 0000000000..b992fecdc9 --- /dev/null +++ b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideShippingOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.DelegatedCheckout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideShippingOptions : INestedOptions + { + /// + /// The shipping option identifier. + /// + [JsonProperty("shipping_option")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("shipping_option")] +#endif + public string ShippingOption { get; set; } + } +} diff --git a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionShippingOptions.cs b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionShippingOptions.cs index 7708cddd27..613fd61d89 100644 --- a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionShippingOptions.cs +++ b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionShippingOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.DelegatedCheckout public class RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionShippingOptions : INestedOptions { /// - /// The shipping option identifer. + /// The shipping option identifier. /// [JsonProperty("shipping_option")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationAuthorizationDetailsOptions.cs b/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationAuthorizationDetailsOptions.cs index 4ee44e7c5f..f6e3dea4ea 100644 --- a/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationAuthorizationDetailsOptions.cs +++ b/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationAuthorizationDetailsOptions.cs @@ -11,7 +11,8 @@ namespace Stripe.Radar public class IssuingAuthorizationEvaluationAuthorizationDetailsOptions : INestedOptions { /// - /// The authorization amount in the smallest currency unit. + /// The total amount of the authorization in the smallest currency unit. /// [JsonProperty("amount")] #if NET6_0_OR_GREATER @@ -20,7 +21,7 @@ public class IssuingAuthorizationEvaluationAuthorizationDetailsOptions : INested public long? Amount { get; set; } /// - /// The method used for authorization. + /// How the card details were provided. /// One of: chip, contactless, keyed_in, online, or /// swipe. /// @@ -31,7 +32,9 @@ public class IssuingAuthorizationEvaluationAuthorizationDetailsOptions : INested public string AuthorizationMethod { get; set; } /// - /// Three-letter ISO currency code in lowercase. + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. /// [JsonProperty("currency")] #if NET6_0_OR_GREATER @@ -40,7 +43,7 @@ public class IssuingAuthorizationEvaluationAuthorizationDetailsOptions : INested public string Currency { get; set; } /// - /// The card entry mode. + /// Defines how the card's information was entered for the authorization. /// One of: contactless, contactless_magstripe, credential_on_file, /// integrated_circuit_card, magstripe, magstripe_no_cvv, /// manual, other, or unknown. @@ -52,7 +55,7 @@ public class IssuingAuthorizationEvaluationAuthorizationDetailsOptions : INested public string EntryMode { get; set; } /// - /// The raw code for the card entry mode. + /// Raw code indicating the entry mode from the network message. /// [JsonProperty("entry_mode_raw_code")] #if NET6_0_OR_GREATER @@ -61,7 +64,7 @@ public class IssuingAuthorizationEvaluationAuthorizationDetailsOptions : INested public string EntryModeRawCode { get; set; } /// - /// The time when the authorization was initiated (Unix timestamp). + /// The timestamp of the authorization initiated in seconds. /// [JsonProperty("initiated_at")] [JsonConverter(typeof(UnixDateTimeConverter))] @@ -72,7 +75,7 @@ public class IssuingAuthorizationEvaluationAuthorizationDetailsOptions : INested public DateTime? InitiatedAt { get; set; } /// - /// The point of sale condition. + /// Defines how the card was read at the point of sale. /// One of: account_verification, card_not_present, card_present, /// e_commerce, key_entered_pos, missing, moto, other, /// pin_entered, or recurring. @@ -84,7 +87,7 @@ public class IssuingAuthorizationEvaluationAuthorizationDetailsOptions : INested public string PointOfSaleCondition { get; set; } /// - /// The raw code for the point of sale condition. + /// Raw code indicating the point of sale condition from the network message. /// [JsonProperty("point_of_sale_condition_raw_code")] #if NET6_0_OR_GREATER @@ -93,7 +96,8 @@ public class IssuingAuthorizationEvaluationAuthorizationDetailsOptions : INested public string PointOfSaleConditionRawCode { get; set; } /// - /// External reference for the authorization. + /// User's specified unique ID for this authorization attempt (e.g., RRN or internal + /// reference). /// [JsonProperty("reference")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardDetailsOptions.cs b/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardDetailsOptions.cs index 147ff05e95..b77e47df67 100644 --- a/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardDetailsOptions.cs +++ b/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardDetailsOptions.cs @@ -11,7 +11,7 @@ namespace Stripe.Radar public class IssuingAuthorizationEvaluationCardDetailsOptions : INestedOptions { /// - /// Bank Identification Number (BIN) of the card. + /// The Bank Identification Number (BIN) of the card. /// [JsonProperty("bin")] #if NET6_0_OR_GREATER @@ -20,7 +20,7 @@ public class IssuingAuthorizationEvaluationCardDetailsOptions : INestedOptions public string Bin { get; set; } /// - /// Two-letter ISO country code of the card's issuing bank. + /// The two-letter country code of the BIN issuer. /// [JsonProperty("bin_country")] #if NET6_0_OR_GREATER @@ -29,7 +29,7 @@ public class IssuingAuthorizationEvaluationCardDetailsOptions : INestedOptions public string BinCountry { get; set; } /// - /// The type of card (physical or virtual). + /// The type of the card. /// One of: physical, or virtual. /// [JsonProperty("card_type")] @@ -39,7 +39,7 @@ public class IssuingAuthorizationEvaluationCardDetailsOptions : INestedOptions public string CardType { get; set; } /// - /// The time when the card was created (Unix timestamp). + /// The timestamp when the card was created. /// [JsonProperty("created_at")] [JsonConverter(typeof(UnixDateTimeConverter))] @@ -50,7 +50,7 @@ public class IssuingAuthorizationEvaluationCardDetailsOptions : INestedOptions public DateTime? CreatedAt { get; set; } /// - /// Last 4 digits of the card number. + /// The last 4 digits of the card number. /// [JsonProperty("last4")] #if NET6_0_OR_GREATER @@ -59,7 +59,8 @@ public class IssuingAuthorizationEvaluationCardDetailsOptions : INestedOptions public string Last4 { get; set; } /// - /// External reference for the card. + /// User's specified unique ID of the card for this authorization attempt (e.g., RRN or + /// internal reference). /// [JsonProperty("reference")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardholderDetailsOptions.cs b/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardholderDetailsOptions.cs index 320b81a5cd..00611557df 100644 --- a/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardholderDetailsOptions.cs +++ b/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCardholderDetailsOptions.cs @@ -11,7 +11,7 @@ namespace Stripe.Radar public class IssuingAuthorizationEvaluationCardholderDetailsOptions : INestedOptions { /// - /// The time when the cardholder was created (Unix timestamp). + /// The timestamp when the cardholder was created. /// [JsonProperty("created_at")] [JsonConverter(typeof(UnixDateTimeConverter))] @@ -22,7 +22,8 @@ public class IssuingAuthorizationEvaluationCardholderDetailsOptions : INestedOpt public DateTime? CreatedAt { get; set; } /// - /// External reference for the cardholder. + /// User's specified unique ID of the cardholder for this authorization attempt (e.g., RRN + /// or internal reference). /// [JsonProperty("reference")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCreateOptions.cs b/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCreateOptions.cs index e520707868..975fe90035 100644 --- a/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCreateOptions.cs +++ b/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationCreateOptions.cs @@ -37,7 +37,8 @@ public class IssuingAuthorizationEvaluationCreateOptions : BaseOptions, IHasMeta public IssuingAuthorizationEvaluationCardholderDetailsOptions CardholderDetails { get; set; } /// - /// Details about the merchant where the authorization occurred. + /// Details about the seller (grocery store, e-commerce website, etc.) where the card + /// authorization happened. /// [JsonProperty("merchant_details")] #if NET6_0_OR_GREATER @@ -58,7 +59,7 @@ public class IssuingAuthorizationEvaluationCreateOptions : BaseOptions, IHasMeta public Dictionary Metadata { get; set; } /// - /// Details about the card network processing. + /// Details about the authorization, such as identifiers, set by the card network. /// [JsonProperty("network_details")] #if NET6_0_OR_GREATER @@ -67,7 +68,7 @@ public class IssuingAuthorizationEvaluationCreateOptions : BaseOptions, IHasMeta public IssuingAuthorizationEvaluationNetworkDetailsOptions NetworkDetails { get; set; } /// - /// Details about the token, if a tokenized payment method was used. + /// Details about the token, if a tokenized payment method was used for the authorization. /// [JsonProperty("token_details")] #if NET6_0_OR_GREATER @@ -76,7 +77,7 @@ public class IssuingAuthorizationEvaluationCreateOptions : BaseOptions, IHasMeta public IssuingAuthorizationEvaluationTokenDetailsOptions TokenDetails { get; set; } /// - /// Details about verification checks performed. + /// Details about verification data for the authorization. /// [JsonProperty("verification_details")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationMerchantDetailsOptions.cs b/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationMerchantDetailsOptions.cs index 471c99845e..340b05ff6c 100644 --- a/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationMerchantDetailsOptions.cs +++ b/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationMerchantDetailsOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.Radar public class IssuingAuthorizationEvaluationMerchantDetailsOptions : INestedOptions { /// - /// Merchant Category Code (MCC). + /// The merchant category code for the seller's business. /// [JsonProperty("category_code")] #if NET6_0_OR_GREATER @@ -18,7 +18,7 @@ public class IssuingAuthorizationEvaluationMerchantDetailsOptions : INestedOptio public string CategoryCode { get; set; } /// - /// Two-letter ISO country code of the merchant. + /// Country where the seller is located. /// [JsonProperty("country")] #if NET6_0_OR_GREATER @@ -27,7 +27,7 @@ public class IssuingAuthorizationEvaluationMerchantDetailsOptions : INestedOptio public string Country { get; set; } /// - /// Name of the merchant. + /// Name of the seller. /// [JsonProperty("name")] #if NET6_0_OR_GREATER @@ -36,7 +36,8 @@ public class IssuingAuthorizationEvaluationMerchantDetailsOptions : INestedOptio public string Name { get; set; } /// - /// Network merchant identifier. + /// Identifier assigned to the seller by the card network. Different card networks may + /// assign different network_id fields to the same merchant. /// [JsonProperty("network_id")] #if NET6_0_OR_GREATER @@ -45,7 +46,7 @@ public class IssuingAuthorizationEvaluationMerchantDetailsOptions : INestedOptio public string NetworkId { get; set; } /// - /// Terminal identifier. + /// An ID assigned by the seller to the location of the sale. /// [JsonProperty("terminal_id")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationNetworkDetailsOptions.cs b/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationNetworkDetailsOptions.cs index ecbf570fb1..7c1c8f00d1 100644 --- a/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationNetworkDetailsOptions.cs +++ b/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationNetworkDetailsOptions.cs @@ -9,7 +9,8 @@ namespace Stripe.Radar public class IssuingAuthorizationEvaluationNetworkDetailsOptions : INestedOptions { /// - /// The acquiring institution identifier. + /// Identifier assigned to the acquirer by the card network. Sometimes this value is not + /// provided by the network; in this case, the value will be null. /// [JsonProperty("acquiring_institution_id")] #if NET6_0_OR_GREATER @@ -18,7 +19,7 @@ public class IssuingAuthorizationEvaluationNetworkDetailsOptions : INestedOption public string AcquiringInstitutionId { get; set; } /// - /// The card network that routed the authorization. + /// The card network over which Stripe received the authorization. /// One of: cirrus, interlink, maestro, mastercard, /// other, plus, or visa. /// diff --git a/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationTokenDetailsOptions.cs b/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationTokenDetailsOptions.cs index dda936e446..94924582dd 100644 --- a/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationTokenDetailsOptions.cs +++ b/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationTokenDetailsOptions.cs @@ -11,7 +11,7 @@ namespace Stripe.Radar public class IssuingAuthorizationEvaluationTokenDetailsOptions : INestedOptions { /// - /// The time when the token was created (Unix timestamp). + /// The timestamp when the network token was created. /// [JsonProperty("created_at")] [JsonConverter(typeof(UnixDateTimeConverter))] @@ -22,7 +22,8 @@ public class IssuingAuthorizationEvaluationTokenDetailsOptions : INestedOptions public DateTime? CreatedAt { get; set; } /// - /// External reference for the token. + /// User's specified unique ID of the card token for this authorization attempt (e.g., RRN + /// or internal reference). /// [JsonProperty("reference")] #if NET6_0_OR_GREATER @@ -31,7 +32,8 @@ public class IssuingAuthorizationEvaluationTokenDetailsOptions : INestedOptions public string Reference { get; set; } /// - /// The wallet provider for the tokenized payment method. + /// The digital wallet used for this transaction. One of apple_pay, + /// google_pay, or samsung_pay. /// One of: apple_pay, google_pay, or samsung_pay. /// [JsonProperty("wallet")] diff --git a/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationVerificationDetailsOptions.cs b/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationVerificationDetailsOptions.cs index 276af993af..bddb0cce95 100644 --- a/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationVerificationDetailsOptions.cs +++ b/src/Stripe.net/Services/Radar/IssuingAuthorizationEvaluations/IssuingAuthorizationEvaluationVerificationDetailsOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.Radar public class IssuingAuthorizationEvaluationVerificationDetailsOptions : INestedOptions { /// - /// The result of 3D Secure verification. + /// The outcome of the 3D Secure authentication request. /// One of: attempt_acknowledged, authenticated, exempted, /// failed, or required. /// From 90ef381329b6c9b8b295fbc407a751c94a527796 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 12 Mar 2026 16:55:23 +0000 Subject: [PATCH 04/14] Update generated code for v2195 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- ...untSessionComponentsCheckScanningFeaturesOptions.cs | 10 ++++++++++ .../AccountSessionComponentsCheckScanningOptions.cs | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 796cb171e4..1287ef935f 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -d5d4a14b7efae104f15e32b63c37ad2af0007dad \ No newline at end of file +f21ab0095efca84ae73c15397ffc7fea52990e0f \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 6f40e247ed..96f5652a96 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2194 \ No newline at end of file +v2195 \ No newline at end of file diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsCheckScanningFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsCheckScanningFeaturesOptions.cs index a369a1267d..569408dc72 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsCheckScanningFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsCheckScanningFeaturesOptions.cs @@ -1,7 +1,17 @@ // File generated from our OpenAPI spec namespace Stripe { + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + public class AccountSessionComponentsCheckScanningFeaturesOptions : INestedOptions { + [JsonProperty("create_us_paper_check_on_application")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("create_us_paper_check_on_application")] +#endif + public bool? CreateUsPaperCheckOnApplication { get; set; } } } diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsCheckScanningOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsCheckScanningOptions.cs index 34905a5bdf..291206cfad 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsCheckScanningOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsCheckScanningOptions.cs @@ -18,7 +18,7 @@ public class AccountSessionComponentsCheckScanningOptions : INestedOptions public bool? Enabled { get; set; } /// - /// An empty list, because this embedded component has no features. + /// The list of features enabled in the embedded component. /// [JsonProperty("features")] #if NET6_0_OR_GREATER From d328d47fcd12bd3bb0abc6e3fa150e0c314ea71c Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 12 Mar 2026 22:03:59 +0000 Subject: [PATCH 05/14] Update generated code for v2196 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- .../GrantedTokens/GrantedTokenUsageLimitsOptions.cs | 11 +++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 1287ef935f..bf1e3ea4fc 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -f21ab0095efca84ae73c15397ffc7fea52990e0f \ No newline at end of file +b2b6ac2ae2ea46b678ca6df0040e6ba2f9ea11af \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 96f5652a96..2ff8e6f28c 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2195 \ No newline at end of file +v2196 \ No newline at end of file diff --git a/src/Stripe.net/Services/TestHelpers/SharedPayment/GrantedTokens/GrantedTokenUsageLimitsOptions.cs b/src/Stripe.net/Services/TestHelpers/SharedPayment/GrantedTokens/GrantedTokenUsageLimitsOptions.cs index ec5f4496a5..ee246da6a6 100644 --- a/src/Stripe.net/Services/TestHelpers/SharedPayment/GrantedTokens/GrantedTokenUsageLimitsOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/SharedPayment/GrantedTokens/GrantedTokenUsageLimitsOptions.cs @@ -41,5 +41,16 @@ public class GrantedTokenUsageLimitsOptions : INestedOptions [STJS.JsonPropertyName("max_amount")] #endif public long? MaxAmount { get; set; } + + /// + /// The recurring interval at which the shared payment token's amount usage restrictions + /// reset. + /// One of: month, week, or year. + /// + [JsonProperty("recurring_interval")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("recurring_interval")] +#endif + public string RecurringInterval { get; set; } } } From eb766cf4888f3774131fc124a91962f4a621cf19 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 13 Mar 2026 02:50:21 +0000 Subject: [PATCH 06/14] Update generated code for v2197 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- .../Issuing/Authorizations/Authorization.cs | 6 ++ .../AuthorizationTokenDetails.cs | 49 +++++++++++++ .../AuthorizationTokenDetailsNetworkData.cs | 45 ++++++++++++ ...horizationTokenDetailsNetworkDataDevice.cs | 62 ++++++++++++++++ ...zationTokenDetailsNetworkDataMastercard.cs | 38 ++++++++++ ...uthorizationTokenDetailsNetworkDataVisa.cs | 49 +++++++++++++ ...onTokenDetailsNetworkDataWalletProvider.cs | 73 +++++++++++++++++++ ...ptionDataBillingScheduleBillFromOptions.cs | 2 +- ...aOverrideBillingScheduleBillFromOptions.cs | 2 +- 11 files changed, 326 insertions(+), 4 deletions(-) create mode 100644 src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetails.cs create mode 100644 src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetailsNetworkData.cs create mode 100644 src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetailsNetworkDataDevice.cs create mode 100644 src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetailsNetworkDataMastercard.cs create mode 100644 src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetailsNetworkDataVisa.cs create mode 100644 src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetailsNetworkDataWalletProvider.cs diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index bf1e3ea4fc..b0a4efa729 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -b2b6ac2ae2ea46b678ca6df0040e6ba2f9ea11af \ No newline at end of file +2909a9f94e3392db0c39d4c1c776fe1d4977caab \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 2ff8e6f28c..f2b73a7d8d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2196 \ No newline at end of file +v2197 \ No newline at end of file diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs b/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs index b1d3086714..45ca69c422 100644 --- a/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs +++ b/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs @@ -339,6 +339,12 @@ public Token Token internal ExpandableField InternalToken { get; set; } #endregion + [JsonProperty("token_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("token_details")] +#endif + public AuthorizationTokenDetails TokenDetails { get; set; } + /// /// List of transactions /// associated with this authorization. diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetails.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetails.cs new file mode 100644 index 0000000000..92b3ef31e2 --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetails.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AuthorizationTokenDetails : StripeEntity + { + /// + /// The card associated with this token. + /// + [JsonProperty("card")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("card")] +#endif + public string Card { get; set; } + + /// + /// Time at which the object was created. Measured in seconds since the Unix epoch. + /// + [JsonProperty("created")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("created")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The hashed ID derived from the device ID from the card network associated with the + /// token. + /// + [JsonProperty("device_fingerprint")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("device_fingerprint")] +#endif + public string DeviceFingerprint { get; set; } + + [JsonProperty("network_data")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("network_data")] +#endif + public AuthorizationTokenDetailsNetworkData NetworkData { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetailsNetworkData.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetailsNetworkData.cs new file mode 100644 index 0000000000..80fa1578dd --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetailsNetworkData.cs @@ -0,0 +1,45 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AuthorizationTokenDetailsNetworkData : StripeEntity + { + [JsonProperty("device")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("device")] +#endif + public AuthorizationTokenDetailsNetworkDataDevice Device { get; set; } + + [JsonProperty("mastercard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mastercard")] +#endif + public AuthorizationTokenDetailsNetworkDataMastercard Mastercard { get; set; } + + /// + /// The card network for this token. + /// One of: mastercard, or visa. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + + [JsonProperty("visa")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("visa")] +#endif + public AuthorizationTokenDetailsNetworkDataVisa Visa { get; set; } + + [JsonProperty("wallet_provider")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("wallet_provider")] +#endif + public AuthorizationTokenDetailsNetworkDataWalletProvider WalletProvider { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetailsNetworkDataDevice.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetailsNetworkDataDevice.cs new file mode 100644 index 0000000000..247adc693d --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetailsNetworkDataDevice.cs @@ -0,0 +1,62 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AuthorizationTokenDetailsNetworkDataDevice : StripeEntity + { + /// + /// The IP address of the device at provisioning time. + /// + [JsonProperty("ip_address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip_address")] +#endif + public string IpAddress { get; set; } + + /// + /// The ISO 639-1 language code of the device associated with the tokenization request. + /// One of: aa, ab, ae, af, ak, am, an, + /// ar, as, av, ay, az, ba, be, bg, + /// bi, bm, bn, bo, br, bs, ca, ce, + /// ch, co, cr, cs, cu, cv, cy, da, + /// de, dv, dz, ee, el, en, eo, es, + /// et, eu, fa, ff, fi, fj, fo, fr, + /// fy, ga, gd, gl, gn, gu, gv, ha, + /// he, hi, ho, hr, ht, hu, hy, hz, + /// ia, id, ie, ig, ii, ik, io, is, + /// it, iu, ja, jv, ka, kg, ki, kj, + /// kk, kl, km, kn, ko, kr, ks, ku, + /// kv, kw, ky, la, lb, lg, li, ln, + /// lo, lt, lu, lv, mg, mh, mi, mk, + /// ml, mn, mr, ms, mt, my, na, nb, + /// nd, ne, ng, nl, nn, no, nr, nv, + /// ny, oc, oj, om, or, os, pa, pi, + /// pl, ps, pt, qu, rm, rn, ro, ru, + /// rw, sa, sc, sd, se, sg, si, sk, + /// sl, sm, sn, so, sq, sr, ss, st, + /// su, sv, sw, ta, te, tg, th, ti, + /// tk, tl, tn, to, tr, ts, tt, tw, + /// ty, ug, uk, ur, uz, ve, vi, vo, + /// wa, wo, xh, yi, yo, za, zh, or + /// zu. + /// + [JsonProperty("language")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("language")] +#endif + public string Language { get; set; } + + /// + /// The phone number of the device used for tokenization. + /// + [JsonProperty("phone_number")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone_number")] +#endif + public string PhoneNumber { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetailsNetworkDataMastercard.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetailsNetworkDataMastercard.cs new file mode 100644 index 0000000000..472eee8a7c --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetailsNetworkDataMastercard.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AuthorizationTokenDetailsNetworkDataMastercard : StripeEntity + { + /// + /// A unique reference ID from the network to represent the card account number. + /// + [JsonProperty("card_reference_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("card_reference_id")] +#endif + public string CardReferenceId { get; set; } + + /// + /// The network-unique identifier for the token. + /// + [JsonProperty("token_reference_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("token_reference_id")] +#endif + public string TokenReferenceId { get; set; } + + /// + /// The ID of the entity requesting tokenization. + /// + [JsonProperty("token_requestor_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("token_requestor_id")] +#endif + public string TokenRequestorId { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetailsNetworkDataVisa.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetailsNetworkDataVisa.cs new file mode 100644 index 0000000000..ecff49bcaa --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetailsNetworkDataVisa.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AuthorizationTokenDetailsNetworkDataVisa : StripeEntity + { + /// + /// A unique reference ID from the network to represent the card account number. + /// + [JsonProperty("card_reference_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("card_reference_id")] +#endif + public string CardReferenceId { get; set; } + + /// + /// The network-unique identifier for the token. + /// + [JsonProperty("token_reference_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("token_reference_id")] +#endif + public string TokenReferenceId { get; set; } + + /// + /// The ID of the entity requesting tokenization. + /// + [JsonProperty("token_requestor_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("token_requestor_id")] +#endif + public string TokenRequestorId { get; set; } + + /// + /// Degree of risk associated with the token between 01 and 99, with higher + /// number indicating higher risk. A 00 value indicates the token was not scored by + /// Visa. + /// + [JsonProperty("token_risk_score")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("token_risk_score")] +#endif + public string TokenRiskScore { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetailsNetworkDataWalletProvider.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetailsNetworkDataWalletProvider.cs new file mode 100644 index 0000000000..307f18a223 --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationTokenDetailsNetworkDataWalletProvider.cs @@ -0,0 +1,73 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AuthorizationTokenDetailsNetworkDataWalletProvider : StripeEntity + { + /// + /// An evaluation on the trustworthiness of the wallet account between 1 and 5. A higher + /// score indicates more trustworthy. + /// + [JsonProperty("account_trust_score")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account_trust_score")] +#endif + public long AccountTrustScore { get; set; } + + /// + /// The method used for tokenizing a card. + /// One of: app, manual, on_file, or other. + /// + [JsonProperty("card_number_source")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("card_number_source")] +#endif + public string CardNumberSource { get; set; } + + /// + /// An evaluation on the trustworthiness of the device. A higher score indicates more + /// trustworthy. + /// + [JsonProperty("device_trust_score")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("device_trust_score")] +#endif + public long DeviceTrustScore { get; set; } + + /// + /// The reasons for suggested tokenization given by the card network. + /// One of: account_card_too_new, account_recently_changed, + /// account_too_new, account_too_new_since_launch, additional_device, + /// data_expired, defer_id_v_decision, device_recently_lost, + /// good_activity_history, has_suspended_tokens, high_risk, + /// inactive_account, long_account_tenure, low_account_score, + /// low_device_score, low_phone_number_score, network_service_error, + /// outside_home_territory, provisioning_cardholder_mismatch, + /// provisioning_device_and_cardholder_mismatch, provisioning_device_mismatch, + /// same_device_no_prior_authentication, + /// same_device_successful_prior_authentication, software_update, + /// suspicious_activity, too_many_different_cardholders, + /// too_many_recent_attempts, or too_many_recent_tokens. + /// + [JsonProperty("reason_codes")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reason_codes")] +#endif + public List ReasonCodes { get; set; } + + /// + /// The recommendation on responding to the tokenization request. + /// One of: approve, decline, or require_auth. + /// + [JsonProperty("suggested_decision")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("suggested_decision")] +#endif + public string SuggestedDecision { get; set; } + } +} diff --git a/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataBillingScheduleBillFromOptions.cs b/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataBillingScheduleBillFromOptions.cs index ab09b55d2e..240291f213 100644 --- a/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataBillingScheduleBillFromOptions.cs +++ b/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataBillingScheduleBillFromOptions.cs @@ -32,7 +32,7 @@ public class QuoteSubscriptionDataBillingScheduleBillFromOptions : INestedOption /// /// The type of method to specify the bill_from time. - /// One of: line_starts_at, now, pause_collection_start, + /// One of: line_starts_at, pause_collection_start, /// quote_acceptance_date, or timestamp. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOverrideBillingScheduleBillFromOptions.cs b/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOverrideBillingScheduleBillFromOptions.cs index 5a1f3e7617..83ec03903f 100644 --- a/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOverrideBillingScheduleBillFromOptions.cs +++ b/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOverrideBillingScheduleBillFromOptions.cs @@ -32,7 +32,7 @@ public class QuoteSubscriptionDataOverrideBillingScheduleBillFromOptions : INest /// /// The type of method to specify the bill_from time. - /// One of: line_starts_at, now, pause_collection_start, + /// One of: line_starts_at, pause_collection_start, /// quote_acceptance_date, or timestamp. /// [JsonProperty("type")] From 9e57ff5c4c5beaea9e598c096962a99448bff022 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 13 Mar 2026 03:48:52 +0000 Subject: [PATCH 07/14] Update generated code for v2198 and --- OPENAPI_VERSION | 2 +- .../CustomerEvaluations/CustomerEvaluation.cs | 82 +++++++++++++++++++ .../CustomerEvaluationSignals.cs | 23 ++++++ ...CustomerEvaluationSignalsAccountSharing.cs | 42 ++++++++++ ...ustomerEvaluationSignalsMultiAccounting.cs | 42 ++++++++++ .../Public/StripeTypeRegistry.cs | 1 + .../CustomerEvaluationCreateOptions.cs | 30 +++++++ ...onEvaluationContextClientDetailsOptions.cs | 20 +++++ ...ntextCustomerDetailsCustomerDataOptions.cs | 38 +++++++++ ...EvaluationContextCustomerDetailsOptions.cs | 29 +++++++ ...tomerEvaluationEvaluationContextOptions.cs | 39 +++++++++ .../CustomerEvaluationService.cs | 42 ++++++++++ src/Stripe.net/Services/RadarService.cs | 4 + 13 files changed, 393 insertions(+), 1 deletion(-) create mode 100644 src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluation.cs create mode 100644 src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationSignals.cs create mode 100644 src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationSignalsAccountSharing.cs create mode 100644 src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationSignalsMultiAccounting.cs create mode 100644 src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationCreateOptions.cs create mode 100644 src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationEvaluationContextClientDetailsOptions.cs create mode 100644 src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationEvaluationContextCustomerDetailsCustomerDataOptions.cs create mode 100644 src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationEvaluationContextCustomerDetailsOptions.cs create mode 100644 src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationEvaluationContextOptions.cs create mode 100644 src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationService.cs diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index f2b73a7d8d..46cddfca96 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2197 \ No newline at end of file +v2198 \ No newline at end of file diff --git a/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluation.cs b/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluation.cs new file mode 100644 index 0000000000..23ba2ad77f --- /dev/null +++ b/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluation.cs @@ -0,0 +1,82 @@ +// File generated from our OpenAPI spec +namespace Stripe.Radar +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + /// + /// Customer Evaluation resource returned by the Radar Customer Evaluations API. + /// + public class CustomerEvaluation : StripeEntity, IHasId, IHasObject + { + /// + /// Unique identifier for the object. + /// + [JsonProperty("id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("id")] +#endif + public string Id { get; set; } + + /// + /// String representing the object's type. Objects of the same type share the same value. + /// + [JsonProperty("object")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("object")] +#endif + public string Object { get; set; } + + /// + /// Time at which the object was created. Measured in seconds since the Unix epoch. + /// + [JsonProperty("created_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("created_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime CreatedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The ID of the Stripe customer the customer evaluation is associated with. + /// + [JsonProperty("customer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer")] +#endif + public string Customer { get; set; } + + /// + /// The type of evaluation event. + /// + [JsonProperty("event_type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("event_type")] +#endif + public string EventType { get; set; } + + /// + /// If the object exists in live mode, the value is true. If the object exists in + /// test mode, the value is false. + /// + [JsonProperty("livemode")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("livemode")] +#endif + public bool Livemode { get; set; } + + /// + /// A hash of signal objects providing Radar's evaluation for the lifecycle event. + /// + [JsonProperty("signals")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("signals")] +#endif + public CustomerEvaluationSignals Signals { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationSignals.cs b/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationSignals.cs new file mode 100644 index 0000000000..e8c05ae68c --- /dev/null +++ b/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationSignals.cs @@ -0,0 +1,23 @@ +// File generated from our OpenAPI spec +namespace Stripe.Radar +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class CustomerEvaluationSignals : StripeEntity + { + [JsonProperty("account_sharing")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account_sharing")] +#endif + public CustomerEvaluationSignalsAccountSharing AccountSharing { get; set; } + + [JsonProperty("multi_accounting")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("multi_accounting")] +#endif + public CustomerEvaluationSignalsMultiAccounting MultiAccounting { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationSignalsAccountSharing.cs b/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationSignalsAccountSharing.cs new file mode 100644 index 0000000000..b4634ff69e --- /dev/null +++ b/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationSignalsAccountSharing.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.Radar +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class CustomerEvaluationSignalsAccountSharing : StripeEntity + { + /// + /// Time at which the signal was evaluated. Measured in seconds since the Unix epoch. + /// + [JsonProperty("evaluated_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("evaluated_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime EvaluatedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The risk level for this signal. + /// + [JsonProperty("risk_level")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("risk_level")] +#endif + public string RiskLevel { get; set; } + + /// + /// Score for this signal (float between 0.0-100.0). + /// + [JsonProperty("score")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("score")] +#endif + public decimal Score { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationSignalsMultiAccounting.cs b/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationSignalsMultiAccounting.cs new file mode 100644 index 0000000000..12849dbc5e --- /dev/null +++ b/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationSignalsMultiAccounting.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.Radar +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class CustomerEvaluationSignalsMultiAccounting : StripeEntity + { + /// + /// Time at which the signal was evaluated. Measured in seconds since the Unix epoch. + /// + [JsonProperty("evaluated_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("evaluated_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime EvaluatedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The risk level for this signal. + /// + [JsonProperty("risk_level")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("risk_level")] +#endif + public string RiskLevel { get; set; } + + /// + /// Score for this signal (float between 0.0-100.0). + /// + [JsonProperty("score")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("score")] +#endif + public decimal Score { get; set; } + } +} diff --git a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs index 2d8d2b548c..980c6925df 100644 --- a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs +++ b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs @@ -178,6 +178,7 @@ public static class StripeTypeRegistry QuotePreviewSubscriptionSchedule) }, { "radar.account_evaluation", typeof(Radar.AccountEvaluation) }, + { "radar.customer_evaluation", typeof(Radar.CustomerEvaluation) }, { "radar.early_fraud_warning", typeof(Radar.EarlyFraudWarning) }, { "radar.issuing_authorization_evaluation", typeof( diff --git a/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationCreateOptions.cs b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationCreateOptions.cs new file mode 100644 index 0000000000..56df119324 --- /dev/null +++ b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationCreateOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.Radar +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class CustomerEvaluationCreateOptions : BaseOptions + { + /// + /// Array of context entries for the evaluation. + /// + [JsonProperty("evaluation_context")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("evaluation_context")] +#endif + public List EvaluationContext { get; set; } + + /// + /// The type of evaluation event. + /// + [JsonProperty("event_type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("event_type")] +#endif + public string EventType { get; set; } + } +} diff --git a/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationEvaluationContextClientDetailsOptions.cs b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationEvaluationContextClientDetailsOptions.cs new file mode 100644 index 0000000000..db1d4bdd56 --- /dev/null +++ b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationEvaluationContextClientDetailsOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Radar +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class CustomerEvaluationEvaluationContextClientDetailsOptions : INestedOptions + { + /// + /// ID for the Radar Session associated with the customer evaluation. + /// + [JsonProperty("radar_session")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("radar_session")] +#endif + public string RadarSession { get; set; } + } +} diff --git a/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationEvaluationContextCustomerDetailsCustomerDataOptions.cs b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationEvaluationContextCustomerDetailsCustomerDataOptions.cs new file mode 100644 index 0000000000..ba16d79f83 --- /dev/null +++ b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationEvaluationContextCustomerDetailsCustomerDataOptions.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Radar +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class CustomerEvaluationEvaluationContextCustomerDetailsCustomerDataOptions : INestedOptions + { + /// + /// Customer email. + /// + [JsonProperty("email")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("email")] +#endif + public string Email { get; set; } + + /// + /// Customer name. + /// + [JsonProperty("name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("name")] +#endif + public string Name { get; set; } + + /// + /// Customer phone. + /// + [JsonProperty("phone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("phone")] +#endif + public string Phone { get; set; } + } +} diff --git a/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationEvaluationContextCustomerDetailsOptions.cs b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationEvaluationContextCustomerDetailsOptions.cs new file mode 100644 index 0000000000..18a037dad1 --- /dev/null +++ b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationEvaluationContextCustomerDetailsOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.Radar +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class CustomerEvaluationEvaluationContextCustomerDetailsOptions : INestedOptions + { + /// + /// Stripe customer ID. + /// + [JsonProperty("customer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer")] +#endif + public string Customer { get; set; } + + /// + /// Customer data. + /// + [JsonProperty("customer_data")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_data")] +#endif + public CustomerEvaluationEvaluationContextCustomerDetailsCustomerDataOptions CustomerData { get; set; } + } +} diff --git a/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationEvaluationContextOptions.cs b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationEvaluationContextOptions.cs new file mode 100644 index 0000000000..9c10ab4de2 --- /dev/null +++ b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationEvaluationContextOptions.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.Radar +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class CustomerEvaluationEvaluationContextOptions : INestedOptions + { + /// + /// Client details context. + /// + [JsonProperty("client_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("client_details")] +#endif + public CustomerEvaluationEvaluationContextClientDetailsOptions ClientDetails { get; set; } + + /// + /// Customer details context. + /// + [JsonProperty("customer_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer_details")] +#endif + public CustomerEvaluationEvaluationContextCustomerDetailsOptions CustomerDetails { get; set; } + + /// + /// The type of context entry. + /// One of: client_details, or customer_details. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationService.cs b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationService.cs new file mode 100644 index 0000000000..c27857bfa3 --- /dev/null +++ b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationService.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.Radar +{ + using System; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public class CustomerEvaluationService : Service, + ICreatable + { + public CustomerEvaluationService() + { + } + + internal CustomerEvaluationService(ApiRequestor requestor) + : base(requestor) + { + } + + public CustomerEvaluationService(IStripeClient client) + : base(client) + { + } + + /// + ///

Creates a new CustomerEvaluation object.

. + ///
+ public virtual CustomerEvaluation Create(CustomerEvaluationCreateOptions options, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/radar/customer_evaluations", options, requestOptions); + } + + /// + ///

Creates a new CustomerEvaluation object.

. + ///
+ public virtual Task CreateAsync(CustomerEvaluationCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/radar/customer_evaluations", options, requestOptions, cancellationToken); + } + } +} diff --git a/src/Stripe.net/Services/RadarService.cs b/src/Stripe.net/Services/RadarService.cs index 594ab8db70..60becda277 100644 --- a/src/Stripe.net/Services/RadarService.cs +++ b/src/Stripe.net/Services/RadarService.cs @@ -8,6 +8,7 @@ namespace Stripe public class RadarService : Service { private Radar.AccountEvaluationService accountEvaluations; + private Radar.CustomerEvaluationService customerEvaluations; private Radar.EarlyFraudWarningService earlyFraudWarnings; private Radar.IssuingAuthorizationEvaluationService issuingAuthorizationEvaluations; private Radar.PaymentEvaluationService paymentEvaluations; @@ -27,6 +28,9 @@ internal RadarService(IStripeClient client) public virtual Radar.AccountEvaluationService AccountEvaluations => this.accountEvaluations ??= new Radar.AccountEvaluationService( this.Requestor); + public virtual Radar.CustomerEvaluationService CustomerEvaluations => this.customerEvaluations ??= new Radar.CustomerEvaluationService( + this.Requestor); + public virtual Radar.EarlyFraudWarningService EarlyFraudWarnings => this.earlyFraudWarnings ??= new Radar.EarlyFraudWarningService( this.Requestor); From 2a79bbcbb08360f4de3ac91df765fa34d84306da Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 13 Mar 2026 17:50:02 +0000 Subject: [PATCH 08/14] Update generated code for v2200 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- .../CustomerEvaluations/CustomerEvaluation.cs | 10 ++++ .../CustomerEvaluationEvent.cs | 51 +++++++++++++++++++ .../CustomerEvaluationEventLoginFailed.cs | 20 ++++++++ ...stomerEvaluationEventRegistrationFailed.cs | 20 ++++++++ .../CustomerEvaluationCreateOptions.cs | 1 + .../CustomerEvaluationLoginFailedOptions.cs | 21 ++++++++ ...omerEvaluationRegistrationFailedOptions.cs | 21 ++++++++ ...merEvaluationRegistrationSuccessOptions.cs | 20 ++++++++ .../CustomerEvaluationService.cs | 20 +++++++- .../CustomerEvaluationUpdateOptions.cs | 49 ++++++++++++++++++ 12 files changed, 234 insertions(+), 3 deletions(-) create mode 100644 src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationEvent.cs create mode 100644 src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationEventLoginFailed.cs create mode 100644 src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationEventRegistrationFailed.cs create mode 100644 src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationLoginFailedOptions.cs create mode 100644 src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationRegistrationFailedOptions.cs create mode 100644 src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationRegistrationSuccessOptions.cs create mode 100644 src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationUpdateOptions.cs diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index b0a4efa729..8cde21126e 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -2909a9f94e3392db0c39d4c1c776fe1d4977caab \ No newline at end of file +adcc4a45af6a5ca7926677971ce60771f7803c14 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 46cddfca96..bd5e2f98e5 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2198 \ No newline at end of file +v2200 \ No newline at end of file diff --git a/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluation.cs b/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluation.cs index 23ba2ad77f..5290759d5e 100644 --- a/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluation.cs +++ b/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluation.cs @@ -2,6 +2,7 @@ namespace Stripe.Radar { using System; + using System.Collections.Generic; using Newtonsoft.Json; using Stripe.Infrastructure; #if NET6_0_OR_GREATER @@ -60,6 +61,15 @@ public class CustomerEvaluation : StripeEntity, IHasId, IHas #endif public string EventType { get; set; } + /// + /// A list of events that have been reported on this customer evaluation. + /// + [JsonProperty("events")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("events")] +#endif + public List Events { get; set; } + /// /// If the object exists in live mode, the value is true. If the object exists in /// test mode, the value is false. diff --git a/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationEvent.cs b/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationEvent.cs new file mode 100644 index 0000000000..a374c0d387 --- /dev/null +++ b/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationEvent.cs @@ -0,0 +1,51 @@ +// File generated from our OpenAPI spec +namespace Stripe.Radar +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class CustomerEvaluationEvent : StripeEntity + { + /// + /// Data about a failed login event. + /// + [JsonProperty("login_failed")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("login_failed")] +#endif + public CustomerEvaluationEventLoginFailed LoginFailed { get; set; } + + /// + /// Time at which the event occurred. Measured in seconds since the Unix epoch. + /// + [JsonProperty("occurred_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("occurred_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime OccurredAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Data about a failed registration event. + /// + [JsonProperty("registration_failed")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("registration_failed")] +#endif + public CustomerEvaluationEventRegistrationFailed RegistrationFailed { get; set; } + + /// + /// The type of event that occurred. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationEventLoginFailed.cs b/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationEventLoginFailed.cs new file mode 100644 index 0000000000..0e236ad8ac --- /dev/null +++ b/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationEventLoginFailed.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Radar +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class CustomerEvaluationEventLoginFailed : StripeEntity + { + /// + /// The reason why this login failed. + /// + [JsonProperty("reason")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reason")] +#endif + public string Reason { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationEventRegistrationFailed.cs b/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationEventRegistrationFailed.cs new file mode 100644 index 0000000000..4382a59180 --- /dev/null +++ b/src/Stripe.net/Entities/Radar/CustomerEvaluations/CustomerEvaluationEventRegistrationFailed.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Radar +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class CustomerEvaluationEventRegistrationFailed : StripeEntity + { + /// + /// The reason why this registration failed. + /// + [JsonProperty("reason")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reason")] +#endif + public string Reason { get; set; } + } +} diff --git a/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationCreateOptions.cs b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationCreateOptions.cs index 56df119324..d676608473 100644 --- a/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationCreateOptions.cs +++ b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationCreateOptions.cs @@ -20,6 +20,7 @@ public class CustomerEvaluationCreateOptions : BaseOptions /// /// The type of evaluation event. + /// One of: login, or registration. /// [JsonProperty("event_type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationLoginFailedOptions.cs b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationLoginFailedOptions.cs new file mode 100644 index 0000000000..695710bfdb --- /dev/null +++ b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationLoginFailedOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Radar +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class CustomerEvaluationLoginFailedOptions : INestedOptions + { + /// + /// The reason why this login failed. + /// One of: other, or suspected_account_sharing. + /// + [JsonProperty("reason")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reason")] +#endif + public string Reason { get; set; } + } +} diff --git a/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationRegistrationFailedOptions.cs b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationRegistrationFailedOptions.cs new file mode 100644 index 0000000000..247177a390 --- /dev/null +++ b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationRegistrationFailedOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Radar +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class CustomerEvaluationRegistrationFailedOptions : INestedOptions + { + /// + /// The reason why this registration failed. + /// One of: other, or suspected_multi_accounting. + /// + [JsonProperty("reason")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reason")] +#endif + public string Reason { get; set; } + } +} diff --git a/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationRegistrationSuccessOptions.cs b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationRegistrationSuccessOptions.cs new file mode 100644 index 0000000000..56e48f6481 --- /dev/null +++ b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationRegistrationSuccessOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Radar +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class CustomerEvaluationRegistrationSuccessOptions : INestedOptions + { + /// + /// Stripe customer ID to attach to an entity-less registration evaluation. + /// + [JsonProperty("customer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer")] +#endif + public string Customer { get; set; } + } +} diff --git a/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationService.cs b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationService.cs index c27857bfa3..5f94cbd763 100644 --- a/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationService.cs +++ b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationService.cs @@ -2,12 +2,14 @@ namespace Stripe.Radar { using System; + using System.Net; using System.Net.Http; using System.Threading; using System.Threading.Tasks; public class CustomerEvaluationService : Service, - ICreatable + ICreatable, + IUpdatable { public CustomerEvaluationService() { @@ -38,5 +40,21 @@ public virtual Task CreateAsync(CustomerEvaluationCreateOpti { return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/radar/customer_evaluations", options, requestOptions, cancellationToken); } + + /// + ///

Reports an event on a CustomerEvaluation object.

. + ///
+ public virtual CustomerEvaluation Update(string id, CustomerEvaluationUpdateOptions options, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/radar/customer_evaluations/{WebUtility.UrlEncode(id)}/report", options, requestOptions); + } + + /// + ///

Reports an event on a CustomerEvaluation object.

. + ///
+ public virtual Task UpdateAsync(string id, CustomerEvaluationUpdateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/radar/customer_evaluations/{WebUtility.UrlEncode(id)}/report", options, requestOptions, cancellationToken); + } } } diff --git a/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationUpdateOptions.cs b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationUpdateOptions.cs new file mode 100644 index 0000000000..553f53a79b --- /dev/null +++ b/src/Stripe.net/Services/Radar/CustomerEvaluations/CustomerEvaluationUpdateOptions.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Radar +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class CustomerEvaluationUpdateOptions : BaseOptions + { + /// + /// Event payload for login_failed. + /// + [JsonProperty("login_failed")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("login_failed")] +#endif + public CustomerEvaluationLoginFailedOptions LoginFailed { get; set; } + + /// + /// Event payload for registration_failed. + /// + [JsonProperty("registration_failed")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("registration_failed")] +#endif + public CustomerEvaluationRegistrationFailedOptions RegistrationFailed { get; set; } + + /// + /// Event payload for registration_success. + /// + [JsonProperty("registration_success")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("registration_success")] +#endif + public CustomerEvaluationRegistrationSuccessOptions RegistrationSuccess { get; set; } + + /// + /// The type of event to report. + /// One of: login_failed, login_success, registration_failed, or + /// registration_success. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} From d8450928e612b05e784f2bdfcdb35175c12dd836 Mon Sep 17 00:00:00 2001 From: remi-stripe Date: Fri, 13 Mar 2026 12:12:03 -0700 Subject: [PATCH 09/14] Add link to Stripe's Discord server to the readme (#3320) --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 3c48162008..f7cd2f5a35 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,9 @@ [![Build Status](https://github.com/stripe/stripe-dotnet/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/stripe/stripe-dotnet/actions?query=branch%3Amaster) [![Coverage Status](https://coveralls.io/repos/github/stripe/stripe-dotnet/badge.svg?branch=master)](https://coveralls.io/github/stripe/stripe-dotnet?branch=master) +> [!TIP] +> Want to chat live with Stripe engineers? Join us on our [Discord server](https://stripe.com/go/discord/dotnet). + The official [Stripe][stripe] .NET library, supporting .NET Standard 2.0+, .NET Core 5+, and .NET Framework 4.6.2+. ## Installation From a9313e5f15b8fcdbec45ff971e7f17179e036bed Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 13 Mar 2026 20:37:56 +0000 Subject: [PATCH 10/14] Update generated code for v2201 and --- OPENAPI_VERSION | 2 +- .../InvoiceLineItems/InvoiceLineItemParent.cs | 20 ++++++++-------- ...emParentPricingPlanSubscriptionDetails.cs} | 24 +++---------------- ...neItemParentRateCardSubscriptionDetails.cs | 18 -------------- 4 files changed, 14 insertions(+), 50 deletions(-) rename src/Stripe.net/Entities/InvoiceLineItems/{InvoiceLineItemParentLicenseFeeSubscriptionDetails.cs => InvoiceLineItemParentPricingPlanSubscriptionDetails.cs} (50%) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index bd5e2f98e5..21fcb610e4 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2200 \ No newline at end of file +v2201 \ No newline at end of file diff --git a/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemParent.cs b/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemParent.cs index df5a69f93e..d2375b2686 100644 --- a/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemParent.cs +++ b/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemParent.cs @@ -17,15 +17,6 @@ public class InvoiceLineItemParent : StripeEntity #endif public InvoiceLineItemParentInvoiceItemDetails InvoiceItemDetails { get; set; } - /// - /// Details about the license fee subscription that generated this line item. - /// - [JsonProperty("license_fee_subscription_details")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("license_fee_subscription_details")] -#endif - public InvoiceLineItemParentLicenseFeeSubscriptionDetails LicenseFeeSubscriptionDetails { get; set; } - /// /// Details about the rate card subscription that generated this line item. /// @@ -55,7 +46,7 @@ public class InvoiceLineItemParent : StripeEntity /// /// The type of parent that generated this line item. - /// One of: invoice_item_details, license_fee_subscription_details, + /// One of: invoice_item_details, pricing_plan_subscription_details, /// rate_card_subscription_details, schedule_details, or /// subscription_item_details. /// @@ -64,5 +55,14 @@ public class InvoiceLineItemParent : StripeEntity [STJS.JsonPropertyName("type")] #endif public string Type { get; set; } + + /// + /// Details about the pricing plan subscription that generated this line item. + /// + [JsonProperty("pricing_plan_subscription_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("pricing_plan_subscription_details")] +#endif + public InvoiceLineItemParentPricingPlanSubscriptionDetails PricingPlanSubscriptionDetails { get; set; } } } diff --git a/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemParentLicenseFeeSubscriptionDetails.cs b/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemParentPricingPlanSubscriptionDetails.cs similarity index 50% rename from src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemParentLicenseFeeSubscriptionDetails.cs rename to src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemParentPricingPlanSubscriptionDetails.cs index ed85d0cfc6..f527823aaa 100644 --- a/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemParentLicenseFeeSubscriptionDetails.cs +++ b/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemParentPricingPlanSubscriptionDetails.cs @@ -6,7 +6,7 @@ namespace Stripe using STJS = System.Text.Json.Serialization; #endif - public class InvoiceLineItemParentLicenseFeeSubscriptionDetails : StripeEntity + public class InvoiceLineItemParentPricingPlanSubscriptionDetails : StripeEntity { /// /// The invoice item that generated this line item. @@ -18,25 +18,7 @@ public class InvoiceLineItemParentLicenseFeeSubscriptionDetails : StripeEntity - /// The license fee subscription that generated this line item. - /// - [JsonProperty("license_fee_subscription")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("license_fee_subscription")] -#endif - public string LicenseFeeSubscription { get; set; } - - /// - /// The license fee version at the time this line item was generated. - /// - [JsonProperty("license_fee_version")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("license_fee_version")] -#endif - public string LicenseFeeVersion { get; set; } - - /// - /// The pricing plan subscription that manages the license fee subscription. + /// The pricing plan subscription that manages this charge. /// [JsonProperty("pricing_plan_subscription")] #if NET6_0_OR_GREATER @@ -45,7 +27,7 @@ public class InvoiceLineItemParentLicenseFeeSubscriptionDetails : StripeEntity - /// The pricing plan version at the time this line item was generated. + /// The pricing plan version at the time this charge was generated. ///
[JsonProperty("pricing_plan_version")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemParentRateCardSubscriptionDetails.cs b/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemParentRateCardSubscriptionDetails.cs index 246c429475..ea0f052bdc 100644 --- a/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemParentRateCardSubscriptionDetails.cs +++ b/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemParentRateCardSubscriptionDetails.cs @@ -17,24 +17,6 @@ public class InvoiceLineItemParentRateCardSubscriptionDetails : StripeEntity - /// The pricing plan subscription that manages the rate card subscription. - ///
- [JsonProperty("pricing_plan_subscription")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("pricing_plan_subscription")] -#endif - public string PricingPlanSubscription { get; set; } - - /// - /// The pricing plan version at the time this line item was generated. - /// - [JsonProperty("pricing_plan_version")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("pricing_plan_version")] -#endif - public string PricingPlanVersion { get; set; } - /// /// The rate card subscription that generated this line item. /// From 32a483f10a170e9f973501c8c69d9b53e960d020 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 18:53:37 +0000 Subject: [PATCH 11/14] Update generated code for v2202 and --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- src/Stripe.net/Entities/InvoiceItems/InvoiceItem.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 282d09dd40..031fe9d419 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -9302385c295e8882b47b61945d61dc2470f0cfce \ No newline at end of file +2a5f548393a04939e6f0baedff7e97e9cac6e241 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 21fcb610e4..8110841c8f 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2201 \ No newline at end of file +v2202 \ No newline at end of file diff --git a/src/Stripe.net/Entities/InvoiceItems/InvoiceItem.cs b/src/Stripe.net/Entities/InvoiceItems/InvoiceItem.cs index 544518dbd4..cdfd6bc3ef 100644 --- a/src/Stripe.net/Entities/InvoiceItems/InvoiceItem.cs +++ b/src/Stripe.net/Entities/InvoiceItems/InvoiceItem.cs @@ -207,7 +207,7 @@ public List Discounts /// /// Array of field names that can't be modified. Attempting to update a frozen field returns /// an error. - /// One of: pricing, or quantity. + /// One of: discounts, pricing, or quantity. /// [JsonProperty("frozen_fields")] #if NET6_0_OR_GREATER From 1ed7d0854bef2dd820808a8ad09372e2e51e0982 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 21:03:57 +0000 Subject: [PATCH 12/14] Update generated code for v2202 and --- CODEGEN_VERSION | 2 +- .../ServiceActionCreditGrantAmount.cs | 2 +- .../ServiceActionCreditGrantAmountMonetary.cs | 32 ---- ...ServiceActionCreditGrantPerTenantAmount.cs | 2 +- ...ctionCreditGrantPerTenantAmountMonetary.cs | 32 ---- ...untIdentityBusinessDetailsAnnualRevenue.cs | 2 +- ...ntityBusinessDetailsAnnualRevenueAmount.cs | 32 ---- ...yBusinessDetailsMonthlyEstimatedRevenue.cs | 2 +- ...essDetailsMonthlyEstimatedRevenueAmount.cs | 32 ---- .../FinancialAddressGeneratedMicrodeposits.cs | 2 +- ...cialAddressGeneratedMicrodepositsAmount.cs | 32 ---- .../MoneyManagement/Adjustments/Adjustment.cs | 2 +- .../Adjustments/AdjustmentAmount.cs | 32 ---- .../CurrencyConversionFrom.cs | 2 +- .../CurrencyConversionFromAmount.cs | 32 ---- .../CurrencyConversionTo.cs | 2 +- .../CurrencyConversionToAmount.cs | 32 ---- .../FinancialAccountBalance.cs | 6 +- .../FinancialAccountBalanceAvailable.cs | 32 ---- .../FinancialAccountBalanceInboundPending.cs | 32 ---- .../FinancialAccountBalanceOutboundPending.cs | 32 ---- ...FinancialAccountPaymentsStartingBalance.cs | 2 +- ...AccountPaymentsStartingBalanceAvailable.cs | 32 ---- .../InboundTransfers/InboundTransfer.cs | 2 +- .../InboundTransfers/InboundTransferAmount.cs | 32 ---- .../InboundTransfers/InboundTransferFrom.cs | 2 +- .../InboundTransferFromDebited.cs | 32 ---- .../InboundTransfers/InboundTransferTo.cs | 2 +- .../InboundTransferToCredited.cs | 32 ---- .../OutboundPaymentQuote.cs | 2 +- .../OutboundPaymentQuoteAmount.cs | 32 ---- .../OutboundPaymentQuoteEstimatedFee.cs | 2 +- .../OutboundPaymentQuoteEstimatedFeeAmount.cs | 32 ---- .../OutboundPaymentQuoteFrom.cs | 2 +- .../OutboundPaymentQuoteFromDebited.cs | 32 ---- .../OutboundPaymentQuoteTo.cs | 2 +- .../OutboundPaymentQuoteToCredited.cs | 32 ---- .../OutboundPayments/OutboundPayment.cs | 2 +- .../OutboundPayments/OutboundPaymentAmount.cs | 32 ---- .../OutboundPayments/OutboundPaymentFrom.cs | 2 +- .../OutboundPaymentFromDebited.cs | 32 ---- .../OutboundPayments/OutboundPaymentTo.cs | 2 +- .../OutboundPaymentToCredited.cs | 32 ---- .../OutboundTransfers/OutboundTransfer.cs | 2 +- .../OutboundTransferAmount.cs | 32 ---- .../OutboundTransfers/OutboundTransferFrom.cs | 2 +- .../OutboundTransferFromDebited.cs | 32 ---- .../OutboundTransfers/OutboundTransferTo.cs | 2 +- .../OutboundTransferToCredited.cs | 32 ---- .../ReceivedCredits/ReceivedCredit.cs | 4 +- .../ReceivedCredits/ReceivedCreditAmount.cs | 32 ---- .../ReceivedCreditExternalAmount.cs | 32 ---- .../ReceivedDebits/ReceivedDebit.cs | 4 +- .../ReceivedDebits/ReceivedDebitAmount.cs | 32 ---- .../ReceivedDebitCardSpendAuthorization.cs | 2 +- ...ceivedDebitCardSpendAuthorizationAmount.cs | 32 ---- .../ReceivedDebitCardSpendCardTransaction.cs | 2 +- ...ivedDebitCardSpendCardTransactionAmount.cs | 32 ---- .../ReceivedDebitExternalAmount.cs | 32 ---- .../TransactionEntryBalanceImpact.cs | 6 +- .../TransactionEntryBalanceImpactAvailable.cs | 32 ---- ...sactionEntryBalanceImpactInboundPending.cs | 32 ---- ...actionEntryBalanceImpactOutboundPending.cs | 32 ---- .../Transactions/Transaction.cs | 2 +- .../Transactions/TransactionAmount.cs | 32 ---- .../Transactions/TransactionBalanceImpact.cs | 6 +- .../TransactionBalanceImpactAvailable.cs | 32 ---- .../TransactionBalanceImpactInboundPending.cs | 32 ---- ...TransactionBalanceImpactOutboundPending.cs | 32 ---- .../OffSessionPayments/OffSessionPayment.cs | 4 +- .../OffSessionPaymentAmountCapturable.cs | 32 ---- .../OffSessionPaymentAmountRequested.cs | 32 ---- .../SettlementAllocationIntentSplit.cs | 2 +- .../SettlementAllocationIntentSplitAmount.cs | 32 ---- .../SettlementAllocationIntent.cs | 2 +- .../SettlementAllocationIntentAmount.cs | 32 ---- ...HealthFraudRateIncreasedEventDataImpact.cs | 2 +- ...easedEventDataImpactRealizedFraudAmount.cs | 33 ---- ...ationRequestErrorsFiringEventDataImpact.cs | 4 +- ...rorsFiringEventDataImpactApprovedAmount.cs | 33 ---- ...rorsFiringEventDataImpactDeclinedAmount.cs | 33 ---- ...ionRequestErrorsResolvedEventDataImpact.cs | 4 +- ...rsResolvedEventDataImpactApprovedAmount.cs | 33 ---- ...rsResolvedEventDataImpactDeclinedAmount.cs | 33 ---- ...tionRequestTimeoutFiringEventDataImpact.cs | 4 +- ...eoutFiringEventDataImpactApprovedAmount.cs | 33 ---- ...eoutFiringEventDataImpactDeclinedAmount.cs | 33 ---- ...onRequestTimeoutResolvedEventDataImpact.cs | 4 +- ...utResolvedEventDataImpactApprovedAmount.cs | 33 ---- ...utResolvedEventDataImpactDeclinedAmount.cs | 33 ---- ...nCreateCreditGrantAmountMonetaryOptions.cs | 32 ---- ...iceActionCreateCreditGrantAmountOptions.cs | 2 +- ...editGrantPerTenantAmountMonetaryOptions.cs | 32 ---- ...CreateCreditGrantPerTenantAmountOptions.cs | 2 +- ...sinessDetailsAnnualRevenueAmountOptions.cs | 32 ---- ...tityBusinessDetailsAnnualRevenueOptions.cs | 2 +- ...ilsMonthlyEstimatedRevenueAmountOptions.cs | 32 ---- ...ssDetailsMonthlyEstimatedRevenueOptions.cs | 2 +- ...sinessDetailsAnnualRevenueAmountOptions.cs | 32 ---- ...tityBusinessDetailsAnnualRevenueOptions.cs | 2 +- ...ilsMonthlyEstimatedRevenueAmountOptions.cs | 32 ---- ...ssDetailsMonthlyEstimatedRevenueOptions.cs | 2 +- ...sinessDetailsAnnualRevenueAmountOptions.cs | 32 ---- ...tityBusinessDetailsAnnualRevenueOptions.cs | 2 +- ...ilsMonthlyEstimatedRevenueAmountOptions.cs | 32 ---- ...ssDetailsMonthlyEstimatedRevenueOptions.cs | 2 +- ...rrencyConversionCreateFromAmountOptions.cs | 32 ---- .../CurrencyConversionCreateFromOptions.cs | 2 +- ...CurrencyConversionCreateToAmountOptions.cs | 32 ---- .../CurrencyConversionCreateToOptions.cs | 2 +- .../InboundTransferCreateAmountOptions.cs | 32 ---- .../InboundTransferCreateOptions.cs | 2 +- ...OutboundPaymentQuoteCreateAmountOptions.cs | 32 ---- .../OutboundPaymentQuoteCreateOptions.cs | 2 +- .../OutboundPaymentCreateAmountOptions.cs | 32 ---- .../OutboundPaymentCreateOptions.cs | 2 +- .../OutboundTransferCreateAmountOptions.cs | 32 ---- .../OutboundTransferCreateOptions.cs | 2 +- .../OffSessionPaymentCreateAmountOptions.cs | 32 ---- .../OffSessionPaymentCreateOptions.cs | 2 +- ...mentAllocationIntentCreateAmountOptions.cs | 32 ---- ...SettlementAllocationIntentCreateOptions.cs | 2 +- ...mentAllocationIntentUpdateAmountOptions.cs | 32 ---- ...SettlementAllocationIntentUpdateOptions.cs | 2 +- .../Splits/SplitCreateAmountOptions.cs | 32 ---- .../Splits/SplitCreateOptions.cs | 2 +- .../FinancialAddressCreditAmountOptions.cs | 32 ---- .../FinancialAddressCreditOptions.cs | 2 +- .../Services/GeneratedExamplesTest.cs | 166 +++++++----------- 129 files changed, 134 insertions(+), 2423 deletions(-) delete mode 100644 src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantAmountMonetary.cs delete mode 100644 src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantPerTenantAmountMonetary.cs delete mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenueAmount.cs delete mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount.cs delete mode 100644 src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodepositsAmount.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/AdjustmentAmount.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionFromAmount.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionToAmount.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceAvailable.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceInboundPending.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceOutboundPending.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountPaymentsStartingBalanceAvailable.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferAmount.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferFromDebited.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferToCredited.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteAmount.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteEstimatedFeeAmount.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteFromDebited.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteToCredited.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentAmount.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentFromDebited.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToCredited.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferAmount.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferFromDebited.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferToCredited.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditAmount.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditExternalAmount.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitAmount.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendAuthorizationAmount.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendCardTransactionAmount.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitExternalAmount.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactAvailable.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactInboundPending.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactOutboundPending.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionAmount.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactAvailable.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactInboundPending.cs delete mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactOutboundPending.cs delete mode 100644 src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountCapturable.cs delete mode 100644 src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountRequested.cs delete mode 100644 src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntentSplits/SettlementAllocationIntentSplitAmount.cs delete mode 100644 src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentAmount.cs delete mode 100644 src/Stripe.net/Events/V2CoreHealthFraudRateIncreasedEventDataImpactRealizedFraudAmount.cs delete mode 100644 src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactApprovedAmount.cs delete mode 100644 src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactDeclinedAmount.cs delete mode 100644 src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactApprovedAmount.cs delete mode 100644 src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactDeclinedAmount.cs delete mode 100644 src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactApprovedAmount.cs delete mode 100644 src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactDeclinedAmount.cs delete mode 100644 src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactApprovedAmount.cs delete mode 100644 src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactDeclinedAmount.cs delete mode 100644 src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantAmountMonetaryOptions.cs delete mode 100644 src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantAmountMonetaryOptions.cs delete mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs delete mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs delete mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs delete mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs delete mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs delete mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs delete mode 100644 src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateFromAmountOptions.cs delete mode 100644 src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateToAmountOptions.cs delete mode 100644 src/Stripe.net/Services/V2/MoneyManagement/InboundTransfers/InboundTransferCreateAmountOptions.cs delete mode 100644 src/Stripe.net/Services/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteCreateAmountOptions.cs delete mode 100644 src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateAmountOptions.cs delete mode 100644 src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateAmountOptions.cs delete mode 100644 src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateAmountOptions.cs delete mode 100644 src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentCreateAmountOptions.cs delete mode 100644 src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentUpdateAmountOptions.cs delete mode 100644 src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/Splits/SplitCreateAmountOptions.cs delete mode 100644 src/Stripe.net/Services/V2/TestHelpers/FinancialAddresses/FinancialAddressCreditAmountOptions.cs diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 031fe9d419..86c9b57e80 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -2a5f548393a04939e6f0baedff7e97e9cac6e241 \ No newline at end of file +f504fb42951e8181250357c8af0cab513111e480 \ No newline at end of file diff --git a/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantAmount.cs b/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantAmount.cs index f23833027c..eafac71ac9 100644 --- a/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantAmount.cs +++ b/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantAmount.cs @@ -36,6 +36,6 @@ public class ServiceActionCreditGrantAmount : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantPerTenantAmount.cs b/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantPerTenantAmount.cs index 982266710b..c0444463d3 100644 --- a/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantPerTenantAmount.cs +++ b/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantPerTenantAmount.cs @@ -36,6 +36,6 @@ public class ServiceActionCreditGrantPerTenantAmount : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenue.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenue.cs index 767dafdcb9..a02979906b 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenue.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenue.cs @@ -15,7 +15,7 @@ public class AccountIdentityBusinessDetailsAnnualRevenue : StripeEntity /// The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenueAmount.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenueAmount.cs deleted file mode 100644 index 9c0634b052..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenueAmount.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class AccountIdentityBusinessDetailsAnnualRevenueAmount : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenue.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenue.cs index 50684d17d2..691a5a4346 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenue.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenue.cs @@ -16,6 +16,6 @@ public class AccountIdentityBusinessDetailsMonthlyEstimatedRevenue : StripeEntit #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount Amount { get; set; } + public V2.Amount Amount { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount.cs deleted file mode 100644 index 973b02c764..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodeposits.cs b/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodeposits.cs index 4c2549ef88..ff9b19f53e 100644 --- a/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodeposits.cs +++ b/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodeposits.cs @@ -30,7 +30,7 @@ public class FinancialAddressGeneratedMicrodeposits : StripeEntity Amounts { get; set; } + public List Amounts { get; set; } /// /// Has the value true if the object exists in live mode or the value false if diff --git a/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodepositsAmount.cs b/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodepositsAmount.cs deleted file mode 100644 index 253c396886..0000000000 --- a/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodepositsAmount.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2 -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class FinancialAddressGeneratedMicrodepositsAmount : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/Adjustment.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/Adjustment.cs index ba85c9a476..e409ac7874 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/Adjustment.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/Adjustment.cs @@ -48,7 +48,7 @@ public class Adjustment : StripeEntity, IHasId, IHasObject #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public AdjustmentAmount Amount { get; set; } + public V2.Amount Amount { get; set; } /// /// Time at which the object was created. Represented as a RFC 3339 date & time UTC diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/AdjustmentAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/AdjustmentAmount.cs deleted file mode 100644 index c4b2a25f63..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/AdjustmentAmount.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class AdjustmentAmount : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionFrom.cs b/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionFrom.cs index 2d7af3139e..f9124c91ea 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionFrom.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionFrom.cs @@ -15,6 +15,6 @@ public class CurrencyConversionFrom : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public CurrencyConversionFromAmount Amount { get; set; } + public V2.Amount Amount { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionFromAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionFromAmount.cs deleted file mode 100644 index c92afa69d1..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionFromAmount.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class CurrencyConversionFromAmount : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionTo.cs b/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionTo.cs index 1ddb088741..aadbadc329 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionTo.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionTo.cs @@ -15,6 +15,6 @@ public class CurrencyConversionTo : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public CurrencyConversionToAmount Amount { get; set; } + public V2.Amount Amount { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionToAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionToAmount.cs deleted file mode 100644 index ec7db02cf1..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionToAmount.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class CurrencyConversionToAmount : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalance.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalance.cs index 0e723ccfd4..0327e4b662 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalance.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalance.cs @@ -16,7 +16,7 @@ public class FinancialAccountBalance : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("available")] #endif - public Dictionary Available { get; set; } + public Dictionary Available { get; set; } /// /// Balance of inbound funds that will later transition to the available balance. @@ -25,7 +25,7 @@ public class FinancialAccountBalance : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("inbound_pending")] #endif - public Dictionary InboundPending { get; set; } + public Dictionary InboundPending { get; set; } /// /// Balance of funds that are being used for a pending outbound money movement. @@ -34,6 +34,6 @@ public class FinancialAccountBalance : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("outbound_pending")] #endif - public Dictionary OutboundPending { get; set; } + public Dictionary OutboundPending { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceAvailable.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceAvailable.cs deleted file mode 100644 index 4a88990fd0..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceAvailable.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class FinancialAccountBalanceAvailable : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceInboundPending.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceInboundPending.cs deleted file mode 100644 index 63031bb474..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceInboundPending.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class FinancialAccountBalanceInboundPending : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceOutboundPending.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceOutboundPending.cs deleted file mode 100644 index fcdcb869ee..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceOutboundPending.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class FinancialAccountBalanceOutboundPending : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountPaymentsStartingBalance.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountPaymentsStartingBalance.cs index 3e7c5aec45..fa6d8d8899 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountPaymentsStartingBalance.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountPaymentsStartingBalance.cs @@ -26,6 +26,6 @@ public class FinancialAccountPaymentsStartingBalance : StripeEntity Available { get; set; } + public Dictionary Available { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountPaymentsStartingBalanceAvailable.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountPaymentsStartingBalanceAvailable.cs deleted file mode 100644 index bbf39b0948..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountPaymentsStartingBalanceAvailable.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class FinancialAccountPaymentsStartingBalanceAvailable : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransfer.cs b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransfer.cs index 6153255949..6c9f92cf38 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransfer.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransfer.cs @@ -40,7 +40,7 @@ public class InboundTransfer : StripeEntity, IHasId, IHasObject #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public InboundTransferAmount Amount { get; set; } + public V2.Amount Amount { get; set; } /// /// Creation time of the InboundTransfer. Represented as a RFC 3339 date & time UTC diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferAmount.cs deleted file mode 100644 index c01061136e..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferAmount.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class InboundTransferAmount : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferFrom.cs b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferFrom.cs index d22b7e2ada..96bfea4d34 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferFrom.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferFrom.cs @@ -15,7 +15,7 @@ public class InboundTransferFrom : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("debited")] #endif - public InboundTransferFromDebited Debited { get; set; } + public V2.Amount Debited { get; set; } /// /// The Payment Method object used to create the InboundTransfer. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferFromDebited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferFromDebited.cs deleted file mode 100644 index add3daf160..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferFromDebited.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class InboundTransferFromDebited : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTo.cs b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTo.cs index b2c6a122f9..43a8f8da06 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTo.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTo.cs @@ -15,7 +15,7 @@ public class InboundTransferTo : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("credited")] #endif - public InboundTransferToCredited Credited { get; set; } + public V2.Amount Credited { get; set; } /// /// The FinancialAccount that funds will land in. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferToCredited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferToCredited.cs deleted file mode 100644 index ffabdb9c30..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferToCredited.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class InboundTransferToCredited : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuote.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuote.cs index 10490a950f..0d2cef6899 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuote.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuote.cs @@ -40,7 +40,7 @@ public class OutboundPaymentQuote : StripeEntity, IHasId, #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public OutboundPaymentQuoteAmount Amount { get; set; } + public V2.Amount Amount { get; set; } /// /// Time at which the OutboundPaymentQuote was created. Represented as a RFC 3339 date & diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteAmount.cs deleted file mode 100644 index b0cb94b225..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteAmount.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class OutboundPaymentQuoteAmount : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteEstimatedFee.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteEstimatedFee.cs index 2bc64ce544..4bad7fa972 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteEstimatedFee.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteEstimatedFee.cs @@ -15,7 +15,7 @@ public class OutboundPaymentQuoteEstimatedFee : StripeEntity /// The fee type. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteEstimatedFeeAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteEstimatedFeeAmount.cs deleted file mode 100644 index c4287e7163..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteEstimatedFeeAmount.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class OutboundPaymentQuoteEstimatedFeeAmount : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteFrom.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteFrom.cs index 1914db22b6..2748d062fc 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteFrom.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteFrom.cs @@ -15,7 +15,7 @@ public class OutboundPaymentQuoteFrom : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("debited")] #endif - public OutboundPaymentQuoteFromDebited Debited { get; set; } + public V2.Amount Debited { get; set; } /// /// The FinancialAccount that funds were pulled from. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteFromDebited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteFromDebited.cs deleted file mode 100644 index d48cff4694..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteFromDebited.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class OutboundPaymentQuoteFromDebited : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteTo.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteTo.cs index c558257e7d..9a974f4cb1 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteTo.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteTo.cs @@ -15,7 +15,7 @@ public class OutboundPaymentQuoteTo : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("credited")] #endif - public OutboundPaymentQuoteToCredited Credited { get; set; } + public V2.Amount Credited { get; set; } /// /// The payout method which the OutboundPayment uses to send payout. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteToCredited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteToCredited.cs deleted file mode 100644 index 1e8cee94e1..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteToCredited.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class OutboundPaymentQuoteToCredited : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs index ab070b24a1..9d571ef7d0 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs @@ -40,7 +40,7 @@ public class OutboundPayment : StripeEntity, IHasId, IHasMetada #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public OutboundPaymentAmount Amount { get; set; } + public V2.Amount Amount { get; set; } /// /// Returns true if the OutboundPayment can be canceled, and false otherwise. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentAmount.cs deleted file mode 100644 index 9f9dd42cf8..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentAmount.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class OutboundPaymentAmount : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentFrom.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentFrom.cs index 56bc82b1e0..5738f5cc84 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentFrom.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentFrom.cs @@ -15,7 +15,7 @@ public class OutboundPaymentFrom : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("debited")] #endif - public OutboundPaymentFromDebited Debited { get; set; } + public V2.Amount Debited { get; set; } /// /// The FinancialAccount that funds were pulled from. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentFromDebited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentFromDebited.cs deleted file mode 100644 index b36b1d11c4..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentFromDebited.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class OutboundPaymentFromDebited : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentTo.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentTo.cs index 11369bca2c..a090338234 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentTo.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentTo.cs @@ -15,7 +15,7 @@ public class OutboundPaymentTo : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("credited")] #endif - public OutboundPaymentToCredited Credited { get; set; } + public V2.Amount Credited { get; set; } /// /// The payout method which the OutboundPayment uses to send payout. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToCredited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToCredited.cs deleted file mode 100644 index ccf6126cfa..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToCredited.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class OutboundPaymentToCredited : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransfer.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransfer.cs index 944cd67379..c4ec7a0761 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransfer.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransfer.cs @@ -40,7 +40,7 @@ public class OutboundTransfer : StripeEntity, IHasId, IHasMeta #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public OutboundTransferAmount Amount { get; set; } + public V2.Amount Amount { get; set; } /// /// Returns true if the OutboundTransfer can be canceled, and false otherwise. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferAmount.cs deleted file mode 100644 index a14c5770e6..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferAmount.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class OutboundTransferAmount : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferFrom.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferFrom.cs index 6615f7d6e9..61f6017368 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferFrom.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferFrom.cs @@ -15,7 +15,7 @@ public class OutboundTransferFrom : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("debited")] #endif - public OutboundTransferFromDebited Debited { get; set; } + public V2.Amount Debited { get; set; } /// /// The FinancialAccount that funds were pulled from. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferFromDebited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferFromDebited.cs deleted file mode 100644 index 1c207bc3ce..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferFromDebited.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class OutboundTransferFromDebited : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferTo.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferTo.cs index a664f9de6e..7ada61f9ef 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferTo.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferTo.cs @@ -15,7 +15,7 @@ public class OutboundTransferTo : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("credited")] #endif - public OutboundTransferToCredited Credited { get; set; } + public V2.Amount Credited { get; set; } /// /// The payout method which the OutboundTransfer uses to send payout. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferToCredited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferToCredited.cs deleted file mode 100644 index 716efad420..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferToCredited.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class OutboundTransferToCredited : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCredit.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCredit.cs index 80c972b1be..bd3ba42ed1 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCredit.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCredit.cs @@ -39,7 +39,7 @@ public class ReceivedCredit : StripeEntity, IHasId, IHasObject #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public ReceivedCreditAmount Amount { get; set; } + public V2.Amount Amount { get; set; } /// /// This object stores details about the originating Stripe transaction that resulted in the @@ -97,7 +97,7 @@ public class ReceivedCredit : StripeEntity, IHasId, IHasObject #if NET6_0_OR_GREATER [STJS.JsonPropertyName("external_amount")] #endif - public ReceivedCreditExternalAmount ExternalAmount { get; set; } + public V2.Amount ExternalAmount { get; set; } /// /// Financial Account ID on which funds for ReceivedCredit were received. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditAmount.cs deleted file mode 100644 index 9586b382dd..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditAmount.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class ReceivedCreditAmount : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditExternalAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditExternalAmount.cs deleted file mode 100644 index 24ea4b47fe..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditExternalAmount.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class ReceivedCreditExternalAmount : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebit.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebit.cs index 31c26684b3..80c3782927 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebit.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebit.cs @@ -38,7 +38,7 @@ public class ReceivedDebit : StripeEntity, IHasId, IHasObject #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public ReceivedDebitAmount Amount { get; set; } + public V2.Amount Amount { get; set; } /// /// This object stores details about the balance transfer object that resulted in the @@ -96,7 +96,7 @@ public class ReceivedDebit : StripeEntity, IHasId, IHasObject #if NET6_0_OR_GREATER [STJS.JsonPropertyName("external_amount")] #endif - public ReceivedDebitExternalAmount ExternalAmount { get; set; } + public V2.Amount ExternalAmount { get; set; } /// /// Financial Account on which funds for ReceivedDebit were debited. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitAmount.cs deleted file mode 100644 index cda74e626f..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitAmount.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class ReceivedDebitAmount : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendAuthorization.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendAuthorization.cs index b268300ea9..1e5b7f10d3 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendAuthorization.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendAuthorization.cs @@ -15,7 +15,7 @@ public class ReceivedDebitCardSpendAuthorization : StripeEntity /// The reference to the v1 issuing authorization ID. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendAuthorizationAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendAuthorizationAmount.cs deleted file mode 100644 index ddc4a0038b..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendAuthorizationAmount.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class ReceivedDebitCardSpendAuthorizationAmount : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendCardTransaction.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendCardTransaction.cs index 94d8995cd6..9e7d0cb2c4 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendCardTransaction.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendCardTransaction.cs @@ -15,7 +15,7 @@ public class ReceivedDebitCardSpendCardTransaction : StripeEntity /// The reference to the v1 issuing transaction ID. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendCardTransactionAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendCardTransactionAmount.cs deleted file mode 100644 index 29afe89394..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendCardTransactionAmount.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class ReceivedDebitCardSpendCardTransactionAmount : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitExternalAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitExternalAmount.cs deleted file mode 100644 index 9ac97f9254..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitExternalAmount.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class ReceivedDebitExternalAmount : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpact.cs b/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpact.cs index 1cd25892e8..e303c02b47 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpact.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpact.cs @@ -15,7 +15,7 @@ public class TransactionEntryBalanceImpact : StripeEntity /// Impact to the inbound_pending balance. @@ -24,7 +24,7 @@ public class TransactionEntryBalanceImpact : StripeEntity /// Impact to the outbound_pending balance. @@ -33,6 +33,6 @@ public class TransactionEntryBalanceImpact : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactInboundPending.cs b/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactInboundPending.cs deleted file mode 100644 index 5a23d6fb4b..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactInboundPending.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class TransactionEntryBalanceImpactInboundPending : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactOutboundPending.cs b/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactOutboundPending.cs deleted file mode 100644 index 0218f1aa88..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactOutboundPending.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class TransactionEntryBalanceImpactOutboundPending : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/Transaction.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/Transaction.cs index b9a18228cd..a453eadae5 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/Transaction.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/Transaction.cs @@ -42,7 +42,7 @@ public class Transaction : StripeEntity, IHasId, IHasObject #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public TransactionAmount Amount { get; set; } + public V2.Amount Amount { get; set; } /// /// The delta to the FinancialAccount's balance. The balance_impact for the Transaction is diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionAmount.cs deleted file mode 100644 index 05ec85fc25..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionAmount.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class TransactionAmount : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpact.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpact.cs index d538d06a6d..80c989204d 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpact.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpact.cs @@ -15,7 +15,7 @@ public class TransactionBalanceImpact : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("available")] #endif - public TransactionBalanceImpactAvailable Available { get; set; } + public V2.Amount Available { get; set; } /// /// Impact to the inbound_pending balance. @@ -24,7 +24,7 @@ public class TransactionBalanceImpact : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("inbound_pending")] #endif - public TransactionBalanceImpactInboundPending InboundPending { get; set; } + public V2.Amount InboundPending { get; set; } /// /// Impact to the outbound_pending balance. @@ -33,6 +33,6 @@ public class TransactionBalanceImpact : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("outbound_pending")] #endif - public TransactionBalanceImpactOutboundPending OutboundPending { get; set; } + public V2.Amount OutboundPending { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactAvailable.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactAvailable.cs deleted file mode 100644 index 3d6e473ee3..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactAvailable.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class TransactionBalanceImpactAvailable : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactInboundPending.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactInboundPending.cs deleted file mode 100644 index 9ee411dc26..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactInboundPending.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class TransactionBalanceImpactInboundPending : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactOutboundPending.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactOutboundPending.cs deleted file mode 100644 index fa9a0757d0..0000000000 --- a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactOutboundPending.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class TransactionBalanceImpactOutboundPending : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPayment.cs b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPayment.cs index 4fa3f8c1cc..9ee7ba8ccd 100644 --- a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPayment.cs +++ b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPayment.cs @@ -48,7 +48,7 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount_capturable")] #endif - public OffSessionPaymentAmountCapturable AmountCapturable { get; set; } + public V2.Amount AmountCapturable { get; set; } /// /// The “presentment amount” to be collected from the customer. @@ -57,7 +57,7 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount_requested")] #endif - public OffSessionPaymentAmountRequested AmountRequested { get; set; } + public V2.Amount AmountRequested { get; set; } /// /// The frequency of the underlying payment. diff --git a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountCapturable.cs b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountCapturable.cs deleted file mode 100644 index 63287c4083..0000000000 --- a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountCapturable.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Payments -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class OffSessionPaymentAmountCapturable : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountRequested.cs b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountRequested.cs deleted file mode 100644 index 817afaba35..0000000000 --- a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountRequested.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Payments -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class OffSessionPaymentAmountRequested : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntentSplits/SettlementAllocationIntentSplit.cs b/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntentSplits/SettlementAllocationIntentSplit.cs index 6d10b42a0c..9c2a66b65d 100644 --- a/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntentSplits/SettlementAllocationIntentSplit.cs +++ b/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntentSplits/SettlementAllocationIntentSplit.cs @@ -47,7 +47,7 @@ public class SettlementAllocationIntentSplit : StripeEntity /// Timestamp at which SettlementAllocationIntentSplit was created. diff --git a/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntentSplits/SettlementAllocationIntentSplitAmount.cs b/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntentSplits/SettlementAllocationIntentSplitAmount.cs deleted file mode 100644 index f018ab18e8..0000000000 --- a/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntentSplits/SettlementAllocationIntentSplitAmount.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Payments -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class SettlementAllocationIntentSplitAmount : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntent.cs b/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntent.cs index ab4aa85ec0..1e7449308d 100644 --- a/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntent.cs +++ b/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntent.cs @@ -39,7 +39,7 @@ public class SettlementAllocationIntent : StripeEntity /// Timestamp at which SettlementAllocationIntent was created . diff --git a/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentAmount.cs b/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentAmount.cs deleted file mode 100644 index 3163e7a443..0000000000 --- a/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentAmount.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Payments -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class SettlementAllocationIntentAmount : StripeEntity - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Events/V2CoreHealthFraudRateIncreasedEventDataImpact.cs b/src/Stripe.net/Events/V2CoreHealthFraudRateIncreasedEventDataImpact.cs index fe67275974..ca49773481 100644 --- a/src/Stripe.net/Events/V2CoreHealthFraudRateIncreasedEventDataImpact.cs +++ b/src/Stripe.net/Events/V2CoreHealthFraudRateIncreasedEventDataImpact.cs @@ -35,6 +35,6 @@ public class V2CoreHealthFraudRateIncreasedEventDataImpact : StripeEntity - { - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - } -} diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpact.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpact.cs index 402349feb5..a7536e6470 100644 --- a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpact.cs +++ b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpact.cs @@ -16,7 +16,7 @@ public class V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpact #if NET6_0_OR_GREATER [STJS.JsonPropertyName("approved_amount")] #endif - public V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactApprovedAmount ApprovedAmount { get; set; } + public V2.Amount ApprovedAmount { get; set; } /// /// The number of approved requests which are impacted. @@ -34,7 +34,7 @@ public class V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpact #if NET6_0_OR_GREATER [STJS.JsonPropertyName("declined_amount")] #endif - public V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactDeclinedAmount DeclinedAmount { get; set; } + public V2.Amount DeclinedAmount { get; set; } /// /// The number of declined requests which are impacted. diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactApprovedAmount.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactApprovedAmount.cs deleted file mode 100644 index 25aa0e4a1a..0000000000 --- a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactApprovedAmount.cs +++ /dev/null @@ -1,33 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactApprovedAmount : StripeEntity - { - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - } -} diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactDeclinedAmount.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactDeclinedAmount.cs deleted file mode 100644 index 3819301f2b..0000000000 --- a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactDeclinedAmount.cs +++ /dev/null @@ -1,33 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactDeclinedAmount : StripeEntity - { - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - } -} diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpact.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpact.cs index 5604921c17..f88a669963 100644 --- a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpact.cs +++ b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpact.cs @@ -16,7 +16,7 @@ public class V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpac #if NET6_0_OR_GREATER [STJS.JsonPropertyName("approved_amount")] #endif - public V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactApprovedAmount ApprovedAmount { get; set; } + public V2.Amount ApprovedAmount { get; set; } /// /// The number of approved requests which are impacted. @@ -34,7 +34,7 @@ public class V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpac #if NET6_0_OR_GREATER [STJS.JsonPropertyName("declined_amount")] #endif - public V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactDeclinedAmount DeclinedAmount { get; set; } + public V2.Amount DeclinedAmount { get; set; } /// /// The number of declined requests which are impacted. diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactApprovedAmount.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactApprovedAmount.cs deleted file mode 100644 index 428929fe66..0000000000 --- a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactApprovedAmount.cs +++ /dev/null @@ -1,33 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactApprovedAmount : StripeEntity - { - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - } -} diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactDeclinedAmount.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactDeclinedAmount.cs deleted file mode 100644 index 5b3ee921f5..0000000000 --- a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactDeclinedAmount.cs +++ /dev/null @@ -1,33 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactDeclinedAmount : StripeEntity - { - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - } -} diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpact.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpact.cs index bb032e3f07..72ac902f57 100644 --- a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpact.cs +++ b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpact.cs @@ -16,7 +16,7 @@ public class V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpact #if NET6_0_OR_GREATER [STJS.JsonPropertyName("approved_amount")] #endif - public V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactApprovedAmount ApprovedAmount { get; set; } + public V2.Amount ApprovedAmount { get; set; } /// /// The number of approved requests which are impacted. @@ -34,7 +34,7 @@ public class V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpact #if NET6_0_OR_GREATER [STJS.JsonPropertyName("declined_amount")] #endif - public V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactDeclinedAmount DeclinedAmount { get; set; } + public V2.Amount DeclinedAmount { get; set; } /// /// The number of declined requests which are impacted. diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactApprovedAmount.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactApprovedAmount.cs deleted file mode 100644 index e47010fe45..0000000000 --- a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactApprovedAmount.cs +++ /dev/null @@ -1,33 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactApprovedAmount : StripeEntity - { - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - } -} diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactDeclinedAmount.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactDeclinedAmount.cs deleted file mode 100644 index 559b5015b2..0000000000 --- a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactDeclinedAmount.cs +++ /dev/null @@ -1,33 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactDeclinedAmount : StripeEntity - { - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - } -} diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpact.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpact.cs index ea4199ae12..88385d2b40 100644 --- a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpact.cs +++ b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpact.cs @@ -16,7 +16,7 @@ public class V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpa #if NET6_0_OR_GREATER [STJS.JsonPropertyName("approved_amount")] #endif - public V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactApprovedAmount ApprovedAmount { get; set; } + public V2.Amount ApprovedAmount { get; set; } /// /// The number of approved requests which are impacted. @@ -34,7 +34,7 @@ public class V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpa #if NET6_0_OR_GREATER [STJS.JsonPropertyName("declined_amount")] #endif - public V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactDeclinedAmount DeclinedAmount { get; set; } + public V2.Amount DeclinedAmount { get; set; } /// /// The number of declined requests which are impacted. diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactApprovedAmount.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactApprovedAmount.cs deleted file mode 100644 index 57b6ba0a51..0000000000 --- a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactApprovedAmount.cs +++ /dev/null @@ -1,33 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactApprovedAmount : StripeEntity - { - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - } -} diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactDeclinedAmount.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactDeclinedAmount.cs deleted file mode 100644 index dcd50f634f..0000000000 --- a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactDeclinedAmount.cs +++ /dev/null @@ -1,33 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactDeclinedAmount : StripeEntity - { - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long Value { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantAmountMonetaryOptions.cs b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantAmountMonetaryOptions.cs deleted file mode 100644 index 699e3b7267..0000000000 --- a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantAmountMonetaryOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class ServiceActionCreateCreditGrantAmountMonetaryOptions : INestedOptions - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long? Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantAmountOptions.cs b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantAmountOptions.cs index 40e159cee3..cbc74f4bdb 100644 --- a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantAmountOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantAmountOptions.cs @@ -36,6 +36,6 @@ public class ServiceActionCreateCreditGrantAmountOptions : INestedOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("monetary")] #endif - public ServiceActionCreateCreditGrantAmountMonetaryOptions Monetary { get; set; } + public V2.Amount Monetary { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantAmountMonetaryOptions.cs b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantAmountMonetaryOptions.cs deleted file mode 100644 index fedbd7389b..0000000000 --- a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantAmountMonetaryOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class ServiceActionCreateCreditGrantPerTenantAmountMonetaryOptions : INestedOptions - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long? Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantAmountOptions.cs b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantAmountOptions.cs index 89ba090576..80743139f7 100644 --- a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantAmountOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantAmountOptions.cs @@ -36,6 +36,6 @@ public class ServiceActionCreateCreditGrantPerTenantAmountOptions : INestedOptio #if NET6_0_OR_GREATER [STJS.JsonPropertyName("monetary")] #endif - public ServiceActionCreateCreditGrantPerTenantAmountMonetaryOptions Monetary { get; set; } + public V2.Amount Monetary { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs deleted file mode 100644 index 8a6382b632..0000000000 --- a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class AccountTokenCreateIdentityBusinessDetailsAnnualRevenueAmountOptions : INestedOptions - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long? Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueOptions.cs index 08068e14d4..9c0bf20bcb 100644 --- a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueOptions.cs +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueOptions.cs @@ -15,7 +15,7 @@ public class AccountTokenCreateIdentityBusinessDetailsAnnualRevenueOptions : INe #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public AccountTokenCreateIdentityBusinessDetailsAnnualRevenueAmountOptions Amount { get; set; } + public V2.Amount Amount { get; set; } /// /// The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs deleted file mode 100644 index 98e7513e62..0000000000 --- a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions : INestedOptions - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long? Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs index 2177862476..4c06c1c77a 100644 --- a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs @@ -15,6 +15,6 @@ public class AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOpt #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions Amount { get; set; } + public V2.Amount Amount { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs deleted file mode 100644 index 65dd1cadf3..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class AccountCreateIdentityBusinessDetailsAnnualRevenueAmountOptions : INestedOptions - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long? Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueOptions.cs index 2c1bfe19b9..a597de493c 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueOptions.cs @@ -15,7 +15,7 @@ public class AccountCreateIdentityBusinessDetailsAnnualRevenueOptions : INestedO #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public AccountCreateIdentityBusinessDetailsAnnualRevenueAmountOptions Amount { get; set; } + public V2.Amount Amount { get; set; } /// /// The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs deleted file mode 100644 index 7be1063978..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions : INestedOptions - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long? Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs index 649c532d05..fea520f3ee 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs @@ -15,6 +15,6 @@ public class AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions Amount { get; set; } + public V2.Amount Amount { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs deleted file mode 100644 index e9ba19b275..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class AccountUpdateIdentityBusinessDetailsAnnualRevenueAmountOptions : INestedOptions - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long? Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueOptions.cs index 5165ca7d98..cc10bc5641 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueOptions.cs @@ -15,7 +15,7 @@ public class AccountUpdateIdentityBusinessDetailsAnnualRevenueOptions : INestedO #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public AccountUpdateIdentityBusinessDetailsAnnualRevenueAmountOptions Amount { get; set; } + public V2.Amount Amount { get; set; } /// /// The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs deleted file mode 100644 index 224acf7c3d..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions : INestedOptions - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long? Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs index 32e6dbdb61..b4f9fc0184 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs @@ -15,6 +15,6 @@ public class AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions Amount { get; set; } + public V2.Amount Amount { get; set; } } } diff --git a/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateFromAmountOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateFromAmountOptions.cs deleted file mode 100644 index e5662cc3b3..0000000000 --- a/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateFromAmountOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class CurrencyConversionCreateFromAmountOptions : INestedOptions - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long? Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateFromOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateFromOptions.cs index ea1b182608..ed77067acb 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateFromOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateFromOptions.cs @@ -15,7 +15,7 @@ public class CurrencyConversionCreateFromOptions : INestedOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public CurrencyConversionCreateFromAmountOptions Amount { get; set; } + public V2.Amount Amount { get; set; } /// /// A lowercase alpha3 currency code like "usd". diff --git a/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateToAmountOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateToAmountOptions.cs deleted file mode 100644 index 74482d0c91..0000000000 --- a/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateToAmountOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class CurrencyConversionCreateToAmountOptions : INestedOptions - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long? Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateToOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateToOptions.cs index 3ea8684c3f..668419a323 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateToOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateToOptions.cs @@ -15,7 +15,7 @@ public class CurrencyConversionCreateToOptions : INestedOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public CurrencyConversionCreateToAmountOptions Amount { get; set; } + public V2.Amount Amount { get; set; } /// /// A lowercase alpha3 currency code like "usd". diff --git a/src/Stripe.net/Services/V2/MoneyManagement/InboundTransfers/InboundTransferCreateAmountOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/InboundTransfers/InboundTransferCreateAmountOptions.cs deleted file mode 100644 index 7c05c2fdd1..0000000000 --- a/src/Stripe.net/Services/V2/MoneyManagement/InboundTransfers/InboundTransferCreateAmountOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class InboundTransferCreateAmountOptions : INestedOptions - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long? Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/InboundTransfers/InboundTransferCreateOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/InboundTransfers/InboundTransferCreateOptions.cs index 5cc13e2e5f..5bb3a7d795 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/InboundTransfers/InboundTransferCreateOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/InboundTransfers/InboundTransferCreateOptions.cs @@ -16,7 +16,7 @@ public class InboundTransferCreateOptions : BaseOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public InboundTransferCreateAmountOptions Amount { get; set; } + public V2.Amount Amount { get; set; } /// /// An optional, freeform description field intended to store metadata. diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteCreateAmountOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteCreateAmountOptions.cs deleted file mode 100644 index 0a7e4fcf57..0000000000 --- a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteCreateAmountOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class OutboundPaymentQuoteCreateAmountOptions : INestedOptions - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long? Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteCreateOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteCreateOptions.cs index 7b6027aec2..492a0420fd 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteCreateOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteCreateOptions.cs @@ -15,7 +15,7 @@ public class OutboundPaymentQuoteCreateOptions : BaseOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public OutboundPaymentQuoteCreateAmountOptions Amount { get; set; } + public V2.Amount Amount { get; set; } /// /// Method to be used to send the OutboundPayment. diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateAmountOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateAmountOptions.cs deleted file mode 100644 index 80f3f101af..0000000000 --- a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateAmountOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class OutboundPaymentCreateAmountOptions : INestedOptions - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long? Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateOptions.cs index 907da174c6..d1dbf2a180 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateOptions.cs @@ -16,7 +16,7 @@ public class OutboundPaymentCreateOptions : BaseOptions, IHasMetadata #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public OutboundPaymentCreateAmountOptions Amount { get; set; } + public V2.Amount Amount { get; set; } /// /// Delivery options to be used to send the OutboundPayment. diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateAmountOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateAmountOptions.cs deleted file mode 100644 index 8878f78cf9..0000000000 --- a/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateAmountOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.MoneyManagement -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class OutboundTransferCreateAmountOptions : INestedOptions - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long? Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateOptions.cs index 3ba623fcaf..321c701075 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateOptions.cs @@ -16,7 +16,7 @@ public class OutboundTransferCreateOptions : BaseOptions, IHasMetadata #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public OutboundTransferCreateAmountOptions Amount { get; set; } + public V2.Amount Amount { get; set; } /// /// Delivery options to be used to send the OutboundTransfer. diff --git a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateAmountOptions.cs b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateAmountOptions.cs deleted file mode 100644 index b911f611c1..0000000000 --- a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateAmountOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Payments -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class OffSessionPaymentCreateAmountOptions : INestedOptions - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long? Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { 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 24abdf49cf..fb492ea223 100644 --- a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateOptions.cs @@ -16,7 +16,7 @@ public class OffSessionPaymentCreateOptions : BaseOptions, IHasMetadata #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public OffSessionPaymentCreateAmountOptions Amount { get; set; } + public V2.Amount Amount { get; set; } /// /// The frequency of the underlying payment. diff --git a/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentCreateAmountOptions.cs b/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentCreateAmountOptions.cs deleted file mode 100644 index eab689b1f0..0000000000 --- a/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentCreateAmountOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Payments -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class SettlementAllocationIntentCreateAmountOptions : INestedOptions - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long? Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentCreateOptions.cs b/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentCreateOptions.cs index ef8674e8d8..180b7e8b53 100644 --- a/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentCreateOptions.cs @@ -18,7 +18,7 @@ public class SettlementAllocationIntentCreateOptions : BaseOptions, IHasMetadata #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public SettlementAllocationIntentCreateAmountOptions Amount { get; set; } + public V2.Amount Amount { get; set; } /// /// Date when we expect to receive the funds. Must be in future . diff --git a/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentUpdateAmountOptions.cs b/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentUpdateAmountOptions.cs deleted file mode 100644 index 5f823a11c6..0000000000 --- a/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentUpdateAmountOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Payments -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class SettlementAllocationIntentUpdateAmountOptions : INestedOptions - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long? Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentUpdateOptions.cs b/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentUpdateOptions.cs index 9cc6230557..4370006afe 100644 --- a/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentUpdateOptions.cs @@ -16,7 +16,7 @@ public class SettlementAllocationIntentUpdateOptions : BaseOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public SettlementAllocationIntentUpdateAmountOptions Amount { get; set; } + public V2.Amount Amount { get; set; } /// /// The new reference for the SettlementAllocationIntent. diff --git a/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/Splits/SplitCreateAmountOptions.cs b/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/Splits/SplitCreateAmountOptions.cs deleted file mode 100644 index bb00b12001..0000000000 --- a/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/Splits/SplitCreateAmountOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Payments.SettlementAllocationIntents -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class SplitCreateAmountOptions : INestedOptions - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long? Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/Splits/SplitCreateOptions.cs b/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/Splits/SplitCreateOptions.cs index 7ed216fbf1..1084ce101d 100644 --- a/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/Splits/SplitCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/Splits/SplitCreateOptions.cs @@ -25,7 +25,7 @@ public class SplitCreateOptions : BaseOptions, IHasMetadata #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public SplitCreateAmountOptions Amount { get; set; } + public V2.Amount Amount { get; set; } /// /// Metadata associated with the SettlementAllocationIntentSplit. diff --git a/src/Stripe.net/Services/V2/TestHelpers/FinancialAddresses/FinancialAddressCreditAmountOptions.cs b/src/Stripe.net/Services/V2/TestHelpers/FinancialAddresses/FinancialAddressCreditAmountOptions.cs deleted file mode 100644 index eb54ce6499..0000000000 --- a/src/Stripe.net/Services/V2/TestHelpers/FinancialAddresses/FinancialAddressCreditAmountOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.TestHelpers -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class FinancialAddressCreditAmountOptions : INestedOptions - { - /// - /// A non-negative integer representing how much to charge in the smallest currency unit. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public long? Value { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/TestHelpers/FinancialAddresses/FinancialAddressCreditOptions.cs b/src/Stripe.net/Services/V2/TestHelpers/FinancialAddresses/FinancialAddressCreditOptions.cs index 33ee6d03b0..20d0d8c398 100644 --- a/src/Stripe.net/Services/V2/TestHelpers/FinancialAddresses/FinancialAddressCreditOptions.cs +++ b/src/Stripe.net/Services/V2/TestHelpers/FinancialAddresses/FinancialAddressCreditOptions.cs @@ -15,7 +15,7 @@ public class FinancialAddressCreditOptions : BaseOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public FinancialAddressCreditAmountOptions Amount { get; set; } + public V2.Amount Amount { get; set; } /// /// Open Enum. The network to use in simulating the funds flow. This will be the reflected diff --git a/src/StripeTests/Services/GeneratedExamplesTest.cs b/src/StripeTests/Services/GeneratedExamplesTest.cs index aba8340f83..314f844ae0 100644 --- a/src/StripeTests/Services/GeneratedExamplesTest.cs +++ b/src/StripeTests/Services/GeneratedExamplesTest.cs @@ -9011,7 +9011,7 @@ public void TestV2MoneyManagementAdjustmentGet() HttpMethod.Get, "/v2/money_management/adjustments", (HttpStatusCode)200, - "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.Adjustments; Stripe.V2.StripeList adjustments = service @@ -9028,7 +9028,7 @@ public void TestV2MoneyManagementAdjustmentGet2() HttpMethod.Get, "/v2/money_management/adjustments/id_123", (HttpStatusCode)200, - "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.Adjustments; Stripe.V2.MoneyManagement.Adjustment adjustment = service.Get( @@ -9045,7 +9045,7 @@ public void TestV2MoneyManagementCurrencyConversionGet() HttpMethod.Get, "/v2/money_management/currency_conversions", (HttpStatusCode)200, - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{\"value\":111972721,\"currency\":\"usd\"}},\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.money_management.currency_conversion\",\"to\":{\"amount\":{\"value\":111972721,\"currency\":\"usd\"}}}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"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,\"object\":\"v2.money_management.currency_conversion\",\"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 @@ -9062,25 +9062,25 @@ public void TestV2MoneyManagementCurrencyConversionPost() HttpMethod.Post, "/v2/money_management/currency_conversions", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{\"value\":111972721,\"currency\":\"usd\"}},\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.money_management.currency_conversion\",\"to\":{\"amount\":{\"value\":111972721,\"currency\":\"usd\"}}}"); + "{\"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,\"object\":\"v2.money_management.currency_conversion\",\"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.MoneyManagement.CurrencyConversionCreateFromAmountOptions + Amount = new Stripe.V2.Amount { - Value = 111972721, - Currency = "usd", + Currency = "USD", + Value = 96, }, Currency = "usd", }, To = new Stripe.V2.MoneyManagement.CurrencyConversionCreateToOptions { - Amount = new Stripe.V2.MoneyManagement.CurrencyConversionCreateToAmountOptions + Amount = new Stripe.V2.Amount { - Value = 111972721, - Currency = "usd", + Currency = "USD", + Value = 96, }, Currency = "usd", }, @@ -9101,7 +9101,7 @@ public void TestV2MoneyManagementCurrencyConversionGet2() HttpMethod.Get, "/v2/money_management/currency_conversions/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{\"value\":111972721,\"currency\":\"usd\"}},\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.money_management.currency_conversion\",\"to\":{\"amount\":{\"value\":111972721,\"currency\":\"usd\"}}}"); + "{\"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,\"object\":\"v2.money_management.currency_conversion\",\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.CurrencyConversions; Stripe.V2.MoneyManagement.CurrencyConversion currencyConversion = service @@ -9118,7 +9118,7 @@ public void TestV2MoneyManagementFinancialAccountGet() HttpMethod.Get, "/v2/money_management/financial_accounts", (HttpStatusCode)200, - "{\"data\":[{\"balance\":{\"available\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"inbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"outbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"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\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}],\"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 @@ -9135,7 +9135,7 @@ public void TestV2MoneyManagementFinancialAccountPost() HttpMethod.Post, "/v2/money_management/financial_accounts", (HttpStatusCode)200, - "{\"balance\":{\"available\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"inbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"outbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}"); + "{\"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\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}"); var options = new Stripe.V2.MoneyManagement.FinancialAccountCreateOptions { Type = "storage", @@ -9156,7 +9156,7 @@ public void TestV2MoneyManagementFinancialAccountGet2() HttpMethod.Get, "/v2/money_management/financial_accounts/id_123", (HttpStatusCode)200, - "{\"balance\":{\"available\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"inbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"outbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}"); + "{\"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\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAccounts; Stripe.V2.MoneyManagement.FinancialAccount financialAccount = service @@ -9173,7 +9173,7 @@ public void TestV2MoneyManagementFinancialAccountPost2() HttpMethod.Post, "/v2/money_management/financial_accounts/id_123", (HttpStatusCode)200, - "{\"balance\":{\"available\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"inbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"outbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}"); + "{\"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\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}"); var options = new Stripe.V2.MoneyManagement.FinancialAccountUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAccounts; @@ -9191,7 +9191,7 @@ public void TestV2MoneyManagementFinancialAccountPost3() HttpMethod.Post, "/v2/money_management/financial_accounts/id_123/close", (HttpStatusCode)200, - "{\"balance\":{\"available\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"inbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"outbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}"); + "{\"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\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAccounts; Stripe.V2.MoneyManagement.FinancialAccount financialAccount = service @@ -9264,7 +9264,7 @@ public void TestV2MoneyManagementInboundTransferGet() HttpMethod.Get, "/v2/money_management/inbound_transfers", (HttpStatusCode)200, - "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.InboundTransfers; Stripe.V2.StripeList inboundTransfers = service @@ -9281,14 +9281,10 @@ public void TestV2MoneyManagementInboundTransferPost() HttpMethod.Post, "/v2/money_management/inbound_transfers", (HttpStatusCode)200, - "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}"); var options = new Stripe.V2.MoneyManagement.InboundTransferCreateOptions { - Amount = new Stripe.V2.MoneyManagement.InboundTransferCreateAmountOptions - { - Value = 111972721, - Currency = "usd", - }, + Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, From = new Stripe.V2.MoneyManagement.InboundTransferCreateFromOptions { Currency = "usd", @@ -9316,7 +9312,7 @@ public void TestV2MoneyManagementInboundTransferGet2() HttpMethod.Get, "/v2/money_management/inbound_transfers/id_123", (HttpStatusCode)200, - "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.InboundTransfers; Stripe.V2.MoneyManagement.InboundTransfer inboundTransfer = service @@ -9333,7 +9329,7 @@ public void TestV2MoneyManagementOutboundPaymentGet() HttpMethod.Get, "/v2/money_management/outbound_payments", (HttpStatusCode)200, - "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundPayments; Stripe.V2.StripeList outboundPayments = service @@ -9350,14 +9346,10 @@ public void TestV2MoneyManagementOutboundPaymentPost() HttpMethod.Post, "/v2/money_management/outbound_payments", (HttpStatusCode)200, - "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); var options = new Stripe.V2.MoneyManagement.OutboundPaymentCreateOptions { - Amount = new Stripe.V2.MoneyManagement.OutboundPaymentCreateAmountOptions - { - Value = 111972721, - Currency = "usd", - }, + Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, From = new Stripe.V2.MoneyManagement.OutboundPaymentCreateFromOptions { Currency = "usd", @@ -9386,7 +9378,7 @@ public void TestV2MoneyManagementOutboundPaymentGet2() HttpMethod.Get, "/v2/money_management/outbound_payments/id_123", (HttpStatusCode)200, - "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundPayments; Stripe.V2.MoneyManagement.OutboundPayment outboundPayment = service @@ -9403,7 +9395,7 @@ public void TestV2MoneyManagementOutboundPaymentPost2() HttpMethod.Post, "/v2/money_management/outbound_payments/id_123/cancel", (HttpStatusCode)200, - "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundPayments; Stripe.V2.MoneyManagement.OutboundPayment outboundPayment = service @@ -9420,14 +9412,10 @@ public void TestV2MoneyManagementOutboundPaymentQuotePost() HttpMethod.Post, "/v2/money_management/outbound_payment_quotes", (HttpStatusCode)200, - "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}"); var options = new Stripe.V2.MoneyManagement.OutboundPaymentQuoteCreateOptions { - Amount = new Stripe.V2.MoneyManagement.OutboundPaymentQuoteCreateAmountOptions - { - Value = 111972721, - Currency = "usd", - }, + Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, From = new Stripe.V2.MoneyManagement.OutboundPaymentQuoteCreateFromOptions { Currency = "usd", @@ -9456,7 +9444,7 @@ public void TestV2MoneyManagementOutboundPaymentQuoteGet() HttpMethod.Get, "/v2/money_management/outbound_payment_quotes/id_123", (HttpStatusCode)200, - "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundPaymentQuotes; Stripe.V2.MoneyManagement.OutboundPaymentQuote outboundPaymentQuote = service @@ -9560,7 +9548,7 @@ public void TestV2MoneyManagementOutboundTransferGet() HttpMethod.Get, "/v2/money_management/outbound_transfers", (HttpStatusCode)200, - "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundTransfers; Stripe.V2.StripeList outboundTransfers = service @@ -9577,14 +9565,10 @@ public void TestV2MoneyManagementOutboundTransferPost() HttpMethod.Post, "/v2/money_management/outbound_transfers", (HttpStatusCode)200, - "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); var options = new Stripe.V2.MoneyManagement.OutboundTransferCreateOptions { - Amount = new Stripe.V2.MoneyManagement.OutboundTransferCreateAmountOptions - { - Value = 111972721, - Currency = "usd", - }, + Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, From = new Stripe.V2.MoneyManagement.OutboundTransferCreateFromOptions { Currency = "usd", @@ -9612,7 +9596,7 @@ public void TestV2MoneyManagementOutboundTransferGet2() HttpMethod.Get, "/v2/money_management/outbound_transfers/id_123", (HttpStatusCode)200, - "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundTransfers; Stripe.V2.MoneyManagement.OutboundTransfer outboundTransfer = service @@ -9629,7 +9613,7 @@ public void TestV2MoneyManagementOutboundTransferPost2() HttpMethod.Post, "/v2/money_management/outbound_transfers/id_123/cancel", (HttpStatusCode)200, - "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundTransfers; Stripe.V2.MoneyManagement.OutboundTransfer outboundTransfer = service @@ -9734,7 +9718,7 @@ public void TestV2MoneyManagementReceivedCreditGet() HttpMethod.Get, "/v2/money_management/received_credits", (HttpStatusCode)200, - "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"status\":\"returned\",\"type\":\"balance_transfer\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"status\":\"returned\",\"type\":\"balance_transfer\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.ReceivedCredits; Stripe.V2.StripeList receivedCredits = service @@ -9751,7 +9735,7 @@ public void TestV2MoneyManagementReceivedCreditGet2() HttpMethod.Get, "/v2/money_management/received_credits/id_123", (HttpStatusCode)200, - "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"status\":\"returned\",\"type\":\"balance_transfer\",\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"status\":\"returned\",\"type\":\"balance_transfer\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.ReceivedCredits; Stripe.V2.MoneyManagement.ReceivedCredit receivedCredit = service @@ -9768,7 +9752,7 @@ public void TestV2MoneyManagementReceivedDebitGet() HttpMethod.Get, "/v2/money_management/received_debits", (HttpStatusCode)200, - "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"status\":\"canceled\",\"type\":\"balance_transfer\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"status\":\"canceled\",\"type\":\"balance_transfer\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.ReceivedDebits; Stripe.V2.StripeList receivedDebits = service @@ -9785,7 +9769,7 @@ public void TestV2MoneyManagementReceivedDebitGet2() HttpMethod.Get, "/v2/money_management/received_debits/id_123", (HttpStatusCode)200, - "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"status\":\"canceled\",\"type\":\"balance_transfer\",\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"status\":\"canceled\",\"type\":\"balance_transfer\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.ReceivedDebits; Stripe.V2.MoneyManagement.ReceivedDebit receivedDebit = service.Get( @@ -9857,7 +9841,7 @@ public void TestV2MoneyManagementTransactionGet() HttpMethod.Get, "/v2/money_management/transactions", (HttpStatusCode)200, - "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"category\":\"received_debit_reversal\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"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\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}],\"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 @@ -9874,7 +9858,7 @@ public void TestV2MoneyManagementTransactionGet2() HttpMethod.Get, "/v2/money_management/transactions/id_123", (HttpStatusCode)200, - "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"category\":\"received_debit_reversal\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}"); + "{\"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\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.Transactions; Stripe.V2.MoneyManagement.Transaction transaction = service.Get( @@ -9891,7 +9875,7 @@ public void TestV2MoneyManagementTransactionEntryGet() HttpMethod.Get, "/v2/money_management/transaction_entries", (HttpStatusCode)200, - "{\"data\":[{\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit_reversal\",\"financial_account\":\"financial_account\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"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\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit_reversal\",\"financial_account\":\"financial_account\"},\"livemode\":true}],\"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 @@ -9908,7 +9892,7 @@ public void TestV2MoneyManagementTransactionEntryGet2() HttpMethod.Get, "/v2/money_management/transaction_entries/id_123", (HttpStatusCode)200, - "{\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit_reversal\",\"financial_account\":\"financial_account\"},\"livemode\":true}"); + "{\"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\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit_reversal\",\"financial_account\":\"financial_account\"},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.TransactionEntries; Stripe.V2.MoneyManagement.TransactionEntry transactionEntry = service @@ -9925,7 +9909,7 @@ public void TestV2PaymentsOffSessionPaymentGet() HttpMethod.Get, "/v2/payments/off_session_payments", (HttpStatusCode)200, - "{\"data\":[{\"amount_requested\":{\"value\":111972721,\"currency\":\"usd\"},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.OffSessionPayments; Stripe.V2.StripeList offSessionPayments = service @@ -9942,14 +9926,10 @@ public void TestV2PaymentsOffSessionPaymentPost() HttpMethod.Post, "/v2/payments/off_session_payments", (HttpStatusCode)200, - "{\"amount_requested\":{\"value\":111972721,\"currency\":\"usd\"},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); + "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); var options = new Stripe.V2.Payments.OffSessionPaymentCreateOptions { - Amount = new Stripe.V2.Payments.OffSessionPaymentCreateAmountOptions - { - Value = 111972721, - Currency = "usd", - }, + Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, Cadence = "unscheduled", Customer = "customer", Metadata = new Dictionary @@ -9973,7 +9953,7 @@ public void TestV2PaymentsOffSessionPaymentGet2() HttpMethod.Get, "/v2/payments/off_session_payments/id_123", (HttpStatusCode)200, - "{\"amount_requested\":{\"value\":111972721,\"currency\":\"usd\"},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); + "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.OffSessionPayments; Stripe.V2.Payments.OffSessionPayment offSessionPayment = service @@ -9990,7 +9970,7 @@ public void TestV2PaymentsOffSessionPaymentPost2() HttpMethod.Post, "/v2/payments/off_session_payments/id_123/cancel", (HttpStatusCode)200, - "{\"amount_requested\":{\"value\":111972721,\"currency\":\"usd\"},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); + "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.OffSessionPayments; Stripe.V2.Payments.OffSessionPayment offSessionPayment = service @@ -10007,7 +9987,7 @@ public void TestV2PaymentsOffSessionPaymentPost3() HttpMethod.Post, "/v2/payments/off_session_payments/id_123/capture", (HttpStatusCode)200, - "{\"amount_requested\":{\"value\":111972721,\"currency\":\"usd\"},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); + "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); var options = new Stripe.V2.Payments.OffSessionPaymentCaptureOptions { Metadata = new Dictionary @@ -10031,7 +10011,7 @@ public void TestV2PaymentsSettlementAllocationIntentGet() HttpMethod.Get, "/v2/payments/settlement_allocation_intents", (HttpStatusCode)200, - "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.SettlementAllocationIntents; Stripe.V2.StripeList settlementAllocationIntents = service @@ -10048,14 +10028,10 @@ public void TestV2PaymentsSettlementAllocationIntentPost() HttpMethod.Post, "/v2/payments/settlement_allocation_intents", (HttpStatusCode)200, - "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}"); var options = new Stripe.V2.Payments.SettlementAllocationIntentCreateOptions { - Amount = new Stripe.V2.Payments.SettlementAllocationIntentCreateAmountOptions - { - Value = 111972721, - Currency = "usd", - }, + Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, ExpectedSettlementDate = DateTimeOffset.Parse( "1970-01-22T14:14:13.629Z") .UtcDateTime, @@ -10078,7 +10054,7 @@ public void TestV2PaymentsSettlementAllocationIntentGet2() HttpMethod.Get, "/v2/payments/settlement_allocation_intents/id_123", (HttpStatusCode)200, - "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.SettlementAllocationIntents; Stripe.V2.Payments.SettlementAllocationIntent settlementAllocationIntent = service @@ -10095,7 +10071,7 @@ public void TestV2PaymentsSettlementAllocationIntentPost2() HttpMethod.Post, "/v2/payments/settlement_allocation_intents/id_123", (HttpStatusCode)200, - "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}"); var options = new Stripe.V2.Payments.SettlementAllocationIntentUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.SettlementAllocationIntents; @@ -10113,7 +10089,7 @@ public void TestV2PaymentsSettlementAllocationIntentPost3() HttpMethod.Post, "/v2/payments/settlement_allocation_intents/id_123/cancel", (HttpStatusCode)200, - "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.SettlementAllocationIntents; Stripe.V2.Payments.SettlementAllocationIntent settlementAllocationIntent = service @@ -10130,7 +10106,7 @@ public void TestV2PaymentsSettlementAllocationIntentPost4() HttpMethod.Post, "/v2/payments/settlement_allocation_intents/id_123/submit", (HttpStatusCode)200, - "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}"); + "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.SettlementAllocationIntents; Stripe.V2.Payments.SettlementAllocationIntent settlementAllocationIntent = service @@ -10147,7 +10123,7 @@ public void TestV2PaymentsSettlementAllocationIntentsSplitGet() HttpMethod.Get, "/v2/payments/settlement_allocation_intents/settlement_allocation_intent_id_123/splits", (HttpStatusCode)200, - "{\"data\":[{\"account\":\"account\",\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"account\":\"account\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.SettlementAllocationIntents.Splits; Stripe.V2.StripeList settlementAllocationIntentSplits = service @@ -10164,15 +10140,11 @@ public void TestV2PaymentsSettlementAllocationIntentsSplitPost() HttpMethod.Post, "/v2/payments/settlement_allocation_intents/settlement_allocation_intent_id_123/splits", (HttpStatusCode)200, - "{\"account\":\"account\",\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}"); + "{\"account\":\"account\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}"); var options = new Stripe.V2.Payments.SettlementAllocationIntents.SplitCreateOptions { Account = "account", - Amount = new Stripe.V2.Payments.SettlementAllocationIntents.SplitCreateAmountOptions - { - Value = 111972721, - Currency = "usd", - }, + Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, Type = "credit", }; var client = new StripeClient(this.Requestor); @@ -10191,7 +10163,7 @@ public void TestV2PaymentsSettlementAllocationIntentsSplitGet2() HttpMethod.Get, "/v2/payments/settlement_allocation_intents/settlement_allocation_intent_id_123/splits/id_123", (HttpStatusCode)200, - "{\"account\":\"account\",\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}"); + "{\"account\":\"account\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.SettlementAllocationIntents.Splits; Stripe.V2.Payments.SettlementAllocationIntentSplit settlementAllocationIntentSplit = service @@ -10208,7 +10180,7 @@ public void TestV2PaymentsSettlementAllocationIntentsSplitPost2() HttpMethod.Post, "/v2/payments/settlement_allocation_intents/settlement_allocation_intent_id_123/splits/id_123/cancel", (HttpStatusCode)200, - "{\"account\":\"account\",\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}"); + "{\"account\":\"account\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.SettlementAllocationIntents.Splits; Stripe.V2.Payments.SettlementAllocationIntentSplit settlementAllocationIntentSplit = service @@ -10414,11 +10386,7 @@ public void TestV2TestHelpersFinancialAddressPost() "{\"object\":\"financial_address_credit_simulation\",\"status\":\"status\",\"livemode\":true}"); var options = new Stripe.V2.TestHelpers.FinancialAddressCreditOptions { - Amount = new Stripe.V2.TestHelpers.FinancialAddressCreditAmountOptions - { - Value = 111972721, - Currency = "usd", - }, + Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, Network = "ach", }; var client = new StripeClient(this.Requestor); @@ -10437,7 +10405,7 @@ public void TestV2TestHelpersFinancialAddressPost2() HttpMethod.Post, "/v2/test_helpers/financial_addresses/id_123/generate_microdeposits", (HttpStatusCode)200, - "{\"amounts\":[{\"value\":111972721,\"currency\":\"usd\"}],\"object\":\"financial_address_generated_microdeposits\",\"status\":\"accepted\",\"livemode\":true}"); + "{\"amounts\":[{\"currency\":\"USD\",\"value\":1}],\"object\":\"financial_address_generated_microdeposits\",\"status\":\"accepted\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.TestHelpers.FinancialAddresses; Stripe.V2.FinancialAddressGeneratedMicrodeposits financialAddressGeneratedMicrodeposits = service @@ -10649,11 +10617,7 @@ public void TestInsufficientFundsError() { var options = new Stripe.V2.MoneyManagement.OutboundPaymentCreateOptions { - Amount = new Stripe.V2.MoneyManagement.OutboundPaymentCreateAmountOptions - { - Value = 111972721, - Currency = "usd", - }, + Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, From = new Stripe.V2.MoneyManagement.OutboundPaymentCreateFromOptions { Currency = "usd", @@ -10820,11 +10784,7 @@ public void TestRecipientNotNotifiableError() { var options = new Stripe.V2.MoneyManagement.OutboundPaymentCreateOptions { - Amount = new Stripe.V2.MoneyManagement.OutboundPaymentCreateAmountOptions - { - Value = 111972721, - Currency = "usd", - }, + Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, From = new Stripe.V2.MoneyManagement.OutboundPaymentCreateFromOptions { Currency = "usd", From d5d57c859a52f6abb0424588376903da2d91d3a6 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 21:19:14 +0000 Subject: [PATCH 13/14] Update generated code for v2202 and --- CODEGEN_VERSION | 2 +- .../Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebit.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 86c9b57e80..7d70d83a9a 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -f504fb42951e8181250357c8af0cab513111e480 \ No newline at end of file +44f4fb009787de75f25092f4b710660223afa5c2 \ No newline at end of file diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebit.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebit.cs index 80c3782927..d2efa134af 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebit.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebit.cs @@ -166,7 +166,7 @@ public class ReceivedDebit : StripeEntity, IHasId, IHasObject public ReceivedDebitStripeBalancePayment StripeBalancePayment { get; set; } /// - /// Open enum, the type of the received debit. + /// Open Enum. The type of the ReceivedDebit. /// One of: balance_transfer, bank_transfer, card_spend, /// external_debit, or stripe_balance_payment. /// From b8f5c69e79e7b8e8011e737b96dcd7d0c1918293 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 22:29:59 +0000 Subject: [PATCH 14/14] Update generated code for v2202 and --- CODEGEN_VERSION | 2 +- .../ServiceActionCreditGrantAmount.cs | 2 +- .../ServiceActionCreditGrantAmountMonetary.cs | 32 ++++ ...ServiceActionCreditGrantPerTenantAmount.cs | 2 +- ...ctionCreditGrantPerTenantAmountMonetary.cs | 32 ++++ ...untIdentityBusinessDetailsAnnualRevenue.cs | 2 +- ...ntityBusinessDetailsAnnualRevenueAmount.cs | 32 ++++ ...yBusinessDetailsMonthlyEstimatedRevenue.cs | 2 +- ...essDetailsMonthlyEstimatedRevenueAmount.cs | 32 ++++ .../FinancialAddressGeneratedMicrodeposits.cs | 2 +- ...cialAddressGeneratedMicrodepositsAmount.cs | 32 ++++ .../MoneyManagement/Adjustments/Adjustment.cs | 2 +- .../Adjustments/AdjustmentAmount.cs | 32 ++++ .../CurrencyConversionFrom.cs | 2 +- .../CurrencyConversionFromAmount.cs | 32 ++++ .../CurrencyConversionTo.cs | 2 +- .../CurrencyConversionToAmount.cs | 32 ++++ .../FinancialAccountBalance.cs | 6 +- .../FinancialAccountBalanceAvailable.cs | 32 ++++ .../FinancialAccountBalanceInboundPending.cs | 32 ++++ .../FinancialAccountBalanceOutboundPending.cs | 32 ++++ ...FinancialAccountPaymentsStartingBalance.cs | 2 +- ...AccountPaymentsStartingBalanceAvailable.cs | 32 ++++ .../InboundTransfers/InboundTransfer.cs | 2 +- .../InboundTransfers/InboundTransferAmount.cs | 32 ++++ .../InboundTransfers/InboundTransferFrom.cs | 2 +- .../InboundTransferFromDebited.cs | 32 ++++ .../InboundTransfers/InboundTransferTo.cs | 2 +- .../InboundTransferToCredited.cs | 32 ++++ .../OutboundPaymentQuote.cs | 2 +- .../OutboundPaymentQuoteAmount.cs | 32 ++++ .../OutboundPaymentQuoteEstimatedFee.cs | 2 +- .../OutboundPaymentQuoteEstimatedFeeAmount.cs | 32 ++++ .../OutboundPaymentQuoteFrom.cs | 2 +- .../OutboundPaymentQuoteFromDebited.cs | 32 ++++ .../OutboundPaymentQuoteTo.cs | 2 +- .../OutboundPaymentQuoteToCredited.cs | 32 ++++ .../OutboundPayments/OutboundPayment.cs | 2 +- .../OutboundPayments/OutboundPaymentAmount.cs | 32 ++++ .../OutboundPayments/OutboundPaymentFrom.cs | 2 +- .../OutboundPaymentFromDebited.cs | 32 ++++ .../OutboundPayments/OutboundPaymentTo.cs | 2 +- .../OutboundPaymentToCredited.cs | 32 ++++ .../OutboundTransfers/OutboundTransfer.cs | 2 +- .../OutboundTransferAmount.cs | 32 ++++ .../OutboundTransfers/OutboundTransferFrom.cs | 2 +- .../OutboundTransferFromDebited.cs | 32 ++++ .../OutboundTransfers/OutboundTransferTo.cs | 2 +- .../OutboundTransferToCredited.cs | 32 ++++ .../ReceivedCredits/ReceivedCredit.cs | 4 +- .../ReceivedCredits/ReceivedCreditAmount.cs | 32 ++++ .../ReceivedCreditExternalAmount.cs | 32 ++++ .../ReceivedDebits/ReceivedDebit.cs | 4 +- .../ReceivedDebits/ReceivedDebitAmount.cs | 32 ++++ .../ReceivedDebitCardSpendAuthorization.cs | 2 +- ...ceivedDebitCardSpendAuthorizationAmount.cs | 32 ++++ .../ReceivedDebitCardSpendCardTransaction.cs | 2 +- ...ivedDebitCardSpendCardTransactionAmount.cs | 32 ++++ .../ReceivedDebitExternalAmount.cs | 32 ++++ .../TransactionEntryBalanceImpact.cs | 6 +- .../TransactionEntryBalanceImpactAvailable.cs | 32 ++++ ...sactionEntryBalanceImpactInboundPending.cs | 32 ++++ ...actionEntryBalanceImpactOutboundPending.cs | 32 ++++ .../Transactions/Transaction.cs | 2 +- .../Transactions/TransactionAmount.cs | 32 ++++ .../Transactions/TransactionBalanceImpact.cs | 6 +- .../TransactionBalanceImpactAvailable.cs | 32 ++++ .../TransactionBalanceImpactInboundPending.cs | 32 ++++ ...TransactionBalanceImpactOutboundPending.cs | 32 ++++ .../OffSessionPayments/OffSessionPayment.cs | 4 +- .../OffSessionPaymentAmountCapturable.cs | 32 ++++ .../OffSessionPaymentAmountRequested.cs | 32 ++++ .../SettlementAllocationIntentSplit.cs | 2 +- .../SettlementAllocationIntentSplitAmount.cs | 32 ++++ .../SettlementAllocationIntent.cs | 2 +- .../SettlementAllocationIntentAmount.cs | 32 ++++ ...HealthFraudRateIncreasedEventDataImpact.cs | 2 +- ...easedEventDataImpactRealizedFraudAmount.cs | 33 ++++ ...ationRequestErrorsFiringEventDataImpact.cs | 4 +- ...rorsFiringEventDataImpactApprovedAmount.cs | 33 ++++ ...rorsFiringEventDataImpactDeclinedAmount.cs | 33 ++++ ...ionRequestErrorsResolvedEventDataImpact.cs | 4 +- ...rsResolvedEventDataImpactApprovedAmount.cs | 33 ++++ ...rsResolvedEventDataImpactDeclinedAmount.cs | 33 ++++ ...tionRequestTimeoutFiringEventDataImpact.cs | 4 +- ...eoutFiringEventDataImpactApprovedAmount.cs | 33 ++++ ...eoutFiringEventDataImpactDeclinedAmount.cs | 33 ++++ ...onRequestTimeoutResolvedEventDataImpact.cs | 4 +- ...utResolvedEventDataImpactApprovedAmount.cs | 33 ++++ ...utResolvedEventDataImpactDeclinedAmount.cs | 33 ++++ ...nCreateCreditGrantAmountMonetaryOptions.cs | 32 ++++ ...iceActionCreateCreditGrantAmountOptions.cs | 2 +- ...editGrantPerTenantAmountMonetaryOptions.cs | 32 ++++ ...CreateCreditGrantPerTenantAmountOptions.cs | 2 +- ...sinessDetailsAnnualRevenueAmountOptions.cs | 32 ++++ ...tityBusinessDetailsAnnualRevenueOptions.cs | 2 +- ...ilsMonthlyEstimatedRevenueAmountOptions.cs | 32 ++++ ...ssDetailsMonthlyEstimatedRevenueOptions.cs | 2 +- ...sinessDetailsAnnualRevenueAmountOptions.cs | 32 ++++ ...tityBusinessDetailsAnnualRevenueOptions.cs | 2 +- ...ilsMonthlyEstimatedRevenueAmountOptions.cs | 32 ++++ ...ssDetailsMonthlyEstimatedRevenueOptions.cs | 2 +- ...sinessDetailsAnnualRevenueAmountOptions.cs | 32 ++++ ...tityBusinessDetailsAnnualRevenueOptions.cs | 2 +- ...ilsMonthlyEstimatedRevenueAmountOptions.cs | 32 ++++ ...ssDetailsMonthlyEstimatedRevenueOptions.cs | 2 +- ...rrencyConversionCreateFromAmountOptions.cs | 32 ++++ .../CurrencyConversionCreateFromOptions.cs | 2 +- ...CurrencyConversionCreateToAmountOptions.cs | 32 ++++ .../CurrencyConversionCreateToOptions.cs | 2 +- .../InboundTransferCreateAmountOptions.cs | 32 ++++ .../InboundTransferCreateOptions.cs | 2 +- ...OutboundPaymentQuoteCreateAmountOptions.cs | 32 ++++ .../OutboundPaymentQuoteCreateOptions.cs | 2 +- .../OutboundPaymentCreateAmountOptions.cs | 32 ++++ .../OutboundPaymentCreateOptions.cs | 2 +- .../OutboundTransferCreateAmountOptions.cs | 32 ++++ .../OutboundTransferCreateOptions.cs | 2 +- .../OffSessionPaymentCreateAmountOptions.cs | 32 ++++ .../OffSessionPaymentCreateOptions.cs | 2 +- ...mentAllocationIntentCreateAmountOptions.cs | 32 ++++ ...SettlementAllocationIntentCreateOptions.cs | 2 +- ...mentAllocationIntentUpdateAmountOptions.cs | 32 ++++ ...SettlementAllocationIntentUpdateOptions.cs | 2 +- .../Splits/SplitCreateAmountOptions.cs | 32 ++++ .../Splits/SplitCreateOptions.cs | 2 +- .../FinancialAddressCreditAmountOptions.cs | 32 ++++ .../FinancialAddressCreditOptions.cs | 2 +- .../Services/GeneratedExamplesTest.cs | 166 +++++++++++------- 129 files changed, 2423 insertions(+), 134 deletions(-) create mode 100644 src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantAmountMonetary.cs create mode 100644 src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantPerTenantAmountMonetary.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenueAmount.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount.cs create mode 100644 src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodepositsAmount.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/AdjustmentAmount.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionFromAmount.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionToAmount.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceAvailable.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceInboundPending.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceOutboundPending.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountPaymentsStartingBalanceAvailable.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferAmount.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferFromDebited.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferToCredited.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteAmount.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteEstimatedFeeAmount.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteFromDebited.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteToCredited.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentAmount.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentFromDebited.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToCredited.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferAmount.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferFromDebited.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferToCredited.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditAmount.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditExternalAmount.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitAmount.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendAuthorizationAmount.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendCardTransactionAmount.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitExternalAmount.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactAvailable.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactInboundPending.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactOutboundPending.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionAmount.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactAvailable.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactInboundPending.cs create mode 100644 src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactOutboundPending.cs create mode 100644 src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountCapturable.cs create mode 100644 src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountRequested.cs create mode 100644 src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntentSplits/SettlementAllocationIntentSplitAmount.cs create mode 100644 src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentAmount.cs create mode 100644 src/Stripe.net/Events/V2CoreHealthFraudRateIncreasedEventDataImpactRealizedFraudAmount.cs create mode 100644 src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactApprovedAmount.cs create mode 100644 src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactDeclinedAmount.cs create mode 100644 src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactApprovedAmount.cs create mode 100644 src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactDeclinedAmount.cs create mode 100644 src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactApprovedAmount.cs create mode 100644 src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactDeclinedAmount.cs create mode 100644 src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactApprovedAmount.cs create mode 100644 src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactDeclinedAmount.cs create mode 100644 src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantAmountMonetaryOptions.cs create mode 100644 src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantAmountMonetaryOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs create mode 100644 src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateFromAmountOptions.cs create mode 100644 src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateToAmountOptions.cs create mode 100644 src/Stripe.net/Services/V2/MoneyManagement/InboundTransfers/InboundTransferCreateAmountOptions.cs create mode 100644 src/Stripe.net/Services/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteCreateAmountOptions.cs create mode 100644 src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateAmountOptions.cs create mode 100644 src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateAmountOptions.cs create mode 100644 src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateAmountOptions.cs create mode 100644 src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentCreateAmountOptions.cs create mode 100644 src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentUpdateAmountOptions.cs create mode 100644 src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/Splits/SplitCreateAmountOptions.cs create mode 100644 src/Stripe.net/Services/V2/TestHelpers/FinancialAddresses/FinancialAddressCreditAmountOptions.cs diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 7d70d83a9a..8576feb6a9 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -44f4fb009787de75f25092f4b710660223afa5c2 \ No newline at end of file +9e950cbf7b5a814a98f27d1a94b72cd6f1df2078 \ No newline at end of file diff --git a/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantAmount.cs b/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantAmount.cs index eafac71ac9..f23833027c 100644 --- a/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantAmount.cs +++ b/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantAmount.cs @@ -36,6 +36,6 @@ public class ServiceActionCreditGrantAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantPerTenantAmount.cs b/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantPerTenantAmount.cs index c0444463d3..982266710b 100644 --- a/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantPerTenantAmount.cs +++ b/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantPerTenantAmount.cs @@ -36,6 +36,6 @@ public class ServiceActionCreditGrantPerTenantAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenue.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenue.cs index a02979906b..767dafdcb9 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenue.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenue.cs @@ -15,7 +15,7 @@ public class AccountIdentityBusinessDetailsAnnualRevenue : StripeEntity /// The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenueAmount.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenueAmount.cs new file mode 100644 index 0000000000..9c0634b052 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenueAmount.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsAnnualRevenueAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenue.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenue.cs index 691a5a4346..50684d17d2 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenue.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenue.cs @@ -16,6 +16,6 @@ public class AccountIdentityBusinessDetailsMonthlyEstimatedRevenue : StripeEntit #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount Amount { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount.cs new file mode 100644 index 0000000000..973b02c764 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodeposits.cs b/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodeposits.cs index ff9b19f53e..4c2549ef88 100644 --- a/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodeposits.cs +++ b/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodeposits.cs @@ -30,7 +30,7 @@ public class FinancialAddressGeneratedMicrodeposits : StripeEntity Amounts { get; set; } + public List Amounts { get; set; } /// /// Has the value true if the object exists in live mode or the value false if diff --git a/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodepositsAmount.cs b/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodepositsAmount.cs new file mode 100644 index 0000000000..253c396886 --- /dev/null +++ b/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodepositsAmount.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2 +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class FinancialAddressGeneratedMicrodepositsAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/Adjustment.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/Adjustment.cs index e409ac7874..ba85c9a476 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/Adjustment.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/Adjustment.cs @@ -48,7 +48,7 @@ public class Adjustment : StripeEntity, IHasId, IHasObject #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public AdjustmentAmount Amount { get; set; } /// /// Time at which the object was created. Represented as a RFC 3339 date & time UTC diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/AdjustmentAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/AdjustmentAmount.cs new file mode 100644 index 0000000000..c4b2a25f63 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/AdjustmentAmount.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AdjustmentAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionFrom.cs b/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionFrom.cs index f9124c91ea..2d7af3139e 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionFrom.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionFrom.cs @@ -15,6 +15,6 @@ public class CurrencyConversionFrom : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public CurrencyConversionFromAmount Amount { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionFromAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionFromAmount.cs new file mode 100644 index 0000000000..c92afa69d1 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionFromAmount.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class CurrencyConversionFromAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionTo.cs b/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionTo.cs index aadbadc329..1ddb088741 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionTo.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionTo.cs @@ -15,6 +15,6 @@ public class CurrencyConversionTo : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public CurrencyConversionToAmount Amount { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionToAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionToAmount.cs new file mode 100644 index 0000000000..ec7db02cf1 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/CurrencyConversions/CurrencyConversionToAmount.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class CurrencyConversionToAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalance.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalance.cs index 0327e4b662..0e723ccfd4 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalance.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalance.cs @@ -16,7 +16,7 @@ public class FinancialAccountBalance : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("available")] #endif - public Dictionary Available { get; set; } + public Dictionary Available { get; set; } /// /// Balance of inbound funds that will later transition to the available balance. @@ -25,7 +25,7 @@ public class FinancialAccountBalance : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("inbound_pending")] #endif - public Dictionary InboundPending { get; set; } + public Dictionary InboundPending { get; set; } /// /// Balance of funds that are being used for a pending outbound money movement. @@ -34,6 +34,6 @@ public class FinancialAccountBalance : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("outbound_pending")] #endif - public Dictionary OutboundPending { get; set; } + public Dictionary OutboundPending { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceAvailable.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceAvailable.cs new file mode 100644 index 0000000000..4a88990fd0 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceAvailable.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class FinancialAccountBalanceAvailable : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceInboundPending.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceInboundPending.cs new file mode 100644 index 0000000000..63031bb474 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceInboundPending.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class FinancialAccountBalanceInboundPending : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceOutboundPending.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceOutboundPending.cs new file mode 100644 index 0000000000..fcdcb869ee --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceOutboundPending.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class FinancialAccountBalanceOutboundPending : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountPaymentsStartingBalance.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountPaymentsStartingBalance.cs index fa6d8d8899..3e7c5aec45 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountPaymentsStartingBalance.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountPaymentsStartingBalance.cs @@ -26,6 +26,6 @@ public class FinancialAccountPaymentsStartingBalance : StripeEntity Available { get; set; } + public Dictionary Available { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountPaymentsStartingBalanceAvailable.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountPaymentsStartingBalanceAvailable.cs new file mode 100644 index 0000000000..bbf39b0948 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountPaymentsStartingBalanceAvailable.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class FinancialAccountPaymentsStartingBalanceAvailable : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransfer.cs b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransfer.cs index 6c9f92cf38..6153255949 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransfer.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransfer.cs @@ -40,7 +40,7 @@ public class InboundTransfer : StripeEntity, IHasId, IHasObject #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public InboundTransferAmount Amount { get; set; } /// /// Creation time of the InboundTransfer. Represented as a RFC 3339 date & time UTC diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferAmount.cs new file mode 100644 index 0000000000..c01061136e --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferAmount.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class InboundTransferAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferFrom.cs b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferFrom.cs index 96bfea4d34..d22b7e2ada 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferFrom.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferFrom.cs @@ -15,7 +15,7 @@ public class InboundTransferFrom : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("debited")] #endif - public V2.Amount Debited { get; set; } + public InboundTransferFromDebited Debited { get; set; } /// /// The Payment Method object used to create the InboundTransfer. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferFromDebited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferFromDebited.cs new file mode 100644 index 0000000000..add3daf160 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferFromDebited.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class InboundTransferFromDebited : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTo.cs b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTo.cs index 43a8f8da06..b2c6a122f9 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTo.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTo.cs @@ -15,7 +15,7 @@ public class InboundTransferTo : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("credited")] #endif - public V2.Amount Credited { get; set; } + public InboundTransferToCredited Credited { get; set; } /// /// The FinancialAccount that funds will land in. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferToCredited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferToCredited.cs new file mode 100644 index 0000000000..ffabdb9c30 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferToCredited.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class InboundTransferToCredited : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuote.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuote.cs index 0d2cef6899..10490a950f 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuote.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuote.cs @@ -40,7 +40,7 @@ public class OutboundPaymentQuote : StripeEntity, IHasId, #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public OutboundPaymentQuoteAmount Amount { get; set; } /// /// Time at which the OutboundPaymentQuote was created. Represented as a RFC 3339 date & diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteAmount.cs new file mode 100644 index 0000000000..b0cb94b225 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteAmount.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class OutboundPaymentQuoteAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteEstimatedFee.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteEstimatedFee.cs index 4bad7fa972..2bc64ce544 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteEstimatedFee.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteEstimatedFee.cs @@ -15,7 +15,7 @@ public class OutboundPaymentQuoteEstimatedFee : StripeEntity /// The fee type. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteEstimatedFeeAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteEstimatedFeeAmount.cs new file mode 100644 index 0000000000..c4287e7163 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteEstimatedFeeAmount.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class OutboundPaymentQuoteEstimatedFeeAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteFrom.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteFrom.cs index 2748d062fc..1914db22b6 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteFrom.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteFrom.cs @@ -15,7 +15,7 @@ public class OutboundPaymentQuoteFrom : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("debited")] #endif - public V2.Amount Debited { get; set; } + public OutboundPaymentQuoteFromDebited Debited { get; set; } /// /// The FinancialAccount that funds were pulled from. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteFromDebited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteFromDebited.cs new file mode 100644 index 0000000000..d48cff4694 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteFromDebited.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class OutboundPaymentQuoteFromDebited : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteTo.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteTo.cs index 9a974f4cb1..c558257e7d 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteTo.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteTo.cs @@ -15,7 +15,7 @@ public class OutboundPaymentQuoteTo : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("credited")] #endif - public V2.Amount Credited { get; set; } + public OutboundPaymentQuoteToCredited Credited { get; set; } /// /// The payout method which the OutboundPayment uses to send payout. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteToCredited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteToCredited.cs new file mode 100644 index 0000000000..1e8cee94e1 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteToCredited.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class OutboundPaymentQuoteToCredited : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs index 9d571ef7d0..ab070b24a1 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs @@ -40,7 +40,7 @@ public class OutboundPayment : StripeEntity, IHasId, IHasMetada #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public OutboundPaymentAmount Amount { get; set; } /// /// Returns true if the OutboundPayment can be canceled, and false otherwise. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentAmount.cs new file mode 100644 index 0000000000..9f9dd42cf8 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentAmount.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class OutboundPaymentAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentFrom.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentFrom.cs index 5738f5cc84..56bc82b1e0 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentFrom.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentFrom.cs @@ -15,7 +15,7 @@ public class OutboundPaymentFrom : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("debited")] #endif - public V2.Amount Debited { get; set; } + public OutboundPaymentFromDebited Debited { get; set; } /// /// The FinancialAccount that funds were pulled from. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentFromDebited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentFromDebited.cs new file mode 100644 index 0000000000..b36b1d11c4 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentFromDebited.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class OutboundPaymentFromDebited : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentTo.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentTo.cs index a090338234..11369bca2c 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentTo.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentTo.cs @@ -15,7 +15,7 @@ public class OutboundPaymentTo : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("credited")] #endif - public V2.Amount Credited { get; set; } + public OutboundPaymentToCredited Credited { get; set; } /// /// The payout method which the OutboundPayment uses to send payout. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToCredited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToCredited.cs new file mode 100644 index 0000000000..ccf6126cfa --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToCredited.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class OutboundPaymentToCredited : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransfer.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransfer.cs index c4ec7a0761..944cd67379 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransfer.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransfer.cs @@ -40,7 +40,7 @@ public class OutboundTransfer : StripeEntity, IHasId, IHasMeta #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public OutboundTransferAmount Amount { get; set; } /// /// Returns true if the OutboundTransfer can be canceled, and false otherwise. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferAmount.cs new file mode 100644 index 0000000000..a14c5770e6 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferAmount.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class OutboundTransferAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferFrom.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferFrom.cs index 61f6017368..6615f7d6e9 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferFrom.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferFrom.cs @@ -15,7 +15,7 @@ public class OutboundTransferFrom : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("debited")] #endif - public V2.Amount Debited { get; set; } + public OutboundTransferFromDebited Debited { get; set; } /// /// The FinancialAccount that funds were pulled from. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferFromDebited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferFromDebited.cs new file mode 100644 index 0000000000..1c207bc3ce --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferFromDebited.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class OutboundTransferFromDebited : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferTo.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferTo.cs index 7ada61f9ef..a664f9de6e 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferTo.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferTo.cs @@ -15,7 +15,7 @@ public class OutboundTransferTo : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("credited")] #endif - public V2.Amount Credited { get; set; } + public OutboundTransferToCredited Credited { get; set; } /// /// The payout method which the OutboundTransfer uses to send payout. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferToCredited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferToCredited.cs new file mode 100644 index 0000000000..716efad420 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferToCredited.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class OutboundTransferToCredited : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCredit.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCredit.cs index bd3ba42ed1..80c972b1be 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCredit.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCredit.cs @@ -39,7 +39,7 @@ public class ReceivedCredit : StripeEntity, IHasId, IHasObject #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public ReceivedCreditAmount Amount { get; set; } /// /// This object stores details about the originating Stripe transaction that resulted in the @@ -97,7 +97,7 @@ public class ReceivedCredit : StripeEntity, IHasId, IHasObject #if NET6_0_OR_GREATER [STJS.JsonPropertyName("external_amount")] #endif - public V2.Amount ExternalAmount { get; set; } + public ReceivedCreditExternalAmount ExternalAmount { get; set; } /// /// Financial Account ID on which funds for ReceivedCredit were received. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditAmount.cs new file mode 100644 index 0000000000..9586b382dd --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditAmount.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ReceivedCreditAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditExternalAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditExternalAmount.cs new file mode 100644 index 0000000000..24ea4b47fe --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditExternalAmount.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ReceivedCreditExternalAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebit.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebit.cs index d2efa134af..6fa1d9adca 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebit.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebit.cs @@ -38,7 +38,7 @@ public class ReceivedDebit : StripeEntity, IHasId, IHasObject #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public ReceivedDebitAmount Amount { get; set; } /// /// This object stores details about the balance transfer object that resulted in the @@ -96,7 +96,7 @@ public class ReceivedDebit : StripeEntity, IHasId, IHasObject #if NET6_0_OR_GREATER [STJS.JsonPropertyName("external_amount")] #endif - public V2.Amount ExternalAmount { get; set; } + public ReceivedDebitExternalAmount ExternalAmount { get; set; } /// /// Financial Account on which funds for ReceivedDebit were debited. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitAmount.cs new file mode 100644 index 0000000000..cda74e626f --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitAmount.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ReceivedDebitAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendAuthorization.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendAuthorization.cs index 1e5b7f10d3..b268300ea9 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendAuthorization.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendAuthorization.cs @@ -15,7 +15,7 @@ public class ReceivedDebitCardSpendAuthorization : StripeEntity /// The reference to the v1 issuing authorization ID. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendAuthorizationAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendAuthorizationAmount.cs new file mode 100644 index 0000000000..ddc4a0038b --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendAuthorizationAmount.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ReceivedDebitCardSpendAuthorizationAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendCardTransaction.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendCardTransaction.cs index 9e7d0cb2c4..94d8995cd6 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendCardTransaction.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendCardTransaction.cs @@ -15,7 +15,7 @@ public class ReceivedDebitCardSpendCardTransaction : StripeEntity /// The reference to the v1 issuing transaction ID. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendCardTransactionAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendCardTransactionAmount.cs new file mode 100644 index 0000000000..29afe89394 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitCardSpendCardTransactionAmount.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ReceivedDebitCardSpendCardTransactionAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitExternalAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitExternalAmount.cs new file mode 100644 index 0000000000..9ac97f9254 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitExternalAmount.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ReceivedDebitExternalAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpact.cs b/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpact.cs index e303c02b47..1cd25892e8 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpact.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpact.cs @@ -15,7 +15,7 @@ public class TransactionEntryBalanceImpact : StripeEntity /// Impact to the inbound_pending balance. @@ -24,7 +24,7 @@ public class TransactionEntryBalanceImpact : StripeEntity /// Impact to the outbound_pending balance. @@ -33,6 +33,6 @@ public class TransactionEntryBalanceImpact : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactInboundPending.cs b/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactInboundPending.cs new file mode 100644 index 0000000000..5a23d6fb4b --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactInboundPending.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class TransactionEntryBalanceImpactInboundPending : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactOutboundPending.cs b/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactOutboundPending.cs new file mode 100644 index 0000000000..0218f1aa88 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactOutboundPending.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class TransactionEntryBalanceImpactOutboundPending : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/Transaction.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/Transaction.cs index a453eadae5..b9a18228cd 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/Transaction.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/Transaction.cs @@ -42,7 +42,7 @@ public class Transaction : StripeEntity, IHasId, IHasObject #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public TransactionAmount Amount { get; set; } /// /// The delta to the FinancialAccount's balance. The balance_impact for the Transaction is diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionAmount.cs new file mode 100644 index 0000000000..05ec85fc25 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionAmount.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class TransactionAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpact.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpact.cs index 80c989204d..d538d06a6d 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpact.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpact.cs @@ -15,7 +15,7 @@ public class TransactionBalanceImpact : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("available")] #endif - public V2.Amount Available { get; set; } + public TransactionBalanceImpactAvailable Available { get; set; } /// /// Impact to the inbound_pending balance. @@ -24,7 +24,7 @@ public class TransactionBalanceImpact : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("inbound_pending")] #endif - public V2.Amount InboundPending { get; set; } + public TransactionBalanceImpactInboundPending InboundPending { get; set; } /// /// Impact to the outbound_pending balance. @@ -33,6 +33,6 @@ public class TransactionBalanceImpact : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("outbound_pending")] #endif - public V2.Amount OutboundPending { get; set; } + public TransactionBalanceImpactOutboundPending OutboundPending { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactAvailable.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactAvailable.cs new file mode 100644 index 0000000000..3d6e473ee3 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactAvailable.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class TransactionBalanceImpactAvailable : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactInboundPending.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactInboundPending.cs new file mode 100644 index 0000000000..9ee411dc26 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactInboundPending.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class TransactionBalanceImpactInboundPending : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactOutboundPending.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactOutboundPending.cs new file mode 100644 index 0000000000..fa9a0757d0 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactOutboundPending.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class TransactionBalanceImpactOutboundPending : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPayment.cs b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPayment.cs index 9ee7ba8ccd..4fa3f8c1cc 100644 --- a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPayment.cs +++ b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPayment.cs @@ -48,7 +48,7 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount_capturable")] #endif - public V2.Amount AmountCapturable { get; set; } + public OffSessionPaymentAmountCapturable AmountCapturable { get; set; } /// /// The “presentment amount” to be collected from the customer. @@ -57,7 +57,7 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount_requested")] #endif - public V2.Amount AmountRequested { get; set; } + public OffSessionPaymentAmountRequested AmountRequested { get; set; } /// /// The frequency of the underlying payment. diff --git a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountCapturable.cs b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountCapturable.cs new file mode 100644 index 0000000000..63287c4083 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountCapturable.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class OffSessionPaymentAmountCapturable : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountRequested.cs b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountRequested.cs new file mode 100644 index 0000000000..817afaba35 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentAmountRequested.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class OffSessionPaymentAmountRequested : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntentSplits/SettlementAllocationIntentSplit.cs b/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntentSplits/SettlementAllocationIntentSplit.cs index 9c2a66b65d..6d10b42a0c 100644 --- a/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntentSplits/SettlementAllocationIntentSplit.cs +++ b/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntentSplits/SettlementAllocationIntentSplit.cs @@ -47,7 +47,7 @@ public class SettlementAllocationIntentSplit : StripeEntity /// Timestamp at which SettlementAllocationIntentSplit was created. diff --git a/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntentSplits/SettlementAllocationIntentSplitAmount.cs b/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntentSplits/SettlementAllocationIntentSplitAmount.cs new file mode 100644 index 0000000000..f018ab18e8 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntentSplits/SettlementAllocationIntentSplitAmount.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SettlementAllocationIntentSplitAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntent.cs b/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntent.cs index 1e7449308d..ab4aa85ec0 100644 --- a/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntent.cs +++ b/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntent.cs @@ -39,7 +39,7 @@ public class SettlementAllocationIntent : StripeEntity /// Timestamp at which SettlementAllocationIntent was created . diff --git a/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentAmount.cs b/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentAmount.cs new file mode 100644 index 0000000000..3163e7a443 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentAmount.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SettlementAllocationIntentAmount : StripeEntity + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2CoreHealthFraudRateIncreasedEventDataImpact.cs b/src/Stripe.net/Events/V2CoreHealthFraudRateIncreasedEventDataImpact.cs index ca49773481..fe67275974 100644 --- a/src/Stripe.net/Events/V2CoreHealthFraudRateIncreasedEventDataImpact.cs +++ b/src/Stripe.net/Events/V2CoreHealthFraudRateIncreasedEventDataImpact.cs @@ -35,6 +35,6 @@ public class V2CoreHealthFraudRateIncreasedEventDataImpact : StripeEntity + { + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpact.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpact.cs index a7536e6470..402349feb5 100644 --- a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpact.cs +++ b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpact.cs @@ -16,7 +16,7 @@ public class V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpact #if NET6_0_OR_GREATER [STJS.JsonPropertyName("approved_amount")] #endif - public V2.Amount ApprovedAmount { get; set; } + public V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactApprovedAmount ApprovedAmount { get; set; } /// /// The number of approved requests which are impacted. @@ -34,7 +34,7 @@ public class V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpact #if NET6_0_OR_GREATER [STJS.JsonPropertyName("declined_amount")] #endif - public V2.Amount DeclinedAmount { get; set; } + public V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactDeclinedAmount DeclinedAmount { get; set; } /// /// The number of declined requests which are impacted. diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactApprovedAmount.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactApprovedAmount.cs new file mode 100644 index 0000000000..25aa0e4a1a --- /dev/null +++ b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactApprovedAmount.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactApprovedAmount : StripeEntity + { + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactDeclinedAmount.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactDeclinedAmount.cs new file mode 100644 index 0000000000..3819301f2b --- /dev/null +++ b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactDeclinedAmount.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventDataImpactDeclinedAmount : StripeEntity + { + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpact.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpact.cs index f88a669963..5604921c17 100644 --- a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpact.cs +++ b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpact.cs @@ -16,7 +16,7 @@ public class V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpac #if NET6_0_OR_GREATER [STJS.JsonPropertyName("approved_amount")] #endif - public V2.Amount ApprovedAmount { get; set; } + public V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactApprovedAmount ApprovedAmount { get; set; } /// /// The number of approved requests which are impacted. @@ -34,7 +34,7 @@ public class V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpac #if NET6_0_OR_GREATER [STJS.JsonPropertyName("declined_amount")] #endif - public V2.Amount DeclinedAmount { get; set; } + public V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactDeclinedAmount DeclinedAmount { get; set; } /// /// The number of declined requests which are impacted. diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactApprovedAmount.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactApprovedAmount.cs new file mode 100644 index 0000000000..428929fe66 --- /dev/null +++ b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactApprovedAmount.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactApprovedAmount : StripeEntity + { + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactDeclinedAmount.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactDeclinedAmount.cs new file mode 100644 index 0000000000..5b3ee921f5 --- /dev/null +++ b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactDeclinedAmount.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventDataImpactDeclinedAmount : StripeEntity + { + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpact.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpact.cs index 72ac902f57..bb032e3f07 100644 --- a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpact.cs +++ b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpact.cs @@ -16,7 +16,7 @@ public class V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpact #if NET6_0_OR_GREATER [STJS.JsonPropertyName("approved_amount")] #endif - public V2.Amount ApprovedAmount { get; set; } + public V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactApprovedAmount ApprovedAmount { get; set; } /// /// The number of approved requests which are impacted. @@ -34,7 +34,7 @@ public class V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpact #if NET6_0_OR_GREATER [STJS.JsonPropertyName("declined_amount")] #endif - public V2.Amount DeclinedAmount { get; set; } + public V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactDeclinedAmount DeclinedAmount { get; set; } /// /// The number of declined requests which are impacted. diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactApprovedAmount.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactApprovedAmount.cs new file mode 100644 index 0000000000..e47010fe45 --- /dev/null +++ b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactApprovedAmount.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactApprovedAmount : StripeEntity + { + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactDeclinedAmount.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactDeclinedAmount.cs new file mode 100644 index 0000000000..559b5015b2 --- /dev/null +++ b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactDeclinedAmount.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpactDeclinedAmount : StripeEntity + { + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpact.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpact.cs index 88385d2b40..ea4199ae12 100644 --- a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpact.cs +++ b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpact.cs @@ -16,7 +16,7 @@ public class V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpa #if NET6_0_OR_GREATER [STJS.JsonPropertyName("approved_amount")] #endif - public V2.Amount ApprovedAmount { get; set; } + public V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactApprovedAmount ApprovedAmount { get; set; } /// /// The number of approved requests which are impacted. @@ -34,7 +34,7 @@ public class V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpa #if NET6_0_OR_GREATER [STJS.JsonPropertyName("declined_amount")] #endif - public V2.Amount DeclinedAmount { get; set; } + public V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactDeclinedAmount DeclinedAmount { get; set; } /// /// The number of declined requests which are impacted. diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactApprovedAmount.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactApprovedAmount.cs new file mode 100644 index 0000000000..57b6ba0a51 --- /dev/null +++ b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactApprovedAmount.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactApprovedAmount : StripeEntity + { + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactDeclinedAmount.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactDeclinedAmount.cs new file mode 100644 index 0000000000..dcd50f634f --- /dev/null +++ b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactDeclinedAmount.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpactDeclinedAmount : StripeEntity + { + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long Value { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantAmountMonetaryOptions.cs b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantAmountMonetaryOptions.cs new file mode 100644 index 0000000000..699e3b7267 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantAmountMonetaryOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ServiceActionCreateCreditGrantAmountMonetaryOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantAmountOptions.cs b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantAmountOptions.cs index cbc74f4bdb..40e159cee3 100644 --- a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantAmountOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantAmountOptions.cs @@ -36,6 +36,6 @@ public class ServiceActionCreateCreditGrantAmountOptions : INestedOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("monetary")] #endif - public V2.Amount Monetary { get; set; } + public ServiceActionCreateCreditGrantAmountMonetaryOptions Monetary { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantAmountMonetaryOptions.cs b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantAmountMonetaryOptions.cs new file mode 100644 index 0000000000..fedbd7389b --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantAmountMonetaryOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ServiceActionCreateCreditGrantPerTenantAmountMonetaryOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantAmountOptions.cs b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantAmountOptions.cs index 80743139f7..89ba090576 100644 --- a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantAmountOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantAmountOptions.cs @@ -36,6 +36,6 @@ public class ServiceActionCreateCreditGrantPerTenantAmountOptions : INestedOptio #if NET6_0_OR_GREATER [STJS.JsonPropertyName("monetary")] #endif - public V2.Amount Monetary { get; set; } + public ServiceActionCreateCreditGrantPerTenantAmountMonetaryOptions Monetary { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs new file mode 100644 index 0000000000..8a6382b632 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsAnnualRevenueAmountOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueOptions.cs index 9c0bf20bcb..08068e14d4 100644 --- a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueOptions.cs +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAnnualRevenueOptions.cs @@ -15,7 +15,7 @@ public class AccountTokenCreateIdentityBusinessDetailsAnnualRevenueOptions : INe #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public AccountTokenCreateIdentityBusinessDetailsAnnualRevenueAmountOptions Amount { get; set; } /// /// The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs new file mode 100644 index 0000000000..98e7513e62 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs index 4c06c1c77a..2177862476 100644 --- a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs @@ -15,6 +15,6 @@ public class AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOpt #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public AccountTokenCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions Amount { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs new file mode 100644 index 0000000000..65dd1cadf3 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsAnnualRevenueAmountOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueOptions.cs index a597de493c..2c1bfe19b9 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAnnualRevenueOptions.cs @@ -15,7 +15,7 @@ public class AccountCreateIdentityBusinessDetailsAnnualRevenueOptions : INestedO #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public AccountCreateIdentityBusinessDetailsAnnualRevenueAmountOptions Amount { get; set; } /// /// The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs new file mode 100644 index 0000000000..7be1063978 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs index fea520f3ee..649c532d05 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs @@ -15,6 +15,6 @@ public class AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public AccountCreateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions Amount { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs new file mode 100644 index 0000000000..e9ba19b275 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueAmountOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsAnnualRevenueAmountOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueOptions.cs index cc10bc5641..5165ca7d98 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAnnualRevenueOptions.cs @@ -15,7 +15,7 @@ public class AccountUpdateIdentityBusinessDetailsAnnualRevenueOptions : INestedO #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public AccountUpdateIdentityBusinessDetailsAnnualRevenueAmountOptions Amount { get; set; } /// /// The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs new file mode 100644 index 0000000000..224acf7c3d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs index b4f9fc0184..32e6dbdb61 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions.cs @@ -15,6 +15,6 @@ public class AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public AccountUpdateIdentityBusinessDetailsMonthlyEstimatedRevenueAmountOptions Amount { get; set; } } } diff --git a/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateFromAmountOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateFromAmountOptions.cs new file mode 100644 index 0000000000..e5662cc3b3 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateFromAmountOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class CurrencyConversionCreateFromAmountOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateFromOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateFromOptions.cs index ed77067acb..ea1b182608 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateFromOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateFromOptions.cs @@ -15,7 +15,7 @@ public class CurrencyConversionCreateFromOptions : INestedOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public CurrencyConversionCreateFromAmountOptions Amount { get; set; } /// /// A lowercase alpha3 currency code like "usd". diff --git a/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateToAmountOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateToAmountOptions.cs new file mode 100644 index 0000000000..74482d0c91 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateToAmountOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class CurrencyConversionCreateToAmountOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateToOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateToOptions.cs index 668419a323..3ea8684c3f 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateToOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/CurrencyConversions/CurrencyConversionCreateToOptions.cs @@ -15,7 +15,7 @@ public class CurrencyConversionCreateToOptions : INestedOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public CurrencyConversionCreateToAmountOptions Amount { get; set; } /// /// A lowercase alpha3 currency code like "usd". diff --git a/src/Stripe.net/Services/V2/MoneyManagement/InboundTransfers/InboundTransferCreateAmountOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/InboundTransfers/InboundTransferCreateAmountOptions.cs new file mode 100644 index 0000000000..7c05c2fdd1 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/InboundTransfers/InboundTransferCreateAmountOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class InboundTransferCreateAmountOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/InboundTransfers/InboundTransferCreateOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/InboundTransfers/InboundTransferCreateOptions.cs index 5bb3a7d795..5cc13e2e5f 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/InboundTransfers/InboundTransferCreateOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/InboundTransfers/InboundTransferCreateOptions.cs @@ -16,7 +16,7 @@ public class InboundTransferCreateOptions : BaseOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public InboundTransferCreateAmountOptions Amount { get; set; } /// /// An optional, freeform description field intended to store metadata. diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteCreateAmountOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteCreateAmountOptions.cs new file mode 100644 index 0000000000..0a7e4fcf57 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteCreateAmountOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class OutboundPaymentQuoteCreateAmountOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteCreateOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteCreateOptions.cs index 492a0420fd..7b6027aec2 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteCreateOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteCreateOptions.cs @@ -15,7 +15,7 @@ public class OutboundPaymentQuoteCreateOptions : BaseOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public OutboundPaymentQuoteCreateAmountOptions Amount { get; set; } /// /// Method to be used to send the OutboundPayment. diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateAmountOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateAmountOptions.cs new file mode 100644 index 0000000000..80f3f101af --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateAmountOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class OutboundPaymentCreateAmountOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateOptions.cs index d1dbf2a180..907da174c6 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateOptions.cs @@ -16,7 +16,7 @@ public class OutboundPaymentCreateOptions : BaseOptions, IHasMetadata #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public OutboundPaymentCreateAmountOptions Amount { get; set; } /// /// Delivery options to be used to send the OutboundPayment. diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateAmountOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateAmountOptions.cs new file mode 100644 index 0000000000..8878f78cf9 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateAmountOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class OutboundTransferCreateAmountOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateOptions.cs index 321c701075..3ba623fcaf 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateOptions.cs @@ -16,7 +16,7 @@ public class OutboundTransferCreateOptions : BaseOptions, IHasMetadata #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public OutboundTransferCreateAmountOptions Amount { get; set; } /// /// Delivery options to be used to send the OutboundTransfer. diff --git a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateAmountOptions.cs b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateAmountOptions.cs new file mode 100644 index 0000000000..b911f611c1 --- /dev/null +++ b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateAmountOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class OffSessionPaymentCreateAmountOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { 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 fb492ea223..24abdf49cf 100644 --- a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateOptions.cs @@ -16,7 +16,7 @@ public class OffSessionPaymentCreateOptions : BaseOptions, IHasMetadata #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public OffSessionPaymentCreateAmountOptions Amount { get; set; } /// /// The frequency of the underlying payment. diff --git a/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentCreateAmountOptions.cs b/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentCreateAmountOptions.cs new file mode 100644 index 0000000000..eab689b1f0 --- /dev/null +++ b/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentCreateAmountOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SettlementAllocationIntentCreateAmountOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentCreateOptions.cs b/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentCreateOptions.cs index 180b7e8b53..ef8674e8d8 100644 --- a/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentCreateOptions.cs @@ -18,7 +18,7 @@ public class SettlementAllocationIntentCreateOptions : BaseOptions, IHasMetadata #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public SettlementAllocationIntentCreateAmountOptions Amount { get; set; } /// /// Date when we expect to receive the funds. Must be in future . diff --git a/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentUpdateAmountOptions.cs b/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentUpdateAmountOptions.cs new file mode 100644 index 0000000000..5f823a11c6 --- /dev/null +++ b/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentUpdateAmountOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SettlementAllocationIntentUpdateAmountOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentUpdateOptions.cs b/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentUpdateOptions.cs index 4370006afe..9cc6230557 100644 --- a/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/SettlementAllocationIntentUpdateOptions.cs @@ -16,7 +16,7 @@ public class SettlementAllocationIntentUpdateOptions : BaseOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public SettlementAllocationIntentUpdateAmountOptions Amount { get; set; } /// /// The new reference for the SettlementAllocationIntent. diff --git a/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/Splits/SplitCreateAmountOptions.cs b/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/Splits/SplitCreateAmountOptions.cs new file mode 100644 index 0000000000..bb00b12001 --- /dev/null +++ b/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/Splits/SplitCreateAmountOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Payments.SettlementAllocationIntents +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SplitCreateAmountOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/Splits/SplitCreateOptions.cs b/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/Splits/SplitCreateOptions.cs index 1084ce101d..7ed216fbf1 100644 --- a/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/Splits/SplitCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Payments/SettlementAllocationIntents/Splits/SplitCreateOptions.cs @@ -25,7 +25,7 @@ public class SplitCreateOptions : BaseOptions, IHasMetadata #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public SplitCreateAmountOptions Amount { get; set; } /// /// Metadata associated with the SettlementAllocationIntentSplit. diff --git a/src/Stripe.net/Services/V2/TestHelpers/FinancialAddresses/FinancialAddressCreditAmountOptions.cs b/src/Stripe.net/Services/V2/TestHelpers/FinancialAddresses/FinancialAddressCreditAmountOptions.cs new file mode 100644 index 0000000000..eb54ce6499 --- /dev/null +++ b/src/Stripe.net/Services/V2/TestHelpers/FinancialAddresses/FinancialAddressCreditAmountOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.TestHelpers +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class FinancialAddressCreditAmountOptions : INestedOptions + { + /// + /// A non-negative integer representing how much to charge in the smallest currency unit. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public long? Value { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/TestHelpers/FinancialAddresses/FinancialAddressCreditOptions.cs b/src/Stripe.net/Services/V2/TestHelpers/FinancialAddresses/FinancialAddressCreditOptions.cs index 20d0d8c398..33ee6d03b0 100644 --- a/src/Stripe.net/Services/V2/TestHelpers/FinancialAddresses/FinancialAddressCreditOptions.cs +++ b/src/Stripe.net/Services/V2/TestHelpers/FinancialAddresses/FinancialAddressCreditOptions.cs @@ -15,7 +15,7 @@ public class FinancialAddressCreditOptions : BaseOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("amount")] #endif - public V2.Amount Amount { get; set; } + public FinancialAddressCreditAmountOptions Amount { get; set; } /// /// Open Enum. The network to use in simulating the funds flow. This will be the reflected diff --git a/src/StripeTests/Services/GeneratedExamplesTest.cs b/src/StripeTests/Services/GeneratedExamplesTest.cs index 314f844ae0..aba8340f83 100644 --- a/src/StripeTests/Services/GeneratedExamplesTest.cs +++ b/src/StripeTests/Services/GeneratedExamplesTest.cs @@ -9011,7 +9011,7 @@ public void TestV2MoneyManagementAdjustmentGet() HttpMethod.Get, "/v2/money_management/adjustments", (HttpStatusCode)200, - "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.Adjustments; Stripe.V2.StripeList adjustments = service @@ -9028,7 +9028,7 @@ public void TestV2MoneyManagementAdjustmentGet2() HttpMethod.Get, "/v2/money_management/adjustments/id_123", (HttpStatusCode)200, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.Adjustments; Stripe.V2.MoneyManagement.Adjustment adjustment = service.Get( @@ -9045,7 +9045,7 @@ public void TestV2MoneyManagementCurrencyConversionGet() HttpMethod.Get, "/v2/money_management/currency_conversions", (HttpStatusCode)200, - "{\"data\":[{\"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,\"object\":\"v2.money_management.currency_conversion\",\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{\"value\":111972721,\"currency\":\"usd\"}},\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.money_management.currency_conversion\",\"to\":{\"amount\":{\"value\":111972721,\"currency\":\"usd\"}}}],\"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 @@ -9062,25 +9062,25 @@ public void TestV2MoneyManagementCurrencyConversionPost() HttpMethod.Post, "/v2/money_management/currency_conversions", (HttpStatusCode)200, - "{\"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,\"object\":\"v2.money_management.currency_conversion\",\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{\"value\":111972721,\"currency\":\"usd\"}},\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.money_management.currency_conversion\",\"to\":{\"amount\":{\"value\":111972721,\"currency\":\"usd\"}}}"); var options = new Stripe.V2.MoneyManagement.CurrencyConversionCreateOptions { FinancialAccount = "financial_account", From = new Stripe.V2.MoneyManagement.CurrencyConversionCreateFromOptions { - Amount = new Stripe.V2.Amount + Amount = new Stripe.V2.MoneyManagement.CurrencyConversionCreateFromAmountOptions { - Currency = "USD", - Value = 96, + Value = 111972721, + Currency = "usd", }, Currency = "usd", }, To = new Stripe.V2.MoneyManagement.CurrencyConversionCreateToOptions { - Amount = new Stripe.V2.Amount + Amount = new Stripe.V2.MoneyManagement.CurrencyConversionCreateToAmountOptions { - Currency = "USD", - Value = 96, + Value = 111972721, + Currency = "usd", }, Currency = "usd", }, @@ -9101,7 +9101,7 @@ public void TestV2MoneyManagementCurrencyConversionGet2() HttpMethod.Get, "/v2/money_management/currency_conversions/id_123", (HttpStatusCode)200, - "{\"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,\"object\":\"v2.money_management.currency_conversion\",\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}"); + "{\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{\"value\":111972721,\"currency\":\"usd\"}},\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.money_management.currency_conversion\",\"to\":{\"amount\":{\"value\":111972721,\"currency\":\"usd\"}}}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.CurrencyConversions; Stripe.V2.MoneyManagement.CurrencyConversion currencyConversion = service @@ -9118,7 +9118,7 @@ public void TestV2MoneyManagementFinancialAccountGet() HttpMethod.Get, "/v2/money_management/financial_accounts", (HttpStatusCode)200, - "{\"data\":[{\"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\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"balance\":{\"available\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"inbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"outbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}],\"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 @@ -9135,7 +9135,7 @@ public void TestV2MoneyManagementFinancialAccountPost() HttpMethod.Post, "/v2/money_management/financial_accounts", (HttpStatusCode)200, - "{\"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\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}"); + "{\"balance\":{\"available\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"inbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"outbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}"); var options = new Stripe.V2.MoneyManagement.FinancialAccountCreateOptions { Type = "storage", @@ -9156,7 +9156,7 @@ public void TestV2MoneyManagementFinancialAccountGet2() HttpMethod.Get, "/v2/money_management/financial_accounts/id_123", (HttpStatusCode)200, - "{\"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\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}"); + "{\"balance\":{\"available\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"inbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"outbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAccounts; Stripe.V2.MoneyManagement.FinancialAccount financialAccount = service @@ -9173,7 +9173,7 @@ public void TestV2MoneyManagementFinancialAccountPost2() HttpMethod.Post, "/v2/money_management/financial_accounts/id_123", (HttpStatusCode)200, - "{\"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\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}"); + "{\"balance\":{\"available\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"inbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"outbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}"); var options = new Stripe.V2.MoneyManagement.FinancialAccountUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAccounts; @@ -9191,7 +9191,7 @@ public void TestV2MoneyManagementFinancialAccountPost3() HttpMethod.Post, "/v2/money_management/financial_accounts/id_123/close", (HttpStatusCode)200, - "{\"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\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}"); + "{\"balance\":{\"available\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"inbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"outbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"payments\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAccounts; Stripe.V2.MoneyManagement.FinancialAccount financialAccount = service @@ -9264,7 +9264,7 @@ public void TestV2MoneyManagementInboundTransferGet() HttpMethod.Get, "/v2/money_management/inbound_transfers", (HttpStatusCode)200, - "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.InboundTransfers; Stripe.V2.StripeList inboundTransfers = service @@ -9281,10 +9281,14 @@ public void TestV2MoneyManagementInboundTransferPost() HttpMethod.Post, "/v2/money_management/inbound_transfers", (HttpStatusCode)200, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}"); var options = new Stripe.V2.MoneyManagement.InboundTransferCreateOptions { - Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, + Amount = new Stripe.V2.MoneyManagement.InboundTransferCreateAmountOptions + { + Value = 111972721, + Currency = "usd", + }, From = new Stripe.V2.MoneyManagement.InboundTransferCreateFromOptions { Currency = "usd", @@ -9312,7 +9316,7 @@ public void TestV2MoneyManagementInboundTransferGet2() HttpMethod.Get, "/v2/money_management/inbound_transfers/id_123", (HttpStatusCode)200, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.InboundTransfers; Stripe.V2.MoneyManagement.InboundTransfer inboundTransfer = service @@ -9329,7 +9333,7 @@ public void TestV2MoneyManagementOutboundPaymentGet() HttpMethod.Get, "/v2/money_management/outbound_payments", (HttpStatusCode)200, - "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundPayments; Stripe.V2.StripeList outboundPayments = service @@ -9346,10 +9350,14 @@ public void TestV2MoneyManagementOutboundPaymentPost() HttpMethod.Post, "/v2/money_management/outbound_payments", (HttpStatusCode)200, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); var options = new Stripe.V2.MoneyManagement.OutboundPaymentCreateOptions { - Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, + Amount = new Stripe.V2.MoneyManagement.OutboundPaymentCreateAmountOptions + { + Value = 111972721, + Currency = "usd", + }, From = new Stripe.V2.MoneyManagement.OutboundPaymentCreateFromOptions { Currency = "usd", @@ -9378,7 +9386,7 @@ public void TestV2MoneyManagementOutboundPaymentGet2() HttpMethod.Get, "/v2/money_management/outbound_payments/id_123", (HttpStatusCode)200, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundPayments; Stripe.V2.MoneyManagement.OutboundPayment outboundPayment = service @@ -9395,7 +9403,7 @@ public void TestV2MoneyManagementOutboundPaymentPost2() HttpMethod.Post, "/v2/money_management/outbound_payments/id_123/cancel", (HttpStatusCode)200, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundPayments; Stripe.V2.MoneyManagement.OutboundPayment outboundPayment = service @@ -9412,10 +9420,14 @@ public void TestV2MoneyManagementOutboundPaymentQuotePost() HttpMethod.Post, "/v2/money_management/outbound_payment_quotes", (HttpStatusCode)200, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}"); var options = new Stripe.V2.MoneyManagement.OutboundPaymentQuoteCreateOptions { - Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, + Amount = new Stripe.V2.MoneyManagement.OutboundPaymentQuoteCreateAmountOptions + { + Value = 111972721, + Currency = "usd", + }, From = new Stripe.V2.MoneyManagement.OutboundPaymentQuoteCreateFromOptions { Currency = "usd", @@ -9444,7 +9456,7 @@ public void TestV2MoneyManagementOutboundPaymentQuoteGet() HttpMethod.Get, "/v2/money_management/outbound_payment_quotes/id_123", (HttpStatusCode)200, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundPaymentQuotes; Stripe.V2.MoneyManagement.OutboundPaymentQuote outboundPaymentQuote = service @@ -9548,7 +9560,7 @@ public void TestV2MoneyManagementOutboundTransferGet() HttpMethod.Get, "/v2/money_management/outbound_transfers", (HttpStatusCode)200, - "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundTransfers; Stripe.V2.StripeList outboundTransfers = service @@ -9565,10 +9577,14 @@ public void TestV2MoneyManagementOutboundTransferPost() HttpMethod.Post, "/v2/money_management/outbound_transfers", (HttpStatusCode)200, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); var options = new Stripe.V2.MoneyManagement.OutboundTransferCreateOptions { - Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, + Amount = new Stripe.V2.MoneyManagement.OutboundTransferCreateAmountOptions + { + Value = 111972721, + Currency = "usd", + }, From = new Stripe.V2.MoneyManagement.OutboundTransferCreateFromOptions { Currency = "usd", @@ -9596,7 +9612,7 @@ public void TestV2MoneyManagementOutboundTransferGet2() HttpMethod.Get, "/v2/money_management/outbound_transfers/id_123", (HttpStatusCode)200, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundTransfers; Stripe.V2.MoneyManagement.OutboundTransfer outboundTransfer = service @@ -9613,7 +9629,7 @@ public void TestV2MoneyManagementOutboundTransferPost2() HttpMethod.Post, "/v2/money_management/outbound_transfers/id_123/cancel", (HttpStatusCode)200, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundTransfers; Stripe.V2.MoneyManagement.OutboundTransfer outboundTransfer = service @@ -9718,7 +9734,7 @@ public void TestV2MoneyManagementReceivedCreditGet() HttpMethod.Get, "/v2/money_management/received_credits", (HttpStatusCode)200, - "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"status\":\"returned\",\"type\":\"balance_transfer\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"status\":\"returned\",\"type\":\"balance_transfer\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.ReceivedCredits; Stripe.V2.StripeList receivedCredits = service @@ -9735,7 +9751,7 @@ public void TestV2MoneyManagementReceivedCreditGet2() HttpMethod.Get, "/v2/money_management/received_credits/id_123", (HttpStatusCode)200, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"status\":\"returned\",\"type\":\"balance_transfer\",\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"status\":\"returned\",\"type\":\"balance_transfer\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.ReceivedCredits; Stripe.V2.MoneyManagement.ReceivedCredit receivedCredit = service @@ -9752,7 +9768,7 @@ public void TestV2MoneyManagementReceivedDebitGet() HttpMethod.Get, "/v2/money_management/received_debits", (HttpStatusCode)200, - "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"status\":\"canceled\",\"type\":\"balance_transfer\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"status\":\"canceled\",\"type\":\"balance_transfer\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.ReceivedDebits; Stripe.V2.StripeList receivedDebits = service @@ -9769,7 +9785,7 @@ public void TestV2MoneyManagementReceivedDebitGet2() HttpMethod.Get, "/v2/money_management/received_debits/id_123", (HttpStatusCode)200, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"status\":\"canceled\",\"type\":\"balance_transfer\",\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"status\":\"canceled\",\"type\":\"balance_transfer\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.ReceivedDebits; Stripe.V2.MoneyManagement.ReceivedDebit receivedDebit = service.Get( @@ -9841,7 +9857,7 @@ public void TestV2MoneyManagementTransactionGet() HttpMethod.Get, "/v2/money_management/transactions", (HttpStatusCode)200, - "{\"data\":[{\"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\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"category\":\"received_debit_reversal\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}],\"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 @@ -9858,7 +9874,7 @@ public void TestV2MoneyManagementTransactionGet2() HttpMethod.Get, "/v2/money_management/transactions/id_123", (HttpStatusCode)200, - "{\"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\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"category\":\"received_debit_reversal\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.Transactions; Stripe.V2.MoneyManagement.Transaction transaction = service.Get( @@ -9875,7 +9891,7 @@ public void TestV2MoneyManagementTransactionEntryGet() HttpMethod.Get, "/v2/money_management/transaction_entries", (HttpStatusCode)200, - "{\"data\":[{\"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\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit_reversal\",\"financial_account\":\"financial_account\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit_reversal\",\"financial_account\":\"financial_account\"},\"livemode\":true}],\"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 @@ -9892,7 +9908,7 @@ public void TestV2MoneyManagementTransactionEntryGet2() HttpMethod.Get, "/v2/money_management/transaction_entries/id_123", (HttpStatusCode)200, - "{\"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\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit_reversal\",\"financial_account\":\"financial_account\"},\"livemode\":true}"); + "{\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit_reversal\",\"financial_account\":\"financial_account\"},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.TransactionEntries; Stripe.V2.MoneyManagement.TransactionEntry transactionEntry = service @@ -9909,7 +9925,7 @@ public void TestV2PaymentsOffSessionPaymentGet() HttpMethod.Get, "/v2/payments/off_session_payments", (HttpStatusCode)200, - "{\"data\":[{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount_requested\":{\"value\":111972721,\"currency\":\"usd\"},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.OffSessionPayments; Stripe.V2.StripeList offSessionPayments = service @@ -9926,10 +9942,14 @@ public void TestV2PaymentsOffSessionPaymentPost() HttpMethod.Post, "/v2/payments/off_session_payments", (HttpStatusCode)200, - "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); + "{\"amount_requested\":{\"value\":111972721,\"currency\":\"usd\"},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); var options = new Stripe.V2.Payments.OffSessionPaymentCreateOptions { - Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, + Amount = new Stripe.V2.Payments.OffSessionPaymentCreateAmountOptions + { + Value = 111972721, + Currency = "usd", + }, Cadence = "unscheduled", Customer = "customer", Metadata = new Dictionary @@ -9953,7 +9973,7 @@ public void TestV2PaymentsOffSessionPaymentGet2() HttpMethod.Get, "/v2/payments/off_session_payments/id_123", (HttpStatusCode)200, - "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); + "{\"amount_requested\":{\"value\":111972721,\"currency\":\"usd\"},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.OffSessionPayments; Stripe.V2.Payments.OffSessionPayment offSessionPayment = service @@ -9970,7 +9990,7 @@ public void TestV2PaymentsOffSessionPaymentPost2() HttpMethod.Post, "/v2/payments/off_session_payments/id_123/cancel", (HttpStatusCode)200, - "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); + "{\"amount_requested\":{\"value\":111972721,\"currency\":\"usd\"},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.OffSessionPayments; Stripe.V2.Payments.OffSessionPayment offSessionPayment = service @@ -9987,7 +10007,7 @@ public void TestV2PaymentsOffSessionPaymentPost3() HttpMethod.Post, "/v2/payments/off_session_payments/id_123/capture", (HttpStatusCode)200, - "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); + "{\"amount_requested\":{\"value\":111972721,\"currency\":\"usd\"},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.payments.off_session_payment\",\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"pending\"}"); var options = new Stripe.V2.Payments.OffSessionPaymentCaptureOptions { Metadata = new Dictionary @@ -10011,7 +10031,7 @@ public void TestV2PaymentsSettlementAllocationIntentGet() HttpMethod.Get, "/v2/payments/settlement_allocation_intents", (HttpStatusCode)200, - "{\"data\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.SettlementAllocationIntents; Stripe.V2.StripeList settlementAllocationIntents = service @@ -10028,10 +10048,14 @@ public void TestV2PaymentsSettlementAllocationIntentPost() HttpMethod.Post, "/v2/payments/settlement_allocation_intents", (HttpStatusCode)200, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}"); var options = new Stripe.V2.Payments.SettlementAllocationIntentCreateOptions { - Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, + Amount = new Stripe.V2.Payments.SettlementAllocationIntentCreateAmountOptions + { + Value = 111972721, + Currency = "usd", + }, ExpectedSettlementDate = DateTimeOffset.Parse( "1970-01-22T14:14:13.629Z") .UtcDateTime, @@ -10054,7 +10078,7 @@ public void TestV2PaymentsSettlementAllocationIntentGet2() HttpMethod.Get, "/v2/payments/settlement_allocation_intents/id_123", (HttpStatusCode)200, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.SettlementAllocationIntents; Stripe.V2.Payments.SettlementAllocationIntent settlementAllocationIntent = service @@ -10071,7 +10095,7 @@ public void TestV2PaymentsSettlementAllocationIntentPost2() HttpMethod.Post, "/v2/payments/settlement_allocation_intents/id_123", (HttpStatusCode)200, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}"); var options = new Stripe.V2.Payments.SettlementAllocationIntentUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.SettlementAllocationIntents; @@ -10089,7 +10113,7 @@ public void TestV2PaymentsSettlementAllocationIntentPost3() HttpMethod.Post, "/v2/payments/settlement_allocation_intents/id_123/cancel", (HttpStatusCode)200, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.SettlementAllocationIntents; Stripe.V2.Payments.SettlementAllocationIntent settlementAllocationIntent = service @@ -10106,7 +10130,7 @@ public void TestV2PaymentsSettlementAllocationIntentPost4() HttpMethod.Post, "/v2/payments/settlement_allocation_intents/id_123/submit", (HttpStatusCode)200, - "{\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"expected_settlement_date\":\"1970-01-22T14:14:13.629Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"linked_credits\":[\"linked_credits\"],\"object\":\"v2.payments.settlement_allocation_intent\",\"reference\":\"reference\",\"status\":\"canceled\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.SettlementAllocationIntents; Stripe.V2.Payments.SettlementAllocationIntent settlementAllocationIntent = service @@ -10123,7 +10147,7 @@ public void TestV2PaymentsSettlementAllocationIntentsSplitGet() HttpMethod.Get, "/v2/payments/settlement_allocation_intents/settlement_allocation_intent_id_123/splits", (HttpStatusCode)200, - "{\"data\":[{\"account\":\"account\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"account\":\"account\",\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.SettlementAllocationIntents.Splits; Stripe.V2.StripeList settlementAllocationIntentSplits = service @@ -10140,11 +10164,15 @@ public void TestV2PaymentsSettlementAllocationIntentsSplitPost() HttpMethod.Post, "/v2/payments/settlement_allocation_intents/settlement_allocation_intent_id_123/splits", (HttpStatusCode)200, - "{\"account\":\"account\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}"); + "{\"account\":\"account\",\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}"); var options = new Stripe.V2.Payments.SettlementAllocationIntents.SplitCreateOptions { Account = "account", - Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, + Amount = new Stripe.V2.Payments.SettlementAllocationIntents.SplitCreateAmountOptions + { + Value = 111972721, + Currency = "usd", + }, Type = "credit", }; var client = new StripeClient(this.Requestor); @@ -10163,7 +10191,7 @@ public void TestV2PaymentsSettlementAllocationIntentsSplitGet2() HttpMethod.Get, "/v2/payments/settlement_allocation_intents/settlement_allocation_intent_id_123/splits/id_123", (HttpStatusCode)200, - "{\"account\":\"account\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}"); + "{\"account\":\"account\",\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.SettlementAllocationIntents.Splits; Stripe.V2.Payments.SettlementAllocationIntentSplit settlementAllocationIntentSplit = service @@ -10180,7 +10208,7 @@ public void TestV2PaymentsSettlementAllocationIntentsSplitPost2() HttpMethod.Post, "/v2/payments/settlement_allocation_intents/settlement_allocation_intent_id_123/splits/id_123/cancel", (HttpStatusCode)200, - "{\"account\":\"account\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}"); + "{\"account\":\"account\",\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.payments.settlement_allocation_intent_split\",\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.SettlementAllocationIntents.Splits; Stripe.V2.Payments.SettlementAllocationIntentSplit settlementAllocationIntentSplit = service @@ -10386,7 +10414,11 @@ public void TestV2TestHelpersFinancialAddressPost() "{\"object\":\"financial_address_credit_simulation\",\"status\":\"status\",\"livemode\":true}"); var options = new Stripe.V2.TestHelpers.FinancialAddressCreditOptions { - Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, + Amount = new Stripe.V2.TestHelpers.FinancialAddressCreditAmountOptions + { + Value = 111972721, + Currency = "usd", + }, Network = "ach", }; var client = new StripeClient(this.Requestor); @@ -10405,7 +10437,7 @@ public void TestV2TestHelpersFinancialAddressPost2() HttpMethod.Post, "/v2/test_helpers/financial_addresses/id_123/generate_microdeposits", (HttpStatusCode)200, - "{\"amounts\":[{\"currency\":\"USD\",\"value\":1}],\"object\":\"financial_address_generated_microdeposits\",\"status\":\"accepted\",\"livemode\":true}"); + "{\"amounts\":[{\"value\":111972721,\"currency\":\"usd\"}],\"object\":\"financial_address_generated_microdeposits\",\"status\":\"accepted\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.TestHelpers.FinancialAddresses; Stripe.V2.FinancialAddressGeneratedMicrodeposits financialAddressGeneratedMicrodeposits = service @@ -10617,7 +10649,11 @@ public void TestInsufficientFundsError() { var options = new Stripe.V2.MoneyManagement.OutboundPaymentCreateOptions { - Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, + Amount = new Stripe.V2.MoneyManagement.OutboundPaymentCreateAmountOptions + { + Value = 111972721, + Currency = "usd", + }, From = new Stripe.V2.MoneyManagement.OutboundPaymentCreateFromOptions { Currency = "usd", @@ -10784,7 +10820,11 @@ public void TestRecipientNotNotifiableError() { var options = new Stripe.V2.MoneyManagement.OutboundPaymentCreateOptions { - Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, + Amount = new Stripe.V2.MoneyManagement.OutboundPaymentCreateAmountOptions + { + Value = 111972721, + Currency = "usd", + }, From = new Stripe.V2.MoneyManagement.OutboundPaymentCreateFromOptions { Currency = "usd",